:root {
  color-scheme: dark;
  --ink: #edf3f7;
  --ink-soft: #aab7c2;
  --ink-faint: #71808d;
  --sea: #0d1117;
  --sea-raised: #121a23;
  --line: rgba(186, 205, 219, 0.18);
  --line-strong: rgba(200, 170, 110, 0.48);
  --amber: #c8aa6e;
  --danger: #d99488;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", Georgia, serif;
  --sans: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--sea);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(120% 85% at 50% -10%, rgba(42, 68, 89, 0.5), transparent 58%),
    radial-gradient(90% 70% at 12% 78%, rgba(26, 43, 57, 0.34), transparent 72%),
    var(--sea);
  font-family: var(--sans);
  line-height: 1.7;
  letter-spacing: 0;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.82;
  background:
    radial-gradient(72% 46% at 78% 10%, rgba(71, 112, 146, 0.13), transparent 72%),
    radial-gradient(58% 42% at 12% 82%, rgba(43, 76, 106, 0.11), transparent 75%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 25%);
  transform: scale(1);
  transition: opacity 900ms ease, transform 1400ms cubic-bezier(0.22, 1, 0.36, 1);
}

body:has(textarea:focus) .ambient {
  opacity: 1;
  transform: scale(1.018);
}

.meteor-field {
  position: fixed;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
  contain: strict;
}

.meteor {
  position: absolute;
  left: var(--meteor-x);
  top: var(--meteor-y);
  width: var(--meteor-length);
  height: 1px;
  opacity: 0;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(121, 164, 194, 0.04) 25%,
    rgba(177, 210, 231, 0.28) 68%,
    rgba(238, 228, 195, 0.92) 100%
  );
  box-shadow:
    0 0 5px rgba(188, 217, 236, 0.22),
    0 0 14px rgba(200, 170, 110, 0.13);
  transform-origin: right center;
  will-change: transform, opacity;
}

.meteor::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 244, 216, 0.96);
  box-shadow:
    0 0 6px rgba(225, 239, 248, 0.72),
    0 0 16px rgba(200, 170, 110, 0.24);
  transform: translateY(-50%);
}

.meteor.is-flying {
  animation: meteor-flight var(--meteor-duration) cubic-bezier(0.16, 0.58, 0.2, 1) forwards;
}

@keyframes meteor-flight {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(var(--meteor-angle)) scaleX(0.18);
  }

  12% {
    opacity: var(--meteor-opacity);
  }

  70% {
    opacity: var(--meteor-fade-opacity);
  }

  100% {
    opacity: 0;
    transform:
      translate3d(var(--meteor-travel-x), var(--meteor-travel-y), 0)
      rotate(var(--meteor-angle))
      scaleX(1);
  }
}

.shell {
  position: relative;
  z-index: 1;
  width: min(100% - 48px, 920px);
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(72px, 12vh, 132px) 0 72px;
}

@media (prefers-reduced-motion: reduce) {
  .meteor-field {
    display: none;
  }
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
p,
blockquote {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4.6vh, 3.25rem);
  font-weight: 500;
  line-height: 1.34;
  letter-spacing: 0;
}

.judgment-stage {
  width: min(100%, 820px);
}

.judgment-header {
  max-width: 680px;
}

.judgment-voice {
  max-width: 800px;
  margin: clamp(58px, 9vh, 92px) 0 0;
  padding: 0;
  border: 0;
  color: rgba(237, 243, 247, 0.94);
  font-family: var(--serif);
  font-size: clamp(1.18rem, 2.5vh, 1.58rem);
  font-weight: 400;
  line-height: 1.75;
}

.association-flow {
  max-width: 800px;
  margin-top: clamp(52px, 8vh, 82px);
}

.opening-fact {
  max-width: 700px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.85;
}

.opening-fact span {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-faint);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.association-voice {
  max-width: 760px;
  margin: 42px 0 0;
  padding: 0;
  border: 0;
  color: rgba(237, 243, 247, 0.94);
  font-family: var(--serif);
  font-size: clamp(1.16rem, 2.35vh, 1.5rem);
  line-height: 1.8;
}

.tension-voice {
  max-width: 720px;
  margin: 38px 0 0;
  padding-left: 18px;
  border-left: 1px solid var(--line-strong);
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 1.04rem;
  line-height: 1.8;
}

.invitation-voice {
  max-width: 720px;
  margin: 42px 0 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.18rem, 2.5vh, 1.55rem);
  line-height: 1.7;
}

.why-now,
.evidence,
.decision-form,
.dialogue-stage {
  max-width: 720px;
  margin-top: 52px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.section-intro {
  max-width: 680px;
}

.section-kicker,
.dialogue-speaker,
.summary-section h3 {
  margin: 0 0 10px;
  color: var(--ink-faint);
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.section-intro h2,
.dialogue-summary h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.28rem, 2.8vh, 1.78rem);
  font-weight: 500;
  line-height: 1.55;
}

.dialogue-lead,
.saved-note,
.draft-note,
.direct-decision-label {
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--ink-soft);
}

.dialogue-form {
  max-width: 720px;
  margin-top: 42px;
}

#dialogue,
#dialogue-latest,
#dialogue-summary,
#dialogue-error,
#insight-uncertainty,
#insight-blind-spot {
  scroll-margin-top: 32px;
}

.talk-action {
  border-color: var(--line-strong);
  color: var(--ink);
}

.dialogue-transcript {
  max-width: 740px;
  margin-top: 42px;
}

.dialogue-entry {
  position: relative;
  margin-top: 38px;
  padding-left: 22px;
  border-left: 1px solid var(--line);
}

.dialogue-entry:first-child {
  margin-top: 0;
}

.assistant-entry {
  border-left-color: var(--line-strong);
}

.user-entry {
  margin-left: clamp(12px, 5vw, 64px);
}

.dialogue-text,
.dialogue-question,
.summary-section > p,
.summary-section blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.8;
}

.dialogue-question {
  margin-top: 18px;
  color: var(--ink);
  font-size: 1.16rem;
}

.thought-fragment {
  animation: thought-fragment-in 620ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--thought-delay, 0ms);
}

.dialogue-entry.is-unfolding .dialogue-speaker::after {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-left: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 14px rgba(200, 170, 110, 0.5);
  vertical-align: 0.18em;
  animation: thought-pulse 900ms ease-in-out infinite;
}

