:root {
  --ink: #141a22;
  --ink-soft: #3a4554;
  --mist: #e6ebf1;
  --paper: #f3f6f9;
  --white: #ffffff;
  --line: rgba(20, 26, 34, 0.12);
  --seine: #2a5f86;
  --seine-deep: #1a3f5c;
  --lacquer: #8f2440;
  --bronze: #9a7348;
  --success: #2f6b4f;
  --warn: #9a5b1f;
  --shadow: 0 18px 50px rgba(20, 26, 34, 0.08);
  --radius: 14px;
  --header-h: 72px;
  --font-display: "Cormorant Garamond", "Noto Serif SC", serif;
  --font-cn: "Noto Serif SC", "Cormorant Garamond", serif;
  --font-body: "Outfit", "Noto Serif SC", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  background:
    radial-gradient(1100px 520px at 8% -8%, rgba(90, 168, 210, 0.22), transparent 58%),
    radial-gradient(900px 480px at 100% 0%, rgba(255, 196, 120, 0.18), transparent 52%),
    linear-gradient(180deg, #f7fbff 0%, #f4f8fc 42%, #eef6fb 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(20, 26, 34, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 26, 34, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 20%, #000 20%, transparent 75%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

img {
  max-width: 100%;
  display: block;
}

#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(243, 246, 249, 0.82);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 50% 50% 42% 58%;
  background:
    linear-gradient(135deg, var(--seine) 0 50%, transparent 50%),
    linear-gradient(315deg, var(--lacquer) 0 50%, transparent 50%),
    #c9d4df;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.45);
  animation: brandPulse 6s var(--ease) infinite;
}

@keyframes brandPulse {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(8deg) scale(1.04); }
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--font-cn);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-text small {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
}

.main-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--ink);
  background: rgba(42, 95, 134, 0.1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.role-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.role-switch select {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 10px;
  padding: 8px 10px;
  color: var(--ink);
  min-width: 96px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--ink);
}

.view {
  flex: 1;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 28px 24px 64px;
  outline: none;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 20px 24px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.35);
}

.page {
  animation: pageIn 0.45s var(--ease);
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-kicker {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--seine);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-title {
  margin: 0 0 10px;
  font-family: var(--font-cn);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.page-desc {
  margin: 0 0 28px;
  max-width: 640px;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.guide-packs {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.guide-packs-dual .guide-pack + .guide-pack {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.guide-pack-head {
  margin-bottom: 16px;
}

.guide-pack-title {
  margin: 0 0 6px;
  font-family: var(--font-cn);
  font-size: 1.25rem;
  color: var(--ink);
}

.guide-sections {
  display: flex;
  flex-direction: column;
  gap: 12px;
  counter-reset: guide-sec;
}

.guide-section {
  margin: 0;
}

.guide-section-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}

.guide-section-head h3 {
  margin: 0;
  font-family: var(--font-cn);
  font-size: 1.08rem;
  color: var(--ink);
}

.guide-section-index {
  counter-increment: guide-sec;
  flex: 0 0 auto;
  min-width: 1.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--seine);
}

.guide-section-index::before {
  content: counter(guide-sec, decimal-leading-zero);
}

.guide-steps {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.55;
}

.guide-steps li + li {
  margin-top: 4px;
}

.guide-download {
  margin-top: 16px;
}

@media (max-width: 760px) {
  html:not(.ui-scale) {
    .guide-download {
      width: 100%;
    }
  }
}

.btn {
  appearance: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 600;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--seine-deep);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--seine);
}

.btn-accent {
  background: var(--lacquer);
  color: var(--white);
}

.btn-submitted,
.btn:disabled {
  background: #d8dee6;
  color: #6b7684;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-submitted:hover,
.btn:disabled:hover {
  transform: none;
  background: #d8dee6;
  color: #6b7684;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.7);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.88rem;
}

.hero {
  position: relative;
  /* 固定视角高度，不随视口高低被拉长 */
  height: 480px;
  min-height: 480px;
  max-height: 480px;
  display: grid;
  align-items: end;
  border-radius: 28px;
  overflow: hidden;
  margin-bottom: 48px;
  isolation: isolate;
  border: 1px solid rgba(70, 90, 110, 0.12);
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #b8d8ec;
}

.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  transform: scale(1.06);
  filter: blur(6px) saturate(0.95) brightness(1.04);
  animation: heroDrift 28s ease-in-out infinite alternate;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    105deg,
    rgba(255, 255, 255, 0.72) 0%,
    rgba(255, 255, 255, 0.45) 28%,
    rgba(255, 255, 255, 0.18) 55%,
    rgba(184, 216, 236, 0.12) 100%
  );
  pointer-events: none;
}

@keyframes heroDrift {
  from { transform: scale(1.01) translate3d(0, 0, 0); }
  to { transform: scale(1.04) translate3d(-0.8%, -0.6%, 0); }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: clamp(36px, 6vw, 72px);
  color: #1c2a36;
  max-width: 760px;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 0.95;
  margin: 0 0 18px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #15232f;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

.hero-brand em {
  font-style: italic;
  color: #3f5f78;
}

.hero-title {
  margin: 0 0 12px;
  font-family: var(--font-cn);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 600;
  color: #243646;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

.hero-sub {
  margin: 0 0 28px;
  max-width: 34rem;
  color: #334858;
  font-size: 1.05rem;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.journey-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.journey-tile {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

.journey-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(42, 95, 134, 0.35);
}

.jv {
  height: 158px;
  flex-shrink: 0;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
  background: #e8eef3;
}

.jv-art {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 0.45s var(--ease);
  transform-origin: center center;
}

.journey-tile:hover .jv-art {
  transform: scale(1.04);
}

.journey-body {
  padding: 16px 18px 20px;
  background: #fff;
  border-top: 1px solid rgba(20, 26, 34, 0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.journey-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.journey-step {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--bronze);
}

.journey-cta {
  font-size: 0.8rem;
  color: var(--seine-deep);
  white-space: nowrap;
}

.journey-tile h3 {
  margin: 0;
  font-family: var(--font-cn);
  font-size: 1.2rem;
  color: var(--ink);
}

.journey-tile p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.55;
}

@media (max-width: 980px) {
  html:not(.ui-scale) {
    .journey-board {
      grid-template-columns: 1fr 1fr;
    }
  }
}

@media (max-width: 760px) {
  html:not(.ui-scale) {
    .journey-board {
      grid-template-columns: 1fr;
    }
  }
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.entry-card {
  display: block;
  padding: 24px 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
  min-height: 168px;
}

.entry-card:hover {
  transform: translateY(-4px);
  border-color: rgba(42, 95, 134, 0.35);
  background: var(--white);
}

.entry-card .idx {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--bronze);
  margin-bottom: 18px;
}

.entry-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-cn);
  font-size: 1.2rem;
}

.entry-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 8px 0 20px;
  flex-wrap: wrap;
}

.panel {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.dual-map {
  display: grid;
  grid-template-columns: 1fr 64px 1fr;
  gap: 0;
  min-height: 560px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(70, 90, 110, 0.12);
  background: #f5fafd;
  box-shadow: var(--shadow);
}

.map-pane {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0;
  background: #f3f9fd;
}

.map-pane.china,
.map-pane.france,
.map-pane.shanghai,
.map-pane.paris {
  background: #e8eef4;
}

.map-stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 44px 10px 28px;
  box-sizing: border-box;
}

.map-frame {
  position: relative;
  width: 100%;
  max-width: 720px;
  /* 与 paris.jpg / shanghai.jpg（1536×1024 = 3:2）一致，避免 cover 裁切浮动小岛边缘 */
  aspect-ratio: 3 / 2;
  line-height: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(30, 41, 54, 0.12);
  background: #e8eef4;
}

.map-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  user-select: none;
  pointer-events: none;
}

.marker-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
}

.photo-marker .marker-pin,
.photo-marker.paris .marker-pin {
  display: none;
}

.drop-marker .drop-pin {
  width: 14px;
  height: 30px;
  display: block;
  filter: drop-shadow(0 2px 3px rgba(140, 20, 30, 0.4));
  transition: transform 0.2s var(--ease), filter 0.2s var(--ease);
  transform-origin: 50% 100%;
}

.drop-marker:hover .drop-pin,
.drop-marker.active .drop-pin {
  transform: scale(1.12);
  filter: drop-shadow(0 3px 6px rgba(180, 20, 35, 0.5));
}

.drop-marker.active .drop-pin path:first-child {
  fill: #c4081c;
}

.marker-name {
  position: absolute;
  top: 0;
  white-space: normal;
  max-width: 7.5rem;
  line-height: 1.25;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0;
  color: #fff;
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.9),
    0 0 8px rgba(0, 0, 0, 0.65),
    1px 1px 0 rgba(0, 0, 0, 0.55),
    -1px -1px 0 rgba(0, 0, 0, 0.55),
    1px -1px 0 rgba(0, 0, 0, 0.55),
    -1px 1px 0 rgba(0, 0, 0, 0.55);
}

.drop-marker.label-right .marker-name {
  left: 14px;
  right: auto;
}

.drop-marker.label-left .marker-name {
  right: 14px;
  left: auto;
}

.map-caption {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(70, 90, 110, 0.12);
  backdrop-filter: blur(8px);
}

.map-caption strong {
  font-family: var(--font-cn);
  font-size: 1.05rem;
  color: #243040;
}

.map-caption small {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6a7a8a;
}

.map-photo-hint {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 5;
  margin: 0;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: #5b6b7c;
  font-size: 0.78rem;
}

.map-canvas {
  position: relative;
  inset: auto;
  width: 100%;
  height: min(600px, 78vw);
  max-width: 420px;
  display: block;
}

.relief-map .map-svg-title {
  font-family: var(--font-display);
  font-size: 28px;
  fill: #243040;
  font-weight: 600;
}

.relief-map .map-svg-sub {
  font-family: var(--font-body);
  font-size: 11px;
  fill: #5b6b7c;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.relief-map .map-svg-hint {
  font-family: var(--font-body);
  font-size: 11px;
  fill: #7a8796;
}

.svg-marker.is-active circle:first-of-type {
  filter: drop-shadow(0 0 6px rgba(154, 115, 72, 0.55));
}

.bridge {
  position: relative;
  background: linear-gradient(180deg, #eef2f6, #e4ebf2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border-left: 1px solid rgba(70, 90, 110, 0.1);
  border-right: 1px solid rgba(70, 90, 110, 0.1);
}

.bridge-line {
  width: 2px;
  flex: 1;
  max-height: 180px;
  background: linear-gradient(180deg, transparent, rgba(154, 115, 72, 0.75), transparent);
  position: relative;
}

.bridge-line::before,
.bridge-line::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bronze);
  transform: translateX(-50%);
}

.bridge-line::before { top: 0; }
.bridge-line::after { bottom: 0; }

.bridge-text {
  writing-mode: vertical-rl;
  color: #5c6b7a;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-align: center;
}

.map-label {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 3;
  color: #243040;
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: 0.04em;
}

.map-label small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  opacity: 0.7;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 2px;
}

.marker {
  position: absolute;
  transform: translate(-50%, -100%);
  z-index: 4;
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 0;
  color: #243040;
  text-align: left;
}

.marker-pin {
  width: 14px;
  height: 14px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--bronze);
  box-shadow: 0 0 0 4px rgba(154, 115, 72, 0.22);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  display: block;
}

.marker.paris .marker-pin {
  background: var(--bronze);
  box-shadow: 0 0 0 4px rgba(154, 115, 72, 0.22);
}

.marker:hover .marker-pin,
.marker.active .marker-pin {
  transform: rotate(-45deg) scale(1.2);
}

.link-pair {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  font-size: 0.86rem;
  cursor: pointer;
  color: var(--ink-soft);
}

.chip.active,
.chip:hover {
  color: var(--ink);
  border-color: rgba(42, 95, 134, 0.4);
  background: #fff;
}

