:root {
  --bg-canvas: #f4f3f9;
  --bg-card: #f8f7fc;
  --bg-pure: #ffffff;
  --ink: #151422;
  --ink-sub: #545269;
  --ink-faint: #8f8ca6;
  --line-dark: #1d1c2e;
  --line-soft: #dcd9ea;
  --violet: #854dff;
  --violet-deep: #5033b8;
  --violet-mid: #6e45db;
  --violet-soft: #c5a8ff;
  --violet-tint: #eae3ff;
  --acid: #d6ff4b;
  --acid-deep: #c4f22e;
  --terracotta: #c85630;
  --cyan: #38bdf8;
  --danger: #d93848;

  --font-sans: "Noto Sans SC", "HarmonyOS Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-display: "Space Grotesk", "Bahnschrift", "DIN Alternate", "Noto Sans SC", sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --nav-height: 48px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background: var(--bg-canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--bg-canvas);
  line-height: 1.65;
}

.hidden {
  display: none !important;
}

/* Star-chart & radiating architectural line backdrop */
.bg-constellation {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.92;
}

main, header, section, footer, .app-shell, .gate-screen {
  position: relative;
  z-index: 1;
}

.container {
  width: min(1240px, 94vw);
  margin: 0 auto;
}

/* =================================================================
   UTILITY TYPOGRAPHY, MOTIFS & CHAMFERED FRAMES
================================================================== */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-sub);
}

.slash-dual {
  font-weight: 900;
  letter-spacing: -0.08em;
  font-style: italic;
}
.slash-dual .s1 { color: var(--violet-deep); }
.slash-dual .s2 { color: var(--terracotta); }

.slash-violet {
  font-weight: 900;
  letter-spacing: -0.06em;
  font-style: italic;
  color: var(--violet-mid);
}

.hl-acid {
  background: linear-gradient(
    to bottom,
    transparent 52%,
    var(--acid) 52%,
    var(--acid) 96%,
    transparent 96%
  );
  padding: 0 3px;
  font-weight: 700;
  color: var(--ink);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.mono-muted {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}

.mono-val {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

/* Diagonal Hatched Shadow Wrapper */
.hatched-frame {
  position: relative;
  display: block;
}

.hatched-frame::after {
  content: "";
  position: absolute;
  inset: 11px -11px -11px 11px;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(80, 51, 184, 0.28) 0px,
    rgba(80, 51, 184, 0.28) 2px,
    transparent 2px,
    transparent 7px
  );
  z-index: 0;
  pointer-events: none;
}

.hatched-frame--tl-br::after {
  clip-path: polygon(
    34px 0, 100% 0, 100% calc(100% - 34px),
    calc(100% - 34px) 100%, 0 100%, 0 34px
  );
}

.hatched-frame--on-violet::after {
  inset: 11px -11px -11px 11px;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(21, 20, 34, 0.26) 0px,
    rgba(21, 20, 34, 0.26) 2px,
    transparent 2px,
    transparent 7px
  );
  clip-path: polygon(
    0 0, calc(100% - 30px) 0, 100% 30px,
    100% 100%, 30px 100%, 0 calc(100% - 30px)
  );
}

/* Chamfered Geometry Helpers */
.chamfer-tl-br {
  clip-path: polygon(
    34px 0, 100% 0, 100% calc(100% - 34px),
    calc(100% - 34px) 100%, 0 100%, 0 34px
  );
}

.chamfer-tl-br-wrap {
  position: relative;
  z-index: 1;
  background: var(--line-dark);
  padding: 2px;
  clip-path: polygon(
    34px 0, 100% 0, 100% calc(100% - 34px),
    calc(100% - 34px) 100%, 0 100%, 0 34px
  );
}

.chamfer-tl-br-inner {
  clip-path: polygon(
    33px 0, 100% 0, 100% calc(100% - 33px),
    calc(100% - 33px) 100%, 0 100%, 0 33px
  );
}

.chamfer-tr-bl-wrap {
  position: relative;
  z-index: 1;
  background: var(--line-dark);
  padding: 2px;
  clip-path: polygon(
    0 0, calc(100% - 30px) 0, 100% 30px,
    100% 100%, 30px 100%, 0 calc(100% - 30px)
  );
}

.chamfer-tr-bl-inner {
  clip-path: polygon(
    0 0, calc(100% - 29px) 0, 100% 29px,
    100% 100%, 29px 100%, 0 calc(100% - 29px)
  );
}

.chamfer-sm-wrap {
  position: relative;
  z-index: 1;
  background: var(--line-dark);
  padding: 1.5px;
  clip-path: polygon(
    16px 0, 100% 0, 100% calc(100% - 16px),
    calc(100% - 16px) 100%, 0 100%, 0 16px
  );
  transition: transform 0.18s ease;
}

