@font-face {
  font-family: "PuHuiTi";
  src: url("../assets/qinzhou/%E5%AD%97%E4%BD%93/Alibaba-PuHuiTi-Light.ttf") format("truetype");
  font-style: normal;
  font-weight: 300;
}

@font-face {
  font-family: "PuHuiTi";
  src: url("../assets/qinzhou/%E5%AD%97%E4%BD%93/Alibaba-PuHuiTi-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "PuHuiTi";
  src: url("../assets/qinzhou/%E5%AD%97%E4%BD%93/Alibaba-PuHuiTi-Medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
}

@font-face {
  font-family: "PuHuiTi";
  src: url("../assets/qinzhou/%E5%AD%97%E4%BD%93/Alibaba-PuHuiTi-Heavy.otf") format("opentype");
  font-style: normal;
  font-weight: 800;
}

:root {
  color-scheme: light;
  --bg: #f3f0e8;
  --paper: #fffdf8;
  --ink: #17202b;
  --muted: #687282;
  --line: rgba(23, 32, 43, 0.12);
  --accent: #b84c37;
  --danger: #dc2626;
  --teal: #167277;
  --shadow: 0 20px 45px rgba(26, 34, 45, 0.12);
  --radius: 8px;
  font-family: "PuHuiTi", "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(23, 32, 43, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(23, 32, 43, 0.03) 1px, transparent 1px),
    linear-gradient(180deg, #fbfaf6 0%, var(--bg) 100%);
  background-size: 34px 34px, 34px 34px, auto;
}

body.has-manual-landscape {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button {
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: rgba(23, 32, 43, 0.08);
  color: inherit;
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  transform: translateY(-1px);
}

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

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: #17202b;
  color: white;
  font-size: 1.5rem;
  font-weight: 900;
}

.brand-mark.small {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  font-size: 0.9rem;
}

.brand-mascot {
  display: block;
  width: 46px;
  height: 46px;
  object-fit: contain;
  object-position: center center;
  flex: 0 0 auto;
}

.eyebrow {
  margin: 18px 0 8px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.app-shell {
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: 18px;
}

.app-shell-viewport {
  min-width: 0;
}

.app-shell.is-preview {
  width: min(2140px, 100%);
  padding-inline: clamp(10px, 1.1vw, 24px);
}

.app-shell.is-home {
  width: min(1680px, 100%);
  padding: 12px;
}

.shell-rotate-tip {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(199, 91, 52, 0.18);
  border-radius: 18px;
  background: rgba(255, 248, 242, 0.94);
  color: #91513c;
  box-shadow: 0 10px 24px rgba(23, 32, 43, 0.1);
}

.shell-rotate-tip span {
  font-size: 0.84rem;
  line-height: 1.45;
}

.shell-rotate-action {
  min-height: 36px;
  padding: 7px 12px;
  border-color: rgba(184, 76, 55, 0.22);
  background: rgba(255, 255, 255, 0.92);
  color: #7d4333;
}

.landing-page {
  display: grid;
  gap: 20px;
  margin-top: 18px;
}

.landing-hero,
.city-rail-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 26px;
  background:
    radial-gradient(circle at top left, rgba(80, 201, 255, 0.24), transparent 22%),
    radial-gradient(circle at bottom left, rgba(255, 233, 151, 0.22), transparent 18%),
    linear-gradient(135deg, #071127 0%, #102449 52%, #173467 100%);
  box-shadow: 0 30px 70px rgba(5, 16, 39, 0.42);
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 28px;
  min-height: 340px;
  padding: 42px;
}

.landing-hero::before,
.city-rail-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 10% 18%, rgba(255, 255, 255, 0.7) 0 1px, transparent 2px),
    radial-gradient(circle at 25% 34%, rgba(255, 255, 255, 0.45) 0 1px, transparent 2px),
    radial-gradient(circle at 52% 22%, rgba(255, 255, 255, 0.6) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 16%, rgba(255, 255, 255, 0.4) 0 1px, transparent 2px),
    radial-gradient(circle at 88% 28%, rgba(255, 255, 255, 0.52) 0 1px, transparent 2px),
    radial-gradient(circle at 36% 72%, rgba(255, 255, 255, 0.38) 0 1px, transparent 2px);
  opacity: 0.7;
  pointer-events: none;
}

.landing-hero::after {
  content: "";
  position: absolute;
  left: -12%;
  bottom: -34%;
  width: 62%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 30%, rgba(245, 249, 255, 0.56), rgba(118, 192, 255, 0.3) 32%, rgba(53, 121, 211, 0.1) 58%, transparent 72%);
  filter: blur(2px);
  opacity: 0.92;
  pointer-events: none;
}

.landing-copy,
.landing-summary-card,
.city-rail-head,
.city-rail {
  position: relative;
  z-index: 1;
}

.landing-copy {
  align-self: center;
  display: grid;
  gap: 12px;
  color: white;
}

.landing-copy h1 {
  margin-bottom: 0;
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
}

.landing-copy p:not(.eyebrow) {
  max-width: 44rem;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.8;
  font-size: 1rem;
}

.landing-copy-subline {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.96rem;
  letter-spacing: 0.18em;
}

.landing-summary-card {
  align-self: center;
  justify-self: end;
  display: grid;
  gap: 12px;
  width: min(100%, 360px);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04)),
    rgba(6, 15, 34, 0.38);
  color: white;
  backdrop-filter: blur(14px);
}

.landing-summary-card > span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.city-rail-head div span,
.city-rail-hint {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  letter-spacing: 0;
  text-transform: none;
}

.landing-summary-card strong {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1;
}

.landing-summary-card small,
.landing-summary-card p {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.7;
}

.landing-summary-card p {
  margin-bottom: 0;
}

.city-rail-panel {
  display: grid;
  gap: 18px;
  padding: 28px;
}

.city-rail-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  color: white;
}

.city-rail-head div {
  display: grid;
  gap: 8px;
}

.city-rail-head strong {
  font-size: 1.42rem;
}

.city-rail-hint {
  white-space: nowrap;
}

.city-rail {
  --city-gap: 18px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--city-gap) * 4)) / 5);
  gap: var(--city-gap);
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.26) transparent;
}

.city-rail::-webkit-scrollbar {
  height: 10px;
}

.city-rail::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
}

.city-rail::-webkit-scrollbar-track {
  background: transparent;
}

.landing-city-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  align-content: start;
  gap: 16px;
  min-height: 380px;
  padding: 22px 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  background: transparent;
  color: white;
  text-align: left;
  isolation: isolate;
  overflow: hidden;
  scroll-snap-align: start;
  box-shadow: none;
}

.landing-city-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--city-card-gradient);
}

.landing-city-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: 26px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.26), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(4, 14, 34, 0.08));
  pointer-events: none;
}

.landing-city-card:nth-child(5n + 1) {
  clip-path: polygon(4% 0, 100% 4%, 100% 92%, 10% 100%, 0 100%, 0 0);
}

.landing-city-card:nth-child(5n + 2) {
  clip-path: polygon(0 0, 100% 3%, 100% 90%, 6% 94%, 0 100%);
}

.landing-city-card:nth-child(5n + 3) {
  clip-path: polygon(2% 2%, 100% 0, 100% 94%, 0 94%, 0 0);
}

.landing-city-card:nth-child(5n + 4) {
  clip-path: polygon(0 2%, 100% 0, 100% 95%, 7% 100%, 0 97%);
}

.landing-city-card:nth-child(5n + 5) {
  clip-path: polygon(0 3%, 92% 0, 100% 100%, 10% 94%, 0 92%);
}

.landing-city-card:hover:not(:disabled),
.landing-city-card:focus-visible:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 20px 42px var(--city-card-glow);
}

.landing-city-card:disabled {
  cursor: default;
  opacity: 1;
  transform: none;
}

.landing-city-card.is-placeholder::after {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(4, 14, 34, 0.14)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(6, 15, 34, 0.1));
}

.landing-city-status,
.landing-city-name,
.landing-city-subtitle,
.landing-city-action {
  display: block;
}

.landing-city-status {
  width: fit-content;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(247, 250, 255, 0.8);
  color: #163050;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.1;
  writing-mode: vertical-rl;
  text-orientation: upright;
}

.landing-city-name {
  margin-top: 6px;
  font-size: clamp(2rem, 4vw, 3.7rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0.02em;
}

.landing-city-subtitle {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.98rem;
  line-height: 1.7;
}

.landing-city-action {
  align-self: end;
  color: rgba(255, 255, 255, 0.96);
  font-size: 1.05rem;
  font-weight: 800;
}

.app-shell.is-home {
  width: min(1720px, 100%);
  padding: 16px;
}

.landing-page {
  margin-top: 0;
}

.landing-stage {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: clamp(720px, 82vh, 980px);
  padding: 34px 34px 40px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  background:
    radial-gradient(circle at 16% 32%, rgba(72, 199, 255, 0.2), transparent 18%),
    radial-gradient(circle at 14% 86%, rgba(255, 218, 109, 0.16), transparent 18%),
    linear-gradient(135deg, #272c35 0%, #1d2940 18%, #15284e 56%, #24314b 100%);
  box-shadow: 0 30px 80px rgba(9, 17, 37, 0.32);
}

.landing-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 4% 20%, rgba(255, 255, 255, 0.8) 0 2px, transparent 3px),
    radial-gradient(circle at 7% 22%, rgba(255, 255, 255, 0.6) 0 2px, transparent 3px),
    radial-gradient(circle at 17% 11%, rgba(255, 255, 255, 0.78) 0 2px, transparent 3px),
    radial-gradient(circle at 28% 8%, rgba(255, 255, 255, 0.45) 0 2px, transparent 4px),
    radial-gradient(circle at 34% 5%, rgba(255, 255, 255, 0.48) 0 1px, transparent 3px),
    radial-gradient(circle at 45% 16%, rgba(255, 255, 255, 0.42) 0 2px, transparent 3px),
    radial-gradient(circle at 64% 10%, rgba(255, 255, 255, 0.36) 0 2px, transparent 4px),
    radial-gradient(circle at 83% 9%, rgba(255, 255, 255, 0.52) 0 1px, transparent 3px),
    radial-gradient(circle at 87% 17%, rgba(255, 255, 255, 0.34) 0 2px, transparent 4px),
    radial-gradient(circle at 14% 87%, rgba(255, 231, 162, 0.36) 0 2px, transparent 3px),
    radial-gradient(circle at 7% 92%, rgba(255, 231, 162, 0.26) 0 1px, transparent 3px);
  opacity: 0.9;
  pointer-events: none;
}

.landing-stage::after {
  content: "";
  position: absolute;
  left: -18%;
  bottom: 18%;
  width: 58%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 35%, rgba(255, 255, 255, 0.38), rgba(144, 196, 255, 0.2) 32%, rgba(72, 159, 239, 0.08) 56%, transparent 74%);
  box-shadow:
    0 0 80px rgba(88, 176, 255, 0.16),
    0 0 180px rgba(88, 176, 255, 0.12);
  opacity: 0.9;
  pointer-events: none;
}

.landing-stage-head,
.landing-stage-copy,
.landing-stage-rail {
  position: relative;
  z-index: 1;
}

.landing-stage-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.landing-brand {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: white;
}

.landing-brand:hover {
  transform: none;
}

.landing-brand-mark {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border: 4px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  color: white;
  font-family: "Times New Roman", serif;
  font-size: 3rem;
  font-style: italic;
  font-weight: 700;
  line-height: 1;
}

.landing-brand-copy {
  display: grid;
  gap: 4px;
  text-align: left;
}

.landing-brand-copy strong {
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
}

.landing-brand-copy small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  letter-spacing: 0.18em;
}

.landing-region-pill {
  padding: 10px 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #233149;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
}

.landing-stage-copy {
  align-self: center;
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
  color: white;
}

.landing-stage-copy .eyebrow {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  letter-spacing: 0.22em;
}

.landing-stage-copy h1 {
  margin: 0;
  font-size: clamp(4rem, 7.2vw, 7.6rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: 0.04em;
  text-shadow: 0 10px 32px rgba(0, 0, 0, 0.18);
}

.landing-stage-subline {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1rem, 2vw, 1.55rem);
  font-weight: 400;
  letter-spacing: 0.08em;
}

.landing-stage-rail {
  display: grid;
  gap: 14px;
}

.landing-stage-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
}

.landing-stage-meta strong {
  color: white;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.city-rail {
  --city-gap: 16px;
  grid-auto-columns: calc((100% - (var(--city-gap) * 4)) / 5);
  gap: var(--city-gap);
  padding: 0 0 12px;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

.landing-city-card {
  min-height: 468px;
  padding: 0 20px 24px;
  grid-template-rows: auto 1fr auto auto;
  gap: 14px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.landing-city-card::after {
  inset: 0;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 18%),
    linear-gradient(180deg, rgba(12, 22, 44, 0.02), rgba(12, 22, 44, 0.14));
}

.landing-city-card:hover:not(:disabled),
.landing-city-card:focus-visible:not(:disabled) {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: 0 24px 48px var(--city-card-glow);
}

.landing-city-status {
  margin-left: 18px;
  padding: 18px 0 22px;
  width: 68px;
  border-radius: 0 0 18px 18px;
  background: rgba(247, 250, 255, 0.82);
  color: #223247;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.08);
}

.landing-city-name {
  align-self: end;
  font-size: clamp(2.4rem, 3.4vw, 4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.03em;
}

.landing-city-subtitle {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.98rem;
  line-height: 1.55;
}

.landing-city-action {
  display: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 10px 28px rgba(23, 32, 43, 0.08);
  backdrop-filter: blur(12px);
}

.brand-button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: auto;
  padding: 0;
  background: transparent;
}

.brand-button span:last-child {
  display: grid;
  gap: 2px;
  text-align: left;
}

.brand-button small {
  color: var(--muted);
}

.topnav {
  display: flex;
  gap: 8px;
}

.topnav button {
  min-height: 38px;
  padding: 8px 12px;
  background: transparent;
}

.topnav button.is-active {
  border-color: var(--line);
  background: white;
}

.app-shell.is-book {
  width: min(1480px, 100%);
  padding: clamp(12px, 1.6vw, 24px);
}

.book-view {
  display: grid;
}

.book-shell {
  display: grid;
  gap: 16px;
  min-height: calc(100dvh - 24px);
  padding: clamp(16px, 2vw, 24px);
  border: 1px solid rgba(23, 32, 43, 0.1);
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(255, 232, 193, 0.46), transparent 30%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(247, 241, 232, 0.96));
  box-shadow: 0 24px 54px rgba(23, 32, 43, 0.12);
}

.book-shell.is-flat-mode {
  background:
    radial-gradient(circle at top left, rgba(255, 233, 202, 0.44), transparent 28%),
    linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(246, 240, 231, 0.96));
}

.book-shell-empty {
  align-content: center;
  justify-items: center;
}

