:root {
  --mist-blue: #dce8fb;
  --mist-blue-deep: #a9bee8;
  --blush: #f4dce8;
  --blush-deep: #dfa9bf;
  --lilac: #ddd6ef;
  --pearl: #fffdfc;
  --paper: #fbf7f5;
  --gold: #c7a56a;
  --gold-deep: #916f39;
  --gold-pale: #efe0bd;
  --ink: #352f46;
  --ink-soft: #746c86;
  --ink-faint: #958da6;
  --line: rgba(78, 66, 101, 0.12);
  --glass: rgba(255, 253, 252, 0.78);
  --serif: "Songti SC", "STSong", "Noto Serif SC", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --utility: "SFMono-Regular", "Roboto Mono", Menlo, monospace;
  --shadow: 0 18px 42px rgba(74, 61, 104, 0.16);
  --shadow-small: 0 8px 22px rgba(74, 61, 104, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  color: var(--ink);
  font-family: var(--sans);
  background:
    radial-gradient(circle at 10% 12%, rgba(201, 220, 248, 0.9), transparent 31rem),
    radial-gradient(circle at 92% 8%, rgba(247, 218, 232, 0.92), transparent 34rem),
    radial-gradient(circle at 62% 100%, rgba(248, 225, 205, 0.72), transparent 36rem),
    linear-gradient(145deg, #e7eefb, #f1e8f4 50%, #f9e9ee);
  overflow-x: hidden;
}

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

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  filter: saturate(0.45);
  opacity: 0.58;
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(78, 101, 157, 0.5);
  outline-offset: 3px;
}

.ambient {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.ambient i {
  position: absolute;
  width: 11rem;
  height: 11rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  filter: blur(10px);
  animation: ambient-drift 13s ease-in-out infinite;
}

.ambient i:nth-child(1) { left: 5%; top: 11%; }
.ambient i:nth-child(2) { right: 6%; top: 18%; width: 17rem; height: 17rem; animation-delay: -3s; }
.ambient i:nth-child(3) { left: 17%; bottom: 0; width: 21rem; height: 21rem; animation-delay: -6s; }
.ambient i:nth-child(4) { right: 32%; bottom: 5%; width: 8rem; height: 8rem; animation-delay: -8s; }
.ambient i:nth-child(5) { left: 46%; top: 3%; width: 7rem; height: 7rem; animation-delay: -10s; }

@keyframes ambient-drift {
  50% { transform: translate3d(14px, -20px, 0) scale(1.07); opacity: 0.72; }
}

.prototype-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 392px minmax(280px, 430px);
  gap: clamp(42px, 8vw, 116px);
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 32px;
}

.phone {
  width: 392px;
  height: min(844px, calc(100vh - 40px));
  min-height: 680px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 52px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(214, 204, 229, 0.72));
  box-shadow: 0 38px 90px rgba(75, 62, 106, 0.28), inset 0 2px 0 rgba(255, 255, 255, 0.9);
}

.phone-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 42px;
  background:
    radial-gradient(circle at 0 0, rgba(215, 231, 254, 0.9), transparent 46%),
    radial-gradient(circle at 100% 10%, rgba(250, 220, 233, 0.84), transparent 42%),
    linear-gradient(180deg, #f2f2fb 0%, #f7eff4 56%, #fbf0ed 100%);
}

.phone-screen::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 7px;
  z-index: 30;
  width: 118px;
  height: 4px;
  border-radius: 99px;
  background: rgba(53, 47, 70, 0.42);
  transform: translateX(-50%);
}

.status-bar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 24;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  height: 45px;
  padding: 13px 24px 0;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  pointer-events: none;
}

.status-bar::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 94px;
  height: 28px;
  border-radius: 99px;
  background: #2c2738;
  transform: translateX(-50%);
}

.app-view {
  height: 100%;
}

.screen {
  position: relative;
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  animation: screen-in 360ms cubic-bezier(0.22, 0.86, 0.34, 1) both;
}

.screen::-webkit-scrollbar,
.scroll-row::-webkit-scrollbar {
  display: none;
}

@keyframes screen-in {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: none; }
}

.screen-content {
  padding: 49px 18px 112px;
}

.screen-content--action {
  padding-bottom: 138px;
}

.topbar {
  display: flex;
  align-items: center;
  min-height: 48px;
  gap: 10px;
  margin-bottom: 8px;
}

.topbar-copy {
  min-width: 0;
  flex: 1;
}

.topbar-copy h1,
.topbar-copy p {
  margin: 0;
}

.topbar-copy h1 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.topbar-copy p {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 11px;
}

.round-button,
.avatar-button {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 253, 252, 0.74);
  box-shadow: var(--shadow-small), inset 0 1px 0 #fff;
}

.avatar-button {
  overflow: hidden;
  background: linear-gradient(145deg, #f7c4d4, #e9a3ba 60%, #d9d9f2);
}

.avatar-button::before {
  content: "本";
  color: #fff;
  font-family: var(--serif);
  font-size: 14px;
  text-shadow: 0 1px 3px rgba(94, 60, 80, 0.3);
}

.demo-pill,
.tag,
.truth-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.demo-pill {
  padding: 6px 9px;
  color: var(--gold-deep);
  background: rgba(255, 249, 237, 0.78);
  border: 1px solid rgba(199, 165, 106, 0.35);
}

.demo-pill--live {
  color: #397051;
  background: rgba(236, 250, 239, 0.82);
}

.demo-pill--live::before,
.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #65a87b;
  box-shadow: 0 0 0 3px rgba(101, 168, 123, 0.14);
  content: "";
}

.demo-pill::before,
.demo-dot {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(199, 165, 106, 0.14);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 2px 10px;
}

.section-heading p,
.section-heading h2,
.section-heading button {
  margin: 0;
}

.section-heading p {
  margin-bottom: 3px;
  color: var(--gold-deep);
  font-family: var(--utility);
  font-size: 8px;
  letter-spacing: 0.16em;
}

.section-heading h2 {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.08em;
}

.text-button {
  padding: 5px;
  color: var(--ink-soft);
  background: transparent;
  font-size: 11px;
}

.memory-corridor {
  position: relative;
  display: block;
  width: 100%;
  height: 206px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(230, 199, 139, 0.85);
  border-radius: 25px;
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 246, 211, 0.96), transparent 11%),
    radial-gradient(ellipse at 50% 46%, #d6bdcb 4%, #9683a8 34%, #4b4265 72%, #332c47 100%);
  box-shadow: var(--shadow), inset 0 0 0 3px rgba(255, 249, 235, 0.28);
  perspective: 500px;
  text-align: left;
}

.corridor-lines {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(64deg, transparent 48.7%, rgba(255, 240, 205, 0.38) 49%, transparent 49.4%) left / 50% 100% no-repeat,
    linear-gradient(-64deg, transparent 48.7%, rgba(255, 240, 205, 0.38) 49%, transparent 49.4%) right / 50% 100% no-repeat;
}

