.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 2px solid var(--border);
  border-radius: 11px;
  background: var(--control);
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--ink);
  min-height: 24px;
}

.btn:hover {
  background: var(--hover);
  border-color: var(--accent);
  text-decoration: none;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  border-color: transparent;
  color: var(--on-accent);
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.btn.primary:hover {
  filter: brightness(1.07);
}

.btn.ghost {
  background: transparent;
}

.btn.sm {
  padding: 4px 9px;
  font-size: 14.5px;
  border-radius: 9px;
  border-width: 1.5px;
}

.btn.yt,
.btn.ytm {
  background: var(--media-bg);
  border-color: var(--media-text);
  color: var(--media-text);
  font-weight: 700;
}

.btn.yt:hover,
.btn.ytm:hover {
  background: var(--media-bg);
  filter: brightness(1.12);
}

.btn.more {
  background: transparent;
  border-style: dashed;
  color: var(--ink-3);
  font-weight: 800;
}

.btn.more:hover {
  background: var(--hover);
  border-color: var(--accent);
  color: var(--ink-alt);
}

/* A "Media" disclosure is a real dropdown: the links float above the row, so opening it never
   changes the row's height (session 43 D43.14). It stays a native details/summary, so it works without
   JavaScript; the panel is anchored to the summary. */
.more {
  position: relative;
}

.more > summary {
  list-style: none;
  cursor: pointer;
}

.more > summary::-webkit-details-marker {
  display: none;
}

.more-pop {
  position: absolute;
  z-index: 40;
  right: 0;
  top: calc(100% + 6px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  width: max-content;
  max-width: calc(100vw - 24px);
  padding: 8px;
  border: 1.5px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.more-pop .btn {
  display: flex;
  justify-content: flex-start;
  white-space: normal;
}

.tag,
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 700;
  border: 1.5px solid var(--border);
  background: var(--chip-bg);
  border-radius: 999px;
  padding: 3px 9px;
  color: var(--chip-text);
}

.tag.link:hover,
.chip.link:hover {
  border-color: var(--accent);
  text-decoration: none;
  filter: brightness(1.06);
}

.entity-head .row > .prop,
.perf-chips > .prop {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  border: 1.5px dashed var(--border);
  background: transparent;
  border-radius: 6px;
  padding: 2px 8px;
  color: var(--ink-alt);
}

.entity-head .row > .prop-language,
.perf-chips > .prop-language {
  display: inline-block;
}

.tier {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 800;
  border-radius: 7px;
  padding: 4px 10px;
  border: 1.5px solid transparent;
  white-space: nowrap;
}

.tier-verified {
  background: var(--tier-verified-solid);
  color: var(--tier-verified);
  border-color: color-mix(in srgb, var(--tier-verified) 45%, transparent);
}

.tier-curated {
  background: var(--tier-curated-solid);
  color: var(--tier-curated);
  border-color: color-mix(in srgb, var(--tier-curated) 45%, transparent);
}

.tier-review {
  background: var(--tier-review-solid);
  color: var(--tier-review);
  border-color: color-mix(in srgb, var(--tier-review) 45%, transparent);
}

.tier-auto {
  background: var(--tier-auto-solid);
  color: var(--tier-auto);
  border-color: color-mix(in srgb, var(--tier-auto) 45%, transparent);
}

.tier-unverified {
  background: var(--tier-unverified-solid);
  color: var(--tier-unverified);
  border-color: color-mix(in srgb, var(--tier-unverified) 45%, transparent);
}

.tier-untrusted {
  background: var(--tier-untrusted-solid);
  color: var(--tier-untrusted);
  border-color: color-mix(in srgb, var(--tier-untrusted) 45%, transparent);
}

.t-verified {
  background: var(--tier-verified-solid);
  color: var(--tier-verified);
  border-color: color-mix(in srgb, var(--tier-verified) 45%, transparent);
}

.t-curated {
  background: var(--tier-curated-solid);
  color: var(--tier-curated);
  border-color: color-mix(in srgb, var(--tier-curated) 45%, transparent);
}

.t-review {
  background: var(--tier-review-solid);
  color: var(--tier-review);
  border-color: color-mix(in srgb, var(--tier-review) 45%, transparent);
}

.t-auto {
  background: var(--tier-auto-solid);
  color: var(--tier-auto);
  border-color: color-mix(in srgb, var(--tier-auto) 45%, transparent);
}

.t-unverified {
  background: var(--tier-unverified-solid);
  color: var(--tier-unverified);
  border-color: color-mix(in srgb, var(--tier-unverified) 45%, transparent);
}

.t-untrusted {
  background: var(--tier-untrusted-solid);
  color: var(--tier-untrusted);
  border-color: color-mix(in srgb, var(--tier-untrusted) 45%, transparent);
}

.field {
  margin: 10px 0;
}

.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-3);
  margin-bottom: 4px;
}

.field input,
.field select,
.field textarea,
select {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13.5px;
  font-family: inherit;
  background: var(--field);
  color: var(--ink);
}

.field input:focus,
.field select:focus,
.field textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

input[type="checkbox"] {
  accent-color: var(--accent);
  width: 15px;
  height: 15px;
  margin: 0;
  cursor: pointer;
}

.card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 13px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.doc {
  max-width: 860px;
}

.doc h2 {
  font-family: var(--display);
  font-size: 21px;
  margin: 30px 0 8px;
  scroll-margin-top: 80px;
}

.doc h3 {
  font-family: var(--display);
  font-size: 16px;
  margin: 20px 0 6px;
}

.doc p {
  color: var(--ink-alt);
  margin: 9px 0;
  line-height: 1.62;
}

.doc ul,
.doc ol {
  color: var(--ink-alt);
  margin: 9px 0;
  padding-left: 22px;
  line-height: 1.62;
}

.doc li {
  margin: 4px 0;
}

.doc a:not(.btn) {
  color: var(--link);
  font-weight: 700;
}

.doc a:not(.btn):hover {
  text-decoration: underline;
}

.doc hr {
  border: 0;
  border-top: 1.5px dashed var(--border);
  margin: 26px 0;
}

.doc-toc {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.doc-toc a {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 2px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
  padding: 12px 13px;
}

.doc-toc a:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.doc-toc b {
  display: block;
  font-family: var(--display);
  font-size: 14.5px;
  color: var(--ink);
}

.doc-toc span {
  font-size: 12.5px;
  color: var(--ink-3);
  font-weight: 600;
}

.doc-toc .em {
  font-size: 18px;
  line-height: 1.2;
  color: var(--ink);
}

.doc-toc.legal a {
  display: block;
}

.doc-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 14px;
  border-bottom: 1.5px solid var(--border);
  padding-bottom: 10px;
  margin: 0 0 16px;
}

.doc-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  color: var(--ink-alt);
  font-size: 13.5px;
  font-weight: 700;
}

.doc-nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

.doc-nav .here {
  color: var(--accent);
}

.doc-lede {
  margin: 4px 0 14px;
  color: var(--ink-alt);
  font-size: 15px;
  line-height: 1.6;
}

.docs-sec {
  margin: 20px 0 8px;
  border: 1.5px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
  padding: 16px 18px;
}

.docs-sec > h2 {
  margin-top: 0;
}

.docs-sec .who {
  margin: -4px 0 12px;
  color: var(--ink-3);
  font-size: 12.5px;
  font-weight: 700;
}

.docs-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.docs-links a {
  display: block;
  min-height: 44px;
  border: 1.5px solid var(--line-2);
  border-radius: 9px;
  padding: 9px 11px;
  color: var(--ink-alt);
  font-weight: 800;
}

.docs-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.docs-links a span {
  display: block;
  margin-top: 2px;
  color: var(--ink-3);
  font-size: 12.5px;
  font-weight: 600;
}

.doc-note {
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 10px 10px 0;
  padding: 11px 15px;
  margin: 16px 0;
  color: var(--ink-alt);
  font-size: 13.5px;
}

.doc-note b {
  color: var(--ink);
}

.doc-note.alt {
  border-left-color: var(--border);
  background: var(--sunken);
}

.notice {
  border-top: 1.5px dashed var(--border);
  margin: 28px 0 0;
  padding-top: 2px;
}

.notice > h2 {
  margin-top: 16px;
  scroll-margin-top: 80px;
}

.draft-note {
  margin: 6px 0 14px;
  font-size: 12.5px;
}

.src-card {
  border: 1.5px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
  padding: 14px 16px;
  margin: 10px 0;
}

.src-card.own {
  border-color: var(--accent);
  background: var(--sunken);
}

.src-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px 12px;
}

.src-id {
  flex: 1 1 220px;
  min-width: 0;
}

.src-card h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 16.5px;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.src-card .lic {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.src-card a.lic {
  color: var(--link);
}

.src-card a.lic:hover {
  text-decoration: underline;
}

.src-card span.lic {
  color: var(--ink-alt);
}

.src-card .req-note {
  margin: 6px 0 0;
  color: var(--ink-alt);
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.src-own {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  padding: 2px 10px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.reqs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.req {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1.5px solid var(--line-2);
  border-radius: 999px;
  background: var(--sunken);
  padding: 2px 9px;
  color: var(--ink-alt);
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.req.link,
.req.dofollow {
  border-color: var(--accent);
  color: var(--ink);
}

.req.share {
  border-color: var(--accent-2);
}

.req.nc {
  border-color: var(--accent-3);
}

.req.redist {
  border-style: dashed;
}

.req.fresh {
  border-style: dotted;
  font-weight: 800;
}

.src-none {
  margin: 10px 0 0;
  color: var(--ink-3);
  font-size: 12.5px;
  font-weight: 700;
}

.banner-status {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 2px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 13px;
  background: var(--sunken);
  padding: 16px 18px;
  margin: 4px 0 6px;
}

.banner-status .ico {
  font-size: 30px;
  line-height: 1;
}

.banner-status b {
  display: block;
  font-family: var(--display);
  font-size: 18px;
  color: var(--ink);
}

.banner-status > div > span {
  display: block;
  margin-top: 2px;
  color: var(--ink-alt);
  font-size: 13.5px;
  line-height: 1.5;
}

.asof {
  margin: 6px 0 14px;
  font-size: 12.5px;
}

.svc-list {
  padding: 4px 16px;
}

.svc {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1.5px solid var(--line-2);
}

.svc:last-child {
  border-bottom: 0;
}

.svc-text {
  min-width: 0;
}

.svc .nm {
  font-weight: 800;
  font-size: 14.5px;
  color: var(--ink);
}

.svc .sub {
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.45;
}

.st {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-left: auto;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--chip-text);
  padding: 3px 10px;
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
}

.st.pending {
  background: var(--sunken);
  color: var(--ink-alt);
}

.inc {
  border: 1.5px solid var(--line-2);
  border-left: 4px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
  padding: 12px 14px;
  margin: 10px 0;
}

.inc .when {
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 700;
}

.inc .what {
  font-family: var(--display);
  font-weight: 800;
  margin: 2px 0 4px;
  color: var(--ink);
}

.inc .st {
  margin-left: 0;
}

.doc .rm-timeline {
  --rm-when: 7rem;
  --rm-gap: 2.5rem;
  --rm-point: 20px;
  --rm-line: 4px;
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  color: var(--ink);
}

.doc .rm-timeline > li {
  position: relative;
  margin: 0;
  padding: 0 0 26px;
}

.rm-timeline > li::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--rm-when) + var(--rm-gap) / 2 - var(--rm-line) / 2);
  width: var(--rm-line);
  background: var(--border);
}

