/* ==========================================================================
   Windows by somov: shared stylesheet
   Tokens first, then base, components and page layouts.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-cyrillic-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Wix Madefor Display: the voice of the headings and the site name (SIL OFL, see assets/fonts/LICENSE-WixMadeforDisplay.txt) */
@font-face {
  font-family: "Wix Madefor Display";
  src: url("/assets/fonts/wix-madefor-display-latin-wght.woff2") format("woff2");
  font-weight: 600 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Wix Madefor Display";
  src: url("/assets/fonts/wix-madefor-display-cyrillic-wght.woff2") format("woff2");
  font-weight: 600 700;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  color-scheme: dark;

  --bg: #0f1115;
  --surface: #171a21;
  --raised: #1f232c;
  --raised-hover: #282d38;
  --border: rgb(255 255 255 / .11);
  --border-strong: rgb(255 255 255 / .22);
  --hairline: rgb(255 255 255 / .14);   /* rows and sections without boxes */
  --field-border: rgb(255 255 255 / .36); /* form fields: 3:1 on the page ground */
  --scrim: rgb(10 12 16 / .88);

  --text: #f0f2f5;
  --muted: #a9b0bc;

  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-text: #8fb4ff;
  --selected: #f0f2f5;
  --on-selected: #0f1115;
  /* The chosen option in a switch: a raised dark thumb, not a white plate, so the blue button stays the brightest thing */
  --thumb: var(--raised-hover);
  --thumb-shadow: inset 0 1px 0 rgb(255 255 255 / .07), 0 0 0 1px rgb(255 255 255 / .06), 0 1px 3px rgb(0 0 0 / .5);
  /* The top edge of a lit surface: the light comes from above */
  --edge-light: inset 0 1px 0 rgb(255 255 255 / .06);
  --success: #7ee2a8;
  --danger: #ef4444;
  --warning: #f5c26b;
  --on-accent: #fff;   /* text on the blue button and other coloured fills */
  --paper: #fff;       /* the logo plate and the QR code stay white */
  --frost: #93c5fd;    /* the snow switch glow */
  --frost-light: #dbeafe;

  --glow-a: #3a8dff;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --pill: 999px;

  --fs-xs: .8125rem;
  --fs-sm: .875rem;
  --fs-md: 1rem;
  --fs-lg: 1.25rem;
  --fs-xl: clamp(1.5rem, 4vw, 1.75rem);
  --fs-2xl: clamp(1.875rem, 5.4vw, 2.5rem);

  --mono: ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace;
  --ease: 160ms cubic-bezier(.2, 0, 0, 1);
  --container: 1120px;
  --gutter: 20px;
}

/* -- Base ---------------------------------------------------------------- */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  @view-transition { navigation: auto; }
}

body {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--fs-md)/1.6 Inter, "Segoe UI", system-ui, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
fieldset { border: 0; min-width: 0; }
code { font-family: var(--mono); }
h1, h2, h3 { text-wrap: balance; font-weight: 600; }
[hidden] { display: none !important; }

/* Both languages are in the page. English is the default when scripts don't run. */
.lang-ru-active .lang-en,
html:not(.lang-ru-active) .lang-ru { display: none; }

:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  background: var(--selected);
  color: var(--on-selected);
  font-weight: 600;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-narrow { max-width: 800px; }
/* Home: a wider card, so the two columns have room to breathe (other pages keep 800) */
.home .container-narrow { max-width: 880px; }

.mono { font-family: var(--mono); }
.icon { flex: none; width: 18px; height: 18px; }

/* -- Header -------------------------------------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 48;   /* over the snow's front layer (45), so its Builds menu is never under snow; under the toast (50) and the chat (55, 60) */
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 64px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; white-space: nowrap; }
.brand img { width: 32px; height: 32px; border-radius: var(--r-sm); background: var(--paper); }

.site-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding-inline: 12px;
  border-radius: var(--r-sm);
  color: var(--muted);
  font-size: var(--fs-sm);
  font-weight: 500;
  white-space: nowrap;
  transition: color var(--ease), background var(--ease);
}
.site-nav a:hover { color: var(--text); background: var(--raised); }
.site-nav a[aria-current="page"] { color: var(--text); background: var(--raised); }
.site-nav .nav-external { margin-left: auto; }
.site-nav .nav-external .icon { display: none; width: 18px; height: 18px; }
/* Phones: tighter items, so the row fits */
@media (max-width: 440px) {
  .site-nav { gap: 2px; }
  .site-nav a, .nav-menu summary { padding-inline: 8px; }
}
/* The word "Telegram" whenever it fits; the plane icon only when it does not (site.js measures it) */
.site-nav.tg-icon-only .nav-external .icon { display: block; }
.site-nav.tg-icon-only .nav-external span { display: none; }
/* When the row still does not fit (the smallest phones), a soft fade on the right hints that it scrolls */
/* A layer over the right edge, not a mask: a mask would also clip the open Builds menu inside the row */
.site-nav.is-scrollable::after {
  content: '';
  position: sticky;
  right: 0;
  flex: none;
  align-self: stretch;
  width: 36px;
  margin-left: -36px;
  background: linear-gradient(to right, transparent, var(--bg));
  pointer-events: none;
}

/* "Builds" menu in the header: the build pages from every page of the site */
.nav-menu { position: relative; }
.nav-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 40px;
  padding-inline: 12px;
  border-radius: var(--r-sm);
  color: var(--muted);
  font-size: var(--fs-sm);
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
  transition: color var(--ease), background var(--ease);
}
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary:hover, .nav-menu[open] summary, .nav-menu summary[aria-current="page"] { color: var(--text); background: var(--raised); }
.nav-menu summary .icon { width: 14px; height: 14px; transition: transform var(--ease); }
.nav-menu[open] summary .icon { transform: rotate(180deg); }
.nav-menu-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 30;
  display: grid;
  min-width: 240px;
  padding: 6px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: 0 16px 40px rgb(0 0 0 / .45);
}
.site-nav .nav-menu-list a { justify-content: space-between; gap: 16px; color: var(--text); }
.nav-menu-list a span { color: var(--muted); font-size: var(--fs-xs); }
.site-nav .nav-menu-list a.nav-menu-all { margin-top: 4px; border-top: 1px solid var(--border); border-radius: 0 0 var(--r-sm) var(--r-sm); color: var(--muted); }

.lang-switch { display: flex; flex: none; padding: 3px; border: 1px solid var(--border); border-radius: var(--pill); }
.lang-switch button {
  display: grid;
  place-items: center;
  min-width: 40px;
  min-height: 32px;
  border-radius: var(--pill);
  color: var(--muted);
  font-size: var(--fs-xs);
  font-weight: 600;
  transition: color var(--ease), background var(--ease);
}
.lang-switch button:hover { color: var(--text); }
.lang-switch button[aria-pressed="true"] { background: var(--thumb); color: var(--text); box-shadow: var(--thumb-shadow); }

/* -- Buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: var(--r-md);
  font-size: var(--fs-md);
  font-weight: 600;
  white-space: nowrap;
  transition: background var(--ease), border-color var(--ease), color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-block { width: 100%; }
/* The main download buttons name the image language and size; on a very narrow phone the label wraps
   onto two centred lines instead of pushing the button off the screen */
.dl-actions .btn-block, .dl-bar .btn-block { white-space: normal; text-align: center; text-wrap: balance; line-height: 1.3; padding-block: 10px; }
@media (max-width: 400px) {
  /* A slightly smaller label fits on one line down to 360px; narrower phones get two lines */
  .dl-actions .btn-block, .dl-bar .btn-block { font-size: .9375rem; padding-inline: 14px; }
}
/* The one loud thing on a page: the same blue, with a lit top edge and a soft blue light under it */
.btn-primary {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 94%, #fff), var(--accent)); /* the top stays >= 4.5:1 under white text */
  color: var(--on-accent);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .2), 0 1px 2px rgb(0 0 0 / .4), 0 8px 24px -10px color-mix(in srgb, var(--accent) 70%, transparent);
}
.btn-primary:hover {
  background: linear-gradient(180deg, var(--accent), var(--accent-hover));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .16), 0 1px 2px rgb(0 0 0 / .4), 0 12px 32px -10px color-mix(in srgb, var(--accent) 85%, transparent);
}
.btn-primary:active { box-shadow: inset 0 1px 0 rgb(255 255 255 / .1), 0 1px 2px rgb(0 0 0 / .4); }
.btn-secondary { border: 1px solid var(--border-strong); }
.btn-secondary:hover { background: var(--raised-hover); }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: var(--fs-sm); border-radius: var(--r-sm); }

.link {
  color: var(--accent-text);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent-text) 40%, transparent);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--ease);
}
.link:hover { text-decoration-color: currentColor; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--pill);
  color: var(--text);
  font-size: var(--fs-xs);
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  color: var(--muted);
  font-size: var(--fs-sm);
}

/* -- Home ---------------------------------------------------------------- */

.home { position: relative; flex: 1; padding-block: clamp(64px, 16vh - 80px, 160px) 72px; } /* tall screens: the stack moves down from the top third instead of leaving an empty band above the footer */
.home::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: 520px;
  /* One blue light from above (the site's one colour), a cooler core in the middle */
  background:
    radial-gradient(30% 48% at 50% 0%, color-mix(in srgb, var(--glow-a) 14%, transparent), transparent 100%),
    radial-gradient(58% 64% at 50% 0%, color-mix(in srgb, var(--glow-a) 16%, transparent), transparent 100%);
  pointer-events: none;
}
/* A faint dot grid under the light, fading out with it */
.home::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: 460px;
  background-image: radial-gradient(rgb(255 255 255 / .11) 1px, transparent 1.5px);
  background-size: 22px 22px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(55% 70% at 50% 0%, #000, transparent);
  mask-image: radial-gradient(55% 70% at 50% 0%, #000, transparent);
  pointer-events: none;
}

.hero { text-align: center; margin-bottom: 40px; }
.hero h1 { font-size: clamp(2rem, 2.4vw + 1rem, 2.75rem); line-height: 1.08; }
.hero p { margin-top: 12px; color: var(--muted); font-size: 1.125rem; }

.composer {
  padding: 28px;
  padding: clamp(28px, 2vw + 12px, 40px);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  /* Lit from above: a lighter top edge and a faint sheen fading down, then the soft shadow under the card */
  background: linear-gradient(180deg, rgb(255 255 255 / .025), transparent 140px), var(--surface);
  box-shadow: var(--edge-light), 0 24px 60px -24px rgb(0 0 0 / .6);
}
.selectors { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.field-label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: var(--fs-sm);
  font-weight: 500;
}

.segmented {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border-radius: var(--r-md);
  background: var(--bg);
  box-shadow: inset 0 1px 2px rgb(0 0 0 / .35);
}
.segmented::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: var(--r-sm);
  background: var(--thumb);
  box-shadow: var(--thumb-shadow);
  transition: transform 260ms cubic-bezier(.2, .8, .2, 1);
}
.segmented:has(label:nth-child(2) input:checked)::before { transform: translateX(100%); }
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.segmented label > span {
  display: grid;
  place-items: center;
  min-height: 42px;
  padding-inline: 10px;
  border-radius: var(--r-sm);
  color: var(--muted);
  font-size: var(--fs-sm);
  font-weight: 600;
  white-space: nowrap;
  transition: color var(--ease);
}
.segmented label:hover > span { color: var(--text); }
.segmented label > span { font-weight: 500; } /* the chosen option alone is bold: the choice reads at a glance */
.segmented input:checked + span { color: var(--text); font-weight: 600; }
.segmented input:focus-visible + span { outline: 2px solid var(--accent-text); outline-offset: 2px; }
@supports not selector(:has(*)) {
  .segmented::before { display: none; }
  .segmented input:checked + span { background: var(--thumb); box-shadow: var(--thumb-shadow); }
}