@keyframes thought-fragment-in {
  from {
    opacity: 0;
    filter: blur(5px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes thought-pulse {
  0%,
  100% {
    opacity: 0.28;
    transform: scale(0.72);
  }
  50% {
    opacity: 0.92;
    transform: scale(1);
  }
}

.reply-anchor {
  margin: 0 0 18px;
  padding-left: 14px;
  border-left: 1px solid var(--amber);
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 0.94rem;
  line-height: 1.75;
}

.reply-anchor span {
  display: block;
  margin-bottom: 3px;
  color: var(--ink-faint);
  font-family: var(--sans);
  font-size: 0.7rem;
}

.assumption-note {
  margin: 18px 0 0;
  color: var(--ink-soft);
}

.assumption-note span {
  display: block;
  margin-bottom: 5px;
  color: var(--ink-faint);
  font-family: var(--sans);
  font-size: 0.72rem;
}

.dialogue-method-trace {
  position: relative;
  margin: 24px 0 0;
  padding: 18px 0 4px 18px;
  border-top: 1px solid rgba(200, 170, 110, 0.2);
  color: var(--ink-soft);
}

.dialogue-method-trace::before {
  content: "";
  position: absolute;
  top: 17px;
  bottom: 3px;
  left: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--amber), rgba(200, 170, 110, 0.08));
  box-shadow: 0 0 18px rgba(200, 170, 110, 0.18);
}

.method-trace-label,
.method-trace-pair,
.method-trace-reason,
.method-trace-tension {
  margin: 0;
}

.method-trace-label {
  color: var(--ink-faint);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.method-trace-pair {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 11px;
  align-items: baseline;
  margin-top: 7px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 0.96rem;
}

.method-trace-pair i {
  color: var(--amber);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-style: normal;
}

.method-trace-reason {
  margin-top: 9px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.72;
}

.method-trace-tension {
  margin-top: 6px;
  color: var(--ink-faint);
  font-family: var(--serif);
  font-size: 0.84rem;
  line-height: 1.72;
}

.final-method-trace {
  max-width: 680px;
  margin-top: 28px;
}

.dialogue-summary {
  max-width: 740px;
  margin-top: 52px;
  padding-top: 32px;
  border-top: 1px solid var(--line-strong);
}

.summary-section {
  margin-top: 38px;
}

.summary-section blockquote {
  margin-top: 14px;
  padding-left: 16px;
  border-left: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.insight-form,
.draft-form,
.observation-save-form {
  margin-top: 24px;
}

.insight-form textarea,
.draft-form textarea,
.observation-save-form textarea {
  min-height: 76px;
  font-size: 0.98rem;
}

.insight-form button,
.draft-form button,
.observation-save-form button {
  margin-top: 14px;
}

.saved-insight-response {
  margin-top: 24px;
  padding: 18px 0 2px 18px;
  border-left: 1px solid var(--amber);
}

.saved-response-label {
  margin: 0 0 10px;
  color: var(--ink-faint);
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.summary-section .saved-insight-text {
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--ink);
  font-size: 1.04rem;
  line-height: 1.9;
}

.saved-insight-response .saved-note {
  margin-top: 10px;
  color: var(--ink-faint);
  font-family: var(--sans);
  font-size: 0.76rem;
}

.confirmed-judgment {
  padding-left: 16px;
  border-left: 2px solid var(--amber);
}

.draft-section {
  margin-top: 52px;
  padding-top: 8px;
}

.observation-return,
.saved-observation {
  position: relative;
  max-width: 42rem;
  margin-top: 2rem;
  padding: 1.6rem 0 0 1.4rem;
  border-left: 1px solid rgba(143, 201, 232, 0.36);
}

.observation-return::before,
.saved-observation::before {
  position: absolute;
  top: 1.8rem;
  left: -0.28rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  content: "";
  background: rgba(204, 178, 107, 0.78);
  box-shadow: 0 0 1.5rem rgba(204, 178, 107, 0.32);
}

.observation-return > p,
.saved-observation > p {
  color: var(--ink-soft);
  line-height: 1.9;
}

.observation-save-form label {
  color: rgba(224, 234, 244, 0.76);
  line-height: 1.8;
}

.observation-save-form textarea {
  margin-top: 0.8rem;
}

.quiet-link {
  color: rgba(172, 207, 230, 0.72);
  text-decoration: none;
  border-bottom: 1px solid rgba(134, 188, 221, 0.24);
}

.draft-provenance {
  position: relative;
  margin-top: 30px;
  padding-left: 34px;
}

.draft-provenance::before {
  position: absolute;
  top: 8px;
  bottom: 18px;
  left: 7px;
  width: 1px;
  content: "";
  background: linear-gradient(
    180deg,
    rgba(143, 201, 232, 0.52),
    rgba(143, 201, 232, 0.16) 48%,
    rgba(200, 170, 110, 0.52)
  );
  box-shadow: 0 0 22px rgba(100, 169, 207, 0.2);
}

.provenance-block {
  position: relative;
  padding: 0 0 34px;
}

.provenance-block::before {
  position: absolute;
  top: 7px;
  left: -31px;
  width: 9px;
  height: 9px;
  border: 1px solid rgba(151, 202, 232, 0.58);
  border-radius: 50%;
  content: "";
  background: var(--sea-raised);
  box-shadow: 0 0 0 5px rgba(91, 153, 190, 0.035), 0 0 24px rgba(91, 153, 190, 0.14);
}

.agent-interpretation::before {
  border-color: rgba(200, 170, 110, 0.68);
  box-shadow: 0 0 0 5px rgba(200, 170, 110, 0.035), 0 0 24px rgba(200, 170, 110, 0.12);
}

.provenance-label {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--ink-faint);
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.provenance-label span,
.owned-judgment label span {
  color: rgba(143, 201, 232, 0.7);
  font-variant-numeric: tabular-nums;
}

.provenance-label em {
  margin-left: auto;
  color: rgba(200, 170, 110, 0.72);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.summary-section .user-position blockquote {
  margin: 12px 0 0;
  padding: 0;
  border: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.95;
}

.agent-interpretation > p:last-child {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.95;
}

.owned-judgment {
  position: relative;
  margin-top: 4px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.owned-judgment::before {
  position: absolute;
  top: -1px;
  left: 0;
  width: 38%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, rgba(200, 170, 110, 0.7), transparent);
  box-shadow: 0 0 26px rgba(200, 170, 110, 0.16);
}

.draft-form .owned-judgment label {
  margin-bottom: 18px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.owned-judgment label span {
  margin-right: 10px;
}

.draft-form .owned-judgment textarea {
  min-height: 132px;
  font-size: 1.06rem;
  line-height: 2;
}

.confirmation-actions {
  align-items: center;
  margin-top: 24px;
}

.draft-form .confirmation-actions button {
  margin-top: 0;
}

.confirmation-actions .quiet-action {
  padding-right: 10px;
  padding-left: 10px;
}

.draft-note {
  margin-top: 10px;
  color: var(--ink-faint);
  font-size: 0.82rem;
  line-height: 1.8;
}

.submit-status {
  margin: 14px 0 0;
  color: var(--amber);
  font-size: 0.82rem;
}

[data-dialogue-form][aria-busy="true"] textarea,
[data-dialogue-form][aria-busy="true"] button {
  opacity: 0.62;
}

.dialogue-recovery {
  max-width: 720px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.dialogue-recovery .saved-note {
  margin-top: 0;
  line-height: 1.85;
}

.dialogue-exit {
  max-width: 720px;
  margin-top: 26px;
}

.dialogue-exit .quiet-action {
  margin-left: 0;
  padding: 10px 14px;
  border-color: var(--line);
  color: var(--ink-soft);
}

.user-owned-recovery {
  max-width: 720px;
  margin-top: 28px;
  padding: 26px 0 4px;
  border-top: 1px solid rgba(200, 170, 110, 0.28);
}

.user-owned-recovery .recovery-kicker {
  margin: 0 0 10px;
  color: var(--amber);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
}

.user-owned-recovery textarea {
  margin-top: 12px;
}

.recovery-owned-actions {
  align-items: center;
  gap: 12px;
}

.recovery-later {
  padding: 10px 4px;
  color: var(--ink-soft);
  text-decoration-color: rgba(200, 170, 110, 0.36);
  text-underline-offset: 5px;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

.recovery-later:hover,
.recovery-later:focus-visible {
  color: var(--amber);
  text-decoration-color: currentColor;
}

.mentor-stage {
  position: relative;
  max-width: 920px;
  margin-top: 76px;
  padding: 48px clamp(22px, 5vw, 58px) 52px;
  overflow: hidden;
  border: 1px solid rgba(141, 185, 214, 0.16);
  border-radius: 34px;
  background:
    radial-gradient(circle at 86% 12%, rgba(93, 154, 190, 0.13), transparent 34%),
    radial-gradient(circle at 10% 84%, rgba(200, 170, 110, 0.07), transparent 32%),
    linear-gradient(145deg, rgba(17, 28, 40, 0.7), rgba(8, 14, 21, 0.38));
  box-shadow:
    inset 0 1px 0 rgba(237, 243, 247, 0.035),
    0 36px 100px rgba(0, 0, 0, 0.2);
}

.mentor-stage::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(149, 187, 211, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(149, 187, 211, 0.028) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(125deg, black, transparent 68%);
}

.mentor-orbit {
  position: absolute;
  top: -112px;
  right: -86px;
  width: 320px;
  aspect-ratio: 1;
  border: 1px solid rgba(142, 199, 230, 0.09);
  border-radius: 50%;
  box-shadow:
    0 0 0 42px rgba(142, 199, 230, 0.025),
    0 0 0 98px rgba(142, 199, 230, 0.018);
}

.mentor-orbit::after {
  position: absolute;
  top: 56%;
  left: 3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  content: "";
  background: var(--amber);
  box-shadow: 0 0 22px rgba(200, 170, 110, 0.72);
}

.mentor-intro,
.mentor-view,
.mentor-lead,
.mentor-entry-form,
.mentor-recovery,
.mentor-error {
  position: relative;
  z-index: 1;
}

.mentor-intro h2 {
  max-width: 660px;
}

.mentor-lead {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  line-height: 1.9;
}

.mentor-entry-form {
  margin-top: 30px;
}

.mentor-entry-action {
  padding: 13px 20px;
  border-color: rgba(200, 170, 110, 0.46);
  color: var(--ink);
  background: rgba(200, 170, 110, 0.045);
  box-shadow: 0 0 34px rgba(200, 170, 110, 0.06);
}

.mentor-view {
  margin-top: 38px;
}

.mentor-arrival {
  margin: 0;
  color: var(--amber);
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.mentor-reply-anchor {
  max-width: 680px;
  margin: 28px 0 0;
  padding: 0 0 0 18px;
  border-left: 1px solid rgba(200, 170, 110, 0.55);
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 0.98rem;
  line-height: 1.9;
}

.mentor-reply-anchor span {
  display: block;
  margin-bottom: 5px;
  color: var(--ink-faint);
  font-family: var(--sans);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

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

.mentor-card {
  position: relative;
  min-width: 0;
  padding: 28px 26px 30px;
  overflow: hidden;
  border: 1px solid rgba(145, 187, 213, 0.16);
  border-radius: 22px;
  background:
    linear-gradient(155deg, rgba(25, 40, 55, 0.74), rgba(9, 16, 24, 0.55));
  box-shadow: inset 0 1px 0 rgba(237, 243, 247, 0.035);
}

.mentor-card::after {
  position: absolute;
  right: -26px;
  bottom: -34px;
  width: 110px;
  height: 110px;
  border: 1px solid rgba(141, 195, 225, 0.08);
  border-radius: 50%;
  content: "";
}

.mentor-card-counterpoint,
.mentor-card-alternate {
  border-color: rgba(200, 170, 110, 0.18);
  background:
    linear-gradient(155deg, rgba(38, 36, 35, 0.48), rgba(10, 16, 23, 0.57));
}

.mentor-card-header {
  position: relative;
  z-index: 1;
}

.mentor-role {
  margin: 0 0 18px;
  color: rgba(144, 198, 227, 0.74);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.mentor-card-counterpoint .mentor-role,
.mentor-card-alternate .mentor-role {
  color: rgba(200, 170, 110, 0.78);
}

.mentor-card-header h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.22rem, 2.3vw, 1.52rem);
  font-weight: 500;
  line-height: 1.45;
}

.mentor-card-header > span {
  display: block;
  margin-top: 6px;
  color: var(--ink-faint);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.mentor-card-body {
  position: relative;
  z-index: 1;
  margin-top: 26px;
}

.mentor-card-body p {
  margin: 0;
  font-family: var(--serif);
  line-height: 1.88;
}

.mentor-selected {
  color: var(--ink-faint);
  font-size: 0.84rem;
}

.mentor-observation {
  margin-top: 18px !important;
  color: var(--ink);
  font-size: 1.02rem;
}

.mentor-challenge {
  margin-top: 20px !important;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.insight-status-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px !important;
  color: var(--ink-faint) !important;
  font-family: var(--sans) !important;
  font-size: 0.68rem !important;
  line-height: 1.4 !important;
  letter-spacing: 0.1em;
}

.insight-status-label::before {
  width: 18px;
  height: 1px;
  background: linear-gradient(90deg, var(--amber), transparent);
  content: "";
}

.insight-section.is-insufficient,
.completion-insight.is-insufficient {
  padding-left: 18px;
  border-left: 1px solid rgba(200, 170, 110, 0.24);
}

.insight-section.is-insufficient > p:last-child,
.completion-insight.is-insufficient > p:last-child {
  color: var(--ink-soft);
}

.mentor-question {
  max-width: 690px;
  margin: 42px 0 0;
  padding: 24px 0 0 22px;
  border-top: 1px solid var(--line);
  border-left: 1px solid rgba(142, 199, 230, 0.38);
}

.mentor-question p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.16rem, 2.4vw, 1.42rem);
  line-height: 1.75;
}

.mentor-closing {
  margin: 36px 0 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 1.02rem;
}

.mentor-local-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 28px;
}

.mentor-local-actions .quiet-action,
.mentor-feedback-form .text-action {
  margin: 0;
  padding: 8px 4px;
  border: 0;
  color: var(--ink-faint);
  background: transparent;
  box-shadow: none;
  font-size: 0.78rem;
}

.mentor-local-actions .quiet-action:hover,
.mentor-local-actions .quiet-action:focus-visible,
.mentor-feedback-form .text-action:hover,
.mentor-feedback-form .text-action:focus-visible {
  color: var(--amber);
  transform: none;
}

.mentor-answer-form {
  margin-top: 38px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.mentor-answer-form textarea {
  min-height: 138px;
}

.mentor-answer-actions {
  margin-top: 20px;
}

.mentor-feedback-form {
  margin-top: 16px;
}

.mentor-feedback-form .text-action {
  padding-left: 0;
}

.mentor-view.is-question-only .mentor-card-body,
.mentor-view.is-question-only .mentor-reply-anchor {
  display: none;
}

.mentor-view.is-action-mode .mentor-question {
  border-left-color: rgba(200, 170, 110, 0.62);
}

.mentor-view.is-action-mode .mentor-answer-form {
  border-top-color: rgba(200, 170, 110, 0.34);
}

.mentor-view[data-mentor-reveal]:not(.is-revealing) .mentor-card,
.mentor-view[data-mentor-reveal]:not(.is-revealing) .mentor-question,
.mentor-view[data-mentor-reveal]:not(.is-revealing) .mentor-closing {
  opacity: 1;
}

.mentor-view.is-revealing .mentor-card,
.mentor-view.is-revealing .mentor-question,
.mentor-view.is-revealing .mentor-closing {
  animation: mentor-surface 720ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--mentor-delay, 0ms);
}

.mentor-recovery {
  margin-top: 30px;
  color: var(--ink-soft);
}

.mentor-recovery form {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

.mentor-skip {
  color: var(--ink-faint);
  font-size: 0.82rem;
}

@keyframes mentor-surface {
  from {
    opacity: 0;
    filter: blur(7px);
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mentor-view.is-revealing .mentor-card,
  .mentor-view.is-revealing .mentor-question,
  .mentor-view.is-revealing .mentor-closing {
    animation: none;
  }
}

@media (max-width: 720px) {
  .mentor-stage {
    margin-right: -8px;
    margin-left: -8px;
    padding: 38px 22px 42px;
    border-radius: 26px;
  }

  .mentor-cards {
    grid-template-columns: 1fr;
  }

  .mentor-card {
    padding: 24px 22px 26px;
  }
}

.why-now h2 {
  margin: 0 0 10px;
  color: var(--ink-faint);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
}

.why-now p,
.evidence p,
.evidence li {
  color: var(--ink-soft);
}

.evidence summary {
  width: fit-content;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 0.9rem;
}

.evidence summary:hover,
.evidence summary:focus-visible {
  color: var(--amber);
}

.evidence[open] summary {
  margin-bottom: 20px;
}

.evidence ul {
  margin: 0;
  padding-left: 1.2rem;
}

.history-evidence-card {
  max-width: 760px;
  padding: 22px 24px 24px;
  border: 1px solid color-mix(in srgb, var(--amber) 22%, var(--line));
  background:
    linear-gradient(110deg, color-mix(in srgb, var(--amber) 6%, transparent), transparent 66%),
    rgba(12, 18, 25, 0.3);
  transition: border-color 180ms ease, transform 220ms ease, background 220ms ease;
}

.history-evidence-card:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--amber) 42%, var(--line));
  background:
    linear-gradient(110deg, color-mix(in srgb, var(--amber) 9%, transparent), transparent 70%),
    rgba(12, 18, 25, 0.42);
}

.history-evidence-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  color: var(--ink-faint) !important;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.history-evidence-card blockquote {
  margin: 18px 0 16px;
  padding-left: 18px;
  border-left: 1px solid var(--line-strong);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.08rem, 2.3vw, 1.35rem);
  line-height: 1.72;
}

.history-evidence-note {
  margin: 0;
  color: var(--ink-faint) !important;
  font-size: 0.84rem;
}

.history-evidence.is-unavailable > p {
  max-width: 720px;
  padding-left: 18px;
  border-left: 1px solid color-mix(in srgb, var(--danger) 48%, transparent);
  color: var(--ink-faint);
}

.evidence-chain {
  margin-bottom: 26px;
  padding-left: 18px;
  border-left: 2px solid color-mix(in srgb, var(--amber) 52%, transparent);
}

.evidence-row {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  gap: 16px;
  margin: 0 0 12px;
  line-height: 1.65;
}

.evidence-row:last-child {
  margin-bottom: 0;
}

.evidence-row span,
.evidence-label {
  color: var(--ink-faint);
  font-family: var(--sans);
  font-size: 0.76rem;
}

.evidence-label {
  margin: 18px 0 8px !important;
}

.anchor {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.75;
}

.excerpt {
  margin: 0;
  color: var(--ink-faint) !important;
  font-size: 0.92rem;
}

.source-title {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.source-title span {
  color: var(--ink-faint);
  font-size: 0.76rem;
}

@media (max-width: 560px) {
  .evidence-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

.decision-form label,
.dialogue-form label,
.insight-form label,
.draft-form label,
.login-form label {
  display: block;
  margin-bottom: 18px;
  color: var(--ink-faint);
  font-size: 0.8rem;
  line-height: 1.7;
  letter-spacing: 0.04em;
}

.login-form input[type="password"],
.login-form input[type="text"] {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(186, 205, 219, 0.34);
  border-radius: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
}

textarea {
  width: 100%;
  min-height: 168px;
  padding: 24px 26px 28px;
  border: 1px solid transparent;
  border-radius: 20px;
  outline: 0;
  resize: vertical;
  caret-color: var(--amber);
  color: var(--ink);
  background:
    linear-gradient(155deg, rgba(19, 29, 41, 0.78), rgba(10, 16, 24, 0.42)) padding-box,
    linear-gradient(125deg, rgba(151, 184, 210, 0.26), rgba(200, 170, 110, 0.13), rgba(86, 121, 153, 0.1)) border-box;
  box-shadow:
    inset 0 1px 0 rgba(237, 243, 247, 0.035),
    inset 0 -28px 58px rgba(0, 0, 0, 0.08),
    0 24px 70px rgba(0, 0, 0, 0.12);
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 2.05;
  transition:
    border-color 480ms ease,
    background 700ms ease,
    box-shadow 700ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 480ms cubic-bezier(0.22, 1, 0.36, 1);
}

textarea::placeholder,
input::placeholder {
  color: rgba(133, 150, 165, 0.72);
  opacity: 1;
}

.login-form input[type="password"]:focus,
.login-form input[type="text"]:focus {
  border-color: var(--amber);
  box-shadow: 0 1px 0 rgba(200, 170, 110, 0.24);
}

textarea:hover {
  background:
    linear-gradient(155deg, rgba(21, 33, 47, 0.84), rgba(11, 18, 27, 0.46)) padding-box,
    linear-gradient(125deg, rgba(160, 194, 222, 0.34), rgba(200, 170, 110, 0.18), rgba(86, 121, 153, 0.12)) border-box;
  box-shadow:
    inset 0 1px 0 rgba(237, 243, 247, 0.05),
    inset 0 -28px 58px rgba(0, 0, 0, 0.06),
    0 26px 76px rgba(0, 0, 0, 0.15);
}

textarea:focus {
  background:
    radial-gradient(90% 130% at 100% 0%, rgba(74, 115, 151, 0.13), transparent 58%) padding-box,
    linear-gradient(155deg, rgba(21, 33, 47, 0.9), rgba(10, 17, 26, 0.54)) padding-box,
    linear-gradient(125deg, rgba(167, 202, 230, 0.42), rgba(200, 170, 110, 0.5), rgba(95, 137, 175, 0.22)) border-box;
  box-shadow:
    0 0 0 1px rgba(200, 170, 110, 0.22),
    0 0 0 6px rgba(93, 132, 166, 0.045),
    inset 0 1px 0 rgba(237, 243, 247, 0.07),
    0 30px 90px rgba(3, 8, 14, 0.26),
    0 0 64px rgba(74, 115, 151, 0.1);
  transform: translateY(-2px);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

button,
.text-link {
  min-height: 44px;
  border: 1px solid rgba(186, 205, 219, 0.32);
  border-radius: 4px;
  color: var(--ink-soft);
  background: transparent;
  font-family: var(--sans);
  font-size: 0.9rem;
  letter-spacing: 0;
  text-decoration: none;
  cursor: pointer;
}

button {
  padding: 10px 20px;
}

button:hover,
.text-link:hover {
  border-color: var(--line-strong);
  color: var(--amber);
  background: rgba(200, 170, 110, 0.045);
}

button:focus,
button:focus-visible,
.text-link:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 4px;
}

textarea:focus-visible {
  outline: none;
}

.quiet-action {
  margin-left: auto;
  border-color: transparent;
  color: var(--ink-faint);
}

.error-band {
  max-width: 720px;
  margin-top: 36px;
  padding: 16px 0 16px 18px;
  border-left: 2px solid var(--danger);
}

.error-band span {
  color: var(--danger);
  font-size: 0.76rem;
  font-weight: 700;
}

.error-band p {
  margin: 4px 0 0;
  color: var(--ink-soft);
}

.dialogue-error .inline-retry {
  margin-top: 1rem;
}

.dialogue-error .inline-retry button {
  width: auto;
}

.seed-active-discussion {
  max-width: 720px;
  margin: 2rem 0;
  padding: 1.25rem 0 1.25rem 1.25rem;
  border-left: 1px solid rgba(209, 183, 109, 0.5);
}

.seed-active-discussion > p:not(.section-kicker) {
  margin: 0.45rem 0 0.85rem;
  color: var(--ink-soft);
}

.transition-band {
  display: grid;
  grid-template-columns: minmax(7rem, 9rem) minmax(0, 1fr);
  gap: 1.5rem;
  max-width: 720px;
  margin: 34px 0 8px;
  padding: 15px 0;
  border-block: 1px solid var(--line);
}

.transition-band span {
  color: var(--amber);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.transition-band p {
  margin: 0;
  color: var(--ink-soft);
}

@media (max-width: 620px) {
  .transition-band {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }
}

.logout-form {
  margin-top: 64px;
}

.logout-form button {
  min-height: auto;
  padding: 4px 0;
  border: 0;
  color: var(--ink-faint);
  font-size: 0.76rem;
}

.login-stage,
.quiet-state {
  width: min(100%, 680px);
  margin-top: clamp(24px, 10vh, 96px);
}

.login-stage h1 {
  max-width: 640px;
}

.login-form {
  width: min(100%, 480px);
  margin-top: 72px;
}

.login-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
}

.login-line input {
  height: 48px;
  padding: 8px 0;
  transition:
    border-color 320ms ease,
    color 320ms ease,
    opacity 320ms ease;
}

.login-form input[inputmode="numeric"] {
  font-family: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

.login-reference {
  margin-top: 18px;
  color: var(--ink-faint);
  font-size: 0.78rem;
  line-height: 1.8;
}

.login-status {
  position: relative;
  margin: 22px 0 0;
  padding-left: 24px;
  color: var(--ink-faint);
  font-size: 0.78rem;
  line-height: 1.8;
  letter-spacing: 0.03em;
}

.login-status[hidden] {
  display: none;
}

.login-status::before {
  position: absolute;
  top: 0.58em;
  left: 1px;
  width: 12px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
  box-shadow: 0 0 12px rgba(200, 170, 110, 0.4);
  content: "";
  transform-origin: center;
  animation: login-breath 1.35s ease-in-out infinite;
}

.login-form[aria-busy="true"] .login-line input {
  color: var(--ink-faint);
  opacity: 0.62;
}

.login-form[aria-busy="true"] .login-line button {
  border-color: rgba(200, 170, 110, 0.48);
  color: var(--amber);
  background: rgba(200, 170, 110, 0.04);
  cursor: wait;
}

@keyframes login-breath {
  0%,
  100% {
    opacity: 0.28;
    transform: scaleX(0.55);
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-status::before {
    animation: none;
    opacity: 0.85;
  }
}

.error-text {
  margin: 14px 0 0;
  color: var(--danger);
}

.quiet-state h1 {
  max-width: 640px;
}

.quiet-state > p:not(.eyebrow):not(.completion-mark) {
  margin: 24px 0 0;
  color: var(--ink-faint);
}

.completion-mark {
  margin: 0 0 24px;
  color: var(--amber);
  font-family: var(--serif);
  font-size: 2rem;
}

.completion-page {
  width: min(100%, 800px);
  padding-bottom: 48px;
}

.completion-header {
  max-width: 680px;
}

.completion-note {
  max-width: 620px;
  margin: 26px 0 0;
  color: var(--ink-faint);
  line-height: 1.9;
}

.completion-origin,
.completion-transcript,
.completion-article-status,
.completion-summary,
.memory-boundary {
  margin-top: clamp(56px, 9vh, 88px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.completion-origin h2,
.completion-article-status h2,
.completion-summary h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.28rem, 2.8vh, 1.8rem);
  font-weight: 500;
  line-height: 1.6;
}

.completion-origin > p:not(.section-kicker),
.completion-entry > p:not(.dialogue-speaker),
.completion-article-status > p:not(.section-kicker),
.completion-summary > p:not(.section-kicker),
.completion-insight p,
.memory-boundary > p:not(.section-kicker) {
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 1.06rem;
  line-height: 1.95;
}

.completion-question {
  color: var(--ink) !important;
}

.completion-entry {
  max-width: 700px;
  margin-top: 34px;
}

.completion-entry.user-entry {
  margin-left: 28px;
  padding-left: 18px;
  border-left: 1px solid var(--line-strong);
}

.completion-insight {
  max-width: 680px;
  margin-top: 38px;
}

.completion-insight h3 {
  margin: 0;
  color: var(--ink-faint);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.completion-insight blockquote {
  margin: 18px 0 0;
  padding-left: 18px;
  border-left: 1px solid var(--line-strong);
  color: var(--ink);
  font-family: var(--serif);
  line-height: 1.9;
}

.memory-boundary {
  max-width: 680px;
  opacity: 0.9;
}

.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;
}

.text-link {
  display: inline-flex;
  align-items: center;
  margin-top: 36px;
  padding: 10px 18px;
}

@media (max-width: 620px) {
  .shell {
    width: min(100% - 32px, 920px);
    padding-top: 56px;
    padding-bottom: 44px;
  }

  h1 {
    font-size: 1.84rem;
  }

  .judgment-voice {
    margin-top: 48px;
    font-size: 1.32rem;
    line-height: 1.72;
  }

  .association-flow {
    margin-top: 44px;
  }

  .association-voice {
    margin-top: 34px;
    font-size: 1.25rem;
  }

  .tension-voice,
  .invitation-voice {
    margin-top: 32px;
  }

  .why-now,
  .evidence,
  .decision-form,
  .dialogue-stage {
    margin-top: 38px;
    padding-top: 22px;
  }

  .user-entry {
    margin-left: 10px;
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .actions button {
    width: 100%;
  }

  .quiet-action {
    grid-column: 1 / -1;
    margin-left: 0;
  }

  .reflection-actions button {
    grid-column: 1 / -1;
  }

  textarea {
    min-height: 148px;
    padding: 20px 20px 24px;
    border-radius: 17px;
    font-size: 1.02rem;
    line-height: 1.95;
  }

  .login-form {
    margin-top: 54px;
  }

  .completion-origin,
  .completion-transcript,
  .completion-summary,
  .memory-boundary {
    margin-top: 46px;
    padding-top: 22px;
  }

  .completion-entry.user-entry {
    margin-left: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }

  .thought-fragment {
    opacity: 1 !important;
    filter: none !important;
  }
}

@media (max-width: 560px) {
  .draft-provenance {
    padding-left: 26px;
  }

  .provenance-block::before {
    left: -23px;
  }

  .provenance-label {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .provenance-label em {
    width: 100%;
    margin-left: 0;
    padding-left: 28px;
  }

  .confirmation-actions .quiet-action {
    margin-left: 0;
  }
}
/* Phase B+ keeps navigation and writing tools quiet, spacious, and editorial. */
.workbench-nav {
  display: flex;
  gap: 1.4rem;
  margin: 0 auto 4rem;
  max-width: 68rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(154, 181, 211, 0.12);
}

.workbench-nav a {
  color: rgba(210, 222, 235, 0.62);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: color 180ms ease, text-shadow 220ms ease;
}

.workbench-nav a:hover,
.workbench-nav a:focus-visible {
  color: rgba(233, 242, 250, 0.95);
  text-shadow: 0 0 18px rgba(122, 187, 228, 0.28);
}

.workbench-nav a[aria-current="page"] {
  color: rgba(226, 203, 137, 0.92);
}

.seed-page,
.draft-page {
  max-width: 68rem;
  margin: 0 auto;
}

.seed-header,
.draft-header {
  max-width: 48rem;
  margin-bottom: 3.5rem;
}

.seed-header h1,
.draft-header h1 {
  margin: 0.7rem 0 1.4rem;
  font-family: var(--serif);
  font-size: clamp(2.3rem, 6vw, 4.8rem);
  font-weight: 400;
  line-height: 1.14;
}

.seed-header > p:last-child,
.draft-header > p:last-child,
.seed-saved-state > p,
.draft-invitation > p,
.completion-draft-cta > p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.95;
}

.seed-form,
.draft-editor,
.seed-saved-state,
.draft-invitation,
.completion-draft-cta {
  position: relative;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid rgba(148, 181, 216, 0.2);
  border-radius: 1.8rem;
  background: linear-gradient(145deg, rgba(26, 39, 54, 0.62), rgba(13, 19, 29, 0.32));
  box-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.24), inset 0 1px rgba(255, 255, 255, 0.035);
  overflow: hidden;
}

.seed-form::before,
.draft-editor::before,
.completion-draft-cta::before {
  content: "";
  position: absolute;
  inset: -35% 40% 55% -20%;
  background: radial-gradient(circle, rgba(91, 157, 202, 0.12), transparent 67%);
  pointer-events: none;
  animation: thought-drift 9s ease-in-out infinite alternate;
}

.seed-form label,
.draft-editor label {
  display: block;
  margin: 0 0 1rem;
  color: rgba(224, 234, 244, 0.76);
  line-height: 1.8;
}

.seed-form textarea,
.draft-editor textarea,
.draft-editor input,
.draft-material-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 0;
  border-bottom: 1px solid rgba(160, 190, 220, 0.26);
  border-radius: 0;
  padding: 1rem 0 1.4rem;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1.12rem;
  line-height: 2;
  outline: none;
  transition: border-color 220ms ease, box-shadow 220ms ease;
}

.draft-editor input {
  margin-bottom: 2.5rem;
  font-family: var(--serif);
  font-size: 1.6rem;
}

.seed-form textarea:focus,
.draft-editor textarea:focus,
.draft-editor input:focus,
.draft-material-form textarea:focus {
  border-color: rgba(143, 201, 232, 0.72);
  box-shadow: 0 0.75rem 2.5rem -1.5rem rgba(80, 171, 222, 0.45);
}

.seed-form button,
.draft-invitation button,
.primary-link {
  display: inline-flex;
  margin-top: 2rem;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.seed-saved-state blockquote {
  margin: 1.5rem 0 2rem;
  padding-left: 1.4rem;
  border-left: 1px solid rgba(210, 185, 112, 0.62);
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.9;
}

.draft-invitation h2 {
  max-width: 38rem;
  margin: 0.65rem 0 1.25rem;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.25;
}

.draft-material-questions {
  max-width: 44rem;
  margin: 2rem 0 2.5rem;
  padding-left: 1.35rem;
  color: var(--ink);
}

.draft-material-questions li {
  margin: 0 0 1rem;
  padding-left: 0.45rem;
  line-height: 1.85;
}

.draft-material-form label {
  display: block;
  margin-bottom: 0.35rem;
  color: rgba(224, 234, 244, 0.76);
}

.seed-recent-state {
  max-width: 52rem;
  margin-top: 3.25rem;
  padding: clamp(1.35rem, 3vw, 2.2rem);
  border-color: rgba(148, 181, 216, 0.12);
  background: rgba(13, 19, 29, 0.24);
  box-shadow: none;
}

.seed-recent-title {
  margin: 0 0 1.6rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.seed-recent-state blockquote {
  margin: 1rem 0 1.4rem;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.85;
}

.seed-inspiration {
  margin-top: 3.25rem;
}

.seed-inspiration-request {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.6rem 0;
  border-top: 1px solid rgba(148, 181, 216, 0.14);
  border-bottom: 1px solid rgba(148, 181, 216, 0.14);
}

.seed-inspiration-request > p:first-of-type {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.7;
}

.seed-inspiration-request .quiet-action {
  flex: 0 0 auto;
  margin: 0;
}

.seed-inspiration-refresh {
  margin-top: 0.85rem;
  padding-top: 1.25rem;
  border-top: 0;
}

.seed-inspiration-refresh > p:first-of-type {
  font-family: var(--sans);
  font-size: 0.92rem;
}

.seed-inspiration-header {
  max-width: 48rem;
  scroll-margin-top: 4rem;
}

.seed-inspiration-header h2 {
  margin: 0.6rem 0 1rem;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 4vw, 2.8rem);
  font-weight: 400;
  line-height: 1.35;
}

.seed-inspiration-header > p:last-child {
  color: var(--ink-soft);
  line-height: 1.9;
}

.seed-inspiration-list {
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid rgba(148, 181, 216, 0.14);
}

.seed-inspiration-item {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 1.4rem;
  padding: 2rem 0 2.2rem;
  border-top: 1px solid rgba(148, 181, 216, 0.14);
}

.seed-inspiration-number {
  padding-top: 0.3rem;
  color: rgba(218, 190, 111, 0.76);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
}

.seed-inspiration-item h3 {
  max-width: 50rem;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  font-weight: 400;
  line-height: 1.6;
}

.seed-inspiration-item > div > .seed-inspiration-axis {
  margin: 0 0 0.65rem;
  color: rgba(218, 190, 111, 0.72);
  font-family: var(--sans);
  font-size: 0.74rem;
  line-height: 1.5;
  letter-spacing: 0.12em;
}

.seed-inspiration-item > div > p {
  max-width: 46rem;
  margin: 0.8rem 0 0;
  color: var(--ink-soft);
  line-height: 1.85;
}

.seed-inspiration-item details {
  max-width: 46rem;
  margin-top: 1rem;
  color: rgba(170, 187, 204, 0.68);
}

.seed-inspiration-item summary {
  cursor: pointer;
  font-size: 0.88rem;
}

.seed-inspiration-item details p {
  margin: 0.9rem 0 0.45rem;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}

.seed-inspiration-item details .seed-inspiration-basis {
  max-width: 42rem;
  margin: 0.75rem 0 0;
  padding-left: 1rem;
  border-left: 1px solid rgba(210, 185, 112, 0.42);
  color: rgba(205, 216, 227, 0.76);
  letter-spacing: 0;
  line-height: 1.75;
}

.seed-inspiration-error {
  margin: 1rem 0 0;
  color: rgba(211, 180, 132, 0.88);
  line-height: 1.8;
}

.completion-draft-cta {
  margin-top: 4rem;
}

.completion-draft-cta h2 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 400;
  line-height: 1.35;
}

@keyframes thought-drift {
  from { transform: translate3d(-3%, -2%, 0); opacity: 0.58; }
  to { transform: translate3d(7%, 5%, 0); opacity: 0.95; }
}

@media (prefers-reduced-motion: reduce) {
  .seed-form::before,
  .draft-editor::before,
  .completion-draft-cta::before { animation: none; }
}

@media (max-width: 640px) {
  .workbench-nav { margin-bottom: 2.5rem; gap: 1rem; overflow-x: auto; }
  .workbench-nav a { white-space: nowrap; }
  .seed-form, .draft-editor, .seed-saved-state, .draft-invitation, .completion-draft-cta { border-radius: 1.2rem; }
  .seed-inspiration-request { align-items: flex-start; flex-direction: column; gap: 1.2rem; }
  .seed-inspiration-item { grid-template-columns: 2.25rem minmax(0, 1fr); gap: 0.75rem; }
}

.history-page {
  max-width: 68rem;
  margin: 0 auto;
}

.history-header {
  max-width: 52rem;
  margin-bottom: 5rem;
}

.history-header h1 {
  margin: 0.8rem 0 1.5rem;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 6vw, 4.9rem);
  font-weight: 400;
  line-height: 1.15;
}

.history-header > p:last-child,
.history-empty {
  color: var(--ink-soft);
  font-size: 1.04rem;
  line-height: 1.95;
}

.history-line {
  position: relative;
  padding-left: clamp(1.7rem, 4vw, 3.4rem);
}

.history-line::before {
  content: "";
  position: absolute;
  top: 0.4rem;
  bottom: 1rem;
  left: 0.35rem;
  width: 1px;
  background: linear-gradient(rgba(218, 187, 105, 0.62), rgba(111, 170, 209, 0.18), transparent);
}

.history-entry {
  position: relative;
  max-width: 50rem;
  padding: 0 0 4.5rem;
}

.history-entry::before {
  content: "";
  position: absolute;
  top: 0.45rem;
  left: calc(-1 * clamp(1.7rem, 4vw, 3.4rem) - 0.02rem);
  width: 0.72rem;
  height: 0.72rem;
  border: 1px solid rgba(222, 194, 113, 0.72);
  border-radius: 50%;
  background: var(--sea);
  box-shadow: 0 0 1.6rem rgba(199, 166, 86, 0.2);
}

.history-entry time {
  color: rgba(177, 194, 211, 0.48);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}

.history-entry h2 {
  margin: 0.65rem 0 1.5rem;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  font-weight: 400;
  line-height: 1.45;
}

.history-entry blockquote,
.cross-connection blockquote,
.prediction-memory blockquote,
.prediction-locked blockquote {
  margin: 0 0 1.4rem;
  padding-left: 1.35rem;
  border-left: 1px solid rgba(209, 183, 109, 0.5);
  color: rgba(231, 238, 245, 0.9);
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.9;
}

.saved-history-response {
  color: rgba(190, 207, 222, 0.72);
  line-height: 1.9;
}

.history-status,
.insufficiency-kicker {
  margin: -0.45rem 0 1.25rem;
  color: rgba(214, 187, 112, 0.82);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
}

.history-discussion {
  margin: 1.6rem 0 2rem;
  padding: 1.35rem 1.4rem;
  border: 1px solid rgba(143, 201, 232, 0.16);
  border-radius: 1rem;
  background: rgba(18, 29, 39, 0.38);
}

.history-discussion-turn {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr);
  gap: 0.9rem;
  padding: 0.9rem 0;
  border-top: 1px solid rgba(143, 201, 232, 0.1);
}

.history-discussion-turn:first-of-type {
  border-top: 0;
}

.history-discussion-turn span {
  color: rgba(177, 194, 211, 0.48);
  font-size: 0.74rem;
}

.history-discussion-turn p,
.history-boundary {
  margin: 0;
  color: rgba(218, 228, 237, 0.82);
  line-height: 1.85;
}

.history-boundary {
  margin-top: 0.9rem;
  color: rgba(177, 194, 211, 0.5);
  font-size: 0.78rem;
}

.history-insufficiency,
.judgment-insufficiency {
  margin: 1.6rem 0 2rem;
  padding: 1.35rem 1.45rem;
  border-left: 1px solid rgba(214, 187, 112, 0.48);
  background: linear-gradient(90deg, rgba(214, 187, 112, 0.07), transparent 74%);
}

.judgment-insufficiency > p,
.history-insufficiency > p {
  line-height: 1.85;
}

.judgment-insufficiency dl,
.history-insufficiency dl {
  display: grid;
  gap: 1rem;
  margin: 1.35rem 0 0;
}

.judgment-insufficiency dl div,
.history-insufficiency dl div {
  display: grid;
  grid-template-columns: minmax(8rem, 0.32fr) minmax(0, 1fr);
  gap: 1rem;
}

.judgment-insufficiency dt,
.history-insufficiency dt {
  color: rgba(177, 194, 211, 0.52);
  font-size: 0.78rem;
}

.judgment-insufficiency dd,
.history-insufficiency dd {
  margin: 0;
  color: rgba(218, 228, 237, 0.84);
  line-height: 1.75;
}

.judgment-insufficiency.is-system-limit,
.history-system-limit {
  border-color: rgba(226, 154, 137, 0.4);
  color: rgba(226, 190, 180, 0.82);
}

.history-system-limit {
  margin: 1.4rem 0;
  padding-left: 1rem;
  border-left: 1px solid rgba(226, 154, 137, 0.4);
  line-height: 1.8;
}

@media (max-width: 640px) {
  .history-discussion-turn,
  .judgment-insufficiency dl div,
  .history-insufficiency dl div {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

.history-observation {
  margin: 2rem 0 2.4rem;
  padding: 1.4rem 0 0 1.25rem;
  border-left: 1px solid rgba(143, 201, 232, 0.28);
}

.observation-label,
.observation-source {
  color: rgba(177, 194, 211, 0.55);
  font-size: 0.78rem;
  line-height: 1.8;
}

.history-observation > blockquote {
  margin: 0.8rem 0 1rem;
}

.history-observation details {
  margin-top: 1.25rem;
  color: var(--ink-soft);
}

.history-observation summary {
  cursor: pointer;
  font-size: 0.86rem;
}

.history-observation form {
  margin-top: 1.2rem;
}

.history-observation label {
  display: block;
  margin-bottom: 0.7rem;
  font-size: 0.82rem;
}

.history-observation textarea {
  min-height: 7rem;
}

.observation-actions {
  margin-top: 1rem;
}

.inline-error {
  margin: -2rem 0 3rem;
  color: rgba(226, 154, 137, 0.9);
  line-height: 1.8;
}

.history-links {
  display: flex;
  gap: 1.3rem;
  margin-top: 1.6rem;
}

.history-links a {
  color: rgba(172, 207, 230, 0.72);
  text-decoration: none;
  border-bottom: 1px solid rgba(134, 188, 221, 0.24);
}

.history-pagination {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 2.25rem);
  max-width: 50rem;
  margin: 0 0 1rem clamp(1.7rem, 4vw, 3.4rem);
  padding-top: 2rem;
  border-top: 1px solid rgba(143, 201, 232, 0.14);
}

.history-pagination-direction {
  min-width: 0;
}

.history-pagination-direction.is-next {
  text-align: right;
}

.history-pagination-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 2.9rem;
  padding: 0.68rem 0.9rem;
  overflow: hidden;
  border: 1px solid rgba(200, 170, 110, 0.2);
  border-radius: 0.2rem;
  color: rgba(202, 218, 230, 0.78);
  background:
    linear-gradient(115deg, rgba(200, 170, 110, 0.075), transparent 56%),
    rgba(18, 26, 35, 0.42);
  box-shadow: inset 0 1px 0 rgba(237, 243, 247, 0.025);
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-decoration: none;
  transition:
    color 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease,
    box-shadow 260ms ease,
    transform 220ms cubic-bezier(0.2, 0.72, 0.24, 1);
}

.history-pagination-link::after {
  position: absolute;
  right: 0.9rem;
  bottom: 0;
  left: 0.9rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
  content: "";
  opacity: 0;
  transform: scaleX(0.35);
  transition: opacity 220ms ease, transform 260ms ease;
}

.history-pagination-link:hover,
.history-pagination-link:focus-visible {
  border-color: rgba(200, 170, 110, 0.5);
  color: rgba(239, 235, 218, 0.98);
  background-color: rgba(200, 170, 110, 0.055);
  box-shadow:
    inset 0 1px 0 rgba(237, 243, 247, 0.05),
    0 0.75rem 2rem rgba(0, 0, 0, 0.18),
    0 0 1.8rem rgba(200, 170, 110, 0.055);
  outline: none;
  transform: translateY(-2px);
}

.history-pagination-link:focus-visible {
  box-shadow:
    0 0 0 2px var(--sea),
    0 0 0 3px rgba(200, 170, 110, 0.72),
    0 0.75rem 2rem rgba(0, 0, 0, 0.18);
}

.history-pagination-link:hover::after,
.history-pagination-link:focus-visible::after {
  opacity: 0.8;
  transform: scaleX(1);
}

.history-pagination-arrow {
  color: rgba(200, 170, 110, 0.76);
  font-size: 1rem;
  transition: transform 240ms cubic-bezier(0.2, 0.72, 0.24, 1);
}

.history-pagination-previous:hover .history-pagination-arrow,
.history-pagination-previous:focus-visible .history-pagination-arrow {
  transform: translateX(-0.24rem);
}

.history-pagination-next:hover .history-pagination-arrow,
.history-pagination-next:focus-visible .history-pagination-arrow {
  transform: translateX(0.24rem);
}

.history-pagination-link.is-disabled {
  border-color: rgba(143, 201, 232, 0.08);
  color: rgba(177, 194, 211, 0.25);
  background: rgba(18, 26, 35, 0.18);
  box-shadow: none;
}

.history-pagination-link.is-disabled::after {
  display: none;
}

.history-pagination-link.is-disabled .history-pagination-arrow {
  color: rgba(177, 194, 211, 0.2);
}

.history-pagination-status {
  position: relative;
  margin: 0;
  padding: 0 0.2rem;
  color: rgba(214, 187, 112, 0.76);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .history-pagination {
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    margin-left: 0;
  }

  .history-pagination-link {
    width: 100%;
    justify-content: center;
    padding-right: 0.7rem;
    padding-left: 0.7rem;
  }

  .history-pagination-status {
    grid-column: 1 / -1;
    grid-row: 1;
    text-align: center;
  }
}

.article-library-page {
  max-width: 68rem;
  margin: 0 auto;
}

.article-library-header {
  max-width: 47rem;
  margin-bottom: clamp(4.5rem, 9vw, 7.5rem);
}

.article-library-header h1 {
  margin: 0.65rem 0 1.4rem;
  font-family: var(--serif);
  font-size: clamp(3.2rem, 9vw, 7rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
}

.article-library-header > p:last-child,
.article-library-empty {
  color: var(--ink-soft);
  font-size: 1.04rem;
  line-height: 1.95;
}

.completion-article-status {
  max-width: 680px;
}

.article-shelf {
  max-width: 56rem;
  border-top: 1px solid rgba(154, 181, 211, 0.16);
}

.article-entry {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
  border-bottom: 1px solid rgba(154, 181, 211, 0.13);
  animation: article-arrive 520ms both cubic-bezier(0.2, 0.72, 0.24, 1);
}

.article-entry:nth-child(2) { animation-delay: 70ms; }
.article-entry:nth-child(3) { animation-delay: 140ms; }

.article-meta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: rgba(177, 194, 211, 0.48);
  font-size: 0.76rem;
  letter-spacing: 0.11em;
}

.article-entry h2 {
  max-width: 48rem;
  margin: 0.9rem 0 1.25rem;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4.2vw, 3.3rem);
  font-weight: 400;
  line-height: 1.32;
}

.article-entry h2 a {
  color: rgba(238, 243, 248, 0.94);
  text-decoration: none;
  transition: color 180ms ease, text-shadow 260ms ease;
}

.article-entry h2 a:hover,
.article-entry h2 a:focus-visible {
  color: #fff;
  text-shadow: 0 0 2.2rem rgba(114, 177, 220, 0.2);
}

.article-excerpt {
  max-width: 46rem;
  margin: 0 0 1.65rem;
  color: rgba(190, 207, 222, 0.68);
  font-size: 1rem;
  line-height: 2;
}

.article-open {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: rgba(218, 194, 128, 0.75);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.article-open span {
  transition: transform 180ms ease;
}

.article-open:hover span,
.article-open:focus-visible span {
  transform: translateX(0.28rem);
}

.article-library-empty {
  max-width: 40rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(154, 181, 211, 0.16);
}

.article-library-empty p {
  margin: 0 0 0.35rem;
}

@keyframes article-arrive {
  from { opacity: 0; transform: translateY(0.8rem); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .article-entry { animation: none; }
  .article-open span { transition: none; }
}

@media (max-width: 640px) {
  .article-library-header { margin-bottom: 3.5rem; }
  .article-entry { padding: 2.5rem 0 3rem; }
  .article-meta { flex-wrap: wrap; line-height: 1.7; }
  .article-excerpt { line-height: 1.85; }
}

.cross-connection {
  margin: 1rem 0 4rem;
  padding: 1.5rem 0 1.5rem clamp(1.4rem, 4vw, 2.5rem);
  border-left: 1px solid rgba(210, 184, 108, 0.3);
  max-width: 48rem;
}

.cross-connection > p:not(.section-kicker) {
  color: var(--ink-soft);
  line-height: 1.9;
}

.cross-connection-link {
  display: inline-block;
  margin-top: 0.8rem;
  color: var(--gold);
}

.publication-section,
.calibration-form {
  max-width: 52rem;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(150, 178, 204, 0.18);
}

.publication-section h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
}

.publication-form,
.calibration-form {
  display: grid;
  gap: 0.9rem;
}

.publication-form label,
.calibration-form label {
  margin-top: 1.3rem;
  color: rgba(210, 222, 234, 0.68);
}

.publication-form input,
.publication-form textarea,
.calibration-form input,
.calibration-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.9rem 0 1.1rem;
  border: 0;
  border-bottom: 1px solid rgba(153, 184, 213, 0.28);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  line-height: 1.8;
}

.prediction-locked,
.prediction-memory {
  padding: 1.6rem 0;
}

.prediction-locked p,
.prediction-memory p {
  color: var(--ink-soft);
  line-height: 1.8;
}

.prediction-locked p span,
.prediction-memory p span {
  display: inline-block;
  width: 7rem;
  color: rgba(213, 226, 238, 0.82);
}

/* A submitted thought remains visible while the next model response is prepared. */
.progressive-thought {
  position: relative;
  max-width: 48rem;
  margin: 2.4rem 0 3.2rem;
  padding: 0.35rem 0 0.5rem clamp(1.5rem, 4vw, 2.5rem);
  border-left: 1px solid rgba(200, 170, 110, 0.62);
  animation: progressive-arrive 680ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.progressive-kicker,
.progressive-label {
  margin: 0;
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.progressive-label {
  margin-top: 1.7rem;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
}

.progressive-user-text {
  margin: 0.75rem 0 1.6rem;
  padding: 0;
  border: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.6vw, 1.55rem);
  line-height: 1.9;
  max-height: 11.4em;
  overflow-y: auto;
  scrollbar-color: rgba(200, 170, 110, 0.34) transparent;
}

.progressive-status {
  max-width: 42rem;
  margin: 1.15rem 0 0;
  color: var(--ink-soft);
  line-height: 1.95;
}

.progressive-trace {
  display: flex;
  gap: 0.65rem;
  width: 5.2rem;
  margin-top: 1.65rem;
}

.progressive-trace i {
  display: block;
  width: 1.15rem;
  height: 1px;
  background: rgba(200, 170, 110, 0.3);
  transform-origin: left center;
  animation: progressive-mark 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--mark-index) * 170ms);
}

.progressive-thought.is-error {
  border-left-color: rgba(217, 148, 136, 0.7);
}

.progressive-thought.is-error .progressive-kicker {
  color: var(--danger);
}

.progressive-thought.is-error .progressive-trace {
  display: none;
}

.shell.is-progressive-busy .dialogue-exit,
.shell.is-progressive-busy .decision-form {
  opacity: 0.28;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.shell.is-progressive-busy button:disabled {
  cursor: wait;
}

@keyframes progressive-arrive {
  from { opacity: 0.68; transform: translateY(0.55rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes progressive-mark {
  from { opacity: 0.15; transform: scaleX(0.15); }
  to { opacity: 1; transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  .progressive-thought,
  .progressive-trace i {
    animation: none;
  }

  .shell.is-progressive-busy .dialogue-exit,
  .shell.is-progressive-busy .decision-form {
    transition: none;
  }
}

@media (max-width: 560px) {
  .progressive-thought {
    margin-top: 1.8rem;
    padding-left: 1.35rem;
  }
}

/* Memory v0 — an editorial permission ledger, not an admin dashboard. */
.memory-page,
.memory-candidate-page {
  width: min(100%, 880px);
}

.memory-hero,
.memory-candidate-hero {
  max-width: 760px;
  margin-bottom: clamp(3.5rem, 8vw, 6.5rem);
}

.memory-hero h1,
.memory-candidate-hero h1 {
  font-size: clamp(2.55rem, 7vw, 5.6rem);
  line-height: 1.13;
  text-wrap: balance;
}

.memory-hero > p:last-child,
.memory-candidate-hero > p:last-child {
  max-width: 680px;
  margin: 1.8rem 0 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

.memory-band {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1.5rem;
  margin: 0 0 2.5rem;
  padding: 1.2rem 0;
  border-block: 1px solid var(--line);
}

.memory-band span {
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.memory-band p { margin: 0; color: var(--ink-soft); }
.memory-band.is-error span { color: var(--danger); }

.memory-sync-warning,
.memory-compose,
.memory-pending,
.memory-library,
.memory-evidence-card {
  position: relative;
  margin-top: clamp(3.5rem, 8vw, 6.5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.memory-sync-warning {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem;
  border: 1px solid rgba(217, 148, 136, 0.34);
  background: linear-gradient(120deg, rgba(217, 148, 136, 0.08), transparent 64%);
}

.memory-sync-warning h2,
.memory-compose h2,
.memory-pending h2,
.memory-library h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.65rem, 3.5vw, 2.55rem);
  font-weight: 500;
  line-height: 1.35;
}

.memory-sync-warning p,
.memory-compose header > p:last-child,
.memory-library header > p:last-child {
  max-width: 650px;
  color: var(--ink-soft);
}

.memory-form {
  display: grid;
  gap: 0.85rem;
  margin-top: 2.5rem;
}

.memory-form label,
.memory-form legend {
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.07em;
}

.memory-form textarea,
.memory-form input,
.memory-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  background: rgba(12, 18, 25, 0.42);
  font: inherit;
  line-height: 1.65;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.memory-form textarea { min-height: 7rem; padding: 1rem 1.1rem; resize: vertical; }
.memory-form input,
.memory-form select { min-height: 3rem; padding: 0.65rem 0.8rem; }
.memory-form input[type="radio"] { width: auto; min-height: 0; accent-color: var(--amber); }

.memory-form textarea:hover,
.memory-form input:hover,
.memory-form select:hover { border-color: rgba(200, 170, 110, 0.36); }

.memory-form textarea:focus,
.memory-form input:focus,
.memory-form select:focus {
  outline: 0;
  border-color: rgba(200, 170, 110, 0.72);
  background: rgba(18, 26, 35, 0.76);
  box-shadow: 0 0 0 3px rgba(200, 170, 110, 0.08);
}

.memory-form fieldset {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 0.8rem 1rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.memory-form legend { width: 100%; margin-bottom: 0.5rem; }
.memory-radio { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 400 !important; letter-spacing: 0 !important; }

.memory-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 0.35rem 0 1rem;
}

.memory-field-grid > div { display: grid; gap: 0.55rem; min-width: 0; }

.memory-form-footer,
.memory-approval-actions,
.memory-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.memory-form-footer p { margin: 0; color: var(--ink-faint); font-size: 0.82rem; }
.memory-field-note { margin: -0.25rem 0 0.45rem; color: var(--ink-faint); font-size: 0.78rem; }

.memory-pending-list {
  display: grid;
  margin-top: 1.8rem;
  border-top: 1px solid var(--line);
}

.memory-pending-list a {
  display: grid;
  grid-template-columns: 4.5rem 1fr auto;
  align-items: baseline;
  gap: 1rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: color 180ms ease, padding-left 220ms ease;
}

.memory-pending-list a:hover,
.memory-pending-list a:focus-visible { padding-left: 0.55rem; color: var(--amber); }
.memory-pending-list span,
.memory-pending-list small { color: var(--ink-faint); font-size: 0.76rem; }
.memory-pending-list strong { font-family: var(--serif); font-size: 1.08rem; font-weight: 500; }

.memory-rule-list { display: grid; gap: 2.4rem; margin-top: 2.5rem; }

.memory-rule {
  position: relative;
  padding: 1.6rem 1.7rem 1.7rem;
  border-left: 1px solid var(--line-strong);
  background: linear-gradient(110deg, rgba(27, 38, 49, 0.46), transparent 72%);
}

.memory-rule.is-suspended,
.memory-rule.is-review_required,
.memory-rule.is-withdrawn { opacity: 0.68; border-left-color: var(--line); }

.memory-rule > header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: start;
}

.memory-rule header span { color: var(--ink-faint); font-size: 0.72rem; letter-spacing: 0.1em; }
.memory-rule h3 { margin: 0.55rem 0 0; font-family: var(--serif); font-size: clamp(1.2rem, 2.7vw, 1.7rem); font-weight: 500; line-height: 1.55; }
.memory-status { margin: 0; color: var(--amber); font-size: 0.76rem; white-space: nowrap; }

.memory-rule dl { display: grid; gap: 0.75rem; margin: 1.5rem 0 0; }
.memory-rule dl div { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; }
.memory-rule dt { color: var(--ink-faint); font-size: 0.76rem; }
.memory-rule dd { margin: 0; color: var(--ink-soft); font-size: 0.88rem; }

.memory-control { margin-top: 1.5rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.memory-control summary { width: max-content; color: var(--ink-soft); cursor: pointer; }
.memory-form.is-compact { margin-top: 1.4rem; }
.memory-form.is-compact textarea { min-height: 5.5rem; }
.danger-action { border-color: rgba(217, 148, 136, 0.45) !important; color: var(--danger) !important; background: transparent !important; }
.danger-action:hover,
.danger-action:focus-visible { border-color: var(--danger) !important; background: rgba(217, 148, 136, 0.08) !important; }
.memory-empty { margin-top: 2rem; color: var(--ink-faint); }

.memory-evidence-card blockquote {
  max-width: 760px;
  margin: 1.5rem 0;
  padding-left: 1.3rem;
  border-left: 1px solid var(--line-strong);
  font-family: var(--serif);
  font-size: clamp(1.18rem, 2.8vw, 1.65rem);
  line-height: 1.65;
}

.memory-evidence-card > p:last-child { color: var(--ink-faint); font-size: 0.84rem; }
.memory-approval-form { margin-top: 3rem; }
.memory-approval-note { margin: 1.5rem 0 0; padding: 1.2rem; border: 1px solid var(--line); background: rgba(18, 26, 35, 0.4); }
.memory-approval-note p:last-child { margin: 0; color: var(--ink-soft); }
.memory-approval-actions > button,
.memory-approval-actions > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink-soft);
  background: transparent;
  font: inherit;
  text-decoration: none;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.memory-approval-actions > button:hover,
.memory-approval-actions > button:focus-visible,
.memory-approval-actions > a:hover,
.memory-approval-actions > a:focus-visible {
  border-color: var(--line-strong);
  color: var(--amber);
  background: rgba(200, 170, 110, 0.045);
}

.memory-approval-actions > a:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .memory-form textarea,
  .memory-form input,
  .memory-form select,
  .memory-pending-list a { transition: none; }
}

@media (max-width: 640px) {
  .memory-hero h1,
  .memory-candidate-hero h1 { font-size: clamp(2.25rem, 13vw, 3.65rem); }
  .memory-sync-warning { align-items: stretch; flex-direction: column; }
  .memory-field-grid { grid-template-columns: 1fr; }
  .memory-pending-list a { grid-template-columns: 3.5rem 1fr; }
  .memory-pending-list small { grid-column: 2; }
  .memory-rule { padding-inline: 1rem; }
  .memory-rule > header { grid-template-columns: 1fr; gap: 0.65rem; }
  .memory-rule dl div { grid-template-columns: 1fr; gap: 0.15rem; }
  .memory-form-footer,
  .memory-approval-actions,
  .memory-action-row { align-items: stretch; flex-direction: column; }
  .memory-form-footer button,
  .memory-approval-actions button,
  .memory-action-row button { width: 100%; }
}
.visitor-nav {
  align-items: center;
  justify-content: space-between;
}

.visitor-badge {
  border: 1px solid rgba(200, 170, 110, 0.38);
  border-radius: 999px;
  color: #c8aa6e;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  padding: 0.45rem 0.8rem;
  text-transform: uppercase;
}

.visitor-privacy-note {
  border-left: 1px solid rgba(200, 170, 110, 0.55);
  color: rgba(221, 228, 238, 0.68);
  line-height: 1.9;
  margin: 2rem 0 2.5rem;
  max-width: 46rem;
  padding: 0.15rem 0 0.15rem 1.25rem;
}

.visitor-privacy-note p {
  margin: 0.35rem 0;
}
