/* AppleTorrent catalog
   Dark is the house default. Light is the switch in the top bar. */

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/source-sans-3.woff2") format("woff2");
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/source-serif-4.woff2") format("woff2");
}

@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-serif-4-italic.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --bg: #141414;
  --bg-2: #101010;
  --rail: #0e0e0e;
  --ink: #ece8e1;
  --muted: #9c958b;
  --faint: #6f6962;
  --line: #2e2c29;
  --line-2: #3d3934;
  --orange: #ff6b1a;
  --orange-2: #ff8a42;
  --row-hot: #241c16;
  --field: #101010;
  --moss: #c6d36e;
  --blush: #e07a6a;
  --scroll: #4a453e;
  --scroll-hot: #ff6b1a;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --cond: "Source Sans 3", "Segoe UI", sans-serif;
  --mono: "Cascadia Mono", "Cascadia Code", Consolas, ui-monospace, monospace;
  --serif: "Source Serif 4", Georgia, "Iowan Old Style", serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f3eee6;
  --bg-2: #e7e0d4;
  --rail: #e6dfd3;
  --ink: #1b1814;
  --muted: #5c564c;
  --faint: #7a7268;
  --line: #d5cbbd;
  --line-2: #c3b7a6;
  --orange: #e45600;
  --orange-2: #c44a00;
  --row-hot: #fff3e8;
  --field: #fffcf8;
  --moss: #3d5a14;
  --blush: #a32618;
  --scroll: #b7ab9c;
  --scroll-hot: #e45600;
}

/* ---------- reset ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding-top: 22px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { overflow-wrap: break-word; }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }
table { border-collapse: collapse; }

a { color: var(--orange); }
a:visited { color: var(--orange); }
a:hover { text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

::selection { background: var(--orange); color: #1a0e06; }
::placeholder { color: var(--faint); }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ---------- type ---------- */

h1, h2, .band__h h2, .prog__title {
  font-family: var(--sans);
  font-weight: 650;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.mono, .clip__ver, .clip__size, .pulse time, .specs dt {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

/* ---------- render bar ---------- */

.render {
  position: fixed;
  z-index: 60;
  top: 0;
  left: 0;
  right: 0;
  height: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  background: #0c0c0c;
  border-bottom: 1px solid #2a2926;
}

.render__k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  color: #8a8176;
}

.render__track {
  flex: 1;
  height: 6px;
  background: #2a241e;
  position: relative;
}

.render__fill {
  display: block;
  width: 0%;
  height: 100%;
  background: #ff6b1a;
  position: relative;
}

.render__fill::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -3px;
  width: 2px;
  height: 12px;
  background: #fff6ee;
}

.render__pct {
  min-width: 78px;
  text-align: right;
  font-family: var(--mono);
  font-size: 11px;
  color: #ff6b1a;
}

/* ---------- bench ---------- */

.bench {
  display: grid;
  grid-template-columns: 1fr;
  min-width: 0;
  min-height: calc(100vh - 22px);
  min-height: calc(100dvh - 22px);
}

.stage { min-width: 0; }

.rail {
  position: fixed;
  z-index: 30;
  top: 22px;
  bottom: 0;
  left: 0;
  width: min(292px, 86vw);
  padding: 16px 12px 28px;
  background: var(--rail);
  border-right: 1px solid var(--line);
  overflow: auto;
  transform: translateX(-105%);
  -webkit-overflow-scrolling: touch; /* safari: иначе прыгает */
  scrollbar-width: thin;
  scrollbar-color: var(--scroll) transparent;
}

.rail::-webkit-scrollbar { width: 10px; }
.rail::-webkit-scrollbar-track { background: transparent; margin: 10px 0; }
.rail::-webkit-scrollbar-thumb {
  background: var(--scroll);
  border-radius: 99px;
  border: 3px solid transparent;
  background-clip: padding-box;
}
.rail::-webkit-scrollbar-thumb:hover {
  background: var(--scroll-hot);
  border: 3px solid transparent;
  background-clip: padding-box;
}

.rail:target,
.rail.is-open { transform: none; }

.shade { display: none; }

