/* =========================================================
   C&C Sphere App CSS
   Consolidated preview version
   ========================================================= */

/* ------------------------------
   1. Variables
------------------------------ */
:root{
  --sp-gold:#d99a21;
  --sp-gold-2:#ffc456;
  --sp-navy:#061426;
  --sp-navy-2:#07111f;
  --sp-navy-3:#0b2037;
  --sp-ink:#0b1524;
  --sp-bg:#f7f2e8;
  --sp-card:#ffffff;
  --sp-muted:#667085;
  --sp-line:rgba(12,31,55,.12);
  --sp-radius:22px;
  --sp-shadow:0 18px 50px rgba(8,24,45,.12);
  --sp-max:1780px;
}

/* ------------------------------
   2. Base
------------------------------ */
*{
  box-sizing:border-box;
}

html{
  min-height:100%;
  scroll-behavior:smooth;
}

body.sphere-app-body{
  margin:0;
  min-height:100vh;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:
    radial-gradient(circle at 8% 0%,rgba(217,154,33,.18),transparent 34rem),
    radial-gradient(circle at 100% 4%,rgba(6,20,38,.10),transparent 36rem),
    linear-gradient(180deg,#fff7e7 0%,#f7f1e5 34%,#ffffff 100%);
  color:var(--sp-ink);
}

body.sphere-app-body a{
  color:inherit;
}

.sp-page{
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

.sp-svg-sprite{
  position:absolute;
  width:0;
  height:0;
  overflow:hidden;
}

.sp-i{
  width:18px;
  height:18px;
  flex:0 0 auto;
  display:inline-block;
  stroke:currentColor;
  fill:none;
  stroke-width:1.85;
  stroke-linecap:round;
  stroke-linejoin:round;
  vertical-align:-.18em;
}

/* ------------------------------
   3. Header
------------------------------ */
.sp-top{
  position:sticky;
  top:0;
  z-index:100;
  color:#fff;
  background:
    radial-gradient(circle at 0% 0%,rgba(217,154,33,.18),transparent 28rem),
    radial-gradient(circle at 100% 0%,rgba(255,196,86,.10),transparent 24rem),
    linear-gradient(180deg,#061426 0%,#071321 100%);
  box-shadow:0 20px 70px rgba(3,10,20,.36);
}

.sp-top-inner{
  width:min(var(--sp-max),calc(100% - 56px));
  min-height:92px;
  margin:0 auto;
  display:grid;
  grid-template-columns:310px minmax(540px,820px) minmax(560px,auto);
  gap:22px;
  align-items:center;
}

.sp-logo{
  display:flex;
  align-items:center;
  gap:14px;
  text-decoration:none;
  min-width:0;
}

.sp-logo-mark,
.sp-logo-img{
  width:54px;
  height:54px;
  border-radius:18px;
}

.sp-logo-mark{
  display:grid;
  place-items:center;
  border:1px solid rgba(255,196,86,.48);
  color:var(--sp-gold-2);
  font-weight:950;
  font-size:24px;
  background:radial-gradient(circle at 30% 20%,rgba(255,196,86,.35),transparent 46%),rgba(255,255,255,.04);
}

.sp-logo-img{
  object-fit:contain;
}

.sp-logo-copy strong{
  display:block;
  color:#fff;
  font-size:23px;
  line-height:1;
  letter-spacing:-.045em;
  text-shadow:0 8px 24px rgba(0,0,0,.25);
}

.sp-logo-copy small{
  display:block;
  margin-top:4px;
  color:#f0c170;
  font-size:12.5px;
  font-weight:700;
}

/* Header search */
.sp-search{
  display:grid;
  grid-template-columns:150px minmax(0,1fr) 62px;
  height:58px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:18px;
  overflow:hidden;
  background:rgba(255,255,255,.08);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 16px 36px rgba(0,0,0,.18);
}

.sp-search select,
.sp-search input{
  border:0;
  outline:none;
  color:#fff;
  font-weight:750;
}

.sp-search select{
  padding:0 14px;
  background:rgba(255,255,255,.06);
  border-right:1px solid rgba(255,255,255,.12);
  font-size:14px;
  cursor:pointer;
}

.sp-search option{
  color:#111827;
  background:#fff;
}

.sp-search input{
  min-width:0;
  padding:0 16px;
  background:rgba(255,255,255,.035);
  font-size:14.5px;
}

.sp-search input::placeholder{
  color:rgba(255,255,255,.62);
}

.sp-search button{
  border:0;
  background:linear-gradient(135deg,var(--sp-gold),var(--sp-gold-2));
  color:#111827;
  font-size:20px;
  font-weight:950;
  cursor:pointer;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.22);
}

/* Header actions */
.sp-actions{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:12px;
}

.sp-chip,
.sp-icon-btn,
.sp-create-btn{
  min-height:46px;
  border-radius:15px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.075);
  color:#fff;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:0 14px;
  font-size:13px;
  font-weight:900;
  white-space:nowrap;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter:blur(14px);
}

.sp-chip:hover,
.sp-icon-btn:hover{
  border-color:rgba(217,154,33,.5);
  background:rgba(255,255,255,.11);
}

.sp-icon-btn{
  width:46px;
  padding:0;
  position:relative;
}

.sp-icon-btn .sp-i,
.sp-chip .sp-i{
  width:18px;
  height:18px;
  color:#ffd37d;
}

.sp-icon-btn .dot{
  position:absolute;
  top:-7px;
  right:-7px;
  min-width:21px;
  height:21px;
  padding:0 5px;
  border-radius:999px;
  background:var(--sp-gold);
  color:#111827;
  display:grid;
  place-items:center;
  font-size:11px;
  font-weight:950;
}

.sp-user-pill{
  min-height:46px;
  display:flex;
  align-items:center;
  gap:9px;
  color:#fff;
  text-decoration:none;
  padding:5px 12px;
  border-radius:17px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.075);
  backdrop-filter:blur(14px);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
}

.sp-user-pill:hover{
  border-color:rgba(217,154,33,.5);
  background:rgba(255,255,255,.11);
}

.sp-user-avatar{
  width:38px;
  height:38px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,#ffffff,#d99a21);
  color:#071525;
  font-weight:950;
}

.sp-user-pill strong{
  display:block;
  font-size:13px;
  line-height:1;
}

.sp-user-pill small{
  display:block;
  color:var(--sp-gold-2);
  font-size:11px;
  margin-top:3px;
}

.sp-create-btn{
  padding:0 18px;
  background:linear-gradient(135deg,#d99a21,#b66a10);
  border-color:rgba(255,196,86,.45);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 14px 30px rgba(217,154,33,.18);
}

.sp-create-btn:hover{
  filter:brightness(1.06);
}

.sp-create-btn .sp-i{
  color:#fff;
}

/* Theme toggle */
.sp-theme-toggle{
  cursor:pointer;
  font-family:inherit;
}

.sp-theme-toggle span:first-child{
  font-size:15px;
  line-height:1;
}

/* Language menu */
.sp-lang-menu{
  position:relative;
  display:inline-flex;
}

.sp-lang-menu summary{
  list-style:none;
  cursor:pointer;
}

.sp-lang-menu summary::-webkit-details-marker{
  display:none;
}

.sp-lang-dropdown{
  position:absolute;
  top:calc(100% + 10px);
  right:0;
  min-width:120px;
  padding:8px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.16);
  background:#071525;
  box-shadow:0 18px 45px rgba(0,0,0,.28);
  display:grid;
  gap:5px;
  z-index:200;
}

html[dir="rtl"] .sp-lang-dropdown{
  right:auto;
  left:0;
}

.sp-lang-menu:not([open]) .sp-lang-dropdown{
  display:none;
}

.sp-lang-dropdown a{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:7px 10px;
  border-radius:11px;
  color:#fff;
  text-decoration:none;
  font-size:12px;
  font-weight:950;
}

.sp-lang-dropdown a:hover,
.sp-lang-dropdown a.is-active{
  background:linear-gradient(135deg,var(--sp-gold),var(--sp-gold-2));
  color:#111827;
}

/* ------------------------------
   4. Top Navigation
------------------------------ */
.sp-nav{
  background:linear-gradient(180deg,rgba(4,13,25,.70),rgba(4,13,25,.92));
  border-top:1px solid rgba(255,255,255,.08);
}

.sp-nav-inner{
  width:min(var(--sp-max),calc(100% - 56px));
  min-height:58px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  overflow:auto;
  scrollbar-width:none;
}

.sp-nav-inner::-webkit-scrollbar{
  display:none;
}

.sp-nav a{
  isolation:isolate;
  position:relative;
  height:58px;
  padding:0 17px;
  border-radius:16px 16px 0 0;
  overflow:hidden;
  color:rgba(255,255,255,.86);
  display:inline-flex;
  align-items:center;
  gap:8px;
  text-decoration:none;
  font-size:13.5px;
  font-weight:900;
  white-space:nowrap;
  transition:color .18s ease,background .18s ease;
}

.sp-nav a::before{
  content:"";
  position:absolute;
  inset:8px 5px 7px;
  z-index:-1;
  border-radius:15px;
  background:linear-gradient(135deg,rgba(217,154,33,.18),rgba(255,255,255,.045));
  border:1px solid rgba(217,154,33,.22);
  opacity:0;
  transform:translateY(4px) scale(.98);
  transition:opacity .18s ease,transform .18s ease,border-color .18s ease;
}

.sp-nav a::after{
  content:"";
  position:absolute;
  left:18px;
  right:18px;
  bottom:0;
  height:3px;
  border-radius:999px 999px 0 0;
  background:transparent;
}

.sp-nav a:hover,
.sp-nav a.is-active{
  color:#fff;
}

.sp-nav a:hover::before,
.sp-nav a.is-active::before{
  opacity:1;
  transform:translateY(0) scale(1);
  border-color:rgba(217,154,33,.46);
}

.sp-nav a:hover::after,
.sp-nav a.is-active::after{
  background:linear-gradient(90deg,var(--sp-gold),var(--sp-gold-2));
}

.sp-nav a .sp-i{
  width:18px;
  height:18px;
  padding:4px;
  box-sizing:content-box;
  color:#ffd37d;
  background:rgba(217,154,33,.10);
  border:1px solid rgba(217,154,33,.22);
  border-radius:999px;
}

.sp-nav a:hover .sp-i,
.sp-nav a.is-active .sp-i{
  color:#fff;
  background:linear-gradient(135deg,rgba(217,154,33,.42),rgba(255,196,86,.22));
  border-color:rgba(255,196,86,.56);
}

/* ------------------------------
   5. Layout / Dashboard
------------------------------ */
.sp-main{
  width:min(var(--sp-max),calc(100% - 56px));
  margin:0 auto;
  padding:26px 0 0;
  flex:1;
}

.sp-dashboard{
  display:grid;
  grid-template-columns:290px minmax(0,1fr) 360px;
  gap:22px;
  align-items:start;
}

.sp-left,
.sp-right{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.sp-card,
.sp-hero,
.sp-footer-trust{
  border:1px solid var(--sp-line);
  border-radius:24px;
  background:rgba(255,255,255,.96);
  box-shadow:0 18px 45px rgba(8,24,45,.10),0 1px 0 rgba(255,255,255,.65) inset;
}

/* ------------------------------
   6. Left Sidebar
------------------------------ */
.sp-profile{
  padding:20px;
}

.sp-profile-top{
  display:flex;
  align-items:center;
  gap:12px;
}

.sp-profile-avatar{
  width:64px;
  height:64px;
  border-radius:22px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,#071525,#17314f);
  color:#fff;
  font-weight:950;
  font-size:22px;
  border:2px solid rgba(217,154,33,.45);
}

.sp-profile strong{
  display:block;
  font-size:16px;
}

.sp-profile small{
  display:block;
  margin-top:3px;
  color:#b17413;
  font-weight:900;
}

.sp-mini-link{
  color:#0d4c86;
  text-decoration:none;
  font-size:12px;
  font-weight:900;
}

.sp-menu{
  padding:12px;
}

.sp-menu a{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:43px;
  padding:12px 14px;
  border-radius:15px;
  text-decoration:none;
  color:#27364d;
  font-size:13.5px;
  font-weight:900;
}

.sp-menu a:hover,
.sp-menu a.is-active{
  background:#fff3db;
  color:#111827;
}

.sp-menu a .sp-i{
  width:17px;
  height:17px;
  color:#a86d13;
}

.sp-progress{
  padding:20px;
}

.sp-progress strong{
  font-size:14px;
}

.sp-progress-row{
  display:flex;
  justify-content:space-between;
  color:var(--sp-muted);
  font-size:12px;
  font-weight:850;
  margin:8px 0;
}

.sp-progress-bar{
  height:8px;
  background:#eee1c8;
  border-radius:999px;
  overflow:hidden;
}

.sp-progress-bar span{
  display:block;
  width:68%;
  height:100%;
  background:linear-gradient(90deg,var(--sp-gold),var(--sp-gold-2));
}

.sp-invite{
  padding:20px;
  color:#fff;
  background:radial-gradient(circle at 92% 20%,rgba(255,196,86,.35),transparent 9rem),linear-gradient(135deg,#071525,#102a44);
}

.sp-invite h3{
  margin:0 0 8px;
  color:#ffd37d;
  font-size:24px;
}

.sp-invite p{
  margin:0 0 14px;
  color:rgba(255,255,255,.86);
  font-size:13px;
  line-height:1.45;
}

/* ------------------------------
   7. Buttons
------------------------------ */
.sp-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  min-height:46px;
  padding:12px 18px;
  border-radius:14px;
  border:1px solid rgba(217,154,33,.44);
  background:#fff;
  color:#101828;
  text-decoration:none;
  font-size:13.5px;
  font-weight:950;
}

.sp-btn .sp-i{
  width:17px;
  height:17px;
}

.sp-btn.gold{
  background:linear-gradient(135deg,var(--sp-gold),var(--sp-gold-2));
  color:#111827;
  border-color:rgba(255,255,255,.25);
}

.sp-btn.dark{
  background:rgba(7,21,37,.8);
  color:#fff;
}

/* ------------------------------
   8. Hero / Carousel
------------------------------ */
.sp-hero{
  isolation:isolate;
  position:relative;
  overflow:hidden;
  min-height:510px;
  color:#fff;
  background:linear-gradient(135deg,#061426,#1b334f);
  border-radius:28px;
  box-shadow:0 28px 80px rgba(4,15,30,.24),inset 0 1px 0 rgba(255,255,255,.08);
}

.sp-hero-bg-stack{
  position:absolute;
  inset:0;
  z-index:0;
  overflow:hidden;
  border-radius:inherit;
}

.sp-hero-bg-slide{
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center right;
  background-repeat:no-repeat;
  opacity:0;
  transform:scale(1.035);
  transition:opacity .9s ease,transform 5.5s ease;
  filter:brightness(1.02) saturate(.96) contrast(1);
}

.sp-hero-bg-slide.is-active{
  opacity:1;
  transform:scale(1);
}

.sp-hero::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  background:
    linear-gradient(90deg,rgba(3,10,20,.98) 0%,rgba(3,10,20,.88) 38%,rgba(3,10,20,.35) 72%,rgba(3,10,20,.08) 100%),
    radial-gradient(circle at 18% 20%,rgba(217,154,33,.18),transparent 22rem),
    radial-gradient(circle at 82% 12%,rgba(255,196,86,.12),transparent 18rem);
  pointer-events:none;
}

.sp-hero::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:2;
  background:
    linear-gradient(180deg,transparent 66%,rgba(2,8,16,.82) 100%),
    linear-gradient(90deg,rgba(217,154,33,.08),transparent 46%);
  pointer-events:none;
}

.sp-hero-inner{
  position:relative;
  z-index:3;
  max-width:900px;
  padding:56px 52px 126px;
}

.sp-kicker{
  display:inline-flex;
  gap:8px;
  align-items:center;
  padding:8px 13px;
  border-radius:999px;
  border:1px solid rgba(255,196,86,.42);
  background:rgba(8,20,35,.66);
  color:#ffe2a0;
  font-size:12.5px;
  font-weight:950;
  margin-bottom:20px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
}

.sp-hero h1{
  max-width:780px;
  margin:0;
  font-size:clamp(58px,4.8vw,82px);
  line-height:.94;
  letter-spacing:-.07em;
  text-shadow:0 12px 34px rgba(0,0,0,.35);
}

.sp-hero h1 span{
  display:block;
  color:var(--sp-gold-2);
  text-shadow:0 12px 34px rgba(217,154,33,.16);
}

.sp-hero p{
  max-width:610px;
  margin:22px 0 0;
  color:rgba(255,255,255,.92);
  line-height:1.55;
  font-size:17px;
  font-weight:650;
}

.sp-hero-actions{
  margin-top:28px;
  display:flex;
  flex-wrap:wrap;
  gap:14px;
}

.sp-hero-actions .sp-btn{
  box-shadow:0 12px 28px rgba(0,0,0,.18);
}

.sp-hero-search{
  width:min(720px,100%);
  height:62px;
  margin-top:30px;
  border-radius:18px;
  overflow:hidden;
  display:grid;
  grid-template-columns:minmax(0,1fr) 64px;
  border:1px solid rgba(255,196,86,.4);
  background:#fff;
  box-shadow:0 18px 44px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,255,255,.9);
}

.sp-hero-search input{
  border:0;
  outline:none;
  padding:0 20px;
  font-weight:800;
  font-size:14.5px;
}

.sp-hero-search button{
  border:0;
  background:linear-gradient(135deg,var(--sp-gold),var(--sp-gold-2));
  font-weight:950;
  cursor:pointer;
}

.sp-stats{
  position:absolute;
  z-index:3;
  left:0;
  right:0;
  bottom:0;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  background:rgba(0,0,0,.12);
  border-top:1px solid rgba(255,255,255,.13);
}

.sp-stat{
  min-height:88px;
  padding:18px 22px;
  background:rgba(2,9,18,.72);
  border-left:1px solid rgba(255,255,255,.11);
}

.sp-stat:first-child{
  border-left:0;
}

.sp-stat b{
  display:block;
  font-size:28px;
  color:#fff;
  letter-spacing:-.025em;
}

.sp-stat span{
  display:block;
  color:rgba(255,255,255,.78);
  font-size:12.5px;
  font-weight:850;
}

/* ------------------------------
   9. Sections / Listings
------------------------------ */
.sp-section{
  margin-top:22px;
}

.sp-section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  margin-bottom:14px;
}

.sp-section-head h2{
  margin:0;
  display:flex;
  align-items:center;
  gap:9px;
  font-size:24px;
  letter-spacing:-.02em;
}

.sp-section-head h2 .sp-i{
  width:22px;
  height:22px;
  color:#d99a21;
}

.sp-section-head p{
  margin:4px 0 0;
  color:var(--sp-muted);
  font-size:13.5px;
}

.sp-section-head a{
  text-decoration:none;
  color:#0d4c86;
  font-weight:950;
  font-size:12px;
}

.sp-listing-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:14px;
}

.sp-listing-card{
  overflow:hidden;
  border:1px solid var(--sp-line);
  border-radius:20px;
  background:linear-gradient(180deg,#fff 0%,#fffaf0 100%);
  box-shadow:0 12px 28px rgba(8,24,45,.08);
  color:inherit;
  text-decoration:none;
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}

.sp-listing-card:hover{
  transform:translateY(-3px);
  border-color:rgba(217,154,33,.36);
  box-shadow:0 22px 52px rgba(8,24,45,.15);
}

.sp-listing-media{
  height:172px;
  position:relative;
  background:
    radial-gradient(circle at 82% 12%,rgba(255,196,86,.42),transparent 5.8rem),
    linear-gradient(135deg,#fff1d3,#f7fbff);
  overflow:hidden;
}

.sp-listing-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.sp-listing-media::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(0,0,0,.06),rgba(0,0,0,.20));
  pointer-events:none;
}

.sp-badge{
  position:absolute;
  z-index:2;
  top:10px;
  left:10px;
  padding:5px 8px;
  border-radius:999px;
  background:linear-gradient(135deg,var(--sp-gold),var(--sp-gold-2));
  color:#111827;
  font-size:10px;
  font-weight:950;
  border:1px solid rgba(255,255,255,.45);
  box-shadow:0 8px 18px rgba(0,0,0,.12);
}

.sp-listing-body{
  padding:14px;
}

.sp-listing-body strong{
  display:block;
  font-size:15px;
  line-height:1.25;
}

.sp-listing-body small{
  display:block;
  margin-top:6px;
  color:var(--sp-muted);
  font-size:12.5px;
}

.sp-price{
  margin-top:9px;
  color:#071426;
  font-size:16px;
  font-weight:950;
  letter-spacing:-.015em;
}

/* ------------------------------
   10. Opportunities / Connected Sections
------------------------------ */
.sp-opportunity-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:14px;
}

.sp-opportunity{
  min-height:165px;
  padding:18px;
  border-radius:20px;
  text-decoration:none;
  color:inherit;
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}

.sp-opportunity:hover{
  transform:translateY(-3px);
  border-color:rgba(217,154,33,.36);
  box-shadow:0 22px 52px rgba(8,24,45,.15);
}

.sp-pill{
  display:inline-flex;
  padding:5px 9px;
  border-radius:999px;
  background:#fff0d2;
  color:#94600c;
  font-size:11px;
  font-weight:950;
  margin-bottom:10px;
}

.sp-opportunity h3{
  margin:0;
  font-size:16px;
  line-height:1.3;
}

.sp-opportunity p{
  margin:8px 0 0;
  color:var(--sp-muted);
  font-size:13px;
}

.sp-feature-strip{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:1px;
  overflow:hidden;
  border-radius:22px;
}

.sp-feature{
  padding:20px;
  background:#fff;
}

.sp-feature b{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:4px;
  font-size:14px;
}

.sp-feature b .sp-i{
  width:20px;
  height:20px;
  color:#d99a21;
}

.sp-feature span{
  color:var(--sp-muted);
  font-size:12.5px;
  line-height:1.38;
}

.sp-connected-section{
  scroll-margin-top:180px;
}

.sp-connect-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}

.sp-connect-card{
  padding:22px;
  text-decoration:none;
  color:inherit;
  min-height:178px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:flex-start;
  border-radius:22px;
  background:radial-gradient(circle at 88% 12%,rgba(255,196,86,.20),transparent 6rem),linear-gradient(180deg,#ffffff 0%,#fffaf0 100%);
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}

.sp-connect-card:hover{
  transform:translateY(-3px);
  border-color:rgba(217,154,33,.38);
  box-shadow:0 22px 52px rgba(8,24,45,.14);
}

.sp-connect-icon{
  width:46px;
  height:46px;
  border-radius:16px;
  display:grid;
  place-items:center;
  color:#d99a21;
  background:#fff0d2;
  border:1px solid rgba(217,154,33,.22);
  margin-bottom:14px;
}

.sp-connect-icon .sp-i{
  width:22px;
  height:22px;
}

.sp-connect-card strong{
  font-size:16px;
  letter-spacing:-.02em;
  margin-bottom:7px;
}

.sp-connect-card p{
  margin:0;
  color:var(--sp-muted);
  font-size:13px;
  line-height:1.5;
}

/* ------------------------------
   11. Right Sidebar
------------------------------ */
.sp-reputation{
  padding:20px;
}

.sp-rep-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}

