:root {
  --bg: #0c0c0b;
  --bg-2: #161614;
  --card: #1b1b18;
  --ink: #f3efe6;
  --muted: #b7b1a6;
  --line: rgba(243, 239, 230, 0.14);
  --copper: #e2a15a;
  --copper-2: #f0c08a;
  --danger: #ffb4a8;
  --ok: #b7e2c5;
  --sans: Figtree, "Avenir Next", "Segoe UI", sans-serif;
  --display: Sora, Figtree, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  overflow-x: clip;
}

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

a { color: var(--copper-2); }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

h1 { font-size: clamp(2.1rem, 7vw, 4.4rem); margin: 0 0 0.35em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin: 0 0 0.45em; }
p { margin: 0 0 0.8em; }

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--ink);
  color: var(--bg);
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { top: 12px; }

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 5;
  background: rgba(12, 12, 11, 0.92);
  border-bottom: 1px solid var(--line);
}

.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  padding-top: 14px;
  padding-bottom: 8px;
}

.brand {
  display: inline-flex;
  align-items: flex-end;
  gap: 26px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}
.brand-logo {
  display: block;
  height: 100px;
  width: auto;
}
.brand-slogan { display: none; }
@media (min-width: 960px) {
  .bar { flex-wrap: nowrap; }
  .brand { flex: 0 1 auto; gap: 20px; }
  .brand > picture:first-child { flex: none; }
  .brand-logo { height: 100px; }
  .brand-slogan {
    display: block;
    flex: 0 1 320px;
    min-width: 0;
    margin-bottom: 8px;
  }
  .brand-slogan img {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.85));
  }
  .bar .quick-nav, .bar .profile-menu { flex: none; }
}
@media (max-width: 520px) {
  .brand-logo { height: 60px; }
}
@media (max-width: 380px) {
  .brand-logo { height: 52px; }
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--copper);
  color: #1a120c;
  text-decoration: none;
  font-weight: 600;
}
.pill.warn { background: #8c3d28; color: #fff6f1; }

.quick-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.quick-nav a,
.quick-nav button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 6px 10px;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  border: 0;
  font: inherit;
  font-weight: 600;
  text-align: center;
}
.quick-nav form { margin: 0; }
.quick-nav button { width: 100%; cursor: pointer; }
.profile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: 4px;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
}
.profile svg { display: block; width: 22px; height: 22px; }
.profile-menu { position: relative; }
.profile-menu > summary { list-style: none; cursor: pointer; }
.profile-menu > summary::-webkit-details-marker { display: none; }
.profile-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 8;
  min-width: 11rem;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #141311;
  display: grid;
}
.profile-panel { min-width: 15rem; gap: 2px; }

@media (max-width: 520px) {
  .bar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 8px;
    row-gap: 4px;
  }
  .brand { grid-column: 1; grid-row: 1 / span 2; align-self: start; }
  .profile-menu { grid-column: 2; grid-row: 1; justify-self: end; align-self: end; }
  .quick-nav {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    flex-direction: column;
    align-items: flex-end;
  }
  .bar:not(:has(.profile-menu)) .quick-nav { grid-row: 1 / span 2; align-self: center; }
  .quick-nav a { min-height: 34px; padding: 4px 6px; white-space: nowrap; }
  .profile { margin-left: 0; }
}
.profile-email {
  margin: 4px 8px 6px;
  color: var(--muted);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}
