/* Rose & Sword · Letters, practical choices and a manor that remembers. */
.journey-panel { margin: 0 0 13px; padding: 12px 13px 10px; border: 1px solid var(--card-line); border-left: 2px solid #7c8d92; background: #faf8f26b; border-radius: 2px; }
.journey-heading, .journey-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.journey-heading > div, .journey-foot > p { min-width: 0; }
.journey-heading .eyebrow { font-size: 8px; margin: 0 0 2px; letter-spacing: 1.5px; }
.journey-heading h3 { font-size: 16px; line-height: 1.5; letter-spacing: .8px; }
.journey-heading .text-link { flex: 0 0 auto; font-size: 10px; min-height: 30px; padding: 3px 0; color: var(--accent-dark); }
.unread-letter:before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--rose); }
.journey-goals { display: grid; gap: 3px; margin-top: 9px; }
.journey-goal { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 5px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.journey-goal > span:first-child { color: var(--gold); }
.journey-goal.complete { color: var(--garden); }
.journey-goal strong { color: var(--accent-dark); font-weight: 500; font-variant-numeric: tabular-nums; }
.journey-goal strong small { color: var(--muted); font-size: inherit; font-weight: 400; }
.journey-foot { margin-top: 9px; padding-top: 7px; border-top: 1px solid var(--line); }
.next-hint { font-size: 10px; line-height: 1.65; color: var(--muted); }
.journey-foot .secondary { padding: 4px 9px; min-height: 30px; flex-shrink: 0; font-size: 10px; letter-spacing: 0; }
.reward-collected { font-size: 9px; color: var(--garden); white-space: nowrap; }
.practice-resume { background: #e6ecea80; border-color: #7b969247; }
.practice-resume .secondary { flex-shrink: 0; }
.manor-hub { display: flex; align-items: center; gap: 18px; padding: 18px 20px; margin-top: 24px; border: 1px solid var(--card-line); background: #f8f5ee70; border-radius: 2px; }
.hub-symbol { display: grid; place-items: center; width: 42px; height: 42px; color: var(--accent); flex-shrink: 0; border-right: 1px solid var(--line); padding-right: 12px; }
.hub-symbol svg { width: 28px; height: 28px; }
.manor-hub > div:nth-child(2) { flex: 1; min-width: 0; }
.manor-hub .eyebrow { margin-bottom: 2px; }
.manor-hub h2 { font-size: 19px; }
.manor-hub p { font-size: 11px; color: var(--muted); margin-top: 4px; }
.manor-hub .secondary { padding: 6px 13px; flex-shrink: 0; }
.manor-intro { margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.manor-intro > p:first-child { font: 15px/1.9 var(--serif); color: var(--muted); }
.supply-ledger { display: flex; gap: 9px 20px; flex-wrap: wrap; margin: 17px 0 8px; }
.supply-ledger > span { color: var(--muted); font-size: 11px; padding-right: 20px; border-right: 1px solid var(--line); }
.supply-ledger > span:last-child { border-right: 0; }
.supply-ledger strong { color: var(--accent-dark); font: 16px Georgia, serif; margin-left: 8px; }
.manor-intro .standalone-note { text-align: left; margin: 8px 0 0; }
.manor-block-note { padding: 10px 14px; border: 1px solid var(--card-line); margin-bottom: 22px; color: var(--muted); background: var(--accent-soft); font-size: 12px; }
.manor-block-note .text-link { margin-left: 12px; }
.manor-section { margin-top: 30px; }
.contact-grid, .project-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.contact-card { position: relative; padding: 23px 20px 18px; border: 1px solid var(--card-line); background: var(--paper); border-radius: 2px; }
.contact-card > .eyebrow { padding-right: 45px; font: 10px/1.5 var(--serif); letter-spacing: 1px; margin: 2px 0 7px; }
.contact-initial { position: absolute; right: 18px; top: 20px; display: grid; place-items: center; width: 37px; height: 43px; color: var(--accent); font: 19px var(--serif); border: 1px solid var(--card-line); border-radius: 18px 18px 2px 2px; background: var(--accent-soft); }
.contact-card h3 { font-size: 21px; padding-right: 40px; }
.relationship { display: flex; align-items: center; gap: 8px; font-size: 10px; color: var(--muted); margin: 14px 0 16px; }
.relationship strong { font: 14px Georgia,serif; color: var(--accent); }
.relationship-meter { height: 2px; max-width: 80px; flex: 1; background: var(--paper-deep); }
.relationship-meter > span { display: block; height: 100%; background: #7f9499; }
.contact-scene-title { min-height: 23px; font: 14px/1.7 var(--serif); color: var(--ink); }
.contact-memory { color: var(--muted); font-size: 11px; margin-top: 9px; line-height: 1.8; }
.contact-card > button { margin-top: 18px; padding: 7px 13px; font-size: 11px; }
.project-card { overflow: hidden; border: 1px solid var(--card-line); border-radius: 2px; background: var(--paper); }
.project-art { position: relative; height: 130px; overflow: hidden; }
.project-art img { width: 100%; height: 100%; object-fit: cover; opacity: .86; }
.project-art:after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg,#f8f5ee4a,transparent); }
.project-art > span { position: absolute; bottom: 10px; right: 10px; z-index: 1; background: #f8f5eee8; border: 1px solid #fff9; padding: 2px 8px; font-size: 10px; color: var(--accent-dark); }
.project-copy { padding: 17px 20px 20px; }
.project-copy h3 { font-size: 20px; margin-bottom: 8px; }
.project-copy > p { font-size: 11px; line-height: 1.85; color: var(--muted); }
.project-copy h4 { margin: 17px 0 5px; color: var(--ink); font: 13px/1.7 var(--serif); }
.project-copy .project-cost { color: var(--gold); font-size: 10px; }
.project-copy button { margin-top: 13px; padding: 7px 13px; font-size: 11px; max-width: 100%; white-space: normal; }
.project-finished { margin: 14px 0 8px; color: var(--garden); font-size: 12px; }
.project-memory { margin-top: 8px; }
.manor-return { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.practice-head { display: flex; justify-content: space-between; gap: 15px; align-items: start; padding-right: 16px; }
.practice-head .dialog-eyebrow { padding: 0; }
.practice-count { font-size: 10px; color: var(--muted); white-space: nowrap; }
.practice-progress { display: flex; gap: 6px; margin: 17px 0 20px; }
.practice-progress > span { flex: 1; height: 2px; background: var(--paper-deep); }
.practice-progress > .done { background: #9caea4; }
.practice-progress > .current { background: var(--accent); }
.practice-context { color: var(--muted); font: 14px/1.95 var(--serif); margin: 0 0 20px; }
.practice-prompt { font: 16px/1.9 var(--serif); letter-spacing: .25px; margin: 20px 0 15px; }
.practice-feedback { padding: 12px 14px; margin: 0 0 18px; background: #e3e9e26b; border-left: 2px solid #96a28d; }
.practice-feedback strong { font-weight: 500; color: var(--garden); font-size: 10px; letter-spacing: .5px; }
.practice-feedback p { font: 13px/1.9 var(--serif); color: var(--muted); margin-top: 3px; }
.practice-choices .event-choice { display: flex; align-items: baseline; gap: 12px; padding: 13px 16px; }
.practice-choices .event-choice strong { font-size: 13px; font-family: var(--serif); line-height: 1.9; }
.choice-number { flex-shrink: 0; color: var(--gold); font: 12px Georgia,var(--serif); }
.practice-note { margin-top: 19px; font-size: 10px; color: var(--muted); text-align: center; }
.practice-assessment { font-size: 11px; color: var(--gold); margin-top: 12px; }
.practice-review { display: grid; gap: 12px; margin: 20px 0; }
.practice-review p { display: flex; gap: 12px; font: 13px/1.9 var(--serif); color: var(--muted); }
.practice-review p > span { color: var(--gold); padding-top: 2px; font: 12px/1.9 Georgia,serif; flex: 0 0 13px; }
.story-subtitle { font: 12px/1.8 var(--serif); color: var(--gold); margin-top: 7px; }
.story-page { padding: 18px 0 12px; min-height: 140px; }
.story-paragraph { font: 15px/2.15 var(--serif); color: var(--ink); margin: 12px 0; text-align: justify; }
.story-page-count { text-align: center; font: 11px Georgia,serif; color: var(--muted); margin: 4px 0 18px; }
.ending-summary { padding: 19px 0 5px; margin-top: 25px; border-top: 1px solid var(--line); }
.ending-summary h3 { font-size: 16px; margin-bottom: 10px; }
.ending-summary > p { font-size: 11px; color: var(--muted); margin: 11px 0; }
.ending-summary .gain-tags { gap: 7px; margin-top: 16px; }
.ending-people { margin-top: 15px; }
.ending-people p { display: flex; align-items: center; justify-content: space-between; font: 13px/1.8 var(--serif); color: var(--muted); }
.ending-people strong { font: 11px Georgia,var(--serif); color: var(--accent); }
.journal-filters { display: flex; gap: 5px; flex-wrap: wrap; padding-bottom: 11px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.journal-filters button { min-height: 36px; padding: 6px 12px; font-size: 11px; color: var(--muted); border: 1px solid transparent; border-radius: 2px; }
.journal-filters button.active { background: var(--accent-soft); border-color: var(--card-line); color: var(--accent-dark); }
.journal-milestones { display: grid; gap: 12px; margin-bottom: 18px; }
.journal-milestones:empty { display: none; }
.milestone-entry { border-left: 2px solid #899a9e; }
.journal-entry > small { color: var(--garden); font-size: 10px; }
.journal-day { display: grid; gap: 10px; }
.journal-day > h2 { font: 16px/1.8 var(--serif); color: var(--gold); padding: 4px 0 1px; }
.journal-more { display: block; margin: 24px auto; }
@media (min-width: 1051px) and (max-height: 850px) {
 .journey-panel { padding: 9px 11px 8px; margin-bottom: 8px; }
 .journey-heading h3 { font-size: 14px; }
 .journey-goals { margin-top: 6px; gap: 2px; }
 .journey-foot { padding-top: 5px; margin-top: 6px; }
 .journey-foot .next-hint { font-size: 9px; }
 .manor-hub { margin-top: 18px; padding: 12px 18px; }
}
@media (max-width: 760px) {
 .journey-panel { padding: 12px; margin-bottom: 14px; }
 .journey-heading { gap: 8px; }
 .journey-heading h3 { font-size: 16px; }
 .journey-heading .text-link { min-height: 44px; font-size: 10px; }
 .journey-goal { font-size: 11px; gap: 6px; }
 .journey-goals { gap: 5px; }
 .journey-foot { align-items: flex-start; }
 .next-hint { font-size: 10px; }
 .journey-foot .secondary { min-height: 44px; }
 .manor-hub { margin-top: 18px; padding: 16px 13px; gap: 12px; flex-wrap: wrap; }
 .hub-symbol { width: 29px; padding-right: 8px; }
 .hub-symbol svg { width: 23px; height: 23px; }
 .manor-hub .eyebrow { font-size: 8px; letter-spacing: 1.3px; }
 .manor-hub h2 { font-size: 18px; }
 .manor-hub p { font-size: 10px; }
 .manor-hub .secondary { margin-left: 41px; font-size: 11px; min-height: 44px; }
 .manor-section { margin-top: 24px; }
 .manor-section .section-title { align-items: baseline; flex-wrap: wrap; }
 .manor-section .section-title h2 { font-size: 21px; }
 .contact-grid, .project-grid { grid-template-columns: 1fr; gap: 14px; }
 .contact-card { padding: 20px 17px 17px; }
 .contact-scene-title { font-size: 15px; }
 .contact-card > button { min-height: 44px; }
 .project-art { height: 150px; }
 .project-copy { padding: 17px; }
 .project-copy button { min-height: 44px; }
 .manor-intro > p:first-child { font-size: 14px; }
 .manor-intro .standalone-note { font-size: 10px; }
 .supply-ledger { gap: 10px 12px; }
 .supply-ledger > span { padding-right: 12px; font-size: 10px; }
 .supply-ledger strong { margin-left: 5px; font-size: 14px; }
 .manor-return { flex-direction: column; align-items: flex-start; gap: 12px; }
 .practice-head { gap: 5px; padding-right: 12px; }
 .practice-head .dialog-eyebrow { font-size: 8px; letter-spacing: 1.2px; }
 .practice-context { font-size: 14px; }
 .practice-prompt { font-size: 15px; }
 .practice-choices .event-choice { padding: 12px; gap: 9px; min-height: 50px; }
 .practice-choices .event-choice strong { font-size: 13px; }
 .practice-feedback { padding: 11px 12px; }
 .practice-review p { font-size: 13px; }
 .story-paragraph { font-size: 14px; line-height: 2.05; }
 .story-page { min-height: 120px; }
 .journal-filters { gap: 4px; }
 .journal-filters button { min-height: 44px; padding: 6px 10px; font-size: 10px; }
 .practice-resume { align-items: flex-start; flex-direction: column; gap: 10px; }
 .practice-resume h3 { font-size: 16px; }
 .practice-resume .secondary { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) { .practice-progress, .relationship-meter { scroll-behavior: auto; } }
@media (forced-colors: active) {
 .journey-panel,.manor-hub,.contact-card,.project-card,.practice-feedback,.journal-filters button { border: 1px solid CanvasText; }
 .practice-progress > .done,.practice-progress > .current,.relationship-meter > span { background: Highlight; }
}
.goal-link { display: inline; text-align: left; font-size: inherit; color: inherit; min-height: 0; padding: 0; line-height: inherit; font-weight: inherit; }
.goal-link:hover { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.journey-manor-link { display: block; width: 100%; min-height: 30px; padding: 6px 0 0; margin-top: 2px; font-size: 9px; letter-spacing: 0; color: var(--accent); text-align: left; }
.practice-reference { color: var(--muted); font-size: 11px; margin-bottom: 14px; }
.practice-reference summary { cursor: pointer; min-height: 32px; padding: 6px 0; }
.practice-reference .practice-context { margin-top: 10px; padding-left: 12px; border-left: 1px solid var(--line); font-size: 13px; }
.chapter-transition { border-top: 1px solid var(--line); padding-top: 19px; margin-top: 15px; }
.chapter-transition h3 { font-size: 17px; }
.chapter-transition .story-paragraph { font-size: 13px; }
.chapter-transition > p:last-child { font-size: 11px; color: var(--garden); }
.growth-column .journey-heading { gap: 5px; align-items: flex-start; }
.growth-column .journey-heading h3 { font-size: 15px; }
.growth-column .journey-heading .text-link { max-width: 57px; line-height: 1.6; text-align: right; flex-shrink: 0; font-size: 9px; }
.growth-column .journey-foot { flex-wrap: wrap; gap: 6px; }
.growth-column .journey-foot .next-hint { width: 100%; }
@media (max-width: 760px) {
 .growth-column .journey-heading .text-link { max-width: none; min-height: 44px; font-size: 11px; }
 .growth-column .journey-heading h3 { font-size: 18px; }
 .journey-manor-link { min-height: 44px; font-size: 11px; }
 .goal-link { min-height: 28px; padding: 3px 0; }
 .journey-goal { align-items: center; }
}
.mobile-journey { display: none; }
.project-card[data-level="0"] .project-art img { opacity: .65; }
.project-card[data-level="1"] .project-art img { opacity: .8; }
.project-card[data-level="2"] .project-art img { opacity: .93; }
.project-card[data-level="3"] .project-art img { opacity: 1; }
.project-copy .project-current { color: var(--accent); padding-top: 9px; margin-top: 9px; border-top: 1px solid var(--line); font-size: 11px; }
.journal-practice { margin-top: 13px; padding-top: 8px; border-top: 1px solid var(--line); }
.journal-practice summary { min-height: 32px; padding: 6px 0; cursor: pointer; color: var(--accent); font-size: 10px; }
.journal-practice .practice-memory { font: 12px/1.9 var(--serif); color: var(--muted); }
@media (max-width: 760px) {
 .mobile-journey { display: block; }
 .growth-column > .journey-panel { display: none; }
 .journal-practice summary { min-height: 44px; padding: 11px 0; }
}
.relationship strong small { font: 10px Georgia,serif; color: var(--muted); }
.relationship-status { color: var(--garden); font: 11px/1.7 var(--serif); margin: -7px 0 11px; }
.project-card[data-level="3"] .project-art:before { content: '❧'; position: absolute; top: 10px; right: 10px; width: 27px; height: 31px; display: grid; place-items: center; color: #526a76; background: #f1f3efdf; border: 1px solid #b6c0bd; border-radius: 13px 13px 2px 2px; z-index: 2; font: 15px Georgia,serif; }
.scene-copy .eyebrow { display: flex; flex-wrap: wrap; gap: 3px 10px; align-items: center; }
.scene-restoration-label { color: var(--accent); font: 9px/1.5 var(--serif); letter-spacing: .2px; white-space: nowrap; }
.scene-card[data-restoration="0"] .scene-art img { opacity: .73; }
.scene-card[data-restoration="1"] .scene-art img { opacity: .84; }
.scene-card[data-restoration="2"] .scene-art img { opacity: .94; }
.scene-card[data-restoration="3"] .scene-art img { opacity: 1; }
.ending-final-letter { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.ending-final-letter h3 { font-size: 16px; }
.ending-final-letter .story-paragraph { font-size: 13px; color: var(--muted); }
.ending-reserves { padding: 14px 0 0; margin-top: 16px; border-top: 1px solid var(--line); }
.ending-reserves h3 { font-size: 15px; margin: 0 0 7px; }
.ending-reserves p { font-size: 11px; color: var(--muted); margin: 5px 0; line-height: 1.9; }
.finale-banner { background: #ebe9dfaa; border-color: #a99a7759; }
.finale-banner-actions { display: flex; gap: 9px; flex-wrap: wrap; flex-shrink: 0; }
.finale-checklist { padding: 12px 16px; border: 1px solid var(--card-line); background: #f9f7f16b; }
.finale-checklist p { display: flex; gap: 15px; align-items: baseline; justify-content: space-between; margin: 6px 0; font: 13px/1.8 var(--serif); color: var(--muted); }
.finale-checklist strong { flex-shrink: 0; color: var(--accent); font: 13px Georgia,var(--serif); }
@media(max-width:760px) { .finale-banner { align-items: flex-start; flex-direction: column; } .finale-banner-actions { gap: 8px; } .finale-banner-actions button { font-size: 10px; padding-left: 12px; padding-right: 12px; } }
.project-requirements { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin: 10px 0 0; }
.project-requirements > span:first-child { flex-basis: 100%; color: var(--muted); font-size: 10px; margin-bottom: 1px; }
.project-copy .requirement-chip { display: inline-flex; gap: 7px; align-items: baseline; min-height: 30px; margin: 0; padding: 4px 7px; border: 1px solid var(--card-line); border-radius: 2px; color: var(--accent); background: #e7eceb70; font-size: 10px; line-height: 1.6; }
.requirement-chip strong { font: 11px Georgia,serif; font-weight: 400; }
.project-copy .requirement-chip.met { color: var(--garden); background: #e9ede361; border-color: #9ba18d4a; }
.project-copy .requirement-chip:hover { border-color: var(--accent); background: var(--accent-soft); }
@media(max-width:760px) { .project-copy .requirement-chip { min-height: 44px; padding: 9px; } }
/* A letter-sized addition to estate life: no new art, just places and choices. */
.outings-section { padding-top: 24px; border-top: 1px solid var(--line); }
.outings-intro { max-width: 760px; color: var(--muted); font: 13px/1.9 var(--serif); margin-bottom: 15px; }
.outing-filters { display: flex; gap: 5px; flex-wrap: wrap; margin: 14px 0 18px; }
.outing-filters button { min-height: 36px; padding: 6px 12px; border: 1px solid transparent; border-radius: 2px; font-size: 11px; color: var(--muted); }
.outing-filters button.active { background: var(--accent-soft); color: var(--accent-dark); border-color: var(--card-line); }
.outing-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.outing-card { padding: 20px; border: 1px solid var(--card-line); border-radius: 2px; background: #faf8f280; min-width: 0; }
.outing-card.visited { background: #edf0e74d; }
.outing-card-top { display: flex; gap: 12px; align-items: flex-start; }
.outing-card-top > div { min-width: 0; }
.outing-emblem { display: grid; place-items: center; width: 34px; height: 39px; flex: 0 0 34px; border: 1px solid var(--card-line); border-radius: 16px 16px 2px 2px; color: var(--accent); background: #e5ebea69; }
.outing-emblem svg { width: 21px; height: 21px; }
.outing-card .eyebrow { font: 10px/1.5 var(--serif); letter-spacing: 1px; margin-bottom: 4px; color: var(--gold); }
.outing-card h3 { font-size: 19px; line-height: 1.6; }
.outing-location { font-size: 10px; color: var(--muted); margin-top: 5px; }
.outing-description { color: var(--muted); font: 12px/1.95 var(--serif); margin: 15px 0 14px; }
.outing-keepsake-preview { display: flex; flex-wrap: wrap; gap: 5px 12px; align-items: baseline; padding-top: 12px; border-top: 1px solid var(--line); }
.outing-keepsake-preview > span { color: var(--muted); font-size: 9px; }
.outing-keepsake-preview strong { color: var(--gold); font: 12px/1.7 var(--serif); }
.outing-card-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 14px; }
.outing-card-bottom > p { font-size: 10px; color: var(--muted); }
.outing-card-bottom .secondary { min-height: 36px; font-size: 10px; padding: 6px 11px; max-width: 100%; white-space: normal; }
.outing-empty { grid-column: 1 / -1; color: var(--muted); padding: 30px 15px; text-align: center; font-size: 12px; border: 1px dashed var(--card-line); }
.outing-act-title { color: var(--gold); font: 16px/1.8 var(--serif); margin: 20px 0 10px; }
.outing-return { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.outing-return h3 { font-size: 16px; }
.outing-return .story-paragraph { font-size: 14px; }
.outing-keepsake { border: 1px solid var(--card-line); background: #e9ede34d; padding: 16px 18px; margin-top: 15px; }
.outing-keepsake h3 { font-size: 17px; margin-bottom: 6px; }
.outing-keepsake p { color: var(--muted); font: 12px/1.9 var(--serif); }
.outing-keepsake small { display: block; color: var(--garden); font-size: 10px; margin-top: 10px; }
@media(max-width:760px) {
 .outing-grid { grid-template-columns: 1fr; gap: 13px; }
 .outing-card { padding: 17px 15px; }
 .outing-filters button { min-height: 44px; padding: 8px 11px; }
 .outing-card-bottom .secondary { min-height: 44px; padding: 8px 12px; }
 .outing-card h3 { font-size: 18px; }
 .outings-intro { font-size: 12px; }
 .outing-act-title { font-size: 15px; }
 .outing-return .story-paragraph { font-size: 13px; }
}
.manor-shortcuts { display: flex; justify-content: flex-start; margin-top: 4px; }
.manor-shortcuts .text-link { font-size: 11px; padding-left: 0; color: var(--accent); }
.outings-section { scroll-margin-top: 20px; }
/* Eleanor's changing expression follows the scene; the gallery is only a quiet preview. */
.portrait-avatar { position: relative; overflow: hidden; background: var(--paper-deep); }
.portrait-avatar img { position: absolute; display: block; width: 260%; max-width: none; height: auto; left: -80%; top: -8%; }
.portrait-avatar img[data-portrait-generation="legacy"] { width: 330%; left: -115%; top: 0; }
.portrait-avatar img[data-portrait-generation="v13"] { left: -95%; }
.portrait-gallery-open { margin-top: 12px; padding-left: 0; color: var(--accent); }
.portrait-gallery { display: grid; grid-template-columns: minmax(0,1fr) 175px; gap: 21px; margin-top: 20px; align-items: start; }
.portrait-gallery-stage { margin: 0; min-width: 0; padding: 17px 13px 14px; border: 1px solid var(--card-line); border-radius: 72px 72px 3px 3px; background: linear-gradient(180deg,#e3e8e37a,#faf8f280); text-align: center; }
.portrait-gallery-stage > img { display: block; width: 100%; height: min(48dvh,365px); object-fit: contain; object-position: center bottom; }
.portrait-gallery-stage figcaption { padding-top: 13px; margin-top: 10px; border-top: 1px solid var(--line); }
.portrait-gallery-stage h3 { font-size: 16px; }
.portrait-gallery-stage p { font: 11px/1.9 var(--serif); color: var(--muted); margin-top: 7px; }
.portrait-gallery-choices { display: grid; gap: 7px; }
.portrait-choice { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 63px; padding: 5px 9px 5px 5px; border: 1px solid var(--card-line); border-radius: 2px; color: var(--muted); background: #faf8f269; text-align: left; font-size: 10px; line-height: 1.7; }
.portrait-choice.active { color: var(--accent-dark); border-color: #83999f; background: var(--accent-soft); }
.portrait-choice:not(:disabled):hover { border-color: var(--accent); background: #e8eeec7a; }
.portrait-choice-image { display: block; width: 39px; height: 53px; flex: 0 0 39px; background: #f3f2e978; }
.portrait-choice-image img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
@media(max-width:760px) {
 .portrait-gallery { grid-template-columns: minmax(0,1fr); gap: 14px; margin-top: 17px; }
 .portrait-gallery-stage { padding: 12px 13px; border-radius: 58px 58px 3px 3px; }
 .portrait-gallery-stage > img { height: min(44dvh,310px); }
 .portrait-gallery-choices { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
 .portrait-choice { min-width: 0; min-height: 92px; padding: 6px 3px; flex-direction: column; gap: 4px; text-align: center; font-size: 9px; line-height: 1.5; }
 .portrait-choice-image { height: 54px; width: 37px; flex-basis: 54px; }
 .portrait-gallery-stage h3 { font-size: 16px; }
 .portrait-gallery-stage p { font-size: 11px; }
}
.portrait-view-switch { display: flex; gap: 7px; margin-top: 17px; }
.portrait-view-switch button { min-height: 44px; padding: 8px 20px; border: 1px solid var(--card-line); border-radius: 2px; font-size: 11px; color: var(--muted); background: #faf8f269; }
.portrait-view-switch button.active { border-color: #83999f; color: var(--accent-dark); background: var(--accent-soft); }
.portrait-gallery-art { position: relative; width: 100%; height: min(48dvh,365px); overflow: hidden; }
.portrait-gallery-art > img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.portrait-gallery-art[data-portrait-view="expression"] > img { position: absolute; width: 220%; max-width: none; height: auto; left: -60%; top: -4%; object-fit: initial; }
.portrait-choice-image { position: relative; overflow: hidden; }
.portrait-choice-image img { position: absolute; width: 320%; max-width: none; height: auto; left: -110%; top: -4%; object-fit: initial; }
.portrait-gallery-art[data-portrait-view="expression"] > img[data-portrait-generation="v13"] { left: -73%; }
.portrait-choice-image img[data-portrait-generation="v13"] { left: -128%; }
@media(max-width:760px) {
 .portrait-gallery-art { height: min(44dvh,310px); }
 .portrait-view-switch { margin-top: 14px; }
 .portrait-view-switch button { flex: 1; min-width: 0; }
}

/* Reference plates are book pages, separate from the fictional manor scenes. */
.practice-atlas { margin: 13px 0 19px; }
.practice-atlas > button { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 84px; padding: 7px; border: 1px solid var(--card-line); border-radius: 4px; background: #f7f2e66b; color: var(--accent-dark); text-align: left; }
.practice-atlas > button:hover { border-color: var(--accent); background: var(--paper); }
.practice-atlas img { display: block; flex: 0 0 70px; width: 70px; height: 70px; object-fit: cover; border: 1px solid #a58c6559; background: var(--paper-deep); }
.practice-atlas button > span { display: block; min-width: 0; padding-right: 7px; }
.practice-atlas button > span > svg { width: 14px; height: 14px; margin-right: 5px; vertical-align: middle; color: var(--gold); }
.practice-atlas strong { font: 600 13px/1.8 var(--serif); }
.practice-atlas small { display: block; font-size: 10px; color: var(--muted); margin-top: 5px; }
.practice-atlas figcaption { color: var(--muted); font-size: 9px; line-height: 1.8; margin-top: 6px; }
.reference-intro { color: var(--muted); font: 12px/1.9 var(--serif); margin: 12px 0 15px; }
.reference-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 16px; }
.reference-tabs button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 13px; border: 1px solid var(--card-line); border-radius: 3px; color: var(--muted); font-size: 11px; background: var(--paper); text-align: left; }
.reference-tabs button > span { font: 12px Georgia,serif; color: var(--gold); }
.reference-tabs button.active { color: var(--accent-dark); border-color: #849a9b; background: var(--accent-soft); }
.reference-figure { margin: 0; min-width: 0; padding: 10px 10px 0; border: 1px solid var(--card-line); border-radius: 3px; background: #eee6d466; box-shadow: 3px 3px 0 #a18c6814; }
.reference-figure > img { display: block; width: 100%; height: min(50dvh,420px); object-fit: contain; background: #e9e3d7; }
.reference-figure.reference-enlarged > img { height: auto; max-height: none; object-fit: initial; }
.reference-figure figcaption { padding: 12px 3px 14px; }
.reference-figure figcaption strong { color: var(--gold); font: 600 13px/1.7 var(--serif); }
.reference-figure figcaption p { color: var(--muted); font: 11px/1.9 var(--serif); margin-top: 5px; }
@media(max-width:760px) {
 .practice-atlas > button { gap: 10px; }
 .practice-atlas img { width: 62px; height: 68px; flex-basis: 62px; }
 .practice-atlas strong { font-size: 12px; }
 .practice-atlas small { font-size: 9px; }
 .reference-tabs { gap: 6px; }
 .reference-tabs button { padding: 8px 10px; font-size: 10px; }
 .reference-figure { padding: 7px 7px 0; }
 .reference-figure > img { height: min(46dvh,360px); }
 .reference-figure figcaption p { font-size: 11px; }
}

/* A clear first letter, followed by small explanations beside each commission. */
.journey-window { color: var(--muted); font-size: 9px; line-height: 1.65; margin: 7px 0 2px; }
.journey-window > span { display: block; color: var(--gold); }
.journey-goal .goal-link { text-align: left; text-underline-offset: 3px; }
.journey-goal .goal-link:hover { text-decoration: underline; }
.letter-topics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); list-style: none; gap: 5px; padding: 0; margin: 17px 0 14px; }
.letter-topics > li { display: flex; align-items: center; gap: 5px; min-width: 0; padding: 7px 5px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; line-height: 1.6; }
.letter-topics > li > span { color: var(--gold); font: 11px Georgia,serif; }
.letter-topics > li.current { border-bottom-color: var(--accent); color: var(--accent-dark); background: #e7ece772; }
.letter-topics > li.read > span { color: var(--garden); }
.goal-guide-progress { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; margin: 20px 0 16px; padding-bottom: 13px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.goal-guide-progress > strong { color: var(--accent-dark); font: 25px/1.3 Georgia,serif; font-variant-numeric: tabular-nums; }
.goal-guide-progress > strong > small { color: var(--muted); font-size: 14px; }
.goal-guide-details { display: grid; gap: 15px; margin: 0; }
.goal-guide-details > div { display: grid; grid-template-columns: 78px minmax(0,1fr); gap: 12px; }
.goal-guide-details dt { color: var(--gold); font-size: 11px; line-height: 1.9; }
.goal-guide-details dd { min-width: 0; margin: 0; color: var(--ink); font: 13px/1.9 var(--serif); }
.goal-guide-note { color: var(--muted); font: 11px/1.9 var(--serif); margin-top: 14px; }
.goal-guide-note + .goal-guide-note { margin-top: 5px; }
.goal-guide-pending { color: var(--accent-dark); font-size: 11px; line-height: 1.8; padding: 10px 12px; margin-top: 14px; border-left: 2px solid var(--line); background: #e6ecea6b; }
#manor-friends, #manor-projects { scroll-margin-top: 22px; }
#manor-friends-title:focus, #manor-projects-title:focus { outline: 1px solid var(--accent); outline-offset: 6px; }
@media(max-width:760px) {
 .journey-window { font-size: 9px; margin-top: 5px; }
 .letter-topics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 3px 8px; margin-top: 14px; }
 .letter-topics > li { padding: 5px 4px; font-size: 10px; }
 .goal-guide-details { gap: 13px; }
 .goal-guide-details > div { grid-template-columns: minmax(0,1fr); gap: 3px; }
 .goal-guide-details dd { font-size: 12px; }
 .goal-guide-progress { margin-top: 17px; margin-bottom: 14px; }
}

/* A character enters her own life before the optional commission notes. */
.chapter-identity { display: grid; grid-template-columns: 104px minmax(0,1fr); align-items: center; gap: 19px; margin: 18px 0 10px; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.chapter-identity-portrait { position: relative; width: 104px; height: 140px; overflow: hidden; border: 1px solid var(--card-line); border-radius: 44px 44px 3px 3px; background: linear-gradient(150deg,#e3e9e5,#f3eee2); }
.chapter-identity-portrait > img { position: absolute; display: block; width: 280%; max-width: none; height: auto; left: -112%; top: -4%; }
.chapter-identity-copy { min-width: 0; }
.chapter-identity-copy .eyebrow { font-size: 8px; letter-spacing: 1.7px; margin-bottom: 6px; }
.chapter-identity-copy h3 { font: 600 23px/1.55 var(--serif); letter-spacing: .8px; overflow-wrap: anywhere; }
.chapter-identity-copy p { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 8px; color: var(--muted); font-size: 11px; line-height: 1.8; margin-top: 7px; }
.chapter-identity-copy p > i { color: var(--gold); font-style: normal; }
.chapter-identity.character-presence { grid-template-columns: 48px minmax(0,1fr); gap: 13px; margin-top: 15px; padding-bottom: 12px; }
.character-presence .chapter-identity-portrait { width: 48px; height: 63px; border-radius: 22px 22px 2px 2px; }
.character-presence .chapter-identity-copy .eyebrow { display: none; }
.character-presence .chapter-identity-copy h3 { font-size: 17px; }
.character-presence .chapter-identity-copy p { font-size: 10px; margin-top: 3px; }
.chapter-life-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 20px; }
.chapter-life-actions > .primary { flex: 1 1 160px; }
.chapter-life-actions > .secondary { flex: 1 1 140px; }
.chapter-life-actions > .text-link { flex: 0 1 auto; color: var(--muted); font-size: 11px; }
.commission-intro { color: var(--muted); font: 13px/1.95 var(--serif); margin: 15px 0 12px; }
.commission-window { color: var(--gold); font-size: 10px; line-height: 1.8; margin-bottom: 10px; }
.commission-list { display: grid; gap: 7px; }
.commission-list > button { display: grid; grid-template-columns: 12px minmax(0,1fr) auto 10px; gap: 9px; align-items: center; min-height: 48px; padding: 10px 12px; border: 1px solid var(--card-line); border-radius: 3px; color: var(--accent-dark); background: var(--paper); text-align: left; }
.commission-list > button:hover { border-color: var(--accent); background: var(--accent-soft); }
.commission-list > button > span { color: var(--gold); }
.commission-list > button > strong { min-width: 0; color: var(--ink); font: 500 12px/1.8 var(--serif); }
.commission-list > button > small { color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media(max-width:760px) {
 .chapter-identity { grid-template-columns: 84px minmax(0,1fr); gap: 14px; margin-top: 16px; padding-bottom: 13px; }
 .chapter-identity-portrait { width: 84px; height: 116px; border-radius: 35px 35px 3px 3px; }
 .chapter-identity-copy h3 { font-size: 20px; line-height: 1.55; letter-spacing: .3px; }
 .chapter-identity-copy .eyebrow { font-size: 7px; letter-spacing: 1px; }
 .chapter-identity-copy p { font-size: 10px; gap: 2px 5px; margin-top: 5px; }
 .chapter-identity.character-presence { grid-template-columns: 44px minmax(0,1fr); gap: 11px; margin-top: 12px; }
 .character-presence .chapter-identity-portrait { width: 44px; height: 58px; }
 .character-presence .chapter-identity-copy h3 { font-size: 16px; }
 .chapter-life-actions { gap: 8px; margin-top: 17px; }
 .chapter-life-actions > .primary, .chapter-life-actions > .secondary { flex-basis: 100%; }
 .chapter-life-actions > .text-link { min-height: 44px; }
 .commission-list > button { gap: 7px; padding: 9px 10px; }
 .commission-list > button > strong { font-size: 11px; }
 .commission-intro { font-size: 12px; }
}
