:root{--base:#0d1016;--card:#171b24;--line:#303642;--text:#edf0f5;--muted:#a5afbf;--accent:#80aeff;background:var(--base);font-family:Inter,"Microsoft JhengHei",system-ui,sans-serif}
body{background:var(--base)}
header,main,footer{width:min(1340px,calc(100% - 5vw))}
header{min-height:64px;padding:.6rem 0}
.brand{gap:.9rem}.brand img{width:35px;height:38px;object-fit:contain}.brand a{font-size:.9rem;font-weight:550;text-decoration:none;color:var(--muted)}.brand a:hover{color:white}.nav-divider{color:#596271}
.button,header button{min-height:36px;border-radius:6px;background:#202631;font-size:.9rem;padding:.45rem .8rem}.primary{background:#1765dc;color:white;border-color:#327aea}
.intro{position:relative;isolation:isolate;overflow:hidden;grid-template-columns:1fr auto;gap:1rem;margin:1.15rem 0;padding:1.65rem 2rem;background:linear-gradient(100deg,#18212b,#202830 60%,#171b24);border:1px solid var(--line);border-radius:9px}
.intro::before{content:"";position:absolute;inset:0;z-index:-1;background:url("art/img_WorldTrendInset19.png") 57% 47%/auto 210% no-repeat;opacity:.29;mask-image:linear-gradient(90deg,transparent 22%,black 49%,transparent 78%)}
h1{font-size:clamp(1.65rem,3vw,2.65rem);letter-spacing:-.045em;margin-top:.3rem}.eyebrow{color:#b1bed0;font-size:.85rem}
.next{background:none;border:0;border-left:1px solid #465362;padding:.2rem 0 .2rem 1.25rem;border-radius:0;min-width:14rem}.next h2{font-size:1rem}.intro .next p{font-size:.85rem;margin:0}.count{font-size:1.15rem;color:#cadcff;margin:.15rem 0 0}
h2{font-size:1.12rem}.chronicles{margin:1.8rem 0 2rem;min-width:0}
.toolbar,.controls,.tabs{display:flex;align-items:center;gap:.55rem}.toolbar{justify-content:space-between}.controls{flex-wrap:wrap}
.tabs{border:1px solid var(--line);background:#11151c;border-radius:7px;padding:3px;gap:2px}.tabs button{min-height:30px;border-radius:4px;padding:.22rem .68rem;font-size:.88rem}.tabs button[aria-pressed=true]{background:#195fc8;color:white;border-color:transparent}
#anchor-settings{padding:.9rem;background:#141923;border:1px solid var(--line);border-radius:7px;margin:.4rem 0}
#anchor-form{display:flex;align-items:center;flex-wrap:wrap;gap:.6rem 1rem;margin:0}#anchor{width:auto;max-width:100%}input,select,textarea{border-color:#445061}
#chapter-strip{display:flex;gap:.55rem;overflow-x:auto;padding:.3rem 2px .9rem;scroll-snap-type:x proximity;scrollbar-color:#4a5262 #171a22}
.chapter-card{flex:0 0 9rem;position:relative;display:flex;flex-direction:column;align-items:stretch;scroll-snap-align:start;border:1px solid #353a47;background:linear-gradient(145deg,#1d202b,#14171f);border-radius:8px;color:var(--text);padding:.7rem .8rem;text-align:left}
.chapter-card:hover{border-color:#73849c}.chapter-card[aria-pressed=true]{border-color:#468cff;background:#192337;box-shadow:inset 0 0 0 1px #3971bc}
.rail{position:relative;display:block;width:100%;height:5px;border-radius:5px;background:#544664;margin:.35rem 0 1.1rem}
.rail:after{content:"";position:absolute;right:0;top:50%;transform:translateY(-50%);width:12px;height:12px;border-radius:100%;background:#151923;border:2px solid #796b90}
.rail img{position:absolute;right:-3px;top:50%;transform:translateY(-50%);z-index:1;width:31px;height:31px;object-fit:contain;background:#252331;border:1px solid #88764b;border-radius:50%;padding:1px}.completed .rail{background:#24ae70}.chapter-card[aria-pressed=true] .rail:after{border-color:#428aff}
.chapter-card strong{font-size:.94rem;line-height:1.5}.chapter-card small,.chapter-card span{color:var(--muted);font-size:.82rem;line-height:1.45;font-variant-numeric:tabular-nums}
#chapter-detail{position:relative;isolation:isolate;overflow:hidden;margin-top:1rem;padding:1.35rem 1.5rem;background:linear-gradient(105deg,#1b202a,#171b24);border:1px solid var(--line);border-radius:8px}
#chapter-detail h3 small{display:block;color:var(--accent);font-size:.84rem;font-weight:600;margin-bottom:.3rem}
#chapter-detail h3{font-size:1.35rem}.detail-art{position:absolute;z-index:-1;right:1%;top:-6%;height:120%;opacity:.13;pointer-events:none}
#chapter-detail dl{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,12rem),1fr));gap:.9rem;margin:1rem 0 0}#chapter-detail dt{font-size:.86rem;color:var(--muted)}#chapter-detail dd{margin:.3rem 0 0;font-size:.99rem;line-height:1.55;font-variant-numeric:tabular-nums}
.chapter-nav{display:flex;justify-content:flex-end;gap:.4rem;margin-top:.55rem}.chapter-nav button:disabled{opacity:.4;cursor:default}.event{background:#12161d;padding:1rem;border-color:#2a303c}.tag.planned{color:#edc87d;border-color:#665836}
@media(max-width:700px){header,main,footer{width:calc(100% - 1.5rem)}.brand{gap:.45rem}.brand .nav-divider,.brand a{display:none}.intro{grid-template-columns:1fr;margin:.8rem 0;padding:1rem}.intro::before{background-position:right center;mask-image:none;opacity:.14}.next{border:0;border-top:1px solid var(--line);padding:.6rem 0 0;min-width:0}.next .count{font-size:1rem}.controls{gap:.35rem}.toolbar{align-items:flex-start}.chapter-card{flex-basis:8.5rem}#chapter-detail{padding:1rem}.chronicles{margin-top:1.2rem}}

/* Compact dashboard shell and the two parallel timeline tracks. */
:root{--base:#0c0e12;--card:#12151b;--line:#292d35;--muted:#a2a9b4}
body{padding-left:72px}
header,main,footer{width:auto;max-width:1540px;margin-inline:auto;padding-inline:clamp(16px,2.4vw,38px)}
header{height:66px;background:#101216}
.sidebar{position:fixed;inset:0 auto 0 0;width:72px;background:#101216;border-right:1px solid #24282e;display:flex;flex-direction:column;align-items:center;gap:11px;padding-top:78px;z-index:2}
.sidebar::before{content:"";position:absolute;top:16px;width:35px;height:35px;border-radius:50%;background:#233a36 url("art/img_iconT1Fort.png") center/contain no-repeat;box-shadow:0 0 0 2px #367b69}
.sidebar a{display:grid;place-items:center;width:38px;height:38px;border-radius:7px;color:#a0a8b4;text-decoration:none;font:24px/1 system-ui}
.sidebar a:hover,.sidebar a:focus-visible{background:#242b38;color:#8ab4ff}
.intro{margin:.65rem 0 0;border:0;border-radius:0;padding:.9rem 0;min-height:90px;background:linear-gradient(90deg,#10151c,#161b23 50%,#101318)}
.intro::before{background-size:auto 285%;opacity:.3}.season-title{padding-left:1rem}.intro h1{font-size:1.6rem}.next{margin-right:1rem;min-width:12rem}.next .count{font-size:1rem}
.progress-panel{padding:.85rem 0 1.35rem}.progress-heading,.progress-labels{display:flex;justify-content:space-between;align-items:center;gap:.5rem}.progress-heading h2{font-size:1rem}.progress-heading span,.progress-labels{color:var(--muted);font-size:.84rem}
#phase-track{display:flex;height:8px;border-radius:5px;overflow:hidden;margin:.8rem 0 .48rem}.early{background:#cd650d}.battle{background:#dc7819}.late{background:#9354ec}#phase-track i{flex-basis:0}
#chapter-progress{display:block;width:100%;height:5px;border:0;border-radius:5px;overflow:hidden;background:#22262f;appearance:none}#chapter-progress::-webkit-progress-bar{background:#22262f}#chapter-progress::-webkit-progress-value{background:#3982f2}#chapter-progress::-moz-progress-bar{background:#3982f2}.progress-labels{margin-top:.5rem}
.chronicles{margin:.8rem 0 1.7rem}.chronicles .toolbar{padding-bottom:.45rem}.tabs button{min-height:25px}.controls .button{min-height:32px}.controls .primary{background:#1268de}
#chapter-strip{gap:9px;padding:.18rem 1px 1.4rem;scrollbar-width:thin}.chapter-card{flex-basis:136px;height:96px;padding:.55rem .78rem;background:#16151c;border-color:#302d38;border-radius:9px}
.chapter-card[data-type=site]{background:#101a18;border-color:#233c32}.chapter-card[data-type=pass]{background:#1f1913;border-color:#433421}.chapter-card[data-type=site] .rail{background:#286448}.chapter-card[data-type=pass] .rail{background:#956217}
.chapter-card.completed .rail{background:#22ba6c}.chapter-card[aria-pressed=true]{border-color:#347bff;box-shadow:inset 0 0 0 1px #347bff;background:#131b29}.chapter-card strong,.chapter-card small,.chapter-card span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.2rem}.chapter-card strong{font-size:.88rem}.rail{height:6px;margin:.45rem 0 .85rem}.rail img{width:29px;height:29px}
.strip-footer{border-bottom:1px solid var(--line);margin:.85rem 0 1.15rem;padding-bottom:.8rem;display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:.86rem}
#agenda{border:1px solid var(--line);border-radius:7px;margin:1rem 0;background:#101318}#agenda summary{padding:.8rem 1rem;font-size:.95rem;font-weight:650;cursor:pointer}
#agenda-items{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,215px),1fr));gap:.55rem;padding:.7rem;border-top:1px solid var(--line)}
#agenda-items button{background:#191c26;color:var(--text);border:1px solid #363849;border-radius:8px;padding:.65rem;display:grid;grid-template-columns:36px 1fr;align-items:center;text-align:left;gap:.1rem .6rem}
#agenda-items img{width:36px;height:40px;object-fit:contain;grid-row:span 2}#agenda-items small{font-size:.82rem;color:var(--muted)}
#chapter-detail{background:#171b22;min-height:165px}#chapter-detail::before{position:absolute;content:"";z-index:-1;inset:0;background:linear-gradient(90deg,#171b22 46%,transparent),var(--scene) right center/auto 190% no-repeat;opacity:.26}
#chapter-detail[data-scene=camp]{--scene:url("art/img_WorldTrendInset12.png")}#chapter-detail[data-scene=fort]{--scene:url("art/img_WorldTrendInset19.png")}.detail-art{right:1rem;top:1rem;height:48px;opacity:.85}.chapter-nav{margin-bottom:1.1rem}
@media(max-width:740px){body{padding-left:0}.sidebar{display:none}header,main,footer{width:100%;padding-inline:12px}.intro{grid-template-columns:1fr auto;gap:.5rem;min-height:0}.season-title{padding-left:.65rem}.intro h1{font-size:1.28rem}.next{border:0;padding:0;min-width:0;margin-right:.45rem}.intro .next p{font-size:.75rem}.controls{gap:.25rem}.controls .button,.controls .tabs button{padding-inline:.48rem}.progress-heading{flex-wrap:wrap}.progress-labels{font-size:.78rem}.chapter-card{flex-basis:131px}#chapter-detail dl{grid-template-columns:repeat(2,minmax(0,1fr))}.chapter-nav{justify-content:space-between}}

/* Chapter inspector: timing on the left, the unlocked objective on the right. */
#chapter-detail{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(250px,1fr);gap:1.15rem 2rem;padding:1.5rem 1.65rem;background:linear-gradient(110deg,#17202b,#131920 60%,#1a2330);border-color:#343e4a;border-radius:10px}
#chapter-detail::before{background-size:auto,auto 155%;background-position:center,52% 48%;opacity:.12}
#chapter-detail h3{grid-column:1;font-size:1.55rem;line-height:1.35;letter-spacing:.01em}
#chapter-detail h3 small{font-size:.82rem;margin-bottom:.35rem;color:#85b9f5}
.duration{display:inline-block;margin-left:.8rem;vertical-align:middle;font-size:.8rem;letter-spacing:0;line-height:1.5;padding:.13rem .5rem;border:1px solid #405061;border-radius:4px;color:#c3cfdd;font-weight:500}
#chapter-detail dl{grid-column:1;display:flex;gap:1rem 2rem;flex-wrap:wrap;margin:0}
#chapter-detail dt{color:#b4c2d0}
.opening{grid-column:2;grid-row:1 / span 2;align-self:stretch;position:relative;isolation:isolate;overflow:hidden;display:grid;align-content:center;gap:.2rem;padding:1rem 6rem 1rem 1.15rem;border-radius:7px;border:1px solid #42534f;background:linear-gradient(105deg,#192b29,#1c282c);min-height:104px}
.opening img{position:absolute;z-index:-1;right:.45rem;top:50%;transform:translateY(-50%);width:5rem;height:85%;object-fit:contain;filter:drop-shadow(0 4px 4px #090d10)}
.opening small{font-size:.82rem;color:#a9d4c5}.opening strong{font-size:1.2rem}.opening span{font-variant-numeric:tabular-nums;font-size:.9rem;color:#d2dce5}
.chapter-card{height:103px;padding-bottom:.7rem}.chapter-card span{margin-top:auto;color:#bac2cd}.chapter-card[aria-pressed=true] strong{color:#a8cdff}
.intro{border-radius:8px;background:linear-gradient(110deg,#162127,#19232c 55%,#131921);padding:1rem 0}.intro::before{opacity:.43;background-size:auto 195%;background-position:54% 41%}
.season-title .eyebrow{color:#a4b8c7}.next{border-left-color:#394550}.next .count{font-family:Consolas,monospace;font-size:1.15rem;color:#a9cbff}
.strip-footer{margin-top:.45rem}.chapter-card:focus-visible{outline-offset:-3px}.sidebar a:focus-visible{outline:2px solid var(--accent)}
@media(max-width:740px){#chapter-detail{grid-template-columns:minmax(0,1fr);gap:1rem;padding:1.1rem}#chapter-detail h3{font-size:1.3rem}.duration{font-size:.75rem}.opening{grid-column:1;grid-row:auto;min-height:93px}.intro{padding:.8rem 0}.next .count{font-size:1rem}.controls{row-gap:.4rem}#chapter-detail dl{column-gap:1.25rem}}
@media(max-width:540px){
  .intro{display:block;padding:1rem;border:1px solid #293440}
  .intro::before{background-size:auto 85%;background-position:right -32px center;opacity:.2}
  .season-title{padding:0}.season-title h1{font-size:1.5rem}
  .next{display:grid;grid-template-columns:1fr auto;align-items:center;gap:.15rem .5rem;border-top:1px solid #37424e;margin:.75rem 0 0;padding:.65rem 0 0}
  .next .eyebrow{grid-column:1/-1;font-size:.77rem}.next h2{margin:.1rem 0}.next .count{grid-column:2;grid-row:2;margin:0}
  .intro .next p{grid-column:1/-1;grid-row:3;color:#c5ced8}
}
