/* MacTorret — IBM Plex Sans, SIL Open Font License. Latin only. */

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-700-normal.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-400-italic.woff2") format("woff2");
}

:root {
  --paper: #f6f7f9;
  --ink: #1f2933;
  --accent: #3e4c9a;
  --press: #2c3a78;
  --line: #d9dde6;
  --muted: #5c6570;
  --card: #ffffff;
  --soft: #eef1f6;
  --danger: #9a3e48;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --wrap: 1140px;
  --aside: 272px;
}

html[data-tone="dim"] {
  --paper: #1b1e24;
  --ink: #e7e9ef;
  --accent: #a9b4e6;
  --press: #c5cdf2;
  --line: #343a46;
  --muted: #a3aab6;
  --card: #232833;
  --soft: #2a303b;
  --danger: #e0a0a6;
}

/* reset, lightly */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  font-size: 16.5px;
  line-height: 1.55;
}

img { max-width: 100%; height: auto; }

[hidden] { display: none !important; }

button,
input,
textarea { font: inherit; color: inherit; }

a { color: var(--accent); }

a:hover { color: var(--press); }

::selection { background: #d9def2; color: #1f2933; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

#t-main:focus { outline: none; }

.t-vh {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}

.t-skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 30;
  background: var(--accent);
  color: #fff;
  padding: 8px 12px;
  text-decoration: none;
  border-radius: 3px;
}

.t-skip:focus { top: 10px; color: #fff; }

/* header */
.t-head {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  border-top: 3px solid var(--accent);
}

.t-headbar,
.t-nav,
.t-shell,
.t-footinner {
  width: min(var(--wrap), calc(100% - 28px));
  margin-inline: auto;
}

.t-headbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "brand tools"
    "tag tag"
    "search search";
  gap: 8px 10px;
  align-items: center;
  padding: 12px 0 8px;
}

.t-brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  min-width: 0;
}

.t-brand:hover { color: var(--ink); }

.t-mark { color: var(--accent); flex: none; }

.t-tagline {
  grid-area: tag;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.t-search {
  grid-area: search;
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 3px;
  min-width: 0;
}

.t-searchin {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 7px 10px;
  /* safari: otherwise keeps its own chrome */
  -webkit-appearance: none;
  appearance: none;
}

.t-searchin:focus { outline: none; }

.t-search:focus-within {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.t-search button {
  border: 0;
  background: transparent;
  padding: 6px 8px;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
}

.t-tools {
  grid-area: tools;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.t-tone,
.t-burger,
.t-bell,
.t-signout {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 3px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--ink);
}

.t-tone,
.t-burger,
.t-bell {
  width: 34px;
  height: 34px;
  padding: 0;
  position: relative;
}

.t-tone[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.t-tone .t-sun { display: none; }

.t-tone[aria-pressed="true"] .t-moon { display: none; }

.t-tone[aria-pressed="true"] .t-sun { display: block; }

.t-burger .t-xicon { display: none; }

.t-burger[aria-expanded="true"] .t-bars { display: none; }

.t-burger[aria-expanded="true"] .t-xicon { display: block; }

.t-user {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.t-signin,
.t-signout {
  text-decoration: none;
  font-size: 14px;
  padding: 6px 10px;
  color: var(--ink);
  background: var(--card);
}

.t-signout { font-size: 13px; }

.t-bellwrap { position: relative; }

.t-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
  font-weight: 600;
}

.t-drop {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  width: min(320px, 80vw);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  z-index: 12;
  box-shadow: 0 10px 28px rgba(31, 41, 51, 0.12);
}

.t-drop:not([hidden]) { display: block; }

.t-drop ul {
  list-style: none;
  margin: 0;
  padding: 6px 0;
}

.t-drop li { border-bottom: 1px solid var(--line); }

.t-drop li:last-child { border-bottom: 0; }

.t-drop a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 8px 12px;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
}

.t-drop a span { min-width: 0; overflow-wrap: anywhere; }

.t-drop time {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  flex: none;
}

.t-unread a { font-weight: 600; }

.t-unread a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  margin-right: 6px;
  vertical-align: middle;
}

.t-dropall {
  display: block;
  padding: 8px 12px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  text-decoration: none;
}

.t-profile {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.t-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: var(--soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
}

.t-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 4px;
  padding: 0 0 8px;
}

.t-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14.5px;
  padding: 6px 8px;
  border-bottom: 2px solid transparent;
}

