/* ==========================================================================
   qais-shots.css: living product frames for the qais.app site.
   Each frame is the real QRM screen drawn in HTML/CSS (DM Sans + Instrument
   Serif, the app's light and dark tokens), rendered by qais-shots.js from
   <div class="qs" data-qs="<screen>">, scaled to its box so it stays crisp,
   with one live behavior per frame. Follows <html data-theme="dark|light">.
   ========================================================================== */
@font-face { font-family: "QRM DM Sans"; font-weight: 400; font-display: swap; src: url(fonts/qrm-dm-sans-400.ttf) format("truetype"); }
@font-face { font-family: "QRM DM Sans"; font-weight: 500; font-display: swap; src: url(fonts/qrm-dm-sans-500.ttf) format("truetype"); }
@font-face { font-family: "QRM DM Sans"; font-weight: 600 700; font-display: swap; src: url(fonts/qrm-dm-sans-600.ttf) format("truetype"); }
@font-face { font-family: "QRM Instrument Serif"; font-weight: 400; font-display: swap; src: url(fonts/qrm-instrument-serif-400.ttf) format("truetype"); }

/* QRM tokens, measured from the running app (Midnight and Light) */
.qs {
  --q-bg: #090909; --q-panel: #171717; --q-raise: #1F1F1F; --q-head: #232323;
  --q-line: rgba(232, 232, 232, .09); --q-soft: rgba(232, 232, 232, .06); --q-soft-2: rgba(232, 232, 232, .1);
  --q-fg: #E8E8E8; --q-fg2: #9A9595; --q-fg3: #6F6B6B;
  --q-blue: #3269C4; --q-blue-t: #7AA7F0; --q-blue-s: rgba(96, 165, 250, .14);
  --q-red: #F87171; --q-red-s: rgba(248, 113, 113, .14);
  --q-orange: #FB923C; --q-orange-s: rgba(251, 146, 60, .14);
  --q-amber: #FACC15; --q-amber-s: rgba(250, 204, 21, .13);
  --q-green: #4ADE80; --q-green-s: rgba(74, 222, 128, .13); --q-green-d: #16A34A;
  --q-purple: #A78BFA; --q-purple-s: rgba(167, 139, 250, .15);
  --q-teal: #2DD4BF; --q-teal-s: rgba(45, 212, 191, .13);
  --q-pink: #F472B6;
  --q-ph-bg: #121212; --q-ph-card: #1C1C1C; --q-ph-dock: rgba(40, 40, 40, .92); --q-ph-chip: #E8E8E8; --q-ph-chip-fg: #121212;
  --q-win-line: rgba(255, 255, 255, .12); --q-win-bar: #101113; --q-win-shadow: 0 40px 100px -20px rgba(0, 0, 0, .7), 0 2px 8px rgba(0, 0, 0, .4);
  --q-hud: #A6AAB1; --q-wait: #FFB224; --q-done: #3FBF7F;
  --q-sans: "QRM DM Sans", "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --q-serif: "QRM Instrument Serif", "Instrument Serif", Georgia, serif;
  --q-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --q-ease: cubic-bezier(.22, 1, .36, 1);
  display: block; width: 100%; position: relative; color-scheme: dark;
}
[data-theme="light"] .qs {
  --q-bg: #E1E1DF; --q-panel: #FFFFFF; --q-raise: #FFFFFF; --q-head: #F1F1F1;
  --q-line: rgba(26, 26, 26, .09); --q-soft: rgba(26, 26, 26, .06); --q-soft-2: rgba(26, 26, 26, .1);
  --q-fg: #1A1A1A; --q-fg2: #6B6B6B; --q-fg3: #8E8E8E;
  --q-blue: #3A6FD8; --q-blue-t: #2F62C8; --q-blue-s: rgba(37, 99, 235, .1);
  --q-red: #DC2626; --q-red-s: rgba(220, 38, 38, .1);
  --q-orange: #EA6C10; --q-orange-s: rgba(249, 115, 22, .12);
  --q-amber: #CA8A04; --q-amber-s: rgba(234, 179, 8, .14);
  --q-green: #15803D; --q-green-s: rgba(22, 163, 74, .12); --q-green-d: #16A34A;
  --q-purple: #7C3AED; --q-purple-s: rgba(124, 58, 237, .1);
  --q-teal: #0D9488; --q-teal-s: rgba(13, 148, 136, .1);
  --q-pink: #DB2777;
  --q-ph-bg: #F7F6F3; --q-ph-card: #FFFFFF; --q-ph-dock: rgba(250, 250, 248, .94); --q-ph-chip: #23231F; --q-ph-chip-fg: #FFFFFF;
  --q-win-line: rgba(12, 14, 18, .14); --q-win-bar: #ECEBE7; --q-win-shadow: 0 40px 90px -30px rgba(12, 14, 18, .35), 0 2px 8px rgba(12, 14, 18, .08);
  --q-hud: #5A5E66; --q-wait: #9A5B00; --q-done: #17633D;
  color-scheme: light;
}

