[hidden]{display:none!important}
.hero{padding:1.7rem 0}.hero h1{font-size:clamp(2rem,5vw,3.8rem);max-width:none}
main{padding-bottom:3rem}main,.panel{overflow-wrap:anywhere;min-width:0}
.controls{display:grid;grid-template-columns:2fr 1.4fr 1fr 1fr;gap:.65rem}
#builder{margin:1rem 0}.heading,.actions,.toggle{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem}
.heading{justify-content:space-between}.heading h2,.heading h3{margin:0;max-width:100%}
.heading h2{font-size:clamp(1.45rem,3vw,2rem);line-height:1.15}
#copied:empty,#status:empty{display:none}
.toggle{flex-direction:row;cursor:pointer}.toggle input{width:1.15rem;height:1.15rem;accent-color:var(--green)}
.summary{display:grid;grid-template-columns:1fr 1fr;margin:1rem 0 .5rem;background:#19342e;color:#f7f6ea;gap:1px}
.summary>div{padding:1rem;min-width:0}.summary>div+div{background:#24463e}
.summary strong{display:block;color:#d2efa9;font-size:clamp(1.6rem,4vw,2.4rem);letter-spacing:-.035em;margin:.2rem 0}
.summary span{font-size:.93rem;line-height:1.45}.caution,.hint,#scope,.methods p{font-size:.92rem;line-height:1.5;color:#435248}
#history{display:grid;grid-template-columns:repeat(23,minmax(0,1fr));gap:2px}
#history button{display:flex;flex-direction:column;align-items:stretch;justify-content:space-between;padding:.2rem;border:0;background:transparent;font: .76rem/1.4 var(--mono);min-width:0}
#history button[aria-pressed=true]{background:#f8e0a8;color:#40270b;font-weight:bold}
#history button:hover{box-shadow:inset 0 0 0 1px var(--green)}
.plot{height:7rem;display:block;position:relative;background:#edf0e6}
.plot i{position:absolute;left:12%;right:12%;background:#366758}
.plot .negative,.track .negative{background:#98472f}
.plot b{position:absolute;left:0;right:0;border-bottom:1px solid #748379}
#history button[aria-pressed=true] .plot{background:#fff5d6}
#history button[aria-pressed=true] i{outline:2px solid #bb7a20}
table{width:100%;table-layout:fixed;border-collapse:collapse;display:table;min-width:0;font-variant-numeric:tabular-nums}
th,td{padding:.75rem .45rem;border-bottom:1px solid var(--line);text-align:right;vertical-align:top;white-space:normal;overflow-wrap:anywhere}
th:first-child,td:first-child{text-align:left;width:38%}
td small{display:block;font-size:.82rem}td .money{font-weight:650}
.track{display:block;height:.5rem;position:relative;background:#eceee4;margin-top:.4rem}
.track i{position:absolute;height:100%;background:#366758}
#roster,.methods{margin-top:1rem}#roster li{margin:.4rem 0;line-height:1.5}
#matches li{margin:.8rem 0}.col-label{display:none}
@media(max-width:920px){
#history{grid-template-columns:repeat(8,minmax(0,1fr))}.plot{height:4.6rem}
.controls{grid-template-columns:1fr 1fr}
}
@media(max-width:680px){
.summary{grid-template-columns:1fr}
table,tbody,tr,td{display:block;width:100%}
thead{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}
tr{border-bottom:1px solid var(--line);padding:.75rem 0}
td,td:first-child{width:100%;padding:.18rem 0;border:0}
td:first-child{margin-bottom:.4rem}.col-label{display:inline;float:left;color:var(--muted)}
#history{grid-template-columns:repeat(6,minmax(0,1fr))}
#history button{font-size:.7rem}.plot{height:3.5rem}
.controls label:nth-child(-n+2){grid-column:1/-1}
}
.report-links{display:flex;flex-wrap:wrap;gap:.5rem 1.2rem;font-weight:650}#chapter-map{scroll-margin-top:1rem}
.order-label{max-width:100%;min-width:0}
.accounts .sort-label{display:none}
.accounts th button{font:inherit;padding:.35rem .55rem}
.accounts th[aria-sort] button{background:#19342e;color:white;border-color:#19342e}
@media(max-width:680px){
  .order-label{width:100%}
  .accounts th button{display:none}
  .accounts .sort-label{display:inline}
}