.t-nav a:hover { color: var(--accent); }

.t-nav a[aria-current="page"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

.t-js .t-nav { display: none; }

.t-js .t-nav.is-open {
  display: flex;
  flex-direction: column;
  padding-bottom: 12px;
}

/* layout */
.t-shell {
  display: grid;
  gap: 22px;
  padding: 22px 0 48px;
}

.t-main { min-width: 0; }

.t-aside {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.t-kicker {
  margin: 0 0 4px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.t-lead { margin: 0 0 8px; max-width: 68ch; }

.t-lead p { margin: 0 0 10px; }

.t-lead ul { margin: 6px 0 0; padding-left: 1.15em; }

.t-lead li { margin: 3px 0; }

/* studio picks */
.t-picks { margin: 22px 0 8px; min-width: 0; }

.t-pickhead,
.t-sechead,
.t-talkhead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.t-pickhead h2,
.t-sechead h2,
.t-section > h2,
.t-talkhead h2,
.t-sidetitle {
  font-size: 18px;
  margin: 0;
  letter-spacing: -0.01em;
}

.t-talkhead h2 {
  display: flex;
  align-items: center;
  gap: 6px;
}

.t-unread a::before { flex: none; }

.t-shifts { display: flex; gap: 6px; }

.t-shift {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
}

.t-pickstrip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
  min-width: 0;
  max-width: 100%;
}

.t-pick {
  flex: 0 0 232px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-decoration: none;
  color: inherit;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px;
  min-width: 0;
}

.t-pick:hover { border-color: var(--accent); color: inherit; }

.t-picknote {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.4;
}

/* tiles */
.t-section { margin-top: 28px; }

.t-all {
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.t-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(146px, 1fr));
  gap: 10px;
}

.t-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-width: 0;
  height: 100%;
  padding: 11px 11px 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: inherit;
  text-decoration: none;
}

.t-tile:hover { border-color: var(--accent); color: inherit; }

.t-tileico { border-radius: 8px; }

.t-tilename {
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.t-tilever {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.t-rub {
  font-size: 12px;
  color: var(--muted);
}

.t-size {
  margin-top: auto;
  font-size: 12px;
  line-height: 1.3;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 1px 6px;
  color: var(--ink);
}

.t-fresh {
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

/* sidebar */
.t-sidecard {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px 12px 10px;
}

.t-sidetitle {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 8px;
}

.t-picklist,
.t-rubric {
  list-style: none;
  margin: 0;
  padding: 0;
}

.t-pickrow {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 8px;
  align-items: center;
  padding: 7px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}

.t-picklist li:first-child .t-pickrow { border-top: 0; }

.t-pickrow img { grid-row: 1 / span 2; border-radius: 6px; }

.t-pickrow .t-tilename { font-size: 14px; }

.t-rubric a {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  font-size: 14.5px;
}

.t-rubric li:first-child a { border-top: 0; }

.t-rubric a[aria-current="page"] { color: var(--accent); font-weight: 600; }

.t-author p { margin: 0 0 8px; font-size: 14.5px; }

.t-initials {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--soft);
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 8px;
}

/* crumbs, program */
.t-crumbs {
  margin: 0 0 12px;
  font-size: 13.5px;
  color: var(--muted);
}

.t-crumbs a { text-decoration: none; }

.t-crumbs span { margin: 0 4px; }

.t-prog {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-bottom: 12px;
}

.t-progico { border-radius: 10px; }

.t-catpill {
  display: inline-block;
  margin: 0 0 4px;
  font-size: 12.5px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent);
  font-weight: 600;
}

.t-updated {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.t-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  align-items: center;
}

.t-dl,
.t-olderbtn,
.t-fav,
.t-submit {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 3px;
  padding: 9px 12px;
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.2;
}

.t-dl {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}

.t-dl:hover { background: var(--press); color: #fff; border-color: var(--press); }

.t-olderbtn,
.t-submit {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
}

.t-olderbtn:hover,
.t-submit:hover { border-color: var(--accent); color: var(--ink); }

.t-fav {
  background: transparent;
  border: 0;
  color: var(--ink);
  padding-left: 4px;
  font-weight: 500;
}

.t-fav .t-favon { display: none; }

.t-fav[aria-pressed="true"],
.t-fav.is-on {
  color: var(--accent);
  font-weight: 600;
}

.t-fav[aria-pressed="true"] .t-favoff,
.t-fav.is-on .t-favoff { display: none; }

.t-fav[aria-pressed="true"] .t-favon,
.t-fav.is-on .t-favon { display: inline; }

/* screenshots: grid + large */
.t-stage {
  margin: 0 0 8px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.t-stage img { display: block; width: 100%; height: auto; }

.t-stage figcaption {
  margin: 0;
  padding: 8px 10px 9px;
  font-size: 13.5px;
  color: var(--muted);
}

.t-thumbs {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
}

.t-thumb {
  display: block;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  background: var(--card);
  cursor: pointer;
}

.t-thumb.is-on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }

.t-thumb img { display: block; width: 100%; height: auto; }

.t-emptybox {
  margin: 0 0 16px;
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 4px;
  color: var(--muted);
  background: var(--card);
  font-size: 14.5px;
}

/* tabs */
.t-tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid var(--line);
  margin: 0;
}

.t-tab {
  appearance: none;
  background: transparent;
  border: 1px solid transparent;
  border-bottom: 0;
  margin: 0 4px -1px 0;
  padding: 8px 13px;
  cursor: pointer;
  color: var(--muted);
  border-radius: 0;
  font-size: 14.5px;
}

.t-tab[aria-selected="true"] {
  background: var(--card);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: inset 0 2px 0 var(--accent);
  font-weight: 600;
}

.t-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 0;
  padding: 14px 14px 6px;
  border-radius: 0 0 4px 4px;
  margin-bottom: 18px;
}