.rm-timeline > li:last-child::before {
  bottom: 26px;
}

.rm-entry {
  display: grid;
  grid-template-columns: var(--rm-when) minmax(0, 1fr);
  column-gap: var(--rm-gap);
  scroll-margin-top: calc(var(--topbar-h) + 16px);
}

.rm-entry::after {
  content: "";
  position: absolute;
  top: 3px;
  left: calc(var(--rm-when) + var(--rm-gap) / 2 - var(--rm-point) / 2);
  box-sizing: border-box;
  width: var(--rm-point);
  height: var(--rm-point);
  border-radius: 50%;
  border: 3px solid var(--ink);
  background: var(--ink);
}

.rm-planned::after {
  border-color: var(--link);
  background: var(--bg);
}

.rm-when {
  padding-top: 1px;
  text-align: right;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
  color: var(--ink-alt);
  overflow-wrap: anywhere;
}

.rm-body {
  min-width: 0;
  overflow-wrap: anywhere;
}

.rm-tag {
  display: inline-block;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  padding: 1px 10px;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.rm-title {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.35;
  margin: 2px 0 4px;
}

.rm-desc {
  color: var(--ink-alt);
  line-height: 1.6;
}

.rm-planned .rm-when,
.rm-planned .rm-tag,
.rm-planned .rm-title,
.rm-planned .rm-desc {
  color: var(--link);
}

.rm-now {
  display: flex;
}

.rm-now-label {
  position: relative;
  z-index: 1;
  margin-left: calc(var(--rm-when) + var(--rm-gap) / 2);
  transform: translateX(-50%);
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--bg);
  padding: 2px 14px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
}

.rm-timeline > .rm-state::before {
  display: none;
}

.rm-skip {
  margin: 6px 0 0;
}

@media (max-width: 560px) {
  .doc .rm-timeline {
    --rm-when: 5.4rem;
    --rm-gap: 1.75rem;
    --rm-point: 18px;
  }

  .rm-when {
    font-size: 12px;
  }

}

.feed-sub {
  border: 1.5px solid var(--line-2);
  border-radius: 13px;
  background: var(--surface);
  padding: 16px 18px;
  margin: 12px 0 18px;
}

.feed-sub h3 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 15px;
}

.feed-sub p {
  margin: 6px 0;
}

.feed-sub code {
  overflow-wrap: anywhere;
}

@media (max-width: 560px) {
  .banner-status {
    align-items: flex-start;
  }

  .svc {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .svc .st {
    margin-left: 0;
  }
}

.faq-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 8px;
}

.faq-chips a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  padding: 4px 12px;
  color: var(--ink-alt);
  font-size: 13px;
  font-weight: 700;
}

.faq-chips a:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.faq-chips a[aria-current] {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--ink);
}

.qcat {
  margin: 26px 0 10px;
}

.qcat > h2 {
  scroll-margin-top: 80px;
}

.q {
  border: 1.5px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
  margin: 8px 0;
  padding: 0 14px;
}

.q summary {
  min-height: 44px;
  padding: 10px 0;
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
  line-height: 1.45;
}

.q summary::marker {
  color: var(--accent);
}

.q summary:hover {
  color: var(--accent);
}

.q[open] summary {
  border-bottom: 1.5px dashed var(--border);
}

.q summary .qcrit {
  margin-left: 6px;
  vertical-align: middle;
}

.q .a {
  padding: 10px 0 14px;
  color: var(--ink-alt);
  line-height: 1.62;
}

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

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

.qcrit {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--sunken);
  padding: 1px 8px;
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 800;
}

.qcrit.goal {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--ink);
}

.qcrit.chosen {
  border-color: var(--link);
  color: var(--link);
}

.qcrit.enforced {
  border-color: var(--border);
  color: var(--ink-alt);
}

.guide-search {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 460px;
  margin: 14px 0 4px;
}

.guide-search input[type="search"] {
  flex: 1;
  min-width: 0;
  min-height: 40px;
  padding: 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  background: var(--field);
  color: var(--ink);
}

.guide-search input[type="search"]:focus-visible {
  border-color: var(--accent);
}

.guide-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.guide-foot a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

.rail-back {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  margin-bottom: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--ink-alt);
  font-size: 13.5px;
  font-weight: 700;
}

.rail-back:hover {
  background: var(--hover);
  color: var(--accent);
  text-decoration: none;
}

.railgrp {
  margin: 2px 0;
}

.railgrp > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--ink-alt);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.railgrp > summary::-webkit-details-marker {
  display: none;
}

.railgrp > summary::marker {
  content: "";
}

.railgrp > summary:hover {
  background: var(--hover);
  color: var(--ink);
}

.railgrp[open] > summary {
  color: var(--ink);
}

.railgrp a {
  display: block;
  min-height: 32px;
  padding: 6px 10px 6px 26px;
  border-radius: 9px;
  color: var(--ink-alt);
  font-size: 13.5px;
  font-weight: 600;
}

.railgrp a:hover {
  background: var(--hover);
  color: var(--ink);
  text-decoration: none;
}

.railgrp a.active {
  background: var(--accent-soft);
  color: var(--ink);
  font-weight: 800;
}

.docs-links a[hidden],
.docs-sec[hidden],
.qcat[hidden],
.q[hidden],
[data-docs-empty][hidden],
[data-faq-empty][hidden] {
  display: none;
}

.sitefoot {
  border-top: 2px solid var(--border);
  background: var(--surface);
  margin-top: 46px;
}

.sitefoot .in {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sitefoot nav {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 18px;
  row-gap: 2px;
}

.sitefoot a {
  display: block;
  color: var(--ink-alt);
  font-size: 13px;
  font-weight: 600;
  padding: 3px 0;
}

.sitefoot a:hover {
  color: var(--accent);
  text-decoration: none;
}

.sitefoot .foot-end {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 18px;
  row-gap: 2px;
  border-top: 1.5px dashed var(--border);
  margin-top: 2px;
  padding-top: 10px;
}

.sitefoot .support,
.sitefoot .fine {
  margin: 0;
}

.sitefoot .fine {
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.6;
}

.sitefoot .fine a {
  display: inline;
  padding: 0;
  font-weight: 700;
}

.sitefoot h5 {
  font-family: var(--display);
  flex: 0 0 auto;
  min-width: 108px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  margin: 0;
}

.sitefoot .support a {
  display: inline;
  padding: 0;
  font-weight: 700;
}

.accountmenu {
  position: relative;
  display: inline-flex;
}

.account-btn {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 2px solid var(--accent);
  border-radius: 11px;
  background: var(--control);
  color: var(--ink);
  box-shadow: 0 0 0 3px var(--accent-soft), 0 0 10px color-mix(in srgb, var(--accent) 18%, transparent);
  padding: 0 11px;
  min-height: 36px;
  font-weight: 700;
  font-size: 13.5px;
}

.account-btn::-webkit-details-marker {
  display: none;
}

.accountmenu[open] .account-btn {
  border-color: var(--accent);
  background: var(--hover);
}

.accountmenu-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 80;
  min-width: 190px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 6px;
  display: flex;
  flex-direction: column;
}

.accountmenu-menu a,
.linkbtn {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--ink-alt);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 9px;
  border-radius: 8px;
  cursor: pointer;
}

.accountmenu-menu a:hover,
.linkbtn:hover {
  background: var(--hover);
  color: var(--ink);
  text-decoration: none;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  flex: none;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-family: var(--display);
  color: var(--on-accent);
  font-size: 15px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
}

.account-btn .avatar {
  width: 32px;
  height: 32px;
  font-size: 13px;
}

img.avatar {
  object-fit: cover;
}

.aside-id {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.dim {
  color: var(--ink-3);
  font-size: 13px;
}

.kv {
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0;
  border-bottom: 1.5px dashed var(--line-2);
}

.kv:last-child {
  border-bottom: 0;
}

.kv .k {
  color: var(--ink-3);
}

.kv .v {
  text-align: right;
  word-break: break-all;
  font-weight: 600;
}

.kv .v code {
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.kv .k .help-btn {
  margin-left: 5px;
  vertical-align: middle;
}

.contributors {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
}

.contributors li {
  padding: 4px 0;
  border-bottom: 1.5px dashed var(--line-2);
}

.contributors li:last-child {
  border-bottom: 0;
}

.name-orig {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  word-break: break-word;
}

.name-roman {
  margin-top: 2px;
  font-size: 13px;
}

.name-words {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  vertical-align: middle;
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-3);
}

.nw-flag {
  font-size: 15px;
  line-height: 1;
}

.nw-text {
  white-space: nowrap;
}

.nw-script {
  display: inline-flex;
}

.nw-script svg {
  width: 24px;
  height: 16px;
}

.nw-script rect {
  fill: var(--surface);
  stroke: currentColor;
  stroke-width: 1.4;
}

.nw-script text {
  fill: currentColor;
  font-size: 10px;
  font-weight: 800;
  text-anchor: middle;
  font-family: var(--sans);
}

.alias-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  word-break: break-word;
}

.alias-list li {
  margin-top: 2px;
}

.aside h4.sub {
  margin-top: 12px;
  font-size: 10px;
  color: var(--ink-3);
}

.credit-groups .credit-heading {
  margin-top: 10px;
  margin-bottom: 4px;
}

.credit-groups .credit-heading:first-child {
  margin-top: 0;
}

.lyric-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.lyric-tabs input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.lyric-tabs label {
  padding: 5px 12px;
  border: 1.5px solid var(--border);
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
  color: var(--ink-3);
  font-size: 12px;
  cursor: pointer;
}

.lyric-tabs input:checked + label {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}

.lyric-tabs input:focus-visible + label {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.lyric-tabs .lyric-panel {
  display: none;
  flex-basis: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: 0 9px 9px 9px;
  background: var(--sunken);
  white-space: pre-wrap;
  line-height: 1.7;
}

.lyric-tabs .lyric-source {
  margin: 10px 0 0;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 0.85em;
  line-height: 1.4;
}

.lyric-tabs input:nth-of-type(1):checked ~ .lyric-panel:nth-of-type(1),
.lyric-tabs input:nth-of-type(2):checked ~ .lyric-panel:nth-of-type(2),
.lyric-tabs input:nth-of-type(3):checked ~ .lyric-panel:nth-of-type(3),
.lyric-tabs input:nth-of-type(4):checked ~ .lyric-panel:nth-of-type(4),
.lyric-tabs input:nth-of-type(5):checked ~ .lyric-panel:nth-of-type(5),
.lyric-tabs input:nth-of-type(6):checked ~ .lyric-panel:nth-of-type(6),
.lyric-tabs input:nth-of-type(7):checked ~ .lyric-panel:nth-of-type(7),
.lyric-tabs input:nth-of-type(8):checked ~ .lyric-panel:nth-of-type(8) {
  display: block;
}

details.why {
  border: 1.5px solid var(--border);
  border-radius: 11px;
  padding: 9px 11px;
  margin-top: 12px;
  background: var(--sunken);
}

details.why summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-alt);
}

details.why p {
  margin: 8px 0 0;
}

@media (max-width: 820px) {
  .sitefoot .in {
    padding: 16px 18px 18px;
  }

  .sitefoot h5 {
    flex-basis: 100%;
    min-width: 0;
  }

  .docs-links {
    grid-template-columns: 1fr;
  }
}

.settings-form {
  max-width: 900px;
  margin: 18px 0 40px;
}

