/* Full-screen painted Company Hall and Friends. Phone first. No motion to reduce.
   The old header (power chip, search, bell, EN/ES, title, inline mark) stays off these screens. */
body.aqs-on{overflow:hidden}
body.aqs-on .top,
body.aqs-on .nav,
body.aqs-on .lang,
body.aqs-on #phud,
body.aqs-on .topbtn,
body.aqs-on .nb-wrap,
body.aqs-on .nb-bell{display:none !important}
.aqs{position:fixed;inset:0;z-index:80;display:flex;flex-direction:column;background:#14203f;color:#fff8e8;
  font-family:Nunito,"Trebuchet MS",sans-serif;overflow:hidden;text-align:center}
.aqs-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 42%;z-index:0;pointer-events:none}
.aqs-back{position:absolute;z-index:2;top:calc(10px + env(safe-area-inset-top));left:10px;min-height:48px;min-width:48px;
  display:flex;align-items:center;padding:0 14px;border-radius:999px;background:#1a1030;color:#fff8e8;
  font-weight:800;text-decoration:none}
.aqs,.aqs *{box-sizing:border-box}
.aqs-stack{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;height:100%;min-height:0;
  padding:calc(8px + env(safe-area-inset-top)) 14px calc(12px + env(safe-area-inset-bottom));overflow-wrap:anywhere}
.aqs-title{margin-top:72px;width:100%;max-width:340px;min-height:84px;display:flex;align-items:center;justify-content:center;
  padding:18px 46px 22px;background-position:center;background-size:100% 100%;background-repeat:no-repeat;
  color:#3b2415;font-weight:900;font-size:clamp(16px,4.7vw,22px);line-height:1.05}
.aqs-title span{background:#fff3d6;color:#3b2415;font-weight:900;border-radius:8px;padding:2px 8px;line-height:1.15;
  box-decoration-break:clone;-webkit-box-decoration-break:clone}
.aqs-giggle{margin:8px 8px 0;max-width:34ch;font-weight:800;font-size:15px;line-height:1.3;background:#1a1030;color:#fff8e8;border-radius:14px;padding:6px 10px}
.aqs-grow{flex:0 0 8px}
.aqs-scroll{width:min(100%,420px);flex:1 1 auto;min-height:0;overflow:auto;scrollbar-gutter:stable;display:flex;flex-direction:column;gap:8px;padding-bottom:4px}
.aqs-h{margin:8px 4px 0;padding:4px 8px;text-align:left;font-weight:900;font-size:12px;letter-spacing:.3px;
  background:#1a1030;color:#fff8e8;border-radius:10px}
.aqs-note{margin:0;background:#1a1030;color:#fff8e8;border-radius:14px;padding:8px 10px;font-weight:800;font-size:13px;line-height:1.3;text-align:left}
.aqs-card{display:flex;align-items:center;gap:8px;min-height:48px;background:#1a1030;border-radius:14px;padding:8px;text-align:left;color:#fff8e8;text-decoration:none}
.aqs-card img{width:42px;height:42px;object-fit:contain;flex:none}
.aqs-card span{min-width:0}
.aqs-card b{display:block;font-size:15px;font-weight:900;color:#fff8e8}
.aqs-card small{display:block;font-weight:800;font-size:12px;color:#fff8e8}
.aqs-card a{display:flex;align-items:center;min-height:48px;margin-top:8px;color:#ffe56a;font-weight:800}
.aqs-link{display:inline-flex;align-items:center;justify-content:center;min-height:48px;margin-top:8px;padding:0 14px;border-radius:999px;background:#1a1030;color:#fff8e8;font-weight:800;text-align:center;text-decoration:none}
.aqs-add{width:min(100%,420px);text-align:left}
.aqs-add summary{display:flex;align-items:center;min-height:48px;padding:0 14px;border-radius:12px;background:#1a1030;color:#fff8e8;font-weight:800;cursor:pointer}
.aqs-add:not([open]) > :not(summary){display:none}
.aqs-form{background:#1a1030;color:#fff8e8;border-radius:16px;padding:8px 10px 10px;text-align:left}
.aqs-form label{display:block;margin-top:6px;font-weight:800;font-size:13px}
.aqs-form input,.aqs-form select{display:block;width:100%;box-sizing:border-box;min-height:48px;margin-top:8px;border:0;border-radius:10px;
  padding:8px 10px;background:#fff8e8;color:#3a2412;font:800 16px Nunito,"Trebuchet MS",sans-serif}
.aqs-go{display:block;width:min(280px,100%);max-width:100%;height:64px;margin:8px auto 0;padding:0 28px;border:0;border-radius:18px;cursor:pointer;
  color:#3a2412;font:800 18px/1 Nunito,"Trebuchet MS",sans-serif;text-align:center;line-height:64px;
  background:#f6c945 url("https://art.agentquest.app/ui/v4/button-primary.webp") center/100% 100% no-repeat}