.book-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.book-head-copy {
  display: grid;
  gap: 4px;
}

.book-head-copy strong {
  font-size: clamp(1.05rem, 1.6vw, 1.5rem);
}

.book-head-copy span,
.book-head-note,
.book-page-indicator,
.book-empty-copy p {
  color: var(--muted);
}

.book-head-note {
  font-size: 0.92rem;
  line-height: 1.5;
}

.book-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.book-landscape-toggle {
  display: none;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(23, 32, 43, 0.18);
  background: rgba(255, 255, 255, 0.9);
  color: inherit;
  font-size: 0.86rem;
  line-height: 1.3;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.book-landscape-toggle:hover {
  background: rgba(23, 32, 43, 0.08);
}

.book-landscape-toggle.is-active {
  background: #17202b;
  border-color: #17202b;
  color: #fff;
}

@media (max-width: 900px) {
  .book-landscape-toggle {
    display: inline-flex;
  }
}

.book-empty-copy {
  display: grid;
  gap: 8px;
  max-width: 520px;
  text-align: center;
}

.book-empty-copy strong {
  font-size: 1.1rem;
}

.book-empty-copy p {
  margin: 0;
  line-height: 1.7;
}

.book-stage {
  position: relative;
  display: grid;
  place-items: center;
  /* Centralized book tuning knobs for visual QA. */
  --book-scene-width: min(100%, 1220px);
  --book-open-width: min(100%, 1120px);
  --book-closed-width: min(48vw, 540px);
  --book-closed-max-width: 540px;
  --book-shadow-width: min(74%, 820px);
  --book-shadow-height: 48px;
  --book-shadow-alpha: 0.18;
  --book-shadow-blur: 16px;
  --book-closed-rotate-x: 12deg;
  --book-closed-rotate-y: -24deg;
  --book-closed-rotate-z: -1.4deg;
  --book-closed-back-rotate-x: 12deg;
  --book-closed-back-rotate-y: 24deg;
  --book-closed-back-rotate-z: 1.4deg;
  --book-open-rotate-x: 9deg;
  --book-open-rotate-z: -0.95deg;
  --book-open-duration: 780ms;
  --book-turn-duration: 840ms;
  --book-cover-open-angle: -172deg;
  --book-turn-forward-angle: -178deg;
  --book-turn-backward-angle: 178deg;
  --book-leaf-shadow-opacity: 0.74;
  min-height: min(72dvh, 920px);
  padding: clamp(20px, 2.2vw, 32px) clamp(44px, 4.6vw, 86px);
  border: 1px solid rgba(23, 32, 43, 0.08);
  border-radius: 22px;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.96), rgba(244, 238, 229, 0.94)),
    linear-gradient(135deg, rgba(23, 32, 43, 0.03), rgba(23, 32, 43, 0.01));
  overflow: hidden;
  touch-action: pan-y;
  perspective: 2400px;
  perspective-origin: 50% 42%;
  isolation: isolate;
}

.book-stage.is-book-desktop {
  --book-shadow-width: min(76%, 860px);
  --book-closed-rotate-x: 10deg;
  --book-closed-rotate-y: -20deg;
  --book-closed-rotate-z: -1deg;
  --book-closed-back-rotate-x: 10deg;
  --book-closed-back-rotate-y: 20deg;
  --book-closed-back-rotate-z: 1deg;
  --book-open-rotate-x: 7deg;
  --book-open-rotate-z: -0.55deg;
}

.book-stage.is-fallback {
  perspective: none;
}

.book-rotate-note {
  position: absolute;
  top: 16px;
  left: 50%;
  z-index: 7;
  max-width: min(92%, 420px);
  padding: 8px 14px;
  border: 1px solid rgba(199, 91, 52, 0.18);
  border-radius: 999px;
  background: rgba(255, 248, 242, 0.94);
  color: #91513c;
  font-size: 0.84rem;
  text-align: center;
  transform: translateX(-50%);
  box-shadow: 0 10px 24px rgba(23, 32, 43, 0.1);
}

.book-flat-stage {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: min(62dvh, 760px);
}

.book-flat-frame {
  display: grid;
  place-items: center;
  width: var(--book-scene-width);
  margin: 0;
}

.book-flat-image {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: min(62dvh, 760px);
  object-fit: contain;
  border-radius: 20px;
  box-shadow: 0 18px 42px rgba(23, 32, 43, 0.12);
  background: white;
}

.book-flat-cover {
  display: grid;
  justify-items: center;
  gap: 16px;
  width: var(--book-closed-width);
  max-width: min(100%, var(--book-closed-max-width));
}

.book-flat-cover-shell {
  position: relative;
  width: 100%;
  aspect-ratio: var(--book-page-ratio);
  padding-left: 6px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(126, 53, 48, 0.08), rgba(255, 255, 255, 0.04));
  box-shadow: 0 14px 28px rgba(23, 32, 43, 0.12);
  overflow: hidden;
}

.book-flat-cover-shell.is-back {
  padding-left: 0;
  padding-right: 6px;
}

.book-flat-cover-shell.is-custom-front,
.book-flat-cover-shell.is-custom-cover {
  padding-left: 0;
  padding-right: 0;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 12px 22px rgba(23, 32, 43, 0.12));
}

.book-flat-cover-spine {
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  border-radius: 12px 4px 4px 12px;
  background: linear-gradient(90deg, rgba(92, 30, 27, 0.5), rgba(168, 76, 68, 0.2) 58%, rgba(255, 255, 255, 0.04));
  box-shadow: inset -1px 0 2px rgba(80, 9, 16, 0.14);
}

.book-flat-cover-shell.is-back .book-flat-cover-spine {
  inset: 0 0 0 auto;
  border-radius: 4px 12px 12px 4px;
  box-shadow: inset 1px 0 2px rgba(80, 9, 16, 0.14);
}

.book-flat-cover-shell > .book-half-media {
  height: 100%;
  border-radius: 15px 18px 18px 15px;
  box-shadow:
    inset 8px 0 14px rgba(116, 42, 35, 0.09),
    inset 1px 0 0 rgba(255, 255, 255, 0.16),
    0 12px 22px rgba(23, 32, 43, 0.1);
}

.book-flat-cover-shell.is-back > .book-half-media {
  border-radius: 18px 15px 15px 18px;
  box-shadow:
    inset -8px 0 14px rgba(116, 42, 35, 0.09),
    inset -1px 0 0 rgba(255, 255, 255, 0.16),
    0 12px 22px rgba(23, 32, 43, 0.1);
}

.book-flat-cover-shell.is-custom-front > .book-half-media.is-front-art,
.book-flat-cover-shell.is-custom-cover > .book-half-media.is-cover-art {
  border-radius: 18px;
  background: transparent;
  box-shadow: none;
}

.book-flat-tip {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.book-scene {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--book-scene-width);
  min-height: min(62dvh, 760px);
  transform-style: preserve-3d;
}

.book-scene-shadow {
  position: absolute;
  bottom: 8%;
  width: var(--book-shadow-width);
  height: var(--book-shadow-height);
  border-radius: 999px;
  background: radial-gradient(circle at center, rgb(23 32 43 / var(--book-shadow-alpha)), rgba(23, 32, 43, 0) 72%);
  filter: blur(var(--book-shadow-blur));
  transform: translateZ(-24px);
}

.book-closed-object {
  position: relative;
  width: var(--book-closed-width);
  max-width: min(100%, var(--book-closed-max-width));
  aspect-ratio: var(--book-page-ratio);
  transform-style: preserve-3d;
  transform: rotateX(var(--book-closed-rotate-x)) rotateY(var(--book-closed-rotate-y)) rotateZ(var(--book-closed-rotate-z));
}

.book-closed-object.is-back {
  transform: rotateX(var(--book-closed-back-rotate-x)) rotateY(var(--book-closed-back-rotate-y)) rotateZ(var(--book-closed-back-rotate-z));
}

.book-closed-object.is-custom-front {
  transform: rotateX(var(--book-closed-rotate-x)) rotateY(var(--book-closed-rotate-y)) rotateZ(var(--book-closed-rotate-z));
}

.book-closed-pages {
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 2px;
  width: 3px;
  border-radius: 6px 2px 2px 6px;
  background: linear-gradient(90deg, rgba(112, 45, 40, 0.22), rgba(112, 45, 40, 0.04));
  box-shadow: none;
  opacity: 0.72;
  transform: translateZ(5px);
}

.book-closed-object.is-back .book-closed-pages {
  left: auto;
  right: 2px;
  border-radius: 2px 6px 6px 2px;
  box-shadow: none;
}

.book-closed-spine {
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  border-radius: 12px 4px 4px 12px;
  background: linear-gradient(90deg, rgba(92, 30, 27, 0.54), rgba(168, 76, 68, 0.22) 58%, rgba(255, 255, 255, 0.04));
  box-shadow:
    inset -1px 0 3px rgba(84, 8, 12, 0.14),
    2px 0 6px rgba(23, 32, 43, 0.05);
  transform: translateZ(7px);
}

.book-closed-object.is-back .book-closed-spine {
  inset: 0 0 0 auto;
  border-radius: 4px 12px 12px 4px;
  box-shadow:
    inset 1px 0 3px rgba(84, 8, 12, 0.14),
    -2px 0 6px rgba(23, 32, 43, 0.05);
}

.book-closed-cover-face {
  position: absolute;
  inset: 0 0 0 2px;
  border-radius: 14px 18px 18px 14px;
  overflow: hidden;
  box-shadow:
    0 12px 22px rgba(23, 32, 43, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    0 0 0 1px rgba(146, 61, 55, 0.06);
  transform: translateZ(13px);
}

.book-closed-object.is-back .book-closed-cover-face {
  inset: 0 2px 0 0;
  border-radius: 18px 14px 14px 18px;
}

.book-closed-object.is-custom-front .book-closed-cover-face,
.book-closed-object.is-custom-cover .book-closed-cover-face {
  inset: 0;
  border-radius: 18px;
  background: transparent;
  box-shadow: none;
}

.book-closed-cover-face::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 2;
  width: 6px;
  background: linear-gradient(90deg, rgba(111, 39, 34, 0.15), rgba(111, 39, 34, 0.04) 60%, rgba(255, 255, 255, 0));
  pointer-events: none;
}

.book-closed-object.is-back .book-closed-cover-face::before {
  inset: 0 0 0 auto;
  background: linear-gradient(270deg, rgba(111, 39, 34, 0.16), rgba(111, 39, 34, 0.04) 52%, rgba(255, 255, 255, 0));
}

.book-closed-object.is-custom-front .book-closed-cover-face::before,
.book-closed-object.is-custom-cover .book-closed-cover-face::before {
  display: none;
}

.book-closed-cover-face > .book-half-media {
  height: 100%;
  border-radius: inherit;
  background: transparent;
  box-shadow:
    inset 7px 0 12px rgba(116, 42, 35, 0.08),
    inset 1px 0 0 rgba(255, 255, 255, 0.18),
    0 12px 20px rgba(23, 32, 43, 0.09);
}

.book-closed-object.is-back .book-closed-cover-face > .book-half-media {
  box-shadow:
    inset -7px 0 12px rgba(116, 42, 35, 0.08),
    inset -1px 0 0 rgba(255, 255, 255, 0.18),
    0 12px 20px rgba(23, 32, 43, 0.09);
}

.book-closed-object.is-custom-front .book-closed-cover-face > .book-half-media.is-front-art,
.book-closed-object.is-custom-cover .book-closed-cover-face > .book-half-media.is-cover-art {
  background: transparent;
  box-shadow: none;
}

.book-open-object {
  position: relative;
  width: var(--book-open-width);
  aspect-ratio: var(--book-spread-ratio);
  transform-style: preserve-3d;
  transform: rotateX(var(--book-open-rotate-x)) rotateZ(var(--book-open-rotate-z));
}

.book-page-stack {
  position: absolute;
  top: 2.4%;
  bottom: 2.4%;
  width: calc(50% - 12px);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 237, 226, 0.98));
  box-shadow:
    inset 0 0 0 1px rgba(225, 216, 203, 0.92),
    0 8px 18px rgba(23, 32, 43, 0.09);
}

.book-page-stack-left {
  left: 0;
  transform: translateX(6px) translateZ(-8px);
}

.book-page-stack-right {
  right: 0;
  transform: translateX(-6px) translateZ(-8px);
}

.book-book-spine {
  position: absolute;
  top: 1.8%;
  bottom: 1.8%;
  left: 50%;
  z-index: 6;
  width: 30px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(219, 210, 198, 0.7), rgba(174, 157, 139, 0.78) 52%, rgba(228, 217, 202, 0.7));
  box-shadow:
    inset 0 0 14px rgba(66, 44, 32, 0.2),
    0 0 22px rgba(23, 32, 43, 0.08);
  transform: translateX(-50%) translateZ(6px);
}

.book-static-page,
.book-cover-leaf,
.book-turn-leaf {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  transform-style: preserve-3d;
}

.book-static-page-left {
  left: 0;
}

.book-static-page-right {
  right: 0;
}

.book-static-page.is-under {
  filter: saturate(0.98) brightness(0.98);
}

.book-half-media {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: white;
  box-shadow: 0 16px 34px rgba(23, 32, 43, 0.1);
}

.book-half-media-image {
  display: block;
  width: 200%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

.book-half-media-image-left {
  transform: translateX(0);
}

.book-half-media-image-right {
  transform: translateX(-50%);
}

.book-half-media-image-full {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.book-half-media-fill {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
}

.book-half-media-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(245, 239, 229, 0.96));
}

.book-half-media.is-front-art,
.book-half-media.is-cover-art {
  background: transparent;
  box-shadow: none;
}

.book-cover-leaf {
  left: 50%;
  z-index: 9;
  transform-origin: left center;
}

.book-cover-leaf-back {
  left: 0;
  transform-origin: right center;
}

.book-cover-leaf.is-opening {
  animation: book-cover-open var(--book-open-duration) cubic-bezier(0.23, 0.84, 0.27, 1) forwards;
}

.book-cover-leaf.is-closing {
  animation: book-cover-close var(--book-open-duration) cubic-bezier(0.23, 0.84, 0.27, 1) forwards;
}

.book-cover-leaf-back.is-opening {
  animation: book-back-cover-open var(--book-open-duration) cubic-bezier(0.23, 0.84, 0.27, 1) forwards;
}

.book-cover-leaf-back.is-closing {
  animation: book-back-cover-close var(--book-open-duration) cubic-bezier(0.23, 0.84, 0.27, 1) forwards;
}

.book-cover-inside {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 253, 247, 0.98), rgba(246, 239, 228, 0.98));
  box-shadow: inset 0 0 0 1px rgba(224, 214, 198, 0.92);
}

.book-turn-leaf {
  z-index: 10;
}

.book-turn-leaf-next {
  right: 0;
  transform-origin: left center;
  animation: book-turn-next var(--book-turn-duration) cubic-bezier(0.25, 0.8, 0.3, 1) forwards;
}