.sp-score{
  width:98px;
  height:98px;
  border-radius:50%;
  border:4px solid var(--sp-gold);
  display:grid;
  place-items:center;
  font-size:33px;
  font-weight:950;
  color:#152235;
}

.sp-reputation ul{
  margin:14px 0 0;
  padding:0;
  list-style:none;
}

.sp-reputation li{
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:5px 0;
  color:var(--sp-muted);
  font-size:12px;
  font-weight:850;
}

.sp-panel{
  padding:20px;
}

.sp-panel-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}

.sp-panel-title h3{
  margin:0;
  font-size:17px;
}

.sp-panel-title a{
  font-size:12px;
  color:#0d4c86;
  text-decoration:none;
  font-weight:950;
}

.sp-person,
.sp-activity{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 0;
  border-top:1px solid var(--sp-line);
}

.sp-person:first-of-type,
.sp-activity:first-of-type{
  border-top:0;
}

.sp-person-avatar{
  width:46px;
  height:46px;
  border-radius:16px;
  background:linear-gradient(135deg,#071525,#d99a21);
  flex:0 0 auto;
}

.sp-person strong,
.sp-activity strong{
  display:block;
  font-size:13px;
}

.sp-person small,
.sp-activity small{
  display:block;
  color:var(--sp-muted);
  font-size:11px;
}

.sp-activity-dot{
  width:32px;
  height:32px;
  border-radius:12px;
  display:grid;
  place-items:center;
  background:#fff0d2;
  color:#a86d13;
  font-weight:950;
  flex:0 0 auto;
}

.sp-activity-dot .sp-i{
  width:17px;
  height:17px;
}

.sp-visibility{
  color:#fff;
  background:radial-gradient(circle at 82% 18%,rgba(255,196,86,.34),transparent 10rem),linear-gradient(135deg,#061426,#122d49);
}

.sp-visibility h3{
  color:#ffd37d;
  margin:0 0 8px;
  font-size:24px;
}

.sp-visibility p{
  color:rgba(255,255,255,.84);
  margin:0 0 16px;
  font-size:13px;
  line-height:1.5;
}

/* ------------------------------
   12. Footer Trust Bar
------------------------------ */
.sp-footer-trust{
  margin:24px auto;
  width:min(var(--sp-max),calc(100% - 56px));
  overflow:hidden;
  color:#fff;
  background:linear-gradient(135deg,#061426,#0a2037);
  border-color:rgba(217,154,33,.42);
  display:grid;
  grid-template-columns:repeat(5,1fr);
  box-shadow:0 22px 60px rgba(4,15,30,.18);
}

.sp-footer-trust div{
  padding:21px 24px;
  border-left:1px solid rgba(255,255,255,.1);
}

.sp-footer-trust div:first-child{
  border-left:0;
}

.sp-footer-trust b{
  display:flex;
  align-items:center;
  gap:9px;
  color:#ffd37d;
}

.sp-footer-trust b .sp-i{
  width:19px;
  height:19px;
}

.sp-footer-trust span{
  display:block;
  margin-top:4px;
  color:rgba(255,255,255,.72);
  font-size:12px;
}

/* ------------------------------
   13. Mobile Bottom Nav
------------------------------ */
.sp-mobile-bottom{
  display:none;
}

/* ------------------------------
   14. Dark Mode
------------------------------ */
body[data-theme="dark"].sphere-app-body,
html[data-theme="dark"] body.sphere-app-body{
  background:radial-gradient(circle at top left,rgba(217,154,33,.12),transparent 32rem),linear-gradient(180deg,#050b13 0%,#071525 52%,#08111d 100%);
  color:#f8fafc;
}

body[data-theme="dark"] .sp-card,
body[data-theme="dark"] .sp-listing-card,
body[data-theme="dark"] .sp-feature,
body[data-theme="dark"] .sp-opportunity,
body[data-theme="dark"] .sp-connect-card{
  background:radial-gradient(circle at 88% 12%,rgba(255,196,86,.13),transparent 6rem),linear-gradient(180deg,rgba(12,27,45,.95),rgba(8,22,38,.95));
  color:#f8fafc;
  border-color:rgba(255,255,255,.1);
}

body[data-theme="dark"] .sp-menu a{
  color:#edf2f7;
}

body[data-theme="dark"] .sp-menu a.is-active,
body[data-theme="dark"] .sp-menu a:hover{
  background:rgba(217,154,33,.16);
}

body[data-theme="dark"] .sp-score{
  color:#fff;
}

body[data-theme="dark"] .sp-listing-media{
  background:linear-gradient(135deg,#102a44,#1b3654);
}

body[data-theme="dark"] .sp-price{
  color:#ffd37d;
}

body[data-theme="dark"] .sp-connect-icon{
  background:rgba(217,154,33,.13);
}

/* ------------------------------
   15. Responsive Desktop / Tablet
------------------------------ */
@media (max-width:1500px){
  .sp-dashboard{
    grid-template-columns:270px minmax(0,1fr) 330px;
    gap:20px;
  }

  .sp-top-inner{
    grid-template-columns:300px minmax(520px,760px) minmax(520px,auto);
  }
}

@media (max-width:1380px) and (min-width:1181px){
  :root{
    --sp-max:1320px;
  }

  .sp-top-inner,
  .sp-nav-inner,
  .sp-main,
  .sp-footer-trust{
    width:min(1320px,calc(100% - 36px));
  }

  .sp-top-inner{
    grid-template-columns:250px minmax(410px,1fr) auto;
    gap:14px;
  }

  .sp-chip{
    padding:0 10px;
  }

  .sp-user-pill span:last-child{
    display:none;
  }

  .sp-dashboard{
    grid-template-columns:235px minmax(0,1fr) 300px;
    gap:16px;
  }

  .sp-nav a{
    padding:0 11px;
  }

  .sp-hero{
    min-height:420px;
  }

  .sp-hero-inner{
    padding:42px 38px 112px;
  }

  .sp-hero h1{
    font-size:clamp(44px,4.2vw,62px);
  }

  .sp-listing-grid,
  .sp-opportunity-grid{
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
}

@media (max-width:1180px){
  .sp-dashboard{
    grid-template-columns:1fr;
  }

  .sp-left,
  .sp-right{
    display:none;
  }

  .sp-top-inner{
    grid-template-columns:1fr auto;
  }

  .sp-search{
    grid-column:1 / -1;
    order:3;
    margin-bottom:14px;
  }

  .sp-actions{
    grid-column:2;
  }

  .sp-logo-copy strong{
    font-size:18px;
  }

  .sp-listing-grid,
  .sp-opportunity-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

/* ------------------------------
   16. Mobile
------------------------------ */
@media (max-width:820px){
  body.sphere-app-body{
    padding-bottom:82px;
  }

  .sp-top-inner,
  .sp-nav-inner,
  .sp-main,
  .sp-footer-trust{
    width:min(100% - 18px,760px);
  }

  .sp-top-inner{
    grid-template-columns:1fr auto;
    min-height:auto;
    padding:12px 0 10px;
    gap:10px;
  }

  .sp-logo{
    min-height:52px;
  }

  .sp-logo-mark,
  .sp-logo-img{
    width:44px;
    height:44px;
    border-radius:15px;
  }

  .sp-logo-copy strong{
    font-size:17px;
  }

  .sp-logo-copy small{
    display:none;
  }

  .sp-search{
    display:none;
  }

  .sp-actions{
    grid-column:auto;
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:7px;
  }

  .sp-actions .sp-create-btn,
  .sp-user-pill,
  .sp-actions .sp-chip[href]{
    display:none;
  }

  .sp-theme-toggle,
  .sp-icon-btn{
    width:44px;
    min-width:44px;
    height:42px;
    padding:0;
  }

  .sp-theme-toggle [data-sp-theme-label]{
    display:none;
  }

  .sp-lang-menu{
    display:inline-flex;
    position:relative;
    flex:0 0 auto;
  }

  .sp-lang-menu .sp-chip{
    width:44px;
    min-width:44px;
    height:42px;
    min-height:42px;
    padding:0;
    border-radius:14px;
  }

  .sp-lang-menu summary.sp-chip .sp-i{
    display:none;
  }

  .sp-lang-menu summary.sp-chip span:last-child{
    display:inline;
    color:#ffd37d;
    font-size:11px;
    font-weight:950;
    line-height:1;
  }

  .sp-lang-dropdown{
    top:calc(100% + 10px);
    right:0;
    left:auto;
    min-width:76px;
    max-height:260px;
    overflow:auto;
    padding:7px;
    border-radius:16px;
    border:1px solid rgba(217,154,33,.45);
    background:#061426;
    box-shadow:0 18px 44px rgba(0,0,0,.32);
    z-index:999;
  }

  html[dir="rtl"] .sp-lang-dropdown{
    right:auto;
    left:0;
  }

  .sp-nav{
    display:block;
    overflow:hidden;
    background:#061426;
    border-top:1px solid rgba(255,255,255,.08);
    border-bottom:1px solid rgba(217,154,33,.35);
  }

  .sp-nav-inner{
    width:100%;
    max-width:100%;
    min-height:56px;
    justify-content:flex-start;
    gap:8px;
    overflow-x:auto;
    overflow-y:hidden;
    white-space:nowrap;
    padding:0 10px;
  }

  .sp-nav a{
    flex:0 0 auto;
    height:54px;
    padding:0 12px;
    margin:0 0 4px;
    border-radius:15px;
    overflow:visible;
    color:rgba(255,255,255,.9);
  }

  .sp-nav a::before{
    inset:8px 4px 7px;
    border-radius:14px;
    background:rgba(217,154,33,.12);
    border:1px solid rgba(217,154,33,.20);
    opacity:0;
  }

  .sp-nav a:hover::before,
  .sp-nav a.is-active::before{
    opacity:1;
    border-color:rgba(217,154,33,.44);
  }

  .sp-nav a::after{
    left:12px;
    right:12px;
  }

  .sp-nav a .sp-i{
    width:16px;
    height:16px;
    padding:4px;
  }

  .sp-nav a span:last-child{
    font-size:12px;
  }

  .sp-main{
    padding-top:12px;
  }

  .sp-dashboard{
    display:block;
  }

  .sp-hero{
    min-height:600px;
    border-radius:24px;
    overflow:hidden;
    background:#061426;
  }

  .sp-hero-bg-stack{
    position:absolute;
    inset:0;
    z-index:0;
    border-radius:inherit;
    overflow:hidden;
    background:#061426;
  }

  .sp-hero-bg-slide{
    position:absolute;
    inset:0;
    background-size:cover;
    background-position:center center;
    background-repeat:no-repeat;
    filter:none;
    opacity:0;
    transform:none;
    transition:opacity .9s ease;
  }

  .sp-hero-bg-slide.is-active{
    opacity:1;
    transform:none;
  }

  .sp-hero::before,
  .sp-hero::after{
    display:none;
    content:none;
    background:none;
  }

  .sp-hero-inner{
    position:relative;
    z-index:4;
    max-width:none;
    padding:24px 16px 160px;
  }

  .sp-kicker{
    width:auto;
    max-width:fit-content;
    padding:7px 11px;
    border-radius:999px;
    font-size:11px;
    background:rgba(3,10,20,.58);
    border-color:rgba(255,196,86,.38);
    backdrop-filter:blur(6px);
  }

  .sp-hero h1{
    display:block;
    width:fit-content;
    max-width:310px;
    padding:10px 12px;
    margin-top:16px;
    border-radius:18px;
    font-size:30px;
    line-height:1;
    letter-spacing:-.045em;
    background:rgba(3,10,20,.52);
    backdrop-filter:blur(6px);
    text-shadow:none;
  }

  .sp-hero p{
    display:block;
    max-width:315px;
    margin-top:14px;
    padding:11px 12px;
    border-radius:16px;
    font-size:13px;
    line-height:1.48;
    background:rgba(3,10,20,.50);
    backdrop-filter:blur(6px);
    text-shadow:none;
  }

  .sp-hero-actions{
    display:flex;
    flex-direction:row;
    align-items:center;
    gap:8px;
    margin-top:18px;
  }

  .sp-hero-actions .sp-btn{
    width:auto;
    min-width:0;
    min-height:40px;
    padding:9px 12px;
    border-radius:999px;
    font-size:11.5px;
    letter-spacing:.01em;
    box-shadow:0 12px 28px rgba(0,0,0,.20),inset 0 1px 0 rgba(255,255,255,.18);
  }

  .sp-hero-actions .sp-btn .sp-i{
    width:15px;
    height:15px;
  }

  .sp-hero-actions .sp-btn.gold{
    background:linear-gradient(135deg,#e2a026,#ffc456);
    color:#101828;
    border-color:rgba(255,255,255,.28);
  }

  .sp-hero-actions .sp-btn.dark{
    background:rgba(3,10,20,.58);
    color:#fff;
    border-color:rgba(217,154,33,.50);
    backdrop-filter:blur(8px);
  }

  .sp-hero-search{
    display:none;
  }

  .sp-stats{
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    z-index:5;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    min-height:78px;
    background:rgba(2,8,16,.78);
    backdrop-filter:blur(8px);
    border-top:1px solid rgba(255,255,255,.12);
  }

  .sp-stat{
    min-height:78px;
    padding:11px 5px;
    text-align:center;
    background:rgba(2,8,16,.42);
    border-left:1px solid rgba(255,255,255,.10);
  }

  .sp-stat b{
    font-size:19px;
    line-height:1.05;
  }

  .sp-stat span{
    font-size:8.8px;
    line-height:1.15;
  }

  .sp-listing-grid,
  .sp-opportunity-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
  }

  .sp-listing-media{
    height:132px;
  }

  .sp-feature-strip,
  .sp-footer-trust{
    grid-template-columns:1fr;
  }

  .sp-connect-grid{
    grid-template-columns:1fr;
    gap:10px;
  }

  .sp-connected-section{
    scroll-margin-top:150px;
  }

  .sp-connect-card{
    min-height:unset;
    padding:18px;
    border-radius:18px;
  }

  .sp-connect-icon{
    width:42px;
    height:42px;
    border-radius:15px;
  }

  .sp-section-head{
    align-items:flex-start;
  }

  .sp-section-head h2{
    font-size:21px;
  }

  .sp-footer-trust{
    width:min(100% - 18px,760px);
  }

  .sp-footer-trust div{
    border-left:0;
    border-top:1px solid rgba(255,255,255,.1);
  }

  .sp-footer-trust div:first-child{
    border-top:0;
  }

  .sp-mobile-bottom{
    position:fixed;
    z-index:80;
    left:10px;
    right:10px;
    bottom:10px;
    height:66px;
    padding:5px 7px;
    border-radius:24px;
    background:radial-gradient(circle at 50% 0%,rgba(217,154,33,.12),transparent 11rem),linear-gradient(180deg,#061426 0%,#07111f 100%);
    border:1px solid rgba(217,154,33,.48);
    display:grid;
    grid-template-columns:repeat(5,1fr);
    box-shadow:0 18px 44px rgba(0,0,0,.34),inset 0 1px 0 rgba(255,255,255,.08);
    overflow:visible;
  }

  .sp-mobile-bottom a{
    position:relative;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:4px;
    min-width:0;
    height:56px;
    border-radius:18px;
    color:rgba(255,255,255,.86);
    text-decoration:none;
    overflow:visible;
  }

  .sp-mobile-bottom a::before{
    content:"";
    position:absolute;
    inset:4px;
    border-radius:17px;
    background:rgba(217,154,33,.11);
    border:1px solid rgba(217,154,33,.20);
    opacity:0;
    transition:opacity .18s ease;
  }

  .sp-mobile-bottom a.is-active::before,
  .sp-mobile-bottom a:hover::before{
    opacity:1;
  }

  .sp-mobile-bottom a .sp-i{
    position:relative;
    z-index:2;
    width:17px;
    height:17px;
    color:currentColor;
    stroke-width:1.9;
  }

  .sp-mobile-bottom a small{
    position:relative;
    z-index:2;
    display:block;
    color:currentColor;
    font-size:8.5px;
    line-height:1.05;
    font-weight:850;
    max-width:56px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }

  .sp-mobile-bottom a.is-active{
    color:#ffd37d;
  }

  .sp-mobile-bottom a.sp-mobile-publish,
  .sp-mobile-bottom a:nth-child(3){
    transform:translateY(-8px);
    height:68px;
    color:#ffd37d;
    z-index:4;
    gap:5px;
  }

  .sp-mobile-bottom a.sp-mobile-publish::before,
  .sp-mobile-bottom a:nth-child(3)::before{
    display:none;
    content:none;
  }

  .sp-mobile-bottom a.sp-mobile-publish .sp-i,
  .sp-mobile-bottom a:nth-child(3) .sp-i{
    width:20px;
    height:20px;
    padding:10px;
    border-radius:999px;
    color:#071426;
    background:linear-gradient(135deg,#d99a21 0%,#ffc456 100%);
    border:1px solid rgba(255,255,255,.32);
    box-shadow:0 12px 26px rgba(217,154,33,.30),0 8px 18px rgba(0,0,0,.24),inset 0 1px 0 rgba(255,255,255,.32);
    box-sizing:content-box;
  }

  .sp-mobile-bottom a.sp-mobile-publish small,
  .sp-mobile-bottom a:nth-child(3) small{
    color:#ffd37d;
    font-size:9px;
    font-weight:950;
    max-width:64px;
    overflow:visible;
    text-overflow:clip;
  }
}

@media (max-width:380px){
  .sp-hero{
    min-height:650px;
  }

  .sp-hero-actions{
    flex-direction:column;
    align-items:flex-start;
  }

  .sp-mobile-bottom a small{
    font-size:8.2px;
    max-width:54px;
  }

  .sp-mobile-bottom a.sp-mobile-publish small,
  .sp-mobile-bottom a:nth-child(3) small{
    max-width:60px;
  }
}

/* Remove old floating language selector residue */
.sp-mobile-lang,
[data-sp-mobile-lang]{
  display:none !important;
  visibility:hidden !important;
  opacity:0 !important;
  pointer-events:none !important;
  position:absolute !important;
  left:-9999px !important;
  width:0 !important;
  height:0 !important;
  overflow:hidden !important;
}

/* Keep only the official language selector inside the header */
.sp-top .sp-lang-menu{
  display:inline-flex;
}

/* Prevent details marker/arrow artifacts near page bottom */
details.sp-mobile-lang,
details[data-sp-mobile-lang],
details.sp-mobile-lang summary,
details[data-sp-mobile-lang] summary{
  display:none !important;
}

/* =========================================================
   REFERENCE CARD MATCH
   Target: reputation, recommended people, recent activity,
   opportunities cards like approved mockup
   ========================================================= */

/* Reputation card */
.sp-reputation{
  padding:18px 20px 0 !important;
  border-radius:22px !important;
  overflow:hidden !important;
  background:#ffffff !important;
  border:1px solid rgba(12,31,55,.10) !important;
  box-shadow:0 14px 34px rgba(8,24,45,.08) !important;
}

.sp-rep-top{
  align-items:flex-start !important;
  margin-bottom:8px !important;
}

.sp-reputation .sp-score{
  width:92px !important;
  height:92px !important;
  border-width:4px !important;
  font-size:28px !important;
  font-weight:950 !important;
  line-height:1 !important;
}

.sp-reputation ul{
  margin:10px 0 0 !important;
  padding:0 !important;
}

.sp-reputation li{
  padding:4px 0 !important;
  font-size:12px !important;
  color:#445469 !important;
}

.sp-reputation li span:last-child,
.sp-reputation li b:last-child{
  color:#111827 !important;
  font-weight:900 !important;
}

.sp-rep-footer{
  margin:14px -20px 0 !important;
  padding:11px 16px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:10px !important;
  border-top:1px solid rgba(12,31,55,.08) !important;
  background:#fff !important;
}

.sp-rep-count{
  color:#6b7280 !important;
  font-size:12px !important;
  font-weight:800 !important;
}

.sp-rep-verified{
  display:inline-flex !important;
  align-items:center !important;
  gap:7px !important;
  min-height:30px !important;
  padding:0 12px !important;
  border-radius:999px !important;
  background:#f1fbf3 !important;
  color:#2e7d4f !important;
  border:1px solid #d3efd9 !important;
  font-size:12px !important;
  font-weight:900 !important;
  white-space:nowrap !important;
}

.sp-rep-verified-dot{
  width:8px !important;
  height:8px !important;
  border-radius:50% !important;
  background:#34c759 !important;
  display:inline-block !important;
}

/* People / activity shared */
.sp-people-panel,
.sp-activity-panel{
  padding:18px 18px 10px !important;
  border-radius:22px !important;
  background:#fff !important;
  border:1px solid rgba(12,31,55,.10) !important;
  box-shadow:0 14px 34px rgba(8,24,45,.08) !important;
}

.sp-people-panel .sp-panel-title,
.sp-activity-panel .sp-panel-title{
  margin-bottom:6px !important;
}

.sp-people-panel .sp-panel-title h3,
.sp-activity-panel .sp-panel-title h3{
  font-size:16px !important;
  letter-spacing:-.02em !important;
}

/* Recommended people */
.sp-people-panel .sp-person{
  display:grid !important;
  grid-template-columns:48px minmax(0,1fr) auto !important;
  align-items:center !important;
  gap:10px !important;
  padding:14px 0 !important;
  border-top:1px solid rgba(12,31,55,.08) !important;
}

.sp-people-panel .sp-person:first-of-type{
  border-top:0 !important;
}

.sp-people-panel .sp-person-avatar{
  width:46px !important;
  height:46px !important;
  border-radius:50% !important;
  background:linear-gradient(135deg,#2a2a2a,#d99a21) !important;
}

.sp-people-panel .sp-person strong{
  font-size:13px !important;
  line-height:1.15 !important;
  color:#111827 !important;
}

.sp-people-panel .sp-person small{
  font-size:11px !important;
  line-height:1.3 !important;
  color:#6b7280 !important;
  margin-top:3px !important;
}

.sp-mini-action{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-width:88px !important;
  min-height:34px !important;
  padding:0 14px !important;
  border-radius:10px !important;
  border:1px solid rgba(12,31,55,.12) !important;
  background:#fff !important;
  color:#111827 !important;
  text-decoration:none !important;
  font-size:12px !important;
  font-weight:900 !important;
  box-shadow:0 6px 16px rgba(8,24,45,.04) !important;
}

.sp-mini-action:hover{
  border-color:rgba(217,154,33,.36) !important;
  background:#fff8ea !important;
}

/* Recent activity */
.sp-activity-panel .sp-activity{
  display:grid !important;
  grid-template-columns:34px minmax(0,1fr) !important;
  align-items:flex-start !important;
  gap:10px !important;
  padding:12px 0 !important;
  border-top:1px solid rgba(12,31,55,.08) !important;
}

.sp-activity-panel .sp-activity:first-of-type{
  border-top:0 !important;
}

.sp-activity-panel .sp-activity-dot{
  width:28px !important;
  height:28px !important;
  border-radius:10px !important;
  background:#fff4da !important;
  color:#b07412 !important;
  border:1px solid rgba(217,154,33,.18) !important;
}

.sp-activity-panel .sp-activity strong{
  font-size:12.5px !important;
  line-height:1.25 !important;
  color:#111827 !important;
}

.sp-activity-panel .sp-activity small{
  font-size:11px !important;
  line-height:1.35 !important;
  color:#6b7280 !important;
  margin-top:2px !important;
}

/* Opportunities section */
.sp-opportunity-grid-ref{
  grid-template-columns:repeat(5,minmax(0,1fr)) !important;
  gap:14px !important;
}

.sp-opportunity-ref{
  min-height:162px !important;
  padding:16px 16px 14px !important;
  border-radius:18px !important;
  border:1px solid rgba(12,31,55,.10) !important;
  background:#fff !important;
  box-shadow:0 12px 28px rgba(8,24,45,.06) !important;
  text-decoration:none !important;
}

.sp-opportunity-ref:hover{
  transform:translateY(-2px) !important;
  border-color:rgba(217,154,33,.32) !important;
  box-shadow:0 18px 38px rgba(8,24,45,.10) !important;
}

.sp-opportunity-ref .sp-pill{
  margin-bottom:10px !important;
  padding:4px 8px !important;
  border-radius:999px !important;
  background:#eef4ff !important;
  color:#6574a6 !important;
  font-size:10px !important;
  font-weight:950 !important;
}

.sp-opportunity-ref h3{
  margin:0 0 8px !important;
  font-size:15px !important;
  line-height:1.28 !important;
  color:#111827 !important;
  letter-spacing:-.015em !important;
}

.sp-opportunity-ref p{
  margin:0 !important;
  color:#6b7280 !important;
  font-size:12px !important;
  line-height:1.45 !important;
}

.sp-opportunity-ref .sp-price,
.sp-opportunity-ref .price{
  margin-top:10px !important;
  font-size:16px !important;
  font-weight:950 !important;
  color:#111827 !important;
}

.sp-opportunity-ref .sp-opportunity-meta,
.sp-opportunity-ref .meta{
  margin-top:10px !important;
  display:flex !important;
  align-items:center !important;
  gap:7px !important;
  color:#6b7280 !important;
  font-size:11px !important;
}

.sp-opportunity-ref .sp-opportunity-meta .avatar,
.sp-opportunity-ref .meta .avatar{
  width:22px !important;
  height:22px !important;
  border-radius:50% !important;
  background:linear-gradient(135deg,#071525,#d99a21) !important;
  display:inline-block !important;
}

/* Right column CTA, keep same family */
.sp-visibility{
  border-radius:22px !important;
  box-shadow:0 14px 34px rgba(8,24,45,.10) !important;
}

/* Mobile */
@media (max-width: 820px){
  .sp-rep-footer{
    flex-direction:column !important;
    align-items:flex-start !important;
  }

  .sp-people-panel .sp-person{
    grid-template-columns:42px minmax(0,1fr) !important;
  }

  .sp-mini-action{
    grid-column:2 !important;
    margin-top:8px !important;
    width:max-content !important;
  }

  .sp-opportunity-grid-ref{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:10px !important;
  }

  .sp-opportunity-ref{
    min-height:148px !important;
    padding:14px !important;
  }
}

/* =========================================================
   OPPORTUNITIES WITH PHOTOS
   ========================================================= */

.sp-opportunity-grid,
.sp-opportunity-grid-ref{
  display:grid !important;
  grid-template-columns:repeat(5,minmax(0,1fr)) !important;
  gap:14px !important;
}

.sp-opportunity-photo-card{
  padding:0 !important;
  overflow:hidden !important;
  border-radius:20px !important;
  border:1px solid rgba(12,31,55,.10) !important;
  background:#ffffff !important;
  box-shadow:0 12px 28px rgba(8,24,45,.06) !important;
  text-decoration:none !important;
  color:inherit !important;
  min-height:auto !important;
  display:block !important;
}

.sp-opportunity-photo-card:hover{
  transform:translateY(-2px) !important;
  border-color:rgba(217,154,33,.34) !important;
  box-shadow:0 18px 42px rgba(8,24,45,.12) !important;
}

.sp-opportunity-media{
  position:relative !important;
  height:138px !important;
  overflow:hidden !important;
  background:linear-gradient(135deg,#f4ead7,#f6f8fc) !important;
}

.sp-opportunity-media img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  display:block !important;
}

.sp-opportunity-media::after{
  content:"" !important;
  position:absolute !important;
  inset:0 !important;
  background:linear-gradient(180deg,rgba(0,0,0,.05),rgba(0,0,0,.18)) !important;
  pointer-events:none !important;
}

.sp-opportunity-badge{
  position:absolute !important;
  top:10px !important;
  left:10px !important;
  z-index:2 !important;
  display:inline-flex !important;
  align-items:center !important;
  min-height:22px !important;
  padding:0 9px !important;
  border-radius:999px !important;
  background:#eef4ff !important;
  color:#6674a5 !important;
  font-size:10px !important;
  font-weight:950 !important;
  border:1px solid rgba(255,255,255,.55) !important;
}

.sp-opportunity-content{
  padding:13px 14px 14px !important;
}

.sp-opportunity-content .sp-pill{
  display:none !important;
}

.sp-opportunity-title-ref,
.sp-opportunity-content h3,
.sp-opportunity-content strong{
  display:block !important;
  margin:0 0 8px !important;
  font-size:15px !important;
  line-height:1.28 !important;
  letter-spacing:-.015em !important;
  color:#111827 !important;
}

.sp-opportunity-desc-ref,
.sp-opportunity-content p{
  margin:0 !important;
  color:#6b7280 !important;
  font-size:12px !important;
  line-height:1.45 !important;
}

.sp-opportunity-content .sp-price{
  margin-top:10px !important;
  color:#111827 !important;
  font-size:16px !important;
  font-weight:950 !important;
  letter-spacing:-.01em !important;
}

.sp-opportunity-meta{
  margin-top:10px !important;
  display:flex !important;
  align-items:center !important;
  gap:7px !important;
  color:#6b7280 !important;
  font-size:11px !important;
  font-weight:800 !important;
}

.sp-opportunity-meta .avatar{
  width:22px !important;
  height:22px !important;
  border-radius:50% !important;
  background:linear-gradient(135deg,#071525,#d99a21) !important;
  display:inline-block !important;
  flex:0 0 auto !important;
}

.sp-opportunity-meta .label{
  min-width:0 !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;
}

@media (max-width: 1180px){
  .sp-opportunity-grid,
  .sp-opportunity-grid-ref{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  }
}

@media (max-width: 820px){
  .sp-opportunity-grid,
  .sp-opportunity-grid-ref{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:10px !important;
  }

  .sp-opportunity-media{
    height:116px !important;
  }

  .sp-opportunity-content{
    padding:11px 12px 12px !important;
  }

  .sp-opportunity-title-ref,
  .sp-opportunity-content h3,
  .sp-opportunity-content strong{
    font-size:13.5px !important;
  }

  .sp-opportunity-content p{
    font-size:11px !important;
  }

  .sp-opportunity-content .sp-price{
    font-size:14px !important;
  }
}

/* =========================================================
   FINAL FIX: /sphere-preview mobile bottom nav visibility
   ========================================================= */
@media (max-width:820px){
  .sp-mobile-bottom{
    position:fixed !important;
    z-index:999 !important;
    left:10px !important;
    right:10px !important;
    bottom:10px !important;
    height:66px !important;
    padding:5px 7px !important;
    display:grid !important;
    grid-template-columns:repeat(5,1fr) !important;
    border-radius:24px !important;
    background:
      radial-gradient(circle at 50% 0%,rgba(217,154,33,.12),transparent 11rem),
      linear-gradient(180deg,#061426 0%,#07111f 100%) !important;
    border:1px solid rgba(217,154,33,.55) !important;
    box-shadow:
      0 18px 44px rgba(0,0,0,.35),
      inset 0 1px 0 rgba(255,255,255,.08) !important;
    opacity:1 !important;
    visibility:visible !important;
    overflow:visible !important;
  }

  .sp-mobile-bottom a{
    position:relative !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    flex-direction:column !important;
    gap:4px !important;
    height:56px !important;
    min-width:0 !important;
    border-radius:18px !important;
    color:rgba(255,255,255,.92) !important;
    background:transparent !important;
    opacity:1 !important;
    visibility:visible !important;
    filter:none !important;
    text-decoration:none !important;
    transform:none !important;
  }

  .sp-mobile-bottom a::before{
    content:"" !important;
    position:absolute !important;
    inset:4px !important;
    border-radius:17px !important;
    background:rgba(217,154,33,.12) !important;
    border:1px solid rgba(217,154,33,.22) !important;
    opacity:0 !important;
    transition:opacity .18s ease !important;
  }

  .sp-mobile-bottom a.is-active::before,
  .sp-mobile-bottom a:hover::before{
    opacity:1 !important;
  }

  .sp-mobile-bottom a .sp-i,
  .sp-mobile-bottom a svg{
    position:relative !important;
    z-index:2 !important;
    display:block !important;
    width:18px !important;
    height:18px !important;
    color:currentColor !important;
    stroke:currentColor !important;
    fill:none !important;
    opacity:1 !important;
    visibility:visible !important;
    filter:none !important;
  }

  .sp-mobile-bottom a small,
  .sp-mobile-bottom a span{
    position:relative !important;
    z-index:2 !important;
    color:currentColor !important;
    opacity:1 !important;
    visibility:visible !important;
    filter:none !important;
  }

  .sp-mobile-bottom a small{
    display:block !important;
    max-width:62px !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    white-space:nowrap !important;
    font-size:8.8px !important;
    line-height:1.05 !important;
    font-weight:850 !important;
  }

  .sp-mobile-bottom a.is-active{
    color:#ffd37d !important;
    background:transparent !important;
  }

  .sp-mobile-bottom a.sp-mobile-publish,
  .sp-mobile-bottom a:nth-child(3){
    transform:translateY(-8px) !important;
    height:68px !important;
    color:#ffd37d !important;
    z-index:5 !important;
    gap:5px !important;
    background:transparent !important;
  }

  .sp-mobile-bottom a.sp-mobile-publish::before,
  .sp-mobile-bottom a:nth-child(3)::before{
    display:none !important;
    content:none !important;
  }

  .sp-mobile-bottom a.sp-mobile-publish .sp-i,
  .sp-mobile-bottom a:nth-child(3) .sp-i,
  .sp-mobile-bottom a.sp-mobile-publish svg,
  .sp-mobile-bottom a:nth-child(3) svg{
    width:20px !important;
    height:20px !important;
    padding:10px !important;
    box-sizing:content-box !important;
    border-radius:999px !important;
    color:#071426 !important;
    stroke:#071426 !important;
    background:linear-gradient(135deg,#d99a21 0%,#ffc456 100%) !important;
    border:1px solid rgba(255,255,255,.32) !important;
    box-shadow:
      0 12px 26px rgba(217,154,33,.30),
      0 8px 18px rgba(0,0,0,.24),
      inset 0 1px 0 rgba(255,255,255,.32) !important;
  }

  .sp-mobile-bottom a.sp-mobile-publish small,
  .sp-mobile-bottom a:nth-child(3) small{
    color:#ffd37d !important;
    font-size:9px !important;
    font-weight:950 !important;
    max-width:64px !important;
    overflow:visible !important;
    text-overflow:clip !important;
  }

  .sp-mobile-bottom a:nth-child(2),
  .sp-mobile-bottom a:nth-child(4),
  .sp-mobile-bottom a:nth-child(5){
    color:rgba(255,255,255,.92) !important;
    opacity:1 !important;
    visibility:visible !important;
  }

  .sp-mobile-bottom a:nth-child(2) .sp-i,
  .sp-mobile-bottom a:nth-child(4) .sp-i,
  .sp-mobile-bottom a:nth-child(5) .sp-i,
  .sp-mobile-bottom a:nth-child(2) svg,
  .sp-mobile-bottom a:nth-child(4) svg,
  .sp-mobile-bottom a:nth-child(5) svg,
  .sp-mobile-bottom a:nth-child(2) small,
  .sp-mobile-bottom a:nth-child(4) small,
  .sp-mobile-bottom a:nth-child(5) small{
    color:rgba(255,255,255,.92) !important;
    stroke:currentColor !important;
    opacity:1 !important;
    visibility:visible !important;
  }
}

/* Restore theme toggle functionality/visibility */
.sp-theme-toggle{
  cursor:pointer !important;
  pointer-events:auto !important;
  user-select:none !important;
}

.sp-theme-toggle .sp-theme-icon,
.sp-theme-toggle [data-sp-theme-icon]{
  display:inline-grid !important;
  place-items:center !important;
  width:18px !important;
  height:18px !important;
  color:#ffd37d !important;
  font-size:16px !important;
  line-height:1 !important;
  opacity:1 !important;
  visibility:visible !important;
}

html[data-theme="dark"] .sp-theme-toggle,
body[data-theme="dark"] .sp-theme-toggle{
  border-color:rgba(255,196,86,.48) !important;
  background:rgba(217,154,33,.14) !important;
}

html[data-theme="dark"] .sp-theme-toggle .sp-theme-icon,
html[data-theme="dark"] .sp-theme-toggle [data-sp-theme-icon],
body[data-theme="dark"] .sp-theme-toggle .sp-theme-icon,
body[data-theme="dark"] .sp-theme-toggle [data-sp-theme-icon]{
  color:#ffc456 !important;
}

/* Final clean theme toggle visibility */
.sp-theme-toggle{
  cursor:pointer !important;
  pointer-events:auto !important;
  user-select:none !important;
}

.sp-theme-toggle .sp-theme-icon,
.sp-theme-toggle [data-sp-theme-icon]{
  display:inline-grid !important;
  place-items:center !important;
  width:18px !important;
  height:18px !important;
  color:#ffd37d !important;
  font-size:16px !important;
  line-height:1 !important;
  opacity:1 !important;
  visibility:visible !important;
}

html[data-theme="dark"] .sp-theme-toggle,
body[data-theme="dark"] .sp-theme-toggle{
  border-color:rgba(255,196,86,.50) !important;
  background:rgba(217,154,33,.15) !important;
}

html[data-theme="dark"] .sp-theme-toggle .sp-theme-icon,
html[data-theme="dark"] .sp-theme-toggle [data-sp-theme-icon],
body[data-theme="dark"] .sp-theme-toggle .sp-theme-icon,
body[data-theme="dark"] .sp-theme-toggle [data-sp-theme-icon]{
  color:#ffc456 !important;
}

/* Sphere projects home section polish */
.sp-opportunity-badge{
  display:inline-flex;
  width:max-content;
  min-height:26px;
  padding:0 10px;
  align-items:center;
  border-radius:999px;
  background:rgba(217,154,33,.13);
  color:#9a5f0d;
  font-size:10px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.05em;
  margin-bottom:10px;
}

.sp-opportunity small{
  line-height:1.35;
}

/* =========================================================
   C&C Sphere Projects Cards - Dark Mode Readability Fix
   Fixes low-contrast text inside project/opportunity cards.
   ========================================================= */

/* Base card improvement */
#sphere-projects .sp-opportunity{
  position:relative;
  display:flex;
  flex-direction:column;
  min-height:230px;
  padding:18px;
  border-radius:22px;
  text-decoration:none;
  overflow:hidden;
  border:1px solid rgba(12,31,55,.12);
  background:
    radial-gradient(circle at 92% 8%,rgba(217,154,33,.12),transparent 7rem),
    linear-gradient(180deg,#ffffff 0%,#fffaf1 100%);
  box-shadow:0 16px 36px rgba(8,24,45,.10);
}

#sphere-projects .sp-opportunity strong{
  display:block;
  color:#071426 !important;
  font-size:16px;
  line-height:1.22;
  font-weight:950;
  letter-spacing:-.025em;
  margin-bottom:8px;
}

#sphere-projects .sp-opportunity span:not(.sp-opportunity-badge){
  display:block;
  color:#334155 !important;
  font-size:13px;
  line-height:1.42;
  font-weight:700;
}

#sphere-projects .sp-opportunity small{
  color:#536175 !important;
  font-size:11px;
  line-height:1.35;
  font-weight:800;
}

#sphere-projects .sp-opportunity small:last-child{
  color:#b26d0f !important;
  font-weight:950 !important;
}

#sphere-projects .sp-opportunity-badge{
  color:#071426 !important;
  background:linear-gradient(135deg,#ffe3a3,#fff4d4) !important;
  border:1px solid rgba(217,154,33,.28) !important;
}

/* Real dark mode card */
html[data-theme="dark"] #sphere-projects .sp-opportunity,
body[data-theme="dark"] #sphere-projects .sp-opportunity{
  border-color:rgba(217,154,33,.30) !important;
  background:
    radial-gradient(circle at 92% 8%,rgba(255,196,86,.16),transparent 7rem),
    linear-gradient(180deg,#0d2138 0%,#071524 100%) !important;
  box-shadow:
    0 18px 44px rgba(0,0,0,.34),
    inset 0 1px 0 rgba(255,255,255,.06) !important;
}

html[data-theme="dark"] #sphere-projects .sp-opportunity strong,
body[data-theme="dark"] #sphere-projects .sp-opportunity strong{
  color:#ffffff !important;
  text-shadow:0 1px 0 rgba(0,0,0,.18) !important;
}

html[data-theme="dark"] #sphere-projects .sp-opportunity span:not(.sp-opportunity-badge),
body[data-theme="dark"] #sphere-projects .sp-opportunity span:not(.sp-opportunity-badge){
  color:rgba(248,250,252,.82) !important;
}

html[data-theme="dark"] #sphere-projects .sp-opportunity small,
body[data-theme="dark"] #sphere-projects .sp-opportunity small{
  color:rgba(248,250,252,.70) !important;
}

html[data-theme="dark"] #sphere-projects .sp-opportunity small:last-child,
body[data-theme="dark"] #sphere-projects .sp-opportunity small:last-child{
  color:#ffd37d !important;
}

html[data-theme="dark"] #sphere-projects .sp-opportunity-badge,
body[data-theme="dark"] #sphere-projects .sp-opportunity-badge{
  color:#071426 !important;
  background:linear-gradient(135deg,#d99a21,#ffc456) !important;
  border-color:rgba(255,255,255,.22) !important;
}

/* Section header dark mode */
html[data-theme="dark"] #sphere-projects .sp-section-head h2,
body[data-theme="dark"] #sphere-projects .sp-section-head h2{
  color:#ffffff !important;
}

html[data-theme="dark"] #sphere-projects .sp-section-head p,
body[data-theme="dark"] #sphere-projects .sp-section-head p{
  color:rgba(248,250,252,.72) !important;
}

html[data-theme="dark"] #sphere-projects .sp-section-head a,
body[data-theme="dark"] #sphere-projects .sp-section-head a{
  color:#ffd37d !important;
}

/* =========================================================
   C&C Sphere Projects - Clear luxury readable UI
   ========================================================= */

.sp-projects-shell,
.sp-project-detail-shell{
  width:min(1180px,calc(100% - 32px));
  margin:0 auto;
}

.sp-projects-hero-mini{
  margin:24px 0 24px;
  padding:34px;
  border-radius:30px;
  border:1px solid rgba(217,154,33,.22);
  background:
    radial-gradient(circle at 92% 8%,rgba(217,154,33,.14),transparent 16rem),
    linear-gradient(135deg,#ffffff 0%,#fff8ea 100%);
  box-shadow:0 18px 44px rgba(8,24,45,.10);
}

.sp-projects-hero-mini span,
.sp-project-detail-kicker{
  display:inline-flex;
  width:max-content;
  min-height:28px;
  padding:0 12px;
  align-items:center;
  border-radius:999px;
  color:#8a570d;
  background:rgba(217,154,33,.14);
  border:1px solid rgba(217,154,33,.24);
  font-size:11px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.055em;
  margin-bottom:14px;
}

.sp-projects-hero-mini h1{
  margin:0;
  color:#071426;
  font-size:42px;
  line-height:1;
  letter-spacing:-.055em;
}

.sp-projects-hero-mini p{
  max-width:680px;
  margin:12px 0 20px;
  color:#475467;
  font-weight:750;
  line-height:1.5;
}

.sp-project-grid-clean{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
}

.sp-project-card-clean{
  position:relative;
  display:flex;
  flex-direction:column;
  min-height:340px;
  padding:18px;
  border-radius:24px;
  text-decoration:none;
  border:1px solid rgba(12,31,55,.12);
  background:#ffffff;
  box-shadow:0 16px 34px rgba(8,24,45,.10);
  overflow:hidden;
}

.sp-project-card-clean::before{
  content:"";
  height:94px;
  margin:-18px -18px 18px;
  display:block;
  background:
    radial-gradient(circle at 78% 18%,rgba(255,196,86,.55),transparent 4rem),
    linear-gradient(135deg,#071426,#d99a21);
}

.sp-project-card-top{
  position:absolute;
  top:12px;
  left:12px;
  right:12px;
  display:flex;
  justify-content:space-between;
  gap:8px;
  z-index:2;
}

.sp-project-type,
.sp-project-featured{
  min-height:24px;
  padding:0 9px;
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  color:#071426;
  background:#ffe7ad;
  font-size:9px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.05em;
}

.sp-project-featured{
  background:#071426;
  color:#ffd37d;
}

.sp-project-card-clean h3{
  margin:0 0 10px;
  color:#071426;
  font-size:17px;
  line-height:1.18;
  letter-spacing:-.03em;
  font-weight:950;
}

.sp-project-card-clean p{
  margin:0;
  color:#344054;
  font-size:13px;
  line-height:1.45;
  font-weight:720;
}

.sp-project-meta-clean{
  display:grid;
  grid-template-columns:1fr;
  gap:8px;
  margin-top:auto;
  padding-top:16px;
}

.sp-project-meta-clean span{
  display:block;
  color:#475467;
  font-size:11.5px;
  line-height:1.25;
  font-weight:800;
}

.sp-project-meta-clean b{
  display:block;
  color:#071426;
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.06em;
  margin-bottom:3px;
}

.sp-project-author-clean{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid rgba(12,31,55,.09);
}

.sp-author-dot{
  flex:0 0 auto;
  width:24px;
  height:24px;
  border-radius:999px;
  background:linear-gradient(135deg,#061426,#d99a21);
  box-shadow:0 8px 18px rgba(217,154,33,.20);
}

.sp-project-author-clean b{
  display:block;
  color:#9a5f0d;
  font-size:11px;
  line-height:1.1;
  font-weight:950;
  text-transform:uppercase;
}

.sp-project-author-clean small{
  color:#667085;
  font-size:10px;
  font-weight:800;
}

/* Detail */
.sp-project-detail-hero{
  margin:34px 0 18px;
  display:grid;
  grid-template-columns:minmax(0,1.5fr) minmax(280px,.7fr);
  gap:18px;
}

.sp-project-detail-main,
.sp-project-detail-side,
.sp-project-content-card{
  border-radius:30px;
  border:1px solid rgba(217,154,33,.22);
  background:
    radial-gradient(circle at 92% 8%,rgba(217,154,33,.12),transparent 16rem),
    linear-gradient(135deg,#ffffff,#fff8ea);
  box-shadow:0 18px 44px rgba(8,24,45,.10);
}

.sp-project-detail-main{
  padding:38px;
}

.sp-project-detail-main h1{
  max-width:780px;
  margin:0;
  color:#071426;
  font-size:54px;
  line-height:.98;
  letter-spacing:-.065em;
}

.sp-project-detail-main > p{
  max-width:680px;
  margin:16px 0 0;
  color:#344054;
  font-size:16px;
  line-height:1.5;
  font-weight:780;
}

.sp-project-detail-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:22px;
}

.sp-project-interest-form{
  margin-top:22px;
  display:grid;
  gap:10px;
  max-width:620px;
}

.sp-project-interest-form label span{
  display:block;
  margin-bottom:7px;
  color:#071426;
  font-size:12px;
  font-weight:950;
}

.sp-project-interest-form textarea{
  width:100%;
  min-height:86px;
  padding:14px;
  border-radius:18px;
  border:1px solid rgba(12,31,55,.14);
  background:#fff;
  color:#071426;
  font-weight:700;
}

.sp-project-login-box{
  margin-top:22px;
  padding:18px;
  border-radius:20px;
  background:rgba(217,154,33,.10);
}

.sp-project-detail-side{
  padding:22px;
  display:grid;
  gap:12px;
  align-content:start;
}

.sp-project-detail-side div{
  padding:16px;
  border-radius:18px;
  background:rgba(255,255,255,.72);
  border:1px solid rgba(12,31,55,.08);
}

.sp-project-detail-side span{
  display:block;
  color:#667085;
  font-size:11px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.06em;
  margin-bottom:5px;
}

.sp-project-detail-side b{
  display:block;
  color:#071426;
  font-size:15px;
  line-height:1.25;
}

.sp-project-detail-grid{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:18px;
  margin-bottom:34px;
}

.sp-project-content-card{
  padding:28px;
}

.sp-project-description{
  color:#344054;
  font-size:15px;
  line-height:1.7;
  font-weight:720;
}

.sp-interest-list-clean{
  display:grid;
  gap:10px;
}

.sp-interest-card-clean,
.sp-interest-empty{
  display:flex;
  align-items:flex-start;
  gap:12px;
  padding:14px;
  border-radius:18px;
  background:rgba(255,255,255,.76);
  border:1px solid rgba(12,31,55,.08);
  text-decoration:none;
}

.sp-interest-card-clean strong,
.sp-interest-empty strong{
  color:#071426;
  font-size:14px;
  font-weight:950;
}

.sp-interest-card-clean p,
.sp-interest-empty p{
  margin:4px 0 0;
  color:#536175;
  font-size:12px;
  line-height:1.4;
  font-weight:720;
}

/* Dark mode */
html[data-theme="dark"] .sp-projects-hero-mini,
body[data-theme="dark"] .sp-projects-hero-mini,
html[data-theme="dark"] .sp-project-card-clean,
body[data-theme="dark"] .sp-project-card-clean,
html[data-theme="dark"] .sp-project-detail-main,
body[data-theme="dark"] .sp-project-detail-main,
html[data-theme="dark"] .sp-project-detail-side,
body[data-theme="dark"] .sp-project-detail-side,
html[data-theme="dark"] .sp-project-content-card,
body[data-theme="dark"] .sp-project-content-card{
  border-color:rgba(217,154,33,.28) !important;
  background:
    radial-gradient(circle at 92% 8%,rgba(255,196,86,.13),transparent 16rem),
    linear-gradient(135deg,#0d2138,#071524) !important;
  box-shadow:0 18px 44px rgba(0,0,0,.32) !important;
}

html[data-theme="dark"] .sp-projects-hero-mini h1,
html[data-theme="dark"] .sp-project-card-clean h3,
html[data-theme="dark"] .sp-project-detail-main h1,
html[data-theme="dark"] .sp-project-detail-side b,
html[data-theme="dark"] .sp-project-interest-form label span,
html[data-theme="dark"] .sp-interest-card-clean strong,
html[data-theme="dark"] .sp-interest-empty strong,
body[data-theme="dark"] .sp-projects-hero-mini h1,
body[data-theme="dark"] .sp-project-card-clean h3,
body[data-theme="dark"] .sp-project-detail-main h1,
body[data-theme="dark"] .sp-project-detail-side b,
body[data-theme="dark"] .sp-project-interest-form label span,
body[data-theme="dark"] .sp-interest-card-clean strong,
body[data-theme="dark"] .sp-interest-empty strong{
  color:#fff !important;
}

html[data-theme="dark"] .sp-projects-hero-mini p,
html[data-theme="dark"] .sp-project-card-clean p,
html[data-theme="dark"] .sp-project-detail-main > p,
html[data-theme="dark"] .sp-project-description,
html[data-theme="dark"] .sp-interest-card-clean p,
html[data-theme="dark"] .sp-interest-empty p,
body[data-theme="dark"] .sp-projects-hero-mini p,
body[data-theme="dark"] .sp-project-card-clean p,
body[data-theme="dark"] .sp-project-detail-main > p,
body[data-theme="dark"] .sp-project-description,
body[data-theme="dark"] .sp-interest-card-clean p,
body[data-theme="dark"] .sp-interest-empty p{
  color:rgba(248,250,252,.76) !important;
}

html[data-theme="dark"] .sp-project-meta-clean span,
html[data-theme="dark"] .sp-project-detail-side span,
body[data-theme="dark"] .sp-project-meta-clean span,
body[data-theme="dark"] .sp-project-detail-side span{
  color:rgba(248,250,252,.62) !important;
}

html[data-theme="dark"] .sp-project-meta-clean b,
body[data-theme="dark"] .sp-project-meta-clean b{
  color:#ffd37d !important;
}

html[data-theme="dark"] .sp-project-detail-side div,
html[data-theme="dark"] .sp-interest-card-clean,
html[data-theme="dark"] .sp-interest-empty,
body[data-theme="dark"] .sp-project-detail-side div,
body[data-theme="dark"] .sp-interest-card-clean,
body[data-theme="dark"] .sp-interest-empty{
  background:rgba(255,255,255,.05) !important;
  border-color:rgba(255,255,255,.10) !important;
}

html[data-theme="dark"] .sp-project-interest-form textarea,
body[data-theme="dark"] .sp-project-interest-form textarea{
  background:rgba(255,255,255,.08) !important;
  border-color:rgba(255,255,255,.14) !important;
  color:#fff !important;
}

html[data-theme="dark"] .sp-project-interest-form textarea::placeholder,
body[data-theme="dark"] .sp-project-interest-form textarea::placeholder{
  color:rgba(248,250,252,.54) !important;
}

/* =========================================================
   C&C Sphere project card badge fix
   Prevents clipped/duplicated labels like "DAD" on cards.
   ========================================================= */

#sphere-projects .sp-project-card-top,
.sp-project-card-clean .sp-project-card-top{
  position:absolute !important;
  top:12px !important;
  left:12px !important;
  right:12px !important;
  z-index:5 !important;
  display:flex !important;
  align-items:flex-start !important;
  justify-content:flex-start !important;
  gap:6px !important;
  max-width:calc(100% - 24px) !important;
  overflow:hidden !important;
  pointer-events:none !important;
}

#sphere-projects .sp-project-type,
#sphere-projects .sp-project-featured,
.sp-project-card-clean .sp-project-type,
.sp-project-card-clean .sp-project-featured{
  flex:0 1 auto !important;
  width:auto !important;
  max-width:100% !important;
  min-width:0 !important;
  min-height:24px !important;
  height:24px !important;
  padding:0 10px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  border-radius:999px !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  line-height:1 !important;
  font-size:9px !important;
  font-weight:950 !important;
  letter-spacing:.045em !important;
  text-transform:uppercase !important;
  color:#071426 !important;
  background:linear-gradient(135deg,#fff0bf,#ffd37d) !important;
  border:1px solid rgba(217,154,33,.32) !important;
  box-shadow:0 8px 18px rgba(8,24,45,.12) !important;
}

/* In compact project cards only one badge should show */
#sphere-projects .sp-project-featured,
.sp-project-card-clean .sp-project-featured{
  display:none !important;
}

/* If old opportunity badge appears inside project cards, normalize it too */
#sphere-projects .sp-opportunity-badge{
  max-width:calc(100% - 18px) !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}

/* Keep the card top clean */
#sphere-projects .sp-project-card-clean::before,
.sp-project-card-clean::before{
  position:relative !important;
  z-index:1 !important;
}

/* Dark mode */
html[data-theme="dark"] #sphere-projects .sp-project-type,
body[data-theme="dark"] #sphere-projects .sp-project-type,
html[data-theme="dark"] .sp-project-card-clean .sp-project-type,
body[data-theme="dark"] .sp-project-card-clean .sp-project-type{
  color:#071426 !important;
  background:linear-gradient(135deg,#d99a21,#ffc456) !important;
  border-color:rgba(255,255,255,.22) !important;
  box-shadow:0 8px 18px rgba(0,0,0,.22) !important;
}

/* =========================================================
   Home Sphere Projects - clean badges/cards
   ========================================================= */

#sphere-projects .sp-project-grid-home{
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:16px !important;
}

#sphere-projects .sp-project-card-home{
  min-height:345px !important;
}

#sphere-projects .sp-project-card-top{
  overflow:hidden !important;
  justify-content:flex-start !important;
}

#sphere-projects .sp-project-type{
  max-width:calc(100% - 4px) !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}

/* Kill any old duplicate badge residue in home cards */
#sphere-projects .sp-project-featured,
#sphere-projects .sp-opportunity-badge + .sp-opportunity-badge,
#sphere-projects .sp-project-type + .sp-project-featured{
  display:none !important;
}

#sphere-projects .sp-project-card-home h3{
  color:#071426 !important;
}

#sphere-projects .sp-project-card-home p{
  color:#344054 !important;
}

#sphere-projects .sp-project-card-home .sp-project-meta-clean span,
#sphere-projects .sp-project-card-home .sp-project-author-clean small{
  color:#536175 !important;
}

