/* Layout: стеклянная панель с каруселью категорий → «Сегодня» в Bento Grid → полки во всю ширину, каждая со своей горизонтальной прокруткой и снапом */
:root {
  --bg: #000000;
  --surface: #1C1C1E;
  --surface-2: #2C2C2E;
  --surface-3: #3A3A3C;
  --hover: #242426;
  --canvas: #121214;
  --fill: rgba(118, 118, 128, 0.24);
  --separator: rgba(84, 84, 88, 0.6);
  --fg: #FFFFFF;
  --fg-2: #8E8E93;
  --fg-3: #636366;
  --accent: #0A84FF;
  --accent-hover: #409CFF;
  --accent-fill: rgba(10, 132, 255, 0.38);
  --danger: #FF453A;
  --warning: #FFD60A;
  --success: #30D158;
  --glass: rgba(0, 0, 0, 0.72);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --radius: 20px;
  --gap: 16px;
  --gl: max(20px, env(safe-area-inset-left, 0px), calc((100% - 1200px) / 2));
  --gr: max(20px, env(safe-area-inset-right, 0px), calc((100% - 1200px) / 2));
  --n: 1.16;
  --nc: 1.1;
  --ns: 1.08;
  --mock-0: #0E0E10;
  --mock-1: #161618;
  --header-h: 108px;

  --squircle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M100.0 50.0 L100.0 64.3 L99.9 68.8 L99.8 72.1 L99.7 74.8 L99.5 77.1 L99.3 79.1 L99.1 80.9 L98.8 82.6 L98.4 84.0 L98.1 85.4 L97.7 86.7 L97.2 87.9 L96.7 89.0 L96.2 90.0 L95.6 91.0 L94.9 91.9 L94.3 92.7 L93.5 93.5 L92.7 94.3 L91.9 94.9 L91.0 95.6 L90.0 96.2 L89.0 96.7 L87.9 97.2 L86.7 97.7 L85.4 98.1 L84.0 98.4 L82.6 98.8 L80.9 99.1 L79.1 99.3 L77.1 99.5 L74.8 99.7 L72.1 99.8 L68.8 99.9 L64.3 100.0 L50.0 100.0 L35.7 100.0 L31.2 99.9 L27.9 99.8 L25.2 99.7 L22.9 99.5 L20.9 99.3 L19.1 99.1 L17.4 98.8 L16.0 98.4 L14.6 98.1 L13.3 97.7 L12.1 97.2 L11.0 96.7 L10.0 96.2 L9.0 95.6 L8.1 94.9 L7.3 94.3 L6.5 93.5 L5.7 92.7 L5.1 91.9 L4.4 91.0 L3.8 90.0 L3.3 89.0 L2.8 87.9 L2.3 86.7 L1.9 85.4 L1.6 84.0 L1.2 82.6 L0.9 80.9 L0.7 79.1 L0.5 77.1 L0.3 74.8 L0.2 72.1 L0.1 68.8 L0.0 64.3 L0.0 50.0 L0.0 35.7 L0.1 31.2 L0.2 27.9 L0.3 25.2 L0.5 22.9 L0.7 20.9 L0.9 19.1 L1.2 17.4 L1.6 16.0 L1.9 14.6 L2.3 13.3 L2.8 12.1 L3.3 11.0 L3.8 10.0 L4.4 9.0 L5.1 8.1 L5.7 7.3 L6.5 6.5 L7.3 5.7 L8.1 5.1 L9.0 4.4 L10.0 3.8 L11.0 3.3 L12.1 2.8 L13.3 2.3 L14.6 1.9 L16.0 1.6 L17.4 1.2 L19.1 0.9 L20.9 0.7 L22.9 0.5 L25.2 0.3 L27.9 0.2 L31.2 0.1 L35.7 0.0 L50.0 0.0 L64.3 0.0 L68.8 0.1 L72.1 0.2 L74.8 0.3 L77.1 0.5 L79.1 0.7 L80.9 0.9 L82.6 1.2 L84.0 1.6 L85.4 1.9 L86.7 2.3 L87.9 2.8 L89.0 3.3 L90.0 3.8 L91.0 4.4 L91.9 5.1 L92.7 5.7 L93.5 6.5 L94.3 7.3 L94.9 8.1 L95.6 9.0 L96.2 10.0 L96.7 11.0 L97.2 12.1 L97.7 13.3 L98.1 14.6 L98.4 16.0 L98.8 17.4 L99.1 19.1 L99.3 20.9 L99.5 22.9 L99.7 25.2 L99.8 27.9 L99.9 31.2 L100.0 35.7Z'/%3E%3C/svg%3E");
  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 24'%3E%3Cpath d='M12 1.6l3.1 6.5 7.1.9-5.2 4.9 1.3 7.1L12 17.5l-6.3 3.5 1.3-7.1-5.2-4.9 7.1-.9z'/%3E%3C/svg%3E");

  color-scheme: dark;
}
@media (min-width: 560px) { :root { --n: 2.15; } }
@media (min-width: 720px) { :root { --nc: 2; --ns: 1.6; } }
@media (min-width: 900px) { :root { --n: 3; } }
@media (min-width: 1140px) { :root { --n: 4; --nc: 3; --ns: 2; } }