@media (max-width: 959px) {
  .bench:has(.rail:target) .shade,
  .bench:has(.rail.is-open) .shade {
    display: block;
    position: fixed;
    inset: 22px 0 0 0;
    background: rgba(0, 0, 0, .58);
    z-index: 25;
  }
}

.rail__shut {
  display: inline-block;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 650;
  letter-spacing: -0.03em;
  font-size: 1.125rem;
  line-height: 1;
}

.brand:visited { color: var(--ink); }
.brand:hover { color: var(--orange); }

.brand__mark { flex: 0 0 auto; width: 32px; height: 32px; }

.tag {
  margin: 12px 0 18px;
  max-width: 28ch;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.4;
}

.bins { display: flex; flex-direction: column; }

.bin {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 9px 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: 1rem;
  border-top: 1px solid var(--line);
}

.bin__ico {
  display: grid;
  place-items: center;
  color: var(--faint);
}

.bin:hover .bin__ico,
.bin[aria-current="page"] .bin__ico { color: var(--orange); }

.bin__svg { display: block; }

.bin:visited { color: var(--ink); }
.bin:hover { background: var(--row-hot); color: var(--ink); }

.bin__trk {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--faint);
}

.bin[aria-current="page"] {
  background: #24180f;
  box-shadow: inset 3px 0 0 var(--orange);
  color: var(--orange);
}

.bin[aria-current="page"]:visited { color: var(--orange); }

:root[data-theme="light"] .bin[aria-current="page"] {
  background: #f6e4d4;
  color: #9a3400;
}

.pulse { margin-top: 22px; }

.pulse__label {
  margin: 0 0 6px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--faint);
}

.pulse li {
  display: grid;
  grid-template-columns: 4.6rem minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  padding: 7px 0;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

.pulse time {
  font-size: 0.75rem;
  color: var(--orange);
}

.pulse a { color: inherit; text-decoration: none; }
.pulse a:visited { color: inherit; }
.pulse a:hover { color: var(--orange); }

.pulse__ver {
  display: block;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--faint);
}

.rail__count {
  margin: 18px 0 0;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
}

.rail__count b {
  color: var(--orange);
  font-weight: 500;
}

/* ---------- top bar ---------- */

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  min-height: 52px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 22px;
  z-index: 20;
  background: var(--bg);
}

.burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 32px;
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.burger:visited { color: var(--ink); }

.topbar .brand { font-size: 1.05rem; }
.topbar .brand__mark { width: 28px; height: 28px; }

.theme {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 5px 8px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.theme__lamp {
  width: 8px;
  height: 8px;
  background: #ff6b1a;
}

.user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.signin {
  color: var(--ink);
  font-size: 14px;
  text-decoration: none;
}

.signin:visited { color: var(--ink); }
.signin:hover { color: var(--orange); }

.user__me {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  font-size: 14px;
}

.user__me:visited { color: inherit; }

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #2a2118;
  color: #ff6b1a;
  font-family: var(--mono);
  font-size: 11px;
  flex: 0 0 auto;
}

.avatar--lg {
  width: 52px;
  height: 52px;
  font-size: 16px;
}

.bell { position: relative; }

.bell__btn {
  position: relative;
  width: 34px;
  height: 30px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 0;
}

.bell__n {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  background: #ff6b1a;
  color: #1a0e06;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 15px;
  text-align: center;
}

.bell__drop {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  width: min(320px, calc(100vw - 24px));
  background: var(--bg);
  border: 1px solid var(--line-2);
  z-index: 40;
  padding: 4px 0 0;
}

.bell__drop[hidden] { display: none; }


.bell__drop li { list-style: none; }

.bell__drop a {
  display: block;
  padding: 8px 12px;
  color: var(--ink);
  text-decoration: none;
  font-size: 13.5px;
}

.bell__drop a:visited { color: var(--ink); }
.bell__drop a:hover { background: var(--row-hot); }

.bell__drop .is-new a { box-shadow: inset 3px 0 0 var(--orange); }

.bell__drop time {
  display: block;
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--faint);
}

