:root {
  --bg: #090b0e;
  --bg-raised: #0d1014;
  --surface: #12161b;
  --surface-raised: #171c23;
  --surface-hover: #1b222b;
  --line: #28313c;
  --line-strong: #3a4654;
  --text: #f4f7fa;
  --text-soft: #d2d9e1;
  --muted: #94a0ad;
  --blue: #317ff3;
  --blue-bright: #6aa6ff;
  --blue-soft: #102849;
  --danger: #e35e67;
  --danger-soft: #421e23;
  --success: #4dcc91;
  --success-soft: #123828;
  --warning: #f2bd60;
  --radius-sm: 5px;
  --radius: 9px;
  --radius-lg: 14px;
  --shadow: 0 18px 50px rgb(0 0 0 / 24%);
  --max: 1240px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 0;
  background: var(--bg);
  scrollbar-gutter: stable;
}

body {
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -14rem, rgb(49 127 243 / 11%), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body,
input,
select,
textarea,
button {
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration-color: #536477;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--blue-bright);
  text-decoration-color: currentColor;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  max-width: 100%;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #8bbdff;
  outline-offset: 2px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  border-radius: var(--radius-sm);
  background: var(--text);
  color: var(--bg);
  padding: 0.65rem 0.85rem;
  font-weight: 750;
  transition: top 120ms ease;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto minmax(18rem, 36rem) 1fr;
  align-items: center;
  gap: 1.5rem;
  min-height: 72px;
  padding: 0.75rem max(1.25rem, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid rgb(58 70 84 / 72%);
  background: rgb(9 11 14 / 94%);
  box-shadow: 0 8px 30px rgb(0 0 0 / 18%);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-grid;
  grid-template-columns: 36px auto;
  align-items: center;
  column-gap: 0.65rem;
  min-width: 0;
  color: var(--text);
  line-height: 1.05;
  text-decoration: none;
  white-space: nowrap;
}

.brand:hover {
  color: var(--text);
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid #3d73b8;
  border-radius: 10px;
  background: linear-gradient(145deg, #19375f, #0d1d33);
  color: #bcd8ff;
  font-size: 1.25rem;
  font-weight: 850;
  box-shadow: inset 0 1px rgb(255 255 255 / 9%);
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand strong {
  letter-spacing: 0.015em;
}

.brand small {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.64rem;
  letter-spacing: 0.045em;
}

.header-search {
  min-width: 0;
}

.header-search input {
  height: 42px;
  margin: 0;
  padding-left: 0.9rem;
  border-color: #34404c;
  background: #0c1015;
}

.header-search input:focus {
  border-color: var(--blue);
  background: #0e131a;
}

.site-header nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.site-header nav a {
  min-height: 38px;
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
  white-space: nowrap;
}

.site-header nav a:hover {
  background: var(--surface-raised);
  color: var(--text);
}

.site-header nav .button {
  color: white;
}

.site-header nav a:last-child {
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.container {
  width: min(100%, var(--max));
  min-width: 0;
  min-height: calc(100vh - 146px);
  margin: 0 auto;
  padding: clamp(1.75rem, 4vw, 3rem) 1.25rem 6rem;
}

footer {
  display: flex;
  width: min(100%, var(--max));
  min-width: 0;
  margin: 0 auto;
  padding: 1.4rem 1.25rem 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  width: 100%;
  justify-content: space-between;
  gap: 1rem;
}

h1,
h2,
h3 {
  color: var(--text);
  line-height: 1.16;
  text-wrap: balance;
}

h1 {
  margin: 0.25rem 0 0.65rem;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.038em;
}

h2 {
  margin-top: 0;
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  letter-spacing: -0.015em;
}

h3 {
  margin-top: 0;
  font-size: 1.04rem;
}

p {
  text-wrap: pretty;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--blue-bright);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.35;
  text-transform: uppercase;
}

.muted,
small {
  color: var(--muted);
}

.lede {
  max-width: 68ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.catalogue-intro,
.page-heading,
.section-heading {
  display: flex;
  min-width: 0;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
}

.catalogue-intro {
  margin-top: 0;
  margin-bottom: 0;
  padding: 0.3rem 0 0.5rem;
}

.catalogue-intro > div:first-child,
.page-heading > div:first-child {
  min-width: 0;
}

.catalogue-intro h1,
.page-heading h1 {
  margin-bottom: 0;
}

.platform-tabs {
  display: inline-flex;
  flex: 0 0 auto;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-raised);
}

.platform-tabs a {
  padding: 0.46rem 0.8rem;
  border-radius: 5px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.platform-tabs a:hover {
  color: var(--text);
}

.platform-tabs a.active {
  background: var(--surface-raised);
  color: var(--text);
  box-shadow: 0 1px 4px rgb(0 0 0 / 25%);
}

.catalogue-search {
  max-width: 840px;
  margin: 1.75rem 0 3rem;
}

.catalogue-search > label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-soft);
  font-weight: 750;
}

.catalogue-search > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem;
}

.catalogue-search input {
  min-height: 46px;
  margin: 0;
}

section {
  min-width: 0;
  margin: 2.75rem 0;
}

.section-heading {
  margin-bottom: 1rem;
}

.section-heading h2,
.section-heading h3 {
  margin: 0;
}

.section-heading > a,
.section-link {
  flex: 0 0 auto;
  color: var(--blue-bright);
  font-size: 0.88rem;
  font-weight: 700;
}

.category-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.category-row a,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.42rem 0.72rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text-soft);
  font-size: 0.84rem;
  font-weight: 650;
  text-decoration: none;
}

