/* Oasis Reach v907: one authenticated shell for every business module. */
:root{
  --or-shell-side:216px;
  --or-shell-top:58px;
  --or-shell-bg:#f4f7f6;
  --or-shell-card:#fff;
  --or-shell-card-soft:#f7faf9;
  --or-shell-border:#dce6e2;
  --or-shell-text:#173b36;
  --or-shell-muted:#6b7f7b;
  --or-shell-primary:#0b9568;
  --or-shell-primary-soft:#e2f4eb;
  --or-shell-danger:#b43d43;
}
html[data-theme="dark"]{
  --or-shell-bg:#0d1720;
  --or-shell-card:#14212b;
  --or-shell-card-soft:#192a35;
  --or-shell-border:#2c3f49;
  --or-shell-text:#eef5f2;
  --or-shell-muted:#9eb0ac;
  --or-shell-primary:#55c59a;
  --or-shell-primary-soft:#173b32;
}
html,body{max-width:100%;overflow-x:hidden}
body{background:var(--or-shell-bg)!important;color:var(--or-shell-text)!important}
body::before,body::after{display:none!important}
.app{min-height:100vh;background:var(--or-shell-bg)!important}
.sidebar{
  position:fixed!important;inset-block:0;inset-inline-start:0;z-index:900;
  width:var(--or-shell-side)!important;padding:16px 12px!important;gap:16px!important;
  background:#15252e!important;border-inline-end:1px solid #233942!important;
  box-shadow:none!important;backdrop-filter:none!important;overflow:hidden;
}
.sidebar .brand-name{color:#f4faf7!important}.sidebar .brand-sub{color:#91aaa2!important}
.sidebar .nav-item{color:#aebfba!important}.sidebar .nav-item:hover{background:#20363d!important;color:#fff!important}.sidebar .nav-item.active{background:#173f38!important;color:#68d0aa!important}.sidebar .nav-item[data-v8="settings"]{border-top-color:#2a4148!important}
.brand{display:grid;grid-template-columns:34px minmax(0,1fr);grid-template-rows:auto auto;column-gap:10px;align-items:center;padding:2px 6px!important}
.brand-mark{grid-row:1/3;width:34px!important;height:34px!important;margin:0!important;border:0!important;border-radius:10px!important;transform:none!important;background:var(--or-shell-primary)!important;position:relative}
.brand-mark::before,.brand-mark::after{content:"";position:absolute;left:7px;right:7px;height:5px;border:2px solid #fff;border-left:0;border-right:0;border-radius:50%;transform:none!important}
.brand-mark::before{top:8px}.brand-mark::after{bottom:8px}
.brand-name{font-size:15px!important;letter-spacing:0!important;color:var(--or-shell-text)!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.brand-sub{font-size:10px!important;letter-spacing:0!important;margin:0!important;color:var(--or-shell-muted)!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sidebar>.lang-switch,.sidebar>.vertical-switch,.sidebar>.sidebar-foot{display:none!important}
.sidebar nav{display:flex!important;flex-direction:column!important;gap:4px!important;height:auto!important;min-height:0;flex:1}
.sidebar .nav-item{
  width:100%;min-height:42px;padding:10px 12px!important;border:0!important;border-radius:9px!important;
  background:transparent!important;color:var(--or-shell-muted)!important;box-shadow:none!important;
  font:600 14px/1.2 inherit;text-align:start;cursor:pointer;white-space:nowrap;text-decoration:none;
}
.sidebar .nav-item[hidden]{display:none!important}
.sidebar .nav-item:hover{background:var(--or-shell-card-soft)!important;color:var(--or-shell-text)!important}
.sidebar .nav-item.active{background:var(--or-shell-primary-soft)!important;color:var(--or-shell-primary)!important;font-weight:750;box-shadow:none!important}
.sidebar .nav-item[data-v8="settings"]{margin-top:auto!important;border-top:1px solid var(--or-shell-border)!important;border-radius:0!important;padding-top:14px!important}
/* Keep the authenticated reference shell dark in light mode. These declarations
   intentionally follow the generic token-based states above so they cannot turn
   the dark rail into pale cards through equal-specificity cascade overrides. */
.sidebar .nav-item{color:#aebfba!important}
.sidebar .nav-item:hover{background:#20363d!important;color:#fff!important}
.sidebar .nav-item.active{background:var(--or-shell-primary)!important;color:#fff!important;box-shadow:inset 3px 0 0 #65d5c3!important}
.sidebar .nav-item[data-v8="settings"]{border-top-color:#2a4148!important}
/* The day theme uses `html[data-theme="light"] :is(...)` selectors with
   higher specificity than `.sidebar`.  Match that scope explicitly so the
   authenticated reference rail stays dark in both themes. */
html[data-theme="light"] .sidebar,
html[data-theme="dark"] .sidebar{
  background:#15252e!important;border-inline-end-color:#233942!important;
  box-shadow:none!important;backdrop-filter:none!important;
}
html[data-theme="light"] .sidebar .brand-name,
html[data-theme="dark"] .sidebar .brand-name{color:#f4faf7!important}
html[data-theme="light"] .sidebar .brand-sub,
html[data-theme="dark"] .sidebar .brand-sub{color:#91aaa2!important}
html[data-theme="light"] .sidebar .nav-item,
html[data-theme="dark"] .sidebar .nav-item{background:transparent!important;border-color:transparent!important;color:#aebfba!important}
html[data-theme="light"] .sidebar .nav-item:hover,
html[data-theme="dark"] .sidebar .nav-item:hover{background:#20363d!important;color:#fff!important}
html[data-theme="light"] .sidebar .nav-item.active,
html[data-theme="dark"] .sidebar .nav-item.active{background:var(--or-shell-primary)!important;border-color:transparent!important;color:#fff!important;box-shadow:inset 3px 0 0 #65d5c3!important}
html[data-theme="light"] .sidebar .nav-item[data-v8="settings"],
html[data-theme="dark"] .sidebar .nav-item[data-v8="settings"]{border-top-color:#2a4148!important}
.v8-nav-icon{display:inline-grid;width:20px;height:20px;place-items:center;flex:0 0 20px;font-size:16px}
main{
  min-width:0!important;width:calc(100% - var(--or-shell-side))!important;margin-inline-start:var(--or-shell-side)!important;
  padding:calc(var(--or-shell-top) + 18px) 22px 36px!important;background:var(--or-shell-bg)!important;overflow:visible!important;
}
#or-cloud-bar.show{
  display:flex!important;position:fixed!important;z-index:890!important;inset-block-start:0!important;
  inset-inline-start:var(--or-shell-side)!important;inset-inline-end:0!important;width:auto!important;height:var(--or-shell-top)!important;
  padding:0 22px!important;gap:10px!important;border:0!important;border-bottom:1px solid var(--or-shell-border)!important;border-radius:0!important;
  background:color-mix(in srgb,var(--or-shell-card) 96%,transparent)!important;color:var(--or-shell-text)!important;
  box-shadow:none!important;backdrop-filter:blur(12px)!important;overflow:visible!important;
}
#or-cloud-bar .or-dot{background:var(--or-shell-primary)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--or-shell-primary) 18%,transparent)!important}
#or-cloud-bar .or-status{color:var(--or-shell-muted)!important;font-size:11px}
#or-cloud-bar .or-user{display:block!important;margin-inline-start:auto;color:var(--or-shell-text)!important;max-width:220px;font-size:12px}
#or-cloud-bar .or-mini:not(#or-logout-btn),#or-cloud-bar .or-theme-switcher{display:none!important}
#or-cloud-bar #or-logout-btn{display:inline-flex!important;white-space:nowrap;background:var(--or-shell-card-soft)!important;border:1px solid var(--or-shell-border)!important;color:var(--or-shell-muted)!important;padding:7px 10px!important}
#or-cloud-bar .or-lang-select{order:20;min-width:104px;background:var(--or-shell-card)!important;border:1px solid var(--or-shell-border)!important;color:var(--or-shell-text)!important}
#v8-sidebar-toggle{order:-20;width:34px;height:34px;border:1px solid var(--or-shell-border);border-radius:8px;background:var(--or-shell-card);color:var(--or-shell-text);cursor:pointer;font-size:18px}
#v8-top-title{order:-10;font-size:16px;font-weight:750;color:var(--or-shell-text);white-space:nowrap}
#v8-business-scope{order:10;min-width:150px;max-width:220px;border:1px solid var(--or-shell-border);border-radius:8px;padding:7px 9px;background:var(--or-shell-card);color:var(--or-shell-text);font:600 12px/1.2 inherit}
#v8-language-switch{order:20;display:flex;align-items:center;gap:3px;padding:2px;border:1px solid var(--or-shell-border);border-radius:9px;background:#f7f9fb}
#v8-language-switch button{height:28px;padding:0 7px;border:0;border-radius:6px;background:transparent;color:var(--or-shell-muted);font:700 11px/1 inherit;cursor:pointer}
#v8-language-switch button.active{background:#fff;color:var(--or-shell-primary);box-shadow:0 1px 3px rgba(24,39,58,.12)}
#v8-release-notice{position:fixed;z-index:10020;inset-inline:calc(var(--or-shell-side) + 18px) 18px;top:calc(var(--or-shell-top) + 10px);display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid #efc36f;border-radius:10px;background:#fff8e8;color:#6d4a00;box-shadow:0 8px 24px rgba(24,39,58,.16)}
#v8-release-notice span{flex:1;font-size:12px;font-weight:650}#v8-release-notice button{flex:0 0 auto}
#or-global-lang{display:none!important}
.view{max-width:100%!important}
#view-v8{padding:0 0 42px!important;overflow:visible!important}
.v8-hero,.v8-page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin:0 0 16px!important}
.v8-title{font:750 24px/1.2 inherit!important;color:var(--or-shell-text)!important}
.v8-sub{margin-top:5px!important;color:var(--or-shell-muted)!important;font-size:13px;max-width:820px}
.v8-live{display:inline-flex;align-items:center;padding:6px 9px;border-radius:999px;background:var(--or-shell-primary-soft);color:var(--or-shell-primary)!important;font-size:11px;white-space:nowrap}
.v8-module-tabs{display:flex!important;flex-direction:row!important;gap:4px;overflow:auto;margin:0 0 16px;padding:3px;border-bottom:1px solid var(--or-shell-border)}
.v8-module-tab{appearance:none;border:0;border-bottom:2px solid transparent;background:transparent;color:var(--or-shell-muted);padding:9px 13px;font:650 13px/1.2 inherit;cursor:pointer;white-space:nowrap;text-decoration:none}
.v8-module-tab.active{color:var(--or-shell-primary);border-bottom-color:var(--or-shell-primary)}
.v8-module-tab:hover{color:var(--or-shell-text);background:var(--or-shell-card-soft)}
.v8-hub{padding:0!important;margin:0 0 14px!important}.v8-hub h2{margin:0 0 5px!important;color:var(--or-shell-text)!important;font-size:20px}.v8-hub p{margin:0;color:var(--or-shell-muted)!important;font-size:13px}
:is(.v8-card,.v8-panel,.v8-launch,.ms-card,.ms-kpi,.ms-account-card,.ms-table-wrap,.ms-inbox,.ms-modal-box,.or-card,.or-modal-box,.v8-platform-main,.v8-platform-nav){
  background:var(--or-shell-card)!important;border:1px solid var(--or-shell-border)!important;color:var(--or-shell-text)!important;box-shadow:none!important;border-radius:10px!important;
}
.v8-card{padding:14px!important}.v8-card b{color:var(--or-shell-text)!important;font-size:24px!important}.v8-label,.ms-muted,.ms-page-sub,.or-muted,.v8-platform-meta,.v8-sub{color:var(--or-shell-muted)!important}
.v8-panel{padding:16px!important}.v8-panel h3,.ms-page-title,.ms-card-title,.ms-account-name{color:var(--or-shell-text)!important}
.v8-launch{padding:15px!important}.v8-launch:hover{border-color:var(--or-shell-primary)!important;background:var(--or-shell-card-soft)!important}.v8-launch strong{color:var(--or-shell-text)!important}.v8-launch span{color:var(--or-shell-muted)!important}
.v8-kpis{grid-template-columns:repeat(4,minmax(140px,1fr))!important;gap:12px!important}.v8-panels{gap:12px!important}.v8-event,.v8-stage{background:var(--or-shell-card-soft)!important;color:var(--or-shell-text)!important;border-color:var(--or-shell-border)!important}.v8-stage b{color:var(--or-shell-primary)!important}
.v8-table,.ms-table{color:var(--or-shell-text)!important}.v8-table th,.ms-table th{background:var(--or-shell-card-soft)!important;color:var(--or-shell-muted)!important;border-color:var(--or-shell-border)!important}.v8-table td,.ms-table td{background:var(--or-shell-card)!important;color:var(--or-shell-text)!important;border-color:var(--or-shell-border)!important}
:is(.v8-btn,.ms-btn,.or-btn,.btn){border-radius:8px!important;min-height:34px;white-space:nowrap;font-size:12px!important;box-shadow:none!important}
:is(.v8-btn,.ms-btn.primary,.or-btn.primary,.btn){background:var(--or-shell-primary)!important;border-color:var(--or-shell-primary)!important;color:#fff!important}
:is(.v8-btn.secondary,.ms-btn:not(.primary),.or-btn:not(.primary)){background:var(--or-shell-card)!important;border:1px solid var(--or-shell-border)!important;color:var(--or-shell-text)!important}
:is(input,select,textarea,.v8-input,.v8-select,.ms-input,.ms-select,.ms-textarea){background:var(--or-shell-card)!important;border-color:var(--or-shell-border)!important;color:var(--or-shell-text)!important;border-radius:8px!important}
.ms-shell{display:block!important;height:auto!important;min-height:0!important;background:transparent!important;color:var(--or-shell-text)!important}
body.matrix-mode>.app>.sidebar{display:flex!important}
body.matrix-mode>.app>main{width:calc(100% - var(--or-shell-side))!important;margin-inline-start:var(--or-shell-side)!important;padding:calc(var(--or-shell-top) + 22px) 24px 40px!important}
.ms-main{display:block!important;height:auto!important;overflow:visible!important;background:transparent!important}
.ms-content{padding:0!important;overflow:visible!important;background:transparent!important}
.ms-page-head{margin-bottom:14px!important}.ms-page-title{font-size:20px!important}.ms-page-sub{font-size:12px!important;line-height:1.5}
.ms-tabs{border-color:var(--or-shell-border)!important}.ms-tab{color:var(--or-shell-muted)!important;font-size:12px!important}.ms-tab.active{color:var(--or-shell-primary)!important;border-bottom-color:var(--or-shell-primary)!important}
.ms-grid,.ms-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))!important}.ms-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}.ms-account-card{min-height:0!important;padding:14px!important}.ms-account-stats{border-color:var(--or-shell-border)!important}.ms-account-stats b{color:var(--or-shell-text)!important}.ms-account-stats span{color:var(--or-shell-muted)!important}
#or706-release-card{display:none!important}
.v8-platform-shell{display:block!important}.v8-platform-nav{display:flex!important;gap:6px!important;overflow:auto!important;padding:8px!important;margin-bottom:12px!important}.v8-platform-main{padding:14px!important}.v8-platform-pick{flex:0 0 auto!important}.v8-platform-tabs{overflow:auto!important}
.v8-platform-card,.v8-platform-kpi,.acq9-source,.acq9-plan,.acq9-decision,.acq9-import-note{background:var(--or-shell-card-soft)!important;border-color:var(--or-shell-border)!important;color:var(--or-shell-text)!important}
.v8-safe{background:var(--or-shell-primary-soft)!important;color:var(--or-shell-primary)!important;border-color:color-mix(in srgb,var(--or-shell-primary) 35%,var(--or-shell-border))!important}
.acq9-group h4{background:var(--or-shell-card)!important;color:var(--or-shell-text)!important}.acq9-country{border-color:var(--or-shell-border)!important}.acq9-items label{background:var(--or-shell-card-soft)!important}
body.v8-sidebar-collapsed{--or-shell-side:68px}
body.v8-sidebar-collapsed .brand{display:flex;justify-content:center;padding:2px!important}
body.v8-sidebar-collapsed .brand-name,body.v8-sidebar-collapsed .brand-sub,body.v8-sidebar-collapsed .sidebar .nav-item span:not(.v8-nav-icon){display:none!important}
body.v8-sidebar-collapsed .sidebar .nav-item{justify-content:center;padding-inline:8px!important}
html[dir="rtl"] .sidebar{border-inline-end:1px solid var(--or-shell-border)!important;border-left:1px solid var(--or-shell-border)!important}
html[dir="rtl"] .sidebar .nav-item{flex-direction:row!important;text-align:start!important}
html[dir="rtl"] #or-cloud-bar.show{direction:rtl}
html[dir="rtl"] :is(.v8-module-tabs,.v8-platform-nav,.v8-toolbar,.ms-actions,.ms-page-head){direction:rtl}
@media(max-width:1100px){.v8-kpis{grid-template-columns:repeat(2,minmax(130px,1fr))!important}.ms-grid,.ms-grid-3{grid-template-columns:repeat(2,minmax(0,1fr))!important}.v8-three{grid-template-columns:1fr!important}}
@media(max-width:760px){
  :root{--or-shell-side:0px}
  .sidebar{width:216px!important;transform:translateX(-110%);transition:transform .2s ease;box-shadow:0 14px 36px rgba(0,0,0,.16)!important}
  html[dir="rtl"] .sidebar{transform:translateX(110%)}
  body.v8-mobile-nav-open .sidebar{display:flex!important;transform:translateX(0);pointer-events:auto}
  main{width:100%!important;margin-inline-start:0!important;padding:calc(var(--or-shell-top) + 14px) 12px 28px!important}
  body.matrix-mode>.app>main{width:100%!important;margin-inline-start:0!important;padding:calc(var(--or-shell-top) + 14px) 12px 28px!important}
  #or-cloud-bar.show{inset-inline-start:0!important;padding:0 10px!important;height:var(--or-shell-top)!important;overflow:hidden!important}
  #or-cloud-bar .or-dot,#or-cloud-bar .or-status,#or-cloud-bar .or-user,#v8-business-scope{display:none!important}
  #v8-language-switch button{padding-inline:5px}
  #v8-top-title{font-size:14px;max-width:38vw;overflow:hidden;text-overflow:ellipsis}
  #or-cloud-bar .or-lang-select{margin-inline-start:auto;min-width:82px;width:82px}
  .v8-hero,.v8-page-head{display:block}.v8-live{margin-top:9px}.v8-kpis,.ms-grid,.ms-grid-2,.ms-grid-3,.acq9-grid{grid-template-columns:1fr!important}
  .ms-page-head{grid-template-columns:1fr!important}.ms-actions{justify-content:flex-start!important}.ms-compose,.ms-inbox{grid-template-columns:1fr!important}.ms-convos{max-height:280px}.v8-module-tab{padding-inline:10px}
  #v8-release-notice{inset-inline:12px;top:calc(var(--or-shell-top) + 8px)}
}
@media(max-width:420px){.v8-kpis{grid-template-columns:1fr!important}.v8-title{font-size:21px!important}.v8-card b{font-size:21px!important}.v8-panel{padding:12px!important}}

/* v908 CRM recovery + social matrix account operations */
.v908-stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:14px}
.v908-stat{min-height:96px;padding:16px;background:var(--or-shell-card);border:1px solid var(--or-shell-border);border-radius:10px}
.v908-stat span,.v908-stat small{display:block;color:var(--or-shell-muted);font-size:12px}.v908-stat b{display:block;margin:8px 0 4px;font-size:25px;color:var(--or-shell-text)}
.v908-toolbar,.v908-selection,.v908-pagination,.v908-group-create{display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding:12px;background:var(--or-shell-card);border:1px solid var(--or-shell-border)}
.v908-toolbar{border-radius:10px 10px 0 0}.v908-selection{border-top:0}.v908-toolbar input{min-width:220px;flex:1}.v908-selection strong{color:var(--or-shell-primary);margin-inline-end:auto}
.v908-table-wrap{overflow:auto;border-inline:1px solid var(--or-shell-border);background:var(--or-shell-card)}.v908-table{min-width:1180px}.v908-table td strong,.v908-table td small{display:block}.v908-table td small{margin-top:3px;color:var(--or-shell-muted);max-width:180px;overflow:hidden;text-overflow:ellipsis}
.v908-platform,.v908-chip,.v908-health{display:inline-flex;align-items:center;gap:5px;padding:4px 7px;border-radius:999px;background:var(--or-shell-primary-soft);color:var(--or-shell-primary);font-size:11px;margin:2px}.v908-platform i{display:grid;place-items:center;width:18px;height:18px;border-radius:5px;background:var(--or-shell-primary);color:#fff;font:700 10px/1 inherit;font-style:normal}.v908-health.risk{background:#fff1ed;color:#b94b3b}
.v908-pagination{justify-content:flex-end;border-radius:0 0 10px 10px}.v908-pagination span{margin-inline-end:auto;color:var(--or-shell-muted)}
.v908-loading,.v908-error{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:72px}.v908-error{border-color:#e4a99f!important;background:#fff8f6!important;color:#8f2f22!important}.v908-action-status{flex-basis:100%;min-height:18px;color:var(--or-shell-muted);font-size:12px}.v908-selection.attention{outline:2px solid color-mix(in srgb,var(--or-shell-primary) 45%,transparent);outline-offset:-2px}
.v908-group-grid,.v908-project-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:14px}.v908-group-create{border-radius:10px}.v908-group-create input{flex:1}.v908-group-stats{color:var(--or-shell-muted);margin:12px 0}
.v908-project{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:14px;border:1px solid var(--or-shell-border);border-radius:10px;background:var(--or-shell-card);color:var(--or-shell-text);text-align:start;cursor:pointer}.v908-project b{font-size:20px}.v908-project.active{border-color:var(--or-shell-primary);box-shadow:0 0 0 2px color-mix(in srgb,var(--or-shell-primary) 15%,transparent)}
.v908-detail{display:grid;grid-template-columns:minmax(120px,.45fr) 1fr;gap:8px 14px}.v908-detail dt{color:var(--or-shell-muted)}.v908-detail dd{margin:0;overflow-wrap:anywhere}.v908-cap-grid{display:flex;flex-wrap:wrap;gap:6px}.v908-review{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:12px;padding:10px 12px;border:1px solid #ecc980;border-radius:9px;background:#fff9e8;color:#815e16}.v908-error{color:var(--or-shell-danger)}
#v908-drawer .v8-drawer-card{overflow:auto}#v908-drawer a{display:block;margin:4px 0;overflow-wrap:anywhere}
html[dir="rtl"] :is(.v908-toolbar,.v908-selection,.v908-pagination,.v908-group-create){direction:rtl}.v908-table th,.v908-table td{text-align:start!important}
@media(max-width:1100px){.v908-stat-grid,.v908-group-grid,.v908-project-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.v908-stat-grid,.v908-group-grid,.v908-project-cards{grid-template-columns:1fr}.v908-toolbar>*{width:100%}.v908-selection{align-items:stretch}.v908-selection>*{flex:1 1 42%}.v908-pagination{justify-content:flex-start}.v908-pagination span{flex-basis:100%}}