.result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); /* the same columns as the selectors above */
  gap: 28px 48px; /* the gutter wider than the card padding: the two columns read as two */
  align-items: start;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.result h2 { font-size: var(--fs-lg); line-height: 1.25; letter-spacing: -.01em; } /* one line: the Download button stays the strongest thing in the card */
.result .meta { margin-top: 8px; }
.result .meta .author, .build-head .meta .author { flex-basis: 100%; } /* author on its own line, the build details below it */
/* A quiet text link like "Archive of previous versions": the blue Download button is the only loud thing here.
   The 40px height keeps it easy to hit with a finger. */
.details-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  margin-top: 4px;
  color: var(--muted);
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: color var(--ease);
}
.details-link:hover { color: var(--text); }
.details-link .icon { flex: none; width: 14px; height: 14px; transition: transform var(--ease); }
.details-link:hover .icon { transform: translateX(2px); }


.dl-actions { display: grid; gap: 10px; }

/* After a download starts: the Telegram channel, one quiet line with a hint of the accent (site.js adds it) */
.tg-after {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--accent) 9%, var(--surface));
  text-align: left;
  transition: border-color var(--ease), background var(--ease);
}
.tg-after:hover { border-color: color-mix(in srgb, var(--accent) 60%, transparent); background: color-mix(in srgb, var(--accent) 14%, var(--surface)); }
.tg-after-icon { display: grid; flex: none; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--on-accent); }
.tg-after-icon .icon { width: 15px; height: 15px; margin-left: -1px; }
.tg-after-text { display: grid; min-width: 0; }
.tg-after-title { font-size: var(--fs-sm); font-weight: 600; line-height: 1.35; }
.tg-after-sub { color: var(--muted); font-size: var(--fs-xs); line-height: 1.4; }
.dl-actions > .tg-after { margin-top: 4px; }
.row > .tg-after { grid-column: 1 / -1; }
.dl-bar > .tg-after { margin-bottom: 10px; }
/* Build page: once the line is there, the Telegram card under the panel would say the same again */
.build-panel:has(.tg-after) > .tg-card { display: none; }
.dl-alt { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
/* Home and build pages: Torrent and Magnet are the fallback, so they step back from Download */
.dl-alt .btn-secondary { border-color: var(--border); border-radius: var(--r-md); color: var(--muted); font-weight: 500; }
.dl-alt .btn-secondary:hover { border-color: var(--border-strong); color: var(--text); }
/* The image's SHA-256 right under the download buttons (home and the build page's panel) */
/* A caption to Torrent/Magnet: close under them */
.dl-actions .hash-copy { justify-self: center; margin-top: -4px; }
/* Home: the support line under the file */
/* Home, wide screens: the download column spans both rows, the chat link takes the second row of the left column,
   right under the fan, so the two columns end level */
.result { grid-template-rows: auto 1fr; } /* extra height of the download column goes to the second row: the chat link stays right under the fan */
.result > :first-child { grid-column: 1; grid-row: 1; }
.result > .dl-actions { grid-column: 2; grid-row: 1 / span 2; }

.more { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.more-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  /* No frame at rest: the build card above is the main thing, these are the next steps. The frame comes on hover */
  border: 1px solid transparent;
  border-radius: var(--r-lg);
  background: var(--surface);
  transition: background var(--ease), border-color var(--ease);
}
.more-card:hover { background: var(--raised); border-color: var(--border); }
.more-card-title { display: block; font-weight: 600; }
.more-card-sub { display: block; margin-top: 2px; color: var(--muted); font-size: var(--fs-sm); }
.more-card .icon { color: var(--muted); transition: transform var(--ease), color var(--ease); }
.more-card:hover .icon { transform: translateX(3px); color: var(--text); }

.noscript-links { margin-top: 20px; font-size: var(--fs-sm); }

/* -- Inner pages --------------------------------------------------------- */

.page { position: relative; flex: 1; padding-block: 28px 72px; }

.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  color: var(--muted);
  font-size: var(--fs-sm);
  transition: color var(--ease);
}
.back:hover { color: var(--text); }
.back .icon { width: 16px; height: 16px; }

.page-title { margin-top: 12px; font-size: var(--fs-2xl); line-height: 1.15; letter-spacing: -.025em; }
.page-sub { margin-top: 8px; color: var(--muted); }

.section { margin-top: 48px; }
.section > h2 { margin-bottom: 16px; font-size: var(--fs-lg); letter-spacing: -.01em; }

/* -- Build page ---------------------------------------------------------- */

.build {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  grid-template-areas: "head panel" "body panel";
  grid-template-rows: auto 1fr;
  column-gap: 48px;
}
.build-head { grid-area: head; }
.build-body { grid-area: body; }
.build-panel { grid-area: panel; }
.build-head .meta { margin-top: 12px; }
.share { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 4px 10px; margin-top: 14px; }
/* Owner-only line next to the button: on its line, the table opens downwards */
.share-stats { padding-top: 7px; }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);   /* an action, like Torrent and Magnet: a rounded rectangle, not a pill */
  color: var(--muted);
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: color var(--ease), border-color var(--ease), background var(--ease);
}
.share-btn:hover { color: var(--text); border-color: var(--border-strong); background: var(--raised); }
.share-btn .icon { width: 15px; height: 15px; }
.share-btn[aria-expanded="true"] { color: var(--text); border-color: var(--border-strong); background: var(--raised); }
.share-more { position: relative; }
.share-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  display: grid;
  min-width: 230px;
  padding: 6px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  background: var(--raised);
  box-shadow: 0 18px 40px -12px rgb(0 0 0 / .7);
}
.share-menu[hidden] { display: none; }
.share-menu:not([hidden]) { animation: dd-in 140ms cubic-bezier(.2, 0, 0, 1); }
.share-menu > button, .share-menu > a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 10px;
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: var(--fs-sm);
  text-align: left;
  white-space: nowrap;
}
.share-menu > button:hover, .share-menu > a:hover, .share-menu > :focus-visible { background: var(--raised-hover); outline: none; }
.share-menu .icon { width: 16px; height: 16px; color: var(--muted); }
.share-sep { height: 1px; margin: 4px 6px; background: var(--border); }
.meta .author b { color: var(--text); font-weight: 600; }
.lead { margin-top: 20px; color: var(--muted); }

.build-panel { position: sticky; top: 88px; align-self: start; display: grid; gap: 12px; }
.panel {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.tg-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  transition: border-color var(--ease), background var(--ease);
}
.tg-card:hover { border-color: var(--border-strong); background: var(--raised); }
.tg-title { text-wrap: balance; } /* when the title wraps (RU on phones), two even lines, no lone word */
.tg-icon { display: grid; flex: none; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--raised-hover); color: var(--text); }
.tg-icon .icon { width: 17px; height: 17px; }
.tg-text { display: grid; flex: 1; min-width: 0; }
.tg-title { font-size: var(--fs-sm); font-weight: 600; }
.tg-sub { color: var(--muted); font-size: var(--fs-xs); }
.tg-action { flex: none; display: grid; color: var(--muted); transition: color var(--ease); }
.tg-action .icon { transition: transform var(--ease); }
.tg-card:hover .tg-action { color: var(--text); }
.tg-card:hover .tg-action .icon { transform: translateX(3px); }
.panel-title { font-size: var(--fs-md); font-weight: 600; line-height: 1.35; }
.panel-rows { display: grid; gap: 8px; margin-block: 14px 18px; font-size: var(--fs-sm); }
.panel-rows div { display: flex; justify-content: space-between; gap: 12px; }
.panel-rows dt { color: var(--muted); }
.panel-rows dd { font-weight: 500; text-align: right; }
.panel-label { margin-top: 14px; margin-bottom: 8px; color: var(--muted); font-size: var(--fs-sm); }
.seg-links { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: var(--r-md); background: var(--bg); box-shadow: inset 0 1px 2px rgb(0 0 0 / .35); }
.seg-links a {
  display: grid;
  place-items: center;
  min-height: 38px;
  border-radius: var(--r-sm);
  color: var(--muted);
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: color var(--ease), background var(--ease);
}
.seg-links a:hover { color: var(--text); }
.seg-links a[aria-current="true"] { background: var(--thumb); color: var(--text); box-shadow: var(--thumb-shadow); }
.dl-variant { display: grid; gap: 10px; }
.section-note { margin: -4px 0 12px; color: var(--muted); font-size: var(--fs-sm); }

/* Build pages hold both image languages; <html data-image> picks one. English without scripts. */
[data-image="en"] .img-ru,
[data-image="ru"] .img-en,
html:not([data-image]) .img-ru { display: none !important; }

.check-list { display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; }
.check-list .icon { margin-top: 3px; color: var(--success); }

.gallery { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.shot {
  display: block;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--raised);
  transition: border-color var(--ease);
}
.shot:hover { border-color: var(--border-strong); }
.shot img { width: 100%; }
.shot:first-child { grid-column: 1 / -1; border-radius: var(--r-md); }

.steps { display: grid; gap: 14px; counter-reset: step; }
.steps li { display: flex; gap: 14px; counter-increment: step; }
.steps li::before {
  content: counter(step);
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--raised);
  font-size: var(--fs-xs);
  font-weight: 600;
}

