@font-face {
  font-family: "Bihui KuHei";
  src: url("assets/fonts/tsanger-kuhei.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Bihui LingDong DemiBold";
  src: url("assets/fonts/tsanger-lingdong-demibold.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Bihui LingDong Light";
  src: url("assets/fonts/tsanger-lingdong-light.ttf") format("truetype");
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --paper-soft: #f7f9ff;
  --ink: #05070f;
  --muted: #687084;
  --soft: #9aa4bc;
  --line: #e8ecf7;
  --card: #ffffff;
  --blue: #075cff;
  --blue-2: #1c8cff;
  --violet: #6f35ff;
  --pink: #ff2c96;
  --gold: #ffbe2f;
  --shadow: 0 18px 42px rgba(24, 45, 105, 0.12);
  --font-title-1: "Bihui KuHei", "仓耳酷黑", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-title-2: "Bihui LingDong DemiBold", "仓耳灵动黑 简 DemiBold", "仓耳灵动黑 简", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Bihui LingDong Light", "仓耳灵动黑 简 Light", "仓耳灵动黑 简", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  position: relative;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 74px 0 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(125deg, transparent 0 18%, rgba(23, 120, 255, 0.05) 18% 18.15%, transparent 18.15% 100%),
    linear-gradient(145deg, transparent 0 62%, rgba(111, 53, 255, 0.055) 62% 62.14%, transparent 62.14% 100%),
    radial-gradient(circle at 38% 13%, rgba(0, 196, 255, 0.12), transparent 2px),
    radial-gradient(circle at 43% 23%, rgba(111, 53, 255, 0.12), transparent 2px),
    var(--paper);
  background-size: 100% 100%, 100% 100%, 120px 120px, 140px 140px, auto;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1:not(.hero-title-art),
.split-head h1 {
  font-family: var(--font-title-1);
  font-weight: 400;
}

h2,
.section-title,
.modal-info h2 {
  font-family: var(--font-title-2);
  font-weight: 600;
}

h3,
.nav-item,
.text-button,
.solid-button,
.ghost-button,
.tiny-button,
.chip,
.tab,
.quick-tag,
.mosaic-caption,
.case-kicker {
  font-family: var(--font-title-2);
  font-weight: 600;
}

p,
.summary,
.section-note,
.muted,
.case-card p,
.metric span,
.prompt-box,
.field,
.search-bar input,
.footer {
  font-family: var(--font-body);
  font-weight: 300;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(232, 236, 247, 0.9);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: grid;
  grid-template-columns: 268px minmax(420px, 1fr) minmax(360px, auto);
  gap: 18px;
  align-items: center;
  width: min(1448px, calc(100% - 44px));
  min-height: 76px;
  margin: 0 auto;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  width: 258px;
  min-width: 0;
}

.brand-logo {
  width: 252px;
  height: 52px;
  object-fit: contain;
  object-position: left center;
}

.brand-mark,
.brand-name {
  display: none;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.nav-item {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  color: #0b0f1d;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.nav-item:hover,
.nav-item.active {
  color: var(--blue);
  background: #eef2ff;
  box-shadow: inset 0 0 0 1px rgba(7, 92, 255, 0.08);
}

.nav-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-width: 0;
}

body[data-page^="admin"] .nav-shell {
  grid-template-columns: 268px minmax(300px, 1fr) minmax(330px, auto);
}

body[data-page^="admin"] .main-nav {
  justify-content: flex-start;
}

body[data-page^="admin"] .nav-item {
  padding: 0 14px;
}

body[data-page^="admin"] .search-bar {
  width: min(260px, 22vw);
}

body[data-page="admin-login"] .nav-shell {
  grid-template-columns: 268px 1fr;
}

body[data-page="admin-login"] .nav-tools {
  grid-column: auto;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  width: min(300px, 24vw);
  height: 44px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(32, 52, 103, 0.04);
}

.search-bar svg {
  flex: none;
  color: #111827;
}

.search-bar input {
  width: 100%;
  min-width: 70px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 14px;
}

.search-bar input::placeholder {
  color: #7b8497;
  font-weight: 300;
}

.login-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.text-button,
.solid-button,
.ghost-button,
.icon-button,
.tiny-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.text-button {
  padding: 0 8px;
  background: transparent;
  color: var(--ink);
  font-weight: 600;
}

.solid-button {
  padding: 0 18px;
  border: 1px solid rgba(7, 92, 255, 0.16);
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: 0 12px 26px rgba(7, 92, 255, 0.22);
  font-weight: 600;
}

.ghost-button {
  padding: 0 18px;
  border: 1px solid var(--line);
  color: #101522;
  background: #fff;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(20, 35, 80, 0.06);
}

.icon-button {
  width: 40px;
  padding: 0;
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
}

.tiny-button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(232, 236, 247, 0.95);
  color: #222b3d;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
}

.tiny-button.active,
.ghost-button.active {
  border-color: rgba(7, 92, 255, 0.18);
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: 0 10px 22px rgba(7, 92, 255, 0.16);
}

.text-button:hover,
.solid-button:hover,
.ghost-button:hover,
.icon-button:hover,
.tiny-button:hover {
  transform: translateY(-1px);
}

.page {
  width: min(1448px, calc(100% - 44px));
  margin: 0 auto;
  padding: 6px 0 72px;
}

.wide-page {
  width: min(1448px, calc(100% - 44px));
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.76fr) minmax(560px, 1.24fr);
  gap: 36px;
  align-items: stretch;
}

.home-hero {
  min-height: 748px;
  padding: 28px 44px 26px;
  border: 1px solid rgba(232, 236, 247, 0.88);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 20px 54px rgba(28, 44, 95, 0.08);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 12px 0 16px;
}

.eyebrow {
  align-self: flex-start;
  margin: 0 0 22px;
  padding: 10px 18px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: 0 14px 24px rgba(73, 65, 255, 0.2);
  font-size: 15px;
  font-family: var(--font-title-2);
  font-weight: 600;
  letter-spacing: 0;
}

.hero-title-art {
  width: min(650px, 100%);
  margin: 0 0 22px;
  line-height: 0;
}

.hero-title-art img {
  width: 100%;
  height: auto;
}

.hero-copy .slogan,
.slogan {
  position: relative;
  max-width: 660px;
  margin: 0 0 18px;
  padding-left: 18px;
  color: #141824;
  font-size: clamp(20px, 2vw, 28px);
  font-family: var(--font-title-2);
  font-weight: 600;
  line-height: 1.35;
}

.hero-copy .slogan::before,
.slogan::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.16em;
  width: 4px;
  height: 1.25em;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--blue), var(--violet));
}