/* hold the frame's space before the script draws it (no layout shift) */
.qs:empty { aspect-ratio: 16 / 10.6; }
.qs--phone:empty { aspect-ratio: 390 / 778; }
.qs[data-qs="skills"]:empty { aspect-ratio: 8 / 9.5; }

/* ---------- the window (the reference .win: a browser frame, live HUD) ---------- */
.qs-win { container-type: inline-size; border: 1px solid var(--q-win-line); border-radius: 18px; overflow: hidden; background: var(--q-bg); box-shadow: var(--q-win-shadow); }
.qs-bar { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; background: var(--q-win-bar); border-bottom: 1px solid var(--q-win-line); }
.qs-bar > i { width: 9px; height: 9px; border-radius: 50%; background: var(--q-soft-2); flex: none; }
.qs-url { margin-left: 8px; font: 11.5px/1 var(--q-mono); color: var(--q-hud); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.qs-hud { margin-left: auto; min-width: 0; overflow: hidden; display: flex; align-items: center; gap: 7px; font: 11.5px/1 var(--q-mono); color: var(--q-hud); white-space: nowrap; transition: color .4s var(--q-ease); }
.qs-hud::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--q-done); box-shadow: 0 0 0 0 rgba(63, 191, 127, .5); animation: qs-pulse 2s infinite; flex: none; }
.qs-hud.is-wait { color: var(--q-wait); }
.qs-hud.is-wait::before { background: var(--q-wait); box-shadow: 0 0 0 0 rgba(255, 178, 36, .5); }
.qs-hud.is-done { color: var(--q-done); }
@keyframes qs-pulse { 0% { box-shadow: 0 0 0 0 rgba(63, 191, 127, .45); } 70% { box-shadow: 0 0 0 7px rgba(63, 191, 127, 0); } 100% { box-shadow: 0 0 0 0 rgba(63, 191, 127, 0); } }
@container (max-width: 620px) { .qs-url { display: none; } .qs-hud { margin-left: 8px; } }
.qs-hud span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* the scaled stage: drawn at design size, scaled to the box (crisp text at any size) */
.qs-view { position: relative; overflow: hidden; aspect-ratio: var(--qs-ar, 16 / 10); background: var(--q-bg); }
.qs-stage { position: absolute; top: 0; left: 0; transform-origin: 0 0; transform: scale(var(--qs-s, .5)); }
.qs-stage, .qs-stage * { box-sizing: border-box; }
.qs-stage { font-family: var(--q-sans); font-size: 13px; line-height: 1.35; color: var(--q-fg); -webkit-font-smoothing: antialiased; font-feature-settings: "tnum" 0; }
.qs-stage svg { display: inline-block; flex: none; width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; max-width: none; }
.qs-stage b { font-weight: 600; }
.qs-stage ul { list-style: none; margin: 0; padding: 0; }