details.sec {
  border: 2px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
  margin: 12px 0;
  overflow: hidden;
}

details.sec .sechead {
  cursor: pointer;
  list-style: none;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

details.sec .sechead::-webkit-details-marker {
  display: none;
}

details.sec .sechead::after {
  content: "⌄";
  margin-left: auto;
  color: var(--ink-3);
  font-weight: 900;
  transition: transform 0.15s;
}

details.sec[open] .sechead::after {
  transform: rotate(180deg);
}

details.sec .sectitle {
  font-family: var(--display);
  font-size: 16px;
  margin: 0;
}

details.sec .hint {
  font-size: 12px;
  color: var(--ink-3);
}

.secbody {
  padding: 0 16px 14px;
}

.setpick {
  border: 0;
  margin: 8px 0 14px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.setpick .pname {
  grid-column: 1 / -1;
  padding: 0;
}

.palette-option {
  display: flex;
  flex-direction: column;
  gap: 7px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--control);
  color: var(--ink);
  padding: 9px 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.palette-option.selected {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.palette-option .sws,
.pv .sws {
  display: flex;
  gap: 4px;
  margin-top: auto;
}

.sw {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
  display: inline-block;
}

.customrow {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 0 4px;
  border-top: 1.5px solid var(--line-2);
}

.customrow h3 {
  margin: 0;
}

.customrow-fields {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 12.5px;
  font-weight: 700;
}

.customrow-fields input[type="text"] {
  padding: 7px 10px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--field);
  color: var(--ink);
  font-family: inherit;
  font-weight: 700;
}

.slotgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 4px 14px;
}

.slotfield {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1.5px solid var(--line-2);
  font-size: 13px;
  font-weight: 700;
}

.slotfield .slotlabel {
  flex: 1;
  min-width: 0;
}

.slotfield .slotvar {
  color: var(--ink-3);
  font-size: 11.5px;
}

.slotfield .repeat-hint {
  font-size: 11px;
}

.slotfield input[type="color"] {
  border: 1.5px solid var(--border);
  border-radius: 7px;
  background: var(--field);
  width: 34px;
  height: 28px;
  padding: 2px;
  cursor: pointer;
}

.prefrow {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 11px 0;
  border-bottom: 1.5px solid var(--line-2);
}

.prefrow:last-child {
  border-bottom: 0;
}

.prefrow .pinfo {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pname {
  font-weight: 800;
  font-size: 14px;
}

.prefrow select {
  width: auto;
  min-width: 150px;
}

.seg {
  display: inline-flex;
  gap: 4px;
  background: var(--sunken);
  border: 1.5px solid var(--border);
  border-radius: 11px;
  padding: 4px;
  flex-wrap: wrap;
  margin: 0;
}

.seg label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 800;
  font-size: 13px;
  padding: 7px 11px;
  border: 1.5px solid transparent;
  border-radius: 8px;
  color: var(--ink-alt);
  cursor: pointer;
}

.seg label:has(input:checked) {
  background: var(--chip-bg);
  color: var(--chip-text);
  border-color: var(--accent);
}

.radio {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1.5px solid var(--line-2);
  cursor: pointer;
  font-size: 13.5px;
}

.radio:last-of-type {
  border-bottom: 0;
}

.radio input {
  margin-top: 2px;
}

.savebar {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  background: linear-gradient(0deg, var(--bg) 60%, transparent);
  padding: 14px 0 6px;
  margin-top: 16px;
}

@media (max-width: 820px) {
  .savebar {
    position: sticky;
    bottom: 0;
  }
}

.note {
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 10px 10px 0;
  padding: 10px 13px;
  font-size: 12.5px;
  color: var(--ink);
  margin: 4px 0 14px;
}

.pi .grp {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ink-3);
  margin: 14px 0 2px;
}

.pi .grp:first-child {
  margin-top: 0;
}

.pi .it {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1.5px solid var(--line-2);
}

.pi .it .sw {
  border-radius: 6px;
  border: 1.5px solid var(--border);
  flex: none;
}

.pi .it .nm {
  flex: 1;
  min-width: 0;
  font-size: 12.5px;
  font-weight: 700;
}

.pi .it .vl {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-alt);
  font-weight: 700;
  white-space: nowrap;
}

.chiptoggles {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 5px 0 8px;
}

.chiptoggles label {
  cursor: pointer;
}

.chiptoggles .chip {
  gap: 5px;
  font-size: 12px;
  padding: 4px 10px;
}

.chiptoggles .locked {
  opacity: 0.85;
  border-style: dashed;
}

.chipgroup {
  margin-bottom: 10px;
}

.chipgroup .pname {
  margin: 8px 0 0;
  font-size: 13px;
}

.pvwrap {
  margin-top: 16px;
}

.pvtitle {
  font-family: var(--display);
  font-size: 15px;
  margin: 0 0 8px;
}

.pv {
  background: var(--bg);
  color: var(--ink);
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 14px;
}

.pv .row {
  border: 1.5px solid var(--border);
  border-radius: 11px;
  padding: 10px;
  background: var(--surface);
}

.pv .t {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
}

.pv .t .hl {
  background: var(--chip-bg);
  color: var(--chip-text);
  border-radius: 4px;
  padding: 0 3px;
}

.pv .sub {
  color: var(--ink-3);
  font-size: 12.5px;
  margin-top: 2px;
}

.pv .meta {
  float: right;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 800;
  margin-left: 8px;
}

.pv .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}

.pv .chip {
  font-size: 11px;
  padding: 2px 9px;
}

.pv .btn {
  margin: 9px 6px 0 0;
}

.pv .dim {
  margin: 10px 0 0;
}

.form-error {
  margin: 8px 0;
  padding: 8px 10px;
  border: 1.5px solid var(--tier-untrusted);
  border-radius: 9px;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
}

.contrast-warn {
  margin: 10px 0 0;
  padding: 8px 10px 8px 26px;
  border: 1.5px dashed var(--tier-review);
  border-radius: 9px;
  color: var(--ink-alt);
  font-size: 12px;
}

@media (max-width: 700px) {
  .setpick {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 8px;
}

.page-head .locked {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: 12.5px;
  font-weight: 700;
  border: 1.5px dashed var(--accent);
  background: var(--accent-solid);
  color: var(--chip-text);
  border-radius: 999px;
  padding: 5px 11px;
}

.page-head .locked-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.title-row > h1 {
  min-width: 0;
}

.help-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.help-btn:hover {
  background: var(--hover);
  color: var(--ink);
}

.help-btn.dev {
  border-style: dashed;
}

.help-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--ink-3);
  font-size: 13px;
}

dialog.sheet[data-dialog-loading] .help-loading {
  color: var(--ink);
}

.browse-count {
  margin: 2px 0 8px;
}

.browse-sort,
.disc-sort {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  background: var(--sunken);
  border: 1.5px solid var(--border);
  border-radius: 11px;
  padding: 10px 12px;
  margin: 14px 0;
}

.browse-sort label:not(.tag),
.disc-sort label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-3);
}

.browse-sort select,
.disc-sort select {
  width: auto;
}

.sgroup {
  margin-top: 18px;
}

.sgroup:first-child {
  margin-top: 0;
}

.sgroup > summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
  cursor: pointer;
  list-style: none;
}

.sgroup > summary::-webkit-details-marker {
  display: none;
}

.sgroup > summary::before {
  content: '▾';
  color: var(--ink-3);
  font-size: 12px;
}

.sgroup:not([open]) > summary::before {
  content: '▸';
}

.sgroup > summary h2 {
  margin: 0;
}

.sgroup .sgroup-more {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.sgroup .see {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 24px;
  padding: 2px;
  color: var(--accent);
  font-weight: 800;
  white-space: nowrap;
}

.brow {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-left: 4px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  margin-bottom: 8px;
}

.brow:hover {
  background: var(--hover);
}

.brow .bmain {
  flex: 1;
  min-width: 0;
}

/* The compact search/entity row leads with a small picture so a grouped result carries the same identity cue as
   its browse list without taking the browse row's 52 px slot. */
.brow .srow-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brow .srow-thumb {
  display: grid;
  place-items: center;
  width: 44px;
  height: 26px;
  flex: none;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 5px;
  background: var(--sunken);
}

.brow .srow-thumb.avatar,
.brow .srow-thumb.cover {
  width: 28px;
  height: 28px;
  border-radius: 999px;
}

.brow .srow-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brow a.name {
  display: inline-block;
  min-height: 24px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 16px;
  line-height: 1.25;
}

.brow a.name:hover {
  text-decoration: underline;
}

.brow .native {
  margin-left: 6px;
  color: var(--ink-3);
  font-weight: 500;
  font-size: 12.5px;
}

.brow .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 6px;
}

/* I64 browse row: the picture and the name share one anchor, the fact line sits underneath and
   the quality tier is the one right-aligned mark (D46.6-D46.14). The picture follows the image's
   own ratio inside the 1:1..16:9 clamp: a square avatar stays square, a wide still takes 16:9,
   `object-fit: cover` fills the slot so no letterbox bars appear. */
.brow {
  --browse-pic-h: 52px;
  --browse-pic-w: var(--browse-pic-h);
}

.brow:has(.bpic.cover),
.brow:has(.bpic.wide) {
  --browse-pic-w: calc(var(--browse-pic-h) * 16 / 9);
}

/* The picture is its own left-hand slot; the title and fact line share the remaining column and
   spread between the picture's upper and lower edges. The title sits under the top edge and the
   fact line above the bottom edge, so the row no longer wastes the picture's height on a second
   text block. A row without a fact line centres its title against the picture. */
/* Only the browse shape has the picture slot; the compact entity-row reuses .brow and .bmain
   without a .bpic-link, so the grid must not leak into its title/chips block. */
.brow .bmain:has(.bpic-link) {
  display: grid;
  grid-template-columns: var(--browse-pic-w) minmax(0, 1fr);
  column-gap: 12px;
  align-items: center;
  min-width: 0;
}

.brow .bpic-link {
  display: block;
  width: var(--browse-pic-w);
  height: var(--browse-pic-h);
  flex: none;
  text-decoration: none;
}

.brow .btext {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-self: stretch;
  min-width: 0;
}

.brow .bmain:not(:has(.bfact)) .btext {
  justify-content: center;
}

.brow .rowhead {
  display: block;
  min-width: 0;
  min-height: 24px;
  text-decoration: none;
}

.brow .rowhead:hover {
  text-decoration: none;
}

.brow .rowhead:hover .bname {
  text-decoration: underline;
}

.bpic {
  width: var(--browse-pic-w);
  height: var(--browse-pic-h);
  flex: none;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 11px;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 900;
  color: var(--on-accent);
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  text-decoration: none;
}

.bpic.wide {
  font-size: 12px;
  background: linear-gradient(135deg, var(--ink-3), var(--ink-2));
}

.bpic.avatar {
  border-radius: 999px;
}

.bpic.none {
  border: 1.5px dashed var(--border);
  background: var(--sunken);
  color: var(--ink-3);
}

.bpic.none .vi {
  width: 22px;
  height: 22px;
}

.bpic img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* A channel-less unit shows its members' avatars in the browse picture slot: two across,
   three as a triangle, four as a square and five as a square plus the middle one, the same arrangement as the
   entity header. */
.bpic.collage {
  overflow: visible;
  border-radius: 0;
  background: transparent;
}

.bpic .bpic-collage {
  width: 100%;
  height: 100%;
  padding: 3px;
  display: grid;
  gap: 2px;
  place-content: center;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
}