.chamfer-sm-inner {
  clip-path: polygon(
    15px 0, 100% 0, 100% calc(100% - 15px),
    calc(100% - 15px) 100%, 0 100%, 0 15px
  );
}

.gallery-card-frame:hover .chamfer-sm-wrap {
  transform: translate(-3px, -3px);
}

/* =================================================================
   BUTTONS & PILLS
================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 40px;
  padding: 0 18px;
  border: 2px solid var(--ink);
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.14s ease, background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-acid {
  background: var(--acid);
  color: var(--ink);
  box-shadow: 3px 3px 0 rgba(21, 20, 34, 0.14);
}

.btn-acid:hover:not(:disabled) {
  background: var(--ink);
  color: var(--acid);
  transform: translate(-2px, -2px);
}

.btn-violet {
  background: var(--violet);
  color: #fff;
  border-color: var(--ink);
}

.btn-violet:hover:not(:disabled) {
  background: var(--violet-deep);
  transform: translate(-2px, -2px);
}

.btn-outline-dark {
  background: var(--bg-pure);
  color: var(--ink);
  border-color: var(--line-dark);
}

.btn-outline-dark:hover:not(:disabled) {
  background: var(--violet-tint);
  border-color: var(--violet-deep);
  color: var(--violet-deep);
}

.btn-danger {
  background: #fff1f2;
  color: var(--danger);
  border-color: var(--danger);
}

.btn-danger:hover:not(:disabled) {
  background: var(--danger);
  color: #fff;
}

.btn-block {
  width: 100%;
}

.meta-pill {
  display: inline-block;
  padding: 2px 8px;
  background: var(--ink);
  color: var(--acid);
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.meta-pill--violet {
  background: var(--violet);
  color: #fff;
}

/* =================================================================
   PASSCODE GATE SCREEN (All Access Pass)
================================================================== */
.gate-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 18px;
}

.gate-wrap {
  width: 100%;
  max-width: 560px;
}

.pass-card {
  background: var(--bg-pure);
}

.pass-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 26px;
  border-bottom: 1.5px solid var(--line-dark);
  background: var(--bg-card);
}

.pass-banner {
  position: relative;
  width: 100%;
  height: 196px;
  background: #0d0818;
  border-bottom: 2px solid var(--line-dark);
  overflow: hidden;
}

.pass-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.pass-banner-tag {
  position: absolute;
  right: 14px;
  bottom: 12px;
  padding: 3px 10px;
  background: var(--acid);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.pass-body {
  padding: 28px 28px 24px;
}

.gate-title-cn {
  font-size: clamp(28px, 5vw, 38px);
  font-weight: 900;
  line-height: 1.08;
  color: var(--ink);
}

.gate-title-outline {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--violet-deep);
  text-transform: uppercase;
}

.pass-subtitle {
  margin: 10px 0 22px;
  font-size: 14px;
  color: var(--ink-sub);
}

.passcode-row {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.passcode-row input {
  flex: 1;
  height: 44px;
  padding: 0 14px;
  border: 2px solid var(--ink);
  background: var(--bg-canvas);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  outline: none;
}

.passcode-row input:focus {
  background: var(--bg-pure);
  border-color: var(--violet);
}

.passcode-row .btn {
  height: 44px;
}

.form-error {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--danger);
}

.pass-footer {
  display: flex;
  justify-content: space-between;
  padding: 12px 26px;
  border-top: 1px solid var(--line-soft);
  background: var(--bg-canvas);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-faint);
}

/* =================================================================
   TOP MINIMAL TELEMETRY BAR
================================================================== */
.app-shell {
  padding-bottom: calc(var(--nav-height) + 16px);
}

.top-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 4vw;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  border-bottom: 1.5px solid rgba(29, 28, 46, 0.12);
  backdrop-filter: blur(8px);
  background: rgba(244, 243, 249, 0.84);
  position: sticky;
  top: 0;
  z-index: 40;
  gap: 12px;
}

.top-meta-left, .top-meta-right {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.top-logo-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--ink);
  background: #000;
  flex-shrink: 0;
}

.top-meta-title {
  color: var(--ink-sub);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--violet);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.status-dot.connected {
  background: #10b981;
}

.top-quota-text {
  color: var(--ink-sub);
  font-weight: 700;
}

.top-bar-btn {
  padding: 4px 10px;
  border: 1.5px solid var(--line-dark);
  background: var(--bg-pure);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.14s ease;
}

.top-bar-btn:hover {
  background: var(--ink);
  color: var(--acid);
}