.corridor-lines::before,
.corridor-lines::after {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  width: 76px;
  border: 1px solid rgba(255, 240, 205, 0.42);
  border-radius: 50% 50% 10px 10px;
}

.corridor-lines::before { left: 46px; transform: skewY(9deg); }
.corridor-lines::after { right: 46px; transform: skewY(-9deg); }

.corridor-photo {
  position: absolute;
  top: 46px;
  width: 82px;
  height: 102px;
  overflow: hidden;
  border: 3px solid #f7dfaa;
  border-radius: 9px;
  box-shadow: 0 12px 24px rgba(26, 20, 41, 0.4);
}

.corridor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.corridor-photo--left { left: 26px; transform: rotateY(28deg) rotateZ(-1deg); }
.corridor-photo--right { right: 26px; transform: rotateY(-28deg) rotateZ(1deg); }
.corridor-photo--center {
  top: 56px;
  left: 50%;
  width: 70px;
  height: 88px;
  transform: translateX(-50%) scale(0.58);
  filter: brightness(1.2);
}

.corridor-copy {
  position: absolute;
  inset: auto 15px 14px;
  z-index: 2;
  color: #fff;
  text-shadow: 0 2px 8px rgba(28, 20, 45, 0.54);
}

.corridor-copy small {
  display: block;
  margin-bottom: 4px;
  color: #f6dfb1;
  font-family: var(--utility);
  font-size: 8px;
  letter-spacing: 0.18em;
}

.corridor-copy b {
  display: block;
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.13em;
}

.corridor-copy span {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  opacity: 0.9;
}

.corridor-arrow {
  position: absolute;
  right: 15px;
  bottom: 15px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.scroll-row {
  display: flex;
  gap: 10px;
  margin: 0 -18px;
  padding: 2px 18px 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.space-card {
  position: relative;
  flex: 0 0 224px;
  height: 138px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 22px;
  color: #fff;
  background: #b9abc9;
  box-shadow: var(--shadow-small);
  text-align: left;
}

.space-card img,
.story-thumb img,
.asset-thumb img,
.event-hero img,
.media-main img,
.mini-photo img,
.result-photo img,
.gallery-cell img,
.dialogue-photo img,
.mode-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.space-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(38, 28, 53, 0.02) 28%, rgba(38, 28, 53, 0.72));
}

.space-card-copy {
  position: absolute;
  inset: auto 13px 12px;
  z-index: 2;
}

.space-card-copy small,
.space-card-copy b,
.space-card-copy span {
  display: block;
}

.space-card-copy small {
  margin-bottom: 5px;
  font-family: var(--utility);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.space-card-copy b { font-size: 14px; }
.space-card-copy span { margin-top: 3px; font-size: 10px; opacity: 0.86; }

.story-list,
.asset-list,
.task-list {
  display: grid;
  gap: 9px;
}

.story-card,
.asset-card,
.task-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 70px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 18px;
  color: var(--ink);
  background: rgba(255, 253, 252, 0.7);
  box-shadow: 0 6px 18px rgba(76, 62, 104, 0.08), inset 0 1px 0 #fff;
  text-align: left;
}

.story-thumb,
.asset-thumb {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  overflow: hidden;
  border-radius: 14px;
}

.story-copy,
.asset-copy,
.task-copy {
  min-width: 0;
  flex: 1;
}

.story-copy b,
.asset-copy b,
.task-copy b,
.story-copy span,
.asset-copy span,
.task-copy span {
  display: block;
}

.story-copy b,
.asset-copy b,
.task-copy b { font-size: 12.5px; }
.story-copy span,
.asset-copy span,
.task-copy span { margin-top: 4px; color: var(--ink-soft); font-size: 10px; }
.story-arrow { color: var(--ink-faint); }

.bottom-nav {
  position: absolute;
  inset: auto 12px 13px;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr 72px 1fr;
  align-items: end;
  height: 68px;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 26px;
  background: rgba(255, 253, 252, 0.78);
  box-shadow: 0 14px 30px rgba(75, 61, 102, 0.18), inset 0 1px 0 #fff;
  backdrop-filter: blur(18px) saturate(1.15);
}

.nav-item {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 52px;
  padding: 0;
  color: var(--ink-faint);
  background: transparent;
  font-size: 10px;
  gap: 4px;
}

.nav-item .nav-icon {
  font-size: 18px;
  line-height: 1;
}

.nav-item.is-active {
  color: var(--gold-deep);
  font-weight: 700;
}

.nav-add {
  align-self: start;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: -20px auto 0;
  padding: 0;
  border: 4px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(155deg, #efbacd, #daa7d5 58%, #b2c6eb);
  box-shadow: 0 11px 25px rgba(187, 116, 157, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  font-size: 27px;
  font-weight: 300;
}

.hero-intro {
  margin: 5px 2px 14px;
}

.hero-intro small {
  color: var(--gold-deep);
  font-family: var(--utility);
  font-size: 8px;
  letter-spacing: 0.16em;
}

.hero-intro h1 {
  margin: 7px 0 5px;
  font-family: var(--serif);
  font-size: 27px;
  line-height: 1.25;
  letter-spacing: 0.04em;
}

.hero-intro p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.65;
}

.media-stage {
  position: relative;
  min-height: 304px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 27px;
  background: rgba(255, 253, 252, 0.62);
  box-shadow: var(--shadow), inset 0 1px 0 #fff;
}

.media-main {
  height: 225px;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 10px 22px rgba(52, 40, 71, 0.18);
}

.media-stage-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding-top: 10px;
}

.mini-photo {
  width: 38px;
  height: 38px;
  overflow: hidden;
  border: 2px solid #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(66, 52, 88, 0.14);
}

.media-meta {
  min-width: 0;
  flex: 1;
}

.media-meta b,
.media-meta span { display: block; }
.media-meta b { font-size: 11px; }
.media-meta span { margin-top: 2px; color: var(--ink-soft); font-size: 9.5px; }

.route-list {
  display: grid;
  gap: 9px;
}

.route-card {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 70px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 19px;
  color: var(--ink);
  background: rgba(255, 253, 252, 0.68);
  box-shadow: var(--shadow-small), inset 0 1px 0 #fff;
  text-align: left;
}

.route-card--primary {
  border-color: rgba(199, 165, 106, 0.5);
  background: linear-gradient(145deg, rgba(255, 252, 245, 0.94), rgba(248, 232, 207, 0.78));
}

.route-icon,
.task-icon,
.sheet-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 15px;
  color: var(--gold-deep);
  background: linear-gradient(145deg, #f8e8c8, #e9c992);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  font-size: 17px;
}