.hero-copy .summary {
  max-width: 640px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 300;
}

.hero-actions,
.section-head,
.split-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.hero-actions {
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.quick-tag {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #1d2434;
  background: #fff;
  box-shadow: 0 8px 20px rgba(30, 45, 88, 0.05);
  font-size: 14px;
  font-weight: 600;
}

.quick-tag.active {
  border-color: rgba(7, 92, 255, 0.1);
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--violet));
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 560px;
  margin-top: 28px;
}

.metric {
  min-height: 70px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 24px rgba(22, 36, 82, 0.06);
}

.metric strong {
  display: block;
  color: #070913;
  font-family: var(--font-title-1);
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 4px;
  color: #5f697d;
  font-size: 14px;
  font-weight: 300;
}

.hero-mosaic {
  display: grid;
  grid-template-columns: 1.05fr 1fr 0.86fr;
  grid-template-rows: repeat(12, 1fr);
  gap: 14px;
  min-height: 0;
  height: 706px;
}

.mosaic-item {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  background: #dfe5f0;
  box-shadow: 0 16px 30px rgba(14, 29, 73, 0.16);
  cursor: pointer;
}

.mosaic-item::after,
.case-card::after,
.city-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.46));
}

.mosaic-item img,
.case-card img,
.city-card img,
.result-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mosaic-item:nth-child(1) {
  grid-row: 1 / span 7;
}

.mosaic-item:nth-child(2) {
  grid-row: 8 / span 5;
}

.mosaic-item:nth-child(3) {
  grid-row: 1 / span 4;
}

.mosaic-item:nth-child(4) {
  grid-row: 5 / span 8;
}

.mosaic-item:nth-child(5) {
  grid-row: 1 / span 6;
}

.mosaic-item:nth-child(6) {
  grid-row: 7 / span 6;
}

.mosaic-caption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 8px;
  color: #fff;
  background: rgba(3, 5, 13, 0.74);
  backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 600;
}

.mosaic-caption span {
  flex: none;
  color: var(--gold);
}

.section {
  margin-top: 56px;
}

.section-head {
  margin-bottom: 18px;
}

.section-title {
  position: relative;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: clamp(25px, 2.35vw, 36px);
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: 0;
}