/* =================================================================
   SECTION 00: HERO (Special Site Opening + Violet Interactive Dial)
================================================================== */
.hero {
  padding: 52px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: center;
}

.hero-title-cn {
  margin-top: 12px;
  font-size: clamp(44px, 6vw, 78px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero-title-outline {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.08;
  color: transparent;
  -webkit-text-stroke: 2px var(--violet-deep);
  text-transform: uppercase;
  user-select: none;
}

.hero-badge-row {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.acid-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--acid);
  color: var(--ink);
  border: 2px solid var(--ink);
  padding: 7px 18px;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.04em;
  box-shadow: 4px 4px 0 rgba(21, 20, 34, 0.12);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: #fff;
  border: 2px solid var(--ink);
  padding: 10px 20px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.hero-cta:hover {
  background: var(--violet);
  border-color: var(--violet);
  transform: translate(-2px, -2px);
}

.hero-statement-box {
  margin-top: 44px;
  max-width: 580px;
}

.hero-statement-main {
  font-size: clamp(17px, 1.9vw, 21px);
  font-weight: 900;
  color: var(--ink);
  padding-bottom: 12px;
  border-bottom: 4px solid var(--ink);
  line-height: 1.45;
}

.leader-note {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink-sub);
}

.leader-line-svg {
  flex: 1;
  height: 52px;
  margin-top: -30px;
  overflow: visible;
  min-width: 72px;
}

.leader-note--clean {
  margin-top: 8px;
  justify-content: flex-end;
}

.leader-note--clean .leader-line-svg {
  max-width: 280px;
  height: 44px;
  margin-top: -10px;
}

/* Right Violet Dial Card */
.hero-dial-wrap {
  max-width: 440px;
  width: 100%;
  margin-left: auto;
}

.hero-dial-card {
  position: relative;
  z-index: 1;
  background: linear-gradient(145deg, #8b54ff 0%, #7d43f8 100%);
  padding: 24px 24px 22px;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dial-meta-top {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 4px;
}

.dial-svg {
  width: 100%;
  max-width: 318px;
  height: auto;
  display: block;
}

.dial-segment {
  fill: rgba(255, 255, 255, 0.18);
  stroke: rgba(255, 255, 255, 0.88);
  stroke-width: 1.5;
  transition: fill 0.2s ease;
  cursor: pointer;
}

.dial-segment:hover {
  fill: rgba(214, 255, 75, 0.45);
}

.dial-segment.active {
  fill: var(--acid);
  stroke: var(--ink);
  stroke-width: 1.8;
}

.dial-seg-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  fill: #fff;
  pointer-events: none;
  text-anchor: middle;
  dominant-baseline: central;
}

.dial-seg-label.active {
  fill: var(--ink);
}

.dial-needle-group {
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: 180px 180px;
  pointer-events: none;
}

.dial-quota-box {
  width: 100%;
  margin-top: 8px;
  padding: 10px 12px;
  background: rgba(21, 20, 34, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.dial-quota-head {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 6px;
}

.dial-quota-track {
  height: 7px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.dial-quota-fill {
  height: 100%;
  background: var(--acid);
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.dial-readout {
  margin-top: 10px;
  width: 100%;
  background: rgba(21, 20, 34, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 9px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.dial-readout-time {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  background: var(--acid);
  color: var(--ink);
  padding: 2px 8px;
  white-space: nowrap;
}

.dial-readout-text {
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  text-align: right;
}

/* =================================================================
   SHARED SECTION HEADER (Japanese Special Site DNA)
================================================================== */
.sec-block {
  padding: 40px 0 58px;
}

.sec-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--line-dark);
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.sec-header-left {
  display: flex;
  align-items: flex-end;
  gap: 16px;
}

.sec-num {
  font-family: var(--font-display);
  font-size: clamp(42px, 5vw, 58px);
  font-weight: 700;
  line-height: 0.86;
  color: var(--violet-deep);
  position: relative;
  padding-bottom: 8px;
}

.sec-num::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background: var(--violet-deep);
}

.sec-titles {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sec-en {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--ink-sub);
  text-transform: uppercase;
}

.sec-cn {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  line-height: 1.15;
  color: var(--ink);
}

.sec-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 4px;
}

.sec-topic {
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 900;
  color: var(--ink);
}

.sec-sep {
  width: 1px;
  height: 18px;
  background: var(--line-soft);
}

.sec-tag {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  color: var(--violet-deep);
}

.sec-star-line {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.sec-star-line span.bar {
  display: inline-block;
  width: 44px;
  height: 2px;
  background: var(--terracotta);
}

.sec-star-line span.star {
  color: var(--ink);
  font-size: 14px;
  line-height: 1;
}

/* =================================================================
   COLLECTIONS STRIP & FILTER TOOLBAR
================================================================== */
.collections-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.strip-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--violet-deep);
  padding: 4px 9px;
  background: var(--violet-tint);
  border-left: 3px solid var(--violet-deep);
  white-space: nowrap;
  flex-shrink: 0;
}

.members-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--line-soft);
}

.members-scroll {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  flex: 1;
  min-width: 0;
  padding: 2px 0;
}

.member-chip {
  height: 30px;
  padding: 0 9px;
  border: 1.5px solid var(--line-soft);
  background: var(--bg-pure);
  color: var(--ink-sub);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.14s ease;
}

.member-chip:hover {
  border-color: var(--violet);
  color: var(--violet-deep);
  background: var(--violet-tint);
}

.member-chip.active {
  background: var(--acid);
  color: var(--ink);
  border-color: var(--ink);
  font-weight: 900;
  box-shadow: 2px 2px 0 rgba(21, 20, 34, 0.18);
}

.collections-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0;
  flex: 1;
}

.collections-scroll::-webkit-scrollbar {
  display: none;
}

.album-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 15px;
  border: 1.5px solid var(--line-dark);
  background: var(--bg-pure);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.14s ease;
}

