/* Layout: one player at a time (tabs + #name links). Quest tree beside that player's levels; worn equipment, inventory and item picker below. Single dark OSRS-interface look by design. */
:root{
  --bg:#1c1914; --panel:#3e3529; --panel-2:#4b4033; --inset:#2a241c; --edge:#16130f; --rim:#6b5c45;
  --text:#ece0c4; --muted:#a8987a; --grey:#9a9a9a; --gold:#ff981f; --yellow:#ffff00; --green:#0dc10d; --red:#ff3030; --sk:#9fd0ff;
  --joe:#e0b84a; --john:#5fb3d9; --tom:#7fcf6a; --nate:#e07a62; --pc:var(--tom);
  --f-display:"Pixelify Sans", "Courier New", monospace;
  /* The simulators: an in-game style pixel font whose digits are easy to tell apart. */
  --f-sim:"Jersey 10", "Pixelify Sans", monospace;
  --f-body:"Barlow Semi Condensed", "Arial Narrow", system-ui, sans-serif;
  --f-num:"Barlow Semi Condensed", "Arial Narrow", system-ui, sans-serif;
  color-scheme:dark;
}
*{box-sizing:border-box}
body{background:var(--bg);color:var(--text);font-family:var(--f-body);font-size:15px;line-height:1.45;
  padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px));padding-block:20px 40px}
/* Layout breakpoints follow the page's own width (container queries), so they still work with the menus docked beside it. */
.wrap{max-width:1240px;margin:0 auto;display:flex;flex-direction:column;gap:18px;container:page/inline-size}
button,input,select{font:inherit;color:inherit}
button{cursor:pointer}
:focus-visible{outline:2px solid var(--gold);outline-offset:2px}