.map-theme-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.theme-dual-banner {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  max-width: 100%;
}

.theme-oval {
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
  max-width: min(320px, 100%);
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(42, 95, 134, 0.16);
  background: rgba(255, 255, 255, 0.72);
  line-height: 1.25;
}

.theme-oval-fr {
  border-color: rgba(42, 95, 134, 0.22);
}

.theme-oval-cn {
  border-color: rgba(143, 36, 64, 0.16);
}

.theme-oval-title {
  font-family: var(--font-cn);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink, #2c2419);
  white-space: nowrap;
}

.theme-oval-fr .theme-oval-title {
  font-family: var(--font-fr, Georgia, "Times New Roman", serif);
  font-weight: 500;
  font-style: italic;
}

.theme-oval-sub {
  font-size: 0.68rem;
  line-height: 1.3;
  color: #6b7a88;
}

.theme-oval-fr .theme-oval-sub {
  font-family: var(--font-fr, Georgia, "Times New Roman", serif);
}

.theme-dual-arrow {
  flex-shrink: 0;
  font-size: 0.78rem;
  line-height: 1;
  color: rgba(42, 95, 134, 0.55);
  padding: 0 1px;
  user-select: none;
}

.theme-dual-banner-compact {
  gap: 5px 6px;
}

.theme-dual-banner-compact .theme-oval {
  padding: 4px 10px;
  max-width: 100%;
}

.theme-dual-banner-compact .theme-oval-title {
  font-size: 0.78rem;
}

.theme-dual-banner-compact .theme-oval-sub {
  font-size: 0.64rem;
}

.theme-dual-banner-compact .theme-dual-arrow {
  font-size: 0.72rem;
}

.theme-field-static .theme-dual-banner {
  margin-top: 2px;
}

@media (max-width: 640px) {
  html:not(.ui-scale) {
    .theme-oval-title {
      white-space: normal;
    }

    .theme-oval {
      max-width: 100%;
    }
  }
}

.map-theme-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.map-theme-action {
  margin-left: auto;
  flex-shrink: 0;
}

.pair-mine .pair-theme {
  background: rgba(42, 95, 134, 0.85);
}

.detail-drawer {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

.place-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  margin-bottom: 24px;
}

.place-visual {
  min-height: 280px;
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(20, 26, 34, 0.35), rgba(42, 95, 134, 0.25)),
    var(--place-tone, #2a5f86);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.place-visual::after {
  content: "";
  position: absolute;
  inset: auto -10% -30% 30%;
  height: 70%;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.meta-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.meta-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.meta-list dt {
  color: var(--ink-soft);
}

.meta-list dd {
  margin: 0;
  font-weight: 600;
}

.pair-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.pair-card {
  position: relative;
  display: block;
  grid-column: span 1;
  min-height: 168px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #1a2a36;
  color: #fff;
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease);
}

.pair-card:nth-child(4),
.pair-card:nth-child(5) {
  grid-column: span 1;
}

.pair-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.28);
}

.pair-media {
  position: absolute;
  inset: 0;
}

.pair-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s var(--ease);
}

.pair-card:hover .pair-media img {
  transform: scale(1.05);
}

.pair-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 22, 32, 0.12) 0%, rgba(12, 22, 32, 0.72) 100%);
}

.pair-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  height: 100%;
  min-height: 168px;
  padding: 12px 12px 14px;
  box-sizing: border-box;
}

.pair-theme {
  align-self: flex-start;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  padding: 3px 7px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
}

.pair-card h3 {
  margin: 0;
  font-family: var(--font-cn);
  font-size: 0.95rem;
  line-height: 1.3;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.pair-card p {
  margin: 0;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.35;
}

/* 版面变体：底部文案（默认） */
.pair-bottom .pair-media::after {
  background: linear-gradient(180deg, rgba(12, 22, 32, 0.05) 35%, rgba(12, 22, 32, 0.78) 100%);
}

/* 左侧文案 */
.pair-left .pair-content {
  justify-content: center;
  align-items: flex-start;
  max-width: 58%;
  background: linear-gradient(90deg, rgba(12, 22, 32, 0.82) 0%, rgba(12, 22, 32, 0.35) 78%, transparent 100%);
  padding-right: 28px;
}

.pair-left .pair-media::after {
  background: none;
}

/* 顶部文案 */
.pair-top .pair-content {
  justify-content: flex-start;
}

.pair-top .pair-media::after {
  background: linear-gradient(180deg, rgba(12, 22, 32, 0.78) 0%, rgba(12, 22, 32, 0.15) 55%, rgba(12, 22, 32, 0.45) 100%);
}

/* 右下角文案 */
.pair-corner .pair-content {
  align-items: flex-end;
  text-align: right;
}

.pair-corner .pair-theme {
  align-self: flex-end;
}

.pair-corner .pair-media::after {
  background: linear-gradient(225deg, rgba(12, 22, 32, 0.08) 30%, rgba(12, 22, 32, 0.8) 100%);
}

/* 居中偏下 */
.pair-center .pair-content {
  align-items: center;
  text-align: center;
  justify-content: flex-end;
  padding-bottom: 28px;
}

.pair-center .pair-theme {
  align-self: center;
}

.pair-center .pair-media::after {
  background: radial-gradient(ellipse at 50% 70%, rgba(12, 22, 32, 0.2) 0%, rgba(12, 22, 32, 0.72) 75%);
}

@media (max-width: 1100px) {
  html:not(.ui-scale) {
    .pair-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }
}

@media (max-width: 980px) {
  html:not(.ui-scale) {
    .pair-grid {
      grid-template-columns: 1fr 1fr;
    }

    .pair-card,
    .pair-card:nth-child(4),
    .pair-card:nth-child(5) {
      grid-column: span 1;
    }

    .pair-left .pair-content {
      max-width: 70%;
    }
  }
}

@media (max-width: 760px) {
  html:not(.ui-scale) {
    .pair-grid {
      grid-template-columns: 1fr;
    }

    .pair-card {
      min-height: 150px;
    }

    .pair-content {
      min-height: 150px;
    }

    .pair-left .pair-content {
      max-width: 100%;
    }
  }
}

.resource-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: none;
}

.resource-chip {
  display: flex;
  gap: 12px;
  width: auto;
  min-width: 0;
  height: 100%;
  align-items: stretch;
  padding: 14px 14px 14px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.resource-all-link {
  align-self: flex-end;
  margin-bottom: 4px;
  font-size: 0.78rem;
  line-height: 1.2;
  color: #2a5f86;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.resource-all-link:hover {
  color: #1a3f5c;
  text-decoration: underline;
}

.resource-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(42, 95, 134, 0.3);
}

.resource-chip-mark {
  width: 6px;
  flex-shrink: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--seine), var(--seine-deep));
}