.bell__all {
  border-top: 1px solid var(--line);
  color: var(--orange) !important;
  font-family: var(--mono);
  font-size: 11px !important;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.logout {
  background: none;
  border: 0;
  padding: 0;
  color: var(--muted);
  font-size: 13px;
}

.logout:hover { color: var(--orange); }

/* ---------- page wrap ---------- */

.wrap {
  padding: 22px 20px 48px;
  width: 100%;
  max-width: none;
  min-width: 0;
  overflow-wrap: break-word;
  container-type: inline-size;
  container-name: page;
}

.skip {
  position: absolute;
  left: 10px;
  top: -40px;
  z-index: 80;
  background: #ff6b1a;
  color: #1a0e06;
  padding: 6px 10px;
  text-decoration: none;
  font-size: 13px;
}

.skip:focus { top: 28px; }

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.foot nav { display: flex; flex-wrap: wrap; gap: 8px 14px; }

.foot a, .foot a:visited { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--orange); }

.totop {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

a[data-totop] {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 15;
  padding: 6px 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--muted);
  text-decoration: none;
}

a[data-totop][hidden] { display: none; }

.desknote {
  display: none;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ---------- home ---------- */

.lede h1 {
  margin: 0 0 14px;
  max-width: none;
  font-size: clamp(2rem, 3vw, 2.65rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.lede__text {
  max-width: none;
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.6;
}

.lede__text p { margin: 0 0 .85em; }
.lede__text ul { margin: 0 0 1em; padding-left: 1.15em; }
.lede__text li { list-style: disc; margin: 0 0 .3em; }

.ruler {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 14px 0 22px;
  padding: 5px 0 4px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--faint);
}

.ruler span {
  position: relative;
  padding-top: 6px;
  white-space: nowrap;
}

.ruler span::before {
  content: "";
  position: absolute;
  left: 0;
  top: -5px;
  width: 1px;
  height: 5px;
  background: var(--line-2);
}

.band { margin: 26px 0 8px; }

.band__h {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 12px;
  align-items: baseline;
  margin: 0;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.band__h h2 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.band__h a {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
}

.band__note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

/* ---------- program rows ---------- */

.clip {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) 5.75rem;
  grid-template-areas:
    "img name side"
    "img meta side";
  column-gap: 14px;
  row-gap: 2px;
  align-items: center;
  padding: 11px 6px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.clip:visited { color: inherit; }

.clip:hover,
.clip:focus-visible {
  background: var(--row-hot) !important; /* page rule later was winning */
  text-decoration: none;
}

.clip__img {
  grid-area: img;
  width: 60px;
  height: 60px;
  max-width: none;
  object-fit: cover;
  border-radius: 22%;
  background: transparent;
}

.clip__name {
  grid-area: name;
  min-width: 0;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.3;
  overflow-wrap: break-word;
}

.clip__meta {
  grid-area: meta;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.clip__ver {
  overflow-wrap: anywhere;
  font-size: 0.9rem;
}

.clip__bin { color: var(--faint); }

.clip__side {
  grid-area: side;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  align-self: center;
}

.clip__size {
  font-size: 0.9rem;
  white-space: nowrap;
}

.clip__upd {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--orange);
}

/* ---------- crumbs, prog head, buttons ---------- */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  align-items: baseline;
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
}

.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:visited { color: var(--muted); }
.crumbs a:hover { color: var(--orange); }

.crumbs [aria-current="page"] {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.prog__id {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 14px 16px;
  align-items: center;
}

.prog__icon {
  width: 76px;
  height: 76px;
  max-width: none;
  border-radius: 22%;
  background: transparent;
}

.prog__title {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  overflow-wrap: break-word;
}

.binlink {
  display: inline-block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
}

.prog__when {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.prog__when time { font-family: var(--mono); font-size: 12px; }

.acts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--orange);
  color: #1a0e06;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}

.btn:visited { color: #1a0e06; }
.btn:hover { background: var(--orange-2); text-decoration: none; }

.btn--dl::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M11 3h2v9.2l3.3-3.3 1.4 1.4L12 16.9 6.3 10.3l1.4-1.4 3.3 3.3V3zM5 19h14v2H5z'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M11 3h2v9.2l3.3-3.3 1.4 1.4L12 16.9 6.3 10.3l1.4-1.4 3.3 3.3V3zM5 19h14v2H5z'/></svg>") center / contain no-repeat;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}

.btn--ghost:visited { color: var(--ink); }
.btn--ghost:hover { border-color: var(--orange); color: var(--orange); background: transparent; }

.btn--fav.is-on {
  border-color: var(--orange);
  color: var(--orange);
}

/* ---------- reel ---------- */

.reel { margin: 0 0 22px; min-width: 0; max-width: 100%; }

.reel__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
}

.reel__nav { display: flex; gap: 4px; }

.reel__nav button {
  width: 32px;
  height: 26px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 0;
}

.reel__nav button:disabled { opacity: .35; cursor: default; }

.reel__track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 4px;
}

.reel__track figure {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  margin: 0;
  scroll-snap-align: start;
  min-width: 0;
}

.reel__track img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  background: #0a0a0a;
}

.reel figcaption {
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
}

/* ---------- tabs + prose ---------- */

.prog__split {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.prog__main,
.tabs,
.thread {
  min-width: 0;
  max-width: 100%;
}

.tabs__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  width: 0;
  min-width: 100%; /* keeps the track at the column, buttons wrap */
  border-bottom: 1px solid var(--line);
}

.tabs__bar a,
.tabs__bar button {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 12px 16px 13px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
}

.tabs__bar a:hover,
.tabs__bar button[aria-selected="true"] {
  color: var(--ink);
  border-bottom-color: var(--orange);
}

.tabs__panel {
  padding-top: 16px;
  min-width: 0;
  scroll-margin-top: 80px;
}

.prose {
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.65;
  max-width: none;
  min-width: 0;
}

.prose h2 {
  font-family: var(--cond);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 1.45em 0 .4em;
}

.prose h3 {
  font-family: var(--cond);
  font-size: 1.18rem;
  letter-spacing: -0.02em;
  margin: 1.25em 0 .3em;
}

.prose p { margin: 0 0 .9em; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.2em; }
.prose ul li { list-style: disc; }
.prose ol li { list-style: decimal; }
.prose li { margin: 0 0 .35em; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }

.prose code {
  font-family: var(--mono);
  font-size: .86em;
  background: rgba(255, 107, 26, .1);
  padding: .05em .28em;
}

.prose pre {
  overflow-x: auto;
  max-width: 100%;
  min-width: 0;
  margin: 0 0 1em;
  padding: 12px 12px;
  border: 1px solid var(--line);
  background: #0c0c0c;
  color: #ece8e1;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.45;
}

:root[data-theme="light"] .prose pre {
  background: #fffdf8;
  color: #1b1814;
}

.prose pre code { background: none; padding: 0; font-size: inherit; }

.table-scroller {
  display: block;
  overflow-x: auto;
  width: 0;
  min-width: 100%;
  margin: 0 0 1em;
}

.prose table {
  width: 100%;
  min-width: 460px;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.35;
}

.prose th, .prose td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 7px 8px;
  vertical-align: top;
}

