/* AQcredix — the app's home: sign-in, Home, Sections, Alerts, Me, and the "Get the app" page
 * (4 November 2026; app/app.js). The approved design: the gradient header and search of the
 * owner's layout 3, the widgets of layout 11, the glass of layout 4, the side panel of layout 2.
 * Site tokens for text and ground, so it follows light and dark. */
body[data-page="app"]{--app-acc:#3B5BFD;--app-vio:#8B5CF6;--app-glass:rgba(255,255,255,.68);--app-glass2:rgba(255,255,255,.9);--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);background:var(--bg);min-height:100vh}
[data-theme="dark"] body[data-page="app"]{--app-acc:#7B93FF;--app-vio:#A78BFA;--app-glass:rgba(22,28,52,.6);--app-glass2:rgba(26,32,58,.9);--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)}
body[data-page="app"] .aqa-glass,.aqh .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);border-radius:24px;box-shadow:var(--app-shadow)}
.aqh{color:var(--fg);font-family:var(--font-body);font-size:16px}
.aqh-wrap{max-width:1100px;margin:0 auto}
.aqh-load{min-height:60vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;color:var(--fg-muted);font-weight:600}
.aqh-spin{width:34px;height:34px;border-radius:50%;border:3px solid var(--app-tint);border-top-color:var(--app-acc);animation:aqhSpin .8s linear infinite}
@keyframes aqhSpin{to{transform:rotate(360deg)}}