.profile-block {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 8px;
  border-top: 1px solid var(--line);
}
.profile-block label,
.profile-label { margin: 0; font-weight: 600; font-size: 0.9rem; }
.profile-block select { min-height: 40px; padding: 6px 10px; }
.profile-hint { margin: 0; color: var(--muted); font-size: 0.82rem; }
.profile-passkey {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 8px 10px 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.85rem;
}
.passkey-text { display: grid; gap: 1px; margin: 0; min-width: 0; }
.passkey-text strong { font-size: 0.9rem; overflow-wrap: anywhere; }
.passkey-text span { color: var(--muted); font-size: 0.8rem; }
.passkey-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0 14px; }
.passkey-actions form { margin: 0; }
.passkey-rename > summary {
  list-style: none;
  cursor: pointer;
  padding: 6px 0;
  color: var(--copper-2);
  font-weight: 600;
}
.passkey-rename > summary::-webkit-details-marker { display: none; }
.passkey-rename[open] { flex-basis: 100%; }
.passkey-rename form { display: flex; gap: 6px; margin: 2px 0 4px; }
.passkey-rename input { flex: 1; min-width: 0; min-height: 36px; padding: 6px 8px; }
.profile-panel .passkey-actions > form button { padding: 4px 0; }
.profile-panel .profile-passkey button {
  width: auto;
  min-height: 32px;
  padding: 4px 8px;
  color: var(--copper-2);
}
.profile-panel a,
.profile-panel button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 40px;
  margin: 0;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.mast {
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
body.is-home main { padding: 0; }
#home-results:not(:empty) { padding: 16px 0 56px; }
.mast img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: 45% 30%;
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
  mask-image: linear-gradient(to bottom, #000 70%, transparent);
}
.mast-copy {
  position: relative;
  margin-top: -28px;
  padding-bottom: 28px;
}
.mast h1 { font-size: clamp(2.1rem, 8.6vw, 3.8rem); }
.mast .lede { max-width: 36rem; color: #f6f1e8; font-size: 1.05rem; }
@media (min-width: 840px) {
  .mast {
    display: flex;
    align-items: center;
    min-height: clamp(520px, calc(100vh - 250px), 760px);
  }
  .mast img {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 62%;
    height: 100%;
    aspect-ratio: auto;
    object-position: 45% 40%;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 24%);
    mask-image: linear-gradient(to right, transparent, #000 24%);
  }
  .mast-copy { margin-top: 0; padding-top: 32px; padding-bottom: 200px; }
  .mast .mast-copy > * { max-width: min(34rem, 42vw); }
  .mast h1 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); }
  .mast { transition: min-height 0.9s cubic-bezier(0.45, 0.05, 0.25, 1); }
  .mast-copy { transition: padding 0.9s cubic-bezier(0.45, 0.05, 0.25, 1); }
  .mast.is-searching { min-height: 0; }
  .mast.is-searching .mast-copy { padding-top: 40px; padding-bottom: 28px; }
}
@keyframes results-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.results-enter { animation: results-in 0.6s cubic-bezier(0.22, 0.7, 0.2, 1) 0.35s both; }
@media (prefers-reduced-motion: reduce) {
  .mast, .mast-copy { transition: none; }
  .results-enter { animation: none; }
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--copper);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

