@font-face {
  font-family: "DM Sans";
  src: url("../assets/fonts/dm-sans.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #0a0c10;
  --panel: #11151b;
  --ink: #f4f6fa;
  --muted: #a6acb6;
  --accent: #7db2ff;
  --accent-bright: #a7ceff;
  --blue: #6cbbff;
  --cyan: var(--accent);
  --line: #272c35;
  --gold: #cab080;
  --serif: Georgia, "Times New Roman", serif;
  font-family: "DM Sans", Arial, sans-serif;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 0.8125rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
}
button,
select {
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
svg {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}
p,
h1,
h2,
h3,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
}
button {
  border: 0;
}
p {
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 2px solid #a7ceff;
  outline-offset: 4px;
}
::selection {
  color: #051014;
  background: #7db2ff;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  z-index: 30;
  top: 8px;
  left: 8px;
  padding: 12px;
  background: #d7e8ff;
  color: #0a0c10;
  transform: translateY(-180%);
}
.skip-link:focus {
  transform: none;
}
.topbar {
  min-height: 59px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(110deg, #0a0c10, #11151b 70%, #0a0c10);
  position: relative;
  z-index: 4;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 22px;
  flex-shrink: 0;
  border-right: 1px solid #27323b;
}
.brand img {
  width: 37px;
  height: 37px;
  object-fit: contain;
  border-radius: 50%;
}
.brand > span {
  font-family: var(--serif);
  font-variant: small-caps;
  letter-spacing: 0.025em;
  font-size: 1.3rem;
}
.brand sup,
.side-brand sup,
.page-footer sup {
  font-family: "DM Sans", sans-serif;
  font-size: 0.45em;
  margin-left: 2px;
}
.topnav {
  display: flex;
  align-self: stretch;
  justify-content: space-evenly;
  flex: 1;
  min-width: 0;
  gap: 12px;
  padding-inline: 20px;
}
.topnav a {
  position: relative;
  display: flex;
  align-items: center;
  font-size: 0.76rem;
  white-space: nowrap;
  color: #c5cbd2;
}
.topnav a:hover {
  color: #eff9fa;
}
.topnav a[aria-current="page"] {
  color: var(--cyan);
}
.topnav a[aria-current="page"]:after {
  content: "";
  height: 1px;
  position: absolute;
  bottom: 0;
  left: -14px;
  right: -14px;
  background: linear-gradient(90deg, transparent, #7db2ff, transparent);
  box-shadow: 0 -3px 12px #517bbb7a;
}
.account-tools {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 8px 22px;
  border-left: 1px solid var(--line);
}
.icon-button {
  display: grid;
  place-items: center;
  min-width: 36px;
  min-height: 36px;
  background: transparent;
  padding: 8px;
}
.icon-button:disabled {
  color: #a1aab5;
  opacity: 0.65;
}
.profile {
  display: flex;
  gap: 10px;
  align-items: center;
}
.profile > div {
  display: grid;
  font-size: 0.75rem;
}
.profile small {
  color: #aab6bf;
  font-size: 0.64rem;
}
.avatar {
  display: grid;
  place-items: center;
  border: 1px solid #5076a8;
  background: radial-gradient(circle at 30% 20%, #476a99, #192537 40%, #111724);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #d7e8ff;
  font-size: 1.65rem;
}
.mobile-menu {
  display: none;
}
.app-shell {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  min-height: calc(100vh - 59px);
}
.sidebar {
  display: flex;
  flex-direction: column;
  border-right: 1px solid #1d2832;
  background: linear-gradient(180deg, #11151b, #0a0c10);
  padding-block: 25px 18px;
  position: relative;
}
.side-links {
  display: grid;
  gap: 5px;
}
.side-links a,
.side-links .menu-sign-out {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 40px;
  padding: 8px 18px;
  border-left: 2px solid transparent;
  color: #c1c7ce;
  font-size: 0.76rem;
}
.side-links .menu-sign-out {
  width: 100%;
  background: transparent;
  border: 0;
  border-left: 2px solid transparent;
  text-align: left;
}
.side-links a:hover,
.side-links .menu-sign-out:hover {
  background: #111e29;
}
.side-links a[aria-current="page"] {
  border-color: #7db2ff;
  color: #a7ceff;
  background: linear-gradient(90deg, #172c4888, #111d3072);
  box-shadow:
    inset 0 1px #365d9142,
    inset 0 -1px #365d9142;
}
.side-links svg {
  color: #b2c3cf;
}
.side-links a[aria-current="page"] svg {
  color: #7db2ff;
}
.sidebar-story {
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 44px;
  min-height: 340px;
}
.sigil {
  padding: 18px;
  border: 1px solid #293d4b;
  border-radius: 50%;
  position: relative;
  opacity: 0.7;
}
.sigil:before {
  content: "";
  position: absolute;
  inset: -9px;
  border: 1px solid #243440;
  border-radius: 50%;
}
.sigil img {
  opacity: 0.8;
}
.sidebar-story p {
  text-transform: uppercase;
  font-family: var(--serif);
  letter-spacing: 0.19em;
  font-size: 0.82rem;
  line-height: 1.7;
  color: #a4aeb8;
}
.fine-rule {
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #6b7a8b, transparent);
}
.side-brand {
  text-align: center;
  font-family: var(--serif);
  font-variant: small-caps;
  font-size: 1.02rem;
  letter-spacing: 0.04em;
}
.side-brand small {
  display: block;
  font-family: "DM Sans", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.43rem;
  color: #9da8b4;
}
.app-shell > main {
  min-width: 0;
  position: relative;
  padding: 0 18px 0 16px;
  background: radial-gradient(ellipse at 90% 5%, #12233250, transparent 55%);
}
.hero {
  min-height: 166px;
  position: relative;
  display: flex;
  justify-content: space-between;
  padding: 20px 24px 16px;
  margin-inline: -16px -18px;
  background-image:
    linear-gradient(90deg, #0a0c10 0%, #0a0c1022 45%, #0a0c1011 75%, #0a0c10aa),
    linear-gradient(0deg, #0a0c10, transparent 40%),
    url("../assets/spinarium/hero.webp");
  background-size: cover;
  background-position: center 43%;
}
.hero-copy {
  width: 430px;
  text-align: center;
  max-width: 73%;
  position: relative;
}
.eyebrow {
  font-size: 0.59rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #b2c4ce;
}
.hero .eyebrow {
  display: none;
}
.hero h1 {
  font-size: clamp(3.4rem, 5.25vw, 5.3rem);
  line-height: 1.04;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-shadow: 0 3px 25px #000;
}
.hero-subtitle {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: #d6d9db;
  line-height: 1.35;
}
.hero-divider {
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 0.68rem;
  gap: 10px;
}
.hero-divider:before,
.hero-divider:after {
  content: "";
  width: 36%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #a1a3a870);
}
.hero-divider:after {
  transform: rotate(180deg);
}
.hero-tagline {
  text-transform: uppercase;
  font-family: var(--serif);
  letter-spacing: 0.2em;
  font-size: 0.73rem;
  color: #bdc5cc;
}
.hero-aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: center;
  padding-right: 12px;
}
.hero-aside > p {
  font-family: var(--serif);
  text-transform: uppercase;
  letter-spacing: 0.21em;
  font-size: 0.7rem;
  line-height: 1.8;
  color: #b0bac5;
  text-shadow: 0 2px 10px #000;
}
.claim-entry {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #496a9880;
  padding: 7px 12px;
  font-size: 0.68rem;
  border-radius: 3px;
  background: #0c1a23ba;
  color: #d7e8ff;
}
.claim-entry:hover {
  background: #1b2d47;
}
.claim-entry svg {
  width: 14px;
  height: 14px;
}
.preview-note {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #acb8c3;
  font-size: 0.65rem;
  padding: 0 0 11px;
  line-height: 1.4;
}
.preview-note strong {
  font-weight: 500;
  color: #c1dade;
  white-space: nowrap;
}
.preview-dot {
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: #7db2ff;
}
.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(310px, 1fr);
  gap: 14px 12px;
  grid-template-areas: "stats detail" "collection detail" "footer footer";
  align-items: start;
}
.stat-row {
  grid-area: stats;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.stat-card {
  min-height: 62px;
  border: 1px solid #28323b;
  background: linear-gradient(145deg, #0a111af2, #0a0c10d9);
  text-align: center;
  padding: 7px 4px;
  box-shadow: inset 0 0 0 3px #06090d55;
}
.stat-card strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.38rem;
  color: #e2e5e8;
}
.stat-card span {
  font-size: 0.62rem;
  color: #bac4cc;
}
.panel {
  border: 1px solid #29343f;
  border-radius: 5px;
  background: linear-gradient(145deg, #0c141bde, #070c12f5);
  box-shadow:
    inset 0 0 0 3px #05090d55,
    0 6px 20px #0002;
  min-width: 0;
}
.collection-panel {
  grid-area: collection;
  padding: 0 14px 8px;
}
.collection-toolbar {
  min-height: 49px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid #27333e;
  margin-bottom: 14px;
  position: relative;
}
.collection-toolbar:after {
  content: "";
  position: absolute;
  height: 1px;
  bottom: -1px;
  left: 0;
  width: 20%;
  background: linear-gradient(90deg, #a7ceff, transparent);
  box-shadow: 0 0 8px #7db2ff60;
}
.filter-tabs {
  display: flex;
  gap: 14px;
  min-width: 0;
  flex-wrap: wrap;
  align-self: stretch;
  align-items: center;
}
.filter-tabs button {
  background: none;
  padding: 10px 0;
  font-size: 0.62rem;
  color: #adb9c6;
  position: relative;
  min-height: 40px;
}
.filter-tabs button[aria-pressed="true"] {
  color: #f0f6f6;
}
.filter-tabs button[aria-pressed="true"]:after {
  content: "";
  position: absolute;
  bottom: 0;
  height: 1px;
  left: 0;
  right: 0;
  background: #7db2ff;
}
.collection-tools {
  display: flex;
  gap: 8px;
  align-items: center;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #3c4a59;
  border-radius: 5px;
  padding: 0 8px;
  min-width: 0;
  background: #060c13;
}
.search-box svg {
  width: 13px;
  height: 13px;
  color: #abb5c4;
}
.search-box input {
  background: none;
  border: 0;
  color: #e0e9ee;
  font-size: 0.64rem;
  padding: 7px 0;
  width: 137px;
  min-width: 0;
}
.search-box input::placeholder {
  color: #a1acba;
}
.sort-box select {
  background: #0e1620;
  border: 1px solid #3c4a59;
  border-radius: 4px;
  padding: 6px 3px;
  font-size: 0.6rem;
  max-width: 106px;
}
.collection-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px 20px;
}
.veiling-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
  background: #101720;
  border: 1px solid var(--card-accent, #65717e);
  padding: 0;
  border-radius: 2px;
  transition:
    box-shadow 0.2s,
    border-color 0.2s,
    transform 0.2s;
  min-width: 0;
  text-align: center;
}
.veiling-card:before,
.veiling-card:after {
  content: "◇";
  position: absolute;
  z-index: 1;
  font-size: 0.55rem;
  color: var(--card-accent, #9fabb7);
  line-height: 1;
  top: 0;
  left: 1px;
}
.veiling-card:after {
  top: auto;
  left: auto;
  bottom: 0;
  right: 1px;
}
.veiling-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 16px #6bb1c637;
}
.veiling-card[aria-pressed="true"] {
  border-color: #d7e8ff;
  box-shadow:
    0 0 0 1px #7db2ff,
    0 0 18px #7db2ff60;
}
.card-art {
  aspect-ratio: 1.03;
  background: radial-gradient(ellipse at 50% 60%, #182431, #080d13);
  overflow: hidden;
  position: relative;
}
.card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.card-caption {
  padding: 6px 4px 7px;
  min-height: 48px;
  background: linear-gradient(180deg, #10171fa8, #070b10);
  border-top: 1px solid #67778673;
}
.card-number {
  display: block;
  font-size: 0.67rem;
  line-height: 1.2;
  color: #dce2e6;
}
.card-name {
  display: block;
  font-family: var(--serif);
  font-size: 0.76rem;
  color: #e4e8ed;
  line-height: 1.4;
}
.card-state {
  display: block;
  font-size: 0.51rem;
  letter-spacing: 0.04em;
  color: #b5c3cc;
}
.veiling-card.is-undiscovered {
  --card-accent: #6f7477;
  filter: saturate(0.2);
}
.is-undiscovered .card-art {
  background: radial-gradient(ellipse at 55% 52%, #30383e, #101820 90%);
}
.mystery-grain {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    120deg,
    transparent 0 3px,
    #8090a008 3px 4px
  );
  opacity: 0.75;
}
.collection-status {
  padding-top: 10px;
  text-align: center;
  font-size: 0.6rem;
  color: #a6b4c1;
  min-height: 22px;
}
.empty-state {
  grid-column: 1/-1;
  text-align: center;
  padding: 70px 15px;
}
.empty-state h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.detail-panel {
  grid-area: detail;
  overflow: hidden;
  min-height: 100%;
  padding: 0 13px 12px;
  position: relative;
}
.detail-main {
  display: grid;
  grid-template-columns: 52% 48%;
  min-height: 340px;
  margin-inline: -13px;
  padding: 0 13px;
  position: relative;
  background: radial-gradient(ellipse at 30% 40%, #1d29363d, transparent 70%);
}
.detail-portrait {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
  margin-left: -13px;
  margin-right: -22px;
}
.detail-portrait:after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, #0a1119, transparent 24%),
    linear-gradient(90deg, transparent 65%, #0a1119);
}
.detail-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 48% 40%;
  min-height: 340px;
}
.detail-info {
  position: relative;
  z-index: 1;
  padding: 53px 10px 14px 6px;
  min-width: 0;
}
.ownership-badge {
  position: absolute;
  top: 12px;
  right: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  color: #d7e8ff;
  background: #142844c9;
  border: 1px solid #4b7580;
  border-radius: 20px;
  padding: 3px 9px;
  font-size: 0.6rem;
}
.ownership-badge svg {
  width: 12px;
  height: 12px;
}
.detail-info h2 {
  font-size: 1.06rem;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.035em;
}
.detail-number {
  font-size: 0.8rem;
  font-family: var(--serif);
  color: #aeb9c7;
}
.detail-quote {
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid #62717d66;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.77rem;
  line-height: 1.6;
  white-space: pre-line;
  color: #c8ced5;
}
.metadata {
  margin: 20px 0 0;
  font-size: 0.57rem;
}
.metadata > div {
  display: grid;
  grid-template-columns: 47% 53%;
  gap: 3px;
  border-bottom: 1px solid #33414c55;
  padding: 5px 0;
}
.metadata dt {
  color: #b4bdc6;
}
.metadata dd {
  margin: 0;
  color: #d8dfe5;
}
.detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 0 0 12px;
}
.outlined-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid #466674;
  background: linear-gradient(180deg, #14222caa, #0a141da1);
  border-radius: 4px;
  color: #d9e9ed;
  font-size: 0.69rem;
  padding: 8px 10px;
  box-shadow: inset 0 0 0 2px #05090d55;
}
.outlined-button:hover:enabled {
  background: #1b2d47;
  border-color: #7db2ff;
}
.outlined-button:disabled {
  color: #a9b2be;
  border-color: #37444f;
  background: #0a1118;
}
.outlined-button svg {
  width: 16px;
  height: 16px;
}
.lore-preview {
  border: 1px solid #2d3b47;
  border-radius: 4px;
  padding: 10px;
  min-height: 110px;
  background: linear-gradient(135deg, #15212a77, #0a111a);
  position: relative;
}
.lore-preview h3 {
  font-size: 0.93rem;
  margin-bottom: 6px;
  color: #e1e5e8;
}
.lore-preview p {
  font-size: 0.66rem;
  line-height: 1.65;
}
.lore-preview button {
  padding: 5px 0 0;
  background: none;
  color: #bedce4;
  font-size: 0.66rem;
}
.draft-label {
  display: inline-block;
  color: #c6b999;
  font-size: 0.53rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 7px;
}
.mystery-detail {
  padding: 42px 15px;
  text-align: center;
  min-height: 410px;
}
.mystery-detail .mystery-illustration {
  height: 210px;
  max-width: 170px;
  margin: 0 auto 25px;
  position: relative;
  background: radial-gradient(ellipse, #1c2935, #0a1016 75%);
}
.mystery-detail h2 {
  font-size: 1.5rem;
}
.mystery-detail p {
  margin-top: 10px;
  font-size: 0.8rem;
}
.mystery-detail .eyebrow {
  color: #b5d0da;
  margin-top: 6px;
}
.dashboard-footer {
  grid-area: footer;
  display: grid;
  grid-template-columns: 1fr 0.92fr 1.15fr;
  gap: 12px;
}
.feed-panel {
  padding: 0 13px 10px;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid #2a3640;
}
.panel-heading h2 {
  font-size: 0.93rem;
}
.panel-heading a {
  font-size: 0.6rem;
  color: #abd2de;
}
.news-list,
.achievement-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.news-list li {
  border-bottom: 1px solid #26323c88;
  padding: 10px 0;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.63rem;
}
.news-list li:last-child {
  border: 0;
}
.news-list time {
  font-size: 0.58rem;
  color: #acb9c7;
  white-space: nowrap;
}
.news-list span {
  color: #d0d8de;
}
.achievement-list li {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 7px 0;
}
.achievement-icon {
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid #786241;
  color: #d2ac6d;
  width: 29px;
  height: 29px;
  background: #121717;
  flex-shrink: 0;
}
.achievement-icon svg {
  width: 17px;
  height: 17px;
}
.achievement-copy {
  flex: 1;
  min-width: 0;
}
.achievement-copy strong {
  display: block;
  font-size: 0.66rem;
  font-weight: 400;
  color: #dfd9cc;
}
.achievement-copy p {
  font-size: 0.59rem;
}
.achievement-date {
  font-size: 0.55rem;
  color: #aab7c1;
}
.event-panel {
  padding: 0 13px 10px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.event-panel:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, #0b121bed, #0b121bdd),
    url("../assets/spinarium/hero.webp") 75% center / cover;
  opacity: 0.9;
}
.event-body {
  text-align: center;
  padding: 10px 2px 4px;
}
.event-body .event-brand {
  font-family: var(--serif);
  font-variant: small-caps;
  font-size: 0.66rem;
  color: #d4e0e6;
}
.event-body h3 {
  font-size: 1.25rem;
  text-transform: uppercase;
  line-height: 1.1;
  margin: 6px 0;
  letter-spacing: 0.05em;
}
.event-body .event-tag {
  font-size: 0.53rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #c4d1d8;
}
.event-body p:last-child {
  font-size: 0.61rem;
  margin-top: 9px;
  color: #d8e0e5;
}
.page-footer {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  color: #a8b4c0;
  font-size: 0.6rem;
}
.page-footer nav {
  display: flex;
  gap: 16px;
}
.page-footer a:hover {
  color: var(--cyan);
}
.route-panel {
  padding: 30px;
  margin-top: 3px;
  min-height: 420px;
}
.route-panel h2 {
  font-size: 2.2rem;
  color: #e4e9ed;
  line-height: 1.15;
  margin: 7px 0 14px;
}
.route-panel h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}
.route-intro {
  max-width: 680px;
  font-size: 0.88rem;
  margin-bottom: 25px;
}
.route-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.route-card {
  padding: 20px;
  border: 1px solid #33444f;
  background: #101b256b;
  border-radius: 4px;
  min-width: 0;
}
.route-card p {
  font-size: 0.8rem;
}
.route-card small {
  display: block;
  margin-top: 12px;
  color: #aebeca;
}
.route-card progress {
  width: 100%;
  height: 6px;
  accent-color: #bfa777;
  margin-top: 16px;
}
.route-card img {
  border-radius: 3px;
  margin-bottom: 15px;
}
.discovery-list {
  display: grid;
  gap: 12px;
  list-style: none;
  padding: 0;
}
.discovery-item {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid #2d424f;
  background: #0e1c25;
}
.discovery-item svg {
  color: var(--gold);
  width: 24px;
  height: 24px;
}
.discovery-item time {
  color: #aebdca;
  font-size: 0.75rem;
}
.legacy-note,
.availability-note {
  border: 1px solid #75644570;
  background: #24231e45;
  padding: 16px;
  border-radius: 4px;
  margin: 20px 0;
}
.legacy-note h3 {
  color: #d4c4a6;
}
.availability-note strong {
  color: #e4d7b8;
  font-weight: 500;
}
.availability-note p {
  margin-top: 7px;
}
.small-note {
  font-size: 0.74rem;
  line-height: 1.7;
}
.link-button {
  display: inline-flex;
  margin-top: 16px;
  color: #b0d7e0;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.no-script {
  padding: 30px;
  margin-bottom: 30px;
}
.no-script h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}
.no-script a {
  display: inline-block;
  margin-top: 15px;
  text-decoration: underline;
}
.modal {
  position: fixed;
  border: 1px solid #547280;
  border-radius: 8px;
  background: linear-gradient(145deg, #111e29, #070d14);
  color: var(--ink);
  max-width: min(580px, calc(100% - 32px));
  width: 580px;
  padding: 35px;
  max-height: calc(100dvh - 40px);
  overflow: auto;
  box-shadow: 0 0 70px #000b;
}
.modal::backdrop {
  background: #02070cce;
  backdrop-filter: blur(7px);
}
.modal h2 {
  font-size: 2.2rem;
  margin: 12px 0 16px;
  line-height: 1.1;
}
.modal > p {
  line-height: 1.7;
}
.modal-close {
  position: absolute;
  top: 7px;
  right: 7px;
}
.modal .eyebrow {
  padding-right: 15px;
}
.modal form {
  display: grid;
  gap: 12px;
  margin-block: 22px;
}
.modal form label {
  font-size: 0.83rem;
  color: #dbe3e8;
}
.modal form label span {
  display: block;
  font-size: 0.66rem;
  color: #acbac8;
}
.modal input {
  width: 100%;
  background: #070e16;
  border: 1px solid #3d4f5e;
  padding: 12px;
  border-radius: 4px;
  color: #aab9c7;
  font-size: 0.8rem;
}
.modal input::placeholder {
  color: #9aaab8;
}
.full-detail-modal {
  max-width: min(820px, calc(100% - 32px));
  width: 820px;
}
.full-detail-grid {
  display: grid;
  grid-template-columns: 45% 1fr;
  gap: 28px;
}
.full-detail-grid:not(.has-artwork) { grid-template-columns: minmax(0, 1fr); }
.full-detail-grid > img {
  width: 100%;
  border: 1px solid #455967;
  border-radius: 4px;
}
.full-detail-grid .metadata {
  font-size: 0.78rem;
}
.full-detail-grid .detail-quote {
  font-size: 1rem;
}
.full-detail-grid h3 {
  font-size: 1.3rem;
  margin: 24px 0 8px;
}
.full-detail-grid p {
  font-size: 0.8rem;
  line-height: 1.7;
}
.full-detail-grid .eyebrow {
  font-size: 0.65rem;
}
.error-message {
  padding: 25px;
  border: 1px solid #6c5148;
  background: #251a19;
  margin: 20px 0;
}
.error-message button {
  margin-top: 12px;
}
.asset-fallback {
  display: grid;
  place-items: center;
  color: #becfdb;
  font-family: var(--serif);
  padding: 12px;
  text-align: center;
  min-height: 120px;
  background: radial-gradient(ellipse, #24323f, #0b121a);
}
@media (min-width: 1600px) {
  .app-shell > main {
    padding-inline: 26px;
  }
  .hero {
    margin-inline: -26px;
    min-height: 210px;
    padding-left: 34px;
  }
  .hero-copy {
    width: 510px;
  }
  .collection-grid {
    gap: 20px 26px;
  }
  .card-art {
    aspect-ratio: 1;
  }
  .detail-main {
    min-height: 400px;
  }
  .detail-portrait img {
    min-height: 400px;
  }
  .detail-info {
    padding-top: 65px;
  }
  .metadata {
    font-size: 0.7rem;
  }
  .detail-info h2 {
    font-size: 1.4rem;
  }
  .detail-quote {
    font-size: 0.95rem;
  }
  .detail-panel {
    padding-bottom: 18px;
  }
  .lore-preview {
    min-height: 140px;
  }
  .lore-preview p {
    font-size: 0.8rem;
  }
  .stat-card {
    min-height: 75px;
  }
  .stat-card span {
    font-size: 0.76rem;
  }
  .stat-card strong {
    font-size: 1.65rem;
  }
  .filter-tabs button,
  .search-box input,
  .sort-box select {
    font-size: 0.72rem;
  }
  .collection-toolbar {
    min-height: 60px;
  }
  .card-name {
    font-size: 0.92rem;
  }
  .card-caption {
    min-height: 59px;
  }
  .card-state {
    font-size: 0.65rem;
  }
  .card-number {
    font-size: 0.8rem;
  }
  .feed-panel,
  .event-panel {
    min-height: 165px;
  }
  .news-list li {
    font-size: 0.76rem;
  }
  .achievement-copy strong {
    font-size: 0.78rem;
  }
  .achievement-copy p {
    font-size: 0.7rem;
  }
}
@media (max-width: 1300px) {
  .brand {
    padding-inline: 15px;
  }
  .brand > span {
    font-size: 1.16rem;
  }
  .topnav {
    gap: 12px;
    padding-inline: 15px;
  }
  .account-tools {
    padding-inline: 15px;
    gap: 10px;
  }
  .app-shell {
    grid-template-columns: 157px minmax(0, 1fr);
  }
  .app-shell > main {
    padding-inline: 12px;
  }
  .hero {
    margin-inline: -12px;
    padding-left: 20px;
    min-height: 153px;
  }
  .hero-copy {
    width: 380px;
  }
  .hero h1 {
    font-size: 4rem;
  }
  .hero-subtitle {
    font-size: 1.08rem;
  }
  .hero-tagline {
    font-size: 0.64rem;
  }
  .preview-note {
    font-size: 0.58rem;
  }
  .collection-panel {
    padding-inline: 12px;
  }
  .collection-grid {
    gap: 14px 18px;
  }
  .filter-tabs {
    gap: 12px;
  }
  .filter-tabs button {
    font-size: 0.56rem;
  }
  .filter-tabs button[data-filter="undiscovered"] {
    display: none;
  }
  .collection-toolbar {
    gap: 6px;
  }
  .search-box input {
    width: 123px;
    font-size: 0.58rem;
  }
  .sort-box select {
    font-size: 0.56rem;
  }
  .dashboard-layout {
    grid-template-columns: minmax(0, 1.8fr) minmax(300px, 1fr);
  }
  .detail-main {
    min-height: 316px;
  }
  .detail-portrait img {
    min-height: 316px;
  }
  .detail-info {
    padding-top: 48px;
  }
  .metadata {
    font-size: 0.55rem;
  }
  .detail-quote {
    font-size: 0.7rem;
  }
  .detail-info h2 {
    font-size: 1rem;
  }
  .lore-preview {
    min-height: 110px;
  }
  .side-links a {
    padding-inline: 17px;
    gap: 11px;
    font-size: 0.7rem;
  }
}
@media (max-width: 1120px) {
  .topnav {
    gap: 12px;
  }
  .topnav a {
    font-size: 0.65rem;
  }
  .brand > span {
    font-size: 1.05rem;
  }
  .brand img {
    width: 30px;
    height: 30px;
  }
  .account-tools {
    padding-inline: 12px;
  }
  .profile > div {
    display: none;
  }
  .notification-button {
    display: none;
  }
  .dashboard-layout {
    grid-template-columns: minmax(0, 1.5fr) minmax(290px, 1fr);
  }
  .collection-toolbar {
    flex-wrap: wrap;
    padding-block: 6px;
  }
  .collection-tools {
    width: 100%;
    justify-content: space-between;
  }
  .search-box {
    flex: 1;
  }
  .search-box input {
    width: 100%;
    padding-block: 8px;
  }
  .filter-tabs {
    gap: 15px;
  }
  .filter-tabs button {
    font-size: 0.64rem;
  }
  .collection-grid {
    gap: 12px 10px;
  }
  .card-name {
    font-size: 0.7rem;
  }
  .stat-row {
    gap: 6px;
  }
  .stat-card span {
    font-size: 0.55rem;
  }
  .dashboard-footer {
    grid-template-columns: 1fr 1fr;
  }
  .event-panel {
    grid-column: 1/-1;
  }
  .event-body {
    padding-block: 14px;
  }
  .hero-aside p {
    font-size: 0.6rem;
  }
  .hero h1 {
    font-size: 3.5rem;
  }
  .hero-copy {
    width: 330px;
  }
  .hero-aside {
    padding-right: 0;
  }
}
@media (max-width: 900px) {
  .topbar {
    flex-wrap: wrap;
  }
  .brand {
    flex: 1;
    border-right: 0;
  }
  .topnav {
    order: 4;
    flex-basis: 100%;
    min-height: 42px;
    border-top: 1px solid #23323e;
    gap: 8px;
    justify-content: space-around;
    padding-inline: 14px;
  }
  .topnav a {
    font-size: 0.7rem;
  }
  .account-tools {
    border: 0;
  }
  .app-shell {
    grid-template-columns: 140px minmax(0, 1fr);
  }
  .side-links a {
    padding-inline: 12px;
    gap: 8px;
    font-size: 0.67rem;
  }
  .hero {
    min-height: 160px;
  }
  .hero-copy {
    max-width: 70%;
  }
  .hero h1 {
    font-size: 3.1rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .hero-tagline {
    font-size: 0.58rem;
  }
  .hero-aside p {
    font-size: 0.57rem;
  }
  .hero-aside {
    max-width: 28%;
  }
  .claim-entry {
    font-size: 0.6rem;
    padding: 6px;
  }
  .dashboard-layout {
    grid-template-columns: 1fr;
    grid-template-areas: "stats" "collection" "detail" "footer";
  }
  .collection-toolbar {
    flex-wrap: nowrap;
    min-height: 48px;
  }
  .collection-tools {
    width: auto;
  }
  .search-box input {
    width: 120px;
  }
  .filter-tabs {
    gap: 12px;
  }
  .filter-tabs button {
    font-size: 0.6rem;
  }
  .collection-grid {
    gap: 16px;
  }
  .card-art {
    aspect-ratio: 1;
  }
  .detail-panel {
    min-height: 0;
  }
  .detail-main {
    grid-template-columns: 45% 55%;
    min-height: 360px;
  }
  .detail-portrait img {
    height: 360px;
    min-height: 0;
    object-position: center 35%;
  }
  .detail-info {
    padding: 48px 20px 12px;
  }
  .detail-info h2 {
    font-size: 1.6rem;
  }
  .detail-quote {
    font-size: 0.9rem;
  }
  .metadata {
    font-size: 0.75rem;
    margin-top: 15px;
  }
  .metadata > div {
    padding: 5px 0;
  }
  .lore-preview p {
    font-size: 0.8rem;
  }
  .lore-preview {
    min-height: 0;
  }
  .detail-actions {
    margin-top: 5px;
  }
  .sidebar-story {
    justify-content: flex-start;
    padding-top: 100px;
    gap: 35px;
  }
  .side-brand {
    font-size: 0.9rem;
  }
  .preview-note {
    flex-wrap: wrap;
    column-gap: 7px;
    row-gap: 0;
  }
  .preview-note > span:last-child {
    flex-basis: 100%;
    padding-left: 12px;
  }
  .route-grid {
    grid-template-columns: 1fr 1fr;
  }
  .route-panel {
    padding: 22px;
  }
  .page-footer {
    font-size: 0.55rem;
  }
}
@media (max-width: 640px) {
  body {
    font-size: 0.875rem;
  }
  .topbar {
    min-height: 62px;
    padding-right: 8px;
  }
  .brand {
    padding: 12px 14px;
  }
  .brand > span {
    font-size: 1.18rem;
  }
  .brand img {
    width: 34px;
    height: 34px;
  }
  .account-tools {
    display: none;
  }
  .mobile-menu:not([hidden]) {
    display: grid;
  }
  .topnav {
    display: none;
  }
  .app-shell {
    display: block;
  }
  .sidebar {
    position: absolute;
    z-index: 5;
    top: 62px;
    left: 0;
    right: 0;
    padding-block: 10px;
    background: #0b151ff5;
    border-bottom: 1px solid #405666;
    box-shadow: 0 10px 20px #0008;
  }
  .sidebar:not(.is-open) {
    display: none;
  }
  .side-links {
    grid-template-columns: 1fr 1fr;
  }
  .side-links a {
    font-size: 0.8rem;
    min-height: 44px;
    padding: 12px;
  }
  .sidebar-story,
  .side-brand {
    display: none;
  }
  .app-shell > main {
    padding-inline: 16px;
  }
  .hero {
    margin-inline: -16px;
    min-height: 215px;
    padding: 25px 16px 17px;
    display: block;
    background-position: 60% center;
  }
  .hero-copy {
    width: 100%;
    max-width: 100%;
    text-align: left;
  }
  .hero .eyebrow {
    display: block;
    font-size: 0.56rem;
    margin-bottom: 9px;
  }
  .hero h1 {
    font-size: clamp(2.8rem, 12vw, 4rem);
  }
  .hero-subtitle {
    font-size: 1.07rem;
  }
  .hero-divider {
    justify-content: flex-start;
    width: 270px;
    max-width: 100%;
    height: 20px;
  }
  .hero-divider:before,
  .hero-divider:after {
    width: 42%;
  }
  .hero-tagline {
    font-size: 0.61rem;
    letter-spacing: 0.17em;
  }
  .hero-aside {
    display: block;
    max-width: none;
    margin-top: 15px;
  }
  .hero-aside > p {
    display: none;
  }
  .claim-entry {
    font-size: 0.74rem;
    padding: 8px 10px;
    min-height: 36px;
  }
  .preview-note {
    font-size: 0.62rem;
    line-height: 1.5;
    padding-bottom: 15px;
    gap: 4px 8px;
  }
  .preview-note > span:last-child {
    padding-left: 0;
  }
  .dashboard-layout {
    gap: 16px;
  }
  .stat-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }
  .stat-card {
    min-height: 64px;
    padding: 8px 4px;
  }
  .stat-card strong {
    font-size: 1.3rem;
  }
  .stat-card span {
    font-size: 0.66rem;
  }
  .stat-card:nth-last-child(-n + 2) {
    grid-column: span 1;
  }
  .collection-panel {
    padding: 0 12px 10px;
  }
  .collection-toolbar {
    display: block;
    padding: 0 0 12px;
    margin-bottom: 12px;
  }
  .filter-tabs {
    display: flex;
    gap: 0;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-block: 3px;
  }
  .filter-tabs button {
    font-size: 0.7rem;
    min-height: 44px;
    padding-inline: 2px;
  }
  .filter-tabs button[data-filter="undiscovered"] {
    display: block;
  }
  .collection-tools {
    gap: 9px;
    margin-top: 4px;
    width: 100%;
  }
  .search-box {
    padding-inline: 9px;
  }
  .search-box input {
    width: 100%;
    font-size: 0.75rem;
    padding-block: 10px;
  }
  .sort-box select {
    font-size: 0.7rem;
    padding: 10px 3px;
    max-width: 112px;
  }
  .collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px 15px;
  }
  .card-art {
    aspect-ratio: 1.05;
  }
  .card-caption {
    min-height: 56px;
    padding-block: 8px;
  }
  .card-name {
    font-size: 1rem;
  }
  .card-number {
    font-size: 0.75rem;
  }
  .card-state {
    font-size: 0.61rem;
  }
  .collection-status {
    font-size: 0.7rem;
    padding-top: 14px;
  }
  .detail-main {
    min-height: 335px;
    grid-template-columns: 47% 53%;
  }
  .detail-portrait img {
    height: 335px;
    object-position: 47% 45%;
  }
  .detail-info {
    padding: 50px 0 12px 6px;
  }
  .detail-info h2 {
    font-size: 1.25rem;
  }
  .detail-number {
    font-size: 0.8rem;
  }
  .detail-quote {
    font-size: 0.78rem;
    margin-top: 12px;
    padding-top: 12px;
  }
  .metadata {
    font-size: 0.6rem;
    margin-top: 16px;
  }
  .metadata > div {
    grid-template-columns: 45% 55%;
    padding-block: 5px;
  }
  .ownership-badge {
    font-size: 0.65rem;
    padding: 4px 8px;
  }
  .detail-actions {
    gap: 7px;
  }
  .outlined-button {
    font-size: 0.73rem;
    min-height: 43px;
  }
  .lore-preview {
    padding: 12px;
  }
  .lore-preview p {
    font-size: 0.78rem;
  }
  .lore-preview h3 {
    font-size: 1.08rem;
  }
  .lore-preview button {
    font-size: 0.76rem;
    min-height: 36px;
  }
  .draft-label {
    font-size: 0.57rem;
  }
  .dashboard-footer {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .event-panel {
    grid-column: auto;
  }
  .feed-panel,
  .event-panel {
    padding-inline: 16px;
  }
  .panel-heading {
    min-height: 49px;
  }
  .panel-heading h2 {
    font-size: 1.1rem;
  }
  .panel-heading a {
    font-size: 0.73rem;
  }
  .news-list li {
    padding-block: 12px;
    font-size: 0.74rem;
  }
  .news-list time {
    font-size: 0.66rem;
  }
  .achievement-list li {
    padding-block: 12px;
  }
  .achievement-copy strong {
    font-size: 0.82rem;
  }
  .achievement-copy p {
    font-size: 0.71rem;
  }
  .achievement-date {
    font-size: 0.65rem;
  }
  .event-body h3 {
    font-size: 1.5rem;
  }
  .event-body p:last-child {
    font-size: 0.73rem;
  }
  .event-body .event-tag {
    font-size: 0.65rem;
  }
  .page-footer {
    font-size: 0.6rem;
    gap: 8px;
    padding-block: 20px;
    flex-wrap: wrap;
  }
  .route-panel {
    padding: 22px 17px;
    min-height: 400px;
  }
  .route-panel h2 {
    font-size: 2rem;
  }
  .route-grid {
    grid-template-columns: 1fr;
  }
  .route-intro {
    font-size: 0.83rem;
  }
  .modal {
    padding: 32px 22px;
    max-height: calc(100dvh - 28px);
  }
  .modal h2 {
    font-size: 1.9rem;
  }
  .modal .availability-note {
    padding: 12px;
  }
  .full-detail-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .full-detail-grid > img {
    max-height: 330px;
    object-fit: cover;
    object-position: center 35%;
  }
  .full-detail-grid .metadata {
    font-size: 0.75rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .veiling-card:hover {
    transform: none;
  }
}
/* Compact catalogue search mirrors the reference navigation. */
.catalog-search input {
  width: 118px;
  font-size: 0.66rem;
  padding-block: 7px;
}
.catalog-search .search-box {
  border-color: #455463;
  background: #08111c;
}
@media (max-width: 1300px) {
  .account-tools {
    gap: 8px;
  }
  .catalog-search input {
    width: 100px;
    font-size: 0.6rem;
  }
  .topnav {
    gap: 10px;
    padding-inline: 12px;
  }
  .topnav a {
    font-size: 0.68rem;
  }
  .profile {
    gap: 6px;
  }
  .profile > div {
    font-size: 0.65rem;
  }
  .profile small {
    font-size: 0.55rem;
  }
  .brand > span {
    font-size: 1.12rem;
  }
}
@media (max-width: 1120px) {
  .catalog-search {
    display: none;
  }
  .topnav a {
    font-size: 0.65rem;
  }
}
@media (max-width: 900px) {
  .topnav a {
    font-size: 0.7rem;
  }
}
/* Desktop proportions follow the supplied 1280px reference. */
@media (min-width: 901px) and (max-width: 1599px) {
  .topbar {
    min-height: 50px;
  }
  .brand {
    padding-block: 6px;
  }
  .brand img {
    width: 34px;
    height: 34px;
  }
  .account-tools {
    padding-block: 6px;
  }
  .hero {
    min-height: 139px;
    padding-top: 17px;
    padding-bottom: 12px;
  }
  .hero h1 {
    font-size: 3.9rem;
    line-height: 1;
  }
  .hero-subtitle {
    font-size: 1.05rem;
  }
  .hero-divider {
    height: 18px;
  }
  .hero-tagline {
    font-size: 0.64rem;
  }
  .preview-note {
    padding-bottom: 8px;
    font-size: 0.55rem;
  }
  .stat-card {
    min-height: 54px;
    padding: 5px 3px;
  }
  .stat-card strong {
    font-size: 1.22rem;
  }
  .stat-card span {
    font-size: 0.59rem;
  }
  .dashboard-layout {
    row-gap: 12px;
    grid-template-rows: auto auto auto;
  }
  .collection-toolbar {
    min-height: 44px;
  }
  .collection-grid {
    row-gap: 14px;
  }
  .card-caption {
    padding: 4px 3px 5px;
    min-height: 43px;
  }
  .card-number {
    font-size: 0.64rem;
  }
  .card-name {
    line-height: 1.2;
  }
  .card-state {
    font-size: 0.48rem;
    line-height: 1.2;
  }
  .detail-info {
    padding-top: 48px;
    padding-bottom: 10px;
  }
  .metadata {
    margin-top: 16px;
    font-size: 0.56rem;
  }
  .metadata > div {
    padding-block: 3px;
  }
  .detail-quote {
    padding-top: 12px;
    margin-top: 10px;
  }
  .detail-main {
    min-height: 305px;
  }
  .detail-portrait img {
    min-height: 305px;
  }
  .detail-actions {
    margin-bottom: 10px;
  }
  .lore-preview {
    min-height: 101px;
  }
  .lore-preview p {
    font-size: 0.64rem;
    line-height: 1.5;
  }
  .lore-preview .draft-label {
    display: block;
  }
  .dashboard-footer .panel-heading {
    padding-block: 8px;
  }
  .dashboard-footer .news-list li {
    padding-block: 9px;
  }
  .dashboard-footer .achievement-list li {
    padding-block: 6px;
  }
}
.event-panel:before {
  background:
    linear-gradient(90deg, #0b121bd9, #0b121b9c),
    url("../assets/spinarium/hero.webp") 75% center/cover;
}
@media (min-width: 901px) and (max-width: 1599px) {
  .hero {
    min-height: 130px;
    padding-top: 10px;
    padding-bottom: 8px;
  }
  .hero h1 {
    font-size: 3.85rem;
  }
  .hero-divider {
    height: 14px;
  }
  .dashboard-layout {
    grid-template-rows: max-content max-content auto;
  }
  .lore-preview {
    padding: 8px;
  }
  .lore-preview h3 {
    font-size: 0.86rem;
    margin-bottom: 4px;
  }
  .lore-preview p {
    line-height: 1.45;
  }
  .lore-preview button {
    font-size: 0.6rem;
    padding-top: 4px;
  }
  .lore-preview .draft-label {
    font-size: 0.48rem;
    margin-top: 3px;
  }
  .dashboard-footer .news-list li {
    padding-block: 7px;
  }
  .dashboard-footer .achievement-list li {
    padding-block: 5px;
  }
  .feed-panel,
  .event-panel {
    padding-bottom: 7px;
  }
}
.lore-preview .draft-label {
  display: block;
}
@media (min-width: 901px) and (max-width: 1599px) {
  .card-caption {
    min-height: 38px;
    padding: 3px;
  }
  .card-number {
    font-size: 0.61rem;
  }
  .card-name {
    font-size: 0.72rem;
  }
  .card-state {
    font-size: 0.45rem;
  }
  .dashboard-footer .panel-heading {
    padding-block: 5px;
  }
  .dashboard-footer .achievement-icon {
    width: 28px;
    height: 28px;
  }
  .dashboard-footer .achievement-list li {
    padding-block: 4px;
  }
}

/* Account entry and intentionally empty collections. */
.auth-gated .app-shell {
  grid-template-columns: minmax(0, 1fr);
}
.auth-gated .hero {
  min-height: 180px;
  padding-inline: clamp(22px, 7vw, 90px);
}
.auth-gated .hero-copy {
  text-align: left;
  max-width: 80%;
  width: 490px;
}
.auth-gated .hero-divider {
  justify-content: flex-start;
}
.auth-gated .hero-aside {
  padding-top: 15px;
}
.guest-tools {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 24px;
  font-size: 0.75rem;
  white-space: nowrap;
}
.guest-tools a:last-child {
  border: 1px solid #496a98;
  padding: 8px 12px;
  border-radius: 4px;
  color: #c5e2e8;
}
.sign-out {
  background: transparent;
  color: #bed1dc;
  padding: 8px;
  font-size: 0.65rem;
  border-left: 1px solid var(--line);
}
.profile > div {
  max-width: 140px;
  overflow: hidden;
}
.profile > div > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.auth-layout {
  max-width: 1040px;
  display: grid;
  grid-template-columns: minmax(0, 430px) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 90px);
  margin: 22px auto 42px;
  align-items: center;
  padding-inline: 18px;
}
.auth-panel {
  padding: 30px;
}
.auth-panel h2 {
  font-size: 2.15rem;
  line-height: 1.15;
  margin: 12px 0;
}
.auth-panel > p {
  font-size: 0.8rem;
  line-height: 1.7;
}
.auth-tabs {
  display: flex;
  gap: 25px;
  border-bottom: 1px solid var(--line);
  margin: 22px 0 20px;
}
.auth-tabs a {
  padding: 10px 0;
  font-size: 0.8rem;
  color: #b3c5d0;
  border-bottom: 1px solid transparent;
}
.auth-tabs a[aria-current] {
  color: #d7e8ff;
  border-color: #abd7de;
}
.auth-panel .availability-note {
  font-size: 0.75rem;
  line-height: 1.6;
  padding: 13px;
  margin: 12px 0 20px;
}
#auth-fields, #password-reset-fields {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.auth-field {
  display: grid;
  gap: 7px;
  margin-bottom: 17px;
  min-width: 0;
}
.auth-field label {
  font-size: 0.79rem;
  color: #d5e0e6;
}
.auth-field label > span {
  color: #a9bac8;
  font-size: 0.66rem;
}
.auth-field input,
.auth-field textarea,
.auth-field select {
  min-width: 0;
  width: 100%;
  border: 1px solid #3c5261;
  border-radius: 4px;
  background: #070e16;
  color: #e5edf1;
  font: inherit;
  padding: 11px 12px;
}
.auth-field input:disabled {
  opacity: 0.55;
}
.auth-submit {
  width: 100%;
  font-size: 0.83rem;
  min-height: 44px;
}
.auth-text-link {
  display: inline-block;
  font-size: 0.76rem;
  color: #bfdae1;
  margin-top: 12px;
}
.form-feedback {
  min-height: 22px;
  font-size: 0.8rem;
  line-height: 1.6;
  margin-top: 13px;
  color: #c3e0de;
}
.form-feedback.is-error {
  color: #ecc2ae;
}
.auth-panel .auth-policy {
  font-size: 0.65rem;
  margin-top: 22px;
  color: #aebecb;
}
.auth-policy a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.auth-introduction h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.2;
  margin: 14px 0 18px;
  color: #e2e7eb;
}
.auth-introduction > p {
  max-width: 440px;
  font-size: 0.85rem;
  line-height: 1.8;
}
.blank-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 26px 0 18px;
}
.blank-card {
  background: #000;
  border: 1px solid #24313c;
  border-radius: 3px;
  aspect-ratio: 0.74;
  min-width: 0;
  box-shadow: 0 8px 20px #0003;
}
.blank-card:before,
.blank-card:after {
  content: none !important;
}
.blank-preview .blank-card:nth-child(2) {
  transform: translateY(-8px);
  border-color: #40535e;
}
.admin-artwork-thumbnail {
  width: 60px;
  height: 80px;
  object-fit: contain;
  background: #000;
}
.collection-grid > .blank-card {
  aspect-ratio: 0.74;
}
.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(250px, 1fr);
  gap: 40px;
}
.admin-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.admin-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.admin-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.admin-catalog-item {
  display: grid;
  gap: 4px;
  text-align: left;
  background: #0c1722;
  border: 1px solid #364d5e;
  border-radius: 4px;
  padding: 14px;
  color: #dce5eb;
}
.admin-catalog-item > span {
  font-size: 0.68rem;
  color: #b7c6d0;
}
#admin-artwork {
  font-size: 0.7rem;
  padding: 10px;
}
@media (max-width: 900px) {
  .auth-layout {
    gap: 28px;
    padding-inline: 10px;
  }
  .auth-panel {
    padding: 24px;
  }
  .guest-tools {
    font-size: 0.7rem;
    padding: 10px 15px;
    gap: 12px;
  }
  .admin-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .guest-tools {
    gap: 9px;
    padding: 6px 4px;
    font-size: 0.65rem;
  }
  .guest-tools a:last-child {
    padding: 6px;
  }
  .auth-gated .brand > span {
    font-size: 1rem;
  }
  .auth-gated .brand {
    padding-inline: 10px;
    gap: 6px;
  }
  .auth-gated .brand img {
    width: 29px;
    height: 29px;
  }
  .auth-gated .hero {
    min-height: 166px;
    padding: 22px 16px;
  }
  .auth-gated .hero-copy {
    max-width: 100%;
  }
  .auth-gated .hero h1 {
    font-size: 2.7rem;
  }
  .auth-layout {
    grid-template-columns: 1fr;
    padding: 0;
    gap: 26px;
    margin-top: 12px;
  }
  .auth-panel {
    padding: 24px 20px;
  }
  .auth-panel h2 {
    font-size: 1.9rem;
  }
  .auth-introduction {
    padding: 4px 6px 16px;
  }
  .auth-introduction h2 {
    font-size: 2rem;
  }
  .blank-preview {
    max-width: 380px;
  }
  .admin-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .admin-actions {
    flex-wrap: wrap;
  }
  .sign-out {
    font-size: 0.65rem;
  }
  .auth-gated .page-footer {
    margin-top: 0;
  }
}
@media (max-width: 380px) {
  .guest-tools {
    font-size: 0.6rem;
    gap: 7px;
  }
  .auth-gated .brand > span {
    font-size: 0.9rem;
  }
  .auth-gated .brand img {
    width: 25px;
    height: 25px;
  }
  .auth-gated .brand {
    padding-inline: 8px;
    gap: 4px;
  }
}
/* The first entry is an isolated scroll reveal, then a continuous dashboard reveal. */
.first-login-intro {
  position: fixed; inset: 0; width: 100%; max-width: none;
  height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0;
  background: transparent; color: #edf1f4; overflow: hidden;
}
.first-login-intro::backdrop { background: transparent; }
.first-login-intro[open] { display: block; }
.intro-black-backdrop { position: absolute; inset: 0; background: #000; transition: opacity 1.4s ease; }
.first-login-intro[open] .intro-black-backdrop { animation: intro-black-in .35s ease both; }
.first-login-intro[data-phase="reveal"] .intro-black-backdrop { animation: none; opacity: 0; }
.intro-banner-position {
  position: absolute; top: 50%; left: 50%; width: min(1100px, 96vw);
  transform: translate(-50%, -50%); transition: top 1.9s ease-in-out, left 1.9s ease-in-out, transform 1.9s ease-in-out;
}
.intro-banner { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 12px 18px rgba(0,0,0,.65)); }
.intro-ribbon { fill: url(#intro-ribbon-fill); stroke: #7db2ff; stroke-width: 1.8; }
.intro-ribbon-stitch { fill: none; stroke: #7db2ff; stroke-width: .8; opacity: .65; }
.intro-banner text { fill: #e4eeff; font: 29px Georgia, "Times New Roman", serif; letter-spacing: 1px; }
.first-login-intro .intro-banner text { opacity: 0; }
.first-login-intro[data-phase="dark"] .intro-banner { opacity: 0; clip-path: inset(0 49.5%); }
.first-login-intro[data-phase="unfurl"] .intro-banner { animation: ribbon-unfurl 3.1s cubic-bezier(.2,.65,.25,1) both; }
.first-login-intro[data-phase="lettering"] .intro-banner text { animation: ribbon-lettering 1.8s ease both; }
.first-login-intro[data-phase="hold"] .intro-banner text,
.first-login-intro[data-phase="dock"] .intro-banner text,
.first-login-intro[data-phase="reveal"] .intro-banner text { opacity: 1; }
.first-login-intro[data-phase="dock"] .intro-banner-position,
.first-login-intro[data-phase="reveal"] .intro-banner-position {
  top: var(--dock-center, 100px); left: var(--dock-left, 50%); transform: translate(-50%, -50%) scale(var(--dock-scale, .55));
}
.intro-roll { fill: #304e76; stroke: #a7ceff; stroke-width: .6; opacity: 0; }
.first-login-intro[data-phase="unfurl"] .intro-roll-left { animation: ribbon-roll-left 3.1s cubic-bezier(.2,.65,.25,1) both; }
.first-login-intro[data-phase="unfurl"] .intro-roll-right { animation: ribbon-roll-right 3.1s cubic-bezier(.2,.65,.25,1) both; }
.intro-controls { position: absolute; bottom: max(24px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); display: flex; gap: 16px; justify-content: center; }
.intro-sound { border: 0; padding: 12px; color: #9fa8b1; background: transparent; font: inherit; }
.first-login-intro button:focus-visible { outline: 2px solid #a7ceff; outline-offset: 4px; }
.first-login-intro[data-phase="reveal"] .intro-controls { opacity: 0; pointer-events: none; }
.welcome-ribbon-dock { width: min(640px, 94%); aspect-ratio: 800 / 185; margin: 16px auto; }
.welcome-ribbon-dock .intro-roll { display: none; }
@keyframes intro-black-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes ribbon-unfurl {
  0% { clip-path: inset(0 49.5%); opacity: 0; }
  14% { clip-path: inset(0 46%); opacity: 1; }
  70% { clip-path: inset(0 9%); }
  100% { clip-path: inset(0 0); opacity: 1; }
}
@keyframes ribbon-lettering { from { opacity: 0; filter: blur(2px); } to { opacity: 1; filter: blur(0); } }
@keyframes ribbon-roll-left { 0% { transform: translate(0,0); opacity: 0; } 14% { opacity: .85; } 86% { transform: translate(-287px,43px); opacity: .65; } 100% { transform: translate(-310px,50px); opacity: 0; } }
@keyframes ribbon-roll-right { 0% { transform: translate(0,0); opacity: 0; } 14% { opacity: .85; } 86% { transform: translate(287px,43px); opacity: .65; } 100% { transform: translate(310px,50px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .first-login-intro *, .first-login-intro[open] .intro-black-backdrop { animation: none !important; transition: none !important; }
  .first-login-intro .intro-roll { display: none; }
}
/* A quiet entry keeps the first-login world reveal a surprise. */
body.intro-staging .topbar, body.intro-staging .sidebar,
body.intro-staging .hero, body.intro-staging #collection-notice,
body.intro-staging #dashboard-view, body.intro-staging .page-footer { opacity: 0; }
body.auth-gated .hero,
body.auth-gated .topnav,
body.auth-gated .guest-tools,
body.auth-gated .auth-introduction,
body.auth-gated .auth-panel > .eyebrow { display: none; }
body.auth-gated { background: #0a0c10; }
body.auth-gated .topbar { background: transparent; border-bottom: 0; box-shadow: none; }
body.auth-gated .app-shell { display: block; }
body.auth-gated #main-content { padding: 24px; background: transparent; }
body.auth-gated .auth-field label { font-size: .875rem; }
body.auth-gated .auth-field input, body.auth-gated .auth-submit { font-size: 1rem; }
body.auth-gated .auth-layout { display: block; max-width: 380px; margin: clamp(36px, 12vh, 120px) auto 60px; padding: 0; }
body.auth-gated .auth-panel { background: transparent; border: 0; box-shadow: none; padding: 0; }
body.auth-gated .auth-panel h2 { font: 500 1.75rem/1.3 "DM Sans", sans-serif; letter-spacing: 0; margin-bottom: 28px; }
body.auth-gated .auth-submit { background: #202731; color: #e7ebef; border: 1px solid #3e4855; box-shadow: none; }
body.auth-gated .auth-submit:hover { background: #2b3541; }
body.auth-gated.static-preview #auth-description,
body.auth-gated.static-preview #auth-availability,
body.auth-gated.static-preview .auth-tabs,
body.auth-gated.static-preview .auth-policy { display: none; }

/* Two primary destinations. Secondary navigation stays in a disclosure drawer. */
body:not(.auth-gated) .app-shell { display: block; }
body:not(.auth-gated) .topnav, body:not(.auth-gated) .notification-button { display: none; }
body:not(.auth-gated) .topbar { justify-content: space-between; }
body:not(.auth-gated) .mobile-menu { display: flex; align-items: center; gap: 8px; font-size: .875rem; min-height: 44px; padding: 10px; }
body:not(.auth-gated) .sidebar {
  position: fixed; top: 64px; bottom: 0; left: 0; width: min(290px, 88vw);
  height: auto; z-index: 30; overflow-y: auto;
  transform: translateX(-100%); visibility: hidden; pointer-events: none;
  transition: transform .2s ease, visibility .2s;
  box-shadow: 16px 0 40px #0009;
}
body:not(.auth-gated) .sidebar.is-open { transform: translateX(0); visibility: visible; pointer-events: auto; }
body:not(.auth-gated) .sidebar-story { display: none; }
body:not(.auth-gated) .side-links a,
body:not(.auth-gated) .side-links .menu-sign-out { font-size: .9375rem; min-height: 48px; }
body.hub-route .catalog-search { display: none; }
body.hub-route .hero { min-height: 190px; padding-block: 28px; }
body.hub-route .hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
body.hub-route .hero-aside, body.hub-route .hero-divider,
body.hub-route .hero-tagline, body.hub-route .hero .eyebrow { display: none; }
.home-hub { max-width: 850px; margin: 26px auto 44px; }
.hub-title { font-size: 1.5rem; margin-bottom: 18px; }
.hub-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.hub-choice { display: block; border: 1px solid #344551; padding: 30px; min-height: 190px; background: linear-gradient(145deg, #111b2bc9, #0a0c10ca); border-radius: 5px; transition: border-color .18s ease, background .18s ease; }
.hub-choice:hover { border-color: #7db2ff; background: #17263b; }
.hub-choice:focus-visible { outline: 2px solid #a7ceff; outline-offset: 5px; }
.hub-choice-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1px solid #3e5665; color: #a7ceff; margin-bottom: 18px; }
.hub-choice-icon svg { width: 24px; height: 24px; }
.hub-choice h3 { font-size: 1.65rem; margin-bottom: 9px; }
.hub-choice p { font-size: .9375rem; line-height: 1.5; }
.collection-page-title { font-size: 2rem; margin: 24px 0; }
.explore-tabs { display: flex; gap: 24px; border-bottom: 1px solid #2f3e48; padding: 20px 0; font-size: .9375rem; }
.explore-tabs a { padding: 8px 0; }
.explore-tabs a[aria-current="page"] { color: #d7e8ff; border-bottom: 1px solid #7db2ff; }
.collection-toolbar > .sort-box { gap: 10px; font-size: .875rem; }
body:not(.auth-gated) #dashboard-footer { display: none; }
body:not(.auth-gated) .dashboard-layout:not(.has-selection) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "stats" "collection"; }
.collection-page-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.collection-page-header .claim-entry { margin: 0; min-height: 44px; }
.collection-page-header .claim-entry, .stat-card span { font-size: .875rem; }
.collection-toolbar { flex-wrap: wrap; padding-block: 12px; }
.collection-search-help { margin: 0 0 14px; color: #b0bdd1; font-size: .75rem; line-height: 1.5; }
body.intro-staging #hub-view { opacity: 0; }
@media (max-width: 640px) {
  body.hub-route .hero { min-height: 150px; }
  .hub-choices { grid-template-columns: 1fr; gap: 14px; }
  .hub-choice { min-height: 110px; padding: 20px; display: grid; grid-template-columns: 42px 1fr; column-gap: 18px; align-items: center; }
  .hub-choice-icon { grid-row: 1 / 3; margin: 0; }
  .hub-choice h3 { font-size: 1.4rem; margin-bottom: 4px; }
  .hub-choice p { font-size: .875rem; }
  .home-hub { margin-top: 20px; }
  body:not(.auth-gated) .account-tools { padding: 0; gap: 8px; border: 0; }
  body:not(.auth-gated) .profile > div, body:not(.auth-gated) .avatar { display: none; }
}

/* Account records stay inside a server-authorized administrative view. */
.admin-accounts {
  min-width: 0;
  font-size: .875rem;
}
.accounts-heading,
.accounts-section-heading,
.accounts-detail-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.accounts-heading { margin-bottom: 24px; }
.accounts-heading > div { min-width: 0; }
.accounts-heading > button { flex-shrink: 0; }
.accounts-intro { max-width: 620px; }
.accounts-overview {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.accounts-stat {
  display: grid;
  gap: 5px;
  padding: 18px 20px;
  border: 1px solid #2e4058;
  border-radius: 5px;
  background: linear-gradient(140deg, #142137, #0d121a);
}
.accounts-stat strong {
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1.2;
  color: #d5e6ff;
}
.accounts-stat span { color: #b6c2d1; }
.accounts-filters {
  display: grid;
  grid-template-columns: minmax(130px, 1.1fr) minmax(180px, 2fr) minmax(110px, 1fr) minmax(120px, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 20px;
  border: 1px solid #2e4058;
  border-radius: 5px;
  background: #0b111b;
}
.accounts-filters .auth-field { margin: 0; }
.accounts-filters > button { margin-top: 26px; }
.admin-accounts .outlined-button {
  min-height: 44px;
  font-size: .875rem;
  padding: 10px 15px;
  border-color: #415e87;
  background: #142039;
  color: #e5efff;
}
.admin-accounts .outlined-button:hover:enabled {
  background: #203656;
  border-color: #7db2ff;
}
.admin-accounts .outlined-button:disabled {
  background: #101722;
  color: #9ba9bc;
  border-color: #344256;
}
.admin-accounts .auth-field label { font-size: .875rem; }
.admin-accounts .auth-field input,
.admin-accounts .auth-field select,
.admin-accounts .auth-field textarea { min-height: 44px; }
.accounts-field-hint {
  display: block;
  font-size: .75rem;
  line-height: 1.6;
  color: #aebad0;
}
.accounts-feedback {
  min-height: 1.5em;
  margin: 12px 0;
  color: #b9d9ff;
  line-height: 1.6;
}
.accounts-feedback.is-error { color: #ffcbb3; }
#accounts-overview-feedback:empty { min-height: 0; margin: 0; }
.accounts-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 22px;
  align-items: start;
  margin-top: 20px;
}
.accounts-directory,
.accounts-detail {
  min-width: 0;
  border: 1px solid #2e4058;
  border-radius: 5px;
  background: #0b111b;
  padding: 20px;
}
.accounts-section-heading { align-items: center; flex-wrap: wrap; margin-bottom: 15px; }
.accounts-section-heading h3 { margin: 0; }
.accounts-result-label { color: #aebad0; font-size: .75rem; }
.accounts-list {
  display: grid;
  gap: 8px;
  max-height: 610px;
  overflow-y: auto;
  padding: 4px;
  margin: -4px;
  scrollbar-color: #425b7e #0b111b;
  overscroll-behavior: contain;
}
.accounts-list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px 12px;
  width: 100%;
  text-align: left;
  color: #e4ecf9;
  background: #101a2a;
  border: 1px solid #2e4058;
  border-radius: 4px;
  padding: 14px;
}
.accounts-list-item:hover:enabled { background: #172742; border-color: #617da5; }
.accounts-list-item[aria-pressed="true"] {
  background: #1a2f4d;
  border-color: #7db2ff;
  box-shadow: inset 3px 0 #7db2ff;
}
.accounts-list-item:disabled { opacity: .7; }
.accounts-list-identity { display: grid; gap: 3px; min-width: 0; }
.accounts-list-identity strong { font-size: .9375rem; font-weight: 500; }
.accounts-list-email { font-size: .8125rem; color: #c0cbdd; }
.accounts-list-tags,
.accounts-detail-tags { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px; }
.accounts-list-tags { justify-content: flex-end; }
.accounts-list-uuid {
  grid-column: 1 / -1;
  font: .6875rem/1.6 ui-monospace, SFMono-Regular, Consolas, monospace;
  color: #a9b9cf;
}
.accounts-badge {
  display: inline-block;
  border: 1px solid #3b567d;
  border-radius: 3px;
  padding: 2px 7px;
  font-size: .6875rem;
  line-height: 1.5;
  white-space: nowrap;
  color: #d0e4ff;
  background: #162840;
}
.accounts-badge-active { background: #152938; border-color: #345c74; color: #c4e7fa; }
.accounts-badge-disabled,
.accounts-badge-unverified { background: #2a211e; border-color: #795744; color: #f2d1b8; }
.accounts-badge-owner { background: #242343; border-color: #686094; color: #e2d8ff; }
.accounts-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #293d59;
}
.accounts-page-label { color: #bbc7db; font-size: .8125rem; }
.accounts-detail { scroll-margin-top: 20px; }
.accounts-detail-empty,
.accounts-empty { padding: 20px 4px; color: #b0bdd1; }
.accounts-detail-empty { min-height: 210px; display: grid; place-items: center; text-align: center; }
.accounts-detail-heading { flex-wrap: wrap; align-items: center; }
.accounts-detail-heading h3 { margin: 0; max-width: 100%; }
.accounts-email-note {
  margin-block: 20px;
  padding: 14px;
  background: #101926;
  border-left: 2px solid #7db2ff;
}
.accounts-email-note strong { display: block; font-size: .9375rem; font-weight: 500; margin-bottom: 7px; }
.accounts-email-note p { margin-top: 9px; font-size: .75rem; }
.accounts-metadata { margin: 0; }
.accounts-metadata > div {
  display: grid;
  grid-template-columns: minmax(100px, .8fr) minmax(0, 1.2fr);
  gap: 14px;
  padding-block: 9px;
  border-bottom: 1px solid #24354d;
}
.accounts-metadata dt { color: #abbad0; }
.accounts-metadata dd { margin: 0; color: #e0eafb; }
.accounts-metadata > div:first-child dd { font: .75rem/1.7 ui-monospace, SFMono-Regular, Consolas, monospace; }
.accounts-profile-form { margin-top: 20px; padding-top: 20px; border-top: 1px solid #293d59; }
.accounts-profile-form .auth-field { margin-bottom: 12px; }
.accounts-profile-form > button { width: 100%; }
.accounts-access-actions { margin-block: 24px; }
.admin-accounts h4 { margin: 0 0 12px; font: 500 .9375rem/1.5 "DM Sans", Arial, sans-serif; }
.accounts-action-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.accounts-action-buttons > button { flex: 1 1 160px; }
.accounts-detail-tabs { display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid #314563; padding-bottom: 10px; }
.accounts-tab { min-height: 44px; flex: 1 1 150px; background: transparent; color: #bfcde1; padding: 10px; border: 1px solid transparent; border-radius: 4px; }
.accounts-tab:hover:enabled { background: #15243a; }
.accounts-tab[aria-pressed="true"] { color: #dceaff; border-color: #577aad; background: #162840; }
.accounts-tab:disabled { opacity: .65; }
.accounts-record-list { max-height: 440px; overflow-y: auto; scrollbar-color: #425b7e #0b111b; }
.accounts-record { padding: 16px 2px; border-bottom: 1px solid #263951; }
.accounts-record > strong { display: block; margin-bottom: 5px; font-weight: 500; }
.accounts-record p { color: #c0ccdf; font-size: .8125rem; line-height: 1.6; }
.accounts-record-meta { display: block; color: #a9b8ce; font-size: .6875rem; margin-top: 7px; }
.accounts-history-change { margin-top: 8px; }
.accounts-confirm-dialog { width: 580px; font-size: .875rem; }
.accounts-confirm-dialog h2 { font-size: 1.8rem; line-height: 1.25; }
.accounts-confirm-account { margin-top: 14px; padding: 12px; border: 1px solid #354c6a; border-radius: 4px; background: #0b1423; font-size: .8125rem; color: #d0e0f6; }
.accounts-confirm-check { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; padding-block: 10px; line-height: 1.6; }
.accounts-confirm-check input { width: 20px; height: 20px; min-width: 20px; margin: 2px 0 0; padding: 0; accent-color: #7db2ff; }
.accounts-confirm-check span { font-size: .875rem; color: #d7e1f1; }
.accounts-confirm-dialog .auth-field { margin-bottom: 0; }
.accounts-confirm-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.accounts-confirm-actions > button { flex: 1 1 150px; }
.accounts-reset-link-panel { margin-top: 22px; padding: 18px; border: 1px solid #6a739f; border-radius: 4px; background: #151c32; }
.accounts-reset-link-panel > p { margin-bottom: 16px; color: #d3def3; }
.accounts-reset-link-panel .auth-field { margin-bottom: 10px; }
.accounts-reset-link-panel input { font-size: .8125rem; }
.accounts-reset-link-panel .accounts-feedback { margin-bottom: 0; }

.ownership-records { margin: 20px 0; min-width: 0; }
.ownership-records h3 { margin: 0 0 12px; font-size: 1rem; }
.ownership-list { list-style: none; padding: 0; margin: 0; }
.ownership-list-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 14px 0; border-top: 1px solid #455769; }
.ownership-list-metadata { flex: 1 1 210px; min-width: 0; margin: 0; }
.ownership-list-metadata > div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 8px; margin: 5px 0; }
.ownership-list dt, .ownership-record-metadata dt { color: #abbad0; font-size: .8125rem; }
.ownership-list dd, .ownership-record-metadata dd { margin: 0; font-size: .8125rem; color: #e0eafb; }
.ownership-id { overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.ownership-record-link, .ownership-back { min-height: 44px; padding: 10px 14px; font-size: .8125rem; text-decoration: none; }
.ownership-record-page { max-width: 820px; min-width: 0; }
.ownership-back { width: fit-content; margin-bottom: 24px; }
.ownership-record-page h2 { margin: 0 0 24px; }
.ownership-record-status { line-height: 1.7; }
.ownership-record-page > button { min-height: 44px; padding: 10px 18px; margin-top: 16px; font-size: .875rem; }
.ownership-record-metadata { margin: 0 0 28px; }
.ownership-record-metadata > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; border-bottom: 1px solid #455769; padding: 14px 0; }
.ownership-veiling { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 24px; }
.ownership-veiling > div { flex: 1 1 260px; min-width: 0; }
.ownership-veiling h3 { font-size: 1.375rem; margin: 8px 0 14px; overflow-wrap: anywhere; }
.ownership-artwork { width: min(100%, 240px); max-height: 340px; object-fit: contain; border-radius: 4px; }
.ownership-description { color: #c8d4e3; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.showcase-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 16px; margin: 24px 0; }
.showcase-controls .auth-field { flex: 1 1 240px; margin: 0; max-width: 560px; }
.showcase-controls input { display: block; width: 100%; margin-top: 8px; }
.showcase-controls button, .showcase-back { min-height: 44px; padding: 10px 16px; }
.showcase-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 20px; }
.showcase-card { display: flex; flex-direction: column; overflow: hidden; min-width: 0; border: 1px solid #3d5266; border-radius: 6px; background: #0b121a; color: #edf4fc; text-decoration: none; }
.showcase-card:hover { border-color: #82b9dd; background: #101c28; }
.showcase-card-artwork { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #080c11; }
.showcase-card-copy { padding: 22px; display: flex; flex-direction: column; align-items: start; flex: 1; }
.showcase-card h3 { margin: 8px 0 12px; font-size: 1.3rem; overflow-wrap: anywhere; }
.showcase-release, .showcase-owned { display: inline-block; color: #b7d7f4; font-size: .875rem; line-height: 1.5; }
.showcase-excerpt { color: #b9c6d4; font-size: .9375rem; line-height: 1.65; overflow-wrap: anywhere; }
.showcase-view { margin-top: auto; padding-top: 18px; color: #c1e1fa; font-size: .875rem; }
.showcase-status { margin: 22px 0; color: #b9c6d4; line-height: 1.7; }
.showcase-back { display: inline-flex; width: fit-content; margin: 0 0 24px; text-decoration: none; }
.showcase-detail { display: flex; flex-wrap: wrap; align-items: start; gap: 32px; margin-top: 24px; }
.showcase-detail-artwork { width: min(100%, 360px); max-height: 520px; object-fit: contain; border-radius: 6px; }
.showcase-detail-copy { flex: 1 1 280px; min-width: 0; }
.showcase-description { line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.showcase-properties { margin: 24px 0; }
.showcase-properties > div { display: flex; flex-wrap: wrap; gap: 12px; border-bottom: 1px solid #354555; padding: 12px 0; }
.showcase-properties dt { min-width: 80px; color: #aebfd0; }
.showcase-properties dd { margin: 0; overflow-wrap: anywhere; }
.showcase-ownership { color: #b7c7d6; margin-top: 28px; }
@media (max-width: 420px) {
  .ownership-record-metadata > div { grid-template-columns: minmax(0, 1fr); gap: 5px; }
}
@media (max-width: 1100px) {
  .accounts-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .accounts-search-field { grid-column: span 2; }
  .accounts-filters > button { margin-top: 26px; }
  .accounts-overview { gap: 8px; }
  .accounts-stat { padding: 16px 12px; }
}
@media (max-width: 900px) {
  .accounts-layout { grid-template-columns: minmax(0, 1fr); }
  .accounts-list { max-height: 460px; }
  .accounts-detail-empty { min-height: 130px; }
}
@media (max-width: 640px) {
  .accounts-heading { flex-wrap: wrap; }
  .accounts-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .accounts-stat:last-child { grid-column: 1 / -1; }
  .accounts-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 16px; }
  .accounts-search-field { grid-column: 1 / -1; grid-row: 2; }
  .accounts-filters .auth-field:first-child { grid-column: 1 / -1; }
  .accounts-filters > button { grid-column: 1 / -1; margin-top: 0; }
  .accounts-directory, .accounts-detail { padding: 16px; }
  .accounts-list-item { grid-template-columns: minmax(0, 1fr); }
  .accounts-list-tags { justify-content: flex-start; }
  .accounts-metadata > div { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .accounts-confirm-dialog { padding: 24px; }
}