.section-title::after {
  content: "";
  display: inline-block;
  width: 42px;
  height: 4px;
  margin-left: 10px;
  border-radius: 999px;
  vertical-align: 0.18em;
  background: linear-gradient(90deg, var(--blue), var(--violet));
}

.section-note {
  max-width: 640px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 300;
}

.tabs,
.chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chip,
.tab {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #222a3d;
  font-size: 13px;
  font-weight: 600;
}

.tab {
  cursor: pointer;
}

.tab.active,
.chip.active,
.chip.dark {
  border-color: rgba(7, 92, 255, 0.16);
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: 0 10px 22px rgba(7, 92, 255, 0.18);
}

.masonry {
  columns: 5 220px;
  column-gap: 16px;
}

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

.collection-card {
  position: relative;
  display: grid;
  min-height: 260px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(25, 43, 89, 0.08);
}

.collection-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 5, 13, 0.06), rgba(3, 5, 13, 0.72));
  pointer-events: none;
}

.collection-card img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.collection-card-body {
  position: absolute;
  inset: auto 12px 12px;
  z-index: 2;
  color: #fff;
}

.collection-count {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  font-family: var(--font-title-2);
  font-size: 13px;
  font-weight: 600;
}

.collection-card h3 {
  margin: 10px 0 4px;
  color: #fff;
  font-size: 18px;
  line-height: 1.16;
}

.collection-card p {
  min-height: 40px;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.collection-card .chips {
  gap: 6px;
}

.collection-card .chip {
  min-height: 28px;
  padding: 0 9px;
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  background: rgba(3, 5, 13, 0.48);
  font-size: 12px;
}

.case-card {
  position: relative;
  break-inside: avoid;
  overflow: hidden;
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 12px 30px rgba(25, 43, 89, 0.08);
  cursor: pointer;
}

.case-card.saved {
  box-shadow: 0 16px 34px rgba(7, 92, 255, 0.12);
}

.case-card.saved::before {
  content: "已收藏";
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 3;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  font-family: var(--font-title-2);
  font-size: 12px;
}

.case-card img {
  height: auto;
  min-height: 180px;
  background: #eaf0fb;
}

.case-card-body {
  position: relative;
  z-index: 2;
  padding: 13px;
  background: #fff;
}

.case-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
}

.case-card h3 {
  margin: 0 0 7px;
  color: #101522;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 600;
}

.case-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.case-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.artist-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.artist-mini-card {
  display: grid;
  gap: 12px;
  align-content: start;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(25, 43, 89, 0.07);
}

.artist-mini-card button {
  overflow: hidden;
  width: 100%;
  padding: 0;
  border-radius: 8px;
  background: #eaf0fb;
  cursor: pointer;
}

.artist-mini-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.artist-mini-card h3 {
  margin: 0 0 4px;
  color: #101522;
  font-size: 17px;
  line-height: 1.18;
}

.artist-mini-card .tiny-button {
  margin-top: 10px;
}

.city-grid,
.artist-grid,
.folder-grid,
.feature-grid,
.result-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.city-card,
.artist-card,
.folder-card,
.feature-card,
.panel,
.form-panel,
.result-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 12px 30px rgba(25, 43, 89, 0.07);
}

.city-card {
  overflow: hidden;
}

.city-card.active {
  border-color: rgba(7, 92, 255, 0.34);
  box-shadow: 0 18px 42px rgba(7, 92, 255, 0.16);
}

.city-card img {
  aspect-ratio: 1 / 1;
}

.city-card-body,
.artist-card,
.folder-card,
.feature-card,
.panel,
.form-panel,
.result-card-body {
  padding: 18px;
}

.city-card-body {
  position: relative;
  z-index: 2;
  background: #fff;
}

.city-card h3,
.artist-card h3,
.folder-card h3,
.feature-card h3,
.panel h3,
.result-card h3 {
  margin-bottom: 8px;
  color: #101522;
  font-size: 18px;
  font-weight: 600;
}

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

.split-head {
  align-items: flex-end;
  padding: 34px 0 8px;
}

.split-head h1 {
  margin: 0 0 12px;
  color: var(--ink);
  font-weight: 400;
  line-height: 1.02;
}

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

.filter-panel {
  position: sticky;
  top: 96px;
}