.resource-portfolio .resource-chip-mark {
  background: linear-gradient(180deg, #b03a55, #8f2440);
}

.resource-case .resource-chip-mark {
  background: linear-gradient(180deg, #4a8f6a, #2f6b4f);
}

.resource-chip-main {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.resource-chip-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.resource-type {
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(42, 95, 134, 0.08);
  color: var(--seine-deep);
  border: 1px solid rgba(42, 95, 134, 0.12);
}

.resource-portfolio .resource-type {
  background: rgba(143, 36, 64, 0.08);
  color: #8f2440;
  border-color: rgba(143, 36, 64, 0.14);
}

.resource-case .resource-type {
  background: rgba(47, 107, 79, 0.1);
  color: #2f6b4f;
  border-color: rgba(47, 107, 79, 0.16);
}

.resource-rubric .resource-chip-mark {
  background: linear-gradient(180deg, #6aa0c2, #2a5f86);
}

.resource-rubric .resource-type {
  background: rgba(42, 95, 134, 0.1);
  color: var(--seine-deep);
  border-color: rgba(42, 95, 134, 0.16);
}

.resource-aiguide .resource-chip-mark {
  background: linear-gradient(180deg, #c4a574, #8a6b3d);
}

.resource-aiguide .resource-type {
  background: rgba(138, 107, 61, 0.1);
  color: #8a6b3d;
  border-color: rgba(138, 107, 61, 0.16);
}

.resource-studentguide .resource-chip-mark {
  background: linear-gradient(180deg, #6aa0c2, #2a5f86);
}

.resource-studentguide .resource-type {
  background: rgba(42, 95, 134, 0.1);
  color: var(--seine-deep);
  border-color: rgba(42, 95, 134, 0.16);
}

.resource-teacherguide .resource-chip-mark {
  background: linear-gradient(180deg, #7a8f6a, #4a6340);
}

.resource-teacherguide .resource-type {
  background: rgba(74, 99, 64, 0.1);
  color: #4a6340;
  border-color: rgba(74, 99, 64, 0.16);
}

.resource-meta {
  font-size: 0.72rem;
  color: #7a8796;
}

.resource-chip h3 {
  margin: 0;
  font-family: var(--font-cn);
  font-size: 1.05rem;
  color: var(--ink);
}

.resource-chip p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.45;
  flex: 1;
}

.resource-chip .btn {
  margin-top: auto;
  align-self: flex-start;
}

@media (max-width: 1100px) {
  html:not(.ui-scale) {
    .resource-row {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }
}

@media (max-width: 980px) {
  html:not(.ui-scale) {
    .resource-row {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
}

@media (max-width: 760px) {
  html:not(.ui-scale) {
    .resource-row {
      grid-template-columns: 1fr;
    }
  }
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.work-card,
.stat-card,
.list-row {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.work-card h3,
.stat-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-cn);
  font-size: 1.08rem;
}

.work-card p,
.muted {
  color: var(--ink-soft);
  margin: 0;
}

.work-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 16px;
}

.works-gallery,
.works-gallery-hot {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.works-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 14px;
}

.works-page-head .page-title {
  margin-bottom: 0;
}

.works-exhibit-title {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.works-page-head .works-filters-actions {
  margin-left: 0;
  margin-top: 0;
}

.works-hot-label {
  margin: 4px 0 14px;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--seine);
  font-family: var(--font-cn);
}

.works-card {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.works-card:hover {
  transform: translateY(-3px);
  border-color: rgba(42, 95, 134, 0.28);
  box-shadow: 0 14px 28px rgba(28, 48, 66, 0.08);
}

.works-card-cover {
  position: relative;
  height: 168px;
  background: #dfe8ef;
  overflow: hidden;
}

.works-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s var(--ease);
}

.works-card:hover .works-card-cover img {
  transform: scale(1.04);
}

.works-card-badge {
  position: absolute;
  z-index: 1;
  font-size: 0.72rem;
  padding: 4px 8px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  top: 10px;
  left: 10px;
  background: rgba(18, 28, 38, 0.55);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.works-card-badge.is-on {
  background: rgba(47, 107, 79, 0.82);
}

.works-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 14px 15px;
  flex: 1;
}

.works-card-body h3 {
  margin: 0;
  font-family: var(--font-cn);
  font-size: 1.05rem;
  line-height: 1.35;
}

.works-card-author {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink);
}

.works-card-author span {
  margin-left: 4px;
  color: #7a8796;
}

.works-card-meta {
  margin: 0;
  font-size: 0.78rem;
  color: #7a8796;
}

.works-card-summary {
  margin: 2px 0 0;
  font-size: 0.86rem;
  color: var(--ink-soft);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.works-card-cta {
  margin-top: auto;
  padding-top: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--seine);
}

@media (max-width: 1100px) {
  html:not(.ui-scale) {
    .works-gallery,
    .works-gallery-hot {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }
}

@media (max-width: 980px) {
  html:not(.ui-scale) {
    .works-gallery,
    .works-gallery-hot {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
}

@media (max-width: 640px) {
  html:not(.ui-scale) {
    .works-gallery,
    .works-gallery-hot {
      grid-template-columns: 1fr;
    }
  }
}

.tag {
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(42, 95, 134, 0.1);
  color: var(--seine-deep);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.analytics-table-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.analytics-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-end;
}

.analytics-filter-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--seine);
}

.analytics-filter-item select {
  min-width: 3.6cm;
  max-width: 4.8cm;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 8px;
  background: #fff;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 500;
}

.analytics-table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.works-filters {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
}

.works-filters-selects {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.works-filters-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.works-filter-select-card {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
  box-sizing: border-box;
  width: auto;
  min-width: 0;
  max-width: 3.2cm;
  height: 30px;
  padding: 0 2px 0 6px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
}

.works-filter-select-card .works-filter-label {
  flex: 0 0 auto;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--seine);
  white-space: nowrap;
}

.works-filter-select-card select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  flex: 0 1 auto;
  min-width: 1.4cm;
  max-width: 1.6cm;
  width: 1.5cm;
  height: 100%;
  border: none;
  border-radius: 0;
  margin: 0;
  padding: 0 4px 0 16px;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%232a5f86' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 2px center;
  background-size: 9px 5px;
  color: var(--ink);
  font-size: 0.7rem;
  line-height: 1.2;
  cursor: pointer;
  text-overflow: ellipsis;
}

.works-filter-select-card select:not(.is-all) {
  min-width: 1.8cm;
  max-width: 2.2cm;
  width: 2cm;
}

.works-filter-select-card select.is-all {
  color: transparent;
  min-width: 1.1cm;
  max-width: 1.1cm;
  width: 1.1cm;
  padding-right: 0;
}

.works-filter-select-card select.is-all option {
  color: var(--ink);
}

.works-filter-select-card select::-ms-expand {
  display: none;
}

.works-filter-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.works-filter-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--seine);
}

.works-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.works-filter-chip {
  appearance: none;
  box-sizing: border-box;
  width: 3cm;
  min-width: 3cm;
  max-width: 3cm;
  padding: 8px 6px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease), color 0.18s var(--ease);
}

.works-filter-chip:hover {
  border-color: rgba(42, 95, 134, 0.35);
}

.works-filter-chip.active {
  border-color: rgba(42, 95, 134, 0.45);
  background: rgba(42, 95, 134, 0.1);
  color: var(--seine-deep);
}

.filters select,
.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  color: var(--ink);
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.field label {
  font-size: 0.9rem;
  font-weight: 600;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.radio-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
}

.radio-pill {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  white-space: nowrap;
  flex: 0 0 auto;
}

.radio-pill input {
  accent-color: var(--seine);
}

.ai-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 20px;
}

.ai-chat-page {
  max-width: 860px;
  margin: 0 auto;
}

.ai-chat-shell {
  min-height: calc(100vh - 180px);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ai-chat-header {
  padding: 0 4px 14px;
}

.ai-chat-heading h1 {
  margin: 4px 0 0;
  font-family: var(--font-cn);
  font-size: 1.55rem;
}

.ai-chat-sub {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.ai-chat-thread {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 8px 4px 20px;
  min-height: 320px;
}

.ai-chat-empty {
  margin: auto;
  text-align: center;
  max-width: 420px;
  padding: 28px 12px 40px;
}

.ai-chat-empty h2 {
  margin: 12px 0 8px;
  font-family: var(--font-cn);
  font-size: 1.35rem;
}

.ai-chat-empty p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

.ai-chat-avatar {
  width: 64px;
  height: 64px;
  margin: 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #f4f8fc;
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.28), transparent 42%),
    linear-gradient(145deg, #1e4d72 0%, #2a5f86 48%, #3a7ca5 100%);
  box-shadow:
    0 10px 24px rgba(30, 77, 114, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.ai-chat-avatar.ai-avatar-image {
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.28), transparent 42%),
    linear-gradient(145deg, #1f5c56 0%, #2f7a72 48%, #4a9a8e 100%);
  box-shadow:
    0 10px 24px rgba(31, 92, 86, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.ai-chat-avatar.ai-avatar-media {
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.28), transparent 42%),
    linear-gradient(145deg, #6b3a2e 0%, #8a5240 48%, #b07a58 100%);
  box-shadow:
    0 10px 24px rgba(107, 58, 46, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.ai-chat-avatar .ai-mark {
  width: 34px;
  height: 34px;
  display: block;
}

.ai-chat-avatar.sm {
  width: 30px;
  height: 30px;
  margin: 0;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(30, 77, 114, 0.18);
}

.ai-chat-avatar.sm.ai-avatar-image {
  box-shadow: 0 4px 10px rgba(31, 92, 86, 0.18);
}

.ai-chat-avatar.sm.ai-avatar-media {
  box-shadow: 0 4px 10px rgba(107, 58, 46, 0.18);
}

.ai-chat-avatar.sm .ai-mark {
  width: 16px;
  height: 16px;
}

.ai-send-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #1e4d72, #2a5f86);
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(30, 77, 114, 0.2);
}

.ai-send-btn svg {
  width: 18px;
  height: 18px;
  display: block;
}

.ai-send-dots {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: aiSpin 0.8s linear infinite;
}

@keyframes aiSpin {
  to { transform: rotate(360deg); }
}

.ai-send-btn:hover:not(:disabled) {
  filter: brightness(1.06);
}

.ai-send-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.ai-msg {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.ai-msg-user {
  justify-content: flex-end;
}

.ai-bubble {
  max-width: min(640px, 92%);
  padding: 12px 16px;
  border-radius: 18px;
  line-height: 1.65;
  white-space: pre-wrap;
  background: #e8eef4;
  color: var(--ink);
}

.ai-msg-user .ai-bubble {
  border-bottom-right-radius: 6px;
  background: #2a5f86;
  color: #fff;
}

.ai-bubble-ai {
  border-bottom-left-radius: 6px;
  background: #fff;
  border: 1px solid var(--line);
}

.ai-bubble-ai .ai-image {
  margin-top: 12px;
}

.ai-file-chip {
  margin: 10px 0 0;
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f4f7fa;
  border: 1px solid var(--line);
  font-size: 0.8rem;
  color: #5c6b7a;
}

.ai-msg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.ai-composer {
  position: sticky;
  bottom: 0;
  padding: 8px 0 4px;
  background: linear-gradient(180deg, transparent, var(--paper) 28%);
}

.ai-composer-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding: 0 4px;
}

.ai-place-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.8rem;
  color: #5c6b7a;
}

.ai-place-chip select {
  border: 0;
  background: transparent;
  font: inherit;
  color: var(--ink);
  max-width: 220px;
  outline: none;
}

.ai-upload-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.82rem;
  cursor: pointer;
  color: var(--ink);
}

.ai-upload-btn input {
  display: none;
}

.ai-upload-btn:hover {
  border-color: rgba(42, 95, 134, 0.4);
}

.ai-upload-name {
  font-size: 0.78rem;
  color: #7a8796;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-composer-box {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 12px 12px 12px 16px;
  border-radius: 24px;
  border: 1px solid rgba(42, 95, 134, 0.18);
  background: #fff;
  box-shadow: 0 10px 30px rgba(28, 48, 66, 0.06);
}

.ai-composer-box textarea {
  flex: 1;
  border: 0;
  resize: none;
  outline: none;
  background: transparent;
  font: inherit;
  line-height: 1.5;
  min-height: 48px;
  max-height: 140px;
  color: var(--ink);
}

.ai-composer-box textarea::placeholder {
  color: #9aa7b5;
}

.ai-composer-hint {
  margin: 8px 4px 0;
  font-size: 0.75rem;
  color: #9aa7b5;
  text-align: center;
}

.ai-tool-top {
  margin-bottom: 10px;
}

.ai-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.ai-hub-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 220px;
  padding: 22px 20px 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.92), rgba(244, 248, 251, 0.96)),
    #f4f8fb;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.ai-hub-card:hover {
  transform: translateY(-3px);
  border-color: rgba(42, 95, 134, 0.35);
  box-shadow: 0 14px 28px rgba(28, 48, 66, 0.08);
}

.ai-hub-step {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--seine);
}

.ai-hub-card h3 {
  margin: 0;
  font-family: var(--font-cn);
  font-size: 1.35rem;
}

.ai-hub-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.55;
  flex: 1;
}

.ai-hub-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}

.ai-hub-cta {
  font-size: 0.88rem;
  color: var(--ink);
  font-weight: 600;
}

.ai-hub-done {
  font-size: 0.75rem;
  color: #5c6b7a;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.8);
}