/* ---- the gradient header (layout 3) ---- */
.aqh-hdr{position:relative;padding:calc(18px + env(safe-area-inset-top)) 16px 66px;border-radius:0 0 32px 32px;background:linear-gradient(140deg,#2337C4 0%,#3B5BFD 48%,#8B5CF6 100%);color:#fff;display:flex;flex-direction:column;gap:14px}
.aqh-hdr .aqh-wrap{width:100%;display:flex;flex-direction:column;gap:14px}
.aqh-hrow{display:flex;align-items:center;gap:10px}
.aqh-ib{flex:none;width:46px;height:46px;border-radius:15px;border:1px solid rgba(255,255,255,.32);background:rgba(255,255,255,.14);color:#fff;display:grid;place-items:center;cursor:pointer;position:relative;text-decoration:none}
.aqh-badge{position:absolute;top:-6px;right:-6px;min-width:21px;height:21px;padding:0 5px;box-sizing:border-box;border-radius:99px;background:#FF5A55;color:#fff;font:700 11px var(--font-body);display:grid;place-items:center;border:2px solid #3B5BFD}
.aqh-hi{flex:1;min-width:0}
.aqh-hi small{display:block;font-size:13px;opacity:.9;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.aqh-hi b{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:21px;line-height:1.2;font-weight:800;letter-spacing:-.01em}
.aqh-srch{display:flex;align-items:center;gap:10px;height:54px;padding:0 10px 0 16px;border-radius:18px;background:#fff;color:#4B5375;font:500 15.5px var(--font-body);text-decoration:none}
.aqh-srch span{flex:1}
.aqh-srch i{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:#EEF1FF;color:#3B5BFD}
.aqh-chip{align-self:flex-start;display:inline-flex;align-items:center;gap:7px;height:30px;padding:0 12px;border-radius:99px;font:600 12.5px var(--font-body);background:rgba(255,255,255,.16);color:#fff}
.aqh-chip i{width:8px;height:8px;border-radius:50%;background:#4ADE9B}
.aqh-chip.off i{background:#F2B04A}

/* ---- the body ---- */
.aqh-body{position:relative;margin-top:-48px;padding:0 14px 24px;display:flex;flex-direction:column;gap:16px}
.aqh-pad{padding:6px 14px 24px;display:flex;flex-direction:column;gap:14px}

/* ---- widgets (layout 11) ---- */
.aqh-bento{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.aqh-cell{position:relative;display:flex;min-width:0}
.aqh-cell.wide{grid-column:span 2}
.aqh-w{flex:1;min-width:0;position:relative;display:flex;flex-direction:column;gap:6px;padding:16px;border-radius:26px;text-align:left;color:var(--fg);text-decoration:none;overflow:hidden;min-height:122px;box-sizing:border-box}
.aqh-w.glass{background:var(--app-glass2)}
.aqh-w .lb{font-size:13px;font-weight:600;color:var(--fg-muted)}
.aqh-w .big{font:700 30px var(--font-mono);letter-spacing:-.02em;line-height:1.1}
.aqh-w .sub{font-size:13px;color:var(--fg-muted);line-height:1.4}
.aqh-w .sub.ok{color:var(--app-ok);font-weight:700}.aqh-w .sub.nc{color:var(--app-nc);font-weight:700}.aqh-w .sub.warn{color:var(--app-warn);font-weight:700}
.aqh-w.go{border:0;color:#fff;background:linear-gradient(140deg,#3B5BFD,#8B5CF6);box-shadow:0 18px 32px -20px #3B5BFD}
.aqh-w.rep{border:0;color:#fff;background:linear-gradient(140deg,#D63B36,#B02A26);box-shadow:0 18px 32px -20px #B02A26}
.aqh-w.go b,.aqh-w.rep b{font-size:18px;margin-top:auto}
.aqh-w.go .sub,.aqh-w.rep .sub{color:rgba(255,255,255,.92)}
.aqh-ring{display:flex;flex-direction:row;align-items:center;gap:16px}
.aqh-row2{display:flex;justify-content:space-between;gap:10px;font-size:15px;padding:3px 0}
.aqh-row2 span{font-weight:700;white-space:nowrap}
.aqh-rm{position:absolute;top:-7px;right:-7px;width:32px;height:32px;border-radius:50%;border:2px solid var(--bg);background:var(--app-nc);color:#fff;display:grid;place-items:center;cursor:pointer;z-index:2}
.aqh-ghost{height:50px;border-radius:16px;border:1px solid var(--app-hair);background:var(--app-glass2);color:var(--fg);font:600 15px var(--font-body);cursor:pointer;padding:0 16px}
.aqh-ghost.acc{color:var(--app-acc)}

/* ---- section tiles (layout 3) ---- */
.aqh-sec{padding:14px 8px 8px}
.aqh-sec h3{margin:0 10px 10px;font-size:15.5px;font-weight:800;display:flex;justify-content:space-between;align-items:center;gap:8px}
.aqh-sec h3 a{color:var(--app-acc);font-size:14px;font-weight:700;min-height:44px;display:flex;align-items:center;text-decoration:none}
.aqh-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:2px}
.aqh-tile{display:flex;flex-direction:column;align-items:center;gap:7px;padding:6px 2px 8px;border-radius:16px;color:var(--fg);font:600 12.5px/1.25 var(--font-body);text-align:center;text-decoration:none;min-height:88px;word-break:break-word}
.aqh-tile i{width:56px;height:56px;border-radius:18px;display:grid;place-items:center;background:var(--app-glass2);border:1px solid var(--app-edge);color:var(--app-acc);box-shadow:0 10px 20px -14px rgba(11,16,48,.45)}
.aqh-tile:active i{transform:scale(.96)}
.aqh-strip{display:flex;align-items:center;gap:12px;padding:14px 16px;color:var(--fg);text-decoration:none}
.aqh-strip b{display:block;font-size:15px}
.aqh-strip small{display:block;font-size:13px;color:var(--fg-muted)}

/* ---- lists, cards, forms ---- */
.aqh-search{display:flex;align-items:center;gap:10px;height:56px;padding:0 16px;border-radius:18px;background:var(--app-glass2)}
.aqh-search input{flex:1;min-width:0;border:0;outline:none;background:none;color:var(--fg);font:500 16px var(--font-body)}
.aqh-card{padding:18px;display:flex;flex-direction:column;gap:12px}
.aqh-list{padding:4px 0;overflow:hidden}
.aqh-item{display:flex;align-items:center;gap:12px;min-height:62px;padding:8px 16px;color:var(--fg);text-decoration:none;border-bottom:1px solid var(--app-hair)}
.aqh-item:last-child{border-bottom:0}
.aqh-item b{display:block;font-size:15.5px;line-height:1.3}
.aqh-item small{display:block;font-size:13.5px;color:var(--fg-muted);line-height:1.4;margin-top:2px}
.aqh-dot{flex:none;width:10px;height:10px;border-radius:50%}
.aqh-ico{flex:none;width:44px;height:44px;border-radius:14px;display:grid;place-items:center;background:var(--app-tint);color:var(--app-acc)}
.aqh-empty{padding:22px;text-align:center;color:var(--fg-muted);font-size:15px;line-height:1.5}
.aqh-cta{display:flex;align-items:center;justify-content:center;gap:10px;min-height:56px;padding:0 18px;border-radius:18px;border:0;cursor:pointer;font:700 16.5px var(--font-body);color:#fff;background:linear-gradient(135deg,#3B5BFD,#8B5CF6);box-shadow:0 16px 30px -16px #3B5BFD;text-decoration:none;width:100%;box-sizing:border-box}
.aqh-cta[disabled]{opacity:.6;cursor:wait}
.aqh-fld{display:flex;flex-direction:column;gap:6px}
.aqh-fld label{font-size:14px;font-weight:600}
.aqh-fld input{height:54px;border-radius:15px;border:1.5px solid var(--app-hair);background:var(--app-glass2);color:var(--fg);padding:0 16px;font:500 16px var(--font-body);outline:none}
.aqh-fld input:focus{border-color:var(--app-acc);box-shadow:0 0 0 4px var(--app-tint)}
.aqh-err{padding:12px 14px;border-radius:14px;background:var(--app-ncbg);color:var(--app-nc);font-size:14px;line-height:1.45}
.aqh-ok{padding:12px 14px;border-radius:14px;background:var(--app-okbg);color:var(--app-ok);font-size:14px;line-height:1.45}
.aqh-link{align-self:center;min-height:44px;display:flex;align-items:center;font-size:14.5px;font-weight:600;color:var(--app-acc);background:none;border:0;cursor:pointer;text-decoration:none}
.aqh-sw{flex:none;width:56px;height:32px;border-radius:99px;border:0;padding:3px;cursor:pointer;display:flex;align-items:center;background:rgba(75,83,117,.35)}
.aqh-sw span{width:26px;height:26px;border-radius:50%;background:#fff;box-shadow:0 2px 6px rgba(0,0,0,.25);transition:transform .2s}
.aqh-sw[aria-checked="true"]{background:linear-gradient(135deg,#3B5BFD,#8B5CF6)}
.aqh-sw[aria-checked="true"] span{transform:translateX(24px)}
.aqh-bar{height:10px;border-radius:99px;background:var(--app-tint);overflow:hidden}
.aqh-bar i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#3B5BFD,#8B5CF6)}

/* ---- sign-in and get-the-app ---- */
.aqh-auth{min-height:100vh;display:flex;flex-direction:column}
.aqh-auth .aqh-hdr{align-items:center;text-align:center;padding-top:calc(48px + env(safe-area-inset-top));padding-bottom:78px}
.aqh-logo{width:86px;height:86px;border-radius:27px;display:grid;place-items:center;background:#fff;box-shadow:0 18px 36px -16px rgba(0,0,0,.45)}
.aqh-auth h1{margin:0;font-size:30px;font-weight:800;letter-spacing:-.02em;color:#fff}
.aqh-auth .aqh-hdr p{margin:0;font-size:15.5px;opacity:.93;line-height:1.45;max-width:320px}
.aqh-authcard{margin:-60px 18px 0;padding:22px 18px;display:flex;flex-direction:column;gap:16px;background:var(--app-glass2)}
.aqh-authcard h2{margin:0;font-size:21px;font-weight:800}
.aqh-note{margin:auto 22px 0;padding:20px 0 calc(22px + env(safe-area-inset-bottom));text-align:center;font-size:13.5px;color:var(--fg-muted);line-height:1.55}
.aqh-steps{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:6px;font-size:15px;line-height:1.5;color:var(--fg-muted)}
.aqh-steps b{color:var(--fg)}
@media (min-width:560px){.aqh-authcard{width:100%;max-width:440px;margin-left:auto;margin-right:auto;box-sizing:border-box}}

/* ---- wider screens: more columns, never stretched ---- */
@media (min-width:700px){
  .aqh-bento{grid-template-columns:repeat(4,minmax(0,1fr))}
  .aqh-cell.wide{grid-column:span 2}
  .aqh-tiles{grid-template-columns:repeat(6,minmax(0,1fr))}
}
@media (min-width:1280px){.aqh-tiles{grid-template-columns:repeat(8,minmax(0,1fr))}}
/* the side panel is always open beside the page from 1024px, so no button opens it */
@media (min-width:1024px){html.aq-app .aqh-hdr .aqa-menu,html.aq-app .aqa-bar .aqa-menu{display:none}}
@media (prefers-reduced-motion:reduce){.aqh-spin{animation:none}.aqh-sw span{transition:none}}
.aqh-more{margin:4px 16px 8px;font-size:13.5px;color:var(--fg-muted)}
