/* Optional guidance inherits the adopted A/C visual systems. */
.home-recent[hidden],.start-guide-panel[hidden]{display:none}
html[data-design] .home-recent{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 0;border-bottom:1px solid var(--line);margin:0 0 24px}
html[data-design] .home-recent h2{font:400 19px/1.6 var(--serif);margin:0 0 6px}
.home-recent p{font:14px/1.8 var(--sans);margin:0;color:var(--text);overflow-wrap:anywhere}
html[data-design] .start-guide{margin:0 0 40px;padding-bottom:24px;border-bottom:1px solid var(--line)}
.start-guide-bar{display:flex;align-items:flex-start;justify-content:space-between;gap:24px}
html[data-design] .start-guide-bar h2{font:400 24px/1.5 var(--serif);margin:0;color:var(--text)}
.start-guide-controls{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.start-guide-actions{display:grid;justify-items:end;gap:4px}
html[data-design] .start-guide-bar h2{padding-top:4px}
.start-guide-actions .guide-wish-entry{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:0 6px;font:14px/1.8 var(--sans);color:var(--text);margin:0}
html[data-design] .start-guide button:not(.chronicle-note-button):not(.chronicle-story-button),.start-guide a.guide-button,.home-recent a.guide-button{display:inline-flex;justify-content:center;align-items:center;min-height:44px;padding:10px 18px;font:14px/1.6 var(--sans);color:var(--text);border:1px solid var(--line);border-radius:4px;background:var(--panel);cursor:pointer;text-decoration:none}
html[data-design="c"] .start-guide button:not(.chronicle-note-button):not(.chronicle-story-button),html[data-design="c"] .start-guide a.guide-button,html[data-design="c"] .home-recent a.guide-button{border-radius:18px 18px 4px 4px}
html[data-design] .start-guide .guide-wish-entry button[data-guide-action]{padding:8px 2px;border:0;border-radius:0;background:transparent;text-decoration:underline;text-decoration-color:var(--ui-gold);text-underline-offset:5px;white-space:nowrap}
html[data-design] .start-guide .guide-primary{background:var(--surface);border-color:var(--ui-gold);font-weight:600}
html[data-design] .start-guide button:not(.chronicle-note-button):not(.chronicle-story-button):hover,.start-guide a.guide-button:hover,.home-recent a.guide-button:hover{background:var(--surface);border-color:var(--ui-gold)}
html[data-design] .start-guide .guide-wish-entry button[data-guide-action]:hover{background:transparent;color:var(--ui-gold)}
.start-guide button:not(.chronicle-note-button):not(.chronicle-story-button):focus-visible,.start-guide a:not(.chronicle-story-button):focus-visible,.home-recent a:focus-visible,.start-guide textarea:focus-visible{outline:2px solid var(--ui-gold);outline-offset:4px}
.start-guide button:disabled{opacity:.45;cursor:default}
.start-guide-panel{padding:28px 0 0;animation:guide-unfold .2s cubic-bezier(.16,1,.3,1)}
html[data-design] .guide-question{font:400 clamp(24px,2.2vw,32px)/1.6 var(--serif);margin:0 0 18px;color:var(--text)}
.guide-question:focus{outline:none}
.guide-choices{display:flex;flex-wrap:wrap;gap:12px}
html[data-design] .guide-choices button{padding:16px 24px;min-height:56px;font-size:16px}
.guide-selection,.guide-status{font:14px/1.8 var(--sans);color:var(--text);margin:0 0 16px;overflow-wrap:anywhere}
.guide-results{display:block;margin:0;padding:0;list-style:none}
.guide-result{display:block;padding:22px 0;border-bottom:1px solid var(--line);color:var(--text);text-decoration:none;overflow-wrap:anywhere}
.guide-result:hover .guide-result-title{color:var(--ui-gold);text-decoration:underline;text-underline-offset:5px}
.guide-result-top{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
html[data-design] .guide-result-title{font:400 24px/1.6 var(--serif);margin:0}
.guide-result-meta{font:14px/1.8 var(--sans);color:var(--text);flex:none;font-variant-numeric:tabular-nums}
.guide-result-summary{font:15px/1.9 var(--reading);margin:8px 0 0;color:var(--text)}
.guide-world-links{display:flex;flex-wrap:wrap;gap:12px}
.start-guide-controls{margin-top:26px}
.start-guide .guide-quiet{border-color:transparent;background:transparent;text-decoration:underline;text-underline-offset:5px}
.guide-wish label{display:block;font:15px/1.8 var(--sans);margin-bottom:10px;color:var(--text)}
.guide-wish textarea{display:block;width:100%;max-width:780px;min-height:150px;padding:16px;background:var(--panel);border:1px solid var(--line);border-radius:4px;font:16px/1.9 var(--sans);color:var(--text);caret-color:var(--ui-gold);resize:vertical;box-sizing:border-box}
.guide-wish textarea::placeholder{color:var(--text);opacity:1}
.guide-wish-help{display:flex;justify-content:space-between;gap:16px;max-width:780px;margin:10px 0 16px;font:13px/1.8 var(--sans);color:var(--text)}
.guide-wish-help p{margin:0}
.guide-wish-help span{font-variant-numeric:tabular-nums;flex:none}
.guide-wish-feedback{font:15px/1.8 var(--sans);color:var(--text);margin:16px 0 0}
.guide-feedback{font:15px/1.8 var(--sans);color:var(--text)}
.guide-feedback:not(:empty){display:grid;gap:4px;margin-top:18px}
.guide-feedback-note{font:13px/1.8 var(--sans)}
.start-guide ::selection{background:var(--surface);color:var(--text)}
@keyframes guide-unfold{from{opacity:.75;transform:translateY(-6px)}to{opacity:1;transform:none}}
@media(max-width:760px){
 html[data-design] .start-guide{margin-bottom:28px;padding-bottom:22px}
 .start-guide-bar{align-items:flex-start;flex-direction:column;gap:14px}
 .start-guide-actions{width:100%}
 .start-guide-actions{justify-items:start}
 .start-guide-actions #start-guide-toggle{width:100%;box-sizing:border-box}
 .start-guide-panel{padding-top:24px}
 html[data-design] .guide-choices button{flex:1 1 130px;padding:14px 12px}
 .guide-result-top{align-items:flex-start;flex-direction:column;gap:4px}
 html[data-design] .guide-result-title{font-size:23px}
 .guide-wish-help{align-items:flex-start}
 html[data-design] .home-recent{align-items:flex-start;flex-direction:column;gap:12px}
 .home-recent a.guide-button{width:100%;box-sizing:border-box}
}
@media(prefers-reduced-motion:reduce){.start-guide-panel{animation:none}}

.guide-deck-filters,.guide-deck-actions{display:flex;flex-wrap:wrap;gap:10px}
html[data-design] .start-guide .guide-deck-filters button[aria-pressed="true"],html[data-design] .start-guide .guide-deck-filters button[aria-pressed="true"]:hover{border-color:var(--text);background:var(--text);color:var(--panel);font-weight:600}
.guide-deck{position:relative;isolation:isolate;max-width:780px;margin:28px 16px 32px 0;padding-top:12px}
.guide-deck::before,.guide-deck::after{content:"";position:absolute;z-index:-1;inset:0;background:var(--surface);border:1px solid var(--line);border-radius:12px;pointer-events:none}
.guide-deck::before{transform:translate(12px,0)}
.guide-deck::after{transform:translate(6px,6px)}
.guide-card{position:relative;padding:28px;background:var(--panel);border:1px solid var(--line);border-radius:12px;min-height:240px}
html[data-design="c"] .guide-deck::before,html[data-design="c"] .guide-deck::after,html[data-design="c"] .guide-card{border-radius:32px 32px 12px 12px}
.guide-card-info{display:flex;justify-content:space-between;gap:16px;font:13px/1.8 var(--sans);color:var(--text)}
.guide-card-info span:first-child{overflow-wrap:anywhere}
.guide-card-info span:last-child{flex:none;font-variant-numeric:tabular-nums}
html[data-design] .guide-card h4{font:400 28px/1.6 var(--serif);margin:14px 0 18px;color:var(--text)}
.guide-card h4:focus{outline:none}
html[data-design] .guide-card-body{font:16px/1.95 var(--reading);color:var(--text);max-height:440px;overflow:auto;overflow-wrap:anywhere;scrollbar-width:thin;scrollbar-color:var(--ui-gold) var(--panel)}
.guide-card-body p:first-child{margin-top:0}
.guide-card-body table{display:block;max-width:100%;overflow:auto}
.guide-card>button{margin-top:20px;margin-right:10px}
.guide-card-image{margin:0 0 20px}
.guide-card-image img{display:block;max-width:100%;height:auto}
html[data-design] .guide-card-body .term-link{color:color-mix(in srgb,var(--cyan) 70%,var(--text));text-decoration-color:currentColor}
.guide-card-body .chronicle-note-marker,.guide-card-body .chronicle-story-marker{max-width:100%}
html[data-design] .guide-card-body.chronicle-events{padding:4px 8px;box-sizing:border-box}
.guide-return-bar{position:sticky;top:10px;z-index:8;display:flex;margin:0 0 20px;pointer-events:none}
html[data-design] .guide-return-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 18px;box-sizing:border-box;background:var(--panel);border:1px solid var(--line);border-radius:4px;color:var(--text);font:14px/1.6 var(--sans);text-decoration:none;pointer-events:auto}
html[data-design="c"] .guide-return-link{border-radius:18px 18px 4px 4px}
.guide-return-link:hover{border-color:var(--ui-gold);background:var(--surface)}
.guide-return-link:focus-visible{outline:2px solid var(--ui-gold);outline-offset:4px}
.start-guide{scroll-margin-top:28px}
@media(max-width:760px){
 .start-guide-actions{gap:4px}
 .start-guide-actions .guide-wish-entry{justify-content:flex-start}
 .guide-deck{margin-top:24px;margin-bottom:28px}
 .guide-card{padding:22px 18px;min-height:220px}
 html[data-design] .guide-card h4{font-size:25px}
 html[data-design] .guide-card-body{max-height:360px}
 .guide-card-info{flex-direction:column;gap:4px}
}