.bpic .bpic-collage-avatar {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px;
  background: var(--surface);
}

.bpic .bpic-collage.count-1 {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

.bpic .bpic-collage.count-2 {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: 1fr;
}

.bpic .bpic-collage.count-3 .bpic-collage-avatar:first-child {
  grid-column: 1 / span 2;
  justify-self: center;
  width: 50%;
}

.bpic .bpic-collage.count-5 {
  position: relative;
}

.bpic .bpic-collage.count-5 .bpic-collage-avatar:nth-child(5) {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(50% - 2px);
  height: calc(50% - 2px);
  transform: translate(-50%, -50%);
  border: 1px solid var(--surface);
}

.brow .bname {
  display: block;
  min-width: 0;
  overflow: hidden;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brow .bfact {
  margin-top: 3px;
  overflow: hidden;
  color: var(--ink-2);
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brow .bfact a {
  font-weight: 700;
}

.brow .bfact .sep {
  color: var(--ink-3);
}

.brow .tier {
  flex: none;
  align-self: center;
}

.browse-search,
.browse-typefilters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 14px 0;
}

.browse-typefilters {
  border: 1.5px solid var(--border);
  border-radius: 11px;
  padding: 10px 12px;
  background: var(--sunken);
}

.browse-typefilters .bsimple {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.browse-typefilters select {
  width: auto;
}

.browse-search label,
.browse-typefilters label:not(.tag),
.browse-typefilters .flabel {
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 700;
}

.browse-search input[type='search'] {
  flex: 1;
  min-width: 160px;
  padding: 12px 15px;
  border: 2px solid var(--border);
  border-radius: 13px;
  background: var(--field);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.browse-search input[type='search']::placeholder {
  color: var(--ink-3);
  font-weight: 500;
}

.browse-search input[type='search']:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.browse-typefilters select {
  width: auto;
}

.taglist {
  display: flex;
  flex-direction: column;
}

.tagrow {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 6px;
  border: 1.5px solid var(--border);
  border-radius: 11px;
  padding: 8px 12px;
  background: var(--surface);
  text-decoration: none;
}

.tagrow:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.tagrow .tr {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.tagrow b {
  color: var(--link);
  font-family: var(--display);
  font-size: 15px;
}

.tagrow .c {
  margin-left: auto;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 800;
}

.tagrow span {
  color: var(--ink-3);
  font-size: 11px;
}

.letter {
  margin: 12px 0 6px;
  border-bottom: 1.5px solid var(--border);
  padding-bottom: 3px;
  color: var(--ink-3);
  font-family: var(--display);
  font-size: 13px;
}

.alphabet {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 4px 0 14px;
}

.alphabet a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  min-height: 26px;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  background: var(--field);
  color: var(--ink);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.alphabet a:hover {
  border-color: var(--accent);
}

.alphabet a[aria-current='true'] {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

@media (max-width: 820px) {
  .brow {
    --browse-pic-h: 40px;
    gap: 9px;
    padding: 9px;
  }

  .brow .bmain {
    column-gap: 9px;
  }

  .bpic {
    border-radius: 9px;
    font-size: 13px;
  }

  .brow .bname {
    font-size: 15px;
  }

  .brow .bfact {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-height: 1.3;
    white-space: normal;
  }
}

.perf {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  --perf-body-h: 4rem;
  gap: 0 14px;
  padding: 9px 15px;
  border: 1.5px solid var(--line-2);
  border-left: 5px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  margin-bottom: 7px;
  align-items: stretch;
  position: relative;
}

/* The row's left stripe carries the entity's or claim's quality tier (D43.10), the same signal the aside badge
   uses: a performance or browse row shows its entity tier, a History row its claim trust and a social button its
   external-id claim trust. */
.perf.q-verified,
.brow.q-verified,
.history-row.q-verified,
.social-btn.q-verified,
.searchwrap .typeahead-mount .trow.q-verified {
  border-left-color: var(--tier-verified);
}

.perf.q-curated,
.brow.q-curated,
.history-row.q-curated,
.social-btn.q-curated,
.searchwrap .typeahead-mount .trow.q-curated {
  border-left-color: var(--tier-curated);
}

.perf.q-needs_review,
.brow.q-needs_review,
.history-row.q-needs_review,
.social-btn.q-needs_review,
.searchwrap .typeahead-mount .trow.q-needs_review {
  border-left-color: var(--tier-review);
}

.perf.q-automated_metadata,
.brow.q-automated_metadata,
.history-row.q-automated_metadata,
.social-btn.q-automated_metadata,
.perf.q-automated_submission,
.brow.q-automated_submission,
.history-row.q-automated_submission,
.social-btn.q-automated_submission,
.searchwrap .typeahead-mount .trow.q-automated_metadata,
.searchwrap .typeahead-mount .trow.q-automated_submission {
  border-left-color: var(--tier-auto);
}

.perf.q-unverified,
.brow.q-unverified,
.history-row.q-unverified,
.social-btn.q-unverified,
.searchwrap .typeahead-mount .trow.q-unverified {
  border-left-color: var(--tier-unverified);
}

.perf.q-untrusted,
.brow.q-untrusted,
.history-row.q-untrusted,
.social-btn.q-untrusted,
.searchwrap .typeahead-mount .trow.q-untrusted {
  border-left-color: var(--tier-untrusted);
}

.perf-link {
  color: inherit;
  text-decoration: none;
}

.perf-link:hover {
  text-decoration: underline;
}

.perf-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.perf-actions,
.perf-chips {
  position: relative;
  z-index: 2;
}

.perf:hover {
  background: var(--hover);
}

.perf-thumb {
  grid-column: 1;
  align-self: stretch;
  display: grid;
  place-items: center;
  width: calc(var(--perf-body-h) * 16 / 9);
  min-height: var(--perf-body-h);
  flex: none;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: var(--sunken);
  color: var(--ink-3);
}

.perf-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.perf-thumb .vi {
  width: 18px;
  height: 18px;
}

.perf-main,
.perf-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: var(--perf-body-h);
  min-width: 0;
}

.perf-main {
  grid-column: 2;
}

.perf-side {
  grid-column: 3;
  align-items: flex-end;
}

.perf-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 15.5px;
  line-height: 1.22;
}

.perf-title .native {
  margin-left: 1ch;
  font-family: var(--sans);
  font-weight: 500;
  color: var(--ink-3);
}

.perf-title .perf-by {
  font-family: var(--sans);
  font-weight: 600;
  color: var(--ink-alt);
}

.perf-title .cls {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.3px;
  vertical-align: middle;
  white-space: nowrap;
}

.perf-title .cls-original {
  background: var(--tier-verified-solid);
  color: var(--tier-verified);
  border-color: color-mix(in srgb, var(--tier-verified) 45%, transparent);
}

.perf-title .cls-cover {
  background: var(--tier-curated-solid);
  color: var(--tier-curated);
  border-color: color-mix(in srgb, var(--tier-curated) 45%, transparent);
}

.perf-title .cls-parody,
.perf-title .cls-remix,
.perf-title .cls-sample,
.perf-title .cls-remaster,
.perf-title .cls-re-recording,
.perf-title .cls-instrumental,
.perf-title .cls-version {
  background: var(--tier-curated-solid);
  color: var(--tier-curated);
  border-color: color-mix(in srgb, var(--tier-curated) 45%, transparent);
}

.perf-title .cls-live,
.perf-title .cls-karaoke {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}

.perf-sub {
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.22;
  min-width: 0;
}

.perf-sub > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.perf-sub .sub-orig {
  color: var(--ink-alt);
}

.perf-meta {
  display: flex;
  align-items: baseline;
  gap: 9px;
  white-space: nowrap;
}

.perf-meta .dur {
  font-family: var(--display);
  font-weight: 800;
  font-size: 17px;
  color: var(--ink);
}

.perf-meta .age {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-3);
}

.perf-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.perf-actions .more {
  position: relative;
  display: inline-block;
}

.perf-actions .more-pop > a {
  display: flex;
}

.perf-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
}

.perf-chips > .tag,
.perf-chips > .prop {
  padding: 0 8px;
  line-height: 1.35;
}

.browse-more {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

.pager {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px 12px;
  margin: 10px 0;
}

.pager-start {
  justify-self: start;
}

.pager-page {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pager-pos {
  min-width: 3.75em;
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.pager-prev .vi-swap {
  transform: scaleX(-1);
}

.pager-prev.is-disabled,
.pager-next.is-disabled {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

.pager-actions {
  justify-self: end;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

@media (max-width: 560px) {
  .pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
  }

  .pager-page {
    order: -1;
    flex-basis: 100%;
    justify-content: center;
  }

  .pager-start {
    order: 1;
  }

  .pager-actions {
    order: 2;
    margin-left: auto;
  }
}

@media (max-width: 820px) {
  .perf {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 6px 12px;
  }

  .perf-thumb {
    width: calc(var(--perf-body-h) * 4 / 3);
  }

  .perf-side {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    min-height: 0;
  }

  .perf-actions {
    justify-content: flex-end;
  }

  /* The provenance block's nowrap children ellipsize only when the block fills the track; a start-aligned
     block shrinks to its content and overflows the viewport on a long composed credit line (38 D38.22). */
  .perf-sub {
    align-self: stretch;
  }
}

.tagspanel {
  min-width: 0;
}

.tagspanel .page-head {
  flex-wrap: wrap;
}

.tagspanel .page-head > div {
  min-width: 0;
}

.tagspanel .page-head h1,
.tagspanel .page-head .dim {
  overflow-wrap: anywhere;
}

.wallctl {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 14px 0 4px;
}

.segctl {
  display: inline-flex;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: var(--control);
}

.segctl .btn {
  border: 0;
  border-radius: 0;
}

.segctl .btn:not(.primary) {
  background: transparent;
}

.segctl .btn:not(.primary):hover {
  background: var(--hover);
  text-decoration: none;
}

.segctl .btn:first-child {
  border-radius: 999px 0 0 999px;
}

.segctl .btn:last-child {
  border-radius: 0 999px 999px 0;
}

.tagfilter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.tagfilter label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-3);
}

.tagfilter input[type="search"] {
  flex: 1 1 180px;
  min-width: 0;
  min-height: 24px;
  padding: 7px 12px;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  background: var(--field);
  color: var(--ink);
}

.tagfilter input[type="search"]:focus-visible {
  border-color: var(--accent);
}

.tagwall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 6px;
}

.tagwall .empty {
  grid-column: 1 / -1;
}

.tagbig {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  background: var(--surface);
}

.tagbig:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.tagbig b {
  font-family: var(--display);
  font-size: 15px;
  color: var(--link);
  overflow-wrap: anywhere;
}

.tagbig .c {
  font-family: var(--display);
  font-weight: 800;
  font-size: 19px;
}

.tagbig span {
  font-size: 11px;
  color: var(--ink-3);
}

.tagspanel .row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

@media (max-width: 520px) {
  .tagwall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tagfilter input[type="search"] {
    flex-basis: 100%;
  }
}

.crumbs {
  margin-bottom: 8px;
}

.discography .crumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

.disc-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.disc-pack {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  padding: 0 14px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
  overflow-wrap: anywhere;
}

.disc-group {
  min-width: 0;
  max-width: 100%;
}

.disc-head {
  display: flex;
  align-items: center;
  gap: 6px 10px;
  min-height: 44px;
  cursor: pointer;
  list-style: none;
}

.disc-head::-webkit-details-marker {
  display: none;
}

.disc-head::marker {
  content: "";
}

.disc-head::before {
  content: "▸";
  color: var(--accent);
  font-weight: 900;
}

.disc-group[open] .disc-head::before {
  content: "▾";
}

.disc-group:not([open]) ~ .disc-body {
  display: none;
}

.disc-title {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  font-family: var(--display);
  font-weight: 800;
  font-size: 16px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.disc-kind {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--chip-text);
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.disc-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-left: auto;
}

.disc-with {
  color: var(--ink-3);
  font-size: 13px;
}

.disc-date,
.disc-count {
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 600;
}

.disc-body {
  display: grid;
  flex: 1 1 100%;
  gap: 8px;
  padding: 4px 0 12px;
}

.disc-with a {
  color: var(--link);
  text-decoration: underline;
}

.btn.sm.disc-release {
  color: var(--link);
  font-size: 12px;
  font-weight: 600;
  align-self: center;
}

.disc-release .vi {
  width: 1.1em;
  height: 1.1em;
  vertical-align: middle;
}

.disc-rows {
  display: grid;
  gap: 7px;
}

.disc-track {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 7px;
  align-items: start;
}

.disc-position {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  min-height: 26px;
  padding: 0 4px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--chip-bg);
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.disc-rows .perf,
.disc-loose .perf {
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .disc-head {
    align-items: flex-start;
  }

  .disc-meta {
    margin-left: 0;
  }
}

h2.sec {
  font-size: 17px;
  margin: 26px 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  scroll-margin-top: 80px;
}

details.entity-sec {
  margin: 0;
}

details.entity-sec > summary.sec-summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 26px 0 10px;
  scroll-margin-top: 80px;
}

details.entity-sec > summary.sec-summary::-webkit-details-marker {
  display: none;
}

details.entity-sec > summary.sec-summary .sec-toggle {
  display: inline-flex;
  color: var(--ink-3);
  transform: rotate(-90deg);
  transition: transform 0.15s;
}

details.entity-sec[open] > summary.sec-summary .sec-toggle {
  transform: rotate(0deg);
}

details.entity-sec > summary.sec-summary h2.sec {
  margin: 0;
  scroll-margin-top: 0;
}

.entity-head {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  overflow-wrap: anywhere;
}

.entity-head > div {
  flex: 1;
  min-width: 0;
}

.entity-head .avatar {
  width: 72px;
  height: 72px;
  font-size: 26px;
}

.entity-head .avatar.avatar-empty {
  border: 1.5px dashed var(--line-2);
  background: var(--surface);
  color: var(--ink-3);
}

.entity-head .avatar.avatar-empty .vi {
  width: 30px;
  height: 30px;
}

/* A channel-less unit shows up to five member avatars in the single identity slot: two across, three as a
   triangle, four as a square and five as a square plus the middle one. */
.entity-head .member-collage {
  width: 72px;
  height: 72px;
  flex: none;
  display: grid;
  gap: 3px;
  place-content: center;
  grid-template-columns: repeat(2, 32px);
  grid-template-rows: repeat(2, 32px);
}

.entity-head .member-collage-avatar {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--surface);
}

.entity-head .member-collage.count-1 {
  grid-template-columns: 64px;
  grid-template-rows: 64px;
}

.entity-head .member-collage.count-1 .member-collage-avatar {
  width: 64px;
  height: 64px;
}

.entity-head .member-collage.count-2 {
  grid-template-columns: repeat(2, 32px);
  grid-template-rows: 32px;
}

.entity-head .member-collage.count-3 {
  grid-template-columns: repeat(2, 32px);
  grid-template-rows: repeat(2, 32px);
}

.entity-head .member-collage.count-3 .member-collage-avatar:first-child {
  grid-column: 1 / span 2;
  justify-self: center;
}

.entity-head .member-collage.count-5 {
  position: relative;
}

.entity-head .member-collage.count-5 .member-collage-avatar:nth-child(5) {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-color: var(--surface);
  box-shadow: 0 0 0 2px var(--surface);
}

.entity-head .entity-thumb {
  width: 168px;
  height: 95px;
  object-fit: cover;
  flex: none;
  border: 1.5px solid var(--line-2);
  border-radius: 12px;
  background: var(--surface);
}

/* The performance header's missing provider image (D43.19): a thumbnail-shaped empty slot with the
   no-thumbnail mark, instead of the generated initial tile. It keeps the provider image's footprint. */
.entity-head .entity-thumb-empty {
  width: 168px;
  height: 95px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1.5px dashed var(--line-2);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink-3);
}