.req { display: grid; }
.req div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 12px 16px; font-size: var(--fs-sm); }
.req div + div { border-top: 1px solid var(--border); }
.req dt { color: var(--muted); }

.sums { display: grid; }
.sum-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) 40px; align-items: center; gap: 8px; padding: 6px 8px 6px 16px; }
.sum-row + .sum-row { border-top: 1px solid var(--border); }
.sum-label { color: var(--muted); font-size: var(--fs-xs); font-weight: 600; }
.sum-val { font-family: var(--mono); font-size: var(--fs-xs); overflow-wrap: anywhere; }
.sums-file { margin-top: 10px; color: var(--muted); font-family: var(--mono); font-size: .75rem; word-break: break-all; } /* a long file name fills each line instead of breaking after "en-" */
/* Image switch above the checksums, the same control as in the download panel */
.sums-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.sums-head-label { color: var(--muted); font-size: var(--fs-sm); }
/* On the page background the track would be invisible: give it the panel look */
.seg-inline { width: min(280px, 100%); background: var(--surface); border: 1px solid var(--border); }
.seg-inline a { min-height: 32px; }
/* Touch screens: 44px to the finger for the build page's small controls (a mouse keeps the compact sizes above) */
@media (pointer: coarse) {
  .back, .share-btn, .seg-links a, .seg-inline a { min-height: 44px; }
}
.sums-hint { margin: -2px 0 12px; color: var(--muted); font-size: var(--fs-sm); }

.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  color: var(--muted);
  transition: color var(--ease), background var(--ease);
}
.icon-btn:hover { color: var(--text); background: var(--raised-hover); }
.icon-btn.is-copied { color: var(--success); }

.dl-bar {
  position: fixed;
  z-index: 46;   /* over the snow drift at the bottom of the screen (45): the drift must not cover the button's glow */
  inset: auto 0 0;
  display: none;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(14px);
  /* Slides up from the bottom edge with a short fade, and back down the same way */
  transform: translateY(100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 340ms cubic-bezier(.2, .9, .25, 1), opacity 240ms ease, visibility 0s linear 340ms;
}
.dl-bar.is-shown {
  transform: none;
  opacity: 1;
  visibility: visible;
  transition: transform 340ms cubic-bezier(.2, .9, .25, 1), opacity 240ms ease, visibility 0s;
}
@media (prefers-reduced-motion: reduce) {
  .dl-bar, .dl-bar.is-shown { transition: opacity 150ms ease, visibility 0s; transform: none; }
}

/* -- Lightbox ------------------------------------------------------------ */

.lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  border: 0;
  background: rgb(8 9 12 / .94);
  color: var(--text);
}
/* site.js handles every gesture here, so a pinch zooms the screenshot and not the page */
.lightbox[open] { display: grid; place-items: center; overflow: hidden; touch-action: none; overscroll-behavior: contain; }
.lightbox img { cursor: zoom-in; transform-origin: center; will-change: transform; }
.lightbox.is-zoomed img { cursor: zoom-out; }
.lightbox.is-zoomed img:active { cursor: grabbing; }
.lightbox::backdrop { background: transparent; }
.lightbox img { width: min(100vw - 32px, 1600px, (100dvh - 120px) * var(--ar, 1.6)); height: auto; aspect-ratio: var(--ar, 1.6); max-height: calc(100dvh - 120px); border-radius: var(--r-sm); user-select: none; -webkit-user-select: none; -webkit-user-drag: none; -webkit-touch-callout: none; }
.lb-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgb(255 255 255 / .1);
  transition: background var(--ease);
}
.lb-btn:hover { background: rgb(255 255 255 / .2); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { top: 50%; left: 16px; translate: 0 -50%; }
.lb-next { top: 50%; right: 16px; translate: 0 -50%; }
.lb-count { position: absolute; bottom: 20px; left: 50%; translate: -50% 0; color: var(--muted); font-size: var(--fs-sm); }
/* Phones: the arrows would cover the screenshot, so they sit below it, around the counter */
@media (max-width: 720px) {
  .lb-prev, .lb-next { top: auto; bottom: 8px; translate: none; }
  .lb-count { bottom: 22px; }
}

/* -- Ghost Spectre ------------------------------------------------------- */

.group + .group { margin-top: 40px; }
.group-title { margin-bottom: 12px; font-size: var(--fs-lg); }
.rows { display: grid; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 24px;
  padding: 16px 20px;
}
.row + .row { border-top: 1px solid var(--border); }
.row-name { font-weight: 600; }
.row .meta { margin-top: 4px; }
.row .mono { font-size: var(--fs-xs); }
.row-actions { display: flex; align-items: center; gap: 8px; }
.row-text-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding-inline: 10px;
  border-radius: var(--r-sm);
  color: var(--muted);
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: color var(--ease), background var(--ease);
}
.row-text-link:hover { color: var(--text); background: var(--raised-hover); }
.row-muted .row-name { color: var(--muted); }
.notice { margin-top: 6px; color: var(--muted); font-size: var(--fs-sm); }
/* Ghost Spectre: one line for those who do not know which build to take; the name leads to that build */
.pick-hint { margin-top: 16px; }   /* body size: a tip to read, above the small grey mirror note */
.stats-line { color: var(--muted); font-size: var(--fs-xs); }
/* Owner stats: a short line (people), and on click a small table people / total / repeated */
.owner-stat summary { display: inline; cursor: pointer; list-style: none; }
.owner-stat summary::-webkit-details-marker { display: none; }
.owner-stat summary::after { content: ' ▾'; display: inline-block; transition: transform var(--ease); }
.owner-stat[open] summary::after { transform: rotate(180deg); }
.owner-stat summary:hover { color: var(--text); }
.owner-stat table {
  display: inline-table;
  margin-top: 6px;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.owner-stat th, .owner-stat td { padding: 3px 10px; font-weight: 400; white-space: nowrap; }
.owner-stat tr:first-child th { color: var(--muted); font-size: .6875rem; }
.owner-stat tr th:first-child { text-align: left; color: var(--muted); }
.owner-stat td { color: var(--text); }
.owner-stat tr.sum th, .owner-stat tr.sum td { border-top: 1px solid var(--border); font-weight: 600; }
.row .stats-line { margin-top: 4px; }
.dl-actions .stats-line { text-align: center; }

/* -- Settings ------------------------------------------------------------ */

.toolbar {
  position: sticky;
  top: 65px;
  z-index: 10;
  margin: 24px calc(var(--gutter) * -1) 0;
  padding: 12px var(--gutter);
  background: var(--bg);
  border-bottom: 1px solid transparent;
}
.search { position: relative; display: block; }
.search .icon { position: absolute; top: 15px; left: 14px; color: var(--muted); pointer-events: none; }
.search input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px 0 42px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
.search input::placeholder { color: var(--muted); }
/* No blue ring on the search field: a slightly lighter border, like the dropdowns on /support */
.search input:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  min-height: 36px;
  padding-inline: 12px;
  border: 1px solid var(--border);
  border-radius: var(--pill);
  color: var(--muted);
  font-size: var(--fs-xs);
  font-weight: 500;
  white-space: nowrap;
  transition: color var(--ease), background var(--ease), border-color var(--ease);
}
.chip:hover { color: var(--text); border-color: var(--border-strong); }
.chip[aria-pressed="true"] { background: var(--thumb); border-color: transparent; box-shadow: var(--thumb-shadow); color: var(--text); }
.result-count { margin-top: 16px; min-height: 1.5em; min-height: 1lh; color: var(--muted); font-size: var(--fs-sm); } /* the line is filled by site.js: its place is kept so the list does not jump */
.empty { margin-top: 24px; padding: 24px 0; border-top: 1px solid var(--hairline); color: var(--muted); }

.item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 24px;
  align-items: start;
  padding: 18px 20px;
  scroll-margin-top: 150px; /* clear of the header and the sticky search */
}
.item + .item { border-top: 1px solid var(--border); }
.item:target { background: var(--raised); }
.item-title { font-size: var(--fs-md); line-height: 1.4; }
.item-title a { transition: color var(--ease); }
.item-title a:hover { color: var(--accent-text); }
.item-desc { margin-top: 4px; color: var(--muted); font-size: var(--fs-sm); line-height: 1.55; }
.item-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.item-links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: var(--fs-sm); }
.item-full { grid-column: 1 / -1; }
/* "warning" of a tweak: read before applying */
.item-warning {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--warning) 28%, transparent);
  border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--warning) 7%, transparent);
  color: var(--text);
  font-size: var(--fs-sm);
  line-height: 1.5;
}
.item-warning .icon { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--warning); }
.lead + .item-warning { margin-top: 16px; }

.item-action { display: flex; align-items: center; gap: 10px; }
.file-type { color: var(--muted); font-family: var(--mono); font-size: .75rem; }
/* The download of each item: a quiet button (there are 30+ of them) with the file type inside it */
.item-action .btn-secondary { border-color: var(--border); }
.item-action .btn-secondary:hover { border-color: var(--border-strong); }
.item-action .file-type { margin-left: 2px; }

.commands { display: grid; gap: 10px; margin-top: 10px; }
.command-label { margin-bottom: 4px; color: var(--muted); font-size: var(--fs-sm); }
.command {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  align-items: center;
  gap: 8px;
  padding: 4px 4px 4px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
}
.command code { font-size: var(--fs-xs); overflow-wrap: break-word; word-break: normal; hyphens: none; }

.chip-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

.keys { display: grid; gap: 8px; margin-top: 10px; font-size: var(--fs-sm); }
.keys div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; align-items: baseline; }
.keys dt { font-family: var(--mono); font-size: var(--fs-xs); }
.keys dd { color: var(--muted); }

/* -- 404 ----------------------------------------------------------------- */

.not-found { flex: 1; display: grid; place-content: center; justify-items: center; padding: 64px 20px; text-align: center; }
.not-found-code { font-size: clamp(4.5rem, 16vw, 7.5rem); font-weight: 600; line-height: 1; letter-spacing: -.04em; }
.not-found p { margin-block: 12px 28px; color: var(--muted); font-size: 1.125rem; }
/* Under the button: the site's sections as quiet links, for those who came by an old link */
.not-found-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 20px; margin-top: 20px; font-size: var(--fs-sm); }
.not-found-links a { display: inline-flex; align-items: center; min-height: 40px; color: var(--muted); transition: color var(--ease); }
.not-found-links a:hover { color: var(--text); }

/* -- Footer -------------------------------------------------------------- */

