/* AQcredix — the app's own layout around every page (4 November 2026; app/chrome.js).
 *
 * The owner: "dont use the site layout to open when opened the app". Opened from its home-screen
 * icon, the site runs standalone and the page carries html.aq-app (set in <head>, before the
 * first paint). The website's header, edition strip, footer and workspace rail are put away
 * (styles.css, so they never flash) and this layout takes their place: a glass top bar, the
 * floating glass dock (Home · Sections · + · Alerts · Me), the + menu and the side panel. The
 * approved design: the owner's layouts 2, 3, 4 and 11, combined. Site tokens, light and dark. */

html.aq-app{--app-acc:#3B5BFD;--app-vio:#8B5CF6;--app-glass:rgba(255,255,255,.68);--app-glass2:rgba(255,255,255,.88);--app-edge:rgba(255,255,255,.85);--app-hair:rgba(59,91,253,.16);--app-tint:rgba(59,91,253,.12);--app-ok:#0C6A47;--app-okbg:rgba(12,106,71,.12);--app-warn:#8A5300;--app-warnbg:rgba(138,83,0,.12);--app-nc:#B02A26;--app-ncbg:rgba(176,42,38,.10);--app-shadow:0 18px 40px -30px rgba(11,16,48,.55)}
html.aq-app[data-theme="dark"]{--app-acc:#7B93FF;--app-vio:#A78BFA;--app-glass:rgba(22,28,52,.6);--app-glass2:rgba(26,32,58,.86);--app-edge:rgba(255,255,255,.12);--app-hair:rgba(237,241,248,.10);--app-tint:rgba(123,147,255,.18);--app-ok:#4ADE9B;--app-okbg:rgba(74,222,155,.14);--app-warn:#F2B04A;--app-warnbg:rgba(242,176,74,.14);--app-nc:#FF7A75;--app-ncbg:rgba(255,122,117,.14);--app-shadow:0 18px 40px -30px rgba(0,0,0,.8)}

html.aq-app body{font-size:16px;padding-bottom:calc(112px + env(safe-area-inset-bottom));-webkit-tap-highlight-color:transparent}
html.aq-app .aqa-glass{background:var(--app-glass);backdrop-filter:blur(20px) saturate(1.5);-webkit-backdrop-filter:blur(20px) saturate(1.5);border:1px solid var(--app-edge);box-shadow:var(--app-shadow)}

/* the aurora behind everything */
.aqa-aurora{position:fixed;inset:0;z-index:-1;pointer-events:none;overflow:hidden}
.aqa-aurora i{position:absolute;border-radius:50%;filter:blur(2px)}
.aqa-aurora i:nth-child(1){width:440px;height:440px;left:-160px;top:22vh;background:radial-gradient(circle,rgba(59,91,253,.30),transparent 65%)}
.aqa-aurora i:nth-child(2){width:480px;height:480px;right:-200px;top:48vh;background:radial-gradient(circle,rgba(139,92,246,.26),transparent 65%)}
.aqa-aurora i:nth-child(3){width:360px;height:360px;left:20vw;bottom:-180px;background:radial-gradient(circle,rgba(56,189,248,.22),transparent 65%)}

/* ---- the top bar (every page but the app's own home) ---- */
.aqa-bar{position:sticky;top:0;z-index:60;display:flex;align-items:center;gap:10px;padding:calc(10px + env(safe-area-inset-top)) 14px 10px;border-radius:0 0 22px 22px;border-top:0}
.aqa-ib{flex:none;width:46px;height:46px;border-radius:15px;border:1px solid var(--app-hair);background:var(--app-glass2);color:var(--fg);display:grid;place-items:center;cursor:pointer}
.aqa-ib:focus-visible,.aqa-dk:focus-visible,.aqa-plus:focus-visible,.aqa-nv:focus-visible{outline:3px solid var(--app-acc);outline-offset:2px}
.aqa-tt{flex:1;min-width:0;display:flex;flex-direction:column}
.aqa-tt small{font-size:12.5px;color:var(--fg-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.aqa-tt b{font-size:21px;font-weight:800;letter-spacing:-.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--fg)}
.aqa-chip{flex:none;display:inline-flex;align-items:center;gap:7px;height:32px;padding:0 12px;border-radius:99px;font:600 12.5px var(--font-body);background:var(--app-okbg);color:var(--app-ok)}
.aqa-chip i{width:8px;height:8px;border-radius:50%;background:currentColor}
.aqa-chip.off{background:var(--app-warnbg);color:var(--app-warn)}

/* ---- the dock ---- */
.aqa-dock{position:fixed;left:12px;right:12px;bottom:calc(14px + env(safe-area-inset-bottom));z-index:70;height:78px;border-radius:30px;padding:0 8px;display:flex;align-items:center;justify-content:space-between;max-width:560px;margin:0 auto}
.aqa-dk{flex:1;height:62px;border:0;border-radius:20px;background:none;color:var(--fg-muted);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font:600 11.5px var(--font-body);text-decoration:none;cursor:pointer;position:relative}
.aqa-dk.on{color:var(--app-acc);background:var(--app-tint)}
.aqa-dk .aqa-n{position:absolute;top:6px;left:calc(50% + 6px);min-width:18px;height:18px;padding:0 5px;box-sizing:border-box;border-radius:99px;background:var(--app-nc);color:#fff;font:700 10.5px var(--font-body);display:grid;place-items:center}
.aqa-plus{flex:none;width:62px;height:62px;margin:0 4px;border-radius:22px;border:0;color:#fff;background:linear-gradient(135deg,var(--app-acc),var(--app-vio));display:grid;place-items:center;box-shadow:0 16px 28px -12px var(--app-acc);cursor:pointer;transition:transform .2s ease}
.aqa-plus[aria-expanded="true"]{transform:rotate(45deg)}

/* ---- the + menu ---- */
.aqa-veil{position:fixed;inset:0;z-index:65;border:0;background:rgba(5,8,20,.42);cursor:pointer}
.aqa-fan{position:fixed;left:16px;right:16px;bottom:calc(108px + env(safe-area-inset-bottom));z-index:69;max-width:520px;margin:0 auto;padding:12px;border-radius:26px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;background:var(--app-glass2)}
.aqa-fi{display:flex;flex-direction:column;align-items:center;gap:8px;padding:14px 4px;border-radius:18px;color:var(--fg);font:600 13.5px var(--font-body);text-decoration:none}
.aqa-fi:active{background:var(--app-tint)}
.aqa-ico{flex:none;width:50px;height:50px;border-radius:16px;display:grid;place-items:center;background:var(--app-tint);color:var(--app-acc)}

/* ---- the side panel ---- */
.aqa-panel{position:fixed;top:0;bottom:0;left:0;z-index:80;width:min(318px,86vw);display:flex;flex-direction:column;color:#fff;background:linear-gradient(180deg,#0B1030 0%,#121A44 100%);box-shadow:30px 0 70px -30px rgba(0,0,0,.7);transform:translateX(-105%);transition:transform .28s cubic-bezier(.2,.8,.2,1)}
.aqa-panel.open{transform:none}
.aqa-ph{padding:calc(18px + env(safe-area-inset-top)) 16px 16px;display:flex;flex-direction:column;gap:14px;background:linear-gradient(150deg,rgba(59,91,253,.65),rgba(139,92,246,.45))}
.aqa-ph .aqa-x{margin-left:auto;width:44px;height:44px;border-radius:13px;border:1px solid rgba(255,255,255,.3);background:transparent;color:#fff;display:grid;place-items:center;cursor:pointer}
.aqa-av{flex:none;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.2);font-weight:800}
.aqa-pnav{flex:1;overflow-y:auto;padding:6px 10px 12px;-webkit-overflow-scrolling:touch}
.aqa-gh{font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#8C96C4;padding:14px 12px 4px}
.aqa-nv{display:flex;align-items:center;gap:12px;min-height:48px;padding:0 12px;border-radius:13px;color:#C9D2F5;font:500 15px var(--font-body);text-decoration:none}
.aqa-nv.on{background:rgba(123,147,255,.22);color:#fff;font-weight:700}
.aqa-pf{padding:12px 16px calc(16px + env(safe-area-inset-bottom));border-top:1px solid rgba(255,255,255,.1);display:flex;align-items:center;gap:10px;font-size:13px;color:#C9D2F5}
.aqa-pf button{height:40px;padding:0 12px;border-radius:12px;border:1px solid rgba(255,255,255,.25);background:transparent;color:#fff;font:600 13px var(--font-body);cursor:pointer}
.aqa-pveil{position:fixed;inset:0;z-index:79;border:0;background:rgba(5,8,20,.5);cursor:pointer}

/* Before the app's sign-in nothing but the sign-in shows; on the subscribe screen the dock goes
   (its tabs need access) and the side panel stays, for Sign out. */
body.aqa-signin .aqa-dock,body.aqa-signin .aqa-fan,body.aqa-signin .aqa-veil,body.aqa-signin .aqa-panel,body.aqa-signin .aqa-pveil,
body.aqa-nopay .aqa-dock,body.aqa-nopay .aqa-fan,body.aqa-nopay .aqa-veil{display:none!important}
html.aq-app body.aqa-signin{padding-left:0;padding-bottom:0}

/* Closed means gone: these set their own display, which outranks the hidden attribute. */
.aqa-fan[hidden],.aqa-veil[hidden],.aqa-pveil[hidden]{display:none!important}
/* The app's home shows the trial countdown in its own strip, the side panel and Me. */
body[data-page="app"] #aqTrialBar,body.aqa-panel-open #aqTrialBar,body.aqa-panel-open .aq-sync{display:none!important}

/* things that float at the foot of a page sit above the dock */
html.aq-app #aqTrialBar,html.aq-app .aq-sync{bottom:calc(108px + env(safe-area-inset-bottom))!important}
html.aq-app #aqPhoneTip,html.aq-app .aq-themehint,html.aq-app .aq-theme-tip{display:none!important}

/* a website page inside the app: larger type and touch-sized controls */
html.aq-app .page-head{padding-top:14px}
html.aq-app .page-head h1{font-size:clamp(26px,7vw,34px)}
html.aq-app .lead{font-size:16px}
html.aq-app input,html.aq-app select,html.aq-app textarea{font-size:16px}

/* TABLETS AND COMPUTERS: the side panel stays open as a rail and the page sits beside it, as on
   the website's own workspace; the dock stays, centred over the page, for + and the tabs. */
@media (min-width:1024px){
  .aqa-panel{transform:none;width:300px}
  .aqa-pveil{display:none!important}
  .aqa-panel .aqa-x,.aqa-bar .aqa-menu{display:none}
  html.aq-app body{padding-left:300px}
  .aqa-dock{left:312px}
  .aqa-fan{left:316px}
  html.aq-app #aqTrialBar{left:calc(50% + 150px)!important}
  html.aq-app .aq-sync{left:316px!important}
}
@media (prefers-reduced-motion:reduce){.aqa-panel,.aqa-plus{transition:none}}
@media print{.aqa-bar,.aqa-dock,.aqa-panel,.aqa-fan,.aqa-veil,.aqa-pveil,.aqa-aurora{display:none!important}html.aq-app body{padding:0!important}}
/* Changes by your team (4 November 2026): on a phone the website's list at the top of every
   workspace page, and its note under the header's bell, pushed each page's own work off the
   screen. In the app they are in Alerts instead (app/app.js loadChanges), counted in its badge. */
html.aq-app #wsNotices,html.aq-app #aqBellPop,html.aq-app #aqBellPanel{display:none!important}
/* "Desktop site" is on (app/chrome.js desktopSite): the page is 980 px wide on a phone, so this
   notice is sized in vw (100vw = the phone's whole width) to read at full size anyway */
.aqa-dsite{position:fixed;inset:0;z-index:200;display:flex;align-items:flex-start;justify-content:center;padding:6vw 4vw;background:rgba(11,16,40,.55);overflow:auto}
.aqa-ds-in{width:100%;max-width:92vw;box-sizing:border-box;padding:6vw;border-radius:5vw;background:#fff;color:#141B3A;box-shadow:0 2vw 8vw rgba(10,20,60,.35);font-family:var(--font-sans,Inter,system-ui,sans-serif)}
.aqa-ds-in h2{margin:0 0 3vw;font-size:7vw;line-height:1.2;font-weight:800;letter-spacing:-.01em}
.aqa-ds-in p,.aqa-ds-in li{font-size:4.8vw;line-height:1.5;margin:0 0 3vw}
.aqa-ds-in ol{margin:0 0 3vw;padding-left:6vw}
.aqa-ds-in b{font-weight:700}
.aqa-ds-go{display:block;width:100%;min-height:13vw;margin-top:2vw;border:0;border-radius:4vw;font-family:inherit;font-size:5vw;font-weight:700;line-height:1.2;color:#fff;background:linear-gradient(135deg,#3B5BFD,#8B5CF6);cursor:pointer}
html[data-theme="dark"] .aqa-ds-in{background:#121933;color:#EAF0FF}