.prose th {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ---------- specs ---------- */

.specs {
  border-top: 1px solid var(--line);
  border-left: 3px solid var(--orange);
  padding: 8px 0 8px 12px;
  min-width: 0;
}

.specs h2 {
  margin: 0 0 4px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--faint);
}

.specs dl { margin: 0; }

.specs dl > div {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.specs dt {
  margin: 0;
  font-size: 10px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--faint);
}

.specs dd { margin: 0; overflow-wrap: anywhere; }

/* ---------- faq ---------- */

.faq { margin: 22px 0; }

.faq h2 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }

.faq summary {
  cursor: pointer;
  padding: 10px 0;
  font-family: var(--cond);
  font-size: 1.08rem;
}

.faq details p {
  margin: 0 0 12px;
  font-family: var(--serif);
  line-height: 1.5;
}

/* ---------- comments ---------- */

.thread { margin-top: 28px; min-width: 0; }

.thread__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
}

.thread__bar h2 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.thread__sort { display: flex; gap: 12px; margin-left: auto; }

.thread__sort button {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 8px 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.thread__sort button[aria-pressed="true"] {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

.cform { margin: 14px 0; }

.cform__gate { font-family: var(--serif); }

.field { display: flex; flex-direction: column; gap: 4px; margin: 0 0 12px; }
.field label { font-size: 13px; }

input[type="email"],
input[type="password"],
input[type="text"],
input[type="search"],
textarea {
  width: 100%;
  max-width: 100%;
  padding: 8px 10px;
  background: var(--field);
  border: 1px solid var(--line-2);
  border-radius: 2px;
}

textarea { min-height: 120px; resize: vertical; }

.hint { margin: 0 0 10px; color: var(--muted); font-size: 13px; }

.form-err, .field-err {
  margin: 0 0 10px;
  color: var(--blush);
  font-size: 13.5px;
}

.form-err, .form-ok {
  padding: 7px 10px;
  border-left: 3px solid var(--blush);
}

.form-ok {
  border-left-color: var(--moss);
  color: var(--moss);
  margin: 0 0 12px;
}

.check {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 12px;
  font-size: 14px;
}

.check input { width: auto; }

.hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cmt {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 8px 10px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.cmt__av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #2a2118;
  color: #ff6b1a;
  font-family: var(--mono);
  font-size: 11px;
}

.cmt__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: baseline;
  font-size: 13px;
}

.cmt__name { font-weight: 650; }

.cmt__meta time {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
}

.cmt__text {
  margin: 4px 0;
  font-family: var(--serif);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.cmt.is-held .cmt__text,
.cmt.is-held .cmt__meta time,
.cmt.is-held .cmt__name { opacity: .55; }

.flag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--orange);
}

