:root {
  color-scheme: dark;
  --dream-scroll: 0;
  --dream-ink: #070a12;
  --dream-ink-soft: #0a0e18;
  --dream-surface: #0f1421;
  --dream-surface-raised: #171b28;
  --dream-cream: #f6eee4;
  --dream-muted: #bbb5af;
  --dream-muted-soft: rgba(187, 181, 175, 0.7);
  --dream-line: rgba(246, 238, 228, 0.16);
  --dream-line-strong: rgba(246, 238, 228, 0.34);
  --dream-gold: #d5a66d;
  --dream-gold-soft: #e8c89e;
  --dream-lavender: #c3b6dd;
  --dream-green: #a8c2ae;
  --dream-danger: #d28f8f;
  --dream-width: 1180px;
  --dream-serif: Iowan Old Style, Baskerville, Times New Roman, Songti SC, STSong, serif;
  --dream-sans: -apple-system, BlinkMacSystemFont, SF Pro Display, SF Pro Text, PingFang SC, Hiragino Sans GB, Microsoft YaHei, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 88% 52%, rgba(213, 166, 109, 0.06), transparent 30%),
    var(--dream-ink);
  color: var(--dream-cream);
  font-family: var(--dream-sans);
  -webkit-font-smoothing: antialiased;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.dream-skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  transform: translateY(-180%);
  border: 1px solid var(--dream-cream);
  background: var(--dream-ink);
  color: var(--dream-cream);
  text-decoration: none;
}

.dream-skip-link:focus {
  transform: translateY(0);
}

.dream-header {
  position: fixed;
  z-index: 30;
  inset: 0 0 auto;
  border-bottom: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease;
}

.dream-header.is-scrolled {
  border-color: var(--dream-line);
  background: rgba(7, 10, 18, 0.92);
  backdrop-filter: blur(20px);
}

.dream-header-inner {
  width: min(var(--dream-width), calc(100% - 48px));
  min-height: 76px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto minmax(210px, 1fr);
  align-items: center;
  gap: 28px;
}

.dream-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: max-content;
  text-decoration: none;
}

.dream-brand img,
.dream-footer img {
  width: 112px;
  height: auto;
}

.dream-brand span {
  color: var(--dream-muted);
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.18em;
}

.dream-header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.dream-header-nav a,
.dream-header-action {
  font-size: 0.8rem;
  font-weight: 680;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.dream-header-nav a {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--dream-muted);
}

.dream-header-nav a:hover,
.dream-header-nav a:focus-visible {
  color: var(--dream-cream);
}

.dream-header-action {
  justify-self: end;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 15px;
  border: 1px solid rgba(246, 238, 228, 0.42);
}

.dream-header-action:hover,
.dream-header-action:focus-visible {
  border-color: var(--dream-gold);
  color: var(--dream-gold-soft);
}

.dream-hero {
  position: relative;
  min-height: max(720px, 100svh);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--dream-line);
  isolation: isolate;
}

.dream-hero-image,
.dream-hero-shade,
.dream-hero-dawn {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.dream-hero-image {
  z-index: -3;
  object-fit: cover;
  object-position: 58% center;
  filter: saturate(0.72) brightness(0.68);
  transform: scale(1.035);
  transition: transform 1.6s cubic-bezier(0.2, 0.7, 0.2, 1), filter 1.2s ease;
}

.dream-page.is-ready .dream-hero-image {
  transform: scale(1);
}

.dream-hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(4, 6, 11, 0.93) 0%, rgba(5, 8, 14, 0.77) 42%, rgba(5, 8, 14, 0.16) 78%),
    linear-gradient(180deg, rgba(5, 7, 12, 0.32) 0%, rgba(5, 7, 12, 0.2) 52%, rgba(5, 7, 12, 0.86) 100%);
}

.dream-hero-dawn {
  z-index: -1;
  opacity: calc(var(--dream-scroll) * 0.7);
  background: radial-gradient(circle at 73% 62%, rgba(236, 186, 119, 0.45), transparent 32%);
  mix-blend-mode: screen;
  transition: opacity 120ms linear;
}

.dream-hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--dream-width), calc(100% - 48px));
  margin: 0 auto;
  padding: 150px 0 84px;
}

.dream-eyebrow {
  margin: 0 0 18px;
  color: var(--dream-gold);
  font-size: 0.7rem;
  font-weight: 760;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.dream-hero h1,
.dream-foundation h2,
.dream-section-intro h2,
.dream-trajectory h2,
.dream-case-copy h2,
.dream-final h2 {
  max-width: 100%;
  margin: 0;
  padding: 0.03em 0.18em 0.16em 0.01em;
  overflow: visible;
  color: var(--dream-cream);
  font-family: var(--dream-serif);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.08;
  text-wrap: balance;
  word-break: normal;
  overflow-wrap: break-word;
}

.dream-hero h1 {
  max-width: 980px;
  font-size: clamp(3.35rem, 6vw, 5.7rem);
}

.dream-hero h1 > span {
  display: block;
}

.dream-accent {
  color: var(--dream-lavender);
}

.dream-hero-lead {
  max-width: 730px;
  margin: 24px 0 0;
  color: rgba(246, 238, 228, 0.82);
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  line-height: 1.82;
}

.dream-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.dream-action-primary,
.dream-action-secondary {
  min-height: 49px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  font-size: 0.88rem;
  font-weight: 720;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.dream-action-primary {
  background: var(--dream-cream);
  color: var(--dream-ink);
}

.dream-action-primary:hover,
.dream-action-primary:focus-visible {
  background: var(--dream-gold-soft);
  transform: translateY(-2px);
}

.dream-action-secondary {
  border-color: rgba(246, 238, 228, 0.42);
  color: var(--dream-cream);
}

.dream-action-secondary:hover,
.dream-action-secondary:focus-visible {
  border-color: var(--dream-gold);
  color: var(--dream-gold-soft);
  transform: translateY(-2px);
}

.dream-trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 25px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  color: rgba(246, 238, 228, 0.67);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
}

.dream-trust-list li::before {
  content: "·";
  margin-right: 9px;
  color: var(--dream-gold);
}

.dream-proof-note {
  position: absolute;
  z-index: 2;
  right: max(24px, calc((100vw - var(--dream-width)) / 2));
  bottom: 80px;
  width: 250px;
  padding: 18px 0 0 18px;
  border-top: 1px solid rgba(246, 238, 228, 0.5);
  border-left: 1px solid rgba(246, 238, 228, 0.5);
}

.dream-proof-note span {
  display: block;
  color: var(--dream-gold);
  font-size: 0.62rem;
  font-weight: 760;
  letter-spacing: 0.2em;
}

.dream-proof-note strong {
  display: block;
  margin-top: 8px;
  font-family: var(--dream-serif);
  font-size: 2rem;
  font-weight: 500;
}

.dream-proof-note p {
  margin: 8px 0 0;
  color: rgba(246, 238, 228, 0.7);
  font-size: 0.8rem;
  line-height: 1.62;
}

.dream-scroll-cue {
  position: absolute;
  z-index: 3;
  right: 28px;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: rgba(246, 238, 228, 0.58);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
}

.dream-scroll-cue i {
  width: 42px;
  height: 1px;
  display: block;
  position: relative;
  overflow: hidden;
  background: rgba(246, 238, 228, 0.22);
}

.dream-scroll-cue i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--dream-gold);
  animation: dream-cue 1.9s ease-in-out infinite;
}

.dream-foundation,
.dream-intake,
.dream-trajectory,
.dream-forge,
.dream-replay,
.dream-boundary,
.dream-final,
.dream-footer {
  width: min(var(--dream-width), calc(100% - 48px));
  margin-inline: auto;
}

.dream-foundation {
  padding: clamp(96px, 12vw, 170px) 0;
  border-bottom: 1px solid var(--dream-line);
}

.dream-foundation-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 54px;
  align-items: end;
}

.dream-foundation h2 {
  font-size: clamp(2.9rem, 6.1vw, 6.3rem);
}

.dream-foundation-copy > p {
  margin: 0 0 0.6em;
  color: var(--dream-muted);
  font-size: clamp(1.05rem, 1.8vw, 1.42rem);
  line-height: 1.72;
}

.dream-foundation-equation {
  display: flex;
  align-items: baseline;
  gap: 15px;
  margin-top: clamp(58px, 8vw, 100px);
  padding: 24px 0;
  border-block: 1px solid var(--dream-line);
  color: var(--dream-muted);
  font-family: var(--dream-serif);
  font-size: clamp(1.3rem, 2.7vw, 2.65rem);
}

.dream-foundation-basics {
  display: flex;
  align-items: baseline;
  gap: 15px;
}

.dream-foundation-equation i {
  color: rgba(246, 238, 228, 0.3);
  font-style: normal;
}

.dream-foundation-equation strong {
  color: var(--dream-gold-soft);
  font-weight: 500;
}

.dream-intake,
.dream-forge,
.dream-replay,
.dream-boundary {
  padding: clamp(92px, 10vw, 148px) 0;
}

.dream-section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 62px;
}

.dream-section-intro .dream-eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -22px;
}

.dream-section-intro h2,
.dream-trajectory h2,
.dream-case-copy h2,
.dream-final h2 {
  font-size: clamp(2.55rem, 4.8vw, 5rem);
}

.dream-section-intro > p:last-child,
.dream-trajectory-copy > p:last-child {
  margin: 0 0 0.4em;
  color: var(--dream-muted);
  line-height: 1.8;
}

.dream-workspace {
  max-width: 840px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  transition: max-width 240ms ease;
}

.dream-workspace.is-card-visible {
  max-width: none;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}

.dream-form,
.dream-card {
  border: 1px solid var(--dream-line);
  background: rgba(15, 20, 33, 0.88);
}

.dream-form {
  padding: clamp(26px, 4vw, 48px);
}

.dream-form-heading,
.dream-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 34px;
}

.dream-form-heading span,
.dream-card-heading > div > span {
  color: var(--dream-gold);
  font-size: 0.64rem;
  font-weight: 760;
  letter-spacing: 0.18em;
}

.dream-form-heading strong {
  max-width: 310px;
  font-family: var(--dream-serif);
  font-size: 1.42rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: right;
}

.dream-field {
  display: grid;
  gap: 10px;
}

.dream-field > span:first-child {
  color: rgba(246, 238, 228, 0.86);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.dream-field textarea,
.dream-field input,
.dream-field select {
  width: 100%;
  border: 1px solid var(--dream-line-strong);
  border-radius: 0;
  outline: none;
  background: rgba(7, 10, 18, 0.72);
  color: var(--dream-cream);
  transition: border-color 150ms ease, background 150ms ease;
}

.dream-field textarea {
  min-height: 176px;
  padding: 17px 18px;
  resize: vertical;
  line-height: 1.72;
}

.dream-field input,
.dream-field select {
  min-height: 50px;
  padding: 0 14px;
}

.dream-field textarea::placeholder,
.dream-field input::placeholder {
  color: rgba(187, 181, 175, 0.46);
}

.dream-field textarea:focus,
.dream-field input:focus,
.dream-field select:focus {
  border-color: var(--dream-gold);
  background: rgba(7, 10, 18, 0.94);
}

.dream-field-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--dream-muted-soft);
}

.dream-field-meta small {
  font-size: 0.75rem;
  line-height: 1.5;
}

.dream-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.dream-examples > span {
  width: 100%;
  margin-bottom: 2px;
  color: var(--dream-muted-soft);
  font-size: 0.75rem;
}

.dream-examples button,
.dream-card-actions button {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--dream-line);
  background: transparent;
  color: var(--dream-muted);
  cursor: pointer;
  font-size: 0.72rem;
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
}

.dream-examples button:hover,
.dream-examples button:focus-visible,
.dream-examples button[aria-pressed="true"],
.dream-card-actions button:hover,
.dream-card-actions button:focus-visible {
  border-color: var(--dream-gold);
  color: var(--dream-cream);
}

.dream-examples button[aria-pressed="true"] {
  background: rgba(236, 186, 119, 0.12);
}

.dream-field-row {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 14px;
  margin-top: 26px;
}

.dream-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  margin-top: 26px;
  color: var(--dream-muted-soft);
  font-size: 0.8rem;
  line-height: 1.7;
}

.dream-consent input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--dream-gold);
}

.dream-submit {
  width: 100%;
  min-height: 52px;
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border: 0;
  background: var(--dream-cream);
  color: var(--dream-ink);
  cursor: pointer;
  font-weight: 760;
  transition: background 160ms ease, transform 160ms ease, opacity 160ms ease;
}

.dream-submit:hover,
.dream-submit:focus-visible {
  background: var(--dream-gold-soft);
  transform: translateY(-2px);
}

