/* AppTorents catalog. Colors live here; page copy does not. */

:root {
  --paper: #1a1d22;
  --slab: #22262d;
  --lift: #2b3038;
  --hair: #343a44;
  --ink: #f3f5f7;
  --ash: #8d95a1;
  --amber: #f5a524;
  --go: #2f7cf6;
  --bad: #e15d5d;
  --good: #3cba78;
  --r: 4px;
  --edge: clamp(16px, 1.4vw, 28px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  display: flex;
  align-items: flex-start;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  min-width: 320px;
}
img { max-width: 100%; height: auto; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--amber); }
a:hover { text-decoration: none; }
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}
.hp {
  position: absolute !important;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--amber);
  color: #1a1d22;
  padding: 6px 10px;
  border-radius: var(--r);
  z-index: 80;
  text-decoration: none;
}
.skip:focus { top: 8px; }

/* ---------- rail ---------- */
.rail {
  position: relative;
  z-index: 5;
  flex: 0 0 72px;
  width: 72px;
  align-self: flex-start;
  background: var(--slab);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #2a2f36;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 64px;
  padding: 0 0 0 18px;
  color: #fff;
  text-decoration: none;
  flex: none;
}
.brand .mark { position: relative; width: 32px; height: 32px; flex: none; display: block; }
.mark .face { position: absolute; left: 0; top: 0; width: 32px; height: 32px; display: block; }
.mark .look, .mark .wink { opacity: 0; }
.brand:hover .mark .look,
.brand:focus-visible .mark .look { opacity: 1; }
.brand:hover .mark .open,
.brand:focus-visible .mark .open { opacity: 0; transition: opacity .16s linear; }
.brand.is-blinking .mark .wink { animation: markwink .32s cubic-bezier(.4,0,.2,1); }
.brand.is-blinking:not(:hover) .mark .open { animation: markunder .32s linear; }
@keyframes markwink {
  0% { opacity: 0; }
  28%, 62% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes markunder {
  0%, 27% { opacity: 1; }
  28%, 62% { opacity: 0; }
  63%, 100% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .brand.is-blinking .mark .wink,
  .brand.is-blinking .mark .open { animation: none; }
}
.brand-txt { min-width: 0; white-space: nowrap; }
.rail .brand-txt { opacity: 0; }
.top .brand .word { font-size: 20px; }
.top .tagline { display: none; }
.brand .word {
  display: block;
  font-weight: 650;
  font-size: 20px;
  letter-spacing: .02em;
  line-height: 1.1;
  color: #fff;
}
.brand .wa { color: #fff; }
.brand .wt { color: #9aa2ad; font-weight: 600; }
.brand .tagline {
  display: block;
  color: var(--ash);
  font-size: 11px;
  margin-top: 1px;
}
.top .brand .tagline { display: none; }
.rail-nav { display: flex; flex-direction: column; padding: 4px 0 8px; }
.rail-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  margin: 1px 0;
  padding: 0 12px 0 26px;
  color: #c8ced6;
  text-decoration: none;
  white-space: nowrap;
  font-size: 15px;
}
.rail-nav a .ico { width: 20px; height: 20px; flex: none; display: block; }
.rail-nav a .ico svg { width: 20px; height: 20px; display: block; }
.rail-nav a .lbl { opacity: 0; }
.rail-nav a .n {
  margin-left: auto;
  opacity: 0;
  min-width: 22px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #323842;
  color: #d5dae1;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
}
.rail-nav a:hover { background: #2a3038; color: #fff; }
.rail-nav a.on {
  background: var(--lift);
  color: var(--amber);
  box-shadow: inset 3px 0 0 var(--amber);
}
.rail-nav a.on .n { background: #3a3324; color: var(--amber); }
.rail-fav { margin-top: 8px; border-top: 1px solid var(--hair); padding-top: 8px; }
.rail-fav p, .rail-legal {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin: 0;
  padding: 0 16px;
  color: var(--ash);
  font-size: 11px;
  line-height: 1.4;
}
.rail-legal { margin-top: 8px; padding-bottom: 16px; border-top: 1px solid var(--hair); }
.rail-legal a { color: var(--ash); text-decoration: none; display: block; margin: 2px 0; }
.rail-legal a:hover { color: var(--amber); }

/* ---------- work ---------- */
.work { flex: 1 1 auto; min-width: 0; min-height: 100vh; display: flex; flex-direction: column; }
.top {
  display: flex;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--hair);
  width: 100%;
  box-sizing: border-box;
  min-height: 68px;
  padding: 12px var(--edge);
}
.top .brand { display: none; height: auto; padding: 0; }
.only-m { display: none; }
.burger {
  background: none;
  border: 0;
  color: #fff;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
}
.burger svg { width: 18px; height: 18px; display: block; }
.seek {
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
  height: 46px;
  background: var(--lift);
  border: 1px solid #3c4450;
  border-radius: var(--r);
  padding: 0 6px 0 12px;
}
.seek input {
  flex: 1;
  min-width: 0;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 0 8px;
  margin: 0;
  outline: none;
  font-size: 16px;
  line-height: 44px;
}
.seek button {
  background: none;
  border: 0;
  color: var(--ash);
  width: 36px;
  height: 36px;
  padding: 0;
  display: grid;
  place-items: center;
  flex: none;
}
.seek button svg { width: 20px; height: 20px; display: block; }
.seek:focus-within { outline: 1px solid var(--amber); }
.who { display: flex; align-items: center; gap: 10px; flex: none; position: relative; }
.who > a { color: var(--ink); text-decoration: none; font-size: 16px; white-space: nowrap; }
.who > a:hover { color: var(--amber); }
.who > a.signin {
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0 18px;
  background: var(--amber);
  color: #1a1d22;
  font-weight: 700;
  border-radius: var(--r);
}
.who > a.signin:hover { background: #ffc14d; color: #1a1d22; }
.bell {
  position: relative;
  background: none;
  border: 0;
  color: #d5dae1;
  padding: 4px;
  display: grid;
}
.bell .dot {
  position: absolute;
  top: -2px;
  right: -4px;
  background: var(--amber);
  color: #1a1d22;
  font-size: 10px;
  font-weight: 700;
  min-width: 15px;
  height: 15px;
  line-height: 15px;
  text-align: center;
  border-radius: 8px;
  padding: 0 3px;
}
.drop {
  position: absolute;
  top: 36px;
  right: 0;
  width: 320px;
  max-width: calc(100vw - 24px);
  background: var(--slab);
  border-radius: var(--r);
  border: 1px solid var(--hair);
  z-index: 30;
  padding: 6px 0 0;
}
.drop ul { list-style: none; margin: 0; padding: 0; }
.drop li a {
  display: block;
  padding: 8px 12px;
  text-decoration: none;
  color: var(--ink);
  border-top: 1px solid transparent;
}
.drop li.unread a { background: #262b22; }
.drop li a span { display: block; color: var(--ash); font-size: 12px; margin-top: 2px; }
.drop .all {
  display: block;
  text-align: center;
  padding: 8px;
  border-top: 1px solid var(--hair);
  font-size: 13px;
}
.ava {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #3a3324;
  color: var(--amber);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.uname { color: #fff; text-decoration: none; font-size: 13px; }
.who [data-mn-logout] {
  background: none;
  border: 0;
  color: var(--ash);
  padding: 0;
  font-size: 13px;
}
.who [data-mn-logout]:hover { color: var(--amber); }

.veil {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 14, .55);
  border: 0;
  z-index: 34;
  padding: 0;
}
.canvas {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 18px var(--edge) 42px;
  flex: 1;
  box-sizing: border-box;
}

/* ---------- home bits ---------- */
.intro {
  background: var(--slab);
  border-radius: var(--r);
  padding: 18px 18px 14px;
  margin: 6px 0 16px;
}
.intro h1 {
  margin: 0 0 8px;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.intro p { margin: 0 0 8px; color: #d5dae1; max-width: 68ch; }
.intro ul { margin: 6px 0 0; padding-left: 18px; color: #d5dae1; }
.intro li { margin: 3px 0; }

.cloud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
}
.cloud a {
  text-decoration: none;
  color: #e7ebf0;
  background: #262b33;
  border: 1px solid #3c4450;
  border-radius: 999px;
  padding: 6px 12px;
  line-height: 1.2;
  font-size: 14px;
}
.cloud a:hover { color: #1a1d22; background: var(--amber); border-color: var(--amber); }
.cloud .t-lg { background: #3a3120; border-color: #8a6a2a; color: var(--amber); font-weight: 650; }
.cloud .t-sm { color: #c5ccd4; }

.cat-head { margin: 2px 0 16px; }
.cat-head h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.cat-note {
  margin: 8px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--hair);
  max-width: 72ch;
  color: #d5dae1;
}
.cat-note p { margin: 0 0 10px; }

.picks { margin: 0 0 8px; }
.picks h2, .band-h h2, .copy h1, .plain h1 { margin: 0; font-size: 22px; letter-spacing: -0.015em; }
.pick-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 10px;
}
.pick {
  display: grid;
  grid-template-columns: 48px 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 2px;
  background: var(--slab);
  border-radius: var(--r);
  padding: 10px;
  text-decoration: none;
  color: inherit;
  position: relative;
}
.pick:hover { background: var(--lift); }
.pick img { width: 48px; height: 48px; border-radius: 10px; grid-row: 1 / span 2; }
.pick strong { font-size: 16px; color: #fff; padding-right: 42px; }
.pick em { font-style: normal; color: var(--ash); font-size: 14px; padding-right: 8px; }
.pick .save { top: 8px; right: 8px; }

.band { padding: 16px 0 6px; }
.band + .band { border-top: 1px solid var(--hair); margin-top: 8px; }
.band-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.band-h a { font-size: 13px; white-space: nowrap; }

.mosaic {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--slab);
  border-radius: var(--r);
  padding: 14px 0 0;
  min-width: 0;
  text-decoration: none;
  color: #fff;
  min-height: 188px;
}
.tile:hover { background: var(--lift); }
.save {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #16191d;
  color: var(--amber);
  font-size: 11px;
  line-height: 1;
  padding: 3px 5px;
  border-radius: var(--r);
  font-variant-numeric: tabular-nums;
  z-index: 1;
}
.tile .ico {
  width: 56px;
  height: 56px;
  margin: 2px auto 8px;
  border-radius: 12px;
}
.fresh {
  display: block;
  min-height: 14px;
  text-align: center;
  color: var(--amber);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-style: normal;
}
.tile .nm {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 2px 12px 0;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  min-height: 2.6em;
  overflow-wrap: break-word;
}
.tile .blurb {
  margin: 3px 12px 10px;
  text-align: center;
  color: var(--ash);
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tile .meta {
  margin-top: auto;
  display: block;
  padding: 7px 10px 8px;
  border-top: 1px solid var(--hair);
  color: var(--ash);
  font-size: 13px;
  text-align: left;
}
.tile .vs {
  display: block;
  font-family: Consolas, "SF Mono", ui-monospace, monospace;
  overflow-wrap: break-word;
}
.tile .cat {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: #aeb6c0;
}

/* ---------- crumbs, pager ---------- */
.crumbs { font-size: 12.5px; color: var(--ash); margin: 4px 0 12px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 22px 0 8px; }
.pager a, .pager span {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  display: grid;
  place-items: center;
  background: var(--slab);
  color: #fff;
  text-decoration: none;
  border-radius: var(--r);
  font-size: 13px;
}
.pager .on { background: var(--amber); color: #1a1d22; font-weight: 700; }
.pager .gap { background: transparent; min-width: 16px; }

/* ---------- program ---------- */
.split { display: grid; gap: 16px; }
.copy h1 { font-size: 30px; line-height: 1.2; margin: 0 0 6px; overflow-wrap: anywhere; }
.prog-id { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.prog-id img { width: 64px; height: 64px; border-radius: 14px; flex: none; }
.prog-id h1 { margin: 0 0 4px; font-size: 30px; line-height: 1.15; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.prog-id .lead { flex: 1 0 100%; margin: 2px 0 0; }
.kicker { font-size: 15px; }

.shots { position: relative; margin: 0 0 16px; }
.shot-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; /* safari: otherwise the snap stalls */
  padding-bottom: 4px;
}
.shot-row a {
  flex: 0 0 86%;
  scroll-snap-align: start;
  background: #111318;
  border-radius: var(--r);
}
.shot-row img { width: 100%; height: 180px; object-fit: contain; border-radius: var(--r); display: block; background: #0c0e12; }
.shot-nav {
  display: none;
  position: absolute;
  top: 42%;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: var(--r);
  background: rgba(26, 29, 34, .88);
  color: #fff;
  z-index: 2;
}
.shot-nav.prev { left: 6px; }
.shot-nav.next { right: 6px; }
.shot-nav svg { width: 16px; height: 16px; display: block; margin: 0 auto; }

/* proof-sheet slider, built by site.js on top of the filmstrip */
.shot-stage {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 8px;
  background: #12151a;
  border-radius: var(--r);
  padding: 8px;
  border: 1px solid #2e343d;
}
.shot-spine { display: flex; flex-direction: column; gap: 4px; }
.shot-tick {
  flex: 1;
  min-height: 28px;
  border: 0;
  border-radius: var(--r);
  background: #22262d;
  color: #9aa3ae;
  font-family: Consolas, "SF Mono", ui-monospace, monospace;
  font-size: 12px;
  padding: 0;
}
.shot-tick.is-on { background: var(--amber); color: #1a1d22; font-weight: 700; }
.shot-frame {
  display: block;
  position: relative;
  overflow: hidden;
  background: #0c0e12;
  border-radius: var(--r);
  height: 220px;
}
.shot-frame img { width: 100%; height: 100%; object-fit: contain; display: block; }
.lead {
  margin: 0 0 14px;
  font-size: 17.5px;
  line-height: 1.55;
  color: #e4e8ed;
}
.shot-frame img.is-in { animation: shotwipe .42s ease; }
@keyframes shotwipe {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}
.shot-cap {
  margin: 8px 2px 0;
  font-size: 15px;
  color: #d5dae1;
}
.shot-cap b {
  font-family: Consolas, "SF Mono", ui-monospace, monospace;
  color: var(--amber);
  font-weight: 600;
  margin-right: 8px;
}
.shot-meter {
  height: 3px;
  margin-top: 8px;
  background: #2b3038;
  border-radius: 2px;
  overflow: hidden;
}
.shot-meter span { display: block; height: 100%; width: 0; background: var(--amber); }
.shots.is-ready .shot-row { display: none; }
.shots.is-ready .shot-nav {
  display: grid;
  place-items: center;
  top: auto;
  bottom: 78px;
  background: var(--amber);
  color: #1a1d22;
  border: 0;
}
.shots.is-ready .shot-nav.prev { left: auto; right: 54px; }
.shots.is-ready .shot-nav.next { right: 12px; }

.tabbar { display: flex; gap: 4px; border-bottom: 1px solid var(--hair); margin-bottom: 12px; }
.tabbar button {
  background: none;
  border: 0;
  color: var(--ash);
  padding: 8px 12px 9px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tabbar button[aria-selected="true"] {
  color: #fff;
  border-bottom-color: var(--amber);
}

.toc {
  background: var(--slab);
  border-radius: var(--r);
  padding: 10px 12px 12px;
  margin: 0 0 16px;
}
.toc p { margin: 0 0 6px; font-size: 12px; color: var(--ash); letter-spacing: .04em; text-transform: uppercase; }
.toc ol { margin: 0; padding-left: 1.15em; }
.toc li { margin: 3px 0; }
.toc a { text-decoration: none; font-size: 15px; }
.toc a:hover { text-decoration: underline; }

.prose { font-size: 17.5px; line-height: 1.65; color: #e4e8ed; }
.prose h2 {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 22px;
  line-height: 1.25;
  margin: 1.45em 0 .45em;
  letter-spacing: -0.015em;
  color: #fff;
}
.prose h2::before {
  content: "";
  width: 30px;
  height: 30px;
  margin-top: 1px;
  flex: none;
  background: var(--mk, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Crect width='30' height='30' rx='4' fill='%232b3038'/%3E%3Cpath d='M8 15h14M15 8v14' stroke='%23f5a524' stroke-width='1.7' fill='none'/%3E%3C/svg%3E")) center / 30px 30px no-repeat;
}
.prose h3 { font-size: 18px; margin: 1.2em 0 .3em; color: #fff; }
.prose p { margin: 0 0 .85em; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.25em; }
.prose li { margin: .28em 0; }
.prose blockquote {
  margin: 0 0 1em;
  padding: 4px 0 4px 12px;
  border-left: 2px solid var(--amber);
  color: #d5dae1;
}
.prose table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 0 0 1em; }
.prose th, .prose td { border-bottom: 1px solid var(--hair); text-align: left; padding: 6px 8px; vertical-align: top; }
.prose th { color: var(--ash); font-weight: 600; font-size: 12px; }
.prose code {
  font-family: Consolas, "SF Mono", ui-monospace, monospace;
  font-size: 12.5px;
  background: var(--lift);
  padding: 1px 4px;
  border-radius: 3px;
}
.prose pre {
  background: var(--slab);
  padding: 10px 12px;
  border-radius: var(--r);
  overflow-x: auto;
  font-size: 12.5px;
}
.prose pre code { background: none; padding: 0; }

.ask { margin: 20px 0 8px; }
.ask h2 { font-size: 18px; margin: 0 0 4px; }
.ask details { border-bottom: 1px solid var(--hair); }
.ask summary {
  cursor: pointer;
  padding: 11px 2px;
  color: var(--amber);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14.5px;
}
.ask summary::-webkit-details-marker { display: none; }
.ask summary:after { content: "+"; font-weight: 600; }
.ask details[open] summary:after { content: "–"; }
.ask details p { margin: 0 0 12px; color: #d7dce3; padding-right: 16px; }

.sidebox {
  display: flex;
  flex-direction: column;
  background: var(--slab);
  border-radius: var(--r);
  padding: 12px 12px 14px;
}
.spec { margin: 0 0 12px; }
.spec div { padding: 7px 0; border-bottom: 1px solid var(--hair); }
.spec dt { color: var(--ash); font-size: 12px; }
.spec dd { margin: 2px 0 0; font-size: 14px; overflow-wrap: anywhere; }
.btn-go, .btn-quiet {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  border: 0;
  border-radius: var(--r);
  padding: 11px 12px;
  font-weight: 600;
  color: #fff;
}
.btn-go { background: var(--go); }
.btn-go:hover { background: #3d86f6; }
.btn-quiet { background: var(--lift); margin-top: 8px; }
.btn-quiet:hover { background: #343b46; }
.side-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  font-size: 13px;
}
.side-row button, .side-row a {
  background: none;
  border: 0;
  padding: 0;
  color: var(--amber);
  text-decoration: none;
}
.side-row button[aria-pressed="true"] { color: #fff; }
.pub { color: var(--ash); font-size: 12.5px; margin: 12px 0; }
.near { list-style: none; margin: 0; padding: 0; }
.near h2 { font-size: 13px; margin: 8px 0; color: var(--ash); font-weight: 600; }
.near a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #fff;
  padding: 5px 0;
  border-top: 1px solid var(--hair);
  font-size: 13px;
}
.near img { width: 28px; height: 28px; border-radius: 6px; }
.near small { display: block; color: var(--ash); font-family: Consolas, ui-monospace, monospace; font-size: 11px; }

.blank {
  background: var(--slab);
  border-radius: var(--r);
  color: var(--ash);
  padding: 14px;
  margin: 8px 0 14px;
}

/* comments */
.talk { margin-top: 22px; }
.talk-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.talk-h h2 { font-size: 18px; margin: 0; }
.sorts button {
  background: var(--slab);
  border: 0;
  color: var(--ash);
  border-radius: var(--r);
  padding: 5px 8px;
  margin-left: 4px;
}
.sorts button[aria-pressed="true"] { background: var(--lift); color: #fff; }
.composer, .reply {
  background: var(--slab);
  border-radius: var(--r);
  padding: 14px;
  margin: 12px 0 16px;
}
.composer textarea, .reply textarea { display: block; margin: 0 0 10px; }
.composer .btn-go, .reply .btn-quiet { width: auto; display: inline-block; min-width: 148px; padding-left: 18px; padding-right: 18px; }
.hint { color: var(--ash); font-size: 14px; margin: 6px 0; }
.talk .hint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  background: var(--slab);
  border-radius: var(--r);
  padding: 14px 16px;
  margin: 12px 0;
}
.talk .hint a {
  background: var(--amber);
  color: #1a1d22;
  text-decoration: none;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: var(--r);
}
.talk .hint a:hover { background: #ffc14d; }
.err { color: var(--bad); font-size: 12.5px; margin: 4px 0; }
.cmt {
  background: var(--slab);
  border-radius: var(--r);
  padding: 14px 14px 12px;
  margin: 0 0 10px;
}
.cmt.is-hold { opacity: .72; }
.cmt-h {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  column-gap: 10px;
  row-gap: 1px;
  align-items: center;
}
.cmt-h .ava { grid-row: 1 / span 2; width: 40px; height: 40px; font-size: 13px; }
.cmt-h .who-name { font-weight: 650; color: #fff; }
.cmt-h .ed { color: var(--amber); }
.cmt-h time, .cmt-h .num { color: var(--ash); font-size: 13px; grid-column: 2; }
.cmt-h .hold { grid-column: 2; grid-row: 1; justify-self: end; margin-left: 0; }
.hold {
  display: inline-block;
  border: 1px solid var(--amber);
  color: var(--amber);
  border-radius: var(--r);
  font-size: 11px;
  padding: 0 5px;
  margin-left: 6px;
}
.cmt p { margin: 12px 0 10px; line-height: 1.55; color: #e4e8ed; }
.cmt-do { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; }
.cmt-do button {
  background: var(--lift);
  border: 0;
  border-radius: var(--r);
  padding: 5px 10px;
  color: #d5dae1;
}
.cmt-do button:hover { color: #fff; }
.cmt-do button[aria-pressed="true"] { background: #3a2426; color: #ffb4b4; }
.replies {
  margin: 4px 0 0 16px;
  padding-left: 12px;
  border-left: 2px solid #3a3324;
}
.replies .cmt { background: #1c2026; }

/* forms / account / errors */
.plain { max-width: 760px; }
.plain h1 { margin-bottom: 8px; }
.auth {
  max-width: 420px;
  margin: 18px auto;
  background: var(--slab);
  border-radius: var(--r);
  padding: 18px 16px 16px;
}
.auth h1 { font-size: 22px; margin: 0 0 6px; }
.lede, .auth .lede { color: var(--ash); margin: 0 0 12px; font-size: 13.5px; }
.field { margin: 0 0 12px; }
.field label { display: block; font-size: 13px; margin-bottom: 4px; color: #d0d5dc; }
input[type="email"], input[type="password"], input[type="text"], input[type="search"], input[type="url"], textarea {
  width: 100%;
  background: var(--lift);
  border: 1px solid #3c434e;
  border-radius: var(--r);
  padding: 8px 10px;
}
.seek input[type="search"] {
  width: auto;
  flex: 1;
  height: 44px;
  margin: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
  padding: 0 4px;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}
.seek input[type="search"]::-webkit-search-decoration,
.seek input[type="search"]::-webkit-search-cancel-button { display: none; }
textarea { min-height: 120px; resize: vertical; }
.check { display: flex; gap: 8px; align-items: center; font-size: 13px; margin: 0 0 12px; }
.check input { width: auto; }
.auth .btn-go { margin-top: 4px; }
.auth .links { margin: 12px 0 0; font-size: 13px; }
.oknote {
  background: #1d3328;
  color: var(--good);
  border-radius: var(--r);
  padding: 8px 10px;
  margin: 0 0 12px;
  font-size: 13.5px;
}
.banner-err {
  background: #3a2224;
  color: #ffb4b4;
  border-radius: var(--r);
  padding: 8px 10px;
  margin: 0 0 12px;
  font-size: 13.5px;
}

.acct-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.acct-head .ava { width: 52px; height: 52px; font-size: 18px; }
.acct-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.acct-nav a {
  text-decoration: none;
  color: #d5dae1;
  background: var(--slab);
  border-radius: var(--r);
  padding: 6px 10px;
  font-size: 13px;
}
.acct-nav a[aria-current="page"] { background: var(--amber); color: #1a1d22; font-weight: 600; }
.note-list { list-style: none; margin: 0; padding: 0; }
.note-list li { border-bottom: 1px solid var(--hair); padding: 10px 0; }
.note-list a { text-decoration: none; }
.note-list time { display: block; color: var(--ash); font-size: 12px; margin-top: 2px; }
.mine { padding: 10px 0; border-bottom: 1px solid var(--hair); }
.mine .where { font-size: 13px; }
.badg {
  display: inline-block;
  font-size: 11px;
  border-radius: var(--r);
  padding: 1px 6px;
  margin-left: 6px;
  border: 1px solid var(--amber);
  color: var(--amber);
}
.badg.no { border-color: var(--bad); color: var(--bad); }

.miss { max-width: 560px; padding-top: 12px; }
.miss h1 { font-size: 28px; margin: 0 0 8px; }
.miss .seek { margin: 12px 0; max-width: 420px; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.quick a {
  background: var(--slab);
  color: #fff;
  text-decoration: none;
  border-radius: var(--r);
  padding: 6px 10px;
  font-size: 13px;
}
.quick a:hover { color: #1a1d22; background: var(--amber); }

.helpgrid { display: block; }
.foot {
  border-top: 1px solid var(--hair);
  background: #16191e;
  padding: 36px var(--edge) 22px;
  display: grid;
  grid-template-columns: minmax(220px, 1.35fr) minmax(140px, .8fr) minmax(140px, .8fr);
  gap: 28px 36px;
  align-items: start;
  color: var(--ash);
  font-size: 15px;
  max-width: none;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
}
.foot .brand { height: auto; padding: 0; color: #fff; text-decoration: none; }
.foot .tagline { display: none; }
.foot-lead { margin: 12px 0 0; max-width: 36ch; line-height: 1.45; color: var(--ash); }
.foot nav { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.foot nav p {
  margin: 0 0 6px;
  color: #fff;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.foot a { color: var(--ash); text-decoration: none; }
.foot a:hover { color: var(--amber); }
.foot-end {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--hair);
  padding-top: 16px;
  margin: 0;
}
.foot-end p { margin: 0; }

.dock {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 33;
  display: flex;
  background: var(--slab);
  border-top: 1px solid var(--hair);
  height: 54px;
}
.dock button, .dock a {
  flex: 1;
  background: none;
  border: 0;
  color: #c5cbd3;
  text-decoration: none;
  font-size: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0;
}
.dock svg { width: 18px; height: 18px; }
.totop {
  position: fixed;
  right: 14px;
  bottom: 68px;
  z-index: 25;
  background: var(--lift);
  color: #fff;
  text-decoration: none;
  border-radius: var(--r);
  padding: 6px 8px;
  font-size: 12px;
}

.shade {
  position: fixed;
  inset: 0;
  background: rgba(8, 10, 12, .62);
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 18px;
}
.shade[hidden] { display: none; }
.dialog {
  width: min(520px, 100%);
  max-height: min(86vh, 720px);
  overflow: auto;
  background: var(--slab);
  border-radius: var(--r);
  padding: 16px 16px 18px;
  position: relative;
}
.dialog h2 { margin: 0 36px 8px 0; font-size: 20px; }
.dialog h3 { margin: 14px 0 6px; font-size: 14px; color: var(--ash); font-weight: 600; }
.dialog .x {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border: 0;
  background: var(--lift);
  color: #fff;
  border-radius: var(--r);
  font-size: 18px;
  line-height: 1;
}
.dialog ol { padding-left: 1.2em; }
.dialog li { margin: 4px 0; }
.mirrors { display: flex; flex-direction: column; gap: 6px; }
.older-list { list-style: none; margin: 0; padding: 0; }
.older-list li { padding: 8px 0; border-bottom: 1px solid var(--hair); }
.older-list a { display: inline-block; margin-right: 10px; }

/* ---------- breaks ---------- */
@media (min-width: 720px) {
  .mosaic { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .pick-row { grid-template-columns: 1fr 1fr; }
  .shot-row a { flex-basis: 64%; }
  .shots:not(.is-ready) .shot-nav { display: grid; place-items: center; }
  .helpgrid { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 22px; align-items: start; }
  .helpgrid .toc { position: sticky; top: 68px; }
}
@media (min-width: 900px) {
  .rail { transition: flex-basis .16s ease, width .16s ease; }
  .rail:hover, .rail.is-open { width: 232px; flex-basis: 232px; }
  .rail:hover .brand-txt,
  .rail.is-open .brand-txt,
  .rail:hover .lbl,
  .rail.is-open .lbl,
  .rail:hover .n,
  .rail.is-open .n { opacity: 1; }
  .rail:hover .rail-fav p,
  .rail.is-open .rail-fav p {
    max-height: 80px;
    opacity: 1;
    margin: 4px 0 8px;
  }
  .rail:hover .rail-legal,
  .rail.is-open .rail-legal {
    max-height: none;
    opacity: 1;
    overflow: visible;
    margin: 4px 0 8px;
  }
  .dock { display: none; }
  .totop { bottom: 18px; }
  .top .brand { display: none; }
}
@media (min-width: 1100px) {
  .mosaic { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .intro h1 { font-size: 36px; }
  .copy h1, .prog-id h1 { font-size: 34px; }
}
@media (min-width: 1500px) {
  .mosaic { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (min-width: 1860px) {
  .mosaic { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 1039px) {
  .split { display: flex; flex-direction: column; }
  .prog-id { order: 1; }
  .sidebox { order: 2; position: static; }
  .copy { order: 3; }
  .sidebox > .btn-go { order: -1; margin: 0 0 12px; }
}
@media (min-width: 1040px) {
  .split {
    grid-template-columns: minmax(0, 1fr) 292px;
    grid-template-areas: "id side" "copy side";
    align-items: start;
  }
  .prog-id { grid-area: id; }
  .copy { grid-area: copy; }
  .sidebox { grid-area: side; position: sticky; top: 68px; }
}

@media (max-width: 899px) {
  .only-m { display: grid; }
  .rail {
    position: fixed;
    z-index: 40;
    top: 0;
    bottom: 0;
    left: 0;
    width: 248px;
    min-height: 0;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    transform: translateX(-110%);
    transition: transform .18s ease;
  }
  .shot-frame { height: 150px; }
  .rail.is-open { transform: none; }
  .rail.is-open .brand-txt,
  .rail.is-open .lbl,
  .rail.is-open .n { opacity: 1; }
  .rail.is-open .rail-fav p { max-height: 80px; opacity: 1; margin: 4px 0 8px; }
  .rail.is-open .rail-legal { max-height: none; opacity: 1; overflow: visible; margin: 4px 0 8px; }
  .rail.is-open ~ .veil { display: block; }
  .work { margin-left: 0; }
  .top .brand { display: flex; }
  .canvas { padding-bottom: 78px; }
  .uname { display: none; }
  .drop { right: -8px; }
}
@media (max-width: 640px) {
  .shot-stage { grid-template-columns: 1fr; }
  .shot-spine { flex-direction: row; }
  .shot-tick { min-height: 34px; }
  .shots.is-ready .shot-nav.prev { left: auto; right: 50px; }
  .shots.is-ready .shot-nav.next { right: 8px; }
}
@media (max-width: 520px) {
  .top .brand-txt { display: none; }
  .top { gap: 8px; }
  .who > a.signin { font-size: 15px; }
  .intro h1 { font-size: 26px; }
}

/* section marks in the long description */
#s-week { --mk: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Crect width='30' height='30' rx='4' fill='%232b3038'/%3E%3Ccircle cx='15' cy='16' r='6' fill='none' stroke='%23f5a524' stroke-width='1.6'/%3E%3Cpath d='M15 13.2V16l2 1.3' fill='none' stroke='%23f5a524' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); }
#s-stack { --mk: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Crect width='30' height='30' rx='4' fill='%232b3038'/%3E%3Cpath d='M8 12h14M8 16h14M8 20h10' stroke='%23f5a524' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); }
#s-drop { --mk: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Crect width='30' height='30' rx='4' fill='%232b3038'/%3E%3Cpath d='M15 7v9M11.5 13.5 15 17l3.5-3.5M9 20h12' fill='none' stroke='%23f5a524' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
#s-presets { --mk: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Crect width='30' height='30' rx='4' fill='%232b3038'/%3E%3Cpath d='M9 11h12M9 16h12M9 21h12' stroke='%23f5a524' stroke-width='1.6' stroke-linecap='round'/%3E%3Ccircle cx='13' cy='11' r='1.6' fill='%23f5a524'/%3E%3Ccircle cx='18' cy='16' r='1.6' fill='%23f5a524'/%3E%3Ccircle cx='12' cy='21' r='1.6' fill='%23f5a524'/%3E%3C/svg%3E"); }
#s-batch { --mk: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Crect width='30' height='30' rx='4' fill='%232b3038'/%3E%3Cpath d='M8 13h6l1.4 1.6H22V22H8zM10 11h5' fill='none' stroke='%23f5a524' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E"); }
#s-limits { --mk: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Crect width='30' height='30' rx='4' fill='%232b3038'/%3E%3Ccircle cx='15' cy='16' r='6' fill='none' stroke='%23f5a524' stroke-width='1.6'/%3E%3Cpath d='M11 20l8-8' stroke='%23f5a524' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); }
#s-test { --mk: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Crect width='30' height='30' rx='4' fill='%232b3038'/%3E%3Cpath d='M9 16.2l3.2 3.2L21 11' fill='none' stroke='%23f5a524' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
#s-keys { --mk: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Crect width='30' height='30' rx='4' fill='%232b3038'/%3E%3Ccircle cx='12' cy='15' r='3.2' fill='none' stroke='%23f5a524' stroke-width='1.6'/%3E%3Cpath d='M15 15h8M20 15v3M23 15v2' fill='none' stroke='%23f5a524' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); }
#s-types { --mk: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Crect width='30' height='30' rx='4' fill='%232b3038'/%3E%3Cpath d='M10 8h7l3 3v11H10zM17 8v3h3M12.5 16h5M12.5 19h3' fill='none' stroke='%23f5a524' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E"); }
#s-share { --mk: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Crect width='30' height='30' rx='4' fill='%232b3038'/%3E%3Ccircle cx='10' cy='16' r='2' fill='%23f5a524'/%3E%3Ccircle cx='20' cy='11' r='2' fill='%23f5a524'/%3E%3Ccircle cx='20' cy='21' r='2' fill='%23f5a524'/%3E%3Cpath d='M12 15.2 18 12M12 16.8 18 20' stroke='%23f5a524' stroke-width='1.4'/%3E%3C/svg%3E"); }
#s-else { --mk: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Crect width='30' height='30' rx='4' fill='%232b3038'/%3E%3Cpath d='M9 16h6M15 16c3-4 3-1 6-5M15 16c3 4 3 1 6 5' fill='none' stroke='%23f5a524' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); }
#s-after { --mk: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Crect width='30' height='30' rx='4' fill='%232b3038'/%3E%3Cpath d='M8 19V12M13 19V9M18 19v-4M23 19V8' stroke='%23f5a524' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); }

/* program: spec column felt tight next to a 4-across suggestion row */
@media (min-width: 1040px) and (max-width: 1180px) {
  .split { grid-template-columns: minmax(0, 1fr) 260px; }
}

/* home: each rubric is a shelf you can scan sideways */
.band.strip .mosaic {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(168px, calc((100% - 12px) / 1.7));
  grid-template-columns: none;
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 2px;
  padding-bottom: 10px;
}
.band.strip .tile { scroll-snap-align: start; min-height: 176px; }
.band.strip .mosaic::-webkit-scrollbar { height: 8px; }
.band.strip .mosaic::-webkit-scrollbar-thumb { background: #3c4450; border-radius: 4px; }
@media (min-width: 720px) {
  .band.strip .mosaic { grid-auto-columns: minmax(190px, calc((100% - 24px) / 2.35)); }
}
@media (min-width: 1100px) {
  .band.strip .mosaic { grid-auto-columns: 232px; gap: 14px; }
  .mosaic { gap: 14px; }
}
@media (max-width: 720px) {
  .foot { grid-template-columns: 1fr; gap: 22px; padding-bottom: 86px; }
}

/* форма DMCA под текстом страницы */
#notice { margin-top: 28px; }
#notice .auth { max-width: 640px; }
#notice textarea { min-height: 84px; resize: vertical; }
#notice .check { align-items: flex-start; }

/* описание под названием — целиком, до трёх строк (в вёрстке было в одну строку с многоточием) */
.tile .blurb {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-height: 1.4;
}

/* окно скачивания: группы зеркал без подписи не слипаются */
.dialog .mirrors { margin-top: 10px; }
.dialog ol + .mirrors { margin-top: 14px; }

/* сеть: кнопки программы — одна группа одной высоты; избранное тоже кнопкой */
.btn-go, .btn-quiet, .side-row .btn-fav { min-height: 46px; display: flex; align-items: center; justify-content: center; }
.side-row { margin-top: 8px; }
.side-row .btn-fav { width: 100%; border: 1px solid var(--hair); border-radius: var(--r); background: transparent; color: #fff; font-weight: 600; padding: 0 12px; }
.side-row .btn-fav:hover { background: var(--lift); }
.side-row .btn-fav.is-in, .side-row .btn-fav[aria-pressed="true"] { border-color: var(--go); color: #fff; }
@media (max-width: 1039px) {
  .sidebox > .btn-quiet { order: -1; margin: 0 0 8px; }
  .sidebox > .side-row { order: -1; margin: 0 0 14px; }
}
/* сеть: один скриншот — без корешка, стрелок и шкалы, кадр во всю ширину */
.shots.is-single .shot-spine, .shots.is-single .shot-nav, .shots.is-single .shot-meter { display: none; }
.shots.is-single .shot-stage { grid-template-columns: 1fr; }
.side-row .btn-fav { font-size: 15px; font: inherit; font-weight: 600; }
.near ul { list-style: none; padding-left: 0; }