.t-js .t-paneltitle {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

html:not(.t-js) .t-panel[hidden] { display: block !important; }

/* long copy */
.t-prose { font-size: 16.5px; line-height: 1.62; max-width: 70ch; }

.t-prose h2 { font-size: 1.28rem; margin: 1.45em 0 0.35em; line-height: 1.25; }

.t-prose h3 { font-size: 1.05rem; margin: 1.2em 0 0.3em; }

.t-prose p { margin: 0.7em 0; }

.t-prose ul,
.t-prose ol { margin: 0.5em 0 0.8em; padding-left: 1.2em; }

.t-prose li { margin: 0.25em 0; }

.t-prose table,
.t-glance {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 0.8em 0 1em;
}

.t-prose th,
.t-prose td,
.t-glance th,
.t-glance td {
  text-align: left;
  vertical-align: top;
  padding: 6px 8px 6px 0;
  border-bottom: 1px solid var(--line);
}

.t-prose th,
.t-glance th {
  font-weight: 600;
  color: var(--muted);
  width: 34%;
}

.t-glance { margin: 0; }

.t-glance caption {
  text-align: left;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 6px;
  caption-side: top;
}

.t-prose code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--soft);
  padding: 0 4px;
  border-radius: 2px;
}

.t-faq { margin: 8px 0 22px; }

.t-faq h2 { font-size: 18px; margin: 0 0 6px; }

.t-faq details {
  border-top: 1px solid var(--line);
  padding: 8px 0;
}

.t-faq details:last-child { border-bottom: 1px solid var(--line); }

.t-faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 2px 0;
}

.t-faq details p { margin: 8px 0 4px; color: var(--ink); }

/* specs */
.t-spec { margin: 0; }

.t-spec div {
  display: grid;
  grid-template-columns: 7.2rem minmax(0, 1fr);
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}

.t-spec div:first-child { padding-top: 0; }