.dream-submit:disabled {
  cursor: wait;
  opacity: 0.62;
  transform: none;
}

.dream-form-status,
.dream-card-note {
  margin: 13px 0 0;
  color: var(--dream-muted-soft);
  font-size: 0.76rem;
  line-height: 1.6;
}

.dream-form-status.is-error,
.dream-card-note.is-error {
  color: var(--dream-danger);
}

.dream-card {
  position: sticky;
  top: 96px;
  padding: clamp(26px, 4vw, 48px);
  border-color: rgba(213, 166, 109, 0.36);
  background:
    linear-gradient(150deg, rgba(213, 166, 109, 0.08), transparent 38%),
    var(--dream-surface-raised);
}

.dream-card-heading h3 {
  margin: 10px 0 0;
  padding-right: 0.12em;
  font-family: var(--dream-serif);
  font-size: clamp(1.6rem, 3vw, 2.45rem);
  font-weight: 500;
  line-height: 1.22;
  word-break: normal;
  overflow-wrap: break-word;
}

.dream-card-state {
  flex: 0 0 auto;
  padding: 7px 9px;
  border: 1px solid var(--dream-line-strong);
  color: var(--dream-gold-soft);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
}

.dream-card-details {
  margin: 0;
}

.dream-card-details div {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 18px;
  padding: 15px 0;
  border-top: 1px solid var(--dream-line);
}

.dream-card-details dt {
  color: var(--dream-muted-soft);
  font-size: 0.69rem;
  line-height: 1.55;
}

.dream-card-details dd {
  margin: 0;
  color: rgba(246, 238, 228, 0.9);
  font-size: 0.86rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.dream-card-route {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.dream-card-route li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  color: rgba(187, 181, 175, 0.5);
}

.dream-card-route li > span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid var(--dream-line);
  border-radius: 50%;
  font-size: 0.62rem;
}

.dream-card-route p,
.dream-card-route strong,
.dream-card-route small {
  display: block;
  margin: 0;
}

.dream-card-route strong {
  font-size: 0.79rem;
}

.dream-card-route small {
  margin-top: 3px;
  font-size: 0.66rem;
  line-height: 1.45;
}

.dream-card-route li.is-complete,
.dream-card-route li.is-active {
  color: var(--dream-cream);
}

.dream-card-route li.is-complete > span {
  border-color: var(--dream-green);
  background: rgba(168, 194, 174, 0.12);
  color: var(--dream-green);
}

.dream-card-route li.is-active > span {
  border-color: var(--dream-gold);
  color: var(--dream-gold-soft);
  box-shadow: 0 0 22px rgba(213, 166, 109, 0.2);
}

.dream-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.dream-card-actions .dream-card-primary {
  border-color: var(--dream-cream);
  background: var(--dream-cream);
  color: var(--dream-ink);
  font-weight: 740;
}

.dream-card-actions .dream-card-primary:hover,
.dream-card-actions .dream-card-primary:focus-visible {
  border-color: var(--dream-gold-soft);
  background: var(--dream-gold-soft);
  color: var(--dream-ink);
}

.dream-card-actions .dream-card-danger:hover,
.dream-card-actions .dream-card-danger:focus-visible {
  border-color: var(--dream-danger);
  color: #f0b3b3;
}

.dream-trajectory {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(64px, 9vw, 124px);
  padding: clamp(100px, 13vw, 188px) 0;
  border-block: 1px solid var(--dream-line);
}

.dream-trajectory-copy {
  position: sticky;
  top: 126px;
  align-self: start;
}

.dream-trajectory-copy h2 {
  font-size: clamp(2.8rem, 5vw, 5.1rem);
}

.dream-trajectory-copy > p:last-child {
  max-width: 470px;
  margin-top: 28px;
}

.dream-trajectory-track {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.dream-trajectory-list {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dream-trajectory-list li {
  min-height: 176px;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 2px 0 64px;
}

.dream-trajectory-list li > span {
  position: relative;
  z-index: 2;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--dream-line-strong);
  border-radius: 50%;
  background: var(--dream-ink);
  color: var(--dream-gold);
  font-family: var(--dream-serif);
  font-size: 0.85rem;
}

.dream-trajectory-list li:last-child {
  min-height: 48px;
  padding-bottom: 0;
}

.dream-trajectory-list strong {
  display: block;
  padding: 0.02em 0.14em 0.1em 0;
  font-family: var(--dream-serif);
  font-size: clamp(1.65rem, 3vw, 2.8rem);
  font-weight: 500;
  line-height: 1.2;
}

.dream-trajectory-list p {
  max-width: 520px;
  margin: 12px 0 0;
  color: var(--dream-muted);
  line-height: 1.72;
}

.dream-trajectory-line {
  position: absolute;
  z-index: 1;
  top: 26px;
  bottom: 22px;
  left: 24px;
  width: 1px;
  overflow: hidden;
  background: var(--dream-line);
}

.dream-trajectory-line span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--dream-gold), var(--dream-lavender));
  transform: scaleY(0);
  transform-origin: top center;
}

.dream-tool-list {
  border-top: 1px solid var(--dream-line);
}

.dream-tool-list article {
  display: grid;
  grid-template-columns: 160px minmax(170px, 0.5fr) minmax(320px, 1fr);
  gap: 36px;
  align-items: baseline;
  padding: 33px 18px 37px 0;
  border-bottom: 1px solid var(--dream-line);
  transition: background 180ms ease, padding 180ms ease;
}

.dream-tool-list article:hover {
  padding-left: 18px;
  padding-right: 0;
  background: rgba(246, 238, 228, 0.025);
}

.dream-tool-list article > span {
  color: var(--dream-gold);
  font-size: 0.64rem;
  font-weight: 760;
  letter-spacing: 0.16em;
}

.dream-tool-list h3 {
  margin: 0;
  font-family: var(--dream-serif);
  font-size: clamp(1.8rem, 3.4vw, 3.2rem);
  font-weight: 500;
}

.dream-tool-list p {
  margin: 0;
  color: var(--dream-muted);
  line-height: 1.72;
}

.dream-tool-list p strong {
  color: var(--dream-cream);
  font-weight: 700;
}

.dream-possibilities {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 48px 90px;
  margin-top: clamp(100px, 12vw, 170px);
  padding-top: 56px;
  border-top: 1px solid var(--dream-line);
}

.dream-possibilities .dream-eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -20px;
}

.dream-possibilities h3 {
  margin: 0;
  padding: 0.02em 0.16em 0.15em 0;
  font-family: var(--dream-serif);
  font-size: clamp(2.15rem, 4vw, 4.2rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.dream-possibilities ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--dream-line);
}

.dream-possibilities li {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 22px;
  padding: 20px 0;
  border-bottom: 1px solid var(--dream-line);
}

.dream-possibilities li span {
  color: var(--dream-gold-soft);
  font-family: var(--dream-serif);
}

.dream-possibilities li p {
  margin: 0;
  color: var(--dream-muted);
  line-height: 1.62;
}

.dream-possibilities-boundary {
  grid-column: 2;
  max-width: 700px;
  margin: -16px 0 0;
  color: var(--dream-muted-soft);
  font-size: 0.76rem;
  line-height: 1.7;
}

.dream-case {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(420px, 0.94fr);
  min-height: 830px;
  border-block: 1px solid var(--dream-line);
  background: var(--dream-surface);
}

.dream-case-visual {
  position: relative;
  min-height: 620px;
  overflow: hidden;
}

.dream-case-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.72) brightness(0.8);
  transition: transform 800ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.dream-case:hover .dream-case-visual img {
  transform: scale(1.018);
}

.dream-case-visual p {
  position: absolute;
  left: 28px;
  bottom: 20px;
  margin: 0;
  padding: 9px 11px;
  background: rgba(7, 10, 18, 0.86);
  color: rgba(246, 238, 228, 0.72);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.dream-case-copy {
  align-self: center;
  max-width: 680px;
  padding: clamp(54px, 7vw, 104px);
}

.dream-case-lead {
  margin: 24px 0 0;
  color: var(--dream-muted);
  line-height: 1.84;
}

.dream-case-facts {
  margin: 36px 0 0;
}

.dream-case-facts div {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 18px;
  padding: 15px 0;
  border-top: 1px solid var(--dream-line);
}

.dream-case-facts dt {
  color: var(--dream-gold);
  font-family: var(--dream-serif);
  font-size: 1.04rem;
}

.dream-case-facts dd {
  margin: 0;
  color: var(--dream-muted);
  line-height: 1.6;
}

.dream-case-disclaimer {
  margin: 23px 0 0;
  color: var(--dream-muted-soft);
  font-size: 0.74rem;
  line-height: 1.68;
}

.dream-boundary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--dream-line);
}

.dream-boundary-grid article {
  min-height: 285px;
  padding: 34px 28px 38px;
}

.dream-boundary-grid article + article {
  border-left: 1px solid var(--dream-line);
}

.dream-boundary-grid article > span {
  color: var(--dream-gold);
  font-family: var(--dream-serif);
  font-size: 0.82rem;
}

.dream-boundary-grid h3 {
  margin: 50px 0 17px;
  font-family: var(--dream-serif);
  font-size: clamp(1.3rem, 2.3vw, 2rem);
  font-weight: 500;
}

.dream-boundary-grid p {
  margin: 0;
  color: var(--dream-muted);
  font-size: 0.82rem;
  line-height: 1.72;
}

.dream-boundary-note {
  max-width: 820px;
  margin: 28px 0 0 auto;
  color: var(--dream-muted-soft);
  font-size: 0.76rem;
  line-height: 1.72;
  text-align: right;
}

.dream-final {
  padding: clamp(105px, 14vw, 196px) 0;
  text-align: center;
}

.dream-final .dream-eyebrow {
  margin-bottom: 18px;
}

.dream-final h2 {
  margin-inline: auto;
}

.dream-final > p:not(.dream-eyebrow) {
  max-width: 650px;
  margin: 24px auto 0;
  color: var(--dream-muted);
  line-height: 1.8;
}

.dream-final .dream-actions {
  justify-content: center;
}

/* 2026-07-25 · Dream Replay future vision */

.dream-replay {
  border-block: 1px solid var(--dream-line);
  background:
    radial-gradient(circle at 76% 32%, rgba(139, 117, 220, 0.16), transparent 27%),
    radial-gradient(circle at 20% 76%, rgba(213, 166, 109, 0.08), transparent 24%);
}

.dream-replay-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 16px 54px;
  align-items: end;
  margin-bottom: clamp(46px, 7vw, 88px);
}

.dream-replay-copy .dream-eyebrow,
.dream-replay-copy h2,
.dream-replay-status {
  grid-column: 1;
}

.dream-replay-status {
  width: max-content;
  padding: 7px 10px;
  border: 1px solid rgba(213, 166, 109, 0.46);
  color: var(--dream-gold-soft);
  font-size: 0.66rem;
  font-weight: 760;
  letter-spacing: 0.12em;
}

.dream-replay-copy h2 {
  margin: 0;
  font-family: var(--dream-serif);
  font-size: clamp(3.6rem, 8vw, 8rem);
  font-weight: 500;
  line-height: 0.98;
}

.dream-replay-lead,
.dream-replay-copy > p:last-child {
  grid-column: 2;
  margin: 0;
}

.dream-replay-lead {
  align-self: end;
  color: var(--dream-cream);
  font-family: var(--dream-serif);
  font-size: clamp(1.5rem, 2.5vw, 2.4rem);
  line-height: 1.35;
}

.dream-replay-copy > p:last-child {
  color: var(--dream-muted);
  font-size: 0.95rem;
  line-height: 1.85;
}

.dream-replay-visual {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  min-height: 540px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(195, 182, 221, 0.24);
  background: #080c17;
}

.dream-replay-sleeper {
  position: relative;
  overflow: hidden;
  border-right: 1px solid var(--dream-line);
  background:
    linear-gradient(145deg, rgba(195, 182, 221, 0.09), transparent 48%),
    #0b101c;
}

.dream-replay-head {
  position: absolute;
  z-index: 2;
  top: 39%;
  left: 31%;
  width: 26%;
  aspect-ratio: 0.86;
  border: 1px solid rgba(246, 238, 228, 0.68);
  border-radius: 48% 48% 46% 50%;
  transform: rotate(11deg);
  box-shadow: 0 0 55px rgba(195, 182, 221, 0.12);
}

.dream-replay-head::before,
.dream-replay-head::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(195, 182, 221, 0.26);
  border-radius: 50%;
}

.dream-replay-head::before {
  inset: 13%;
}

.dream-replay-head::after {
  inset: -24%;
}