/* ---------- desktop shell: top bar, nav rail, tab strip, page panel ---------- */
.qa { display: grid; grid-template-rows: 52px minmax(0, 1fr); width: 100%; height: 100%; background: var(--q-bg); padding: 0 10px 10px; gap: 2px; }
.qa-top { display: grid; grid-template-columns: 172px 1fr auto; align-items: center; gap: 16px; padding: 0 4px; }
.qa-brand { display: flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.qa-brand svg { width: 24px; height: 24px; fill: currentColor; stroke: none; }
.qa-mid { display: flex; align-items: center; gap: 6px; justify-self: center; width: 100%; max-width: 640px; }
.qa-ib { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--q-soft); color: var(--q-fg2); font-size: 15px; flex: none; }
.qa-search { flex: 1; display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 100px; background: var(--q-soft); color: var(--q-fg2); font-size: 12.5px; white-space: nowrap; overflow: hidden; }
.qa-search svg { font-size: 13px; }
.qa-kbd { margin-left: auto; display: flex; gap: 3px; }
.qa-kbd span { font: 10px/1 var(--q-mono); padding: 3px 5px; border-radius: 4px; background: var(--q-soft-2); color: var(--q-fg2); }
.qa-me { display: flex; align-items: center; gap: 8px; }
.qa-av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 600; background: var(--q-soft-2); color: var(--q-fg); flex: none; position: relative; }
.qa-av.q { background: linear-gradient(140deg, #2A9D8F, #1D6F86); color: #fff; }
.qa-user { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px 0 3px; border-radius: 100px; background: var(--q-soft); font-size: 13px; font-weight: 500; }
.qa-user .qa-av::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 8px; height: 8px; border-radius: 50%; background: var(--q-green-d); border: 2px solid var(--q-bg); }

.qa-body { display: grid; grid-template-columns: 172px minmax(0, 1fr); gap: 10px; min-height: 0; }
.qa-nav { display: flex; flex-direction: column; gap: 1px; padding: 6px; border-radius: 16px; background: var(--q-panel); border: 1px solid var(--q-line); min-height: 0; overflow: hidden; }
.qa-org { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; background: var(--q-soft); margin-bottom: 4px; }
.qa-org i { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: var(--q-soft-2); font-style: normal; font-size: 13px; color: var(--q-fg2); flex: none; }
.qa-org b { display: block; font-size: 12px; line-height: 1.2; }
.qa-org small { display: block; font-size: 10.5px; color: var(--q-fg2); line-height: 1.2; }
.qa-navsearch { display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px; border-radius: 100px; background: var(--q-soft); color: var(--q-fg3); font-size: 11px; margin-bottom: 6px; }
.qa-ni { display: flex; align-items: center; gap: 9px; height: 28px; padding: 0 9px; border-radius: 7px; font-size: 12.5px; color: var(--q-fg2); white-space: nowrap; }
.qa-ni svg { font-size: 13px; color: var(--q-fg2); }
.qa-ni .qa-chev { margin-left: auto; font-size: 11px; opacity: .7; }
.qa-ni .qa-dot { margin-left: auto; width: 7px; height: 7px; border-radius: 50%; background: var(--q-red); opacity: .8; }
.qa-ni.open { background: var(--q-soft); color: var(--q-fg); font-weight: 600; }
.qa-ni.open svg { color: var(--q-blue-t); }
.qa-sub { margin: 2px 0 4px 14px; padding-left: 8px; border-left: 1px solid var(--q-line); display: grid; gap: 1px; }
.qa-sub .qa-ni { height: 26px; font-size: 12px; }
.qa-sub .qa-ni.on { background: var(--q-soft); color: var(--q-fg); font-weight: 600; }
.qa-sub .qa-ni.on svg { color: var(--q-blue-t); }
.qa-navfoot { margin-top: auto; border-top: 1px solid var(--q-line); padding-top: 6px; display: grid; gap: 1px; }

.qa-main { display: grid; grid-template-rows: 40px minmax(0, 1fr); gap: 8px; min-height: 0; }
.qa-tabs { display: flex; align-items: center; gap: 4px; padding: 0 6px 0 14px; border-radius: 14px; background: var(--q-panel); border: 1px solid var(--q-line); font-size: 12.5px; white-space: nowrap; overflow: hidden; }
.qa-tabs > b { display: flex; align-items: center; gap: 7px; font-size: 13.5px; margin-right: 8px; padding-right: 12px; border-right: 1px solid var(--q-line); height: 20px; }
.qa-tabs > b svg { color: var(--q-blue-t); }
.qa-tab { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 9px; color: var(--q-fg2); }
.qa-tab svg { font-size: 12px; }
.qa-tab.on { background: var(--q-blue-s); color: var(--q-blue-t); font-weight: 500; }
.qa-tabs .qa-plus { color: var(--q-fg3); padding: 0 6px; }
.qa-page { position: relative; border-radius: 18px; background: var(--q-panel); border: 1px solid var(--q-line); padding: 18px 20px; overflow: hidden; display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.qa-page::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 56px; background: linear-gradient(0deg, var(--q-panel), transparent); pointer-events: none; }

/* page header */
.qh { display: flex; align-items: flex-start; gap: 16px; }
.qh-t { min-width: 0; }
.qh h4 { display: flex; align-items: center; gap: 10px; margin: 0; font: 400 31px/1.05 var(--q-serif); letter-spacing: -.01em; color: var(--q-fg); }
.qh h4 .qh-ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; color: #fff; background: var(--q-blue); }
.qh h4 .qh-ic.plain { background: none; color: var(--q-blue-t); font-size: 26px; }
.qh p { margin: 5px 0 0; font-size: 13px; color: var(--q-fg2); }
.qh-act { margin-left: auto; display: flex; align-items: center; gap: 6px; flex: none; }
.qb { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 100px; background: var(--q-soft); color: var(--q-fg); font-size: 13px; font-weight: 500; white-space: nowrap; }
.qb svg { font-size: 13px; }
.qb.ico { width: 34px; padding: 0; justify-content: center; color: var(--q-fg2); }
.qb.pri { background: var(--q-blue); color: #fff; }
.qb.sm { height: 28px; padding: 0 11px; font-size: 12px; }
.qb.red { background: #DC2626; color: #fff; }

/* stat cards */
.qk { display: grid; grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); gap: 8px; }
.qk-c { display: flex; align-items: center; gap: 11px; padding: 12px 14px; border-radius: 12px; background: var(--q-soft); border: 1px solid transparent; min-width: 0; transition: background .5s var(--q-ease), border-color .5s var(--q-ease); }
.qk-c.flash { border-color: var(--q-blue-t); background: var(--q-blue-s); }
.qk-i { width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; color: #fff; font-size: 17px; flex: none; background: var(--c, var(--q-blue)); }
.qk-i.ghost { background: var(--q-soft-2); color: var(--q-fg); }
.qk-c > div > span { display: block; font-size: 11.5px; font-weight: 500; color: var(--q-fg2); line-height: 1.2; }
.qk-c > div > strong { display: block; font-size: 20px; font-weight: 600; line-height: 1.25; color: var(--v, var(--q-fg)); font-variant-numeric: tabular-nums; white-space: nowrap; }
.qk-c > div > small { display: block; font-size: 11px; color: var(--q-fg2); line-height: 1.2; }

/* toolbar: search, segmented chips, filters, views */
.qt { display: flex; align-items: center; gap: 8px; }
.qt-s { flex: 1; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 100px; background: var(--q-soft); color: var(--q-fg2); font-size: 13px; min-width: 0; white-space: nowrap; overflow: hidden; }
.qt-s .typed { color: var(--q-fg); }
.qt-s .caret { display: inline-block; width: 1px; height: 15px; background: var(--q-blue-t); margin-left: -6px; animation: qs-blink 1s steps(1) infinite; }
@keyframes qs-blink { 50% { opacity: 0; } }
.qseg { display: flex; align-items: center; gap: 2px; height: 36px; padding: 3px; border-radius: 100px; background: var(--q-soft); font-size: 12.5px; white-space: nowrap; }
.qseg span { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 100px; color: var(--q-fg2); }
.qseg span.on { background: var(--q-panel); color: var(--q-fg); font-weight: 500; box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.qseg em { font-style: normal; font-size: 10.5px; padding: 1px 6px; border-radius: 100px; background: var(--q-soft-2); color: var(--q-fg2); font-variant-numeric: tabular-nums; }
.qseg svg { font-size: 12px; }

/* table */
.qtbl { border-radius: 14px; border: 1px solid var(--q-line); overflow: hidden; min-height: 0; flex: 1; display: flex; flex-direction: column; }
.qtbl-top { display: flex; align-items: center; gap: 8px; padding: 9px 14px; font-size: 12.5px; color: var(--q-fg2); border-bottom: 1px solid var(--q-line); }
.qtbl-top .qb { height: 30px; font-size: 12px; }
.qtbl-top .r { margin-left: auto; display: flex; gap: 6px; }
.qtbl table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.qtbl th { text-align: left; font-size: 11.5px; font-weight: 600; color: var(--q-fg2); background: var(--q-head); padding: 8px 10px; white-space: nowrap; overflow: hidden; }
.qtbl td { padding: 9px 10px; border-top: 1px solid var(--q-line); font-size: 12.5px; vertical-align: middle; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qtbl tr { transition: background .6s var(--q-ease); }
.qtbl tr.hl td { background: var(--q-blue-s); }
.qtbl tr.in { animation: qs-row-in .7s var(--q-ease) both; }
@keyframes qs-row-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.qcb { display: inline-block; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--q-fg3); vertical-align: middle; }
.qpill { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 100px; font-size: 11px; font-weight: 600; white-space: nowrap; color: var(--c, var(--q-fg2)); background: var(--s, var(--q-soft)); transition: color .4s var(--q-ease), background .4s var(--q-ease); }
.qpill.caps { text-transform: uppercase; letter-spacing: .04em; font-size: 10.5px; }
.qpill.solid { background: var(--q-green-d); color: #fff; }
.p-blue { --c: var(--q-blue-t); --s: var(--q-blue-s); }
.p-red { --c: var(--q-red); --s: var(--q-red-s); }
.p-orange { --c: var(--q-orange); --s: var(--q-orange-s); }
.p-amber { --c: var(--q-amber); --s: var(--q-amber-s); }
.p-green { --c: var(--q-green); --s: var(--q-green-s); }
.p-purple { --c: var(--q-purple); --s: var(--q-purple-s); }
.p-teal { --c: var(--q-teal); --s: var(--q-teal-s); }
.p-gray { --c: var(--q-fg2); --s: var(--q-soft); }
.qchip { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px 0 3px; border-radius: 100px; background: var(--q-soft); font-size: 12px; font-weight: 500; white-space: nowrap; }
.qchip i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 8.5px; font-weight: 600; background: var(--q-soft-2); color: var(--q-fg2); }
.qini { width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 10.5px; font-weight: 600; background: var(--q-soft-2); color: var(--q-fg2); vertical-align: middle; margin-right: 10px; }
.qbar { display: flex; height: 8px; border-radius: 100px; background: var(--q-soft-2); overflow: hidden; }
.qbar i { display: block; height: 100%; width: var(--w, 0%); background: var(--c, var(--q-blue)); }
/* single fills reveal with clip-path, never width (layoutMotionPolicy); stacked segments size by width and snap */
.qbar.round i { width: 100%; border-radius: 100px; clip-path: inset(0 calc(100% - var(--w, 0%)) 0 0 round 100px); transition: clip-path 1.1s var(--q-ease); }
.q-acts { display: flex; gap: 12px; color: var(--q-fg2); font-size: 14px; }

/* cards (tickets, agents, apps, atlas, skills) */
.qgrid { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 12px; }
.qcard { position: relative; border-radius: 14px; border: 1px solid var(--q-line); background: var(--q-raise); padding: 14px; min-width: 0; transition: border-color .5s var(--q-ease), background .5s var(--q-ease), box-shadow .5s var(--q-ease); }
.qcard.in { animation: qs-card-in .7s var(--q-ease) both; }
@keyframes qs-card-in { from { opacity: 0; transform: translateY(-10px) scale(.98); } to { opacity: 1; transform: none; } }
.qcard.hl { border-color: var(--q-blue-t); box-shadow: 0 0 0 3px var(--q-blue-s); }
.qcard.crit { border-color: var(--q-red); background: var(--q-red-s); }
.qcard h5 { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.3; }
.qcard p { margin: 4px 0 0; font-size: 12px; color: var(--q-fg2); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.qcard .row { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
.qcard .sp { margin-left: auto; }
.qtag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 100px; font-size: 11px; border: 1px solid currentColor; color: var(--c, var(--q-fg2)); white-space: nowrap; }
.qic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-size: 18px; background: var(--s, var(--q-soft)); color: var(--c, var(--q-fg2)); flex: none; }
.qmono { font-family: var(--q-mono); font-size: 11px; }

/* charts */
.qpanel { border-radius: 14px; border: 1px solid var(--q-line); padding: 14px 16px; min-width: 0; background: var(--q-raise); }
.qpanel h6 { margin: 0; font-size: 14px; font-weight: 600; }
.qpanel h6 small { font-size: 11.5px; font-weight: 400; color: var(--q-fg2); margin-left: 6px; }
.qpanel > p { margin: 3px 0 10px; font-size: 11.5px; color: var(--q-fg2); }
.qstage { display: grid; grid-template-columns: 112px minmax(0, 1fr) 82px; align-items: center; gap: 10px; height: 25px; font-size: 12px; }
.qstage .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.qstage .n b { margin-right: 6px; }
.qstage.wait { color: var(--q-amber); }
.qcol { display: flex; align-items: flex-end; gap: 3px; height: var(--h, 120px); }
.qcol i { display: block; flex: 1; align-self: stretch; border-radius: 3px 3px 0 0; background: var(--c); clip-path: inset(calc(100% - var(--v, 0%)) 0 0 0 round 3px 3px 0 0); transition: clip-path 1.1s var(--q-ease); }

/* toast (the app's Sonner-style notice) */
.qtoast { position: absolute; right: 18px; bottom: 18px; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; background: var(--q-raise); border: 1px solid var(--q-line); box-shadow: 0 12px 32px rgba(0, 0, 0, .28); font-size: 12.5px; opacity: 0; transform: translateY(10px); transition: opacity .4s var(--q-ease), transform .4s var(--q-ease); }
.qtoast.show { opacity: 1; transform: none; }
.qtoast svg { color: var(--q-green); font-size: 15px; }

/* QaiS reading-along banner (Team Tasks) */
.qnote { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; background: var(--q-panel); border: 1px solid var(--q-line); font-size: 12.5px; max-height: 0; padding-top: 0; padding-bottom: 0; opacity: 0; overflow: hidden; transform: translateY(-8px); transition: opacity .5s var(--q-ease), transform .6s var(--q-ease); }
.qnote.show { max-height: 80px; padding-top: 10px; padding-bottom: 10px; opacity: 1; transform: none; }
.qnote .who { display: flex; align-items: center; gap: 7px; font-weight: 600; }
.qnote .tag { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 8px; border-radius: 100px; background: var(--q-blue-s); color: var(--q-blue-t); font-size: 11px; font-weight: 500; }
.qnote .tag::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.qnote .sp { margin-left: auto; display: flex; gap: 6px; align-items: center; color: var(--q-fg2); }

/* ---------- phone shell (the Flutter app) ---------- */
.qs--phone { max-width: 320px; margin-inline: auto; }
.qs--phone .qs-win { border-radius: 44px; padding: 9px; background: #0B0B0C; border-color: rgba(255, 255, 255, .14); }
[data-theme="light"] .qs--phone .qs-win { background: #1B1B1D; }
.qs--phone .qs-bar { display: none; }
.qs--phone .qs-view { border-radius: 36px; }
.qp { position: relative; width: 100%; height: 100%; background: var(--q-ph-bg); display: flex; flex-direction: column; font-size: 15px; }
.qp-status { display: flex; justify-content: space-between; align-items: center; height: 44px; padding: 0 26px; font-size: 14px; font-weight: 600; }
.qp-status span:last-child { display: flex; gap: 5px; align-items: center; }
.qp-status svg { font-size: 15px; }
.qp-head { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 8px; height: 50px; padding: 0 14px; }
.qp-head h4 { margin: 0; font: 400 25px/1 var(--q-serif); text-align: center; }
.qp-head h4.sans { font: 600 20px/1.1 var(--q-sans); }
.qp-head h4 small { display: block; font: 400 13px/1.3 var(--q-sans); color: var(--q-fg2); margin-top: 3px; }
.qp-head .acts { display: flex; gap: 14px; font-size: 19px; }
.qp-head > svg { font-size: 22px; }
.qp-chips { display: flex; gap: 8px; padding: 10px 14px 14px; overflow: hidden; }
.qp-chips span { flex: none; height: 34px; padding: 0 15px; border-radius: 100px; border: 1px solid var(--q-soft-2); display: grid; place-items: center; font-size: 14px; color: var(--q-fg2); }
.qp-chips span.on { background: var(--q-ph-chip); color: var(--q-ph-chip-fg); border-color: transparent; }
.qp-list { flex: 1; background: var(--q-ph-card); overflow: hidden; }
.qp-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 14px 16px; border-bottom: 1px solid var(--q-line); }
.qp-row.in { animation: qs-row-in .7s var(--q-ease) both; }
.qp-row b { font-size: 16px; font-weight: 500; }
.qp-row strong { font-size: 16px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.qp-row small { font-size: 13.5px; color: var(--q-fg2); }
.qp-row .qpill { justify-self: end; height: 26px; padding: 0 12px; font-size: 13px; }
.qp-dock { position: absolute; left: 12px; right: 12px; bottom: 14px; height: 68px; border-radius: 34px; background: var(--q-ph-dock); box-shadow: 0 10px 30px rgba(0, 0, 0, .18); border: 1px solid var(--q-line); display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; backdrop-filter: blur(12px); }
.qp-dock span { position: relative; display: grid; justify-items: center; gap: 3px; font-size: 11.5px; color: var(--q-fg2); }
.qp-dock span svg { font-size: 21px; }
.qp-dock span.on { color: var(--q-blue-t); font-weight: 600; }
.qp-dock em { position: absolute; top: -6px; left: 54%; font-style: normal; font-size: 10px; font-weight: 600; color: #fff; background: #DC2626; border-radius: 100px; padding: 1px 6px; transition: transform .3s var(--q-ease); }
.qp-snack { position: absolute; left: 14px; right: 14px; bottom: 92px; padding: 13px 16px; border-radius: 10px; background: #2B2B2B; color: #F2F2F2; font-size: 13.5px; display: flex; align-items: center; gap: 10px; opacity: 0; transform: translateY(12px); transition: opacity .4s var(--q-ease), transform .4s var(--q-ease); }
.qp-snack.show { opacity: 1; transform: none; }
.qp-snack svg { color: #4ADE80; font-size: 16px; }
.qp-card { margin: 0 14px 12px; padding: 14px 16px; border-radius: 18px; background: var(--q-ph-card); border: 1px solid var(--q-line); }
.qp-card h6 { margin: 0 0 8px; font-size: 11.5px; font-weight: 600; letter-spacing: .1em; color: var(--q-fg2); text-transform: uppercase; }
.qp-clock { display: flex; align-items: center; gap: 14px; }
.qp-clock .ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--q-green-s); color: var(--q-green-d); font-size: 22px; }
.qp-clock b { display: block; font-size: 18px; font-weight: 600; }
.qp-clock small { font-size: 13.5px; color: var(--q-fg2); font-variant-numeric: tabular-nums; }
.qp-clock .dot { margin-left: auto; width: 11px; height: 11px; border-radius: 50%; background: var(--q-green-d); }
.qp-ev { display: grid; grid-template-columns: 62px 3px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--q-line); }
.qp-ev:last-child { border-bottom: 0; }
.qp-ev time { font-size: 13px; color: var(--q-blue-t); font-weight: 500; line-height: 1.3; }
.qp-ev i { border-radius: 2px; background: #93B4F5; }
.qp-ev b { display: block; font-size: 15px; font-weight: 500; }
.qp-ev small { font-size: 12.5px; color: var(--q-fg2); }
.qp-due { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: #F59E0B; margin: 4px 0 8px; }
.qp-due::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #F59E0B; }
.qp-task { display: flex; align-items: center; gap: 12px; padding: 9px 0 9px 12px; border-left: 3px solid #F5B54A; margin-bottom: 8px; font-size: 15px; transition: opacity .6s var(--q-ease); }
.qp-task .ck { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--q-fg3); display: grid; place-items: center; color: #fff; font-size: 12px; flex: none; transition: background .3s var(--q-ease), border-color .3s var(--q-ease); }
.qp-task.done .ck { background: var(--q-green-d); border-color: var(--q-green-d); }
.qp-task.done span { text-decoration: line-through; color: var(--q-fg2); }
.qp-task svg.go { margin-left: auto; color: var(--q-fg3); }

/* motion off: the still frame */
@media (prefers-reduced-motion: reduce) {
  /* important: reduced motion must beat every per-element animation and transition in the frame, including inline ones the script sets; permanent */
  .qs *, .qs *::before, .qs *::after { animation: none !important; transition: none !important; }
}
