.guide-toolbar {
    --chapter-accent:#a4b78e;
    position:relative;z-index:2;display:flex;align-items:center;flex-wrap:wrap;gap:.38rem;
    padding:.4rem;margin-block:.9rem 0;border:1px solid #59604a;border-left:2px solid var(--chapter-accent);
    background:linear-gradient(110deg,#2b3428,#202821 68%);
}
.guide-toolbar[data-chapter=player-systems] {--chapter-accent:#d4ae73}
.guide-toolbar[data-chapter=encounters] {--chapter-accent:#d3947a}
.guide-toolbar[data-chapter=equipment] {--chapter-accent:#b9a2c9}
.guide-toolbar[data-chapter=playing] {--chapter-accent:#90b7b2}
.guide-toolbar>a,.guide-toolbar>button,.guide-toolbar summary {
    display:inline-flex;align-items:center;gap:.4rem;padding:.3rem .65rem;min-height:2.2rem;
    background:#1b231e;border:1px solid #59614d;color:#e8e2cc;text-decoration:none;
    font-size:.91rem;line-height:1.15;cursor:pointer;
    transition:border-color .18s,box-shadow .18s,background-color .18s;
}
.guide-toolbar>a .ui-icon,.guide-toolbar>button .ui-icon {color:var(--chapter-accent)}
.guide-toolbar>button {margin-left:auto}
.guide-toolbar>button[aria-pressed=true] {border-color:var(--chapter-accent);color:var(--chapter-accent);background:#363829}
.guide-toolbar>button[aria-pressed=true] .ui-icon {fill:currentColor}
.guide-toolbar :is(a,button,summary):is(:hover,:focus-visible) {
    border-color:var(--chapter-accent);
    box-shadow:0 0 .75rem color-mix(in srgb,var(--chapter-accent) 20%,transparent);
}
.guide-toolbar details {position:relative}
.guide-toolbar summary {list-style:none}
.guide-toolbar summary::-webkit-details-marker {display:none}
.guide-toolbar summary::after {
    content:"";width:.4rem;height:.4rem;border:solid currentColor;border-width:0 1px 1px 0;rotate:45deg;translate:0 -.11rem;
}
.guide-toolbar details[open] summary::after {rotate:-135deg;translate:0 .11rem}
.guide-toolbar nav {
    position:absolute;left:0;top:calc(100% + .28rem);display:grid;min-width:13rem;width:max-content;max-width:min(21rem,80vw);
    padding:.35rem;background:#202921;border:1px solid #77674b;box-shadow:0 .65rem 1.5rem #0a130caf;
    animation:menu-enter .16s ease-out;
}
.guide-toolbar nav a {color:#e9ddc2;text-decoration:none;padding:.28rem .48rem;border:1px solid transparent;font-size:.94rem}
.guide-toolbar nav a:hover {background:#33382b}
.guide-toolbar [id],#main [id^="section-"] {scroll-margin-top:1rem}
.saved-guides {padding:.55rem .75rem;margin-bottom:1rem;border:1px solid #657753;background:linear-gradient(125deg,#2e3b30,#242d23)}
.saved-guides>summary {color:#d5e0bd;cursor:pointer;font-weight:600}
.saved-guides summary span {display:inline-block;margin-left:.3rem;padding:0 .43rem;background:#17251d;color:#d7e4c3;font-size:.82rem}
.saved-guides p {margin:.5rem 0 0;color:#c9d3c7}
.saved-guides ul {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr));gap:.38rem;list-style:none;padding:0;margin:.55rem 0 0}
.saved-guides li {display:flex;align-items:center;margin:0;min-width:0;background:#1b271f;border:1px solid #57664e}
.saved-guides li a {padding:.35rem .5rem;flex:1;color:#e2e5d0;text-decoration:none}
.saved-guides li a:hover {color:#fff4d6;text-decoration:underline}
.saved-guides li button {align-self:stretch;min-width:2rem;background:#242f23;border:0;border-left:1px solid #57664e;color:#d9bf97}

[data-page=account] .heading-content {padding-bottom:clamp(1.35rem,3.5vw,2.65rem)}
.account-gateway {position:relative;overflow:hidden}
.account-gateway::after {
    content:"";position:absolute;inset:0;pointer-events:none;
    background:linear-gradient(120deg,transparent 12%,#cda46c0b 48%,transparent 70%);
    background-size:200% 100%;animation:hub-light 12s ease-in-out infinite alternate;
}
@keyframes hub-light {from{background-position:100% 0}to{background-position:0 0}}
.account-destinations {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem;margin:1rem 0 0}
.account-gateway+.account-destinations {grid-template-columns:repeat(2,minmax(0,1fr))}
.account-destination {
    display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:.65rem;align-items:center;
    padding:clamp(.7rem,2vw,1.15rem);border:1px solid #565c4b;border-top:2px solid #8a9d71;
    background:radial-gradient(ellipse at 0 0,#63734b35,transparent 72%),#202b23;
    color:#eee2c9;text-decoration:none;transition:border-color .2s,box-shadow .2s,transform .2s;
}
.account-destination:is(:hover,:focus-visible) {border-color:#b3ba88;box-shadow:0 .35rem 1.05rem #76865533;transform:translateY(-.12rem)}
.account-destination-icon,.profile-placeholder {
    display:grid;place-items:center;padding:.56rem;background:#18241a;border:1px solid #656f50;color:#dcc591;
}
.account-destination-icon .ui-icon {width:1.35rem;height:1.35rem}
.account-destination strong,.account-destination small {display:block}
.account-destination strong {font:700 clamp(1.18rem,2.35vw,1.62rem)/1.16 var(--heading)}
.account-destination small {margin-top:.23rem;color:#c7d1c3;font-size:.88rem}
.account-destination-arrow {color:#bdc695}
.profile-placeholder {width:3.7rem;aspect-ratio:1;flex:none}
.profile-placeholder .ui-icon {height:1.7rem;width:1.7rem}
.account-profile>.panel p,.account-profile p {overflow-wrap:anywhere}
.account-profile [data-copy] {font-size:.85rem;margin-left:.35rem}
.history-search {
    display:flex;align-items:end;flex-wrap:wrap;gap:.35rem .75rem;margin:0 0 .7rem;padding:.63rem .75rem;
    background:#27342a;border:1px solid #50634f;
}
.history-search label {display:grid;gap:.2rem;flex:1;max-width:34rem;min-width:min(100%,13rem);font-size:.89rem;color:#e0e3d4}
.history-search p {margin:0;color:#d3dfca;font-size:.88rem}
.history-order p {margin:.15rem 0;color:#d3dfcd;font-size:.92rem}
.order-state {padding:.1rem .35rem;border:1px solid #7e7053;color:#e7d3a5;background:#2b2a1f;font-size:.8rem}
.order-state:is([data-order-state=paid],[data-order-state=completed],[data-order-state=succeeded]) {background:#263723;border-color:#737e56;color:#cbe9af}

.stock-filters {
    display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,.75fr) auto;align-items:end;gap:.6rem;
    margin:0 0 .82rem;padding:.75rem;background:linear-gradient(125deg,#343428,#263028);border:1px solid #716442;border-left:2px solid #c2a46c;
}
.stock-filters label {display:grid;gap:.22rem;font-size:.9rem;color:#e5dec7}
.stock-filters p {margin:0 0 .25rem;font-size:.88rem;color:#d6d9c2}
[data-shop-stock] .manual-disclosure[open] summary {background:linear-gradient(110deg,#4e4230,#2e372b)}
.dungeon-planner {
    display:grid;grid-template-columns:minmax(0,1.65fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1fr);align-items:center;gap:.7rem;
    margin-bottom:.9rem;padding:.85rem;background:linear-gradient(120deg,#362a3b,#252730);
    border:1px solid #705e78;border-left:2px solid #c7a4d0;
}
.dungeon-planner h3 {margin:0;color:#f0dff7;font-size:1.38rem}
.dungeon-planner p {margin:.2rem 0 0;font-size:.88rem}
.dungeon-planner label {display:grid;gap:.25rem;font-size:.88rem}
.dungeon-planner select {width:100%;margin-top:.25rem}
.dungeon-planner input {width:100%;min-width:0;min-height:2.6rem;padding:.4rem .55rem;background:var(--deep);color:var(--text);border:1px solid #4b5647;border-radius:2px}
.dungeon-planner input:focus {outline:none;border-color:#a595ac}
.dungeon-planner output {padding:.55rem;background:#251d2a;color:#f0dff7;border:1px solid #705e78;text-align:center;font-weight:700;overflow-wrap:anywhere}
@media(max-width:1000px) {.account-destinations {grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:830px) {.dungeon-planner {grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px) {
    .account-destinations,.account-gateway+.account-destinations,.stock-filters,.dungeon-planner {grid-template-columns:minmax(0,1fr)}
    .stock-filters p {margin:0}
}
@media(max-width:430px) {
    .guide-toolbar {gap:.3rem}
    .guide-toolbar>a,.guide-toolbar>button,.guide-toolbar summary {padding-inline:.38rem;font-size:.8rem}
    .guide-toolbar details {position:static}
    .guide-toolbar nav {left:.4rem;right:.4rem;width:auto;min-width:0;max-width:none;top:calc(100% + .15rem)}
}