.footer { border-top: 1px solid var(--border); color: var(--muted); font-size: var(--fs-sm); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px 48px;
  padding-block: 28px;
}
.footer h2 { margin-bottom: 6px; color: var(--text); font-size: var(--fs-sm); font-weight: 600; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 16px; }
.hash-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  margin-top: 4px;
  color: var(--muted);
  font-size: var(--fs-xs);
  transition: color var(--ease);
}
.hash-copy:hover { color: var(--text); }
.hash-copy code { font-size: .75rem; }
.hash-copy .icon { width: 14px; height: 14px; }
.hash-copy.is-copied { color: var(--success); }
/* Touch screens: 44px to the finger. The EN/RU switch keeps its look and gets a taller invisible hit area. */
@media (pointer: coarse) {
  .archive-link { min-height: 44px; } /* footer links: next to their own rule below */
  /* The hash keeps its slim line; the finger gets a taller invisible area */
  .hash-copy { position: relative; }
  .hash-copy::after { content: ""; position: absolute; inset: -8px 0; }
  .lang-switch button { position: relative; }
  .lang-switch button::after { content: ""; position: absolute; inset: -6px 0; }
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  transition: color var(--ease);
}
.footer-links a:hover { color: var(--text); }
@media (pointer: coarse) { .footer-links a { min-height: 44px; } } /* easy to hit with a finger */
.footer-end { margin-left: auto; align-self: flex-end; }

.help-line { margin-top: 16px; color: var(--muted); font-size: var(--fs-sm); }

/* -- Toast --------------------------------------------------------------- */

.toast {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: 84px;
  padding: 8px 16px;
  border-radius: var(--pill);
  background: var(--selected);
  color: var(--on-selected);
  font-size: var(--fs-sm);
  font-weight: 600;
  translate: -50% 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ease), transform var(--ease);
  transform: translateY(6px);
}
.toast.is-visible { opacity: 1; transform: none; }

/* -- Responsive ---------------------------------------------------------- */

@media (max-width: 1023px) {
  .build {
    display: block;
  }
  .build-panel { position: static; margin-top: 24px; }
  .dl-bar { display: block; }
  .has-dl-bar .footer { padding-bottom: 72px; }
  .container-narrow { max-width: var(--container); }
}

@media (max-width: 720px) {
  :root { --gutter: 16px; }
  html { scroll-padding-top: 16px; }

  .topbar { position: static; backdrop-filter: none; }
  .topbar-inner { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding-block: 10px 6px; min-height: 0; }
  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: calc(var(--gutter) - 12px) var(--gutter);
    overflow-x: auto;
    scrollbar-width: none;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav .nav-external { margin-left: 0; }

  /* Phones: the question, both choices and the Download button fit the first screen (~390x750) */
  .home { padding-block: 24px 48px; }
  .hero { margin-bottom: 20px; }
  .hero h1 { font-size: 1.75rem; }
  .hero p { margin-top: 6px; font-size: .9375rem; }
  .composer { padding: 20px; }
  .selectors { grid-template-columns: 1fr; gap: 12px; }
  .selectors .field-label { margin-bottom: 6px; }
  .result { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 16px; padding-top: 16px; }
  /* Phones: one column in source order; the chat link is last, right under the support line, the same quiet size,
     so the two lines read as one note (the finger gets a taller invisible area instead of a tall row) */
  .result { grid-template-rows: none; }
  .result > :first-child, .result > .dl-actions { grid-column: auto; grid-row: auto; }
  /* One column: a line separates the build description from the download buttons */
  .result > .dl-actions { padding-top: 16px; border-top: 1px solid var(--border); }
  .more { grid-template-columns: 1fr; }

  .gallery { display: flex; flex-wrap: wrap; }
  .shot { flex: 0 0 calc((100% - 16px) / 3); }
  .shot:first-child { flex-basis: 100%; }
  .shot:nth-child(n + 5) { flex-basis: calc((100% - 8px) / 2); }
  .req div { grid-template-columns: 1fr; gap: 2px; }

  .row { grid-template-columns: minmax(0, 1fr); } /* may shrink: with a larger browser font the buttons wrap instead of being cut */
  .row-actions { flex-wrap: wrap; }
  .row-actions .btn { flex: 1; }

  .toolbar { top: 0; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  /* More chips to the right: a soft fade on the edge (site.js sets the class), like the header links */
  .chips.is-scrollable { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); }
  .item { grid-template-columns: 1fr; }
  .item-action { justify-content: flex-start; } /* a compact button, not a full-width bar on every item */
  .keys div { grid-template-columns: 1fr; gap: 0; }

  .footer-end { margin-left: 0; }
  .toast { bottom: 88px; }
}
/* Short phone screens (Safari with its bars, iPhone SE): the subtitle goes, the build name below says the same */
@media (max-width: 720px) and (max-height: 760px) {
  .home { padding-top: 16px; }
  .hero p { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-property: opacity, color, background-color, border-color !important; transition-duration: 120ms !important; }
}

/* -- Support ------------------------------------------------------------- */

.support-nudge { color: var(--muted); font-size: var(--fs-xs); text-align: center; }
/* "support the project" moves to the next line whole instead of breaking in two */
.support-nudge .link { white-space: nowrap; }
.support-grid { display: grid; gap: 12px; margin-top: 32px; }
/* Links like /support#crypto from Telegram posts: keep the card clear of the sticky header */
.support-card[id] { scroll-margin-top: 88px; }
.support-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.support-card h2 { display: flex; align-items: center; gap: 8px; font-size: var(--fs-lg); }
.support-card p { color: var(--muted); font-size: var(--fs-sm); }
/* Layout like the Telegram post: the two card payments side by side, crypto below across the full width.
   Russian visitors mostly have Russian cards, so YooMoney comes first for them, the card payment
   (Tribute) first for everyone else. Patreon (when set) goes on top. */
.support-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.support-card-main { grid-column: 1 / -1; order: -3; }
.support-card-tribute { order: -1; }
.support-card-yoomoney { order: 0; }
.lang-ru-active .support-card-yoomoney { order: -2; }
.support-card.crypto { grid-column: 1 / -1; order: 1; }
.support-card-tribute .btn, .support-card-yoomoney .btn { margin-top: auto; }
@media (max-width: 720px) {
  .support-grid { grid-template-columns: 1fr; }
}
.crypto-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; }
.select-field { display: grid; gap: 6px; min-width: 0; }
.select-label { color: var(--muted); font-size: var(--fs-xs); }
.select-wrap { position: relative; display: block; }
.select-wrap select {
  width: 100%;
  min-height: 44px;
  padding: 0 40px 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 500;
  cursor: pointer;
  appearance: none;
  transition: border-color var(--ease);
}
.select-wrap select:hover { border-color: var(--muted); }
.select-wrap select:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.select-chevron { position: absolute; top: 50%; right: 14px; width: 18px; height: 18px; color: var(--muted); translate: 0 -50%; pointer-events: none; transition: rotate var(--ease); }

/* Custom dropdown built by site.js on top of the native <select> */
.is-enhanced select { display: none; }
.dd-button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 0 40px 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  background: var(--bg);
  color: var(--text);
  font-size: var(--fs-sm);
  text-align: left;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.dd-button:hover, .is-open .dd-button { border-color: rgb(255 255 255 / .32); }
.dd-button:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; border-radius: var(--r-md); }
.is-open .select-chevron { rotate: 180deg; }
.dd-name { font-weight: 600; white-space: nowrap; }
.dd-sub { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.dd-list {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 280px;
  margin: 0;
  padding: 6px;
  overflow: auto;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  background: var(--raised);
  box-shadow: 0 18px 40px -12px rgb(0 0 0 / .7);
  outline: none;
}
.dd-list:not([hidden]) { animation: dd-in 140ms cubic-bezier(.2, 0, 0, 1); }
@keyframes dd-in { from { opacity: 0; transform: translateY(-4px); } }
.dd-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 10px;
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  cursor: pointer;
}
.dd-list li.is-active { background: var(--raised-hover); }
.dd-check { flex: none; width: 16px; height: 16px; margin-left: auto; opacity: 0; }
.dd-list li[aria-selected="true"] .dd-check { opacity: 1; }
.crypto-variant { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 16px; align-items: center; width: 100%; margin-top: 6px; }
.crypto-variant .qr { margin-top: 0; }
.crypto-info { display: grid; gap: 10px; min-width: 0; }
.support-card .crypto-warning { color: var(--muted); font-size: var(--fs-sm); }
.crypto-warning b { color: var(--text); font-weight: 600; }
.crypto-info .address { margin-top: 0; }
.crypto-list { display: grid; gap: 8px; font-size: var(--fs-sm); }
.crypto-list code { font-size: .75rem; overflow-wrap: anywhere; }
.qr { width: 160px; height: 160px; margin-top: 4px; border-radius: var(--r-sm); background: var(--paper); }
/* A new coin or network fades in instead of popping in (the QR, the address and the network warning together) */
@media (prefers-reduced-motion: no-preference) {
  .crypto-variant:not([hidden]) { animation: crypto-in 220ms cubic-bezier(.2, 0, 0, 1); }
  @keyframes crypto-in { from { opacity: 0; transform: translateY(4px); } }
}
.qr-wrap { position: relative; display: block; width: 160px; border-radius: var(--r-sm); }
.qr-wrap:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }
.qr-save {
  position: absolute;
  right: -10px;
  bottom: -10px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--raised-hover);
  color: var(--text);
  opacity: 0;
  transition: opacity var(--ease);
}
.qr-save .icon { width: 15px; height: 15px; }
/* Nothing is drawn over the QR code; the icon only confirms a save for a moment */
.qr-wrap.is-saved .qr-save { opacity: 1; }
.address {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: auto;
  padding: 4px 4px 4px 12px;
  border-radius: var(--r-sm);
  background: var(--bg);
}
.address code { font-size: .75rem; overflow-wrap: anywhere; }
@media (max-width: 720px) {
  .crypto-variant { grid-template-columns: 1fr; justify-items: start; }
  .crypto-fields { grid-template-columns: 1fr; }
}

/* -- Tweak pages --------------------------------------------------------- */

