/* RevOrb 4.8.3 — phone-first layout. Presentation only; does not modify data or permissions. */
#rvMobileDock,#rvMobileBackdrop,#rvMobileAccountBtn,#rvMobileAccountSheet,#rvMobileMenuClose{display:none}
@media(max-width:850px){
  :root{--rv-mobile-nav-h:64px}
  html{width:100%;max-width:100%;overflow-x:clip;-webkit-text-size-adjust:100%}
  html body,html body :is(h1,h2,h3,h4,p,span,label,button,input,select,textarea){font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important}
  html body{width:100%;max-width:100%;min-width:0;overflow-x:clip;margin:0;overscroll-behavior-x:none}
  body .app{display:block!important;width:100%;min-width:0!important;max-width:100%;overflow:visible!important}
  body .main{width:100%;min-width:0!important;max-width:100%!important;margin:0!important;padding:0 12px calc(108px + env(safe-area-inset-bottom,0px))!important}
  body .main #view{min-width:0;max-width:100%;overflow-wrap:break-word}
  body .top{height:56px!important;min-height:56px!important;position:sticky!important;top:0!important;z-index:34!important;display:flex!important;align-items:center!important;justify-content:space-between!important;margin:0 -12px 9px!important;padding:0 11px!important;background:var(--bg,#f8fafc)!important;box-shadow:0 1px 0 var(--line,#e5e7eb)!important;border-bottom:1px solid var(--line,#e5e7eb)!important;backdrop-filter:blur(12px)}
  body .top .actions{min-width:0;gap:6px!important;display:flex!important;align-items:center!important;flex-wrap:nowrap!important}
  body .top .mobilemenu{display:flex!important;flex:0 0 40px;align-items:center;justify-content:center;width:40px;height:40px;padding:0!important;min-height:40px;font-size:22px!important;border-radius:12px!important;color:var(--accent)!important;background:transparent!important;border:0!important}
  body .top .crumb{font-size:0!important;min-width:0;display:block!important;max-width:min(46vw,230px);color:var(--text)!important;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-weight:800!important}
  body .top .crumb #crumb{font-size:14px!important;color:var(--text)!important;font-weight:800!important}
  body .topright{display:flex!important;align-items:center!important;gap:5px!important;min-width:0}
  body .topright .pill,body .topright .avatar{display:none!important}
  body .topright :is(.aura-notification,.rvw-notification){position:relative!important;width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;border-radius:11px!important;padding:6px!important;font-size:16px!important;box-shadow:none!important}
  #rvMobileAccountBtn{display:flex!important;align-items:center;justify-content:center;flex:0 0 36px!important;width:36px;height:36px;border-radius:12px!important;border:1px solid var(--line)!important;background:var(--panel)!important;color:var(--accent)!important;font-size:13px;font-weight:800;padding:0!important;cursor:pointer}
  body .sidebar{position:fixed!important;z-index:111!important;top:0;left:0;bottom:0;width:min(304px,85vw)!important;max-width:min(304px,85vw)!important;height:100dvh!important;max-height:100dvh!important;padding:20px 12px calc(24px + env(safe-area-inset-bottom,0px))!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain;transform:translateX(-105%)!important;transition:transform .22s ease!important;box-shadow:9px 0 35px #0a032c30!important;visibility:hidden;pointer-events:none}
  body .sidebar.open{transform:translateX(0)!important;visibility:visible;pointer-events:auto}
  body .sidebar .logo{padding:0 40px 19px 6px!important;min-height:60px}
  body .sidebar .navcaption{margin-top:10px!important}
  body .sidebar .nav{gap:3px!important}
  body .sidebar .nav button{min-height:44px!important;padding:10px 11px!important;font-size:13px!important}
  body .sidebarbottom{padding:8px 5px}
  body .sidebar .mini{padding:10px!important}
  #rvMobileMenuClose{display:flex!important;position:absolute;right:12px;top:17px;height:36px;width:36px;align-items:center;justify-content:center;border:1px solid var(--line)!important;color:var(--text)!important;background:var(--panel)!important;border-radius:10px!important;font-size:20px;z-index:2}
  #rvMobileBackdrop{position:fixed;inset:0;z-index:109;background:rgba(9,7,25,.55);backdrop-filter:blur(3px);border:0;width:100%;height:100%;padding:0}
  body.rv-mobile-menu-open #rvMobileBackdrop{display:block!important}
  body.rv-mobile-menu-open{overflow:hidden!important;touch-action:none}
  #rvMobileDock{display:none;position:fixed;bottom:0;left:0;right:0;z-index:39;height:calc(var(--rv-mobile-nav-h) + env(safe-area-inset-bottom,0px));padding:4px max(8px,env(safe-area-inset-left,0px)) calc(4px + env(safe-area-inset-bottom,0px)) max(8px,env(safe-area-inset-right,0px));align-items:stretch;justify-content:space-around;gap:2px;border-top:1px solid var(--line,#e5e7eb);background:var(--panel,#fff);box-shadow:0 -5px 22px rgba(20,11,52,.08)}
  body.rv-mobile-signed-in #rvMobileDock{display:flex}
  #rvMobileDock button{appearance:none;min-width:0;flex:1 1 0;border:0!important;background:transparent!important;color:var(--muted)!important;border-radius:10px!important;padding:6px 0 4px!important;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:10px!important;letter-spacing:0!important;font-weight:650!important;box-shadow:none!important;text-align:center;white-space:nowrap;cursor:pointer}
  #rvMobileDock button svg{width:21px;height:21px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
  #rvMobileDock button.active{background:color-mix(in srgb,var(--accent) 11%,transparent)!important;color:var(--accent)!important}
  #rvMobileDock button:focus-visible{outline:2px solid var(--accent)!important;outline-offset:-2px}
  body.rv-mobile-ready #cloudroot .cloudbar{display:none!important}
  #rvMobileAccountSheet{display:none;position:fixed;z-index:110;left:10px;right:10px;bottom:calc(var(--rv-mobile-nav-h) + 9px + env(safe-area-inset-bottom,0px));max-height:min(68dvh,530px);overflow-y:auto;padding:17px;border:1px solid var(--line);border-radius:19px;background:var(--panel);color:var(--text);box-shadow:0 14px 65px #110b2e48;overscroll-behavior:contain}
  body.rv-mobile-account-open #rvMobileBackdrop,body.rv-mobile-account-open #rvMobileAccountSheet{display:block!important}
  body.rv-mobile-account-open #rvMobileBackdrop{z-index:109}
  #rvMobileAccountSheet .rv-ma-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px}
  #rvMobileAccountSheet .rv-ma-head strong{font-size:15px}
  #rvMobileAccountSheet .rv-ma-head button{min-height:36px;width:36px;padding:0;border:1px solid var(--line);background:transparent;color:var(--text)}
  #rvMobileAccountSheet .rv-ma-user{font-size:12px;color:var(--muted);padding-bottom:12px;overflow-wrap:anywhere}
  #rvMobileAccountSheet label{display:block;font-weight:700;font-size:12px;margin-bottom:6px;color:var(--muted)}
  #rvMobileAccountSheet select{width:100%;height:44px;font-size:16px!important;background:var(--panel2);color:var(--text);border:1px solid var(--line);margin-bottom:13px}
  #rvMobileAccountSheet .rv-ma-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}
  #rvMobileAccountSheet .rv-ma-actions button{min-height:44px!important;padding:9px 10px!important;font-size:12px!important;display:flex;align-items:center;justify-content:center;gap:5px;border:1px solid var(--line);background:var(--panel2);color:var(--text)}
  #rvMobileAccountSheet .rv-ma-actions button.rv-ma-signout{color:var(--red)!important}
  /* Tighter mobile type, surfaces and vertical rhythm */
  body :is(.pagehead,.s25-head,.rv-setter-head,.rvp-head,.scos-pro-heading,.rvw-heading,.rv-head,.v26-hero){margin-top:10px!important;margin-bottom:13px!important;gap:10px!important}
  body :is(.pagehead,.s25-head,.rv-setter-head,.rvp-head,.scos-pro-heading){align-items:flex-start!important;flex-direction:column!important}
  body :is(h1,.s25-head h1,.v26-hero h1,.rv-setter-head h1,.rvp-head h1){font-size:clamp(21px,6vw,27px)!important;line-height:1.17!important;margin:2px 0 5px!important}
  body :is(.subtitle,.pagehead p,.s25-head p,.rv-setter-head p,.scos-pro-heading p){font-size:11.5px!important;line-height:1.45!important}
  body :is(.eyebrow,.s25-kicker,.rv-setter-eyebrow){font-size:9px!important;letter-spacing:.09em!important}
  body :is(.panel,.rv-panel,.rvw-panel,.rv-setter-card,.rvp-card,.intel-panel,.s25-panel,.sco-eod-card,.rv-support .rv-sp-panel){padding:12px!important;border-radius:13px!important;margin-bottom:11px!important;min-width:0!important}
  body :is(.panelhead,.rv-setter-section-head,.s25-panel-head){gap:8px!important;margin-bottom:11px!important;flex-wrap:wrap!important}
  body :is(.panelhead h2,.s25-panel h2,.rv-setter-card h2,.sco-eod-card h2){font-size:15px!important}
  body :is(.grid,.rv-setter-grid,.rvp-grid,.scos-pro-kpis,.s25-stats){gap:9px!important}
  body :is(.twocol,.threecol,.rvp-columns,.rv-setter-cards,.scos-pro-panels,.v21-command-grid){grid-template-columns:minmax(0,1fr)!important;gap:10px!important}
  body :is(.stats,.v21-kpis,.rvp-grid,.rv-setter-grid,.s25-stats,.scos-pro-kpis,.sco-eod-kpis){grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  body :is(.stat,.rvp-kpi,.rv-setter-kpi,.s25-stat,.scos-pro-kpi,.v21-kpi,.sco-eod-kpi){min-width:0;min-height:94px!important;padding:11px!important;border-radius:12px!important;overflow:hidden}
  body :is(.stat .big,.rvp-kpi strong,.rv-setter-kpi strong,.s25-stat strong,.scos-pro-kpi-value,.v21-kpi strong,.sco-eod-kpi strong){font-size:clamp(18px,5vw,24px)!important;line-height:1.12!important;overflow-wrap:anywhere}
  body :is(.stat .label,.rvp-kpi span,.rv-setter-kpi small,.s25-stat small,.scos-pro-kpi-label,.v21-kpi small){font-size:10px!important;line-height:1.3!important}
  body :is(.stat .micro,.rvp-kpi small,.rv-setter-kpi span){font-size:9.5px!important;line-height:1.3!important}
  body :is(.stat .big){margin:6px 0 3px!important}
  body :is(.v26-stats,.metriclist,.cardgrid){grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  body :is(.actions,.s25-actions,.rv-setter-actions,.scos-pro-actions,.rvp-bottom){display:flex;flex-wrap:wrap!important;gap:6px!important;max-width:100%!important}
  body :is(.btn,.s25-actions button,.rv-setter-actions button){min-height:38px;padding:8px 10px!important;font-size:11px!important;line-height:1.2!important;justify-content:center}
  body .formgrid,body .rv-setter-form{grid-template-columns:minmax(0,1fr)!important;gap:10px!important}
  body :is(input,select,textarea){max-width:100%;min-width:0!important;font-size:16px!important}
  body :is(.field,input,select,textarea,button,a){touch-action:manipulation}
  body :is(.field textarea,.rv-setter-form textarea){min-height:85px}
  body :is(.tablewrap,.rv-scroll,.rvp-scroll,.rv-setter-activity,.sco-eod-hscroll,.fathom-intake-scroll,.cl-review-scroll){width:100%;max-width:100%;overflow-x:auto!important;-webkit-overflow-scrolling:touch}
  body table{max-width:none}
  body .rv-setter-card table{min-width:490px}
  body .barrow{grid-template-columns:76px minmax(0,1fr) 45px;gap:7px;font-size:11px}
  body .s25-record>summary{padding:10px 9px!important;gap:8px!important;min-width:0!important}
  body .s25-person{min-width:0}
  body .s25-person :is(.s25-name,.s25-muted){overflow-wrap:anywhere!important;word-break:normal}
  body .s25-avatar{width:35px!important;height:35px!important;min-width:35px!important}
  body .s25-detail{padding:10px!important}
  body .s25-detail-footer{display:flex;flex-wrap:wrap;gap:6px}
  body .s25-detail-footer .btn{max-width:100%;flex:1 1 128px}
  body .s25-money{font-size:13px!important;text-align:right}
  body .s25-money small{font-size:10px!important}
  body .s25-head .s25-actions{width:100%}
  body .s25-head .s25-actions>*{flex:1 1 auto}
  body .modalback{padding:8px!important;align-items:center}
  body .modal{width:100%!important;max-height:calc(100dvh - 22px)!important;overflow:auto!important;padding:14px!important;border-radius:16px!important}
  body .modalfooter{flex-wrap:wrap}
  body .modalfooter .btn{flex:1}
  body .notice{padding:10px!important;font-size:11.5px!important}
  /* Dense calendar / report filters, no overwide fixed widths. */
  body .sco-eod-shell{margin:7px auto!important;width:100%;min-width:0}
  body .sco-eod-card{margin:10px 0!important}
  body .sco-eod-periods{display:flex!important;flex-wrap:nowrap!important;gap:3px!important;overflow-x:auto!important;width:100%!important;max-width:100%!important;margin:10px 0!important;padding:4px!important;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  body .sco-eod-periods::-webkit-scrollbar{display:none}
  body .sco-eod-periods button{flex:0 0 auto!important;min-height:36px!important;padding:7px 11px!important;font-size:11px!important;white-space:nowrap}
  body .sco-eod-manager-filters{grid-template-columns:1fr!important;gap:9px!important}
  body .sco-eod-fields.metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  body .sco-eod-form{gap:10px!important}
  body .sco-eod-footer{gap:8px!important}
  body .sco-eod-footer button{min-height:42px;flex:1 1 120px}
  body .scos-pro-overview{padding-top:9px!important}
  body .scos-pro-actions{gap:6px}
  body :is(.cc-month-report,.rvw-command,.rv-command,.rv-support,.rv-setter-space,.prospect-shell,.nx-prospect-page){min-width:0!important;width:100%;max-width:100%!important}
  body .cc-month-report{margin:0!important}
  body :is(.nx-pipeline,.scos-stage-nav,.cl-tabs,.rvw-tabs){max-width:100%;overflow-x:auto!important;-webkit-overflow-scrolling:touch}
  body .rv-setter-space{padding:9px 0 85px!important}
  body .rv-setter-cards .rv-setter-card{min-height:0!important}
  body #scos-calendly-live-root{padding:10px!important}
  body #scos-calendly-live-root :is(.cl-cards,.cl-mapping){grid-template-columns:1fr!important}
  body .fathom-intake-card{padding:12px!important}
  body .rv-support .rv-sp-grid{grid-template-columns:1fr!important}
  /* Homepage's oversized decorative orbital panel becomes four compact stat tiles. */
  body .aura-stage{min-height:0!important;height:auto!important;padding:12px!important;margin:8px 0 12px!important;border-radius:13px!important}
  body .aura-stage :is(.aura-core-zone,.aura-core){display:none!important}
  body .aura-caption{position:relative!important;top:auto!important;left:auto!important;right:auto!important;margin:0 0 12px!important;font-size:10px!important}
  body .aura-satellites{position:relative!important;inset:auto!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;pointer-events:auto!important}
  body .aura-satellite{position:relative!important;inset:auto!important;transform:none!important;animation:none!important;width:auto!important;min-width:0!important;min-height:85px!important;padding:10px 5px!important;border-radius:12px!important;box-shadow:none!important}
  body .aura-satellite strong{font-size:20px!important;margin:5px 0!important}
  body .aura-satellite small{font-size:10px!important}
  body .aura-satellite em{font-size:9px!important}
  body .v21-orb-stage{height:185px!important;min-height:0!important;overflow:hidden}
  body .v21-orb-aura{transform:scale(.7)}
  /* The AI assistant must stay reachable without covering the bottom nav. */
  body #rvAssistantRoot[data-open="false"]{top:auto!important;bottom:calc(var(--rv-mobile-nav-h) + 11px + env(safe-area-inset-bottom,0px))!important;right:8px!important;transform:none!important;z-index:68!important}
  body #rvAssistantRoot[data-open="false"] .rv-chat-launch{width:43px!important;height:43px!important;min-height:43px!important;min-width:43px!important;border-radius:14px 0 0 14px!important}
  body #rvAssistantRoot[data-open="true"]{position:fixed!important;inset:auto 0 0 auto!important;transform:none!important;width:0!important;height:0!important;z-index:120!important}
  body #rvAssistantRoot[data-open="true"] .rv-chat-window{position:fixed!important;height:calc(100dvh - var(--rv-mobile-nav-h) - 22px - env(safe-area-inset-bottom,0px))!important;max-height:none!important;width:calc(100vw - 16px)!important;max-width:none!important;right:8px!important;bottom:calc(var(--rv-mobile-nav-h) + 9px + env(safe-area-inset-bottom,0px))!important;top:auto!important;left:auto!important;transform:none!important;border-radius:15px!important}
  body #rvAssistantRoot[data-open="true"] .rv-chat-launch{position:fixed!important;bottom:calc(var(--rv-mobile-nav-h) + 13px + env(safe-area-inset-bottom,0px));right:4px;z-index:121}
  body #rvAssistantRoot .rv-chat-messages{min-height:0}
}
@media(max-width:360px){
  body .main{padding-inline:9px!important}
  body .top{margin-inline:-9px!important;padding-inline:7px!important}
  body :is(.stats,.scos-pro-kpis,.v21-kpis,.rvp-grid,.rv-setter-grid,.s25-stats){gap:6px!important}
  body :is(.stat,.rvp-kpi,.rv-setter-kpi,.s25-stat,.v21-kpi){padding:9px!important}
  body .top .crumb #crumb{font-size:12px!important}
  #rvMobileDock button{font-size:9px!important}
}
@media(min-width:851px){#rvMobileDock,#rvMobileBackdrop,#rvMobileAccountSheet,#rvMobileAccountBtn,#rvMobileMenuClose{display:none!important}}
@media(prefers-reduced-motion:reduce){body .sidebar{transition:none!important}}