#sphere-projects .sp-project-card-home .sp-project-author-clean b{
  color:#b26d0f !important;
}

html[data-theme="dark"] #sphere-projects .sp-project-card-home,
body[data-theme="dark"] #sphere-projects .sp-project-card-home{
  background:
    radial-gradient(circle at 92% 8%,rgba(255,196,86,.13),transparent 7rem),
    linear-gradient(180deg,#0d2138 0%,#071524 100%) !important;
  border-color:rgba(217,154,33,.30) !important;
}

html[data-theme="dark"] #sphere-projects .sp-project-card-home h3,
body[data-theme="dark"] #sphere-projects .sp-project-card-home h3{
  color:#ffffff !important;
}

html[data-theme="dark"] #sphere-projects .sp-project-card-home p,
body[data-theme="dark"] #sphere-projects .sp-project-card-home p{
  color:rgba(248,250,252,.78) !important;
}

html[data-theme="dark"] #sphere-projects .sp-project-card-home .sp-project-meta-clean span,
html[data-theme="dark"] #sphere-projects .sp-project-card-home .sp-project-author-clean small,
body[data-theme="dark"] #sphere-projects .sp-project-card-home .sp-project-meta-clean span,
body[data-theme="dark"] #sphere-projects .sp-project-card-home .sp-project-author-clean small{
  color:rgba(248,250,252,.66) !important;
}