.album-chip:hover {
  border-color: var(--violet);
  background: var(--violet-tint);
  color: var(--violet-deep);
}

.album-chip.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  box-shadow: 3px 3px 0 var(--violet-soft);
}

.album-chip .chip-count {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 1px 6px;
  background: var(--bg-canvas);
  color: var(--violet-deep);
}

.album-chip.active .chip-count {
  background: var(--acid);
  color: var(--ink);
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.filter-tabs {
  display: inline-flex;
  border: 1.5px solid var(--line-dark);
  background: var(--bg-pure);
}

.filter-tab {
  border: none;
  background: transparent;
  padding: 8px 16px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-sub);
  cursor: pointer;
  border-right: 1px solid var(--line-soft);
  transition: background 0.15s ease, color 0.15s ease;
}

.filter-tab:last-child { border-right: none; }

.filter-tab:hover {
  background: rgba(133, 77, 255, 0.08);
  color: var(--ink);
}

.filter-tab.active {
  background: var(--violet-tint);
  color: var(--violet-deep);
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.gallery-upload-btn {
  flex-shrink: 0;
  white-space: nowrap;
}

.gallery-status {
  padding: 20px 0;
  color: var(--ink-sub);
}

.gallery-status.is-loading {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 12px 16px 24px;
  color: var(--violet-deep);
  font-weight: 800;
  text-align: center;
}

.gallery-loader {
  display: none;
  position: relative;
  width: 156px;
  height: 65px;
}

.is-loading .gallery-loader {
  display: block;
}

.gallery-loader::before {
  content: '';
  position: absolute;
  inset: auto 10px 8px;
  border-bottom: 2px dashed var(--violet-soft);
}

.gallery-loader::after {
  content: '✦';
  position: absolute;
  top: 0;
  right: 14px;
  color: var(--violet);
  font-size: 20px;
  line-height: 1;
  animation: gallery-loader-spark 1.85s ease-in-out infinite;
}

.gallery-loader-cat {
  position: absolute;
  left: 9px;
  bottom: 9px;
  display: block;
  width: 44px;
  height: 44px;
  object-fit: cover;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 3px 3px 0 var(--acid);
  animation: gallery-loader-hop 1.85s ease-in-out infinite;
}

@keyframes gallery-loader-hop {
  0%, 100% { transform: translateX(0) rotate(-9deg); }
  16% { transform: translate(23px, -10px) rotate(1deg); }
  30% { transform: translateX(45px) rotate(6deg); }
  46% { transform: translate(72px, -12px) rotate(14deg); }
  61% { transform: translateX(93px) rotate(8deg); }
  80% { transform: translate(48px, -15px) rotate(-5deg); }
}

@keyframes gallery-loader-spark {
  0%, 30%, 100% { opacity: 0.35; transform: scale(0.75); }
  56% { opacity: 1; transform: scale(1.15); }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-loader-cat,
  .gallery-loader::after { animation: none; }
  .gallery-loader-cat { transform: translateX(47px); }
}

.search-box {
  display: flex;
  align-items: center;
  height: 38px;
  border: 1.5px solid var(--line-dark);
  background: var(--bg-pure);
  padding: 0 10px;
  gap: 8px;
}

.search-box:focus-within {
  border-color: var(--violet);
}

.search-prefix {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: var(--violet-deep);
}

.search-box input {
  border: none;
  outline: none;
  background: transparent;
  width: 190px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

/* =================================================================
   GALLERY GRID (Chamfered Special-Site Media Cards)
================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
  gap: 26px;
}

.gallery-card-frame {
  cursor: pointer;
}

.media-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-pure);
  height: 100%;
}

.media-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-card);
}

.media-code {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: var(--violet-deep);
  letter-spacing: 0.08em;
}

.media-kind-pill {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  background: var(--violet-tint);
  color: var(--violet-deep);
}

.media-kind-pill.video {
  background: var(--ink);
  color: var(--acid);
}

.media-kind-pill.audio {
  background: var(--terracotta);
  color: #fff;
}

.media-thumb-box {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #141222;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-bottom: 1.5px solid var(--line-dark);
}

.media-thumb-box img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.media-thumb-box .cover-pending {
  opacity: 0;
}

.gallery-card-frame:hover .media-thumb-box img {
  transform: scale(1.05);
}

.media-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #c5a8ff;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.play-orb {
  position: absolute;
  width: 48px;
  height: 48px;
  background: var(--acid);
  border: 2px solid var(--ink);
  display: grid;
  place-items: center;
  color: var(--ink);
  box-shadow: 4px 4px 0 rgba(21, 20, 34, 0.35);
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.gallery-card-frame:hover .play-orb {
  transform: scale(1.08);
  background: var(--ink);
  color: var(--acid);
}

.card-quick-dl {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  background: var(--bg-pure);
  border: 1.5px solid var(--ink);
  color: var(--ink);
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.16s ease, background 0.16s ease;
  text-decoration: none;
}

.gallery-card-frame:hover .card-quick-dl {
  opacity: 1;
}

.card-quick-dl:hover {
  background: var(--acid);
}

.media-card-body {
  padding: 13px 15px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.media-title {
  font-size: 14.5px;
  font-weight: 900;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.media-note {
  font-size: 12.5px;
  color: var(--ink-sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.media-meta-row {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px dashed var(--line-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-sub);
}

.media-uploader {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.media-size-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: var(--terracotta);
  white-space: nowrap;
}

/* Empty State */
.empty-state-wrap {
  max-width: 680px;
  margin: 18px auto 0;
}

.empty-state {
  background: var(--bg-pure);
  text-align: center;
  padding: 46px 28px;
}

.empty-logo-seal {
  width: 92px;
  height: 92px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 2.5px solid var(--ink);
  box-shadow: 0 0 0 4px var(--acid);
  overflow: hidden;
  background: #000;
  animation: spinSlow 24s linear infinite;
}

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

.empty-code {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--violet-deep);
  margin-bottom: 8px;
}

.empty-state h3 {
  font-size: 24px;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 10px;
}

.empty-state p {
  max-width: 460px;
  margin: 0 auto 24px;
  font-size: 14.5px;
  color: var(--ink-sub);
  line-height: 1.75;
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* =================================================================
   SECTION 02: FULL-BLEED VIOLET ARCHIVE GUIDE
================================================================== */
.violet-band {
  margin-top: 24px;
  background: linear-gradient(180deg, #864eff 0%, #7c42f7 100%);
  padding: 64px 0 72px;
  position: relative;
  overflow: hidden;
}

.violet-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.notice-shell {
  width: min(1040px, 92vw);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.notice-card {
  position: relative;
  z-index: 1;
  background: #f7f7fb;
  padding: 36px 42px 38px;
}

.notice-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1.5px solid var(--line-soft);
  margin-bottom: 24px;
  gap: 14px;
  flex-wrap: wrap;
}

.notice-head-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.notice-seal-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  object-fit: cover;
  background: #000;
}

.notice-title-cn {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 900;
  color: var(--ink);
}

.notice-title-en {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--ink-sub);
}

.notice-progress-pill {
  display: inline-flex;
  width: 68px;
  height: 11px;
  background: #e4e2ef;
  overflow: hidden;
}

.notice-progress-pill span {
  display: block;
  width: 56%;
  background: var(--violet);
}

.notice-group {
  margin-bottom: 24px;
}

.notice-group:last-child {
  margin-bottom: 0;
}

.notice-group-label {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
  padding-top: 12px;
  border-top: 1px solid #e6e4f0;
}

.notice-group:first-of-type .notice-group-label {
  border-top: none;
  padding-top: 0;
}

.notice-group-en {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--violet-deep);
  text-transform: uppercase;
}