.tweak-category { margin-top: 12px; color: var(--muted); font-size: var(--fs-sm); }
.tweak-category + .page-title { margin-top: 4px; }
.tweak-card { margin-top: 24px; padding: 20px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.tweak-card > h2 { margin: 20px 0 12px; font-size: var(--fs-md); }
.tweak-card > .commands, .tweak-card > .chip-links, .tweak-card > .keys { margin-top: 0; }
.tweak-download { display: flex; align-items: center; gap: 12px; }
.related {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 0 20px;
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: background var(--ease);
}
.related + .related { border-top: 1px solid var(--border); }
.related:hover { background: var(--raised); }
.related .icon { color: var(--muted); }

/* Owner-only counters on the settings and tweak pages */
.tweak-stats { margin-top: 8px; }
.tg-stats { margin-top: 6px; padding-inline: 4px; }
/* Owner-only line under the header: laid over the top padding of the page, so appearing after load moves nothing */
.page-views { position: absolute; top: 0; left: 0; right: 0; z-index: 5; border-bottom: 1px dashed var(--border-strong); background: var(--bg); color: var(--muted); font-size: .75rem; line-height: 1.4; }
.page-views .container { padding-block: 5px; text-align: right; }
.owner-stats { margin-top: 20px; padding: 12px 20px; border: 1px dashed var(--border-strong); border-radius: var(--r-lg); }
.owner-stats summary { color: var(--muted); font-size: var(--fs-sm); font-weight: 600; cursor: pointer; }
.owner-stats summary:hover { color: var(--text); }
.owner-stats[open] summary { margin-bottom: 10px; }
.owner-stats ol { display: grid; gap: 2px; padding-left: 22px; list-style: decimal; color: var(--muted); font-size: var(--fs-sm); }
.owner-stats li::marker { font-size: var(--fs-xs); }
.owner-stats li a { color: var(--text); }
.owner-stats li a:hover { color: var(--accent-text); }
.owner-stats li span { float: right; font-variant-numeric: tabular-nums; }

/* -- Archive of old builds ------------------------------------------------ */
.archive-current { margin-top: 20px; }
.archive-current .more-card-sub { margin: 0 0 2px; }
/* Release heading: the build number, its month beside it, the edition below */
.archive-release .group-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin-bottom: 2px; }
.archive-date { color: var(--muted); font-size: var(--fs-sm); font-weight: 400; }
.archive-sub { margin-bottom: 12px; color: var(--muted); font-size: var(--fs-sm); }
/* Links to the archive: under the cards on the home page (closer to the footer), after the date on the build page */
.home:has(.archive-link) { padding-bottom: 36px; }
.archive-link { display: flex; align-items: center; gap: 4px; width: fit-content; margin: 24px auto 0; color: var(--muted); font-size: var(--fs-sm); transition: color var(--ease); }
.archive-link:hover { color: var(--text); }
.archive-link .icon { width: 14px; height: 14px; transition: transform var(--ease); }
.archive-link:hover .icon { transform: translateX(2px); }
.meta-archive { white-space: nowrap; }
/* One build on the home page: no picker row on top; the image language sits in the download column, above the button */
.result.result-solo { margin-top: 0; padding-top: 0; border-top: 0; }
/* The choice, then the action: the switch stands apart from Download (24px, against 10px inside the download group),
   is lower than the buttons on a mouse screen, and its chosen cell is flat, so it reads as a setting, not one more button */
.dl-actions > .lang-field { margin-bottom: 20px; }
.dl-actions .segmented::before { box-shadow: none; }
@media (pointer: fine) { .dl-actions .segmented label > span { min-height: 36px; } }
.hero p { text-wrap: balance; } /* no single word left alone on a phone's second line */
/* Home card: what was changed in the build, under its name */
.result-trust { display: flex; align-items: flex-start; gap: 6px; margin-top: 10px; color: var(--muted); font-size: var(--fs-sm); line-height: 1.45; }
.result-trust .icon { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--accent-text); }
/* The button already says which language it downloads, so the switch's label is for screen readers only */
.dl-actions > .lang-field .field-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* Build page of a build no longer updated: a calm note above the description */
.retired-note { margin: 16px 0 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; color: var(--muted); font-size: var(--fs-sm); line-height: 1.5; }
/* Phones: the footer as a neat two-column grid. With three sections the third (Contact) takes the full width,
   since its two links do not fit half of it; the copyright is the last line, on the left. */
@media (max-width: 720px) {
  .footer-inner { display: grid; grid-template-columns: max-content 1fr; gap: 20px 32px; }
  .footer-links a { white-space: nowrap; }
  .footer-inner > section:nth-of-type(3) { grid-column: 1 / -1; }
  .footer-end { grid-column: 1 / -1; margin: 0; align-self: auto; }
}
/* Phones: the owner line wraps onto two lines and would cover the page, so there it takes its own place */
@media (max-width: 720px) {
  .page-views { position: static; }
}

/* -- Chat with the author (assets/site.js, _src/chat/) ----------------------- */

.chat-dot {
  display: inline-block;
  align-self: flex-start;
  width: 8px;
  height: 8px;
  margin: 6px 0 0 -3px;   /* the link has a 6px gap: the dot sits right at the word, raised like a badge */
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 0 2px var(--bg);
}
@media (prefers-reduced-motion: no-preference) {
  .chat-dot { animation: chat-dot 2.4s ease-out 3; } /* three soft pulses when an answer comes, then a still dot */
  @keyframes chat-dot {
    0% { box-shadow: 0 0 0 2px var(--bg), 0 0 0 2px color-mix(in srgb, var(--danger) 60%, transparent); }
    70%, 100% { box-shadow: 0 0 0 2px var(--bg), 0 0 0 6px color-mix(in srgb, var(--danger) 0%, transparent); }
  }
}
.chat-dot[hidden] { display: none; }

.chat-fab {
  position: fixed;
  z-index: 55;
  right: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  max-width: 44px;
  height: 44px;
  padding: 7px;
  border: 1px solid rgb(255 255 255 / .1);
  border-radius: var(--pill);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 10px 30px rgb(0 0 0 / .35), inset 0 1px 0 rgb(255 255 255 / .05);
  color: var(--text);
  text-align: left;
  transition: max-width 360ms cubic-bezier(.2, 0, 0, 1), border-color var(--ease);
}
.chat-fab[hidden] { display: none; }
.chat-fab:hover { border-color: rgb(255 255 255 / .2); }
.chat-fab.is-peek { max-width: 300px; }
.chat-fab .chat-avatar { width: 28px; height: 28px; font-size: .8125rem; }
.chat-peek {
  display: grid;
  min-width: 0;
  padding: 0 10px 0 9px;
  visibility: hidden;   /* folded: the text overflows the pill unseen and must not catch clicks */
  opacity: 0;
  line-height: 1.25;
  white-space: nowrap;
  transition: opacity 200ms ease, visibility 0s 200ms;
}
.chat-fab.is-peek .chat-peek { visibility: visible; opacity: 1; transition: opacity 200ms ease 120ms, visibility 0s; }
.chat-peek b { color: var(--muted); font-size: .6875rem; font-weight: 500; letter-spacing: .02em; }
.chat-peek-text { overflow: hidden; max-width: 220px; font-size: .8125rem; text-overflow: ellipsis; }
.chat-fab-count {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 0 2px var(--bg);
}
@media (prefers-reduced-motion: no-preference) {
  .chat-fab { animation: chat-pop 320ms cubic-bezier(.16, 1, .3, 1); } /* settles in without overshoot */
  @keyframes chat-pop { from { opacity: 0; transform: translateY(8px) scale(.9); } }
}
@media (max-width: 1023px) {
  .has-dl-bar .chat-fab { bottom: 84px; }
}
@media (max-width: 720px) {
  .chat-fab { right: 16px; bottom: 16px; }
  .chat-fab.is-peek { max-width: calc(100vw - 32px); }
}

.chat {
  --chat-bg: #0e1621;
  --chat-head: #17212b;
  --chat-in: #182533;
  --chat-out: #2b5278;
  --chat-accent: #5ea6e8;
  --chat-strong: #fff;
  --chat-soft: #9cc8f2;
  --chat-meta-out: #a9d0f5;
  --chat-failed: #5c2b33;
  --chat-field: #1a2633;
  --chat-online: #4fae4e;
  --chat-verify: #3b82f6;
  position: fixed;
  z-index: 60;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  width: 380px;
  height: min(600px, calc(100dvh - 40px));
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--chat-bg);
  box-shadow: 0 24px 64px rgb(0 0 0 / .5);
  font-size: .9375rem;
  line-height: 1.4;
}
.chat[hidden] { display: none; }
/* Opening and closing: on a computer the window grows softly out of its corner; on a phone (full screen) it
   slides up from the bottom like a sheet in an app. `is-closing` plays the way back, then site.js hides it. */
@media (prefers-reduced-motion: no-preference) {
  .chat { transform-origin: 100% 100%; animation: chat-open 300ms cubic-bezier(.16, 1, .3, 1); }
  .chat.is-closing { animation: chat-close 180ms cubic-bezier(.4, 0, 1, 1) forwards; }
  @keyframes chat-open { from { opacity: 0; transform: translateY(18px) scale(.95); } }
  @keyframes chat-close { to { opacity: 0; transform: translateY(12px) scale(.97); } }
}
@media (max-width: 720px) and (prefers-reduced-motion: no-preference) {
  .chat { animation: chat-sheet-open 380ms cubic-bezier(.16, 1, .3, 1); }
  .chat.is-closing { animation: chat-sheet-close 260ms cubic-bezier(.4, 0, 1, 1) forwards; }
  @keyframes chat-sheet-open { from { transform: translateY(100%); } }
  @keyframes chat-sheet-close { to { transform: translateY(100%); } }
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 8px;
  background: var(--chat-head);
  border-bottom: 1px solid rgb(0 0 0 / .3);
}
.chat-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--muted);
  transition: background var(--ease), color var(--ease);
}
.chat-close:hover { background: rgb(255 255 255 / .06); color: var(--text); }
.chat-close svg { width: 20px; height: 20px; }
.chat-avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--glow-a), var(--accent));
  color: var(--on-accent);
  font-weight: 700;
  font-size: 1.0625rem;
}
.chat-who { display: grid; min-width: 0; }
.chat-title { font-weight: 600; color: var(--text); }
.chat-sub { overflow: hidden; color: var(--muted); font-size: var(--fs-xs); text-overflow: ellipsis; white-space: nowrap; }