html[data-theme="dark"] #sphere-projects .sp-project-card-home .sp-project-author-clean b,
body[data-theme="dark"] #sphere-projects .sp-project-card-home .sp-project-author-clean b{
  color:#ffd37d !important;
}

/* =========================================================
   Header i18n overflow fix
   Prevents RU/FR/IT long labels from breaking top actions.
   ========================================================= */
.sp-top-inner{
  min-width:0 !important;
}

.sp-search{
  min-width:280px !important;
  flex:1 1 520px !important;
}

.sp-actions{
  flex:0 1 auto !important;
  min-width:0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:8px !important;
  white-space:nowrap !important;
}

.sp-actions .sp-chip,
.sp-actions .sp-icon-btn,
.sp-actions .sp-user-chip{
  flex:0 0 auto !important;
  max-width:190px !important;
}

.sp-actions .sp-chip,
.sp-actions .sp-user-chip{
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}

.sp-actions .sp-create-btn{
  max-width:230px !important;
}

.sp-actions .sp-create-btn,
.sp-actions .sp-user-chip strong,
.sp-actions .sp-user-chip span,
.sp-actions .sp-chip span{
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}

@media (max-width:1180px){
  .sp-actions .sp-chip,
  .sp-actions .sp-user-chip{
    max-width:140px !important;
  }

  .sp-actions .sp-create-btn{
    max-width:170px !important;
  }
}

@media (max-width:980px){
  .sp-search{
    flex-basis:100% !important;
    min-width:0 !important;
  }

  .sp-actions{
    width:100% !important;
    justify-content:flex-start !important;
    overflow:hidden !important;
    padding-bottom:0 !important;
    scrollbar-width:none !important;
  }

  .sp-actions::-webkit-scrollbar{
    display:none !important;
  }
}

/* =========================================================
   C&C Sphere Project Cards - restored cover photos
   ========================================================= */

.sp-project-card-clean::before,
#sphere-projects .sp-project-card-clean::before{
  display:none !important;
}

.sp-project-card-cover{
  position:relative;
  height:132px;
  margin:-18px -18px 18px;
  overflow:hidden;
  border-radius:24px 24px 0 0;
  background:
    radial-gradient(circle at 84% 10%,rgba(255,196,86,.45),transparent 5rem),
    linear-gradient(135deg,#061426,#d99a21);
}

.sp-project-card-cover img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:center;
  transform:scale(1.01);
}

.sp-project-card-cover::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg,rgba(6,20,38,.10) 0%,rgba(6,20,38,.18) 100%);
  pointer-events:none;
}

.sp-project-card-cover-fallback{
  width:100%;
  height:100%;
  display:grid;
  place-items:center;
  color:#fff;
  font-size:13px;
  font-weight:950;
  letter-spacing:.06em;
  text-transform:uppercase;
}

.sp-project-card-top{
  z-index:10 !important;
}

.sp-project-card-clean h3{
  margin-top:0 !important;
}