.book-turn-leaf-prev {
  left: 0;
  transform-origin: right center;
  animation: book-turn-prev var(--book-turn-duration) cubic-bezier(0.25, 0.8, 0.3, 1) forwards;
}

.book-turn-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.book-turn-face-front {
  transform: rotateY(0deg);
}

.book-turn-face-back {
  transform: rotateY(180deg);
}

.book-cover-leaf::after,
.book-turn-leaf::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(23, 32, 43, 0.18), rgba(255, 255, 255, 0.04) 32%, rgba(23, 32, 43, 0.12));
  mix-blend-mode: multiply;
  opacity: var(--book-leaf-shadow-opacity);
}

.book-turn-leaf-prev::after {
  background: linear-gradient(270deg, rgba(23, 32, 43, 0.18), rgba(255, 255, 255, 0.04) 32%, rgba(23, 32, 43, 0.12));
}

.book-cover-leaf-back::after {
  background: linear-gradient(270deg, rgba(23, 32, 43, 0.18), rgba(255, 255, 255, 0.04) 32%, rgba(23, 32, 43, 0.12));
}

.book-nav,
.book-hit-zone {
  position: absolute;
  border: 0;
  background: transparent;
}

.book-nav {
  top: 50%;
  z-index: 3;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 10px 22px rgba(23, 32, 43, 0.14);
  transform: translateY(-50%);
}

.book-nav:disabled {
  opacity: 0.42;
  cursor: default;
}

.book-nav-prev {
  left: 14px;
}

.book-nav-next {
  right: 14px;
}

.book-hit-zone {
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 18%;
}

.book-hit-zone:disabled {
  pointer-events: none;
}

.book-hit-zone-left {
  left: 0;
}

.book-hit-zone-right {
  right: 0;
}

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

.book-bottombar-single {
  width: min(360px, 100%);
  grid-template-columns: 1fr;
}

@keyframes book-cover-open {
  from {
    transform: translateZ(18px) rotateY(0deg);
  }
  to {
    transform: translateZ(18px) rotateY(var(--book-cover-open-angle));
  }
}

@keyframes book-cover-close {
  from {
    transform: translateZ(18px) rotateY(var(--book-cover-open-angle));
  }
  to {
    transform: translateZ(18px) rotateY(0deg);
  }
}

@keyframes book-back-cover-open {
  from {
    transform: translateZ(18px) rotateY(var(--book-turn-backward-angle));
  }
  to {
    transform: translateZ(18px) rotateY(0deg);
  }
}

@keyframes book-back-cover-close {
  from {
    transform: translateZ(18px) rotateY(0deg);
  }
  to {
    transform: translateZ(18px) rotateY(var(--book-turn-backward-angle));
  }
}

@keyframes book-turn-next {
  from {
    transform: translateZ(18px) rotateY(0deg);
  }
  to {
    transform: translateZ(18px) rotateY(var(--book-turn-forward-angle));
  }
}

@keyframes book-turn-prev {
  from {
    transform: translateZ(18px) rotateY(0deg);
  }
  to {
    transform: translateZ(18px) rotateY(var(--book-turn-backward-angle));
  }
}

.region-view,
.preview-view {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.region-hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(420px, 1.14fr);
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #121926;
  color: white;
  box-shadow: var(--shadow);
}

.region-copy {
  align-self: end;
  padding: 42px;
}

.region-copy h1 {
  margin-bottom: 12px;
  font-size: 4rem;
  line-height: 1;
}

.region-copy p:not(.eyebrow) {
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.8;
}

.region-map-card {
  align-self: center;
  justify-self: center;
  display: grid;
  gap: 10px;
  width: min(76%, 430px);
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background:
    radial-gradient(circle at top right, rgba(22, 114, 119, 0.5), transparent 44%),
    rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.24);
}

.region-map-card span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.region-map-card strong {
  font-size: 2.4rem;
}

.region-map-card small {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

.city-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.city-card {
  display: grid;
  min-height: 220px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 10px 22px rgba(23, 32, 43, 0.06);
}

.city-card.is-active {
  border-color: rgba(184, 76, 55, 0.28);
  background:
    linear-gradient(180deg, rgba(184, 76, 55, 0.08), transparent 55%),
    var(--paper);
}

.city-card.is-placeholder {
  background: rgba(255, 253, 248, 0.68);
}

.city-card-main {
  display: grid;
  align-content: start;
  gap: 10px;
}

.city-card h2 {
  margin-bottom: 0;
  font-size: 1.7rem;
}

.city-card p {
  color: var(--muted);
  line-height: 1.7;
}

.city-status {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--teal);
  color: white;
  font-size: 0.78rem;
  font-weight: 800;
}

.city-card button {
  align-self: end;
  width: 100%;
}

.city-card.is-active button {
  background: #17202b;
  color: white;
}

.tool-heading {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}

.tool-heading.tool-heading-compact {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px 18px;
  padding-block: 18px;
}

.tool-heading-compact .tool-heading-copy {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
}

.tool-heading-compact .back-button {
  margin: 0;
  white-space: nowrap;
}

.tool-heading.tool-heading-compact h1 {
  margin: 0;
  font-size: clamp(1.75rem, 2.2vw, 2.2rem);
  line-height: 1.08;
}

.tool-heading.tool-heading-compact p:not(.eyebrow) {
  margin: 0;
  flex: 1 1 320px;
  line-height: 1.5;
}

.tool-heading h1 {
  margin-bottom: 8px;
  font-size: 2.2rem;
}

.city-slogan {
  margin: -4px 0 10px;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.tool-heading p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.back-button {
  width: fit-content;
  border-color: var(--line);
  background: white;
}

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

.app-shell.is-preview .preview-workspace {
  grid-template-columns: minmax(260px, 320px) minmax(0, 1120px) minmax(300px, 360px);
  justify-content: center;
  gap: clamp(16px, 1.4vw, 30px);
}

.mobile-project-toolbar {
  display: none;
}

.upload-panel {
  --panel-sticky-top: 92px;
  position: sticky;
  top: var(--panel-sticky-top);
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(184, 76, 55, 0.06), transparent 34%),
    var(--paper);
  box-shadow: 0 10px 22px rgba(23, 32, 43, 0.06);
}

.photo-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: calc(100dvh - var(--panel-sticky-top) - 20px);
  min-height: 0;
  overflow: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
}

.photo-panel-header {
  display: grid;
  gap: 16px;
  flex: 0 0 auto;
}

.photo-strip-scroll {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  overflow: auto;
  overflow-x: hidden;
  padding-right: 4px;
  border-top: 1px solid rgba(23, 32, 43, 0.08);
  border-bottom: 1px solid rgba(23, 32, 43, 0.08);
  scrollbar-gutter: stable;
}

.photo-strip-scroll .photo-strip {
  padding: 4px 0;
}

.photo-panel-actions {
  display: grid;
  gap: 12px;
  flex: 0 0 auto;
}

.photo-panel-primary-actions,
.photo-panel-action-grid,
.photo-panel-utility-grid {
  display: grid;
  gap: 10px;
}

.photo-panel-action-grid,
.photo-panel-utility-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.photo-panel-mode {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(184, 76, 55, 0.16);
  border-radius: 12px;
  background: rgba(184, 76, 55, 0.08);
}

.photo-panel-mode strong {
  color: var(--ink);
  font-size: 0.94rem;
}

.photo-panel-mode span {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.photo-panel-actions .wide-button,
.photo-panel-actions .secondary-button {
  min-height: 44px;
  white-space: normal;
}

.panel-action-stack {
  display: grid;
  gap: 10px;
}

.secondary-button {
  border-color: var(--line);
  background: rgba(23, 32, 43, 0.04);
  color: var(--ink);
}

.upload-panel-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.upload-panel-copy h2 {
  margin-bottom: 0;
  font-size: 1.35rem;
}

.upload-panel-copy p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.panel-tag {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(184, 76, 55, 0.12);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
}

.upload-drop {
  display: grid;
  place-items: center;
  min-height: 100px;
  border: 1px dashed rgba(23, 32, 43, 0.26);
  border-radius: 14px;
  background: white;
  font-weight: 800;
  cursor: pointer;
}

.upload-drop input {
  display: none;
}

.album-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: baseline;
  color: var(--muted);
}

.album-summary strong {
  color: var(--ink);
  font-size: 2rem;
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
  align-content: start;
}

.photo-chip {
  position: relative;
  min-height: auto;
  aspect-ratio: 1;
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  background: #e7e1d5;
}

.photo-chip.is-drag-enabled {
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.photo-chip.is-active {
  border-color: var(--accent);
}

.photo-chip.is-selected {
  box-shadow: 0 0 0 1px rgba(216, 75, 54, 0.28);
}

.photo-chip.is-active.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(184, 76, 55, 0.24);
}

.photo-chip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.photo-chip.is-drag-source {
  opacity: 0.46;
}

.photo-chip.is-unbound {
  border-style: dashed;
  border-color: rgba(23, 32, 43, 0.16);
}

.photo-chip-index {
  position: absolute;
  left: 6px;
  bottom: 6px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(23, 32, 43, 0.78);
  color: white;
  font-size: 0.78rem;
  pointer-events: none;
}

.photo-chip-check {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(184, 76, 55, 0.22);
  background: rgba(255, 255, 255, 0.94);
  color: transparent;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 1px 2px rgba(23, 32, 43, 0.14);
  pointer-events: none;
}

.photo-chip-check.is-selected {
  border-color: #d84b36;
  background: #d84b36;
  color: white;
}

.empty-box {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 100px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}

.crop-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
}

.crop-panel-copy {
  display: grid;
  gap: 6px;
}

.crop-panel-copy strong {
  font-size: 0.98rem;
}