.chat-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    radial-gradient(circle at 15% 20%, color-mix(in srgb, var(--glow-a) 7%, transparent), transparent 40%),
    radial-gradient(circle at 85% 80%, color-mix(in srgb, var(--accent) 6%, transparent), transparent 45%),
    var(--chat-bg);
}
.chat-intro {
  display: grid;
  justify-items: center;
  gap: 4px;
  align-self: center;
  max-width: 300px;
  margin: 8px 0 12px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: rgb(0 0 0 / .28);
  font-size: .8125rem;
  line-height: 1.45;
  text-align: center;
}
.chat-intro b { color: var(--text); font-size: var(--fs-sm); font-weight: 600; }
.chat-intro span { color: rgb(255 255 255 / .6); }
.chat-intro button {
  margin-top: 6px;
  padding: 6px 12px;
  border-radius: var(--pill);
  background: color-mix(in srgb, var(--chat-accent) 16%, transparent);
  color: var(--chat-soft);
  font-size: .8125rem;
  font-weight: 500;
  transition: background var(--ease);
}
.chat-intro button:hover { background: color-mix(in srgb, var(--chat-accent) 26%, transparent); }
.chat-accent { color: var(--chat-strong); font-weight: 700; }
.chat-verify-bar {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px 10px 12px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 22%, transparent), color-mix(in srgb, var(--accent) 8%, transparent));
  border-bottom: 1px solid color-mix(in srgb, var(--chat-verify) 28%, transparent);
  box-shadow: inset 3px 0 0 var(--chat-verify);
}
.chat-verify-bar[hidden] { display: none; }
.chat-verify-icon { flex: none; font-size: 1.125rem; line-height: 1.25; }
.chat-verify-text { display: grid; gap: 1px; min-width: 0; }
.chat-verify-title { color: var(--chat-strong); font-size: var(--fs-sm); font-weight: 600; }
.chat-verify-sub { overflow-wrap: anywhere; color: rgb(255 255 255 / .72); font-size: .7812rem; line-height: 1.4; }
@media (prefers-reduced-motion: no-preference) {
  .chat-verify-bar.is-pulse { animation: chat-verify-flash 1.4s ease-out 1; }
  @keyframes chat-verify-flash { 0%, 30% { background-color: color-mix(in srgb, var(--chat-verify) 38%, transparent); } }
}
.chat-day {
  align-self: center;
  margin: 8px 0 4px;
  padding: 2px 10px;
  border-radius: var(--pill);
  background: rgb(0 0 0 / .28);
  color: var(--text);
  font-size: .75rem;
  font-weight: 500;
}
.chat-msg {
  position: relative;
  max-width: 82%;
  padding: 6px 10px 6px 11px;
  border-radius: 14px;
  color: var(--chat-strong);
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.chat-msg.is-in { align-self: flex-start; background: var(--chat-in); border-bottom-left-radius: 4px; }
.chat-msg.is-out { align-self: flex-end; background: var(--chat-out); border-bottom-right-radius: 4px; }
.chat-msg.is-failed { background: var(--chat-failed); cursor: pointer; }
.chat-meta {
  float: right;
  margin: 6px 0 -4px 10px;
  color: rgb(255 255 255 / .55);
  font-size: .6875rem;
  line-height: 1;
  white-space: nowrap;
}
.chat-msg.is-out .chat-meta { color: var(--chat-meta-out); }

.chat-form { display: grid; gap: 8px; padding: 10px; background: var(--chat-head); border-top: 1px solid rgb(0 0 0 / .3); }
.chat-contact, .chat-input {
  width: 100%;
  border: 0;
  outline: 0;
  font: inherit;
  color: var(--text);
  background: transparent;
}
.chat-contact-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 6px 6px 12px;
  background: var(--chat-field);
  border-bottom: 1px solid rgb(0 0 0 / .3);
  box-shadow: inset 3px 0 0 var(--chat-accent);
}
.chat-contact-bar[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .chat-contact-bar { animation: chat-bar-in 160ms cubic-bezier(.2, 0, 0, 1); }
  @keyframes chat-bar-in { from { opacity: 0; transform: translateY(-6px); } }
}
.chat-contact { flex: 1; min-width: 0; padding: 6px 4px; font-size: var(--fs-sm); }
.chat-contact-save, .chat-contact-close, .chat-head-btn {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--muted);
  transition: color var(--ease), background var(--ease);
}
.chat-contact-save { color: var(--chat-accent); }
.chat-contact-save:hover, .chat-contact-close:hover, .chat-head-btn:hover { background: rgb(255 255 255 / .06); color: var(--text); }
.chat-contact-save svg, .chat-contact-close svg { width: 18px; height: 18px; }
.chat-head-btn { position: relative; width: 36px; height: 36px; }
.chat-head-btn[hidden] { display: none; }
.chat-head-btn svg { width: 20px; height: 20px; }
.chat-who { margin-right: auto; }
.chat-head { gap: 8px; }
.chat-head .chat-avatar { margin-left: 4px; }
.chat-contact-toggle[aria-expanded="true"] { color: var(--chat-accent); }
.chat-head-btn.is-set::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--chat-online);
  box-shadow: 0 0 0 2px var(--chat-head);
}
@media (prefers-reduced-motion: no-preference) {
  .chat-head-btn.is-pulse { animation: chat-pulse 1.2s ease-out 2; }
  @keyframes chat-pulse {
    0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--chat-accent) 55%, transparent); color: var(--chat-accent); }
    100% { box-shadow: 0 0 0 12px color-mix(in srgb, var(--chat-accent) 0%, transparent); }
  }
}
.chat-contact::placeholder, .chat-input::placeholder { color: rgb(255 255 255 / .4); }
.chat-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.chat-row { display: flex; align-items: flex-end; gap: 8px; }
.chat-input {
  flex: 1;
  max-height: 132px;
  padding: 9px 4px 9px 8px;
  resize: none;
  line-height: 1.4;
}
.chat-send {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #2f7fd0;
  color: #fff;
  transition: filter var(--ease), transform var(--ease);
}
.chat-send:hover { filter: brightness(1.1); }
.chat-send:active { transform: scale(.94); }
.chat-send svg { width: 20px; height: 20px; margin-left: 2px; }

.chat-msg.has-photo { padding: 3px 3px 6px; }
.chat-msg.has-photo .chat-text { display: block; padding: 4px 7px 0; }
.chat-msg.has-photo .chat-meta { margin-right: 6px; }
.chat-photo { display: block; }
.chat-photo img {
  display: block;
  max-width: 100%;
  max-height: 300px;
  border-radius: 11px;
  background: rgb(0 0 0 / .2);
}
.chat-file { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 2px 0; color: inherit; }
.chat-file-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--chat-accent);
  color: var(--on-accent);
}
.chat-file-icon svg { width: 20px; height: 20px; }
.chat-file-info { display: grid; min-width: 0; }
.chat-file-info b { overflow: hidden; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.chat-file-info span { color: rgb(255 255 255 / .6); font-size: .75rem; }
.chat-msg .chat-file + .chat-text { display: block; margin-top: 4px; }
.chat-attach {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--muted);
  transition: color var(--ease), background var(--ease);
}
.chat-attach:hover { color: var(--text); background: rgb(255 255 255 / .06); }
.chat-attach svg { width: 22px; height: 22px; }
.chat-notify {
  display: grid;
  justify-items: center;
  gap: 4px;
  align-self: center;
  margin: 10px 0 4px;
  text-align: center;
}
.chat-notify button {
  padding: 7px 14px;
  border-radius: var(--pill);
  background: color-mix(in srgb, var(--chat-accent) 16%, transparent);
  color: var(--chat-soft);
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: background var(--ease);
}
.chat-notify button:hover { background: color-mix(in srgb, var(--chat-accent) 26%, transparent); }
.chat-notify button:disabled { opacity: .6; cursor: default; }
.chat-notify span { color: rgb(255 255 255 / .45); font-size: .75rem; }
.chat.is-drop .chat-list { outline: 2px dashed var(--chat-accent); outline-offset: -8px; }

@media (max-width: 720px) {
  .chat { inset: 0; width: auto; height: 100dvh; border: 0; border-radius: 0; }
  .chat-open, .chat-open body { overflow: hidden; }
  .chat-input { font-size: 1rem; }   /* iPhone zooms into smaller inputs */
}

/* Animations off in the system: no movement, but the chat still fades in and out instead of jumping
   (beats the global reset above by specificity) */
@media (prefers-reduced-motion: reduce) {
  .chat:not([hidden]) { animation: chat-fade-in 200ms ease-out !important; }
  .chat.is-closing { animation: chat-fade-out 160ms ease-in forwards !important; }
  @keyframes chat-fade-in { from { opacity: 0; } }
  @keyframes chat-fade-out { to { opacity: 0; } }
}

/* -- Winter snow (assets/snow.js, 1 Dec - 31 Jan) ---------------------------- */

.snow { position: fixed; z-index: 45; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* Falling snow is the background: above the page colour, under the content (main and the footer are lifted over it;
   the header is sticky with its own z-index, the fixed bars and the chat stay above as before) */
.snow-back { z-index: 0; }
/* The snow on the cards: pictures placed in the page, so they scroll with the cards (above them, under the header) */
/* The same level as main and before it in the page (snow.js puts it first in body): the snow shows over the cards'
   edges, where main is see-through, but every menu or popup opened in main (Share, a dropdown) covers it */
.snow-cards { position: absolute; z-index: 1; top: 0; left: 0; width: 0; height: 0; pointer-events: none; }
.snow-cards canvas { position: absolute; top: 0; left: 0; opacity: .92; }
/* The drift at the bottom of the screen: held there by the browser, whatever the phone's address bar does */
.snow-ground { position: fixed; z-index: 45; left: 0; bottom: 0; opacity: .92; pointer-events: none; }
main, .footer { position: relative; z-index: 1; }
/* The switch in the header: a round button the height of the language switch, just before it */
.snow-switch {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-right: -16px;
  border: 1px solid var(--border);
  border-radius: var(--pill);
  color: var(--muted);
  transition: color var(--ease), border-color var(--ease);
}
.snow-switch:hover { color: var(--text); border-color: var(--border-strong, var(--muted)); }
.snow-switch svg { width: 18px; height: 18px; }
/* Pressed on: the snowflake turns a quarter with a spring and a frosty ring spreads out of the button (the snow
   bursts out of it, snow.js). Pressed off: it shrinks a little and the stroke draws across it while the snow thaws. */
.snow-switch { position: relative; }
.snow-switch::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1.5px solid var(--frost);
  opacity: 0;
  pointer-events: none;
}
.snow-switch.is-snow-on svg { animation: snow-turn 700ms cubic-bezier(.25, 1.6, .45, 1); }
.snow-switch.is-snow-on::after { animation: snow-ring 650ms cubic-bezier(.2, .8, .2, 1); }
.snow-switch.is-snow-off svg { animation: snow-shrink 420ms cubic-bezier(.3, .7, .3, 1); }
.snow-switch.is-snow-off .snow-slash { stroke-dasharray: 26; animation: snow-strike 340ms cubic-bezier(.4, 0, .2, 1) 60ms both; }
@keyframes snow-turn {
  0% { transform: rotate(0) scale(1); }
  35% { transform: rotate(50deg) scale(1.28); color: var(--frost-light); }
  100% { transform: rotate(90deg) scale(1); }
}
@keyframes snow-ring {
  0% { opacity: .75; transform: scale(1); }
  100% { opacity: 0; transform: scale(2.1); }
}
@keyframes snow-shrink {
  0% { transform: scale(1); }
  40% { transform: scale(.78); }
  100% { transform: scale(1); }
}
@keyframes snow-strike { from { stroke-dashoffset: 26; } to { stroke-dashoffset: 0; } }
.snow-switch .snow-slash { display: none; }
/* Off: a dimmer snowflake struck through, the stroke cut out of it by a band of the header's colour */
.snow-switch[aria-pressed="false"] { color: rgb(255 255 255 / .38); }
.snow-switch[aria-pressed="false"]:hover { color: var(--muted); }
.snow-switch[aria-pressed="false"] .snow-slash { display: inline; stroke: var(--text); }
.snow-switch[aria-pressed="false"] .snow-slash-gap { stroke: var(--bg); stroke-width: 6; }
/* Once a tab, after the snow came in: two soft breaths with a cold glow, to show where the snow is switched off */
.snow-switch.is-breath { animation: snow-breath 1.5s ease-in-out 2; }
@keyframes snow-breath {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 color-mix(in srgb, var(--frost) 0%, transparent); }
  45% { transform: scale(1.16); box-shadow: 0 0 0 7px color-mix(in srgb, var(--frost) 20%, transparent); color: var(--frost-light); border-color: color-mix(in srgb, var(--frost) 60%, transparent); }
}
@media (max-width: 900px) {
  .topbar-inner:has(.snow-switch) { grid-template-columns: 1fr auto auto; }
  .snow-switch { margin-right: -4px; }
}

