.orymera-dream { background: var(--orymera-paper); color: var(--orymera-ink); }
.orymera-dream__experience { min-width: 0; overflow-wrap: anywhere; }
.orymera-dream__loading button { margin-top: 24px; justify-self: center; }

.orymera-dream__form { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,280px); }
.orymera-dream [hidden] { display: none !important; }
.orymera-dream__field { min-width: 0; padding: 0 32px 28px 0; }
.orymera-dream__context { padding: 28px 24px; background: var(--orymera-paper); border-left: 1px solid var(--orymera-rule); }
.orymera-dream__context .orymera-dream__choice-group:first-child { margin-top: 0; }
.orymera-dream__actions { grid-column: 1/-1; padding: 22px 0 0; border-top: 1px solid var(--orymera-rule); }
.orymera-dream__label-row { display: flex; justify-content: space-between; gap: 20px; align-items: baseline; }
.orymera-dream__label-row span { color: var(--orymera-text-muted); font-family: var(--orymera-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.orymera-dream textarea { display: block; width: 100%; min-height: 260px; margin-top: 22px; padding: 12px;  resize: vertical; border: 1px solid var(--orymera-rule-strong); border-radius: var(--orymera-r-md); background: var(--orymera-card); color: var(--orymera-ink); font: 400 16px/1.75 var(--orymera-body); transition: border-color 160ms ease, box-shadow 160ms ease; }
.orymera-dream textarea:focus { outline: var(--orymera-focus); outline-offset: 3px; border-color: var(--orymera-label); }
.orymera-dream textarea[aria-invalid="true"] { border-color: #9b3d3d; }
.orymera-dream__hint, .orymera-dream__field-error, .orymera-dream__privacy-note, .orymera-dream__form-status { margin: 10px 0 0; color: var(--orymera-text-muted); font-size: 12px; line-height: 1.55; }
.orymera-dream__field-error { color: #9b3d3d; }
.orymera-dream__choice-group { margin: 28px 0 0; padding: 0; border: 0; }
.orymera-dream__choice-group legend { margin-bottom: 13px; }
.orymera-dream__choice-group legend small { margin-left: 7px; color: var(--orymera-text-muted); font-size: 11px; font-weight: 500; }
.orymera-dream__choices { display: flex; flex-wrap: wrap; gap: 8px; }
.orymera-dream__choices label { position: relative; cursor: pointer; }
.orymera-dream__choices input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.orymera-dream__choices span { display: inline-flex; min-height: 38px; align-items: center; padding: 0 14px; border: 1px solid var(--orymera-rule); border-radius: var(--orymera-r-pill); background: var(--orymera-card); color: var(--orymera-text); font-size: 12px; transition: border-color 160ms ease, background 160ms ease, color 160ms ease; }
.orymera-dream__choices input:checked + span { border-color: var(--orymera-ink); background: var(--orymera-ink); color: var(--orymera-paper-bright); }
.orymera-dream__choices input:focus-visible + span { outline: var(--orymera-focus); outline-offset: 3px; }
.orymera-dream__submit { margin-top: 0; border: 0; cursor: pointer; }
.orymera-dream__form-status.is-error { color: #9b3d3d; }
.orymera-dream__form-status.is-unavailable { color: var(--orymera-gold-deep); }
/* One rule above the actions; the button and a single privacy line sit side by side. */
.orymera-dream__actions { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 24px; align-items: center; }
.orymera-dream__actions .orymera-dream__privacy-note { grid-column: 2; grid-row: 1; max-width: 60ch; margin: 0; }
.orymera-dream__actions .orymera-dream__form-status { grid-column: 1 / -1; margin: 0; }
.orymera-dream__actions .orymera-dream__form-status:empty { display: none; }
@media (max-width: 560px) { .orymera-dream__actions { grid-template-columns: minmax(0, 1fr); } .orymera-dream__actions .orymera-dream__privacy-note { grid-column: 1; grid-row: auto; } }

.orymera-dream__loading { min-height: 620px; padding: clamp(40px, 8vw, 96px) clamp(28px, 6vw, 72px); text-align: center; place-content: center; }
.orymera-dream__loading:not([hidden]) { display: grid; }
.orymera-dream__loading-mark, .orymera-dream__window { display: block; width: 64px; height: 64px; }
.orymera-dream__loading-mark { margin: 0 auto 22px; }
.orymera-dream__loading-mark circle, .orymera-dream__window circle { fill: var(--orymera-gold); fill-opacity: .18; }
.orymera-dream__loading-mark path, .orymera-dream__window path { fill: none; stroke: var(--orymera-label); stroke-opacity: .5; }
.orymera-dream__loading-mark rect, .orymera-dream__window rect { fill: var(--orymera-gold-deep); }
.orymera-dream__loading-mark circle { animation: orymera-dream-glow 2.4s ease-in-out infinite; transform-origin: 36px 38px; }
.orymera-dream__loading .orymera-kicker { margin-bottom: 14px; color: var(--orymera-label); }
.orymera-dream__loading h2 { max-width: var(--orymera-width-display); margin: 0 auto; font: 400 clamp(38px, 5vw, 58px)/1.03 var(--orymera-display); letter-spacing: -.035em; text-wrap: pretty; }
.orymera-dream__loading > p:not(.orymera-kicker) { max-width: 42ch; margin: 22px auto 0; color: var(--orymera-text-muted); font-size: 15px; }
.orymera-dream__progress { width: min(100%, 430px); height: 2px; margin: 36px auto 0; overflow: hidden; background: var(--orymera-rule); }
.orymera-dream__progress span { display: block; width: 45%; height: 100%; background: var(--orymera-gold); animation: orymera-dream-progress 2.1s ease-in-out infinite; }

.orymera-dream__result { padding: clamp(32px, 6vw, 72px) clamp(32px, 7vw, 96px); }
.orymera-dream__result header { display: grid; grid-template-columns: minmax(0, 1fr) 64px; gap: 24px; align-items: end; padding-bottom: 34px; border-bottom: 1px solid var(--orymera-rule); }
.orymera-dream__result header .orymera-kicker { color: var(--orymera-label); }
.orymera-dream__result h2 { max-width: var(--orymera-width-display); margin: 0; font: 400 clamp(34px, 3.4vw, 46px)/1.1 var(--orymera-display); letter-spacing: -.03em; text-wrap: pretty; }
.orymera-dream__result section { padding: 34px 0 0; }
.orymera-dream__result h3 { margin: 0 0 12px; color: var(--orymera-label); font: 600 11px/1.4 var(--orymera-mono); letter-spacing: .16em; text-transform: uppercase; }
.orymera-dream__result section p, .orymera-dream__details p, .orymera-dream__alternative > p:last-child { max-width: 64ch; margin: 0; color: var(--orymera-text-strong); font-size: 17px; line-height: 1.75; }
.orymera-dream__details { display: grid; counter-reset: orymera-dream-detail; }
.orymera-dream__details p { position: relative; padding: 18px 0 18px 54px; border-top: 1px solid var(--orymera-rule); }
.orymera-dream__details p:first-child { padding-top: 4px; border-top: 0; }
.orymera-dream__details p::before { position: absolute; top: 18px; left: 0; color: var(--orymera-gold-deep); font: 500 12px/1.6 var(--orymera-mono); letter-spacing: .14em; counter-increment: orymera-dream-detail; content: counter(orymera-dream-detail, upper-roman); }
.orymera-dream__details p:first-child::before { top: 4px; }
.orymera-dream__alternative { margin-top: 38px; padding: 6px 0 6px 26px; border-left: 1px solid var(--orymera-gold); }
.orymera-dream__alternative .orymera-kicker { margin-bottom: 11px; color: var(--orymera-label); }
.orymera-dream__result blockquote { max-width: 42rem; margin: 48px 0 0; padding: 40px 0 0; border-top: 1px solid var(--orymera-rule); color: var(--orymera-ink); font: italic 400 clamp(28px, 3vw, 38px)/1.18 var(--orymera-display); }
.orymera-dream__next { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 32px; align-items: center; margin-top: 48px; padding: 26px 30px; border-radius: var(--orymera-r-lg); background: var(--orymera-night); color: var(--orymera-paper-on-night); }
.orymera-dream__next .orymera-kicker { margin: 0 0 8px; color: var(--orymera-gold); }
.orymera-dream__next p:not(.orymera-kicker) { max-width: 44ch; margin: 0; font: 400 20px/1.35 var(--orymera-display); }
.orymera-dream__next .orymera-button { --orymera-focus: 2px solid var(--orymera-gold); background: var(--orymera-paper-bright); color: var(--orymera-ink); white-space: nowrap; }

/* The engraved scene fills the top of the hero, its subject to the right; it darkens behind the headline and fades out under the form. */
.orymera-dream .orymera-tool-hero__picture { position: absolute; inset: 0 0 auto; width: 100%; height: min(56.3vw, 760px); object-fit: cover; object-position: 70% 55%;
    -webkit-mask-image: linear-gradient(180deg, #000 0, #000 62%, transparent 100%); mask-image: linear-gradient(180deg, #000 0, #000 62%, transparent 100%); }
@media (min-width: 851px) { .orymera-dream .orymera-tool-hero__picture { top: -72px; } }
.orymera-tool-page.orymera-dream .orymera-tool-hero__art::after { position: absolute; inset: 0; background: linear-gradient(90deg, rgb(13 12 28 / 60%) 0%, rgb(13 12 28 / 35%) 40%, rgb(13 12 28 / 0%) 60%), linear-gradient(180deg, rgb(13 12 28 / 45%) 0, rgb(13 12 28 / 0%) 24%); content: ''; }
@media (max-width: 850px) {
    .orymera-dream .orymera-tool-hero__picture { height: min(130vw, 520px); object-position: 76% 55%; }
    .orymera-tool-page.orymera-dream .orymera-tool-hero__art::after { background: linear-gradient(180deg, rgb(13 12 28 / 55%) 0%, rgb(13 12 28 / 70%) 60%, rgb(13 12 28 / 0%) 100%); }
}
.orymera-dream__disclaimer { margin: 42px 0 0; padding-top: 22px; border-top: 1px solid var(--orymera-rule); color: var(--orymera-text-muted); font-size: 12px; line-height: 1.6; }
.orymera-dream__result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.orymera-dream__result-actions button, .orymera-dream__safety button { cursor: pointer; }
.orymera-dream__result:focus-visible, .orymera-dream__safety:focus-visible { outline: var(--orymera-focus); outline-offset: 4px; border-radius: var(--orymera-r-md); }
.orymera-dream__safety { min-height: 620px; padding: clamp(40px, 7vw, 72px); place-content: center; }
.orymera-dream__safety:not([hidden]) { display: grid; }
.orymera-dream__safety h2 { max-width: var(--orymera-width-display); margin: 0 0 24px; font: 400 clamp(38px, 5vw, 58px)/1.04 var(--orymera-display); text-wrap: pretty; }
.orymera-dream__safety > p:not(.orymera-kicker) { max-width: 58ch; margin: 0 0 18px; color: var(--orymera-text-strong); font-size: 16px; line-height: 1.7; }
.orymera-dream__safety button { justify-self: start; margin-top: 12px; }

@keyframes orymera-dream-glow { 50% { fill-opacity: .4; } }
@keyframes orymera-dream-progress { 0% { transform: translateX(-110%); } 55% { transform: translateX(105%); } 100% { transform: translateX(235%); } }

@media (max-width: 850px) {
    .orymera-dream__form { grid-template-columns: 1fr; }
    .orymera-dream__field { padding: 0 0 24px; }
    .orymera-dream__context { border-left: 0; border-top: 1px solid var(--orymera-rule); }
    .orymera-dream__next { grid-template-columns: 1fr; padding: 22px; }
}

@media (max-width: 560px) {
    .orymera-dream__context, .orymera-dream__result, .orymera-dream__safety { padding: 24px 16px; }
    .orymera-dream__label-row span, .orymera-dream__choice-group legend small, .orymera-dream__result h3 { font-size: var(--orymera-type-small); }
    .orymera-dream__label-row span { flex-shrink: 0; white-space: nowrap; }
    .orymera-dream__loading { min-height: 520px; padding: 36px 22px; }
    .orymera-dream textarea { min-height: 220px; }
    .orymera-dream__choices span { min-height: 44px; padding-inline: 13px; }
    .orymera-dream__submit { width: 100%; }
    .orymera-dream__result h2 { font-size: 32px; }
    .orymera-dream__alternative { padding: 4px 0 4px 18px; }
    .orymera-dream__details p { padding-left: 0; }
    .orymera-dream__details p::before { position: static; display: block; margin-bottom: 6px; }
    .orymera-dream__result header { grid-template-columns: minmax(0, 1fr); }
    .orymera-dream__window { display: none; }
    .orymera-dream__result-actions { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
    .orymera-dream textarea, .orymera-dream__choices span { transition: none; }
    .orymera-dream__loading-mark circle, .orymera-dream__progress span { animation: none; }
}

/* The session note concerns an existing reading, so it stays out of the way while the form is showing. */
.orymera-dream__form:not([hidden]) ~ .orymera-dream__session-note { display: none; }
.orymera-dream__session-note { margin: 0; padding: 20px 0 0; border-top: 1px solid var(--orymera-rule); color: var(--orymera-text-muted); font: 400 14px/1.6 var(--orymera-body); }
.orymera-dream__loading.is-paused .orymera-dream__loading-mark, .orymera-dream__loading.is-paused .orymera-dream__progress { display: none; }

/* Dream's landing (2026-11-05): a bedside notebook. Dusk violet on paper, the night ground a deep blue-violet. */
.orymera-dream.orymera-tool-page { --orymera-accent: #a9a3e0; --orymera-accent-deep: #574f9c; --orymera-accent-wash: color-mix(in srgb, #a9a3e0 24%, transparent);
    --orymera-ground: #16142b; --orymera-ground-deep: #0d0c1c; --orymera-ground-glow: #2d2a5a; --orymera-cta-fill: #2d2a5a; --orymera-cta-hover: #3c3874; }
/* The annotated example (annotated.php): the dream on a notebook page, three marked phrases, a numbered note for each. */
.orymera-dream-note { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); max-width: 1100px; margin: 0 auto; }
.orymera-dream-note__page { padding: clamp(26px, 3.4vw, 44px); border: 1px solid var(--orymera-rule); border-radius: var(--orymera-r-lg); background: var(--orymera-card); box-shadow: inset 3px 0 0 var(--orymera-accent); }
.orymera-dream-note__label { margin: 0 0 14px; color: var(--orymera-label); font: 500 11px/1.4 var(--orymera-mono); letter-spacing: .1em; text-transform: uppercase; }
.orymera-dream-note blockquote { margin: 0; }
.orymera-dream-note blockquote p { margin: 0; color: var(--orymera-ink); font: italic 400 clamp(20px, 2vw, 24px)/1.5 var(--orymera-display); }
.orymera-dream-note mark { position: relative; padding: 1px 2px; border-radius: 3px; background: var(--orymera-accent-wash); color: inherit; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.orymera-dream-note mark::after { position: relative; top: -.7em; margin-left: 3px; color: var(--orymera-accent-deep); font: 600 11px/1 var(--orymera-mono); font-style: normal; content: attr(data-n); }
.orymera-dream-note__opening { margin: 24px 0 0; padding-top: 18px; border-top: 1px solid var(--orymera-rule); color: var(--orymera-ink); font: 400 18px/1.45 var(--orymera-display); }
.orymera-dream-note__opening span { display: block; margin-bottom: 6px; color: var(--orymera-accent-deep); font: 500 11px/1.4 var(--orymera-mono); letter-spacing: .1em; text-transform: uppercase; }
.orymera-dream-note__notes { display: grid; align-content: center; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: orymera-dream-note; }
.orymera-dream-note__notes li { position: relative; padding: 18px 0 18px 44px; border-top: 1px solid var(--orymera-rule); counter-increment: orymera-dream-note; }
.orymera-dream-note__notes li:last-child { border-bottom: 1px solid var(--orymera-rule); }
.orymera-dream-note__notes li::before { position: absolute; top: 18px; left: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--orymera-accent-wash); color: var(--orymera-accent-deep); font: 600 12px/1 var(--orymera-mono); content: counter(orymera-dream-note); }
.orymera-dream-note__notes h3 { margin: 0 0 6px; color: var(--orymera-ink); font: 400 21px/1.25 var(--orymera-display); }
.orymera-dream-note__notes p { margin: 0; color: var(--orymera-text-strong); font-size: 15px; line-height: 1.65; }
.orymera-dream-note figcaption { grid-column: 1 / -1; max-width: 70ch; margin: 4px auto 0; color: var(--orymera-text-muted); font-size: 15px; line-height: 1.65; text-align: center; }
/* After the reading: one quiet reading column. */
.orymera-dream .orymera-dream-moon .orymera-shell > p { margin: 18px 0 0; color: var(--orymera-text-strong); font-size: 17px; line-height: 1.75; }
@media (max-width: 860px) {
    .orymera-dream-note { grid-template-columns: minmax(0, 1fr); }
    .orymera-dream-note figcaption { text-align: left; margin-inline: 0; }
}
.orymera-dream .orymera-tool-section--on-night .orymera-basis { justify-content: center; margin: 40px auto 0; border-color: rgb(232 219 210 / 16%); }
.orymera-dream .orymera-tool-section--on-night .orymera-basis dt { color: var(--orymera-on-night-muted); }
.orymera-dream .orymera-tool-section--on-night .orymera-basis dd { color: var(--orymera-on-night-strong); }

/* The side panel runs to the card's top and right edges, so it reads as the card's own column rather than a box
   floating inside the card's padding. On phones it spans the card's full width between the text field and the button. */
.orymera-dream .orymera-tool-form-card { --orymera-dream-pad: clamp(28px, 3vw, 38px); padding: var(--orymera-dream-pad); overflow: hidden; }
.orymera-dream .orymera-dream__context { margin: calc(-1 * var(--orymera-dream-pad)) calc(-1 * var(--orymera-dream-pad)) 0 0; padding: var(--orymera-dream-pad) 28px 28px; }
@media (max-width: 850px) {
    .orymera-dream .orymera-dream__context { margin: 0 calc(-1 * var(--orymera-dream-pad)); padding: 24px var(--orymera-dream-pad); }
}
@media (max-width: 560px) { .orymera-dream .orymera-tool-form-card { --orymera-dream-pad: 24px; } }
.orymera-dream .orymera-dream__actions { margin-inline: calc(-1 * var(--orymera-dream-pad)); padding-inline: var(--orymera-dream-pad); }