.dream-replay-pillow {
  position: absolute;
  top: 57%;
  left: 9%;
  width: 67%;
  height: 20%;
  border-radius: 50%;
  background: linear-gradient(160deg, rgba(246, 238, 228, 0.13), rgba(246, 238, 228, 0.02));
  filter: blur(2px);
  transform: rotate(-5deg);
}

.dream-replay-sleeper svg {
  position: absolute;
  z-index: 3;
  top: 19%;
  left: 8%;
  width: 84%;
  height: 90px;
  overflow: visible;
}

.dream-replay-sleeper path {
  fill: none;
  stroke: var(--dream-gold-soft);
  stroke-dasharray: 7 8;
  stroke-linecap: round;
  stroke-width: 2;
  animation: dream-replay-signal 7s linear infinite;
}

.dream-replay-sleeper small {
  position: absolute;
  bottom: 30px;
  left: 30px;
  color: var(--dream-muted-soft);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
}

.dream-replay-scene {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(61, 62, 115, 0.42), transparent 54%),
    linear-gradient(155deg, #11172a, #080b13 72%);
}

.dream-replay-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 9.8%, rgba(255, 255, 255, 0.022) 10%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 78%);
}

.dream-replay-moon {
  position: absolute;
  top: 12%;
  right: 14%;
  width: 13%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #eee1ca;
  box-shadow: 0 0 80px rgba(232, 200, 158, 0.32);
}

.dream-replay-horizon {
  position: absolute;
  right: -8%;
  bottom: 24%;
  left: -5%;
  height: 42%;
  background:
    linear-gradient(146deg, transparent 0 23%, #171c2c 23.4% 46%, transparent 46.5%),
    linear-gradient(215deg, transparent 0 24%, #0e1422 24.5% 58%, transparent 58.5%),
    linear-gradient(170deg, transparent 0 36%, #090e18 36.5% 100%);
}

.dream-replay-door {
  position: absolute;
  z-index: 2;
  right: 30%;
  bottom: 24%;
  width: 13%;
  height: 38%;
  border: 1px solid rgba(246, 238, 228, 0.68);
  background: linear-gradient(180deg, rgba(232, 200, 158, 0.9), rgba(213, 166, 109, 0.28));
  box-shadow: 0 0 80px rgba(213, 166, 109, 0.28);
}

.dream-replay-person {
  position: absolute;
  z-index: 3;
  right: 45%;
  bottom: 21%;
  width: 3.2%;
  height: 15%;
  border-radius: 45% 45% 14% 14%;
  background: #05070c;
}

.dream-replay-person::before {
  content: "";
  position: absolute;
  top: -24%;
  left: 12%;
  width: 76%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #05070c;
}

.dream-replay-scan {
  position: absolute;
  z-index: 4;
  top: 0;
  bottom: 0;
  width: 18%;
  background: linear-gradient(90deg, transparent, rgba(195, 182, 221, 0.12), transparent);
  transform: translateX(-120%);
  animation: dream-replay-scan 8s ease-in-out infinite;
}

.dream-replay-caption {
  position: absolute;
  z-index: 5;
  right: 28px;
  bottom: 28px;
  left: 28px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(246, 238, 228, 0.34);
}

.dream-replay-caption small {
  color: var(--dream-gold-soft);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
}

.dream-replay-caption strong {
  color: rgba(246, 238, 228, 0.86);
  font-family: var(--dream-serif);
  font-size: clamp(0.9rem, 1.5vw, 1.18rem);
  font-weight: 500;
}

.dream-replay-visual figcaption {
  position: absolute;
  z-index: 6;
  top: 24px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  background: rgba(7, 10, 18, 0.68);
  backdrop-filter: blur(10px);
  color: rgba(246, 238, 228, 0.76);
  font-size: 0.64rem;
  letter-spacing: 0.07em;
}

.dream-replay-visual figcaption i {
  width: 18px;
  height: 1px;
  background: rgba(213, 166, 109, 0.64);
}

.dream-replay-path {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 34px 0 0;
  list-style: none;
}

.dream-replay-path li {
  min-width: 0;
  padding: 0 24px 4px;
  border-left: 1px solid var(--dream-line);
}

.dream-replay-path li:first-child {
  padding-left: 0;
  border-left: 0;
}

.dream-replay-path span,
.dream-replay-path strong {
  display: block;
}

.dream-replay-path span {
  margin-bottom: 26px;
  color: var(--dream-gold);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
}

.dream-replay-path strong {
  margin-bottom: 9px;
  font-family: var(--dream-serif);
  font-size: 1.35rem;
  font-weight: 500;
}

.dream-replay-path p {
  margin: 0;
  color: var(--dream-muted);
  font-size: 0.78rem;
  line-height: 1.7;
}

.dream-replay-boundary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(64px, 9vw, 112px);
  border-block: 1px solid var(--dream-line);
}

.dream-replay-boundary > div {
  min-width: 0;
  padding: 34px 40px 38px 0;
}

.dream-replay-boundary > div + div {
  padding-right: 0;
  padding-left: 40px;
  border-left: 1px solid var(--dream-line);
}

.dream-replay-boundary h3 {
  margin: 12px 0 14px;
  font-family: var(--dream-serif);
  font-size: clamp(1.45rem, 2.2vw, 2.1rem);
  font-weight: 500;
}

.dream-replay-boundary p:last-child,
.dream-replay-principle p {
  margin: 0;
  color: var(--dream-muted);
  font-size: 0.82rem;
  line-height: 1.78;
}

.dream-replay-principle {
  display: grid;
  grid-template-columns: minmax(250px, 0.7fr) minmax(0, 1.3fr);
  gap: 36px;
  align-items: baseline;
  padding: 34px 0;
  border-bottom: 1px solid var(--dream-line);
}

.dream-replay-principle strong {
  color: var(--dream-gold-soft);
  font-family: var(--dream-serif);
  font-size: clamp(1.3rem, 2vw, 1.9rem);
  font-weight: 500;
}

.dream-replay-research {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  align-items: center;
  padding-top: 24px;
  color: var(--dream-muted-soft);
  font-size: 0.68rem;
}

.dream-replay-research > span {
  color: var(--dream-gold);
  font-weight: 760;
  letter-spacing: 0.1em;
}

.dream-replay-research a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-underline-offset: 4px;
}

.dream-replay-research a:hover,
.dream-replay-research a:focus-visible {
  color: var(--dream-cream);
}

@keyframes dream-replay-signal {
  to { stroke-dashoffset: -120; }
}

@keyframes dream-replay-scan {
  0%, 18% { transform: translateX(-120%); opacity: 0; }
  30% { opacity: 1; }
  72% { opacity: 0.74; }
  88%, 100% { transform: translateX(660%); opacity: 0; }
}

.dream-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 28px;
  padding: 32px 0 38px;
  border-top: 1px solid var(--dream-line);
  color: var(--dream-muted-soft);
  font-size: 0.73rem;
}

.dream-footer p {
  margin: 0;
}

.dream-progress {
  position: fixed;
  z-index: 40;
  inset: 0 0 auto;
  height: 2px;
  pointer-events: none;
}

.dream-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--dream-gold), var(--dream-lavender));
  transform: scaleX(0);
  transform-origin: left center;
}

.dream-reveal {
  opacity: 0;
  transition: opacity 420ms ease;
}

.dream-reveal.is-visible {
  opacity: 1;
}

:focus-visible {
  outline: 2px solid var(--dream-gold);
  outline-offset: 4px;
}

@keyframes dream-cue {
  0% {
    transform: translateX(-100%);
  }
  48%,
  100% {
    transform: translateX(100%);
  }
}

@media (max-width: 1080px) {
  .dream-proof-note {
    display: none;
  }

  .dream-section-intro,
  .dream-foundation-copy,
  .dream-trajectory,
  .dream-case,
  .dream-possibilities {
    grid-template-columns: 1fr;
  }

  .dream-workspace.is-card-visible {
    grid-template-columns: 1fr;
  }

  .dream-card {
    position: static;
  }

  .dream-trajectory-copy {
    position: static;
  }

  .dream-trajectory-copy > p:last-child {
    max-width: 720px;
  }

  .dream-possibilities .dream-eyebrow,
  .dream-possibilities-boundary {
    grid-column: 1;
  }

  .dream-case-copy {
    max-width: none;
  }

  .dream-case-visual {
    min-height: min(64vw, 680px);
  }

  .dream-boundary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dream-boundary-grid article:nth-child(3) {
    border-left: 0;
  }

  .dream-boundary-grid article:nth-child(n + 3) {
    border-top: 1px solid var(--dream-line);
  }
}