.filter-group {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.filter-group:first-child {
  padding-top: 0;
  border-top: 0;
}

.filter-group h3 {
  margin-bottom: 10px;
  color: #101522;
  font-size: 15px;
  font-weight: 600;
}

.select-row,
.field-row {
  display: grid;
  gap: 10px;
}

.field-row.two {
  grid-template-columns: 1fr 1fr;
}

.field {
  width: 100%;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  background: #fff;
  color: var(--ink);
  font-weight: 300;
}

textarea.field {
  min-height: 116px;
  padding-top: 10px;
  resize: vertical;
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  min-height: 660px;
}

.map-overview,
.artist-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.map-stat-card,
.artist-lead,
.artist-stats {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(25, 43, 89, 0.07);
}

.map-stat-card {
  padding: 18px;
}

.map-stat-card span,
.artist-stats span,
.artist-card-head span {
  color: var(--blue);
  font-family: var(--font-title-2);
  font-size: 13px;
  font-weight: 600;
}

.map-stat-card strong,
.artist-stats strong {
  display: block;
  margin: 8px 0 4px;
  color: #05070f;
  font-family: var(--font-title-1);
  font-size: 36px;
  font-weight: 400;
  line-height: 1;
}

.map-stat-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.map-stage {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 30%, rgba(255, 44, 150, 0.14), transparent 10%),
    radial-gradient(circle at 74% 38%, rgba(7, 92, 255, 0.12), transparent 14%),
    linear-gradient(90deg, rgba(7, 92, 255, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(111, 53, 255, 0.08) 1px, transparent 1px),
    #f3f6ff;
  background-size: auto, auto, 58px 58px, 58px 58px, auto;
}

.map-point {
  position: absolute;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 3px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: var(--shadow);
  font-weight: 600;
  cursor: pointer;
  transform: translate(-50%, -50%);
}

.map-point span,
.map-point small {
  position: relative;
  z-index: 2;
  line-height: 1;
}

.map-point small {
  position: absolute;
  right: -8px;
  bottom: -7px;
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #101522;
  background: #fff;
  font-size: 11px;
}

.map-point.active {
  outline: 4px solid rgba(7, 92, 255, 0.18);
  transform: translate(-50%, -50%) translateY(-2px);
}

.map-point.teal {
  background: linear-gradient(135deg, #02c4c7, var(--blue));
}

.map-point.gold {
  background: linear-gradient(135deg, var(--gold), var(--pink));
}

.map-route {
  position: absolute;
  inset: 76px 110px 90px 86px;
  border: 2px dashed rgba(7, 92, 255, 0.24);
  border-radius: 50%;
  transform: rotate(-10deg);
}

.map-card-float {
  position: absolute;
  left: 28px;
  bottom: 28px;
  width: min(420px, calc(100% - 56px));
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.map-case-preview {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  padding: 10px;
  border: 1px solid rgba(232, 236, 247, 0.9);
  border-radius: 8px;
  background: #fff;
}

.map-case-preview img {
  width: 88px;
  height: 76px;
  border-radius: 8px;
  object-fit: cover;
}

.map-case-preview strong,
.map-case-preview span {
  display: block;
}

.map-case-preview strong {
  margin-bottom: 3px;
  color: #101522;
  font-family: var(--font-title-2);
}

.map-case-preview span {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

.map-filter,
.artist-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

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

.taxonomy-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(25, 43, 89, 0.07);
}

.taxonomy-card h3 {
  margin-bottom: 14px;
  color: #101522;
  font-size: 20px;
}

.taxonomy-list {
  display: grid;
  gap: 8px;
}

.taxonomy-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faff;
}

.taxonomy-list span {
  color: #101522;
  font-family: var(--font-title-2);
}

.taxonomy-list strong {
  color: var(--blue);
  font-family: var(--font-title-1);
  font-size: 20px;
  font-weight: 400;
}

.artist-overview {
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.6fr);
}

.artist-lead {
  padding: 24px;
}

.artist-lead h2 {
  max-width: 760px;
  margin-bottom: 10px;
  font-size: clamp(28px, 3.2vw, 48px);
  line-height: 1.05;
}

.artist-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-content: stretch;
  overflow: hidden;
}

.artist-stats div {
  display: grid;
  place-content: center;
  min-height: 100%;
  padding: 18px 12px;
  border-left: 1px solid var(--line);
  text-align: center;
}

.artist-stats div:first-child {
  border-left: 0;
}

.artist-toolbar {
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
}

.artist-search {
  width: min(420px, 100%);
}

.artist-card {
  display: grid;
  gap: 14px;
}

.artist-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.artist-card-head h3 {
  margin-bottom: 0;
  font-size: 22px;
}