.notice-group-cn {
  font-size: 16px;
  font-weight: 900;
  color: var(--ink);
}

.notice-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.notice-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: baseline;
}

.notice-num {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--violet-deep);
  line-height: 1.2;
}

.notice-text {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.75;
}

/* =================================================================
   FOOTER & FIXED BOTTOM MODULAR CHAPTER BAR
================================================================== */
.site-footer {
  padding: 28px 0 36px;
  background: var(--bg-canvas);
  border-top: 1.5px solid var(--line-dark);
  font-size: 13px;
  color: var(--ink-sub);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-logo-stamp {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  object-fit: cover;
  background: #000;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.08em;
}

.footer-sub {
  font-size: 12px;
  color: var(--ink-sub);
}

.bottom-chapter-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--nav-height);
  background: rgba(247, 246, 252, 0.96);
  backdrop-filter: blur(8px);
  border-top: 1.5px solid var(--line-dark);
  z-index: 60;
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  scrollbar-width: none;
}

.bottom-chapter-bar::-webkit-scrollbar {
  display: none;
}

.chapter-tab {
  flex: 1 0 auto;
  min-width: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 16px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ink-sub);
  text-decoration: none;
  background: transparent;
  border: none;
  border-right: 1px solid var(--line-soft);
  position: relative;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
  white-space: nowrap;
}