.flag--dead { color: var(--blush); }
.flag--ok { color: var(--moss); }

.cmt__tools { display: flex; gap: 14px; margin: 4px 0 0; }

.cmt__tools button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.cmt__tools button[aria-pressed="true"] { color: var(--orange); }

.replies {
  margin-top: 8px;
  padding-left: 10px;
  border-left: 1px solid var(--line);
}

.replies .cmt { padding: 8px 0; }
.replies .cmt__av { width: 28px; height: 28px; font-size: 10px; }

.reply { margin-top: 8px; }

.reply textarea { min-height: 72px; }

.void {
  margin: 12px 0;
  padding: 14px 12px;
  border: 1px dashed var(--line-2);
  color: var(--muted);
  font-size: 14.5px;
}

/* ---------- sheet ---------- */

.sheet {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 70;
  padding: 8vh 12px 24px;
  overflow: auto;
}

.sheet:not([hidden]) { display: block; }

.sheet__back {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .72);
}

.sheet__panel {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: none;
  margin: 0 auto;
  overflow: visible;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-top: 3px solid #ff6b1a;
  padding: 14px 14px 18px;
}

.sheet__bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.sheet__bar h2 {
  margin: 0;
  font-size: 1.35rem;
}

.sheet__x {
  flex: 0 0 auto;
  width: 32px;
  height: 28px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 0;
}

.sheet__body { margin-top: 10px; font-size: 14.5px; }
.sheet__body ol { margin: 0 0 14px; padding-left: 1.2em; }
.sheet__body li { list-style: decimal; margin: 0 0 .4em; }

.mirrors h3, .old h3 {
  margin: 16px 0 6px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
}

.mirrors .btn { width: 100%; margin: 0 0 6px; }

.old { margin: 8px 0 0; }

.old li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 12px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.old a { white-space: nowrap; }

html:has(.sheet:not([hidden])) body { overflow: hidden; }

/* ---------- auth, account, errors, help ---------- */

.auth { max-width: 440px; }
.auth h1, .miss h1, .who h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); margin: 0 0 8px; line-height: .95; }

.auth p.lead, .miss p { font-family: var(--serif); max-width: 52ch; }

.swap { margin: 12px 0 0; font-size: 14px; }

.who {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.who p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }

.acct-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}

.acct-nav a {
  padding: 10px 12px 11px;
  color: var(--muted);
  text-decoration: none;
  font-family: var(--cond);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 13px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.acct-nav a:visited { color: var(--muted); }
.acct-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--orange); }

.note {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
  padding: 10px 0 10px 10px;
  border-top: 1px solid var(--line);
}

.note.is-new { box-shadow: inset 3px 0 0 var(--orange); }

.note a { color: var(--ink); text-decoration: none; }
.note a:visited { color: var(--ink); }
.note a:hover { color: var(--orange); }

