/* Errands QA - same glass theme as db.errandsservices.com (dark, cyan light streaks, frosted cards with cut corners) */
:root {
  --bg: #04070c; --ink: #e8f1fb; --text: #e8f1fb; --muted: rgba(232, 241, 251, .58); --faint: rgba(232, 241, 251, .38);
  --glass: rgba(255, 255, 255, .055); --glass-2: rgba(255, 255, 255, .085); --line: rgba(255, 255, 255, .12);
  --line-2: rgba(255, 255, 255, .2); --cyan: #38bdf8; --cyan-2: #0ea5e9; --cyan-soft: rgba(56, 189, 248, .16); --acc: #38bdf8;
  --ok: #34d399; --okbg: rgba(52, 211, 153, .14); --bad: #f87171; --badbg: rgba(248, 113, 113, .14);
  --warn: #fbbf24; --warnbg: rgba(251, 191, 36, .14); --cut: 18px;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.5 "Plus Jakarta Sans", Inter, system-ui, "Segoe UI", sans-serif; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: #7dd3fc; }

/* background: flowing light streaks */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background:
  radial-gradient(1200px 600px at 85% -10%, rgba(14, 165, 233, .18), transparent 60%),
  radial-gradient(900px 500px at -10% 110%, rgba(56, 189, 248, .12), transparent 60%), var(--bg); }
.bg svg { position: absolute; width: 140%; height: 140%; left: -20%; top: -20%; opacity: .9; animation: drift 30s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate3d(-3%, 2%, 0) rotate(-2deg); } }

/* glass surfaces */
.glass, .card { position: relative; background: linear-gradient(160deg, var(--glass-2), var(--glass) 55%);
  border: 1px solid var(--line); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .08); border-radius: 16px; }
.card { padding: 18px; min-width: 0; }
.cut { border-radius: 14px; clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
.cut::before, .cut::after { content: ""; position: absolute; width: calc(var(--cut) * 1.6); height: calc(var(--cut) * 1.6); pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, .55), rgba(125, 211, 252, .15) 45%, transparent 46%); }
.cut::before { top: 0; left: 0; }
.cut::after { bottom: 0; right: 0; transform: rotate(180deg); }