.chapter-tab:last-child { border-right: none; }

.chapter-tab:hover {
  background: rgba(133, 77, 255, 0.08);
  color: var(--ink);
}

.chapter-tab--action {
  background: rgba(214, 255, 75, 0.35);
  color: var(--ink);
}

.chapter-tab--action:hover {
  background: var(--acid);
}

.chapter-tab.active {
  background: var(--violet-tint);
  color: var(--ink);
  font-weight: 900;
  border-right-color: var(--ink);
}

.chapter-tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3.5px;
  background: var(--cyan);
}

.chapter-tab-idx {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--violet-deep);
}

/* =================================================================
   MODALS (Upload, Album, Admin Console)
================================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(21, 20, 34, 0.62);
  backdrop-filter: blur(8px);
}

.modal-frame {
  position: relative;
  z-index: 1;
  width: 100%;
}

.modal-sm { max-width: 470px; }
.modal-lg { max-width: 700px; }
.modal-xl { max-width: 840px; }

#editFileModal { z-index: 90; }

.modal-card {
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-pure);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px 24px 16px;
  border-bottom: 1.5px solid var(--line-dark);
  background: var(--bg-card);
}

.modal-header h2 {
  font-size: 22px;
  font-weight: 900;
  margin-top: 4px;
  color: var(--ink);
}

.btn-close {
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--ink);
  background: var(--bg-pure);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

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

.modal-body {
  padding: 22px 24px;
  overflow-y: auto;
}

.modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border-top: 1.5px solid var(--line-soft);
  background: var(--bg-card);
}

.modal-footer-actions {
  display: flex;
  gap: 10px;
}

/* Form Controls */
.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

fieldset.field-group {
  min-width: 0;
  border: 0;
}

.field-group legend { margin-bottom: 6px; }
.edit-member-field { margin-top: 14px; }

.member-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.member-choices label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1.5px solid var(--line-soft);
  background: var(--bg-pure);
  font-size: 12px;
  cursor: pointer;
}

.member-choices label:has(input:checked) {
  border-color: var(--violet-deep);
  background: var(--violet-tint);
}

.member-choices input { accent-color: var(--violet-deep); }
.uploader-identity { display: flex; align-items: center; }

.field-label {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink);
}

.field-hint {
  font-size: 12px;
  color: var(--ink-sub);
}

.input-control {
  height: 40px;
  padding: 0 12px;
  border: 1.5px solid var(--line-dark);
  background: var(--bg-canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  outline: none;
}

.input-control:focus {
  background: var(--bg-pure);
  border-color: var(--violet);
}

.mono-input {
  font-family: var(--font-mono);
  font-size: 12.5px;
}

.upload-meta-grid,
.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.field-span-2 { grid-column: span 2; }

.inline-action-row {
  display: flex;
  gap: 8px;
}

.inline-action-row .input-control { flex: 1; }

/* Dropzone */
.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 20px;
  border: 2px dashed var(--violet);
  background: var(--violet-tint);
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.dropzone input { display: none; }

.dropzone:hover,
.dropzone.drag-over {
  background: rgba(214, 255, 75, 0.25);
  border-color: var(--ink);
}

.dropzone-badge {
  padding: 3px 10px;
  background: var(--ink);
  color: var(--acid);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}

.dropzone-title {
  font-size: 14.5px;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 4px;
}

.dropzone-hint {
  font-size: 12.5px;
  color: var(--ink-sub);
}

/* Upload Queue */
.upload-queue {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 230px;
  overflow-y: auto;
}

.queue-item {
  padding: 10px 12px;
  border: 1.5px solid var(--line-soft);
  background: var(--bg-canvas);
}

.queue-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
}