.crop-panel-copy p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.crop-selected-name {
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(23, 32, 43, 0.05);
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.crop-panel-actions,
.crop-panel-group {
  display: grid;
  gap: 10px;
}

.crop-panel-note {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(23, 32, 43, 0.05);
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.crop-panel-note.is-error {
  background: rgba(184, 76, 55, 0.12);
  color: var(--accent);
  font-weight: 800;
}

.crop-control {
  display: grid;
  gap: 6px;
}

.crop-control span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.crop-control strong,
.crop-control b {
  font-size: 0.9rem;
}

.crop-control input {
  width: 100%;
  margin: 0;
  accent-color: var(--accent);
}

.crop-panel-foot {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.84rem;
}

.crop-panel-foot button {
  min-height: 38px;
  border-color: var(--line);
  background: white;
}

.wide-button {
  width: 100%;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.editor-side {
  --editor-side-top: max(96px, calc(50dvh - 220px));
  position: sticky;
  top: var(--editor-side-top);
  align-self: start;
  min-width: 0;
}

.editor-side-inner {
  display: grid;
  gap: 14px;
  width: min(360px, 100%);
  max-height: calc(100dvh - var(--editor-side-top) - 20px);
  min-height: 0;
  overflow: auto;
  overflow-x: hidden;
  padding-right: 2px;
}

.editor-tool-switches {
  display: grid;
  gap: 10px;
}

.editor-tool-toggle {
  min-height: 0;
  justify-items: start;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 10px 22px rgba(23, 32, 43, 0.06);
  text-align: left;
}

.editor-tool-toggle.is-active {
  border-color: rgba(184, 76, 55, 0.32);
  background: rgba(184, 76, 55, 0.08);
}

.editor-tool-toggle strong {
  font-size: 0.95rem;
}

.editor-tool-toggle span {
  color: var(--muted);
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

.editor-tool-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 14px 32px rgba(23, 32, 43, 0.08);
  backdrop-filter: blur(10px);
}

.editor-tool-copy {
  display: grid;
  gap: 8px;
}

.editor-tool-copy strong {
  font-size: 1rem;
}

.editor-tool-copy p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.88rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.editor-tool-section {
  display: grid;
  gap: 12px;
}

.editor-slider {
  display: grid;
  gap: 6px;
}

.editor-slider span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
}

.editor-slider b {
  color: var(--accent);
}

.editor-slider input {
  width: 100%;
  margin: 0;
  accent-color: var(--accent);
}

.editor-pad {
  display: grid;
  gap: 8px;
}

.editor-pad-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.editor-pad button,
.editor-tool-actions button {
  min-height: 36px;
}

.editor-tool-actions {
  display: grid;
  gap: 10px;
}

.editor-tool-placeholder {
  display: grid;
  place-items: center;
  min-height: 120px;
  border: 1px dashed rgba(23, 32, 43, 0.2);
  border-radius: 14px;
  color: var(--muted);
  background: rgba(23, 32, 43, 0.03);
}

.ebook-preview {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.spread-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 16px 36px rgba(23, 32, 43, 0.08);
}

.spread-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.spread-meta strong {
  color: var(--ink);
}

.spread-stage {
  overflow-x: hidden;
  overflow-y: visible;
  min-width: 0;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(23, 32, 43, 0.03), rgba(23, 32, 43, 0.01)),
    white;
}

.spread-page {
  position: relative;
  width: min(100%, 1120px);
  min-width: 0;
  aspect-ratio: var(--spread-ratio, 2989 / 1453);
  margin: 0 auto;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.app-shell.is-preview .spread-page {
  width: 100%;
  max-width: 1120px;
  min-width: 0;
}

.page-block {
  position: absolute;
  pointer-events: none;
}

.frame-slot {
  position: absolute;
  margin: 0;
  background: transparent;
  transform-origin: center center;
}

.frame-slot.is-interactive {
  cursor: pointer;
}

.frame-slot.is-active {
  z-index: 2;
}

.frame-slot-media {
  position: absolute;
  overflow: hidden;
  background: white;
}

.frame-slot.is-active .frame-slot-media {
  box-shadow:
    inset 0 0 0 3px rgba(184, 76, 55, 0.88),
    0 0 0 2px rgba(255, 253, 248, 0.9);
}

.frame-slot-media.is-drop-enabled {
  cursor: copy;
}

.frame-slot-media.is-drag-enabled {
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.frame-slot-media.is-drop-enabled.is-dragover {
  outline: 3px dashed rgba(184, 76, 55, 0.58);
  outline-offset: -3px;
  background: #fff8f1;
}

.frame-slot-media.is-drag-source {
  opacity: 0.46;
}

.frame-slot img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.frame-slot-media > span {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: rgba(23, 32, 43, 0.5);
  font-size: 0.8rem;
  font-weight: 800;
  pointer-events: none;
}

.frame-slot-toolbar {
  position: absolute;
  top: 0;
  z-index: 3;
  display: grid;
  gap: 8px;
  width: 188px;
  padding: 10px;
  border: 1px solid rgba(255, 253, 248, 0.88);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 12px 26px rgba(23, 32, 43, 0.18);
  backdrop-filter: blur(10px);
}

.frame-slot-toolbar.is-outside-right {
  left: calc(100% + 12px);
}

.frame-slot-toolbar.is-outside-left {
  right: calc(100% + 12px);
}

.frame-slot-toolbar.is-empty {
  width: auto;
  max-width: 188px;
  padding: 8px 10px;
  font-size: 0.76rem;
  color: var(--muted);
}

.frame-slot-toolbar-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.frame-slot-toolbar-head strong {
  font-size: 0.78rem;
}

.frame-tool-reset {
  min-height: 30px;
  padding: 4px 10px;
  border-color: rgba(184, 76, 55, 0.22);
  background: rgba(184, 76, 55, 0.08);
  color: var(--accent);
  font-size: 0.75rem;
}

.frame-tool-zoom {
  display: grid;
  gap: 6px;
}

.frame-tool-zoom span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  height: auto;
  place-items: initial;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 700;
}

.frame-tool-zoom b {
  color: var(--accent);
}

.frame-tool-zoom input {
  width: 100%;
  margin: 0;
  accent-color: var(--accent);
}

.frame-tool-pad {
  display: grid;
  justify-items: center;
  gap: 6px;
}

.frame-tool-pad-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
}

.frame-tool-pad button {
  min-height: 30px;
  width: 100%;
  padding: 6px 10px;
  border-color: rgba(23, 32, 43, 0.08);
  background: white;
  font-size: 0.76rem;
}

@media (max-height: 920px) {
  .upload-panel {
    padding: 18px;
    gap: 14px;
  }

  .photo-panel,
  .photo-panel-header,
  .photo-panel-actions,
  .editor-side-inner,
  .editor-tool-switches,
  .editor-tool-panel {
    gap: 12px;
  }

  .upload-panel-copy h2 {
    font-size: 1.2rem;
  }

  .upload-panel-copy p,
  .photo-panel-mode span,
  .editor-tool-copy p,
  .crop-panel-note,
  .crop-selected-name {
    line-height: 1.55;
  }

  .album-summary strong {
    font-size: 1.75rem;
  }

  .photo-panel-actions .wide-button,
  .photo-panel-actions .secondary-button {
    min-height: 40px;
  }

  .editor-tool-toggle {
    padding: 10px 12px;
  }

  .editor-tool-panel {
    padding: 14px;
  }

  .book-shell {
    min-height: calc(100dvh - 18px);
    padding: 14px;
  }

  .book-stage {
    min-height: min(68dvh, 820px);
  }

  .book-scene,
  .book-flat-stage {
    min-height: min(58dvh, 680px);
  }

  .book-flat-image {
    max-height: min(58dvh, 680px);
  }
}

@media (max-height: 760px) {
  .upload-panel {
    --panel-sticky-top: 84px;
    padding: 16px;
    gap: 12px;
  }

  .photo-panel,
  .photo-panel-header,
  .photo-panel-actions,
  .photo-panel-primary-actions,
  .photo-panel-action-grid,
  .photo-panel-utility-grid,
  .editor-side-inner,
  .editor-tool-switches,
  .editor-tool-panel {
    gap: 10px;
  }

  .editor-side {
    --editor-side-top: 84px;
  }

  .upload-drop {
    min-height: 88px;
  }

  .album-summary strong {
    font-size: 1.55rem;
  }

  .book-stage {
    min-height: min(64dvh, 700px);
    padding-inline: 40px;
  }

  .book-scene,
  .book-flat-stage {
    min-height: min(54dvh, 580px);
  }

  .book-flat-image {
    max-height: min(54dvh, 580px);
  }
}

@media (max-width: 1120px) {
  .landing-stage {
    min-height: auto;
    padding: 28px 28px 32px;
  }

  .city-rail {
    grid-auto-columns: calc((100% - (var(--city-gap) * 2)) / 3);
  }

  .landing-stage-copy {
    margin: 28px 0 12px;
  }

  .landing-stage-copy h1 {
    font-size: 4.2rem;
  }

  .landing-city-card {
    min-height: 420px;
  }

  .region-hero,
  .preview-workspace {
    grid-template-columns: 1fr;
  }

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

  .upload-panel {
    position: static;
  }

  .photo-panel {
    max-height: none;
    overflow: visible;
  }

  .photo-strip-scroll {
    max-height: min(48vh, 420px);
  }

  .editor-side {
    position: static;
  }

  .editor-side-inner {
    width: 100%;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .book-stage {
    --book-scene-width: min(100%, 1080px);
    --book-open-width: min(100%, 1040px);
  }
}

@media (max-width: 760px) {
  .app-shell {
    padding: 12px;
  }

  .app-shell.is-home {
    padding: 12px;
  }

  .landing-stage {
    min-height: auto;
    padding: 20px 18px 24px;
    border-radius: 22px;
  }

  .landing-stage-head {
    gap: 12px;
  }

  .landing-brand {
    gap: 10px;
  }

  .tool-heading.tool-heading-compact {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .tool-heading-compact .tool-heading-copy {
    display: grid;
    gap: 6px;
  }

  .photo-panel {
    padding: 18px;
  }

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

  .photo-strip-scroll {
    max-height: min(46vh, 360px);
    padding-right: 0;
  }

  .photo-panel-action-grid,
  .photo-panel-utility-grid {
    grid-template-columns: 1fr;
  }

  .tool-heading-compact .back-button {
    white-space: normal;
  }

  .app-shell.is-book {
    padding: 10px;
  }

  .book-shell {
    min-height: calc(100dvh - 20px);
    padding: 10px;
    border-radius: 18px;
    gap: 10px;
  }

  .book-head {
    display: grid;
    justify-content: initial;
    gap: 4px;
  }

  .book-head-copy strong {
    font-size: clamp(0.95rem, 3.6vw, 1.2rem);
  }

  .book-head-copy span,
  .book-head-note {
    font-size: 0.78rem;
  }

  .book-head-actions {
    gap: 6px;
  }

  .book-landscape-toggle {
    font-size: 0.78rem;
    padding: 4px 10px;
  }

  .book-page-indicator {
    font-size: 0.78rem;
  }

  .book-stage {
    --book-scene-width: 100%;
    --book-open-width: min(100%, 980px);
    --book-closed-width: min(88vw, 440px);
    --book-closed-max-width: 440px;
    --book-shadow-width: min(84%, 560px);
    --book-shadow-height: 42px;
    --book-shadow-blur: 14px;
    min-height: min(68dvh, 620px);
    padding: 12px 14px;
    border-radius: 18px;
  }

  .book-scene,
  .book-flat-stage {
    min-height: min(58dvh, 520px);
  }

  .book-flat-image {
    max-height: min(58dvh, 520px);
  }

  .book-nav {
    min-height: 36px;
    padding: 6px 8px;
    font-size: 0.8rem;
  }

  .book-nav-prev {
    left: 6px;
  }

  .book-nav-next {
    right: 6px;
  }

  .book-bottombar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 4px 0;
    gap: 8px;
  }

  .book-bottombar button {
    padding: 10px 14px;
    font-size: 0.85rem;
  }

  .book-rotate-note {
    top: 10px;
    max-width: calc(100% - 24px);
    font-size: 0.8rem;
  }

  .landing-brand-mark {
    width: 52px;
    height: 52px;
    border-width: 3px;
    font-size: 2rem;
  }

  .landing-brand-copy strong {
    font-size: 1.35rem;
  }

  .landing-brand-copy small {
    font-size: 0.74rem;
    letter-spacing: 0.12em;
  }

  .landing-region-pill {
    padding: 8px 16px;
    font-size: 0.98rem;
  }

  .landing-stage-copy {
    margin: 26px 0 10px;
  }

  .landing-stage-copy h1 {
    font-size: 2.85rem;
    letter-spacing: 0.03em;
  }

  .landing-stage-subline {
    font-size: 0.94rem;
    letter-spacing: 0.04em;
  }

  .landing-stage-meta {
    display: grid;
    justify-items: start;
    gap: 6px;
  }

  .city-rail {
    grid-auto-columns: minmax(250px, 82vw);
    --city-gap: 14px;
  }

  .landing-city-card {
    min-height: 360px;
    padding: 0 18px 20px;
  }

  .landing-city-status {
    margin-left: 12px;
    width: 56px;
    padding: 14px 0 16px;
    font-size: 0.88rem;
  }

  .landing-city-name {
    font-size: 2.3rem;
  }

  .landing-city-subtitle {
    font-size: 0.92rem;
  }

  .topbar {
    grid-template-columns: 1fr;
  }

  .topnav {
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .region-hero {
    min-height: auto;
  }

  .region-copy {
    padding: 26px;
  }

  .region-copy h1 {
    font-size: 2.6rem;
  }

  .region-map-card {
    width: calc(100% - 40px);
    margin-bottom: 24px;
  }

  .city-grid {
    grid-template-columns: 1fr;
  }

  .spread-page {
    min-width: 900px;
  }

  .frame-slot-toolbar {
    width: 170px;
    padding: 8px;
  }

  .frame-slot-toolbar.is-outside-right {
    left: calc(100% + 8px);
  }

  .frame-slot-toolbar.is-outside-left {
    right: calc(100% + 8px);
  }
}

.landing-page-refined {
  margin-top: 0;
}

.landing-stage-refined {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  aspect-ratio: 2551 / 1336;
  min-height: min(860px, calc(100vh - 36px));
  padding: clamp(34px, 3vw, 74px) clamp(28px, 3.8vw, 88px) clamp(38px, 4.2vw, 72px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  background:
    radial-gradient(circle at 16% 72%, rgba(83, 201, 255, 0.14), transparent 24%),
    radial-gradient(circle at 10% 92%, rgba(255, 221, 137, 0.12), transparent 18%),
    linear-gradient(180deg, rgba(39, 46, 63, 0.28), rgba(39, 46, 63, 0.28)),
    linear-gradient(135deg, #2a2f3a 0%, #1a2840 18%, #16294c 52%, #27324b 100%);
  box-shadow: 0 28px 72px rgba(10, 17, 34, 0.28);
}

.landing-stage-refined::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 6% 14%, rgba(255, 255, 255, 0.82) 0 2px, transparent 3px),
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.56) 0 2px, transparent 4px),
    radial-gradient(circle at 22% 9%, rgba(255, 255, 255, 0.42) 0 2px, transparent 4px),
    radial-gradient(circle at 36% 5%, rgba(255, 255, 255, 0.32) 0 2px, transparent 4px),
    radial-gradient(circle at 47% 14%, rgba(255, 255, 255, 0.28) 0 3px, transparent 5px),
    radial-gradient(circle at 66% 10%, rgba(255, 255, 255, 0.22) 0 2px, transparent 4px),
    radial-gradient(circle at 78% 7%, rgba(255, 255, 255, 0.3) 0 2px, transparent 4px),
    radial-gradient(circle at 88% 16%, rgba(255, 255, 255, 0.22) 0 2px, transparent 5px),
    radial-gradient(circle at 12% 82%, rgba(255, 222, 133, 0.28) 0 2px, transparent 4px),
    radial-gradient(circle at 9% 88%, rgba(255, 222, 133, 0.24) 0 2px, transparent 4px),
    radial-gradient(circle at 18% 93%, rgba(255, 222, 133, 0.18) 0 2px, transparent 4px);
  opacity: 0.95;
  pointer-events: none;
}

.landing-stage-refined::after {
  content: "";
  position: absolute;
  left: -46%;
  bottom: -58%;
  width: 88%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 72% 28%, rgba(255, 255, 255, 0.34), rgba(194, 217, 255, 0.18) 18%, rgba(98, 174, 255, 0.12) 34%, rgba(76, 157, 255, 0.04) 46%, transparent 58%),
    radial-gradient(circle at 64% 34%, rgba(255, 173, 151, 0.08), transparent 18%),
    radial-gradient(circle at 58% 46%, rgba(255, 255, 255, 0.08), transparent 20%);
  box-shadow:
    0 0 90px rgba(83, 194, 255, 0.12),
    0 0 170px rgba(83, 194, 255, 0.06);
  opacity: 0.92;
  pointer-events: none;
}

.landing-stage-head-refined,
.landing-stage-copy-refined,
.landing-stage-rail-refined {
  position: relative;
  z-index: 1;
}

.landing-stage-head-refined {
  align-items: start;
}

.landing-brand-refined {
  gap: 16px;
  color: #fff;
}

.landing-brand-mark-refined {
  position: relative;
  display: grid;
  place-items: center;
  width: 110px;
  height: 62px;
  overflow: visible;
  color: #fff;
}

.landing-brand-loop-refined {
  position: absolute;
  inset: 0;
  border: 4px solid rgba(255, 255, 255, 0.96);
  border-radius: 999px;
}

.landing-brand-loop-refined::before {
  content: "";
  position: absolute;
  left: -13px;
  top: 11px;
  width: 34px;
  height: 30px;
  border: 4px solid rgba(255, 255, 255, 0.96);
  border-right: 0;
  border-radius: 26px 0 0 26px;
  transform: skewX(-12deg);
}

.landing-brand-stroke-refined {
  position: absolute;
  left: 19px;
  bottom: 14px;
  width: 58px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  transform: rotate(-14deg);
  transform-origin: left center;
}

.landing-brand-letter-refined {
  position: relative;
  z-index: 1;
  font-family: "Times New Roman", serif;
  font-size: 3rem;
  font-style: italic;
  font-weight: 700;
  line-height: 1;
}

.landing-brand-copy-refined {
  gap: 3px;
}

.landing-brand-copy-refined strong {
  font-size: clamp(1.9rem, 2vw, 2.6rem);
  font-weight: 800;
  line-height: 1;
}

.landing-brand-copy-refined small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.18em;
}

.landing-region-pill-refined {
  padding: 12px 32px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.98);
  color: #27314a;
  font-size: clamp(1.08rem, 1.1vw, 1.34rem);
  font-weight: 700;
  line-height: 1;
}

.landing-stage-copy-refined {
  align-self: center;
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 0 6%;
  color: #fff;
  text-align: center;
}

.landing-stage-copy-refined h1 {
  margin: 0;
  font-size: clamp(3.8rem, 6.3vw, 6.8rem);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: 0.04em;
  text-shadow: 0 10px 26px rgba(6, 11, 24, 0.16);
}

.landing-stage-subline-refined {
  margin: 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(1.2rem, 1.9vw, 1.75rem);
  font-weight: 400;
  letter-spacing: 0.08em;
}

.landing-stage-rail-refined {
  align-self: end;
  display: grid;
  gap: 18px;
}

.landing-stage-meta-refined {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
  line-height: 1.5;
}

.landing-stage-caption {
  max-width: 56rem;
  opacity: 0.82;
}

.landing-stage-meta-refined strong {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  white-space: nowrap;
}

.city-rail-refined {
  --city-gap: clamp(18px, 1.35vw, 28px);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--city-gap) * 4)) / 5);
  gap: var(--city-gap);
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  scrollbar-width: none;
  touch-action: pan-x;
}

.city-rail-refined::-webkit-scrollbar {
  display: none;
}