.artist-covers {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: repeat(2, 112px);
  gap: 8px;
}

.artist-covers button {
  overflow: hidden;
  padding: 0;
  border-radius: 8px;
  background: #eaf0fb;
  cursor: pointer;
}

.artist-covers button:first-child {
  grid-row: span 2;
}

.artist-covers img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artist-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 2px;
}

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

.ai-head-actions {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.ai-provider-status {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(255, 190, 47, 0.28);
  border-radius: 999px;
  color: #7a5200;
  background: #fff8e6;
  font-family: var(--font-title-2);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.ai-provider-status.ready {
  border-color: rgba(7, 92, 255, 0.18);
  color: #075cff;
  background: #edf3ff;
}

.ai-provider-status.mock {
  border-color: rgba(255, 190, 47, 0.28);
  color: #7a5200;
  background: #fff8e6;
}

.ai-quota-status {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(5, 7, 15, 0.1);
  border-radius: 999px;
  color: #273246;
  background: #f7f9ff;
  font-family: var(--font-title-2);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.ai-quota-status.warning {
  border-color: rgba(255, 190, 47, 0.34);
  color: #7a5200;
  background: #fff8e6;
}

.ai-quota-status.empty {
  border-color: rgba(255, 44, 150, 0.22);
  color: #d91d77;
  background: #fff0f7;
}

.style-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.style-option {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(25, 43, 89, 0.06);
}

.style-option.selected {
  border-color: rgba(7, 92, 255, 0.45);
  box-shadow: 0 14px 28px rgba(7, 92, 255, 0.16);
}

.style-option img {
  width: 100%;
  aspect-ratio: 1.4 / 1;
  object-fit: cover;
}

.style-option span {
  display: block;
  padding: 9px 10px;
  color: #101522;
  font-size: 13px;
  font-family: var(--font-title-2);
  font-weight: 600;
}

.prompt-box {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f5f8ff;
  color: #1e2840;
  font-size: 14px;
  font-weight: 300;
}

.prompt-inspector {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(7, 92, 255, 0.12);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.prompt-inspector.pulse {
  animation: promptPulse 0.9s ease;
}

.prompt-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.prompt-head h3 {
  margin: 0;
  font-size: 18px;
}

.prompt-token-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.prompt-token {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(232, 236, 247, 0.95);
  border-radius: 999px;
  color: #263044;
  background: #fff;
  font-size: 12px;
}

.prompt-token strong {
  color: var(--blue);
  font-family: var(--font-title-2);
  font-weight: 600;
}

@keyframes promptPulse {
  0% {
    border-color: rgba(7, 92, 255, 0.16);
    box-shadow: 0 0 0 0 rgba(7, 92, 255, 0.2);
  }
  45% {
    border-color: rgba(7, 92, 255, 0.5);
    box-shadow: 0 0 0 8px rgba(7, 92, 255, 0.08);
  }
  100% {
    border-color: rgba(7, 92, 255, 0.12);
    box-shadow: 0 0 0 0 rgba(7, 92, 255, 0);
  }
}

.result-card {
  overflow: hidden;
  padding: 0;
}

.result-card img {
  aspect-ratio: 4 / 3;
}

.result-card img.image-error {
  opacity: 0.18;
  filter: grayscale(1);
}

.image-error-note,
.ai-preview-note {
  margin: 8px 0 0;
  padding: 8px 10px;
  border-radius: 8px;
  color: #4e5c76;
  background: #f3f6ff;
  font-size: 12px;
}

.image-error-note {
  margin: 10px 14px 0;
  color: #8a4b00;
  background: #fff6df;
}

.ai-preview-note.warning {
  color: #8a4b00;
  background: #fff6df;
}

.library-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 360px;
  gap: 18px;
  align-items: stretch;
}

.upload-strip {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px dashed rgba(7, 92, 255, 0.26);
  border-radius: 8px;
  background: #f6f8ff;
}

.admin-login-page {
  display: grid;
  min-height: calc(100vh - 156px);
  place-items: center;
}

.admin-login-card {
  width: min(520px, 100%);
  padding: 34px;
  border: 1px solid rgba(232, 236, 247, 0.95);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(22, 38, 84, 0.1);
}

.admin-login-card h1 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: clamp(42px, 5vw, 68px);
  line-height: 0.95;
}

.admin-login-form {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.admin-login-form label {
  display: grid;
  gap: 8px;
  color: #101522;
  font-family: var(--font-title-2);
  font-size: 14px;
  font-weight: 600;
}

.admin-login-form .solid-button {
  width: 100%;
}

.admin-login-message {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  color: #c01866;
  background: #fff0f7;
  font-size: 13px;
}

.admin-login-hint {
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}

.admin-page .split-head h1 {
  font-size: clamp(38px, 4.6vw, 68px);
}

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

.admin-list-panel,
.admin-form-panel {
  min-width: 0;
}

.admin-form-panel {
  position: sticky;
  top: 96px;
}

.admin-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}

.admin-filter-row {
  grid-template-columns: minmax(260px, 1.4fr) minmax(130px, 0.75fr) minmax(150px, 0.85fr) minmax(150px, 0.85fr);
}

.admin-count {
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  font-family: var(--font-title-2);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.admin-filter-small {
  width: 150px;
}

.admin-bulkbar {
  display: grid;
  grid-template-columns: auto auto minmax(126px, 0.8fr) minmax(128px, 0.9fr) minmax(180px, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
  padding: 10px;
  border: 1px solid rgba(232, 236, 247, 0.95);
  border-radius: 8px;
  background: #f8faff;
}

.admin-check-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #172033;
  font-family: var(--font-title-2);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.admin-selected-count {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.admin-bulk-field {
  min-height: 40px;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  background: #fff;
}

.admin-table th,
.admin-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  color: #222a3d;
  text-align: left;
  vertical-align: middle;
  font-size: 13px;
}

.admin-table th {
  color: #101522;
  background: #f6f8ff;
  font-family: var(--font-title-2);
  font-weight: 600;
}

.admin-table tr:last-child td {
  border-bottom: 0;
}

.admin-table tr.active td {
  background: #f7f9ff;
}

.admin-table tr.selected td {
  background: #fbfcff;
}

.admin-select-col {
  width: 58px;
  text-align: center !important;
}

.admin-row-check {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

.admin-case-cell {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.admin-text-cell {
  max-width: 260px;
  overflow: hidden;
  padding: 0;
  color: #101522;
  background: transparent;
  font-family: var(--font-title-2);
  font-weight: 600;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.admin-small-muted {
  max-width: 280px;
  overflow: hidden;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-case-cell img {
  width: 58px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  background: #eaf0fb;
}

.admin-case-cell strong,
.admin-case-cell small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-case-cell strong {
  color: #101522;
  font-family: var(--font-title-2);
  font-size: 14px;
  font-weight: 600;
}

.admin-case-cell small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-family: var(--font-title-2);
  font-size: 12px;
  font-weight: 600;
}

.status-pill.published {
  color: #075cff;
  background: #edf3ff;
}

.status-pill.draft {
  color: #805400;
  background: #fff6dd;
}

.status-pill.hidden {
  color: #606878;
  background: #eef1f6;
}

.status-pill.approved {
  color: #075cff;
  background: #edf3ff;
}

.status-pill.pending {
  color: #805400;
  background: #fff6dd;
}

.status-pill.rejected {
  color: #b31665;
  background: #fff0f7;
}

.status-pill.category {
  color: #075cff;
  background: #edf3ff;
}

.status-pill.style {
  color: #6330d7;
  background: #f1ecff;
}

.status-pill.element {
  color: #007a73;
  background: #e8fbf8;
}

.status-pill.color {
  color: #b31665;
  background: #fff0f7;
}

.status-pill.scene {
  color: #805400;
  background: #fff6dd;
}

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

.admin-form-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.eyebrow.mini {
  margin-bottom: 9px;
  padding: 7px 12px;
  font-size: 12px;
}

.admin-form {
  display: grid;
  gap: 12px;
}

.admin-upload-preview {
  overflow: hidden;
  min-height: 190px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f3f6ff;
}

.admin-upload-preview img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.admin-upload-preview img:not([src]),
.admin-upload-preview img[src=""] {
  display: none;
}

.admin-detail-list {
  display: grid;
  gap: 10px;
}

.admin-ai-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.admin-ai-result {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-ai-result img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #eaf0fb;
}

.admin-ai-result strong {
  display: block;
  overflow: hidden;
  padding: 9px 10px 10px;
  color: #101522;
  font-family: var(--font-title-2);
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-ai-result small {
  display: block;
  padding: 0 10px 10px;
  color: var(--muted);
}

.admin-ai-result .tiny-button {
  margin: 0 10px 10px;
}

.admin-log-meta {
  max-height: 220px;
  overflow: auto;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b1020;
  color: #e9efff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.admin-form label {
  display: grid;
  gap: 7px;
  color: #101522;
  font-family: var(--font-title-2);
  font-size: 13px;
  font-weight: 600;
}

.admin-form textarea.field {
  min-height: 92px;
}

.admin-form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.ghost-button.danger,
.ghost-button.danger:hover {
  border-color: rgba(255, 44, 150, 0.18);
  color: #c01866;
  background: #fff6fb;
}

.ghost-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(4, 7, 18, 0.72);
}

.modal.open {
  display: flex;
}

.modal-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
  width: min(1320px, 100%);
  max-height: calc(100vh - 36px);
  overflow: hidden;
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
}

.modal-media {
  display: grid;
  place-items: center;
  min-height: 0;
  max-height: calc(100vh - 36px);
  padding: 14px;
  background: #070913;
}

.modal-media img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 64px);
  object-fit: contain;
}

.modal-info {
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  padding: 22px;
}

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

.modal-info h2 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 30px;
  line-height: 1.12;
  font-weight: 600;
}

.close-modal {
  flex: none;
}

.modal-summary {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.modal-primary-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 16px;
}

.modal-primary-actions .ghost-button,
.modal-primary-actions .solid-button {
  width: 100%;
  min-height: 40px;
  padding: 0 10px;
  white-space: nowrap;
}

.modal-primary-actions .modal-use-action {
  grid-column: 1 / -1;
}

.info-list {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.info-line {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.info-line strong {
  color: var(--ink);
  font-family: var(--font-title-2);
  font-weight: 600;
}

.source-link {
  color: var(--blue);
  font-family: var(--font-title-2);
  font-weight: 600;
}

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

.prompt-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.modal-related-section {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(7, 92, 255, 0.12);
  border-radius: 8px;
  background: #fff;
}

.modal-related-section[hidden] {
  display: none;
}

.modal-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.modal-related-card {
  display: grid;
  gap: 8px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  color: inherit;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.modal-related-card img {
  width: 100%;
  aspect-ratio: 1.25 / 1;
  object-fit: cover;
  background: #edf1fb;
}

.modal-related-card span {
  display: grid;
  gap: 3px;
  padding: 0 10px 10px;
}

.modal-related-card strong {
  color: var(--ink);
  font-family: var(--font-title-2);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
}

.modal-related-card small {
  color: var(--muted);
  font-size: 12px;
}

.auth-panel {
  position: relative;
  width: min(460px, 100%);
  padding: 26px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
}

.auth-panel .close-auth {
  position: absolute;
  top: 16px;
  right: 16px;
}

.auth-form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.auth-form label {
  display: grid;
  gap: 8px;
  color: #101522;
  font-family: var(--font-title-2);
  font-size: 14px;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 160;
  max-width: min(360px, calc(100vw - 44px));
  padding: 13px 16px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: 0 18px 40px rgba(7, 92, 255, 0.24);
  font-family: var(--font-title-2);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

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

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--muted);
  background: #fff;
  font-size: 13px;
  font-weight: 300;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1448px, calc(100% - 44px));
  margin: 0 auto;
}

.footer-links {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #31394c;
  font-family: var(--font-title-2);
  font-weight: 600;
}

.legal-page {
  padding-top: 34px;
}

.legal-hero {
  padding: 46px;
  border: 1px solid rgba(232, 236, 247, 0.95);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 54px rgba(28, 44, 95, 0.08);
}

.legal-hero h1 {
  margin-bottom: 12px;
  font-size: clamp(42px, 4.4vw, 72px);
  line-height: 1.02;
}

.legal-date {
  margin: 22px 0 0;
  color: #8a93a8;
  font-size: 14px;
}

.legal-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.legal-block {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(22, 36, 82, 0.06);
}

.legal-block h2 {
  margin-bottom: 10px;
  color: #0d1320;
  font-size: 22px;
  line-height: 1.25;
}

.legal-block p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

@media (max-width: 1280px) {
  .nav-shell {
    grid-template-columns: 184px 1fr;
    gap: 10px 18px;
    padding: 12px 0;
  }

  .nav-tools {
    grid-column: 1 / -1;
    justify-content: space-between;
  }

  .search-bar {
    width: min(520px, 100%);
  }

  .home-hero {
    padding: 28px;
  }
}

@media (max-width: 1120px) {
  .main-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .hero-grid,
  .ai-layout,
  .library-hero,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-form-panel {
    position: static;
  }

  .admin-bulkbar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-mosaic {
    height: 640px;
    min-height: 520px;
  }

  .city-grid,
  .artist-grid,
  .folder-grid,
  .feature-grid,
  .result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .artist-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .map-layout {
    grid-template-columns: 1fr;
  }

  .map-overview,
  .map-taxonomy,
  .artist-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .page,
  .wide-page,
  .nav-shell,
  .footer-inner {
    width: min(100% - 24px, 1448px);
  }

  .page {
    padding-top: 18px;
  }

  .nav-shell {
    grid-template-columns: 1fr;
  }

  body[data-page^="admin"] .nav-shell,
  body[data-page="admin-login"] .nav-shell {
    grid-template-columns: 1fr;
  }

  body[data-page^="admin"] .main-nav {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 2px;
  }

  body[data-page^="admin"] .search-bar {
    width: 100%;
  }

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

  .ai-head-actions {
    justify-items: start;
  }

  .admin-toolbar,
  .admin-filter-row {
    grid-template-columns: 1fr;
  }

  .admin-bulkbar {
    grid-template-columns: 1fr 1fr;
  }

  .brand-link {
    width: 218px;
  }

  .brand-logo {
    width: 218px;
    height: 46px;
  }

  .nav-tools {
    display: grid;
    grid-template-columns: 1fr auto;
    width: 100%;
  }

  body[data-page^="admin"] .nav-tools {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .login-bar {
    gap: 6px;
  }

  .login-bar .text-button,
  .login-bar .solid-button {
    min-height: 40px;
    padding: 0 12px;
  }

  .home-hero {
    min-height: auto;
    padding: 22px 16px;
    border-radius: 18px;
  }

  .footer-inner,
  .footer-links {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .footer-inner {
    flex-direction: column;
  }

  .legal-hero {
    padding: 28px 18px;
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .eyebrow {
    margin-bottom: 16px;
    font-size: 13px;
  }

  .hero-title-art {
    width: 100%;
    margin-bottom: 16px;
  }

  .hero-mosaic {
    grid-template-columns: 1fr 1fr;
    height: auto;
    min-height: 0;
  }

  .mosaic-item {
    grid-row: auto !important;
    aspect-ratio: 1 / 1.15;
  }

  .mosaic-item:first-child {
    grid-column: span 2;
    aspect-ratio: 1.75 / 1;
  }

  .mosaic-caption {
    font-size: 12px;
  }

  .metric-row,
  .layout-two,
  .modal-panel {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    position: static;
  }

  .modal {
    padding: 12px;
  }

  .modal-panel {
    max-height: calc(100vh - 24px);
    overflow-y: auto;
  }

  .modal-media {
    max-height: 56vh;
    min-height: 260px;
  }

  .modal-media img {
    max-height: calc(56vh - 28px);
  }

  .modal-info {
    max-height: none;
    overflow: visible;
  }

  .modal-related-grid {
    grid-template-columns: 1fr;
  }

  .field-row.two,
  .style-picker {
    grid-template-columns: 1fr;
  }

  .admin-ai-results {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .main-nav {
    gap: 4px;
  }

  .nav-item {
    min-height: 34px;
    padding: 0 10px;
    font-size: 13px;
  }

  .nav-tools {
    grid-template-columns: 1fr;
  }

  body[data-page^="admin"] .nav-tools {
    grid-template-columns: 1fr 1fr;
  }

  body[data-page^="admin"] .search-bar {
    grid-column: 1 / -1;
  }

  body[data-page="admin-login"] .nav-tools {
    grid-template-columns: 1fr;
  }

  .admin-bulkbar {
    grid-template-columns: 1fr;
  }

  .collection-grid,
  .artist-strip,
  .city-grid,
  .artist-grid,
  .folder-grid,
  .feature-grid,
  .result-grid,
  .map-overview,
  .map-taxonomy,
  .artist-overview,
  .artist-stats {
    grid-template-columns: 1fr;
  }

  .login-bar {
    justify-content: flex-start;
  }

  .masonry {
    columns: 2 146px;
    column-gap: 10px;
  }

  .case-card {
    margin-bottom: 10px;
  }

  .city-grid,
  .artist-grid,
  .folder-grid,
  .feature-grid,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .section-head,
  .split-head,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .upload-strip {
    grid-template-columns: 1fr;
  }

  .admin-toolbar {
    grid-template-columns: 1fr;
  }

  .admin-count {
    justify-self: start;
  }

  .admin-filter-small {
    width: 100%;
  }
}