.note time {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
}

.mine {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.mine header {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: baseline;
}

.mine a { font-weight: 650; text-decoration: none; }
.mine p { margin: 6px 0; font-family: var(--serif); }
.mine time { font-family: var(--mono); font-size: 11px; color: var(--faint); }

.find { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin: 14px 0; max-width: 520px; }
.find .field { flex: 1 1 180px; margin: 0; }

.miss-bins { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 8px; }
.miss-bins a { text-decoration: none; }

.toc {
  margin: 0 0 20px;
  padding-left: 12px;
  border-left: 3px solid var(--orange);
}

.toc p {
  margin: 0 0 4px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
}

.toc a { display: block; padding: 3px 0; color: var(--ink); text-decoration: none; }
.toc a:visited { color: var(--ink); }
.toc a:hover { color: var(--orange); }

.by {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.by time { font-family: var(--mono); font-size: 12px; }

.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  margin-top: 14px;
}

.pager a, .pager span {
  min-width: 34px;
  padding: 6px 8px;
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.pager a:visited { color: var(--ink); }
.pager a[aria-current="page"] { color: var(--orange); border-bottom-color: var(--orange); }
.pager .is-dead { color: var(--faint); }

/* ---------- breaks ---------- */

@media (max-width: 560px) {
  .clip {
    grid-template-columns: 60px minmax(0, 1fr);
    grid-template-areas:
      "img name"
      "img meta"
      "img side";
  }

  .clip__side {
    flex-direction: row;
    align-items: baseline;
    justify-content: flex-start;
    gap: 10px;
  }
}

@media (max-width: 420px) {
  .user__name { display: none; }
  .ruler span:nth-child(n+4) { display: none; }
}

@media (min-width: 720px) {
  .wrap { padding: 32px 32px 64px; }
  .note { grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; }
}

@media (min-width: 960px) {
  .bench { grid-template-columns: 292px minmax(0, 1fr); }
  .burger, .rail__shut, .topbar .brand { display: none; }
  .desknote { display: inline; }

  .rail,
  .rail:target,
  .rail.is-open {
    position: sticky;
    top: 22px;
    transform: none;
    width: auto;
    height: calc(100vh - 22px);
    height: calc(100dvh - 22px);
  }

  .shade { display: none !important; } /* open shade was covering the stage after a rotate */

}

@container page (min-width: 760px) {
  .clips--sheet .clip {
    grid-template-columns: 60px minmax(0, 1.4fr) minmax(10rem, 15rem) 5.75rem;
    grid-template-areas: "img name meta side";
  }

  .clips--sheet .clip__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
}

@container page (min-width: 1000px) {
  .clips--split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 36px;
  }
}

@container page (min-width: 880px) {
  .prog__split {
    grid-template-columns: minmax(0, 1fr) 260px;
    align-items: start;
  }

  .specs {
    position: sticky;
    top: 86px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reel__track { scroll-behavior: auto; }
}

@container page (min-width: 880px) and (max-width: 1040px) {
  .prog__split { grid-template-columns: minmax(0, 1fr) 220px; }
  .specs dl > div { grid-template-columns: 6.4rem minmax(0, 1fr); }
}


/* ---------- сеть: appletorrent ---------- */

/* верхняя панель: поиск всегда под рукой, вход заметный; все органы одной высоты (36px) */
.topbar { gap: 8px 10px; }
.burger { width: 40px; height: 36px; }
.theme { height: 36px; margin-left: auto; padding: 0 10px; }

.seek {
  order: 10;
  flex: 1 1 100%;
  display: flex;
  align-items: center;
  height: 36px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--field);
  overflow: hidden;
}
.seek:focus-within { border-color: var(--orange); }
.seek__ico { flex: 0 0 auto; margin: 0 4px 0 10px; color: var(--faint); }
.seek input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  padding: 0 8px;
  border: 0;
  background: transparent;
  font-size: 15px;
  outline: none;
}
.seek__go {
  flex: 0 0 auto;
  height: 100%;
  padding: 0 14px;
  border: 0;
  border-left: 1px solid var(--line-2);
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.seek__go:hover { background: var(--orange); color: #1a0e06; }

.user { gap: 8px; }
.signin {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--orange);
  color: #1a0e06;
  font-weight: 650;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.signin:visited { color: #1a0e06; }
.signin:hover { background: var(--orange-2); color: #1a0e06; }
.bell__btn { width: 36px; height: 36px; border-radius: 8px; }
.bell__n { border-radius: 8px; }
.bell__drop { border-radius: 8px; overflow: hidden; }
.bell__drop ul { margin: 0; padding: 0; }
.user__me { height: 36px; }
.logout {
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  color: var(--ink);
  font-size: 13px;
  white-space: nowrap;
}
.logout:hover { border-color: var(--orange); }

@media (min-width: 720px) {
  .seek { order: 0; flex: 1 1 260px; max-width: 480px; margin-left: auto; }
  .theme { margin-left: 0; }
}
@media (max-width: 420px) {
  .theme { padding: 0 8px; }
  .theme [data-theme-label] { display: none; }
  .topbar .brand span { display: none; }
}

/* рубрики в рейке: счётчик справа; рейка не тянется за страницей (липкая, со своей прокруткой) */
.bin { grid-template-columns: 26px minmax(0, 1fr) auto; }
.bin__n { font-family: var(--mono); font-size: 10px; color: var(--faint); }
.bin[aria-current="page"] .bin__n { color: var(--orange); }

/* подвал внизу рабочей области, а не посреди страницы */
.stage { display: flex; flex-direction: column; min-height: calc(100vh - 22px); min-height: calc(100dvh - 22px); }
.stage > main { flex: 1 0 auto; }
.stage > .foot { margin: 0 20px; padding: 16px 0 22px; }
@media (min-width: 720px) { .stage > .foot { margin: 0 32px; } }

/* строки программ */
.clip__ph {
  display: grid;
  place-items: center;
  background: #2a2118;
  color: var(--orange);
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 600;
}
.clip__note {
  display: block;
  margin-top: 3px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: .95rem;
  line-height: 1.4;
  color: var(--muted);
}
.clip--pick { box-shadow: inset 3px 0 0 var(--moss); }
.clip__upd:empty { display: none; }
.clips--split { container-type: inline-size; }

/* главная */
.lede__lead {
  margin: 0;
  max-width: none;
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--muted);
}
.about { margin-top: 34px; }
.about .lede__text { margin-top: 12px; }
.lede__text a { text-decoration: underline; text-underline-offset: 2px; }

/* программа: кнопки одной высоты, заметные; на телефоне сразу под заголовком во всю ширину */
.acts .btn { min-height: 46px; }
.btn--fav::before { content: "☆"; font-size: 1.05em; }
.btn--fav.is-on::before { content: "★"; }
@media (max-width: 560px) {
  .acts .btn { flex: 1 1 100%; }
}
.prog__icon.clip__ph { width: 76px; height: 76px; border-radius: 22%; font-size: 30px; }
.tabs__bar button { cursor: pointer; white-space: nowrap; }
@media (max-width: 720px) {
  .tabs__bar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tabs__bar::-webkit-scrollbar { display: none; }
  .tabs__bar button { padding: 12px 12px 13px; font-size: .85rem; }
}
.tabs__bar button[aria-selected="false"] { color: var(--muted); }
.faq details > *:not(summary) { margin: 0 0 12px; font-family: var(--serif); line-height: 1.5; }
.faq summary { font-weight: 600; }
.replies:empty { display: none; }
.cmts { margin: 0; padding: 0; }
.cmts > li { list-style: none; }
.cform textarea, .reply textarea { width: 100%; }
.sheet__body .mirrors { display: flex; flex-direction: column; gap: 6px; margin: 0 0 6px; }
.sheet__body .mirrors .btn { width: 100%; margin: 0; }
.sheet__body h3 { margin: 16px 0 6px; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.sheet__body ul { margin: 0 0 12px; padding-left: 1.2em; }
.sheet__body ul li { list-style: disc; }
.old li { display: block; padding: 0; border: 0; }

/* монитор программы (слайдер скриншотов) */
.shots { margin: 0 0 24px; min-width: 0; }
.shots__frame { margin: 0 0 12px; }
.shots__frame img { width: 100%; border: 1px solid var(--line); }
.shots.is-mon .shots__frame { display: none; }
.monitor {
  border: 1px solid #3d3934;
  background: #0a0a0a;
  color: #ece8e1;
  outline: none;
}
.monitor:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.monitor__bar {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 6px 10px;
  border-bottom: 1px solid #2a2926;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #8a8176;
}
.monitor__tag { padding: 2px 6px; background: #ff6b1a; color: #1a0e06; letter-spacing: .1em; }
.monitor__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.monitor__tc { margin-left: auto; color: #ff6b1a; font-size: 12px; letter-spacing: .04em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.monitor__view {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  padding: 0;
  border: 0;
  background: #050505;
  cursor: zoom-in;
}
.monitor__view { max-height: min(72vh, 620px); }
.monitor__img { width: 100%; height: 100%; max-width: none; object-fit: contain; }
.monitor__safe { position: absolute; inset: 5%; border: 1px dashed rgba(255, 255, 255, .13); pointer-events: none; }
.monitor__safe::after { content: ""; position: absolute; inset: 5.5%; border: 1px dashed rgba(255, 255, 255, .07); }
.monitor__burn {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 2px 7px;
  background: rgba(0, 0, 0, .72);
  color: #fff6ee;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
}
.monitor__cap {
  margin: 0;
  padding: 7px 10px;
  border-top: 1px solid #2a2926;
  font-family: var(--mono);
  font-size: 11px;
  color: #9c958b;
}
.monitor__cap:empty { display: none; }
.monitor__deck {
  display: grid;
  grid-template-columns: auto auto auto minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  padding: 8px 10px;
  border-top: 1px solid #2a2926;
}
.monitor__btn {
  width: 36px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #3d3934;
  border-radius: 6px;
  background: transparent;
  color: #ece8e1;
}
.monitor__btn:hover { border-color: #ff6b1a; color: #ff6b1a; }
.monitor__btn--play, .monitor__btn--play:hover { background: #ff6b1a; border-color: #ff6b1a; color: #1a0e06; }
.monitor__lane {
  position: relative;
  display: flex;
  height: 32px;
  margin: 0 4px;
  border: 1px solid #2a2926;
  background: #151311;
}
.monitor__mark {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  padding: 0 0 0 14px;
  border: 0;
  border-right: 1px solid #2a2926;
  background: transparent;
  color: #6f6962;
  font-family: var(--mono);
  font-size: 10px;
  text-align: left;
}
.monitor__mark:last-of-type { border-right: 0; }
.monitor__mark::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  transform: rotate(45deg);
  background: #ff6b1a;
}
.monitor__mark:nth-child(4n+2)::before { background: #c6d36e; }
.monitor__mark:nth-child(4n+3)::before { background: #7eb8d4; }
.monitor__mark:nth-child(4n+4)::before { background: #e07a6a; }
.monitor__mark:hover { color: #ece8e1; }
.monitor__mark[aria-current="true"] { background: #24180f; color: #ece8e1; }
.monitor__head {
  position: absolute;
  top: -5px;
  bottom: -5px;
  left: 0;
  width: 2px;
  margin-left: -1px;
  background: #fff6ee;
  pointer-events: none;
  transition: left .1s linear;
}
.monitor__head::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -5px;
  border: 6px solid transparent;
  border-top-color: #ff6b1a;
}
.monitor__count { min-width: 4.2em; text-align: right; font-family: var(--mono); font-size: 11px; color: #9c958b; }
.monitor.is-single .monitor__deck { display: none; }
.monitor.is-full {
  position: fixed;
  inset: 22px 0 0 0;
  z-index: 65;
  display: flex;
  flex-direction: column;
}
.monitor.is-full .monitor__view { flex: 1 1 auto; aspect-ratio: auto; max-height: none; min-height: 0; cursor: zoom-out; }
body.is-mon-full { overflow: hidden; }
@media (max-width: 560px) {
  .monitor__deck { grid-template-columns: auto auto auto minmax(0, 1fr); }
  .monitor__count { display: none; }
  .monitor__mark { padding: 0; font-size: 0; }
  .monitor__mark::before { left: 50%; margin-left: -3px; }
}