.landing-city-card-refined {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  justify-items: center;
  align-content: stretch;
  min-height: clamp(340px, 31vw, 502px);
  padding: 0 26px 28px;
  border: 0;
  background: transparent;
  color: #fff;
  text-align: center;
  isolation: isolate;
  overflow: hidden;
  scroll-snap-align: start;
  box-shadow: none;
  transition: transform 200ms ease, box-shadow 200ms ease, filter 200ms ease;
}

.landing-city-card-refined::before,
.landing-city-card-refined::after {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: inherit;
  pointer-events: none;
}

.landing-city-card-refined::before {
  z-index: -2;
  background: var(--city-card-gradient);
}

.landing-city-card-refined::after {
  inset: 1px;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 18%),
    linear-gradient(180deg, rgba(11, 20, 40, 0.03), rgba(11, 20, 40, 0.16));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.landing-city-card-refined[data-slot="1"] {
  clip-path: polygon(0 0, 100% 6%, 100% 89%, 0 100%);
}

.landing-city-card-refined[data-slot="2"] {
  clip-path: polygon(0 2%, 100% 4%, 100% 92%, 0 94%);
}

.landing-city-card-refined[data-slot="3"] {
  clip-path: polygon(0 3%, 100% 3%, 100% 94%, 0 94%);
}

.landing-city-card-refined[data-slot="4"] {
  clip-path: polygon(0 3%, 100% 1%, 100% 96%, 0 94%);
}

.landing-city-card-refined[data-slot="5"] {
  clip-path: polygon(0 4%, 100% 0, 100% 100%, 0 90%);
}

.landing-city-card-refined:hover:not(:disabled),
.landing-city-card-refined:focus-visible:not(:disabled) {
  transform: translateY(-10px);
  box-shadow: 0 28px 46px var(--city-card-glow);
}

.landing-city-card-refined.is-placeholder {
  filter: saturate(0.96);
}

.landing-city-card-refined:disabled {
  cursor: default;
  opacity: 1;
}

.landing-city-status-refined {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  margin-left: 4px;
  padding: 16px 0 22px;
  width: 68px;
  border-radius: 0 0 18px 18px;
  background: rgba(246, 250, 255, 0.82);
  color: #213149;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  writing-mode: vertical-rl;
  text-orientation: upright;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.08);
}

.landing-city-status-label-refined {
  display: block;
  transform: translateX(-0.155em);
}

.landing-city-copy-refined {
  position: absolute;
  left: 50%;
  top: 61.5%;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 14px;
  width: 100%;
  padding: 0 20px;
  transform: translate(-50%, -50%);
}

.landing-city-copy-refined.is-template-only {
  top: 57.5%;
  gap: 0;
}

.landing-city-name-refined {
  margin: 0;
  font-size: clamp(3rem, 3.9vw, 4.7rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.03em;
  text-shadow: 0 10px 18px rgba(0, 0, 0, 0.08);
}

.landing-city-subtitle-refined {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 1vw, 1.18rem);
  line-height: 1.35;
}

.landing-city-card-refined.is-template-slot .landing-city-subtitle-refined {
  font-size: clamp(1.15rem, 1.15vw, 1.36rem);
  line-height: 1.5;
}

.landing-city-action-refined {
  display: none;
}

@media (max-width: 1120px) {
  .landing-stage-refined {
    aspect-ratio: auto;
    min-height: 760px;
    padding: 28px 28px 34px;
  }

  .landing-stage-copy-refined {
    padding: 0 2%;
  }

  .landing-stage-copy-refined h1 {
    font-size: clamp(3.2rem, 6.9vw, 4.9rem);
  }

  .city-rail-refined {
    grid-auto-columns: calc((100% - (var(--city-gap) * 2)) / 3);
  }

  .landing-city-card-refined {
    min-height: 420px;
  }
}

@media (max-width: 760px) {
  .landing-stage-refined {
    aspect-ratio: auto;
    min-height: auto;
    padding: 20px 18px 24px;
    border-radius: 24px;
  }

  .landing-stage-refined::after {
    left: -40%;
    bottom: 18%;
    width: 96%;
    opacity: 0.84;
  }

  .landing-stage-head-refined {
    gap: 12px;
  }

  .landing-brand-refined {
    gap: 10px;
  }

  .landing-brand-mark-refined {
    width: 82px;
    height: 48px;
  }

  .landing-brand-loop-refined {
    border-width: 3px;
  }

  .landing-brand-loop-refined::before {
    left: -10px;
    top: 9px;
    width: 24px;
    height: 22px;
    border-width: 3px;
    border-radius: 18px 0 0 18px;
  }

  .landing-brand-stroke-refined {
    left: 15px;
    bottom: 11px;
    width: 42px;
    height: 3px;
  }

  .landing-brand-letter-refined {
    font-size: 2.1rem;
  }

  .landing-brand-copy-refined strong {
    font-size: 1.42rem;
  }

  .landing-brand-copy-refined small {
    font-size: 0.74rem;
    letter-spacing: 0.12em;
  }

  .landing-region-pill-refined {
    padding: 8px 16px;
    font-size: 1rem;
  }

  .landing-stage-copy-refined {
    margin: 24px 0 12px;
    padding: 0;
  }

  .landing-stage-copy-refined h1 {
    font-size: 2.45rem;
    letter-spacing: 0.03em;
  }

  .landing-stage-subline-refined {
    font-size: 0.96rem;
    letter-spacing: 0.04em;
  }

  .landing-stage-meta-refined {
    display: grid;
    justify-items: start;
    gap: 8px;
  }

  .city-rail-refined {
    --city-gap: 14px;
    grid-auto-columns: minmax(248px, 82vw);
  }

  .landing-city-card-refined {
    min-height: 350px;
    padding: 0 18px 18px;
  }

  .landing-city-status-refined {
    margin-left: 0;
    width: 56px;
    padding: 14px 0 16px;
    font-size: 0.88rem;
  }

  .landing-city-name-refined {
    font-size: 2.7rem;
  }

  .landing-city-subtitle-refined {
    font-size: 0.92rem;
  }
}

.landing-stage.landing-stage-refined {
  position: relative;
  display: block;
  aspect-ratio: 2977 / 1558;
  min-height: min(900px, calc(100vh - 36px));
  padding: 0;
  overflow: hidden;
  border-radius: 30px;
  background: #091936;
  box-shadow: 0 28px 72px rgba(10, 17, 34, 0.28);
}

.landing-stage.landing-stage-refined::before,
.landing-stage.landing-stage-refined::after {
  content: none;
  display: none;
}

.landing-stage-bg-refined {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.015);
  transform-origin: center center;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.landing-region-switcher-refined {
  position: absolute;
  top: 5.9%;
  right: 3.8%;
  z-index: 4;
  width: clamp(130px, 10vw, 164px);
}

.landing-region-hitbox-refined {
  width: 100%;
  height: clamp(40px, 3.1vw, 54px);
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
}

.landing-region-hitbox-refined:hover {
  transform: none;
}

.landing-region-hitbox-refined:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.46);
  outline-offset: 4px;
}

.landing-region-menu-refined {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  display: none;
  width: 196px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(11, 20, 40, 0.92);
  box-shadow: 0 18px 36px rgba(3, 10, 23, 0.3);
  backdrop-filter: blur(12px);
}

.landing-region-menu-refined.is-open {
  display: grid;
  gap: 8px;
}

.landing-region-option-refined {
  min-height: auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  text-align: left;
  box-shadow: none;
}

.landing-region-option-refined:hover:not(:disabled),
.landing-region-option-refined:focus-visible:not(:disabled) {
  transform: none;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.landing-region-option-refined.is-current {
  border-color: rgba(115, 187, 255, 0.5);
  background: rgba(97, 162, 255, 0.12);
}

.landing-region-option-refined span {
  font-size: 0.96rem;
  font-weight: 700;
}

.landing-region-option-refined small {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
}

.landing-region-option-refined:disabled {
  opacity: 1;
  color: rgba(255, 255, 255, 0.72);
}

.landing-rotate-tip-refined {
  position: absolute;
  left: 50%;
  bottom: 23.5%;
  z-index: 3;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(8, 18, 38, 0.48);
  color: #fff;
  transform: translateX(-50%);
  box-shadow: 0 14px 28px rgba(5, 12, 27, 0.18);
  backdrop-filter: blur(10px);
}

.landing-rotate-tip-refined span {
  font-size: 0.86rem;
  line-height: 1.3;
  white-space: nowrap;
}

.landing-rotate-action-refined {
  min-height: auto;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  box-shadow: none;
}

.landing-rotate-action-refined:hover,
.landing-rotate-action-refined:focus-visible {
  transform: none;
  background: rgba(255, 255, 255, 0.2);
}

.landing-mobile-title-mask-refined,
.landing-mobile-copy-refined {
  display: none;
}

.landing-stage-rail.landing-stage-rail-refined {
  position: absolute;
  left: 4.05%;
  right: 4.05%;
  bottom: 3.4%;
  z-index: 2;
  display: grid;
  gap: 14px;
}

.city-rail-controls-refined {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  align-items: center;
}

.city-rail-buttons-refined {
  display: inline-flex;
  gap: 16px;
  align-items: center;
}

.city-rail-button-refined {
  min-height: auto;
  width: clamp(84px, 6vw, 104px);
  height: clamp(84px, 6vw, 104px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  box-shadow: none;
  backdrop-filter: none;
}

.city-rail-button-refined svg {
  display: block;
  width: clamp(38px, 2.8vw, 48px);
  height: clamp(38px, 2.8vw, 48px);
  margin: 0 auto;
  fill: #fff;
}

.city-rail-button-refined:hover:not(:disabled),
.city-rail-button-refined:focus-visible:not(:disabled) {
  transform: translateY(-1px);
  background: transparent;
}

.city-rail-button-refined:disabled {
  opacity: 0.34;
  box-shadow: none;
}

.city-rail.city-rail-refined {
  --city-gap: clamp(18px, 1.2vw, 24px);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--city-gap) * 4)) / 5);
  gap: var(--city-gap);
  align-items: end;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  scrollbar-width: none;
  touch-action: pan-x;
}

.city-rail.city-rail-refined::-webkit-scrollbar {
  display: none;
}

.landing-city-card-refined.has-art {
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  clip-path: var(--home-block-clip, none);
  overflow: hidden;
  isolation: isolate;
}

.landing-city-card-refined.has-art::before,
.landing-city-card-refined.has-art::after {
  content: none;
  display: none;
}

.landing-city-card-refined.has-art:hover:not(:disabled),
.landing-city-card-refined.has-art:focus-visible:not(:disabled) {
  transform: none;
  box-shadow: none;
}

.landing-city-card-art-refined {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  clip-path: var(--home-block-clip, none);
  transform: scale(1.08);
  transform-origin: center center;
}

.landing-city-card.landing-city-card-refined {
  min-height: clamp(280px, 24vw, 420px);
  padding: 0 22px 20px;
}

.landing-city-card-refined.has-art[data-slot="1"] {
  aspect-ratio: 508 / 586;
  --home-block-clip: polygon(0 0, 100% 5%, 100% 89%, 0 100%);
}

.landing-city-card-refined.has-art[data-slot="2"] {
  aspect-ratio: 508 / 489;
  --home-block-clip: polygon(0 1%, 100% 2%, 100% 100%, 0 100%);
}