header.top{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:14px}
.brand h1{font-family:var(--f-display);font-weight:700;font-size:clamp(26px,5vw,38px);margin:0;color:var(--gold);text-shadow:2px 2px 0 #000;line-height:1.05}
.brand h1 span{color:var(--pc)}
.brand p{margin:4px 0 0;color:var(--muted);font-size:14px}
.players{display:flex;gap:6px;flex-wrap:wrap}
.ptab{background:var(--inset);border:1px solid var(--edge);box-shadow:inset 0 0 0 1px var(--rim);border-radius:3px;padding:7px 16px;font-family:var(--f-display);font-size:17px;color:var(--muted);text-decoration:none}
.ptab:hover{color:var(--text)}
.ptab[aria-current="page"]{color:#111;background:var(--c);box-shadow:inset 0 -2px 0 rgba(0,0,0,.35)}

.panel{background:var(--panel);border:2px solid var(--edge);box-shadow:inset 0 0 0 2px var(--rim), 0 2px 0 #000;border-radius:4px;padding:14px;min-width:0}
.panel h2{font-family:var(--f-display);font-weight:700;color:var(--gold);font-size:20px;margin:0;letter-spacing:.02em;text-shadow:1px 1px 0 #000}
.phead{display:flex;justify-content:space-between;align-items:baseline;gap:10px;flex-wrap:wrap;margin-bottom:10px}
.summary{display:flex;flex-wrap:wrap;gap:6px 14px;color:var(--muted);font-size:14px;align-items:center}
.summary strong{color:var(--text);font-variant-numeric:tabular-nums}
.rwtoggle{display:inline-flex;align-items:center;gap:6px;cursor:pointer;white-space:nowrap}.rwtoggle input{accent-color:var(--gold);width:15px;height:15px;margin:0}.rwtoggle:hover{color:var(--text)}
.expall{display:inline-flex;gap:4px}.expall .btn{width:30px;height:28px;padding:0;font-size:18px;line-height:1;display:grid;place-items:center}
.linkbtn{background:none;border:0;color:var(--muted);text-decoration:underline;text-underline-offset:2px;padding:0;font-size:13px}
.linkbtn:hover{color:var(--text)}

.top-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;align-items:start}
.skills-layout{display:grid;grid-template-columns:auto minmax(0,1fr);gap:18px;align-items:start}
@container page (max-width:688px){.skills-layout{grid-template-columns:minmax(0,1fr)}}
.skgrid{display:grid;grid-template-columns:repeat(3,100px);gap:3px;padding:8px;background:var(--panel-2);border:2px solid var(--edge);box-shadow:inset 0 0 0 2px var(--rim);border-radius:4px 4px 0 0;justify-content:center}
.skc{display:flex;align-items:center;gap:3px;height:40px;background:#3a3127;border:1px solid #1a1611;box-shadow:inset 1px 1px 0 #5e4f3b, inset -1px -1px 0 #221c15;border-radius:3px;padding:0 6px 0 3px;color:inherit;min-width:0}
.skc:hover{background:#463b2f}
.skc[aria-pressed="true"]{border-color:var(--gold);box-shadow:inset 0 0 0 1px var(--gold)}
.skc .ico{width:32px;height:32px;flex:none}
.skc .num{margin-left:auto;font-family:var(--f-display);font-size:15px;color:var(--yellow);text-shadow:1px 1px 0 #000;font-variant-numeric:tabular-nums;white-space:nowrap}
.skc .num i{font-style:normal}
.skc.ok .num i{color:var(--green)}.skc.short .num i{color:var(--red)}
.sktotal{flex-wrap:wrap;column-gap:18px!important}.qpt{background:none;border:0;padding:0 4px;margin:0;font:inherit;color:inherit;text-shadow:inherit;cursor:pointer;border-radius:3px}.qpt:hover{background:rgba(255,255,255,.06)}.qpt[aria-pressed="true"]{box-shadow:inset 0 -2px 0 var(--yellow)}.qpt i{font-style:normal}.qpt.ok i{color:var(--green)}.qpt.short i{color:var(--red)}
.skc .lvin{margin-left:auto;width:40px;padding:2px}
.sktotal{display:flex;justify-content:center;gap:6px;padding:7px;background:var(--panel-2);border:2px solid var(--edge);border-top:0;box-shadow:inset 0 0 0 2px var(--rim);border-radius:0 0 4px 4px;font-family:var(--f-display);color:var(--yellow);text-shadow:1px 1px 0 #000}
.skside{display:flex;flex-direction:column;gap:12px;min-width:0}
.combat{display:flex;gap:12px;align-items:flex-start;background:var(--inset);border:1px solid var(--edge);border-radius:3px;padding:10px 12px}
.combat .ico{width:48px;height:48px;flex:none}
.combat .cb{font-family:var(--f-display);font-size:22px;color:var(--gold);text-shadow:1px 1px 0 #000;line-height:1.1}
.combat ul{margin:6px 0 0;padding:0;list-style:none;font-size:13px;color:var(--muted);display:flex;flex-direction:column;gap:2px}
.combat ul b{color:var(--text);font-variant-numeric:tabular-nums}
.skdetail{background:var(--inset);border:1px solid var(--edge);border-radius:3px;padding:10px 12px;min-width:0}
.skdetail h3{margin:0 0 6px;display:flex;align-items:center;gap:8px;font-family:var(--f-display);font-weight:500;font-size:17px;color:var(--yellow);text-shadow:1px 1px 0 #000}
.skdetail h3 .ico{width:28px;height:28px}
.skdetail ul{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:2px;max-height:220px;overflow:auto}
.skdetail li{display:flex;justify-content:space-between;gap:10px;font-size:14px}
.skdetail li span:first-child{min-width:0;overflow-wrap:anywhere}
.skdetail li b{font-family:var(--f-display);font-weight:500;font-variant-numeric:tabular-nums}
.skdetail li.ok b{color:var(--green)}.skdetail li.short b{color:var(--red)}

.addrow{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:10px}
#plan-list{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-start}
.plan{background:var(--inset);border:1px solid var(--edge);border-radius:3px;flex:0 1 auto;max-width:100%;min-width:0}
.planhd{display:flex;align-items:center;gap:4px 10px;flex-wrap:wrap;padding:5px 8px 5px 10px;border-bottom:1px solid #3a3127}.ptitle{margin:0;flex:1 1 auto;word-break:normal;overflow-wrap:normal;font-family:var(--f-display);font-weight:400;color:var(--gold);font-size:17px;outline:none;min-width:40px}.planhd .linkbtn{font-size:12px}.planhd .linkbtn,.planhd .del{display:none}.plan:hover .planhd .linkbtn,.plan:hover .planhd .del,.plan:focus-within .planhd .linkbtn,.plan:focus-within .planhd .del{display:inline-block}@media (hover:none){.planhd .linkbtn,.planhd .del{display:inline-block}}
.ptwrap{overflow-x:auto}.ptable{border-collapse:collapse;width:auto;font-size:14px}
.ptable th,.ptable td{border-bottom:1px solid #3a3127;border-right:1px solid #2e2720;vertical-align:top;padding:0;position:relative}
.ptable th{background:#2f2820;text-align:left}.ptable th .pcell{font-family:var(--f-display);font-weight:400;color:var(--gold)}
.pcell{padding:3px 22px 3px 8px;min-height:1.3em;min-width:36px;line-height:1.3;white-space:pre-wrap;outline:none;color:var(--text)}.pcell:focus{background:#1d1812;box-shadow:inset 0 0 0 1px var(--gold)}
.ptotal .pcell{font-weight:700;color:var(--gold)}.ptotal td{border-top:2px solid #4a3f31}
.pxh{width:20px;border-right:0!important}.pxr,.pxc{background:none;border:0;color:var(--muted);cursor:pointer;font-size:13px;padding:2px 4px;visibility:hidden}
.pxc{position:absolute;top:1px;right:1px}tr:hover .pxr,th:hover .pxc,.pxr:focus-visible,.pxc:focus-visible{visibility:visible}.pxr:hover,.pxc:hover{color:var(--red)}
@media (hover:none){.pxr,.pxc{visibility:visible}}
.mlist{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.mitem{background:var(--inset);border:1px solid var(--edge);border-radius:3px}
.mtop{display:flex;align-items:center;gap:10px;padding:8px 12px}.mtxt{flex:1;min-width:0;display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px}
.mname{font-family:var(--f-display);font-size:18px;color:var(--gold)}.mnote{flex-basis:100%;font-size:14px;color:var(--muted)}
.mprofit{font-family:var(--f-num);font-size:13px;font-weight:700;color:var(--green)}.mprofit.neg{color:var(--red)}
.mcalc{border-top:1px solid #3a3127;padding:8px 12px 12px;display:flex;flex-direction:column;gap:6px}
.mhd{font-family:var(--f-display);color:var(--gold);font-size:15px;margin-top:4px}
.mrow{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:14px;color:var(--muted)}.mrow label{display:inline-flex;align-items:center;gap:4px}
.mrow input{background:#1d1812;border:1px solid var(--edge);color:var(--text);border-radius:3px;padding:4px 7px;font:inherit;font-size:14px;min-width:0}
.mrow input[data-f="n"]{flex:1 1 160px}.mrow input[data-f="q"]{width:64px}.mrow input[data-f="p"]{width:96px}.mrow input[data-f="perHour"]{width:96px}
@container page (max-width:608px){.mrow input[data-f="n"]{flex-basis:100%}.mrow input[data-f="q"]{width:56px}.mrow input[data-f="p"]{width:84px}}
.mres{margin-top:6px;font-size:14px;color:var(--text)}.mres b{font-family:var(--f-num)}.mres .pos{color:var(--green)}.mres .neg{color:var(--red)}
.addrow input{background:var(--inset);border:1px solid var(--edge);box-shadow:inset 0 1px 0 #000;border-radius:3px;padding:7px 9px;min-width:0;flex:1 1 180px}
.btn{background:linear-gradient(#6b5a42,#4a3d2c);border:1px solid var(--edge);box-shadow:inset 0 1px 0 #8a7656;border-radius:3px;padding:7px 14px;color:var(--text);font-weight:600}
.btn:hover{background:linear-gradient(#7a674c,#554633)}
.btn:disabled{opacity:.45;cursor:not-allowed}

/* quest tree */
.tree{list-style:none;margin:0;padding:0;background:var(--inset);border:1px solid var(--edge);box-shadow:inset 0 2px 0 #000;border-radius:3px;max-height:760px;overflow:auto}
.node{padding:4px 8px;border-bottom:1px solid rgba(0,0,0,.28)}
.node.top{border-top:2px solid rgba(0,0,0,.45)}
.node.top:first-child{border-top:0}
.row{display:grid;grid-template-columns:minmax(0,1fr) auto 38px 26px;gap:8px;align-items:center}
.label{min-width:0;display:flex;align-items:center;gap:4px;padding-left:calc(var(--d) * 20px);position:relative}
.node.sub .label::before{content:"";position:absolute;left:calc(var(--d) * 20px - 11px);top:-6px;bottom:50%;width:8px;border-left:1px solid #5a4c38;border-bottom:1px solid #5a4c38}
.exp{width:20px;height:20px;flex:none;border:0;background:none;color:var(--muted);padding:0;display:grid;place-items:center}
.exp svg{width:11px;height:11px;transition:transform .12s}
.exp[aria-expanded="true"] svg{transform:rotate(90deg)}
.exp.none{visibility:hidden}
.qn{min-width:0;font-family:var(--f-display);font-weight:500;font-size:16px;text-shadow:1px 1px 0 #000;overflow-wrap:break-word}
.node.sub .qn{font-size:15px}
[data-state="locked"] .qn{color:var(--grey)}
[data-state="ready"] .qn{color:var(--red)}
[data-state="started"] .qn{color:var(--yellow)}
[data-state="done"] .qn{color:var(--green)}
.skn{font-size:14px;color:var(--sk)}
.skn b{font-family:var(--f-display);font-weight:500;color:var(--gold);margin-right:5px;font-variant-numeric:tabular-nums}
.info{font-size:12px;color:var(--muted);white-space:nowrap;text-align:right}
.info.bad{color:var(--red)}.info.ok{color:var(--green)}
.chk{width:38px;height:28px;border-radius:3px;border:1px solid var(--edge);background:#211c15;box-shadow:inset 0 1px 0 #000;display:grid;place-items:center;padding:0;position:relative;font-weight:600;font-size:14px;font-variant-numeric:tabular-nums}
.chk svg{width:15px;height:15px}
.chk .tick{opacity:0}
.chk[aria-pressed="true"]{background:var(--pc);box-shadow:inset 0 -2px 0 rgba(0,0,0,.35);color:#111}
.chk[aria-pressed="true"] .tick{opacity:1}
.chk .lock{position:absolute;opacity:.55;width:11px;height:11px}
.chk[aria-pressed="true"] .lock{display:none}
.chk:disabled{cursor:default}
.chk.real{background:transparent;border-color:transparent;box-shadow:none;color:var(--green)}
.del{width:26px;height:26px;border:0;background:none;color:var(--muted);border-radius:3px;font-size:16px;padding:0}
.del:hover{color:var(--red)}
.del.confirm{width:auto;color:var(--red);font-size:12px;font-weight:600;white-space:nowrap}
.row:has(.del.confirm){grid-template-columns:minmax(0,1fr) auto 38px auto}
.empty{padding:22px 16px;color:var(--muted)}
.ptab.home{--c:var(--gold)}
.daynav{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:6px 0 12px}.daynav h3{margin:0 6px;font-family:var(--f-display);color:var(--gold);font-size:20px;min-width:220px;text-align:center}
.daynav input[type=date]{background:var(--inset);border:1px solid var(--edge);color:var(--text);border-radius:3px;padding:5px 8px;font:inherit;color-scheme:dark;margin-left:auto}
.week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;margin-bottom:14px}
.wday{background:#3a3127;border:1px solid #1a1611;border-radius:3px;padding:6px 4px;color:var(--muted);text-align:center;display:flex;flex-direction:column;gap:2px;align-items:center}
.wday b{font-family:var(--f-num);font-size:17px;color:var(--text)}.wday i{font-style:normal;font-size:12px;min-height:15px}.wday.has i{color:var(--gold)}
.wday[aria-current="date"]{border-color:var(--gold);box-shadow:inset 0 0 0 1px var(--gold)}.wday.today b{color:var(--green)}
.hlist{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.hq{display:grid;grid-template-columns:70px auto minmax(0,1fr) auto;gap:10px;align-items:center;background:var(--inset);border:1px solid var(--edge);border-radius:3px;padding:8px 10px}
.hq.solo{grid-template-columns:70px minmax(0,1fr) auto}.hq .t{font-family:var(--f-num);color:var(--gold);font-size:14px}.hq .who{font-family:var(--f-display);color:#111;background:var(--c);border-radius:3px;padding:1px 8px;font-size:14px;text-decoration:none}
.hq .qn{font-family:var(--f-display);font-size:17px}.hq[data-state="locked"] .qn{color:var(--grey)}.hq[data-state="ready"] .qn{color:var(--red)}.hq[data-state="started"] .qn{color:var(--yellow)}.hq[data-state="done"] .qn{color:var(--green)}
.hq .meta{display:flex;align-items:center;gap:6px;flex-wrap:wrap;min-width:0}.hq .st{font-size:13px;color:var(--muted);white-space:nowrap}
.hsign{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.su{display:inline-flex;align-items:center;gap:4px;background:#3a3127;border:1px solid #1a1611;border-radius:3px;padding:3px 9px;color:var(--text);font:inherit;font-size:14px;cursor:pointer}
.su svg{width:12px;height:12px}.su.on{background:var(--c);color:#111;font-weight:600}.su.no{opacity:.45;text-decoration:line-through}.su:disabled{cursor:default}.su:not(:disabled):hover{border-color:var(--c)}
.hreqwrap{grid-column:1/-1;overflow-x:auto}.hreq{border-collapse:collapse;font-size:14px;min-width:260px}
.hreq th,.hreq td{padding:4px 10px;border-bottom:1px solid #3a3127;text-align:center}.hreq th[scope=row]{text-align:left;font-weight:400;color:var(--text)}
.hreq thead th{font-family:var(--f-display);font-weight:400}
.rc{display:inline-flex;width:20px;height:20px;border-radius:3px;background:#1d1812;border:1px solid var(--edge);align-items:center;justify-content:center}.rc svg{width:13px;height:13px;color:#111}.rc.ok{background:var(--green)}
.hweek{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:14px}
.hdh{display:flex;align-items:baseline;gap:10px;margin:0 0 6px;padding-bottom:4px;border-bottom:1px solid #4a3f31;font-family:var(--f-display);font-weight:400;color:var(--gold);font-size:19px}
.hdh small{font-family:var(--f-body);font-size:14px;color:var(--muted)}.hdh i{margin-left:auto;font-style:normal;font-family:var(--f-body);font-size:13px;color:var(--gold)}
.hday.today .hdh{color:var(--green)}.hday.today .hdh small{color:var(--green)}.hday.past .hdh{opacity:.7}
.hnone{margin:0;padding:4px 2px;color:var(--muted);font-size:14px}.hsec.later{color:var(--gold)}
.hreq tr.k-q th[scope=row]{font-family:var(--f-display)}
.hsec{margin:18px 0 6px;font-family:var(--f-display);color:var(--red);font-size:17px}
@container page (max-width:608px){.hq{grid-template-columns:auto auto minmax(0,1fr);row-gap:4px}.hq .who{justify-self:start}.hq .meta,.hq .st{grid-column:1/-1}.daynav h3{min-width:0;flex:1;font-size:17px}.daynav input[type=date]{margin-left:0}.wday{padding:4px 2px;font-size:12px}}
.calbtn{background:none;border:0;padding:2px;margin-left:8px;white-space:nowrap;color:var(--muted);cursor:pointer;display:inline-flex;align-items:center;gap:4px;flex-shrink:0;border-radius:3px;font:inherit;font-size:13px}
/* On a quest row the plan button sits right after the name: the name keeps its words whole and the date gives way (…) first, so the row never grows for it. */
.qrow .label .qn{min-width:min-content}.qrow .calbtn{flex-shrink:1;min-width:0}.calbtn svg{flex-shrink:0}.caldue{min-width:0;overflow:hidden;text-overflow:ellipsis}
.calbtn svg{width:15px;height:15px}.calbtn:hover{color:var(--text);background:rgba(255,255,255,.06)}.calbtn.on{color:var(--gold)}
.schedrow{display:flex;gap:6px;align-items:center;flex-wrap:wrap;padding:6px 10px 8px 34px;background:#2a231b}
.schedrow input{background:var(--inset);border:1px solid var(--edge);color:var(--text);border-radius:3px;padding:5px 8px;font:inherit;color-scheme:dark}
.dsep{padding:14px 12px 6px;color:var(--muted);font-size:13px;border-top:1px solid #4a3f31;list-style:none}
.info.hold{position:relative;padding-bottom:4px}.info.hold::after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:var(--green);transform-origin:left;animation:holdbar 8s linear var(--el,0ms) forwards}
@keyframes holdbar{from{transform:scaleX(1)}to{transform:scaleX(0)}}
.tabs{display:flex;gap:4px;margin:-2px 0 12px;flex-wrap:wrap;border-bottom:2px solid var(--edge)}
/* Setup tabs: each a small, look-only picture of its setup (the open one outlined in gold). */
.ltabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 14px;align-items:stretch}
.ltab{position:relative;display:flex;background:var(--inset);border:1px solid var(--edge);border-radius:4px;font-family:var(--f-display);font-size:14px;color:var(--muted)}
.ltab:hover{border-color:#6e5d45;color:var(--text)}
.ltab[aria-selected="true"]{color:var(--gold);border-color:var(--gold);box-shadow:inset 0 0 0 1px var(--gold)}
.lthumb{display:flex;flex-direction:column;align-items:center;gap:5px;background:none;border:0;padding:6px 9px 5px;color:inherit;font:inherit;cursor:pointer}
.ltname{max-width:132px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0 14px}
.ltmini{display:flex;gap:4px;pointer-events:none;opacity:.75}
.ltab:hover .ltmini,.ltab[aria-selected="true"] .ltmini{opacity:1}
.lteq{display:grid;grid-template-columns:repeat(3,17px);grid-template-rows:repeat(5,17px);gap:2px 3px;padding:4px 5px;background:var(--panel-2);border:1px solid var(--edge);border-radius:3px}
.lteq>span{background:#4a3f31;border:1px solid #1a1611;border-radius:2px;display:grid;place-items:center;overflow:hidden}
.ltinv{display:grid;grid-template-columns:repeat(4,14px);grid-template-rows:repeat(7,13px);gap:1px 2px;padding:4px 5px;background:var(--panel-2);border:1px solid var(--edge);border-radius:3px}
.ltinv>span{display:grid;place-items:center;overflow:hidden;border-radius:2px;background:rgba(0,0,0,.12)}
.ltmini .ico.wiki{width:100%;height:100%;margin:0}
.ltmini .need{background:rgba(200,40,30,.5)}.lteq>span.need{background:#6b2a22;border-color:#b8392c}
.ltneed{min-height:14px;font-family:var(--f-body);font-size:11px;line-height:14px;color:var(--red)}
.ltab .x{position:absolute;top:2px;right:2px;background:none;border:0;padding:2px 6px;color:var(--muted);font-family:var(--f-body);font-size:14px;line-height:1;z-index:1}
.ltab .x:hover{color:var(--red)}
.ltab .x.confirm{color:var(--red);font-size:12px;font-weight:600;background:var(--inset);border-radius:3px}
.ltab.add{border-style:dashed}
.ltab.add .lthumb{justify-content:center;min-width:96px}
.ltplus{font-size:30px;line-height:1;color:var(--gold)}
@container pmain (max-width:540px){.ltabs{flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;padding-bottom:4px}.ltab{flex:none}}
/* Unlocks to get: items not got yet show red wherever they sit. */
.slot.need,.slot.need:hover{background:#6b2a22;border-color:#3a120e;box-shadow:inset 1px 1px 0 #a8473a, inset -1px -1px 0 #3a120e}
.islot.need,.pslot.need{background:rgba(200,40,30,.4);border-color:rgba(255,80,60,.55)}
.islot.need:hover,.pslot.need:hover{background:rgba(220,50,35,.5)}
.havebox{display:flex;align-items:center;gap:6px;margin-top:6px;font-family:var(--f-body);font-size:13px;color:var(--text);cursor:pointer}
.havebox input{accent-color:var(--gold);width:16px;height:16px;margin:0}
.havebox.no{color:var(--red)}.havebox span{color:var(--muted)}
.wants h3{margin:0 0 8px;font-family:var(--f-display);font-weight:500;font-size:16px;color:var(--gold);display:flex;gap:8px;align-items:baseline}
.wants ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}
.wants li{display:flex;align-items:center;gap:8px;padding:5px 8px;background:var(--inset);border:1px solid var(--edge);border-left:3px solid var(--red);border-radius:3px}
.wants li input{accent-color:var(--gold);width:16px;height:16px;margin:0;flex:none;cursor:pointer}
.wants li .ico{width:32px;height:32px;flex:none}
.wname{display:flex;flex-direction:column;min-width:0;overflow-wrap:anywhere}
.wwhere{display:flex;flex-wrap:wrap;gap:0 8px;font-size:12px}
.wwhere .linkbtn{font-size:12px;padding:0}.wwhere [aria-current="true"]{color:var(--gold)}
.wants .note{margin-top:10px}
.gdiv{height:0;border-top:5px solid #16130f;list-style:none}
.addrow select{background:var(--inset) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%23ff981f' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 9px center;-webkit-appearance:none;appearance:none;border:1px solid var(--edge);box-shadow:inset 0 1px 0 #000;border-radius:3px;padding:7px 30px 7px 10px;min-width:0;font-family:var(--f-display);color:var(--yellow);cursor:pointer}
.addrow select option{background:var(--panel-2);color:var(--text)}
.ac{position:relative;flex:1 1 200px;display:flex;min-width:0}
.ac input{flex:1 1 auto}
.ac-list{position:absolute;left:0;right:0;top:calc(100% + 3px);z-index:15;max-height:300px;overflow:auto;margin:0;padding:3px;list-style:none;background:var(--panel-2);border:2px solid var(--edge);box-shadow:inset 0 0 0 1px var(--rim),0 8px 18px rgba(0,0,0,.55);border-radius:3px}
.ac-list li{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:5px 10px;border-radius:2px;cursor:pointer}
.ac-list li .qn{font-size:15px}
.ac-list li b{color:var(--gold);font-weight:inherit;text-decoration:underline;text-underline-offset:2px}
.ac-list li[aria-selected="true"],.ac-list li:hover{background:rgba(0,0,0,.35);box-shadow:inset 0 0 0 1px var(--rim)}
.ac-list .tag{font-size:11px;color:var(--muted);white-space:nowrap}
.addrow input[type=number]{flex:0 0 80px}
.skwrap{background:var(--inset);border:1px solid var(--edge);box-shadow:inset 0 2px 0 #000;border-radius:3px;overflow-x:auto}
.dtable{width:100%;border-collapse:collapse}
.dtable th{font-family:var(--f-display);font-weight:500;font-size:13px;color:var(--muted);padding:8px 6px;text-align:center;border-bottom:1px solid rgba(0,0,0,.5)}
.dtable th:first-child,.dtable td:first-child{text-align:left;padding-left:12px}
.dtable td{padding:4px 6px;border-bottom:1px solid rgba(0,0,0,.28);text-align:center}
.dtable tr:last-child td{border-bottom:0}
.dtable td .chk{margin:0 auto}
.dtable a{font-family:var(--f-display);font-size:15px;text-decoration:none;text-shadow:1px 1px 0 #000}
.dtable a:hover{text-decoration:underline}
.dtable tr[data-state="none"] a{color:var(--red)}.dtable tr[data-state="some"] a{color:var(--yellow)}.dtable tr[data-state="all"] a{color:var(--green)}
.note{font-size:13px;color:var(--muted);margin:8px 0 0}

/* levels */
.sub{color:var(--muted);font-size:12px}
.rsnrow{display:flex;gap:8px;align-items:center;margin-bottom:10px;flex-wrap:wrap}
.rsnrow label{font-size:13px;color:var(--muted)}
.rsnrow input{background:var(--inset);border:1px solid var(--edge);border-radius:3px;padding:6px 8px;width:150px}
.lvgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;background:var(--inset);border:1px solid var(--edge);box-shadow:inset 0 2px 0 #000;border-radius:3px;padding:8px}
@container page (max-width:388px){.lvgrid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.lvcell{display:flex;align-items:center;justify-content:space-between;gap:6px;background:#3a3127;border:1px solid #1a1611;border-radius:3px;padding:4px 6px;min-width:0}
.lvcell span{font-size:14px;font-weight:600;color:var(--yellow);font-family:var(--f-body);text-shadow:1px 1px 0 #000;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lvin{width:42px;background:#1d1912;border:1px solid var(--edge);border-radius:3px;padding:3px;text-align:center;font-variant-numeric:tabular-nums;font-weight:600;color:var(--yellow)}
.lvin:disabled{opacity:.7}

/* gear */
.gear-layout{display:grid;grid-template-columns:auto auto minmax(0,1fr);gap:18px;align-items:start}
/* sized by the gear's own column, since the unlocks list sits beside it */
@container pmain (max-width:820px){.gear-layout{grid-template-columns:auto auto}.gear-layout .side{grid-column:1/-1}}
@container pmain (max-width:540px){.gear-layout{grid-template-columns:minmax(0,1fr)}}
.gear-layout h3{margin:0 0 6px;font-family:var(--f-display);font-weight:500;font-size:14px;color:var(--muted)}
.ico{image-rendering:pixelated;image-rendering:crisp-edges;display:block}
/* item pictures from the OSRS Wiki: keep their shape; the big detail picture scales smoothly */
.ico.wiki{object-fit:contain}.ico.wiki.hires{image-rendering:auto}
.equip{position:relative;display:grid;grid-template-columns:repeat(3,56px);grid-template-rows:repeat(5,56px);gap:8px 22px;justify-content:center;padding:14px 22px;background:var(--panel-2);border:2px solid var(--edge);box-shadow:inset 0 0 0 2px var(--rim);border-radius:4px}
.equip .lines{position:absolute;inset:0;pointer-events:none}
.slot{position:relative;z-index:1;width:56px;height:56px;background:#4a3f31;border:2px solid #1a1611;box-shadow:inset 1px 1px 0 #6e5d45, inset -1px -1px 0 #2a231a;border-radius:4px;display:grid;place-items:center;padding:0}
.slot .ico{width:48px;height:48px}
.slot svg{width:36px;height:36px;opacity:.22}
.slot[aria-pressed="true"],.islot[aria-pressed="true"]{border-color:#fff;box-shadow:0 0 0 1px #000}
.slot:hover{background:#56493a}
.inv{display:grid;grid-template-columns:repeat(4,46px);grid-template-rows:repeat(7,42px);gap:4px 6px;padding:12px 14px;background:var(--panel-2);border:2px solid var(--edge);box-shadow:inset 0 0 0 2px var(--rim);border-radius:4px;justify-content:center}
.islot{position:relative;width:46px;height:42px;border:1px solid transparent;border-radius:3px;background:rgba(0,0,0,.12);display:grid;place-items:center;padding:0}
.islot:hover{background:rgba(255,255,255,.06)}
.islot .ico{width:48px;height:48px;margin-top:2px}
.qty{position:absolute;left:2px;top:0;font-family:var(--f-display);font-size:12px;line-height:1;text-shadow:1px 1px 0 #000;color:#ffff00;pointer-events:none}
.qty.k{color:#fff}.qty.m{color:#00ff80}
.detail{display:flex;gap:12px;align-items:center;background:var(--inset);border:1px solid var(--edge);border-radius:3px;padding:10px 12px}
.detail .big{width:80px;height:80px;flex:none;background:#4a3f31;border:2px solid #1a1611;border-radius:4px;display:grid;place-items:center}
.detail .big .ico{width:72px;height:72px}
.detail .big svg{width:48px;height:48px;opacity:.22}
.detail .meta{min-width:0}
.detail .slotname{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.detail .itemname{font-family:var(--f-display);font-size:19px;color:var(--gold);text-shadow:1px 1px 0 #000;overflow-wrap:anywhere}
.picker{margin-top:10px;display:flex;flex-direction:column;gap:8px}
.picker .addrow{margin:0}
.picker .qtyin{flex:0 0 90px}
.items{list-style:none;margin:0;padding:0;max-height:300px;overflow:auto;background:var(--inset);border:1px solid var(--edge);border-radius:3px}
.items button{width:100%;display:flex;align-items:center;gap:10px;background:none;border:0;border-bottom:1px solid rgba(0,0,0,.3);padding:3px 10px;text-align:left}
.items button:hover{background:rgba(255,152,31,.08)}
.items .ico{width:32px;height:32px;flex:none}
.items .cur{color:var(--gold)}

.banner{background:var(--inset);border:1px solid var(--edge);border-left:3px solid var(--gold);padding:8px 12px;border-radius:3px;font-size:14px;color:var(--muted)}
.toast{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(16px + env(safe-area-inset-bottom,0px));background:#000;color:var(--yellow);font-family:var(--f-display);padding:8px 14px;border-radius:3px;border:1px solid var(--rim);z-index:20;max-width:calc(100% - 32px)}
@media (prefers-reduced-motion:reduce){.exp svg{transition:none}}

.tabs{align-items:flex-end}
.tabmeta{margin-left:auto;display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:0 0 6px}
.tabmeta input{background:var(--inset);border:1px solid var(--edge);border-radius:3px;padding:4px 8px;width:130px}
.pane{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:18px;align-items:start}.pane.one{grid-template-columns:minmax(0,1fr)}[hidden]{display:none!important}
@container page (max-width:868px){.pane{grid-template-columns:minmax(0,1fr)}}
.pane-skills{display:flex;flex-direction:column;gap:10px;min-width:0}
.xpr{display:inline-flex;align-items:center;gap:8px;margin-left:10px;flex-shrink:0;font-family:var(--f-num);font-weight:700;font-size:12px;color:#c9b98f;white-space:nowrap}
.xpr.none{color:var(--muted);font-weight:400}.xpi{display:inline-flex;align-items:center;gap:2px}.xpr .ico{width:16px;height:16px;image-rendering:pixelated}
@container qlist (max-width:460px){.node.sub .label{flex-wrap:wrap}.node.sub .label .qn{flex:1 1 0}.node.sub .label .gnote{flex-basis:100%;margin-left:24px}.row .label{padding-left:calc(var(--d) * 11px)}.row{gap:6px}.row .info{white-space:normal;max-width:72px;text-align:right;line-height:1.2;font-size:11px}}
@container page (max-width:608px){.row .label{padding-left:calc(var(--d) * 11px)}.row{gap:6px}.row .info{white-space:normal;max-width:72px;text-align:right;line-height:1.2;font-size:11px}.dquests .xpr{display:flex;margin:2px 0 0}.xpr.none{display:none}}
.gnote{margin-left:10px;font-size:14px;color:var(--muted);font-family:var(--f-body);overflow-wrap:anywhere}
.skc .num,.sktotal,.skn b,.skdetail li b,.qty,.chk,.info,.lvin,.combat .cb,.combat ul b,.summary strong{font-family:var(--f-num);font-weight:700}
.skc .num{font-size:17px}.sktotal{font-size:16px}.combat .cb{font-size:21px}

.dsel{background:none;border:0;padding:2px 0;font-family:var(--f-display);font-size:15px;text-shadow:1px 1px 0 #000;color:inherit;text-align:left}
.dtable tr[data-state="none"] .dsel{color:var(--red)}.dtable tr[data-state="some"] .dsel{color:var(--yellow)}.dtable tr[data-state="all"] .dsel{color:var(--green)}
.dsel:hover{text-decoration:underline}
.dtable tr.dsel-row td{background:rgba(255,152,31,.08)}
.dtable tr.dsel-row td:first-child{box-shadow:inset 3px 0 0 var(--gold)}
.gitem.gicon{grid-template-columns:30px minmax(0,1fr) auto;align-items:center}.gitem.gicon img{grid-row:1/3;image-rendering:pixelated}.gitem.gicon .gbar{grid-column:2/4}.gnoimg{grid-row:1/3;width:28px;height:28px}
.ureqs{display:inline-flex;flex-wrap:wrap;gap:5px}.ureq{font:inherit;font-size:13px;font-family:var(--f-num);font-weight:700;padding:1px 7px;border-radius:3px;border:1px solid #1a1611;background:#2f2820;cursor:pointer;white-space:nowrap}
.ureq.ok{color:var(--green);cursor:default}.ureq.man{color:var(--green);border-style:dashed}.ureq.bad{color:var(--red)}.ureq i{font-style:normal;color:var(--muted);font-weight:400}.ureq:not(:disabled):hover{border-color:#6a5a44}
.gohimg{image-rendering:pixelated;flex-shrink:0}#gohead{display:flex;align-items:center;gap:10px;flex-wrap:wrap}#gohead .chk{flex-shrink:0}#gohead .grename{max-width:200px}
.iconpick{display:flex;gap:6px;align-items:center}.iconpick img{image-rendering:pixelated;background:#1d1812;border:1px solid var(--edge);border-radius:3px;flex-shrink:0}.iconpick input{flex:1;min-width:0}
.dshow{font-size:14px;color:var(--muted);margin:0 0 8px}.dshow b{color:var(--gold);font-weight:600}
.dstar{color:var(--gold);margin-left:6px;font-size:.95em;text-shadow:0 0 6px rgba(255,200,40,.45)}
.dreg .gname{display:flex;align-items:center;gap:4px}.dchev{display:inline-flex;width:14px;transition:transform .15s;color:var(--muted)}.dchev svg{width:12px;height:12px}.dreg.open .dchev{transform:rotate(90deg)}
.dtl{list-style:none;margin:3px 0 4px 14px;padding:0 0 0 8px;border-left:2px solid #4a3f31;display:flex;flex-direction:column;gap:3px}
.ditem{width:100%;display:flex;justify-content:space-between;align-items:baseline;gap:8px;background:#2f2820;border:1px solid #1a1611;border-radius:3px;padding:5px 9px;color:var(--text);font:inherit;cursor:pointer;text-align:left}
.ditem span{font-family:var(--f-display);font-size:16px}.ditem small{font-size:12px;color:var(--muted)}
.ditem[data-state="done"] span{color:var(--green)}.ditem[data-state="ready"] span{color:var(--red)}.ditem[data-state="locked"] span{color:var(--grey)}
.ditem[aria-current="true"]{border-color:var(--gold);box-shadow:inset 0 0 0 1px var(--gold);background:var(--panel-2)}.ditem:hover{border-color:#6a5a44}
.dsub{list-style:none;padding:10px 12px 4px;font-family:var(--f-display);color:var(--gold);font-size:15px}
#dhead .dtick{margin-left:auto}
.dhead{background:var(--inset);border:1px solid var(--edge);border-radius:3px;padding:10px 12px;display:flex;flex-direction:column;gap:8px}
.dtitle{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.dtitle span{font-family:var(--f-display);font-size:18px;color:var(--gold);text-shadow:1px 1px 0 #000}
.dtitle a{font-size:13px;color:var(--muted)}
.dtiers{display:grid;grid-template-columns:repeat(4,1fr);gap:4px}
.dtiers button{background:#3a3127;border:1px solid #1a1611;border-radius:3px;padding:5px 0;font-family:var(--f-display);font-size:13px;color:var(--red)}
.dtiers button.done{color:var(--green)}
.dtiers button[aria-pressed="true"]{border-color:var(--gold);box-shadow:inset 0 0 0 1px var(--gold);background:var(--panel-2)}

.ghead{display:flex;align-items:center;gap:8px;padding:8px 8px 6px;background:rgba(0,0,0,.28);border-top:2px solid #16130f;border-bottom:1px solid rgba(0,0,0,.4);position:sticky;top:0;z-index:2}
.ghead:first-child{border-top:0}
.ghead .gname{font-family:var(--f-display);font-size:16px;color:var(--gold);text-shadow:1px 1px 0 #000;min-width:0;overflow-wrap:anywhere}
.ghead .gcount{font-family:var(--f-num);font-weight:700;font-size:14px;color:var(--muted);margin-right:auto}
.ghead .grename{background:var(--inset);border:1px solid var(--gold);border-radius:3px;padding:3px 8px;font-family:var(--f-display);color:var(--gold);min-width:0;flex:0 1 260px}
.ghead .grename+.gcount{margin-left:0}
#add-quest select{flex:0 1 200px;max-width:220px}
.btn.sm{padding:5px 12px;font-size:13px}
.dquests{background:var(--inset);border:1px solid var(--edge);border-radius:3px;padding:10px 12px}
.dquests h3{margin:0 0 6px;font-family:var(--f-display);font-weight:500;font-size:16px;color:var(--yellow);text-shadow:1px 1px 0 #000;display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.dquests ul{margin:0 0 10px;padding:0;list-style:none;display:flex;flex-direction:column;gap:3px}
.dquests li{display:flex;justify-content:space-between;gap:10px;font-size:14px}
.dquests li.ok>span:first-child{color:var(--green)}.dquests li.short>span:first-child{color:var(--red)}

li.node.top[draggable="true"]>.row .qn{cursor:grab}
li.node.dragging{opacity:.45}
li.node.drop-before{box-shadow:inset 0 3px 0 var(--gold)}
.ghead.drop-into{background:rgba(255,152,31,.18);box-shadow:inset 0 0 0 2px var(--gold)}
.ghead{cursor:pointer;user-select:none}.ghead:hover{background:rgba(255,152,31,.07)}

.qlayout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:14px;align-items:start}
.gside{display:flex;flex-direction:column;gap:8px;position:sticky;top:8px}
.glist{list-style:none;margin:0;padding:4px;display:flex;flex-direction:column;gap:3px;background:var(--inset);border:1px solid var(--edge);box-shadow:inset 0 2px 0 #000;border-radius:3px;max-height:70vh;overflow:auto}
.gitem{width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 8px;align-items:baseline;text-align:left;background:#3a3127;border:1px solid #1a1611;border-radius:3px;padding:7px 9px 6px;color:var(--text)}
.gitem:not([aria-current="true"]):hover{background:#463b2f}
.gitem[aria-current="true"]{background:var(--panel-2);border-color:var(--gold);box-shadow:inset 0 0 0 1px var(--gold)}
.gitem .gname{font-family:var(--f-display);font-size:15px;text-shadow:1px 1px 0 #000;min-width:0;overflow-wrap:anywhere;color:var(--yellow)}
.gitem[data-st="all"] .gname{color:var(--green)}.gitem[data-st="none"] .gname{color:var(--red)}.gitem[data-st="empty"] .gname{color:var(--muted)}
.gitem .gcount{font-family:var(--f-num);font-weight:700;font-size:13px;color:var(--muted)}
.gitem .gbar{grid-column:1/-1;height:3px;background:rgba(0,0,0,.45);border-radius:2px;overflow:hidden}
.gitem .gbar i{display:block;height:100%;background:var(--green)}
li[data-gdrag]{position:relative}li[data-gdrag][draggable="true"] .gitem{cursor:grab}li[data-gdrag].dragging{opacity:.45}
li[data-gdrag].drop-before::before,li[data-gdrag].drop-after::after{content:"";position:absolute;left:0;right:0;height:3px;background:var(--gold);border-radius:2px;z-index:2}
li[data-gdrag].drop-before::before{top:-3px}li[data-gdrag].drop-after::after{bottom:-3px}
.gitem.drop-into{box-shadow:inset 0 0 0 2px var(--gold);background:rgba(255,152,31,.18)}
.gnew{align-self:flex-start}
.gnewform{display:flex;flex-direction:column;gap:6px}
.gnewform input{background:var(--inset);border:1px solid var(--edge);border-radius:3px;padding:6px 8px;min-width:0}
.qmain{min-width:0;container:qlist/inline-size}
/* The groups sidebar goes above the list once the tab's column is too narrow for both side by side
   (by the column's own width, so it also happens with the menus docked or the skills column beside it). */
.pane-main{container:pmain/inline-size}
@container pmain (max-width:779px){.qlayout{grid-template-columns:minmax(0,1fr)}.gside{position:static}.glist{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-height:none;overflow:visible}.glist li{min-width:0}.gitem{padding:6px 7px 5px;gap:2px 4px}.gitem .gname{font-size:13px;overflow-wrap:break-word}.gitem .gcount{font-size:12px}.tree{max-height:none;overflow:visible}.ghead{position:static}}
.ghead2{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;margin-bottom:8px}
.ghead2 .gtitle{margin:0;font-family:var(--f-display);font-weight:700;font-size:19px;color:var(--gold);text-shadow:1px 1px 0 #000;margin-right:2px}
.ghead2 .gcount{font-family:var(--f-num);font-weight:700;font-size:14px;color:var(--muted);margin-right:auto}
.ghead2 .grename{background:var(--inset);border:1px solid var(--gold);border-radius:3px;padding:4px 8px;font-family:var(--f-display);font-size:16px;color:var(--gold);min-width:0;flex:0 1 280px}
.ghead2 .del{width:auto;font-size:13px}
@container page (max-width:668px){.qlayout{grid-template-columns:minmax(0,1fr)}.gside{position:static}.glist{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-height:none;overflow:visible}.glist li{min-width:0}.gitem{padding:6px 7px 5px;gap:2px 4px}.gitem .gname{font-size:13px;overflow-wrap:break-word}.gitem .gcount{font-size:12px}.tree,.skwrap{max-height:none;overflow:visible}.ghead{position:static}}
.node>.row:has(.exp:not(.none)){cursor:pointer}.node>.row:has(.exp:not(.none)):hover{background:rgba(255,255,255,.03)}
li.node.top[draggable="true"]>.row .qn{cursor:inherit}
.dtable tbody tr{cursor:pointer}.dtable tbody tr:hover td{background:rgba(255,255,255,.03)}.dtable tbody tr.dsel-row:hover td{background:rgba(255,152,31,.1)}
.dtier>.row .qn{font-size:17px}
.dtier.dsel>.row{box-shadow:inset 3px 0 0 var(--gold)}
#diary-tree .btn.sm{margin:2px 0}

/* ---------------------------------------------------------------------------
   Rails additions (not in the original artifact): the account links in the
   header, sign-in / sign-up / password pages, account settings and flashes.
   ------------------------------------------------------------------------- */
.account{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:13px;color:var(--muted)}
.account a,.account button{background:none;border:0;padding:0;color:var(--muted);text-decoration:underline;text-underline-offset:2px;font-size:13px}
.account a:hover,.account button:hover{color:var(--text)}
.account .who-link{color:var(--text);font-weight:600}
.account form{display:inline;margin:0}

/* Sign in, sign up and the other account forms: one narrow column under the page header. */
.authbox{width:100%;max-width:440px;margin:0 auto;display:flex;flex-direction:column;gap:14px}
.authbox .note a,.settings .note a{color:var(--text)}
/* "Continue with Google" under the sign-in and sign-up forms. */
.oauth-or{display:flex;align-items:center;gap:10px;margin:14px 0 10px;color:var(--muted);font-size:13px}
.oauth-or::before,.oauth-or::after{content:"";flex:1;border-top:1px solid var(--rim)}
.google-btn{width:100%;display:flex;align-items:center;justify-content:center;gap:10px}
.google-btn svg{flex:none;background:#fff;border-radius:2px;padding:2px;box-sizing:content-box}

.form{display:flex;flex-direction:column;gap:12px}
.form label{display:flex;flex-direction:column;gap:4px;font-size:13px;color:var(--muted)}
.form input[type=email],.form input[type=password],.form input[type=text],.form input[type=file]{background:var(--inset);border:1px solid var(--edge);box-shadow:inset 0 1px 0 #000;border-radius:3px;padding:8px 10px;color:var(--text);font-size:15px;min-width:0}
.form textarea{background:var(--inset);border:1px solid var(--edge);box-shadow:inset 0 1px 0 #000;border-radius:3px;padding:8px 10px;color:var(--text);font-size:15px;font-family:inherit;min-width:0;resize:vertical}
.form label.check{flex-direction:row;align-items:flex-start;gap:8px;font-size:14px;color:var(--text)}
.form label.check input{margin-top:3px;accent-color:var(--gold)}
.form .hint,.devices .hint{font-size:12px;color:var(--muted)}
.form code{font-size:12px;color:var(--text);overflow-wrap:anywhere}
.form-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
a.btn{display:inline-block;text-decoration:none}
.btn.danger{background:linear-gradient(#8a3a2c,#5e2219);box-shadow:inset 0 1px 0 #b0584a}

/* Settings pages: every box is the same width (equal columns) and the same height (every row as tall as the tallest box). */
.settings{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,380px),1fr));grid-auto-rows:1fr;gap:18px;align-items:stretch}
.settings>.panel{display:flex;flex-direction:column;min-width:0}
.settings .devices{max-height:300px;overflow-y:auto;overscroll-behavior:contain}
.panel.danger{box-shadow:inset 0 0 0 2px #7a3a2c, 0 2px 0 #000}
.devices{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.devices li{display:flex;justify-content:space-between;align-items:center;gap:10px;background:var(--inset);border:1px solid var(--edge);border-radius:3px;padding:8px 10px}
.devices li>div{display:flex;flex-direction:column;min-width:0}
.devices form{margin:0}
.suggest-form{max-width:640px;margin-bottom:18px}
.suggestions li{align-items:flex-start}
.suggestions li.unread{border-color:var(--gold)}
.suggestions .sbody{margin:0 0 4px;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--text)}
.suggestions .member-actions{display:flex;gap:8px;flex-shrink:0}
.tag-done{color:#8fd18f}
.tag-current{align-self:flex-start;font-size:11px;color:#111;background:var(--green);border-radius:3px;padding:0 6px;margin:2px 0}

.flash{background:var(--inset);border:1px solid var(--edge);border-left:3px solid var(--red);padding:8px 12px;border-radius:3px;font-size:14px;color:var(--text);margin:0 0 12px}
.flash.notice{border-left-color:var(--green)}
.wrap>.flash{margin:0}
.errors{margin:0;padding-left:18px}

/* Parties */
.devices.members li>div.member-actions{flex-direction:row;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-end}
.members .member-actions form{margin:0}
.partyhow{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:6px}
.form input[readonly]{color:var(--muted)}
.hq.mate{border-left:3px solid var(--c)}
.hq .hsign .sub{font-size:13px}

/* Hover states change colours only (no filter/opacity), so text never re-renders and shimmers. */
/* Help dialog */
.account .help-link{color:var(--gold);font-weight:600}
dialog.help{width:min(920px,calc(100vw - 32px));max-height:calc(100dvh - 48px);padding:0;background:var(--panel);color:var(--text);border:2px solid var(--edge);box-shadow:inset 0 0 0 2px var(--rim),0 10px 40px rgba(0,0,0,.6);border-radius:4px;overflow:hidden}
dialog.help[open]{display:flex;flex-direction:column}
dialog.help::backdrop{background:rgba(10,8,6,.72)}
.help-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-bottom:1px solid var(--edge)}
.help-head h2{margin:0;font-family:var(--f-display);font-size:22px;color:var(--gold);text-shadow:1px 1px 0 #000}
.help-x{background:var(--inset);border:1px solid var(--edge);border-radius:3px;width:34px;height:34px;font-size:22px;line-height:1;color:var(--muted)}
.help-x:hover{color:var(--text)}
.help-body{display:grid;grid-template-columns:190px minmax(0,1fr);min-height:0;flex:1}
.help-toc{display:flex;flex-direction:column;gap:2px;padding:12px;border-right:1px solid var(--edge);overflow-y:auto;background:var(--inset)}
.help-toc a{color:var(--muted);text-decoration:none;padding:5px 8px;border-radius:3px;font-size:14px}
.help-toc a:hover{color:var(--text);background:rgba(255,255,255,.04)}
.help-content{position:relative;overflow-y:auto;padding:4px 20px 20px;font-size:15px}
.help-content:focus{outline:none}
.help-content section{padding-top:14px}
.help-content section+section{border-top:1px solid rgba(0,0,0,.35);margin-top:14px}
.help-content h3{margin:0 0 8px;font-family:var(--f-display);font-size:19px;color:var(--gold)}
.help-content p{margin:0 0 8px}
.help-content ul,.help-content ol{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:6px}
.help-content a{color:var(--text)}
.help-content code{background:var(--inset);border:1px solid var(--edge);border-radius:3px;padding:0 4px;font-size:13px;overflow-wrap:anywhere}
.help-legend{list-style:none;padding-left:0!important}
.help-legend span{font-weight:700}
@media (max-width:700px){.help-body{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)}.help-toc{flex-direction:row;overflow-x:auto;overflow-y:hidden;border-right:0;border-bottom:1px solid var(--edge);padding:8px}.help-toc a{white-space:nowrap}.help-content{padding:4px 14px 16px}dialog.help{width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}}

/* All quests: browse every quest and add ones to your groups */
#glist .gall{grid-column:1/-1;margin-bottom:10px;padding-bottom:10px;border-bottom:1px solid #4a3f31}
.ghead2 .allq-filters{display:flex;gap:8px;flex-wrap:wrap;flex:1 1 280px;justify-content:flex-end}
.allq-filters input,.allq-filters select{background:var(--inset);border:1px solid var(--edge);border-radius:3px;padding:5px 8px;color:var(--text);min-width:0}
.allq-filters input{flex:1 1 160px;max-width:260px}
.qadd{background:var(--inset);border:1px solid var(--edge);color:var(--gold);border-radius:3px;padding:1px 4px;font:inherit;font-size:12px;max-width:120px;flex-shrink:0;cursor:pointer}
.qadd:hover,.qadd:focus{border-color:var(--gold)}
/* Top-level quest rows are columns: name · group/note · actions · status · tick · remove.
   In the quest list (#tree) every row shares one grid (subgrid), so each column lines up down the whole list;
   requirement rows under a quest span the first three columns. Elsewhere (diaries) each row is its own grid.
   These follow the list's own width (qlist), not the page's: with the menus docked or the skills column beside it,
   the list can be narrow on a wide page, and six columns there squeeze quest names down to a letter per line. */
.qrow{grid-template-columns:minmax(0,1fr) auto auto auto 38px 26px}
.qmeta,.qact{display:flex;align-items:center;gap:6px;min-width:0}
.qmeta .gnote{margin-left:0;font-size:13px;max-width:170px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.qact .qadd{max-width:110px}
@container qlist (min-width:640px){
  #tree{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto 38px 26px;column-gap:14px;align-content:start}
  #tree>li{grid-column:1/-1}
  #tree>li.node,#tree>li.node>.row,#tree li.node.sub{display:grid;grid-template-columns:subgrid;grid-column:1/-1}
  #tree>li.node>.row{column-gap:14px}
  #tree li.node.sub>.row{display:grid;grid-template-columns:subgrid;grid-column:1/-1}
  #tree li.node.sub>.row>.label{grid-column:1/4}
  #tree li.node.rewards>.row>.label{grid-column:1/-1}
  #tree>li.node>.schedrow{grid-column:1/-1}
  #tree .info{text-align:left}
}
@container qlist (max-width:639px){
  .qrow{grid-template-columns:minmax(0,1fr) auto 38px 26px;row-gap:0}
  .qrow>.label{grid-column:1;grid-row:1}.qrow>.info{grid-column:2;grid-row:1}.qrow>.chk{grid-column:3;grid-row:1}.qrow>:last-child{grid-column:4;grid-row:1}
  .qrow>.qmeta,.qrow>.qact{grid-row:2;margin-top:4px;flex-wrap:wrap}
  .qrow>.qmeta{grid-column:1;padding-left:24px}.qrow>.qact{grid-column:2/-1;justify-content:flex-end}
  .qrow>.qmeta:empty+.qact{grid-column:1/-1;padding-left:24px;justify-content:flex-start}
  .qrow>.qmeta:empty,.qrow>.qact:empty{display:none}
}
.tabmeta select{background:var(--inset);border:1px solid var(--edge);border-radius:3px;padding:4px 6px;color:var(--text);max-width:200px}

/* Quest rewards (top of every quest dropdown, and on Schedule plans) */
li.node.rewards>.row{grid-template-columns:minmax(0,1fr)}
.label.rw,.hrewards{flex-wrap:wrap;gap:4px 12px;font-size:13px;color:var(--text);padding-top:3px;padding-bottom:3px}
.hrewards{grid-column:1/-1;display:flex;align-items:center}
.rw-h{font-family:var(--f-display);color:var(--gold);font-size:14px;margin-right:2px}
.rw-qp b{color:var(--sk);font-family:var(--f-num)}
.rw-xp{display:inline-flex;align-items:center;gap:4px;white-space:nowrap}
.rw-xp img,.rw-xp canvas{width:16px;height:16px}
.rw-wiki{color:var(--muted);font-size:12px}.rw-wiki:hover{color:var(--text)}

/* "Viewing": switch between your own pages and your party mates' (read-only) */
.pswitch{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.pchip{background:var(--inset);border:1px solid var(--edge);border-radius:3px;padding:3px 12px;color:var(--text);text-decoration:none;font-family:var(--f-display);font-size:15px;box-shadow:inset 3px 0 0 var(--c)}
.pchip:hover{border-color:var(--c)}
.pchip[aria-current="page"]{background:var(--c);color:#111;box-shadow:inset 0 -2px 0 rgba(0,0,0,.35)}

/* All quests: the in-game list's sections */
li.qsec{list-style:none;margin:10px 0 2px}
li.qsec:first-child{margin-top:0}
li.qsec button{display:flex;align-items:center;gap:8px;width:100%;background:none;border:0;border-bottom:1px solid #4a3f31;padding:4px 2px;color:var(--gold);font-family:var(--f-display);font-size:17px;text-align:left}
li.qsec button svg{width:12px;height:12px;transition:transform .12s;color:var(--muted)}
li.qsec button[aria-expanded="true"] svg{transform:rotate(90deg)}
li.qsec .gcount{margin-left:auto;font-family:var(--f-num);font-size:13px;color:var(--muted)}
li.node.top[data-qname][draggable="true"]>.row .qn{cursor:grab}

/* Combat Achievements: every task's row shows its boss, what it asks and what it needs, with no clicking */
.catier{width:20px;height:20px;flex:none;object-fit:contain;image-rendering:pixelated;margin-right:4px}
li.catask[draggable="true"]>.row .qn{cursor:grab}
li.catask.dragging{opacity:.45}
.camon{color:var(--sk);font-weight:600}
.cadesc{margin:2px 0 2px 24px;font-size:13px;line-height:1.45;color:var(--text);display:flex;flex-wrap:wrap;align-items:center;gap:3px 8px}
.catype{font-family:var(--f-num);font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);border:1px solid #4a3f31;border-radius:3px;padding:0 5px}
.careqs{display:inline-flex;flex-wrap:wrap;gap:4px}
.careq{display:inline-flex;align-items:center;gap:3px;white-space:nowrap;font-size:12px;padding:1px 6px;border-radius:3px;background:#211c15;border:1px solid var(--edge)}
.careq img,.careq canvas{width:14px;height:14px}
.careq.ok{color:var(--green)}.careq.bad{color:var(--red)}.careq.boost{color:#f0b429}.careq.note{color:var(--muted)}
.careq small{font-size:10px;color:var(--muted)}
.catiers{flex:1 1 100%;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px}
.catierbtn{display:flex;flex-direction:column;align-items:center;gap:1px;background:#3a3127;border:1px solid #1a1611;border-radius:3px;padding:4px 2px;color:var(--yellow);font-family:var(--f-display);font-size:13px;text-shadow:1px 1px 0 #000;min-width:0}
.catierbtn .catier{margin:0}
.catierbtn b{font-family:var(--f-num);font-size:12px;color:var(--muted);text-shadow:none}
.catierbtn[data-st="all"]{color:var(--green)}.catierbtn[data-st="none"]{color:var(--red)}
.catierbtn:hover{background:#463b2f}
.catierbtn[aria-pressed="true"]{background:var(--panel-2);border-color:var(--gold);box-shadow:inset 0 0 0 1px var(--gold)}
li.qsec .sub{font-family:var(--f-num);font-size:12px}
@container page (min-width:609px){
  #ca-tree{display:grid;grid-template-columns:minmax(160px,1fr) auto auto auto 38px 26px;column-gap:14px;align-content:start}
  #ca-tree>li{grid-column:1/-1}
  #ca-tree>li.node,#ca-tree>li.node>.row{display:grid;grid-template-columns:subgrid;grid-column:1/-1}
  #ca-tree>li.node>.row{column-gap:14px}
  #ca-tree>li.node>.cadesc{grid-column:1/-1}
  #ca-tree .info{text-align:left}
}
@container page (max-width:608px){
  .catiers{grid-template-columns:repeat(3,minmax(0,1fr))}
  .cadesc{margin-left:0}
}

/* The tabbed panel (Quests, Diaries, Unlocks, Money, Plans) keeps one height whatever is in it, so the
   gear section below never moves when you switch tabs or open quests. Each column scrolls inside it. */
.top-grid>.panel{height:880px;display:flex;flex-direction:column;overflow:hidden}
.top-grid>.panel>.tabs{flex:none}
.top-grid>.panel>.pane{flex:1 1 auto;min-height:0;grid-template-rows:minmax(0,1fr);align-items:stretch}
.top-grid>.panel>.pane>.pane-main,.top-grid>.panel>.pane>.pane-skills{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-right:6px;scrollbar-gutter:stable}
.top-grid>.panel .tree{max-height:none}
@container page (max-width:868px){
  .top-grid>.panel{height:min(80vh,880px)}
  .top-grid>.panel>.pane{grid-template-rows:none;align-items:start;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
  .top-grid>.panel>.pane>.pane-main,.top-grid>.panel>.pane>.pane-skills{overflow:visible;padding-right:0}
}

/* Not-affiliated-with-Jagex notice at the bottom of every page */
.disclaimer{max-width:1240px;margin:28px auto 0;padding-top:12px;border-top:1px solid #3a3127}
.disclaimer p{margin:0;font-size:12px;line-height:1.5;color:var(--muted);text-align:center}

/* Admin: users and invitations */
.users .invite-link{margin-top:6px;width:100%;background:var(--inset);border:1px solid var(--edge);border-radius:3px;padding:5px 8px;color:var(--muted);font-size:12px;min-width:0}
.tag-pending{color:var(--yellow)}

/* ---------------------------------------------------------------------------
   Header: menu button, title, profile button, and the two slide-out drawers
   ------------------------------------------------------------------------- */
.topbar{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:14px}
.topbar .brand{min-width:0}
.topbar-end{display:flex;align-items:center;gap:10px}
.supportbtn{display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 14px;border-radius:99px;background:#ffdd00;color:#111;font-weight:700;font-size:15px;text-decoration:none;white-space:nowrap;border:1px solid var(--edge);box-shadow:inset 0 -2px 0 rgba(0,0,0,.25)}
.supportbtn:hover{box-shadow:0 0 0 3px rgba(255,221,0,.3),inset 0 -2px 0 rgba(0,0,0,.25)}
.supportbtn svg{width:20px;height:20px;flex:none}
@media (max-width:640px){.supportbtn{width:40px;padding:0;justify-content:center}.supportbtn-text{display:none}}
.form select{background:var(--inset);border:1px solid var(--edge);border-radius:3px;padding:8px 10px;color:var(--text);font-size:15px}
.form input[type=url]{background:var(--inset);border:1px solid var(--edge);box-shadow:inset 0 1px 0 #000;border-radius:3px;padding:8px 10px;color:var(--text);font-size:15px;min-width:0}
.iconbtn{width:46px;height:46px;display:grid;place-items:center;flex:none;background:var(--inset);border:1px solid var(--edge);box-shadow:inset 0 0 0 1px var(--rim);border-radius:6px;color:var(--text);padding:0}
.iconbtn svg{width:24px;height:24px}
.iconbtn:hover{color:var(--gold);border-color:var(--gold)}
.iconbtn[aria-expanded="true"]{color:var(--gold);border-color:var(--gold)}
.iconbtn.avatar{border-radius:50%;font-family:var(--f-display);font-size:22px;color:#111;background:var(--gold);box-shadow:inset 0 -2px 0 rgba(0,0,0,.35)}
.iconbtn.avatar:hover,.iconbtn.avatar[aria-expanded="true"]{color:#111;box-shadow:0 0 0 3px rgba(255,152,31,.35),inset 0 -2px 0 rgba(0,0,0,.35)}

.drawer{position:fixed;top:0;bottom:0;z-index:40;width:min(340px,86vw);background:var(--panel);border:0 solid var(--edge);
  box-shadow:0 0 0 2px var(--edge),0 0 40px rgba(0,0,0,.6);transition:transform .22s ease,visibility 0s linear .22s;visibility:hidden}
.drawer.left{left:0;transform:translateX(-100%);border-right-width:2px}
.drawer.right{right:0;transform:translateX(100%);border-left-width:2px}
.drawer.open{transform:none;visibility:visible;transition:transform .22s ease,visibility 0s}
.drawer-inner{height:100%;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:14px;
  padding:max(16px,env(safe-area-inset-top,0px)) 16px max(16px,env(safe-area-inset-bottom,0px))}
.drawer.left .drawer-inner{padding-left:max(16px,env(safe-area-inset-left,0px))}
.drawer.right .drawer-inner{padding-right:max(16px,env(safe-area-inset-right,0px))}
.drawer-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:12px;border-bottom:1px solid var(--edge)}
.drawer-title{font-family:var(--f-display);font-size:20px;color:var(--gold)}
.drawer-who{display:flex;flex-direction:column;min-width:0}
.drawer-who b{font-family:var(--f-display);font-weight:400;font-size:19px;color:var(--gold);overflow-wrap:anywhere}
.drawer-who small{color:var(--muted);font-size:12px;overflow-wrap:anywhere}
.drawer-x{flex:none;width:38px;height:38px;border-radius:6px;background:var(--inset);border:1px solid var(--edge);color:var(--text);font-size:24px;line-height:1}
.drawer-x:hover{color:var(--gold);border-color:var(--gold)}
.drawer-nav{display:flex;flex-direction:column;gap:4px}
.drawer-note{margin:6px 2px 0;font-size:12px;line-height:1.4;color:var(--muted)}.drawer-note b{color:var(--text)}
.drawer-label{margin:10px 0 2px;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.dlink{display:flex;align-items:center;gap:8px;width:100%;text-align:left;padding:10px 12px;border-radius:5px;background:var(--inset);border:1px solid var(--edge);
  color:var(--text);text-decoration:none;font-family:var(--f-display);font-size:16px}
.dlink:hover{border-color:var(--gold);color:var(--gold)}
.dlink[aria-current="page"]{background:var(--gold);color:#111;border-color:var(--gold)}
.dlink.soon{opacity:.6;cursor:default}.dlink.soon:hover{border-color:var(--edge);color:var(--text)}
.dlink .ptag{margin-left:auto;font-family:var(--f-num);font-size:12px;line-height:1.4;border:1px solid currentColor;border-radius:99px;padding:0 7px}
.soon-tag{margin-left:auto;font-family:var(--f-body);font-size:11px;color:var(--muted);border:1px solid var(--edge);border-radius:99px;padding:1px 8px;white-space:nowrap}
.dform{margin:0}
.drawer-form{padding:12px;background:var(--inset);border:1px solid var(--edge);border-radius:6px}
.drawer-form input{width:100%}
.drawer-sync{display:flex;flex-direction:column;gap:6px;margin-top:4px;padding-top:10px;border-top:1px solid var(--edge)}
.drawer-sync .btn{width:100%}
.drawer-sync .hint{font-size:12px;color:var(--muted)}
/* the arrow tab on each drawer's inner edge: always visible while open, tap to push it back */
.drawer-handle{position:absolute;width:30px;height:64px;display:grid;place-items:center;padding:0;background:var(--gold);color:#111;border:0;box-shadow:0 2px 8px rgba(0,0,0,.5)}
.drawer-handle svg{width:12px;height:24px}
/* both tabs sit at the same height, so with both menus open they meet edge to edge */
.drawer-handle{top:calc(50% - 32px)}
.drawer.left .drawer-handle{left:100%;border-radius:0 8px 8px 0}
.drawer.right .drawer-handle{right:100%;border-radius:8px 0 0 8px}
.drawer-handle:hover{filter:none;background:#ffb04f}
.drawer-scrim{position:fixed;inset:0;z-index:35;background:rgba(10,8,6,.62)}
html.drawer-open{overflow:hidden}
@media (max-width:700px){
  .drawer{width:50vw}
  .drawer-inner{padding-left:12px;padding-right:12px}
  .dlink{font-size:14px;padding:9px 10px;flex-wrap:wrap}
  .soon-tag{margin-left:0}
  .iconbtn{width:42px;height:42px}
  .topbar{gap:10px}
}
@media (prefers-reduced-motion: reduce){.drawer,.drawer.open{transition:none}}

/* The left menu's two levels (navstack_controller.js): the sections, and one
   section's pages, which slide in from the right. The panels share one grid
   cell; the hidden one keeps its height until it has slid out, then folds to
   nothing so the menu only scrolls as far as the panel you can see. */
.navstack{display:grid;overflow:clip;overflow-clip-margin:4px}
.navpanel{grid-area:1/1;min-width:0;display:flex;flex-direction:column;gap:4px;
  transition:transform .22s ease,visibility 0s,height 0s}
.navpanel:not(.on){visibility:hidden;height:0;transition:transform .22s ease,visibility 0s linear .22s,height 0s linear .22s}
.navpanel:not(.on)[data-panel="root"]{transform:translateX(-100%)}
.navpanel.sub:not(.on){transform:translateX(100%)}
@media (prefers-reduced-motion: reduce){.navpanel,.navpanel:not(.on){transition:none}}
/* a section: its name, how many pages, the names inside, and an arrow */
.drawer-nav .dsec{position:relative;padding-right:32px}
.dsec::after{content:"";position:absolute;right:12px;top:50%;width:8px;height:8px;margin-top:-5px;
  border:solid var(--gold);border-width:2.4px 2.4px 0 0;transform:rotate(45deg)}
.dsec .dl-what{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.dsec-count{font-family:var(--f-num);font-size:12px;line-height:1.4;color:var(--muted);border:1px solid var(--rim);border-radius:99px;padding:0 7px}
/* the section holding the page you're on: a gold marker, not the full fill (that's for the page itself) */
.dsec.here{border-color:var(--gold);box-shadow:inset 4px 0 0 var(--gold)}
.dsec.here .dl-name{color:var(--gold)}
/* a section's own header: Back, and its name */
.navpanel-head{display:flex;align-items:center;gap:10px;margin:0 0 6px;padding-bottom:8px;border-bottom:1px solid var(--edge)}
.navback{flex:none;display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 12px 0 9px;border-radius:5px;
  background:var(--inset);border:1px solid var(--edge);color:var(--text);font-family:var(--f-display);font-size:15px}
.navback svg{width:9px;height:18px;color:var(--gold)}
.navback:hover{border-color:var(--gold);color:var(--gold)}
.navpanel-title{min-width:0;font-family:var(--f-display);font-size:18px;color:var(--gold);text-shadow:1px 1px 0 #000;overflow-wrap:anywhere}

/* No scrollbars in the menus; they still scroll with the wheel, touch or keyboard. */
.drawer-inner{scrollbar-width:none;-ms-overflow-style:none}
.drawer-inner::-webkit-scrollbar{display:none}

/* The page you're on, in either menu: filled gold with a dark marker on its left edge. */
.dlink[aria-current="page"]{box-shadow:inset 4px 0 0 #2a1a05;font-weight:700}

/* Wide screens: both menus sit docked beside the page, open unless you hid them
   (html.nav-left-hidden / nav-right-hidden, see drawers_controller.js). Keep the
   width in step with DOCK_QUERY there. */
@media (min-width:1200px){
  :root{--navw:272px}
  .drawer,.drawer.left,.drawer.right{width:var(--navw);box-shadow:none;transform:none;visibility:visible;transition:transform .22s ease,visibility 0s}
  html.nav-left-hidden .drawer.left{transform:translateX(-100%);visibility:hidden;transition:transform .22s ease,visibility 0s linear .22s}
  html.nav-right-hidden .drawer.right{transform:translateX(100%);visibility:hidden;transition:transform .22s ease,visibility 0s linear .22s}
  .drawer-inner{padding-inline:14px}
  .drawer-handle,.drawer-scrim{display:none!important}
  html.drawer-open{overflow:visible}
  body{transition:padding .22s ease}
  html:not(.nav-left-hidden) body{padding-left:calc(var(--navw) + 24px)}
  html:not(.nav-right-hidden) body{padding-right:calc(var(--navw) + 24px)}
  .dlink{padding:9px 11px}
}
@media (min-width:1200px) and (prefers-reduced-motion: reduce){.drawer,body{transition:none!important}}

/* Phones: the tab content and the skills panel stack in one scrolling column
   (they used to share rows that could shrink below their content and overlap). */
@container page (max-width:868px){
  .top-grid>.panel>.pane{display:flex;flex-direction:column;gap:18px}
  .top-grid>.panel>.pane>.pane-main,.top-grid>.panel>.pane>.pane-skills{flex:none;min-height:auto}
  /* full width, not shrink-to-fit: the quest list sizes itself from this width (container qlist) */
  .top-grid>.panel>.pane>.pane-main{align-self:stretch}
}

/* Admin: Activity */
.periods{--c:var(--gold);display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:12px}
.stat{background:var(--panel);border:2px solid var(--edge);box-shadow:inset 0 0 0 2px var(--rim);border-radius:4px;padding:12px 14px;display:flex;flex-direction:column}
.stat b{font-family:var(--f-num);font-size:28px;font-variant-numeric:tabular-nums;color:var(--gold)}
.stat span{font-size:13px;color:var(--muted)}
.stat.alert{box-shadow:inset 0 0 0 2px var(--red)}.stat.alert b{color:var(--red)}
.tablewrap{overflow-x:auto}
.atable{border-collapse:collapse;width:100%;font-size:14px}
.atable th,.atable td{text-align:left;padding:7px 10px;border-bottom:1px solid #3a3127;vertical-align:top}
.atable th{font-size:12px;color:var(--muted);font-weight:600;text-transform:uppercase;letter-spacing:.04em}
.atable .num{text-align:right;font-variant-numeric:tabular-nums}
.atable .mono{font-family:ui-monospace,Menlo,monospace;font-size:13px;color:var(--text)}
.atable .path{overflow-wrap:anywhere;min-width:180px}
.atable .bad{color:var(--red)}
.atable .nowrap{white-space:nowrap}
.atable .ua{white-space:nowrap;color:var(--muted)}
.atable tr.sel td{background:rgba(255,152,31,.08)}
/* The header buttons stay above the dimmed background, so the other menu can
   still be opened while one is open (drawers sit above them where they overlap). */
.topbar .iconbtn{position:relative;z-index:38}
.topbar .brandmark{margin:0 0 2px;font-family:var(--f-display);font-size:14px;letter-spacing:.06em;color:var(--gold);text-shadow:1px 1px 0 #000}
.topbar .brand h1 span{color:var(--pc)}
html.drawers-both .drawer.left .drawer-handle{left:auto;right:0;border-radius:8px 0 0 8px}
html.drawers-both .drawer.right .drawer-handle{right:auto;left:0;border-radius:0 8px 8px 0}
html.drawers-both .drawer.left .drawer-inner{padding-right:38px}
html.drawers-both .drawer.right .drawer-inner{padding-left:38px}

/* "Done" heading row (admin Development page) */
.todo-donehead{display:flex;align-items:baseline;justify-content:space-between;margin:16px 0 6px}
.todo-donehead h3{margin:0;font-family:var(--f-display);font-weight:500;font-size:16px;color:var(--gold)}

/* Gear: real item pictures at their own size; rune pouch; drag and drop */
.slot .ico.wiki,.islot .ico.wiki,.pslot .ico.wiki{width:36px;height:32px;margin:0}
.pouchbox{margin-top:12px}
.pouchbox h3{display:flex;align-items:center;justify-content:space-between;gap:10px}
.pouch-divine{display:inline-flex;align-items:center;gap:5px;font-family:var(--f-body);font-size:12px;color:var(--muted);text-transform:none}
.pouch{display:flex;gap:6px;padding:8px 10px;background:var(--panel-2);border:2px solid var(--edge);box-shadow:inset 0 0 0 2px var(--rim);border-radius:4px;width:max-content}
.pslot{position:relative;width:46px;height:42px;border:1px solid var(--edge);border-radius:3px;background:rgba(0,0,0,.18);display:grid;place-items:center;padding:0}
.pslot:hover{background:rgba(255,255,255,.06)}
.pslot[aria-pressed="true"]{border-color:#fff;box-shadow:0 0 0 1px #000}
.pouchbox .note{margin:6px 0 0}
.slot[data-drag],.islot[data-drag],.pslot[data-drag],.items [draggable="true"]{cursor:grab}
/* Dragging between slots (pointer events): a filled slot doesn't scroll the page under a finger, so it can be picked up like in the game. */
.slot[data-drag],.islot[data-drag],.pslot[data-drag]{touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.slot img,.islot img,.pslot img{-webkit-user-drag:none}
.lifted>img{opacity:.35}
body.gear-dragging,body.gear-dragging *{cursor:grabbing!important}
.gear-ghost{position:fixed;left:0;top:0;z-index:1000;pointer-events:none;width:36px;height:32px;display:grid;place-items:center}
.gear-ghost img{width:36px;height:32px;object-fit:contain}
.drop-ok{outline:2px dashed var(--green);outline-offset:-2px}
.drop-no{outline:2px dashed var(--red);outline-offset:-2px}

/* Alch checker */
.alch-bar{display:flex;align-items:center;gap:10px 16px;flex-wrap:wrap;margin-bottom:12px}
.seg{display:inline-flex;border:1px solid var(--edge);border-radius:4px;overflow:hidden}
.segbtn{background:var(--inset);border:0;padding:7px 14px;color:var(--muted);font-family:var(--f-display);font-size:15px}
.segbtn+.segbtn{border-left:1px solid var(--edge)}
.segbtn[aria-checked="true"]{background:var(--gold);color:#111}
.alch-nature{display:inline-flex;align-items:center;gap:6px;font-size:14px;color:var(--text)}
.alch-nature b{font-family:var(--f-num);color:var(--gold)}
.alch-nature .ico{width:24px;height:22px}
.alch-bar .sub{font-size:13px}
.alch-bar .btn{margin-left:auto}
.alch-opts{display:flex;flex-wrap:wrap;gap:8px 18px;align-items:center;margin-bottom:12px;font-size:13px;color:var(--muted)}
.alch-opts label{display:inline-flex;align-items:center;gap:6px}
.alch-opts input[type=search],.alch-opts input[type=number],.alch-opts select{background:var(--inset);border:1px solid var(--edge);border-radius:3px;padding:5px 8px;color:var(--text);font:inherit;font-size:13px}
.alch-opts input[type=search]{width:160px}.alch-opts input.num{width:90px}
.alch-opts input[type=checkbox]{accent-color:var(--gold)}
.alch-status:empty{display:none}.alch-status{margin-bottom:10px;padding:8px 12px;background:var(--inset);border:1px solid var(--edge);border-left:3px solid var(--gold);border-radius:3px;font-size:14px;color:var(--muted)}
.alch-table th[data-sort]{cursor:pointer;user-select:none;white-space:nowrap}
.alch-table th[data-sort]:hover{color:var(--text)}
.alch-table th[aria-sort="ascending"]::after{content:" ▲";color:var(--gold)}
.alch-table th[aria-sort="descending"]::after{content:" ▼";color:var(--gold)}
.alch-table td{vertical-align:middle;font-variant-numeric:tabular-nums}
.alch-table .num{font-family:var(--f-num);white-space:nowrap}
.aitem{display:inline-flex;align-items:center;gap:8px;color:var(--text);text-decoration:none}
.aitem:hover span{text-decoration:underline}
.aitem .ico{width:30px;height:27px;flex:none}
.alch-table tr.gain .profit{color:var(--green);font-weight:700}
.alch-table tr.loss .profit{color:var(--red)}
.atag{display:inline-block;margin-left:6px;padding:0 5px;border:1px solid var(--edge);border-radius:3px;font-size:11px;color:var(--yellow);font-family:var(--f-body);vertical-align:1px}
.atag.f2p{color:var(--sk)}
.alch-table td.empty{padding:16px;color:var(--muted)}
@container page (max-width:608px){
  .alch-table th:nth-child(2),.alch-table td:nth-child(2),.alch-table th:nth-child(5),.alch-table td:nth-child(5),
  .alch-table th:nth-child(6),.alch-table td:nth-child(6),.alch-table th:nth-child(7),.alch-table td:nth-child(7),.alch-table th:nth-child(9),.alch-table td:nth-child(9){display:none}
  .alch-table th,.alch-table td{padding:6px 5px}.alch-table th[data-sort]{white-space:normal;font-size:11px}.aitem{gap:5px}.aitem .ico{width:24px;height:22px}.alch-table td.empty{white-space:normal}
}
.items .isep{padding:6px 10px 4px;font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);border-bottom:1px solid rgba(0,0,0,.3);background:rgba(0,0,0,.12)}

/* Money making → Producing */
.money-head{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;flex-wrap:wrap;margin:6px 0 12px}
.money-head h2{margin:0 0 2px}
.money-head .sub{margin:0;font-size:14px}
.money-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.recipes{display:flex;flex-direction:column;gap:14px}
.recipe{background:var(--inset);border:1px solid var(--edge);border-radius:4px;padding:12px 14px;box-shadow:inset 0 2px 0 #000}
.recipe.empty p{margin:0;color:var(--muted)}
.rhead{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:10px}
.rname{flex:1 1 220px;min-width:0;background:transparent;border:1px solid transparent;border-radius:3px;padding:4px 6px;color:var(--gold);font-family:var(--f-display);font-size:18px}
.rname:hover{border-color:var(--edge)}.rname:focus{border-color:var(--gold);background:#1d1812;outline:none}
.rprofit{font-family:var(--f-num);font-weight:700;font-size:16px}
.gain,.rsum .gain b{color:var(--green)}.loss,.rsum .loss b{color:var(--red)}
.rcols{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,380px),1fr));gap:12px 20px}
.rside h4{margin:0 0 4px;font-family:var(--f-display);font-weight:500;font-size:15px;color:var(--muted)}
.rtable{width:100%;border-collapse:collapse;font-size:14px}
.rtable th{font-size:11px;color:var(--muted);font-weight:600;text-transform:uppercase;letter-spacing:.04em;text-align:left;padding:2px 4px}
.rtable td{padding:3px 4px;vertical-align:middle}
.rtable .num{text-align:right;font-family:var(--f-num);white-space:nowrap}
.rtable td.rimgcell{width:34px}.rtable .ico{width:30px;height:27px}.rimg{display:block;width:30px;height:27px}
.rin{width:100%;min-width:0;background:#1d1812;border:1px solid var(--edge);border-radius:3px;padding:4px 6px;color:var(--text);font:inherit;font-size:14px}
.rin:focus{border-color:var(--gold);outline:none}
.rin.num{text-align:right;font-family:var(--f-num)}
.rtable td:nth-child(3){width:70px}.rtable td:nth-child(4){width:100px}.rtable td:nth-child(5){width:90px}.rtable td:nth-child(6){width:28px}
.rfoot{display:flex;flex-wrap:wrap;gap:8px 18px;align-items:center;margin-top:10px;padding-top:10px;border-top:1px solid rgba(0,0,0,.35);font-size:13px;color:var(--muted)}
.rfoot label{display:inline-flex;align-items:center;gap:6px}.rfoot .rin{width:100px}
.rsum{display:flex;flex-wrap:wrap;gap:4px 16px;margin-left:auto;align-items:baseline}
.rsum b{font-family:var(--f-num);color:var(--text);font-size:15px}.rsum small{color:var(--muted)}
.rsum .warn{color:var(--yellow)}
@container page (max-width:608px){.rsum{margin-left:0}.rtable td:nth-child(4){width:80px}.rtable td:nth-child(5){width:70px}.rtable th:nth-child(5),.rtable td:nth-child(5){display:none}}

/* Skill icons from the wiki: keep their shape; the detail drawings scale smoothly, the small in-game ones stay crisp */
.ico.skill{object-fit:contain}.ico.skill.hires{image-rendering:auto}
.money-ac{position:fixed;right:auto;z-index:50}
.money-ac .acn{display:inline-flex;align-items:center;gap:8px;min-width:0}
.money-ac .ico{width:26px;height:24px;flex:none}

/* What's new */
.newdot{margin-left:auto;width:10px;height:10px;border-radius:50%;background:var(--gold);box-shadow:0 0 0 2px rgba(255,152,31,.3);flex:none}
.dlink[aria-current="page"] .newdot{background:#111;box-shadow:none}
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.releases{display:flex;flex-direction:column;gap:18px;max-width:820px}
.release-head{display:flex;align-items:baseline;gap:6px 14px;flex-wrap:wrap;margin-bottom:6px}
.release-head h2{margin:0;flex:1 1 280px}
.release-date{color:var(--muted);font-size:14px;white-space:nowrap}
.tag-latest{font-size:11px;color:#111;background:var(--gold);border-radius:3px;padding:1px 7px;white-space:nowrap}
.tag-latest.unseen{background:var(--green)}
.release-intro{margin:0 0 10px;color:var(--text);font-size:15px}
.release-changes{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.release-changes li{display:grid;grid-template-columns:62px minmax(0,1fr);gap:10px;align-items:baseline;font-size:15px;line-height:1.45}
.ckind{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;text-align:center;border-radius:3px;padding:2px 0}
.ckind.new{background:rgba(13,193,13,.16);color:var(--green)}
.ckind.better{background:rgba(255,152,31,.16);color:var(--gold)}
.ckind.fixed{background:rgba(159,208,255,.14);color:var(--sk)}

/* Mage Training Arena calculator */
.mta{--pt-t:#c08cff;--pt-g:#7fd17f;--pt-e:#6cb6ff;--pt-a:#ffd24a}
.mta h3{margin:14px 0 6px;font-family:var(--f-display);font-weight:500;font-size:16px;color:var(--gold)}
.mta h3 small{font-family:var(--f-body);font-size:13px;color:var(--muted);font-weight:400;margin-left:6px}
.mta-grid{display:grid;grid-template-columns:280px minmax(0,1fr);gap:18px;align-items:start}
@container page (max-width:868px){.mta-grid{grid-template-columns:minmax(0,1fr)}}
.mta-settings{display:flex;flex-direction:column;gap:8px;font-size:13px;color:var(--muted);background:var(--inset);border:1px solid var(--edge);border-radius:4px;padding:4px 12px 12px}
.mta-settings>label{display:flex;flex-direction:column;gap:4px}
.mta-settings label.check{flex-direction:row;align-items:flex-start;gap:6px}
.mta-settings select,.mta-have input{background:#1d1812;border:1px solid var(--edge);border-radius:3px;padding:5px 8px;color:var(--text);font:inherit;font-size:13px}
.mta-settings input[type=checkbox]{accent-color:var(--gold);margin-top:2px}
.mta-have{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.mta-have label{display:flex;flex-direction:column;gap:3px;font-size:12px}
.mta-have input{width:100%;text-align:right;font-family:var(--f-num)}
.pt.t{color:var(--pt-t)}.pt.g{color:var(--pt-g)}.pt.e{color:var(--pt-e)}.pt.a{color:var(--pt-a)}
.pt.dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:7px;background:currentColor;vertical-align:1px}
.mta-rewards td{vertical-align:middle}
.mta-rewards td.num,.mta-rewards th.num{font-family:var(--f-num);white-space:nowrap}
.mta-rewards input[type=checkbox]{accent-color:var(--gold);width:16px;height:16px}
.mta-name{display:inline-flex;align-items:center;gap:8px;background:none;border:0;padding:0;color:var(--text);font:inherit;text-align:left;cursor:pointer}
.mta-name .ico{width:30px;height:27px;flex:none}
.mta-name small{color:var(--muted);font-size:11px}
.mta-name .mta-note{display:block;font-size:11px}
.mta-row:hover>td{background:rgba(255,255,255,.03)}
.mta-row.open>td{background:rgba(255,152,31,.06)}
.mta-detail>td{background:rgba(0,0,0,.18);padding:6px 10px 12px}
.mta-break{width:100%;border-collapse:collapse;font-size:13px}
.mta-break th{font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.04em;text-align:left;padding:5px 6px;font-weight:600}
.mta-break td{padding:5px 6px;border-top:1px solid rgba(0,0,0,.3)}
.mta-break .num{text-align:right;font-family:var(--f-num);white-space:nowrap}
.mta-break tfoot th{border-top:2px solid #4a3f31;color:var(--text);font-size:13px;text-transform:none;letter-spacing:0}
.mta-break tr.done td{color:var(--muted)}
.mta-rune{display:inline-flex;align-items:center;gap:3px;margin-right:12px;font-family:var(--f-num);white-space:nowrap}
.mta-rune .ico{width:22px;height:20px}
.mta-plan{margin-top:16px;background:var(--inset);border:1px solid var(--edge);border-radius:4px;padding:4px 14px 12px}
.mta-empty{margin-top:16px;padding:12px 14px;background:var(--inset);border:1px dashed var(--edge);border-radius:4px;color:var(--muted);font-size:14px}
.mta-sum{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:8px;margin:6px 0 10px}
.mta-sum div{background:var(--panel);border:1px solid var(--edge);border-radius:3px;padding:6px 10px;display:flex;flex-direction:column}
.mta-sum span{font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.05em}
.mta-sum b{font-family:var(--f-num);font-size:18px;color:var(--text)}
.mta .warn{color:var(--yellow);font-size:13px}
.mta-plan:has(.mta-empty){background:none;border:0;padding:0}.mta-plan .mta-empty{margin-top:0}
@container page (max-width:608px){
  .mta-rewards>thead>tr>th:nth-child(n+3):nth-child(-n+6),.mta-rewards tr.mta-row>td:nth-child(n+3):nth-child(-n+6),
  .mta-rewards>thead>tr>th:nth-child(8),.mta-rewards tr.mta-row>td:nth-child(8),.mta-rewards>thead>tr>th:nth-child(10),.mta-rewards tr.mta-row>td:nth-child(10){display:none}
  .mta-rewards>thead>tr>th,.mta-rewards>tbody>tr>td{padding:6px 4px}.mta-detail>td{padding:6px 2px 10px}
  /* each room's breakdown becomes a small labelled block */
  .mta-break thead{display:none}
  .mta-break,.mta-break tbody,.mta-break tfoot{display:block}
  .mta-break tr{display:flex;flex-wrap:wrap;align-items:baseline;gap:3px 12px;padding:7px 0;border-top:1px solid rgba(0,0,0,.3)}
  .mta-break tfoot tr{border-top:2px solid #4a3f31}
  .mta-break td,.mta-break th{display:block;border:0;padding:0;text-align:left}
  .mta-break td:first-child,.mta-break th:first-child{flex:1 1 100%;font-weight:600;color:var(--text)}
  .mta-break th:empty{display:none}
  .mta-break [data-label]::before{content:attr(data-label);display:block;font-family:var(--f-body);font-size:10px;letter-spacing:.05em;text-transform:uppercase;color:var(--muted);font-weight:400}
  .mta-rune{margin-right:8px}
}
.mta-pts{display:none;margin:0 0 6px;font-size:13px;font-family:var(--f-num)}@container page (max-width:608px){.mta-pts{display:block}}
@container page (max-width:608px){.mta-rewards>thead>tr>th:first-child,.mta-rewards>tbody>tr>td:first-child{padding:6px 2px}.mta-rewards{font-size:13px}.mta-name{gap:5px}.mta-name .ico{width:24px;height:22px}}
@container page (max-width:608px){.mta-break tfoot th{border:0}}

/* Giants' Foundry calculator (shares the MTA layout) */
.gf-bars{display:grid;grid-template-columns:90px minmax(0,1fr);gap:6px;align-items:end}
.gf-bars label{display:flex;flex-direction:column;gap:3px;font-size:12px}
.gf-bars input,.foundry .mta-settings input[type=number]{background:#1d1812;border:1px solid var(--edge);border-radius:3px;padding:5px 8px;color:var(--text);font:inherit;font-size:13px;text-align:right;font-family:var(--f-num)}
.gf-bars select{background:#1d1812;border:1px solid var(--edge);border-radius:3px;padding:5px 8px;color:var(--text);font:inherit;font-size:13px}
.gf-hint{margin:0;font-size:12px}.gf-hint.warn{color:var(--yellow)}
.gf-sum small{font-size:11px;color:var(--muted);display:inline-flex;align-items:center;gap:3px;margin-top:2px}
.gf-sum small .ico{width:18px;height:16px}
.gf-hour{margin:0 0 6px;font-size:14px}.gf-hour b{font-family:var(--f-num);color:var(--text)}
.gf-goal{display:flex;gap:12px;align-items:center;font-size:13px;color:var(--muted);margin-bottom:8px}
.gf-goal label{display:inline-flex;align-items:center;gap:8px}
.gf-goal input{width:70px;background:#1d1812;border:1px solid var(--edge);border-radius:3px;padding:5px 8px;color:var(--text);font-family:var(--f-num);text-align:right}
.gf-rewards{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:6px;margin-bottom:10px}
.gf-reward{display:flex;align-items:center;gap:8px;padding:5px 8px;background:var(--inset);border:1px solid var(--edge);border-radius:3px;font-size:14px;cursor:pointer}
.gf-reward input{accent-color:var(--gold)}
.gf-reward .ico{width:28px;height:25px;flex:none}
.gf-reward span{flex:1;min-width:0}.gf-reward small{color:var(--muted);font-size:11px}
.gf-reward b{font-family:var(--f-num);color:var(--gold);font-weight:600}
.gf-plan td small{font-size:12px}
.gf-barcount{white-space:nowrap;font-family:var(--f-num)}.gf-barcount .ico,.gf-compare .ico{width:20px;height:18px;vertical-align:middle;margin:0 2px 0 4px}
.gf-compare tbody tr{cursor:pointer}.gf-compare tbody tr:hover td{background:rgba(255,255,255,.03)}
.gf-compare tbody tr.on td{background:rgba(255,152,31,.08)}
.gf-compare td,.gf-plan td{white-space:nowrap}
.gf-compare .num,.gf-plan .num{font-family:var(--f-num)}
@container page (max-width:608px){
  .gf-compare th:nth-child(2),.gf-compare td:nth-child(2),.gf-compare th:nth-child(3),.gf-compare td:nth-child(3),.gf-compare th:nth-child(6),.gf-compare td:nth-child(6),.gf-compare th:nth-child(8),.gf-compare td:nth-child(8){display:none}
  .gf-plan thead{display:none}.gf-plan,.gf-plan tbody{display:block}
  .gf-plan tr{display:flex;flex-wrap:wrap;gap:3px 12px;padding:8px 0;border-top:1px solid rgba(0,0,0,.3)}
  .gf-plan td{display:block;border:0;padding:0;white-space:normal}.gf-plan td:first-child{flex:1 1 100%;font-weight:600}
}
.gf-barcount .ico,.gf-compare .ico,.gf-sum small .ico{display:inline-block}

/* Training plan, under a skill's requirements */
.trainplan{margin-top:12px;padding-top:10px;border-top:1px solid #4a3f31;display:flex;flex-direction:column;gap:6px}
.tp-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.tp-head h4{margin:0;font-family:var(--f-display);font-weight:500;font-size:15px;color:var(--gold);margin-right:auto}
.tp-head label{display:inline-flex;align-items:center;gap:5px;font-size:12px;color:var(--muted)}
.tp-target{width:56px;background:#1d1812;border:1px solid var(--edge);border-radius:3px;padding:3px 6px;color:var(--text);font-family:var(--f-num);text-align:right}
.seg.sm .segbtn{padding:3px 8px;font-size:12px}
.tp-path{background:#1d1812;border:1px solid var(--edge);border-radius:3px;padding:4px 6px;color:var(--text);font:inherit;font-size:13px}
.tp-name{margin:0;font-size:13px;color:var(--text)}
.tp-note{margin:0;font-size:12px}
.trainplan .warn{color:var(--yellow);margin:0}
.tp-steps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.tp-steps li{display:flex;flex-direction:column;align-items:stretch;background:rgba(0,0,0,.18);border-radius:3px;padding:5px 7px}
.tp-steps li>:not(.tp-step){margin-left:48px}
.tp-step{display:grid;grid-template-columns:42px minmax(0,1fr) auto;column-gap:6px;row-gap:1px;align-items:baseline;font-size:13px}
.tp-step b{grid-column:2/4}
.tp-step>.sub{grid-column:2}
.tp-step>.tp-time{grid-column:3}
.tp-step b{font-weight:600;color:var(--text)}
.tp-lv{font-family:var(--f-num);font-size:12px;color:var(--gold);min-width:42px}
.tp-items{display:flex;flex-wrap:wrap;align-items:center;gap:2px 10px;margin-top:3px}
.tp-item{display:inline-flex;align-items:center;gap:3px;font-family:var(--f-num);font-size:13px;white-space:nowrap}
.tp-item .ico{width:24px;height:22px;display:inline-block}
.tp-cost{margin-left:auto;font-family:var(--f-num);font-size:12px;color:var(--muted)}
.tp-cost:not(:empty)::after{content:" gp"}
.tp-total{background:var(--panel);border:1px solid var(--edge);border-radius:3px;padding:6px 8px;display:flex;flex-direction:column;gap:4px}
.tp-row{display:flex;flex-wrap:wrap;align-items:center;gap:2px 10px;font-size:13px}
.tp-row>span:first-child{min-width:34px;font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);margin-right:2px}
.tp-hours{font-family:var(--f-num);font-size:15px;color:var(--gold)}
.tp-time{font-family:var(--f-num);font-size:12px;color:var(--gold);white-space:nowrap;text-align:right}
.tp-thv{margin-top:2px;font-size:12px;color:var(--muted)}
.tp-snote{margin:2px 0 0;font-size:11.5px}
.tp-arrow{color:var(--muted);font-size:12px}
.tp-link{align-self:flex-start;display:inline-block;margin-top:4px;font-size:12px;color:var(--gold);text-decoration:underline;text-underline-offset:2px}
.tp-link:hover{color:var(--text)}
.tp-opts{display:flex;flex-direction:column;gap:3px;font-size:12.5px;color:var(--text)}
.tp-opts label{display:flex;align-items:baseline;gap:6px;cursor:pointer}
.tp-opts small{color:var(--muted);font-size:11px}
.tp-est{margin:0;font-size:11px}
.tp-map{font-size:12.5px}
.tp-map summary{cursor:pointer;color:var(--gold)}
.tp-map img{display:block;width:100%;height:auto;margin:6px 0 4px;border:1px solid var(--edge);border-radius:3px}
.tp-map p{margin:0;font-size:11.5px}
.tp-sum{display:flex;flex-wrap:wrap;gap:2px 14px;font-size:12px;color:var(--muted)}
.tp-sum b{font-family:var(--f-num);font-size:14px;color:var(--text)}
.tp-sum small{font-size:11px}

/* coming-soon calculators: name, tag, and what it will do */
.dlink.soon:has(.soon-what){flex-direction:column;align-items:stretch;gap:3px}
.soon-name{display:flex;align-items:center;gap:8px}
.soon-what{font-family:var(--f-body);font-size:12px;line-height:1.35;color:var(--muted)}

/* Alch checker: key items (under 1k gp, 100%+ return) */
.alch-table tr.key td{background:rgba(255,210,74,.09)}
.alch-table tr.key td:first-child{box-shadow:inset 3px 0 0 var(--gold)}
.atag.keytag{color:#111;background:var(--gold);border-color:var(--gold);font-weight:700}
.keycheck .atag{margin:0 2px}
/* runes shown on a rune pouch in the inventory */
.pouchmini{position:absolute;right:1px;bottom:1px;display:grid;grid-template-columns:repeat(2,13px);gap:0 1px;pointer-events:none}
.pouchmini span{position:relative;width:13px;height:12px}
.pouchmini .ico,.islot .pouchmini .ico.wiki{width:13px;height:12px;margin:0;display:block}
.pouchmini i{position:absolute;left:0;top:-3px;font-style:normal;font-family:var(--f-display);font-size:7px;color:#ffff00;text-shadow:1px 1px 0 #000;line-height:1}
.pouchlist{margin-top:2px;font-size:13px;color:var(--muted)}
.alch-table tr.gain,.alch-table tr.loss{color:inherit}

/* left menu: every page has a name and a line on what it does */
.drawer-nav .dlink:has(.dl-what){flex-direction:column;align-items:stretch;gap:3px}
.dl-name{display:flex;align-items:center;gap:8px}
.dl-what{font-family:var(--f-body);font-size:12px;line-height:1.35;color:var(--muted)}
.dlink[aria-current="page"] .dl-what{color:#3d2a0e}
.dlink:hover .dl-what{color:var(--muted)}

/* Kingdom of Miscellania and Barrows chests simulators (share the MTA/Foundry layout) */
.km-jobs{display:flex;flex-direction:column;gap:6px}
.km-job{display:grid;grid-template-columns:24px 66px minmax(0,1fr) 56px;gap:6px;align-items:center;font-size:13px;color:var(--text)}
.km-job .ico{width:24px;height:22px}
.km-job select{min-width:0}
.km-job input{width:100%}
.km-one{color:var(--muted);font-size:12px}
.km-actions{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 8px}
.km-loot td,.bw-loot td,.bw-sets td{vertical-align:middle;white-space:nowrap}
.kingdom .atable .ico,.barrows .atable .ico{display:inline-block;width:22px;height:20px;vertical-align:middle;margin-right:6px}
.km-loot .km-roll{color:var(--gold)}
.km-loot tfoot th{color:var(--text);font-size:13px;text-transform:none;letter-spacing:0;border-top:2px solid #4a3f31}
.km-compare td small{font-size:11px}
.bw-bros{display:grid;grid-template-columns:1fr 1fr;gap:4px 8px}
.bw-bros label.check{display:flex;align-items:center;gap:5px;color:var(--text)}
.bw-bros .ico{width:22px;height:20px}
.bw-bros small{color:var(--muted);font-size:11px}
.bw-owned,.bw-grid{display:flex;flex-direction:column;gap:4px}
.bw-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:6px;margin-bottom:10px}
.bw-set{display:flex;align-items:center;gap:4px}
.bw-set>b{width:52px;font-weight:600;font-size:12px;color:var(--text)}
.bw-set.off{opacity:.4}
.bw-piece{position:relative;display:grid;place-items:center;width:38px;height:36px;background:#1d1812;border:1px solid var(--edge);border-radius:3px;cursor:pointer}
.bw-piece input{position:absolute;opacity:0;inset:0;cursor:pointer;margin:0}
.bw-piece .ico{width:30px;height:28px;filter:grayscale(1) brightness(.55)}
.bw-piece:has(input:checked){border-color:var(--gold);background:rgba(255,152,31,.12)}
.bw-piece:has(input:checked) .ico,.bw-piece.got .ico,.bw-piece.mine .ico{filter:none}
.bw-piece:has(input:focus-visible){outline:2px solid var(--gold);outline-offset:1px}
.bw-grid .bw-piece{cursor:default}
.bw-piece.got{border-color:var(--green)}.bw-piece.mine{opacity:.6}
.bw-piece small{position:absolute;right:1px;bottom:0;font-size:9px;font-family:var(--f-num);color:var(--green);text-shadow:1px 1px 0 #000}
.barrows .bw-miss .ico{width:22px;height:20px;margin-right:2px}
.bw-loot summary{cursor:pointer;color:var(--muted);font-size:13px;margin:4px 0}
@container page (max-width:608px){
  .bw-sets th:nth-child(4),.bw-sets td:nth-child(4),.bw-sets th:nth-child(5),.bw-sets td:nth-child(5),.km-compare th:nth-child(2),.km-compare td:nth-child(2),.km-compare th:nth-child(5),.km-compare td:nth-child(5){display:none}
  .bw-miss{white-space:normal}
}

/* ---------- In-game look for the simulators (interfaces, item stacks, chatbox, overlays) ---------- */
.rs-scene{--rs-orange:#ff981f;--rs-yellow:#ffff00;--rs-quill:"MedievalSharp",var(--f-sim),serif;font-family:var(--f-sim),var(--f-body);margin:4px 0 18px}
.rs-win{position:relative;background:#3e3529 radial-gradient(ellipse at 30% 0,rgba(255,255,255,.05),transparent 60%);border:2px solid #0e0d0b;outline:2px solid #5d5547;outline-offset:-5px;box-shadow:inset 0 0 0 5px #2a241d,0 3px 10px rgba(0,0,0,.5);border-radius:3px;padding:12px 14px 12px;color:#ff981f}
.rs-title{text-align:center;font-weight:700;font-size:16px;color:var(--rs-orange);text-shadow:1px 1px 0 #000;margin:0 0 8px;letter-spacing:.02em}
.rs-items{display:flex;flex-wrap:wrap;gap:10px 6px;justify-content:center;min-height:40px}
.rs-item{position:relative;display:inline-grid;place-items:center;width:42px;height:38px}
.rs-item .ico{width:36px;height:32px;object-fit:contain;filter:drop-shadow(1px 1px 0 rgba(0,0,0,.65))}
.rs-qty{position:absolute;left:0;top:-3px;font-family:var(--f-sim),monospace;font-weight:400;font-size:12px;letter-spacing:.02em;line-height:1;color:var(--rs-yellow,#ff0);text-shadow:1px 1px 0 #000;pointer-events:none}
.rs-qty.k{color:#fff}.rs-qty.m{color:#00ff80}
.rs-empty{text-align:center;color:#c8b48a;font-size:13px;margin:6px 0}
.rs-worth{text-align:center;margin-top:8px;font-size:13px;color:#ff981f;text-shadow:1px 1px 0 #000}
.rs-worth b{color:#fff;font-weight:500}.rs-hit{color:#0dc10d}
.rs-btns{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}
.rs-btn{font-family:var(--f-sim),var(--f-body);font-size:14px;color:var(--rs-orange,#ff981f);text-shadow:1px 1px 0 #000;background:linear-gradient(#5b5042,#40372c);border:2px solid;border-color:#7a6d5a #1f1a14 #1f1a14 #7a6d5a;border-radius:2px;padding:5px 12px;cursor:pointer}
.rs-btn:hover{color:#fff}.rs-btn:active{border-color:#1f1a14 #7a6d5a #7a6d5a #1f1a14}
.rs-btn.dim{color:#c8b48a}
.rs-btn:focus-visible,.rs-bro:focus-visible,.km-map button:focus-visible{outline:2px solid #fff;outline-offset:1px}
.rs-chat{background:linear-gradient(rgba(214,196,158,.95),rgba(196,176,136,.95));border:2px solid #4a4032;border-radius:2px;padding:6px 10px;color:#000;font-family:var(--f-sim),var(--f-body);font-size:14px;min-height:72px;margin-top:10px}
.rs-chat p{margin:0;line-height:1.35}.rs-chat em{font-style:normal;color:#c00000}.rs-chat .sys{color:#0000a0}
/* the Barrows overlay: brothers' names, red once you kill them, and the reward potential */
.rs-overlay{display:flex;flex-direction:column;align-items:flex-start;gap:1px;background:rgba(0,0,0,.55);border:1px solid #000;border-radius:2px;padding:8px 10px;margin-bottom:10px}
.rs-bro{background:none;border:0;padding:1px 0;font-family:var(--f-sim),var(--f-body);font-size:15px;color:#fff;text-shadow:1px 1px 0 #000;cursor:pointer;text-align:left}
.rs-bro[aria-pressed="true"]{color:#ff0000}
.rs-bro:hover{text-decoration:underline}
.rs-pot{margin-top:6px;font-size:15px;color:#fff;text-shadow:1px 1px 0 #000}.rs-pot b{color:#ff981f;font-weight:500}.rs-pot b.full{color:#0dc10d}
.bw-scene{display:grid;grid-template-columns:240px minmax(0,1fr) minmax(0,330px);gap:16px;align-items:start}
@container page (max-width:1068px){.bw-scene{grid-template-columns:240px minmax(0,1fr)}.bw-logs{grid-column:1/-1}}
@container page (max-width:668px){.bw-scene{grid-template-columns:minmax(0,1fr)}}
.bw-side .mta-settings{font-family:var(--f-body)}
.bw-crypt{display:flex;flex-direction:column;gap:10px}
.bw-chest{display:flex;flex-direction:column;align-items:center;gap:8px;padding:12px;background:radial-gradient(ellipse at 50% 40%,#3a2f22,#14100c 75%);border:1px solid #000;border-radius:3px}
.bw-chest-img{width:120px;height:auto;image-rendering:pixelated;filter:drop-shadow(0 4px 6px #000)}
.bw-logs{display:flex;flex-direction:column;gap:12px}
.rs-clog-head{display:flex;flex-direction:column;gap:2px;font-size:13px;color:#ff981f;text-shadow:1px 1px 0 #000;border-bottom:1px solid #5d5547;padding-bottom:6px;margin-bottom:6px}
.rs-clog-head b{font-size:15px;font-weight:700}
.rs-clog-head em{font-style:normal;color:#ff0000}.rs-clog-head em.part{color:#ffff00}.rs-clog-head em.done{color:#0dc10d}.rs-clog-head em.w{color:#fff}
.rs-clog-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:2px;justify-items:center}
.rs-clog-grid .rs-item.missing .ico{opacity:.28;filter:grayscale(.3)}
.rs-clog-grid .rs-item.new{background:radial-gradient(circle,rgba(13,193,13,.25),transparent 70%)}
.bw-analysis{margin-top:6px}
/* Kingdom of Miscellania: the management map and the Resources Collected scroll */
.km-strip{flex-direction:row;flex-wrap:wrap;align-items:flex-end;gap:10px 18px;padding:10px 12px;margin-bottom:12px}
.km-strip>label{display:flex;flex-direction:column;gap:4px}.km-strip>label.check{flex-direction:row;align-items:center;align-self:center}
.km-strip input[type=number]{width:110px}
.km-scene{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);gap:16px;align-items:start}
@container page (max-width:868px){.km-scene{grid-template-columns:minmax(0,1fr)}}
.km-manage{display:flex;flex-direction:column;gap:8px}
.km-map{position:relative;aspect-ratio:512/336;container-type:inline-size;border:2px solid #0e0d0b;outline:2px solid #5d5547;outline-offset:-5px;box-shadow:0 3px 10px rgba(0,0,0,.5);border-radius:3px;overflow:hidden;color:#fff;text-shadow:1px 1px 0 #000;font-family:var(--f-sim),var(--f-body)}
.km-sea{position:absolute;inset:0;width:100%;height:100%}
.km-title{position:absolute;top:2%;left:0;right:0;text-align:center;font-family:var(--rs-quill);font-size:4.2cqw;color:#000;text-shadow:0 0 3px rgba(255,255,255,.35)}
.km-coffer{position:absolute;left:4%;top:9%;display:flex;align-items:flex-start;gap:1.5cqw;font-size:2.7cqw}
.km-coffer .ico{width:9cqw;height:8cqw;margin-top:1cqw}
.km-coffer span{display:flex;flex-direction:column;align-items:flex-start}
.km-coffer b{font-weight:500}
.km-map button{background:none;border:0;padding:0;color:#fff;font:inherit;text-shadow:1px 1px 0 #000;cursor:pointer}
.km-coffer button{font-size:2.6cqw;padding-left:6cqw}.km-coffer button:hover{color:#ff981f}
.km-spot{position:absolute;display:flex;align-items:center;gap:.8cqw}
.km-spot.off{opacity:.45}
.km-label{display:flex;flex-direction:column;align-items:flex-end;font-size:2.7cqw;line-height:1.15}
.km-label b{font-weight:500}
.km-opts{display:flex;flex-direction:column;align-items:flex-start}
.km-opt{display:inline-flex;align-items:center;gap:.6cqw;font-size:2.4cqw!important}
.km-opt i{width:2.4cqw;height:2.4cqw;border-radius:50%;background:#2b2620;border:1px solid #000;display:inline-grid;place-items:center;font-style:normal}
.km-opt[aria-pressed="true"] i::after{content:"✔";color:#e00000;font-size:2.6cqw;line-height:1;text-shadow:none;margin-top:-.6cqw}
.km-bar{position:relative;display:block;width:3.4cqw;height:13cqw;background:#000;border:.4cqw solid #3b3127;box-shadow:inset 0 0 0 1px #6b5e4b}
.km-bar i{position:absolute;left:0;right:0;bottom:0;background:linear-gradient(90deg,#c9b58c,#e2d3ae,#b9a273)}
.km-arrows{display:flex;flex-direction:column;gap:1.4cqw}
.km-arrows button{width:3.6cqw;height:3.6cqw;display:grid;place-items:center;font-size:2.4cqw!important;color:#d8d8d8!important;background:linear-gradient(#8a8a8a,#5b5b5b)!important;border:1px solid #222!important;border-radius:2px}
.km-arrows button:hover:not(:disabled){color:#fff!important;background:linear-gradient(#a0a0a0,#6b6b6b)!important}
.km-map button:disabled{cursor:not-allowed}
.km-idle .km-bar i{background:linear-gradient(90deg,#8c7a5a,#a8946e)}
.km-z{font-family:var(--rs-quill);font-size:3cqw;color:#ddd}.km-z small{font-size:2.2cqw}
.km-island{position:absolute;right:3%;bottom:3%;font-size:2.2cqw;color:#ffd}
.km-prompt{display:flex;gap:8px;align-items:center;flex-wrap:wrap;min-height:0;margin:0}
.km-prompt label{display:flex;gap:8px;align-items:center;flex:1;color:#000}
.km-prompt input{flex:1;min-width:90px;background:transparent;border:0;border-bottom:1px solid #4a4032;color:#0000a0;font:inherit;padding:2px 0}
.km-prompt input:focus{outline:none;border-bottom-color:#000}
.km-scroll{position:relative;background:radial-gradient(ellipse at 40% 30%,#d9c79f,#c3ad80 70%,#b19a6c);color:#000;padding:16px 30px 18px 18px;min-height:240px;
  clip-path:polygon(0 3%,4% 0,18% 2%,34% 0,52% 2%,70% 0,86% 2%,100% 0,98% 18%,100% 40%,98% 62%,100% 84%,98% 100%,80% 98%,62% 100%,44% 98%,26% 100%,8% 98%,0 100%,2% 78%,0 56%,2% 34%);
  box-shadow:inset 0 0 30px rgba(90,60,20,.35)}
.km-scroll::after{content:"";position:absolute;right:10px;top:16px;bottom:16px;width:12px;background:linear-gradient(90deg,#8a6d3f,#c09a5c,#8a6d3f);border:1px solid #5a4422;border-radius:2px;opacity:.85}
.km-scroll-title{display:block;font-family:var(--rs-quill);font-size:20px;margin-bottom:8px}
.km-scroll-items{display:flex;flex-wrap:wrap;gap:6px 8px}
.km-scroll .rs-item .ico{filter:drop-shadow(1px 1px 0 rgba(0,0,0,.45))}
.km-scroll-empty{margin:0;font-size:14px}
.km-scroll-note{margin:8px 0 0;font-family:var(--f-body);font-size:13px;color:var(--muted)}.km-scroll-note b{color:var(--text)}
.km-details{margin:8px 0 4px}
/* on phones the map keeps a size you can tap, and scrolls sideways inside its own box */
.km-mapwrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
.km-mapwrap .km-map{min-width:560px}
/* the shared simulator page (sim_controller.js) */
.sim .rs-clog-grid button.rs-item{background:none;border:0;padding:0;cursor:pointer;border-radius:3px}
.sim .rs-clog-grid button.rs-item:hover{background:rgba(255,255,255,.06)}
.sim .rs-clog-grid button.rs-item[aria-pressed="true"]{box-shadow:inset 0 0 0 1px rgba(255,152,31,.5)}
.sim .rs-clog-grid button.rs-item:focus-visible{outline:2px solid #fff}
.rs-clog-tip{margin:6px 0 0;font-size:12px;color:#c8b48a;text-align:center}
.sim .atable .ico{display:inline-block;width:22px;height:20px;vertical-align:middle;margin-right:6px}
.sim .atable td{vertical-align:middle;white-space:nowrap}
.sim-rates tr.have td{color:var(--muted)}
.sim-stage .bw-chest-img{max-height:120px;width:auto;max-width:200px;object-fit:contain}
.bw-side .mta-settings{gap:8px;padding:10px 12px}
@container page (max-width:608px){.sim-rates th:nth-child(4),.sim-rates td:nth-child(4){display:none}}
.sim-howbox h4{margin:10px 0 4px;font-family:var(--f-display);font-weight:500;font-size:15px;color:var(--gold)}
.sim-how{margin:0 0 6px;padding-left:22px;font-size:14px;line-height:1.5;max-width:900px}
.sim-how li{margin:3px 0}
/* "How this simulator works": a "?" at the top right opens it as a popover over the page */
.alch-bar .alch-right{margin-left:auto;display:flex;align-items:center;gap:8px}
.alch-bar .alch-right .btn{margin-left:0}
.how-q{width:32px;padding-left:0;padding-right:0;font-weight:700;font-size:16px;line-height:1}
.how-pop{width:min(820px,calc(100vw - 32px));max-height:calc(100dvh - 48px);padding:0;background:var(--panel);color:var(--text);border:2px solid var(--edge);box-shadow:inset 0 0 0 2px var(--rim),0 10px 40px rgba(0,0,0,.6);border-radius:4px;overflow:hidden}
.how-pop:popover-open{display:flex;flex-direction:column}
.how-pop::backdrop{background:rgba(10,8,6,.6)}
.how-pop .sim-howbox{overflow-y:auto;padding:4px 18px 14px}
.rs-total .rs-items{max-height:330px;overflow-y:auto;scrollbar-color:#6b5e4b #2a241d}

/* Tooltips (tooltips_controller.js): an in-game style box instead of the browser's grey one. */
.tooltip{position:fixed;z-index:1000;max-width:min(320px,calc(100vw - 12px));pointer-events:none;
  padding:6px 10px;border-radius:4px;background:#1d1812;color:var(--text);border:1px solid var(--rim);
  box-shadow:inset 0 0 0 1px #000,0 6px 18px rgba(0,0,0,.6);font-family:var(--f-body);font-size:13px;line-height:1.35;
  white-space:pre-line;overflow-wrap:anywhere;animation:tip-in .12s ease-out}
.tooltip::after{content:"";position:absolute;left:var(--arrow-x,50%);top:100%;width:8px;height:8px;margin-left:-5px;margin-top:-4px;
  background:#1d1812;border-right:1px solid var(--rim);border-bottom:1px solid var(--rim);transform:rotate(45deg)}
.tooltip.below::after{top:auto;bottom:100%;margin-top:0;margin-bottom:-4px;transform:rotate(-135deg)}
.tooltip[hidden]{display:none}
@keyframes tip-in{from{opacity:0;transform:translateY(2px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion: reduce){.tooltip{animation:none}}

/* Simulators: the "new collection log item" pop-up over the scene, and the Sound button. */
.bw-chest{position:relative}
.clog-pop{position:absolute;top:10px;left:50%;transform:translateX(-50%);z-index:5;min-width:220px;max-width:calc(100% - 20px);
  display:flex;flex-direction:column;align-items:center;gap:2px;padding:8px 16px;text-align:center;pointer-events:none;
  background:#2b2419;border:2px solid #0e0b08;box-shadow:inset 0 0 0 1px #6b5c45,0 6px 18px rgba(0,0,0,.6);border-radius:3px;
  font-family:var(--f-display);color:var(--gold)}
.clog-pop b{font-weight:400;font-size:17px;color:var(--gold);text-shadow:1px 1px 0 #000}
.clog-pop span{font-size:14px;color:var(--text)}
.clog-pop em{font-style:normal;color:#fff}
.clog-pop small{color:var(--muted);font-family:var(--f-body)}
.clog-pop.show{animation:clog-in .25s ease-out,clog-out .4s ease-in 2.8s forwards}
@keyframes clog-in{from{opacity:0;transform:translate(-50%,-8px)}to{opacity:1;transform:translate(-50%,0)}}
@keyframes clog-out{to{opacity:0;transform:translate(-50%,-6px)}}
@media (prefers-reduced-motion: reduce){.clog-pop.show{animation:none}}
.alch-bar .soundbtn{margin-left:auto;white-space:nowrap}

/* Home page (signed out) and the 404 page */
.home-list{list-style:none;margin:0 0 14px;padding:0;display:flex;flex-direction:column;gap:10px}
.home-list li{display:flex;flex-direction:column;gap:2px}
.home-list a,.home-list b{font-family:var(--f-display);font-weight:400;font-size:17px;color:var(--gold)}
.home-list span{font-size:13px;color:var(--muted)}
.home-list .names{font-size:inherit;color:var(--muted)}
.notfound p{margin:0 0 14px}

/* Menu items that need an account, for people who aren't signed in: greyed out,
   with a "Create an account" link over them. */
.dlink.locked{position:relative;cursor:default}
.dlink.locked>.dl-name,.dlink.locked>.dl-what{opacity:.38;filter:grayscale(1)}
.dlink.locked:hover{border-color:var(--edge);color:var(--text)}
.lock-cta{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;border-radius:5px;
  background:rgba(20,16,12,.72);color:var(--gold);font-family:var(--f-body);font-weight:700;font-size:14px;text-decoration:none}
.lock-cta::before{content:"";width:12px;height:12px;margin-right:7px;flex:none;
  background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10V7a5 5 0 0 1 10 0v3h1a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V11a1 1 0 0 1 1-1zm2 0h6V7a3 3 0 0 0-6 0z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10V7a5 5 0 0 1 10 0v3h1a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V11a1 1 0 0 1 1-1zm2 0h6V7a3 3 0 0 0-6 0z'/%3E%3C/svg%3E") center/contain no-repeat}
.lock-cta:hover{background:rgba(20,16,12,.6);color:#ffb04f;text-decoration:underline;text-underline-offset:3px}

/* Account: a new email waiting to be confirmed */
.email-pending{margin-top:12px;padding:10px 12px;background:var(--inset);border:1px solid var(--gold);border-radius:4px;font-size:13px;color:var(--muted)}
.email-pending p{margin:0 0 8px}.email-pending b{color:var(--text);overflow-wrap:anywhere}
.email-pending .form-actions{display:flex;gap:8px;flex-wrap:wrap}

/* Simulator scene: the columns are all as tall as the tallest, and the box that
   can grow in each (settings, the chatbox, the collection log) takes up the
   slack, so the chatbox ends level with the loot total and nothing leaves a gap. */
.bw-scene{align-items:stretch}
.bw-side,.bw-crypt,.bw-logs{display:flex;flex-direction:column;min-height:0}
.bw-side>.bw-grow{flex:1 1 auto}
.bw-fill{flex:1 1 auto;display:flex;flex-direction:column;min-height:0}
.bw-fill>*{flex:1 1 auto}
/* The chatbox doesn't make its column taller: it fills what's left and scrolls,
   newest message at the bottom (like the game's). */
.bw-chatbox{flex:1 1 0;min-height:132px}
.bw-chatbox>.rs-chat{flex:1 1 0;min-height:0;margin-top:0;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;scrollbar-width:thin;scrollbar-color:#8a7656 transparent}
.bw-chatbox>.rs-chat>p:first-child{margin-top:auto}
.bw-logs>.bw-fill>.rs-win{display:flex;flex-direction:column}
/* Two columns (the log moves under the scene): the collection log and the loot
   total sit side by side at the same height instead of one long, mostly empty log. */
@container page (min-width:637px) and (max-width:1068px){
  .bw-logs{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:12px;align-items:stretch}
  .bw-logs>.bw-total{display:flex;flex-direction:column}
  .bw-logs>.bw-total>.rs-win{flex:1 1 auto;display:flex;flex-direction:column;justify-content:space-between}
}

/* An activity's tools (Simulator, Calculator), as tabs above its page. */
.acttabs{display:flex;gap:4px;flex-wrap:wrap;border-bottom:2px solid var(--edge);margin-bottom:-6px}
.acttab{display:inline-flex;align-items:center;gap:8px;padding:7px 18px;margin-bottom:-2px;background:var(--inset);border:1px solid var(--edge);border-bottom:0;border-radius:4px 4px 0 0;
  color:var(--muted);text-decoration:none;font-family:var(--f-display);font-size:16px}
a.acttab:hover{color:var(--gold)}
.acttab[aria-current="page"]{background:var(--panel);color:var(--gold);box-shadow:inset 0 0 0 1px var(--rim);border-bottom:2px solid var(--panel)}
.acttab.soon{opacity:.6;cursor:default}
.acttab .soon-tag{margin-left:0}

/* The game world whose prices a calculator uses (signed in: from the profile). */
.world-chip{display:inline-flex;align-items:center;gap:10px;padding:5px 12px;background:var(--inset);border:1px solid var(--edge);border-radius:99px;font-family:var(--f-display);font-size:15px;color:var(--gold)}
.world-chip .linkbtn{font-family:var(--f-body);font-size:12px}
/* Profiles: the "Plays on" world for each profile */
.world-form{margin-top:6px;display:flex;flex-wrap:wrap;gap:6px 14px}
.world-form label{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted)}
.world-form select{background:var(--panel);border:1px solid var(--edge);border-radius:3px;padding:3px 6px;color:var(--text);font-size:13px}

/* Barrows: the Calculator tab sits beside the shared brothers and chest settings. */
.barrows[data-view="calculator"] .bw-scene{grid-template-columns:240px minmax(0,1fr)}
.barrows[data-view="calculator"] .bw-analysis{margin:0}
@container page (max-width:668px){.barrows[data-view="calculator"] .bw-scene{grid-template-columns:minmax(0,1fr)}}
.barrows .rs-clog-grid button.rs-item{background:none;border:0;padding:0;cursor:pointer;border-radius:3px}
.barrows .rs-clog-grid button.rs-item:hover{outline:1px solid #6b5e4b}
.bw-scene>[hidden]{display:none!important}
.barrows[data-view="calculator"] .soundbtn{display:none}

/* The simulator pages (and Barrows' calculator) use the clearer pixel font for
   their headings and numbers too: Pixelify's 5 is too close to its 2 and 8. */
.panel.barrows,.panel.sim,.panel.kingdom{--f-display:var(--f-sim)}
/* Jersey 10 is drawn smaller than Pixelify at the same size; scale it to the same
   x-height so every size in these pages stays as big as before. */
.panel.barrows,.panel.sim,.panel.kingdom,.rs-scene,.clog-pop{font-size-adjust:ex-height .56}
.panel.barrows select,.panel.barrows input,.panel.sim select,.panel.sim input,.panel.kingdom select,.panel.kingdom input{font-size-adjust:none}
/* The adjustment is sized for Jersey 10. The quill font (MedievalSharp) has a far
   smaller x-height, so inheriting it blew the quill titles up several times over. */
.km-title,.km-z,.km-scroll-title{font-size-adjust:none}

/* Recipes: a recipe folds up to its header (name and profit per run). */
.rtoggle{flex:none;width:28px;height:28px;display:grid;place-items:center;padding:0;background:var(--panel);border:1px solid var(--edge);border-radius:3px;color:var(--gold)}
.rtoggle:hover{border-color:var(--gold)}
.rtoggle svg{width:12px;height:12px;transition:transform .15s ease}
.rtoggle[aria-expanded="true"] svg{transform:rotate(90deg)}
.recipe.collapsed .rhead{margin-bottom:0}
@media (prefers-reduced-motion: reduce){.rtoggle svg{transition:none}}

/* Boosts: a requirement you can reach with a boost (amber), and the skill panel's list of boosts. */
:root{--amber:#ffb000}
.info.boost{color:var(--amber)}
.skc.boost .num i{color:var(--amber)}
.skdetail li.boost b{color:var(--amber)}
[data-state="ready"][data-boost] .qn{color:var(--amber)}
.ditem[data-state="ready"][data-boost] span,.ditem[data-state="ready"][data-boost] small,#dhead .gcount.boost{color:var(--amber)}
.skdetail li em{font-style:normal;font-size:12px;color:var(--amber)}
.skboost{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;margin:0 0 8px;padding:6px 8px;background:rgba(255,176,0,.06);border:1px solid rgba(255,176,0,.25);border-radius:3px;font-size:13px}
.skboost>b{color:var(--amber);font-weight:700}
.skboost span i{font-style:normal;color:var(--amber);font-weight:700}
.skboost small{flex-basis:100%;color:var(--muted);font-size:11.5px}
.skboost.none{background:none;border-style:dashed;border-color:var(--edge)}

/* Slayer points, laid out like talking to a Slayer master: your stats in a side
   panel, the Slayer Rewards window, the master's chatbox under it (chathead,
   maroon name, the whole answer on one page) and the masters list. */
.panel.slayer{--f-display:var(--f-sim);--rs-orange:#ff981f;--rs-yellow:#ffff00}
.sl-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:16px;align-items:start}
@container page (max-width:760px){.sl-layout{grid-template-columns:minmax(0,1fr)}}
.sl-main{display:flex;flex-direction:column;gap:12px;min-width:0}
.slayer .rs-win{font-family:var(--f-sim),var(--f-body);font-size-adjust:ex-height .56}

/* Your Slayer: a stone side panel with skill icons. */
.sl-stats{display:flex;flex-direction:column;gap:9px;padding:12px 14px 14px}
.sl-stats .rs-title{margin-bottom:2px}
.sl-ico{width:20px;height:20px;object-fit:contain;image-rendering:pixelated;flex:none}
.sl-stat{display:grid;grid-template-columns:22px 1fr 76px;align-items:center;gap:8px;font-size:16px;color:var(--rs-orange);text-shadow:1px 1px 0 #000}
.sl-in{width:100%;min-width:0;background:#1d1914;border:2px solid;border-color:#0e0d0b #5d5547 #5d5547 #0e0d0b;border-radius:2px;padding:3px 7px;color:var(--rs-yellow);font-family:var(--f-sim),var(--f-body);font-size:17px;text-shadow:1px 1px 0 #000}
.sl-in.num{text-align:right}
.sl-in::placeholder{color:#7d6f58}
.sl-in:focus{outline:none;border-color:#ff981f}
select.sl-in{color:var(--rs-orange);font-size:15px;padding:3px 5px}
.sl-find{display:flex;flex-direction:column;gap:6px;margin:0 0 4px;padding-bottom:10px;border-bottom:1px solid #5d5547}
.sl-find-row{display:flex;gap:6px}.sl-find-row .sl-in{flex:1;color:#fff;text-align:left}
.sl-lbl{display:flex;align-items:center;gap:6px;font-size:15px;color:var(--rs-orange);text-shadow:1px 1px 0 #000}
.sl-status{margin:0;font-family:var(--f-body);font-size:11.5px;line-height:1.35;color:#c8b994}
.sl-status:empty{display:none}
.sl-diaries{display:flex;flex-direction:column;gap:5px;margin-top:2px;padding-top:10px;border-top:1px solid #5d5547}
.sl-check{display:flex;align-items:center;gap:8px;cursor:pointer;font-size:16px;color:#fff;text-shadow:1px 1px 0 #000}
.sl-check small{display:block;font-family:var(--f-body);font-size:11px;color:#c8b994;text-shadow:none}
/* The game's square red/green tick box. */
.sl-check input{appearance:none;flex:none;width:16px;height:16px;margin:0;background:#1d1914;border:2px solid;border-color:#0e0d0b #5d5547 #5d5547 #0e0d0b;display:grid;place-items:center;cursor:pointer}
.sl-check input::after{content:"✕";font-size:12px;line-height:1;color:#c00000}
.sl-check input:checked::after{content:"✓";color:#0dc10d}
.sl-check input:focus-visible{outline:2px solid #fff}

/* The Slayer Rewards window. */
.sl-window{padding:12px 12px 14px}
.sl-winbar{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:6px 12px;margin:6px 0 10px;border-bottom:2px solid #0e0d0b}
.sl-tabs{display:flex;flex-wrap:wrap;gap:4px}
.sl-tab{font-family:var(--f-sim),var(--f-body);font-size:16px;padding:5px 16px;margin-bottom:-2px;background:linear-gradient(#4a4034,#3a3229);border:2px solid #0e0d0b;border-bottom:0;border-radius:4px 4px 0 0;color:var(--rs-orange);text-shadow:1px 1px 0 #000;cursor:pointer}
.sl-tab[aria-selected="true"]{background:#3e3529;color:#fff}
.sl-purse{display:flex;align-items:center;gap:12px;padding-bottom:6px;font-size:16px;color:var(--rs-orange);text-shadow:1px 1px 0 #000}
.sl-purse b{color:var(--rs-yellow);font-weight:400}.sl-purse b.short{color:#ff3a3a}.sl-purse b.ok{color:#0dc10d}
.rs-btn.sm{padding:2px 9px;font-size:13px}
.sl-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:6px;max-height:380px;overflow-y:auto;padding-right:4px;scrollbar-width:thin;scrollbar-color:#6b5e4b #2a241d}
.sl-reward{position:relative;display:grid;grid-template-columns:auto 1fr;grid-template-areas:"ico name" "ico cost" "what what";align-items:center;gap:0 6px;text-align:left;padding:7px 9px;
  background:linear-gradient(#4b4033,#3a3127);border:2px solid;border-color:#5d5547 #1e1a15 #1e1a15 #5d5547;border-radius:2px;color:#fff;cursor:pointer;font-family:inherit}
.sl-reward:hover{border-color:#ff981f}
.sl-reward .ico{grid-area:ico;width:32px;height:28px;object-fit:contain}
.sl-name{grid-area:name;color:var(--rs-orange);font-size:16px;text-shadow:1px 1px 0 #000;line-height:1.1}
.sl-cost{grid-area:cost;color:var(--rs-yellow);font-size:14px;text-shadow:1px 1px 0 #000}
.sl-what{grid-area:what;margin-top:3px;font-family:var(--f-body);font-size:11.5px;color:#c8b994;line-height:1.3}
.sl-reward.picked{background:linear-gradient(#3f4a2c,#2f3822);border-color:#0dc10d #0b4a0b #0b4a0b #0dc10d}
.sl-tick{position:absolute;top:4px;right:7px;color:#0dc10d;font-size:16px;text-shadow:1px 1px 0 #000}
.sl-qty{position:absolute;top:4px;right:7px;display:flex;align-items:center;gap:6px;color:#0dc10d;font-size:15px;text-shadow:1px 1px 0 #000}
.sl-less{display:inline-grid;place-items:center;width:18px;height:18px;border:1px solid #1e1a15;border-radius:2px;background:#2a241c;color:#fff}

/* The chatbox: parchment, chathead on the left, maroon name, black text. */
.sl-chatbox{position:relative;background:linear-gradient(#d6c49e,#c4b088);border:3px solid #4a4032;outline:2px solid #2a241d;box-shadow:inset 0 0 0 1px #e6d8b6,0 3px 10px rgba(0,0,0,.5);border-radius:2px;color:#000;font-family:var(--f-sim),var(--f-body);font-size-adjust:ex-height .56}
.sl-dlg{display:grid;grid-template-columns:110px minmax(0,1fr);align-items:center;gap:6px;min-height:138px;padding:8px 14px 8px 8px}
.sl-head{justify-self:center;max-width:104px;max-height:110px;object-fit:contain;image-rendering:pixelated;filter:drop-shadow(1px 1px 0 rgba(0,0,0,.35))}
.sl-say{display:flex;flex-direction:column;align-items:center;text-align:center;gap:5px;padding:4px 0}
.sl-who{color:#800000;font-weight:400;font-size:20px;line-height:1}
.sl-say p{margin:0;max-width:60ch;font-size:19px;line-height:1.2}
.sl-say em{font-style:normal;color:#800000}
@container page (max-width:520px){
  .sl-dlg{grid-template-columns:64px minmax(0,1fr);min-height:120px;padding:8px 8px 8px 4px}
  .sl-head{max-width:62px;max-height:72px}
  .sl-say p{font-size:17px}
}

/* The masters list: a row each, chathead first; click one to talk to them. */
.sl-masters{padding:12px 12px 10px}
.sl-mlist{display:flex;flex-direction:column;gap:4px}
.sl-mrow{display:grid;grid-template-columns:40px minmax(0,1.6fr) repeat(3,minmax(0,1fr));align-items:center;gap:10px;padding:4px 10px 4px 4px;text-align:left;font-family:inherit;font-size:16px;color:var(--rs-orange);text-shadow:1px 1px 0 #000;
  background:linear-gradient(#4b4033,#3a3127);border:2px solid;border-color:#5d5547 #1e1a15 #1e1a15 #5d5547;border-radius:2px;cursor:pointer}
.sl-mrow:not(:disabled):hover{border-color:#ff981f}
.sl-mrow.sel{background:linear-gradient(#5a4a30,#463a26);border-color:#ffb43f #5a3d10 #5a3d10 #ffb43f}
.sl-mrow:disabled{cursor:default;opacity:.55}
.sl-mrow.head{background:none;border:0;padding:0 10px 2px 4px;font-size:13px;color:#c8b994;cursor:default}
.sl-mrow .num{text-align:right}
.sl-mrow .big{font-size:20px;color:var(--rs-yellow)}
.sl-mrow small{display:block;font-family:var(--f-body);font-size:11px;color:#c8b994;text-shadow:none;line-height:1.3}
.sl-mname{color:#fff;min-width:0}
.sl-mhead{width:36px;height:36px;object-fit:contain;image-rendering:pixelated}
@container page (max-width:560px){
  .sl-mrow{grid-template-columns:32px minmax(0,1fr) repeat(2,auto);gap:8px}
  .sl-mrow>:nth-child(3){display:none}
  .sl-mhead{width:30px;height:30px}
}
.sl-purse{flex-wrap:wrap}.sl-purse span{white-space:nowrap}
@container page (max-width:520px){.sl-tab{padding:4px 10px;font-size:15px}.sl-purse{gap:8px;font-size:15px}}

/* The hiscores lookup form on the Combat level page. */
.sl-lookup{display:flex;flex-direction:column;gap:8px;margin:0}
.sl-lookup label{display:flex;flex-direction:column;gap:4px}
.sl-lookup-row{display:flex;gap:6px}.sl-lookup-row input{flex:1;min-width:0}
.sl-lookup select{background:var(--inset);border:1px solid var(--edge);border-radius:3px;padding:6px 8px;color:var(--text)}
.sl-lookup input{width:100%;min-width:0;background:var(--inset);border:1px solid var(--edge);border-radius:3px;padding:6px 8px;color:var(--text);font-size:14px}

/* Combat level calculator */
.cb-layout{display:grid;grid-template-columns:minmax(0,340px) minmax(0,1fr);gap:18px;align-items:start}
@container page (max-width:640px){.cb-layout{grid-template-columns:minmax(0,1fr)}}
.cb-skills{display:flex;flex-direction:column;gap:6px}
.cb-skill{display:grid!important;grid-template-columns:26px 1fr 80px;align-items:center;gap:8px;font-size:14px;color:var(--text)}
.cb-skill .ico{width:22px;height:22px;object-fit:contain}
.cb-skill input{width:100%;background:var(--inset);border:1px solid var(--edge);border-radius:3px;padding:6px 8px;color:var(--text);font-size:15px;text-align:right}
.cb-skill[data-change="up"] input{border-color:var(--green);color:var(--green)}
.cb-skill[data-change="down"] input{border-color:var(--red);color:var(--red)}
.cb-big{display:flex;flex-direction:column;padding:14px 18px;background:var(--panel-2);border:2px solid var(--edge);box-shadow:inset 0 0 0 1px var(--rim);border-radius:4px}
.cb-big span{font-size:12px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted)}
.cb-big b{font-family:var(--f-display);font-weight:400;font-size:64px;line-height:1;color:var(--gold);text-shadow:2px 2px 0 #000}
.cb-big small{color:var(--muted)}
.cb-gain{font-size:16px;margin:10px 0}.cb-gain b{color:var(--green)}
.cb-next{list-style:none;margin:0 0 6px;padding:0;display:flex;flex-direction:column;gap:4px}
.cb-next b{display:inline-block;min-width:44px;color:var(--gold)}
.combatcalc .hint:empty,.slayer .hint:empty{display:none}
.cb-big b{font-family:var(--f-sim);font-size-adjust:ex-height .56}

/* Admin › Development: the owner's feature requests and bugs */
.dev-kinds{border:0;margin:0;padding:0;display:flex;gap:18px;flex-wrap:wrap}
.dev-kinds legend{padding:0;margin-bottom:4px}
.dev-list .dev-title{margin:0 0 4px;color:var(--text);font-size:15px;overflow-wrap:anywhere}
.dev-kind{display:inline-block;font-size:11px;text-transform:uppercase;letter-spacing:.04em;padding:1px 6px;border-radius:3px;margin-right:4px;vertical-align:1px;border:1px solid #6f8fb3;color:#9cc0e8}
.dev-item.bug .dev-kind{border-color:#b36a5e;color:#f0a093}
.dev-item.bug{box-shadow:inset 3px 0 0 #b36a5e}
.dev-item.feature{box-shadow:inset 3px 0 0 #6f8fb3}
.dev-list.done .dev-title{color:var(--muted);text-decoration:line-through;text-decoration-color:rgba(168,152,122,.6)}
.dev-list.done .dev-item{box-shadow:none}
.dev-list.testing .dev-item{box-shadow:inset 3px 0 0 #c9a227}
.tag-testing{color:#e0c060}
.dev-edit{margin-top:6px}
.dev-edit summary{cursor:pointer;color:var(--muted);font-size:13px}
.dev-edit .form{margin-top:8px}

/* Suggestions inbox: room for the Make feature / Make bug buttons */
.suggestions .member-actions{flex-wrap:wrap;justify-content:flex-end;max-width:50%}

/* Hotkeys (Account settings) and the suggestion dialog */
.hotkey-row{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;background:var(--inset);border:1px solid var(--edge);border-radius:3px;padding:8px 10px}
.hotkey-row>div:first-child{display:flex;flex-direction:column;min-width:0;color:var(--text)}
.hotkey-set{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.hotkey-key,kbd{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px;background:#1d1812;color:var(--text);border:1px solid var(--edge);border-bottom-width:3px;border-radius:4px;padding:3px 10px}
.hotkey-key{cursor:pointer;min-width:84px}
.hotkey-key:hover,.hotkey-key:focus-visible{border-color:var(--gold)}
.hotkey-key.recording{border-color:var(--gold);color:var(--gold)}
kbd{padding:1px 6px;font-size:12px}
dialog.suggest-dlg{width:min(560px,calc(100vw - 32px))}
.suggest-dlg-body{padding:14px 18px 18px}
.suggest-dlg-body .form-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.suggest-status{margin:0;font-size:14px;color:var(--muted)}
.suggest-status[hidden]{display:none}
.suggest-status.ok{color:#8fd18f}
.suggest-status.error{color:#f0a093}

/* ---------- NPC drops: the ground the loot lands on, in 3D (scenes/ground3d.js) ---------- */
.gr-stage{padding:6px 8px 12px;background:radial-gradient(ellipse at 50% 30%,#2b261d,#0d0b08 80%)}
.gr-view{position:relative;width:100%;min-height:200px;touch-action:manipulation}
.gr-canvas{display:block;width:100%;border-radius:3px}
.gr-labels{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.gr-labels .rs-qty{position:absolute;font-size:14px}
.gr-tip{position:absolute;z-index:3;pointer-events:none;display:flex;flex-direction:column;gap:2px;max-width:260px;padding:6px 9px;border-radius:3px;
  background:rgba(20,16,12,.94);border:1px solid #5d5547;box-shadow:0 4px 14px rgba(0,0,0,.6);font-size:13px;color:#ff981f;text-shadow:1px 1px 0 #000}
.gr-tip b{color:#fff;font-weight:400}
.gr-tip span{display:flex;align-items:center;gap:6px;white-space:nowrap}
.gr-tip .ico{width:22px;height:20px;object-fit:contain}
.gr-tip[hidden]{display:none}
.gr-empty{margin:0;padding:60px 12px;text-align:center;color:var(--rs-orange,#ff981f);text-shadow:1px 1px 0 #000;font-size:16px}
.gr-stage .rs-btns{margin-top:2px}
.rs-btn[hidden]{display:none}

/* ---------- Dropdowns, everywhere ----------
   Every <select> gets the game's look: no browser arrow, an orange chevron, and the
   open list in the panel colours. Pages set their own background, border and size;
   the chevron and its room survive their `background:` shorthand (hence !important). */
select:not([multiple]){-webkit-appearance:none;appearance:none;cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%23ff981f' stroke-width='2'/%3E%3C/svg%3E")!important;
  background-repeat:no-repeat!important;background-position:right 8px center!important;background-size:12px 12px!important;padding-right:28px!important}
select:not([multiple]):hover{border-color:var(--rim)}
select:focus-visible{outline:2px solid var(--gold);outline-offset:1px}
select option,select optgroup{background:var(--panel-2);color:var(--text)}
select optgroup{color:var(--gold);font-style:normal;font-weight:700}
select:disabled{cursor:default;opacity:.6}

/* ---------- Game-style dropdown (ui/rs_select.js) ---------- */
.rs-select{position:relative;display:block}
.rs-select>select{position:absolute;inset:0;opacity:0;pointer-events:none}
.rs-select-btn{display:flex;align-items:center;gap:8px;width:100%;min-height:34px;text-align:left;cursor:pointer;
  background:#1d1812 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%23ff981f' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 9px center;
  border:2px solid;border-color:#0e0d0b #5d5547 #5d5547 #0e0d0b;border-radius:3px;padding:4px 30px 4px 8px;
  font-family:var(--f-sim),var(--f-body);font-size:15px;color:var(--rs-orange,#ff981f);text-shadow:1px 1px 0 #000}
.rs-select-btn:hover{border-color:#0e0d0b var(--rim) var(--rim) #0e0d0b;color:#ffb04a}
.rs-select-btn:focus-visible{outline:2px solid var(--gold);outline-offset:1px}
.rs-select.open .rs-select-btn{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpath d='M2 8l4-4 4 4' fill='none' stroke='%23ff981f' stroke-width='2'/%3E%3C/svg%3E")}
.rs-select-btn span,.rs-select-opt span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rs-select-ico{flex:none;width:26px;height:22px;object-fit:contain;filter:drop-shadow(1px 1px 0 rgba(0,0,0,.6))}
.rs-select-list{position:absolute;left:0;right:0;top:calc(100% + 3px);z-index:40;min-width:220px;max-height:min(340px,60vh);overflow-y:auto;padding:4px;
  background:#3e3529 radial-gradient(ellipse at 30% 0,rgba(255,255,255,.05),transparent 60%);border:2px solid #0e0d0b;outline:2px solid #5d5547;outline-offset:-5px;
  box-shadow:inset 0 0 0 5px #2a241d,0 8px 20px rgba(0,0,0,.6);border-radius:3px;scrollbar-color:#6b5e4b #2a241d;
  font-family:var(--f-sim),var(--f-body);font-size:15px;text-shadow:1px 1px 0 #000}
.rs-select.up .rs-select-list{top:auto;bottom:calc(100% + 3px)}
.rs-select-list[hidden]{display:none}
.rs-select-group+.rs-select-group{margin-top:4px}
.rs-select-head{padding:6px 10px 3px;color:#fff;font-size:13px;letter-spacing:.04em;border-bottom:1px solid rgba(93,85,71,.7);margin:0 4px 2px}
.rs-select-opt{display:flex;align-items:center;gap:8px;padding:4px 10px;margin:0 3px;border-radius:2px;color:var(--rs-orange,#ff981f);cursor:pointer}
.rs-select-opt.active{background:rgba(0,0,0,.35);box-shadow:inset 0 0 0 1px var(--rim);color:#ffff00}
.rs-select-opt[aria-selected="true"]{color:#fff}
.rs-select-opt[aria-selected="true"]::after{content:"✓";margin-left:auto;color:var(--green,#0dc10d)}
.rs-chat .sup{color:#ff3030}
.rs-chat .sup em{color:#c060ff}
.rs-select-search{display:block;width:calc(100% - 8px);margin:2px 4px 6px;padding:5px 8px;background:#1d1812;border:2px solid;border-color:#0e0d0b #5d5547 #5d5547 #0e0d0b;border-radius:2px;
  color:#ffff00;font-family:var(--f-sim),var(--f-body);font-size:15px;text-shadow:1px 1px 0 #000;outline:none}
.rs-select-search::placeholder{color:#8a7a60}
.rs-select-opt[hidden],.rs-select-group[hidden]{display:none}

/* "Loot from N": the list scrolls when it's long, and a scroll box cuts off anything
   above its padding, so the top row's stack numbers (drawn 3px above the item) need room. */
.rs-total .rs-items{padding-top:5px}

/* The chest simulators' rooms (shared/_loot_room.html.erb, scenes/loot_room.js): where the
   chest is looted in the game, painted behind the game's own model of it. */
.bw-chest.has-room{padding:0 0 12px;overflow:hidden;background:#0d0b08}
.lr{position:relative;width:100%;aspect-ratio:2/1;min-height:220px;max-height:340px;overflow:hidden;isolation:isolate;border-bottom:2px solid #0e0d0b}
.lr-back{position:absolute;inset:0;z-index:-2}
.lr-back svg{display:block;width:100%;height:100%}
.lr-chest{position:absolute;left:50%;bottom:var(--lr-bottom,7%);height:var(--lr-size,62%);width:auto;max-width:78%;object-fit:contain;object-position:bottom;
  transform:translateX(-50%);transform-origin:50% 100%;filter:drop-shadow(0 8px 6px rgba(0,0,0,.6));transition:opacity .12s}
.lr-chest.open{opacity:0}
.lr.opened .lr-chest.open{opacity:1}
.lr.opened .lr-chest.closed:not(.only){opacity:0}
.lr-shadow{position:absolute;left:50%;bottom:calc(var(--lr-bottom,7%) - 3%);width:calc(var(--lr-size,62%) * .9);height:8%;transform:translateX(-50%);border-radius:50%;
  background:radial-gradient(closest-side,rgba(0,0,0,.6),transparent);z-index:-1}
/* opening: the chest jolts, light bursts out of it */
.lr.opening .lr-chest{animation:lr-pop .5s cubic-bezier(.3,1.6,.5,1)}
@keyframes lr-pop{0%{transform:translateX(-50%) scale(1)}25%{transform:translateX(-50%) scale(1.06,.92)}60%{transform:translateX(-50%) scale(.97,1.05)}100%{transform:translateX(-50%) scale(1)}}
.lr-glow{position:absolute;left:50%;bottom:calc(var(--lr-bottom,7%) + var(--lr-size,62%) * .35);width:70%;aspect-ratio:1;transform:translate(-50%,50%) scale(.3);border-radius:50%;
  background:radial-gradient(closest-side,rgba(255,236,170,.8),rgba(255,190,80,.3) 45%,transparent);opacity:0;pointer-events:none;mix-blend-mode:screen}
.lr.opening .lr-glow{animation:lr-glow .9s ease-out}
@keyframes lr-glow{0%{opacity:0;transform:translate(-50%,50%) scale(.3)}20%{opacity:1}100%{opacity:0;transform:translate(-50%,50%) scale(1.3)}}
/* a collection log item: a beam of light stands over the chest until the next open,
   purple in the raids (their chests light up that way in the game), gold elsewhere */
.lr{--lr-rare:255,205,80}
.lr.rare-purple{--lr-rare:190,90,255}
.lr-beam{position:absolute;left:50%;bottom:var(--lr-bottom,7%);width:calc(var(--lr-size,62%) * .8);height:100%;transform:translateX(-50%);pointer-events:none;opacity:0;transition:opacity .3s;
  background:linear-gradient(to top,rgba(var(--lr-rare),.75),rgba(var(--lr-rare),.25) 55%,transparent);
  clip-path:polygon(30% 100%,70% 100%,100% 0,0 0);mix-blend-mode:screen}
.lr.rare .lr-beam{opacity:1;animation:lr-beam 2.4s ease-in-out infinite}
.lr.rare .lr-chest{filter:drop-shadow(0 0 10px rgba(var(--lr-rare),.9)) drop-shadow(0 8px 6px rgba(0,0,0,.6))}
.lr.rare.opening .lr-glow{background:radial-gradient(closest-side,rgba(var(--lr-rare),.9),rgba(var(--lr-rare),.3) 45%,transparent)}
@keyframes lr-beam{50%{opacity:.7}}
/* the room's own life: torches flicker, clouds drift, waves roll, lightning */
.lr-flame{animation:lr-flame .35s ease-in-out infinite alternate}
@keyframes lr-flame{from{transform:scale(1,1)}to{transform:scale(.9,1.12)}}
.lr-flicker{animation:lr-flicker 2.2s ease-in-out infinite}
.lr-flicker-slow{animation:lr-flicker 5s ease-in-out infinite}
@keyframes lr-flicker{0%,100%{opacity:1}30%{opacity:.75}55%{opacity:.95}75%{opacity:.7}}
.lr-drift{animation:lr-drift 30s ease-in-out infinite alternate}
@keyframes lr-drift{to{transform:translateX(40px)}}
.lr-waves{animation:lr-waves 4s linear infinite}
@keyframes lr-waves{to{transform:translateX(-80px)}}
.lr-spin{animation:lr-spin 14s linear infinite;transform-box:fill-box;transform-origin:center}
@keyframes lr-spin{to{transform:rotate(360deg)}}
.lr-bolt{opacity:0;animation:lr-bolt 7s linear infinite}
@keyframes lr-bolt{0%,88%,92%,96%,100%{opacity:0}90%,94%{opacity:1}}
/* what drifts through the air: one style per room (LootRoomsHelper::ROOMS fx) */
.lr-fx{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:2}
.lr-fx i{position:absolute;width:var(--s);height:var(--s);border-radius:50%;animation:var(--fx) var(--t) linear var(--d) infinite;opacity:0}
.lr-fx-snow i{--fx:lr-fall;background:#fff;width:calc(var(--s) + 1px);height:calc(var(--s) + 1px)}
.lr-fx-leaves i{--fx:lr-leaf;background:#d4652a;border-radius:0 70% 0 70%;width:calc(var(--s) * 2.4);height:calc(var(--s) * 1.4)}
.lr-fx-leaves i:nth-child(3n){background:#e8a83a}
.lr-fx-dust i,.lr-fx-sand i{--fx:lr-float;background:rgba(230,210,170,.5);width:2px;height:2px}
.lr-fx-sand i{background:rgba(255,220,140,.6)}
.lr-fx-motes i{--fx:lr-float;background:rgba(150,220,255,.8);box-shadow:0 0 6px rgba(150,220,255,.9);width:3px;height:3px}
.lr-chambers-of-xeric .lr-fx-motes i{background:rgba(120,255,160,.8);box-shadow:0 0 6px rgba(120,255,160,.9)}
.lr-guardians-of-the-rift .lr-fx-motes i{background:rgba(210,150,255,.85);box-shadow:0 0 6px rgba(190,110,255,.9)}
.lr-fx-embers i{--fx:lr-rise;background:#ff7a2a;box-shadow:0 0 5px #ff5a10;width:3px;height:3px}
.lr-fx-sparkles i{--fx:lr-twinkle;background:#e8fbff;box-shadow:0 0 6px #9fe8ff}
.lr-fx-spray i{--fx:lr-spray;background:rgba(220,240,250,.7)}
.lr-fx-pollen i{--fx:lr-float;background:rgba(255,250,190,.85);width:3px;height:3px}
@keyframes lr-fall{0%{opacity:0;transform:translate(0,-60px)}10%{opacity:.9}100%{opacity:.9;transform:translate(30px,260px)}}
@keyframes lr-leaf{0%{opacity:0;transform:translate(0,-60px) rotate(0)}10%{opacity:1}100%{opacity:.9;transform:translate(60px,260px) rotate(540deg)}}
@keyframes lr-float{0%{opacity:0;transform:translate(0,20px)}30%{opacity:1}100%{opacity:0;transform:translate(24px,-60px)}}
@keyframes lr-rise{0%{opacity:0;transform:translate(0,60px)}20%{opacity:1}100%{opacity:0;transform:translate(-20px,-140px)}}
@keyframes lr-twinkle{0%,100%{opacity:0;transform:scale(.4)}50%{opacity:1;transform:scale(1.3)}}
@keyframes lr-spray{0%{opacity:0;transform:translate(0,0)}20%{opacity:.8}100%{opacity:0;transform:translate(-120px,-20px)}}
/* the Corrupted Gauntlet: the crystal turns red */
.lr-gauntlet[data-variant="corrupted"] .lr-back{filter:hue-rotate(165deg) saturate(1.3) brightness(.85)}
.lr-gauntlet[data-variant="corrupted"] .lr-fx-sparkles i{background:#ffd8d8;box-shadow:0 0 6px #ff5a5a}
.has-room .clog-pop{top:12px}
.has-room .rs-btns{padding:0 10px}
@media (prefers-reduced-motion: reduce){
  .lr *,.lr.opening .lr-chest,.lr.opening .lr-glow,.lr.rare .lr-beam{animation:none!important}
  .lr-fx{display:none}
}
/* The reward window pops up over the chest when you open it, as the game's does
   (showReward in scenes/loot_room.js); the ✕ closes it until the next open. */
.lr:has(.lr-reward){min-height:260px}
/* in the middle of the room, three items to a row like the game's reward windows */
.lr-reward{position:absolute;left:50%;top:50%;z-index:4;width:max-content;min-width:min(230px,calc(100% - 20px));max-width:calc(100% - 20px);max-height:calc(100% - 20px);display:flex;transform:translate(-50%,-50%)}
.lr-reward[hidden]{display:none}
.lr-reward>.rs-win{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;padding:10px 12px;box-shadow:inset 0 0 0 5px #2a241d,0 8px 24px rgba(0,0,0,.75)}
.lr-reward .rs-title{margin:0 22px 6px}
.lr-reward .rs-items{flex:1 1 auto;min-height:0;overflow-y:auto;padding:5px 4px 4px;margin:0 -4px;gap:8px 10px;display:grid;grid-template-columns:repeat(3,42px);justify-content:center;align-content:start;
  background:#2e271e;border:1px solid #1a1611;box-shadow:inset 0 0 0 1px #4b4234;scrollbar-width:thin;scrollbar-color:#6b5e4b #2a241d}
.lr-reward .rs-worth{margin-top:6px;width:0;min-width:100%}
.lr-reward .rs-empty{grid-column:1/-1}
.rs-x{position:absolute;top:7px;right:8px;width:22px;height:22px;display:grid;place-items:center;padding:0;cursor:pointer;
  font:700 13px/1 var(--f-body);color:#ff981f;text-shadow:1px 1px 0 #000;background:linear-gradient(#5b5042,#40372c);
  border:1px solid;border-color:#7a6d5a #1f1a14 #1f1a14 #7a6d5a;border-radius:2px}
.rs-x:hover{color:#fff}
.lr-reward.pop{animation:lr-reward-in .22s ease-out .28s backwards}
@keyframes lr-reward-in{from{opacity:0;transform:translate(-50%,-50%) scale(.92)}to{opacity:1;transform:translate(-50%,-50%)}}
@media (prefers-reduced-motion: reduce){.lr-reward.pop{animation:none}}
/* "Your last 100": the latest click's spread, under the scene; a long one scrolls. */
.rs-batch .rs-items{max-height:200px;overflow-y:auto;padding-top:5px;scrollbar-color:#6b5e4b #2a241d}

/* Items: look up an item (price, changes, a chart) and watch lists of items. */
.it-look{margin:4px 0 18px}
.it-look h2{margin:0 0 8px}
.it-search{width:100%;max-width:520px;font-size:15px;padding:7px 10px}
.it-card{margin-top:12px}
.it-card-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.it-big{width:48px;height:44px;object-fit:contain}
.it-title{flex:1 1 200px;min-width:0}
.it-title h3{margin:0;font-family:var(--f-display);font-weight:700;color:var(--gold);font-size:20px;text-shadow:1px 1px 0 #000}
.it-now{display:flex;flex-direction:column;align-items:flex-end;font-size:14px;color:var(--muted)}
.it-now b{font-family:var(--f-num);font-size:26px;color:var(--yellow);line-height:1.1}
.it-now small{font-size:12px}
.it-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:8px;margin:12px 0}
.it-stats>div{background:#1d1812;border:1px solid var(--edge);border-radius:3px;padding:6px 10px;display:flex;flex-direction:column;gap:1px}
.it-stats span:first-child{font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted)}
.it-stats>div>b{font-family:var(--f-num);font-size:17px}
.it-stats .it-chg{align-items:flex-start}
.it-chg{display:inline-flex;flex-direction:column;align-items:flex-end;line-height:1.15;font-family:var(--f-num)}
.it-chg b{font-size:15px}.it-chg small{font-size:11px;color:var(--muted)}
.it-chg.gain b{color:var(--green)}.it-chg.loss b{color:var(--red)}
.muted,.it-chg.muted{color:var(--muted)}
.it-chart-head{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-bottom:4px}
.it-chart-head .sub{font-size:13px}
.it-ranges{display:inline-flex;gap:4px}
.it-ranges .btn[aria-pressed="true"]{color:#111;background:var(--gold)}
.it-chart{position:relative;touch-action:pan-y}
.it-chart svg{display:block;max-width:100%;height:auto}
.it-grid{stroke:rgba(236,224,196,.12);stroke-width:1}
.it-axis{fill:var(--muted);font-size:11px;font-family:var(--f-num)}
.it-line{fill:none;stroke:var(--gold);stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.it-area{stroke:none;fill:rgba(255,152,31,.10)}
.it-crossline{stroke:var(--muted);stroke-width:1;stroke-dasharray:3 3}
.it-dot{fill:var(--gold);stroke:var(--inset);stroke-width:2}
.it-tip{position:absolute;pointer-events:none;background:var(--panel-2);border:1px solid var(--edge);box-shadow:inset 0 0 0 1px var(--rim),0 4px 10px rgba(0,0,0,.5);border-radius:3px;padding:4px 8px;font-size:12px;color:var(--muted);display:flex;flex-direction:column;white-space:nowrap}
.it-tip b{font-family:var(--f-num);color:var(--text);font-size:14px}
.it-nohist{margin:6px 0}
.it-add{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:10px;padding-top:10px;border-top:1px solid rgba(0,0,0,.35);font-size:13px;color:var(--muted)}
.it-add label{display:inline-flex;align-items:center;gap:6px}
.it-add select{background:#1d1812;border:1px solid var(--edge);border-radius:3px;padding:5px 8px;color:var(--text);font-size:13px;max-width:220px}
.it-headsum{font-size:13px;color:var(--muted)}
.it-headsum b{font-family:var(--f-num);color:var(--yellow);font-size:16px}
.it-scroll{overflow-x:auto}
.it-table{min-width:640px}
.it-table td{padding:4px}
.it-table td:nth-child(3),.it-table td:nth-child(4),.it-table td:nth-child(5),.it-table td:nth-child(6),.it-table td:nth-child(7){width:auto}
.it-table td:nth-child(9){width:90px}.it-table td:nth-child(10){width:28px}
.it-table .it-price{font-size:15px;color:var(--yellow)}
.it-name{background:none;border:0;padding:0;color:var(--text);text-align:left;font-size:14px;text-decoration:underline;text-decoration-color:rgba(236,224,196,.3);text-underline-offset:2px}
.it-name:hover{color:var(--gold)}
.it-sparkcell{width:90px}
.it-spark{display:block}.it-spark path{fill:none;stroke-width:1.6;stroke-linejoin:round}
.it-spark.up path{stroke:var(--green)}.it-spark.down path{stroke:var(--red)}
.it-table tr.hit td{background:rgba(255,210,74,.09)}
.it-table tr.hit td:first-child{box-shadow:inset 3px 0 0 var(--gold)}
.it-hit{display:inline-block;font-size:11px;color:#111;background:var(--gold);border-radius:2px;padding:0 5px;font-weight:700;white-space:nowrap}
.it-list .rfoot{margin-top:6px}
.it-addin{max-width:320px}
@container page (max-width:608px){.it-now{align-items:flex-start;width:100%}}