@media (max-width: 820px) {
  html {
    scroll-padding-top: 112px;
  }

  .dream-header-inner,
  .dream-hero-content,
  .dream-foundation,
  .dream-intake,
  .dream-trajectory,
  .dream-forge,
  .dream-replay,
  .dream-boundary,
  .dream-final,
  .dream-footer {
    width: min(100% - 32px, var(--dream-width));
  }

  .dream-header-inner {
    min-height: 102px;
    grid-template-columns: 1fr auto;
    grid-template-rows: 58px 36px;
    gap: 0 14px;
  }

  .dream-brand img {
    width: 102px;
  }

  .dream-brand span {
    display: none;
  }

  .dream-header-action {
    grid-column: 2;
    grid-row: 1;
    min-height: 44px;
    padding: 0 10px;
    font-size: 0.78rem;
  }

  .dream-header-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    gap: 21px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
  }

  .dream-header-nav::-webkit-scrollbar {
    display: none;
  }

  .dream-header-nav a {
    flex: 0 0 auto;
    font-size: 0.78rem;
  }

  .dream-hero {
    min-height: max(700px, 100svh);
  }

  .dream-hero-image {
    object-position: 64% center;
  }

  .dream-hero-shade {
    background:
      linear-gradient(90deg, rgba(4, 6, 11, 0.93) 0%, rgba(5, 8, 14, 0.66) 66%, rgba(5, 8, 14, 0.24) 100%),
      linear-gradient(180deg, rgba(5, 7, 12, 0.45) 0%, rgba(5, 7, 12, 0.2) 48%, rgba(5, 7, 12, 0.9) 100%);
  }

  .dream-hero-content {
    padding: 150px 0 52px;
  }

  .dream-hero h1 {
    max-width: 100%;
    font-size: clamp(2.15rem, 9.3vw, 2.85rem);
    letter-spacing: -0.04em;
    line-height: 1.1;
  }

  .dream-hero h1 > span {
    display: block;
  }

  .dream-hero-lead {
    max-width: 36rem;
    font-size: 0.94rem;
    line-height: 1.72;
  }

  .dream-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .dream-action-primary,
  .dream-action-secondary {
    width: 100%;
  }

  .dream-trust-list {
    gap: 8px 16px;
    margin-top: 24px;
    font-size: 0.68rem;
  }

  .dream-scroll-cue {
    display: none;
  }

  .dream-foundation {
    padding: 88px 0;
  }

  .dream-foundation h2 {
    font-size: clamp(2.75rem, 13vw, 4rem);
  }

  .dream-foundation-copy {
    gap: 20px;
  }

  .dream-foundation-copy > p {
    max-width: 26rem;
  }

  .dream-foundation-equation {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 60px;
    font-size: 1.45rem;
  }

  .dream-foundation-basics {
    justify-content: space-between;
    width: 100%;
    gap: 8px;
  }

  .dream-foundation-arrow {
    transform: rotate(90deg);
  }

  .dream-foundation-equation strong {
    text-align: center;
    font-size: 2.2rem;
  }

  .dream-intake,
  .dream-forge,
  .dream-replay,
  .dream-boundary {
    padding: 88px 0;
  }

  .dream-section-intro {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 44px;
  }

  .dream-section-intro .dream-eyebrow {
    grid-column: 1;
    margin-bottom: 0;
  }

  .dream-section-intro h2,
  .dream-trajectory h2,
  .dream-case-copy h2,
  .dream-final h2 {
    font-size: clamp(2.35rem, 11.5vw, 3.7rem);
  }

  .dream-form,
  .dream-card {
    padding: 26px 20px;
  }

  .dream-form-heading {
    display: block;
  }

  .dream-form-heading strong {
    display: block;
    max-width: none;
    margin-top: 9px;
    text-align: left;
  }

  .dream-field-row {
    grid-template-columns: 1fr;
  }

  .dream-field-meta {
    display: grid;
    gap: 3px;
  }

  .dream-card-heading {
    display: grid;
  }

  .dream-card-state {
    width: max-content;
  }

  .dream-card-details div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .dream-card-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .dream-card-actions button {
    min-height: 44px;
  }

  .dream-trajectory {
    gap: 58px;
    padding: 92px 0;
  }

  .dream-trajectory-list li {
    min-height: 165px;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 16px;
  }

  .dream-trajectory-list li > span {
    width: 40px;
    height: 40px;
  }

  .dream-trajectory-list li:last-child {
    min-height: 40px;
  }

  .dream-trajectory-line {
    top: 22px;
    bottom: 18px;
    left: 20px;
  }

  .dream-tool-list article {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 28px 0 31px;
  }

  .dream-tool-list article:hover {
    padding-left: 0;
    padding-right: 0;
    background: transparent;
  }

  .dream-possibilities {
    gap: 30px;
    margin-top: 96px;
    padding-top: 44px;
  }

  .dream-possibilities .dream-eyebrow {
    margin-bottom: -8px;
  }

  .dream-possibilities h3 {
    font-size: clamp(2.2rem, 10.5vw, 3.35rem);
  }

  .dream-possibilities li {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .dream-possibilities-boundary {
    margin-top: 0;
  }

  .dream-case-visual {
    min-height: 390px;
  }

  .dream-case-visual img {
    object-position: 58% center;
  }

  .dream-case-visual p {
    left: 16px;
    right: 16px;
    bottom: 14px;
  }

  .dream-case-copy {
    padding: 62px 16px;
  }

  .dream-case-facts div {
    grid-template-columns: 92px 1fr;
    gap: 12px;
  }

  .dream-boundary-grid {
    grid-template-columns: 1fr;
  }

  .dream-boundary-grid article,
  .dream-boundary-grid article:nth-child(3) {
    min-height: 0;
    border-top: 1px solid var(--dream-line);
    border-left: 0;
    padding: 28px 0 34px;
  }

  .dream-boundary-grid article:first-child {
    border-top: 0;
  }

  .dream-boundary-grid h3 {
    margin-top: 24px;
  }

  .dream-boundary-note {
    text-align: left;
  }

  .dream-final {
    text-align: left;
  }

  .dream-final > p:not(.dream-eyebrow) {
    margin-left: 0;
  }

  .dream-final .dream-actions {
    justify-content: initial;
  }

  .dream-replay-copy,
  .dream-replay-boundary,
  .dream-replay-principle {
    grid-template-columns: 1fr;
  }

  .dream-replay-copy .dream-eyebrow,
  .dream-replay-copy h2,
  .dream-replay-status,
  .dream-replay-lead,
  .dream-replay-copy > p:last-child {
    grid-column: 1;
  }

  .dream-replay-copy h2 {
    font-size: clamp(3.5rem, 18vw, 6.2rem);
  }

  .dream-replay-visual {
    grid-template-columns: 1fr;
    min-height: 720px;
  }

  .dream-replay-sleeper {
    min-height: 280px;
    border-right: 0;
    border-bottom: 1px solid var(--dream-line);
  }

  .dream-replay-scene {
    min-height: 440px;
  }

  .dream-replay-path {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 34px;
  }

  .dream-replay-path li:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .dream-replay-boundary > div,
  .dream-replay-boundary > div + div {
    padding: 30px 0;
    border-left: 0;
  }

  .dream-replay-boundary > div + div {
    border-top: 1px solid var(--dream-line);
  }

  .dream-replay-principle {
    gap: 14px;
  }

  .dream-footer {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* 2026-07-24 · Action-board progress return */

.dream-progress-feedback {
  display: grid;
  gap: 14px;
  margin-top: 10px;
  padding-top: 22px;
  border-top: 1px solid var(--dream-line);
}

.dream-progress-feedback-heading span,
.dream-progress-preview > div > span,
.dream-progress-latest > div > span {
  color: var(--dream-gold);
  font-size: 0.75rem;
  font-weight: 740;
  letter-spacing: 0.1em;
}

.dream-progress-feedback h5,
.dream-progress-feedback h6 {
  margin: 5px 0 0;
  color: var(--dream-cream);
  font-size: 0.9rem;
  font-weight: 650;
}

.dream-progress-feedback > p,
.dream-progress-feedback-status,
.dream-progress-file small,
.dream-progress-latest small {
  margin: 0;
  color: var(--dream-muted-soft);
  font-size: 0.75rem;
  line-height: 1.6;
}

.dream-progress-file {
  display: grid;
  gap: 8px;
  padding: 13px;
  border: 1px solid var(--dream-line);
  background: rgba(255, 255, 255, 0.018);
}

.dream-progress-file > span {
  color: rgba(246, 238, 228, 0.88);
  font-size: 0.78rem;
  font-weight: 650;
}

.dream-progress-file input {
  width: 100%;
  min-height: 44px;
  padding: 7px;
  border: 1px solid var(--dream-line-strong);
  background: rgba(7, 10, 18, 0.75);
  color: var(--dream-cream);
  cursor: pointer;
  font-size: 0.75rem;
}

.dream-progress-file input:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.dream-progress-preview,
.dream-progress-latest {
  display: grid;
  gap: 13px;
  padding: 14px;
  border: 1px solid rgba(213, 166, 109, 0.34);
  background: rgba(213, 166, 109, 0.055);
}

.dream-progress-preview dl {
  display: grid;
  gap: 0;
  margin: 0;
}

.dream-progress-preview dl > div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--dream-line);
}

.dream-progress-preview dt,
.dream-progress-preview dd {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.dream-progress-preview dt {
  color: var(--dream-muted-soft);
}

.dream-progress-preview dd {
  color: rgba(246, 238, 228, 0.9);
}

.dream-progress-preview-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr);
  gap: 8px;
}

.dream-progress-preview-actions button,
.dream-progress-latest button {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--dream-gold);
  background: rgba(213, 166, 109, 0.13);
  color: var(--dream-gold-soft);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
}

.dream-progress-preview-actions button.is-secondary {
  border-color: var(--dream-line-strong);
  background: transparent;
  color: var(--dream-muted);
}

.dream-progress-preview-actions button:hover:not(:disabled),
.dream-progress-preview-actions button:focus-visible:not(:disabled),
.dream-progress-latest button:hover:not(:disabled),
.dream-progress-latest button:focus-visible:not(:disabled) {
  border-color: var(--dream-gold-soft);
  background: rgba(213, 166, 109, 0.2);
}

.dream-progress-preview-actions button:disabled,
.dream-progress-latest button:disabled {
  cursor: wait;
  opacity: 0.45;
}

.dream-progress-latest {
  border-color: rgba(168, 194, 174, 0.34);
  background: rgba(168, 194, 174, 0.055);
}

.dream-progress-latest > p {
  margin: 0;
  color: rgba(246, 238, 228, 0.9);
  font-size: 0.78rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.dream-progress-feedback-status {
  min-height: 1.5em;
}

.dream-progress-feedback-status.is-error {
  color: var(--dream-danger);
}

@media (max-width: 620px) {
  .dream-progress-preview-actions {
    grid-template-columns: 1fr;
  }

  .dream-progress-preview dl > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 390px) {
  .dream-hero h1 {
    font-size: clamp(2.05rem, 9.1vw, 2.25rem);
  }

  .dream-hero-lead {
    font-size: 0.88rem;
  }

  .dream-trust-list {
    display: grid;
  }
}

/* 2026-07-23 · Wallet account and explicit local-to-account merge */

.dream-account-dialog {
  width: min(760px, calc(100vw - 32px));
  max-height: min(860px, calc(100svh - 32px));
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(213, 166, 109, 0.34);
  border-radius: 2px;
  background:
    radial-gradient(circle at 82% 2%, rgba(126, 94, 221, 0.14), transparent 38%),
    #0a0d16;
  color: var(--dream-cream);
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.64);
}

.dream-account-dialog::backdrop {
  background: rgba(2, 4, 9, 0.78);
  backdrop-filter: blur(14px);
}

.dream-account-shell {
  display: grid;
  gap: 25px;
  padding: clamp(24px, 4.5vw, 44px);
}

.dream-account-shell > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 26px;
}

.dream-account-shell > header span,
.dream-sync-preview > div > span {
  color: var(--dream-gold);
  font-size: 0.61rem;
  font-weight: 760;
  letter-spacing: 0.2em;
}

.dream-account-shell > header h2 {
  max-width: 620px;
  margin: 10px 0 0;
  font-family: var(--dream-serif);
  font-size: clamp(2.15rem, 5vw, 3.8rem);
  font-weight: 450;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.dream-account-shell > header > button {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--dream-line-strong);
  background: transparent;
  color: var(--dream-muted);
  cursor: pointer;
  font-size: 1.45rem;
  line-height: 1;
}

.dream-account-shell > header > button:hover,
.dream-account-shell > header > button:focus-visible {
  border-color: var(--dream-gold);
  color: var(--dream-cream);
}

.dream-account-summary {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  border-block: 1px solid var(--dream-line);
  background: rgba(255, 255, 255, 0.018);
}

.dream-account-summary > span {
  color: var(--dream-muted-soft);
  font-size: 0.65rem;
}

.dream-account-summary > strong {
  overflow-wrap: anywhere;
  color: var(--dream-gold-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
  font-weight: 560;
}

.dream-account-summary > p,
.dream-sync-preview > p,
.dream-account-status {
  margin: 0;
  color: var(--dream-muted);
  font-size: 0.78rem;
  line-height: 1.72;
}

.dream-sync-preview {
  display: grid;
  gap: 15px;
}

.dream-sync-preview h3 {
  margin: 6px 0 0;
  font-size: 1.1rem;
  font-weight: 620;
}

.dream-sync-preview ul {
  display: grid;
  gap: 1px;
  max-height: 270px;
  margin: 0;
  padding: 0;
  overflow: auto;
  list-style: none;
  background: var(--dream-line);
}

.dream-sync-preview li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 18px;
  padding: 14px 16px;
  background: #0c101a;
}

.dream-sync-preview li strong {
  min-width: 0;
  overflow: hidden;
  font-size: 0.82rem;
  font-weight: 590;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dream-sync-preview li span {
  color: var(--dream-gold-soft);
  font-size: 0.65rem;
}

.dream-sync-preview li small {
  grid-column: 1 / -1;
  color: var(--dream-muted-soft);
  font-size: 0.68rem;
}

.dream-sync-preview li.is-existing span {
  color: var(--dream-muted-soft);
}

.dream-sync-preview li.is-conflict {
  background: rgba(213, 166, 109, 0.07);
}

.dream-sync-note {
  padding-left: 14px;
  border-left: 1px solid var(--dream-gold);
}

.dream-account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.dream-account-actions button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--dream-line-strong);
  background: transparent;
  color: var(--dream-cream);
  cursor: pointer;
  font-size: 0.7rem;
}

.dream-account-actions button:hover:not(:disabled),
.dream-account-actions button:focus-visible:not(:disabled) {
  border-color: var(--dream-gold);
  color: var(--dream-gold-soft);
}

.dream-account-actions .dream-account-primary {
  border-color: var(--dream-cream);
  background: var(--dream-cream);
  color: #080b12;
  font-weight: 720;
}

.dream-account-actions .dream-account-primary:hover:not(:disabled),
.dream-account-actions .dream-account-primary:focus-visible:not(:disabled) {
  border-color: var(--dream-gold-soft);
  background: var(--dream-gold-soft);
  color: #080b12;
}

.dream-account-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.36;
}

.dream-account-status {
  min-height: 1.5em;
}

.dream-account-status.is-error {
  color: var(--dream-danger);
}

@media (max-width: 620px) {
  .dream-account-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100svh - 16px);
  }

  .dream-account-shell {
    gap: 20px;
    padding: 22px 17px 24px;
  }

  .dream-account-shell > header {
    position: relative;
    display: block;
    padding-right: 42px;
  }

  .dream-account-shell > header h2 {
    font-size: clamp(2rem, 9.2vw, 2.25rem);
  }

  .dream-account-shell > header > button {
    position: absolute;
    top: 0;
    right: 0;
    width: 38px;
    height: 38px;
  }

  .dream-sync-preview li {
    grid-template-columns: 1fr;
  }

  .dream-sync-preview li span,
  .dream-sync-preview li small {
    grid-column: 1;
  }

  .dream-account-actions {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .dream-reveal {
    opacity: 1;
    transform: none;
  }
}

/* 2026-07-23 · Dream workspace */

.dream-hero {
  min-height: max(690px, 100svh);
  align-items: flex-start;
}

.dream-hero-content {
  padding: clamp(132px, 14svh, 210px) 0 64px;
}

.dream-hero h1 {
  max-width: 1180px;
  font-size: clamp(3.35rem, 6vw, 7.2rem);
}

.dream-hero-lead {
  max-width: 780px;
  font-size: clamp(1rem, 1.2vw, 1.28rem);
}