.landing-city-card-refined.has-art[data-slot="3"] {
  aspect-ratio: 508 / 458;
  --home-block-clip: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.landing-city-card-refined.has-art[data-slot="4"] {
  aspect-ratio: 508 / 489;
  --home-block-clip: polygon(0 1%, 100% 0, 100% 100%, 0 98%);
}

.landing-city-card-refined.has-art[data-slot="5"] {
  aspect-ratio: 508 / 586;
  --home-block-clip: polygon(0 0, 100% 0, 100% 100%, 0 89%);
}

@media (max-width: 1120px) {
  .landing-stage.landing-stage-refined {
    aspect-ratio: 2977 / 1558;
    min-height: auto;
  }

  .landing-stage-rail.landing-stage-rail-refined {
    left: 3.2%;
    right: 3.2%;
    bottom: 3.2%;
  }

  .landing-region-switcher-refined {
    top: 5.4%;
    right: 3.4%;
    width: 152px;
  }

  .city-rail.city-rail-refined {
    grid-auto-columns: calc((100% - (var(--city-gap) * 2)) / 3);
  }

  .landing-city-card.landing-city-card-refined {
    min-height: 360px;
  }

  .landing-city-copy-refined {
    top: 60%;
  }

  .landing-city-copy-refined.is-template-only {
    top: 56.5%;
  }
}

@media (max-width: 760px) {
  .app-shell.is-home {
    padding: 8px;
  }

  .landing-page.landing-page-refined {
    min-height: calc(100svh - 16px);
  }

  .landing-stage.landing-stage-refined {
    aspect-ratio: auto;
    min-height: calc(100svh - 16px);
    border-radius: 22px;
  }

  .landing-stage-bg-refined {
    transform: scale(1.08);
    object-position: center center;
  }

  .landing-stage-rail.landing-stage-rail-refined {
    left: 3%;
    right: 3%;
    bottom: 2.8%;
  }

  .city-rail-controls-refined {
    justify-content: flex-end;
  }

  .city-rail-buttons-refined {
    align-self: end;
    gap: 12px;
  }

  .city-rail-button-refined {
    width: 72px;
    height: 72px;
  }

  .city-rail-button-refined svg {
    width: 34px;
    height: 34px;
  }

  .landing-region-switcher-refined {
    top: 4.8%;
    right: 2.8%;
    width: 128px;
  }

  .landing-region-menu-refined {
    width: 170px;
    padding: 8px;
  }

  .landing-region-option-refined {
    padding: 9px 11px;
  }

  .landing-rotate-tip-refined {
    left: 50%;
    bottom: 25%;
    gap: 8px;
    padding: 9px 12px;
  }

  .landing-rotate-tip-refined span {
    font-size: 0.78rem;
  }

  .city-rail.city-rail-refined {
    --city-gap: 14px;
    grid-auto-columns: minmax(212px, 72vw);
  }

  .landing-city-card.landing-city-card-refined {
    min-height: 292px;
    padding: 0 18px 16px;
  }

  .landing-city-copy-refined {
    top: 58%;
    gap: 10px;
    padding: 0 14px;
  }

  .landing-city-copy-refined.is-template-only {
    top: 54.5%;
  }

  .landing-city-card-refined.is-template-slot .landing-city-subtitle-refined {
    font-size: 1rem;
  }
}

@media (max-width: 760px) and (orientation: portrait) {
  .shell-rotate-tip {
    display: flex;
  }

  .landing-stage-bg-refined {
    transform: scale(1.005);
    object-position: center center;
  }

  .landing-mobile-title-mask-refined {
    display: none;
  }

  .landing-mobile-copy-refined {
    position: absolute;
    left: 50%;
    top: 15%;
    z-index: 3;
    display: grid;
    justify-items: center;
    gap: 8px;
    width: min(84%, 340px);
    transform: translateX(-50%);
    color: #fff;
    text-align: center;
    text-shadow: 0 6px 16px rgba(5, 10, 22, 0.18);
    pointer-events: none;
  }

  .landing-mobile-copy-refined h1 {
    margin: 0;
    font-size: clamp(2.04rem, 7.8vw, 2.76rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: 0.03em;
  }

  .landing-mobile-copy-refined p {
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.8rem;
    line-height: 1.3;
    letter-spacing: 0.06em;
  }

  .landing-rotate-tip-refined {
    display: inline-flex;
  }
}

@media (max-width: 760px) {
  .app-shell.is-manual-landscape:not(.is-home) {
    position: fixed;
    inset: 0;
    z-index: 40;
    width: 100vw;
    max-width: none;
    margin: 0;
    padding: 0;
    background: #091936;
  }

  .app-shell.is-manual-landscape:not(.is-home) .app-shell-viewport {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100dvh;
    height: 100vw;
    padding: 14px;
    overflow: auto;
    transform: translate(-50%, -50%) rotate(90deg);
    transform-origin: center center;
  }

  .app-shell.is-manual-landscape:not(.is-home) .topbar {
    position: static;
    top: auto;
  }

  .app-shell.is-manual-landscape:not(.is-home) .shell-rotate-tip {
    margin-top: 0;
    margin-bottom: 12px;
  }

  .app-shell.is-manual-landscape:not(.is-home) .preview-view,
  .app-shell.is-manual-landscape:not(.is-home) .project-status-view,
  .app-shell.is-manual-landscape:not(.is-home) .album-hub-view {
    margin-top: 0;
  }

  .app-shell.is-home.is-manual-landscape {
    position: fixed;
    inset: 0;
    z-index: 40;
    width: 100vw;
    max-width: none;
    margin: 0;
    padding: 0;
    background: #091936;
  }

  .app-shell.is-home.is-manual-landscape .landing-page.landing-page-refined {
    min-height: 100dvh;
    margin: 0;
  }

  .app-shell.is-home.is-manual-landscape .landing-stage.landing-stage-refined {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100dvh;
    height: 100vw;
    min-height: 0;
    border-radius: 0;
    transform: translate(-50%, -50%) rotate(90deg);
    transform-origin: center center;
  }

  .app-shell.is-home.is-manual-landscape .landing-stage-bg-refined {
    transform: scale(1.02);
  }

  .app-shell.is-home.is-manual-landscape .landing-stage-rail.landing-stage-rail-refined {
    left: 3.8%;
    right: 3.8%;
    bottom: 2.4%;
    gap: 6px;
  }

  .app-shell.is-home.is-manual-landscape .city-rail.city-rail-refined {
    --city-gap: 10px;
    grid-auto-columns: calc((100% - (var(--city-gap) * 4)) / 5);
    touch-action: none;
  }

  .app-shell.is-home.is-manual-landscape .city-rail-buttons-refined {
    gap: 6px;
  }

  .app-shell.is-home.is-manual-landscape .city-rail-button-refined {
    width: 50px;
    height: 50px;
  }

  .app-shell.is-home.is-manual-landscape .city-rail-button-refined svg {
    width: 24px;
    height: 24px;
  }

  .app-shell.is-home.is-manual-landscape .landing-city-card.landing-city-card-refined {
    min-height: 186px;
    padding: 0 11px 10px;
  }

  .app-shell.is-home.is-manual-landscape .landing-city-status-refined {
    width: 38px;
    margin-left: 0;
    padding: 8px 0 10px;
    font-size: 0.62rem;
  }

  .app-shell.is-home.is-manual-landscape .landing-city-copy-refined {
    top: 55.5%;
    gap: 4px;
    padding: 0 8px;
  }

  .app-shell.is-home.is-manual-landscape .landing-city-copy-refined.is-template-only {
    top: 52.5%;
  }

  .app-shell.is-home.is-manual-landscape .landing-city-name-refined {
    font-size: 1.62rem;
  }

  .app-shell.is-home.is-manual-landscape .landing-city-subtitle-refined {
    font-size: 0.64rem;
  }

  .app-shell.is-home.is-manual-landscape .landing-city-card-refined.is-template-slot .landing-city-subtitle-refined {
    font-size: 0.68rem;
  }

  .app-shell.is-home.is-manual-landscape .landing-rotate-tip-refined {
    display: inline-flex;
    bottom: 7%;
    padding: 7px 10px;
  }

  .app-shell.is-home.is-manual-landscape .landing-rotate-tip-refined span {
    font-size: 0.72rem;
  }

  .app-shell.is-home.is-manual-landscape .landing-mobile-title-mask-refined,
  .app-shell.is-home.is-manual-landscape .landing-mobile-copy-refined {
    display: none;
  }

}

@media (max-height: 540px) and (orientation: landscape), (max-width: 960px) and (orientation: landscape) {
  .topbar {
    position: static;
    top: auto;
  }

  .preview-workspace {
    grid-template-columns: minmax(120px, 160px) minmax(0, 1fr) minmax(140px, 180px);
    gap: 6px;
  }

  .preview-workspace .photo-panel,
  .preview-workspace .editor-side {
    padding: 8px;
    gap: 6px;
    font-size: 0.78rem;
    max-height: calc(100dvh - 12px);
    overflow-y: auto;
  }

  .preview-workspace .photo-panel {
    width: 100%;
  }

  .preview-workspace .editor-side {
    width: 100%;
    max-width: 100%;
  }

  .preview-workspace .photo-panel h3,
  .preview-workspace .editor-side h3,
  .preview-workspace .photo-panel .panel-title,
  .preview-workspace .editor-side .panel-title {
    font-size: 0.84rem;
  }

  .preview-workspace .photo-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
  }

  .preview-workspace .photo-strip .photo-card,
  .preview-workspace .photo-strip .photo-tile {
    padding: 3px;
  }

  .preview-workspace .editor-side button,
  .preview-workspace .photo-panel button {
    padding: 5px 8px;
    font-size: 0.76rem;
  }

  .preview-workspace .editor-side .form-row,
  .preview-workspace .editor-side .form-group {
    gap: 4px;
  }

  .preview-workspace .editor-side label,
  .preview-workspace .photo-panel label {
    font-size: 0.74rem;
  }

  .preview-workspace .editor-side input,
  .preview-workspace .editor-side select,
  .preview-workspace .editor-side textarea {
    font-size: 0.78rem;
    padding: 5px 6px;
  }

  .book-stage.is-manual-landscape {
    min-height: calc(100dvh - 160px);
  }

  .app-shell.is-manual-landscape:not(.is-home) .book-stage {
    min-height: calc(100dvw - 160px);
  }
}

/* Software-rotated landscape (home "尝试横屏") — browser still reports portrait, so key on the shell class. */
@media (max-width: 900px) {
  .app-shell.is-manual-landscape:not(.is-home) .preview-workspace {
    grid-template-columns: minmax(120px, 160px) minmax(0, 1fr) minmax(140px, 180px);
    gap: 6px;
  }

  .app-shell.is-manual-landscape:not(.is-home) .preview-workspace .photo-panel,
  .app-shell.is-manual-landscape:not(.is-home) .preview-workspace .editor-side {
    padding: 8px;
    gap: 6px;
    font-size: 0.78rem;
    width: 100%;
    max-width: 100%;
    max-height: calc(100vw - 24px);
    overflow-y: auto;
  }

  .app-shell.is-manual-landscape:not(.is-home) .preview-workspace .photo-panel h3,
  .app-shell.is-manual-landscape:not(.is-home) .preview-workspace .editor-side h3,
  .app-shell.is-manual-landscape:not(.is-home) .preview-workspace .photo-panel .panel-title,
  .app-shell.is-manual-landscape:not(.is-home) .preview-workspace .editor-side .panel-title {
    font-size: 0.84rem;
  }

  .app-shell.is-manual-landscape:not(.is-home) .preview-workspace .photo-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
  }

  .app-shell.is-manual-landscape:not(.is-home) .preview-workspace .photo-strip .photo-card,
  .app-shell.is-manual-landscape:not(.is-home) .preview-workspace .photo-strip .photo-tile {
    padding: 3px;
  }

  .app-shell.is-manual-landscape:not(.is-home) .preview-workspace .editor-side button,
  .app-shell.is-manual-landscape:not(.is-home) .preview-workspace .photo-panel button {
    padding: 5px 8px;
    font-size: 0.76rem;
  }

  .app-shell.is-manual-landscape:not(.is-home) .preview-workspace .editor-side .form-row,
  .app-shell.is-manual-landscape:not(.is-home) .preview-workspace .editor-side .form-group {
    gap: 4px;
  }

  .app-shell.is-manual-landscape:not(.is-home) .preview-workspace .editor-side label,
  .app-shell.is-manual-landscape:not(.is-home) .preview-workspace .photo-panel label {
    font-size: 0.74rem;
  }

  .app-shell.is-manual-landscape:not(.is-home) .preview-workspace .editor-side input,
  .app-shell.is-manual-landscape:not(.is-home) .preview-workspace .editor-side select,
  .app-shell.is-manual-landscape:not(.is-home) .preview-workspace .editor-side textarea {
    font-size: 0.78rem;
    padding: 5px 6px;
  }
}

/* Mobile portrait: single-column vertical stacking for project editing page */
@media (max-width: 900px) and (orientation: portrait) {
  .app-shell.is-preview {
    overflow-x: hidden;
  }

  .app-shell.is-preview .preview-workspace {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
    max-height: none;
    overflow: visible;
    gap: 12px;
    padding-bottom: 104px;
  }

  .app-shell.is-preview .photo-panel,
  .app-shell.is-preview .ebook-preview,
  .app-shell.is-preview .editor-side {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .app-shell.is-preview .photo-panel {
    order: 1;
    max-height: none;
    overflow: visible;
  }

  .app-shell.is-preview .ebook-preview {
    order: 2;
  }

  .app-shell.is-preview .editor-side {
    display: none;
  }

  .app-shell.is-preview .editor-side.is-mobile-tool-drawer-open {
    display: block;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(86px + env(safe-area-inset-bottom));
    top: auto;
    height: auto;
    z-index: 190;
    max-height: min(40dvh, 360px);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 20px;
    box-shadow: 0 -14px 34px rgba(15, 23, 42, 0.18);
    padding: 0;
  }

  /* Mobile drawer: hide tool switches, compact panel */
  .app-shell.is-preview .editor-side.is-mobile-tool-drawer-open .editor-side-inner {
    display: block;
    width: auto;
    min-height: 0;
  }

  .app-shell.is-preview .editor-side.is-mobile-tool-drawer-open .editor-tool-switches {
    display: none;
  }

  .app-shell.is-preview .editor-side.is-mobile-tool-drawer-open .editor-tool-panel {
    padding: 10px 12px;
    gap: 6px;
  }

  .app-shell.is-preview .editor-side.is-mobile-tool-drawer-open .editor-tool-panel .tone-control-row {
    margin-bottom: 6px;
  }

  .app-shell.is-preview .editor-side.is-mobile-tool-drawer-open input[type="range"] {
    min-height: 26px;
  }

  .app-shell.is-preview .editor-side.is-mobile-tool-drawer-open .editor-tool-copy {
    padding: 4px 0;
  }

  .app-shell.is-preview .editor-side.is-mobile-tool-drawer-open .editor-tool-copy strong {
    font-size: 1rem;
  }

  .app-shell.is-preview .editor-side.is-mobile-tool-drawer-open .editor-tool-copy p {
    font-size: 0.8rem;
  }

  .app-shell.is-preview .editor-side.is-mobile-tool-drawer-open .editor-tool-actions {
    padding-top: 4px;
    gap: 6px;
  }

  .app-shell.is-preview .editor-side.is-mobile-tool-drawer-open .editor-tool-actions button {
    padding: 8px 12px;
    font-size: 0.82rem;
  }

  /* Mobile drawer: title bar + close inline */
  .app-shell.is-preview .mobile-tool-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px 4px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    margin-bottom: 4px;
  }

  .app-shell.is-preview .mobile-tool-drawer-header span {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--ink);
  }

  .app-shell.is-preview .mobile-tool-drawer-header button {
    border: none;
    background: rgba(15, 23, 42, 0.06);
    color: var(--muted);
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
  }

  .app-shell.is-preview .photo-strip-scroll {
    max-height: 320px;
    overflow-y: auto;
  }

  .app-shell.is-preview .preview-workspace {
    padding-bottom: 104px;
  }
}

.app-shell.is-preview .mobile-tool-drawer-close {
    border: none;
    background: rgba(15, 23, 42, 0.06);
    color: var(--muted);
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
  }

  .app-shell.is-preview .mobile-tool-drawer-close:active {
    background: rgba(15, 23, 42, 0.1);
  }