.category-row a:hover {
  border-color: #42648c;
  background: var(--surface-hover);
  color: var(--text);
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  box-shadow: var(--shadow);
}

.app-card {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 1rem;
  min-width: 0;
  padding: 1.2rem;
  background: var(--surface);
  transition: background 120ms ease;
}

.app-card:hover {
  background: var(--surface-hover);
}

.app-card-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.app-card h3 {
  margin: 0.18rem 0 0.3rem;
}

.app-card h3 a {
  text-decoration: none;
}

.app-card h3 a::after {
  position: absolute;
  inset: 0;
  content: "";
}

.app-card p {
  display: -webkit-box;
  margin: 0 0 0.6rem;
  overflow: hidden;
  color: var(--text-soft);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.app-card-meta {
  margin-top: auto;
  overflow-wrap: anywhere;
}

.app-icon {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #3a495b;
  border-radius: 16px;
  background: linear-gradient(145deg, #26364a, #17202b);
  color: #c8dcf8;
  font-size: 1.65rem;
  font-weight: 850;
  text-decoration: none;
  box-shadow: inset 0 1px rgb(255 255 255 / 10%), 0 8px 18px rgb(0 0 0 / 18%);
}

.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-icon.large {
  width: 112px;
  height: 112px;
  border-radius: 24px;
  font-size: 2.45rem;
}

.empty {
  min-width: 0;
  margin: 0;
  padding: 2rem;
  grid-column: 1 / -1;
  background: var(--surface);
  color: var(--muted);
}

.empty h2,
.empty h3 {
  margin-bottom: 0.4rem;
}

.empty p:last-child {
  margin-bottom: 0;
}

.filters {
  display: grid;
  grid-template-columns: minmax(13rem, 2fr) repeat(3, minmax(8.5rem, 1fr)) auto;
  gap: 0.75rem;
  align-items: end;
  min-width: 0;
  margin: 1.5rem 0 2rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 32px rgb(0 0 0 / 16%);
}

.filter-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

label {
  color: var(--text-soft);
  font-size: 0.86rem;
  font-weight: 700;
}

input,
select,
textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  margin-top: 0.35rem;
  padding: 0.68rem 0.75rem;
  border: 1px solid #394653;
  border-radius: var(--radius-sm);
  background: #0c1015;
  color: var(--text);
  font: inherit;
}

input::placeholder,
textarea::placeholder {
  color: #697685;
  opacity: 1;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #4b5c6e;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
}

input[type="file"] {
  padding: 0.5rem;
}

textarea {
  min-height: 7rem;
  resize: vertical;
}

button,
.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  border: 1px solid var(--blue);
  border-radius: var(--radius-sm);
  background: var(--blue);
  color: white;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 760;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, transform 120ms ease;
}

button:hover,
.button:hover {
  border-color: var(--blue-bright);
  background: var(--blue-bright);
  color: #07101d;
}

button:active,
.button:active {
  transform: translateY(1px);
}

.button.compact {
  min-height: 36px;
  padding: 0.45rem 0.72rem;
}

.secondary {
  border-color: #465565;
  background: transparent;
  color: var(--text);
}

.secondary:hover {
  border-color: #71849a;
  background: var(--surface-hover);
  color: var(--text);
}

.danger {
  border-color: var(--danger);
  background: var(--danger);
}

.danger:hover {
  border-color: #ff7d85;
  background: #ff7d85;
}

