#questWindow{
 box-sizing:border-box;width:min(780px,calc(100% - 20px));max-width:none;max-height:calc(100dvh - 20px);
 overflow:auto;padding:clamp(10px,3vw,22px);color:#f6e3bb;
 border:12px solid transparent;border-image:url('/assets/rustic-v1045/production.webp') 14 18 14 18 stretch;
 background:#201913 radial-gradient(ellipse at 50% 0%,#423428,#171310 80%);
 background-clip:padding-box;font-family:var(--entry-font,serif);box-shadow:0 16px 50px #000a;
}
#questWindow::backdrop{background:#000a}
#questWindow .rank-header{
 display:grid;grid-template-columns:34px minmax(0,1fr) 34px;align-items:center;gap:8px;
 margin:0 0 12px;padding:5px 8px;border:1px solid #756653;border-radius:5px;
 background:linear-gradient(#38332c,#191714);box-shadow:inset 0 0 0 2px #151310;
}
html body #questWindow #questTitle{
 grid-column:2;margin:0;text-align:center;color:#f6e3bb!important;
 font-size:24px;letter-spacing:.24em;text-indent:.24em;
}
#questWindow .rank-header form{grid-column:3;margin:0}
html body #questWindow button{
 min-height:33px;padding:4px 8px;border:1px solid #846a4e;border-radius:3px;
 color:#f6e3bb!important;background:#38281d url('/assets/rustic-v1045/button.webp') center/100% 100% no-repeat;
 font:inherit;cursor:pointer;
}
#questWindow .rank-header button{width:34px;padding:0;font-size:20px}
#questWindow .rank-categories{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:12px}
#questWindow .rank-categories button{flex:1 1 54px;white-space:nowrap}
#questWindow .rank-categories button[aria-pressed="true"]{
 border-color:#ddbd80;background-image:url('/assets/rustic-v1045/button-selected.webp');
 box-shadow:inset 0 0 0 1px #ddbd80;
}


html body #questWindow .quest-note{margin:0 0 8px;color:#ddc295!important;font-size:13px}
#questWindow .quest-table{width:100%;border-collapse:collapse;table-layout:fixed;background:#191410}
#questWindow .quest-table[hidden]{display:none!important}
#questWindow .quest-table thead{background:linear-gradient(#57241d,#3a1c17)}
html body #questWindow .quest-table :is(th,td){border:1px solid #886944;padding:7px 4px;text-align:center;color:#f6e3bb!important}
#questWindow .quest-table th:first-child{width:36%}
#questWindow .quest-table th:last-child{width:30%}
#questWindow .quest-actions{display:flex;align-items:center;justify-content:center;gap:5px}
#questWindow .quest-actions button{white-space:nowrap;font-size:13px;padding:3px 6px}
#questWindow .quest-actions button:disabled{opacity:.48;cursor:default}
@media(max-width:480px){
 #questWindow .quest-actions{flex-wrap:wrap}
 #questWindow .quest-actions button{font-size:12px;padding-inline:3px}
}
#questWindow .quest-rewards,#questWindow .quest-rewards span{display:inline-flex;align-items:center;justify-content:center;gap:3px}
#questWindow .quest-rewards{flex-wrap:wrap;gap:4px 7px}
#questWindow .quest-rewards img{width:17px;height:17px;object-fit:contain}
html body #questWindow .quest-table .quest-rewards,html body #questWindow .quest-table .quest-rewards span{color:#f6e3bb!important}