/* -- The site's voice (2026-11-14) -------------------------------------- */
/* Page headings, section headings and the site name in Wix Madefor Display; everything people read or press stays in Inter */
.hero h1, .page-title, .section > h2, .group-title, .brand span {
  font-family: "Wix Madefor Display", Inter, system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -.025em;
}
.brand span { font-size: 1.0625rem; }
.hero h1 { letter-spacing: -.032em; } /* the large size takes tighter tracking */
/* Home: the build name and the cards' titles speak in the same voice, with the looser tracking of small sizes */
.result h2, .home .more-card-title {
  font-family: "Wix Madefor Display", Inter, system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -.012em;
}

/* -- Browser surfaces (2026-11-16) -------------------------------------- */
::selection { background: color-mix(in srgb, var(--accent) 55%, transparent); color: var(--on-accent); }
html { scrollbar-color: var(--raised-hover) var(--bg); }
input, textarea { caret-color: var(--accent-text); }

/* The header's lower edge appears once the page scrolls under it (wide screens; phones have a static header) */
@supports (animation-timeline: scroll()) {
  @media (min-width: 721px) and (prefers-reduced-motion: no-preference) {
    .topbar { animation: topbar-edge linear both; animation-timeline: scroll(root); animation-range: 0 48px; }
  }
}
@keyframes topbar-edge { from { border-bottom-color: transparent; } }

/* SHA-256 copy: the copy icon turns into a check for a moment */
.hash-ico { display: grid; flex: none; }
.hash-ico .icon { grid-area: 1 / 1; transition: opacity var(--ease), scale 220ms cubic-bezier(.2, .8, .2, 1); }
.hash-ico .icon + .icon, .is-copied .hash-ico .icon:first-child { opacity: 0; scale: .5; }
.is-copied .hash-ico .icon + .icon { opacity: 1; scale: 1; }

/* ==========================================================================
   Home without boxes (2026-11-22). The owner found the card cramped: the build and its download now lie on the
   page ground, two columns under one hairline, everything on one 1000px left line (header and footer too).
   Under them one quiet line (free + chat), one large screenshot as the way into the build page, then a row of
   three links (Windows 10, Ghost Spectre, Settings). No SHA-256 here (the build page has it), no Telegram card
   (header, footer and the line after a download keep it).
   ========================================================================== */
.home .composer { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.hero-sub-phone { display: none; }
.home .hero h1 { text-wrap: balance; }
.home-note .support-nudge { margin: 0; text-align: left; font-size: var(--fs-sm); }
.home-note .details-link { margin: 0; min-height: 0; color: var(--muted); font-size: var(--fs-sm); font-weight: 400; }
.home-note .details-link:hover { color: var(--text); }
.build-window { display: block; position: relative; overflow: hidden; }
.build-window img { display: block; width: 100%; object-fit: cover; object-position: center 35%; transition: transform 600ms cubic-bezier(.2, .8, .2, 1); }
.build-window:hover img { transform: scale(1.02); }
.build-window-text { position: absolute; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.build-window-title { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--text); }
.build-window-title .icon { width: 16px; height: 16px; transition: transform var(--ease); }
.build-window:is(:hover, :focus-visible) .build-window-title .icon { transform: translateX(3px); }
.build-window-sub { color: var(--muted); font-size: var(--fs-sm); }
.build-window:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 4px; }
/* the next steps: plain rows on the page ground, a hairline each */
.home .more-card { border: 0; border-top: 1px solid var(--border); border-radius: 0; background: none; }
.home .more-card:hover { background: none; border-color: var(--border); }
.home .more-card-title { transition: color var(--ease); }
.home .more-card:hover .more-card-title { color: var(--accent-text); }