/* Fallback: some mobile browsers (WeChat, WebView) don't reliably match orientation: portrait */
@media (max-width: 900px) {
  .app-shell.is-preview:not(.is-manual-landscape) .mobile-project-toolbar,
  .app-shell.is-project:not(.is-manual-landscape) .mobile-project-toolbar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 200;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(10px);
  }

  .app-shell.is-preview:not(.is-manual-landscape) .mobile-project-toolbar.is-empty,
  .app-shell.is-project:not(.is-manual-landscape) .mobile-project-toolbar.is-empty {
    grid-template-columns: 1fr;
  }

  .app-shell.is-preview:not(.is-manual-landscape) .mobile-project-toolbar.is-photo-selected,
  .app-shell.is-project:not(.is-manual-landscape) .mobile-project-toolbar.is-photo-selected {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .app-shell.is-preview:not(.is-manual-landscape) .preview-workspace,
  .app-shell.is-project:not(.is-manual-landscape) .preview-workspace {
    padding-bottom: 104px;
  }

  .app-shell.is-preview:not(.is-manual-landscape) .mobile-project-toolbar-prompt,
  .app-shell.is-project:not(.is-manual-landscape) .mobile-project-toolbar-prompt {
    grid-column: 1 / -1;
    text-align: center;
    padding: 8px 0;
    color: var(--muted);
    font-size: 0.85rem;
  }

  .app-shell.is-preview:not(.is-manual-landscape) .mobile-toolbar-button,
  .app-shell.is-project:not(.is-manual-landscape) .mobile-toolbar-button {
    min-height: 44px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: white;
    color: var(--ink);
    cursor: pointer;
    padding: 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .app-shell.is-preview:not(.is-manual-landscape) .mobile-toolbar-button.is-primary,
  .app-shell.is-project:not(.is-manual-landscape) .mobile-toolbar-button.is-primary {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
  }

  .app-shell.is-preview:not(.is-manual-landscape) .mobile-toolbar-button.is-danger,
  .app-shell.is-project:not(.is-manual-landscape) .mobile-toolbar-button.is-danger {
    color: var(--danger);
    border-color: rgba(220, 38, 38, 0.2);
  }

  .app-shell.is-preview:not(.is-manual-landscape) .mobile-toolbar-button:active,
  .app-shell.is-project:not(.is-manual-landscape) .mobile-toolbar-button:active {
    opacity: 0.7;
  }

}

@media (max-height: 540px) and (orientation: landscape), (max-width: 960px) and (orientation: landscape) {
  .book-view {
    padding: 0;
    min-height: 100dvh;
  }

  .book-shell {
    gap: 4px;
    padding: 4px 8px;
    min-height: 100dvh;
    border-radius: 14px;
  }

  .book-head {
    padding: 0 4px;
    gap: 4px;
  }

  .book-head-copy strong {
    font-size: 0.85rem;
  }

  .book-head-copy span,
  .book-head-note {
    font-size: 0.68rem;
  }

  /* In landscape: hide secondary head text to maximize book space */
  .book-head-copy span {
    display: none;
  }

  .book-landscape-toggle {
    font-size: 0.72rem;
    padding: 2px 8px;
  }

  .book-page-indicator {
    font-size: 0.72rem;
  }

  .book-bottombar {
    padding: 2px 0;
    gap: 6px;
  }

  .book-bottombar button {
    padding: 4px 12px;
    font-size: 0.78rem;
  }

  .book-stage {
    min-height: calc(100dvh - 68px);
    padding: 4px 12px;
    --book-scene-width: min(98vw, 1600px);
    --book-open-width: min(96vw, 1500px);
    --book-closed-width: min(48vw, 620px);
    --book-closed-max-width: 620px;
    --book-shadow-width: min(70%, 900px);
    --book-shadow-height: 36px;
  }

  .book-nav-prev,
  .book-nav-next {
    top: 50%;
  }

  /* Hide rotate hint in landscape - screen is already wide */
  .book-rotate-note {
    display: none;
  }
}

@media (max-width: 900px) {
  .book-stage.is-manual-landscape {
    --book-scene-width: min(96vw, 1220px);
    --book-open-width: min(94vw, 1120px);
    --book-closed-width: min(42vw, 540px);
    --book-closed-max-width: 540px;
    padding: clamp(12px, 1.6vw, 28px) clamp(18px, 3vw, 64px);
    min-height: calc(100dvh - 180px);
  }

  .book-stage.is-manual-landscape.is-book-mobile {
    --book-closed-rotate-x: 10deg;
    --book-closed-rotate-y: -20deg;
    --book-closed-rotate-z: -1deg;
    --book-closed-back-rotate-x: 10deg;
    --book-closed-back-rotate-y: 20deg;
    --book-closed-back-rotate-z: 1deg;
    --book-open-rotate-x: 9deg;
    --book-open-rotate-z: -0.95deg;
    --book-shadow-width: min(76%, 860px);
    --book-shadow-height: 48px;
  }
}

@media (max-width: 900px) and (orientation: portrait) {
  .book-stage.is-manual-landscape {
    position: fixed;
    inset: 0;
    z-index: 60;
    width: 100dvh;
    height: 100dvw;
    min-height: 0;
    transform: rotate(90deg) translate(0, -100%);
    transform-origin: top left;
    border-radius: 0;
    background:
      radial-gradient(circle at center, rgba(255, 255, 255, 0.96), rgba(244, 238, 229, 0.94)),
      linear-gradient(135deg, rgba(23, 32, 43, 0.03), rgba(23, 32, 43, 0.01));
  }
}

/* Class-based mobile book overrides — independent of media queries.
   .is-book-mobile is set by buildBookViewModel() when innerWidth < 1180.
   This catches software landscape and any scenario where @media doesn't match. */
.app-shell.is-book .book-stage.is-book-mobile {
  --book-closed-width: min(88vw, 440px);
  --book-closed-max-width: 440px;
  --book-shadow-width: min(84%, 560px);
  --book-shadow-height: 42px;
  --book-shadow-blur: 14px;
  min-height: min(68dvh, 620px);
  padding: 12px 14px;
  border-radius: 18px;
}

.app-shell.is-book .book-stage.is-book-mobile .book-scene,
.app-shell.is-book .book-stage.is-book-mobile .book-flat-stage {
  min-height: min(58dvh, 520px);
}

.app-shell.is-book .book-stage.is-book-mobile .book-flat-image {
  max-height: min(58dvh, 520px);
}

/* Software (manual) landscape: user tapped "切换横屏".
   Browser still reports portrait orientation, so @media (orientation: landscape)
   won't match. In this mode the stage is fixed + rotated 90°, so the visual
   "width" is 100dvh. We MUST use dvh (not vw) for book CSS variables, because vw
   reports the narrow portrait width and would give tiny values. */
.app-shell.is-book .book-stage.is-book-mobile.is-manual-landscape {
  min-height: 0;                            /* height set by rule below */
  padding: 4px 12px;
  perspective: none;                         /* remove 3D perspective — book should be flat */
  --book-open-rotate-x: 0deg;                /* flatten open book, no tilt */
  --book-open-rotate-z: 0deg;
  --book-closed-rotate-x: 0deg;              /* flatten cover as well */
  --book-closed-rotate-y: 0deg;
  --book-closed-rotate-z: 0deg;
  --book-closed-back-rotate-x: 0deg;          /* also flatten back cover (was missing!) */
  --book-closed-back-rotate-y: 0deg;
  --book-closed-back-rotate-z: 0deg;
  --book-scene-width: min(94dvh, 1600px);   /* dvh = effective landscape width */
  --book-open-width: min(90dvh, 1500px);
  --book-closed-width: min(48dvh, 620px);
  --book-closed-max-width: 620px;
  --book-shadow-width: min(66%, 900px);
  --book-shadow-height: 36px;
}

/* In software landscape the scene's pre-rotate WIDTH becomes visual HEIGHT
   and pre-rotate HEIGHT becomes visual WIDTH. The scene's min-height (58dvh)
   would become ~490px visual width — far wider than the 390px viewport.
   Remove min-height so the scene sizes naturally to its content. */
.app-shell.is-book .book-stage.is-book-mobile.is-manual-landscape .book-scene,
.app-shell.is-book .book-stage.is-book-mobile.is-manual-landscape .book-flat-stage {
  min-height: auto;
}

/* Hide the visible spine in landscape — 蝴蝶对裱 needs no center gutter */
.app-shell.is-book .book-stage.is-book-mobile.is-manual-landscape .book-book-spine {
  display: none;
}

/* Hide decorative page stacks in landscape — their border-radius creates
   unwanted arc-shaped cutouts at the center gap when the spine is gone. */
.app-shell.is-book .book-stage.is-book-mobile.is-manual-landscape .book-page-stack {
  display: none;
}

/* Hide original nav buttons & hit zones in software landscape — they are
   inside the rotated stage and end up at wrong visual positions. */
.app-shell.is-book .book-stage.is-book-mobile.is-manual-landscape .book-nav,
.app-shell.is-book .book-stage.is-book-mobile.is-manual-landscape .book-hit-zone {
  display: none;
}

/* Hide rotate hint in software landscape (screen is already "wide") */
.app-shell.is-book .book-stage.is-book-mobile.is-manual-landscape .book-rotate-note {
  display: none;
}

/* Compact head/bottombar for mobile shell (class-based, no @media dependency) */
.app-shell.is-book .book-shell.is-mobile-shell {
  padding: 10px;
  gap: 10px;
}

.app-shell.is-book .book-shell.is-mobile-shell .book-head {
  gap: 4px;
}


/* Corner nav buttons for mobile book — position: fixed at viewport edges */
.book-nav-corners {
  position: fixed;
  inset: 0;
  z-index: 61;
  pointer-events: none;
}

.book-corner-btn {
  position: absolute;
  pointer-events: auto;
  z-index: 62;
  min-height: 36px;
  padding: 8px 14px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.16);
  color: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.3;
}

.book-corner-btn:disabled {
  opacity: 0.42;
  cursor: default;
}

.book-corner-order {
  background: var(--accent);
  color: white;
}

/* Portrait corner positions */
.book-corner-return { left: 8px; top: 8px; }
.book-corner-order { right: 8px; top: 8px; }
.book-corner-prev { left: 8px; bottom: 8px; }
.book-corner-next { right: 8px; bottom: 8px; }

/* Landscape: viewport coords rotate 90° clockwise.
   Each button moves one position clockwise. */
.is-landscape .book-corner-return { left: auto; right: 8px; }
.is-landscape .book-corner-order { top: auto; bottom: 8px; }
.is-landscape .book-corner-prev { bottom: auto; top: 8px; }
.is-landscape .book-corner-next { right: auto; left: 8px; }


/* === Mobile portrait: hide old nav/hit-zone buttons (replaced by corner buttons) === */
.app-shell.is-book .book-stage.is-book-mobile:not(.is-manual-landscape) .book-nav,
.app-shell.is-book .book-stage.is-book-mobile:not(.is-manual-landscape) .book-hit-zone {
  display: none;
}

/* Push title text right so "返回" button at left:8px doesn't overlap the heading */
.app-shell.is-book .book-shell.is-mobile-shell .book-head-copy {
  padding-left: 52px;
  padding-right: 52px;
}

/* === Landscape: remove border-radius from half-media to eliminate arc gaps ===
   Each .book-half-media has border-radius:18px and overflow:hidden. When two
   halves meet at the center gutter, the rounded inner corners create arc-shaped
   gaps at top and bottom of the spread. In landscape we flatten these so the
   spread reads as one continuous surface. */
.app-shell.is-book .book-stage.is-book-mobile.is-manual-landscape .book-scene-open .book-half-media,
.app-shell.is-book .book-stage.is-book-mobile.is-manual-landscape .book-scene-turn .book-half-media {
  border-radius: 0;
  overflow: visible;
}
.project-status-view,
.album-hub-view,
.admin-view {
  display: grid;
  gap: 18px;
}

.qinzhou-bootstrap-view {
  gap: 0;
}

.qinzhou-bootstrap-stage {
  position: relative;
  overflow: hidden;
  margin-top: 22px;
  border-radius: 24px;
  background: #efd4a8;
  box-shadow: 0 16px 36px rgba(23, 32, 43, 0.12);
}

.qinzhou-bootstrap-scene {
  position: relative;
  aspect-ratio: 1445 / 535;
}

.qinzhou-bootstrap-scene.is-loading {
  filter: saturate(0.92);
}

.qinzhou-bootstrap-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qinzhou-bootstrap-region,
.qinzhou-bootstrap-hotspot {
  position: absolute;
  top: 81.365079%;
  width: 16.949135%;
  height: 9.920635%;
  border-radius: 999px;
}

.qinzhou-bootstrap-region {
  display: none;
  pointer-events: none;
  z-index: 1;
}

.qinzhou-bootstrap-region-left,
.qinzhou-bootstrap-hotspot-left {
  left: 12.184429%;
}

.qinzhou-bootstrap-region-middle,
.qinzhou-bootstrap-hotspot-middle {
  left: 41.232872%;
}

.qinzhou-bootstrap-hotspot-right {
  left: 70.779239%;
}

.qinzhou-bootstrap-region.is-disabled {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.qinzhou-bootstrap-hotspot {
  z-index: 3;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  appearance: none;
  transition:
    box-shadow 180ms ease,
    outline-color 180ms ease;
}

.qinzhou-bootstrap-hotspot-right {
  cursor: pointer;
}

.qinzhou-bootstrap-hotspot-right:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.92);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(20, 44, 79, 0.16);
}

.qinzhou-bootstrap-hotspot-right:disabled {
  cursor: progress;
}

.qinzhou-bootstrap-hotspot.is-disabled {
  cursor: default;
}

@media (max-width: 900px) {
  .qinzhou-bootstrap-stage {
    border-radius: 20px;
  }
}

.password-gate-card,
.project-insight-bar,
.project-status-banner,
.album-hub-card,
.admin-card,
.admin-metric-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 12px 28px rgba(23, 32, 43, 0.08);
}

.password-gate-card,
.album-hub-card,
.admin-card,
.admin-metric-card {
  padding: 20px;
}

.password-gate-form,
.admin-create-form,
.admin-settings-form {
  display: grid;
  gap: 14px;
}

.password-gate-form label,
.admin-create-form label,
.admin-settings-form label,
.project-order-form label,
.admin-search {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.password-gate-form input,
.admin-create-form input,
.admin-create-form select,
.admin-settings-form input,
.admin-settings-form select,
.admin-settings-form textarea,
.project-order-form input,
.project-order-form select,
.project-order-form textarea,
.admin-search input {
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(23, 32, 43, 0.16);
  border-radius: 12px;
  background: white;
  color: var(--ink);
}

.admin-settings-form textarea,
.project-order-form textarea {
  min-height: 88px;
  resize: vertical;
}

.project-contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-contact-list span,
.project-inline-note {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(23, 32, 43, 0.06);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.project-inline-note-centered {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.project-insight-bar {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(200px, 0.8fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
}

.project-insight-copy {
  display: grid;
  gap: 6px;
}

.project-insight-copy strong {
  font-size: 1.15rem;
}

.project-insight-copy small {
  color: var(--muted);
  line-height: 1.6;
}

.project-heat-card {
  display: grid;
  gap: 8px;
}

.project-heat-card span {
  font-size: 0.86rem;
  font-weight: 700;
}

.project-heat-card small {
  color: var(--muted);
}

.project-heat-track {
  position: relative;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(23, 32, 43, 0.08);
}

.project-heat-track i {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff9963 0%, #ffbf3c 100%);
}

.project-action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.project-action-bar button {
  min-width: 132px;
}

.project-status-banner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
}

.project-status-banner strong,
.project-status-banner span,
.project-status-banner small {
  display: block;
}

.project-status-banner strong {
  margin-bottom: 4px;
}

.project-status-banner span,
.project-status-banner small {
  color: var(--muted);
  line-height: 1.6;
}

.project-status-banner.is-locked {
  border-color: rgba(184, 76, 55, 0.28);
  background: rgba(184, 76, 55, 0.08);
}

.project-order-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 16px;
}

.project-order-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 12px 28px rgba(23, 32, 43, 0.08);
}

.project-order-head {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: flex-start;
}

.project-order-head h2,
.project-order-price strong {
  margin: 0;
}

.project-order-head p,
.project-order-price span,
.project-order-price small {
  margin: 4px 0 0;
  color: var(--muted);
}

.project-order-price {
  display: grid;
  gap: 4px;
  justify-items: end;
  text-align: right;
}

.project-order-price strong {
  font-size: 1.5rem;
}

.project-order-payment-box {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(38, 118, 80, 0.14);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(250, 255, 251, 0.98), rgba(237, 247, 241, 0.92));
}

.project-order-payment-box.is-disabled {
  border-color: rgba(120, 128, 142, 0.18);
  background: rgba(246, 242, 235, 0.9);
}