.t-spec dt {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.t-spec dd {
  margin: 0;
  font-size: 14px;
  overflow-wrap: anywhere;
}

/* comments */
.t-talk { margin-top: 8px; }

.t-sort { display: flex; gap: 6px; }

.t-sort button {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 3px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 13px;
}

.t-sort button[aria-current="true"],
.t-sort button[aria-pressed="true"],
.t-sort button.is-on {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.t-guestnote {
  margin: 0 0 12px;
  padding: 10px 12px;
  background: var(--soft);
  border-radius: 3px;
  font-size: 14.5px;
}

.t-cform { margin: 0 0 14px; }

.t-cform label,
.t-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.t-cform textarea,
.t-field input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 3px;
  padding: 8px 10px;
}

.t-cform textarea { min-height: 96px; resize: vertical; }

.t-trap {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.t-hint { color: var(--muted); font-size: 13px; margin: 6px 0; }

.t-err {
  color: var(--danger);
  font-size: 13.5px;
  margin: 4px 0 0;
}

.t-clist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.t-comment { padding: 12px 0; border-top: 1px solid var(--line); }

.t-cmeta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 14px;
}

.t-cmeta time { color: var(--muted); font-size: 13px; }

.t-comment p { margin: 6px 0; }

.t-ctools { display: flex; gap: 10px; margin: 6px 0 0; }

.t-like,
.t-replybtn {
  border: 0;
  background: transparent;
  padding: 2px 0;
  cursor: pointer;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13.5px;
}

.t-like[aria-pressed="true"],
.t-like.is-on { color: var(--accent); font-weight: 600; }

.t-pending { opacity: 0.55; }

.t-badge {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 1px 5px;
  color: var(--muted);
  font-weight: 600;
}

.t-badgeoff { text-decoration: line-through; }

.t-replies {
  margin: 8px 0 0 18px;
  padding-left: 12px;
  border-left: 2px solid var(--line);
}

/* modal */
.t-modal {
  display: grid;
  position: fixed;
  inset: 0;
  z-index: 40;
  place-items: center;
  padding: 18px;
}

/* beats the [hidden] rule so a plain #download link still opens */
.t-modal:target { display: grid !important; }

.t-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 41, 51, 0.48);
}

.t-dialog {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: min(82vh, 680px);
  overflow: auto;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 20px 18px 16px;
  box-shadow: 0 16px 40px rgba(31, 41, 51, 0.18);
}

.t-dialog:focus { outline: 2px solid var(--accent); outline-offset: 2px; }

.t-dialog h2 { margin: 0 36px 10px 0; font-size: 20px; }

.t-dialog ol,
.t-dialog ul { padding-left: 1.15em; }

.t-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--card);
}

.t-mirrors { display: grid; gap: 10px; margin-top: 12px; }