.entity-head .entity-thumb-empty .vi {
  width: 46px;
  height: 46px;
}

.entity-head .title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.entity-head .title-main {
  display: block;
  min-width: 0;
  flex: 1 1 auto;
}

.entity-head .title-main > h1 {
  display: inline;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.entity-head .title-main > .cls {
  margin-left: 8px;
  vertical-align: middle;
}

.entity-head .head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  margin-left: auto;
}

.entity-head .title-row .help-btn {
  margin-left: 0;
}

.entity-head .cls {
  display: inline-block;
  padding: 0.06em 0.42em;
  border-radius: 999px;
  border: 0.06em solid transparent;
  font-family: var(--sans);
  font-size: 1.6875rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1.08;
  white-space: nowrap;
}

.entity-head .cls-original {
  background: var(--tier-verified-solid);
  color: var(--tier-verified);
  border-color: color-mix(in srgb, var(--tier-verified) 45%, transparent);
}

.entity-head .cls-cover,
.entity-head .cls-parody,
.entity-head .cls-remix,
.entity-head .cls-sample,
.entity-head .cls-remaster,
.entity-head .cls-re-recording,
.entity-head .cls-instrumental,
.entity-head .cls-version,
.entity-head .cls-single,
.entity-head .cls-ep,
.entity-head .cls-album,
.entity-head .cls-other {
  background: var(--tier-curated-solid);
  color: var(--tier-curated);
  border-color: color-mix(in srgb, var(--tier-curated) 45%, transparent);
}

.entity-head .cls-live,
.entity-head .cls-karaoke {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}

.entity-head .cls-vsinger {
  background: var(--tier-verified-solid);
  color: var(--tier-verified);
  border-color: color-mix(in srgb, var(--tier-verified) 45%, transparent);
}

.entity-head .cls-not-vsinger {
  background: var(--surface);
  color: var(--ink-3);
  border-color: var(--line-2);
}

.entity-head .cls-undetermined {
  background: var(--surface);
  color: var(--ink-2);
  border-color: var(--line-2);
  border-style: dashed;
}

.entity-channel {
  margin: 4px 0 0;
  color: var(--ink-alt);
  font-weight: 600;
  font-size: 13.5px;
  overflow-wrap: anywhere;
}

.entity-channel a {
  color: inherit;
}

.entity-channel a:hover {
  color: var(--accent);
}

.entity-head .hl {
  margin-inline-end: 0.5em;
}

.entity-statusrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 0;
}

.status-chip {
  display: inline-block;
  padding: 1px 9px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
  white-space: nowrap;
}