/* layout: glass sidebar + content */
.shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.shell > * { min-width: 0; }
aside.side { position: sticky; top: 0; height: 100vh; padding: 22px 14px; display: flex; flex-direction: column; gap: 6px; overflow-y: auto;
  background: rgba(6, 12, 20, .55); border-right: 1px solid var(--line); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.brand { display: flex; flex-direction: column; gap: 6px; padding: 2px 10px 20px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.brand img { width: 170px; height: auto; filter: drop-shadow(0 0 14px rgba(56, 189, 248, .35)); }
.brand span { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
.brand b { color: var(--cyan); font-weight: 700; }
aside nav { display: flex; flex-direction: column; gap: 2px; }
aside nav a { display: flex; align-items: center; gap: 11px; color: var(--muted); padding: 9px 12px; border-radius: 10px; font-weight: 600; transition: .18s; }
aside nav a svg { width: 18px; height: 18px; flex: none; opacity: .85; }
aside nav a:hover { color: var(--ink); background: rgba(255, 255, 255, .05); }
aside nav a.on { color: #fff; background: linear-gradient(90deg, var(--cyan-soft), rgba(56, 189, 248, .04)); box-shadow: inset 2px 0 0 var(--cyan); }
aside nav .sep { margin: 10px 12px 4px; font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--faint); }
aside .who { margin-top: auto; padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
  font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
aside .who b { color: var(--ink); }
aside .who small { color: var(--cyan); font-weight: 600; }
aside .who .acts { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 12px; }
main { padding: 28px 28px 70px; max-width: 1500px; width: 100%; min-width: 0; }
h1 { font-size: 26px; font-weight: 800; margin: 0 0 4px; letter-spacing: -.3px; }
h2 { font-size: 15px; font-weight: 700; margin: 0 0 12px; color: var(--ink); letter-spacing: .2px; }
h3 { font-size: 11px; margin: 0 0 10px; color: var(--faint); font-weight: 700; text-transform: uppercase; letter-spacing: .8px; }
.sub { color: var(--muted); margin-bottom: 18px; }

/* grids + stat tiles */
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .g6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.tile { padding: 18px 20px; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, border-color .25s; }
.tile::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, .28), transparent 70%); pointer-events: none; }
.tile:hover { transform: translateY(-5px); border-color: var(--line-2); box-shadow: 0 26px 60px rgba(0, 0, 0, .5), 0 0 0 1px rgba(56, 189, 248, .15); }
.tile .l { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; }
.tile .v { font-size: 26px; font-weight: 800; margin-top: 6px; color: #fff; }
.tile .s { color: var(--faint); font-size: 12px; margin-top: 2px; }

/* tables */
.tw { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { padding: 10px 12px; border-bottom: 1px solid rgba(255, 255, 255, .07); text-align: left; vertical-align: top; }
th { font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: .7px; font-weight: 700; white-space: nowrap; }
th.s { cursor: pointer; } th.s:hover { color: var(--cyan); }
tr:hover td { background: rgba(56, 189, 248, .045); }
tr:last-child td { border-bottom: 0; }
tr.click { cursor: pointer; }

/* filter bar + forms */
.bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 16px; }
label { font-size: 12px; font-weight: 600; color: var(--muted); }
input, select, textarea { padding: 8px 11px; border: 1px solid var(--line); border-radius: 10px; font: inherit; color: var(--ink);
  background: rgba(0, 0, 0, .28); outline: none; transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { border-color: rgba(56, 189, 248, .65); box-shadow: 0 0 0 3px rgba(56, 189, 248, .18); }
select option { background: #0b1520; color: var(--ink); }
input[type=date] { color-scheme: dark; }
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--cyan); vertical-align: middle; padding: 0; }
input::placeholder, textarea::placeholder { color: var(--faint); }
textarea { width: 100%; min-height: 70px; resize: vertical; }
button, .btn { display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .07); color: var(--ink); border: 1px solid var(--line);
  padding: 8px 15px; border-radius: 10px; font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; transition: transform .15s, box-shadow .2s, filter .2s, border-color .2s; }
button:hover, .btn:hover { border-color: rgba(56, 189, 248, .5); color: #fff; }
button.pri, .btn.pri { background: linear-gradient(180deg, #5cc9fa, var(--cyan-2)); color: #03121d; border: 0; font-weight: 800;
  box-shadow: 0 8px 24px rgba(14, 165, 233, .35), inset 0 1px 0 rgba(255, 255, 255, .45); }
button.pri:hover, .btn.pri:hover { transform: translateY(-1px); filter: brightness(1.07); color: #03121d; }
button.danger { border-color: rgba(248, 113, 113, .35); color: var(--bad); }

/* pills: bands, results, statuses */
.pill { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; white-space: nowrap;
  background: rgba(255, 255, 255, .07); color: var(--muted); border: 1px solid rgba(255, 255, 255, .08); }
.b-GOOD, .r-PASS { background: var(--okbg); color: var(--ok); border-color: rgba(52, 211, 153, .25); }
.b-FINE { background: rgba(163, 230, 53, .13); color: #a3e635; border-color: rgba(163, 230, 53, .25); }
.b-AVERAGE { background: var(--warnbg); color: var(--warn); border-color: rgba(251, 191, 36, .25); }
.b-FAIR { background: rgba(251, 146, 60, .14); color: #fb923c; border-color: rgba(251, 146, 60, .25); }
.b-POOR, .r-FAIL { background: var(--badbg); color: var(--bad); border-color: rgba(248, 113, 113, .25); }
.b-FATAL { background: linear-gradient(180deg, #ef4444, #b91c1c); color: #fff; border-color: transparent; box-shadow: 0 0 12px rgba(239, 68, 68, .35); }
.r-NA { background: rgba(148, 163, 184, .1); color: #94a3b8; }
.st-done { color: var(--ok); } .st-error { color: var(--bad); } .st-skipped { color: var(--faint); }
.st-queued, .st-downloading, .st-transcribing, .st-scoring { color: var(--warn); }
.muted { color: var(--muted); } .small { font-size: 12px; } .right { text-align: right; } .nowrap { white-space: nowrap; }
.flex { display: flex; gap: 10px; align-items: center; } .between { justify-content: space-between; } .wrap { flex-wrap: wrap; }
.empty { color: var(--faint); text-align: center; padding: 30px; }

/* call page */
.score { font-size: 48px; font-weight: 800; line-height: 1; text-shadow: 0 0 24px currentColor; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.tabs button { padding: 8px 16px; }
.tabs button.on { background: linear-gradient(180deg, #5cc9fa, var(--cyan-2)); color: #03121d; border-color: transparent; font-weight: 800; }
.seg { display: flex; gap: 10px; padding: 6px 8px; border-radius: 8px; cursor: pointer; }
.seg:hover { background: rgba(255, 255, 255, .04); } .seg.now { background: rgba(56, 189, 248, .12); box-shadow: inset 2px 0 0 var(--cyan); }
.seg .t { color: var(--faint); font-size: 12px; width: 42px; flex: none; padding-top: 2px; font-variant-numeric: tabular-nums; }
.seg .w { width: 74px; flex: none; font-size: 12px; font-weight: 700; padding-top: 2px; }
.seg.A .w { color: var(--cyan); } .seg.C .w { color: #f0abfc; } .seg.O .w { color: var(--faint); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 3px 10px; border-radius: 99px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.chip.on { border-color: rgba(56, 189, 248, .45); color: #7dd3fc; } .chip.bad { border-color: rgba(248, 113, 113, .45); color: #fca5a5; }
.rule { border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; margin-bottom: 8px; background: rgba(0, 0, 0, .2); }
.rule .ev { margin-top: 6px; padding: 6px 10px; border-left: 3px solid var(--cyan); background: rgba(56, 189, 248, .07); border-radius: 4px; font-style: italic; cursor: pointer; }
audio { width: 100%; filter: invert(.88) hue-rotate(180deg); border-radius: 10px; }

/* modal, toast, pager */
.pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin-top: 12px; }
.modal { position: fixed; inset: 0; background: rgba(2, 6, 12, .72); backdrop-filter: blur(6px); display: none; align-items: flex-start;
  justify-content: center; padding: 40px 16px; z-index: 50; overflow: auto; }
.modal.open { display: flex; } .modal .card { width: min(1100px, 100%); background: rgba(10, 18, 28, .96); }
.toast { position: fixed; right: 18px; bottom: 18px; background: rgba(10, 18, 28, .95); border: 1px solid var(--cyan); padding: 11px 16px;
  border-radius: 12px; z-index: 99; display: none; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
canvas { max-width: 100%; }

/* roles: permission checkboxes */
.perm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.perm-group { background: rgba(0, 0, 0, .2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.perm-group b { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .8px; color: var(--cyan); margin-bottom: 8px; }
label.perm { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 13px; font-weight: 500; margin: 6px 0; cursor: pointer; }

/* login: the two corner shards meet in the middle as a logo, then fly out to the corners while the form appears */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.dc-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 440px) minmax(0, 1fr); gap: 40px; }
.login { width: 100%; max-width: 440px; padding: 38px 34px 32px; --cut: 26px; }
.login.cut::before, .login.cut::after { display: none; }
.floaty { width: 100%; max-width: 440px; animation: floaty 7s ease-in-out 1.6s infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(0deg); } 25% { transform: translateY(-7px) rotate(-.35deg); }
  50% { transform: translateY(-2px) rotate(.2deg); } 75% { transform: translateY(-8px) rotate(.35deg); } }
.floaty .login { animation: pop .6s cubic-bezier(.2, .9, .25, 1.1) both, glow 7s ease-in-out 1.6s infinite; }
@keyframes glow { 0%, 100% { box-shadow: 0 20px 50px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .08); }
  50% { box-shadow: 0 30px 70px rgba(0, 0, 0, .55), 0 0 40px rgba(56, 189, 248, .12), inset 0 1px 0 rgba(255, 255, 255, .1); } }
@keyframes pop { from { opacity: 0; transform: scale(.9); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
.shard { position: absolute; z-index: 3; width: 72px; height: 72px; top: calc(50% - 36px); left: calc(50% - 36px); pointer-events: none;
  background: linear-gradient(135deg, #bae6fd, #38bdf8 45%, #0369a1); filter: drop-shadow(0 0 16px rgba(56, 189, 248, .8));
  transition: top .85s cubic-bezier(.7, 0, .2, 1), left .85s cubic-bezier(.7, 0, .2, 1), width .85s cubic-bezier(.7, 0, .2, 1),
    height .85s cubic-bezier(.7, 0, .2, 1), opacity .5s, filter .85s; }
.shard.tl { clip-path: polygon(0 0, 100% 0, 0 100%); border-radius: 12px 0 0 0; transform: translate(-3px, -3px); }
.shard.br { clip-path: polygon(100% 0, 100% 100%, 0 100%); border-radius: 0 0 12px 0; transform: translate(3px, 3px); }
.login:not(.open) .shard { animation: pulse 1.1s ease-in-out infinite alternate; }
@keyframes pulse { to { filter: drop-shadow(0 0 30px rgba(56, 189, 248, 1)); } }
.login.open .shard { width: 40px; height: 40px; transform: none; opacity: .75; filter: drop-shadow(0 0 8px rgba(56, 189, 248, .45));
  background: linear-gradient(135deg, rgba(255, 255, 255, .7), rgba(125, 211, 252, .35)); }
.login.open .shard.tl { top: 0; left: 0; }
.login.open .shard.br { top: calc(100% - 40px); left: calc(100% - 40px); }
.login .inner > * { opacity: 0; transform: translateY(12px); filter: blur(4px); transition: opacity .5s, transform .5s, filter .5s; }
.login.open .inner > * { opacity: 1; transform: none; filter: none; }
.login.open .inner > :nth-child(1) { transition-delay: .35s; } .login.open .inner > :nth-child(2) { transition-delay: .42s; }
.login.open .inner > :nth-child(3) { transition-delay: .49s; } .login.open .inner > :nth-child(4) { transition-delay: .56s; }
.login.open .inner > :nth-child(5) { transition-delay: .63s; } .login.open .inner > :nth-child(6) { transition-delay: .70s; }
.login.open .inner > :nth-child(7) { transition-delay: .77s; }
.login-logo { display: block; width: 200px; height: auto; margin: 0 auto 6px; filter: drop-shadow(0 0 18px rgba(56, 189, 248, .4)); }
.app-name { text-align: center; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; margin-bottom: 24px; }
.login h1 { font-size: 30px; margin: 0 0 4px; } .login h1 span { color: var(--cyan); }
.login p.sub { color: var(--muted); margin: 0 0 26px; font-size: 13px; }
.field { position: relative; margin-bottom: 16px; }
.field label { display: block; margin-bottom: 6px; }
.field svg { position: absolute; left: 13px; bottom: 13px; width: 17px; height: 17px; color: var(--faint); pointer-events: none; z-index: 2; }
.login input { width: 100%; padding-left: 40px; height: 44px; }
.login button { width: 100%; height: 46px; margin-top: 8px; justify-content: center; gap: 8px; }
.login .foot { text-align: center; color: var(--faint); font-size: 12px; margin-top: 18px; }
.flash { padding: 11px 15px; border-radius: 12px; margin-bottom: 16px; border: 1px solid; }
.flash.bad { background: var(--badbg); color: var(--bad); border-color: rgba(248, 113, 113, .3); }
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus { -webkit-text-fill-color: var(--ink); caret-color: var(--ink);
  -webkit-box-shadow: 0 0 0 1000px #0b131c inset; box-shadow: 0 0 0 1000px #0b131c inset; transition: background-color 99999s; }

/* login side scenes: call waveform being scored (left) and scorecard checklist (right) */
.dc { width: 100%; max-width: 360px; justify-self: center; opacity: 0; animation: dcin 1s .9s ease forwards; }
.dc-left { justify-self: end; } .dc-right { justify-self: start; }
@keyframes dcin { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.dc svg { width: 100%; height: auto; display: block; overflow: visible; }
.dc .frame { fill: rgba(255, 255, 255, .03); stroke: rgba(125, 211, 252, .25); stroke-width: 1.2; }
.dc .wave rect { fill: #38bdf8; filter: drop-shadow(0 0 4px #38bdf8); transform-box: fill-box; transform-origin: center; animation: eq 1.1s ease-in-out infinite alternate; }
.dc .wave rect.c { fill: #f0abfc; filter: drop-shadow(0 0 4px #e879f9); }
@keyframes eq { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
.dc .playhead { stroke: #7dd3fc; stroke-width: 2; filter: drop-shadow(0 0 6px #38bdf8); animation: sweep 4s linear infinite; }
@keyframes sweep { from { transform: translateX(0); } to { transform: translateX(236px); } }
.dc .mono { font: 600 8px ui-monospace, Consolas, monospace; fill: rgba(186, 230, 253, .6); letter-spacing: .6px; }
.dc .led { fill: #38bdf8; animation: blink 1.4s steps(2, jump-none) infinite; filter: drop-shadow(0 0 4px #38bdf8); }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .15; } }
.dc .wire { fill: none; stroke: rgba(56, 189, 248, .22); stroke-width: 1.2; stroke-dasharray: 3 5; animation: flow 1.2s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -16; } }
.dc .pkt { fill: #7dd3fc; filter: drop-shadow(0 0 6px #38bdf8); }
.dc .gauge-bg { fill: none; stroke: rgba(255, 255, 255, .08); stroke-width: 12; }
.dc .gauge { fill: none; stroke: url(#gg); stroke-width: 12; stroke-linecap: round; stroke-dasharray: 300; animation: gauge 5s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, .6)); }
@keyframes gauge { from { stroke-dashoffset: 210; } to { stroke-dashoffset: 40; } }
.dc .gnum { font: 800 30px "Plus Jakarta Sans", sans-serif; fill: #fff; }
.dc-cap { text-align: center; margin-top: 12px; font: 700 11px/1.7 ui-monospace, Consolas, monospace; letter-spacing: 1px; color: rgba(186, 230, 253, .75); }
.dc-cap small { color: var(--muted); font-weight: 500; } .dc-cap .live { color: var(--ok); animation: blink 1.2s infinite; }
.ops { height: 150px; overflow: hidden; margin: 14px 20px 0; border: 1px solid var(--line); border-radius: 12px; background: rgba(0, 0, 0, .3);
  -webkit-mask-image: linear-gradient(transparent, #000 25%, #000 75%, transparent); mask-image: linear-gradient(transparent, #000 25%, #000 75%, transparent); }
.ops-in { animation: ticker 16s linear infinite; padding: 6px 14px; }
.ops-in div { font: 600 11px/24px ui-monospace, Consolas, monospace; color: rgba(186, 230, 253, .8); white-space: pre; }
.ops-in .p { color: var(--ok); } .ops-in .f { color: var(--bad); }
@keyframes ticker { to { transform: translateY(-50%); } }
@media (prefers-reduced-motion: reduce) { .dc *, .floaty, .login, .shard, .login .inner > * { animation: none !important; transition: none !important; } }

@media (max-width: 1180px) { .dc-wrap { grid-template-columns: 1fr; } .dc { display: none; } .g6 { grid-template-columns: repeat(3, 1fr); } .g3 { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  aside.side { position: sticky; height: auto; flex-direction: row; align-items: center; padding: 10px 12px; gap: 10px; overflow-x: auto; z-index: 5; }
  .brand { padding: 0; margin: 0; border: 0; flex: none; } .brand img { width: 96px; } .brand span { display: none; }
  aside nav { flex-direction: row; } aside nav a { padding: 8px 10px; white-space: nowrap; } aside nav a svg, aside nav .sep { display: none; }
  aside .who { margin: 0; padding: 6px 10px; white-space: nowrap; }
  main { padding: 20px 16px 60px; }
  .g2, .g4, .g6 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile .v { font-size: 20px; }
}

/* Esper-style on/off switch (rules editor) */
.sw { width: 38px; height: 21px; border-radius: 99px; background: rgba(255, 255, 255, .14); position: relative; transition: .2s; display: inline-block; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; border-radius: 50%; background: #cbd5e1; transition: .2s; }
.sw.on { background: linear-gradient(180deg, #5cc9fa, var(--cyan-2)); box-shadow: 0 0 10px rgba(56, 189, 248, .4); }
.sw.on::after { left: 20px; background: #fff; }

/* AI QA engine switch in the sidebar */
.engine { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin: 0 0 10px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04); font-size: 12px; color: var(--muted); }
.engine b { color: var(--ink); font-size: 12px; } .engine small { font-size: 11px; }
.engine .dot { width: 10px; height: 10px; border-radius: 50%; background: #64748b; flex: none; }
.engine.on { border-color: rgba(52, 211, 153, .35); background: rgba(52, 211, 153, .07); }
.engine.on .dot { background: var(--ok); box-shadow: 0 0 10px var(--ok); animation: blink 1.6s infinite; }
.engine.on small { color: var(--ok); }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.big-switch { display: flex; align-items: center; gap: 18px; }
.big-switch .sw { width: 64px; height: 34px; } .big-switch .sw::after { width: 26px; height: 26px; top: 4px; left: 4px; }
.big-switch .sw.on::after { left: 34px; }
.progress { height: 10px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan-2), #7dd3fc); box-shadow: 0 0 10px var(--cyan); }