.t-mirror {
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.t-mirror h3 { margin: 0 0 6px; font-size: 15px; }

.t-mirror a,
.t-oldlist a {
  display: inline-block;
  margin: 2px 12px 2px 0;
}

.t-oldlist { list-style: none; margin: 0; padding: 0; }

.t-oldlist li {
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.t-oldlist p { margin: 0 0 4px; font-weight: 600; }

/* pager, forms, account */
.t-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
  align-items: center;
}

.t-pager a {
  display: inline-block;
  min-width: 34px;
  text-align: center;
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 3px;
  padding: 5px 8px;
  font-size: 14px;
}

.t-pager a[aria-current="page"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.t-form { max-width: 440px; }

.t-field { margin: 0 0 12px; }

.t-check {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 12px;
  font-size: 14.5px;
}

.t-ok {
  margin: 0 0 12px;
  padding: 8px 10px;
  border-left: 3px solid var(--accent);
  background: var(--soft);
  font-size: 14.5px;
}

.t-accthead {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.t-accthead .t-avatar { width: 44px; height: 44px; font-size: 15px; }

.t-noteitem {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}

.t-noteitem time {
  color: var(--muted);
  font-size: 13px;
  flex: none;
}

.t-notelist { list-style: none; margin: 0; padding: 0; }

.t-mine {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.t-mine p { margin: 6px 0; }

.t-toc {
  margin: 0 0 16px;
  padding: 10px 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.t-toc ol { margin: 6px 0 0; padding-left: 1.2em; }

.t-toc a { text-decoration: none; }

.t-finder { margin: 12px 0; max-width: 420px; }

.t-misslist { padding-left: 1.1em; }

.t-top {
  position: fixed;
  right: 14px;
  bottom: 14px;
  width: 38px;
  height: 38px;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 3px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(31, 41, 51, 0.08);
}

.t-top.is-on { display: inline-flex; }

html:not(.t-js) .t-top { display: inline-flex; }

/* footer */
.t-foot {
  border-top: 1px solid var(--line);
  background: var(--card);
  padding: 18px 0 28px;
}

.t-footnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.t-footnav a { color: var(--ink); text-decoration: none; font-size: 14px; }

.t-footnav a:hover { color: var(--accent); }

.t-copy {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

@media (min-width: 821px) {
  .t-headbar {
    grid-template-columns: auto auto minmax(160px, 1fr) auto;
    grid-template-areas: "brand tag search tools";
    padding-top: 14px;
  }

  .t-js .t-nav { display: flex; flex-direction: row; }

  .t-burger { display: none; }

  .t-shell {
    grid-template-columns: minmax(0, 1fr) var(--aside);
    align-items: start;
    gap: 28px;
    padding-top: 26px;
  }

  .t-tagline { max-width: 46ch; }

  h1 { font-size: 34px; }

  .t-acct h1 { font-size: 26px; margin: 0; }

  .t-aside { position: sticky; top: 12px; }
}

@media (max-width: 420px) {
  h1 { font-size: 25px; }

  .t-brand { font-size: 18px; }

  .t-uname { display: none; }

  .t-signin,
  .t-signout { padding: 5px 7px; }

  .t-dl,
  .t-olderbtn { flex: 1 1 auto; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .t-pickstrip { scroll-behavior: auto; }
}

/* 404: the heading should not stretch the full measure */
.t-miss h1 { max-width: 16em; }

/* сеть: состояния и элементы, которых нет в макете */
.t-ph { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; flex: none; border-radius: 8px; background: var(--soft); color: var(--accent); font-weight: 600; font-size: 15px; text-transform: uppercase; }
.t-phsm { width: 32px; height: 32px; border-radius: 6px; font-size: 11px; grid-row: 1 / span 2; }
.t-progico.t-ph { width: 64px; height: 64px; border-radius: 10px; font-size: 18px; }
.t-intel { margin-left: 4px; }
.t-gap { padding: 6px 4px; color: var(--muted); }
.t-pagenote { margin: 6px 0 18px; }
.t-install { margin-top: 26px; }
.t-getbody ol, .t-getbody ul { padding-left: 1.3em; }
.t-tablist a.t-tab { text-decoration: none; display: inline-block; }
.t-dmca { margin-top: 24px; }
.t-dmca label > span { display: block; font-weight: 600; margin-bottom: 4px; }
.t-dmca .t-field input, .t-dmca .t-field textarea { width: 100%; }
.t-replies:empty { display: none; }
/* шапка липкая (стандарт сети: поиск всегда под рукой) */
.t-head { position: sticky; top: 0; z-index: 25; }
[id] { scroll-margin-top: 150px; }
@media (max-width: 820px) {
  .t-tagline { display: none; }
  .t-headbar { padding: 8px 0 6px; gap: 6px 10px; }
}
@media (min-width: 821px) {
  .t-aside { position: static; }
  [id] { scroll-margin-top: 120px; }
}
.t-dmca textarea { width: 100%; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 3px; padding: 8px 10px; font: inherit; }
.t-dmca .t-check { align-items: flex-start; }
img.t-progico { width: 64px; height: 64px; object-fit: contain; }
img.t-tileico, .t-pick > img { width: 56px; height: 56px; object-fit: contain; }
.t-pickrow img { width: 32px; height: 32px; object-fit: contain; }

/* правки аудита 02.11: обложка вместо букв (у VST почти все были буквами), плитки шире и подписи читаемые, обложка в шапке программы обрезается, а не сжимается; кнопка скачивания крупнее */
img.t-tileico.is-cover, .t-pick > img.is-cover, .t-pickrow img.is-cover, img.t-progico.is-cover { object-fit: cover; }
.t-grid { grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); }
.t-tilename { font-size: 15px; }
.t-tilever { font-size: 13px; }
.t-rub { font-size: 13px; }
.t-size { font-size: 13px; }
.t-fresh { font-size: 12px; }
.t-dl { padding: 12px 20px; font-size: 16px; }
/* правки 02.11 (2): лента «Studio picks» без системной полосы — листается стрелками */
.t-pickstrip { scrollbar-width: none; }
.t-pickstrip::-webkit-scrollbar { display: none; }