.dream-trust-note {
  margin: 25px 0 0;
  color: rgba(246, 238, 228, 0.64);
  font-size: 0.76rem;
  letter-spacing: 0.035em;
}

.dream-trust-note::before {
  content: "·";
  margin-right: 9px;
  color: var(--dream-gold);
}

.dream-intake {
  width: min(1460px, calc(100% - 48px));
}

.dream-workbench {
  min-height: 790px;
  display: grid;
  grid-template-columns: minmax(230px, 270px) minmax(480px, 1fr) minmax(300px, 360px);
  align-items: stretch;
  border-block: 1px solid var(--dream-line);
  background:
    linear-gradient(145deg, rgba(213, 166, 109, 0.035), transparent 34%),
    rgba(10, 14, 24, 0.78);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.24);
}

.dream-rail,
.dream-chat,
.dream-inspector {
  min-width: 0;
}

.dream-rail {
  display: flex;
  flex-direction: column;
  padding: 25px 18px 20px;
  border-right: 1px solid var(--dream-line);
  background: rgba(7, 10, 18, 0.72);
}

.dream-rail-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.dream-rail-heading > div {
  display: grid;
  gap: 5px;
}

.dream-rail-heading span,
.dream-inspector-empty > span {
  color: var(--dream-gold);
  font-size: 0.58rem;
  font-weight: 760;
  letter-spacing: 0.18em;
}

.dream-rail-heading strong {
  font-family: var(--dream-serif);
  font-size: 1.32rem;
  font-weight: 500;
}

.dream-rail-heading button,
.dream-local-identity button,
.dream-export-all {
  min-height: 40px;
  border: 1px solid var(--dream-line-strong);
  background: transparent;
  color: var(--dream-cream);
  cursor: pointer;
  font-size: 0.7rem;
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
}

.dream-rail-heading button {
  padding: 0 10px;
}

.dream-rail-heading button:hover,
.dream-rail-heading button:focus-visible,
.dream-local-identity button:hover,
.dream-local-identity button:focus-visible,
.dream-export-all:hover:not(:disabled),
.dream-export-all:focus-visible:not(:disabled) {
  border-color: var(--dream-gold);
  color: var(--dream-gold-soft);
  background: rgba(213, 166, 109, 0.06);
}

.dream-local-identity {
  display: grid;
  gap: 7px;
  margin: 22px 0 18px;
  padding: 15px 0 17px;
  border-block: 1px solid var(--dream-line);
}

.dream-local-identity > span {
  color: var(--dream-muted-soft);
  font-size: 0.62rem;
}

.dream-local-identity > strong {
  color: rgba(246, 238, 228, 0.88);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  font-weight: 550;
  letter-spacing: 0.03em;
}

.dream-local-identity button {
  width: 100%;
  margin-top: 5px;
}

.dream-local-identity small {
  color: var(--dream-muted-soft);
  font-size: 0.62rem;
  line-height: 1.5;
}

.dream-local-identity small.is-error {
  color: var(--dream-danger);
}

.dream-list {
  min-height: 0;
  display: grid;
  gap: 4px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(213, 166, 109, 0.34) transparent;
}

.dream-list-row {
  min-width: 0;
}

.dream-list-item {
  width: 100%;
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: 14px 11px 13px;
  border: 0;
  border-left: 2px solid transparent;
  background: transparent;
  color: var(--dream-cream);
  cursor: pointer;
  text-align: left;
  transition: border-color 150ms ease, background 150ms ease;
}

.dream-list-item:hover,
.dream-list-item:focus-visible {
  background: rgba(246, 238, 228, 0.045);
}

.dream-list-item[aria-current="true"] {
  border-left-color: var(--dream-gold);
  background: rgba(213, 166, 109, 0.075);
}

.dream-list-item.is-archived {
  opacity: 0.55;
}

.dream-list-item-heading,
.dream-list-item-meta {
  min-width: 0;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.dream-list-item-heading strong {
  min-width: 0;
  overflow: hidden;
  font-size: 0.77rem;
  font-weight: 690;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dream-list-item-heading small,
.dream-list-item-meta {
  color: var(--dream-muted-soft);
  font-size: 0.59rem;
}

.dream-list-item-heading small {
  flex: 0 0 auto;
}

.dream-list-progress {
  height: 2px;
  overflow: hidden;
  background: rgba(246, 238, 228, 0.08);
}

.dream-list-progress i {
  width: 100%;
  height: 100%;
  display: block;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--dream-gold);
  transition: transform 240ms ease;
}

.dream-list-empty {
  margin: auto 0;
  padding: 28px 12px;
  color: var(--dream-muted-soft);
}

.dream-list-empty strong {
  color: rgba(246, 238, 228, 0.8);
  font-family: var(--dream-serif);
  font-size: 1.1rem;
  font-weight: 500;
}

.dream-list-empty p {
  margin: 7px 0 0;
  font-size: 0.7rem;
  line-height: 1.6;
}

.dream-export-all {
  width: 100%;
  margin-top: auto;
}

.dream-export-all:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.dream-chat {
  display: flex;
  flex-direction: column;
  background: rgba(12, 16, 27, 0.66);
}

.dream-chat-heading {
  min-height: 102px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 25px 28px 22px;
  border-bottom: 1px solid var(--dream-line);
}

.dream-chat-heading > div {
  min-width: 0;
}

.dream-chat-heading span:first-child {
  display: block;
  color: var(--dream-gold);
  font-size: 0.58rem;
  font-weight: 760;
  letter-spacing: 0.15em;
}

.dream-chat-heading h3 {
  max-width: 650px;
  margin: 8px 0 0;
  overflow-wrap: anywhere;
  font-family: var(--dream-serif);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  font-weight: 500;
  line-height: 1.26;
}

.dream-chat-heading p {
  margin: 6px 0 0;
  color: var(--dream-muted-soft);
  font-size: 0.68rem;
  line-height: 1.55;
}

.dream-local-badge {
  flex: 0 0 auto;
  padding: 7px 8px;
  border: 1px solid var(--dream-line);
  color: var(--dream-muted-soft) !important;
  font-size: 0.57rem !important;
  font-weight: 650 !important;
  letter-spacing: 0.06em !important;
}

.dream-message-list {
  min-height: 236px;
  max-height: 405px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 28px;
  scroll-behavior: auto;
}

.dream-workbench.has-active-dream .dream-message-list {
  min-height: 500px;
  max-height: 620px;
}

.dream-message {
  width: min(88%, 680px);
  display: grid;
  gap: 7px;
}

.dream-message.is-user {
  align-self: flex-end;
  padding: 14px 16px;
  background: rgba(246, 238, 228, 0.075);
}

.dream-message.is-assistant {
  align-self: flex-start;
  padding-left: 16px;
  border-left: 1px solid rgba(213, 166, 109, 0.56);
}

.dream-message > span {
  color: var(--dream-gold);
  font-size: 0.57rem;
  font-weight: 720;
  letter-spacing: 0.08em;
}

.dream-message p {
  margin: 0;
  color: rgba(246, 238, 228, 0.88);
  font-size: 0.83rem;
  line-height: 1.75;
}

.dream-message time {
  color: rgba(187, 181, 175, 0.48);
  font-size: 0.56rem;
}

.dream-chat .dream-form {
  margin-top: auto;
  padding: 26px 28px 30px;
  border: 0;
  border-top: 1px solid var(--dream-line);
  background: rgba(7, 10, 18, 0.38);
}

.dream-chat .dream-form-heading {
  margin-bottom: 22px;
}

.dream-chat .dream-field textarea {
  min-height: 138px;
}

.dream-chat .dream-examples {
  margin-top: 16px;
}

.dream-chat .dream-field-row,
.dream-chat .dream-consent {
  margin-top: 20px;
}

.dream-composer {
  margin-top: auto;
  padding: 20px 24px 22px;
  border-top: 1px solid var(--dream-line);
  background: rgba(7, 10, 18, 0.54);
}

.dream-composer > label {
  display: block;
  margin-bottom: 9px;
  color: var(--dream-muted-soft);
  font-size: 0.66rem;
}

.dream-composer > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.dream-composer textarea {
  width: 100%;
  min-height: 64px;
  max-height: 180px;
  padding: 13px 14px;
  resize: vertical;
  border: 1px solid var(--dream-line-strong);
  outline: none;
  background: rgba(7, 10, 18, 0.84);
  color: var(--dream-cream);
  line-height: 1.55;
}

.dream-composer textarea:focus {
  border-color: var(--dream-gold);
}

.dream-composer button {
  min-width: 74px;
  border: 0;
  background: var(--dream-cream);
  color: var(--dream-ink);
  cursor: pointer;
  font-weight: 720;
}

.dream-composer button:hover,
.dream-composer button:focus-visible {
  background: var(--dream-gold-soft);
}

.dream-composer p {
  margin: 8px 0 0;
  color: var(--dream-muted-soft);
  font-size: 0.6rem;
  line-height: 1.5;
}

.dream-composer p.is-error {
  color: var(--dream-danger);
}

.dream-inspector {
  min-height: 100%;
  border-left: 1px solid var(--dream-line);
  background: rgba(7, 10, 18, 0.44);
}

.dream-inspector-empty {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 10px;
  padding: 30px 26px;
}

.dream-inspector-empty strong {
  font-family: var(--dream-serif);
  font-size: 1.35rem;
  font-weight: 500;
}

.dream-inspector-empty p {
  margin: 0;
  color: var(--dream-muted-soft);
  font-size: 0.72rem;
  line-height: 1.65;
}

.dream-inspector .dream-card {
  top: 88px;
  max-height: calc(100svh - 104px);
  overflow-y: auto;
  padding: 26px 24px 30px;
  border: 0;
  background:
    linear-gradient(150deg, rgba(213, 166, 109, 0.055), transparent 28%),
    transparent;
}

.dream-inspector .dream-card-heading {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}

.dream-inspector .dream-card-heading h3 {
  padding-right: 0;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
}

.dream-inspector .dream-card-state {
  width: max-content;
}

.dream-card-progress {
  padding: 15px 0 18px;
  border-block: 1px solid var(--dream-line);
}

.dream-card-progress > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.dream-card-progress span {
  color: var(--dream-muted-soft);
  font-size: 0.64rem;
}

.dream-card-progress strong {
  color: var(--dream-gold-soft);
  font-family: var(--dream-serif);
  font-size: 1.15rem;
  font-weight: 500;
}

.dream-progress-track {
  height: 3px;
  margin-top: 11px;
  overflow: hidden;
  background: rgba(246, 238, 228, 0.09);
}

.dream-progress-track span {
  width: 100%;
  height: 100%;
  display: block;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--dream-gold);
  transition: transform 260ms ease;
}

.dream-card-progress p {
  margin: 10px 0 0;
  color: var(--dream-muted-soft);
  font-size: 0.65rem;
  line-height: 1.55;
}

.dream-inspector .dream-card-details div {
  grid-template-columns: 1fr;
  gap: 5px;
  padding: 13px 0;
}

.dream-inspector .dream-card-details dt {
  font-size: 0.62rem;
}

.dream-inspector .dream-card-details dd {
  font-size: 0.77rem;
}

.dream-inspector .dream-card-route {
  margin-top: 20px;
}

.dream-inspector .dream-card-route li {
  grid-template-columns: 25px minmax(0, 1fr);
  gap: 10px;
  padding: 6px 0;
}

.dream-inspector .dream-card-route li > span {
  width: 22px;
  height: 22px;
}

.dream-inspector .dream-card-actions {
  margin-top: 21px;
}

.dream-inspector .dream-card-actions button {
  min-height: 38px;
  padding: 0 10px;
}

.dream-card-route li.is-blocked {
  color: var(--dream-danger);
}

.dream-card-route li.is-blocked > span {
  border-color: var(--dream-danger);
}

@media (max-width: 1240px) {
  .dream-workbench {
    grid-template-columns: minmax(220px, 255px) minmax(0, 1fr);
  }

  .dream-inspector {
    grid-column: 2;
    min-height: 0;
    border-top: 1px solid var(--dream-line);
    border-left: 0;
  }

  .dream-inspector .dream-card,
  .dream-inspector-empty {
    position: static;
    max-height: none;
  }

  .dream-inspector .dream-card-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 22px;
  }

  .dream-inspector .dream-card-route {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
  }
}

@media (min-width: 1800px) {
  .dream-header-inner,
  .dream-hero-content {
    width: min(1900px, calc(100% - 160px));
  }

  .dream-header-inner {
    grid-template-columns: minmax(270px, 1fr) auto minmax(270px, 1fr);
  }
}

