/* stack review overlay — works over any page; thumb-sized on phones */
.rv-fab{position:fixed;right:16px;bottom:16px;z-index:9990;display:flex;gap:8px}
.rv-fab button,.rv-btn{font:600 18px/1 system-ui,sans-serif;border:0;border-radius:999px;min-width:52px;height:52px;padding:0 16px;background:#2E3440;color:#ECEFF4;box-shadow:0 8px 24px rgba(0,0,0,.35);cursor:pointer}
.rv-fab .rv-pen.on{background:#EBCB8B;color:#2E3440}
.rv-fab .rv-count.has{background:#88C0D0;color:#2E3440}
html.rv-armed,html.rv-armed *{cursor:crosshair!important}
html.rv-armed body{outline:4px solid #EBCB8B;outline-offset:-4px}
.rv-sheet-bg{position:fixed;inset:0;z-index:9995;background:rgba(10,12,16,.45);display:flex;align-items:flex-end;justify-content:center}
.rv-sheet{width:min(640px,100%);background:#2E3440;color:#ECEFF4;border-radius:18px 18px 0 0;padding:18px 18px calc(18px + env(safe-area-inset-bottom));font:15px/1.4 system-ui,sans-serif;box-shadow:0 -10px 40px rgba(0,0,0,.4)}
.rv-sheet-where{font:12px/1.4 ui-monospace,monospace;color:#88C0D0;margin-bottom:10px;word-break:break-word}
.rv-sheet textarea{width:100%;box-sizing:border-box;font:16px/1.4 system-ui,sans-serif;background:#1d2129;color:#ECEFF4;border:1px solid #4C566A;border-radius:10px;padding:12px;resize:vertical}
.rv-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.rv-chips button{font:13px system-ui,sans-serif;border:1px solid #4C566A;background:transparent;color:#D8DEE9;border-radius:999px;padding:8px 12px}
.rv-chips button.on{background:#88C0D0;color:#2E3440;border-color:#88C0D0}
.rv-scopes button.on{background:#B48EAD;border-color:#B48EAD}
.rv-row{display:flex;justify-content:flex-end;gap:10px;margin-top:14px}
.rv-row button{font:600 15px system-ui,sans-serif;border:0;border-radius:10px;padding:12px 18px;background:#3B4252;color:#ECEFF4}
.rv-row .rv-save{background:#A3BE8C;color:#2E3440}
.rv-drawer{position:fixed;z-index:9993;right:0;top:0;bottom:0;width:min(420px,100%);background:#242933;color:#ECEFF4;font:14px/1.4 system-ui,sans-serif;transform:translateX(100%);transition:transform .2s;display:flex;flex-direction:column;box-shadow:-10px 0 40px rgba(0,0,0,.4)}
.rv-drawer.open{transform:none}
.rv-dh{display:flex;justify-content:space-between;align-items:center;padding:16px 18px;border-bottom:1px solid #3B4252}
.rv-dh button{background:none;border:0;color:#ECEFF4;font-size:28px;line-height:1}
.rv-list{flex:1;overflow:auto;padding:12px 14px}
.rv-item{background:#2E3440;border-radius:12px;padding:12px;margin-bottom:10px}
.rv-meta{font:11px/1.4 ui-monospace,monospace;color:#88C0D0;margin-bottom:6px;word-break:break-word}
.rv-text{outline:none;white-space:pre-wrap}
.rv-acts{display:flex;gap:8px;margin-top:8px;justify-content:flex-end}
.rv-acts button{font:12px system-ui;background:#3B4252;color:#D8DEE9;border:0;border-radius:8px;padding:6px 10px}
.rv-send{display:flex;gap:8px;padding:12px 14px;border-top:1px solid #3B4252;flex-wrap:wrap}
.rv-send button{flex:1;font:600 14px system-ui;border:0;border-radius:10px;padding:12px;background:#3B4252;color:#ECEFF4}
.rv-send .rv-gh{background:#A3BE8C;color:#2E3440}
.rv-help,.rv-empty{color:#7b8598;font-size:12px;padding:0 16px 16px}
.rv-help code{color:#EBCB8B}