main { padding: 8px 0 72px; }
.shelf { padding-top: 8px; }
.section-head, .page-head { margin: 22px 0 16px; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.page-head p, .aside, .help, .empty { color: var(--muted); }

.hero-actions { display: grid; gap: 10px; margin-top: 14px; }
.hero-search { position: relative; margin-top: 14px; max-width: 40rem; }
.hit-panel {
  position: absolute;
  z-index: 6;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  max-height: min(60vh, 440px);
  overflow: auto;
  padding: 10px;
  border-radius: 16px;
  background: #141412;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.hit-panel .cards { gap: 8px; }
.hit-panel .file-card { grid-template-columns: 72px minmax(0, 1fr); }
.hit-panel .frame { aspect-ratio: 1; }
.hit-panel .card-body { padding: 8px 10px; align-content: center; }
.hit-panel .card-body strong { font-size: 1rem; }
.hit-panel .pager { display: none; }
.model-hits { list-style: none; padding: 0; margin: 0; display: grid; }
.model-hits a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  min-height: 44px;
  padding: 8px 4px;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.model-hits .count { color: var(--muted); font-size: 0.85rem; }
.result-count:empty { display: none; }
.hero-search label {
  display: block;
  margin-bottom: 6px;
  color: var(--copper);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.facets { padding-top: 18px; }
.facets ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
}
.facets a {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}
.facets span { color: var(--muted); font-weight: 500; font-size: 0.85rem; }
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 78%);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
}
.rail .file-card { scroll-snap-align: start; }
.file-rows { display: grid; gap: 6px; }
.file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: inherit;
  text-decoration: none;
}
.row-flag {
  flex: none;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  white-space: nowrap;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.account-page { display: grid; gap: 18px; padding-top: 14px; min-width: 0; }
.account-top {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-2);
}
.account-id h1 { margin: 0; font-size: clamp(1.5rem, 5vw, 2rem); }
.account-id p { margin: 4px 0 0; color: var(--muted); overflow-wrap: anywhere; }
.account-balance { display: grid; gap: 10px; }
.account-credits { margin: 0; color: var(--muted); }
.account-credits strong {
  font-family: var(--display);
  font-size: 2.2rem;
  line-height: 1;
  color: var(--ink);
  margin-right: 4px;
}
.account-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.account-actions .button { min-height: 44px; padding: 10px 14px; }
.account-notice {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 14px;
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--copper);
  background: rgba(226, 161, 90, 0.08);
}
.account-notice a { font-weight: 600; }
.account-id .account-links { margin-top: 8px; }
.account-links a { font-weight: 600; }
.support-page { display: grid; gap: 18px; max-width: 46rem; min-width: 0; }
.support-page .page-head { margin-bottom: 0; }
.support-page h2 { margin: 0 0 10px; font-size: 1.2rem; }
.support-box {
  margin: 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-2);
}
.support-box p { margin: 0 0 12px; }
.support-box p:last-child { margin-bottom: 0; }
.support-locked { border-color: var(--copper); }
.support-list ul, .ticket-thread { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.support-list a {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
}
.support-list a:hover { border-color: var(--copper); }
.ticket-meta { margin: 0; color: var(--muted); font-size: 0.85rem; }
.ticket-status { font-weight: 600; }
.ticket-status.status-answered { color: var(--copper-2); }
.ticket-thread li {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  min-width: 0;
}
.ticket-thread .from-staff { background: rgba(226, 161, 90, 0.08); border-color: var(--copper); }
.ticket-who { margin: 0 0 6px; color: var(--muted); font-size: 0.82rem; }
.ticket-body { overflow-wrap: anywhere; }
.ticket-close { margin: 0; }
.ticket-close button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.account-search h2 { margin: 0 0 10px; font-size: 1.2rem; }
.flag-key {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 10px 0 12px;
  padding: 0;
  color: var(--muted);
  font-size: 0.85rem;
}
.flag-key li { display: inline-flex; align-items: center; gap: 6px; }
.account-search .result-count { margin: 0 0 8px; color: var(--muted); font-size: 0.9rem; }
.account-history { display: grid; gap: 12px; min-width: 0; }
.history-box {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-2);
  padding: 4px 16px;
}
.history-box > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  cursor: pointer;
  font-family: var(--display);
  font-weight: 600;
  list-style: none;
}
.history-box > summary::-webkit-details-marker { display: none; }
.history-box > summary span {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--muted);
}
.history-box[open] > summary { border-bottom: 1px solid var(--line); }
.history-box .empty { margin: 12px 0; }
.history-list { list-style: none; margin: 0; padding: 0; }
.history-list > li {
  display: grid;
  gap: 2px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  min-width: 0;
  overflow-wrap: anywhere;
}
.history-list > li:last-child { border-bottom: 0; }
.history-state, .ledger-after { color: var(--muted); font-size: 0.88rem; }
.history-reasons { margin: 4px 0 0; padding-left: 1.1rem; color: var(--muted); font-size: 0.85rem; }
.history-fix { display: inline-block; margin-top: 4px; color: #ff6b5e; font-size: 0.88rem; font-weight: 600; }
.ledger-row { grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; }
.ledger-row .ledger-after { grid-column: 1 / -1; }
.ledger-plus { color: var(--ok); }
.ledger-minus { color: var(--ink); }
@media (min-width: 840px) {
  .account-top { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .account-balance { justify-items: end; text-align: right; }
  .account-actions { display: flex; }
  .account-history { grid-template-columns: 1fr 1fr; align-items: start; }
}
.row-flag.flag-upload { color: var(--copper); border-color: var(--copper); }
.row-flag.flag-purchased { color: var(--ink); }
.row-flag.flag-credit { color: var(--muted); }
.row-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
}
.row-copy strong {
  font-family: var(--display);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.row-meta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.85rem;
}
.row-meta .part { font-size: 0.85rem; }
.button, button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 0;
  background: var(--copper);
  color: #1a120c;
  text-decoration: none;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
}
.button.secondary {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid rgba(243, 239, 230, 0.55);
}
.passkey-signin-note { margin: 14px 0 0; max-width: 40rem; color: var(--muted); }
.passkey-signin-note[hidden] { display: none; }
.download-panel { display: grid; gap: 10px; }
.download-panel form { margin: 0; }
.download-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; }
.download-head h2 { margin: 0; }
.download-balance { margin: 0; color: var(--muted); }
.download-balance strong { color: var(--ink); font-weight: 600; margin-left: 4px; }

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.file-card {
  display: grid;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.frame {
  position: relative;
  aspect-ratio: 4 / 3;
  min-height: 180px;
  background: #24221e;
  overflow: hidden;
}
.frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.frame-fallback {
  display: grid;
  place-items: center;
  height: 100%;
  font-family: var(--display);
  font-size: 3rem;
}
.badge {
  position: absolute;
  left: 12px;
  top: 12px;
  background: rgba(12, 12, 11, 0.78);
  color: var(--ink);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.badge.inline { position: static; display: inline-block; }
.card-body { display: grid; gap: 6px; padding: 14px 14px 16px; }
.card-body strong {
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}
.part { color: var(--copper-2); font-weight: 600; font-size: 0.92rem; }
.blurb, .card-body span { color: var(--muted); overflow-wrap: anywhere; }

.schedule, .panel, .download-panel, .balance-block, .packs form, .log > li {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.schedule, .panel, .download-panel, .balance-block { padding: 18px; margin: 8px 0 22px; }
.schedule ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.schedule li {
  display: grid;
  gap: 3px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.schedule li:last-child { border-bottom: 0; padding-bottom: 0; }
.schedule small, .rate { color: var(--muted); }
.rate { margin-top: 12px; }

.search { margin-bottom: 18px; }
.search label, .field label { display: block; font-weight: 600; margin-bottom: 6px; }
.search-row, .stack { display: grid; gap: 8px; }
.stack { max-width: 40rem; }
.field { display: grid; gap: 6px; }
.field[hidden] { display: none; }
input, select, textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #10100e;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
textarea { min-height: 140px; resize: vertical; }
.search-row { position: relative; }
.search-row input[type="search"] { padding-right: 48px; }
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; }
.search-clear {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.search-clear:hover,
.search-clear:focus-visible { color: var(--ink); background: rgba(255, 255, 255, 0.08); }
.search-clear[hidden] { display: none; }
pre.note {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 8rem;
  overflow: auto;
  margin: 0;
  color: var(--muted);
}
input[type="file"] { padding: 10px; }
.errorlist { color: var(--danger); margin: 0; padding-left: 1.1rem; }
.messages { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 8px; }
.messages li { padding: 12px 14px; border-radius: 12px; background: var(--bg-2); }
.messages .error { background: #3a201c; color: var(--danger); }
.messages .success { background: #163024; color: var(--ok); }
.upload-checking { margin: 0 0 12px; padding: 12px 14px; border-radius: 12px; background: var(--bg-2); }
.upload-status { margin: 0; font-weight: 600; }

.facts { display: grid; gap: 0; margin: 0 0 18px; }
.facts div {
  display: grid;
  grid-template-columns: 7.2rem minmax(0, 1fr);
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.description { white-space: pre-wrap; overflow-wrap: anywhere; }
.gallery { display: grid; gap: 12px; margin-bottom: 18px; }
.photo-frame {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  border-radius: 18px;
  background: #161614;
  cursor: default;
}
button.photo-frame { cursor: zoom-in; font: inherit; color: inherit; }
.gallery.is-guest .photo-frame { height: 220px; }
.gallery.is-member .photo-frame { height: 320px; }
@media (min-width: 720px) {
  .gallery.is-guest .photo-frame { height: 280px; }
  .gallery.is-member .photo-frame { height: 420px; }
}
.gallery .photo-frame img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  background: #10100e;
}
.photo-viewer[hidden] { display: none; }
.photo-viewer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 64px 16px 16px;
  background: rgba(8, 8, 7, 0.94);
}
.photo-viewer img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.photo-close {
  position: absolute;
  top: 12px;
  right: 12px;
  min-height: 48px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(243, 239, 230, 0.4);
  background: #161614;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
body.photo-open { overflow: hidden; }
.archive { margin: 0 0 18px; }
.archive-rows { list-style: none; padding: 0; margin: 0; }
.archive-rows li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  min-height: 44px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.archive-rows li span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.archive-rows li span:last-child { color: var(--muted); flex: none; }

.pack-list { display: grid; gap: 12px; max-width: 24rem; }
.pack-list form { margin: 0; }
.packs { display: grid; gap: 12px; }
.packs form { padding: 16px; }
.packs p { color: var(--muted); margin: 8px 0 0; }
.balance-figure {
  font-family: var(--display);
  font-size: 4rem;
  line-height: 0.9;
  margin: 0;
}
.balance-block p:last-child { margin: 0; color: var(--muted); }
.log { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.log > li { padding: 12px 14px; display: grid; gap: 4px; }
.log form { margin: 0; }
button.quiet {
  width: auto;
  min-height: 36px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--copper-2);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.log span, .log li li { overflow-wrap: anywhere; }
.banner { background: #8c3d28; color: #fff8f3; }
.banner .wrap { padding: 12px 0; }
.banner p { margin: 4px 0 0; }
.pager { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 18px; }
.pager a { min-height: 44px; display: inline-flex; align-items: center; }
.model-group { margin: 0 0 8px; }
.model-group h2 { margin-top: 1.3rem; }
.model-links, .offer-rows { list-style: none; padding: 0; margin: 0; }
.model-links a, .offer-rows a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}
.model-links span, .offer-rows span { color: var(--muted); font-size: 0.92rem; text-align: right; }
.offer-rows strong { font-weight: 600; }
.more-files { margin-top: 16px; }
.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 22px 0 40px;
  font-size: 0.95rem;
}

@media (min-width: 840px) {
  .hero-actions { display: flex; }
  .button, button.button { width: auto; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rail { grid-auto-columns: calc((100% - 36px) / 4); }
  .packs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 839px) {
  .cards { grid-template-columns: 1fr; }
}

.share-page { max-width: 100%; min-width: 0; }
.share-page .page-head { margin: 8px 0 12px; }
.share-page h1 { font-size: clamp(1.55rem, 5vw, 2.1rem); }
.share-page h2 { font-size: 1.15rem; margin: 0 0 8px; }
.share-page section { margin: 0 0 16px; }
.share-page .page-head p { margin: 0; font-size: 0.98rem; }
.share-drop { display: grid; gap: 10px; max-width: 100%; min-width: 0; }
.share-drop .field { min-width: 0; max-width: 100%; }
.share-or { margin: 0; color: var(--muted); font-size: 0.9rem; }
.share-page .note-field textarea,
.share-page .correct textarea { min-height: 72px; }
.share-drop input[type="file"] {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}
.share-rows { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.share-row {
  min-width: 0;
  max-width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  display: grid;
  gap: 2px;
}
.share-path, .share-vehicle, .share-meta { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.share-path {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
  color: var(--muted);
  font-size: 0.82rem;
}
.share-vehicle { font-weight: 600; }
.share-meta { color: var(--muted); font-size: 0.9rem; }
.share-page .correct { margin-top: 4px; }
.share-page .correct summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--copper-2);
  font-weight: 600;
}
.share-page .correct ul { margin: 0 0 8px; padding-left: 1.1rem; color: var(--muted); font-size: 0.88rem; }
.share-page .correct form { margin-top: 4px; }
.share-page .field.is-fault label { color: #ff6b5e; }
.share-page .field.is-fault input,
.share-page .field.is-fault select,
.share-page .field.is-fault textarea { border-color: #ff6b5e; box-shadow: 0 0 0 1px #ff6b5e; }