.queue-name-control {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line-soft);
  background: var(--bg-pure);
}

.queue-name-control:focus-within { border-color: var(--violet); }

.queue-name-control input {
  flex: 1;
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 4px 8px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
}

.queue-name-control input:focus-visible {
  outline: 1px solid var(--violet-deep);
  outline-offset: -1px;
}

.queue-name-control span {
  flex-shrink: 0;
  max-width: 40%;
  padding: 0 7px;
  overflow: hidden;
  color: var(--ink-sub);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.queue-name-error {
  margin-bottom: 6px;
  color: var(--danger);
  font-size: 12px;
}

.queue-status {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: var(--violet-deep);
  white-space: nowrap;
}

.queue-status.done { color: #059669; }
.queue-status.error {
  max-width: 42%;
  color: var(--danger);
  white-space: normal;
  overflow-wrap: anywhere;
}

.queue-bar {
  height: 6px;
  background: #e2e0ee;
  overflow: hidden;
}

.queue-bar-fill {
  height: 100%;
  background: var(--violet);
  width: 0%;
  transition: width 0.14s linear;
}

/* =================================================================
   LIGHTBOX (Dark Cinema Stage + Crisp Special-Site Info Panel)
================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 14, 24, 0.88);
  backdrop-filter: blur(12px);
}

.lightbox-shell {
  position: relative;
  z-index: 1;
  width: min(1320px, 95vw);
  height: min(860px, 92vh);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  grid-template-rows: minmax(0, 1fr);
  background: var(--bg-pure);
  border: 2px solid var(--ink);
  box-shadow: 12px 12px 0 rgba(133, 77, 255, 0.45);
  overflow: hidden;
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  width: 36px;
  height: 36px;
  border: 2px solid var(--ink);
  background: var(--acid);
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
}

.lightbox-close:hover {
  background: var(--ink);
  color: var(--acid);
}

.lightbox-stage {
  position: relative;
  background: #0c0b14;
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  overflow: hidden;
}

.lightbox-media-wrap {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 22px;
  min-width: 0;
  min-height: 0;
}

.lightbox-media-wrap img,
.lightbox-media-wrap video {
  max-width: 100%;
  max-height: 100%;
  outline: none;
}

.lightbox-media-wrap audio {
  width: min(460px, 90%);
}

.lightbox-media-wrap.photo-mode {
  display: block;
  padding: 0;
}

.photo-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: auto;
  overscroll-behavior: contain;
  touch-action: pan-x pan-y;
}

.photo-viewport.can-pan { cursor: grab; }
.photo-viewport.dragging { cursor: grabbing; }

.photo-canvas {
  display: grid;
  place-items: center;
  width: max-content;
  height: max-content;
  min-width: 100%;
  min-height: 100%;
}

.lightbox-media-wrap .photo-canvas img {
  display: block;
  max-width: none;
  max-height: none;
  user-select: none;
}

.photo-controls {
  position: absolute;
  bottom: 16px;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 2px solid var(--ink);
  background: var(--bg-pure);
}

.photo-controls button {
  min-width: 40px;
  min-height: 36px;
  padding: 4px 8px;
  border: 1px solid var(--ink);
  background: var(--bg-pure);
  color: var(--ink);
  font: 700 14px var(--font-mono);
  cursor: pointer;
}

.photo-controls button:hover:not(:disabled) { background: var(--acid); }
.photo-controls button:disabled { opacity: 0.5; cursor: default; }

.preview-error {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 36px 56px;
  text-align: center;
}

.audio-vinyl-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  color: #fff;
}

.audio-vinyl-disc {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  border: 3px solid var(--acid);
  overflow: hidden;
  box-shadow: 0 0 40px rgba(133, 77, 255, 0.45);
  animation: spinSlow 14s linear infinite;
}

.audio-vinyl-disc img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border: 2px solid var(--ink);
  background: var(--bg-pure);
  color: var(--ink);
  font-size: 26px;
  font-weight: 900;
  cursor: pointer;
}

.lightbox-nav:hover {
  background: var(--acid);
}

.lightbox-nav.prev { left: 16px; }
.lightbox-nav.next { right: 16px; }

.lightbox-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 24px 24px;
  border-left: 2px solid var(--ink);
  background: var(--bg-pure);
  overflow-y: auto;
}

.lb-filename {
  margin-top: 12px;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
  word-break: break-word;
  color: var(--ink);
}

/* Signature Terracotta L-Bracket Quote */
.quote-bracket-box {
  position: relative;
  margin-top: 18px;
  padding-top: 18px;
  padding-left: 6px;
}

.quote-bracket-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 22px;
  height: 22px;
  border-top: 4px solid var(--terracotta);
  border-left: 4px solid var(--terracotta);
}

.quote-text {
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.55;
  color: var(--ink);
}

.lb-meta-list {
  margin: 22px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.lb-meta-list dt {
  color: var(--ink-faint);
  font-weight: 700;
}

.lb-meta-list dd {
  color: var(--ink);
  font-weight: 800;
  text-align: right;
  word-break: break-all;
}

.lb-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* =================================================================
   ADMIN CONSOLE
================================================================== */
.admin-tabs {
  display: flex;
  border-bottom: 1.5px solid var(--line-dark);
  background: var(--bg-canvas);
  overflow-x: auto;
}

.admin-tab {
  padding: 12px 18px;
  border: none;
  border-right: 1px solid var(--line-soft);
  background: transparent;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-sub);
  cursor: pointer;
  white-space: nowrap;
}

.admin-tab.active {
  background: var(--ink);
  color: var(--acid);
}

.admin-pane { display: none; }
.admin-pane.active { display: block; }

.status-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1.5px solid var(--line-dark);
  background: var(--bg-canvas);
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.status-banner.connected {
  background: #ecfdf5;
  border-color: #059669;
}

.banner-title {
  font-size: 16px;
  font-weight: 900;
  margin: 6px 0 3px;
}

.banner-desc {
  font-size: 12.5px;
  color: var(--ink-sub);
}

.banner-actions {
  display: flex;
  gap: 8px;
}

.info-callout {
  padding: 13px 16px;
  border-left: 4px solid var(--violet);
  background: var(--bg-card);
  border-top: 1px solid var(--line-soft);
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-sub);
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 18px;
}