@media (max-width: 820px) {
  .dream-hero {
    min-height: max(640px, 100svh);
  }

  .dream-hero-content {
    padding: 142px 0 46px;
  }

  .dream-trust-note {
    font-size: 0.68rem;
  }

  .dream-intake {
    width: min(100% - 20px, 1460px);
  }

  .dream-workbench {
    min-height: 0;
    display: block;
  }

  .dream-rail {
    display: block;
    padding: 20px 16px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--dream-line);
  }

  .dream-local-identity {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 5px 12px;
    margin: 17px 0 12px;
    padding: 12px 0;
  }

  .dream-local-identity button {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: auto;
    margin: 0;
    padding: 0 10px;
  }

  .dream-local-identity small {
    grid-column: 1 / -1;
  }

  .dream-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
  }

  .dream-list-row {
    flex: 0 0 min(76vw, 290px);
  }

  .dream-list-item {
    border-top: 1px solid var(--dream-line);
    border-left: 0;
  }

  .dream-list-item[aria-current="true"] {
    border-top-color: var(--dream-gold);
    border-left-color: transparent;
  }

  .dream-list-empty {
    margin: 0;
    padding: 22px 0 8px;
  }

  .dream-export-all {
    margin-top: 12px;
  }

  .dream-chat-heading {
    min-height: 0;
    padding: 22px 18px 18px;
  }

  .dream-local-badge {
    display: none !important;
  }

  .dream-message-list,
  .dream-workbench.has-active-dream .dream-message-list {
    min-height: 290px;
    max-height: 520px;
    padding: 22px 18px;
  }

  .dream-message {
    width: 94%;
  }

  .dream-chat .dream-form {
    padding: 24px 18px 26px;
  }

  .dream-composer {
    padding: 17px 14px 18px;
  }

  .dream-composer > div {
    grid-template-columns: 1fr;
  }

  .dream-composer button {
    min-height: 44px;
  }

  .dream-inspector {
    border-top: 1px solid var(--dream-line);
  }

  .dream-inspector .dream-card {
    padding: 27px 18px 30px;
  }

  .dream-inspector .dream-card-details,
  .dream-inspector .dream-card-route {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 390px) {
  .dream-rail-heading {
    align-items: flex-end;
  }

  .dream-local-identity {
    grid-template-columns: 1fr;
  }

  .dream-local-identity button,
  .dream-local-identity small {
    grid-column: 1;
    grid-row: auto;
  }

  .dream-message.is-user {
    padding: 12px 13px;
  }
}

/* 2026-07-23 · Explicit AI mode, reviewable suggestions and authorization cards */

.dream-composer-mode {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.dream-composer-mode > label {
  color: var(--dream-muted-soft);
  font-size: 0.66rem;
}

.dream-composer .dream-composer-mode > button {
  min-width: 0;
  min-height: 0;
  padding: 5px 9px;
  border: 1px solid var(--dream-line-strong);
  background: transparent;
  color: var(--dream-muted-soft);
  font-size: 0.59rem;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.dream-composer .dream-composer-mode > button[aria-pressed="true"] {
  border-color: rgba(179, 156, 255, 0.62);
  background: rgba(126, 94, 221, 0.12);
  color: #c9bbff;
}

.dream-composer .dream-composer-mode > button:hover,
.dream-composer .dream-composer-mode > button:focus-visible {
  border-color: rgba(179, 156, 255, 0.72);
  background: rgba(126, 94, 221, 0.15);
  color: #d7ceff;
}

.dream-composer button:disabled {
  cursor: wait;
  opacity: 0.48;
}

.dream-ai-suggestion,
.dream-action-proposal {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding: 14px 15px;
  border: 1px solid rgba(179, 156, 255, 0.24);
  background: linear-gradient(135deg, rgba(126, 94, 221, 0.1), rgba(12, 16, 26, 0.2));
}

.dream-ai-suggestion > span,
.dream-action-proposal > span {
  color: #baa8ff;
  font-size: 0.56rem;
  font-weight: 740;
  letter-spacing: 0.09em;
}

.dream-ai-suggestion > strong,
.dream-action-proposal > strong {
  color: var(--dream-cream);
  font-size: 0.78rem;
  font-weight: 640;
}

.dream-ai-suggestion > p,
.dream-action-proposal > p {
  color: var(--dream-muted);
  font-size: 0.69rem;
  line-height: 1.62;
}

.dream-ai-suggestion dl {
  display: grid;
  gap: 7px;
  margin: 0;
}

.dream-ai-suggestion dl > div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
}

.dream-ai-suggestion dt,
.dream-action-proposal small {
  color: var(--dream-muted-soft);
  font-size: 0.6rem;
}

.dream-ai-suggestion dd {
  margin: 0;
  color: rgba(246, 238, 228, 0.84);
  font-size: 0.65rem;
  line-height: 1.55;
}

.dream-ai-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.dream-ai-card-actions button {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--dream-line-strong);
  background: transparent;
  color: var(--dream-cream);
  cursor: pointer;
  font-size: 0.61rem;
}

.dream-ai-card-actions button:first-child {
  border-color: rgba(179, 156, 255, 0.54);
  background: rgba(126, 94, 221, 0.14);
}

.dream-ai-card-actions button:hover:not(:disabled),
.dream-ai-card-actions button:focus-visible:not(:disabled) {
  border-color: var(--dream-gold);
}

.dream-ai-card-actions button:disabled {
  cursor: default;
  opacity: 0.5;
}

.dream-action-proposal {
  border-color: rgba(213, 166, 109, 0.25);
  background: rgba(213, 166, 109, 0.055);
}

.dream-action-proposal > span {
  color: var(--dream-gold);
}

.dream-action-proposal.is-high-risk {
  border-color: rgba(255, 139, 139, 0.3);
}

.dream-ai-decision {
  color: var(--dream-gold-soft) !important;
  font-size: 0.61rem !important;
}

.dream-ai-dialog {
  width: min(720px, calc(100vw - 32px));
  max-height: min(860px, calc(100svh - 32px));
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(179, 156, 255, 0.36);
  border-radius: 2px;
  background:
    radial-gradient(circle at 86% 0%, rgba(126, 94, 221, 0.2), transparent 42%),
    #0a0d16;
  color: var(--dream-cream);
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.68);
}

.dream-ai-dialog::backdrop {
  background: rgba(2, 4, 9, 0.8);
  backdrop-filter: blur(14px);
}

.dream-ai-shell {
  display: grid;
  gap: 22px;
  padding: clamp(24px, 4.5vw, 42px);
}

.dream-ai-shell > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.dream-ai-shell > header span {
  color: #baa8ff;
  font-size: 0.61rem;
  font-weight: 760;
  letter-spacing: 0.18em;
}

.dream-ai-shell > header h2 {
  max-width: 610px;
  margin: 10px 0 0;
  font-family: var(--dream-serif);
  font-size: clamp(2rem, 4.7vw, 3.45rem);
  font-weight: 450;
  letter-spacing: -0.045em;
  line-height: 1;
}

.dream-ai-shell > header > button {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--dream-line-strong);
  background: transparent;
  color: var(--dream-muted);
  cursor: pointer;
  font-size: 1.45rem;
  line-height: 1;
}

.dream-ai-shell > header > button:hover,
.dream-ai-shell > header > button:focus-visible {
  border-color: #baa8ff;
  color: var(--dream-cream);
}

.dream-ai-scope {
  display: grid;
  gap: 12px;
}

.dream-ai-scope h3 {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 620;
}

.dream-ai-scope ul {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--dream-line);
}

.dream-ai-scope li {
  display: grid;
  grid-template-columns: minmax(130px, 0.65fr) minmax(0, 1.35fr);
  gap: 16px;
  padding: 13px 15px;
  background: #0c101a;
}

.dream-ai-scope strong {
  color: var(--dream-cream);
  font-size: 0.69rem;
}

.dream-ai-scope li > span {
  color: var(--dream-muted-soft);
  font-size: 0.67rem;
}

.dream-ai-guardrails {
  display: grid;
  gap: 10px;
  padding-left: 15px;
  border-left: 1px solid #8f78e8;
}

.dream-ai-guardrails p,
.dream-ai-dialog-status {
  margin: 0;
  color: var(--dream-muted);
  font-size: 0.71rem;
  line-height: 1.72;
}

.dream-ai-guardrails code {
  color: #c9bbff;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.dream-ai-consent {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 11px;
  align-items: flex-start;
  padding: 15px;
  border: 1px solid var(--dream-line-strong);
  color: rgba(246, 238, 228, 0.82);
  cursor: pointer;
  font-size: 0.72rem;
  line-height: 1.62;
}

.dream-ai-consent input {
  margin-top: 3px;
  accent-color: #8f78e8;
}

.dream-ai-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.dream-ai-dialog-actions button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--dream-line-strong);
  background: transparent;
  color: var(--dream-cream);
  cursor: pointer;
  font-size: 0.7rem;
}

.dream-ai-dialog-actions .dream-ai-primary {
  border-color: #c9bbff;
  background: #c9bbff;
  color: #090b12;
  font-weight: 720;
}

.dream-ai-dialog-actions button:hover:not(:disabled),
.dream-ai-dialog-actions button:focus-visible:not(:disabled) {
  border-color: var(--dream-gold-soft);
}

.dream-ai-dialog-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.dream-ai-dialog-status {
  min-height: 1.4em;
}

.dream-ai-dialog-status.is-error {
  color: var(--dream-danger);
}

@media (max-width: 620px) {
  .dream-ai-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100svh - 16px);
  }

  .dream-ai-shell {
    gap: 20px;
    padding: 22px 17px 24px;
  }

  .dream-ai-shell > header {
    position: relative;
    display: block;
    padding-right: 42px;
  }

  .dream-ai-shell > header h2 {
    font-size: clamp(1.68rem, 7vw, 1.9rem);
    line-height: 1.04;
  }

  .dream-ai-shell > header > button {
    position: absolute;
    top: 0;
    right: 0;
    width: 38px;
    height: 38px;
  }

  .dream-ai-scope li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .dream-ai-dialog-actions {
    display: grid;
  }

  .dream-ai-suggestion dl > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* 2026-07-23 · Versioned real artifacts */

.dream-artifacts {
  display: grid;
  gap: 13px;
  margin-top: 25px;
  padding-top: 22px;
  border-top: 1px solid var(--dream-line);
}

.dream-artifacts-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.dream-artifacts-heading span {
  color: var(--dream-gold);
  font-size: 0.55rem;
  font-weight: 740;
  letter-spacing: 0.12em;
}

.dream-artifacts-heading h4 {
  margin: 4px 0 0;
  color: var(--dream-cream);
  font-size: 0.86rem;
  font-weight: 630;
}

.dream-artifact-create-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.dream-artifact-create-actions button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(213, 166, 109, 0.48);
  background: rgba(213, 166, 109, 0.08);
  color: var(--dream-gold-soft);
  cursor: pointer;
  font-size: 0.59rem;
  font-weight: 650;
}

.dream-artifact-create-actions button:hover:not(:disabled),
.dream-artifact-create-actions button:focus-visible:not(:disabled) {
  border-color: var(--dream-gold-soft);
  background: rgba(213, 166, 109, 0.14);
}

.dream-artifact-create-actions button.is-secondary {
  border-color: var(--dream-line-strong);
  background: transparent;
  color: var(--dream-muted);
}

.dream-artifact-create-actions button:disabled {
  cursor: wait;
  opacity: 0.42;
}

.dream-artifacts > p,
.dream-artifact-status {
  margin: 0;
  color: var(--dream-muted-soft);
  font-size: 0.62rem;
  line-height: 1.65;
}

.dream-artifact-list {
  display: grid;
  gap: 7px;
}

.dream-artifact-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 12px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid var(--dream-line);
  background: rgba(255, 255, 255, 0.018);
}

.dream-artifact-item strong {
  min-width: 0;
  overflow: hidden;
  color: rgba(246, 238, 228, 0.88);
  font-size: 0.66rem;
  font-weight: 590;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dream-artifact-item small {
  color: var(--dream-muted-soft);
  font-size: 0.56rem;
}

.dream-artifact-item-actions {
  display: flex;
  grid-column: 2;
  grid-row: 1 / span 2;
  gap: 6px;
}

.dream-artifact-item-actions button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--dream-line-strong);
  background: transparent;
  color: var(--dream-cream);
  cursor: pointer;
  font-size: 0.58rem;
}

.dream-artifact-item-actions button:hover,
.dream-artifact-item-actions button:focus-visible {
  border-color: var(--dream-gold);
  color: var(--dream-gold-soft);
}

.dream-artifact-status {
  min-height: 1.4em;
}

.dream-artifact-status.is-error {
  color: var(--dream-danger);
}

