/* Live quest journal, made to match the meadow's warm wooden UI. */
#system-screen[data-system="tasks"] .system-window{width:min(1160px,97vw);max-height:95dvh;padding:22px 27px;background:linear-gradient(155deg,#fff9e9,#f5deaf);border:6px solid #ac7841;box-shadow:0 15px 55px #09162aa3,inset 0 0 0 3px #fff6e5}
#system-screen[data-system="tasks"] .system-window::before{background-size:350px 98px}
#system-screen[data-system="tasks"] #system-content{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-color:#b98643 #f6dfbd}
#system-screen[data-system="tasks"] .system-window>header h2{font-size:30px}
#system-screen[data-system="tasks"] .system-window>header{padding:0 44px 9px 0}
.qv-root{font-family:system-ui,sans-serif;color:#624024;min-width:0}
.qv-tabs{display:flex;gap:9px;margin:14px 0 12px;flex-wrap:wrap}
.qv-tab,.qv-button{border:2px solid #bf8c51;border-radius:14px;color:#6c4228;background:linear-gradient(#fff8e9,#e8bb7e);padding:10px 17px;font-weight:800;font-size:14px;box-shadow:0 3px 0 #bb8e58;cursor:pointer}
.qv-tab[aria-current="page"]{background:linear-gradient(#9bc75c,#54842c);color:#fff;border-color:#a8a455;box-shadow:0 3px 0 #4d7229}
.qv-overview{border:2px solid #d2a45f;border-radius:18px;background:linear-gradient(#ffe8ac,#f1cb85);padding:12px 19px;display:flex;gap:12px;align-items:center;flex-wrap:wrap;box-shadow:inset 0 2px 0 #fff4d4}
.qv-overview strong{font:800 33px Georgia,serif;color:#7a461b}.qv-overview b{margin-left:auto;color:#77451b;font-size:14px}
.qv-instructions{font-size:12px;color:#856442;margin:9px 2px 12px}
.qv-list-shell{display:grid;grid-template-columns:33px minmax(0,1fr) 33px;gap:7px;align-items:center;min-width:0}
.qv-scroll{height:46px;border:2px solid #c19048;border-radius:50%;background:linear-gradient(#f5d184,#c78527);color:#fff9e6;font-size:29px;cursor:pointer;box-shadow:0 3px 5px #784b2166}
.qv-carousel{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:thin;scrollbar-color:#c99753 #ffebc6;padding:4px 3px 13px;overscroll-behavior-inline:contain}
.qv-card{scroll-snap-align:start;flex:0 0 clamp(175px,23vw,218px);min-width:0;display:flex;flex-direction:column;align-items:center;text-align:center;padding:12px 12px 14px;border-radius:20px;border:2px solid #dcb67e;background:linear-gradient(#fffaf0,#ffedcf);box-shadow:0 4px 7px #73451730;min-height:281px;box-sizing:border-box}
.qv-card.is-complete{border-color:#94b966;background:linear-gradient(#f8ffe9,#e9f6d2)}
.qv-card-art{height:103px;width:100%;display:flex;justify-content:center;align-items:center;overflow:hidden}
.qv-card-art img{display:block;max-width:100%;width:auto;height:100%;object-fit:contain;filter:drop-shadow(0 3px 2px #74503638)}
.qv-card h3{font:700 17px Georgia,serif;line-height:1.12;margin:8px 0 5px;color:#724121}
.qv-card p{font-size:11px;line-height:1.35;margin:0 auto 10px;min-height:32px;color:#856144}
.qv-card-progress{width:100%;margin-top:auto}.qv-meter{height:14px;box-sizing:border-box;overflow:hidden;border:2px solid #caa16c;border-radius:9px;background:linear-gradient(#bc8b58,#edc9a2);box-shadow:inset 0 2px 4px #704a3066}
.qv-meter i{display:block;height:100%;background:linear-gradient(#b2d972,#578c31);border-radius:8px}
.qv-card-progress span{font-size:12px;font-weight:800;color:#765132}
.qv-go,.qv-milestone-claim{width:100%;margin-top:9px;border:2px solid #b77c30;border-radius:12px;padding:7px 6px;background:linear-gradient(#f6cf76,#d28d29);font-weight:800;color:#754319;cursor:pointer}
.qv-card.is-complete .qv-go{border-color:#83ae5e;background:#e7f2d9;color:#568336}
.qv-footer{margin-top:12px;display:grid;justify-items:center;gap:8px}.qv-claim{width:min(490px,100%);font-size:16px;background:linear-gradient(#b5d97f,#579038);color:#fff}
.qv-claim:disabled,.qv-milestone-claim:disabled{background:linear-gradient(#f0e7d7,#c9bca9);border-color:#c5b59e;color:#867869;box-shadow:none;cursor:default}
.qv-countdown{font-size:12px;color:#816144}
.qv-attendance-lead{background:#fff0cd;border:2px solid #d5b275;border-radius:16px;padding:16px;margin-bottom:15px}
.qv-attendance-lead strong{font:700 23px Georgia,serif}.qv-attendance-lead p{margin:5px 0;font-size:13px}
.qv-attendance-list{display:flex;gap:13px;overflow-x:auto;scroll-snap-type:x mandatory;padding:2px 3px 14px}
.qv-milestone{scroll-snap-align:start;flex:0 0 158px;min-width:0;display:flex;align-items:center;gap:8px;flex-direction:column;padding:13px;border-radius:17px;background:#fff8e6;border:2px solid #d8b37a;text-align:center}
.qv-milestone.available{background:#fff0c5;border-color:#d29a39}.qv-milestone.claimed{background:#eaf4da;border-color:#82a55a}
.qv-diamond{font:700 42px Georgia,serif;color:#2eade7;text-shadow:0 2px 2px #085c92}.qv-milestone strong{font:700 19px Georgia,serif}.qv-milestone .qv-meter{width:100%}
.qv-error{color:#953b25;background:#fff3e9;padding:13px;border-radius:10px}
.qv-button:focus-visible,.qv-tab:focus-visible,.qv-go:focus-visible,.qv-scroll:focus-visible,.qv-milestone-claim:focus-visible{outline:3px solid #267a9c;outline-offset:3px}
/* Crisp vector quest sign on both the side rail and existing navigation. */
.ref-rail button:first-child img{object-fit:contain;image-rendering:auto}
.game .bottom-nav .nav-tasks{background-image:url('assets/audit31/ui-tasks.svg')!important}
@media(max-height:530px){#system-screen[data-system="tasks"] .system-window{max-height:98dvh;padding:9px 13px}#system-screen[data-system="tasks"] .system-window>header h2{font-size:21px}#system-screen[data-system="tasks"] .system-window>header{padding-bottom:5px}.qv-tabs{margin:7px 0}.qv-tab{padding:5px 8px;font-size:11px}.qv-overview{padding:6px 10px}.qv-overview strong{font-size:21px}.qv-instructions{margin:4px 0}.qv-card{min-height:225px;flex-basis:165px;padding:7px}.qv-card-art{height:60px}.qv-card h3{font-size:14px}.qv-card p{min-height:22px;font-size:10px;margin-bottom:5px}.qv-go{padding:3px}.qv-footer{margin-top:5px;gap:4px}.qv-claim{padding:6px;font-size:12px}.qv-countdown{font-size:10px}.qv-milestone{flex-basis:120px;padding:7px}.qv-attendance-lead{padding:7px;margin-bottom:5px}}
@media(max-width:700px){.qv-list-shell{grid-template-columns:25px minmax(0,1fr) 25px;gap:3px}.qv-scroll{height:35px;font-size:21px}.qv-overview b{margin-left:0}.qv-tabs{gap:4px}.qv-tab{font-size:10px;padding:6px 7px}}
@media(prefers-reduced-motion:reduce){.qv-carousel,.qv-attendance-list{scroll-behavior:auto!important}}
