/* v6.5 account bar moved into an anchored, keyboard-accessible header popover */
#rv65AccountToggle{min-height:42px;min-width:96px;border:1px solid var(--line,#d4dce8);border-radius:11px;background:var(--panel,#fff);color:var(--text,#152033);padding:8px 12px;font:700 12px system-ui;cursor:pointer;display:none;align-items:center;justify-content:center;gap:8px}
body.rv65-signed-in #rv65AccountToggle{display:inline-flex}
body #cloudroot .cloudbar{display:none!important}
body.rv65-account-open #cloudroot .cloudbar{display:flex!important;position:fixed!important;left:auto!important;right:18px!important;top:73px!important;bottom:auto!important;z-index:230!important;width:min(365px,calc(100vw - 36px))!important;max-width:min(365px,calc(100vw - 36px))!important;margin:0!important;padding:16px!important;box-sizing:border-box!important;flex-direction:column!important;align-items:stretch!important;gap:10px!important;border-radius:16px!important;max-height:calc(100dvh - 96px);overflow-y:auto;box-shadow:0 18px 54px #080e225a!important}
body.rv65-account-open #cloudroot .cloudbar .btn{width:100%;min-height:44px}
body.rv65-account-open #cloudroot .cloudbar select{width:100%;max-width:100%;min-height:44px}
body.rv65-account-open #cloudroot .cloudbar .rb-mode-picker{width:100%}
body.rv65-account-open #cloudroot .cloudbar .hint{margin-top:4px}
#rv65AccountToggle:focus-visible{outline:3px solid #9274ee;outline-offset:3px}
@media(max-width:850px){#rv65AccountToggle,body.rv65-signed-in #rv65AccountToggle{display:none!important}body.rv65-account-open #cloudroot .cloudbar{display:none!important}}

/* Role-filtered command palette. */
#rv65CommandButton{min-height:42px;display:none;align-items:center;gap:9px;padding:8px 10px;border-radius:11px;border:1px solid var(--line,#dbe1e9);color:var(--muted,#526173);background:var(--panel,#fff);font:600 12px system-ui;cursor:pointer}
body.rv65-signed-in #rv65CommandButton{display:flex}
#rv65CommandButton kbd,.rv65-command-top kbd{font:600 10px system-ui;padding:3px 5px;background:var(--panel2,#f5f7ff);color:var(--text);border:1px solid var(--line);border-radius:6px}
#rv65CommandLayer[hidden]{display:none!important}
#rv65CommandLayer{position:fixed;inset:0;z-index:5000;background:#0b0b2599;display:flex;justify-content:center;align-items:flex-start;padding:max(10vh,50px) 16px 20px;box-sizing:border-box}
#rv65CommandDialog{width:min(570px,100%);border:1px solid var(--line,#e2e8f0);border-radius:19px;background:var(--panel,#fff);color:var(--text,#162033);box-shadow:0 30px 100px #03040a70;padding:17px;max-height:75dvh;display:flex;flex-direction:column;gap:12px}
.rv65-command-top{display:flex;align-items:center;justify-content:space-between;font:700 14px system-ui}
#rv65CommandSearch{width:100%;height:49px;box-sizing:border-box;border:1px solid var(--line,#ccd6e1);border-radius:11px;padding:12px;font-size:16px;background:var(--panel2,#f6f8fc);color:var(--text)}
#rv65CommandResults{overflow-y:auto;max-height:48dvh;display:grid;gap:5px}
.rv65-command-result{min-height:46px;padding:8px 12px;border-radius:9px;background:transparent;color:var(--text);border:1px solid transparent;display:flex;align-items:center;justify-content:space-between;text-align:left;cursor:pointer}
.rv65-command-result:is(:hover,.selected,:focus-visible){background:color-mix(in srgb,var(--accent,#7c3aed) 13%,var(--panel,#fff));border-color:color-mix(in srgb,var(--accent,#7c3aed) 38%,transparent)}
.rv65-command-result small,.rv65-command-help,.rv65-command-none{font-size:11px;color:var(--muted,#64748b)}
.rv65-command-help{margin:0;font-size:11px}
body.rv65-command-open{overflow:hidden}
@media(max-width:850px){#rv65CommandButton{min-width:42px;width:42px;padding:7px!important;justify-content:center}#rv65CommandButton span{display:none}#rv65CommandButton kbd{font-size:9px;padding:1px;border:0}#rv65CommandDialog{max-height:80dvh}}

.rv65-user-skeleton .scos-user-row{min-height:66px;display:flex;justify-content:space-between;align-items:center;gap:16px}.rv65-user-skeleton .scos-user-details{display:grid;gap:8px;flex:1}.rv65-shimmer-line,.rv65-shimmer-button{display:block;height:13px;border-radius:6px;background:#a6acc344;max-width:230px;width:75%}.rv65-shimmer-line.small{max-width:180px;width:45%;height:10px}.rv65-shimmer-button{max-width:100px;height:36px;border-radius:9px}.rv65-user-skeleton .rv65-shimmer-line,.rv65-user-skeleton .rv65-shimmer-button{background-image:linear-gradient(110deg,transparent 10%,#ffffff55 40%,transparent 65%);background-size:200% 100%;animation:rv65shimmer 1.4s linear infinite}@keyframes rv65shimmer{to{background-position-x:-200%}}@media(prefers-reduced-motion:reduce){.rv65-user-skeleton .rv65-shimmer-line,.rv65-user-skeleton .rv65-shimmer-button{animation:none}}

#rv65UndoAction{position:fixed;z-index:4000;bottom:calc(20px + env(safe-area-inset-bottom,0px));left:50%;transform:translateX(-50%);background:#19182b;color:#fff;border:1px solid #8174b6;border-radius:12px;display:flex;gap:14px;align-items:center;padding:12px 16px;box-shadow:0 14px 40px #100c247a;font:650 13px system-ui;max-width:calc(100vw - 30px)}#rv65UndoAction button{color:#ddd1ff;background:transparent;border:1px solid #b5a6fa;border-radius:8px;padding:9px 12px;min-height:40px;cursor:pointer}

::view-transition-old(root),::view-transition-new(root){animation-duration:160ms;animation-timing-function:ease-out}@media(prefers-reduced-motion:reduce){::view-transition-old(root),::view-transition-new(root){animation:none!important}}

/* Cross-platform spacing, touch, typography and optional continuous corners */
html{scroll-padding-top:calc(76px + env(safe-area-inset-top,0px))}
body .top{padding-top:max(0px,env(safe-area-inset-top,0px))}
body .sidebar{padding-left:max(12px,env(safe-area-inset-left,0px))!important}
body :is(.stat .big,.metricbox strong,.amount,.money,.rvw-num,td,th,.scos-pro-kpi-value,.aura-satellite strong,.progress,[data-currency]){font-variant-numeric:tabular-nums}
body :is(h1,h2,h3,.pagehead h1,.rvw-pagehead h1){text-wrap:balance}
body :is(.subtitle,.pagehead p,.rvw-pagehead p){text-wrap:pretty}
@supports (corner-shape:squircle){body :is(.panel,.stat,.metricbox,.cloudbar,.rvw-panel,.s25-panel,.rv-setter-card,.rvp-card){corner-shape:squircle}}
@media (pointer:coarse){body :is(.topright button,.rv-nav-expand,#rv65AccountToggle,.rv65-command-result,.rvw-tabs button,.rvw-command button,.rv-ma-actions button){min-height:44px!important}body .top .mobilemenu{min-width:44px!important;min-height:44px!important}body #rvMobileDock button{min-height:48px!important}body .sidebar .nav button{min-height:48px!important}}
@media(max-width:850px){body .main{padding-bottom:calc(85px + env(safe-area-inset-bottom,0px))!important}#rv65UndoAction{bottom:calc(80px + env(safe-area-inset-bottom,0px))}}
@media(prefers-reduced-motion:reduce){body :is(#rv65AccountToggle,#rv65CommandButton,.rv65-command-result){transition:none!important}::view-transition-old(root),::view-transition-new(root){animation:none!important}}

.rv65-command-result kbd{font:700 10px system-ui;padding:3px 7px;border:1px solid var(--line);border-radius:6px;background:var(--panel2)}
@media(pointer:coarse){body :is(button,select,input:not([type=checkbox]):not([type=radio]),a.btn){min-height:44px}body .sidebar .nav button,body #rvMobileDock button{min-height:48px!important}}
/* Respect reduced motion on existing interruptible navigation controls too. */
@media(prefers-reduced-motion:reduce){html body .sidebar,html body #rvMobileAccountSheet,html body #rvMobileBackdrop,html body #rvMobileDock,html body #rv65CommandDialog,html body .rv65-command-result{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