@media (max-width: 620px) {
  .dream-artifacts-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .dream-artifact-create-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: stretch;
  }

  .dream-artifact-create-actions button {
    width: 100%;
    min-height: 42px;
  }

  .dream-artifact-item {
    grid-template-columns: 1fr;
  }

  .dream-artifact-item-actions {
    grid-column: 1;
    grid-row: auto;
  }

  .dream-artifact-item-actions button {
    flex: 1;
  }
}

/* 2026-07-23 · Sandboxed real artifact preview */

.dream-artifact-preview-dialog {
  width: min(1180px, calc(100vw - 24px));
  height: min(900px, calc(100svh - 24px));
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--dream-line-strong);
  background: #080a11;
  color: var(--dream-cream);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.76);
}

.dream-artifact-preview-dialog::backdrop {
  background: rgba(2, 3, 8, 0.9);
  backdrop-filter: blur(10px);
}

.dream-artifact-preview-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: 100%;
  height: 100%;
}

.dream-artifact-preview-shell > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--dream-line);
}

.dream-artifact-preview-shell > header span {
  color: var(--dream-gold);
  font-size: 0.56rem;
  font-weight: 740;
  letter-spacing: 0.16em;
}

.dream-artifact-preview-shell > header h2 {
  margin: 5px 0 2px;
  font-size: 1rem;
}

.dream-artifact-preview-shell > header p {
  margin: 0;
  color: var(--dream-muted-soft);
  font-size: 0.63rem;
}

.dream-artifact-preview-shell > header button {
  width: 42px;
  min-width: 42px;
  height: 42px;
  border: 1px solid var(--dream-line);
  background: transparent;
  color: var(--dream-muted);
  cursor: pointer;
  font-size: 1.3rem;
}

.dream-artifact-preview-shell iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #080810;
}

.dream-artifact-preview-shell > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 20px;
  border-top: 1px solid var(--dream-line);
}

.dream-artifact-preview-shell > footer p {
  margin: 0;
  color: var(--dream-muted-soft);
  font-size: 0.62rem;
}

.dream-artifact-preview-shell > footer button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--dream-gold);
  background: var(--dream-gold);
  color: #120d08;
  cursor: pointer;
  font-size: 0.64rem;
  font-weight: 740;
}

@media (max-width: 620px) {
  .dream-artifact-preview-dialog {
    width: calc(100vw - 10px);
    height: calc(100svh - 10px);
  }

  .dream-artifact-preview-shell > header {
    padding: 14px;
  }

  .dream-artifact-preview-shell > header p {
    display: none;
  }

  .dream-artifact-preview-shell > footer {
    align-items: stretch;
    flex-direction: column;
    padding: 10px 14px 12px;
  }

  .dream-artifact-preview-shell > footer button {
    width: 100%;
  }
}

/* 2026-07-23 · Account export and irreversible deletion */

.dream-account-actions .dream-account-danger {
  border-color: rgba(222, 133, 125, 0.46);
  color: #efb1aa;
}

.dream-account-actions .dream-account-danger:hover:not(:disabled),
.dream-account-actions .dream-account-danger:focus-visible:not(:disabled) {
  border-color: #efb1aa;
  color: #ffd4cf;
}

.dream-account-delete-dialog {
  width: min(620px, calc(100vw - 32px));
  max-height: calc(100svh - 32px);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--dream-line-strong);
  background: #090c14;
  color: var(--dream-cream);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.72);
}

.dream-account-delete-dialog::backdrop {
  background: rgba(2, 4, 9, 0.86);
  backdrop-filter: blur(10px);
}

.dream-account-delete-shell {
  display: grid;
  gap: 24px;
  padding: 32px;
}

.dream-account-delete-shell > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.dream-account-delete-shell > header span {
  color: #efb1aa;
  font-size: 0.62rem;
  font-weight: 720;
  letter-spacing: 0.2em;
}

.dream-account-delete-shell > header h2 {
  margin: 10px 0 0;
  font-family: var(--dream-display);
  font-size: clamp(1.85rem, 5vw, 3rem);
  font-weight: 440;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.dream-account-delete-shell > header > button {
  width: 44px;
  min-width: 44px;
  height: 44px;
  border: 1px solid var(--dream-line);
  background: transparent;
  color: var(--dream-muted);
  cursor: pointer;
  font-size: 1.35rem;
}

.dream-account-delete-shell > header > button:hover,
.dream-account-delete-shell > header > button:focus-visible {
  border-color: var(--dream-cream);
  color: var(--dream-cream);
}

.dream-account-delete-warning {
  padding: 20px;
  border: 1px solid rgba(222, 133, 125, 0.36);
  background: rgba(222, 133, 125, 0.065);
}

.dream-account-delete-warning h3 {
  margin: 0 0 12px;
  font-size: 0.9rem;
}

.dream-account-delete-warning ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 1.2rem;
  color: var(--dream-muted);
  font-size: 0.76rem;
  line-height: 1.65;
}

.dream-account-delete-warning p {
  margin: 16px 0 0;
  color: #e9c1bd;
  font-size: 0.74rem;
  line-height: 1.7;
}

.dream-account-delete-ack {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: flex-start;
  gap: 11px;
  color: var(--dream-muted);
  cursor: pointer;
  font-size: 0.76rem;
  line-height: 1.65;
}

.dream-account-delete-ack input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: #d48279;
}

.dream-account-delete-phrase {
  display: grid;
  gap: 9px;
}

.dream-account-delete-phrase > span {
  color: var(--dream-muted-soft);
  font-size: 0.68rem;
  letter-spacing: 0.03em;
}

.dream-account-delete-phrase input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--dream-line-strong);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.025);
  color: var(--dream-cream);
  font: inherit;
}

.dream-account-delete-phrase input:focus {
  border-color: #efb1aa;
  outline: none;
}

.dream-account-delete-actions {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 10px;
}

.dream-account-delete-actions button {
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--dream-line-strong);
  background: transparent;
  color: var(--dream-cream);
  cursor: pointer;
  font-size: 0.72rem;
}

.dream-account-delete-actions button:hover:not(:disabled),
.dream-account-delete-actions button:focus-visible:not(:disabled) {
  border-color: var(--dream-cream);
}

.dream-account-delete-actions .dream-account-delete-confirm {
  border-color: #d48279;
  background: #d48279;
  color: #140706;
  font-weight: 760;
}

.dream-account-delete-actions .dream-account-delete-confirm:hover:not(:disabled),
.dream-account-delete-actions .dream-account-delete-confirm:focus-visible:not(:disabled) {
  border-color: #efb1aa;
  background: #efb1aa;
}

.dream-account-delete-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.32;
}

.dream-account-delete-status {
  min-height: 1.5em;
  margin: 0;
  color: var(--dream-muted);
  font-size: 0.7rem;
}

.dream-account-delete-status.is-error {
  color: var(--dream-danger);
}

@media (max-width: 620px) {
  .dream-account-delete-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100svh - 16px);
  }

  .dream-account-delete-shell {
    gap: 19px;
    padding: 22px 18px;
  }

  .dream-account-delete-shell > header h2 {
    font-size: 2rem;
  }

  .dream-account-delete-warning {
    padding: 16px;
  }

  .dream-account-delete-actions {
    grid-template-columns: 1fr;
  }
}

/* 2026-07-23 · Explicit local/account conflict resolution */

.dream-sync-preview li .dream-sync-conflict-open {
  grid-column: 1 / -1;
  justify-self: start;
  min-height: 34px;
  margin-top: 4px;
  padding: 0 12px;
  border: 1px solid var(--dream-gold);
  background: rgba(213, 166, 109, 0.08);
  color: var(--dream-gold-soft);
  cursor: pointer;
  font-size: 0.62rem;
}

.dream-sync-preview li .dream-sync-conflict-open:hover,
.dream-sync-preview li .dream-sync-conflict-open:focus-visible {
  background: rgba(213, 166, 109, 0.16);
}

.dream-conflict-dialog {
  width: min(900px, calc(100vw - 32px));
  max-height: calc(100svh - 32px);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--dream-line-strong);
  background: #090c14;
  color: var(--dream-cream);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.72);
}

.dream-conflict-dialog::backdrop {
  background: rgba(2, 4, 9, 0.86);
  backdrop-filter: blur(10px);
}

.dream-conflict-shell {
  display: grid;
  gap: 24px;
  padding: 32px;
}

.dream-conflict-shell > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.dream-conflict-shell > header span,
.dream-conflict-choices > div span {
  color: var(--dream-gold);
  font-size: 0.62rem;
  font-weight: 720;
  letter-spacing: 0.18em;
}

.dream-conflict-shell > header h2 {
  margin: 10px 0 0;
  font-family: var(--dream-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 440;
  letter-spacing: -0.048em;
  line-height: 1.03;
}

.dream-mobile-break {
  display: none;
}

.dream-conflict-shell > header > button {
  width: 44px;
  min-width: 44px;
  height: 44px;
  border: 1px solid var(--dream-line);
  background: transparent;
  color: var(--dream-muted);
  cursor: pointer;
  font-size: 1.35rem;
}

.dream-conflict-shell > header > button:hover,
.dream-conflict-shell > header > button:focus-visible {
  border-color: var(--dream-cream);
  color: var(--dream-cream);
}

.dream-conflict-intro {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--dream-line);
  border-bottom: 1px solid var(--dream-line);
}

.dream-conflict-intro strong {
  font-size: 0.86rem;
}

.dream-conflict-intro p {
  margin: 0;
  color: var(--dream-muted-soft);
  font-size: 0.68rem;
}

.dream-conflict-fields {
  display: grid;
  gap: 10px;
}

.dream-conflict-field {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}

.dream-conflict-field > span {
  align-self: center;
  color: var(--dream-muted-soft);
  font-size: 0.66rem;
  letter-spacing: 0.05em;
}

.dream-conflict-value {
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid var(--dream-line);
  background: rgba(255, 255, 255, 0.018);
}

.dream-conflict-value small {
  display: block;
  margin-bottom: 6px;
  color: var(--dream-gold);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.dream-conflict-value p {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--dream-muted);
  font-size: 0.7rem;
  line-height: 1.58;
}

.dream-conflict-choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.dream-conflict-choices > div {
  grid-column: 1 / -1;
  margin-bottom: 2px;
}

.dream-conflict-choices h3 {
  margin: 7px 0 0;
  font-size: 0.92rem;
}

.dream-conflict-choice {
  min-height: 126px;
  padding: 17px;
  border: 1px solid var(--dream-line-strong);
  background: transparent;
  color: var(--dream-cream);
  cursor: pointer;
  text-align: left;
}

.dream-conflict-choice strong,
.dream-conflict-choice span {
  display: block;
}

.dream-conflict-choice strong {
  margin-bottom: 9px;
  font-size: 0.8rem;
}

.dream-conflict-choice span {
  color: var(--dream-muted-soft);
  font-size: 0.65rem;
  line-height: 1.6;
}

.dream-conflict-choice:hover:not(:disabled),
.dream-conflict-choice:focus-visible:not(:disabled) {
  border-color: var(--dream-gold-soft);
  background: rgba(213, 166, 109, 0.07);
}

.dream-conflict-choice.is-recommended {
  border-color: var(--dream-gold);
  background: rgba(213, 166, 109, 0.07);
}

.dream-conflict-choice.is-warning {
  border-color: rgba(222, 133, 125, 0.42);
}

.dream-conflict-choice:disabled {
  cursor: wait;
  opacity: 0.38;
}

.dream-conflict-actions {
  display: flex;
  justify-content: flex-end;
}

.dream-conflict-actions button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--dream-line-strong);
  background: transparent;
  color: var(--dream-muted);
  cursor: pointer;
  font-size: 0.68rem;
}

.dream-conflict-status {
  min-height: 1.5em;
  margin: -12px 0 0;
  color: var(--dream-muted);
  font-size: 0.68rem;
}

.dream-conflict-status.is-error {
  color: var(--dream-danger);
}

@media (max-width: 720px) {
  .dream-conflict-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100svh - 16px);
  }

  .dream-conflict-shell {
    gap: 19px;
    padding: 22px 18px;
  }

  .dream-conflict-shell > header h2 {
    font-size: 2rem;
  }

  .dream-mobile-break {
    display: inline;
  }

  .dream-conflict-intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .dream-conflict-field {
    grid-template-columns: 1fr;
  }

  .dream-conflict-field > span {
    padding-top: 4px;
  }

  .dream-conflict-choices {
    grid-template-columns: 1fr;
  }

  .dream-conflict-choice {
    min-height: 0;
  }

  .dream-hero h1 {
    font-size: clamp(2.4rem, 9vw, 3.6rem);
    line-height: 1.09;
  }
}