.disabled,
button:disabled {
  border-color: #353e48;
  background: #2a3139;
  color: #8994a1;
  cursor: not-allowed;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.pagination a {
  min-height: 40px;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.app-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  min-width: 0;
  padding: 0.5rem 0 2rem;
  border-bottom: 1px solid var(--line);
}

.app-title {
  min-width: 0;
}

.app-title h1 {
  margin: 0.15rem 0 0.35rem;
}

.app-title p {
  margin: 0.35rem 0;
  overflow-wrap: anywhere;
}

.actions {
  display: flex;
  min-width: 10rem;
  flex-direction: column;
  gap: 0.55rem;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
  min-width: 0;
}

.detail-layout > *,
.split > * {
  min-width: 0;
}

.detail-layout aside {
  min-width: 0;
}

.detail-layout > aside > .button {
  width: 100%;
  margin: 0 0 0.65rem;
}

.panel {
  min-width: 0;
  margin-top: 2.75rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 34px rgb(0 0 0 / 14%);
}

.panel:first-child {
  margin-top: 2.75rem;
}

.panel > :first-child {
  margin-top: 0;
}

.panel > :last-child {
  margin-bottom: 0;
}

.panel .button {
  display: flex;
  width: 100%;
  margin-top: 0.65rem;
}

.prose {
  max-width: 76ch;
  color: var(--text-soft);
  overflow-wrap: anywhere;
}

.prose p:first-child {
  margin-top: 0;
}

.metadata {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.2rem;
}

.metadata > div {
  min-width: 0;
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
}

.metadata .wide {
  grid-column: 1 / -1;
}

.metadata dt {
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 760;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.metadata dd {
  min-width: 0;
  margin: 0.25rem 0;
  overflow-wrap: anywhere;
}

.version-list article {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.badge {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  padding: 0.22rem 0.48rem;
  border: 1px solid transparent;
  border-radius: 4px;
  background: #29313b;
  color: #d4dbe3;
  font-size: 0.7rem;
  font-weight: 750;
  line-height: 1.3;
  white-space: nowrap;
}

.badge.published {
  border-color: #24533e;
  background: var(--success-soft);
  color: #92e5bb;
}

.badge.quarantined,
.badge.rejected,
.badge.scan_failed {
  border-color: #663039;
  background: var(--danger-soft);
  color: #ffabb1;
}

.badge.pending_review,
.badge.scanning,
.badge.uploaded {
  border-color: #28517c;
  background: var(--blue-soft);
  color: #a8d0ff;
}

.badge.changes_requested,
.badge.withdrawn {
  border-color: #5e4925;
  background: #3d301a;
  color: #f6d38e;
}

.status-banner,
.site-notice {
  padding: 0.78rem 1rem;
  border-bottom: 1px solid #5f4822;
  background: #3c2e17;
  color: #f8d693;
  text-align: center;
}

.status-banner {
  margin: 1.25rem 0;
  border: 1px solid #5f4822;
  border-radius: var(--radius-sm);
}

.screenshots {
  display: flex;
  max-width: 100%;
  gap: 0.8rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 0.2rem 0 0.75rem;
  scroll-snap-type: x proximity;
  scrollbar-color: var(--line-strong) transparent;
}

.screenshots figure {
  min-width: min(220px, 72vw);
  margin: 0;
  scroll-snap-align: start;
}

.screenshots img {
  width: 100%;
  max-height: 460px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  object-fit: contain;
  background: var(--surface);
}

.screenshots figcaption {
  padding-top: 0.4rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.inline-actions,
.form-actions,
.auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.narrow,
.auth-card {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

.auth-card {
  max-width: 500px;
  padding: clamp(1.25rem, 5vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.auth-card h1 {
  font-size: clamp(1.9rem, 7vw, 2.4rem);
}

.auth-card .stacked-form button {
  width: 100%;
}

.auth-links {
  justify-content: space-between;
  margin-top: 1.25rem;
  font-size: 0.88rem;
}

.stacked-form {
  min-width: 0;
}

.stacked-form > div,
.stacked-form fieldset > div,
.screenshot-form {
  min-width: 0;
  margin-bottom: 1rem;
}

.stacked-form ul.errorlist {
  margin: 0.4rem 0;
  padding-left: 1.2rem;
  color: #ff9fa5;
  font-size: 0.86rem;
}

.errorlist + input,
.errorlist + select,
.errorlist + textarea {
  border-color: var(--danger);
}

.helptext {
  display: block;
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.77rem;
  line-height: 1.45;
}

.stacked-form fieldset {
  min-width: 0;
  margin: 0 0 1.5rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgb(18 22 27 / 55%);
}

.stacked-form legend {
  padding: 0 0.45rem;
  color: var(--text);
  font-weight: 800;
}

.stacked-form input[type="checkbox"] {
  display: inline-block;
  width: 1rem;
  min-height: auto;
  margin: 0 0.45rem 0 0;
  vertical-align: middle;
}

.stacked-form #id_tags {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem 1rem;
  margin-top: 0.5rem;
}

.messages {
  position: fixed;
  top: 84px;
  right: max(1rem, calc((100vw - var(--max)) / 2));
  z-index: 40;
  width: min(420px, calc(100vw - 2rem));
}

.message {
  margin-bottom: 0.5rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  box-shadow: var(--shadow);
}

.message.error {
  border-left-color: var(--danger);
}

.message.success {
  border-left-color: var(--success);
}

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 32px rgb(0 0 0 / 14%);
  overscroll-behavior-inline: contain;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
}

th,
td {
  padding: 0.82rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  overflow-wrap: anywhere;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover td {
  background: rgb(255 255 255 / 1.5%);
}

th {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  white-space: nowrap;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.trusted {
  color: var(--success);
  font-weight: 750;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

code {
  max-width: 100%;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.82em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.65rem 1rem;
  }

  .header-search {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .site-header nav {
    flex-wrap: wrap;
  }

  .filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-actions {
    grid-column: 1 / -1;
  }

  .app-hero {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .app-hero .actions {
    grid-column: 1 / -1;
    flex-direction: row;
  }

  .detail-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .detail-layout aside .panel:first-child {
    margin-top: 0;
  }
}

@media (max-width: 700px) {
  .site-header {
    position: relative;
    grid-template-columns: 1fr;
    padding: 0.8rem 1rem;
  }

  .brand {
    justify-self: start;
  }

  .header-search {
    grid-column: 1;
    grid-row: 2;
  }

  .site-header nav {
    grid-row: 3;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.3rem;
  }

  .site-header nav a {
    min-height: 36px;
    padding: 0.45rem 0.62rem;
    border: 1px solid var(--line);
    background: var(--bg-raised);
    font-size: 0.82rem;
  }

  .site-header nav .button {
    border-color: var(--blue);
    background: var(--blue);
  }

  .container {
    padding: 1.5rem 1rem 4rem;
  }

  .messages {
    top: 1rem;
    right: 1rem;
  }

  .catalogue-intro,
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }

  .page-heading > .button,
  .page-heading > form,
  .page-heading > form button {
    width: 100%;
  }

  .app-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  footer,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 0.96rem;
  }

  h1 {
    font-size: clamp(1.85rem, 10vw, 2.3rem);
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .catalogue-search {
    margin-bottom: 2.4rem;
  }

  .catalogue-search > div {
    grid-template-columns: minmax(0, 1fr);
  }

  .catalogue-search button {
    width: 100%;
  }

  section {
    margin: 2.25rem 0;
  }

  .section-heading {
    align-items: center;
    gap: 0.75rem;
  }

  .filters {
    grid-template-columns: minmax(0, 1fr);
    padding: 0.85rem;
  }

  .filter-actions {
    grid-column: auto;
  }

  .filter-actions button,
  .filter-actions .button {
    flex: 1;
  }

  .app-card {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 0.85rem;
    padding: 1rem;
  }

  .app-icon {
    width: 58px;
    height: 58px;
    border-radius: 13px;
    font-size: 1.35rem;
  }

  .app-icon.large {
    width: 78px;
    height: 78px;
    border-radius: 18px;
    font-size: 1.8rem;
  }

  .app-card .eyebrow {
    font-size: 0.63rem;
  }

  .app-hero {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 0.9rem;
  }

  .app-title h1 {
    font-size: 1.8rem;
  }

  .app-hero .actions {
    width: 100%;
    flex-direction: column;
  }

  .actions .button {
    width: 100%;
  }

  .metadata {
    grid-template-columns: minmax(0, 1fr);
  }

  .metadata .wide {
    grid-column: auto;
  }

  .inline-actions > button,
  .form-actions > button,
  .form-actions > .button {
    flex: 1 1 100%;
  }

  .stacked-form fieldset {
    padding: 1rem 0.8rem;
  }

  .stacked-form #id_tags {
    grid-template-columns: minmax(0, 1fr);
  }

  .auth-card {
    padding: 1.2rem 1rem;
    border-radius: var(--radius);
  }

  .auth-links {
    align-items: flex-start;
    flex-direction: column;
  }

  .pagination {
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.8rem;
  }

  .pagination a {
    padding-inline: 0.6rem;
  }

  th,
  td {
    padding: 0.72rem 0.8rem;
  }

  .responsive-table {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .responsive-table table,
  .responsive-table tbody,
  .responsive-table tr,
  .responsive-table td {
    display: block;
    width: 100%;
  }

  .responsive-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .responsive-table tr {
    margin-bottom: 0.75rem;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 8px 24px rgb(0 0 0 / 12%);
  }

  .responsive-table td {
    display: grid;
    grid-template-columns: minmax(6.2rem, 0.44fr) minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
    padding: 0.68rem 0.8rem;
  }

  .responsive-table td::before {
    color: var(--muted);
    content: attr(data-label);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
  }

  .responsive-table td.table-action a {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.7rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    text-decoration: none;
  }

  .responsive-table td.empty-cell {
    display: block;
    color: var(--muted);
  }

  .responsive-table td.empty-cell::before {
    content: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