.status-active {
  background: #d3ead9;
  color: #1b7431;
  border-color: color-mix(in srgb, #1b7431 45%, transparent);
}

.status-hiatus {
  background: #eae5d3;
  color: #74621b;
  border-color: color-mix(in srgb, #74621b 45%, transparent);
}

.status-graduated {
  background: #eadcd3;
  color: #955023;
  border-color: color-mix(in srgb, #955023 45%, transparent);
}

.status-terminated {
  background: #ead4d3;
  color: #952a23;
  border-color: color-mix(in srgb, #952a23 45%, transparent);
}

.status-other {
  background: #dedede;
  color: #5c5c5c;
  border-color: color-mix(in srgb, #5c5c5c 45%, transparent);
}

.entity-status-date,
.entity-affgroup {
  margin-inline-start: 0.5em;
}

.entity-affgroup {
  display: flex;
  min-width: 0;
}

.entity-affgroup .entity-sep {
  flex: none;
}

.entity-affgroup .entity-affiliation {
  margin-inline-start: 0.5em;
  min-width: 0;
}

.entity-orig {
  margin-top: 2px;
  color: var(--ink-3);
  font-weight: 600;
  font-size: 13.5px;
  overflow-wrap: anywhere;
}

.entity-aliases {
  margin: 4px 0 0;
  color: var(--ink-alt);
  font-weight: 600;
  font-size: 13.5px;
  overflow-wrap: anywhere;
}

.entity-artists {
  margin-top: 5px;
  color: var(--ink-alt);
  font-weight: 600;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.entity-artists a {
  color: inherit;
  text-decoration: none;
}

.entity-artists a:hover {
  color: var(--link);
  text-decoration: underline;
}

.entity-head .share {
  position: relative;
  flex: none;
}

.entity-head .share > summary {
  list-style: none;
  cursor: pointer;
}

.entity-head .share > summary::-webkit-details-marker {
  display: none;
}

.entity-head .share-pop {
  position: absolute;
  z-index: 30;
  right: 0;
  top: calc(100% + 6px);
  width: min(340px, 78vw);
  padding: 10px;
  border: 1.5px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.entity-head .share-pop .fshareurl {
  width: 100%;
  margin-top: 4px;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  background: var(--field);
  color: var(--ink);
  font-size: 12px;
  padding: 7px 9px;
}

.entity-head .native {
  color: var(--ink-3);
  font-weight: 500;
}

.entity-head .row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 6px;
  min-width: 0;
}

.counts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.count-box {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
}

a.count-box:hover {
  border-color: var(--accent);
  background: var(--hover);
}

.count-box .count-num {
  flex: none;
  color: var(--accent);
  font-family: var(--display);
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

.count-box .count-label {
  flex: 1;
  min-width: 0;
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.3;
}

.count-box .count-go {
  flex: none;
  display: inline-flex;
  color: var(--accent);
}

.credit-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13.5px;
  padding: 4px 0;
}

.credit-line .role {
  color: var(--ink-3);
  min-width: 120px;
}

.credit-line .history-evidence-box {
  align-self: center;
}

.credit-line .credit-markers {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  font-size: 12px;
  color: var(--ink-3);
}

.tracklist {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.trackrow {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.trackrow .no {
  font-family: var(--display);
  font-weight: 800;
  color: var(--ink-3);
  text-align: right;
}

.trackrow .perf {
  margin-bottom: 0;
}

.trackrow-missing {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 9px 15px;
  border: 1.5px solid var(--line-2);
  border-left: 5px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.linkrows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 6px 10px;
}

.linkrow {
  display: flex;
  flex-wrap: wrap;
  gap: 0 6px;
  align-items: baseline;
  padding: 10px 12px;
  border: 1.5px solid var(--line-2);
  border-radius: 12px;
  background: var(--surface);
  overflow-wrap: anywhere;
  color: inherit;
  text-decoration: none;
}

.linkrow b {
  font-weight: 800;
}

.linkrow:hover {
  background: var(--hover);
  border-color: var(--accent);
  color: inherit;
  text-decoration: none;
}

.linkrow:hover b {
  text-decoration: underline;
}

.channelrows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 6px 10px;
}

.channelrow {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 9px 12px;
  border: 1.5px solid var(--line-2);
  border-radius: 12px;
  background: var(--surface);
}

.channel-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  background: var(--sunken);
}

.channel-avatar-empty {
  display: grid;
  place-items: center;
  color: var(--ink-3);
}

.channel-avatar-empty .vi {
  width: 22px;
  height: 22px;
}

.channel-body {
  display: flex;
  flex-wrap: wrap;
  gap: 0 8px;
  align-items: baseline;
  min-width: 0;
}

.channel-name {
  font-weight: 800;
  color: inherit;
}

.channel-name:hover {
  color: var(--link);
}

.channel-handle,
.channel-meta {
  font-size: 13px;
}

.channel-meta a {
  color: var(--link);
}

.socialrow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 2px;
}

.btn.social-btn {
  max-width: 100%;
  overflow-wrap: anywhere;
  border-left-width: 4px;
}

/* A skin may set the whole button border (arcade sets the small button's border-width), so restate the stripe
   width at skin specificity; the later source order keeps it after the skin rules. */
[data-skin] .btn.social-btn {
  border-left-width: 4px;
}

.social-handle {
  font-weight: 400;
}

.history {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 6px 10px;
  list-style: none;
}

.history-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  gap: 4px 14px;
  align-items: baseline;
  padding: 9px 12px;
  border: 1.5px solid var(--line-2);
  border-left: 5px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  overflow-wrap: anywhere;
}

.history-context {
  border-left-color: var(--border);
  color: var(--ink-3);
}

.history-date {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.history-body {
  display: flex;
  flex-wrap: wrap;
  gap: 0 6px;
  align-items: baseline;
  min-width: 0;
}

.history-subject,
.history-target {
  font-weight: 700;
  color: inherit;
}

.history-subject:hover,
.history-target:hover {
  color: var(--link);
}

.history-markers {
  display: flex;
  flex-wrap: wrap;
  gap: 0 8px;
  align-items: center;
  font-size: 12px;
  color: var(--ink-3);
}

.history-evidence-box {
  display: inline-block;
  min-width: 0;
}

.history-evidence-box[open] {
  display: contents;
}

.history-evidence-box[open] > .history-evidence {
  flex: 1 1 100%;
}

.history-evidence-show {
  display: inline-flex;
  align-items: center;
  min-width: 24px;
  min-height: 24px;
  color: var(--link);
  cursor: pointer;
  list-style: none;
}

.history-evidence-show::-webkit-details-marker {
  display: none;
}

.history-evidence-show .vi {
  width: 16px;
  height: 16px;
}

.history-evidence-box[open] > .history-evidence-show {
  color: var(--ink);
}

.history-evidence {
  min-width: 0;
  font-size: 13px;
  color: var(--ink-2);
}

.history-evidence-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0 0 0 18px;
}

.history-evidence-list a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

.history-evidence-note {
  color: var(--ink-3);
}

.history-evidence-none {
  margin: 0;
  color: var(--ink-3);
}

@media (max-width: 520px) {
  .history-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .history-date {
    white-space: normal;
  }
}

.mediacarriers {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.media-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 14px;
  border: 1.5px solid var(--line-2);
  border-radius: 11px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
}

.media-row:hover {
  background: var(--hover);
  border-color: var(--accent);
}

.carrier-thumb {
  width: 84px;
  height: 47px;
  object-fit: cover;
  flex: none;
  border: 1px solid var(--line-2);
  border-radius: 7px;
  background: var(--surface);
}

.carrier-icon {
  width: 84px;
  height: 47px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 7px;
  background: var(--sunken);
  color: var(--ink-3);
}

.carrier-icon .vi {
  width: 32px;
  height: 32px;
}

.carrier-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.carrier-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.25;
}

.carrier-detail {
  color: var(--ink-3);
  font-weight: 600;
}

.carrier-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 3px;
}

.carrier-chips .chip {
  font-size: 11px;
  padding: 1px 8px;
}

.carrier-chips .chip-caution {
  background: var(--tier-review-solid);
  color: var(--tier-review);
  border-color: color-mix(in srgb, var(--tier-review) 45%, transparent);
}

.carrier-chips .chip-danger {
  background: var(--tier-untrusted-solid);
  color: var(--tier-untrusted);
  border-color: color-mix(in srgb, var(--tier-untrusted) 45%, transparent);
}

.carrier-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  flex: none;
}

.carrier-side .tier {
  font-size: 11px;
  padding: 1px 8px;
}

.media-row.has-tier {
  border-left: 5px solid var(--border);
}

.media-row.q-verified {
  border-left-color: var(--tier-verified);
}

.media-row.q-curated {
  border-left-color: var(--tier-curated);
}

.media-row.q-unverified {
  border-left-color: var(--tier-unverified);
}

.media-row.q-untrusted {
  border-left-color: var(--tier-untrusted);
}

.carrier-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex: none;
  white-space: nowrap;
  color: var(--ink-3);
  font-size: 12.5px;
}

.carrier-meta .plat {
  font-weight: 700;
  color: var(--ink-2);
}

.carrier-meta .dur {
  font-family: var(--display);
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
}

.carrier-meta .ts {
  font-family: var(--display);
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
}

.media-row.lost .carrier-thumb,
.media-row.lost .carrier-icon {
  opacity: 0.58;
}

.media-row.lost .carrier-thumb {
  filter: grayscale(1);
}

.media-row.lost .carrier-title {
  color: var(--ink-3);
}

.media-row.lost:hover {
  background: var(--surface);
  border-color: var(--line-2);
}

@media (max-width: 520px) {
  /* A long stream/release title beside a 104 px image wraps one word per line; stack the image above
     the identity block so the title keeps the full width (D43.56 release covers made this visible). */
  .entity-head.with-thumb {
    flex-wrap: wrap;
  }

  .entity-head.with-thumb > div {
    flex-basis: 100%;
  }

  .entity-head .entity-thumb {
    width: 104px;
    height: 59px;
  }

  .entity-head .entity-thumb-empty {
    width: 104px;
    height: 59px;
  }

  .entity-head .entity-thumb-empty .vi {
    width: 30px;
    height: 30px;
  }

  .carrier-thumb,
  .carrier-icon {
    width: 56px;
    height: 32px;
  }

  .carrier-icon .vi {
    width: 24px;
    height: 24px;
  }

  .carrier-meta {
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
  }

  .carrier-side {
    margin-left: auto;
  }
}

.entity-head,
.aside,
.trackrow,
.media-row {
  overflow-wrap: anywhere;
}

.aside summary,
.card summary {
  min-height: 24px;
}

@media (max-width: 820px) {
  .counts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .trackrow {
    grid-template-columns: 34px minmax(0, 1fr);
    row-gap: 6px;
  }

  .trackrow > .btn {
    grid-column: 2;
    justify-self: start;
  }

  .media-row {
    flex-wrap: wrap;
  }
}

.fbuild {
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  margin: 14px 0 6px;
}

.fbuild > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 800;
  list-style: none;
  min-height: 24px;
}

.fbuild > summary::-webkit-details-marker {
  display: none;
}

.fbuild > summary::before {
  content: "▾";
  color: var(--accent);
}

.fbuild:not([open]) > summary::before {
  content: "▸";
}

.fbuild[open] > summary {
  border-bottom: 1.5px solid var(--line-2);
}

.fbuild > summary .badge {
  background: var(--accent-solid);
  color: var(--chip-text);
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 11.5px;
  font-weight: 900;
}

.fbuild > summary .hint {
  font-weight: 600;
  color: var(--ink-3);
  font-size: 12px;
}

.fbuild-body {
  padding: 10px 14px 12px;
}

.fmatch {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 10px;
  border-bottom: 1.5px solid var(--line-2);
  margin-bottom: 6px;
}

.fmatch form {
  display: flex;
  align-items: center;
}

.flabel {
  font-size: 11.5px;
  font-weight: 900;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.fmatch .fmhint {
  font-size: 12px;
}

.mseg {
  display: inline-flex;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.mseg button {
  border: 0;
  background: var(--sunken);
  color: var(--ink-alt);
  font: inherit;
  font-size: 12.5px;
  font-weight: 800;
  padding: 7px 13px;
  min-height: 24px;
  cursor: pointer;
}

.mseg button + button {
  border-left: 1.5px solid var(--border);
}

.mseg button.on {
  background: var(--accent-solid);
  color: var(--chip-text);
}

.frow {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 34px;
  gap: 10px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1.5px solid var(--line-2);
}

.frow:last-of-type {
  border-bottom: 0;
}

.fkind {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink-alt);
  padding-top: 9px;
  min-height: 24px;
}

.fvalues {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.fvalue {
  position: relative;
  min-width: 0;
}

.fvalue .chipsin {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 6px 8px;
  background: var(--field);
  min-height: 40px;
}

.fvalue .chipsin:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.chipv {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  border: 1.5px solid var(--border);
  background: var(--accent-solid);
  color: var(--chip-text);
  border-radius: 999px;
  padding: 3px 6px 3px 9px;
  white-space: nowrap;
}

.chipv.excl {
  background: var(--sunken);
  color: var(--ink-alt);
  border-style: dashed;
}

.chipv .chipimg {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  margin-left: -5px;
  border: 1px solid color-mix(in srgb, currentColor 20%, transparent);
}

.tfchecks {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.vopts {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.vopt {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: var(--field);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}

.vopt input {
  margin: 0;
  accent-color: currentColor;
}

.vopt.vstudio {
  color: var(--tier-verified);
}

.vopt.vlive {
  color: var(--accent);
}

.vopt.vkaraoke {
  color: var(--tier-curated);
}

.vopt.on {
  border-color: currentColor;
  background: color-mix(in srgb, currentColor 16%, var(--field));
}

.search-quickfilters .scope-filters {
  flex: 1;
}

.search-quickfilters .shufflebtn {
  margin-left: auto;
}

.search-quickfilters .shufflebtn.on {
  border-color: var(--accent);
  color: var(--accent);
}

.chipv .chipx {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 24px;
  color: inherit;
  font-weight: 900;
}

.fapply {
  display: flex;
  flex: 1;
  gap: 6px;
  align-items: center;
  min-width: 0;
  flex-wrap: wrap;
}

.fchecks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.fvalue input.fsearch,
.fvalue select.fsearch {
  flex: 1;
  min-width: 130px;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  background: var(--field);
  color: var(--ink);
  font-size: 13.5px;
  padding: 7px 9px;
  min-height: 24px;
}

.fvalue select.fsearch[multiple] {
  min-height: 96px;
}

.fhint {
  font-size: 11.5px;
  color: var(--ink-3);
}

.fdrop {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: calc(100% + 5px);
  border: 1.5px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 6px;
  max-height: 280px;
  overflow: auto;
}

.fdrop:empty {
  display: none;
}

.fvals {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fvals .fval {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 7px 8px;
  border-radius: 8px;
  font-size: 13px;
  min-height: 24px;
}

.fvals .fval:hover {
  background: var(--hover);
}

.fvals .meta {
  margin-left: auto;
  color: var(--ink-3);
  font-size: 11.5px;
}

.frow .fremove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 24px;
  color: var(--ink-3);
  font-size: 17px;
  font-weight: 700;
  border-radius: 8px;
}

.frow .fremove:hover {
  color: var(--tier-untrusted);
  background: var(--hover);
}

.fadd {
  margin-top: 10px;
}

.fadd form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.fsummary {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--ink-alt);
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 10px 10px 0;
  padding: 9px 12px;
}

.fsummary p {
  margin: 0;
}

.fsummary p + p {
  margin-top: 5px;
}

.fshare {
  margin-top: 10px;
  font-size: 12.5px;
}

.fshare > summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--accent);
  min-height: 24px;
}

.fshare .fshareurl {
  width: 100%;
  margin-top: 4px;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  background: var(--field);
  color: var(--ink);
  font-size: 12px;
  padding: 7px 9px;
}

.fsublabel {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--ink-3);
  margin-bottom: 4px;
}