@media (max-width: 390px) {
  .dream-hero h1 {
    font-size: clamp(2.25rem, 10vw, 2.45rem);
  }
}

/* 2026-07-23 · Linked recovery wallets */

.dream-linked-wallets {
  display: grid;
  gap: 13px;
  padding: 20px;
  border: 1px solid var(--dream-line);
  background: rgba(255, 255, 255, 0.018);
}

.dream-linked-wallets-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.dream-linked-wallets-heading span {
  color: var(--dream-gold);
  font-size: 0.58rem;
  font-weight: 720;
  letter-spacing: 0.16em;
}

.dream-linked-wallets-heading h3 {
  margin: 7px 0 0;
  font-size: 0.88rem;
}

.dream-linked-wallets-heading button {
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid var(--dream-gold);
  background: rgba(213, 166, 109, 0.08);
  color: var(--dream-gold-soft);
  cursor: pointer;
  font-size: 0.64rem;
}

.dream-linked-wallets-heading button:hover:not(:disabled),
.dream-linked-wallets-heading button:focus-visible:not(:disabled) {
  background: rgba(213, 166, 109, 0.16);
}

.dream-linked-wallets-heading button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.dream-linked-wallets > p,
.dream-identity-status {
  margin: 0;
  color: var(--dream-muted-soft);
  font-size: 0.67rem;
  line-height: 1.65;
}

.dream-linked-wallets ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dream-linked-wallets li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 12px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid var(--dream-line);
  background: rgba(3, 5, 10, 0.28);
}

.dream-linked-wallets li strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: rgba(246, 238, 228, 0.9);
  font-size: 0.7rem;
}

.dream-linked-wallets li small {
  display: flex;
  flex-wrap: wrap;
  grid-column: 1;
  gap: 6px;
  color: var(--dream-muted-soft);
  font-size: 0.58rem;
}

.dream-identity-chip {
  padding: 2px 6px;
  border: 1px solid var(--dream-line);
  color: var(--dream-muted);
}

.dream-identity-chip.is-primary {
  border-color: var(--dream-gold);
  color: var(--dream-gold-soft);
}

.dream-identity-chip.is-current {
  border-color: rgba(184, 166, 255, 0.54);
  color: var(--dream-lavender);
}

.dream-linked-wallets li button {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(222, 133, 125, 0.42);
  background: transparent;
  color: #efb1aa;
  cursor: pointer;
  font-size: 0.58rem;
}

.dream-linked-wallets li button:hover:not(:disabled),
.dream-linked-wallets li button:focus-visible:not(:disabled) {
  border-color: #efb1aa;
  color: #ffd4cf;
}

.dream-linked-wallets li button.is-promote {
  border-color: rgba(184, 166, 255, 0.56);
  background: rgba(139, 114, 255, 0.08);
  color: var(--dream-lavender);
}

.dream-linked-wallets li button.is-promote:hover:not(:disabled),
.dream-linked-wallets li button.is-promote:focus-visible:not(:disabled) {
  border-color: var(--dream-lavender);
  background: rgba(139, 114, 255, 0.16);
  color: #ded5ff;
}

.dream-identity-status {
  min-height: 1.4em;
}

.dream-identity-status.is-error {
  color: var(--dream-danger);
}

@media (max-width: 620px) {
  .dream-linked-wallets {
    padding: 16px;
  }

  .dream-linked-wallets-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .dream-linked-wallets-heading button {
    width: 100%;
    min-height: 44px;
  }
}

/* 2026-07-24 · Accessible single-task mobile dream workspace */

.dream-mobile-workspace-nav {
  display: none;
}

.dream-list-item-heading strong {
  display: -webkit-box;
  overflow: hidden;
  line-height: 1.42;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.dream-chat-wish {
  display: -webkit-box;
  overflow: hidden;
  max-width: 700px;
  color: rgba(246, 238, 228, 0.82) !important;
  font-size: 0.82rem !important;
  line-height: 1.55 !important;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.dream-rail-heading button,
.dream-local-identity button,
.dream-export-all,
.dream-inspector .dream-card-actions button,
.dream-composer .dream-composer-mode > button,
.dream-ai-card-actions button,
.dream-artifact-create-actions button,
.dream-artifact-item-actions button,
.dream-artifact-preview-shell > header button,
.dream-artifact-preview-shell > footer button,
.dream-account-shell > header > button,
.dream-ai-shell > header > button,
.dream-linked-wallets-heading button,
.dream-linked-wallets li button,
.dream-sync-preview li .dream-sync-conflict-open {
  min-height: 44px;
}

.dream-account-shell > header > button,
.dream-ai-shell > header > button,
.dream-artifact-preview-shell > header button {
  flex-basis: 44px;
  width: 44px;
  min-width: 44px;
  height: 44px;
}

.dream-workbench small,
.dream-workbench button,
.dream-chat-heading p,
.dream-local-identity > span,
.dream-local-identity small,
.dream-list-item-meta,
.dream-message > span,
.dream-message time,
.dream-composer > label,
.dream-composer p,
.dream-card-progress span,
.dream-card-progress p,
.dream-artifacts > p,
.dream-artifact-status {
  font-size: 0.75rem;
}

.dream-rail-heading span,
.dream-inspector-empty > span,
.dream-chat-heading span:first-child,
.dream-local-badge,
.dream-artifacts-heading span,
.dream-card-details dt,
.dream-card-route small,
.dream-card-note,
.dream-form-status {
  font-size: 0.75rem !important;
}

.dream-message p {
  font-size: 0.875rem;
}

@media (max-width: 820px) {
  .dream-workbench.is-mobile-enhanced > .dream-mobile-workspace-nav {
    position: sticky;
    z-index: 12;
    top: 102px;
    display: block;
    padding: 8px;
    border-bottom: 1px solid var(--dream-line);
    background: rgba(7, 10, 18, 0.96);
    backdrop-filter: blur(18px);
  }

  .dream-mobile-workspace-nav > div {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 4px;
    border: 1px solid var(--dream-line);
    background: rgba(255, 255, 255, 0.025);
  }

  .dream-mobile-workspace-nav button {
    min-width: 0;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--dream-muted);
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 720;
  }

  .dream-mobile-workspace-nav button[aria-selected="true"] {
    border-color: rgba(213, 166, 109, 0.52);
    background: rgba(213, 166, 109, 0.12);
    color: var(--dream-gold-soft);
  }

  .dream-mobile-workspace-nav button:hover,
  .dream-mobile-workspace-nav button:focus-visible {
    border-color: var(--dream-gold);
    color: var(--dream-cream);
  }

  .dream-workbench.is-mobile-enhanced[data-mobile-workspace-view="dreams"] > .dream-chat,
  .dream-workbench.is-mobile-enhanced[data-mobile-workspace-view="dreams"] > .dream-inspector,
  .dream-workbench.is-mobile-enhanced[data-mobile-workspace-view="chat"] > .dream-rail,
  .dream-workbench.is-mobile-enhanced[data-mobile-workspace-view="chat"] > .dream-inspector,
  .dream-workbench.is-mobile-enhanced[data-mobile-workspace-view="progress"] > .dream-rail,
  .dream-workbench.is-mobile-enhanced[data-mobile-workspace-view="progress"] > .dream-chat {
    display: none;
  }

  .dream-workbench.is-mobile-enhanced.has-active-dream[data-mobile-workspace-view="chat"] > .dream-chat {
    height: calc(100svh - 158px);
    min-height: 440px;
    max-height: 720px;
    overflow: hidden;
  }

  .dream-workbench.is-mobile-enhanced.has-active-dream .dream-message-list {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    padding-bottom: 34px;
    scroll-padding-bottom: 34px;
  }

  .dream-workbench.is-mobile-enhanced.has-active-dream .dream-composer {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    margin-top: 0;
    padding-bottom: max(18px, env(safe-area-inset-bottom));
    box-shadow: 0 -18px 36px rgba(3, 5, 10, 0.34);
  }

  .dream-workbench button,
  .dream-workbench select,
  .dream-workbench input:not([type="checkbox"]) {
    min-height: 44px;
  }

  .dream-list-item-heading strong {
    font-size: 0.86rem;
  }
}

/* 2026-07-24 · Explicit AI prototype consent and compact artifact actions */

.dream-artifacts-heading {
  display: grid;
  gap: 12px;
}

.dream-artifact-create-actions {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.dream-artifact-create-actions button {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 7px 8px;
  overflow-wrap: anywhere;
  line-height: 1.35;
  white-space: normal;
}

.dream-artifact-create-actions button:not(.is-secondary) {
  border-color: rgba(213, 166, 109, 0.72);
  background: rgba(213, 166, 109, 0.16);
  color: var(--dream-gold-soft);
}

.dream-prototype-dialog {
  width: min(680px, calc(100% - 24px));
  max-height: calc(100svh - 24px);
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(213, 166, 109, 0.34);
  background: #0b0f18;
  color: var(--dream-cream);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.62);
}

.dream-prototype-dialog::backdrop {
  background: rgba(2, 4, 9, 0.82);
  backdrop-filter: blur(10px);
}

.dream-prototype-shell {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.dream-prototype-shell > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.dream-prototype-shell > header span {
  color: var(--dream-gold);
  font-size: 0.68rem;
  font-weight: 760;
  letter-spacing: 0.12em;
}

.dream-prototype-shell > header h2 {
  margin: 7px 0 0;
  font-size: clamp(1.2rem, 4vw, 1.72rem);
  line-height: 1.18;
}

.dream-prototype-shell > header > button {
  flex: 0 0 44px;
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--dream-line-strong);
  background: transparent;
  color: var(--dream-cream);
  cursor: pointer;
  font-size: 1.25rem;
}

.dream-prototype-scope {
  padding: 16px;
  border: 1px solid var(--dream-line);
  background: rgba(255, 255, 255, 0.022);
}

.dream-prototype-scope h3 {
  margin: 0 0 12px;
  color: var(--dream-gold-soft);
  font-size: 0.82rem;
}

.dream-prototype-scope ul {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dream-prototype-scope li {
  display: grid;
  gap: 3px;
}

.dream-prototype-scope strong,
.dream-prototype-scope span {
  overflow-wrap: anywhere;
}

.dream-prototype-scope strong {
  color: rgba(246, 238, 228, 0.92);
  font-size: 0.76rem;
}

.dream-prototype-scope span {
  color: var(--dream-muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.dream-prototype-state-note {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--dream-line);
  color: var(--dream-muted-soft);
  font-size: 0.76rem;
  line-height: 1.55;
}

.dream-prototype-consent {
  display: flex;
  min-height: 44px;
  align-items: flex-start;
  gap: 10px;
  color: rgba(246, 238, 228, 0.86);
  cursor: pointer;
  font-size: 0.8rem;
  line-height: 1.55;
}

.dream-prototype-consent input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--dream-gold);
}

.dream-prototype-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.dream-prototype-actions button {
  min-width: 0;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--dream-line-strong);
  background: transparent;
  color: var(--dream-cream);
  cursor: pointer;
  font-size: 0.75rem;
  line-height: 1.35;
}

.dream-prototype-actions .dream-prototype-primary {
  border-color: rgba(213, 166, 109, 0.72);
  background: rgba(213, 166, 109, 0.16);
  color: var(--dream-gold-soft);
}

.dream-prototype-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.dream-prototype-status {
  min-height: 1.5em;
  margin: 0;
  color: var(--dream-muted-soft);
  font-size: 0.72rem;
  line-height: 1.5;
}

.dream-prototype-status.is-error {
  color: var(--dream-danger);
}

@media (max-width: 620px) {
  .dream-artifact-create-actions {
    grid-template-columns: 1fr;
  }

  .dream-artifact-create-actions button {
    min-height: 44px;
    padding-inline: 5px;
    font-size: 0.8rem;
  }

  .dream-prototype-shell {
    gap: 15px;
    padding: 18px 16px;
  }

  .dream-prototype-actions {
    grid-template-columns: 1fr;
  }

  .dream-replay-visual figcaption {
    right: 12px;
    left: 12px;
    flex-wrap: wrap;
  }

  .dream-replay-caption {
    right: 18px;
    left: 18px;
    display: grid;
    gap: 6px;
  }

  .dream-replay-path {
    grid-template-columns: 1fr;
  }

  .dream-replay-path li,
  .dream-replay-path li:first-child,
  .dream-replay-path li:nth-child(3) {
    padding: 0 0 24px;
    border-left: 0;
    border-bottom: 1px solid var(--dream-line);
  }

  .dream-replay-path span {
    margin-bottom: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dream-replay-sleeper path,
  .dream-replay-scan {
    animation: none;
  }
}