.info-callout strong { color: var(--ink); }

.info-callout code,
.guide-list code {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 2px 6px;
  background: var(--violet-tint);
  color: var(--violet-deep);
  font-weight: 700;
}

.gdrive-action-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 18px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}

.checkbox-row input {
  accent-color: var(--violet);
  width: 16px;
  height: 16px;
}

.share-card {
  padding: 18px 20px;
  border: 1.5px solid var(--line-dark);
  background: var(--bg-canvas);
  margin-bottom: 16px;
}

.share-card h4 {
  margin: 8px 0 8px;
  font-size: 16px;
  font-weight: 900;
}

.share-card p {
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--ink-sub);
}

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

.code-chip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--bg-pure);
  border: 1.5px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--violet-deep);
}

.guide-list {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-sub);
  line-height: 1.75;
}

.guide-list strong { color: var(--ink); }

/* =================================================================
   GLOBAL DRAG OVERLAY & TOASTS
================================================================== */
.drag-overlay {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(21, 20, 34, 0.72);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 24px;
}

.drag-overlay-inner {
  width: min(560px, 90vw);
  padding: 50px 28px;
  background: var(--bg-pure);
  border: 2px solid var(--ink);
  text-align: center;
}

.drag-overlay-inner h2 {
  font-size: 26px;
  font-weight: 900;
  margin: 18px 0 8px;
}

.drag-overlay-inner p {
  color: var(--ink-sub);
  font-weight: 600;
}

.toast-container {
  position: fixed;
  right: 22px;
  bottom: calc(var(--nav-height) + 18px);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: min(380px, calc(100vw - 32px));
}

.toast {
  padding: 10px 16px;
  background: var(--ink);
  color: var(--acid);
  border: 2px solid var(--acid);
  font-size: 13px;
  font-weight: 800;
  box-shadow: 4px 4px 0 rgba(21, 20, 34, 0.28);
  animation: toastIn 0.2s ease;
}

.toast.error {
  background: #2b0f14;
  color: #ffb3be;
  border-color: var(--danger);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =================================================================
   RESPONSIVE
================================================================== */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .hero-dial-wrap {
    margin: 0 auto;
  }
  .lightbox-shell {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    height: 94vh;
  }
  .lightbox-info {
    border-left: none;
    border-top: 2px solid var(--ink);
    max-height: 42vh;
  }
  .notice-card {
    padding: 26px 22px;
  }
}

@media (max-width: 640px) {
  .top-quota-text,
  .top-meta-title {
    display: none;
  }
  .upload-meta-grid,
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
  .field-span-2 {
    grid-column: span 1;
  }
  .passcode-row {
    flex-direction: column;
  }
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    gap: 16px;
  }
  .sec-header-right {
    width: 100%;
    justify-content: flex-start;
  }
  .members-scroll {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .members-scroll::-webkit-scrollbar {
    display: none;
  }
}