@media (min-width: 721px) {
  .home .container-narrow, body:has(main.home) :is(.topbar, .footer) .container { max-width: 1000px; }
  .home .hero { margin: 0 0 48px; text-align: left; }
  .home .hero h1 { font-size: clamp(2.25rem, 2.6vw + 1rem, 3.25rem); } /* one size for both languages; the English line stays one line */
  /* Two builds: the question is longer than the one-build statement; the size follows the column width so the Russian
     line stays one line too (the text is ~19 font sizes wide), both languages the same size */
  .home .hero-pick h1 { font-size: clamp(2rem, min(2.6vw + 1rem, (100vw - 64px) / 19.5), 3.125rem); }
  .result.result-solo { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px 64px; align-items: start; padding-top: 40px; border-top: 1px solid var(--border); }
  .home .result h2 { font-size: 1.5rem; letter-spacing: -.015em; white-space: nowrap; }
  .home .result .meta { margin-top: 12px; font-size: 1rem; }
  .home .result-trust { margin-top: 14px; font-size: 1rem; }
  .home .segmented label > span { min-height: 48px; font-size: .9375rem; }
  .home .dl-actions { gap: 12px; }
  .home #download-link { min-height: 58px; font-size: 1.0625rem; border-radius: 14px; }
  .home .dl-alt .btn-secondary { min-height: 46px; font-size: .9375rem; }
  .home-note { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 28px; margin-top: 36px; }
  .build-window { margin-top: 56px; border-radius: 16px 16px 0 0; }
  .build-window img { height: 340px; -webkit-mask-image: linear-gradient(#000 50%, transparent); mask-image: linear-gradient(#000 50%, transparent); }
  .build-window-text { left: 32px; right: 32px; bottom: 28px; }
  .build-window-title { font-size: 1.25rem; }
  .home .more { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; margin-top: 64px; }
  .home .more-card { align-items: flex-start; padding: 24px 0; }
  .home .more-card-title { font-size: var(--fs-md); }
  .home .more-card-sub { margin-top: 6px; }
  .home .archive-link { margin: 40px 0 0; }
}
@media (max-width: 720px) {
  .home .hero { text-align: left; }
  /* Phones: the same rhythm as on a computer, tight inside a group, air between groups: the statement, a hairline,
     the build, the download, the quiet line, the picture, the links. Download still ends near the middle of the first screen */
  .home { padding-block: 32px 56px; }
  .home .hero { margin-bottom: 0; }
  .home .hero h1 { font-size: 2rem; line-height: 1.08; }
  .home .hero p { margin-top: 10px; font-size: 1rem; }
  /* the build's main fact moves up into the subtitle (kept on short screens too); the build block keeps three lines */
  .home .hero p { display: block; }
  .home .hero-sub { display: none; }
  .home .hero-sub-phone { display: inline; }
  .home .result-trust { display: none; }
  .home .result.result-solo { gap: 28px; margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--border); }
  .home .result > .dl-actions { padding-top: 0; border-top: 0; }
  .home .result .meta { margin-top: 10px; }
  .home .result-trust { margin-top: 12px; }
  .home .dl-actions > .lang-field { margin-bottom: 8px; }
  .home-note { display: grid; justify-items: start; gap: 10px; margin-top: 28px; }
  .home-note .support-nudge, .home-note .details-link { font-size: var(--fs-xs); }
  .home-note .details-link { position: relative; }
  .home-note .details-link::after { content: ""; position: absolute; inset: -10px 0; } /* a finger-sized area for a quiet line */
  .build-window { margin-top: 36px; border-radius: 14px; }
  .build-window::after { content: ""; position: absolute; inset: auto 0 0; height: 65%; background: linear-gradient(transparent, rgb(10 12 16 / .88)); pointer-events: none; } /* the caption reads on the bright sea, the taskbar strip goes dark */
  .build-window-text { z-index: 1; }
  .build-window img { height: 220px; }
  .build-window-text { left: 16px; right: 16px; bottom: 14px; display: grid; gap: 2px; }
  .build-window-title { color: #fff; text-shadow: 0 1px 8px rgb(0 0 0 / .7); }
  .build-window-sub { color: rgb(255 255 255 / .85); font-size: var(--fs-xs); text-shadow: 0 1px 8px rgb(0 0 0 / .7); }
  .home .more { gap: 0; margin-top: 40px; }
  .home .more-card { padding: 20px 2px; }
  .home .more-card:last-child { border-bottom: 1px solid var(--border); }
  .home .archive-link { margin: 24px 0 0; }
}

/* ==========================================================================
   The rest of the site without boxes (2026-11-22, cleaned up 2026-11-23 after the deep review). Text and lists lie
   on the page ground; hairlines and space do the grouping. Controls (buttons, fields, switches, code wells) keep
   their own edge. Group and section headings have no line under them, so they never read as one more row.
   ========================================================================== */

/* Header and footer share one width on every page; between 721 and 900px the header takes the two-row phone
   layout (the one-row header ran off the screen there) */
:is(.topbar, .footer) .container { max-width: 1000px; }
@media (min-width: 721px) and (max-width: 900px) {
  .topbar-inner { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding-block: 10px 6px; min-height: 0; }
  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: calc(var(--gutter) - 12px) var(--gutter);
    overflow-x: auto;
    scrollbar-width: none;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav .nav-external { margin-left: 0; }
}
.brand { flex: none; }
/* Nothing may scroll the page sideways (a full-width band once did, with a Windows scrollbar) */
main { overflow-x: clip; }
/* No lone word on the last line of a paragraph */
p { text-wrap: pretty; }

/* -- Build pages --------------------------------------------------------- */
.container.build { max-width: 1000px; }
.build { grid-template-columns: minmax(0, 1fr) 300px; }
.build-panel .panel { padding: 0; border: 0; border-radius: 0; background: none; }
.build-panel .panel-title { display: none; } /* the page's own title says the same right beside it */
.build-panel .panel-label { margin-top: 0; }
.build-panel .hash-copy { justify-self: start; }
.build-panel .support-nudge { text-align: left; }
.build-panel .tg-card { margin-top: 20px; padding: 20px 0 0; border: 0; border-top: 1px solid var(--hairline); border-radius: 0; background: none; }
.build-panel .tg-card:hover { background: none; }
.build-panel .tg-card:hover .tg-title { color: var(--accent-text); }
.build-panel .tg-title { transition: color var(--ease); }
.build-panel .tg-icon { display: none; }
/* Wide screens: reading on the left, acting on the right, parted by one hairline that runs the full height */
@media (min-width: 1024px) {
  .build { position: relative; }
  .build::after { content: ""; position: absolute; top: 0; bottom: 0; right: calc(300px + var(--gutter)); border-left: 1px solid var(--hairline); pointer-events: none; }
  .build-panel { padding-left: 40px; }
}
/* Phones and tablets: the panel is a full-width band of the surface tone under the description, edge to edge
   (no frame, no corners); on a tablet its controls keep a phone-like width instead of stretching */
@media (max-width: 1023px) {
  .build-panel { margin: 32px calc(var(--gutter) * -1); padding: 28px var(--gutter) 20px; background: var(--surface); border-block: 1px solid var(--hairline); }
  .build-panel > * { max-width: 520px; }
  .build-panel .tg-card { padding-bottom: 0; }
}
.req, .sums { border-bottom: 1px solid var(--hairline); }
.req div + div, .sum-row + .sum-row { border-top: 1px solid var(--hairline); }
.req div { padding: 14px 0; }
.sum-row { padding: 8px 0; }
.retired-note { padding: 0; border: 0; border-radius: 0; }
.build-body .section > h2 { margin-bottom: 20px; font-size: 1.5rem; letter-spacing: -.015em; }
.build-body .section { margin-top: 72px; }
@media (max-width: 720px) {
  .build-body .section { margin-top: 48px; }
  .build-body .section > h2 { font-size: 1.25rem; }
}

/* -- Lists: Ghost Spectre, the archive, Settings, tweak pages ------------- */
.page .rows { border: 0; border-bottom: 1px solid var(--hairline); border-radius: 0; background: none; overflow: visible; isolation: isolate; }
.page :is(.row, .item, .related) { position: relative; padding-inline: 0; }
.page :is(.row, .item, .related) + :is(.row, .item, .related) { border-top: 1px solid var(--hairline); }
.page .item { padding-block: 22px; }
.page .row { padding-block: 20px; }
.page .group + .group { margin-top: 72px; }
.page .group-title { margin-bottom: 4px; font-size: 1.5rem; letter-spacing: -.015em; }
/* a soft fill a touch wider than the row: on hover, when a control inside has the keyboard focus, and on arrival
   by a link to the row (#recommended, #featured) */
.page :is(.row, .item, .related)::before { content: ""; position: absolute; inset: 0 -16px; z-index: -1; border-radius: 12px; background: var(--surface); opacity: 0; transition: opacity var(--ease); }
.page :is(.row, .item, .related):is(:hover, :focus-within, :target)::before { opacity: 1; }
@media (hover: none) { .page :is(.row, .item, .related):not(:target)::before { display: none; } }
.page :is(.row, .item) { scroll-margin-top: 140px; }
.page .related:hover { background: none; color: var(--accent-text); }
.page .related .icon { transition: transform var(--ease), color var(--ease); }
.page .related:hover .icon { transform: translateX(3px); color: var(--text); }
.page .item:target { background: none; }
.page .item:target .item-title { color: var(--accent-text); }

/* Ghost Spectre: a build past its end of servicing steps back, badge and button too; the recommended build
   carries the page's one blue button (build.mjs) */
.row-muted .badge { color: var(--muted); border-color: var(--border); }
.row-muted .btn-secondary { color: var(--muted); border-color: var(--border); }
.row-muted .btn-secondary:hover { color: var(--text); border-color: var(--border-strong); }
/* Phones: compact buttons, not six full-width bars (the recommended one stays wide) */
@media (max-width: 720px) {
  .page .row-actions .btn { flex: 0 0 auto; }
  .page #recommended .row-actions .btn { flex: 1; }
}

/* Settings rows: the title leads; flags and related links step back to quiet metadata; a hover on the row
   shows that its title opens the tweak page */
.page .item-tags .badge { color: var(--muted); border-color: var(--border); }
.page .item-links .link { color: var(--muted); text-decoration-color: var(--border-strong); }
.page .item-links .link:hover { color: var(--accent-text); text-decoration-color: currentColor; }
.page .item:hover .item-title a { color: var(--accent-text); }
.chip-links .btn-secondary { border-color: var(--border); }
.item-full .item-desc { max-width: 70ch; }

/* The archive: the current version is a row between hairlines, not a box */
.archive-current { padding: 18px 0; border: 0; border-block: 1px solid var(--hairline); border-radius: 0; background: none; }
.archive-current:hover { background: none; border-color: var(--hairline); }
.archive-current:hover .more-card-title { color: var(--accent-text); }

/* -- Tweak pages and Support --------------------------------------------- */
.page .tweak-card { padding: 24px 0; border: 0; border-block: 1px solid var(--hairline); border-radius: 0; background: none; }
.page .support-grid { gap: 0 48px; border-block: 1px solid var(--hairline); }
.page .support-card { padding: 28px 0; border: 0; border-radius: 0; background: none; }
.page .support-card.crypto { border-top: 1px solid var(--hairline); }
.page .support-card .address { border: 1px solid var(--border); }
.address code { font-size: .875rem; letter-spacing: .02em; }
.qr-save { border-color: var(--bg); }
/* Phones: you cannot scan your own screen, so the warning and the address come first and the QR after them */
@media (max-width: 720px) {
  .crypto-variant { display: flex; flex-direction: column; }
  .crypto-variant .crypto-info { order: 1; }
  .crypto-variant .qr-wrap { order: 2; align-self: flex-start; width: 136px; }
  .crypto-variant .qr { width: 100%; height: auto; aspect-ratio: 1; }   /* square at the frame's width (the fixed 160px height stretched it) */
}
.page .support-card-yoomoney + .support-card-tribute,
.page .support-card-tribute + .support-card-yoomoney { border-top: 0; }

/* -- 404 with the site's header and footer -------------------------------- */
.not-found { padding-block: 72px 96px; }
.not-found-code { font-family: "Wix Madefor Display", Inter, system-ui, sans-serif; font-weight: 700; }
.not-found-links { max-width: 24rem; }

/* -- Switches, fields, touch ---------------------------------------------- */
/* Without the boxes around them the switches lost their track (the page ground is the track colour) */
.segmented, .seg-links { border: 1px solid var(--border); }
.search input, .dd-button, .select-wrap select { border-color: var(--field-border); }
/* Touch screens: 44px for every small control */
@media (pointer: coarse) {
  .btn-sm, .row-text-link, .chip, .site-nav a, .nav-menu summary, .segmented label > span { min-height: 44px; }
  .icon-btn { min-width: 44px; min-height: 44px; }
}

/* -- Home: the caption on the screenshot reads on the bright sea at every width -- */
@media (min-width: 721px) {
  .build-window::after { content: ""; position: absolute; inset: auto 0 0; height: 55%; background: linear-gradient(transparent, var(--scrim)); pointer-events: none; }
  .build-window-text { z-index: 1; }
  .build-window img { object-position: center 55%; }
}
@media (min-width: 721px) and (max-width: 900px) {
  .home .result h2 { white-space: normal; text-wrap: balance; }
}
.command code .nb { white-space: nowrap; }
/* 721-900px: the two home columns share the width evenly, so the Download label stays on one line */
@media (min-width: 721px) and (max-width: 900px) {
  .home .result.result-solo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 40px; }
  .home #download-link { font-size: 1rem; white-space: nowrap; }
}
/* Home: the build name is a link to its page; it answers a hover the way list titles do in Settings */
.home .result h2 a { transition: color var(--ease); }
.home .result h2 a:hover { color: var(--accent-text); }
/* A menu opened inside the page (Share, the coin and network lists) cannot rise over the snow's front layer:
   while one is open, that layer fades out, so no snow shows through the menu */
.snow-front { transition: opacity 200ms ease; }
html:has(.share-menu:not([hidden]), .dd-list:not([hidden])) .snow-front { opacity: 0; }
/* Home with two builds (2026-11-23): the picker row, the build row and the note line under them share one grid,
   so the right column (Image language, Download, the chat link) starts on one vertical line */
@media (min-width: 721px) {
  .home .selectors, .home .result:not(.result-solo), .home .composer:has(.selectors) + .home-note {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 40px;
  }
  .home .composer:has(.selectors) + .home-note { display: grid; align-items: baseline; }
  .home .composer:has(.selectors) + .home-note .details-link { justify-self: start; }
  .home .composer:has(.selectors) + .home-note .chat-stats { grid-column: 1 / -1; }
}
/* Archive with two builds: the two "Current version" rows read as one list, one hairline between them */
.archive-current + .archive-current { margin-top: -1px; }
/* somov Toolbox on /settings-for-windows (2026-11-23): boxless like the lists, hairlines above and below,
   the download on the right like an item's action; one column on phones */
.toolbox-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 32px; align-items: start; margin: 28px 0 36px; padding: 22px 0; border-block: 1px solid var(--hairline); }
.toolbox-card-title { font-size: 1.375rem; letter-spacing: -.015em; }
.toolbox-card-desc { margin-top: 8px; color: var(--text); font-size: 1rem; }
.toolbox-card-note { margin-top: 6px; color: var(--muted); font-size: var(--fs-sm); }
.toolbox-card-note b { font-weight: 600; color: var(--text); }
@media (max-width: 720px) {
  .toolbox-card { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .toolbox-card-btn { justify-self: start; }
}