@media (max-width: 820px) {
  .frow {
    grid-template-columns: minmax(0, 1fr) 34px;
    gap: 6px;
  }

  .fkind {
    grid-column: 1 / -1;
    padding-top: 0;
  }
}

.portal {
  max-width: none;
  margin: 0;
}

.front-hero,
.searchpanel,
.front-grid {
  max-width: 1080px;
  margin-inline: auto;
}

.front-hero {
  text-align: center;
  padding: 4px 10px 16px;
}

.front-hero h1 {
  margin: 0;
  font-size: clamp(1.85rem, 3.2vw, 2.15rem);
  letter-spacing: -0.5px;
  text-shadow:
    0 0 10px color-mix(in srgb, currentColor 22%, transparent),
    0 0 24px color-mix(in srgb, currentColor 10%, transparent);
}

.front-hero .hero-accent,
.front-hero .hero-accent-2,
.front-hero .hero-accent-3 {
  text-shadow:
    0 0 8px color-mix(in srgb, currentColor 45%, transparent),
    0 0 22px color-mix(in srgb, currentColor 18%, transparent);
}

.front-hero .hero-accent {
  color: var(--accent);
}

.front-hero .hero-accent-2 {
  color: var(--accent-2);
}

.front-hero .hero-accent-3 {
  color: var(--accent-3);
}

.front-hero-sub {
  max-width: 72ch;
  margin: 10px auto 0;
  color: var(--ink-alt);
  font-size: 15.5px;
  line-height: 1.55;
}

.searchpanel {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 13px;
  box-shadow: var(--shadow);
  padding: 16px 18px;
  margin: 0 0 22px;
  margin-inline: auto;
}

.searchpanel .searchwrap {
  max-width: none;
}

.searchpanel .searchwrap input {
  font-size: 16px;
  padding: 14px 16px;
}

.searchpanel .searchwrap input::placeholder {
  color: var(--accent);
  font-weight: 600;
  opacity: 1;
}

.front-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.front-stats {
  max-width: 1080px;
  margin: 0 auto 18px;
}

.front-stats ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink-alt);
  font-size: 14.5px;
}

.front-stats strong {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.screen-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 13px;
  box-shadow: var(--shadow);
  padding: 16px 16px 15px;
}

.screen-card:hover,
.screen-card:focus-within {
  border-color: var(--accent);
}

.screen-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.screen-card .ic {
  display: grid;
  place-items: center;
  flex: none;
  width: auto;
  height: auto;
  color: var(--accent);
  background: none;
}

.screen-card .ic .vi {
  width: 30px;
  height: 30px;
}

.screen-card h2 {
  min-width: 0;
  margin: 0;
  font-size: 20px;
  line-height: 1.15;
}

.screen-card h2 a {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.screen-card .desc {
  flex: none;
  color: var(--ink-3);
  font-size: 12.8px;
  line-height: 1.4;
}

.cardsearch {
  flex: none;
  max-width: none;
  margin-top: 0;
}

.cardsearch input {
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 9px;
}

.cardsearch input::placeholder {
  color: var(--accent);
  font-weight: 600;
  opacity: 1;
}

/* The anonymous portal's carousels: one continuous, slow horizontal drift with a duplicated
   group for the seamless loop. The duplicate is inert and removed from the accessibility tree;
   the whole track pauses on hover or keyboard focus, and reduced motion turns the animation off
   and leaves a regular horizontal scroller in its place. */
.carousel-block {
  margin: 20px 0 6px;
}

/* The portal's carousels are the one full-bleed band: the left rail is their left limit and the
   viewport edge is their right limit, while the hero, search and door grid keep their 1080px
   reading measure. The visible title sits above the neon band, outside the carousel itself. */
.portal > .carousel-block {
  margin-inline: -32px;
}

.carousel-block--lead {
  margin: 0 0 4px;
}

/* Anchor the leading artists strip to the top of the main content area, directly under the topbar. */
.main > .portal:first-child > .carousel-block:first-child {
  margin-top: calc(-1 * var(--main-pad-top));
}

.carousel-block--titled {
  margin-top: 26px;
}

.carousel {
  position: relative;
  isolation: isolate;
  box-shadow: var(--shadow);
}

/* A neon gradient rule on the top and bottom edges only, with the bloom falling both outward
   over the page and inward across the first and last few pixels of the carousel. */
.carousel::before,
.carousel::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--accent) 55%, transparent) 0,
    var(--accent) 12%,
    var(--accent) 88%,
    color-mix(in srgb, var(--accent) 55%, transparent) 100%);
  box-shadow:
    0 0 4px color-mix(in srgb, var(--accent) 80%, transparent),
    0 0 12px color-mix(in srgb, var(--accent) 48%, transparent),
    0 0 26px color-mix(in srgb, var(--accent) 26%, transparent);
  opacity: 0.25;
  pointer-events: none;
}

.carousel::before {
  top: 0;
}

.carousel::after {
  bottom: 0;
}

.carousel-heading {
  margin: 0 0 10px;
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.carousel-viewport {
  overflow: hidden;
  padding-block: 6px;
  box-shadow:
    inset 0 14px 24px -20px var(--accent),
    inset 0 -14px 24px -20px var(--accent);
}

.carousel-track {
  display: flex;
  width: max-content;
  animation: carousel-drift var(--carousel-duration, 150s) linear infinite;
  animation-delay: var(--carousel-delay, 0s);
  will-change: transform;
}

.carousel:hover .carousel-track,
.carousel:focus-within .carousel-track {
  animation-play-state: paused;
}

.carousel-group {
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 0 12px 0 0;
  list-style: none;
}

.car-item {
  flex: 0 0 auto;
  width: clamp(240px, 30vw, 328px);
}

.car-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 12px 8px 10px;
  border: 1.5px solid var(--line-2);
  border-left: 4px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
}

.car-link:hover {
  background: var(--hover);
  text-decoration: none;
}

.car-link.q-verified {
  border-left-color: var(--tier-verified);
}

.car-link.q-curated {
  border-left-color: var(--tier-curated);
}

.car-link.q-needs_review {
  border-left-color: var(--tier-review);
}

.car-link.q-automated_metadata,
.car-link.q-automated_submission {
  border-left-color: var(--tier-auto);
}

.car-link.q-unverified {
  border-left-color: var(--tier-unverified);
}

.car-link.q-untrusted {
  border-left-color: var(--tier-untrusted);
}

.car-thumb {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--sunken);
  color: var(--ink-3);
}

.car-thumb.wide {
  width: 56px;
  height: 32px;
  border-radius: 7px;
}

.car-thumb.none {
  border-style: dashed;
}

.car-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.car-thumb .vi {
  width: 16px;
  height: 16px;
}

.car-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.car-name {
  display: block;
  overflow: hidden;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.car-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--ink-3);
  font-size: 11.5px;
  font-weight: 600;
}