html { background: var(--bg); }
body {
  background: var(--bg);
  color: var(--fg);
  font: 400 15px/1.4 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Панель ---------- */
.bar {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.bar.is-scrolled { border-bottom-color: var(--separator); }
.bar-row {
  display: flex; align-items: center; gap: 16px;
  padding-block: 10px 8px;
  padding-left: var(--gl); padding-right: var(--gr);
}
.brand {
  display: flex; align-items: center; gap: 9px; flex: none;
  font: 700 20px/1 var(--font-display); letter-spacing: -0.01em;
  border-radius: 8px;
}
.brand-mark {
  width: 28px; height: 28px; display: grid; place-items: center;
  background: linear-gradient(155deg, #4AA8FF, var(--accent) 55%, #0059C7);
  -webkit-mask: var(--squircle) center / 100% 100% no-repeat;
  mask: var(--squircle) center / 100% 100% no-repeat;
}
.brand-mark svg { width: 16px; height: 16px; }
.search { position: relative; flex: 1; max-width: 340px; margin-left: auto; display: flex; align-items: center; }
.search svg { position: absolute; left: 10px; width: 16px; height: 16px; color: var(--fg-2); pointer-events: none; }
.search input {
  width: 100%; height: 36px; border: 0; border-radius: 10px;
  background: var(--fill); color: var(--fg);
  font: 400 16px/36px var(--font);
  padding: 0 10px 0 33px;
  outline: none;
  -webkit-appearance: none; appearance: none;
}
.search input::placeholder { color: var(--fg-2); }
.search input:focus-visible { box-shadow: 0 0 0 2px var(--accent); }

.chips {
  display: flex; gap: 8px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding-block: 4px 10px;
  padding-left: var(--gl); padding-right: var(--gr);
  scroll-padding-inline: var(--gl) var(--gr);
  position: relative;
}
.chips::-webkit-scrollbar { display: none; }
/* Где лента прокручивается, правый край тает: видно, что дальше есть ещё разделы */
.chips.has-more { -webkit-mask-image: linear-gradient(to left, transparent, #000 56px); mask-image: linear-gradient(to left, transparent, #000 56px); }
/* С мышью на широком экране все разделы видны сразу: чипы переносятся в пределах колонки, без скрытой прокрутки */
@media (hover: hover) and (pointer: fine) and (min-width: 720px) {
  .chips { flex-wrap: wrap; overflow-x: visible; }
}
.chip {
  flex: none; height: 32px; padding: 0 15px; border: 0; border-radius: 999px;
  background: var(--surface); color: var(--fg);
  font: 500 15px/32px var(--font); white-space: nowrap; cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.chip:hover { background: var(--surface-2); }
.chip[aria-current="true"] { background: var(--fg); color: var(--bg); }

/* ---------- Общая сетка страницы ---------- */
main { padding-block: 18px 8px; }
.col { display: flex; flex-direction: column; gap: 44px; }
.intro { display: flex; flex-direction: column; gap: 16px; }
.wrap { padding-left: var(--gl); padding-right: var(--gr); }
section[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

.today { display: flex; flex-direction: column; gap: 2px; }
.eyebrow {
  font: 600 12px/16px var(--font); letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--fg-2);
}
.eyebrow.is-accent { color: var(--accent); }
.large-title {
  margin: 0; font: 700 34px/41px var(--font-display); letter-spacing: 0.01em;
  text-wrap: balance;
}
@media (min-width: 900px) { .large-title { font-size: 40px; line-height: 46px; } }

/* ---------- Bento ---------- */
.bento {
  display: grid; gap: var(--gap);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 700px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t-hero, .t-manifest { grid-column: span 2; }
}
@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .t-hero { grid-column: span 2; grid-row: span 2; }
}
.tile {
  position: relative; min-width: 0; overflow: hidden;
  display: flex; flex-direction: column; gap: 12px;
  padding: 22px;
  background: var(--surface); border-radius: var(--radius);
}
a.tile { transition: background-color 0.2s ease; }
a.tile:hover { background: var(--hover); }
a.tile:focus-visible { border-radius: var(--radius); }
.tile-title {
  margin: 0; font: 700 24px/29px var(--font-display); letter-spacing: -0.005em;
  text-wrap: balance;
}
.tile-text { margin: 0; color: var(--fg-2); max-width: 46ch; }

.t-hero { padding: 0; gap: 0; }
.hero-art {
  flex: 1; min-height: 210px;
  background-color: var(--canvas);
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1.3px);
  background-size: 18px 18px;
  display: grid; place-items: center;
  padding: 16px;
}
.hero-art svg { width: 100%; height: 100%; max-height: 300px; }
/* Макет окна приложения поднимается из нижнего края, как на скриншотах */
.hero-art.is-shot {
  /* Высота окна считается от ширины: на широкой плитке оно выше картинки и обрезается её нижним краем */
  position: relative; container-type: inline-size; padding: 0; overflow: hidden;
  background:
    radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--c1) 55%, transparent), transparent 60%),
    linear-gradient(160deg, color-mix(in srgb, var(--c1) 35%, #000), color-mix(in srgb, var(--c2) 45%, #000));
}
.hero-art.is-shot .win { top: 7cqw; bottom: auto; left: 8cqw; right: 8cqw; height: max(54cqw, calc(100% - 7cqw + 1px)); border-radius: 1.6cqw 1.6cqw 0 0; }
.art path, .art ellipse { fill: none; stroke: var(--fg); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.art .ghost { stroke-width: 1.3; opacity: 0.45; }
.art .hatched { fill: url(#hatch); }
.art .hatch-line { stroke: var(--accent); stroke-width: 1.6; opacity: 0.8; }
.art .sel { fill: none; stroke: var(--accent); stroke-width: 1.4; }
.art .handle { fill: var(--canvas); stroke: var(--accent); stroke-width: 1.4; }
.art .scribble { stroke: var(--fg-2); stroke-width: 2; }
.hero-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; }
.hero-body .tile-title { font-size: 28px; line-height: 33px; }

.lockup { position: relative; display: flex; align-items: center; gap: 12px; min-width: 0; }
.lockup-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.lockup-name { font: 600 16px/21px var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lockup-sub { font-size: 13px; line-height: 18px; color: var(--fg-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-body .lockup { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--separator); }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: auto; padding-top: 8px; }
.stat { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.stat-num { font: 700 40px/1 var(--font-round); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 13px; line-height: 17px; color: var(--fg-2); }
@media (max-width: 380px) { .stat-num { font-size: 32px; } }

.big-num {
  display: flex; align-items: baseline; gap: 8px;
  font: 700 44px/1 var(--font-round); letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.big-num svg { width: 26px; height: 26px; color: var(--fg); align-self: center; flex: none; }
.t-star .lockup, .t-collection .stack { margin-top: auto; }
.stack { display: flex; padding-top: 6px; }
.stack > * + * { margin-left: -12px; }
.stack-item { position: relative; padding: 3px; background: var(--surface); -webkit-mask: var(--squircle) center / 100% 100% no-repeat; mask: var(--squircle) center / 100% 100% no-repeat; transition: background-color 0.2s ease; }
a.tile:hover .stack-item { background: var(--hover); }

/* ---------- Иконки ---------- */
.icon {
  --s: 64px;
  position: relative; flex: none;
  width: var(--s); height: var(--s);
  display: grid; place-items: center;
  color: var(--ink, #FFFFFF);
  background: linear-gradient(155deg, var(--c1), var(--c2));
  -webkit-mask: var(--squircle) center / 100% 100% no-repeat;
  mask: var(--squircle) center / 100% 100% no-repeat;
}
.icon::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 75% at 28% 0%, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0) 60%);
  pointer-events: none;
}
.icon svg {
  position: relative; z-index: 1; width: 54%; height: 54%;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.icon svg .f { fill: currentColor; }

/* ---------- Кнопка GET ---------- */
.get-wrap { display: inline-flex; flex: none; }
.get {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center;
  height: 30px; min-width: 74px; padding: 0 16px;
  border: 0; border-radius: 15px;
  background: var(--accent); color: #FFFFFF;
  font: 700 15px/30px var(--font); letter-spacing: 0.03em;
  white-space: nowrap; cursor: pointer;
  transition: background-color 0.2s ease, width 0.32s cubic-bezier(0.3, 0.7, 0.2, 1), transform 0.12s ease;
}
.get:hover { background: var(--accent-hover); }
.get:active { transform: scale(0.95); }
.get-fill {
  position: absolute; inset: 0; z-index: -1;
  background: var(--accent-fill);
  transform: scaleX(0); transform-origin: left center;
}
.get.is-busy {
  background: var(--surface-2); cursor: progress;
  font-size: 13px; font-weight: 600; letter-spacing: 0;
}
.get.is-busy:active { transform: none; }
.get.is-filling .get-fill { transform: scaleX(1); transition: transform var(--d, 1200ms) cubic-bezier(0.35, 0.1, 0.4, 1); }
/* Ведёт на другой сайт: веб-версия, страница загрузки проекта или GitHub */
.get.is-out { background: var(--surface-2); color: var(--accent); letter-spacing: 0.01em; }
.get.is-out:hover { background: var(--surface-3); }

/* ---------- Полки ---------- */
.shelf { display: flex; flex-direction: column; gap: 14px; }
.shelf-head { display: flex; align-items: flex-end; gap: 16px; }
.shelf-heading { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.shelf-title { margin: 0; font: 700 22px/28px var(--font-display); letter-spacing: 0.005em; text-wrap: balance; }
.shelf-sub { margin: 0; color: var(--fg-2); }
.shelf-nav { display: none; gap: 8px; flex: none; }
@media (hover: hover) and (pointer: fine) { .shelf-nav { display: flex; } }
.nav-btn {
  width: 32px; height: 32px; border-radius: 50%; border: 0;
  display: grid; place-items: center;
  background: var(--surface-2); color: var(--fg); cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}
.nav-btn:hover:not(:disabled) { background: var(--surface-3); }
.nav-btn:disabled { opacity: 0.3; cursor: default; }
.nav-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.track {
  position: relative;
  display: grid; grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--n) - 1) * var(--gap)) / var(--n));
  gap: var(--gap);
  overflow-x: auto; overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gl) var(--gr);
  padding-block: 4px 8px;
  padding-left: var(--gl); padding-right: var(--gr);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.track::-webkit-scrollbar { display: none; }
.track > * { scroll-snap-align: start; min-width: 0; }
.track:focus-visible { outline-offset: -2px; border-radius: 0; }
.track a, .track svg { -webkit-user-drag: none; }
@media (hover: hover) and (pointer: fine) {
  .track { cursor: grab; }
  .track.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
  .track.is-dragging * { pointer-events: none; }
}
.track.is-chart { grid-auto-columns: calc((100% - (var(--nc) - 1) * var(--gap)) / var(--nc)); }

/* ---------- Карточка приложения ---------- */
.app {
  position: relative;
  display: flex; flex-direction: column; gap: 14px;
  padding: 18px;
  background: var(--surface); border-radius: var(--radius);
  transition: background-color 0.2s ease;
}
.app:hover { background: var(--hover); }
.app-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.app-text { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.app-name { margin: 0; font: 700 17px/22px var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-desc {
  margin: 0; color: var(--fg-2); font-size: 15px; line-height: 20px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 40px;
}
.app-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding-top: 12px; border-top: 1px solid var(--separator);
}
.rating {
  display: inline-flex; align-items: center; gap: 7px; min-width: 0;
  color: var(--fg-2); font-size: 13px; line-height: 18px;
  font-variant-numeric: tabular-nums;
  border-radius: 6px;
  transition: color 0.2s ease;
}
.rating:hover { color: var(--fg); }
.stars {
  --pct: 100%;
  flex: none; width: 65px; height: 12px;
  background: linear-gradient(90deg, var(--fg-2) var(--pct), var(--surface-3) var(--pct));
  -webkit-mask: var(--star) 0 0 / 13px 12px repeat-x;
  mask: var(--star) 0 0 / 13px 12px repeat-x;
}
.rating:hover .stars { background: linear-gradient(90deg, var(--fg) var(--pct), var(--surface-3) var(--pct)); }
.license {
  flex: none;
  font: 500 11px/16px var(--font-mono); letter-spacing: 0.02em;
  color: var(--fg-2);
  padding: 1px 6px; border: 1px solid var(--separator); border-radius: 6px;
}

/* ---------- Топ-чарт ---------- */
.chart-col { display: flex; flex-direction: column; }
.chart-row {
  position: relative;
  display: grid; grid-template-columns: 22px auto minmax(0, 1fr); align-items: center; gap: 12px;
}
.chart-rank { font: 600 17px/1 var(--font-round); text-align: center; font-variant-numeric: tabular-nums; }
.chart-body {
  display: flex; align-items: center; gap: 12px; min-width: 0;
  padding-block: 14px; border-bottom: 1px solid var(--separator);
}
.chart-row:last-child .chart-body { border-bottom-color: transparent; }
.chart-row .icon { --s: 58px; }
.chart-row.no-rank { grid-template-columns: auto minmax(0, 1fr); }

/* ---------- Поиск ---------- */
.empty { margin: 0; color: var(--fg-2); max-width: 52ch; }

/* ---------- Подвал ---------- */
.foot {
  margin-top: 28px;
  display: flex; flex-direction: column; gap: 10px;
  padding-block: 28px 56px;
  border-top: 1px solid var(--separator);
  color: var(--fg-2); font-size: 13px; line-height: 18px;
}
.foot-lead { margin: 0; color: var(--fg); font: 600 15px/20px var(--font); }
.foot p { margin: 0; max-width: 68ch; }
.foot-wrap { padding-left: var(--gl); padding-right: var(--gr); }

/* ---------- Страница приложения ---------- */
.detail { gap: 36px; }
.d-nav { margin-bottom: -18px; }
.back {
  display: inline-flex; align-items: center; gap: 2px;
  margin-left: -6px; padding: 4px 8px 4px 0;
  border: 0; border-radius: 8px; background: none; cursor: pointer;
  color: var(--accent); font: 400 17px/22px var(--font);
  transition: color 0.2s ease;
}
.back:hover { color: var(--accent-hover); }
.back svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.d-head { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 20px; }
.d-head .icon { --s: 104px; }
.d-title { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.d-name { margin: 0; font: 700 26px/31px var(--font-display); letter-spacing: -0.01em; text-wrap: balance; overflow-wrap: anywhere; }
.d-name:focus { outline: none; }
.d-sub { margin: 0; max-width: 52ch; color: var(--fg-2); font-size: 15px; line-height: 20px; }
.d-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
@media (min-width: 720px) {
  .d-head { gap: 28px; }
  .d-head .icon { --s: 140px; }
  .d-name { font-size: 34px; line-height: 41px; }
  .d-sub { font-size: 17px; line-height: 22px; }
}
.pill-link {
  display: inline-flex; align-items: center; gap: 4px;
  height: 30px; padding: 0 14px; border-radius: 15px;
  background: var(--surface-2); color: var(--accent);
  font: 600 14px/30px var(--font); white-space: nowrap;
  transition: background-color 0.2s ease;
}
.pill-link:hover { background: var(--surface-3); }
.pill-link svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

.facts {
  display: flex; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
  padding-left: var(--gl); padding-right: var(--gr);
}
.facts::-webkit-scrollbar { display: none; }
.fact {
  flex: 1 0 auto; min-width: 118px;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 2px 18px; text-align: center;
}
.fact + .fact { border-left: 1px solid var(--separator); }
.fact-label { font: 600 11px/14px var(--font); letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-2); white-space: nowrap; }
.fact-value { font: 700 22px/28px var(--font-round); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fact-value.is-text { font: 600 17px/28px var(--font); }
.fact-value.is-mono { font: 600 16px/28px var(--font-mono); }
.fact-sub { font-size: 12px; line-height: 16px; color: var(--fg-2); white-space: nowrap; }
.fact .stars { margin-block: 2px; }

.d-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 900px) { .d-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 56px; } }
.d-block { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.d-text { margin: 0; max-width: 62ch; font-size: 17px; line-height: 25px; text-wrap: pretty; }
.features { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.features li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 20px; }
.features svg { width: 20px; height: 20px; flex: none; }
.features circle { fill: var(--accent); }
.features path { fill: none; stroke: var(--fg); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.info { margin: 0; display: flex; flex-direction: column; }
.info-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-block: 11px; border-bottom: 1px solid var(--separator); }
.info dt { flex: none; color: var(--fg-2); }
.info dd { margin: 0; min-width: 0; text-align: right; overflow-wrap: anywhere; }
.info a { color: var(--accent); }
.info a:hover { text-decoration: underline; }
.report-link { align-self: flex-start; margin-top: 6px; font-size: 15px; line-height: 20px; }

/* Ссылки-подложки: вся карточка открывает страницу приложения */
.app-link::after, .chart-link::after, .lockup-link::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.app-link::after { border-radius: var(--radius); }
.chart-link::after, .lockup-link::after { border-radius: 12px; }
.app-link:focus-visible, .chart-link:focus-visible, .lockup-link:focus-visible { outline: none; }
.app-link:focus-visible::after, .chart-link:focus-visible::after, .lockup-link:focus-visible::after { outline: 2px solid var(--accent); outline-offset: -2px; }
.app .get-wrap, .app .rating, .app .license, .chart-row .get-wrap, .lockup .get-wrap { position: relative; z-index: 1; }
.chart-row:hover .lockup-name, .lockup:hover .lockup-link { color: var(--accent-hover); }

/* ---------- Скриншоты: иллюстрации интерфейса ---------- */
.track.is-shots { grid-auto-columns: calc((100% - (var(--ns) - 1) * var(--gap)) / var(--ns)); }
.shot {
  container-type: inline-size;
  position: relative; margin: 0; overflow: hidden;
  aspect-ratio: 16 / 11; max-width: 100%;
  border-radius: var(--radius);
  background:
    radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--c1) 55%, transparent), transparent 60%),
    linear-gradient(160deg, color-mix(in srgb, var(--c1) 35%, #000), color-mix(in srgb, var(--c2) 45%, #000));
}
.shot.is-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Настоящие снимки: одна высота на полку, ширина по пропорциям, на узком экране снимок не шире экрана */
.track.is-real { --shot-h: 340px; grid-auto-columns: max-content; align-items: start; }
.shot.is-real {
  container-type: normal;
  height: min(var(--shot-h), calc((100vw - 40px) * var(--h) / var(--w)));
  aspect-ratio: var(--w) / var(--h);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.shot.is-real img { object-fit: contain; }
@media (min-width: 720px) { .track.is-real { --shot-h: 380px; } }
@media (min-width: 1140px) { .track.is-real { --shot-h: 420px; } }
.shot-cap {
  position: absolute; top: 5.5cqw; left: 6cqw; right: 6cqw; margin: 0;
  font: 700 max(14px, 3.6cqw)/1.15 var(--font-display); letter-spacing: -0.01em;
  color: #FFFFFF; text-wrap: balance;
}
.win {
  position: absolute; left: 6cqw; right: 6cqw; top: 17cqw; bottom: 5cqw;
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 1.6cqw; background: var(--surface);
  box-shadow: 0 2cqw 6cqw rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.win-bar { position: relative; flex: none; height: 3.4cqw; display: flex; align-items: center; gap: 0.8cqw; padding: 0 1.4cqw; background: var(--surface-2); }
.win-bar i { width: 1cqw; height: 1cqw; border-radius: 50%; background: #FF5F57; }
.win-bar i:nth-child(2) { background: #FEBC2E; }
.win-bar i:nth-child(3) { background: #28C840; }
.win-bar span { position: absolute; left: 0; right: 0; text-align: center; font: 600 max(7px, 1.3cqw)/1 var(--font); color: rgba(255, 255, 255, 0.55); }
.win-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
.win-body b, .win-body i { display: block; }

.pane { display: flex; flex-direction: column; gap: 1.3cqw; padding: 2cqw; min-width: 0; min-height: 0; overflow: hidden; }
.p0 { background: var(--mock-0); }
.p1 { background: var(--mock-1); }
.p2 { background: var(--surface); }
.rel { position: relative; }
.center { align-items: center; }
.middle { justify-content: center; }
.bl { border-left: 1px solid rgba(255, 255, 255, 0.06); }
.bt { border-top: 1px solid rgba(255, 255, 255, 0.06); }
.push { margin-left: auto; }
.m-row { display: flex; align-items: center; gap: 1cqw; min-width: 0; }
.m-col { display: flex; flex-direction: column; gap: 1cqw; min-width: 0; }
.m-row > .m-col { flex: 1; }
.m-col.tight { gap: 0.7cqw; }
.selrow { background: color-mix(in srgb, var(--c1) 22%, transparent); border-radius: 0.7cqw; padding: 0.7cqw 0.9cqw; margin-inline: -0.9cqw; }
.ln { flex: none; max-width: 100%; height: 1cqw; border-radius: 0.5cqw; background: rgba(255, 255, 255, 0.18); }
.ln.dim { background: rgba(255, 255, 255, 0.09); }
.ln.hi { background: rgba(255, 255, 255, 0.42); }
.ln.t { height: 1.7cqw; background: rgba(255, 255, 255, 0.7); }
.ln.big { height: 3cqw; }
.ln.a { background: var(--c1); }
.ln.b { background: color-mix(in srgb, var(--c2) 55%, #FFFFFF); }
.ln.ink { background: color-mix(in srgb, var(--ink, #FFFFFF) 72%, transparent); }
.sq { flex: none; width: 2.2cqw; height: 2.2cqw; border-radius: 0.6cqw; background: rgba(255, 255, 255, 0.14); }
.sq.xs { width: 1.5cqw; height: 1.5cqw; border-radius: 0.4cqw; }
.sq.md { width: 3.4cqw; height: 3.4cqw; border-radius: 0.9cqw; }
.sq.lg { width: 5.2cqw; height: 5.2cqw; border-radius: 1.3cqw; }
.sq.a { background: var(--c1); }
.sq.g, .dot.g { background: linear-gradient(135deg, var(--c1), var(--c2)); }
.dot { flex: none; border-radius: 50%; }
.dot.xs { width: 1.2cqw; height: 1.2cqw; background: var(--c1); }
.dot.sm { width: 1.8cqw; height: 1.8cqw; }
.dot.md { width: 3cqw; height: 3cqw; }
.dot.a { background: var(--c1); }
.dot.rec { background: #FF453A; }
.pr { flex: none; font: 700 1.4cqw/1 var(--font-mono); color: var(--c1); }
.searchbar { flex: none; display: flex; align-items: center; height: 2.6cqw; padding: 0 1cqw; border-radius: 0.7cqw; background: rgba(255, 255, 255, 0.07); }
.btn { display: flex; padding: 0.7cqw 1.2cqw; border-radius: 0.7cqw; background: rgba(255, 255, 255, 0.08); }
.btn.a { background: var(--c1); }
.btn.big { padding: 1.1cqw 3cqw; border-radius: 2cqw; }
.pbar { flex: 1; height: 0.8cqw; border-radius: 0.4cqw; overflow: hidden; background: rgba(255, 255, 255, 0.1); }
.pbar b { height: 100%; border-radius: inherit; background: var(--c1); }
.slider { position: relative; height: 0.6cqw; border-radius: 0.3cqw; background: rgba(255, 255, 255, 0.12); }
.slider b { position: relative; height: 100%; border-radius: inherit; background: var(--c1); }
.slider b::after { content: ""; position: absolute; right: -1cqw; top: 50%; width: 2cqw; height: 2cqw; margin-top: -1cqw; border-radius: 50%; background: #FFFFFF; }
.field { flex: 1; display: flex; align-items: center; height: 2.2cqw; padding: 0 0.8cqw; border-radius: 0.5cqw; background: rgba(255, 255, 255, 0.07); }
.rule { flex: none; height: 1px; margin-block: 0.4cqw; background: rgba(255, 255, 255, 0.08); }
.tag { display: flex; padding: 0.45cqw 0.9cqw; border-radius: 1cqw; }
.thumb { flex: none; width: 3.4cqw; height: 2.6cqw; border-radius: 0.4cqw; }
.ov { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ov path { fill: none; stroke: rgba(255, 255, 255, 0.7); stroke-width: 2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.dots { background-color: var(--mock-0); background-image: radial-gradient(rgba(255, 255, 255, 0.1) 0.12cqw, transparent 0.16cqw); background-size: 2.4cqw 2.4cqw; }
.toolbar { position: absolute; z-index: 1; top: 2cqw; left: 50%; transform: translateX(-50%); display: flex; gap: 0.8cqw; padding: 0.9cqw 1.2cqw; border-radius: 1.2cqw; background: var(--surface-2); }
.toolbar.side { top: 50%; left: 1.6cqw; flex-direction: column; transform: translateY(-50%); }
.tabs { gap: 0.6cqw; align-items: flex-end; height: 3.4cqw; margin: -2cqw -2cqw 0.4cqw; padding: 0 1cqw; background: var(--mock-1); }
.tab { display: flex; align-items: center; height: 2.8cqw; padding: 0 1.4cqw; border-radius: 0.6cqw 0.6cqw 0 0; }
.tab.on { background: var(--surface); }
.box { display: flex; flex-direction: column; gap: 0.9cqw; padding: 1cqw 1.2cqw; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 0.6cqw; }
.box.on { border-color: var(--c1); }
.box.grow { flex: 1; min-height: 0; overflow: hidden; }
.status { display: flex; align-items: center; gap: 1.2cqw; padding: 0.8cqw 1.4cqw; background: var(--surface); }
.seg { display: flex; padding: 0.5cqw 1.2cqw; border-radius: 0.4cqw; background: var(--c1); }
.shape { position: absolute; border: 0.3cqw solid rgba(255, 255, 255, 0.85); border-radius: 0.5cqw; }
.shape.ellipse { border-radius: 50%; }
.shape.diamond { transform: rotate(45deg); border-radius: 0.4cqw; }
.shape.hatch { background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--c1) 75%, transparent) 0 0.25cqw, transparent 0.25cqw 1cqw); }
.shape.solid { border-color: var(--c1); background: color-mix(in srgb, var(--c1) 35%, transparent); }
.shape.sel { outline: 1px solid var(--c1); outline-offset: 0.8cqw; }
.artboard { height: 86%; aspect-ratio: 4 / 3; max-width: 94%; border-radius: 0.4cqw; box-shadow: 0 1cqw 3cqw rgba(0, 0, 0, 0.5); }
.floor {
  position: absolute; left: -30%; right: -30%; bottom: -10%; height: 70%;
  background-image: linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 4cqw 4cqw; transform: perspective(30cqw) rotateX(58deg); transform-origin: bottom;
}
.cube { position: absolute; left: 50%; top: 50%; width: 20cqw; height: 20cqw; transform: translate(-50%, -55%); filter: drop-shadow(0 1cqw 2cqw rgba(0, 0, 0, 0.5)); }
.gizmo { position: absolute; right: 2cqw; top: 2cqw; width: 6cqw; height: 6cqw; }
.gizmo path { fill: none; stroke-width: 1.6; stroke-linecap: round; }
.gx { stroke: #FF453A; }
.gy { stroke: #30D158; }
.gz { stroke: #0A84FF; }
.node { position: absolute; display: flex; flex-direction: column; gap: 0.9cqw; padding-bottom: 1cqw; overflow: hidden; border-radius: 0.8cqw; background: var(--surface-2); box-shadow: 0 0.6cqw 1.6cqw rgba(0, 0, 0, 0.4); }
.node-h { display: flex; padding: 0.8cqw 1cqw; }
.node .m-row { padding: 0 1cqw; }
.wires path { stroke: color-mix(in srgb, var(--c1) 80%, #FFFFFF); stroke-width: 1.6; opacity: 0.8; }
.docpane { gap: 1.6cqw; padding: 3cqw 5cqw; }
.cb { flex: none; width: 1.8cqw; height: 1.8cqw; border-radius: 0.5cqw; border: 0.25cqw solid rgba(255, 255, 255, 0.35); }
.cb.on { border-color: var(--c1); background: var(--c1); }
.imgblock { flex: none; height: 10cqw; border-radius: 0.8cqw; opacity: 0.85; }
.table { display: flex; flex-direction: column; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 0.8cqw; }
.trow { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr 1fr; }
.trow + .trow { border-top: 1px solid rgba(255, 255, 255, 0.06); }
.trow.th { background: rgba(255, 255, 255, 0.04); }
.cell { display: flex; align-items: center; min-width: 0; padding: 1cqw 1.2cqw; }
.kanban { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; gap: 1.6cqw; }
.kcol { display: flex; flex-direction: column; gap: 1.1cqw; padding: 1.2cqw; border-radius: 1cqw; background: rgba(255, 255, 255, 0.03); }
.kcard { display: flex; flex-direction: column; gap: 0.9cqw; padding: 1.2cqw; border-radius: 0.8cqw; background: var(--surface-2); }
.scene-bg { position: absolute; inset: 0; }
.controls { position: absolute; left: 2cqw; right: 2cqw; bottom: 2cqw; display: flex; align-items: center; gap: 1.4cqw; padding: 1cqw 1.6cqw; border-radius: 1.2cqw; background: rgba(20, 20, 22, 0.72); }
.play { flex: none; width: 2cqw; height: 2cqw; fill: #FFFFFF; }
.posters { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.4cqw; }
.poster-wrap { display: flex; flex-direction: column; gap: 0.8cqw; }
.poster { aspect-ratio: 2 / 3; border-radius: 0.6cqw; }
.transport { gap: 1.2cqw; }
.ruler { flex: none; height: 1.6cqw; margin-left: 15.2cqw; opacity: 0.6; background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.25) 1px, transparent 1px); background-size: 3cqw 100%; }
.trk { flex: none; display: grid; grid-template-columns: 14cqw minmax(0, 1fr); gap: 1.2cqw; height: 8.5cqw; }
.trk-h { display: flex; flex-direction: column; justify-content: center; gap: 0.9cqw; padding: 1cqw; border-radius: 0.6cqw; background: rgba(255, 255, 255, 0.04); }
.wf { width: 100%; height: 100%; border-radius: 0.6cqw; background: rgba(255, 255, 255, 0.03); }
.wf rect { fill: rgba(255, 255, 255, 0.45); }
.wf.on { background: color-mix(in srgb, var(--c1) 12%, transparent); }
.wf.on rect { fill: var(--c1); }
.conv-h { padding-bottom: 1.2cqw; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.msgs { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 1.2cqw; overflow: hidden; }
.bub { align-self: flex-start; display: flex; flex-direction: column; gap: 0.8cqw; padding: 1.1cqw 1.4cqw; border-radius: 1.4cqw; background: var(--surface-2); }
.bub.me { align-self: flex-end; background: var(--c1); }
.composer { flex: none; display: flex; align-items: center; gap: 1cqw; height: 3.6cqw; padding: 0 0.5cqw 0 1.6cqw; border-radius: 1.8cqw; background: rgba(255, 255, 255, 0.07); }
.composer .dot { margin-left: auto; }
.mrow { display: flex; align-items: center; gap: 1.6cqw; padding-block: 1cqw; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.okmark { flex: none; width: 2.4cqw; height: 2.4cqw; border-radius: 50%; border: 0.3cqw solid var(--c1); }
.pw { display: flex; gap: 0.5cqw; }
.pw b { width: 0.9cqw; height: 0.9cqw; border-radius: 50%; background: rgba(255, 255, 255, 0.6); }
.totp { display: flex; padding: 0.6cqw 1cqw; border-radius: 0.6cqw; background: color-mix(in srgb, var(--c1) 25%, transparent); }
.ring { flex: none; display: grid; place-items: center; width: 13cqw; height: 13cqw; border-radius: 50%; border: 0.5cqw solid var(--c1); background: radial-gradient(circle, color-mix(in srgb, var(--c1) 30%, transparent), transparent 70%); }
.ring svg, .hub svg, .menu-art svg { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ring svg { width: 55%; height: 55%; stroke: #FFFFFF; stroke-width: 1.6; }
.ring svg .f { fill: #FFFFFF; }
.scard { display: flex; flex-direction: column; gap: 1cqw; padding: 1.2cqw; border-radius: 0.8cqw; background: rgba(255, 255, 255, 0.05); }
.rings { position: absolute; left: 50%; top: 50%; width: 40cqw; height: 40cqw; transform: translate(-50%, -50%); border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 4.6cqw, rgba(255, 255, 255, 0.07) 4.6cqw 4.8cqw); }
.hub { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 8cqw; height: 8cqw; transform: translate(-50%, -50%); border-radius: 50%; background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 0 0 1.4cqw color-mix(in srgb, var(--c1) 20%, transparent); }
.hub svg { width: 55%; height: 55%; stroke: var(--ink, #FFFFFF); stroke-width: 1.8; }
.hub svg .f { fill: var(--ink, #FFFFFF); }
.dev { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 0.8cqw; transform: translate(-50%, -50%); }
.sky { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 35%, #0B1630), color-mix(in srgb, var(--c1) 30%, #0B0B10)); }
.sun { position: absolute; top: 12%; width: 5cqw; height: 5cqw; border-radius: 50%; background: rgba(255, 255, 255, 0.85); box-shadow: 0 0 4cqw rgba(255, 255, 255, 0.4); }
.ground { position: absolute; inset: 0; display: flex; align-items: flex-end; }
.gcol { flex: 1; background: linear-gradient(180deg, var(--c1) 0 1.4cqw, color-mix(in srgb, var(--c2) 65%, #000) 1.4cqw); box-shadow: inset -1px 0 rgba(0, 0, 0, 0.18); }
.sprite { position: absolute; width: 2.4cqw; height: 3.6cqw; border-radius: 0.3cqw; background: #FFFFFF; box-shadow: inset 0 -1.2cqw var(--c2); }
.hud-top { position: absolute; left: 2cqw; top: 2cqw; display: flex; gap: 0.6cqw; }
.heart { width: 1.8cqw; height: 1.8cqw; border-radius: 0.3cqw; background: #FF453A; transform: rotate(45deg) scale(0.8); }
.heart.off { background: rgba(255, 255, 255, 0.25); }
.hotbar { position: absolute; left: 50%; bottom: 2cqw; display: flex; gap: 0.5cqw; padding: 0.5cqw; transform: translateX(-50%); border-radius: 0.6cqw; background: rgba(0, 0, 0, 0.45); }
.slot { width: 3.4cqw; height: 3.4cqw; border-radius: 0.3cqw; border: 0.2cqw solid rgba(255, 255, 255, 0.25); background: radial-gradient(circle, var(--fill, transparent) 0 38%, transparent 40%); }
.slot.on { border-color: #FFFFFF; }
.tiles { position: absolute; inset: 0; display: grid; gap: 1px; background: rgba(0, 0, 0, 0.3); }
.t0 { background: color-mix(in srgb, var(--c1) 30%, #0F1412); }
.t1 { background: color-mix(in srgb, var(--c1) 55%, #0F1412); }
.t2 { background: color-mix(in srgb, var(--c2) 50%, #14110E); }
.t3 { background: color-mix(in srgb, var(--accent) 35%, #0A0F1A); }
.road path { stroke: rgba(255, 255, 255, 0.6); stroke-width: 3; stroke-dasharray: 6 4; }
.unit { position: absolute; width: 2cqw; height: 2cqw; border-radius: 0.4cqw; background: var(--c1); box-shadow: 0 0 0 0.3cqw rgba(255, 255, 255, 0.85); }
.hud-bar { position: absolute; left: 0; right: 0; top: 0; display: flex; gap: 2.4cqw; padding: 1cqw 2cqw; background: rgba(0, 0, 0, 0.55); }
.minimap { position: absolute; right: 2cqw; bottom: 2cqw; width: 14cqw; height: 9cqw; border-radius: 0.4cqw; border: 0.2cqw solid rgba(255, 255, 255, 0.45); background: linear-gradient(135deg, color-mix(in srgb, var(--c1) 45%, #111), color-mix(in srgb, var(--c2) 45%, #111)); }
.mbtn { display: flex; padding: 1.3cqw 1.6cqw; border-radius: 0.9cqw; background: rgba(255, 255, 255, 0.07); }
.mbtn.on { background: var(--c1); }
.menu-art { display: grid; place-items: center; background: radial-gradient(circle at 50% 55%, color-mix(in srgb, var(--c1) 45%, transparent), transparent 65%), color-mix(in srgb, var(--c2) 25%, #000); }
.menu-art svg { width: 22cqw; height: 22cqw; stroke: rgba(255, 255, 255, 0.9); stroke-width: 1.2; }
.menu-art svg .f { fill: rgba(255, 255, 255, 0.9); }

/* ---------- Аккаунт GitHub ---------- */
.account { flex: none; display: flex; align-items: center; }
.signin, .avatar-btn {
  display: inline-flex; align-items: center; gap: 7px;
  height: 32px; border: 0; border-radius: 16px;
  background: var(--surface-2); color: var(--fg);
  font: 600 14px/32px var(--font); white-space: nowrap; cursor: pointer;
  transition: background-color 0.2s ease;
}
.signin { padding: 0 13px 0 10px; }
.avatar-btn { padding: 0 12px 0 2px; }
.signin:hover, .avatar-btn:hover { background: var(--surface-3); }
.signin svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.avatar-btn img { display: block; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-3); }
@media (max-width: 639px) {
  .bar-row { gap: 10px; }
  .signin { width: 32px; padding: 0; justify-content: center; }
  .avatar-btn { padding: 0 2px; }
  .signin-text, .account-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
.icon-wrap { position: relative; flex: none; display: block; }
.mine-badge {
  position: absolute; right: -5px; bottom: -5px;
  width: 24px; height: 24px; border-radius: 50%;
  display: none; place-items: center;
  background: var(--accent); box-shadow: 0 0 0 3px var(--surface);
  transition: box-shadow 0.2s ease;
}
.app:hover .mine-badge { box-shadow: 0 0 0 3px var(--hover); }
.app.is-starred .mine-badge { display: grid; }
.mine-badge svg { width: 13px; height: 13px; fill: var(--fg); }
button.pill-link { border: 0; cursor: pointer; }
button.pill-link:disabled { opacity: 0.5; cursor: progress; }
.pill-link.star-btn svg { width: 15px; height: 15px; stroke-width: 2; }
.star-btn.is-on { background: var(--accent-fill); color: var(--fg); }
.star-btn.is-on:hover { background: var(--accent-fill); }
.star-btn.is-on svg { fill: currentColor; }
.d-note { margin: 4px 0 0; color: var(--danger); font-size: 13px; line-height: 18px; }
.d-note.is-info { color: var(--fg-2); }
/* Что скачает кнопка: система, сборка, размер, версия */
.d-dl { margin: 6px 0 0; color: var(--fg-2); font-size: 13px; line-height: 18px; }
.d-dl a { color: var(--accent); }
.d-dl a:hover { text-decoration: underline; }

/* ---------- Раздел «Загрузка» ---------- */
.dl-groups { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
@media (min-width: 900px) { .dl-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 56px; } }
.dl-os { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; padding-bottom: 6px; border-bottom: 1px solid var(--separator); font: 600 17px/22px var(--font); }
.dl-ver { color: var(--fg-2); font-size: 13px; font-weight: 400; }
.dl-list { list-style: none; margin: 0; padding: 0; }
.dl-row { display: flex; align-items: center; gap: 12px; padding-block: 10px; border-bottom: 1px solid var(--separator); }
.dl-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.dl-badge { font: 600 11px/14px var(--font); letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.dl-link { align-self: flex-start; color: var(--accent); font-weight: 600; }
.dl-link:hover { text-decoration: underline; }
.dl-name { font: 12px/16px var(--font-mono); color: var(--fg-2); overflow-wrap: anywhere; }
.dl-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.dl-size { font-variant-numeric: tabular-nums; }
.dl-sha { padding: 0; border: 0; border-radius: 4px; background: none; color: var(--fg-2); font: 11px/16px var(--font-mono); cursor: pointer; }
.dl-sha:hover { color: var(--fg); }
.dl-foot { margin: 2px 0 0; max-width: 72ch; color: var(--fg-2); font-size: 13px; line-height: 20px; }
.dl-foot code { padding: 1px 5px; border-radius: 5px; background: var(--surface-2); color: var(--fg); font: 12px/18px var(--font-mono); white-space: nowrap; }
.dl-foot a, .dl-block .d-text a { color: var(--accent); }
.dl-foot a:hover, .dl-block .d-text a:hover { text-decoration: underline; }
.dl-foot svg, .dl-block .d-text svg { width: 12px; height: 12px; margin-left: 2px; vertical-align: -1px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.link-btn { padding: 0; border: 0; border-radius: 4px; background: none; color: var(--accent); font: inherit; cursor: pointer; }
.shelf-sub a { color: var(--accent); }
.link-btn:hover, .shelf-sub a:hover { text-decoration: underline; }

/* ---------- Песочница ---------- */
.eyebrow.is-warning { color: var(--warning); }
.sandbox-info { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); }
@media (min-width: 900px) { .sandbox-info { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.notice {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-content: start; gap: 4px 14px;
  padding: 18px 20px; border-radius: var(--radius);
  background: color-mix(in srgb, var(--warning) 7%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--warning) 32%, transparent);
}
.notice svg { grid-row: span 2; width: 26px; height: 26px; margin-top: -1px; fill: none; stroke: var(--warning); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.notice-title, .rules-title { margin: 0; font: 600 17px/22px var(--font); }
.notice-text { margin: 0; max-width: 64ch; color: var(--fg-2); }
#detail .notice { max-width: 760px; }
.rules { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); }
.rules-steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; color: var(--fg-2); }
.rules-steps li::marker { color: var(--fg); font-weight: 600; font-variant-numeric: tabular-nums; }
.rules-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 4px; }
.rules-actions .rules-cta { margin-top: 0; }
.voting { display: flex; flex-direction: column; gap: 12px; }
.voting-title { margin: 0; font: 600 17px/22px var(--font); }
.published-title { margin: 0; }
.vote-meta { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid var(--separator); }
.vote-bar { display: block; height: 6px; overflow: hidden; border-radius: 3px; background: var(--surface-3); }
.vote-bar b { display: block; height: 100%; border-radius: inherit; background: var(--warning); }
.vote-count { color: var(--fg-2); font-size: 13px; line-height: 18px; font-variant-numeric: tabular-nums; }
.app-slot {
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  padding: 18px; border-radius: var(--radius);
  border: 1.5px dashed var(--surface-3); color: var(--fg-2);
}
.slot-icon { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 4px; border-radius: 15px; border: 1.5px dashed var(--surface-3); }
.slot-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--fg-2); stroke-width: 2; stroke-linecap: round; }
.slot-title { margin: 0; font: 700 17px/22px var(--font); color: var(--fg); }
.slot-text { margin: 0; font-size: 15px; line-height: 20px; }
.meta-tags { flex: none; display: flex; align-items: center; gap: 6px; }
.agent-tag { padding: 1px 6px; border-radius: 6px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); font: 600 11px/16px var(--font); letter-spacing: 0.02em; white-space: nowrap; }
.cmd { display: flex; align-items: center; gap: 12px; max-width: 72ch; padding: 10px 14px; border-radius: 12px; background: var(--surface); }
.cmd code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font: 13px/20px var(--font-mono); scrollbar-width: none; }
.cmd .copy-btn { flex: none; font-size: 13px; font-weight: 600; }
.agent-note { margin: 0; max-width: 72ch; color: var(--fg-2); font-size: 13px; line-height: 20px; }
.agent-note a, .agent-block .d-text a { color: var(--accent); }
.agent-note a:hover, .agent-block .d-text a:hover { text-decoration: underline; }
.agent-note svg, .agent-block .d-text svg { width: 12px; height: 12px; margin-left: 2px; vertical-align: -1px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.agent-warn { margin: 0; max-width: 72ch; color: var(--warning); font-size: 15px; line-height: 21px; font-weight: 600; }
.t-agent { grid-column: 1 / -1; }
.t-agent-how { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.t-agent .cmd { background: var(--surface-2); max-width: none; }
/* В плитке команду видно целиком: переносится, а не прячется за прокруткой */
.t-agent .cmd code { white-space: normal; overflow-wrap: anywhere; }
.t-agent-links { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; line-height: 20px; }
.t-agent-links a { color: var(--accent); font-weight: 600; }
.t-agent-links a:hover { text-decoration: underline; }
@media (min-width: 900px) {
  .t-agent { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; gap: 32px; }
  .t-agent-text { display: flex; flex-direction: column; gap: 12px; }
}
.tp-badge { padding: 1px 6px; border-radius: 6px; background: color-mix(in srgb, var(--warning) 14%, transparent); color: var(--warning); font: 600 11px/16px var(--font); letter-spacing: 0.02em; }
.icon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Заявка в песочницу ---------- */
#submit { scroll-margin-top: calc(var(--header-h) + 8px); }
.rules-cta {
  align-self: flex-start; margin-top: 4px; height: 34px; padding: 0 16px;
  border: 0; border-radius: 17px; background: var(--accent); color: #FFFFFF;
  font: 600 15px/34px var(--font); cursor: pointer; transition: background-color 0.2s ease;
}
.rules-cta:hover { background: var(--accent-hover); }
.slot-item { display: flex; }
button.app-slot { flex: 1; width: 100%; background: none; font: inherit; text-align: left; cursor: pointer; transition: border-color 0.2s ease, background-color 0.2s ease; }
button.app-slot:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, transparent); }
.app-slot .slot-title, .app-slot .slot-text, .slot-cta { display: block; }
.slot-cta { margin-top: 4px; color: var(--accent); font: 600 15px/20px var(--font); }
.submit-card { display: flex; flex-direction: column; gap: 22px; padding: 22px; border-radius: var(--radius); background: var(--surface); }
@media (min-width: 720px) { .submit-card { padding: 28px; } }
.submit-head { display: flex; align-items: flex-start; gap: 16px; }
.submit-heading { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.submit-title { margin: 0; font: 700 22px/28px var(--font-display); text-wrap: balance; }
.submit-sub { margin: 0; max-width: 62ch; color: var(--fg-2); }
.submit-done {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 18px 20px; border-radius: 16px;
  background: color-mix(in srgb, var(--success) 9%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--success) 32%, transparent);
}
.submit-done:focus { outline: none; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
@media (min-width: 960px) {
  .form-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; }
  .form-preview { position: sticky; top: calc(var(--header-h) + 16px); align-self: start; }
}
.form-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.form-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.form-field > label, .form-field > legend { margin-bottom: 2px; padding: 0; color: var(--fg-2); font: 600 13px/18px var(--font); }
.opt { font-weight: 400; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 640px) { .field-row { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.input {
  width: 100%; min-height: 44px; padding: 10px 12px;
  border: 1px solid transparent; border-radius: 12px;
  background: var(--fill); color: var(--fg);
  font: 400 16px/22px var(--font); outline: none;
  -webkit-appearance: none; appearance: none;
}
.input::placeholder { color: var(--fg-2); opacity: 0.7; }
.input:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.input[aria-invalid="true"] { border-color: var(--danger); }
textarea.input { min-height: 108px; resize: vertical; }
select.input { padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238E8E93' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; cursor: pointer; }
select.input option { background: var(--surface); color: var(--fg); }
.hint, .repo-status, .field-error { margin: 0; font-size: 13px; line-height: 18px; }
.hint, .repo-status { color: var(--fg-2); }
.repo-status:empty { display: none; }
.repo-status.is-ok { color: var(--success); }
.repo-status.is-warn { color: var(--warning); }
.repo-status.is-bad, .field-error { color: var(--danger); }
.checks, .swatch-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch-pick { gap: 12px; }
.glyph-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 8px; }
.check-chip, .glyph-opt, .swatch-opt { position: relative; display: block; }
.check-chip input, .glyph-opt input, .swatch-opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.check-chip span { display: block; height: 34px; padding: 0 14px; border-radius: 17px; background: var(--fill); font: 500 15px/34px var(--font); transition: background-color 0.2s ease; }
.check-chip input:checked + span { background: var(--accent); }
.glyph-box { display: grid; place-items: center; height: 44px; border-radius: 12px; background: var(--fill); transition: background-color 0.2s ease, box-shadow 0.2s ease; }
.glyph-box svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.glyph-opt input:checked + .glyph-box { background: var(--accent-fill); box-shadow: inset 0 0 0 2px var(--accent); }
.swatch { display: block; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(155deg, var(--c1), var(--c2)); }
.swatch-opt input:checked + .swatch { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--fg); }
.check-chip input:focus-visible + span, .glyph-opt input:focus-visible + .glyph-box, .swatch-opt input:focus-visible + .swatch { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-error { margin: 0; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--fg); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.submit-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 22px; border: 0; border-radius: 22px;
  background: var(--accent); color: #FFFFFF;
  font: 600 16px/44px var(--font); white-space: nowrap; cursor: pointer;
  transition: background-color 0.2s ease;
}
.submit-btn:hover { background: var(--accent-hover); }
.submit-btn:disabled { background: var(--surface-3); color: var(--fg-2); cursor: not-allowed; }
.form-preview { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.form-preview .app { max-width: 340px; }

/* ---------- Язык ---------- */
.lang { flex: none; display: flex; }
.lang select {
  height: 32px; padding: 0 30px 0 12px; border: 0; border-radius: 16px;
  background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238E8E93' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 14px;
  color: var(--fg); font: 600 14px/32px var(--font); cursor: pointer;
  -webkit-appearance: none; appearance: none;
  transition: background-color 0.2s ease;
}
.lang select:hover { background-color: var(--surface-3); }
.lang select option { background: var(--surface); color: var(--fg); }
@media (max-width: 479px) { .brand-name { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .get, .chip, .app, .tile, .bar, .nav-btn, .back, .pill-link, .signin, .avatar-btn, .mine-badge { transition: none; }
}
