:root {
  --ink: #11110f;
  --paper: #f1f0ea;
  --surface: #f8f7f2;
  --surface-2: #e7e5dd;
  --muted: #6f6e68;
  --line: #c9c6bc;
  --line-strong: #11110f;
  --acid: #d8ff3e;
  --acid-soft: #ecff9d;
  --orange: #ff5c35;
  --green: #087f4b;
  --red: #b52d2d;
  --amber: #9a5a00;
  --sidebar: 258px;
  --topbar: 72px;
  --radius: 0px;
  --shadow: 8px 8px 0 rgba(17, 17, 15, 0.16);
}

html[data-theme="dark"] {
  --ink: #f1f0ea;
  --paper: #11110f;
  --surface: #181815;
  --surface-2: #24231f;
  --muted: #a5a39a;
  --line: #3e3c35;
  --line-strong: #f1f0ea;
  --acid: #d8ff3e;
  --acid-soft: #34420d;
  --shadow: 8px 8px 0 rgba(216, 255, 62, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(
        to right,
        transparent calc(100% - 1px),
        rgba(17, 17, 15, 0.035) 1px
      )
      0 0 / 84px 84px,
    linear-gradient(
        to bottom,
        transparent calc(100% - 1px),
        rgba(17, 17, 15, 0.035) 1px
      )
      0 0 / 84px 84px,
    var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.45;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  touch-action: manipulation;
}

a {
  color: inherit;
  text-decoration: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--acid);
  outline-offset: 2px;
}

.site-noise {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow-y: auto;
  padding: 20px 16px 16px;
  color: #f1f0ea;
  background: #11110f;
  border-right: 1px solid #36352f;
}

.brand {
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 13px;
  align-items: center;
  padding: 0 2px 24px;
  border-bottom: 1px solid #36352f;
}

.brand-mark {
  display: grid;
  width: 66px;
  height: 66px;
  align-content: center;
  padding: 7px;
  color: #11110f;
  background: var(--acid);
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 19px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 0.8;
  transform: rotate(-2deg);
}

.brand-mark i {
  display: block;
  font-style: normal;
}

.brand-copy strong,
.brand-copy small {
  display: block;
}

.brand-copy strong {
  font-size: 12px;
  letter-spacing: 0.12em;
}

.brand-copy small {
  margin-top: 7px;
  color: #8d8c85;
  font-size: 9px;
  letter-spacing: 0.1em;
}

