.mainline-shell{max-width:1320px;padding:22px 28px}.mainline-shell .page-intro{margin-bottom:20px}.mainline-shell .page-intro h1{font-size:30px!important}.mainline-shell .page-intro .eyebrow,.mainline-shell .scope-count{display:none}.page-intro>div:first-child{display:block}.page-intro p:last-child{font-size:13px;margin:6px 0 0;color:var(--muted)}
.chapter-tabs{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;overflow:visible!important;border:0;padding:0;margin:0 0 18px}
.chapter-tabs>a{display:block!important;min-width:0!important;padding:9px 12px!important;border-radius:4px!important;background:transparent;border:1px solid var(--line);box-shadow:none!important}
.chapter-tabs>a[aria-selected=true]{background:#eaf2f6!important;border-color:#9ab9ca!important;color:var(--accent)}.chapter-tabs>a>img,.chapter-tabs .chapter-symbol,.chapter-tabs strong>b,.chapter-tabs em{display:none!important}.chapter-tabs strong{font-size:12px!important}.chapter-tabs small{display:block!important;max-width:none!important;font-size:11px!important;margin-top:3px;white-space:normal}
.mainline-toolbar{margin:14px 0;gap:12px;font-size:12px}.mainline-toolbar .search-field{max-width:440px}.mainline-toolbar input[type=search]{font-size:13px}.mainline-shell .chapter-intro{margin-bottom:12px;padding-bottom:12px}.chapter-intro .eyebrow{display:none}.chapter-intro h2{font-size:23px!important;margin:0 0 5px}.chapter-intro p{font-size:12px}.pane-tabs{margin-bottom:14px}.pane-tabs button{font-size:12px;padding:9px 12px}
.chapter-reference{display:flex;align-items:center;flex-wrap:wrap;gap:8px 16px;padding:12px 14px;background:#f0f5f7;border-left:2px solid #8caebd;font-size:12px;margin:0 0 12px}.chapter-reference>small{font-size:11px;color:var(--muted)}.chapter-reference a{color:var(--accent)}.chapter-route{margin:0 0 0 auto;padding:0;border:0;font-size:12px}.chapter-route summary{cursor:pointer}.chapter-route[open]{flex-basis:100%;margin-top:6px}.chapter-route ol{display:flex;flex-wrap:wrap;gap:8px 22px;list-style:decimal;padding-left:22px;font-size:12px}.chapter-route p{font-size:11px;color:var(--muted);margin:4px 0}
.flow-status{font-size:11px;margin:8px 0}.flow-view-switch{display:flex;gap:4px;margin:10px 0}.flow-view-switch button{font-size:12px;padding:6px 11px;border:1px solid var(--line);border-radius:3px;background:transparent;color:var(--muted)}.flow-view-switch button[aria-pressed=true]{color:var(--accent);background:#eaf2f6;border-color:#b7ceda}
.stage-grid.flow-list{display:block!important}.flow-list .flow-row{display:grid!important;grid-template-columns:46px minmax(0,1fr) minmax(150px,220px) 130px;gap:16px;align-items:center;border:0!important;border-bottom:1px solid var(--line)!important;border-radius:0!important;background:transparent!important;padding:15px 8px;box-shadow:none!important;margin:0}.flow-list .flow-row:hover{background:#f1f6f8!important}.flow-list .flow-row.is-done{opacity:.6}
.flow-order{font:24px Georgia,serif;color:#8da8b5;text-align:center}.flow-order small{display:block;font:10px system-ui;margin-bottom:4px}.flow-objective h3{font-size:16px!important;line-height:1.6!important;text-align:left!important;margin:0}.flow-objective h3 a{text-decoration:none}.flow-objective .stage-characters{justify-content:flex-start;gap:4px;margin-top:7px;flex-wrap:wrap}.flow-objective .stage-character-avatar{width:28px;height:28px}.flow-excerpt{font-size:12px;line-height:1.8;color:var(--muted);margin:8px 0 0;white-space:pre-line}.flow-destination{display:grid;gap:5px;font-size:12px}.flow-destination>small{font-size:10px;color:var(--muted)}.flow-destination>a{text-decoration:none}.flow-actions{display:grid;gap:10px;font-size:11px}.flow-actions .stage-check{font-size:11px;white-space:nowrap}.flow-actions>a{color:var(--accent);text-decoration:none}
.wiki-reference{font-size:12px;line-height:1.8}.wiki-reference a{color:var(--accent)}
@media(max-width:700px){.mainline-shell{padding:16px}.chapter-tabs{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.chapter-tabs>a{padding:7px 10px!important}.chapter-tabs small{font-size:10px!important}.mainline-toolbar{flex-wrap:wrap}.mainline-toolbar .search-field{flex-basis:100%;max-width:none}.mainline-toolbar .progress-count{font-size:11px}.chapter-reference{padding:10px}.chapter-route{margin:0;flex-basis:100%}.flow-status{display:block}.flow-status>span{display:block;margin:4px 0}.flow-list .flow-row{grid-template-columns:30px minmax(0,1fr);gap:10px;padding:14px 0}.flow-order{font-size:20px;align-self:start}.flow-destination,.flow-actions{grid-column:2}.flow-actions{display:flex;justify-content:space-between;gap:8px;align-items:center}.flow-destination>small{display:none}.flow-objective h3{font-size:15px!important}.flow-objective .stage-character-avatar{width:25px;height:25px}.chapter-intro{align-items:flex-start}.chapter-trophies{display:none}}
.mainline-shell .breadcrumbs{margin-bottom:14px}.mainline-shell .page-intro{margin-bottom:16px}.page-intro>div:first-child{display:flex;align-items:baseline;gap:18px}.mainline-shell .page-intro h1{margin:0!important}.page-intro p:last-child{margin:0}.mainline-toolbar{margin:10px 0 14px}
@media(min-width:1100px){.chapter-tabs{grid-template-columns:repeat(10,minmax(0,1fr))}.chapter-tabs>a{padding:8px!important}.chapter-tabs small{font-size:10px!important;line-height:1.5}.chapter-tabs strong{font-size:11px!important}}
@media(max-width:700px){.chapter-tabs{display:flex!important;overflow-x:auto!important;padding-bottom:6px}.chapter-tabs>a{flex:0 0 125px;min-width:125px!important}.page-intro>div:first-child{display:block}.page-intro p:last-child{margin-top:5px}.mainline-shell .page-intro{margin-bottom:14px}}

.walkthrough-route h3,.walkthrough-battles h3,.walkthrough-rewards h3{display:flex;align-items:center;gap:10px;font-size:19px;margin:0 0 16px}
.guide-number{font:12px Georgia,serif;color:#8b793e;border-bottom:1px solid #b8a76f;padding-bottom:4px}
.route-steps{padding-left:25px;margin:0;line-height:1.95;font-size:14px}.route-steps li{padding-left:5px;margin:0 0 10px}.route-steps li:last-child{margin-bottom:0}.route-steps li::marker{font-weight:600;color:#668698}
.walkthrough-enemies{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}.walkthrough-enemy{display:flex;align-items:center;gap:10px;border-bottom:1px solid #e4eaed;padding:10px 0;text-decoration:none;min-width:0}.walkthrough-enemy img{width:40px;height:40px;object-fit:contain}.walkthrough-enemy>span:nth-child(2){flex:1;min-width:0}.walkthrough-enemy strong{display:block;font-size:14px}.walkthrough-enemy small{display:block;font-size:11px;color:var(--muted);margin-top:4px}.walkthrough-enemy>span:last-child{color:#8da6b3}
.battle-tip{border-left:2px solid #bba765;background:#f7f5ed;padding:10px 14px;font-size:13px;line-height:1.8;margin:14px 0 0}.guide-caution{font-size:12px;color:var(--muted);line-height:1.8}.story-gains{padding-left:20px;font-size:14px;line-height:1.9}.walkthrough-rewards h4{font-size:15px;margin:20px 0 8px}.walkthrough-loot{margin-top:12px;border-top:1px solid #dce5ea;padding-top:12px}.walkthrough-loot summary{font-size:13px;font-weight:600;cursor:pointer}.walkthrough-loot summary span{font-weight:400;color:var(--muted);margin-left:10px}.walkthrough-loot ul{margin:8px 0 0;padding:0;list-style:none}.walkthrough-loot li{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid #edf0f2;padding:9px 0;font-size:13px}.walkthrough-loot li>div{min-width:0}.walkthrough-loot li>a{flex:none;font-size:12px}.walkthrough-loot small{display:block;color:var(--muted);font-size:11px;margin-top:4px}.incoming-grants summary,.story-records summary{cursor:pointer;font-size:13px}.incoming-grants{margin:14px 0}.walkthrough-references{padding:0 3px 18px;font-size:12px;color:var(--muted);line-height:1.8}.walkthrough-references summary{cursor:pointer}.walkthrough-references ul{display:flex;gap:20px;flex-wrap:wrap;list-style:none;padding:0}.story-records>summary{font-weight:600}.story-records[open]>summary{margin-bottom:16px}.story-records .story-summary{white-space:pre-line;font-size:13px;line-height:1.8}
@media(max-width:600px){.walkthrough-enemies{grid-template-columns:1fr}.route-steps{font-size:14px}.walkthrough-loot li{gap:8px;font-size:12px}.walkthrough-loot li>a{font-size:11px}.walkthrough-route h3,.walkthrough-battles h3,.walkthrough-rewards h3{font-size:18px}}

.destination-points{display:grid;gap:10px;margin-top:12px;font-size:13px}@media(max-width:850px){.destination-card>img{display:none}.destination-column{grid-template-columns:1fr}.destination-card>div{padding:12px}.destination-points{display:flex;flex-wrap:wrap;gap:12px}.destination-card h3{font-size:15px!important}}

/* Keep the full chapter strip readable at desktop and touch sizes. */
.chapter-tabs>a{min-height:80px;padding:12px!important}
.chapter-tabs strong{font-size:16px!important;line-height:1.5}
.chapter-tabs small{font-size:13px!important;line-height:1.6;margin-top:4px}
@media(max-width:700px){.chapter-tabs>a{flex-basis:160px;min-width:160px!important;min-height:80px;padding:11px 13px!important}}

/* One numbered sequence, containing only available action/battle/reward information. */
.walkthrough-sequence{list-style:none;counter-reset:walkthrough;margin:0 0 20px;padding:0}
.walkthrough-sequence>li{counter-increment:walkthrough;position:relative;padding:15px 0 15px 42px;border-bottom:1px solid var(--line);font-size:15px;line-height:1.85;overflow-wrap:anywhere}
.walkthrough-sequence>li::before{content:counter(walkthrough,decimal-leading-zero);position:absolute;left:0;top:17px;color:var(--accent,#42664e);font:600 17px/1.6 Georgia,serif}
.walkthrough-sequence .sequence-label{display:block;font-size:14px;margin-bottom:7px}.walkthrough-sequence p{margin:6px 0}.walkthrough-sequence .walkthrough-enemies{margin:0}.walkthrough-sequence .walkthrough-loot{margin-top:8px}
@media(max-width:600px){.walkthrough-sequence>li{padding-left:32px;font-size:14px}.walkthrough-sequence>li::before{font-size:15px}}

.flow-list .flow-row[data-flow-step]{cursor:pointer}.flow-row[data-flow-step]:hover{background:#f3f7f8}
.flow-toggle{display:inline-flex;align-items:center;gap:10px;border:0;padding:0;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer}
.flow-toggle>span{font:12px/1 sans-serif;color:var(--accent);flex-shrink:0}.flow-row.is-expanded{background:#f5f8f9;border-bottom-color:#9ab9ca}
.flow-inline-detail{grid-column:1/-1;min-width:0;padding:12px 16px 18px;margin-top:6px;cursor:auto;border-top:1px solid var(--line)}
.flow-inline-detail .step-layout{margin:0}.flow-inline-detail .walkthrough-sequence{margin-top:0}.flow-inline-detail .continue-chapter{margin-bottom:0}
@media(max-width:700px){.flow-inline-detail{grid-column:1/-1;padding:10px 0 12px}.flow-toggle{line-height:1.6}}

/* Chapter battle index: roster, rewards and locations share stable columns. */
.chapter-battle-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:10px 0 14px;border-bottom:1px solid var(--line)}
.chapter-battle-heading span,.chapter-battle-heading small{font-size:13px;font-weight:400;color:var(--muted)}
.chapter-battle-row{display:grid;grid-template-columns:36px minmax(0,1fr) minmax(130px,.38fr) minmax(150px,.42fr);gap:20px;padding:20px 0;border-bottom:1px solid var(--line);align-items:start}
.battle-order{font:22px/1.6 Georgia,serif;color:#7995a0}.battle-roster{display:flex;gap:12px 24px;flex-wrap:wrap}.battle-roster>a{display:flex;align-items:center;gap:9px;font-weight:600}.battle-roster img{width:42px;height:42px;object-fit:contain}.battle-roster small{display:block;font-size:12px;font-weight:400;color:var(--muted)}
.battle-targets{font-size:13px;color:var(--muted);margin-top:9px}.battle-expand{margin-top:9px}.battle-expand>summary{font-size:13px;color:#42677a}.battle-expand>.battle-card{margin:12px 0 0;padding:12px;box-shadow:none}.battle-expand .battle-links{display:none}.battle-drop-list,.battle-place-list{display:flex;flex-direction:column;gap:6px;font-size:14px}.battle-column-label{font-size:12px;color:var(--muted);margin-bottom:2px}.battle-drop-list>a small{font-size:11px;color:var(--muted);margin-left:7px}.battle-place-list>a small{font-size:11px}.battle-pending{margin:20px 0;font-size:13px;color:var(--muted)}
@media(max-width:700px){.chapter-battle-heading{align-items:start;flex-direction:column;gap:3px}.chapter-battle-row{grid-template-columns:25px minmax(0,1fr);gap:12px;padding:17px 0}.battle-overview{grid-column:2}.battle-drop-list,.battle-place-list{grid-column:2}.battle-roster{gap:10px 18px}.battle-order{grid-row:1}.battle-column-label{margin:0}.battle-drop-list,.battle-place-list{flex-direction:row;flex-wrap:wrap;align-items:center;gap:5px 12px}}

.flow-battle-groups{display:grid;gap:10px;margin-top:10px}.flow-battle-group{border:1px solid var(--line);border-radius:3px;padding:12px;background:#ffffff80}.flow-battle-label{font-size:12px;color:var(--muted);margin-bottom:7px}.flow-battle-group .walkthrough-enemies{margin:0}.flow-battle-stats{font-size:13px;margin-top:8px}.flow-battle-stats>summary{color:#42677a}.flow-battle-stats>.battle-card{margin-top:10px;padding:10px}.flow-battle-stats .battle-links{display:none}

.flow-battle-facts{font-size:13px;line-height:1.8;margin-top:8px;border-top:1px solid var(--line);padding-top:8px}.flow-battle-facts>div{display:flex;flex-wrap:wrap;gap:2px 14px}.flow-battle-facts>div+div{margin-top:8px}.flow-battle-facts>div>strong{display:none}.flow-battle-facts>div>span:last-child{flex-basis:100%}

.flow-battle-group{padding:8px 10px}.flow-battle-label{margin-bottom:4px}.flow-battle-inline{display:grid;grid-template-columns:minmax(145px,.9fr) minmax(150px,1fr) minmax(110px,.8fr);gap:10px;align-items:center;font-size:12px}.flow-battle-inline+.flow-battle-inline{border-top:1px solid var(--line);padding-top:8px;margin-top:8px}.flow-battle-inline .walkthrough-enemy{padding:0;border:0;min-width:0}.flow-battle-inline .walkthrough-enemy img{width:34px;height:34px}.flow-battle-inline .walkthrough-enemy strong{font-size:13px}.flow-battle-inline .walkthrough-enemy small{font-size:11px}.flow-battle-inline-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px 8px;line-height:1.6}.flow-battle-inline-drops{display:flex;flex-wrap:wrap;gap:2px 8px;line-height:1.6}.flow-battle-inline-drops>small{flex-basis:100%;color:var(--muted)}
@media(max-width:700px){.flow-battle-inline{grid-template-columns:minmax(110px,.9fr) minmax(120px,1fr);gap:7px}.flow-battle-inline-drops{grid-column:1/-1}.flow-battle-inline-drops>small{flex-basis:auto}}

/* Keep targets and battle details in their own comparison columns. */
.chapter-battle-row{grid-template-columns:30px minmax(130px,1fr) minmax(100px,.8fr) minmax(230px,1.8fr) minmax(100px,.8fr) minmax(90px,.7fr);gap:14px}
.chapter-battle-row>.battle-targets,.chapter-battle-row>.battle-expand{margin-top:0}
.battle-targets>.battle-column-label{display:block;margin-bottom:8px}
.battle-expand .stats{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:850px){.chapter-battle-row{grid-template-columns:25px minmax(0,1fr)}.chapter-battle-row>.battle-targets,.chapter-battle-row>.battle-expand{grid-column:2}.chapter-battle-row>.battle-drop-list,.chapter-battle-row>.battle-place-list{grid-column:2}}
