/* QA Review overlay — pins, outlines, drawer */
:root { --s-critical: #FF3D5A; --s-high: #FF9A1F; --s-medium: #FFD23F; --s-low: #5DB8FF; }
html.embed .squares, html.embed .loader-word, html.embed .qa-dock, html.embed .cursor, html.embed .cursor-dot { display: none !important; }

.qa-dock { position: fixed; z-index: 80; left: 16px; bottom: 16px; display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 99px;
  background: rgba(10,14,19,.82); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.16); box-shadow: 0 20px 50px -14px rgba(0,0,0,.7); color: #EDF0EE; font-family: var(--sans); }
.qa-dock > * { min-height: 40px; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 99px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.qa-dock > *:hover { background: rgba(255,255,255,.08); }
.qa-sw { padding-left: 8px !important; }
.qa-sw i { width: 34px; height: 20px; border-radius: 99px; background: rgba(255,255,255,.2); position: relative; transition: background .3s; }
.qa-sw i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .4s var(--ease); }
body.qa-on .qa-sw i { background: var(--s-critical); }
body.qa-on .qa-sw i::after { transform: translateX(14px); }
.qa-badge { font-family: var(--mono); font-size: 11px; background: var(--s-critical); color: #fff; border-radius: 99px; padding: 2px 7px; }
.qa-hint { position: absolute; left: 6px; bottom: calc(100% + 10px); background: #EDF0EE; color: #0A0E13; font-size: 12.5px; padding: 9px 14px; border-radius: 12px; white-space: nowrap; pointer-events: none;
  animation: qaHint 2.4s var(--ease) infinite; box-shadow: 0 10px 30px -8px rgba(0,0,0,.5); }
.qa-hint::after { content: ''; position: absolute; left: 26px; top: 100%; border: 6px solid transparent; border-top-color: #EDF0EE; }
@keyframes qaHint { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
body.qa-on .qa-hint, .qa-hint.is-gone { display: none; }
@media (max-width: 600px) { .qa-dock .qa-rep span { display: none; } .qa-dock > * { padding: 0 11px; } }

/* outlines + pins */
body.qa-on [data-qa] { outline: 2px dashed var(--qa-c, var(--s-medium)); outline-offset: -2px; }
body .qa-pin { position: absolute; z-index: 30; top: 10px; left: 10px; display: none !important; width: auto !important; opacity: 1 !important; margin: 0 !important; text-align: left; align-items: center; gap: 6px; height: 30px; padding: 0 11px 0 4px; border-radius: 99px;
  background: var(--qa-c); color: #0A0E13; font: 600 12px/1 var(--mono); box-shadow: 0 8px 24px -6px rgba(0,0,0,.6), 0 0 0 3px rgba(10,14,19,.35); cursor: pointer; }
body .qa-pin b { width: 22px; height: 22px; border-radius: 50%; background: #0A0E13 !important; color: var(--qa-c) !important; display: grid !important; place-items: center; font: 600 11px/1 var(--mono) !important; margin: 0 !important; }
.qa-pin::before { content: ''; position: absolute; inset: -6px; border-radius: 99px; border: 2px solid var(--qa-c); animation: qaPulse 1.8s ease-out infinite; opacity: 0; }
@keyframes qaPulse { 0% { transform: scale(.85); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
body.qa-on .qa-pin { display: inline-flex !important; }
.qa-pin + .qa-pin { top: 46px; }
.qa-pin.is-sel { outline: 3px solid #fff; outline-offset: 2px; }

/* drawer */
.qa-drawer { position: fixed; z-index: 82; top: 12px; right: 12px; bottom: 12px; width: min(440px, calc(100vw - 24px)); background: #0E141B; color: #EDF0EE;
  border: 1px solid rgba(255,255,255,.14); border-radius: 22px; display: flex; flex-direction: column; overflow: hidden;
  transform: translateX(calc(100% + 30px)); transition: transform .7s var(--ease); box-shadow: -30px 0 80px -20px rgba(0,0,0,.7); font-family: var(--sans); }
body.qa-open .qa-drawer { transform: none; }
.qa-dh { padding: 20px 22px 14px; border-bottom: 1px solid rgba(255,255,255,.1); }
.qa-dh-top { display: flex; justify-content: space-between; align-items: center; }
.qa-dh h2 { margin: 0; font-size: 20px; letter-spacing: -.02em; font-weight: 600; }
.qa-dh p { margin: 4px 0 14px; font-size: 13px; color: rgba(237,240,238,.6); }
.qa-x { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); font-size: 18px; }
.qa-x:hover { background: #fff; color: #000; }
.qa-filt { display: flex; gap: 6px; flex-wrap: wrap; }
.qa-filt button { font-size: 12px; padding: 7px 12px; border-radius: 99px; border: 1px solid rgba(255,255,255,.16); display: inline-flex; gap: 6px; align-items: center; min-height: 32px; }
.qa-filt button i { width: 8px; height: 8px; border-radius: 50%; background: var(--qa-c, #fff); }
.qa-filt button.is-on { background: #EDF0EE; color: #0A0E13; border-color: #EDF0EE; }
.qa-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 10px 12px 20px; }
.qa-item { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; width: 100%; text-align: left; padding: 14px 12px; border-radius: 14px; border: 1px solid transparent; transition: background .25s, border-color .25s; }
.qa-item:hover { background: rgba(255,255,255,.05); }
.qa-item.is-sel { border-color: var(--qa-c); background: rgba(255,255,255,.04); }
.qa-item .sv { grid-row: span 2; width: 34px; height: 34px; border-radius: 10px; background: var(--qa-c); color: #0A0E13; display: grid; place-items: center; font-size: 13px; }
.qa-item small { font-family: var(--mono); font-size: 11px; color: rgba(237,240,238,.55); }
.qa-item b { font-size: 14px; font-weight: 500; line-height: 1.35; }
.qa-detail { margin: 2px 4px 10px 58px; font-size: 13.5px; line-height: 1.55; color: rgba(237,240,238,.82); display: none; }
.qa-item.is-sel + .qa-detail { display: block; }
.qa-detail h4 { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(237,240,238,.5); margin: 14px 0 5px; font-weight: 400; }
.qa-detail ol { margin: 0; padding-left: 18px; }
.qa-detail p { margin: 0; }
.qa-detail .fix { background: rgba(61,220,132,.08); border-left: 2px solid var(--ok); padding: 10px 12px; border-radius: 0 8px 8px 0; color: #EDF0EE; }
.qa-detail .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.qa-detail .meta span { font-family: var(--mono); font-size: 11px; padding: 4px 9px; border-radius: 99px; border: 1px solid rgba(255,255,255,.16); }
.qa-detail .go { margin-top: 14px; display: inline-flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 600; color: var(--qa-c); }
.qa-foot { padding: 14px 22px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.qa-foot a { color: var(--cyan); font-weight: 600; }