.nav-label {
  padding: 22px 3px 8px;
  color: #66655f;
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.main-nav {
  display: grid;
}

.main-nav a {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 7px;
  align-items: center;
  min-height: 49px;
  padding: 0 3px;
  color: #aaa89f;
  border-bottom: 1px solid #2d2c27;
  transition:
    color 150ms ease,
    padding 150ms ease,
    background 150ms ease;
}

.main-nav a > span,
.main-nav a > em {
  color: #66655f;
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.main-nav a b {
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.main-nav a:hover {
  color: #fff;
  padding-left: 10px;
}

.main-nav a.active {
  margin-inline: -16px;
  padding-inline: 19px;
  color: #11110f;
  background: var(--acid);
  border-color: var(--acid);
}

.main-nav a.active > span,
.main-nav a.active > em {
  color: #11110f;
}

.sidebar-card {
  margin-top: auto;
  padding: 15px;
  color: #d9d7ce;
  border: 1px solid #3c3b35;
  background: #181815;
}

.sidebar-card-top {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #7e7c74;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.pulse {
  width: 7px;
  height: 7px;
  background: var(--acid);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(216, 255, 62, 0.1);
}

.sidebar-card strong {
  display: block;
  margin-top: 14px;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 400;
}

.sidebar-card p {
  margin: 8px 0 15px;
  color: #8f8d85;
  font-size: 11px;
  line-height: 1.55;
}

.mini-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 11px;
  color: #11110f;
  background: #f1f0ea;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.mini-btn:hover {
  background: var(--acid);
}

.sidebar-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 10px;
  background: #393832;
  border: 1px solid #393832;
}

.icon-text {
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  min-height: 39px;
  color: #aaa89f;
  background: #11110f;
  border: 0;
  cursor: pointer;
}

.icon-text b {
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.icon-text:hover {
  color: #11110f;
  background: var(--acid);
}

.main {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto minmax(260px, 620px) auto;
  gap: 24px;
  align-items: center;
  min-height: var(--topbar);
  padding: 0 28px;
  color: var(--ink);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  border-bottom: 1px solid var(--line-strong);
  backdrop-filter: blur(18px);
}

.topbar-edition {
  display: flex;
  gap: 12px;
  align-items: baseline;
  white-space: nowrap;
}

.topbar-edition b {
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 15px;
  letter-spacing: -0.05em;
}

.topbar-edition span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.global-search {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  height: 42px;
  padding: 0 12px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
}

.global-search:hover {
  color: var(--ink);
  border-color: var(--line-strong);
  background: var(--surface);
}

.search-glyph {
  font-size: 21px;
}

.global-search > span:nth-child(2) {
  overflow: hidden;
  font-size: 11px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.global-search kbd {
  padding: 3px 6px;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.top-actions {
  display: flex;
  gap: 13px;
  align-items: center;
  justify-content: flex-end;
}

.live-dot {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.live-dot i,
.status i {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
}

.round-btn,
.mobile-menu {
  display: grid;
  place-items: center;
  height: 38px;
  min-width: 38px;
  color: var(--ink);
  background: var(--acid);
  border: 1px solid var(--line-strong);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
  cursor: pointer;
}

.mobile-menu {
  display: none;
}

.page {
  width: min(1510px, 100%);
  margin: 0 auto;
  padding: 32px 34px 70px;
}

.footer {
  display: flex;
  gap: 30px;
  justify-content: space-between;
  margin-top: auto;
  padding: 18px 34px 28px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-block;
  color: var(--muted);
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.section-head {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: end;
  margin: 8px 0 28px;
  padding: 0 0 24px;
  border-bottom: 2px solid var(--line-strong);
}

.section-number {
  align-self: start;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 47px;
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 0.8;
}

.section-number span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0;
}

.section-copy h1 {
  max-width: 900px;
  margin: 6px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(39px, 5vw, 72px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.94;
}

.section-copy p {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.head-actions {
  display: flex;
  gap: 2px;
  align-items: center;
  align-self: end;
  background: var(--line-strong);
  border: 1px solid var(--line-strong);
}

.btn {
  display: inline-flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 15px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 130ms ease,
    box-shadow 130ms ease,
    background 130ms ease;
}

.btn:hover {
  z-index: 2;
  background: var(--acid);
  box-shadow: 4px 4px 0 var(--line-strong);
  transform: translate(-2px, -2px);
}

.btn.primary {
  color: #11110f;
  background: var(--acid);
}

.btn.ghost {
  color: #f1f0ea;
  background: #11110f;
  border-color: #f1f0ea;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #f1f0ea;
  background: #11110f;
  border: 1px solid #11110f;
}

.hero::before {
  position: absolute;
  right: -90px;
  bottom: -170px;
  width: 440px;
  height: 440px;
  content: "";
  border: 1px solid rgba(216, 255, 62, 0.35);
  border-radius: 50%;
  box-shadow:
    0 0 0 70px rgba(216, 255, 62, 0.04),
    0 0 0 140px rgba(216, 255, 62, 0.03);
}

.hero-masthead {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 14px;
  padding: 12px 16px;
  color: #77766f;
  border-bottom: 1px solid #3a3934;
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.hero-masthead span:nth-child(2) {
  text-align: center;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(360px, 0.75fr);
  min-height: 530px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(38px, 6vw, 88px) clamp(28px, 5vw, 76px);
  border-right: 1px solid #3a3934;
}

.hero-kicker {
  color: var(--acid);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.hero h1 {
  display: grid;
  margin: 20px 0 24px;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: clamp(58px, 8.5vw, 132px);
  font-weight: 900;
  letter-spacing: -0.09em;
  line-height: 0.73;
  text-transform: uppercase;
}

.hero h1 span:last-child {
  color: var(--acid);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.08em;
  transform: translateX(6%);
}

.hero-copy > p {
  max-width: 620px;
  margin: 0;
  color: #aaa89f;
  font-size: 13px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.hero-archive {
  align-self: center;
  margin: 28px;
  color: #11110f;
  background: var(--acid);
  border: 1px solid #11110f;
  box-shadow: 10px 10px 0 rgba(216, 255, 62, 0.12);
  transform: rotate(1.3deg);
}

.archive-head,
.archive-foot {
  display: flex;
  justify-content: space-between;
  padding: 11px 12px;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.archive-head {
  border-bottom: 2px solid #11110f;
}

.archive-foot {
  border-top: 2px solid #11110f;
}

.archive-foot:hover {
  color: var(--acid);
  background: #11110f;
}

.preview-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 62px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(17, 17, 15, 0.35);
}

.preview-row > span {
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 10px;
}

.preview-row b,
.preview-row small {
  display: block;
}

.preview-row b {
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.preview-row small {
  margin-top: 3px;
  color: #53524c;
  font-size: 8px;
  letter-spacing: 0.07em;
}

.preview-row em {
  padding: 4px 5px;
  color: var(--acid);
  background: #11110f;
  font-size: 7px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.09em;
}

.hero-ticker {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: 10px 0;
  color: #11110f;
  background: var(--acid);
  border-top: 1px solid #11110f;
  white-space: nowrap;
}

.hero-ticker div {
  width: max-content;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 0.12em;
  animation: ticker 30s linear infinite;
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 18px;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.stat-card {
  min-height: 160px;
  padding: 18px;
  background: var(--surface);
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.stat-card > span,
.stat-card small {
  display: block;
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.stat-card strong {
  display: block;
  margin: 18px 0 13px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(43px, 5vw, 72px);
  font-weight: 400;
  letter-spacing: -0.07em;
  line-height: 0.8;
}

.stat-signal {
  color: #11110f;
  background: var(--acid);
}

.stat-signal > span,
.stat-signal small {
  color: #454a28;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.65fr);
  gap: 18px;
  margin-top: 18px;
}

.panel {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-strong);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding: 18px;
  border-bottom: 1px solid var(--line-strong);
}

.panel-head span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.panel-head h2 {
  margin: 5px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 400;
  letter-spacing: -0.04em;
}

.panel-head a {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.panel-head a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.category-bars {
  display: grid;
}

.category-bar {
  display: grid;
  grid-template-columns: 28px minmax(115px, 0.8fr) minmax(90px, 1fr) 25px;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
}

.category-bar:last-child {
  border-bottom: 0;
}

.category-bar em {
  color: var(--muted);
  font-size: 8px;
  font-style: normal;
}

.category-bar > span {
  overflow: hidden;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.category-bar:hover {
  color: #11110f;
  background: var(--acid);
}

.bar-track {
  height: 2px;
  overflow: hidden;
  background: var(--line);
}

.bar-track i {
  display: block;
  height: 100%;
  background: currentColor;
}

.featured-panel {
  display: grid;
  grid-template-rows: minmax(260px, 1fr) auto;
}

.featured-image {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  background: #d8d6cd;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.7) contrast(1.06);
  transition:
    transform 450ms ease,
    filter 450ms ease;
}

.featured-panel:hover img {
  filter: saturate(1) contrast(1);
  transform: scale(1.025);
}

.featured-image span {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 8px;
  color: #11110f;
  background: var(--acid);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.featured-copy {
  padding: 18px;
  border-top: 1px solid var(--line-strong);
}

.featured-copy > span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.featured-copy h2 {
  margin: 6px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 400;
  letter-spacing: -0.04em;
}

.featured-copy p {
  min-height: 35px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 10px;
}

.featured-copy > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.featured-copy strong {
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 14px;
}

.featured-copy a {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.directory-toolbar {
  position: sticky;
  top: calc(var(--topbar) + 8px);
  z-index: 30;
  display: grid;
  gap: 9px;
  margin-bottom: 13px;
  padding: 9px;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(15px);
}

.category-chips {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.chip {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  min-height: 37px;
  padding: 0 10px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}

.chip b {
  color: inherit;
  font-size: 8px;
}

.chip:hover,
.chip.active {
  color: #11110f;
  background: var(--acid);
  border-color: #11110f;
}

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

.search-input {
  position: relative;
  min-width: 230px;
  flex: 1;
}

.search-input span {
  position: absolute;
  top: 7px;
  left: 11px;
  z-index: 1;
  color: var(--muted);
  font-size: 20px;
}

.search-input input,
select {
  width: 100%;
  height: 42px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0;
  outline: 0;
}

.search-input input {
  padding: 0 12px 0 38px;
  font-size: 11px;
}

.search-input input:focus,
select:focus {
  border-color: var(--line-strong);
  box-shadow: inset 4px 0 0 var(--acid);
}

select {
  width: auto;
  min-width: 180px;
  padding: 0 34px 0 12px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.segmented {
  display: flex;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.segmented button {
  min-width: 55px;
  height: 40px;
  color: var(--muted);
  background: var(--surface);
  border: 0;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.segmented button.active {
  color: #11110f;
  background: var(--acid);
}

.directory-count {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.seller-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.seller-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 335px;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  transition:
    background 180ms ease,
    color 180ms ease;
}

.seller-card:hover {
  color: #11110f;
  background: var(--acid);
}

.seller-card-meta {
  display: grid;
  grid-template-columns: 37px 1fr auto;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  padding: 0 13px;
  border-bottom: 1px solid var(--line);
}

.seller-card:hover .seller-card-meta,
.seller-card:hover .card-footer {
  border-color: rgba(17, 17, 15, 0.35);
}

.seller-index {
  color: var(--muted);
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 9px;
}

.seller-card .category {
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.seller-card:hover .category,
.seller-card:hover .seller-index,
.seller-card:hover p,
.seller-card:hover .no-access {
  color: #42452a;
}

.fav-btn {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 1px solid currentColor;
  cursor: pointer;
}

.fav-btn:hover,
.fav-btn.active {
  color: #11110f;
  background: var(--acid);
  border-color: #11110f;
}

.seller-card:hover .fav-btn {
  background: transparent;
}

.seller-card:hover .fav-btn.active,
.seller-card:hover .fav-btn:hover {
  color: var(--acid);
  background: #11110f;
}

.seller-card-main {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-content: start;
  flex: 1;
  padding: 24px 16px 18px;
}

.seller-logo {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: var(--surface);
  background: var(--ink);
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 15px;
  letter-spacing: -0.08em;
}

.seller-card:hover .seller-logo {
  color: var(--acid);
  background: #11110f;
}

.seller-card h3 {
  align-self: center;
  margin: 0;
  overflow-wrap: anywhere;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: clamp(21px, 2vw, 31px);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.91;
  text-transform: uppercase;
}

.seller-card p {
  grid-column: 2;
  margin: 12px 0 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  line-height: 1.45;
}

.card-footer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 56px;
  padding: 9px 12px;
  border-top: 1px solid var(--line);
}

.status {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: var(--muted);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status.caution i,
.status.instruction i {
  background: var(--amber);
}

.status.recommended i {
  background: var(--green);
}

.status.open i,
.status.listed i {
  background: var(--muted);
}

.access-code {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-self: start;
  min-width: 0;
  padding: 5px 7px;
  overflow: hidden;
  color: var(--ink);
  background: transparent;
  border: 1px dashed currentColor;
  font-family: monospace;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: copy;
}

.access-code small {
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 6px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.no-access {
  color: var(--muted);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.card-link {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.card-link b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #11110f;
  background: var(--acid);
  border: 1px solid #11110f;
}

.seller-card:hover .card-link b {
  color: var(--acid);
  background: #11110f;
}

.seller-list {
  display: grid;
  border-top: 1px solid var(--line-strong);
}

.seller-list .seller-card {
  display: grid;
  grid-template-columns: 155px minmax(0, 1fr) 320px;
  min-height: 132px;
  border-left: 1px solid var(--line-strong);
}

.seller-list .seller-card-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 100%;
  padding: 14px;
  border-right: 1px solid var(--line);
  border-bottom: 0;
}

.seller-list .fav-btn {
  align-self: flex-end;
}

.seller-list .seller-card-main {
  grid-template-columns: 50px 1fr;
  align-content: center;
  padding: 16px 22px;
}

.seller-list .seller-logo {
  width: 50px;
  height: 50px;
}

.seller-list .seller-card h3 {
  font-size: 29px;
}

.seller-list .seller-card p {
  margin-top: 7px;
}

.seller-list .card-footer {
  grid-template-columns: 1fr;
  align-content: center;
  padding: 14px 18px;
  border-top: 0;
  border-left: 1px solid var(--line);
}

.table-wrap {
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--line-strong);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 790px;
}

th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 13px 12px;
  color: #11110f;
  background: var(--acid);
  border-bottom: 1px solid #11110f;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-align: left;
  text-transform: uppercase;
}

td {
  padding: 13px 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 10px;
}

tbody tr:hover {
  color: #11110f;
  background: var(--acid-soft);
}

.row-number {
  color: var(--muted);
  font-family: monospace;
  font-size: 8px;
}

.batch-pill {
  display: inline-block;
  padding: 5px 7px;
  color: #f1f0ea;
  background: #11110f;
  font-family: monospace;
  font-size: 9px;
  font-weight: 700;
}

.batch-pill.budget {
  color: #11110f;
  background: var(--acid);
  border: 1px solid #11110f;
}

.size-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}

.size-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.size-group {
  min-width: 0;
  background: var(--surface);
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.size-group h3 {
  margin: 0;
  padding: 14px;
  color: #11110f;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line-strong);
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html[data-theme="dark"] .size-group h3 {
  color: var(--ink);
}

.size-group.tts h3 {
  background: var(--acid);
  color: #11110f;
}

.size-row {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
  font-size: 9px;
}

.size-row span {
  font-weight: 700;
}

.size-row b {
  font-family: monospace;
  white-space: nowrap;
}

.assistant-card {
  position: sticky;
  top: calc(var(--topbar) + 18px);
  padding: 22px;
  color: #11110f;
  background: var(--acid);
  border: 1px solid #11110f;
  box-shadow: var(--shadow);
}

.assistant-card .eyebrow {
  color: #4b5229;
}

.assistant-card h2 {
  margin: 9px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.05em;
}

.assistant-card p {
  margin: 0 0 22px;
  color: #4b5229;
  font-size: 10px;
}

.assistant-card label {
  display: block;
  margin: 12px 0 5px;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.assistant-card select {
  width: 100%;
  color: #11110f;
  background: #f5f4ef;
  border-color: #11110f;
}

.assistant-card .btn.primary {
  color: #f1f0ea;
  background: #11110f;
}

.size-result {
  display: none;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(17, 17, 15, 0.4);
}

.size-result.show {
  display: block;
}

.size-result small {
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.size-result strong {
  display: block;
  margin-top: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 58px;
  font-weight: 400;
  line-height: 0.9;
}

.size-result p {
  margin-top: 10px;
  color: #11110f;
  font-family: monospace;
}

.find-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-strong);
  border: 1px solid var(--line-strong);
}

.find-card {
  min-width: 0;
  background: var(--surface);
}

.find-image {
  position: relative;
  aspect-ratio: 1 / 1.08;
  overflow: hidden;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line-strong);
}

.find-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.04);
  transition:
    filter 300ms ease,
    transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.find-card:hover .find-image img {
  filter: saturate(1) contrast(1);
  transform: scale(1.035);
}

.find-image .fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  color: #11110f;
  background: #f1f0ea;
}

.find-index {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 6px;
  color: #11110f;
  background: var(--acid);
  font-family: monospace;
  font-size: 8px;
  font-weight: 900;
}

.image-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.find-body {
  padding: 14px;
}

.find-title-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: start;
}

.find-body h3 {
  margin: 0;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 18px;
  letter-spacing: -0.045em;
  line-height: 1;
  text-transform: uppercase;
}

.find-title-row .card-link {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #11110f;
  background: var(--acid);
  border: 1px solid #11110f;
}

.find-body p {
  min-height: 34px;
  margin: 9px 0 18px;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  line-height: 1.4;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}

.price-row strong {
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 17px;
  letter-spacing: -0.04em;
}

.price-row strong small {
  font-family: Arial, sans-serif;
  font-size: 7px;
  letter-spacing: 0.08em;
}

.price-row span {
  color: var(--muted);
  font-family: monospace;
  font-size: 8px;
}

.outfit-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(380px, 0.85fr);
  gap: 18px;
}

.outfit-hero {
  position: relative;
  min-height: 750px;
  overflow: hidden;
  color: #f1f0ea;
  background: #11110f;
  border: 1px solid #11110f;
}

.outfit-hero > img {
  width: 100%;
  height: 100%;
  min-height: 750px;
  object-fit: cover;
  image-rendering: auto;
  filter: grayscale(0.25) contrast(1.08);
}

.outfit-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.82));
}

.outfit-number {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  color: var(--acid);
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 50px;
  letter-spacing: -0.09em;
  line-height: 0.72;
}

.outfit-copy {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  padding: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.outfit-copy .eyebrow {
  color: var(--acid);
}

.outfit-copy h2 {
  margin: 7px 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(45px, 6vw, 82px);
  font-weight: 400;
  letter-spacing: -0.07em;
  line-height: 0.85;
}

.outfit-copy p {
  color: #b8b6ae;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.7;
}

.outfit-copy a {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 12px;
  color: #11110f;
  background: var(--acid);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.outfit-items {
  display: grid;
  align-content: start;
  gap: 1px;
  background: var(--line-strong);
  border: 1px solid var(--line-strong);
}

.outfit-item {
  display: grid;
  grid-template-columns: minmax(145px, 0.8fr) minmax(0, 1.2fr);
  min-height: 240px;
  background: var(--surface);
}

.outfit-item-image {
  position: relative;
  overflow: hidden;
  border-right: 1px solid var(--line-strong);
}

.outfit-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.outfit-item:hover img {
  transform: scale(1.04);
}

.outfit-item-image span {
  position: absolute;
  top: 9px;
  left: 9px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #11110f;
  background: var(--acid);
  font-family: monospace;
  font-size: 8px;
  font-weight: 900;
}

.outfit-item > div:last-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
}

.outfit-item h3 {
  margin: 8px 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
}

.outfit-item a {
  align-self: flex-start;
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.empty {
  grid-column: 1 / -1;
  min-height: 230px;
  padding: 60px 20px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  text-align: center;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: none;
  background: rgba(0, 0, 0, 0.62);
}

.overlay.show {
  display: block;
}

.dialog,
.search-dialog {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: 12px 12px 0 rgba(17, 17, 15, 0.28);
}

.dialog::backdrop,
.search-dialog::backdrop {
  background: rgba(17, 17, 15, 0.72);
  backdrop-filter: blur(5px);
}

.dialog {
  width: min(670px, calc(100vw - 28px));
  padding: 0;
}

.detail {
  padding: 28px;
}

.close-x {
  float: right;
  min-height: 31px;
  padding: 0 8px;
  font-size: 7px;
}

.detail-head {
  display: grid;
  grid-template-columns: 54px 66px 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 34px;
  padding-bottom: 22px;
  border-bottom: 2px solid var(--line-strong);
}

.detail-number {
  align-self: start;
  color: var(--muted);
  font-family: monospace;
  font-size: 9px;
}

.detail-head .seller-logo {
  width: 66px;
  height: 66px;
}

.detail-head h2 {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: clamp(35px, 7vw, 62px);
  letter-spacing: -0.08em;
  line-height: 0.83;
}

.detail-description {
  max-width: 560px;
  margin: 25px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.5;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.detail-box {
  min-height: 82px;
  padding: 14px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.detail-box small,
.detail-box b {
  display: block;
}

.detail-box small {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.detail-box b {
  font-family: monospace;
  font-size: 14px;
}

.detail-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.search-dialog {
  width: min(720px, calc(100vw - 24px));
  max-height: min(76vh, 700px);
  padding: 0;
}

.search-head {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 8px;
  align-items: center;
  min-height: 65px;
  padding: 0 14px;
  border-bottom: 2px solid var(--line-strong);
}

.search-head > span {
  font-size: 25px;
}

.search-head input {
  width: 100%;
  height: 62px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
}

.search-head button {
  padding: 6px 8px;
  color: #11110f;
  background: var(--acid);
  border: 1px solid #11110f;
  font-size: 8px;
  font-weight: 900;
}

.search-meta {
  display: flex;
  justify-content: space-between;
  padding: 8px 14px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.command-results {
  max-height: 55vh;
  overflow: auto;
}

.command-item {
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  min-height: 68px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.command-item:hover {
  color: #11110f;
  background: var(--acid);
}

.command-item > i {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  color: var(--surface);
  background: var(--ink);
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 10px;
  font-style: normal;
}

.command-item b,
.command-item small {
  display: block;
}

.command-item b {
  font-size: 11px;
}

.command-item small {
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.command-item em {
  color: var(--muted);
  font-size: 7px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  padding: 12px 15px;
  color: #11110f;
  background: var(--acid);
  border: 1px solid #11110f;
  box-shadow: 5px 5px 0 rgba(17, 17, 15, 0.3);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 170ms ease,
    transform 170ms ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1220px) {
  .seller-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .find-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  }
  .hero h1 {
    font-size: clamp(62px, 9vw, 108px);
  }
}

@media (max-width: 1030px) {
  :root {
    --sidebar: 230px;
  }
  .topbar {
    grid-template-columns: auto 1fr auto;
    gap: 14px;
  }
  .topbar-edition span {
    display: none;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .featured-panel {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
  }
  .featured-image {
    min-height: 300px;
  }
  .featured-copy {
    border-top: 0;
    border-left: 1px solid var(--line-strong);
  }
  .size-layout {
    grid-template-columns: 1fr;
  }
  .assistant-card {
    position: static;
  }
  .outfit-layout {
    grid-template-columns: 1fr;
  }
  .outfit-hero {
    min-height: 620px;
  }
  .outfit-hero > img {
    min-height: 620px;
  }
}

@media (max-width: 820px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    position: fixed;
    left: 0;
    width: min(310px, 88vw);
    transform: translateX(-102%);
    transition: transform 220ms ease;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .topbar {
    grid-template-columns: auto 1fr auto;
    padding: 0 15px;
  }
  .mobile-menu {
    display: grid;
    min-width: 50px;
  }
  .topbar-edition {
    display: none;
  }
  .global-search {
    min-width: 0;
  }
  .live-dot {
    display: none;
  }
  .page {
    padding: 22px 16px 55px;
  }
  .footer {
    padding-inline: 16px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-copy {
    border-right: 0;
    border-bottom: 1px solid #3a3934;
  }
  .hero-archive {
    margin: 26px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .section-head {
    grid-template-columns: 65px 1fr;
  }
  .section-number {
    font-size: 36px;
  }
  .head-actions {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .find-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .size-groups {
    grid-template-columns: 1fr;
  }
  .seller-list .seller-card {
    grid-template-columns: 110px 1fr;
  }
  .seller-list .card-footer {
    grid-column: 1 / -1;
    grid-template-columns: auto 1fr auto;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 570px) {
  body {
    background-size: 52px 52px;
  }
  .topbar {
    min-height: 64px;
  }
  .global-search > span:nth-child(2) {
    font-size: 0;
  }
  .global-search > span:nth-child(2)::after {
    content: "SEARCH";
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.1em;
  }
  .global-search kbd {
    display: none;
  }
  .round-btn {
    min-width: 34px;
    height: 34px;
  }
  .page {
    padding-inline: 11px;
  }
  .hero-masthead {
    grid-template-columns: 1fr auto;
  }
  .hero-masthead span:nth-child(2) {
    display: none;
  }
  .hero-copy {
    padding: 42px 20px;
  }
  .hero h1 {
    font-size: clamp(46px, 15vw, 64px);
  }
  .hero h1 span:last-child {
    transform: none;
  }
  .hero-copy > p {
    font-size: 11px;
  }
  .hero-actions {
    display: grid;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .hero-archive {
    margin: 18px;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stat-card {
    min-height: 125px;
    padding: 13px;
  }
  .stat-card strong {
    font-size: 42px;
  }
  .section-head {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .section-number {
    font-size: 28px;
  }
  .section-copy h1 {
    font-size: 41px;
  }
  .directory-toolbar {
    position: static;
  }
  .filters {
    display: grid;
    grid-template-columns: 1fr auto;
  }
  .filters select {
    grid-column: 1 / -1;
    width: 100%;
  }
  .seller-grid {
    grid-template-columns: 1fr;
  }
  .seller-card {
    min-height: 310px;
  }
  .seller-list .seller-card {
    display: flex;
  }
  .seller-list .seller-card-meta {
    flex-direction: row;
    min-height: 42px;
  }
  .seller-list .seller-card-main {
    grid-template-columns: 58px 1fr;
  }
  .seller-list .card-footer {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
  .find-grid {
    grid-template-columns: 1fr;
  }
  .find-image {
    aspect-ratio: 1.15 / 1;
  }
  .featured-panel {
    display: block;
  }
  .featured-copy {
    border-left: 0;
    border-top: 1px solid var(--line-strong);
  }
  .category-bar {
    grid-template-columns: 24px minmax(95px, 1fr) 70px 20px;
    padding-inline: 10px;
  }
  .outfit-hero,
  .outfit-hero > img {
    min-height: 550px;
  }
  .outfit-copy {
    padding: 20px;
  }
  .outfit-item {
    grid-template-columns: 130px 1fr;
    min-height: 190px;
  }
  .detail {
    padding: 17px;
  }
  .detail-head {
    grid-template-columns: 42px 1fr;
  }
  .detail-head .seller-logo {
    display: none;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .footer {
    display: grid;
  }
}

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

/* =========================================================
   V3 — readability pass + currency desk
   ========================================================= */
:root {
  --radius: 12px;
  --shadow: 0 14px 36px rgba(17, 17, 15, 0.08);
  --shadow-hover: 0 20px 50px rgba(17, 17, 15, 0.14);
}

html[data-theme="dark"] {
  --shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
  --shadow-hover: 0 20px 50px rgba(0, 0, 0, 0.42);
}

body {
  font-size: 15.5px;
  line-height: 1.6;
  background:
    linear-gradient(to right, rgba(17, 17, 15, 0.018) 1px, transparent 1px) 0 0 / 96px 96px,
    linear-gradient(to bottom, rgba(17, 17, 15, 0.018) 1px, transparent 1px) 0 0 / 96px 96px,
    var(--paper);
}

.page {
  width: min(1380px, 100%);
  padding: 42px 42px 82px;
}

.topbar {
  min-height: 76px;
  padding-inline: 32px;
  border-bottom-color: var(--line);
  box-shadow: 0 8px 26px rgba(17, 17, 15, 0.04);
}

.global-search,
.round-btn,
.mobile-menu,
.btn,
.search-input input,
select,
.segmented,
.segmented button {
  border-radius: 8px;
}

.global-search {
  height: 44px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
}

.global-search > span:nth-child(2) {
  font-size: 12px;
}

.section-head {
  grid-template-columns: 78px minmax(0, 1fr) auto;
  gap: 26px;
  margin: 12px 0 34px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line-strong);
}

.section-number {
  font-size: 41px;
}

.section-copy h1 {
  max-width: 880px;
  margin: 7px 0 12px;
  font-size: clamp(40px, 4.7vw, 66px);
  line-height: 1;
}

.section-copy p {
  max-width: 780px;
  color: color-mix(in srgb, var(--ink) 58%, transparent);
  font-size: 14px;
  line-height: 1.7;
}

.eyebrow {
  font-size: 9px;
  letter-spacing: 0.14em;
}

.hero {
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.hero-copy > p {
  font-size: 14px;
  line-height: 1.75;
}

.hero-archive {
  border-radius: 10px;
  overflow: hidden;
}

.stats-grid {
  gap: 14px;
  margin-top: 20px;
  border: 0;
}

.stat-card {
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(17, 17, 15, 0.045);
}

.stat-card strong {
  margin: 20px 0 15px;
}

.dashboard-grid {
  gap: 20px;
  margin-top: 20px;
}

.panel {
  border-color: var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.panel-head {
  padding: 21px 22px;
  border-bottom-color: var(--line);
}

.panel-head h2 {
  font-size: 29px;
}

.directory-toolbar {
  top: calc(var(--topbar) + 12px);
  gap: 12px;
  margin-bottom: 18px;
  padding: 12px;
  border-color: var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(17, 17, 15, 0.07);
}

.category-chips {
  gap: 7px;
}

.chip {
  min-height: 39px;
  padding-inline: 13px;
  border-radius: 999px;
  font-size: 9px;
}

.chip:hover,
.chip.active {
  border-color: #11110f;
}

.filters {
  gap: 10px;
}

.search-input input,
select {
  height: 44px;
  border-color: var(--line);
}

.search-input input {
  font-size: 12px;
}

select {
  font-size: 10px;
}

.directory-count {
  margin: 2px 2px 12px;
  font-size: 9px;
}

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

.seller-card {
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 26px rgba(17, 17, 15, 0.05);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.seller-card:hover {
  color: var(--ink);
  background: var(--surface);
  border-color: color-mix(in srgb, var(--ink) 55%, var(--line));
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.seller-card:hover .seller-card-meta,
.seller-card:hover .card-footer {
  border-color: var(--line);
}

.seller-card:hover .category,
.seller-card:hover .seller-index,
.seller-card:hover p,
.seller-card:hover .no-access {
  color: var(--muted);
}

.seller-card:hover .seller-logo {
  color: #11110f;
  background: var(--acid);
}

.seller-card:hover .fav-btn {
  color: var(--ink);
}

.seller-card-main {
  padding: 26px 19px 21px;
}

.seller-card h3 {
  font-size: clamp(22px, 1.8vw, 29px);
  line-height: 0.98;
}

.seller-card p {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.58;
}

.card-footer {
  min-height: 61px;
  padding: 11px 14px;
}

.status {
  font-size: 8px;
}

.card-link {
  font-size: 9px;
}

.seller-list {
  gap: 12px;
  border: 0;
}

.seller-list .seller-card {
  border: 1px solid var(--line);
  border-radius: 12px;
}

.table-wrap {
  border-color: var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

th {
  padding: 15px 14px;
  font-size: 9px;
}

td {
  padding: 15px 14px;
  font-size: 12px;
  line-height: 1.45;
}

.find-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  background: transparent;
  border: 0;
}

.find-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 26px rgba(17, 17, 15, 0.05);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.find-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.find-image {
  border-bottom-color: var(--line);
}

.find-body {
  padding: 18px;
}

.find-body h3 {
  font-size: 19px;
  line-height: 1.08;
}

.find-body p {
  min-height: 42px;
  margin: 11px 0 20px;
  font-size: 12.5px;
  line-height: 1.55;
}

.price-row strong {
  font-size: 19px;
}

.price-row span {
  font-size: 10px;
}

.fx-strip {
  display: flex;
  gap: 22px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 15px 16px 15px 19px;
  color: #f1f0ea;
  background: #11110f;
  border-radius: 12px;
}

.fx-strip > div {
  display: flex;
  gap: 13px;
  align-items: baseline;
  flex-wrap: wrap;
}

.fx-strip span,
.fx-strip small {
  color: #99978f;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.fx-strip strong {
  color: var(--acid);
  font-size: 18px;
  letter-spacing: -0.03em;
}

.fx-strip .btn {
  flex: none;
}

/* Currency converter */
.currency-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.6fr);
  min-height: 290px;
  overflow: hidden;
  color: #f1f0ea;
  background: #11110f;
  border: 1px solid #11110f;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.currency-hero::after {
  position: absolute;
  right: -120px;
  bottom: -185px;
  width: 420px;
  height: 420px;
  content: "¥";
  color: rgba(216, 255, 62, 0.08);
  font-family: Georgia, serif;
  font-size: 420px;
  line-height: 1;
  pointer-events: none;
}

.currency-hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 52px;
  border-right: 1px solid #393832;
}

.currency-hero-copy .eyebrow {
  color: var(--acid);
}

.currency-hero-copy h2 {
  margin: 13px 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 5.7vw, 80px);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.95;
}

.currency-hero-copy h2 span {
  color: var(--acid);
  font-family: Arial, sans-serif;
  font-weight: 900;
}

.currency-hero-copy h2 i {
  color: #77766f;
  font-size: 0.55em;
  font-weight: 400;
}

.currency-hero-copy p {
  max-width: 700px;
  margin: 0;
  color: #aaa89f;
  font-size: 13px;
  line-height: 1.7;
}

.currency-rate-block {
  position: relative;
  z-index: 2;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 38px;
}

.currency-rate-block > small {
  color: #88867f;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.currency-rate-block > div {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin-top: 10px;
}

.currency-rate-block strong {
  color: var(--acid);
  font-family: "Arial Black", Arial, sans-serif;
  font-size: clamp(48px, 5vw, 74px);
  letter-spacing: -0.08em;
  line-height: 0.9;
}

.currency-rate-block > div span {
  color: #88867f;
  font-size: 11px;
  font-weight: 900;
}

.currency-rate-block p {
  margin: 13px 0 22px;
  color: #aaa89f;
  font-size: 11px;
}

.rate-refresh {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  align-self: flex-start;
  min-height: 38px;
  padding: 0 12px;
  color: #f1f0ea;
  background: #1b1b18;
  border: 1px solid #45443d;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
}

.rate-refresh:hover {
  color: #11110f;
  background: var(--acid);
  border-color: var(--acid);
}

.fx-status-dot {
  width: 7px;
  height: 7px;
  background: #76746d;
  border-radius: 50%;
}

.fx-status-dot.loading {
  background: var(--amber);
  animation: fxPulse 900ms ease-in-out infinite alternate;
}

.fx-status-dot.live {
  background: #38c67a;
  box-shadow: 0 0 0 4px rgba(56, 198, 122, 0.12);
}

.fx-status-dot.fallback {
  background: #f2a33a;
}

@keyframes fxPulse {
  to { opacity: 0.35; }
}

.currency-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(340px, 0.68fr);
  gap: 18px;
  margin-top: 18px;
  align-items: start;
}

.currency-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.currency-form-card {
  padding: 24px;
}

.currency-card-head {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.currency-card-head span,
.receipt-head span,
.currency-reference-head > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.currency-card-head h3 {
  margin: 5px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  font-weight: 400;
  letter-spacing: -0.04em;
}

.rate-source {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--surface-2);
  border-radius: 10px;
}

.rate-source button {
  min-height: 34px;
  padding: 0 10px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 7px;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
}

.rate-source button.active {
  color: #11110f;
  background: var(--acid);
  box-shadow: 0 2px 8px rgba(17, 17, 15, 0.12);
}

.currency-big-input {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-top: 24px;
  padding: 17px 20px;
  background: color-mix(in srgb, var(--surface-2) 58%, var(--surface));
  border: 1px solid var(--line);
  border-radius: 12px;
}

.currency-symbol {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: #11110f;
  background: var(--acid);
  border-radius: 10px;
  font-size: 29px;
  font-weight: 900;
}

.currency-big-input input {
  min-width: 0;
  width: 100%;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: clamp(38px, 5vw, 64px);
  letter-spacing: -0.07em;
}

.currency-big-input b {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.09em;
}

.quick-amounts {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
  margin: 13px 2px 25px;
}

.quick-amounts > span {
  margin-right: 4px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.quick-amounts button {
  min-height: 30px;
  padding: 0 9px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}

.quick-amounts button:hover {
  color: #11110f;
  background: var(--acid);
  border-color: #11110f;
}

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

.currency-fields > label,
.manual-rate-row {
  display: grid;
  gap: 7px;
}

.currency-fields > label > span,
.manual-rate-row > label {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.currency-fields label > div,
.manual-rate-row > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 48px;
  padding: 0 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
}

.currency-fields input,
.manual-rate-row input,
.reverse-box input {
  min-width: 0;
  width: 100%;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 15px;
  font-weight: 800;
}

.currency-fields b,
.manual-rate-row b,
.reverse-box label b {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.manual-rate-row {
  grid-template-columns: minmax(120px, 0.45fr) minmax(220px, 0.55fr);
  align-items: center;
  margin-top: 17px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.manual-rate-row > div {
  grid-template-columns: auto minmax(80px, 1fr) auto;
  gap: 8px;
}

.manual-rate-row > div span {
  color: var(--muted);
  font-size: 10px;
}

.currency-receipt {
  position: sticky;
  top: calc(var(--topbar) + 18px);
  color: #f1f0ea;
  background: #11110f;
  border-color: #11110f;
}

.receipt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid #36352f;
}

.receipt-head span,
.receipt-head small {
  color: #85837c;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.receipt-total {
  padding: 28px 22px 25px;
  border-bottom: 1px solid #36352f;
}

.receipt-total > small {
  color: #9a9890;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.receipt-total strong {
  display: block;
  margin: 9px 0 12px;
  color: var(--acid);
  font-family: "Arial Black", Arial, sans-serif;
  font-size: clamp(42px, 4.4vw, 62px);
  letter-spacing: -0.075em;
  line-height: 0.95;
  overflow-wrap: anywhere;
}

.receipt-total p {
  margin: 0;
  color: #8d8b84;
  font-family: monospace;
  font-size: 10px;
}

.receipt-lines {
  padding: 8px 20px;
}

.receipt-lines > div {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  border-bottom: 1px solid #2c2b27;
}

.receipt-lines span {
  color: #9b9991;
  font-size: 11px;
}

.receipt-lines b {
  font-family: monospace;
  font-size: 11px;
}

.reverse-box {
  margin: 15px;
  padding: 15px;
  color: #11110f;
  background: var(--acid);
  border-radius: 10px;
}

.reverse-box > span {
  display: block;
  margin-bottom: 10px;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.reverse-box label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 40px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(17, 17, 15, 0.24);
  border-radius: 8px;
}

.reverse-box input {
  color: #11110f;
}

.reverse-box label b {
  color: #55562e;
}

.reverse-box > div {
  display: flex;
  gap: 8px;
  align-items: baseline;
  justify-content: flex-end;
  margin-top: 10px;
}

.reverse-box strong {
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 28px;
  letter-spacing: -0.05em;
}

.reverse-box > div span {
  font-size: 9px;
  font-weight: 900;
}

.currency-reference {
  margin-top: 18px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.currency-reference-head {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: space-between;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
}

.currency-reference-head strong {
  font-size: 11px;
}

.currency-reference-head i {
  color: var(--green);
  font-family: monospace;
  font-style: normal;
}

.currency-reference-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.currency-reference-grid > div {
  padding: 20px;
  border-right: 1px solid var(--line);
}

.currency-reference-grid > div:last-child {
  border-right: 0;
}

.currency-reference-grid span,
.currency-reference-grid b {
  display: block;
}

.currency-reference-grid span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.currency-reference-grid b {
  margin-top: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.035em;
}

@media (max-width: 1120px) {
  .currency-layout {
    grid-template-columns: 1fr;
  }
  .currency-receipt {
    position: static;
  }
  .currency-reference-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .currency-reference-grid > div:nth-child(3n) {
    border-right: 0;
  }
  .currency-reference-grid > div:nth-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 980px) {
  .page {
    padding-inline: 26px;
  }
  .seller-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .find-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .currency-hero {
    grid-template-columns: 1fr;
  }
  .currency-hero-copy {
    border-right: 0;
    border-bottom: 1px solid #393832;
  }
  .currency-rate-block {
    padding: 28px 38px;
  }
}

@media (max-width: 820px) {
  .page {
    padding: 28px 18px 62px;
  }
  .topbar {
    padding-inline: 15px;
  }
  .section-head {
    grid-template-columns: 56px 1fr;
  }
  .find-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .currency-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 570px) {
  .page {
    padding-inline: 12px;
  }
  .section-head {
    grid-template-columns: 1fr;
    margin-bottom: 25px;
  }
  .section-copy h1 {
    font-size: 39px;
  }
  .section-copy p {
    font-size: 13px;
  }
  .seller-grid,
  .find-grid {
    grid-template-columns: 1fr;
  }
  .fx-strip {
    display: grid;
    gap: 12px;
  }
  .fx-strip .btn {
    width: 100%;
  }
  .currency-hero-copy {
    padding: 35px 23px;
  }
  .currency-hero-copy h2 {
    font-size: 43px;
  }
  .currency-rate-block {
    padding: 27px 23px;
  }
  .currency-form-card {
    padding: 17px;
  }
  .currency-card-head {
    display: grid;
  }
  .rate-source {
    width: 100%;
    overflow-x: auto;
  }
  .rate-source button {
    flex: 1;
    white-space: nowrap;
  }
  .currency-big-input {
    gap: 10px;
    padding: 12px;
  }
  .currency-symbol {
    width: 43px;
    height: 43px;
    font-size: 24px;
  }
  .currency-big-input input {
    font-size: 40px;
  }
  .currency-fields {
    grid-template-columns: 1fr;
  }
  .manual-rate-row {
    grid-template-columns: 1fr;
  }
  .currency-reference-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .currency-reference-grid > div,
  .currency-reference-grid > div:nth-child(3n) {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .currency-reference-grid > div:nth-child(2n) {
    border-right: 0;
  }
  .currency-reference-grid > div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}


/* ADMIN / QUICK ADD ------------------------------------------------------- */
.admin-nav-link { margin-top: 8px; border-top: 1px solid #36352f; }
.admin-nav-link em { color: var(--acid) !important; font-size: 18px !important; }
.admin-status { display:flex; gap:14px; align-items:flex-start; margin:-8px 0 20px; padding:15px 18px; border:1px solid var(--line); background:var(--surface); }
.admin-status i { width:10px; height:10px; margin-top:5px; flex:0 0 auto; border-radius:50%; background:var(--amber); box-shadow:0 0 0 5px color-mix(in srgb, var(--amber) 16%, transparent); }
.admin-status.online i { background:var(--green); box-shadow:0 0 0 5px color-mix(in srgb, var(--green) 16%, transparent); }
.admin-status strong { font-size:10px; letter-spacing:.13em; }
.admin-status p { margin:3px 0 0; color:var(--muted); font-size:12px; }
.admin-layout { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(320px,.75fr); gap:20px; align-items:start; }
.admin-form-card,.admin-library-card { background:var(--surface); border:1px solid var(--line); box-shadow:var(--shadow); }
.admin-card-head { display:flex; justify-content:space-between; gap:16px; align-items:flex-end; padding:20px 22px; border-bottom:1px solid var(--line); }
.admin-card-head span { display:block; color:var(--muted); font-family:monospace; font-size:9px; letter-spacing:.12em; }
.admin-card-head h2 { margin:5px 0 0; font-family:Georgia,"Times New Roman",serif; font-size:27px; font-weight:400; letter-spacing:-.04em; }
.admin-card-head>b { display:grid; place-items:center; min-width:42px; height:42px; padding:0 10px; color:#11110f; background:var(--acid); font-size:18px; }
.admin-source { padding:7px 9px; color:var(--ink)!important; background:var(--surface-2); border:1px solid var(--line); }
.admin-import-row { display:grid; grid-template-columns:minmax(0,1fr) auto auto; gap:9px; padding:18px 22px 0; }
.admin-url-input { display:grid; grid-template-columns:42px minmax(0,1fr); min-height:46px; border:1px solid var(--line-strong); background:var(--paper); }
.admin-url-input>span { display:grid; place-items:center; border-right:1px solid var(--line); font-size:18px; }
.admin-url-input input { min-width:0; padding:0 14px; color:var(--ink); background:transparent; border:0; outline:0; }
.admin-progress { display:none; gap:10px; align-items:center; margin:12px 22px 0; padding:10px 12px; color:var(--muted); background:var(--surface-2); font-size:11px; }
.admin-progress:not(:empty),.admin-progress.loading,.admin-progress.success,.admin-progress.error { display:flex; }
.admin-progress span:empty { display:none; }
.admin-progress i { width:8px; height:8px; flex:0 0 auto; border-radius:50%; background:var(--muted); }
.admin-progress.loading i { border:2px solid var(--line); border-top-color:var(--ink); background:transparent; animation:admin-spin .7s linear infinite; }
.admin-progress.success i { background:var(--green); }
.admin-progress.error i { background:var(--red); }
@keyframes admin-spin { to { transform:rotate(360deg); } }
.admin-editor-grid { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(260px,.8fr); gap:20px; padding:22px; }
.admin-fields { display:grid; gap:14px; }
.admin-fields label>span { display:block; margin-bottom:7px; color:var(--muted); font-size:9px; font-weight:900; letter-spacing:.1em; text-transform:uppercase; }
.admin-fields input,.admin-fields textarea { width:100%; padding:12px 13px; color:var(--ink); background:var(--paper); border:1px solid var(--line); border-radius:0; resize:vertical; }
.admin-fields input:focus,.admin-fields textarea:focus { border-color:var(--line-strong); outline:2px solid var(--acid); outline-offset:0; }
.admin-fields label small { display:block; margin-top:6px; color:var(--muted); font-size:10px; }
.admin-field-pair { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.admin-form-actions { display:flex; gap:10px; flex-wrap:wrap; padding-top:4px; }
.btn.danger { color:var(--red); border-color:color-mix(in srgb,var(--red) 55%,var(--line)); }
.admin-preview-card { position:sticky; top:calc(var(--topbar) + 18px); overflow:hidden; border:1px solid var(--line-strong); background:#11110f; color:#f1f0ea; }
.admin-preview-label { padding:11px 13px; border-bottom:1px solid #393832; color:#9c9b94; font-family:monospace; font-size:9px; letter-spacing:.12em; }
.admin-preview-image { display:grid; place-items:center; aspect-ratio:1/1; overflow:hidden; background:#23231f; color:#77766f; font-size:10px; letter-spacing:.1em; }
.admin-preview-image img { width:100%; height:100%; object-fit:cover; }
.admin-preview-copy { padding:16px; }
.admin-preview-copy span { color:var(--acid); font-size:9px; font-weight:900; letter-spacing:.12em; }
.admin-preview-copy h3 { min-height:52px; margin:8px 0 20px; font-family:Georgia,"Times New Roman",serif; font-size:24px; font-weight:400; line-height:1.05; }
.admin-preview-copy strong { font-family:"Arial Black",Arial,sans-serif; font-size:25px; letter-spacing:-.04em; }
.admin-library-card { position:sticky; top:calc(var(--topbar) + 18px); max-height:calc(100vh - var(--topbar) - 38px); overflow:hidden; }
.admin-item-list { max-height:calc(100vh - var(--topbar) - 125px); overflow:auto; }
.admin-item-row { display:grid; grid-template-columns:70px minmax(0,1fr); gap:12px; padding:14px; border-bottom:1px solid var(--line); }
.admin-item-thumb { display:grid; place-items:center; width:70px; height:70px; overflow:hidden; background:var(--surface-2); color:var(--muted); font-size:8px; }
.admin-item-thumb img { width:100%; height:100%; object-fit:cover; }
.admin-item-copy { min-width:0; }
.admin-item-copy>span { color:var(--muted); font-family:monospace; font-size:8px; text-transform:uppercase; }
.admin-item-copy h3 { margin:4px 0; overflow:hidden; font-size:13px; text-overflow:ellipsis; white-space:nowrap; }
.admin-item-copy p { margin:0; color:var(--muted); font-size:10px; }
.admin-item-actions { grid-column:1/-1; display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.admin-item-actions .btn { min-height:34px; padding:7px 9px; font-size:9px; }
.admin-empty { display:grid; place-items:center; min-height:260px; padding:30px; color:var(--muted); text-align:center; font-family:Georgia,"Times New Roman",serif; font-size:30px; }
.admin-empty p { max-width:220px; margin:8px 0 0; font-family:Arial,sans-serif; font-size:12px; }
@media(max-width:1180px){.admin-layout{grid-template-columns:1fr}.admin-library-card{position:static;max-height:none}.admin-item-list{max-height:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.admin-item-row:nth-child(odd){border-right:1px solid var(--line)}}
@media(max-width:760px){.admin-import-row{grid-template-columns:1fr 1fr}.admin-url-input{grid-column:1/-1}.admin-editor-grid{grid-template-columns:1fr}.admin-preview-card{position:static}.admin-field-pair{grid-template-columns:1fr}.admin-item-list{grid-template-columns:1fr}.admin-item-row:nth-child(odd){border-right:0}}
@media(max-width:460px){.admin-import-row{grid-template-columns:1fr}.admin-url-input{grid-column:auto}.admin-editor-grid,.admin-card-head,.admin-import-row{padding-left:14px;padding-right:14px}.admin-source{display:none!important}}

/* =========================================================
   V5 — USFANS link converter
   ========================================================= */
.link-converter-hero {
  position: relative;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) auto;
  gap: 34px;
  align-items: center;
  min-height: 258px;
  margin-bottom: 22px;
  padding: 30px;
  overflow: hidden;
  color: #f1f0ea;
  background:
    radial-gradient(circle at 82% 20%, rgba(216,255,62,.16), transparent 28%),
    linear-gradient(125deg, #11110f 0%, #181815 58%, #25251f 100%);
  border: 1px solid #11110f;
  box-shadow: var(--shadow);
}
.link-converter-hero::after {
  content: "LINK ROUTER";
  position: absolute;
  right: -10px;
  bottom: -26px;
  color: rgba(255,255,255,.045);
  font-family: "Arial Black", Arial, sans-serif;
  font-size: clamp(54px, 9vw, 132px);
  line-height: .8;
  letter-spacing: -.08em;
  white-space: nowrap;
}
.link-converter-mark {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 34px 1fr;
  align-items: center;
  min-height: 112px;
  padding: 14px;
  background: rgba(255,255,255,.035);
  border: 1px solid #393832;
}
.link-converter-mark > span,
.link-converter-mark > img {
  width: 62px;
  height: 62px;
  object-fit: cover;
}
.link-converter-mark > span {
  display: grid;
  place-items: center;
  color: #11110f;
  background: var(--acid);
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 22px;
}
.link-converter-mark > b {
  color: #8e8d85;
  text-align: center;
  font-size: 20px;
}
.link-converter-mark > img { border-radius: 50%; }
.link-converter-hero-copy { position: relative; z-index: 1; }
.link-converter-hero-copy .eyebrow { color: var(--acid); }
.link-converter-hero-copy h2 {
  max-width: 640px;
  margin: 9px 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 5vw, 70px);
  font-weight: 400;
  line-height: .9;
  letter-spacing: -.055em;
}
.link-converter-hero-copy h2 i { color: var(--acid); font-weight: 400; }
.link-converter-hero-copy p { max-width: 620px; margin: 0; color: #aaa89f; font-size: 12px; }
.link-converter-stats {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 150px;
  border: 1px solid #393832;
}
.link-converter-stats > div { display: flex; justify-content: space-between; align-items: end; gap: 16px; padding: 13px 14px; border-bottom: 1px solid #393832; }
.link-converter-stats > div:last-child { border-bottom: 0; }
.link-converter-stats span { color: #8e8d85; font-family: monospace; font-size: 8px; letter-spacing: .14em; }
.link-converter-stats strong { color: var(--acid); font-family: "Arial Black", Arial, sans-serif; font-size: 20px; }

.link-converter-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: start;
  margin-bottom: 22px;
}
.link-workbench,
.link-history-panel,
.link-results-section {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.link-panel-head,
.link-results-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}
.link-panel-head span,
.link-results-head span {
  display: block;
  color: var(--muted);
  font-family: monospace;
  font-size: 9px;
  letter-spacing: .14em;
}
.link-panel-head h3,
.link-results-head h2 {
  margin: 4px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -.035em;
}
.link-panel-head small { max-width: 240px; color: var(--muted); text-align: right; font-size: 10px; }
.link-panel-head > button {
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}
.link-panel-head > button:hover { color: var(--red); }
.link-textarea-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0,1fr);
  margin: 22px 22px 12px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
}
.link-textarea-wrap > span {
  display: grid;
  place-items: start center;
  padding-top: 17px;
  border-right: 1px solid var(--line);
  font-size: 21px;
}
.link-textarea-wrap textarea {
  width: 100%;
  min-height: 168px;
  padding: 16px 58px 18px 16px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  line-height: 1.7;
}
.link-textarea-wrap textarea::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
.link-textarea-wrap > em {
  position: absolute;
  right: 12px;
  bottom: 10px;
  padding: 4px 7px;
  color: var(--muted);
  background: var(--surface-2);
  font-family: monospace;
  font-size: 8px;
  font-style: normal;
}
.link-source-row {
  display: grid;
  grid-template-columns: minmax(180px, .7fr) auto auto;
  gap: 10px;
  align-items: end;
  padding: 0 22px;
}
.link-source-row label > span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.link-source-row select {
  width: 100%;
  min-height: 43px;
  padding: 0 38px 0 12px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
}
.link-convert-btn { min-width: 220px; }
.link-supported {
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  gap: 16px;
  align-items: start;
  padding: 18px 22px 20px;
}
.link-supported > span { padding-top: 5px; color: var(--muted); font-size: 8px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.link-supported > div { display: flex; flex-wrap: wrap; gap: 6px; }
.link-supported i {
  padding: 4px 7px;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-family: monospace;
  font-size: 8px;
  font-style: normal;
  letter-spacing: .06em;
}
.link-converter-status { display: none; align-items: center; gap: 10px; margin: 0 22px 20px; padding: 11px 12px; color: var(--muted); background: var(--surface-2); font-size: 10px; }
.link-converter-status.loading { display: flex; }
.link-converter-status i { width: 11px; height: 11px; border: 2px solid var(--line); border-top-color: var(--ink); border-radius: 50%; animation: admin-spin .7s linear infinite; }

.link-history-panel { position: sticky; top: calc(var(--topbar) + 18px); overflow: hidden; }
.link-history-list { max-height: 416px; overflow: auto; }
.link-history-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.link-history-row > div { min-width: 0; }
.link-history-row span { display: block; overflow: hidden; color: var(--muted); font-family: monospace; font-size: 8px; letter-spacing: .08em; text-overflow: ellipsis; white-space: nowrap; }
.link-history-row b { display: block; margin-top: 3px; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.link-history-row button { padding: 7px 8px; color: var(--ink); background: transparent; border: 1px solid var(--line); font-family: monospace; font-size: 8px; cursor: pointer; }
.link-history-row button:hover { color: #11110f; background: var(--acid); border-color: var(--acid); }
.link-history-empty { display: grid; place-items: center; min-height: 240px; padding: 30px; color: var(--muted); text-align: center; }
.link-history-empty span { font-family: Georgia, serif; font-size: 46px; }
.link-history-empty p { margin: 8px 0 0; font-size: 11px; }

.link-results-section { margin-bottom: 24px; }
.link-results-head > div:last-child { display: flex; gap: 10px; align-items: center; }
.link-results-head > div:last-child > b { color: var(--green); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.link-results-list { display: grid; }
.link-result-card {
  display: grid;
  grid-template-columns: 74px minmax(0,1fr);
  min-height: 188px;
  border-bottom: 1px solid var(--line);
}
.link-result-card:last-child { border-bottom: 0; }
.link-result-card.error { background: color-mix(in srgb, var(--red) 4%, var(--surface)); }
.link-result-index {
  display: grid;
  place-items: start center;
  padding-top: 24px;
  color: var(--muted);
  background: var(--surface-2);
  border-right: 1px solid var(--line);
  font-family: Georgia, serif;
  font-size: 25px;
}
.link-result-card.error .link-result-index { color: var(--red); }
.link-result-main { min-width: 0; padding: 20px 22px; }
.link-result-meta { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.link-result-meta span { overflow: hidden; color: var(--muted); font-family: monospace; font-size: 9px; letter-spacing: .09em; text-overflow: ellipsis; white-space: nowrap; }
.link-result-meta b { padding: 4px 8px; color: #11110f; background: var(--acid); font-size: 8px; letter-spacing: .1em; }
.link-result-card.error .link-result-meta b { color: #fff; background: var(--red); }
.link-result-main h3 { margin: 10px 0 4px; font-family: Georgia, "Times New Roman", serif; font-size: 26px; font-weight: 400; letter-spacing: -.03em; }
.link-result-main h3 em { color: var(--muted); font-family: ui-monospace, monospace; font-size: 12px; font-style: normal; }
.link-result-main > p { margin: 0 0 12px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.link-output { display: grid; grid-template-columns: 38px minmax(0,1fr); align-items: center; min-height: 42px; overflow: hidden; color: #f1f0ea; background: #11110f; border: 1px solid #11110f; }
.link-output > span { display: grid; place-items: center; height: 100%; color: #11110f; background: var(--acid); }
.link-output code { overflow: hidden; padding: 0 12px; color: #d4d2c8; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.link-result-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.link-result-actions .btn { min-height: 34px; padding: 7px 11px; font-size: 9px; }
.link-note { display: block; margin-top: 10px; color: var(--green); font-size: 9px; font-weight: 700; }
.link-results-empty { display: grid; place-items: center; min-height: 300px; padding: 40px; text-align: center; }
.link-results-empty > span { color: var(--acid); text-shadow: 2px 2px 0 #11110f; font-family: Georgia, serif; font-size: 62px; }
.link-results-empty h3 { margin: 6px 0 2px; font-family: Georgia, serif; font-size: 30px; font-weight: 400; }
.link-results-empty p { margin: 0; color: var(--muted); font-family: monospace; font-size: 9px; letter-spacing: .1em; }

@media (max-width: 1120px) {
  .link-converter-hero { grid-template-columns: 170px minmax(0,1fr); }
  .link-converter-stats { grid-column: 1 / -1; grid-template-columns: repeat(3,1fr); }
  .link-converter-stats > div { border-right: 1px solid #393832; border-bottom: 0; }
  .link-converter-stats > div:last-child { border-right: 0; }
  .link-converter-layout { grid-template-columns: 1fr; }
  .link-history-panel { position: static; }
  .link-history-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); max-height: none; }
  .link-history-row:nth-child(odd) { border-right: 1px solid var(--line); }
}
@media (max-width: 820px) {
  .link-converter-hero { grid-template-columns: 1fr; gap: 20px; }
  .link-converter-mark { max-width: 220px; }
  .link-source-row { grid-template-columns: 1fr 1fr; }
  .link-source-row label { grid-column: 1 / -1; }
  .link-convert-btn { min-width: 0; }
  .link-supported { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 570px) {
  .link-converter-hero { min-height: 0; padding: 20px; }
  .link-converter-hero-copy h2 { font-size: 42px; }
  .link-converter-stats { grid-template-columns: 1fr; }
  .link-converter-stats > div { border-right: 0; border-bottom: 1px solid #393832; }
  .link-textarea-wrap { grid-template-columns: 36px minmax(0,1fr); margin: 14px; }
  .link-textarea-wrap textarea { padding-right: 14px; }
  .link-source-row { grid-template-columns: 1fr; padding: 0 14px; }
  .link-source-row label { grid-column: auto; }
  .link-supported { padding: 16px 14px; }
  .link-panel-head,.link-results-head { align-items: flex-start; padding: 16px 14px; }
  .link-panel-head small { display: none; }
  .link-history-list { grid-template-columns: 1fr; }
  .link-history-row:nth-child(odd) { border-right: 0; }
  .link-results-head { display: grid; }
  .link-results-head > div:last-child { justify-content: space-between; }
  .link-result-card { grid-template-columns: 44px minmax(0,1fr); }
  .link-result-index { padding-top: 20px; font-size: 17px; }
  .link-result-main { padding: 16px 14px; }
  .link-result-meta { align-items: flex-start; }
  .link-result-main h3 { font-size: 22px; }
  .link-result-actions { display: grid; grid-template-columns: 1fr; }
  .link-result-actions .btn { width: 100%; }
}

/* V5.4 — secure web admin authentication */
.admin-auth-shell{
  min-height:min(720px,calc(100vh - 190px));
  display:grid;
  place-items:center;
  padding:36px 16px 72px;
  position:relative;
  overflow:hidden;
}
.admin-auth-shell::before{
  content:"";
  position:absolute;
  inset:8% 12%;
  background:
    radial-gradient(circle at 20% 20%,color-mix(in srgb,var(--acid) 12%,transparent),transparent 34%),
    radial-gradient(circle at 80% 78%,color-mix(in srgb,var(--orange) 10%,transparent),transparent 38%);
  pointer-events:none;
}
.admin-auth-card{
  width:min(100%,520px);
  position:relative;
  z-index:1;
  padding:42px;
  border:1px solid var(--line);
  background:color-mix(in srgb,var(--surface) 96%,transparent);
  box-shadow:0 28px 80px rgba(8,18,32,.16);
}
.admin-auth-card::after{
  content:"";
  position:absolute;
  inset:10px;
  border:1px solid color-mix(in srgb,var(--line) 55%,transparent);
  pointer-events:none;
}
.admin-auth-mark{
  width:62px;
  height:62px;
  display:grid;
  place-items:center;
  margin-bottom:28px;
  background:var(--ink);
  color:var(--surface);
  font-size:20px;
  font-weight:900;
  letter-spacing:-.05em;
}
.admin-auth-card h1{
  margin:10px 0 12px;
  font-size:clamp(32px,5vw,54px);
  line-height:.94;
  letter-spacing:-.055em;
}
.admin-auth-card>p{
  max-width:46ch;
  margin:0 0 28px;
  color:var(--muted);
  line-height:1.65;
}
.admin-password-field{
  display:grid;
  gap:9px;
  margin:0 0 14px;
}
.admin-password-field>span{
  font-size:10px;
  font-weight:800;
  letter-spacing:.16em;
  color:var(--muted);
}
.admin-password-field input{
  width:100%;
  min-height:58px;
  padding:0 17px;
  border:1px solid var(--line-strong,var(--line));
  background:var(--paper);
  color:var(--ink);
  font:inherit;
  font-size:18px;
  outline:none;
  transition:border-color .18s ease,box-shadow .18s ease;
}
.admin-password-field input:focus{
  border-color:var(--acid);
  box-shadow:0 0 0 4px color-mix(in srgb,var(--acid) 12%,transparent);
}
.admin-login-button{
  width:100%;
  min-height:54px;
  margin-top:8px;
  justify-content:center;
}
.admin-auth-card>small{
  display:block;
  margin-top:16px;
  color:var(--muted);
  line-height:1.5;
}
.admin-login-error{
  margin:0 0 12px;
  padding:12px 14px;
  border:1px solid color-mix(in srgb,#d94242 50%,var(--line));
  background:color-mix(in srgb,#d94242 8%,var(--surface));
  color:#b62f2f;
  font-size:13px;
  line-height:1.45;
}
.admin-auth-error code{
  display:block;
  padding:14px 16px;
  background:var(--ink);
  color:var(--surface);
  overflow:auto;
  font-size:13px;
}
.admin-status .admin-logout{
  margin-left:auto;
  flex:0 0 auto;
}
@media(max-width:640px){
  .admin-auth-shell{padding:18px 0 52px;align-items:start}
  .admin-auth-card{padding:30px 24px}
  .admin-auth-card h1{font-size:38px}
  .admin-status{flex-wrap:wrap}
  .admin-status .admin-logout{width:100%;margin-left:0;justify-content:center}
}


/* V5.7: local image upload, clipboard and browser-extension bridge */
.admin-image-tools{display:grid;grid-template-columns:auto auto minmax(0,1fr);gap:8px;align-items:center;margin-top:-7px;padding:10px;border:1px dashed var(--line-strong);background:var(--surface-2)}
.admin-image-tools .btn{min-height:36px;padding:8px 11px;font-size:9px;white-space:nowrap}
.admin-image-tools>span{min-width:0;color:var(--muted);font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:9px;line-height:1.45}
.admin-image-tools>span[data-mode="loading"]{color:var(--ink)}
.admin-image-tools>span[data-mode="success"]{color:var(--green)}
.admin-image-tools>span[data-mode="error"]{color:var(--red)}
@media(max-width:760px){.admin-image-tools{grid-template-columns:1fr 1fr}.admin-image-tools>span{grid-column:1/-1}}
@media(max-width:460px){.admin-image-tools{grid-template-columns:1fr}.admin-image-tools>span{grid-column:auto}.admin-image-tools .btn{width:100%}}