html[data-theme="dark"] .sp-project-card-cover,
body[data-theme="dark"] .sp-project-card-cover{
  background:
    radial-gradient(circle at 84% 10%,rgba(255,196,86,.35),transparent 5rem),
    linear-gradient(135deg,#071524,#d99a21);
}

html[data-theme="dark"] .sp-project-card-cover::after,
body[data-theme="dark"] .sp-project-card-cover::after{
  background:
    linear-gradient(180deg,rgba(3,10,20,.02) 0%,rgba(3,10,20,.20) 100%);
}

/* SPHERE_CHAT_PROJECT_LAYOUT_FINAL
   Chat styles live in the project CSS file, not inside the Blade view.
   Desktop inherits the Sphere app header/nav and Home sidebar classes.
   Mobile becomes chat-only fullscreen.
*/
.sp-chat-page{
    width:100%;
    max-width:1500px;
    margin:0 auto;
    padding:28px 18px 46px;
}

.sp-chat-shell{
    align-items:start;
}

.sp-chat-left{
    display:flex;
    flex-direction:column;
    gap:14px;
}

.sp-chat-center{
    min-width:0;
}

.sp-chat-card{
    display:grid;
    grid-template-columns:320px minmax(0,1fr);
    min-height:680px;
    height:min(720px,calc(100vh - 210px));
    overflow:hidden;
    border-radius:24px;
    background:#fff7e6;
}

.sp-chat-list-panel{
    min-width:0;
    display:flex;
    flex-direction:column;
    background:linear-gradient(180deg,#171009,#070604);
    border-right:1px solid rgba(212,175,55,.28);
}

.sp-chat-list-head{
    padding:20px 18px 14px;
    border-bottom:1px solid rgba(212,175,55,.22);
}

.sp-chat-list-head small{
    display:block;
    color:#f8c84c;
    font-weight:950;
    letter-spacing:.08em;
    text-transform:uppercase;
}

.sp-chat-list-head h1{
    margin:4px 0 12px;
    color:#fff;
    font-size:24px;
    line-height:1.1;
}

.sp-chat-list-head input{
    width:100%;
    height:40px;
    border-radius:999px;
    border:1px solid rgba(212,175,55,.38);
    background:rgba(255,255,255,.08);
    color:#fff;
    padding:0 14px;
    outline:none;
    font-weight:800;
}

.sp-chat-list-head input::placeholder{
    color:rgba(255,255,255,.65);
}

.sp-chat-room-link{
    display:flex;
    align-items:center;
    min-height:42px;
    margin-top:12px;
    padding:0 14px;
    border-radius:14px;
    border:1px solid rgba(212,175,55,.34);
    background:rgba(212,175,55,.12);
    color:#fff;
    font-weight:950;
    text-decoration:none;
}

.sp-chat-conversation-list{
    padding:12px;
    display:grid;
    gap:10px;
    overflow-y:auto;
}

.sp-chat-conversation{
    display:grid;
    grid-template-columns:48px minmax(0,1fr) auto;
    gap:10px;
    align-items:center;
    min-height:66px;
    padding:10px;
    border-radius:18px;
    border:1px solid rgba(212,175,55,.22);
    color:#fff;
    text-decoration:none;
    background:rgba(212,175,55,.08);
}

.sp-chat-conversation:hover,
.sp-chat-conversation.is-active{
    background:rgba(212,175,55,.20);
    border-color:rgba(212,175,55,.48);
}

.sp-chat-avatar{
    position:relative;
    width:44px;
    height:44px;
    border-radius:50%;
    display:grid;
    place-items:center;
    overflow:hidden;
    background:#0b0a07;
    color:#f8c84c;
    border:2px solid #d4af37;
    font-weight:950;
    flex:0 0 auto;
}

.sp-chat-avatar img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.sp-chat-avatar.is-online::after{
    content:"";
    position:absolute;
    right:0;
    bottom:0;
    width:11px;
    height:11px;
    border-radius:50%;
    background:#22c55e;
    border:2px solid #fff;
}

.sp-chat-conversation-main{
    min-width:0;
}

.sp-chat-conversation-main strong{
    display:block;
    color:#fff;
    font-size:14px;
    font-weight:950;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.sp-chat-conversation-main small{
    display:block;
    color:rgba(255,255,255,.72);
    font-size:12px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.sp-chat-meta small{
    color:rgba(255,255,255,.70);
    font-size:11px;
    white-space:nowrap;
}

.sp-chat-meta b{
    min-width:22px;
    height:22px;
    border-radius:999px;
    display:grid;
    place-items:center;
    background:#0a66c2;
    color:#fff;
    font-size:12px;
}

.sp-chat-main{
    min-width:0;
    min-height:0;
    display:flex;
    flex-direction:column;
    background:linear-gradient(180deg,#fff9e8,#f7eed8);
}

.sp-chat-header{
    height:66px;
    flex:0 0 66px;
    display:flex;
    align-items:center;
    gap:10px;
    padding:10px 16px;
    background:rgba(255,255,255,.92);
    border-bottom:1px solid rgba(0,0,0,.08);
}

.sp-chat-back{
    width:34px;
    height:34px;
    border-radius:50%;
    display:grid;
    place-items:center;
    background:#f5e9c9;
    color:#5c3d09;
    text-decoration:none;
    font-size:24px;
    font-weight:900;
}

.sp-chat-header-main{
    min-width:0;
}

.sp-chat-header-main strong{
    color:#111827;
    font-size:16px;
    font-weight:950;
}

.sp-chat-header-main small{
    display:block;
    color:#15803d;
    font-size:12px;
    font-weight:900;
}

.sp-chat-messages{
    flex:1 1 auto;
    min-height:0;
    overflow-y:auto;
    padding:22px;
    display:flex;
    flex-direction:column;
    gap:12px;
}

.sp-chat-message{
    max-width:68%;
    border-radius:18px;
    padding:11px 14px;
    box-shadow:0 8px 22px rgba(0,0,0,.08);
}

.sp-chat-message p{
    margin:0;
    font-size:14px;
    line-height:1.35;
}

.sp-chat-message footer{
    margin-top:6px;
    display:flex;
    justify-content:flex-end;
    gap:6px;
    color:rgba(255,255,255,.78);
    font-size:11px;
    font-weight:800;
}

.sp-chat-message.is-other{
    align-self:flex-start;
    background:#fff;
    color:#111827;
}

.sp-chat-message.is-other footer{
    color:#6b7280;
}

.sp-chat-message.is-mine{
    align-self:flex-end;
    background:linear-gradient(135deg,#1a1206,#5a3b08);
    color:#fff;
}

.sp-chat-attachment{
    margin-top:8px;
}

.sp-chat-attachment img{
    display:block;
    max-width:260px;
    max-height:320px;
    border-radius:14px;
}

.sp-chat-attachment video{
    display:block;
    width:280px;
    max-width:100%;
    border-radius:14px;
}

.sp-chat-attachment audio{
    width:280px;
    max-width:100%;
}

.sp-chat-form{
    flex:0 0 auto;
    display:grid;
    grid-template-columns:auto minmax(0,1fr) auto;
    gap:10px;
    align-items:center;
    padding:12px;
    background:rgba(255,255,255,.92);
    border-top:1px solid rgba(0,0,0,.08);
}

.sp-chat-attach{
    width:38px;
    height:38px;
    border-radius:50%;
    display:grid;
    place-items:center;
    background:#f3e8c9;
    color:#5c3d09;
    cursor:pointer;
}

.sp-chat-form input[name="body"]{
    height:42px;
    border:0;
    border-radius:14px;
    background:#f3f1ee;
    padding:0 14px;
    outline:none;
    color:#111827;
    font-weight:800;
}

.sp-chat-form button{
    height:42px;
    white-space:nowrap;
}

.sp-chat-empty,
.sp-chat-empty-text{
    padding:20px;
    color:#6b7280;
    font-weight:800;
}

html[data-theme="dark"] .sp-chat-card,
body[data-theme="dark"] .sp-chat-card{
    background:#111827;
}

html[data-theme="dark"] .sp-chat-main,
body[data-theme="dark"] .sp-chat-main{
    background:#07111f;
}

html[data-theme="dark"] .sp-chat-header,
html[data-theme="dark"] .sp-chat-form,
body[data-theme="dark"] .sp-chat-header,
body[data-theme="dark"] .sp-chat-form{
    background:#0f172a;
    border-color:rgba(255,255,255,.10);
}

html[data-theme="dark"] .sp-chat-header-main strong,
body[data-theme="dark"] .sp-chat-header-main strong{
    color:#fff;
}

html[data-theme="dark"] .sp-chat-form input[name="body"],
body[data-theme="dark"] .sp-chat-form input[name="body"]{
    background:#111827;
    color:#fff;
}

/* Mobile: chat route becomes chat-only fullscreen. */
@media (max-width:820px){
    body:has([data-sp-chat-page]) .sp-top,
    body:has([data-sp-chat-page]) .sp-nav,
    body:has([data-sp-chat-page]) .sp-footer-trust,
    body:has([data-sp-chat-page]) .sp-mobile-bottom,
    body:has([data-sp-chat-page]) .sp-mobile-drawer,
    body:has([data-sp-chat-page]) .sp-mobile-drawer-backdrop{
        display:none!important;
    }

    body:has([data-sp-chat-page]){
        overflow:hidden!important;
        background:#f8f1df!important;
    }

    body:has([data-sp-chat-page]) .sp-main{
        padding:0!important;
        margin:0!important;
        width:100vw!important;
        height:100dvh!important;
        overflow:hidden!important;
    }

    .sp-chat-page{
        position:fixed!important;
        inset:0!important;
        z-index:9999!important;
        width:100vw!important;
        height:100dvh!important;
        max-width:none!important;
        padding:0!important;
        margin:0!important;
        background:#f8f1df!important;
        overflow:hidden!important;
    }

    .sp-chat-shell{
        display:block!important;
        width:100vw!important;
        height:100dvh!important;
        margin:0!important;
        padding:0!important;
    }

    .sp-chat-left{
        display:none!important;
    }

    .sp-chat-center{
        width:100vw!important;
        height:100dvh!important;
        margin:0!important;
        padding:0!important;
    }

    .sp-chat-card{
        width:100vw!important;
        height:100dvh!important;
        min-height:100dvh!important;
        border:0!important;
        border-radius:0!important;
        display:grid!important;
        grid-template-columns:1fr!important;
        box-shadow:none!important;
    }

    .sp-chat-list-panel{
        display:none!important;
    }

    .sp-chat-main{
        width:100vw!important;
        height:100dvh!important;
        min-height:0!important;
    }

    .sp-chat-header{
        height:64px!important;
        flex-basis:64px!important;
    }

    .sp-chat-messages{
        padding:16px!important;
    }

    .sp-chat-message{
        max-width:84%!important;
    }

    .sp-chat-form{
        padding:10px!important;
        padding-bottom:max(10px,env(safe-area-inset-bottom))!important;
        grid-template-columns:auto minmax(0,1fr) auto!important;
    }

    .sp-chat-form button{
        padding-left:14px!important;
        padding-right:14px!important;
        font-size:12px!important;
    }
}

/* SPHERE_CHAT_GRID_REPAIR_FINAL
   Fixes /sphere/chat/{id} after rebuilding it to inherit layouts.sphere-app.
   Desktop: left ecosystem menu + chat right.
   Mobile: only chat full screen.
*/
body:has([data-sp-chat-page]) {
    background: #f8f1df;
}

body:has([data-sp-chat-page]) .sp-main {
    width: 100%;
}

.sp-chat-page[data-sp-chat-page] {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 28px 18px 46px;
    position: relative;
    isolation: isolate;
}

.sp-chat-page[data-sp-chat-page]::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 520px;
    height: 520px;
    opacity: .08;
    pointer-events: none;
    background: radial-gradient(circle, rgba(212,175,55,.65), transparent 60%);
    z-index: -1;
}

.sp-chat-shell {
    display: grid !important;
    grid-template-columns: 270px minmax(0, 1fr) !important;
    gap: 22px !important;
    align-items: start !important;
    width: min(1320px, calc(100vw - 64px)) !important;
    margin: 0 auto !important;
}

.sp-chat-left {
    grid-column: 1 !important;
    width: 270px !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
}

.sp-chat-center {
    grid-column: 2 !important;
    min-width: 0 !important;
    width: 100% !important;
}

.sp-chat-left .sp-card,
.sp-chat-center .sp-card {
    width: 100%;
}

.sp-chat-left .sp-profile {
    display: grid !important;
    grid-template-columns: 54px minmax(0, 1fr) !important;
    gap: 12px !important;
    align-items: center !important;
    min-height: auto !important;
    padding: 14px !important;
}

.sp-chat-left .sp-profile-avatar {
    width: 54px !important;
    height: 54px !important;
    border-radius: 16px !important;
    overflow: hidden !important;
}

.sp-chat-left .sp-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sp-chat-left .sp-profile strong,
.sp-chat-left .sp-progress strong,
.sp-chat-left .sp-invite h3 {
    display: block;
    color: #111827;
    font-weight: 950;
}

.sp-chat-left .sp-profile small {
    display: block;
    color: #b8911f;
    font-size: 12px;
    font-weight: 850;
}

.sp-chat-left .sp-profile a,
.sp-chat-left .sp-mini-link {
    display: inline-block;
    color: #111827;
    font-weight: 950;
    font-size: 12px;
    text-decoration: underline;
}

.sp-chat-left .sp-menu {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    padding: 10px !important;
}

.sp-chat-left .sp-menu a {
    width: 100% !important;
    min-height: 40px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 9px 11px !important;
    border-radius: 13px !important;
    color: #111827 !important;
    text-decoration: none !important;
    font-weight: 900 !important;
    font-size: 13px !important;
}

.sp-chat-left .sp-menu a:hover,
.sp-chat-left .sp-menu a.is-active {
    background: #fff3c8 !important;
}

.sp-chat-left .sp-menu .sp-i {
    width: 18px !important;
    height: 18px !important;
    color: #b8911f !important;
    flex: 0 0 18px !important;
}

.sp-chat-left .sp-progress {
    padding: 14px !important;
}

.sp-chat-left .sp-progress-row {
    display: flex !important;
    justify-content: space-between !important;
    gap: 12px !important;
    margin-top: 8px !important;
    color: #111827 !important;
    font-size: 12px !important;
    font-weight: 900 !important;
}

.sp-chat-left .sp-progress-bar {
    height: 7px !important;
    margin-top: 8px !important;
    border-radius: 999px !important;
    background: #eadfcb !important;
    overflow: hidden !important;
}

.sp-chat-left .sp-progress-bar span {
    display: block !important;
    width: 70% !important;
    height: 100% !important;
    background: linear-gradient(90deg, #d4af37, #f8c84c) !important;
}

.sp-chat-left .sp-invite {
    padding: 16px !important;
    color: #fff !important;
    background:
        radial-gradient(circle at top right, rgba(212,175,55,.32), transparent 35%),
        linear-gradient(135deg, #122235, #11100b) !important;
}

.sp-chat-left .sp-invite h3 {
    color: #f8c84c !important;
    font-size: 20px !important;
    line-height: 1.05 !important;
    margin: 0 !important;
}

.sp-chat-left .sp-invite p {
    color: #fff !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
    font-weight: 800 !important;
    margin: 10px 0 12px !important;
}

.sp-chat-card {
    display: grid !important;
    grid-template-columns: 320px minmax(0, 1fr) !important;
    min-height: 680px !important;
    height: min(720px, calc(100vh - 210px)) !important;
    overflow: hidden !important;
    border-radius: 24px !important;
    background: #fff7e6 !important;
    box-shadow: 0 28px 70px rgba(0,0,0,.14) !important;
}

.sp-chat-list-panel {
    min-width: 0 !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    background: linear-gradient(180deg, #171009, #070604) !important;
    border-right: 1px solid rgba(212,175,55,.28) !important;
}

.sp-chat-main {
    min-width: 0 !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    background: linear-gradient(180deg, #fff9e8, #f7eed8) !important;
}

.sp-chat-header {
    flex: 0 0 66px !important;
    height: 66px !important;
}

.sp-chat-messages {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
}

.sp-chat-form {
    flex: 0 0 auto !important;
}

/* Remove the accidental huge logo effect inside chat page only */
body:has([data-sp-chat-page]) .sp-chat-shell::before,
body:has([data-sp-chat-page]) .sp-chat-shell::after,
body:has([data-sp-chat-page]) .sp-chat-page::after {
    display: none !important;
}

/* Mobile: the chat route must be chat-only fullscreen */
@media (max-width: 820px) {
    body:has([data-sp-chat-page]) {
        overflow: hidden !important;
        background: #f8f1df !important;
    }

    body:has([data-sp-chat-page]) .sp-top,
    body:has([data-sp-chat-page]) .sp-nav,
    body:has([data-sp-chat-page]) .sp-footer-trust,
    body:has([data-sp-chat-page]) .sp-mobile-bottom,
    body:has([data-sp-chat-page]) .sp-mobile-drawer,
    body:has([data-sp-chat-page]) .sp-mobile-drawer-backdrop {
        display: none !important;
    }

    body:has([data-sp-chat-page]) .sp-main {
        width: 100vw !important;
        height: 100dvh !important;
        min-height: 100dvh !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
    }

    .sp-chat-page[data-sp-chat-page] {
        position: fixed !important;
        inset: 0 !important;
        z-index: 9999 !important;
        width: 100vw !important;
        max-width: none !important;
        height: 100dvh !important;
        min-height: 100dvh !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
        background: #f8f1df !important;
    }

    .sp-chat-page[data-sp-chat-page]::before,
    .sp-chat-page[data-sp-chat-page]::after {
        display: none !important;
    }

    .sp-chat-shell {
        display: block !important;
        width: 100vw !important;
        height: 100dvh !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .sp-chat-left {
        display: none !important;
    }

    .sp-chat-center {
        width: 100vw !important;
        height: 100dvh !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .sp-chat-card {
        width: 100vw !important;
        height: 100dvh !important;
        min-height: 100dvh !important;
        border: 0 !important;
        border-radius: 0 !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        box-shadow: none !important;
    }

    .sp-chat-list-panel {
        display: none !important;
    }

    .sp-chat-main {
        width: 100vw !important;
        height: 100dvh !important;
        min-height: 0 !important;
    }

    .sp-chat-header {
        height: 64px !important;
        flex-basis: 64px !important;
    }

    .sp-chat-messages {
        padding: 16px !important;
    }

    .sp-chat-message {
        max-width: 84% !important;
    }

    .sp-chat-form {
        padding: 10px !important;
        padding-bottom: max(10px, env(safe-area-inset-bottom)) !important;
        grid-template-columns: auto minmax(0, 1fr) auto !important;
    }

    .sp-chat-form button {
        padding-left: 14px !important;
        padding-right: 14px !important;
        font-size: 12px !important;
    }
}

/* SPHERE_CHAT_DARK_CONTRAST_I18N_FINAL
   Fix unreadable text in dark mode on /sphere/chat/{id}.
   Keeps chat labels local to the Blade view.
*/
body:has([data-sp-chat-page]) .sp-chat-left,
body:has([data-sp-chat-page]) .sp-chat-left *,
body:has([data-sp-chat-page]) .sp-chat-left .sp-card,
body:has([data-sp-chat-page]) .sp-chat-left .sp-card * {
    text-shadow: none;
}

body:has([data-sp-chat-page]) .sp-chat-left .sp-card {
    background: rgba(255, 255, 255, .94);
}

body:has([data-sp-chat-page]) .sp-chat-left .sp-profile strong,
body:has([data-sp-chat-page]) .sp-chat-left .sp-profile a,
body:has([data-sp-chat-page]) .sp-chat-left .sp-menu a,
body:has([data-sp-chat-page]) .sp-chat-left .sp-menu a span,
body:has([data-sp-chat-page]) .sp-chat-left .sp-progress,
body:has([data-sp-chat-page]) .sp-chat-left .sp-progress *,
body:has([data-sp-chat-page]) .sp-chat-left .sp-mini-link {
    color: #111827 !important;
    opacity: 1 !important;
}

body:has([data-sp-chat-page]) .sp-chat-left .sp-profile small {
    color: #b8911f !important;
    opacity: 1 !important;
}

body:has([data-sp-chat-page]) .sp-chat-left .sp-menu .sp-i {
    color: #b8911f !important;
    opacity: 1 !important;
}

body:has([data-sp-chat-page]) .sp-chat-left .sp-invite,
body:has([data-sp-chat-page]) .sp-chat-left .sp-invite *,
body:has([data-sp-chat-page]) .sp-chat-left .sp-invite h3,
body:has([data-sp-chat-page]) .sp-chat-left .sp-invite p {
    color: #ffffff !important;
    opacity: 1 !important;
}

body:has([data-sp-chat-page]) .sp-chat-left .sp-invite h3 {
    color: #f8c84c !important;
}

body:has([data-sp-chat-page]) .sp-chat-list-head h1,
body:has([data-sp-chat-page]) .sp-chat-list-head small,
body:has([data-sp-chat-page]) .sp-chat-room-link,
body:has([data-sp-chat-page]) .sp-chat-conversation-main strong,
body:has([data-sp-chat-page]) .sp-chat-conversation-main small,
body:has([data-sp-chat-page]) .sp-chat-meta small {
    opacity: 1 !important;
}

html.dark body:has([data-sp-chat-page]) .sp-chat-left .sp-card,
body.dark:has([data-sp-chat-page]) .sp-chat-left .sp-card,
[data-theme="dark"] body:has([data-sp-chat-page]) .sp-chat-left .sp-card,
body[data-theme="dark"]:has([data-sp-chat-page]) .sp-chat-left .sp-card {
    background: rgba(15, 23, 42, .96) !important;
    border-color: rgba(212, 175, 55, .32) !important;
}

html.dark body:has([data-sp-chat-page]) .sp-chat-left .sp-profile strong,
html.dark body:has([data-sp-chat-page]) .sp-chat-left .sp-profile a,
html.dark body:has([data-sp-chat-page]) .sp-chat-left .sp-menu a,
html.dark body:has([data-sp-chat-page]) .sp-chat-left .sp-menu a span,
html.dark body:has([data-sp-chat-page]) .sp-chat-left .sp-progress,
html.dark body:has([data-sp-chat-page]) .sp-chat-left .sp-progress *,
html.dark body:has([data-sp-chat-page]) .sp-chat-left .sp-mini-link,
body.dark:has([data-sp-chat-page]) .sp-chat-left .sp-profile strong,
body.dark:has([data-sp-chat-page]) .sp-chat-left .sp-profile a,
body.dark:has([data-sp-chat-page]) .sp-chat-left .sp-menu a,
body.dark:has([data-sp-chat-page]) .sp-chat-left .sp-menu a span,
body.dark:has([data-sp-chat-page]) .sp-chat-left .sp-progress,
body.dark:has([data-sp-chat-page]) .sp-chat-left .sp-progress *,
body.dark:has([data-sp-chat-page]) .sp-chat-left .sp-mini-link,
body[data-theme="dark"]:has([data-sp-chat-page]) .sp-chat-left .sp-profile strong,
body[data-theme="dark"]:has([data-sp-chat-page]) .sp-chat-left .sp-profile a,
body[data-theme="dark"]:has([data-sp-chat-page]) .sp-chat-left .sp-menu a,
body[data-theme="dark"]:has([data-sp-chat-page]) .sp-chat-left .sp-menu a span,
body[data-theme="dark"]:has([data-sp-chat-page]) .sp-chat-left .sp-progress,
body[data-theme="dark"]:has([data-sp-chat-page]) .sp-chat-left .sp-progress *,
body[data-theme="dark"]:has([data-sp-chat-page]) .sp-chat-left .sp-mini-link {
    color: #ffffff !important;
    opacity: 1 !important;
}

html.dark body:has([data-sp-chat-page]) .sp-chat-left .sp-profile small,
body.dark:has([data-sp-chat-page]) .sp-chat-left .sp-profile small,
body[data-theme="dark"]:has([data-sp-chat-page]) .sp-chat-left .sp-profile small {
    color: #f8c84c !important;
    opacity: 1 !important;
}

html.dark body:has([data-sp-chat-page]) .sp-chat-left .sp-menu a:hover,
html.dark body:has([data-sp-chat-page]) .sp-chat-left .sp-menu a.is-active,
body.dark:has([data-sp-chat-page]) .sp-chat-left .sp-menu a:hover,
body.dark:has([data-sp-chat-page]) .sp-chat-left .sp-menu a.is-active,
body[data-theme="dark"]:has([data-sp-chat-page]) .sp-chat-left .sp-menu a:hover,
body[data-theme="dark"]:has([data-sp-chat-page]) .sp-chat-left .sp-menu a.is-active {
    background: rgba(212, 175, 55, .18) !important;
}

html.dark body:has([data-sp-chat-page]) .sp-chat-left .sp-menu .sp-i,
body.dark:has([data-sp-chat-page]) .sp-chat-left .sp-menu .sp-i,
body[data-theme="dark"]:has([data-sp-chat-page]) .sp-chat-left .sp-menu .sp-i {
    color: #f8c84c !important;
    opacity: 1 !important;
}

/* Fallback for browsers/classes where dark selector does not attach as expected */
body:has([data-sp-chat-page]) .sp-chat-left .sp-card[style],
body:has([data-sp-chat-page]) .sp-chat-left .sp-card {
    color: inherit;
}

/* SPHERE_CHAT_MOBILE_LIST_ACTIVE_FINAL
   Mobile behavior:
   - /sphere/chat without active conversation shows the conversation list fullscreen.
   - /sphere/chat/{id} with active conversation shows only the open chat fullscreen.
*/
@media (max-width: 820px) {
    body:has([data-sp-chat-page]) {
        overflow: hidden !important;
        background: #f8f1df !important;
    }

    body:has([data-sp-chat-page]) .sp-top,
    body:has([data-sp-chat-page]) .sp-nav,
    body:has([data-sp-chat-page]) .sp-footer-trust,
    body:has([data-sp-chat-page]) .sp-mobile-bottom,
    body:has([data-sp-chat-page]) .sp-mobile-drawer,
    body:has([data-sp-chat-page]) .sp-mobile-drawer-backdrop {
        display: none !important;
    }

    body:has([data-sp-chat-page]) .sp-main {
        width: 100vw !important;
        height: 100dvh !important;
        min-height: 100dvh !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
    }

    .sp-chat-page[data-sp-chat-page] {
        position: fixed !important;
        inset: 0 !important;
        z-index: 9999 !important;
        width: 100vw !important;
        max-width: none !important;
        height: 100dvh !important;
        min-height: 100dvh !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
        background: #f8f1df !important;
    }

    .sp-chat-page[data-sp-chat-page]::before,
    .sp-chat-page[data-sp-chat-page]::after {
        display: none !important;
    }

    .sp-chat-shell {
        display: block !important;
        width: 100vw !important;
        height: 100dvh !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .sp-chat-left {
        display: none !important;
    }

    .sp-chat-center {
        width: 100vw !important;
        height: 100dvh !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .sp-chat-card {
        width: 100vw !important;
        height: 100dvh !important;
        min-height: 100dvh !important;
        border: 0 !important;
        border-radius: 0 !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        box-shadow: none !important;
        overflow: hidden !important;
    }

    /* /sphere/chat: show contacts/conversations fullscreen */
    .sp-chat-page[data-has-active-conversation="0"] .sp-chat-list-panel {
        display: flex !important;
        width: 100vw !important;
        height: 100dvh !important;
        min-height: 100dvh !important;
        border: 0 !important;
        background: linear-gradient(180deg, #171009, #070604) !important;
    }

    .sp-chat-page[data-has-active-conversation="0"] .sp-chat-main {
        display: none !important;
    }

    .sp-chat-page[data-has-active-conversation="0"] .sp-chat-list-head {
        padding: 22px 16px 14px !important;
        flex: 0 0 auto !important;
    }

    .sp-chat-page[data-has-active-conversation="0"] .sp-chat-conversation-list {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        padding: 12px !important;
    }

    .sp-chat-page[data-has-active-conversation="0"] .sp-chat-conversation {
        min-height: 68px !important;
    }

    /* /sphere/chat/{id}: show only the open conversation fullscreen */
    .sp-chat-page[data-has-active-conversation="1"] .sp-chat-list-panel {
        display: none !important;
    }

    .sp-chat-page[data-has-active-conversation="1"] .sp-chat-main {
        display: flex !important;
        width: 100vw !important;
        height: 100dvh !important;
        min-height: 0 !important;
    }

    .sp-chat-page[data-has-active-conversation="1"] .sp-chat-header {
        height: 64px !important;
        flex: 0 0 64px !important;
    }

    .sp-chat-page[data-has-active-conversation="1"] .sp-chat-messages {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        padding: 16px !important;
    }

    .sp-chat-page[data-has-active-conversation="1"] .sp-chat-message {
        max-width: 84% !important;
    }

    .sp-chat-page[data-has-active-conversation="1"] .sp-chat-form {
        flex: 0 0 auto !important;
        padding: 10px !important;
        padding-bottom: max(10px, env(safe-area-inset-bottom)) !important;
        grid-template-columns: auto minmax(0, 1fr) auto !important;
    }

    .sp-chat-page[data-has-active-conversation="1"] .sp-chat-form button {
        padding-left: 14px !important;
        padding-right: 14px !important;
        font-size: 12px !important;
    }
}

/* SPHERE_CHAT_MOBILE_PRO_HEADER_FINAL
   Professional mobile /sphere/chat list:
   - Fullscreen
   - Own compact header
   - Conversations start at top
   - No empty desktop spacing
*/
@media (max-width: 820px) {
    .sp-chat-page[data-has-active-conversation="0"] {
        background: #0b121c !important;
    }

    .sp-chat-page[data-has-active-conversation="0"] .sp-chat-card {
        background: #0b121c !important;
    }

    .sp-chat-page[data-has-active-conversation="0"] .sp-chat-list-panel {
        display: flex !important;
        flex-direction: column !important;
        width: 100vw !important;
        height: 100dvh !important;
        min-height: 100dvh !important;
        background:
            radial-gradient(circle at 85% 0%, rgba(212, 175, 55, .16), transparent 32%),
            linear-gradient(180deg, #0b121c 0%, #090806 100%) !important;
        border: 0 !important;
        overflow: hidden !important;
    }

    .sp-chat-page[data-has-active-conversation="0"] .sp-chat-list-head {
        flex: 0 0 auto !important;
        padding: 14px 14px 12px !important;
        border-bottom: 1px solid rgba(212, 175, 55, .22) !important;
        background: rgba(8, 13, 20, .96) !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 5 !important;
    }

    .sp-chat-mobile-brand {
        display: grid !important;
        grid-template-columns: 42px minmax(0, 1fr) 42px !important;
        gap: 10px !important;
        align-items: center !important;
        margin-bottom: 12px !important;
    }

    .sp-chat-mobile-back,
    .sp-chat-mobile-home {
        width: 40px !important;
        height: 40px !important;
        border-radius: 14px !important;
        display: grid !important;
        place-items: center !important;
        background: rgba(212, 175, 55, .12) !important;
        border: 1px solid rgba(212, 175, 55, .34) !important;
        color: #f8c84c !important;
        text-decoration: none !important;
        font-size: 24px !important;
        font-weight: 950 !important;
        line-height: 1 !important;
    }

    .sp-chat-mobile-home {
        font-size: 18px !important;
    }

    .sp-chat-mobile-title {
        min-width: 0 !important;
        text-align: left !important;
    }

    .sp-chat-mobile-title small,
    .sp-chat-page[data-has-active-conversation="0"] .sp-chat-list-head small {
        display: block !important;
        color: #f8c84c !important;
        font-size: 11px !important;
        font-weight: 950 !important;
        letter-spacing: .10em !important;
        text-transform: uppercase !important;
        margin: 0 !important;
    }

    .sp-chat-mobile-title h1,
    .sp-chat-page[data-has-active-conversation="0"] .sp-chat-list-head h1 {
        margin: 2px 0 0 !important;
        color: #ffffff !important;
        font-size: 24px !important;
        line-height: 1.05 !important;
        font-weight: 950 !important;
        letter-spacing: -.02em !important;
    }

    .sp-chat-page[data-has-active-conversation="0"] .sp-chat-list-head > small,
    .sp-chat-page[data-has-active-conversation="0"] .sp-chat-list-head > h1 {
        display: none !important;
    }

    .sp-chat-page[data-has-active-conversation="0"] .sp-chat-list-head input {
        width: 100% !important;
        height: 44px !important;
        border-radius: 16px !important;
        padding: 0 16px !important;
        background: rgba(255, 255, 255, .10) !important;
        border: 1px solid rgba(212, 175, 55, .28) !important;
        color: #ffffff !important;
        font-size: 14px !important;
        font-weight: 800 !important;
    }

    .sp-chat-page[data-has-active-conversation="0"] .sp-chat-list-head input::placeholder {
        color: rgba(255, 255, 255, .68) !important;
    }

    .sp-chat-page[data-has-active-conversation="0"] .sp-chat-room-link {
        width: 100% !important;
        min-height: 42px !important;
        margin-top: 10px !important;
        padding: 0 14px !important;
        border-radius: 15px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 8px !important;
        background: rgba(212, 175, 55, .14) !important;
        border: 1px solid rgba(212, 175, 55, .38) !important;
        color: #ffffff !important;
        text-decoration: none !important;
        font-size: 13px !important;
        font-weight: 950 !important;
    }

    .sp-chat-page[data-has-active-conversation="0"] .sp-chat-conversation-list {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        height: auto !important;
        padding: 12px 12px 18px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
        align-content: start !important;
        gap: 10px !important;
        overflow-y: auto !important;
        background: transparent !important;
        border: 0 !important;
    }

    .sp-chat-page[data-has-active-conversation="0"] .sp-chat-conversation {
        width: 100% !important;
        min-height: 72px !important;
        margin: 0 !important;
        padding: 12px !important;
        display: grid !important;
        grid-template-columns: 52px minmax(0, 1fr) auto !important;
        gap: 12px !important;
        align-items: center !important;
        border-radius: 18px !important;
        background: rgba(255, 255, 255, .07) !important;
        border: 1px solid rgba(212, 175, 55, .22) !important;
        box-shadow: none !important;
        color: #ffffff !important;
        text-decoration: none !important;
    }

    .sp-chat-page[data-has-active-conversation="0"] .sp-chat-conversation.is-active,
    .sp-chat-page[data-has-active-conversation="0"] .sp-chat-conversation:hover {
        background: rgba(212, 175, 55, .16) !important;
        border-color: rgba(212, 175, 55, .48) !important;
    }

    .sp-chat-page[data-has-active-conversation="0"] .sp-chat-avatar {
        width: 50px !important;
        height: 50px !important;
        border-width: 2px !important;
    }

    .sp-chat-page[data-has-active-conversation="0"] .sp-chat-conversation-main strong {
        color: #ffffff !important;
        font-size: 14px !important;
        font-weight: 950 !important;
        line-height: 1.15 !important;
    }

    .sp-chat-page[data-has-active-conversation="0"] .sp-chat-conversation-main small {
        margin-top: 4px !important;
        color: rgba(255, 255, 255, .72) !important;
        font-size: 12px !important;
        font-weight: 800 !important;
    }

    .sp-chat-page[data-has-active-conversation="0"] .sp-chat-meta {
        align-self: start !important;
        padding-top: 2px !important;
    }

    .sp-chat-page[data-has-active-conversation="0"] .sp-chat-meta small {
        color: rgba(255, 255, 255, .70) !important;
        font-size: 11px !important;
        white-space: nowrap !important;
    }

    .sp-chat-page[data-has-active-conversation="0"] .sp-chat-empty-text {
        margin: 22px 0 0 !important;
        padding: 18px !important;
        border-radius: 18px !important;
        background: rgba(255, 255, 255, .07) !important;
        color: rgba(255, 255, 255, .78) !important;
        font-weight: 850 !important;
        text-align: center !important;
    }
}

/* Desktop keeps project header and desktop layout; mobile brand hidden there */
@media (min-width: 821px) {
    .sp-chat-mobile-brand {
        display: none !important;
    }
}

/* SPHERE_CHAT_MOBILE_NO_INPUT_ZOOM_FINAL
   Prevents mobile browsers from auto-zooming when the keyboard opens.
   Cause: inputs below 16px font-size trigger zoom on iOS/mobile browsers.
*/
@media (max-width: 820px) {
    html:has([data-sp-chat-page]),
    body:has([data-sp-chat-page]) {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        -webkit-text-size-adjust: 100% !important;
        text-size-adjust: 100% !important;
    }

    body:has([data-sp-chat-page]) input,
    body:has([data-sp-chat-page]) textarea,
    body:has([data-sp-chat-page]) select,
    body:has([data-sp-chat-page]) button {
        font-size: 16px !important;
    }

    .sp-chat-page[data-sp-chat-page] {
        width: 100vw !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
        touch-action: manipulation !important;
    }

    .sp-chat-card,
    .sp-chat-main,
    .sp-chat-messages,
    .sp-chat-form {
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    .sp-chat-form {
        width: 100vw !important;
        box-sizing: border-box !important;
    }

    .sp-chat-form input[name="body"] {
        min-width: 0 !important;
        width: 100% !important;
        height: 44px !important;
        line-height: 44px !important;
        font-size: 16px !important;
        transform: none !important;
        zoom: 1 !important;
    }

    .sp-chat-list-head input {
        font-size: 16px !important;
        transform: none !important;
        zoom: 1 !important;
    }

    .sp-chat-form button {
        min-height: 44px !important;
        font-size: 14px !important;
    }

    .sp-chat-attach {
        min-width: 44px !important;
        width: 44px !important;
        height: 44px !important;
    }
}

/* SPHERE_HOME_MOBILE_BUTTONS_NAV_CLEAN_FINAL */
@media (max-width: 820px) {
    body:not(:has([data-sp-chat-page])) {
        overflow-x: hidden !important;
    }

    body:not(:has([data-sp-chat-page])) .sp-hero,
    body:not(:has([data-sp-chat-page])) .sp-hero-content {
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    body:not(:has([data-sp-chat-page])) .sp-hero-actions,
    body:not(:has([data-sp-chat-page])) .sp-hero .sp-actions,
    body:not(:has([data-sp-chat-page])) .sp-hero-buttons {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    body:not(:has([data-sp-chat-page])) .sp-hero-actions .sp-btn,
    body:not(:has([data-sp-chat-page])) .sp-hero .sp-actions .sp-btn,
    body:not(:has([data-sp-chat-page])) .sp-hero-buttons .sp-btn,
    body:not(:has([data-sp-chat-page])) .sp-hero a.sp-btn {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        max-width: none !important;
        width: auto !important;
        height: 42px !important;
        padding: 0 8px !important;
        border-radius: 999px !important;
        font-size: 12px !important;
        line-height: 1 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        justify-content: center !important;
    }

    body:not(:has([data-sp-chat-page])) .sp-hero-actions .sp-btn svg,
    body:not(:has([data-sp-chat-page])) .sp-hero .sp-actions .sp-btn svg,
    body:not(:has([data-sp-chat-page])) .sp-hero-buttons .sp-btn svg,
    body:not(:has([data-sp-chat-page])) .sp-hero a.sp-btn svg {
        width: 14px !important;
        height: 14px !important;
        flex: 0 0 14px !important;
    }

    body:not(:has([data-sp-chat-page])) .sp-bottom-nav,
    body:not(:has([data-sp-chat-page])) .sp-mobile-bottom {
        position: fixed !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        width: calc(100vw - 32px) !important;
        max-width: 430px !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 420px) {
    body:not(:has([data-sp-chat-page])) .sp-hero-actions,
    body:not(:has([data-sp-chat-page])) .sp-hero .sp-actions,
    body:not(:has([data-sp-chat-page])) .sp-hero-buttons {
        gap: 7px !important;
    }

    body:not(:has([data-sp-chat-page])) .sp-hero-actions .sp-btn,
    body:not(:has([data-sp-chat-page])) .sp-hero .sp-actions .sp-btn,
    body:not(:has([data-sp-chat-page])) .sp-hero-buttons .sp-btn,
    body:not(:has([data-sp-chat-page])) .sp-hero a.sp-btn {
        height: 40px !important;
        padding: 0 6px !important;
        font-size: 11px !important;
    }
}

/* SPHERE_LOGO_FIRST_PAINT_STABLE_FINAL */
.sp-logo {
    flex: 0 0 auto;
}

.sp-logo-img {
    display: block !important;
    flex: 0 0 54px !important;
    width: 54px !important;
    height: 54px !important;
    min-width: 54px !important;
    min-height: 54px !important;
    max-width: 54px !important;
    max-height: 54px !important;
    aspect-ratio: 1 / 1 !important;
    background: transparent !important;
    border: 0 !important;
    outline: 0 !important;
}

/* SPHERE_HEADER_HAMBURGER_FLASH_FIX_FINAL
   The hamburger exists before the logo in the DOM.
   Hide it by default so its spans never flash as lines on desktop/first paint.
*/
.sp-mobile-hamburger {
    display: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    border: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

.sp-mobile-hamburger span {
    display: none !important;
}

@media (max-width: 820px) {
    .sp-mobile-hamburger {
        width: 44px !important;
        height: 42px !important;
        min-width: 44px !important;
        border-radius: 14px !important;
        display: inline-flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 5px !important;
        border: 1px solid rgba(217,154,33,.35) !important;
        background: rgba(217,154,33,.10) !important;
        color: #ffd37d !important;
    }

    .sp-mobile-hamburger span {
        display: block !important;
        width: 18px !important;
        height: 2px !important;
        border-radius: 999px !important;
        background: currentColor !important;
    }
}

/* SPHERE_MENU_LOGOUT_BUTTON_FINAL */
.sp-menu-logout-form {
    margin: 0 !important;
    padding: 0 !important;
}

.sp-menu-logout-form button {
    width: 100% !important;
    min-height: 44px !important;
    border: 0 !important;
    cursor: pointer !important;
    font: inherit !important;
    text-align: left !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    color: inherit !important;
    background: transparent !important;
}

.sp-menu .sp-menu-logout-form button {
    padding: 12px 14px !important;
    border-radius: 18px !important;
    color: #5b4a25 !important;
    font-size: 14px !important;
    font-weight: 850 !important;
}

.sp-menu .sp-menu-logout-form button:hover {
    color: #191004 !important;
    background: rgba(217,154,33,.14) !important;
}

.sp-mobile-drawer-nav .sp-menu-logout-form button {
    padding: 12px 14px !important;
    border-radius: 18px !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 850 !important;
}

.sp-mobile-drawer-nav .sp-menu-logout-form button:hover {
    background: rgba(217,154,33,.16) !important;
}

.sp-menu-logout-form .sp-i {
    width: 18px !important;
    height: 18px !important;
    color: #d99a21 !important;
    flex: 0 0 18px !important;
}

/* HOME HERO FILAMENT BANNERS - search removed from hero */
.sp-hero .sp-hero-search{
  display:none!important;
}

.sp-hero-dots{
  position:relative;
  z-index:3;
  display:flex;
  align-items:center;
  gap:7px;
  margin-top:18px;
}

.sp-hero-dots span{
  width:8px;
  height:8px;
  border-radius:999px;
  background:rgba(255,255,255,.42);
  border:1px solid rgba(255,211,109,.45);
  box-shadow:0 4px 10px rgba(0,0,0,.22);
}

.sp-hero-dots span.is-active{
  width:28px;
  background:linear-gradient(90deg,var(--sp-gold),var(--sp-gold-2));
}

@media(max-width:720px){
  .sp-hero-dots{
    justify-content:center;
    margin-top:14px;
  }
}

/* HOME HERO FILAMENT CAROUSEL - ONE SLIDE VISIBLE */
.sp-hero.sp-hero-filament{
  position:relative!important;
  overflow:hidden!important;
  min-height:560px;
}

.sp-hero.sp-hero-filament .sp-hero-bg-stack{
  position:absolute!important;
  inset:0!important;
  z-index:0!important;
  overflow:hidden!important;
}

.sp-hero.sp-hero-filament .sp-hero-bg-slide{
  position:absolute!important;
  inset:0!important;
  opacity:0!important;
  visibility:hidden!important;
  pointer-events:none!important;
  background-size:cover!important;
  background-position:center!important;
  transition:opacity .75s ease, visibility .75s ease!important;
}

.sp-hero.sp-hero-filament .sp-hero-bg-slide.is-active{
  opacity:1!important;
  visibility:visible!important;
}

.sp-hero.sp-hero-filament .sp-hero-copy-stack{
  position:relative!important;
  z-index:3!important;
  min-height:440px;
}

.sp-hero.sp-hero-filament .sp-hero-copy-slide{
  position:absolute!important;
  inset:0!important;
  opacity:0!important;
  visibility:hidden!important;
  pointer-events:none!important;
  transition:opacity .55s ease, visibility .55s ease!important;
}

.sp-hero.sp-hero-filament .sp-hero-copy-slide.is-active{
  position:relative!important;
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
}

.sp-hero.sp-hero-filament .sp-hero-inner{
  position:relative!important;
  z-index:4!important;
  max-width:760px!important;
  min-height:440px!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  padding-bottom:92px!important;
}

.sp-hero.sp-hero-filament h1{
  max-width:12ch!important;
  margin-bottom:18px!important;
}

.sp-hero.sp-hero-filament p{
  max-width:58ch!important;
  margin-bottom:24px!important;
}

.sp-hero.sp-hero-filament .sp-hero-search{
  display:none!important;
}

.sp-hero.sp-hero-filament .sp-hero-dots{
  position:absolute!important;
  left:42px!important;
  bottom:82px!important;
  z-index:8!important;
  display:flex!important;
  align-items:center!important;
  gap:9px!important;
}

.sp-hero.sp-hero-filament .sp-hero-dots button{
  width:10px!important;
  height:10px!important;
  padding:0!important;
  border-radius:999px!important;
  border:1px solid rgba(255,211,109,.5)!important;
  background:rgba(255,255,255,.34)!important;
  cursor:pointer!important;
  transition:width .2s ease, background .2s ease, transform .2s ease!important;
}

.sp-hero.sp-hero-filament .sp-hero-dots button.is-active{
  width:30px!important;
  background:linear-gradient(90deg,var(--sp-gold),var(--sp-gold-2))!important;
  transform:scale(1.05)!important;
}

.sp-hero.sp-hero-filament .sp-hero-stats{
  position:absolute!important;
  left:0!important;
  right:0!important;
  bottom:0!important;
  z-index:6!important;
  display:grid!important;
  grid-template-columns:repeat(4,1fr)!important;
  border-top:1px solid rgba(255,255,255,.12)!important;
  background:rgba(3,10,20,.72)!important;
  backdrop-filter:blur(10px)!important;
}

.sp-hero.sp-hero-filament .sp-hero-stats > div{
  padding:22px 24px!important;
  border-right:1px solid rgba(255,255,255,.10)!important;
}

.sp-hero.sp-hero-filament .sp-hero-stats > div:last-child{
  border-right:0!important;
}

.sp-hero.sp-hero-filament .sp-hero-stats strong{
  display:block!important;
  color:#fff!important;
  font-size:30px!important;
  line-height:1!important;
  font-weight:1000!important;
}

.sp-hero.sp-hero-filament .sp-hero-stats span{
  display:block!important;
  margin-top:7px!important;
  color:rgba(255,255,255,.86)!important;
  font-size:12px!important;
  font-weight:900!important;
}

@media(max-width:720px){
  .sp-hero.sp-hero-filament{
    min-height:620px;
  }

  .sp-hero.sp-hero-filament .sp-hero-inner{
    min-height:500px!important;
    padding-bottom:150px!important;
  }

  .sp-hero.sp-hero-filament h1{
    max-width:11ch!important;
  }

  .sp-hero.sp-hero-filament .sp-hero-actions{
    flex-direction:column!important;
    align-items:stretch!important;
  }

  .sp-hero.sp-hero-filament .sp-hero-dots{
    left:22px!important;
    bottom:138px!important;
  }

  .sp-hero.sp-hero-filament .sp-hero-stats{
    grid-template-columns:repeat(2,1fr)!important;
  }

  .sp-hero.sp-hero-filament .sp-hero-stats > div{
    padding:15px 16px!important;
  }
}

/* HOME HERO GOLD TITLE SUFFIX */
.sp-hero.sp-hero-filament h1 span{
  display:block!important;
  color:var(--sp-gold-2)!important;
  background:linear-gradient(90deg,var(--sp-gold),var(--sp-gold-2))!important;
  -webkit-background-clip:text!important;
  background-clip:text!important;
  -webkit-text-fill-color:transparent!important;
  text-shadow:none!important;
}

.sp-hero.sp-hero-filament h1{
  color:#fff!important;
}

/* REAL HOME HERO FILAMENT - TEXT PER SLIDE */
.sp-hero.sp-hero-filament{
  position:relative!important;
  overflow:hidden!important;
  min-height:560px!important;
}

.sp-hero.sp-hero-filament .sp-hero-bg-stack{
  position:absolute!important;
  inset:0!important;
  z-index:0!important;
}

.sp-hero.sp-hero-filament .sp-hero-bg-slide{
  position:absolute!important;
  inset:0!important;
  opacity:0!important;
  visibility:hidden!important;
  pointer-events:none!important;
  background-size:cover!important;
  background-position:center!important;
  transition:opacity .75s ease, visibility .75s ease!important;
}

.sp-hero.sp-hero-filament .sp-hero-bg-slide.is-active{
  opacity:1!important;
  visibility:visible!important;
}

.sp-hero.sp-hero-filament .sp-hero-copy-stack{
  position:relative!important;
  z-index:4!important;
  min-height:440px!important;
}

.sp-hero.sp-hero-filament .sp-hero-copy-slide{
  position:absolute!important;
  inset:0!important;
  opacity:0!important;
  visibility:hidden!important;
  pointer-events:none!important;
  transition:opacity .55s ease, visibility .55s ease!important;
}

.sp-hero.sp-hero-filament .sp-hero-copy-slide.is-active{
  position:relative!important;
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
}

.sp-hero.sp-hero-filament .sp-hero-inner{
  position:relative!important;
  z-index:5!important;
  min-height:440px!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  max-width:780px!important;
  padding-bottom:90px!important;
}

.sp-hero.sp-hero-filament h1{
  color:#fff!important;
  max-width:12ch!important;
}

.sp-hero.sp-hero-filament h1 span{
  display:block!important;
  color:var(--sp-gold-2)!important;
  background:linear-gradient(90deg,var(--sp-gold),var(--sp-gold-2))!important;
  -webkit-background-clip:text!important;
  background-clip:text!important;
  -webkit-text-fill-color:transparent!important;
  text-shadow:none!important;
}

.sp-hero.sp-hero-filament .sp-hero-dots{
  position:absolute!important;
  left:42px!important;
  bottom:92px!important;
  z-index:10!important;
  display:flex!important;
  gap:9px!important;
}

.sp-hero.sp-hero-filament .sp-hero-dots button{
  width:10px!important;
  height:10px!important;
  padding:0!important;
  border-radius:999px!important;
  border:1px solid rgba(255,211,109,.55)!important;
  background:rgba(255,255,255,.35)!important;
  cursor:pointer!important;
}

.sp-hero.sp-hero-filament .sp-hero-dots button.is-active{
  width:30px!important;
  background:linear-gradient(90deg,var(--sp-gold),var(--sp-gold-2))!important;
}

.sp-hero.sp-hero-filament .sp-hero-search{
  display:none!important;
}

@media(max-width:720px){
  .sp-hero.sp-hero-filament{
    min-height:620px!important;
  }

  .sp-hero.sp-hero-filament .sp-hero-inner{
    min-height:500px!important;
    padding-bottom:140px!important;
  }

  .sp-hero.sp-hero-filament .sp-hero-dots{
    left:22px!important;
    bottom:132px!important;
  }
}

/* FINAL HOME HERO UX FIX - desktop dots, kicker alignment, mobile buttons */
.sp-hero.sp-hero-filament .sp-kicker{
  display:inline-flex!important;
  width:fit-content!important;
  max-width:max-content!important;
  align-self:flex-start!important;
  justify-content:flex-start!important;
  white-space:nowrap!important;
  padding-inline:16px!important;
  margin-left:0!important;
  margin-right:auto!important;
}

.sp-hero.sp-hero-filament .sp-hero-dots{
  left:auto!important;
  right:42px!important;
  bottom:96px!important;
  transform:none!important;
  z-index:20!important;
  width:auto!important;
  max-width:none!important;
  justify-content:flex-end!important;
  pointer-events:auto!important;
}

.sp-hero.sp-hero-filament .sp-hero-dots button,
.sp-hero.sp-hero-filament .sp-hero-dots span{
  display:block!important;
  min-width:0!important;
  min-height:0!important;
  width:10px!important;
  height:10px!important;
  padding:0!important;
  margin:0!important;
  border-radius:999px!important;
  flex:0 0 auto!important;
}

.sp-hero.sp-hero-filament .sp-hero-dots button.is-active,
.sp-hero.sp-hero-filament .sp-hero-dots span.is-active{
  width:32px!important;
}

.sp-hero.sp-hero-filament .sp-hero-actions{
  position:relative!important;
  z-index:12!important;
}

@media(max-width:720px){
  .sp-hero.sp-hero-filament .sp-kicker{
    font-size:10.5px!important;
    min-height:28px!important;
    padding:0 12px!important;
    max-width:100%!important;
    white-space:normal!important;
    line-height:1.15!important;
  }

  .sp-hero.sp-hero-filament .sp-hero-actions{
    gap:8px!important;
    align-items:stretch!important;
  }

  .sp-hero.sp-hero-filament .sp-hero-actions .sp-btn{
    min-height:42px!important;
    height:42px!important;
    padding:0 14px!important;
    border-radius:18px!important;
    font-size:12px!important;
    line-height:1!important;
    width:100%!important;
    max-width:100%!important;
    justify-content:center!important;
  }

  .sp-hero.sp-hero-filament .sp-hero-actions .sp-btn .sp-i,
  .sp-hero.sp-hero-filament .sp-hero-actions .sp-btn svg{
    width:14px!important;
    height:14px!important;
    min-width:14px!important;
  }

  .sp-hero.sp-hero-filament .sp-hero-dots{
    left:auto!important;
    right:22px!important;
    bottom:116px!important;
    justify-content:flex-end!important;
    gap:7px!important;
  }

  .sp-hero.sp-hero-filament .sp-hero-dots button,
  .sp-hero.sp-hero-filament .sp-hero-dots span{
    width:8px!important;
    height:8px!important;
  }

  .sp-hero.sp-hero-filament .sp-hero-dots button.is-active,
  .sp-hero.sp-hero-filament .sp-hero-dots span.is-active{
    width:24px!important;
  }
}

@media(min-width:721px){
  .sp-hero.sp-hero-filament .sp-hero-actions{
    padding-right:150px!important;
  }
}

/* FINAL HERO BUTTONS - COMPACT DESKTOP + MOBILE */
.sp-hero.sp-hero-filament .sp-hero-actions{
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:12px!important;
  max-width:560px!important;
  padding-right:0!important;
}

.sp-hero.sp-hero-filament .sp-hero-actions .sp-btn{
  flex:0 0 auto!important;
  width:auto!important;
  min-width:154px!important;
  max-width:none!important;
  min-height:48px!important;
  height:48px!important;
  padding:0 22px!important;
  border-radius:16px!important;
  font-size:13px!important;
  line-height:1!important;
  white-space:nowrap!important;
}

.sp-hero.sp-hero-filament .sp-hero-actions .sp-btn .sp-i,
.sp-hero.sp-hero-filament .sp-hero-actions .sp-btn svg{
  width:15px!important;
  height:15px!important;
  min-width:15px!important;
}

@media(max-width:720px){
  .sp-hero.sp-hero-filament .sp-hero-actions{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:8px!important;
    max-width:100%!important;
    width:100%!important;
    padding-right:0!important;
    margin-top:14px!important;
  }

  .sp-hero.sp-hero-filament .sp-hero-actions .sp-btn{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    min-height:40px!important;
    height:40px!important;
    padding:0 10px!important;
    border-radius:14px!important;
    font-size:11.5px!important;
    justify-content:center!important;
    gap:7px!important;
  }

  .sp-hero.sp-hero-filament .sp-hero-actions .sp-btn .sp-i,
  .sp-hero.sp-hero-filament .sp-hero-actions .sp-btn svg{
    width:13px!important;
    height:13px!important;
    min-width:13px!important;
  }
}

@media(max-width:420px){
  .sp-hero.sp-hero-filament .sp-hero-actions{
    grid-template-columns:1fr 1fr!important;
    gap:7px!important;
  }

  .sp-hero.sp-hero-filament .sp-hero-actions .sp-btn{
    min-height:38px!important;
    height:38px!important;
    padding:0 8px!important;
    font-size:10.8px!important;
    border-radius:13px!important;
  }
}

/* SPHERE_FEED_LINKEDIN_VISUAL_PHASE1_START
   /sphere/feed LinkedIn-style layout.
   Scoped to .ccfeed-* only.
*/

html body.sphere-app-body .ccfeed-wrap {
    max-width: 1120px !important;
    margin: 0 auto !important;
    padding: 34px 18px 64px !important;
}

html body.sphere-app-body .ccfeed-hero,
html body.sphere-app-body .ccfeed-composer,
html body.sphere-app-body .ccfeed-post,
html body.sphere-app-body .ccfeed-empty {
    border-radius: 18px !important;
    border: 1px solid rgba(15,23,42,.12) !important;
    background: rgba(255,255,255,.94) !important;
    box-shadow: 0 14px 34px rgba(15,23,42,.08) !important;
    overflow: hidden !important;
}

html.dark body.sphere-app-body .ccfeed-hero,
html.dark body.sphere-app-body .ccfeed-composer,
html.dark body.sphere-app-body .ccfeed-post,
html.dark body.sphere-app-body .ccfeed-empty,
html[data-theme="dark"] body.sphere-app-body .ccfeed-hero,
html[data-theme="dark"] body.sphere-app-body .ccfeed-composer,
html[data-theme="dark"] body.sphere-app-body .ccfeed-post,
html[data-theme="dark"] body.sphere-app-body .ccfeed-empty,
body.dark.sphere-app-body .ccfeed-hero,
body.dark.sphere-app-body .ccfeed-composer,
body.dark.sphere-app-body .ccfeed-post,
body.dark.sphere-app-body .ccfeed-empty,
body[data-theme="dark"].sphere-app-body .ccfeed-hero,
body[data-theme="dark"].sphere-app-body .ccfeed-composer,
body[data-theme="dark"].sphere-app-body .ccfeed-post,
body[data-theme="dark"].sphere-app-body .ccfeed-empty {
    border-color: rgba(245,183,59,.20) !important;
    background:
        radial-gradient(circle at 95% 0%, rgba(245,183,59,.07), transparent 28%),
        linear-gradient(180deg, rgba(13,28,47,.98), rgba(7,19,33,.98)) !important;
    box-shadow: 0 18px 44px rgba(0,0,0,.24) !important;
}

html body.sphere-app-body .ccfeed-hero {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 20px !important;
    padding: 20px 22px !important;
    margin-bottom: 16px !important;
}

html body.sphere-app-body .ccfeed-kicker {
    display: block !important;
    margin-bottom: 6px !important;
    color: #d99a21 !important;
    -webkit-text-fill-color: #d99a21 !important;
    font-size: 11px !important;
    font-weight: 1000 !important;
    letter-spacing: .12em !important;
    text-transform: uppercase !important;
}

html body.sphere-app-body .ccfeed-hero h1 {
    margin: 0 !important;
    color: #071321 !important;
    -webkit-text-fill-color: #071321 !important;
    font-size: clamp(28px, 2.35vw, 38px) !important;
    line-height: 1.05 !important;
    font-weight: 1000 !important;
    letter-spacing: -.045em !important;
}

html.dark body.sphere-app-body .ccfeed-hero h1,
html[data-theme="dark"] body.sphere-app-body .ccfeed-hero h1,
body.dark.sphere-app-body .ccfeed-hero h1,
body[data-theme="dark"].sphere-app-body .ccfeed-hero h1 {
    color: #fff4dc !important;
    -webkit-text-fill-color: #fff4dc !important;
}

html body.sphere-app-body .ccfeed-hero p {
    margin: 8px 0 0 !important;
    color: #526173 !important;
    -webkit-text-fill-color: #526173 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    font-weight: 700 !important;
}

html.dark body.sphere-app-body .ccfeed-hero p,
html[data-theme="dark"] body.sphere-app-body .ccfeed-hero p,
body.dark.sphere-app-body .ccfeed-hero p,
body[data-theme="dark"].sphere-app-body .ccfeed-hero p {
    color: #d8c7a6 !important;
    -webkit-text-fill-color: #d8c7a6 !important;
}

html body.sphere-app-body .ccfeed-actions {
    display: flex !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
}

html body.sphere-app-body .ccfeed-actions a,
html body.sphere-app-body .ccfeed-composer-footer button,
html body.sphere-app-body .ccfeed-comment-form button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 40px !important;
    padding: 10px 16px !important;
    border-radius: 999px !important;
    border: 0 !important;
    background: linear-gradient(135deg, #ffe29a, #f5b73b 55%, #c98318) !important;
    color: #071321 !important;
    -webkit-text-fill-color: #071321 !important;
    font-size: 13px !important;
    font-weight: 1000 !important;
    text-decoration: none !important;
    box-shadow: 0 12px 24px rgba(183,121,31,.20) !important;
}

html body.sphere-app-body .ccfeed-grid {
    max-width: 720px !important;
    margin: 0 auto !important;
    display: grid !important;
    gap: 14px !important;
}

html body.sphere-app-body .ccfeed-composer {
    max-width: 720px !important;
    margin: 0 auto 14px !important;
    padding: 16px !important;
    display: grid !important;
    grid-template-columns: 52px minmax(0, 1fr) !important;
    gap: 12px !important;
}

html body.sphere-app-body .ccfeed-composer textarea {
    width: 100% !important;
    min-height: 92px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(15,23,42,.12) !important;
    background: rgba(248,250,252,.96) !important;
    color: #071321 !important;
    -webkit-text-fill-color: #071321 !important;
    padding: 13px 14px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    resize: vertical !important;
}

html.dark body.sphere-app-body .ccfeed-composer textarea,
html[data-theme="dark"] body.sphere-app-body .ccfeed-composer textarea,
body.dark.sphere-app-body .ccfeed-composer textarea,
body[data-theme="dark"].sphere-app-body .ccfeed-composer textarea {
    border-color: rgba(245,183,59,.18) !important;
    background: rgba(4,11,23,.42) !important;
    color: #fff4dc !important;
    -webkit-text-fill-color: #fff4dc !important;
}

html body.sphere-app-body .ccfeed-upload,
html body.sphere-app-body .ccfeed-composer-footer {
    margin-top: 10px !important;
}

html body.sphere-app-body .ccfeed-composer-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    color: #64748b !important;
    font-size: 12px !important;
    font-weight: 800 !important;
}

html body.sphere-app-body .ccfeed-post {
    padding: 0 !important;
}

html body.sphere-app-body .ccfeed-post-head {
    display: grid !important;
    grid-template-columns: 54px minmax(0, 1fr) !important;
    gap: 12px !important;
    align-items: center !important;
    padding: 16px 18px 10px !important;
}

html body.sphere-app-body .ccfeed-avatar {
    width: 50px !important;
    height: 50px !important;
    border-radius: 999px !important;
    overflow: hidden !important;
    border: 2px solid rgba(217,154,33,.62) !important;
    background: #071321 !important;
    box-shadow: 0 8px 18px rgba(15,23,42,.12) !important;
}

html body.sphere-app-body .ccfeed-avatar img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

html body.sphere-app-body .ccfeed-name {
    color: #071321 !important;
    -webkit-text-fill-color: #071321 !important;
    font-size: 14px !important;
    font-weight: 1000 !important;
    text-decoration: none !important;
}

html.dark body.sphere-app-body .ccfeed-name,
html[data-theme="dark"] body.sphere-app-body .ccfeed-name,
body.dark.sphere-app-body .ccfeed-name,
body[data-theme="dark"].sphere-app-body .ccfeed-name {
    color: #fff4dc !important;
    -webkit-text-fill-color: #fff4dc !important;
}

html body.sphere-app-body .ccfeed-post-head small,
html body.sphere-app-body .ccfeed-post-head span {
    color: #657186 !important;
    -webkit-text-fill-color: #657186 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}

html.dark body.sphere-app-body .ccfeed-post-head small,
html.dark body.sphere-app-body .ccfeed-post-head span,
html[data-theme="dark"] body.sphere-app-body .ccfeed-post-head small,
html[data-theme="dark"] body.sphere-app-body .ccfeed-post-head span,
body.dark.sphere-app-body .ccfeed-post-head small,
body.dark.sphere-app-body .ccfeed-post-head span,
body[data-theme="dark"].sphere-app-body .ccfeed-post-head small,
body[data-theme="dark"].sphere-app-body .ccfeed-post-head span {
    color: #d8c7a6 !important;
    -webkit-text-fill-color: #d8c7a6 !important;
}

html body.sphere-app-body .ccfeed-body {
    padding: 4px 18px 14px !important;
    color: #1f2937 !important;
    -webkit-text-fill-color: #1f2937 !important;
    background: transparent !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
    font-weight: 700 !important;
}

html.dark body.sphere-app-body .ccfeed-body,
html[data-theme="dark"] body.sphere-app-body .ccfeed-body,
body.dark.sphere-app-body .ccfeed-body,
body[data-theme="dark"].sphere-app-body .ccfeed-body {
    color: #fff0cf !important;
    -webkit-text-fill-color: #fff0cf !important;
}

html body.sphere-app-body .ccfeed-media,
html body.sphere-app-body .ccfeed-media-grid {
    margin: 0 !important;
    border-top: 1px solid rgba(15,23,42,.08) !important;
    border-bottom: 1px solid rgba(15,23,42,.08) !important;
    background: #fff !important;
}

html body.sphere-app-body .ccfeed-media img,
html body.sphere-app-body .ccfeed-media-grid img,
html body.sphere-app-body .ccfeed-post img {
    max-width: 100% !important;
}

html body.sphere-app-body .ccfeed-media img,
html body.sphere-app-body .ccfeed-media-grid img {
    display: block !important;
    width: 100% !important;
    max-height: 520px !important;
    object-fit: contain !important;
    background: #fff !important;
}

html body.sphere-app-body .ccfeed-stats,
html body.sphere-app-body .ccfeed-post-stats {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 10px 18px !important;
    border-bottom: 1px solid rgba(15,23,42,.10) !important;
    color: #526173 !important;
    -webkit-text-fill-color: #526173 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}

html.dark body.sphere-app-body .ccfeed-stats,
html.dark body.sphere-app-body .ccfeed-post-stats,
html[data-theme="dark"] body.sphere-app-body .ccfeed-stats,
html[data-theme="dark"] body.sphere-app-body .ccfeed-post-stats,
body.dark.sphere-app-body .ccfeed-stats,
body.dark.sphere-app-body .ccfeed-post-stats,
body[data-theme="dark"].sphere-app-body .ccfeed-stats,
body[data-theme="dark"].sphere-app-body .ccfeed-post-stats {
    border-bottom-color: rgba(245,183,59,.14) !important;
    color: #d8c7a6 !important;
    -webkit-text-fill-color: #d8c7a6 !important;
}

html body.sphere-app-body .ccfeed-reactions,
html body.sphere-app-body .ccfeed-post-actions {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0 !important;
    padding: 4px 8px 8px !important;
}

html body.sphere-app-body .ccfeed-reactions form,
html body.sphere-app-body .ccfeed-post-actions form {
    margin: 0 !important;
}

html body.sphere-app-body .ccfeed-reactions button,
html body.sphere-app-body .ccfeed-post-actions button,
html body.sphere-app-body .ccfeed-post-actions a,
html body.sphere-app-body .ccfeed-report {
    width: 100% !important;
    min-height: 42px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #526173 !important;
    -webkit-text-fill-color: #526173 !important;
    font-size: 13px !important;
    font-weight: 1000 !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

html body.sphere-app-body .ccfeed-reactions button:hover,
html body.sphere-app-body .ccfeed-reactions button.is-active,
html body.sphere-app-body .ccfeed-post-actions button:hover,
html body.sphere-app-body .ccfeed-post-actions a:hover,
html body.sphere-app-body .ccfeed-report:hover {
    background: rgba(245,183,59,.12) !important;
    color: #071321 !important;
    -webkit-text-fill-color: #071321 !important;
}

html.dark body.sphere-app-body .ccfeed-reactions button,
html.dark body.sphere-app-body .ccfeed-post-actions button,
html.dark body.sphere-app-body .ccfeed-post-actions a,
html.dark body.sphere-app-body .ccfeed-report,
html[data-theme="dark"] body.sphere-app-body .ccfeed-reactions button,
html[data-theme="dark"] body.sphere-app-body .ccfeed-post-actions button,
html[data-theme="dark"] body.sphere-app-body .ccfeed-post-actions a,
html[data-theme="dark"] body.sphere-app-body .ccfeed-report,
body.dark.sphere-app-body .ccfeed-reactions button,
body.dark.sphere-app-body .ccfeed-post-actions button,
body.dark.sphere-app-body .ccfeed-post-actions a,
body.dark.sphere-app-body .ccfeed-report,
body[data-theme="dark"].sphere-app-body .ccfeed-reactions button,
body[data-theme="dark"].sphere-app-body .ccfeed-post-actions button,
body[data-theme="dark"].sphere-app-body .ccfeed-post-actions a,
body[data-theme="dark"].sphere-app-body .ccfeed-report {
    color: #d8c7a6 !important;
    -webkit-text-fill-color: #d8c7a6 !important;
}

html.dark body.sphere-app-body .ccfeed-reactions button:hover,
html.dark body.sphere-app-body .ccfeed-reactions button.is-active,
html.dark body.sphere-app-body .ccfeed-post-actions button:hover,
html.dark body.sphere-app-body .ccfeed-post-actions a:hover,
html.dark body.sphere-app-body .ccfeed-report:hover,
html[data-theme="dark"] body.sphere-app-body .ccfeed-reactions button:hover,
html[data-theme="dark"] body.sphere-app-body .ccfeed-reactions button.is-active,
html[data-theme="dark"] body.sphere-app-body .ccfeed-post-actions button:hover,
html[data-theme="dark"] body.sphere-app-body .ccfeed-post-actions a:hover,
html[data-theme="dark"] body.sphere-app-body .ccfeed-report:hover {
    background: rgba(245,183,59,.12) !important;
    color: #f5b73b !important;
    -webkit-text-fill-color: #f5b73b !important;
}

html body.sphere-app-body .ccfeed-comments {
    padding: 0 18px 16px !important;
}

html body.sphere-app-body .ccfeed-comment {
    padding: 10px 0 !important;
    border-top: 1px solid rgba(15,23,42,.08) !important;
}

html body.sphere-app-body .ccfeed-comment-form {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 10px !important;
    margin-top: 10px !important;
}

html body.sphere-app-body .ccfeed-comment-form input {
    min-height: 40px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(15,23,42,.12) !important;
    padding: 0 14px !important;
    background: rgba(248,250,252,.96) !important;
    color: #071321 !important;
    -webkit-text-fill-color: #071321 !important;
    font-weight: 700 !important;
}

html.dark body.sphere-app-body .ccfeed-comment-form input,
html[data-theme="dark"] body.sphere-app-body .ccfeed-comment-form input,
body.dark.sphere-app-body .ccfeed-comment-form input,
body[data-theme="dark"].sphere-app-body .ccfeed-comment-form input {
    border-color: rgba(245,183,59,.18) !important;
    background: rgba(4,11,23,.42) !important;
    color: #fff4dc !important;
    -webkit-text-fill-color: #fff4dc !important;
}

@media (max-width: 720px) {
    html body.sphere-app-body .ccfeed-wrap {
        padding: 18px 12px 84px !important;
    }

    html body.sphere-app-body .ccfeed-hero {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    html body.sphere-app-body .ccfeed-actions {
        justify-content: flex-start !important;
    }

    html body.sphere-app-body .ccfeed-composer {
        grid-template-columns: 44px minmax(0, 1fr) !important;
        padding: 14px !important;
    }

    html body.sphere-app-body .ccfeed-avatar {
        width: 42px !important;
        height: 42px !important;
    }

    html body.sphere-app-body .ccfeed-post-head {
        grid-template-columns: 46px minmax(0, 1fr) !important;
        padding: 14px 14px 8px !important;
    }

    html body.sphere-app-body .ccfeed-body,
    html body.sphere-app-body .ccfeed-stats,
    html body.sphere-app-body .ccfeed-post-stats,
    html body.sphere-app-body .ccfeed-comments {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    html body.sphere-app-body .ccfeed-reactions button,
    html body.sphere-app-body .ccfeed-post-actions button,
    html body.sphere-app-body .ccfeed-post-actions a,
    html body.sphere-app-body .ccfeed-report {
        font-size: 11.5px !important;
        min-height: 38px !important;
    }
}

/* SPHERE_FEED_LINKEDIN_VISUAL_PHASE1_END */

/* SPHERE_SOCIAL_FACEBOOK_REACTIONS_AJAX_V2_START
   Shared Facebook-style reactions for Home and /sphere/feed.
*/

html body.sphere-app-body .sp-social-fb-react {
    position: relative !important;
    min-width: 0 !important;
}

html body.sphere-app-body .sp-social-fb-react-trigger {
    width: 100% !important;
    min-height: 38px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: transparent !important;
    color: #526173 !important;
    -webkit-text-fill-color: #526173 !important;
    font-size: 12.5px !important;
    font-weight: 1000 !important;
    cursor: pointer !important;
}

html body.sphere-app-body .sp-social-fb-react-trigger span {
    font-size: 17px !important;
    line-height: 1 !important;
}

html body.sphere-app-body .sp-social-fb-react-trigger strong {
    font: inherit !important;
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
}

html body.sphere-app-body .sp-social-fb-react-trigger.is-reacted {
    color: #d99a21 !important;
    -webkit-text-fill-color: #d99a21 !important;
}

html body.sphere-app-body .sp-social-fb-react-trigger:hover {
    background: rgba(245,183,59,.12) !important;
}

html body.sphere-app-body .sp-social-fb-reaction-tray {
    position: absolute !important;
    left: 0 !important;
    bottom: calc(100% + 10px) !important;
    z-index: 99999 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 7px !important;
    width: max-content !important;
    max-width: calc(100vw - 36px) !important;
    padding: 8px 10px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(245,183,59,.28) !important;
    background: rgba(255,255,255,.98) !important;
    box-shadow: 0 18px 40px rgba(15,23,42,.18) !important;
    transform-origin: bottom left !important;
    animation: spReactionTrayIn .16s ease both !important;
}

html body.sphere-app-body .sp-social-fb-reaction-tray[hidden] {
    display: none !important;
}

@keyframes spReactionTrayIn {
    from {
        opacity: 0;
        transform: translateY(6px) scale(.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

html body.sphere-app-body .sp-social-fb-reaction-tray form {
    margin: 0 !important;
    padding: 0 !important;
    min-width: auto !important;
    width: auto !important;
}

html body.sphere-app-body .sp-social-fb-reaction-tray button {
    position: relative !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    display: grid !important;
    place-items: center !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
    box-shadow: none !important;
    cursor: pointer !important;
    transition: transform .16s ease, background .16s ease !important;
}

html body.sphere-app-body .sp-social-fb-reaction-tray button:hover {
    transform: translateY(-5px) scale(1.14) !important;
    background: rgba(245,183,59,.14) !important;
}

html body.sphere-app-body .sp-social-fb-reaction-tray button span {
    font-size: 26px !important;
    line-height: 1 !important;
}

html body.sphere-app-body .sp-social-fb-reaction-tray button small {
    position: absolute !important;
    left: 50% !important;
    bottom: calc(100% + 7px) !important;
    transform: translateX(-50%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    white-space: nowrap !important;
    padding: 5px 8px !important;
    border-radius: 999px !important;
    background: rgba(7,19,33,.94) !important;
    color: #fff4dc !important;
    -webkit-text-fill-color: #fff4dc !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    transition: opacity .14s ease !important;
}

html body.sphere-app-body .sp-social-fb-reaction-tray button:hover small {
    opacity: 1 !important;
}

html body.sphere-app-body .ccfeed-fb-react .sp-social-fb-reaction-tray {
    left: 0 !important;
    bottom: calc(100% + 10px) !important;
}

html body.sphere-app-body .ccfeed-post-actions {
    overflow: visible !important;
}

html body.sphere-app-body .ccfeed-post {
    overflow: visible !important;
}

html body.sphere-app-body .sp-social-toast {
    position: fixed !important;
    left: 50% !important;
    bottom: 26px !important;
    z-index: 100000 !important;
    transform: translateX(-50%) translateY(20px) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    padding: 12px 16px !important;
    border-radius: 999px !important;
    background: rgba(7,19,33,.96) !important;
    color: #fff4dc !important;
    -webkit-text-fill-color: #fff4dc !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    box-shadow: 0 18px 40px rgba(0,0,0,.28) !important;
    transition: opacity .18s ease, transform .18s ease !important;
}

html body.sphere-app-body .sp-social-toast.is-visible {
    opacity: 1 !important;
    transform: translateX(-50%) translateY(0) !important;
}

html.dark body.sphere-app-body .sp-social-fb-reaction-tray,
html[data-theme="dark"] body.sphere-app-body .sp-social-fb-reaction-tray,
body.dark.sphere-app-body .sp-social-fb-reaction-tray,
body[data-theme="dark"].sphere-app-body .sp-social-fb-reaction-tray {
    border-color: rgba(245,183,59,.26) !important;
    background: rgba(7,19,33,.98) !important;
    box-shadow: 0 18px 44px rgba(0,0,0,.40) !important;
}

html.dark body.sphere-app-body .sp-social-fb-react-trigger,
html[data-theme="dark"] body.sphere-app-body .sp-social-fb-react-trigger,
body.dark.sphere-app-body .sp-social-fb-react-trigger,
body[data-theme="dark"].sphere-app-body .sp-social-fb-react-trigger {
    color: #d8c7a6 !important;
    -webkit-text-fill-color: #d8c7a6 !important;
}

@media (max-width: 720px) {
    html body.sphere-app-body .sp-social-fb-reaction-tray {
        left: 50% !important;
        transform: translateX(-50%) !important;
        bottom: calc(100% + 8px) !important;
        overflow-x: auto !important;
    }

    html body.sphere-app-body .sp-social-fb-reaction-tray button {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
    }

    html body.sphere-app-body .sp-social-fb-reaction-tray button span {
        font-size: 23px !important;
    }
}

/* SPHERE_SOCIAL_FACEBOOK_REACTIONS_AJAX_V2_END */


/* SPHERE_SOCIAL_MOBILE_FACEBOOK_LAYOUT_V1
   Scope: C&C Sphere social cards only. Does not touch hero, header, marketplace or sticky sidebars. */

html body.sphere-app-body .ccfeed-post {
    overflow: visible;
}

html body.sphere-app-body .ccfeed-post-actions {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 12px !important;
    border-top: 1px solid rgba(31, 49, 79, .10) !important;
    border-bottom: 1px solid rgba(31, 49, 79, .08) !important;
    background: rgba(255, 255, 255, .50) !important;
}

html body.sphere-app-body .ccfeed-post-actions > *,
html body.sphere-app-body .ccfeed-post-actions form {
    min-width: 0 !important;
    width: 100% !important;
    margin: 0 !important;
}

html body.sphere-app-body .ccfeed-post-actions a,
html body.sphere-app-body .ccfeed-post-actions button,
html body.sphere-app-body .ccfeed-reactions > button,
html body.sphere-app-body .ccfeed-reactions form > button {
    width: 100% !important;
    min-height: 38px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 8px 10px !important;
    border-radius: 14px !important;
    border: 0 !important;
    background: transparent !important;
    color: #344765 !important;
    font-size: 13px !important;
    font-weight: 850 !important;
    line-height: 1.05 !important;
    text-align: center !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

html body.sphere-app-body .ccfeed-post-actions a:hover,
html body.sphere-app-body .ccfeed-post-actions button:hover,
html body.sphere-app-body .ccfeed-reactions > button:hover {
    background: rgba(212, 175, 55, .13) !important;
    color: #101827 !important;
}

/* Keep reaction tray horizontal and above the action row */
html body.sphere-app-body .ccfeed-reactions {
    position: relative !important;
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
}

html body.sphere-app-body .ccfeed-reactions .ccfeed-reaction-tray,
html body.sphere-app-body .ccfeed-reactions form:not(:first-child) {
    position: absolute !important;
    left: 0 !important;
    bottom: calc(100% + 8px) !important;
    z-index: 60 !important;
}

/* If old HTML renders reaction forms directly, make them a compact horizontal tray */
html body.sphere-app-body .ccfeed-reactions form {
    display: inline-flex !important;
}

html body.sphere-app-body .ccfeed-reactions form:not(:first-child) {
    width: auto !important;
    margin: 0 !important;
}

html body.sphere-app-body .ccfeed-reactions:hover form,
html body.sphere-app-body .ccfeed-reactions:focus-within form {
    opacity: 1 !important;
    pointer-events: auto !important;
}

html body.sphere-app-body .ccfeed-reactions form:not(:first-child) button {
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 !important;
    border-radius: 999px !important;
    background: #fffaf0 !important;
    border: 1px solid rgba(212, 175, 55, .35) !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .16) !important;
    font-size: 20px !important;
    color: #101827 !important;
}

/* Comment bar */
html body.sphere-app-body .ccfeed-comment-form {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 10px !important;
    align-items: center !important;
    padding: 12px !important;
}

html body.sphere-app-body .ccfeed-comment-form input,
html body.sphere-app-body .ccfeed-comment-form textarea {
    min-width: 0 !important;
    width: 100% !important;
    height: 42px !important;
    border-radius: 999px !important;
    padding: 0 14px !important;
}

html body.sphere-app-body .ccfeed-comment-form button {
    min-width: 86px !important;
    height: 42px !important;
    border-radius: 999px !important;
    padding: 0 16px !important;
    white-space: nowrap !important;
}

/* Dark mode */
html.dark body.sphere-app-body .ccfeed-post-actions,
html[data-theme="dark"] body.sphere-app-body .ccfeed-post-actions,
body.dark.sphere-app-body .ccfeed-post-actions,
body[data-theme="dark"].sphere-app-body .ccfeed-post-actions {
    background: rgba(8, 14, 24, .72) !important;
    border-color: rgba(212, 175, 55, .18) !important;
}

html.dark body.sphere-app-body .ccfeed-post-actions a,
html.dark body.sphere-app-body .ccfeed-post-actions button,
html.dark body.sphere-app-body .ccfeed-reactions > button,
html[data-theme="dark"] body.sphere-app-body .ccfeed-post-actions a,
html[data-theme="dark"] body.sphere-app-body .ccfeed-post-actions button,
html[data-theme="dark"] body.sphere-app-body .ccfeed-reactions > button,
body.dark.sphere-app-body .ccfeed-post-actions a,
body.dark.sphere-app-body .ccfeed-post-actions button,
body.dark.sphere-app-body .ccfeed-reactions > button,
body[data-theme="dark"].sphere-app-body .ccfeed-post-actions a,
body[data-theme="dark"].sphere-app-body .ccfeed-post-actions button,
body[data-theme="dark"].sphere-app-body .ccfeed-reactions > button {
    color: #f8efd8 !important;
}

@media (max-width: 640px) {
    html body.sphere-app-body .ccfeed-post,
    html body.sphere-app-body #sphere-feed-room .ccfeed-post {
        border-radius: 22px !important;
        overflow: visible !important;
    }

    html body.sphere-app-body .ccfeed-post-actions {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 4px !important;
        padding: 8px 8px !important;
    }

    html body.sphere-app-body .ccfeed-post-actions a,
    html body.sphere-app-body .ccfeed-post-actions button,
    html body.sphere-app-body .ccfeed-reactions > button {
        min-height: 42px !important;
        padding: 6px 4px !important;
        border-radius: 13px !important;
        font-size: 11px !important;
        line-height: 1.1 !important;
        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
    }

    /* Hide secondary actions from the main mobile row for a cleaner Facebook-like layout */
    html body.sphere-app-body .ccfeed-post-actions form[action*="report"],
    html body.sphere-app-body .ccfeed-post-actions a[href*="profile"],
    html body.sphere-app-body .ccfeed-post-actions a[href*="profiles"] {
        display: none !important;
    }

    html body.sphere-app-body .ccfeed-reactions form:not(:first-child) {
        bottom: calc(100% + 10px) !important;
        left: 0 !important;
    }

    html body.sphere-app-body .ccfeed-comment-form {
        padding: 10px 10px 14px !important;
        grid-template-columns: minmax(0, 1fr) 74px !important;
        gap: 8px !important;
    }

    html body.sphere-app-body .ccfeed-comment-form input,
    html body.sphere-app-body .ccfeed-comment-form textarea {
        height: 40px !important;
        font-size: 12px !important;
    }

    html body.sphere-app-body .ccfeed-comment-form button {
        min-width: 74px !important;
        height: 40px !important;
        padding: 0 10px !important;
        font-size: 12px !important;
    }

    html body.sphere-app-body .ccfeed-post-summary,
    html body.sphere-app-body .ccfeed-stats,
    html body.sphere-app-body .ccfeed-meta {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}

@media (max-width: 420px) {
    html body.sphere-app-body .ccfeed-post-actions a,
    html body.sphere-app-body .ccfeed-post-actions button,
    html body.sphere-app-body .ccfeed-reactions > button {
        font-size: 10.5px !important;
        gap: 3px !important;
    }
}

/* SPHERE_FEED_LINKEDIN_VISUAL_PHASE1_START
   /sphere/feed LinkedIn-style layout.
   Scoped to .ccfeed-* only.
*/

html body.sphere-app-body .ccfeed-wrap {
    max-width: 1120px !important;
    margin: 0 auto !important;
    padding: 34px 18px 64px !important;
}

html body.sphere-app-body .ccfeed-hero,
html body.sphere-app-body .ccfeed-composer,
html body.sphere-app-body .ccfeed-post,
html body.sphere-app-body .ccfeed-empty {
    border-radius: 18px !important;
    border: 1px solid rgba(15,23,42,.12) !important;
    background: rgba(255,255,255,.94) !important;
    box-shadow: 0 14px 34px rgba(15,23,42,.08) !important;
    overflow: hidden !important;
}

html.dark body.sphere-app-body .ccfeed-hero,
html.dark body.sphere-app-body .ccfeed-composer,
html.dark body.sphere-app-body .ccfeed-post,
html.dark body.sphere-app-body .ccfeed-empty,
html[data-theme="dark"] body.sphere-app-body .ccfeed-hero,
html[data-theme="dark"] body.sphere-app-body .ccfeed-composer,
html[data-theme="dark"] body.sphere-app-body .ccfeed-post,
html[data-theme="dark"] body.sphere-app-body .ccfeed-empty,
body.dark.sphere-app-body .ccfeed-hero,
body.dark.sphere-app-body .ccfeed-composer,
body.dark.sphere-app-body .ccfeed-post,
body.dark.sphere-app-body .ccfeed-empty,
body[data-theme="dark"].sphere-app-body .ccfeed-hero,
body[data-theme="dark"].sphere-app-body .ccfeed-composer,
body[data-theme="dark"].sphere-app-body .ccfeed-post,
body[data-theme="dark"].sphere-app-body .ccfeed-empty {
    border-color: rgba(245,183,59,.20) !important;
    background:
        radial-gradient(circle at 95% 0%, rgba(245,183,59,.07), transparent 28%),
        linear-gradient(180deg, rgba(13,28,47,.98), rgba(7,19,33,.98)) !important;
    box-shadow: 0 18px 44px rgba(0,0,0,.24) !important;
}

html body.sphere-app-body .ccfeed-hero {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 20px !important;
    padding: 20px 22px !important;
    margin-bottom: 16px !important;
}

html body.sphere-app-body .ccfeed-kicker {
    display: block !important;
    margin-bottom: 6px !important;
    color: #d99a21 !important;
    -webkit-text-fill-color: #d99a21 !important;
    font-size: 11px !important;
    font-weight: 1000 !important;
    letter-spacing: .12em !important;
    text-transform: uppercase !important;
}

html body.sphere-app-body .ccfeed-hero h1 {
    margin: 0 !important;
    color: #071321 !important;
    -webkit-text-fill-color: #071321 !important;
    font-size: clamp(28px, 2.35vw, 38px) !important;
    line-height: 1.05 !important;
    font-weight: 1000 !important;
    letter-spacing: -.045em !important;
}

html.dark body.sphere-app-body .ccfeed-hero h1,
html[data-theme="dark"] body.sphere-app-body .ccfeed-hero h1,
body.dark.sphere-app-body .ccfeed-hero h1,
body[data-theme="dark"].sphere-app-body .ccfeed-hero h1 {
    color: #fff4dc !important;
    -webkit-text-fill-color: #fff4dc !important;
}

html body.sphere-app-body .ccfeed-hero p {
    margin: 8px 0 0 !important;
    color: #526173 !important;
    -webkit-text-fill-color: #526173 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    font-weight: 700 !important;
}

html.dark body.sphere-app-body .ccfeed-hero p,
html[data-theme="dark"] body.sphere-app-body .ccfeed-hero p,
body.dark.sphere-app-body .ccfeed-hero p,
body[data-theme="dark"].sphere-app-body .ccfeed-hero p {
    color: #d8c7a6 !important;
    -webkit-text-fill-color: #d8c7a6 !important;
}

html body.sphere-app-body .ccfeed-actions {
    display: flex !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
}

html body.sphere-app-body .ccfeed-actions a,
html body.sphere-app-body .ccfeed-composer-footer button,
html body.sphere-app-body .ccfeed-comment-form button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 40px !important;
    padding: 10px 16px !important;
    border-radius: 999px !important;
    border: 0 !important;
    background: linear-gradient(135deg, #ffe29a, #f5b73b 55%, #c98318) !important;
    color: #071321 !important;
    -webkit-text-fill-color: #071321 !important;
    font-size: 13px !important;
    font-weight: 1000 !important;
    text-decoration: none !important;
    box-shadow: 0 12px 24px rgba(183,121,31,.20) !important;
}

html body.sphere-app-body .ccfeed-grid {
    max-width: 720px !important;
    margin: 0 auto !important;
    display: grid !important;
    gap: 14px !important;
}

html body.sphere-app-body .ccfeed-composer {
    max-width: 720px !important;
    margin: 0 auto 14px !important;
    padding: 16px !important;
    display: grid !important;
    grid-template-columns: 52px minmax(0, 1fr) !important;
    gap: 12px !important;
}

html body.sphere-app-body .ccfeed-composer textarea {
    width: 100% !important;
    min-height: 92px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(15,23,42,.12) !important;
    background: rgba(248,250,252,.96) !important;
    color: #071321 !important;
    -webkit-text-fill-color: #071321 !important;
    padding: 13px 14px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    resize: vertical !important;
}

html.dark body.sphere-app-body .ccfeed-composer textarea,
html[data-theme="dark"] body.sphere-app-body .ccfeed-composer textarea,
body.dark.sphere-app-body .ccfeed-composer textarea,
body[data-theme="dark"].sphere-app-body .ccfeed-composer textarea {
    border-color: rgba(245,183,59,.18) !important;
    background: rgba(4,11,23,.42) !important;
    color: #fff4dc !important;
    -webkit-text-fill-color: #fff4dc !important;
}

html body.sphere-app-body .ccfeed-upload,
html body.sphere-app-body .ccfeed-composer-footer {
    margin-top: 10px !important;
}

html body.sphere-app-body .ccfeed-composer-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    color: #64748b !important;
    font-size: 12px !important;
    font-weight: 800 !important;
}

html body.sphere-app-body .ccfeed-post {
    padding: 0 !important;
}

html body.sphere-app-body .ccfeed-post-head {
    display: grid !important;
    grid-template-columns: 54px minmax(0, 1fr) !important;
    gap: 12px !important;
    align-items: center !important;
    padding: 16px 18px 10px !important;
}

html body.sphere-app-body .ccfeed-avatar {
    width: 50px !important;
    height: 50px !important;
    border-radius: 999px !important;
    overflow: hidden !important;
    border: 2px solid rgba(217,154,33,.62) !important;
    background: #071321 !important;
    box-shadow: 0 8px 18px rgba(15,23,42,.12) !important;
}

html body.sphere-app-body .ccfeed-avatar img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

html body.sphere-app-body .ccfeed-name {
    color: #071321 !important;
    -webkit-text-fill-color: #071321 !important;
    font-size: 14px !important;
    font-weight: 1000 !important;
    text-decoration: none !important;
}

html.dark body.sphere-app-body .ccfeed-name,
html[data-theme="dark"] body.sphere-app-body .ccfeed-name,
body.dark.sphere-app-body .ccfeed-name,
body[data-theme="dark"].sphere-app-body .ccfeed-name {
    color: #fff4dc !important;
    -webkit-text-fill-color: #fff4dc !important;
}

html body.sphere-app-body .ccfeed-post-head small,
html body.sphere-app-body .ccfeed-post-head span {
    color: #657186 !important;
    -webkit-text-fill-color: #657186 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}

html.dark body.sphere-app-body .ccfeed-post-head small,
html.dark body.sphere-app-body .ccfeed-post-head span,
html[data-theme="dark"] body.sphere-app-body .ccfeed-post-head small,
html[data-theme="dark"] body.sphere-app-body .ccfeed-post-head span,
body.dark.sphere-app-body .ccfeed-post-head small,
body.dark.sphere-app-body .ccfeed-post-head span,
body[data-theme="dark"].sphere-app-body .ccfeed-post-head small,
body[data-theme="dark"].sphere-app-body .ccfeed-post-head span {
    color: #d8c7a6 !important;
    -webkit-text-fill-color: #d8c7a6 !important;
}

html body.sphere-app-body .ccfeed-body {
    padding: 4px 18px 14px !important;
    color: #1f2937 !important;
    -webkit-text-fill-color: #1f2937 !important;
    background: transparent !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
    font-weight: 700 !important;
}

html.dark body.sphere-app-body .ccfeed-body,
html[data-theme="dark"] body.sphere-app-body .ccfeed-body,
body.dark.sphere-app-body .ccfeed-body,
body[data-theme="dark"].sphere-app-body .ccfeed-body {
    color: #fff0cf !important;
    -webkit-text-fill-color: #fff0cf !important;
}

html body.sphere-app-body .ccfeed-media,
html body.sphere-app-body .ccfeed-media-grid {
    margin: 0 !important;
    border-top: 1px solid rgba(15,23,42,.08) !important;
    border-bottom: 1px solid rgba(15,23,42,.08) !important;
    background: #fff !important;
}

html body.sphere-app-body .ccfeed-media img,
html body.sphere-app-body .ccfeed-media-grid img,
html body.sphere-app-body .ccfeed-post img {
    max-width: 100% !important;
}

html body.sphere-app-body .ccfeed-media img,
html body.sphere-app-body .ccfeed-media-grid img {
    display: block !important;
    width: 100% !important;
    max-height: 520px !important;
    object-fit: contain !important;
    background: #fff !important;
}

html body.sphere-app-body .ccfeed-stats,
html body.sphere-app-body .ccfeed-post-stats {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 10px 18px !important;
    border-bottom: 1px solid rgba(15,23,42,.10) !important;
    color: #526173 !important;
    -webkit-text-fill-color: #526173 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}

html.dark body.sphere-app-body .ccfeed-stats,
html.dark body.sphere-app-body .ccfeed-post-stats,
html[data-theme="dark"] body.sphere-app-body .ccfeed-stats,
html[data-theme="dark"] body.sphere-app-body .ccfeed-post-stats,
body.dark.sphere-app-body .ccfeed-stats,
body.dark.sphere-app-body .ccfeed-post-stats,
body[data-theme="dark"].sphere-app-body .ccfeed-stats,
body[data-theme="dark"].sphere-app-body .ccfeed-post-stats {
    border-bottom-color: rgba(245,183,59,.14) !important;
    color: #d8c7a6 !important;
    -webkit-text-fill-color: #d8c7a6 !important;
}

html body.sphere-app-body .ccfeed-reactions,
html body.sphere-app-body .ccfeed-post-actions {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0 !important;
    padding: 4px 8px 8px !important;
}

html body.sphere-app-body .ccfeed-reactions form,
html body.sphere-app-body .ccfeed-post-actions form {
    margin: 0 !important;
}

html body.sphere-app-body .ccfeed-reactions button,
html body.sphere-app-body .ccfeed-post-actions button,
html body.sphere-app-body .ccfeed-post-actions a,
html body.sphere-app-body .ccfeed-report {
    width: 100% !important;
    min-height: 42px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #526173 !important;
    -webkit-text-fill-color: #526173 !important;
    font-size: 13px !important;
    font-weight: 1000 !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

html body.sphere-app-body .ccfeed-reactions button:hover,
html body.sphere-app-body .ccfeed-reactions button.is-active,
html body.sphere-app-body .ccfeed-post-actions button:hover,
html body.sphere-app-body .ccfeed-post-actions a:hover,
html body.sphere-app-body .ccfeed-report:hover {
    background: rgba(245,183,59,.12) !important;
    color: #071321 !important;
    -webkit-text-fill-color: #071321 !important;
}

html.dark body.sphere-app-body .ccfeed-reactions button,
html.dark body.sphere-app-body .ccfeed-post-actions button,
html.dark body.sphere-app-body .ccfeed-post-actions a,
html.dark body.sphere-app-body .ccfeed-report,
html[data-theme="dark"] body.sphere-app-body .ccfeed-reactions button,
html[data-theme="dark"] body.sphere-app-body .ccfeed-post-actions button,
html[data-theme="dark"] body.sphere-app-body .ccfeed-post-actions a,
html[data-theme="dark"] body.sphere-app-body .ccfeed-report,
body.dark.sphere-app-body .ccfeed-reactions button,
body.dark.sphere-app-body .ccfeed-post-actions button,
body.dark.sphere-app-body .ccfeed-post-actions a,
body.dark.sphere-app-body .ccfeed-report,
body[data-theme="dark"].sphere-app-body .ccfeed-reactions button,
body[data-theme="dark"].sphere-app-body .ccfeed-post-actions button,
body[data-theme="dark"].sphere-app-body .ccfeed-post-actions a,
body[data-theme="dark"].sphere-app-body .ccfeed-report {
    color: #d8c7a6 !important;
    -webkit-text-fill-color: #d8c7a6 !important;
}

html.dark body.sphere-app-body .ccfeed-reactions button:hover,
html.dark body.sphere-app-body .ccfeed-reactions button.is-active,
html.dark body.sphere-app-body .ccfeed-post-actions button:hover,
html.dark body.sphere-app-body .ccfeed-post-actions a:hover,
html.dark body.sphere-app-body .ccfeed-report:hover,
html[data-theme="dark"] body.sphere-app-body .ccfeed-reactions button:hover,
html[data-theme="dark"] body.sphere-app-body .ccfeed-reactions button.is-active,
html[data-theme="dark"] body.sphere-app-body .ccfeed-post-actions button:hover,
html[data-theme="dark"] body.sphere-app-body .ccfeed-post-actions a:hover,
html[data-theme="dark"] body.sphere-app-body .ccfeed-report:hover {
    background: rgba(245,183,59,.12) !important;
    color: #f5b73b !important;
    -webkit-text-fill-color: #f5b73b !important;
}

html body.sphere-app-body .ccfeed-comments {
    padding: 0 18px 16px !important;
}

html body.sphere-app-body .ccfeed-comment {
    padding: 10px 0 !important;
    border-top: 1px solid rgba(15,23,42,.08) !important;
}

html body.sphere-app-body .ccfeed-comment-form {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 10px !important;
    margin-top: 10px !important;
}

html body.sphere-app-body .ccfeed-comment-form input {
    min-height: 40px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(15,23,42,.12) !important;
    padding: 0 14px !important;
    background: rgba(248,250,252,.96) !important;
    color: #071321 !important;
    -webkit-text-fill-color: #071321 !important;
    font-weight: 700 !important;
}

html.dark body.sphere-app-body .ccfeed-comment-form input,
html[data-theme="dark"] body.sphere-app-body .ccfeed-comment-form input,
body.dark.sphere-app-body .ccfeed-comment-form input,
body[data-theme="dark"].sphere-app-body .ccfeed-comment-form input {
    border-color: rgba(245,183,59,.18) !important;
    background: rgba(4,11,23,.42) !important;
    color: #fff4dc !important;
    -webkit-text-fill-color: #fff4dc !important;
}

@media (max-width: 720px) {
    html body.sphere-app-body .ccfeed-wrap {
        padding: 18px 12px 84px !important;
    }

    html body.sphere-app-body .ccfeed-hero {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    html body.sphere-app-body .ccfeed-actions {
        justify-content: flex-start !important;
    }

    html body.sphere-app-body .ccfeed-composer {
        grid-template-columns: 44px minmax(0, 1fr) !important;
        padding: 14px !important;
    }

    html body.sphere-app-body .ccfeed-avatar {
        width: 42px !important;
        height: 42px !important;
    }

    html body.sphere-app-body .ccfeed-post-head {
        grid-template-columns: 46px minmax(0, 1fr) !important;
        padding: 14px 14px 8px !important;
    }

    html body.sphere-app-body .ccfeed-body,
    html body.sphere-app-body .ccfeed-stats,
    html body.sphere-app-body .ccfeed-post-stats,
    html body.sphere-app-body .ccfeed-comments {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    html body.sphere-app-body .ccfeed-reactions button,
    html body.sphere-app-body .ccfeed-post-actions button,
    html body.sphere-app-body .ccfeed-post-actions a,
    html body.sphere-app-body .ccfeed-report {
        font-size: 11.5px !important;
        min-height: 38px !important;
    }
}

/* SPHERE_FEED_LINKEDIN_VISUAL_PHASE1_END */


/* SPHERE_FEED_CHAT_BESIDE_MESSAGES_V1_REMOVED */



/* SPHERE_FEED_CHAT_REAL_CLASSES_POSITION_V1_REMOVED */