.ai-hub-text {
  background:
    linear-gradient(165deg, #f7fafc 0%, #eef4f8 100%);
}

.ai-hub-image {
  background:
    linear-gradient(165deg, #f8f6f3 0%, #f1ebe3 100%);
}

.ai-hub-media {
  background:
    linear-gradient(165deg, #f5f8f6 0%, #e8f0ec 100%);
}

@media (max-width: 980px) {
  html:not(.ui-scale) {
    .ai-hub-grid {
      grid-template-columns: 1fr;
    }
  }
}

.ai-output {
  min-height: 420px;
  display: grid;
  gap: 16px;
}

.ai-block {
  border-radius: 14px;
  border: 1px dashed rgba(42, 95, 134, 0.35);
  background: rgba(255, 255, 255, 0.65);
  padding: 18px;
}

.ai-image {
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(42, 95, 134, 0.35), rgba(143, 36, 64, 0.28)),
    repeating-linear-gradient(-35deg, transparent, transparent 12px, rgba(255, 255, 255, 0.05) 12px, rgba(255, 255, 255, 0.05) 24px);
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--font-cn);
  text-align: center;
  padding: 20px;
}

.typing::after {
  content: "▍
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.stat-card {
  position: relative;
  overflow: hidden;
  min-height: 138px;
  padding: 16px 16px 14px;
}

.stat-card::before {
  content: "";
  position: absolute;
  right: -18px;
  top: -22px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  opacity: 0.35;
  pointer-events: none;
}

.stat-students {
  background: #eef5fb;
  border-color: rgba(42, 95, 134, 0.12);
}
.stat-students::before { background: #9ec3dc; }
.stat-students .num,
.stat-students .stat-icon { color: var(--seine-deep); }

.stat-works {
  background: #f7f3ec;
  border-color: rgba(154, 115, 72, 0.14);
}
.stat-works::before { background: #d4b896; }
.stat-works .num,
.stat-works .stat-icon { color: #7a5a34; }

.stat-rate {
  background: #eef6f1;
  border-color: rgba(47, 107, 79, 0.12);
}
.stat-rate::before { background: #9fc4ae; }
.stat-rate .num,
.stat-rate .stat-icon { color: #2f6b4f; }

.stat-map {
  background: #f8f0f2;
  border-color: rgba(143, 36, 64, 0.12);
}
.stat-map::before { background: #d4a0ad; }
.stat-map .num,
.stat-map .stat-icon { color: #8f2440; }

.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.stat-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(20, 26, 34, 0.06);
}

.stat-icon svg {
  width: 18px;
  height: 18px;
}

.stat-card .num {
  font-family: var(--font-display);
  font-size: 2.05rem;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-card h3 {
  margin: 0 0 4px;
  font-size: 0.98rem;
}

.stat-note {
  margin: 0;
  font-size: 0.75rem;
  color: #7a8796;
}

.stat-ratio {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 6px;
  line-height: 1;
}

.stat-ratio .num {
  margin-bottom: 0;
}

.stat-ratio .den {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #7a8796;
}

.stat-award-list {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-award-list li {
  font-size: 0.78rem;
  color: #5c6b7a;
}

.exhibit-vote-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.exhibit-vote-card.is-vote-target {
  border-color: rgba(42, 95, 134, 0.45);
  box-shadow: 0 0 0 2px rgba(42, 95, 134, 0.12);
}

.exhibit-award-stat {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 7px 8px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(42, 95, 134, 0.1);
}

.exhibit-vote-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.exhibit-vote-cover {
  position: relative;
  height: 148px;
  background: #dfe8ef;
  overflow: hidden;
}

.exhibit-vote-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.exhibit-detail-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(18, 28, 38, 0.55);
  color: #fff;
  font-size: 0.75rem;
  text-decoration: none;
  backdrop-filter: blur(6px);
}

.exhibit-detail-btn:hover {
  background: rgba(18, 28, 38, 0.72);
}

.exhibit-vote-body {
  padding: 12px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.exhibit-vote-body h3 {
  margin: 0;
  font-family: var(--font-cn);
  font-size: 1rem;
  line-height: 1.35;
}

.exhibit-vote-hint {
  margin: 8px 0 18px;
  font-size: 0.86rem;
  max-width: 42rem;
}

.exhibit-section {
  margin-bottom: 18px;
}

.exhibit-section-head {
  margin-bottom: 14px;
}

.exhibit-section-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.exhibit-sort-select select {
  min-width: 180px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 0.86rem;
  color: var(--ink);
  cursor: pointer;
}

.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;
}

.exhibit-section-title {
  margin: 0;
  font-family: var(--font-cn);
  font-size: 1.15rem;
}

.exhibit-mine-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.exhibit-mine-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fafbfc;
}

.exhibit-mine-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px 14px;
}

.exhibit-mine-body h3 {
  margin: 0;
  font-family: var(--font-cn);
  font-size: 1rem;
}

.exhibit-mine-body .btn {
  align-self: flex-start;
  margin-top: 4px;
}

.exhibit-weight-block {
  padding: 4px 0 2px;
}

.exhibit-weight-title {
  margin: 0 0 12px;
  font-family: var(--font-cn);
  font-size: 1rem;
  font-weight: 600;
}

.exhibit-weight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.exhibit-weight-grid .field {
  margin: 0;
}

.exhibit-weight-grid .field > span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.exhibit-weight-sum {
  margin: 12px 0 0;
  font-size: 0.84rem;
}

.exhibit-weight-sum.is-ok {
  color: #2f6b4f;
}

.exhibit-weight-sum.is-warn {
  color: #9a5b1a;
}

@media (max-width: 760px) {
  html:not(.ui-scale) {
    .exhibit-weight-grid {
      grid-template-columns: 1fr;
    }
  }
}

.exhibit-rank-table-wrap {
  overflow-x: auto;
}

.exhibit-rank-table td a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.exhibit-rank-table td a:hover {
  color: var(--seine-deep, #2a5f86);
}

.exhibit-rank-table tr.is-vote-target td {
  background: rgba(42, 95, 134, 0.08);
}

.exhibit-share-link-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.exhibit-share-input {
  flex: 1;
  min-width: 180px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.82rem;
  background: #f7f8fa;
}

.exhibit-share-qr {
  margin-top: 16px;
  text-align: center;
}

.exhibit-share-qr img {
  display: inline-block;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
}

.exhibit-vote-panel {
  margin-top: auto;
  padding: 10px;
  border-radius: 10px;
  background: #f4f7fa;
  border: 1px solid rgba(42, 95, 134, 0.12);
}

.exhibit-vote-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 10px;
  margin-bottom: 8px;
}

.exhibit-vote-panel-head strong {
  font-size: 0.86rem;
  color: var(--seine-deep);
}

.exhibit-vote-panel-head span {
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.exhibit-vote-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.exhibit-award-btn {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(42, 95, 134, 0.16);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.exhibit-award-btn:hover {
  border-color: rgba(42, 95, 134, 0.35);
  background: #eef5fb;
}

.exhibit-award-name {
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.3;
}

.exhibit-award-count {
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  color: var(--seine);
  font-weight: 600;
  white-space: nowrap;
}

.exhibit-award-cta {
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  background: var(--seine-deep, #2a5f86);
  padding: 4px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.exhibit-award-btn:hover .exhibit-award-cta {
  filter: brightness(1.06);
}

@media (max-width: 1100px) {
  html:not(.ui-scale) {
    .exhibit-vote-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }
}

@media (max-width: 980px) {
  html:not(.ui-scale) {
    .exhibit-vote-grid,
    .exhibit-mine-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
}

@media (max-width: 760px) {
  html:not(.ui-scale) {
    .exhibit-vote-grid,
    .exhibit-mine-grid {
      grid-template-columns: 1fr;
    }
  }
}

.stat-spark {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 16px;
}

.stat-spark::before,
.stat-spark::after {
  content: "";
  width: 4px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.35;
  color: var(--seine);
}

.stat-spark::before { height: 8px; }
.stat-spark::after { height: 14px; }

.stat-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
}

.stat-bars i {
  display: block;
  width: 4px;
  border-radius: 999px;
  background: #b89262;
  opacity: 0.55;
}

.stat-bars i:nth-child(1) { height: 7px; }
.stat-bars i:nth-child(2) { height: 12px; }
.stat-bars i:nth-child(3) { height: 16px; }

.stat-ring {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background:
    conic-gradient(#2f6b4f calc(var(--p, 70) * 1%), rgba(47, 107, 79, 0.15) 0);
  mask: radial-gradient(circle at center, transparent 55%, #000 57%);
  -webkit-mask: radial-gradient(circle at center, transparent 55%, #000 57%);
}

.stat-ring em { display: none; }

.stat-pins {
  display: flex;
  gap: 4px;
  align-items: center;
}

.stat-pins i {
  width: 7px;
  height: 7px;
  border-radius: 50% 50% 50% 0;
  background: #c45a70;
  opacity: 0.55;
  transform: rotate(-45deg);
}

.stat-pins i:nth-child(2) { opacity: 0.4; transform: rotate(-45deg) translateY(2px); }
.stat-pins i:nth-child(3) { opacity: 0.28; }

.chart-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

.analytics-score-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.analytics-score-block {
  padding: 12px;
  border-radius: 10px;
  background: #f4f7fa;
  border: 1px solid rgba(42, 95, 134, 0.1);
}

.analytics-score-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--seine-deep);
  margin-bottom: 10px;
}

.analytics-score-triple {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  text-align: center;
}

.analytics-score-triple span {
  display: block;
  font-size: 0.72rem;
  color: var(--ink-soft);
  margin-bottom: 4px;
}

.analytics-score-triple strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.1;
}

.map-embed-panel {
  margin-top: 18px;
}

.map-embed-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.map-embed-card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}

a.map-embed-card.map-embed-card-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

button.map-embed-card.map-embed-card-create {
  text-align: left;
  font: inherit;
  cursor: pointer;
  padding: 0;
}

.map-embed-card-create {
  border-style: dashed;
  border-color: rgba(42, 95, 134, 0.35);
  background: rgba(42, 95, 134, 0.04);
}

.map-embed-cover-empty {
  display: grid;
  place-items: center;
  color: #2a5f86;
  font-size: 2rem;
  font-weight: 600;
  background: rgba(42, 95, 134, 0.08);
}

.map-embed-go {
  margin-top: auto;
  font-size: 0.78rem;
  color: #2a5f86;
  font-weight: 500;
}

.map-embed-card-link:hover .map-embed-go,
.map-embed-card-create:hover .map-embed-go {
  text-decoration: underline;
}

.map-embed-card:hover {
  transform: translateY(-2px);
  border-color: rgba(42, 95, 134, 0.28);
}

.map-embed-cover {
  height: 96px;
  background: #dfe8ef;
  overflow: hidden;
}

.map-embed-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-embed-body {
  padding: 11px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.map-embed-body h3 {
  margin: 0;
  font-family: var(--font-cn);
  font-size: 0.95rem;
  line-height: 1.35;
}

.map-embed-author {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink);
}

.map-embed-author span {
  margin-left: 4px;
  color: #7a8796;
}

.map-embed-body .btn {
  margin-top: auto;
  align-self: flex-start;
}

.map-embed-tag {
  display: inline-block;
  width: fit-content;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 6px;
  background: #f4f7fa;
}

.map-embed-card.is-mine .map-embed-tag {
  color: var(--ink);
  border-color: rgba(42, 95, 134, 0.28);
  background: #eef4f8;
}

.map-embed-tag.muted-tag {
  color: #7a8796;
}

.map-embed-card-mine {
  position: relative;
  border-color: rgba(42, 95, 134, 0.35);
}

.map-embed-card-mine .map-embed-body {
  padding-bottom: 36px;
}

.map-embed-card-mine > .map-embed-card-link {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 100%;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.map-embed-delete {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(20, 26, 34, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: #8a6a6a;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 1px 4px rgba(20, 26, 34, 0.08);
  transition: color 0.15s var(--ease), background 0.15s var(--ease), border-color 0.15s var(--ease);
}

.map-embed-delete:hover {
  color: #b42318;
  border-color: rgba(180, 35, 24, 0.35);
  background: #fff5f4;
}

.work-detail-panel {
  max-width: 720px;
}

.work-submit-panel {
  margin-top: 4px;
}

.work-submit-actions {
  max-width: 720px;
  margin-top: 16px;
}

.work-submit-empty {
  margin: 4px 0 0;
}

.work-detail-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.work-detail-title {
  margin: 0;
  font-family: var(--font-cn);
  font-size: 1.45rem;
  color: var(--ink, #2c2419);
}

.work-detail-line {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink, #2c2419);
}

.work-detail-k {
  display: inline-block;
  min-width: 4.5em;
  margin-right: 8px;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.work-detail-block .work-detail-k,
.work-detail-media .work-detail-k {
  display: block;
  margin-bottom: 6px;
}

.work-detail-block p {
  margin: 0;
  line-height: 1.55;
}

.work-detail-poster {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #dfe8ef;
  min-height: 160px;
}

.work-detail-poster img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.work-detail-poster span {
  display: block;
  padding: 8px 12px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  background: #f7f4ef;
}

.map-work-view .french-line {
  margin-top: 10px;
}

.map-work-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.map-group-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.map-group-list-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line, #e6e0d6);
  border-radius: 12px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.map-group-list-item:hover {
  border-color: #c4b8a4;
  background: #faf8f4;
}

.map-group-badge {
  flex-shrink: 0;
  min-width: 52px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f3ebe0;
  color: var(--ink, #2c2419);
  font-family: var(--font-cn);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}

.map-group-meta strong {
  display: block;
  font-family: var(--font-cn);
  font-size: 0.95rem;
  color: var(--ink, #2c2419);
}

.map-group-meta small {
  display: block;
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 0.8rem;
  line-height: 1.4;
}

.map-work-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line, #e6e0d6);
  border-radius: 12px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.map-work-list-item:hover {
  border-color: #c4b8a4;
  background: #faf8f4;
}

.map-work-list-item img {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.map-work-list-item strong {
  display: block;
  font-family: var(--font-cn);
  font-size: 0.95rem;
  color: var(--ink, #2c2419);
}

.map-work-list-item small {
  display: block;
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.map-eval-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.map-eval-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.map-eval-panel-head h3 {
  margin: 0;
  font-family: var(--font-cn);
  font-size: 1.15rem;
}

.map-eval-score {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.map-eval-summary {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f7f9fb;
  border: 1px solid var(--line);
  line-height: 1.55;
}

.map-eval-dims {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.map-eval-dims article {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
}

.map-eval-dims h4 {
  margin: 0 0 6px;
  font-family: var(--font-cn);
  font-size: 0.95rem;
  color: var(--seine-deep);
}

.map-eval-dims p {
  margin: 0 0 4px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ink);
}

.map-eval-dims p:last-child {
  margin-bottom: 0;
}

.map-edit-form .field {
  margin-bottom: 12px;
}

@media (max-width: 980px) {
  html:not(.ui-scale) {
    .map-embed-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
}

@media (max-width: 760px) {
  html:not(.ui-scale) {
    .map-embed-grid {
      grid-template-columns: 1fr;
    }
  }
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.review-card {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease);
}

.review-card:hover {
  transform: translateY(-3px);
  border-color: rgba(42, 95, 134, 0.28);
}

.review-card-cover {
  position: relative;
  height: 110px;
  background: #dfe8ef;
  overflow: hidden;
}

.review-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-card-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.68rem;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(20, 26, 34, 0.08);
}

.review-card-badge.ok {
  color: #2f6b4f;
}

.review-card-badge.pending {
  color: #9a5b1f;
}

.review-card-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.review-card-body h3 {
  margin: 0;
  font-family: var(--font-cn);
  font-size: 0.98rem;
  line-height: 1.35;
}

.review-card-author {
  margin: 0;
  font-size: 0.86rem;
  color: var(--ink);
}

.review-card-author span {
  color: #7a8796;
  margin-left: 4px;
}

.review-card-meta {
  margin: 0;
  font-size: 0.75rem;
  color: #7a8796;
}

.review-card-body .btn {
  margin-top: auto;
  align-self: flex-start;
}

.review-detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  margin-top: 8px;
}

.review-cover {
  border-radius: 12px;
  overflow: hidden;
  height: 180px;
  background: #dfe8ef;
}

.review-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-form-panel {
  background: #eef5fb;
  border-color: rgba(42, 95, 134, 0.12);
}

.review-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.review-form-actions .btn {
  flex: 1 1 auto;
  text-align: center;
  white-space: nowrap;
}

.review-score-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.review-score-label {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
}

.review-score-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.field .review-score-input,
.review-score-input {
  width: 5.5rem !important;
  max-width: 5.5rem;
  flex: 0 0 5.5rem;
  height: 38px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  text-align: center;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  box-sizing: border-box;
}

.field .review-score-input:focus,
.review-score-input:focus {
  outline: 2px solid rgba(42, 95, 134, 0.28);
  border-color: rgba(42, 95, 134, 0.45);
}

.review-score-unit {
  flex: 0 0 auto;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1;
  white-space: nowrap;
}

@media (max-width: 980px) {
  html:not(.ui-scale) {
    .review-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .review-detail-grid {
      grid-template-columns: 1fr;
    }
  }
}

@media (max-width: 760px) {
  html:not(.ui-scale) {
    .review-grid {
      grid-template-columns: 1fr;
    }
  }
}

.peer-setup {
  display: grid;
  gap: 16px;
}

.peer-list-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.peer-list-summary strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.peer-review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.peer-review-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 16px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}

.peer-review-card:hover {
  transform: translateY(-2px);
  border-color: rgba(42, 95, 134, 0.35);
}

.peer-review-card-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.peer-status-tag,
.peer-group-tag {
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.peer-status-tag {
  background: #f7f3ec;
  color: #7a5a34;
}

.peer-review-card.status-done .peer-status-tag {
  background: #eef6f1;
  color: #2f6b4f;
}

.peer-group-tag {
  background: #f4f7fa;
  color: #5c6b7a;
}

.peer-review-card h3 {
  margin: 0;
  font-family: var(--font-cn);
  font-size: 1.08rem;
  line-height: 1.35;
}

.peer-author {
  margin: 0;
  font-size: 0.9rem;
}

.peer-card-cta {
  margin-top: auto;
  padding-top: 6px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--seine);
}

.studio-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  gap: 16px;
  align-items: start;
}

.studio-layout {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.studio-backup-panel {
  position: sticky;
  top: 12px;
  padding: 16px;
}

.studio-backup-list {
  display: grid;
  gap: 10px;
}

.studio-backup-card {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(42, 95, 134, 0.12);
  background: #f7fafc;
}

.studio-backup-card strong {
  font-family: var(--font-cn);
  font-size: 0.98rem;
  line-height: 1.35;
}

.studio-backup-desc {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.studio-backup-time {
  margin: 0;
  font-size: 0.76rem;
}

.studio-backup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.studio-basic h2,
.studio-block h3 {
  font-family: var(--font-cn);
}

.studio-block h3 {
  margin: 4px 0 0;
  font-size: 1.15rem;
}

.studio-block-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.studio-block-head h3 {
  margin: 0;
}

.studio-media-panel {
  display: grid;
  gap: 12px;
}

.studio-media-main {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.studio-media-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 4px 0;
}

.studio-upload-field {
  margin: 0;
  min-width: 0;
}

.studio-upload-field input[type="file"] {
  width: 100%;
  max-width: 420px;
}

.studio-upload-hint {
  margin: 8px 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
}

.studio-ai-guide {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(42, 95, 134, 0.1);
  background: #f7fafc;
}

.studio-ai-guide-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  margin-bottom: 8px;
}

.studio-ai-guide-k {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--primary, #2a5f86);
  flex-shrink: 0;
}

.studio-ai-guide-intro {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.4;
  color: #6b7a88;
}

.studio-ai-guide-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.studio-ai-chip {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(42, 95, 134, 0.1);
  background: #fff;
}

.studio-ai-chip strong {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink, #2c2419);
  line-height: 1.3;
}

.studio-ai-chip em {
  font-style: normal;
  font-size: 0.68rem;
  line-height: 1.35;
  color: #6b7a88;
}

.studio-thumb,
.studio-video-preview {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #101820;
  display: flex;
  flex-direction: column;
}

.studio-thumb img,
.studio-video-preview video {
  width: 100%;
  height: 148px;
  object-fit: cover;
  display: block;
  background: #000;
}

.studio-video-placeholder {
  width: 100%;
  height: 148px;
  display: grid;
  place-items: center;
  color: #8a9aaa;
  font-size: 0.84rem;
  background: linear-gradient(180deg, #1a2430 0%, #0f151c 100%);
}

.studio-thumb span,
.studio-video-preview span {
  padding: 8px 10px;
  font-size: 0.78rem;
  color: #5c6b7a;
  background: #fff;
  line-height: 1.4;
}

.work-detail-video video {
  width: 100%;
  max-height: 360px;
  border-radius: 12px;
  background: #000;
  display: block;
}

.studio-media-row {
  display: flex;
  gap: 14px;
  align-items: stretch;
}

.studio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 12px;
}

@media (max-width: 980px) {
  html:not(.ui-scale) {
    .studio-shell {
      grid-template-columns: 1fr;
    }

    .studio-backup-panel {
      position: static;
    }
  }
}

@media (max-width: 760px) {
  html:not(.ui-scale) {
    .studio-media-main {
      grid-template-columns: 1fr;
    }

    .studio-thumb img,
    .studio-video-preview video,
    .studio-video-placeholder {
      height: 160px;
    }
  }
}

.peer-detail-top {
  margin-bottom: 8px;
}

.peer-detail-layout {
  display: grid;
  grid-template-columns: 1.45fr 0.7fr;
  gap: 16px;
  align-items: stretch;
}

.peer-work-brief,
.peer-form-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  box-sizing: border-box;
}

.peer-work-brief-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  min-height: 74px;
}

.peer-form-submit {
  margin-top: auto;
  padding-top: 8px;
}

.peer-work-brief-head h2 {
  font-size: 1.25rem;
}

.peer-work-brief .peer-status-tag.is-done {
  background: #eef6f1;
  color: #2f6b4f;
}

.peer-material {
  margin-bottom: 14px;
}

.peer-material-label {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--seine);
  font-weight: 600;
  margin-bottom: 6px;
}

.peer-final-preview {
  margin: 4px 0 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 220px;
}

.peer-final-preview .peer-video-player {
  flex: 1 1 auto;
  min-height: 220px;
}

.peer-desc-block {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #f7f9fb;
}

.peer-desc-block .peer-material-label {
  margin-bottom: 8px;
}

.peer-desc-text {
  margin: 0;
  line-height: 1.65;
  color: var(--ink);
  font-size: 0.92rem;
}

.peer-desc-french {
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px dashed rgba(42, 95, 134, 0.18);
  line-height: 1.7;
  color: var(--ink-soft);
  font-size: 0.9rem;
  white-space: pre-wrap;
}

.peer-video-player {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #101820;
  aspect-ratio: 16 / 10;
  min-height: 280px;
}

.peer-video-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.peer-video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  background: linear-gradient(180deg, rgba(12, 20, 28, 0.18), rgba(12, 20, 28, 0.55));
  color: #fff;
  text-align: center;
}

.peer-video-overlay .peer-video-play {
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  color: #1a2a36;
  font-size: 1rem;
  cursor: default;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.peer-video-overlay-copy strong {
  display: block;
  font-family: var(--font-cn);
  font-size: 1.05rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.peer-video-overlay-copy small {
  display: block;
  margin-top: 4px;
  opacity: 0.9;
  font-size: 0.8rem;
}

.peer-video-chrome {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px 12px;
  background: linear-gradient(180deg, transparent, rgba(8, 14, 20, 0.75));
  color: #fff;
}

.peer-video-progress {
  display: block;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  overflow: hidden;
  margin-bottom: 8px;
}

.peer-video-progress i {
  display: block;
  width: 28%;
  height: 100%;
  background: #fff;
}

.peer-video-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  opacity: 0.92;
}

.peer-final-poster {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #101820;
}

.peer-final-poster img {
  display: block;
  width: 100%;
  height: min(52vh, 480px);
  object-fit: cover;
}

.peer-final-poster figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  background: #fff;
  color: var(--ink);
}

.peer-final-poster figcaption strong {
  font-family: var(--font-cn);
  font-size: 0.95rem;
}

.peer-final-poster figcaption span {
  font-size: 0.78rem;
  color: #7a8796;
}

.peer-final-video {
  position: relative;
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: min(42vh, 360px);
  border-radius: 14px;
  overflow: hidden;
  color: #fff;
  text-align: center;
  padding: 24px;
  background:
    linear-gradient(160deg, rgba(16, 24, 32, 0.45), rgba(16, 24, 32, 0.78)),
    var(--peer-cover) center / cover no-repeat,
    #1a2a36;
}

.peer-final-video strong {
  font-family: var(--font-cn);
  font-size: 1.05rem;
}

.peer-final-video small {
  opacity: 0.85;
  font-size: 0.8rem;
}

.peer-final-map {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 320px;
}

.peer-final-map img {
  width: 100%;
  height: min(42vh, 360px);
  object-fit: cover;
  display: block;
  filter: saturate(0.92);
}

.peer-final-map-pin {
  position: absolute;
  left: 52%;
  top: 42%;
  width: 16px;
  height: 16px;
  border-radius: 50% 50% 50% 0;
  transform: translate(-50%, -50%) rotate(-45deg);
  background: #c45a70;
  box-shadow: 0 0 0 6px rgba(196, 90, 112, 0.22);
}

.peer-final-map-card {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.peer-final-map-card strong {
  font-family: var(--font-cn);
  display: block;
  margin-bottom: 4px;
}

.peer-final-map-card p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.peer-final-doc {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fffef9;
  padding: 20px 18px;
  min-height: 280px;
}

.peer-final-doc-meta {
  font-size: 0.75rem;
  color: #7a8796;
  margin-bottom: 10px;
}

.peer-final-doc h3 {
  margin: 0 0 12px;
  font-family: var(--font-cn);
  font-size: 1.15rem;
}

.peer-final-doc .french-line {
  margin: 0;
  line-height: 1.75;
  white-space: pre-wrap;
}

.peer-final-caption {
  margin: 0 0 14px;
  font-size: 0.88rem;
  line-height: 1.55;
}

.peer-part-preview {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #f7f9fb;
  padding: 12px;
}

.peer-part-text p {
  margin: 0;
  line-height: 1.7;
  white-space: pre-wrap;
  font-size: 0.92rem;
}

.peer-part-image img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.peer-video-frame {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 140px;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(42, 95, 134, 0.55), rgba(28, 48, 66, 0.72)),
    #1a2a36;
  color: #fff;
  text-align: center;
  padding: 16px;
}

.peer-video-play {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 0.85rem;
}

.peer-video-frame strong {
  font-family: var(--font-cn);
}

.peer-video-frame small {
  opacity: 0.8;
  font-size: 0.78rem;
}

.peer-dim-block {
  padding: 12px 0 14px;
  border-bottom: 1px solid var(--line);
}

.peer-dim-block:last-of-type {
  border-bottom: 0;
  margin-bottom: 10px;
}

.peer-dim-block .field {
  margin-bottom: 8px;
}

.peer-dim-block .field:last-child {
  margin-bottom: 0;
}

.peer-dim-note-label {
  font-size: 0.8rem !important;
  color: #7a8796 !important;
  font-weight: 500 !important;
}

.peer-dim-block textarea {
  min-height: 72px;
}

@media (max-width: 900px) {
  html:not(.ui-scale) {
    .peer-detail-layout {
      grid-template-columns: 1fr;
    }
  }
}

.peer-assign-table {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.data-table th {
  color: #5c6b7a;
  font-weight: 600;
  background: #f7f9fb;
}

.data-table tbody tr:hover td {
  background: #fafcfd;
}

@media (max-width: 900px) {
  html:not(.ui-scale) {
    .peer-review-grid,
    .peer-detail-layout {
      grid-template-columns: 1fr;
    }
  }
}

.peer-setup-hero {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 18px;
  align-items: stretch;
  background: linear-gradient(135deg, #eef5fb 0%, #f7fafc 55%, #f3f1f8 100%);
  border-color: rgba(42, 95, 134, 0.12);
}

.peer-rules {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.peer-rules li {
  font-size: 0.78rem;
  color: var(--seine-deep);
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(42, 95, 134, 0.12);
}

.peer-setup-action {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  align-items: stretch;
}

.peer-rate-card {
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(42, 95, 134, 0.1);
}

.peer-rate-num {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  color: var(--seine-deep);
}

.peer-rate-label {
  margin-top: 6px;
  font-size: 0.84rem;
  color: var(--ink-soft);
}

.peer-rate-track,
.peer-progress {
  margin-top: 10px;
  height: 8px;
  border-radius: 999px;
  background: rgba(20, 26, 34, 0.08);
  overflow: hidden;
}

.peer-rate-track span,
.peer-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3d7ea8, #2a5f86);
}

.peer-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.peer-metric {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(20, 26, 34, 0.08);
}

.peer-metric-blue { background: #eef5fb; }
.peer-metric-green { background: #eef6f1; }
.peer-metric-sand { background: #f7f3ec; }

.peer-metric-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.peer-metric-head strong {
  font-family: var(--font-cn);
  font-size: 0.95rem;
}

.peer-metric-head span {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--seine-deep);
}

.peer-metric-green .peer-metric-head span { color: #2f6b4f; }
.peer-metric-sand .peer-metric-head span { color: #7a5a34; }

.peer-metric p {
  margin: 8px 0 0;
  font-size: 0.78rem;
  color: #7a8796;
}

.peer-metric-blue .peer-progress i {
  background: linear-gradient(90deg, #6aa0c2, #2a5f86);
}

.peer-metric-green .peer-progress i {
  background: linear-gradient(90deg, #6aaa84, #2f6b4f);
}

.peer-metric-sand .peer-progress i {
  background: linear-gradient(90deg, #c4a06e, #9a7348);
}

.peer-dim-panel {
  background: rgba(255, 255, 255, 0.82);
  margin-bottom: 16px;
}

.peer-detail-panel {
  margin-top: 0;
}

.peer-detail-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.peer-detail-toolbar-main {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.peer-detail-title {
  margin: 0;
  font-family: var(--font-cn);
  font-size: 1.05rem;
}

.peer-detail-toolbar > .btn {
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 2px;
}

.peer-detail-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
  flex-shrink: 0;
  margin-top: 2px;
}

.peer-dim-list {
  display: grid;
  gap: 12px;
}

.peer-dim-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.peer-dim-label strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.peer-dim-blue .peer-dim-label strong { color: var(--seine-deep); }
.peer-dim-blue .peer-progress i { background: linear-gradient(90deg, #6aa0c2, #2a5f86); }

.peer-dim-green .peer-dim-label strong { color: #2f6b4f; }
.peer-dim-green .peer-progress i { background: linear-gradient(90deg, #6aaa84, #2f6b4f); }

.peer-dim-rose .peer-dim-label strong { color: #8f2440; }
.peer-dim-rose .peer-progress i { background: linear-gradient(90deg, #c45a70, #8f2440); }

@media (max-width: 980px) {
  html:not(.ui-scale) {
    .peer-setup-hero,
    .peer-metric-grid {
      grid-template-columns: 1fr;
    }
  }
}

.bars {
  display: grid;
  gap: 14px;
  align-content: end;
  min-height: 260px;
}

.bar-row {
  display: grid;
  grid-template-columns: 90px 1fr 40px;
  gap: 10px;
  align-items: center;
  font-size: 0.88rem;
}

.bar-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(20, 26, 34, 0.08);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--seine), var(--bronze));
  width: 0;
  animation: grow 1s var(--ease) forwards;
}

@keyframes grow {
  to { width: var(--w); }
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.table th,
.table td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
}

.table th {
  color: var(--ink-soft);
  font-weight: 500;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
}

.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.status.done { color: var(--success); }
.status.doing { color: var(--warn); }
.status.return { color: #b45309; }
.status.wait { color: var(--seine); }

.stars {
  display: flex;
  gap: 6px;
}

.star {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  color: #c7ced8;
  font-size: 0.95rem;
}

.star.on {
  color: #9a7348;
  border-color: rgba(154, 115, 72, 0.4);
  background: rgba(154, 115, 72, 0.1);
}

.stars.is-readonly .star {
  cursor: default;
  pointer-events: none;
}

.peer-form-panel.is-readonly textarea {
  background: #f3f5f7;
  color: var(--ink-soft);
  cursor: default;
  resize: none;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.tab {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
  border-radius: 10px;
  padding: 8px 14px;
  cursor: pointer;
  color: var(--ink-soft);
}

.tab.active {
  background: var(--seine-deep);
  color: #fff;
  border-color: var(--seine-deep);
}

.split-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  z-index: 100;
  font-size: 0.92rem;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.empty {
  padding: 36px 20px;
  text-align: center;
  color: var(--ink-soft);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(15, 23, 32, 0.55);
  display: grid;
  place-items: center;
  padding: 20px;
  animation: pageIn 0.25s var(--ease);
}

.modal-panel {
  width: min(640px, 100%);
  max-height: min(86vh, 820px);
  overflow: auto;
  background: var(--paper);
  border-radius: 18px;
  border: 1px solid var(--line);
  padding: 22px;
  box-shadow: var(--shadow);
}

.modal-panel-sm {
  width: min(460px, 100%);
}

.create-landmark-modal {
  width: min(720px, 100%);
}

.admin-form-modal-panel {
  width: min(560px, 100%);
}

.admin-form-modal-panel.is-place-pick {
  width: min(720px, 100%);
}

.admin-place-map-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-place-map-panel {
  margin-top: 4px;
}

.admin-place-map {
  border-radius: 12px;
  border: 1px solid rgba(20, 26, 34, 0.1);
  background: #e8eef4;
  overflow: hidden;
}

.admin-place-map .map-stage {
  min-height: 0;
  padding: 16px 12px 12px;
}

.admin-place-map .map-frame {
  max-width: none;
  cursor: crosshair;
}

.admin-place-map .map-photo-hint {
  margin: 8px 0 0;
  font-size: 0.78rem;
}

.admin-place-pick-hint {
  margin: 8px 0 0;
  font-size: 0.82rem;
}

.admin-form-modal-panel .admin-form-grid {
  margin-bottom: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-form-modal-panel .admin-form-span-2 {
  grid-column: 1 / -1;
}

.admin-form-modal-panel .field {
  min-width: 0;
}

.admin-form-modal-panel .field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.admin-form-modal-panel .field select,
.admin-form-modal-panel .field textarea {
  width: 100%;
  box-sizing: border-box;
}

.admin-form-modal-panel .admin-role-checks {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 18px;
}

.admin-form-modal-panel .admin-role-checks label {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  margin: 0;
}

.admin-form-modal-panel .admin-role-checks input {
  width: auto;
  margin: 0;
}

.admin-work-upload {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.admin-upload-btn {
  cursor: pointer;
  margin: 0;
}

.admin-work-upload input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.admin-upload-name {
  font-size: 0.8rem;
  color: var(--ink-soft);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 10px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

.task-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.review-list-toolbar {
  align-items: flex-end;
}

.task-center-lead {
  margin: -4px 0 16px;
}

.task-center-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.task-center-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 12px;
  min-height: 188px;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

button.task-center-card {
  width: 100%;
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.task-center-card:hover {
  border-color: rgba(42, 95, 134, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(28, 48, 72, 0.08);
}

.task-center-card.is-focus {
  border-color: rgba(42, 95, 134, 0.5);
}

.task-center-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.task-bell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--seine);
  background: rgba(42, 95, 134, 0.1);
  border: 1px solid rgba(42, 95, 134, 0.18);
  flex-shrink: 0;
  animation: task-bell-soft 2.4s ease-in-out infinite;
}

@keyframes task-bell-soft {
  0%,
  100% {
    transform: rotate(0deg);
  }
  8% {
    transform: rotate(-10deg);
  }
  16% {
    transform: rotate(8deg);
  }
  24% {
    transform: rotate(-4deg);
  }
  32% {
    transform: rotate(0deg);
  }
}

.task-center-main h3 {
  margin: 0 0 6px;
  font-family: var(--font-cn);
  font-size: 1.02rem;
  line-height: 1.35;
}

.task-center-desc {
  margin: 8px 0 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.task-center-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

.task-center-cta {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--seine);
}

@media (max-width: 1100px) {
  html:not(.ui-scale) {
    .task-center-list {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
}

@media (max-width: 640px) {
  html:not(.ui-scale) {
    .task-center-list {
      grid-template-columns: 1fr;
    }
  }
}

.task-tag-submit {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 999px;
  color: #8a5a2b;
  background: rgba(196, 140, 72, 0.14);
  border: 1px solid rgba(196, 140, 72, 0.28);
}

.task-focus-panel {
  margin-top: 16px;
}

.ai-hub-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 8px;
}

.ai-hub-head .page-title {
  margin-bottom: 0;
}

.ai-hub-head > .btn {
  margin-top: 1.55rem;
  flex-shrink: 0;
}

.ai-hub-extra {
  margin-top: 20px;
}

.ai-feedback-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 8px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.ai-feedback-head-solo {
  max-width: 720px;
}

.ai-feedback-head .page-title {
  margin-bottom: 0;
}

.ai-feedback-head > .btn {
  margin-top: 1.55rem;
  flex-shrink: 0;
}

.ai-feedback-form-panel {
  max-width: 720px;
  margin: 0 auto;
}

.ai-feedback-collect-page {
  max-width: 720px;
  margin: 0 auto;
}

.ai-feedback-guide {
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line, #e6e0d6);
  border-radius: 12px;
  background: #faf8f4;
}

.ai-feedback-guide-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 12px;
}

.ai-feedback-guide-title {
  display: block;
  font-family: var(--font-cn);
  font-size: 1rem;
  color: var(--ink, #2c2419);
}

.ai-feedback-guide-lead {
  margin: 6px 0 0;
  font-size: 0.86rem;
  line-height: 1.5;
}

.ai-feedback-dim-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ai-feedback-dim-list li {
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #ebe4d8;
}

.ai-feedback-dim-list strong {
  display: block;
  font-family: var(--font-cn);
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.ai-feedback-dim-list span {
  display: block;
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

.ai-feedback-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  max-width: 720px;
}

.ai-feedback-layout-staff {
  max-width: none;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.ai-feedback-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ai-feedback-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.ai-feedback-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.ai-feedback-item-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.ai-feedback-item p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

@media (max-width: 900px) {
  html:not(.ui-scale) {
    .ai-feedback-layout-staff {
      grid-template-columns: 1fr;
    }
  }
}

.tmc-shell {
  display: grid;
  gap: 14px;
  margin-top: 4px;
}

.tmc-shell-simple {
  gap: 12px;
}

.tmc-toolbar {
  display: flex;
  justify-content: flex-end;
}

.tmc-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(20, 26, 34, 0.08);
  background: #fff;
}

.tmc-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-cn);
  color: var(--ink);
}

.tmc-brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(145deg, #f0a070 0%, #d97848 55%, #b85a30 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.tmc-topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tmc-topnav-link {
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.9rem;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
}

.tmc-topnav-link.active {
  background: #f3ebe3;
  color: var(--ink);
  font-weight: 600;
}

.tmc-body {
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.tmc-sider {
  padding: 16px;
  align-self: stretch;
  min-height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.tmc-course {
  margin: 0 0 14px;
  font-family: var(--font-cn);
  font-size: 1.15rem;
}

.tmc-mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin-bottom: 16px;
  border-radius: 10px;
  background: #eceff3;
}

.tmc-mode-btn {
  border: none;
  background: transparent;
  color: #6b7684;
  font: inherit;
  font-size: 0.8rem;
  line-height: 1.25;
  padding: 10px 8px;
  border-radius: 8px;
  cursor: pointer;
}

.tmc-mode-btn.active {
  background: #f0d2b8;
  color: #4a3424;
  font-weight: 600;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset;
}

.tmc-filters {
  display: grid;
  gap: 12px;
}

.tmc-filter {
  display: grid;
  gap: 6px;
}

.tmc-filter > span {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.tmc-filter select {
  width: 100%;
  min-height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(20, 26, 34, 0.12);
  background: #fff;
  padding: 6px 10px;
  font: inherit;
  font-size: 0.84rem;
  color: var(--ink);
}

.tmc-main {
  display: grid;
  gap: 14px;
  min-width: 0;
  align-self: stretch;
}

.tmc-panel {
  border-radius: 14px;
  border: 1px solid rgba(20, 26, 34, 0.08);
  background: #fff;
  overflow: hidden;
  min-height: 220px;
  display: flex;
  flex-direction: column;
}

.tmc-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px 0;
}

.tmc-panel-head h3 {
  margin: 0;
  font-family: var(--font-cn);
  font-size: 1.05rem;
}

.tmc-panel-body {
  flex: 1;
  padding: 14px 16px 18px;
}

.tmc-empty {
  min-height: 160px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 4px;
  text-align: center;
  color: #8a949f;
}

.tmc-empty-icon {
  margin-bottom: 4px;
  opacity: 0.9;
}

.tmc-empty-title {
  margin: 0;
  font-size: 0.95rem;
  color: #7a8694;
}

.tmc-empty-desc {
  margin: 0;
  font-size: 0.82rem;
  color: #9aa3ad;
}

.tmc-panel-body .task-manage-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  html:not(.ui-scale) {
    .tmc-panel-body .task-manage-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
}

@media (max-width: 980px) {
  html:not(.ui-scale) {
    .tmc-body {
      grid-template-columns: 1fr;
    }

    .tmc-sider {
      height: auto;
    }
  }
}

@media (max-width: 640px) {
  html:not(.ui-scale) {
    .tmc-panel-body .task-manage-grid {
      grid-template-columns: 1fr;
    }
  }
}

.task-manage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.task-manage-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 188px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(20, 26, 34, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.task-manage-card:nth-child(4n + 1) {
  background: #eef5fb;
  border-color: rgba(42, 95, 134, 0.1);
}

.task-manage-card:nth-child(4n + 2) {
  background: #f7f3ec;
  border-color: rgba(154, 115, 72, 0.12);
}

.task-manage-card:nth-child(4n + 3) {
  background: #eef6f1;
  border-color: rgba(47, 107, 79, 0.1);
}

.task-manage-card:nth-child(4n + 4) {
  background: #f8f0f2;
  border-color: rgba(143, 36, 64, 0.1);
}

.task-manage-card-main {
  display: grid;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.task-manage-card-main strong {
  font-family: var(--font-cn);
  font-size: 1.02rem;
  line-height: 1.35;
}

.task-manage-card-main .task-deadline {
  justify-self: start;
}

.task-manage-card-main p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.task-manage-card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (max-width: 1100px) {
  html:not(.ui-scale) {
    .task-manage-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }
}

@media (max-width: 900px) {
  html:not(.ui-scale) {
    .task-manage-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
}

@media (max-width: 640px) {
  html:not(.ui-scale) {
    .task-manage-grid {
      grid-template-columns: 1fr;
    }
  }
}

.task-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.task-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 14px;
  border-radius: 12px;
  border: 1px solid rgba(20, 26, 34, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.task-item:nth-child(5n + 1) {
  background: #eef5fb;
  border-color: rgba(42, 95, 134, 0.1);
}

.task-item:nth-child(5n + 2) {
  background: #f7f3ec;
  border-color: rgba(154, 115, 72, 0.12);
}

.task-item:nth-child(5n + 3) {
  background: #eef6f1;
  border-color: rgba(47, 107, 79, 0.1);
}

.task-item:nth-child(5n + 4) {
  background: #f8f0f2;
  border-color: rgba(143, 36, 64, 0.1);
}

.task-item:nth-child(5n + 5) {
  background: #f3f1f8;
  border-color: rgba(90, 100, 140, 0.1);
}

.task-item-main {
  min-width: 0;
  flex: 1;
}

.task-item-main strong {
  display: block;
  font-family: var(--font-cn);
  font-size: 1.02rem;
  margin-bottom: 6px;
}

.task-item-main .task-deadline {
  display: inline-block;
  margin-bottom: 8px;
}

.task-item-main p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.5;
}

.task-item-side {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.task-deadline {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--seine-deep);
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(42, 95, 134, 0.08);
  border: 1px solid rgba(42, 95, 134, 0.12);
  white-space: nowrap;
}

@media (max-width: 760px) {
  html:not(.ui-scale) {
    .task-item {
      flex-direction: column;
    }

    .task-item-side {
      align-items: flex-start;
    }
  }
}

.french-line {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.12rem;
  color: var(--seine-deep);
  margin: 8px 0 0;
  line-height: 1.45;
}

.multi-block {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.video-slot {
  border-radius: 12px;
  min-height: 120px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #1a2430, #2a5f86);
  color: #fff;
  font-weight: 600;
  text-align: center;
  padding: 16px;
}

.declare-box {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(143, 36, 64, 0.25);
  background: rgba(143, 36, 64, 0.06);
  font-size: 0.92rem;
  line-height: 1.5;
  cursor: pointer;
}

.declare-box input {
  margin-top: 3px;
  accent-color: var(--lacquer);
}

.milestone-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.milestone-track-4 {
  grid-template-columns: repeat(2, 1fr);
}

.milestone-card {
  position: relative;
}

.draft-pin {
  position: absolute;
  width: 14px;
  height: 14px;
  margin: 0;
  border-radius: 50% 50% 50% 0;
  background: #e11d2e;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px rgba(225, 29, 46, 0.35);
  transform: translate(-50%, -100%) rotate(-45deg);
  z-index: 6;
  pointer-events: none;
  animation: draftPulse 1.2s ease-in-out infinite;
}

@keyframes draftPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.dual-map.is-placing .map-frame {
  cursor: crosshair;
  outline: 2px dashed rgba(225, 29, 46, 0.45);
  outline-offset: 2px;
}

.dual-map.is-placing .marker {
  pointer-events: none;
}

.btn.active-place {
  border-color: rgba(225, 29, 46, 0.55);
  color: #c4081c;
  background: rgba(225, 29, 46, 0.08);
}

.create-landmark {
  border-color: rgba(42, 95, 134, 0.25);
}

.main-nav {
  max-width: 100%;
  overflow-x: auto;
  justify-content: flex-start;
  scrollbar-width: thin;
}

@media (max-width: 980px) {
  html:not(.ui-scale) {
    .milestone-track,
    .milestone-track-4 {
      grid-template-columns: 1fr;
    }

    .header-inner {
      gap: 12px;
      padding: 0 16px;
    }

    .brand-text small {
      display: none;
    }

    .main-nav {
      display: none;
      position: absolute;
      top: var(--header-h);
      left: 0;
      right: 0;
      background: rgba(243, 246, 249, 0.98);
      border-bottom: 1px solid var(--line);
      padding: 12px;
      flex-direction: column;
      align-items: stretch;
      overflow: visible;
      max-height: calc(100vh - var(--header-h));
      overflow-y: auto;
    }

    .main-nav.open {
      display: flex;
    }

    .main-nav a {
      border-radius: 10px;
      padding: 12px 14px;
    }

    .nav-toggle {
      display: inline-flex;
    }
  }
}

@media (max-width: 980px) {
  html:not(.ui-scale) {
    .entry-grid,
    .stats-grid,
    .grid-3 {
      grid-template-columns: 1fr 1fr;
    }

    .dual-map {
      grid-template-columns: 1fr;
      grid-template-rows: auto 56px auto;
      min-height: auto;
    }

    .map-pane {
      min-height: 420px;
    }

    .bridge {
      flex-direction: row;
    }

    .bridge-text {
      writing-mode: horizontal-tb;
      letter-spacing: 0.12em;
    }

    .bridge-line {
      width: 120px;
      height: 2px;
      max-height: none;
      background: linear-gradient(90deg, transparent, rgba(154, 115, 72, 0.85), transparent);
    }

    .bridge-line::before,
    .bridge-line::after {
      top: 50%;
      left: auto;
      transform: translateY(-50%);
    }

    .bridge-line::before { left: 0; }
    .bridge-line::after { right: 0; left: auto; }

    .detail-drawer,
    .place-hero,
    .ai-layout,
    .form-grid,
    .chart-grid,
    .split-2 {
      grid-template-columns: 1fr;
    }
  }
}

@media (max-width: 760px) {
  html:not(.ui-scale) {
    .entry-grid,
    .stats-grid,
    .grid-3 {
      grid-template-columns: 1fr;
    }

    .role-switch span {
      display: none;
    }

    .hero {
      min-height: 480px;
      height: 480px;
      max-height: 480px;
    }
  }
}

/* —— 管理端控制台 —— */
body.admin-console {
  background: #eef1f4;
}

body.admin-console .site-footer {
  display: none;
}

body.admin-console .view {
  max-width: none;
  margin: 0;
  padding: 0;
}

body.admin-console .page {
  animation: none;
}

.admin-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: calc(100vh - 72px);
  background: #eef1f4;
}

.admin-sider {
  display: flex;
  flex-direction: column;
  background: #1b2836;
  color: #e8eef4;
  padding: 18px 12px;
}

.admin-sider-brand {
  padding: 8px 10px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 12px;
}

.admin-sider-brand strong {
  display: block;
  font-family: var(--font-cn);
  font-size: 1.05rem;
  font-weight: 600;
}

.admin-sider-brand span {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: rgba(232, 238, 244, 0.55);
}

.admin-sider-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.admin-sider-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 2px 0;
}

.admin-sider-parent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
}

.admin-sider-parent.is-parent-active {
  color: #fff;
  background: transparent;
}

.admin-sider-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid rgba(232, 238, 244, 0.55);
  transition: transform 0.2s var(--ease);
  flex-shrink: 0;
}

.admin-sider-group.is-open .admin-sider-caret {
  transform: rotate(180deg);
  border-top-color: rgba(232, 238, 244, 0.85);
}

.admin-sider-sub {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 0 4px;
  margin: 0 0 2px 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-sider-sub[hidden] {
  display: none;
}

.admin-sider-sublink {
  padding: 7px 12px 7px 14px;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(232, 238, 244, 0.62);
  letter-spacing: 0.02em;
}

.admin-sider-sublink:hover {
  color: #fff;
}

.admin-sider-sublink.active {
  background: rgba(90, 148, 188, 0.28);
  color: #fff;
  font-weight: 600;
}

.admin-sider-link {
  appearance: none;
  border: none;
  background: transparent;
  color: rgba(232, 238, 244, 0.78);
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
}

.admin-sider-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.admin-sider-link.active {
  background: rgba(90, 148, 188, 0.28);
  color: #fff;
}

.admin-sider-foot {
  padding: 12px 10px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-sider-foot a {
  color: rgba(232, 238, 244, 0.55);
  font-size: 0.82rem;
  text-decoration: none;
}

.admin-sider-foot a:hover {
  color: #fff;
}

.admin-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.admin-main-head {
  padding: 18px 24px;
  background: #fff;
  border-bottom: 1px solid #dde3ea;
}

.admin-main-head h1 {
  margin: 0;
  font-family: var(--font-cn);
  font-size: 1.25rem;
  font-weight: 600;
  color: #1b2836;
}

.admin-main-body {
  padding: 18px 24px 32px;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.admin-toolbar-left {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.admin-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.admin-toolbar-note {
  margin: 0;
  font-size: 0.86rem;
  color: #5c6b7a;
}

.admin-block-title {
  margin: 0 0 12px;
  font-family: var(--font-cn);
  font-size: 1rem;
}

.admin-panel {
  border-radius: 10px;
  box-shadow: none;
}

.admin-places-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.7fr);
  gap: 14px;
  align-items: start;
}

.admin-crud-layout {
  display: block;
}

.admin-crud-main {
  min-width: 0;
}

.admin-block-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.admin-row-ops {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.admin-op-danger {
  color: #8f2440 !important;
}

.admin-form-wide {
  margin-bottom: 14px;
}

.admin-form-wide-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 14px;
}

.admin-form-span-2 {
  grid-column: span 2;
}

.admin-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.admin-role-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.88rem;
}

.admin-role-checks label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.admin-panel .table tbody tr.is-selected td {
  background: #eef5fb;
}

@media (max-width: 900px) {
  html:not(.ui-scale) {
    .admin-form-grid {
      grid-template-columns: 1fr;
    }

    .admin-form-span-2 {
      grid-column: auto;
    }
  }
}

@media (max-width: 960px) {
  html:not(.ui-scale) {
    .admin-shell {
      grid-template-columns: 1fr;
    }

    .admin-sider {
      flex-direction: row;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px;
      padding: 12px;
    }

    .admin-sider-brand {
      border: none;
      margin: 0;
      padding: 4px 8px;
    }

    .admin-sider-nav {
      flex-direction: row;
      flex-wrap: wrap;
      flex: 1;
    }

    .admin-sider-foot {
      border: none;
      padding: 4px 8px;
    }

    .admin-places-layout {
      grid-template-columns: 1fr;
    }
  }
}


/* ===== PC / 移动端差异化适配（收紧控件，避免按钮被拉满变大） ===== */
@media (max-width: 980px) {
  html:not(.ui-scale) {
    .view { padding: 18px 14px 40px; }
    .page-title { font-size: clamp(1.35rem, 4.2vw, 1.7rem); }

    .btn { padding: 8px 14px; font-size: 0.86rem; border-radius: 10px; gap: 6px; }
    .btn-sm { padding: 6px 10px; font-size: 0.8rem; }
    .brand-mark { width: 30px; height: 30px; }

    .dual-map { grid-template-rows: auto 40px auto; }
    .map-pane { min-height: 300px; }
    .map-stage { min-height: 280px; padding: 24px 8px 18px; }

    .tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; padding-bottom: 4px; gap: 6px; }
    .tab { flex: 0 0 auto; padding: 7px 12px; font-size: 0.84rem; }

    .works-filters, .works-filters-selects { flex-wrap: wrap; align-items: center; }
    .works-filters-actions { margin-left: auto; }
    .works-filter-select-card { max-width: 7.2rem; height: 32px; }

    .analytics-table-toolbar, .peer-detail-toolbar, .admin-toolbar, .task-toolbar, .ai-hub-head, .ai-feedback-head {
      flex-wrap: wrap; align-items: flex-end; gap: 10px;
    }
    .peer-detail-toolbar-actions, .admin-toolbar-actions, .analytics-table-actions {
      display: flex; flex-wrap: wrap; gap: 8px; width: auto; margin-left: auto;
    }
    .analytics-filters { flex: 1 1 auto; }
    .analytics-filter-item { flex: 0 1 auto; }
    .analytics-filter-item select { min-width: 0; max-width: 7.5rem; padding: 5px 7px; font-size: 0.8rem; }

    .bar-row { grid-template-columns: minmax(0, 4.5rem) 1fr 2.2rem; gap: 6px 8px; font-size: 0.8rem; }

    .admin-shell { grid-template-columns: 1fr; min-height: calc(100vh - 64px); }
    .admin-sider { flex-direction: column; align-items: stretch; padding: 10px 12px; gap: 8px; }
    .admin-sider-brand { border-bottom: none; margin: 0; padding: 4px 4px 8px; }
    .admin-sider-nav { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; gap: 6px; padding-bottom: 4px; align-items: center; }
    .admin-sider-group { flex-direction: row; align-items: center; gap: 4px; margin: 0; flex: 0 0 auto; }
    .admin-sider-sub { flex-direction: row; gap: 4px; margin: 0; padding: 0; border-left: none; }
    .admin-sider-sublink { padding: 7px 11px; }
    .admin-sider-link { flex: 0 0 auto; white-space: nowrap; padding: 7px 11px; font-size: 0.82rem; }
    .admin-sider-foot { border-top: none; padding: 0 4px 4px; }
    .admin-main-head, .admin-main-body { padding-left: 14px; padding-right: 14px; }
    .admin-crud-layout, .admin-places-layout, .admin-form-grid { grid-template-columns: 1fr; }

    .table, .data-table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; font-size: 0.84rem; }
    .peer-assign-table, .analytics-table-panel { overflow-x: auto; }

    .exhibit-award-btn { grid-template-columns: minmax(0, 1fr) auto auto; padding: 7px 8px; gap: 6px; }
    .exhibit-award-name { font-size: 0.78rem; }
    .exhibit-award-cta { font-size: 0.7rem; padding: 3px 7px; }

    .modal-panel { max-width: calc(100vw - 24px); margin: 12px; }
    .stat-card .num, .stat-ratio .num { font-size: 1.55rem; }
    .ai-hub-card h3 { font-size: 1.15rem; }
    .ai-hub-step { font-size: 0.85rem; }
  }
}

@media (max-width: 760px) {
  html:not(.ui-scale) {
    --header-h: 56px;
    --radius: 12px;
    font-size: 15px;
    .view { padding: 14px 12px 36px; }
    .header-inner { height: var(--header-h); padding: 0 10px; gap: 8px; }
    .brand-mark { width: 26px; height: 26px; }
    .brand-text strong { font-size: 0.88rem; }
    .nav-toggle { width: 36px; height: 36px; gap: 5px; }
    .nav-toggle span { width: 15px; }
    .role-switch select { min-width: 0; max-width: 6.5rem; padding: 6px 8px; font-size: 0.8rem; }

    .btn { padding: 6px 11px; font-size: 0.8rem; border-radius: 8px; gap: 4px; }
    .btn-sm { padding: 5px 9px; font-size: 0.75rem; }
    .btn:hover { transform: none; }

    .panel { padding: 12px; border-radius: 12px; }
    .page-title { font-size: 1.28rem; margin-bottom: 8px; }
    .page-kicker { font-size: 0.68rem; margin-bottom: 6px; }

    .map-pane, .map-stage { min-height: 240px; }
    .map-stage { padding: 16px 4px 12px; }
    .marker-name { max-width: 6.5rem; font-size: 0.68rem; line-height: 1.2; }

    .analytics-filter-item { flex: 1 1 calc(50% - 6px); }
    .analytics-filter-item select { max-width: none; width: 100%; font-size: 0.78rem; padding: 4px 6px; }
    .works-filter-select-card { flex: 1 1 calc(50% - 6px); max-width: none; height: 30px; font-size: 0.78rem; }
    .analytics-score-triple { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
    .analytics-score-triple strong { font-size: 1.05rem; }
    .analytics-score-triple span { font-size: 0.66rem; }
    .analytics-score-block { padding: 8px; }

    .hero { min-height: 480px; height: 480px; max-height: 480px; border-radius: 16px; margin-bottom: 28px; }
    .hero-content { padding: 22px 14px 28px; }

    .peer-detail-layout, .review-detail .peer-detail-layout, .ai-feedback-layout, .ai-feedback-layout-staff { grid-template-columns: 1fr; }

    .task-item { flex-direction: row; align-items: flex-start; gap: 10px; padding: 12px; }
    .task-item-side { align-items: flex-end; flex-shrink: 0; }
    .task-item-side .btn { width: auto; white-space: nowrap; }
    .task-deadline { font-size: 0.7rem; padding: 2px 6px; }

    .stats-grid.exhibit-stats, .peer-metric-grid, .stats-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .stat-card { padding: 10px; }
    .stat-card h3, .stat-card .stat-note { font-size: 0.72rem; }
    .stat-card .num, .stat-ratio .num { font-size: 1.35rem; }

    .ai-chat-avatar { width: 44px; height: 44px; }
    .ai-chat-avatar .ai-mark { width: 24px; height: 24px; }
    .ai-chat-avatar.sm { width: 24px; height: 24px; }
    .ai-chat-avatar.sm .ai-mark { width: 13px; height: 13px; }
    .ai-send-btn { width: 34px; height: 34px; }
    .ai-send-btn svg { width: 15px; height: 15px; }
    .ai-hub-card { padding: 12px; }
    .ai-hub-card h3 { font-size: 1.05rem; }
    .ai-hub-card p { font-size: 0.82rem; }

    .star { width: 24px; height: 24px; font-size: 0.82rem; }
    .peer-rate-num { font-size: 1.45rem; }
    .peer-metric-head span { font-size: 1.2rem; }
    .review-card-cover, .works-card-cover, .exhibit-vote-cover { height: 120px; }

    .site-footer { padding: 14px 10px; font-size: 0.72rem; }
    .main-nav a { padding: 10px 12px; font-size: 0.9rem; }
    .field label { font-size: 0.8rem; }
    input, select, textarea { font-size: 0.86rem; }
  }
}

@media (max-width: 480px) {
  html:not(.ui-scale) {
    font-size: 14px;
    .stats-grid.exhibit-stats, .peer-metric-grid, .stats-grid { grid-template-columns: 1fr; }
    .analytics-filter-item, .works-filter-select-card { flex: 1 1 100%; }
    .works-filters-actions { margin-left: 0; width: 100%; }
    .bar-row { grid-template-columns: minmax(0, 1fr) auto; }
    .bar-row .bar-track { grid-column: 1 / -1; }
    .dual-map { border-radius: 12px; }
    .exhibit-award-btn { grid-template-columns: minmax(0, 1fr) auto; }
    .exhibit-award-cta { grid-column: 1 / -1; justify-self: start; }
  }
}

/* 窄屏：整页按设计稿宽度等比缩放（不是单独拉伸某张图） */
html.ui-scale {
  overflow-x: hidden;
}

html.ui-scale body {
  overflow-x: hidden;
  width: var(--ui-design-width, 1240px);
  min-height: 100%;
}

html.ui-scale #app {
  width: var(--ui-design-width, 1240px);
  min-width: var(--ui-design-width, 1240px);
}

html.ui-scale .view,
html.ui-scale .header-inner {
  max-width: var(--ui-design-width, 1240px);
}

html.ui-scale .hero {
  height: 480px;
  min-height: 480px;
  max-height: 480px;
}