.route-card:nth-child(2) .route-icon,
.sheet-grid .sheet-option:nth-child(4) .sheet-icon { color: #9b4f73; background: linear-gradient(145deg, #fde7ef, #efbfd2); }
.route-card:nth-child(3) .route-icon,
.sheet-grid .sheet-option:nth-child(3) .sheet-icon { color: #5f70a0; background: linear-gradient(145deg, #e7effd, #c6d8f5); }

.route-copy b,
.route-copy span { display: block; }
.route-copy b { font-size: 13px; }
.route-copy span { margin-top: 4px; color: var(--ink-soft); font-size: 10px; line-height: 1.45; }
.route-next { color: var(--ink-faint); font-size: 17px; }

.privacy-note,
.truth-note {
  display: flex;
  gap: 9px;
  margin: 12px 2px 0;
  color: var(--ink-soft);
  font-size: 9.5px;
  line-height: 1.55;
}

.privacy-note::before {
  content: "◒";
  color: var(--gold-deep);
}

.action-dock {
  position: absolute;
  inset: auto 0 0;
  z-index: 15;
  padding: 18px 18px 29px;
  background: linear-gradient(180deg, rgba(247, 238, 244, 0), rgba(247, 238, 244, 0.93) 30%);
}

.primary-button,
.secondary-button {
  min-height: 49px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.primary-button {
  width: 100%;
  color: #6d5129;
  background: linear-gradient(180deg, #faedcf, #e9cca0 52%, #d7b172);
  box-shadow: 0 10px 24px rgba(169, 128, 68, 0.28), inset 0 1px 0 #fff;
}

.secondary-button {
  color: var(--ink);
  background: rgba(255, 253, 252, 0.76);
  box-shadow: var(--shadow-small), inset 0 1px 0 #fff;
}

.button-row {
  display: grid;
  grid-template-columns: 1fr 1.55fr;
  gap: 9px;
}

.dialogue-photo {
  position: relative;
  height: 158px;
  overflow: hidden;
  border: 3px solid #f0d5a2;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.dialogue-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(42, 31, 55, 0.54));
}

.photo-caption {
  position: absolute;
  inset: auto 12px 10px;
  z-index: 2;
  color: #fff;
  font-size: 10px;
}

.observation {
  margin: 12px 0;
  padding: 12px 13px;
  border-left: 2px solid var(--gold);
  border-radius: 0 14px 14px 0;
  color: var(--ink-soft);
  background: rgba(255, 253, 252, 0.55);
  font-size: 10.5px;
  line-height: 1.6;
}

.observation b { color: var(--ink); }

.message-stack {
  display: grid;
  gap: 9px;
}

.message {
  max-width: 88%;
  padding: 11px 12px;
  border-radius: 16px;
  font-size: 11px;
  line-height: 1.6;
}

.message--ai {
  justify-self: start;
  border-top-left-radius: 5px;
  background: rgba(255, 253, 252, 0.8);
  box-shadow: var(--shadow-small);
}

.message--me {
  justify-self: end;
  border-top-right-radius: 5px;
  color: #6d5129;
  background: linear-gradient(145deg, #faedcf, #e7c994);
}

.message small {
  display: block;
  margin-bottom: 4px;
  color: var(--ink-faint);
  font-family: var(--utility);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.reply-suggestions {
  display: flex;
  gap: 7px;
  margin-top: 12px;
  overflow-x: auto;
}

.reply-suggestions button {
  flex: 0 0 auto;
  min-height: 35px;
  padding: 8px 12px;
  border: 1px solid rgba(199, 165, 106, 0.3);
  border-radius: 99px;
  color: var(--ink-soft);
  background: rgba(255, 253, 252, 0.66);
  font-size: 10px;
}

.composer {
  position: absolute;
  inset: auto 13px 15px;
  z-index: 16;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  min-height: 60px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 22px;
  background: rgba(255, 253, 252, 0.86);
  box-shadow: 0 14px 30px rgba(72, 58, 98, 0.18);
  backdrop-filter: blur(16px);
}

.mode-button,
.send-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.mode-button { color: var(--ink-soft); background: #f0eaf2; }
.send-button { color: #72572f; background: linear-gradient(145deg, #f6e5c2, #d9b675); }
.composer input { min-width: 0; border: 0; outline: 0; background: transparent; font-size: 11px; }

.result-paper {
  position: relative;
  min-height: 480px;
  padding: 15px 15px 22px;
  overflow: hidden;
  border: 1px solid rgba(213, 181, 118, 0.58);
  border-radius: 7px;
  background: #fffdf8;
  box-shadow: 0 18px 36px rgba(61, 46, 79, 0.18);
}

.result-paper::before,
.result-paper::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: rgba(177, 135, 67, 0.45);
}

.result-paper::before { left: 7px; top: 7px; border-left: 1px solid; border-top: 1px solid; }
.result-paper::after { right: 7px; bottom: 7px; border-right: 1px solid; border-bottom: 1px solid; }

.result-kicker {
  margin: 2px 0 11px;
  color: var(--gold-deep);
  font-family: var(--utility);
  font-size: 8px;
  letter-spacing: 0.18em;
  text-align: center;
}

.result-photo {
  height: 230px;
  overflow: hidden;
  border-radius: 3px;
}

.result-paper h2 {
  margin: 17px 8px 8px;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.08em;
  text-align: center;
}

.result-paper blockquote {
  margin: 0 10px;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 12px;
  line-height: 1.8;
  text-align: center;
}

.result-meta {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 13px;
  color: var(--ink-faint);
  font-size: 9px;
}

.format-switch {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 12px;
  padding: 5px;
  border-radius: 16px;
  background: rgba(123, 109, 143, 0.09);
}

.format-switch button {
  min-height: 35px;
  border-radius: 12px;
  color: var(--ink-soft);
  background: transparent;
  font-size: 10px;
}

.format-switch button.is-active {
  color: var(--gold-deep);
  background: rgba(255, 253, 252, 0.9);
  box-shadow: 0 4px 12px rgba(79, 64, 99, 0.1);
  font-weight: 700;
}

.event-hero {
  position: relative;
  height: 210px;
  overflow: hidden;
  border: 1px solid rgba(230, 199, 139, 0.8);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.event-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(40, 29, 54, 0.04) 34%, rgba(40, 29, 54, 0.7));
}

.event-hero-copy {
  position: absolute;
  inset: auto 15px 14px;
  z-index: 2;
  color: #fff;
}

.event-hero-copy small,
.event-hero-copy b,
.event-hero-copy span { display: block; }
.event-hero-copy small { margin-bottom: 5px; color: #f5deb0; font-family: var(--utility); font-size: 8px; letter-spacing: 0.15em; }
.event-hero-copy b { font-family: var(--serif); font-size: 21px; letter-spacing: 0.08em; }
.event-hero-copy span { margin-top: 4px; font-size: 10px; opacity: 0.9; }

.progress-card {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 13px;
  margin-top: 11px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 20px;
  background: rgba(255, 253, 252, 0.7);
  box-shadow: var(--shadow-small);
}

.progress-ring {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: conic-gradient(var(--gold) 0 64%, rgba(138, 121, 156, 0.12) 64% 100%);
}

.progress-ring span {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #fbf6f4;
  color: var(--gold-deep);
  font-family: var(--serif);
  font-size: 16px;
}

.progress-copy b,
.progress-copy span { display: block; }
.progress-copy b { margin-top: 4px; font-size: 12px; }
.progress-copy span { margin-top: 5px; color: var(--ink-soft); font-size: 10px; line-height: 1.5; }

.face-row { display: flex; margin-top: 8px; }
.face {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-left: -6px;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #efb2c8, #adaddd);
  font-family: var(--serif);
  font-size: 8px;
}
.face:first-child { margin-left: 0; }
.face:nth-child(2) { background: linear-gradient(145deg, #a9c7ec, #8799d1); }
.face:nth-child(3) { background: linear-gradient(145deg, #edcf9f, #c89c65); }
.face:nth-child(4) { background: linear-gradient(145deg, #c9b5e8, #9d85c6); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.gallery-cell {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 13px;
  box-shadow: 0 4px 12px rgba(71, 54, 89, 0.1);
}

.truth-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin: 12px 0 14px;
}

.truth-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 9px;
}

.truth-legend i,
.truth-tag::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #94bca3;
  content: "";
}

.truth-legend span:nth-child(2) i,
.truth-tag--reconstructed::before { background: #8ba4d2; }
.truth-legend span:nth-child(3) i,
.truth-tag--extrapolated::before { background: #d3a978; }
.truth-legend span:nth-child(4) i,
.truth-tag--generated::before { background: #be8fb7; }

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

.mode-card {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  width: 100%;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 19px;
  color: var(--ink);
  background: rgba(255, 253, 252, 0.7);
  box-shadow: var(--shadow-small);
  text-align: left;
}

.mode-card.is-selected {
  border-color: rgba(199, 165, 106, 0.65);
  box-shadow: 0 9px 24px rgba(157, 119, 61, 0.17), inset 0 0 0 1px rgba(199, 165, 106, 0.22);
}

.mode-preview {
  height: 78px;
  overflow: hidden;
  border-radius: 13px;
}

.mode-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mode-copy { min-width: 0; padding: 2px 0; }
.mode-copy b,
.mode-copy span { display: block; }
.mode-copy b { font-size: 12px; }
.mode-copy span { margin-top: 4px; color: var(--ink-soft); font-size: 9.5px; line-height: 1.45; }
.truth-tag { margin-top: 8px; padding: 4px 8px; color: var(--ink-soft); background: rgba(112, 99, 131, 0.08); font-size: 8px; }

.mode-card--waiting {
  border-style: dashed;
  box-shadow: none;
  opacity: .66;
}

.capability-stage {
  position: relative;
  height: 254px;
  margin: 13px 0 11px;
  overflow: hidden;
  border: 3px solid #f0d5a2;
  border-radius: 24px;
  background: #2e293a;
  box-shadow: var(--shadow);
}

.capability-stage > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.capability-stage::after {
  position: absolute;
  inset: 42% 0 0;
  background: linear-gradient(transparent, rgba(35, 29, 48, .82));
  content: "";
}

.capability-stage--world > img { filter: saturate(.88) contrast(.94); }

.capability-stage-copy {
  position: absolute;
  right: 15px;
  bottom: 15px;
  left: 15px;
  z-index: 2;
  color: #fff;
}

.capability-stage-copy b,
.capability-stage-copy span { display: block; }
.capability-stage-copy b { font-family: var(--serif); font-size: 17px; letter-spacing: .04em; }
.capability-stage-copy span { margin-top: 4px; color: rgba(255, 255, 255, .78); font-size: 9px; }

.dap-license-note {
  margin: 11px 3px 0;
  color: var(--ink-faint);
  font-size: 8.5px;
  line-height: 1.55;
}

/* 官方案例馆：一条纵向展签脊线把能力、来源与边界串起来，而不是社交 feed。 */
.screen-content--gallery {
  padding-right: 16px;
  padding-left: 16px;
}

.gallery-intro {
  position: relative;
  margin: 4px 2px 18px;
  padding: 20px 18px 19px 19px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 26px 26px 26px 8px;
  background:
    linear-gradient(112deg, rgba(255, 253, 252, 0.82), rgba(255, 253, 252, 0.42)),
    radial-gradient(circle at 86% 18%, rgba(169, 190, 232, 0.42), transparent 42%),
    radial-gradient(circle at 15% 105%, rgba(244, 220, 232, 0.74), transparent 52%);
  box-shadow: var(--shadow-small);
}

.gallery-intro::after {
  position: absolute;
  top: 17px;
  right: 17px;
  width: 38px;
  height: 54px;
  border-top: 1px solid rgba(145, 111, 57, 0.38);
  border-right: 1px solid rgba(145, 111, 57, 0.38);
  content: "";
}

.gallery-intro p,
.gallery-intro h1,
.gallery-intro > span { margin: 0; }
.gallery-intro p {
  color: var(--gold-deep);
  font-family: var(--utility);
  font-size: 8px;
  letter-spacing: 0.18em;
}
.gallery-intro h1 {
  max-width: 270px;
  margin-top: 9px;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: 0.06em;
}
.gallery-intro > span {
  display: block;
  max-width: 292px;
  margin-top: 11px;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.7;
}

.official-author,
.case-detail-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.official-author {
  margin: 0 4px 16px 29px;
}

.official-author-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(199, 165, 106, 0.44);
  border-radius: 50% 50% 50% 12px;
  color: var(--pearl);
  background: linear-gradient(145deg, #7e7899, #afa4c5 52%, #c7a56a);
  box-shadow: 0 6px 15px rgba(76, 61, 98, 0.18), inset 0 1px rgba(255, 255, 255, 0.46);
  font-family: var(--serif);
  font-size: 13px;
}

.official-author > span:nth-child(2),
.case-detail-author > span:nth-child(2) { min-width: 0; flex: 1; }
.official-author b,
.official-author small,
.case-detail-author b,
.case-detail-author small { display: block; }
.official-author b,
.case-detail-author b { font-size: 11px; }
.official-author small,
.case-detail-author small { margin-top: 3px; color: var(--ink-faint); font-size: 8.5px; }
.official-author > i {
  padding: 4px 7px;
  border: 1px solid rgba(199, 165, 106, 0.32);
  border-radius: 99px;
  color: var(--gold-deep);
  font-family: var(--utility);
  font-size: 7px;
  font-style: normal;
  letter-spacing: 0.12em;
}

.official-case-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.official-case {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 7px;
}

.gallery-spine {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  color: var(--gold-deep);
  font-family: var(--utility);
  font-size: 7px;
}
.gallery-spine::after {
  position: absolute;
  top: 19px;
  bottom: -18px;
  left: 50%;
  width: 1px;
  background: linear-gradient(rgba(199, 165, 106, 0.52), rgba(199, 165, 106, 0.08));
  content: "";
}
.official-case:last-child .gallery-spine::after { bottom: 4px; }
.gallery-spine i {
  position: relative;
  z-index: 1;
  width: 9px;
  height: 9px;
  margin-top: 7px;
  border: 2px solid rgba(255, 253, 252, 0.9);
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 1px rgba(145, 111, 57, 0.36);
}
.gallery-spine small { margin-top: 8px; font-size: 7px; }

.official-case-card {
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 23px 23px 23px 9px;
  color: var(--ink);
  background: rgba(255, 253, 252, 0.68);
  box-shadow: var(--shadow-small), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  text-align: left;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.official-case-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(74, 61, 104, 0.17); }
.official-case--compact .official-case-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  min-height: 134px;
}

.official-case-media {
  position: relative;
  display: block;
  min-height: 0;
  overflow: hidden;
  background: linear-gradient(145deg, var(--mist-blue), var(--blush));
}
.official-case--feature .official-case-media { aspect-ratio: 16 / 10; }
.official-case--compact .official-case-media { height: 100%; min-height: 134px; }
.official-case-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.case-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(132deg, rgba(255,255,255,.18), transparent 38%, rgba(49,39,63,.12));
}

.official-case-copy {
  display: block;
  padding: 14px 15px 15px;
}
.official-case--feature .official-case-copy { padding: 15px 17px 17px; }
.case-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--ink-faint);
  font-family: var(--utility);
  font-size: 7.5px;
  letter-spacing: 0.08em;
}
.case-meta > span { color: #397051; }
.official-case-copy > b,
.official-case-copy > span,
.official-case-copy > small { display: block; }
.official-case-copy > b {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.42;
  letter-spacing: 0.04em;
}
.official-case--compact .official-case-copy > b { font-size: 14px; line-height: 1.38; }
.official-case-copy > span {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 9.5px;
  line-height: 1.55;
}
.official-case--compact .official-case-copy > span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.official-case-copy > small {
  margin-top: 10px;
  color: var(--gold-deep);
  font-size: 8.5px;
  font-weight: 700;
}
.official-case-copy > small i { font-style: normal; }

.gallery-boundary {
  margin: 16px 3px 8px 31px;
  padding: 13px 14px;
  border: 1px dashed rgba(116, 108, 134, 0.28);
  border-radius: 17px;
  background: rgba(255, 253, 252, 0.34);
}
.gallery-boundary > span,
.gallery-boundary b,
.gallery-boundary p { display: block; margin: 0; }
.gallery-boundary > span { color: var(--ink-faint); font-family: var(--utility); font-size: 7px; letter-spacing: .14em; }
.gallery-boundary b { margin-top: 5px; font-family: var(--serif); font-size: 12px; }
.gallery-boundary p { margin-top: 4px; color: var(--ink-soft); font-size: 8.5px; line-height: 1.55; }

.screen-content--case { padding-right: 15px; padding-left: 15px; }
.case-detail { padding-bottom: 8px; }
.case-detail-head {
  margin: 5px 2px 14px;
  padding: 16px 15px 17px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 24px 24px 24px 8px;
  background: rgba(255, 253, 252, 0.62);
  box-shadow: var(--shadow-small);
}
.case-detail-author { margin-bottom: 16px; }
.case-detail-head > p,
.case-detail-head h1,
.case-detail-head > span { margin: 0; }
.case-detail-head > p { color: var(--gold-deep); font-family: var(--utility); font-size: 8px; letter-spacing: .14em; }
.case-detail-head h1 { margin-top: 8px; font-family: var(--serif); font-size: 25px; font-weight: 600; line-height: 1.35; letter-spacing: .05em; }
.case-detail-head > span { display: block; margin-top: 9px; color: var(--ink-soft); font-size: 10px; line-height: 1.65; }

.case-detail-media {
  margin: 0 0 13px;
  padding: 5px;
  border: 1px solid rgba(230, 199, 139, 0.62);
  border-radius: 20px 20px 20px 7px;
  background: rgba(255, 253, 252, 0.72);
  box-shadow: var(--shadow-small);
}
.case-detail-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 15px 15px 15px 4px;
  background: linear-gradient(145deg, var(--mist-blue), var(--blush));
}
.case-detail-media figcaption {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 6px 4px;
  color: var(--ink-soft);
  font-size: 8px;
  line-height: 1.45;
}
.case-detail-media figcaption small { max-width: 62%; color: var(--ink-faint); text-align: right; }
.case-detail-media--supporting { margin-top: 15px; }

.read-only-notice {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 13px 2px;
  padding: 12px 13px;
  border: 1px solid rgba(139, 164, 210, 0.3);
  border-radius: 17px;
  background: rgba(229, 238, 251, 0.56);
}
.read-only-notice > i { color: #637fae; font-family: var(--serif); font-size: 22px; font-style: normal; }
.read-only-notice p { margin: 0; }
.read-only-notice b,
.read-only-notice span { display: block; }
.read-only-notice b { font-size: 10px; }
.read-only-notice span { margin-top: 3px; color: var(--ink-soft); font-size: 8.5px; line-height: 1.5; }

.case-prose { padding: 2px 7px 4px; }
.case-prose p { margin: 0 0 11px; color: var(--ink-soft); font-family: var(--serif); font-size: 12px; line-height: 1.85; }

.capability-plaque {
  margin: 13px 2px;
  padding: 15px;
  border: 1px solid rgba(199, 165, 106, 0.43);
  border-radius: 21px 21px 21px 8px;
  background: linear-gradient(145deg, rgba(255, 251, 241, 0.9), rgba(249, 240, 226, 0.58));
}
.capability-plaque > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.capability-plaque > div small { color: var(--gold-deep); font-family: var(--utility); font-size: 7px; letter-spacing: .15em; }
.capability-plaque > div span { padding: 4px 7px; border-radius: 99px; color: #397051; background: #edf8ef; font-size: 8px; font-weight: 700; }
.capability-plaque h2 { margin: 9px 0 0; font-family: var(--serif); font-size: 16px; letter-spacing: .05em; }
.capability-plaque p { margin: 7px 0 0; color: var(--ink-soft); font-size: 9.5px; line-height: 1.65; }

.case-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 2px 14px;
}
.case-facts div { min-width: 0; padding: 11px 12px; border-radius: 16px; background: rgba(255, 253, 252, 0.56); }
.case-facts dt { color: var(--ink-faint); font-size: 8px; }
.case-facts dd { margin: 5px 0 0; overflow-wrap: anywhere; font-size: 10px; font-weight: 700; line-height: 1.48; }

.case-limits {
  margin: 14px 2px;
  padding: 14px 15px;
  border-left: 2px solid rgba(116, 108, 134, 0.35);
  border-radius: 0 17px 17px 0;
  background: rgba(255, 253, 252, 0.42);
}
.case-limits > p { margin: 0 0 8px; font-family: var(--serif); font-size: 12px; font-weight: 700; }
.case-limits ul { margin: 0; padding-left: 16px; color: var(--ink-soft); font-size: 9px; line-height: 1.65; }
.case-limits li + li { margin-top: 5px; }

.case-viewer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 65px;
  margin: 14px 2px;
  padding: 11px 15px;
  border: 1px solid rgba(199, 165, 106, 0.46);
  border-radius: 19px;
  color: var(--ink);
  background: rgba(255, 250, 239, 0.8);
  box-shadow: var(--shadow-small);
  text-decoration: none;
}
.case-viewer-link small,
.case-viewer-link b { display: block; }
.case-viewer-link small { color: var(--gold-deep); font-family: var(--utility); font-size: 7px; letter-spacing: .14em; }
.case-viewer-link b { margin-top: 5px; font-family: var(--serif); font-size: 12px; }
.case-viewer-link > i { color: var(--gold-deep); font-style: normal; }

.case-source-note {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 16px 3px 4px;
  color: var(--ink-faint);
  font-size: 7.5px;
  line-height: 1.45;
}
.case-source-note small { text-align: right; overflow-wrap: anywhere; }

.mode-preview--glyph {
  display: grid;
  place-items: center;
  color: #617a98;
  background:
    radial-gradient(circle at 50% 45%, rgba(255,255,255,.88), transparent 18%),
    linear-gradient(145deg, rgba(220,232,251,.9), rgba(244,220,232,.72));
}
.mode-preview--glyph i { font-family: var(--serif); font-size: 22px; font-style: normal; }
.mode-preview--dap { color: #5478a8; background: radial-gradient(circle, rgba(255,255,255,.76), transparent 22%), linear-gradient(135deg, #c5d7ed, #9db2d2); }
.mode-preview--world { color: #8c6754; background: radial-gradient(circle at 64% 38%, #fff9, transparent 16%), linear-gradient(135deg, #ecd5c0, #c8b4d5); }
.mode-preview--waiting { color: var(--ink-faint); background: repeating-linear-gradient(135deg, rgba(116,108,134,.07) 0 7px, rgba(255,255,255,.24) 7px 14px); }

.event-hero--abstract {
  background:
    radial-gradient(circle at 24% 28%, rgba(255, 231, 193, .54), transparent 18%),
    radial-gradient(circle at 72% 34%, rgba(218, 187, 223, .45), transparent 22%),
    linear-gradient(150deg, #77708c, #433b56 72%);
}
.event-orbit { position: absolute; inset: 22px 34px 62px; border: 1px solid rgba(255,255,255,.26); border-radius: 50%; transform: rotate(-8deg); }
.event-orbit i { position: absolute; width: 30px; height: 38px; border: 2px solid rgba(255,255,255,.74); border-radius: 5px; background: rgba(255,253,252,.22); box-shadow: 0 8px 20px rgba(25,19,34,.2); }
.event-orbit i:nth-child(1) { top: -8px; left: 24px; transform: rotate(-11deg); }
.event-orbit i:nth-child(2) { top: 32px; right: 7px; transform: rotate(13deg); }
.event-orbit i:nth-child(3) { bottom: -12px; left: 50%; transform: rotate(4deg); }

.sheet--photo-only { padding-bottom: 34px; }
.sheet-grid--two .sheet-option { min-height: 132px; }

.space-entry-list {
  display: grid;
  gap: 9px;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 23px;
  background: rgba(255, 253, 252, 0.7);
  box-shadow: var(--shadow-small);
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #f3b8ca, #d6a9d2 55%, #a9c4e9);
  box-shadow: 0 8px 17px rgba(112, 73, 116, 0.2);
  font-family: var(--serif);
  font-size: 19px;
}

.profile-copy { min-width: 0; flex: 1; }
.profile-copy b,
.profile-copy span { display: block; }
.profile-copy b { font-size: 15px; }
.profile-copy span { margin-top: 4px; color: var(--ink-soft); font-size: 10px; }

.asset-tabs {
  display: flex;
  gap: 6px;
  margin: 14px 0 11px;
  overflow-x: auto;
}

.asset-tabs button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 99px;
  color: var(--ink-soft);
  background: rgba(255, 253, 252, 0.55);
  font-size: 10px;
}

.asset-tabs button.is-active {
  color: var(--gold-deep);
  background: #fffaf0;
  box-shadow: var(--shadow-small);
  font-weight: 700;
}

.task-card { min-height: 76px; }
.task-icon { flex: 0 0 auto; }
.task-progress { width: 56px; color: var(--gold-deep); font-family: var(--serif); font-size: 13px; text-align: center; }
.task-progress i { display: block; height: 3px; margin-top: 5px; border-radius: 99px; background: linear-gradient(90deg, var(--gold) 64%, rgba(120, 104, 144, 0.12) 64%); }

.splash-screen {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 48px 26px 38px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.9), transparent 24%),
    radial-gradient(circle at 20% 10%, rgba(208, 225, 252, 0.9), transparent 45%),
    radial-gradient(circle at 85% 23%, rgba(247, 213, 229, 0.86), transparent 42%),
    linear-gradient(180deg, #efeffa, #f6ebf2 58%, #faece9);
  text-align: center;
}

.splash-screen::before {
  content: "";
  position: absolute;
  top: 17%;
  left: 50%;
  width: 230px;
  height: 360px;
  border: 1px solid rgba(199, 165, 106, 0.36);
  border-radius: 120px 120px 18px 18px;
  box-shadow: 0 0 60px rgba(255, 245, 217, 0.62), inset 0 0 42px rgba(255, 255, 255, 0.46);
  transform: translateX(-50%);
}

.splash-copy { position: relative; z-index: 2; }

.splash-mark {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  margin: 0 auto 20px;
  border: 1px solid rgba(199, 165, 106, 0.75);
  border-radius: 50%;
  background: rgba(255, 253, 252, 0.64);
  box-shadow: 0 0 0 9px rgba(255, 255, 255, 0.3), 0 14px 34px rgba(85, 69, 107, 0.16);
  font-family: var(--serif);
  font-size: 24px;
}

.splash-copy small {
  color: var(--gold-deep);
  font-family: var(--utility);
  font-size: 9px;
  letter-spacing: 0.36em;
}

.splash-copy h1 {
  margin: 10px 0 5px;
  font-family: var(--serif);
  font-size: 29px;
  letter-spacing: 0.22em;
}

.splash-copy p {
  margin: 20px 0 28px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.85;
}

.splash-copy .primary-button { min-width: 190px; width: auto; padding: 0 24px; }
.splash-demo { position: absolute; bottom: 28px; left: 0; right: 0; color: var(--ink-faint); font-size: 9px; }

#overlay-root:empty { display: none; }

.overlay {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-end;
  background: rgba(47, 39, 61, 0.28);
  backdrop-filter: blur(4px);
  animation: overlay-in 180ms ease-out both;
}

@keyframes overlay-in { from { opacity: 0; } }

.sheet {
  width: 100%;
  max-height: 82%;
  padding: 10px 18px 30px;
  overflow-y: auto;
  border-radius: 28px 28px 0 0;
  background:
    radial-gradient(circle at 85% 0, rgba(245, 216, 231, 0.72), transparent 42%),
    linear-gradient(180deg, #f9f5f8, #f4edf2);
  box-shadow: 0 -18px 40px rgba(61, 48, 78, 0.2);
  animation: sheet-up 280ms cubic-bezier(0.22, 0.86, 0.34, 1) both;
}

@keyframes sheet-up { from { transform: translateY(100%); } }

.sheet-handle {
  width: 38px;
  height: 4px;
  margin: 0 auto 15px;
  border-radius: 99px;
  background: rgba(82, 68, 99, 0.22);
}

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

.sheet-head h2,
.sheet-head p { margin: 0; }
.sheet-head h2 { font-family: var(--serif); font-size: 19px; letter-spacing: 0.07em; }
.sheet-head p { margin-top: 4px; color: var(--ink-soft); font-size: 10px; }
.sheet-close { width: 34px; height: 34px; padding: 0; border-radius: 50%; color: var(--ink-soft); background: rgba(255, 255, 255, 0.6); }

.sheet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.sheet-option {
  min-height: 116px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 19px;
  color: var(--ink);
  background: rgba(255, 253, 252, 0.68);
  box-shadow: var(--shadow-small), inset 0 1px 0 #fff;
  text-align: left;
}

.sheet-option b,
.sheet-option span { display: block; }
.sheet-option .sheet-icon { display: grid; }
.sheet-option b { margin-top: 9px; font-size: 12px; }
.sheet-option span { margin-top: 3px; color: var(--ink-soft); font-size: 9.5px; line-height: 1.45; }
.sheet-disclaimer { margin: 13px 2px 0; color: var(--ink-faint); font-size: 9px; line-height: 1.55; }

.world-consent-copy {
  display: grid;
  gap: 8px;
}

.world-consent-copy p {
  margin: 0;
  padding: 12px 13px;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 16px;
  background: rgba(255, 253, 252, .58);
}

.world-consent-copy b,
.world-consent-copy span { display: block; }
.world-consent-copy b { font-size: 10.5px; }
.world-consent-copy span { margin-top: 4px; color: var(--ink-soft); font-size: 9px; line-height: 1.55; }

.world-consent-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 13px;
}

.world-consent-actions .secondary-button,
.world-consent-actions .primary-button {
  min-height: 50px;
  padding: 9px 10px;
  font-size: 9.5px;
  line-height: 1.35;
}

.map-list {
  display: grid;
  gap: 6px;
}

.map-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 43px;
  padding: 8px 12px;
  border-radius: 14px;
  color: var(--ink);
  background: rgba(255, 253, 252, 0.64);
  text-align: left;
  font-size: 11px;
}

.map-list button.is-active { color: var(--gold-deep); background: #fffaf0; font-weight: 700; }
.map-list span { color: var(--ink-faint); font-family: var(--utility); font-size: 8px; }

.toast {
  position: absolute;
  left: 50%;
  bottom: 96px;
  z-index: 80;
  width: max-content;
  max-width: calc(100% - 36px);
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 99px;
  color: #fff;
  background: rgba(51, 43, 67, 0.9);
  box-shadow: 0 12px 28px rgba(35, 27, 47, 0.26);
  font-size: 10px;
  text-align: center;
  transform: translateX(-50%);
  animation: toast-in 220ms ease-out both;
}

@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } }

/* Live-slice additions keep the original powder-blue / blush / pearl / gold language,
   while green is reserved for the small amount of functionality that truly runs. */
.memory-corridor--live .corridor-copy small { color: #dff4df; }

.live-capabilities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.live-capabilities button {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 9px;
  align-items: center;
  min-height: 82px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 19px;
  color: var(--ink);
  background: rgba(255, 253, 252, 0.72);
  box-shadow: var(--shadow-small);
  text-align: left;
}

.live-capabilities button > span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #447a59;
  background: #edf8ef;
  font-size: 15px;
}

.live-capabilities b { font-size: 12px; }
.live-capabilities small { color: var(--ink-soft); font-size: 9.5px; line-height: 1.4; }

.quiet-demo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-bottom: 12px;
}

.quiet-demo-row button {
  min-height: 64px;
  padding: 11px;
  border: 1px dashed rgba(145, 111, 57, 0.28);
  border-radius: 17px;
  color: var(--ink-soft);
  background: rgba(255, 253, 252, 0.42);
  text-align: left;
}

.quiet-demo-row b,
.quiet-demo-row span { display: block; }
.quiet-demo-row b { font-size: 10.5px; }
.quiet-demo-row span { margin-top: 5px; color: #a17639; font-size: 9px; }

.empty-memory {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 128px;
  padding: 18px;
  border: 1px dashed rgba(145, 111, 57, 0.34);
  border-radius: 21px;
  color: var(--ink);
  background: rgba(255, 253, 252, 0.45);
  text-align: center;
}

.empty-memory > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 8px;
  border-radius: 50%;
  color: var(--gold-deep);
  background: #fff8ea;
  font-size: 20px;
}

.empty-memory b { font-size: 12px; }
.empty-memory small { margin-top: 4px; color: var(--ink-soft); font-size: 10px; }
.empty-memory--mine { min-height: 240px; }

.capture-empty {
  display: grid;
  place-items: center;
  min-height: 500px;
  padding: 40px 24px;
  text-align: center;
}

.capture-empty > span {
  display: grid;
  place-items: center;
  width: 86px;
  height: 112px;
  border: 1px solid rgba(199, 165, 106, 0.6);
  border-radius: 48px 48px 14px 14px;
  color: var(--gold-deep);
  background: rgba(255, 253, 252, 0.58);
  box-shadow: 0 0 46px rgba(255, 242, 204, 0.72);
  font-family: var(--serif);
  font-size: 24px;
}

.capture-empty h2 { margin: 22px 0 8px; font-family: var(--serif); font-size: 21px; }
.capture-empty p { max-width: 260px; margin: 0 0 23px; color: var(--ink-soft); font-size: 11px; line-height: 1.75; }
.capture-empty .primary-button { max-width: 220px; }

.media-stage--single .media-stage-foot { align-items: center; }
.media-stage--single .media-meta { padding-left: 2px; }
.media-stage--single .text-button { flex: 0 0 auto; min-height: 38px; padding: 8px 10px; }

.route-live {
  display: inline-flex !important;
  align-items: center;
  min-height: 20px;
  margin: 0 0 0 5px !important;
  padding: 3px 7px;
  border-radius: 99px;
  color: #397051 !important;
  background: #edf8ef !important;
  font-family: var(--sans) !important;
  font-size: 8px !important;
  font-weight: 700;
  letter-spacing: 0 !important;
  vertical-align: middle;
}

.live-observation {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 8px;
  min-height: 54px;
  border-left-color: #65a87b;
}

.live-observation::before {
  grid-row: 1 / 3;
  width: 7px;
  height: 7px;
  margin-top: 5px;
  border-radius: 50%;
  background: #65a87b;
  box-shadow: 0 0 0 3px rgba(101, 168, 123, 0.14);
  content: "";
}

.live-observation b,
.live-observation span { display: block; }
.live-observation span { color: var(--ink-soft); font-size: 9.5px; line-height: 1.5; }
.live-observation.is-loading::before { animation: live-pulse 1s ease-in-out infinite; }
.live-observation.is-degraded { border-left-color: #c89c65; }
.live-observation.is-degraded::before { background: #c89c65; box-shadow: 0 0 0 3px rgba(200, 156, 101, 0.14); }

@keyframes live-pulse { 50% { opacity: .35; transform: scale(.72); } }

.read-question {
  justify-self: start;
  min-height: 34px;
  margin: -2px 0 2px;
  padding: 7px 11px;
  border-radius: 99px;
  color: var(--ink-soft);
  background: rgba(255, 253, 252, 0.7);
  box-shadow: 0 4px 12px rgba(74, 61, 104, 0.08);
  font-size: 9.5px;
}

.preserved-note {
  justify-self: end;
  margin: -3px 4px 0;
  color: var(--ink-faint);
  font-size: 9px;
}

.composer--turn {
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 82px;
}

.composer-field {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.composer-field > span {
  overflow: hidden;
  color: var(--ink-faint);
  font-size: 8.5px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.composer textarea {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  max-height: 72px;
  padding: 2px 0;
  resize: none;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 12px;
  line-height: 1.5;
}

.mode-button.is-listening {
  color: #fff;
  background: #bc6576;
  box-shadow: 0 0 0 6px rgba(188, 101, 118, 0.13);
  animation: voice-pulse 1.2s ease-in-out infinite;
}

@keyframes voice-pulse { 50% { box-shadow: 0 0 0 2px rgba(188, 101, 118, 0.08); } }

.result-paper--live { min-height: 500px; }
.result-paper--live blockquote { margin-top: 12px; font-size: 14px; }

.result-question {
  margin: 17px 10px 0;
  padding-top: 12px;
  border-top: 1px solid rgba(145, 111, 57, 0.18);
  color: var(--ink-faint);
  font-size: 9.5px;
  line-height: 1.55;
  text-align: center;
}

.result-question span { margin-right: 6px; color: var(--gold-deep); font-weight: 700; }
.dock-link { width: 100%; min-height: 34px; margin-top: 5px; color: var(--gold-deep); background: transparent; font-size: 10px; }

.honesty-card {
  margin: 13px 0;
  padding: 17px;
  border: 1px solid rgba(199, 156, 101, 0.35);
  border-radius: 20px;
  background: rgba(255, 249, 236, 0.62);
}

.honesty-card > span {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 99px;
  color: #916f39;
  background: #fff1d8;
  font-size: 8px;
  font-weight: 700;
}

.honesty-card h2 { margin: 10px 0 6px; font-family: var(--serif); font-size: 17px; }
.honesty-card p { margin: 0; color: var(--ink-soft); font-size: 10.5px; line-height: 1.65; }
.honesty-card--quiet { min-height: 220px; padding-top: 56px; text-align: center; }

.instant-stage {
  position: relative;
  height: 254px;
  margin: 13px 0 8px;
  overflow: hidden;
  border: 3px solid #f0d5a2;
  border-radius: 24px;
  background: #2e293a;
  box-shadow: var(--shadow);
  touch-action: pan-y;
}

.instant-stage > img,
.instant-stage > canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.instant-stage > img { transition: opacity 280ms ease; }
.instant-stage.is-active > img { opacity: .24; }
.instant-stage > canvas { z-index: 2; display: block; }
.instant-stage > canvas[hidden] { display: none; }

.instant-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  padding: 6px 9px;
  border-radius: 99px;
  color: #fff;
  background: rgba(44, 39, 56, 0.72);
  backdrop-filter: blur(10px);
  font-size: 8px;
}

.spatial-status { min-height: 30px; margin: 0 3px 11px; color: var(--ink-soft); font-size: 9.5px; line-height: 1.5; }
.spatial-status[data-tone="error"] { color: #9a5f48; }

.local-only {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 99px;
  color: #397051;
  background: #edf8ef;
  font-size: 8px;
  font-weight: 700;
}

.list-status {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 24px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}

.list-status.is-error { color: #9a5f48; }

.sample-picker { margin-top: 15px; }
.sample-picker > p { margin: 0 0 8px; color: var(--ink-soft); font-size: 10px; }
.sample-picker > div { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }

.sample-choice {
  position: relative;
  aspect-ratio: .78;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 13px;
  background: #eee;
}

.sample-choice img { width: 100%; height: 100%; object-fit: cover; }
.sample-choice::after { position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(39, 30, 50, .76)); content: ""; }
.sample-choice span { position: absolute; right: 5px; bottom: 6px; left: 5px; z-index: 2; overflow: hidden; color: #fff; font-size: 8px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.sheet-option--disabled { border-style: dashed; box-shadow: none; opacity: .72; }

.capability-map { display: grid; gap: 10px; }
.capability-map p { margin: 0; padding: 14px; border-radius: 17px; background: rgba(255, 253, 252, .65); }
.capability-map b,
.capability-map span { display: block; }
.capability-map b { color: #397051; font-size: 11px; }
.capability-map p:last-child b { color: #916f39; }
.capability-map span { margin-top: 6px; color: var(--ink-soft); font-size: 10px; line-height: 1.6; }

.review-rail {
  align-self: center;
  max-width: 410px;
}

.rail-kicker {
  margin: 0 0 14px;
  color: var(--gold-deep);
  font-family: var(--utility);
  font-size: 10px;
  letter-spacing: 0.2em;
}

.review-rail h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: 0.02em;
}

.review-rail > p:not(.rail-kicker):not(.rail-shortcuts) {
  max-width: 370px;
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.8;
}

.rail-rule {
  width: 100%;
  height: 1px;
  margin: 27px 0 20px;
  background: linear-gradient(90deg, rgba(145, 111, 57, 0.58), transparent);
}

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

.screen-menu button {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 45px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 13px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.24);
  text-align: left;
  font-size: 11px;
}

.screen-menu button span {
  color: var(--gold-deep);
  font-family: var(--utility);
  font-size: 8px;
}

.screen-menu button.is-active {
  color: var(--ink);
  background: rgba(255, 253, 252, 0.72);
  box-shadow: var(--shadow-small);
}

.rail-note {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 20px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.28);
}

.rail-note .demo-dot { flex: 0 0 auto; margin: 7px 0 0 3px; }
.rail-note p { margin: 0; color: var(--ink-soft); font-size: 11px; line-height: 1.65; }
.rail-note b { color: var(--ink); }
.rail-shortcuts { margin: 13px 2px 0; color: var(--ink-faint); font-family: var(--utility); font-size: 9px; }

@media (max-height: 760px) and (min-width: 851px) {
  .phone {
    height: calc(100vh - 24px);
    min-height: 0;
  }

  .prototype-shell {
    align-items: center;
    padding: 12px 28px;
  }
}

@media (max-width: 850px) {
  body { background: #f4edf3; }

  button:not(.nav-add) { min-height: 44px; }

  .ambient,
  .review-rail { display: none; }

  .prototype-shell {
    display: block;
    min-height: 100dvh;
    padding: 0;
  }

  .phone {
    width: 100%;
    height: 100dvh;
    min-height: 620px;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .phone-screen { border-radius: 0; }
}

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