.car-by {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.car-item .cls {
  display: inline-block;
  flex: none;
  padding: 1px 8px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.car-item .cls-original {
  background: var(--tier-verified-solid);
  color: var(--tier-verified);
  border-color: color-mix(in srgb, var(--tier-verified) 45%, transparent);
}

.car-item .cls-cover,
.car-item .cls-parody,
.car-item .cls-remix,
.car-item .cls-sample,
.car-item .cls-remaster,
.car-item .cls-re-recording,
.car-item .cls-instrumental,
.car-item .cls-version {
  background: var(--tier-curated-solid);
  color: var(--tier-curated);
  border-color: color-mix(in srgb, var(--tier-curated) 45%, transparent);
}

.car-item .cls-live,
.car-item .cls-karaoke {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}

@keyframes carousel-drift {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.carousel.is-dragging .carousel-track {
  animation-play-state: paused;
}

.carousel.is-enhanced .carousel-viewport {
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.carousel.is-dragging .carousel-viewport {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  background: color-mix(in srgb, var(--control) 90%, transparent);
}

.carousel-arrow[hidden] {
  display: none;
}

.carousel-arrow--prev {
  left: 20px;
}

.carousel-arrow--next {
  right: 20px;
}

/* Edge fades: once enhanced, each end of the strip fades the cards into the page background so the arrows sit on
   calm ground and never hide a thumbnail. The fade is the arrow inset (20px) + the arrow (40px; 44px on touch) + a
   24px margin = 88px; it paints above the cards, below the neon rules (z 1) and the arrows (z 2), and lets every
   pointer event through. The left arrow's 20px inset also keeps it clear of the shell's rail toggle, which reaches
   12px into the strip. */
.carousel {
  --carousel-fade: 88px;
}

.carousel-fade {
  display: none;
}

.carousel.is-enhanced .carousel-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 0;
  display: block;
  width: var(--carousel-fade);
  pointer-events: none;
}

.carousel.is-enhanced .carousel-fade {
  background-color: var(--bg);
  background-image: var(--bg-grad, none);
  background-attachment: fixed;
}

.carousel.is-enhanced .carousel-fade--start {
  left: 0;
  mask-image: linear-gradient(90deg, #000 0, #000 35%, transparent 100%);
}

.carousel.is-enhanced .carousel-fade--end {
  right: 0;
  mask-image: linear-gradient(270deg, #000 0, #000 35%, transparent 100%);
}

.carousel-arrow .vi {
  width: 20px;
  height: 20px;
}

.carousel-arrow--prev .vi {
  transform: rotate(90deg);
}

.carousel-arrow--next .vi {
  transform: rotate(-90deg);
}

@media (pointer: coarse) {
  .carousel-arrow {
    width: 44px;
    height: 44px;
    margin-top: -22px;
  }
}

@media (max-width: 520px) and (pointer: coarse) {
  .carousel {
    --carousel-fade: 0px;
  }

  .carousel-arrow,
  .carousel.is-enhanced .carousel-fade {
    display: none;
  }
}

/* Reduced motion — the OS setting or the in-app Motion switch (html.a11y-motion) — replaces the drift with a
   plain horizontal scroller that snaps to the cards. Once carousel.js has enhanced it, the arrows, the drag and
   the keyboard cover scrolling, so the OS scrollbar is hidden; without the script a thin themed one stays. */
@media (prefers-reduced-motion: reduce) {
  .carousel-track {
    animation: none;
  }

  .carousel-viewport {
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
  }

  .carousel.is-enhanced .carousel-viewport {
    scrollbar-width: none;
    touch-action: auto;
    padding-inline: var(--carousel-fade);
    scroll-padding-inline: var(--carousel-fade);
  }

  .carousel.is-enhanced .carousel-viewport::-webkit-scrollbar {
    display: none;
  }

  .car-item {
    scroll-snap-align: start;
  }

  .carousel-group[aria-hidden="true"] {
    display: none;
  }
}

html.a11y-motion .carousel-track {
  animation: none;
}

html.a11y-motion .carousel-viewport {
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}

html.a11y-motion .carousel.is-enhanced .carousel-viewport {
  scrollbar-width: none;
  touch-action: auto;
  padding-inline: var(--carousel-fade);
  scroll-padding-inline: var(--carousel-fade);
}

html.a11y-motion .carousel.is-enhanced .carousel-viewport::-webkit-scrollbar {
  display: none;
}

html.a11y-motion .car-item {
  scroll-snap-align: start;
}

html.a11y-motion .carousel-group[aria-hidden="true"] {
  display: none;
}

@media (min-width: 821px) {
  .main:has(> .portal:last-child) {
    padding-block-end: 26px;
  }

  .portal:last-child > .carousel-block:last-child {
    margin-bottom: 0;
  }
}

@media (max-width: 820px) {
  .front-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal > .carousel-block {
    margin-inline: -16px;
  }

  .car-item {
    width: clamp(220px, 44vw, 300px);
  }
}

@media (max-width: 520px) {
  .front-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .front-hero h1 {
    font-size: 25px;
  }

  .car-item {
    width: min(82vw, 320px);
  }
}

.userhome {
  max-width: 1080px;
  margin: 0 auto;
}

.uh-hello {
  margin: 4px 0 18px;
}

.uh-hello h1 {
  margin: 0;
  font-size: 27px;
  letter-spacing: -0.4px;
}

.uh-block {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 13px;
  box-shadow: var(--shadow);
  padding: 14px;
}

.uh-block h2 {
  margin: 0;
  font-size: 15px;
}

.uh-lead {
  margin-bottom: 16px;
}

.uh-lead-head {
  display: flex;
  align-items: baseline;
  gap: 9px;
  flex-wrap: wrap;
}

.uh-lead-head h2 {
  font-size: 16px;
}

.uh-lead-head .morelink {
  margin-left: auto;
}

.uh-oshifeed {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.uh-oshifeed > * {
  min-width: 0;
}

.uh-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.uh-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 7px 2px;
  border-bottom: 1.5px solid var(--border);
}

.uh-row:last-child {
  border-bottom: 0;
}

.uh-title {
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
}

a.uh-title {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  text-decoration: none;
}

a.uh-title:hover {
  text-decoration: underline;
}

.uh-meta {
  color: var(--ink-3);
  font-size: 11.5px;
}

.uh-empty {
  margin: 0;
  color: var(--ink-3);
  font-size: 12.8px;
  line-height: 1.4;
}

.morelink {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-top: auto;
  font-size: 12.5px;
  font-weight: 800;
}

.uh-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.uh-grid > * {
  min-width: 0;
}

.walldock {
  margin-top: 26px;
}

.walldock > h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.wall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.wall > * {
  min-width: 0;
}

.wall .panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 13px;
  box-shadow: var(--shadow);
  padding: 13px;
}

.wall .panel h3 {
  margin: 0;
  font-size: 14.5px;
}

.wall .panel h3 a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

.wall .panelrows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (max-width: 900px) {
  .uh-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

@media (max-width: 1000px) {
  .wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .wall {
    grid-template-columns: minmax(0, 1fr);
  }

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

.entity-head .row .btn {
  max-width: 100%;
  white-space: normal;
  text-align: left;
}

/* Auth entry: sign-in, sign-up, recover and verify. The card is the one hero; the aside is the
   quiet "what an account adds" column. Every colour comes from the active theme tokens. */
.authpanel {
  max-width: 910px;
  margin: 0 auto;
  padding: 16px 0 64px;
}

.auth-stage {
  display: grid;
  grid-template-columns: minmax(0, 480px) minmax(0, 350px);
  justify-content: center;
  gap: 38px;
  align-items: start;
}

.auth-stage.single {
  grid-template-columns: minmax(0, 540px);
  justify-content: center;
}

.auth-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  justify-self: end;
  padding: 26px 28px 22px;
  border: 2px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.auth-stage.single .auth-card {
  justify-self: center;
  max-width: 540px;
}

.auth-card h1 {
  margin: 0 0 6px;
  font-size: clamp(1.5rem, 2.2vw, 1.8rem);
  line-height: 1.15;
}

.auth-card .lede {
  margin: 0 0 18px;
  color: var(--ink-alt);
  font-size: 13.8px;
  line-height: 1.55;
}

.auth-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin: 0 0 18px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--sunken);
}

.auth-tabs a {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 8px;
  border-radius: 8px;
  color: var(--ink-3);
  font-size: 12.5px;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
}

.auth-tabs a:hover {
  background: var(--hover);
  color: var(--ink);
  text-decoration: none;
}

.auth-tabs a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent);
}

.authform .field {
  margin: 0 0 12px;
}

.authform .field input {
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 15px;
}

.authform .field input[aria-invalid="true"] {
  border-color: var(--accent-2);
}

.auth-field-hint {
  margin: 5px 0 0;
  color: var(--ink-3);
  font-size: 11.5px;
  line-height: 1.45;
}

.auth-field-error {
  margin: 5px 0 0;
  color: var(--accent-2);
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.45;
}

.auth-field-error[hidden] {
  display: none;
}

.authform .btn.primary {
  width: 100%;
  min-height: 44px;
  justify-content: center;
  font-size: 15.5px;
}

.auth-or {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 12px;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 800;
}

.auth-or::before,
.auth-or::after {
  content: "";
  flex: 1;
  height: 1.5px;
  border-radius: 2px;
  background: var(--border);
}

.providers {
  display: grid;
  gap: 8px;
}

.provider {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 12px;
  border: 2px solid var(--border);
  border-radius: 11px;
  background: var(--control);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.provider:hover {
  border-color: var(--accent);
  background: var(--hover);
  text-decoration: none;
}

.provider.primary {
  border-color: color-mix(in srgb, var(--accent) 60%, var(--border));
  background: var(--accent-soft);
}

.provider.primary:hover {
  border-color: var(--accent);
  background: var(--hover);
}

.provider-text {
  flex: 1;
}

.provider-rec {
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.provider .g {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 8px;
  background: var(--sunken);
  color: var(--accent-2);
  font-weight: 900;
}

.provider .g svg,
.provider .g .vi-swap {
  width: 18px;
  height: 18px;
}

.auth-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 14px;
  margin: 14px 0 0;
  font-size: 12.5px;
  font-weight: 800;
}

.auth-links.center {
  justify-content: center;
}

.auth-links a {
  color: var(--link);
}

.auth-links a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.auth-links .btn {
  color: var(--on-accent);
}

.auth-links .btn:hover {
  color: var(--on-accent);
  text-decoration: none;
}

.auth-card .staffline {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1.5px dashed var(--border);
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.5;
}

.authnotice {
  margin: 0 0 16px;
  padding: 10px 12px;
  border: 1.5px solid color-mix(in srgb, var(--accent-2) 55%, transparent);
  border-left: 4px solid var(--accent-2);
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
}

.authsent {
  display: grid;
  gap: 6px;
  padding: 16px;
  margin: 4px 0 16px;
  border: 1.5px dashed var(--border);
  border-radius: 12px;
  background: var(--sunken);
}

.authsent h2 {
  margin: 0;
  font-size: 18px;
}

.authsent p {
  margin: 0;
  color: var(--ink-alt);
  font-size: 13.5px;
}

.authsent .authsent-mark {
  color: var(--accent);
}

.authsent .authsent-mark svg {
  width: 22px;
  height: 22px;
}

.authsent .btn {
  justify-self: start;
  margin-top: 6px;
}

.auth-pow-note {
  display: flex;
  gap: 8px;
  margin: 10px 0 0;
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.5;
}

.auth-pow-note::before {
  content: "✓";
  color: var(--tier-curated);
  font-weight: 900;
}

.auth-aside {
  max-width: 350px;
  padding: 6px 2px 0;
}

.auth-aside-title {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
}

.auth-aside-body {
  margin: 0 0 18px;
  color: var(--ink-alt);
  font-size: 13.5px;
  line-height: 1.6;
}

.auth-points {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.auth-points li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.auth-point-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border: 1.5px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  line-height: 0;
}

.auth-point-ico svg,
.auth-point-ico .vi-swap {
  width: 17px;
  height: 17px;
}

.auth-points b {
  display: block;
  color: var(--ink);
  font-size: 13.5px;
}

.auth-points li > div span {
  display: block;
  margin-top: 1px;
  color: var(--ink-3);
  font-size: 12.5px;
  line-height: 1.5;
}

.auth-aside-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  color: var(--link);
  font-size: 12.5px;
  font-weight: 800;
}

.auth-aside-back::before {
  content: "←";
}

.auth-aside-back:hover {
  color: var(--accent);
}

.verifychange {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1.5px dashed var(--border);
}

.verifychange h2 {
  margin: 0 0 4px;
  font-size: 18px;
}

.verifychange p {
  margin: 0 0 12px;
  color: var(--ink-alt);
  font-size: 13px;
}

@media (max-width: 900px) {
  .auth-stage {
    grid-template-columns: minmax(0, 1fr);
  }

  .auth-card,
  .auth-stage.single .auth-card {
    justify-self: center;
  }

  .auth-aside {
    justify-self: center;
    max-width: 480px;
    padding-bottom: 8px;
  }
}

@media (max-width: 560px) {
  .authpanel {
    padding-top: 6px;
  }

  .auth-card {
    padding: 20px 18px 18px;
    border-radius: 15px;
  }

  .auth-tabs a {
    font-size: 11.5px;
  }

  .provider {
    gap: 8px;
    padding: 8px 10px;
  }

  .provider-rec {
    padding: 2px 5px;
    font-size: 9px;
    letter-spacing: 0;
  }
}

body.auth .top-right a.btn[href="/signin"] {
  display: none;
}

.auth-card .field input::placeholder {
  color: var(--ink-3);
  opacity: 1;
}

a.btn.is-disabled {
  background: var(--control);
  border-color: var(--border);
  color: var(--ink-3);
  cursor: default;
}

a.btn.is-disabled:hover {
  background: var(--control);
  border-color: var(--border);
  color: var(--ink-3);
  filter: none;
  text-decoration: none;
}

a.morelink.is-disabled {
  color: var(--ink-3);
  cursor: default;
}

a.morelink.is-disabled:hover {
  color: var(--ink-3);
  text-decoration: none;
}

.doc-toc a.is-disabled {
  color: var(--ink-3);
  cursor: default;
}

.doc-toc a.is-disabled:hover {
  border-color: var(--border);
  text-decoration: none;
}

.doc-toc a.is-disabled b,
.doc-toc a.is-disabled .em {
  color: var(--ink-3);
}

.doc-nav a.is-disabled {
  color: var(--ink-3);
  cursor: default;
}

.doc-nav a.is-disabled:hover {
  color: var(--ink-3);
  text-decoration: none;
}

.sitefoot a.is-disabled {
  color: var(--ink-3);
  cursor: default;
}

.sitefoot a.is-disabled:hover {
  color: var(--ink-3);
  text-decoration: none;
}

.empty-soon {
  display: inline;
  margin-top: 8px;
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 600;
}

.rm-hidden .rm-body {
  outline: 2px dashed var(--ink-3);
  outline-offset: 6px;
}

.rm-hidden-tag {
  margin-left: 6px;
  border-style: dashed;
}

.rm-admin,
.rm-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.rm-inline {
  display: inline-flex;
  gap: 4px;
}

.rm-delete summary {
  cursor: pointer;
  font-size: 13px;
}

.rm-form .field {
  margin: 8px 0;
}

.rm-form input[type="text"],
.rm-form input[type="date"],
.rm-form textarea,
.rm-form select {
  display: block;
  width: 100%;
  max-width: 36rem;
  box-sizing: border-box;
}

.rm-error {
  color: var(--danger, var(--ink));
  font-weight: 700;
}

.rm-add {
  padding-top: 8px;
}

.rm-add-title {
  margin: 0 0 4px;
  font-size: 16px;
}

.rm-planned[draggable="true"] {
  cursor: grab;
}

.rm-dragging {
  opacity: 0.4;
}