.project-order-payment-head,
.project-order-payment-amount {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  justify-content: space-between;
  align-items: baseline;
}

.project-order-payment-head strong,
.project-order-payment-amount strong,
.project-order-payment-note {
  margin: 0;
}

.project-order-payment-head small,
.project-order-payment-amount span {
  color: var(--muted);
}

.project-order-payment-amount strong {
  font-size: 1.3rem;
}

.project-order-payment-qr {
  display: grid;
  place-items: center;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(38, 118, 80, 0.12);
  background: rgba(255, 255, 255, 0.88);
}

.project-order-payment-qr img {
  display: block;
  width: min(100%, 220px);
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.project-order-payment-note {
  color: var(--muted);
  line-height: 1.6;
}

.project-order-payment-box.is-disabled .project-order-payment-amount strong {
  color: var(--muted);
}

.project-order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-order-actions button {
  flex: 1 1 180px;
}

.project-order-form,
.project-order-shipping-grid {
  display: grid;
  gap: 12px;
}

.project-order-shipping-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-order-span-2 {
  grid-column: 1 / -1;
}

.upload-failure-box {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(184, 76, 55, 0.16);
  border-radius: 14px;
  background: rgba(184, 76, 55, 0.08);
}

.upload-failure-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
}

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

.upload-failure-item {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.74);
}

.upload-failure-item span,
.upload-failure-item small {
  color: var(--muted);
  line-height: 1.5;
}

.upload-progress-box {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(53, 104, 90, 0.16);
  border-radius: 14px;
  background: rgba(53, 104, 90, 0.08);
}

.upload-progress-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
}

.upload-progress-head span,
.upload-progress-box small,
.upload-progress-meta {
  color: var(--muted);
  line-height: 1.5;
}

.upload-progress-bar {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(53, 104, 90, 0.12);
}

.upload-progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(53, 104, 90, 0.78), rgba(91, 153, 136, 0.92));
}

.upload-progress-meta {
  margin: 0;
}

.preview-workspace.is-edit-locked .frame-slot.is-interactive,
.preview-workspace.is-edit-locked .frame-slot-media.is-drop-enabled,
.upload-drop.is-disabled {
  cursor: not-allowed;
}

.preview-workspace.is-edit-locked .frame-slot-media,
.upload-drop.is-disabled,
.preview-workspace.is-edit-locked .panel-action-stack button,
.preview-workspace.is-edit-locked .wide-button {
  opacity: 0.62;
}

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

.album-hub-card {
  display: grid;
  gap: 10px;
}

.album-hub-card strong {
  font-size: 1.05rem;
}

.album-hub-card p,
.album-hub-card span {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.album-hub-card.is-ready {
  border-color: rgba(22, 114, 119, 0.28);
  background: linear-gradient(180deg, rgba(22, 114, 119, 0.08), rgba(255, 253, 248, 0.96));
}

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

.admin-metric-card {
  display: grid;
  gap: 4px;
}

.admin-metric-card strong {
  font-size: 1.8rem;
}

.admin-metric-card span {
  color: var(--muted);
}

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

.admin-sidebar {
  display: grid;
  gap: 16px;
}

.admin-project-list,
.admin-asset-grid,
.admin-metric-grid,
.admin-action-grid {
  display: grid;
  gap: 10px;
}

.admin-project-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
}

.admin-project-delete-stack {
  display: grid;
  gap: 6px;
  align-content: start;
  justify-items: stretch;
}

.admin-project-item {
  display: grid;
  justify-items: start;
  gap: 4px;
  width: 100%;
  min-height: 0;
  padding: 14px 16px;
  border: 1px solid rgba(23, 32, 43, 0.08);
  border-radius: 14px;
  background: white;
  text-align: left;
}

.admin-project-display-lines {
  display: grid;
  gap: 4px;
  width: 100%;
}

.admin-project-display-lines ~ .admin-project-customer,
.admin-project-display-lines ~ .admin-project-meta,
.admin-project-display-lines ~ .admin-project-token,
.admin-project-display-lines ~ strong {
  display: none;
}

.admin-project-customer {
  color: var(--ink);
  font-weight: 600;
  line-height: 1.4;
}

.admin-project-item strong {
  line-height: 1.4;
}

.admin-project-meta {
  color: var(--muted);
  line-height: 1.45;
}

.admin-project-token {
  line-height: 1.45;
  word-break: break-all;
}

.admin-project-item.is-active {
  border-color: rgba(184, 76, 55, 0.28);
  background: rgba(184, 76, 55, 0.08);
}

.admin-project-item span,
.admin-project-item small {
  color: var(--muted);
}

.admin-project-delete {
  align-self: stretch;
  min-width: 72px;
  min-height: 0;
  padding-inline: 14px;
  border: 1px solid rgba(184, 76, 55, 0.22);
  border-radius: 14px;
  background: rgba(184, 76, 55, 0.08);
  color: #9d3a2b;
  box-shadow: none;
}

.admin-project-delete:hover {
  background: rgba(184, 76, 55, 0.14);
}

.admin-project-delete:disabled {
  border-color: rgba(120, 128, 142, 0.16);
  background: rgba(246, 242, 235, 0.88);
  color: var(--muted);
}

.admin-project-delete-note {
  display: block;
  width: 92px;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.45;
  text-align: center;
}

.admin-project-entry.is-active .admin-project-delete {
  border-color: rgba(184, 76, 55, 0.3);
}

.admin-detail-panel {
  min-width: 0;
}

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

.admin-detail-head h2 {
  margin: 8px 0 4px;
}

.admin-detail-head p {
  margin-bottom: 0;
  color: var(--muted);
}

.admin-order-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.admin-order-facts article,
.admin-retention-box {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(23, 32, 43, 0.04);
}

.admin-order-facts span,
.admin-order-facts small,
.admin-retention-box p,
.admin-retention-box small {
  color: var(--muted);
}

.admin-order-facts strong {
  font-size: 1.12rem;
}

.admin-settings-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-form-span-2,
.admin-settings-form .admin-checkbox,
.admin-settings-form > button {
  grid-column: 1 / -1;
}

.admin-checkbox {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
}

.admin-checkbox input {
  min-height: 0;
}

.admin-metric-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 20px 0;
}

.admin-inline-note {
  padding: 12px 14px;
  border: 1px dashed rgba(23, 32, 43, 0.18);
  border-radius: 12px;
  background: rgba(23, 32, 43, 0.03);
  color: var(--muted);
  line-height: 1.6;
}

.admin-metric-grid article {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(23, 32, 43, 0.04);
}

.admin-metric-grid strong {
  font-size: 1.35rem;
}

.admin-metric-grid span {
  color: var(--muted);
}

.admin-confirmed-project-label,
.admin-confirmed-count-label {
  color: var(--muted);
}

.admin-confirmed-project-label + span {
  display: none;
}

.admin-confirmed-count-card {
  order: 5;
}

.admin-metric-grid > article:nth-child(2) {
  order: 1;
}

.admin-metric-grid > article:nth-child(3) {
  order: 2;
}

.admin-metric-grid > article:nth-child(4) {
  order: 3;
}

.admin-metric-grid > article:nth-child(5) {
  order: 4;
}

.admin-metric-grid > article:nth-child(6) {
  display: none;
}

.admin-metric-grid > article:nth-child(7) {
  order: 6;
}

.admin-action-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 18px;
}

.admin-share-box {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.admin-share-box code {
  display: block;
  padding: 12px;
  overflow-wrap: anywhere;
  border-radius: 12px;
  background: rgba(23, 32, 43, 0.05);
}

.admin-retention-box {
  margin-bottom: 18px;
}

.admin-retention-box p,
.admin-retention-box small {
  margin: 0;
  line-height: 1.6;
}

.admin-asset-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.admin-asset-sections,
.admin-asset-section {
  display: grid;
  gap: 12px;
}

.admin-asset-sections {
  margin-top: 18px;
}

.admin-asset-sections-head,
.admin-asset-section-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: flex-start;
}

.admin-asset-sections-head p,
.admin-asset-section-head p {
  margin: 4px 0 0;
  color: var(--muted);
}

.admin-asset-sections-head span,
.admin-asset-section-head span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.admin-asset-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(23, 32, 43, 0.08);
  border-radius: 14px;
  background: white;
}

.admin-asset-card-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-asset-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  background: rgba(23, 32, 43, 0.04);
}

.admin-asset-location {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(23, 32, 43, 0.06);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.admin-asset-location.is-unbound {
  background: rgba(184, 76, 55, 0.12);
  color: var(--accent);
}

.admin-asset-card small {
  color: var(--muted);
}

.admin-quality-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-quality-tags span {
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(23, 32, 43, 0.06);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.admin-quality-tags span.is-warning {
  background: rgba(184, 76, 55, 0.12);
  color: var(--accent);
}

.admin-export-log {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid rgba(23, 32, 43, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
}

.admin-export-log-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
}

.admin-export-log-head span {
  color: var(--muted);
  font-size: 0.86rem;
}

.admin-export-table {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
}

.admin-export-table article {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(23, 32, 43, 0.04);
}

.admin-export-table article.has-warning {
  background: rgba(184, 76, 55, 0.1);
}

.admin-export-table small {
  color: var(--muted);
}

.admin-export-table em {
  color: var(--accent);
  font-style: normal;
  font-weight: 800;
}

@media (max-width: 1120px) {
  .project-insight-bar,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .project-order-grid,
  .admin-order-facts,
  .admin-settings-form {
    grid-template-columns: 1fr;
  }

  .project-action-bar {
    justify-content: flex-start;
  }

  .album-hub-grid,
  .admin-overview-grid,
  .admin-metric-grid,
  .admin-action-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .project-insight-bar,
  .project-status-banner,
  .admin-detail-head {
    grid-template-columns: 1fr;
    display: grid;
  }

  .project-order-shipping-grid,
  .admin-settings-form,
  .admin-order-facts {
    grid-template-columns: 1fr;
  }

  .album-hub-grid,
  .admin-overview-grid,
  .admin-metric-grid,
  .admin-action-grid {
    grid-template-columns: 1fr;
  }

  .project-order-price {
    justify-items: start;
    text-align: left;
  }

  .project-order-actions button {
    width: 100%;
  }

  .project-action-bar button {
    width: 100%;
  }
}

/* ── Order Modal ── */
.project-order-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  padding: 12px;
}

.project-order-modal-card {
  width: min(900px, calc(100vw - 24px));
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  background: #fffdf8;
  border-radius: 20px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
  display: grid;
  gap: 16px;
  padding: 24px;
}

.project-order-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-order-modal-header h2 {
  margin: 0;
  font-size: 1.3rem;
}

.project-order-modal-header .close-button,
.payment-qr-zoom-card .close-button {
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--muted);
  line-height: 1;
}

.project-order-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 20px;
}

.project-order-modal-payment,
.project-order-modal-form {
  display: grid;
  gap: 14px;
}

.project-order-modal-payment .project-order-payment-qr img {
  width: min(100%, 340px);
}

.qr-zoom-button {
  text-align: center;
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font-size: 0.9rem;
  text-decoration: underline;
  padding: 4px 0;
}

.project-order-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

/* ── QR Zoom ── */
.payment-qr-zoom-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  padding: 20px;
}

.payment-qr-zoom-card {
  position: relative;
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.35);
}

.payment-qr-zoom-card .close-button {
  position: absolute;
  top: 8px;
  right: 8px;
}

.payment-qr-zoom-image {
  display: block;
  width: min(560px, calc(86vw));
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

/* Mobile: single column */
@media (max-width: 720px) {
  .project-order-modal-card {
    padding: 16px;
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
  }
  .project-order-modal-grid {
    grid-template-columns: 1fr;
  }
  .project-order-modal-payment .project-order-payment-qr img {
    width: min(100%, 280px);
  }
  .payment-qr-zoom-image {
    width: min(86vw, 560px);
  }
}

/* ── Order submit button (red, full-width) ── */
.fallback-pdf-link {
    display: inline-block;
    margin-top: 4px;
    font-weight: 600;
    color: var(--accent);
    text-decoration: underline;
  }

  .photo-panel-actions .is-order-submit {
  grid-column: 1 / -1;
  color: #b91c1c;
  background: #fff1f1;
  border: 1px solid #fecaca;
  font-weight: 800;
}

.photo-panel-actions .is-order-submit:hover {
  background: #fee2e2;
  border-color: #fca5a5;
}

/* ── Order form validation error ── */
.project-order-modal-form .project-inline-note.is-error {
  color: #b91c1c;
  background: #fff1f1;
  border: 1px solid #fecaca;
  font-weight: 700;
}

/* ── Order status badges ── */
.order-status-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.order-status-badge.is-pending {
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fecaca;
}

.order-status-badge.is-confirmed {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.order-status-badge.is-draft,
.order-status-badge.is-cancelled {
  background: #f5f5f5;
  color: #6b7280;
  border: 1px solid #e5e5e5;
}

/* ── Admin metric grid item status colors ── */
.admin-metric-grid article.is-pending strong {
  color: #be123c;
}

.admin-metric-grid article.is-pending span {
  color: #be123c;
  font-weight: 500;
}

.admin-metric-grid article.is-confirmed strong {
  color: #047857;
}

.admin-metric-grid article.is-confirmed span {
  color: #047857;
  font-weight: 500;
}

/* ── Admin metric card status colors ── */
.admin-metric-card.is-danger strong {
  color: #be123c;
}

.admin-metric-card.is-danger span {
  color: #be123c;
  font-weight: 500;
}

.admin-metric-card.is-success strong {
  color: #047857;
}

.admin-metric-card.is-success span {
  color: #047857;
  font-weight: 500;
}

/* ── Admin project entry status indicator ── */
.admin-project-status-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  flex-shrink: 0;
}

.admin-project-status-indicator.is-pending {
  background: #be123c;
}

.admin-project-status-indicator.is-confirmed {
  background: #047857;
}

.admin-project-status-indicator.is-draft,
.admin-project-status-indicator.is-cancelled {
  background: #9ca3af;
}

/* ── Admin retention box updates ── */
.admin-retention-box.is-auto-cleanup {
  border-left-color: #f97316;
}

.admin-retention-box.is-auto-cleanup p {
  color: #9a3412;
}

/* ── Admin cleanup section ── */
.admin-cleanup-section {
  background: #fffcf7;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 16px 20px;
  margin: 16px 0;
  display: grid;
  gap: 10px;
}

.admin-cleanup-section h2 {
  margin: 0;
  font-size: 1.1rem;
}

.admin-cleanup-section p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-cleanup-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-cleanup-tools .secondary-button {
  font-size: 0.85rem;
  padding: 6px 14px;
}

.admin-cleanup-result {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.9rem;
}

.admin-cleanup-result p {
  margin: 2px 0;
  color: #92400e;
}

@media (max-width: 720px) {
  .admin-cleanup-tools {
    flex-direction: column;
  }
}
