@import url('https://fonts.googleapis.com/css2?family=Londrina+Solid:wght@300;400;900&display=swap');

/* =========================================================
   SKY MOTION — PROFILE v40 (CLEAN, CONSISTENT)
   bg #121212, accent #c99a6e, subtle rim #783be2 (minimal)
   Headline: Arial (readable)
   Section titles: Londrina (lighter)
========================================================= */

#sm-profile-v40.smProfile{
  --bg:#121212;

  --text:rgba(255,255,255,.92);
  --muted:rgba(255,255,255,.64);
  --muted2:rgba(255,255,255,.46);
  --line:rgba(255,255,255,.10);

  --accent:#c99a6e;
  --rim: rgba(120,59,226,.22);
  --rimHover: rgba(120,59,226,.28);

  --surface:rgba(255,255,255,.03);
  --surface2:rgba(255,255,255,.02);
  --surfaceBorder:rgba(255,255,255,.10);

  --radius:18px;

  font-family: Arial, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color:var(--text);
  background:transparent;
  -webkit-font-smoothing:antialiased;
  text-rendering:geometricPrecision;
}

/* Global safety */
#sm-profile-v40,
#sm-profile-v40 *{ box-sizing:border-box; }

#sm-profile-v40{ overflow-x:clip; }
@supports not (overflow-x: clip){
  #sm-profile-v40{ overflow-x:hidden; }
}

#sm-profile-v40 img,
#sm-profile-v40 video,
#sm-profile-v40 svg{ max-width:100%; }

/* FLAT BACKGROUND */
#sm-profile-v40 .bg{
  position:fixed;
  inset:0;
  pointer-events:none;
  background: var(--bg);
  z-index:-1;
}

/* WRAP */
#sm-profile-v40 .wrap{
  --hdrH: clamp(72px, 10vh, 120px);
  max-width:1160px;
  margin:0 auto;
  padding: 0 34px 92px;
  padding-top: calc(var(--hdrH) + 44px) !important;
}

/* =========================
   TOP
========================= */
#sm-profile-v40 .top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:28px;
  margin-bottom:40px;
}
#sm-profile-v40 .topInner{ flex:1; min-width:0; max-width:780px; }
#sm-profile-v40 .userHead{ display:flex; align-items:flex-start; gap:14px; }

#sm-profile-v40 .avaBtn{
  width:54px; height:54px; border-radius:999px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.14);
  padding:0;
  display:grid;
  place-items:center;
  cursor:pointer;
  position:relative;
  flex:0 0 auto;
  box-shadow:0 14px 30px rgba(0,0,0,.35);
  overflow:hidden;
  margin-top:2px;
}
#sm-profile-v40 .avaBtn:focus-visible{
  outline:2px solid rgba(120,59,226,.35);
  outline-offset:2px;
}
#sm-profile-v40 .avaImg{
  width:100%;
  height:100%;
  border-radius:999px;
  object-fit:cover;
  display:block;
}
#sm-profile-v40 .avaRing{
  position:absolute;
  inset:-2px;
  border-radius:999px;
  pointer-events:none;
  box-shadow: 0 0 0 1px rgba(201,154,110,.55), 0 0 18px rgba(201,154,110,.18);
  opacity:.9;
}

#sm-profile-v40 .userText{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:10px;
}

#sm-profile-v40 .hello{
  margin:0;
  font-size:34px;
  line-height:1.08;
  font-weight:650;
  letter-spacing:-0.01em;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
#sm-profile-v40 .hello #sm-username{ font-weight:650; }

#sm-profile-v40 .sub{
  margin:0;
  color:var(--muted);
  font-size:14px;
  line-height:1.55;
  max-width:640px;
}

#sm-profile-v40 .brandRule{ display:none !important; }

#sm-profile-v40 .topCta{
  flex:0 0 auto;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:10px;
  padding-top:4px;
}

/* =========================
   BUTTONS
========================= */
#sm-profile-v40 .smBtn{
  appearance:none;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.05);
  color:var(--text);
  border-radius:14px;
  padding:10px 14px;
  font-size:13px;
  font-weight:800;
  cursor:pointer;
  transition:transform .12s ease, border-color .12s ease, background .12s ease, box-shadow .12s ease;
  user-select:none;
  white-space:nowrap;
}
#sm-profile-v40 .smBtn:hover{
  transform:translateY(-1px);
  background:rgba(255,255,255,.07);
  border-color:rgba(255,255,255,.22);
}
#sm-profile-v40 .smBtn:focus-visible{
  outline:2px solid rgba(120,59,226,.35);
  outline-offset:2px;
}

/* CTA */
#sm-profile-v40 .smBtnCta{
  min-width:220px;
  padding:12px 16px;
  border-radius:14px;
  border-color: rgba(201,154,110,.62);
  background: rgba(201,154,110,.20);
  color: rgba(255,255,255,.95);
  font-weight:850;
  display:inline-flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  box-shadow:
    0 0 0 1px var(--rim),
    0 18px 46px rgba(0,0,0,.45);
}
#sm-profile-v40 .smBtnCta:hover{
  border-color: rgba(201,154,110,.75);
  background: rgba(201,154,110,.24);
  box-shadow:
    0 0 0 1px var(--rimHover),
    0 22px 56px rgba(0,0,0,.55);
}
#sm-profile-v40 .smBtnCta .chev{
  font-size:18px;
  opacity:.9;
  transform: translateY(-1px);
}

/* How it works */
#sm-profile-v40 .howBtn{
  appearance:none;
  border:0;
  background:transparent;
  color:rgba(255,255,255,.64);
  font-size:13px;
  font-weight:800;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 2px;
}
#sm-profile-v40 .howBtn:hover{ color:rgba(255,255,255,.78); }
#sm-profile-v40 .howBtn:focus-visible{
  outline:2px solid rgba(120,59,226,.35);
  outline-offset:2px;
  border-radius:10px;
}
#sm-profile-v40 .howBtn .q{
  width:18px; height:18px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.20);
  display:grid;
  place-items:center;
  font-size:12px;
  opacity:.9;
}

/* Edit pill */
#sm-profile-v40 .smEditBtn{
  padding:9px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  color:rgba(255,255,255,.90);
  display:inline-flex;
  align-items:center;
  gap:8px;
}
#sm-profile-v40 .smEditIcon{ font-size:14px; opacity:.9; transform:translateY(-.5px); }
#sm-profile-v40 .smEditTxt{ font-weight:900; }

/* =========================
   GRID / SECTION HEADERS
========================= */
#sm-profile-v40 .grid{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:44px;
  align-items:start;
}
#sm-profile-v40 .grid,
#sm-profile-v40 .grid > *{ min-width:0; }

#sm-profile-v40 .sectionHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding-bottom:10px;
  border-bottom:1px solid var(--line);
  margin-bottom:12px;
}

#sm-profile-v40 h2{
  margin:0;
  font-size:16px;
  font-weight:700;
  color:rgba(255,255,255,.92);
  font-family:"Londrina Solid", Arial, sans-serif;
}

#sm-profile-v40 .count{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  color:var(--muted);
  white-space:nowrap;
}
#sm-profile-v40 .dot{
  width:7px; height:7px; border-radius:999px;
  background: var(--accent);
  box-shadow:0 0 0 2px rgba(201,154,110,.14);
}

#sm-profile-v40 .link{
  display:inline-block;
  margin-top:12px;
  color:rgba(201,154,110,.95);
  text-decoration:none;
  font-size:13px;
  font-weight:900;
}
#sm-profile-v40 .link:hover{ text-decoration:underline; }

/* =========================
   SAVED MOVES
========================= */
#sm-profile-v40 .list{
  display:flex;
  flex-direction:column;
  gap:10px;
}

#sm-profile-v40 .moveCard{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
}

#sm-profile-v40 .moveThumb{
  width:56px;
  height:40px;
  border-radius:12px;
  overflow:hidden;
  flex:0 0 auto;
  background: rgba(0,0,0,.35);
  border:1px solid rgba(255,255,255,.10);
  position:relative;
}
#sm-profile-v40 .moveThumb img{ width:100%; height:100%; object-fit:cover; display:block; opacity:.92; }
#sm-profile-v40 .moveThumb .playDot{
  position:absolute;
  right:7px;
  bottom:7px;
  width:10px;
  height:10px;
  border-radius:999px;
  background: rgba(201,154,110,.98);
  box-shadow: 0 0 0 3px rgba(201,154,110,.18);
}

#sm-profile-v40 .moveMain{ min-width:0; flex:1; }
#sm-profile-v40 .moveTitle{
  font-weight:850;
  font-size:14px;
  color: rgba(255,255,255,.92);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
#sm-profile-v40 .moveMeta2{
  margin-top:4px;
  font-size:12px;
  color: rgba(255,255,255,.62);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

#sm-profile-v40 .moveActions{
  display:flex;
  align-items:center;
  gap:10px;
  flex:0 0 auto;
}

#sm-profile-v40 .smIconBtn{
  width:36px;
  height:36px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  display:grid;
  place-items:center;
  cursor:pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
#sm-profile-v40 .smIconBtn:hover{
  transform: translateY(-1px);
  border-color: rgba(201,154,110,.40);
  background: rgba(201,154,110,.08);
}
#sm-profile-v40 .smDanger:hover{
  border-color: rgba(255,90,31,.50);
  background: rgba(255,90,31,.10);
}
#sm-profile-v40 .smIconBtn svg{
  width:18px;
  height:18px;
  fill: rgba(255,255,255,.88);
}

/* =========================
   SESSION HISTORY
========================= */
#sm-profile-v40 .sessionDeck{
  display:flex;
  flex-direction:column;
  gap:12px;
}
#sm-profile-v40 .sessOverlay{ display:none !important; }

#sm-profile-v40 .sessCard{
  position:relative;
  border-radius:20px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  background: var(--bg);
  box-shadow: 0 24px 80px rgba(0,0,0,.42);
  cursor:pointer;
  user-select:none;
  transition:transform .18s ease, border-color .18s ease;
}
#sm-profile-v40 .sessCard:hover{
  transform:translateY(-2px);
  border-color:rgba(255,255,255,.18);
}
#sm-profile-v40 .sessCard::before{
  content:"";
  position:absolute;
  inset:0;
  background-image: var(--cover);
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  z-index:0;
}
#sm-profile-v40 .sessCard::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background: linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,.30) 42%, rgba(0,0,0,.62) 100%);
  z-index:1;
}
#sm-profile-v40 .sessInner{ position:relative; z-index:2; padding:16px 16px 14px; }

#sm-profile-v40 .sessDelBtn{
  position:absolute;
  top:10px;
  right:10px;
  z-index:3;
  width:36px;
  height:36px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.25);
  display:grid;
  place-items:center;
  cursor:pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
#sm-profile-v40 .sessDelBtn:hover{
  transform: translateY(-1px);
  border-color: rgba(255,90,31,.55);
  background: rgba(255,90,31,.14);
}
#sm-profile-v40 .sessDelBtn svg{ width:18px; height:18px; fill: rgba(255,255,255,.88); }

#sm-profile-v40 .sessDate{
  font-size:18px;
  font-weight:900;
  letter-spacing:-0.02em;
  color:rgba(255,255,255,.94);
  line-height:1.15;
  font-family:"Londrina Solid", Arial, sans-serif;
}
#sm-profile-v40 .sessCity{
  margin-top:6px;
  font-size:13px;
  color:rgba(255,255,255,.72);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:320px;
}
#sm-profile-v40 .sessBottom{
  margin-top:12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  color:rgba(255,255,255,.66);
  font-size:12px;
}

#sm-profile-v40 .sessPill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 9px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(0,0,0,.20);
  backdrop-filter: blur(10px);
  color:rgba(255,255,255,.78);
  font-weight:900;
  font-size:11.5px;
  white-space:nowrap;
}
#sm-profile-v40 .sessPill .pDot{
  width:6px; height:6px; border-radius:999px;
  background:rgba(201,154,110,.98);
  box-shadow:0 0 0 2px rgba(201,154,110,.14);
}

#sm-profile-v40 .sessWeather{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(0,0,0,.26);
  color:rgba(255,255,255,.92);
  font-size:12px;
  font-weight:900;
  white-space:nowrap;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  backdrop-filter: blur(10px);
}
#sm-profile-v40 .sessWeather .wIconWrap{ width:18px; height:18px; display:grid; place-items:center; }
#sm-profile-v40 .sessWeather svg{ width:18px; height:18px; display:block; }

/* =========================
   WEATHER PILL — animated layer restore
========================= */

#sm-profile-v40 .sessTopRowHost{
  display:flex;
  align-items:flex-start;
  justify-content:flex-start;
  margin-bottom:10px;
}
#sm-profile-v40 .sessTopRow{
  display:flex;
  align-items:flex-start;
  justify-content:flex-start;
  width:100%;
}
#sm-profile-v40 .sessWeather{
  align-self:flex-start;
  position:relative;
  overflow:hidden;
}
#sm-profile-v40 .sessWeather .wIconWrap,
#sm-profile-v40 .sessWeather .wText{
  position:relative;
  z-index:2;
}
#sm-profile-v40 .sessWeather::before,
#sm-profile-v40 .sessWeather::after{
  content:"";
  position:absolute;
  inset:-30px;
  pointer-events:none;
  z-index:1;
  opacity:.95;
}
#sm-profile-v40 .sessWeather::after{
  inset:0;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,0));
  opacity:.55;
}

/* CLOUDS */
#sm-profile-v40 .sessWeather.is-clouds::before{
  background:
    radial-gradient(28px 18px at 18% 42%, rgba(255,255,255,.24), transparent 62%),
    radial-gradient(34px 22px at 42% 32%, rgba(255,255,255,.20), transparent 64%),
    radial-gradient(30px 20px at 70% 46%, rgba(255,255,255,.18), transparent 66%),
    radial-gradient(40px 26px at 86% 34%, rgba(255,255,255,.16), transparent 68%),
    linear-gradient(90deg, rgba(255,255,255,.10), rgba(255,255,255,0));
  filter: blur(1px);
  transform: translateX(0);
  animation: smWxCloudDrift 6.5s linear infinite;
}

/* SUN */
#sm-profile-v40 .sessWeather.is-sun::before{
  background:
    radial-gradient(120px 80px at 18% 40%, rgba(201,154,110,.30), transparent 60%),
    radial-gradient(90px 60px at 70% 20%, rgba(255,255,255,.08), transparent 62%),
    linear-gradient(120deg, rgba(201,154,110,.14), rgba(120,59,226,.08));
  animation: smWxSunPulse 3.6s ease-in-out infinite;
}

/* RAIN */
#sm-profile-v40 .sessWeather.is-rain::before{
  background:
    repeating-linear-gradient(
      115deg,
      rgba(255,255,255,.16) 0px,
      rgba(255,255,255,.16) 1px,
      transparent 1px,
      transparent 10px
    ),
    linear-gradient(120deg, rgba(120,59,226,.10), rgba(0,0,0,0));
  opacity:.75;
  animation: smWxRain 0.85s linear infinite;
}

/* SNOW */
#sm-profile-v40 .sessWeather.is-snow::before{
  background:
    radial-gradient(2px 2px at 10% 20%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(2px 2px at 22% 55%, rgba(255,255,255,.45), transparent 60%),
    radial-gradient(2px 2px at 38% 30%, rgba(255,255,255,.50), transparent 60%),
    radial-gradient(2px 2px at 54% 60%, rgba(255,255,255,.42), transparent 60%),
    radial-gradient(2px 2px at 70% 25%, rgba(255,255,255,.52), transparent 60%),
    radial-gradient(2px 2px at 86% 55%, rgba(255,255,255,.44), transparent 60%),
    linear-gradient(120deg, rgba(255,255,255,.08), rgba(0,0,0,0));
  opacity:.8;
  animation: smWxSnow 2.2s linear infinite;
}

/* FOG */
#sm-profile-v40 .sessWeather.is-fog::before{
  background:
    linear-gradient(90deg, rgba(255,255,255,.10), rgba(255,255,255,.02), rgba(255,255,255,.10)),
    radial-gradient(120px 60px at 30% 50%, rgba(255,255,255,.10), transparent 70%),
    radial-gradient(140px 70px at 70% 40%, rgba(255,255,255,.08), transparent 72%);
  opacity:.75;
  filter: blur(1px);
  animation: smWxFog 4.8s ease-in-out infinite;
}

/* WIND */
#sm-profile-v40 .sessWeather.is-wind::before{
  background:
    linear-gradient(90deg, rgba(255,255,255,.14), rgba(255,255,255,0) 55%),
    linear-gradient(90deg, rgba(255,255,255,.10), rgba(255,255,255,0) 55%),
    linear-gradient(120deg, rgba(120,59,226,.08), rgba(0,0,0,0));
  background-size: 180px 2px, 220px 2px, auto;
  background-position: -40px 22px, -80px 34px, center;
  background-repeat:no-repeat;
  opacity:.85;
  animation: smWxWind 1.2s linear infinite;
}

/* STORM */
#sm-profile-v40 .sessWeather.is-storm::before{
  background:
    linear-gradient(120deg, rgba(120,59,226,.16), rgba(0,0,0,0)),
    radial-gradient(160px 90px at 20% 40%, rgba(255,255,255,.10), transparent 60%);
  opacity:.85;
  animation: smWxStorm 2.6s ease-in-out infinite;
}

@keyframes smWxCloudDrift{ 0%{transform:translateX(-18px);} 100%{transform:translateX(18px);} }
@keyframes smWxSunPulse{ 0%,100%{transform:scale(1);opacity:.95;} 50%{transform:scale(1.03);opacity:1;} }
@keyframes smWxRain{ 0%{transform:translateY(-10px);} 100%{transform:translateY(10px);} }
@keyframes smWxSnow{ 0%{transform:translateY(-8px);} 100%{transform:translateY(10px);} }
@keyframes smWxFog{ 0%,100%{transform:translateX(-14px);opacity:.70;} 50%{transform:translateX(14px);opacity:.85;} }
@keyframes smWxWind{ 0%{background-position:-40px 22px, -80px 34px, center;} 100%{background-position:160px 22px, 220px 34px, center;} }
@keyframes smWxStorm{ 0%,100%{opacity:.75;} 45%{opacity:1;} 46%{opacity:.55;} 48%{opacity:1;} }

@media (prefers-reduced-motion: reduce){
  #sm-profile-v40 .sessWeather::before{ animation:none !important; }
}

/* =========================
   MODAL
========================= */
#sm-profile-v40 .sm-modal{
  position:fixed;
  inset:0;
  z-index:9999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  pointer-events:none;
}
#sm-profile-v40 .sm-modal[aria-hidden="true"]{
  opacity:0;
  visibility:hidden;
  transition:opacity .12s ease, visibility .12s ease;
}
#sm-profile-v40 .sm-modal[aria-hidden="false"]{
  opacity:1;
  visibility:visible;
  transition:opacity .12s ease;
  pointer-events:auto;
}
#sm-profile-v40 .sm-modal__backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.62);
  backdrop-filter: blur(6px);
}
#sm-profile-v40 .sm-modal__content{
  position:relative;
  z-index:2;
  width:min(760px, 100%);
  max-height:min(84vh, 760px);
  overflow:auto;
  border-radius:22px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(18,18,18,.94);
  box-shadow: 0 50px 160px rgba(0,0,0,.72);
}

/* New "smSheet" */
#sm-profile-v40 .smSheet{ padding:14px; }
#sm-profile-v40 .smSheetHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:16px 18px 14px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
#sm-profile-v40 .smSheetTitle{
  font-size:15px;
  font-weight:650;
  color:rgba(255,255,255,.92);
}
#sm-profile-v40 .smX{
  width:34px; height:34px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  cursor:pointer;
  display:grid;
  place-items:center;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
#sm-profile-v40 .smX:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.18);
}
#sm-profile-v40 .smSheetBody{ padding:18px; }

/* Old "sessionSheet" */
#sm-profile-v40 .sessionSheet{ padding:14px; }
#sm-profile-v40 .sheetTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:16px 18px 14px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
#sm-profile-v40 .sheetTitle{
  font-size:15px;
  font-weight:650;
  color:rgba(255,255,255,.92);
}
#sm-profile-v40 .sheetClose{
  width:34px; height:34px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  cursor:pointer;
  display:grid;
  place-items:center;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
  line-height:1;
}
#sm-profile-v40 .sheetClose:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.18);
}
#sm-profile-v40 .sheetBody{ padding:18px; display:flex; flex-direction:column; gap:12px; }

#sm-profile-v40 #smEditNick{
  width:100%;
  padding:12px 14px !important;
  border-radius:14px !important;
  border:1px solid rgba(255,255,255,.12) !important;
  background:rgba(255,255,255,.04) !important;
  color:rgba(255,255,255,.92) !important;
  font-size:14px !important;
  transition:border .15s ease, background .15s ease, box-shadow .15s ease;
  outline:none;
}
#sm-profile-v40 #smEditNick:focus{
  border-color:rgba(201,154,110,.65) !important;
  background:rgba(255,255,255,.06) !important;
  box-shadow:0 0 0 1px var(--rim);
}

#sm-profile-v40 #smEditAvaPreview{
  width:72px !important;
  height:72px !important;
  border-radius:999px !important;
  border:1px solid rgba(255,255,255,.15) !important;
  box-shadow: 0 12px 28px rgba(0,0,0,.45);
}

/* =========================================================
   RESPONSIVE
========================================================= */

/* Wrap spacing on smaller screens */
@media (max-width: 700px){
  #sm-profile-v40 .wrap{
    --hdrH: clamp(72px, 12vh, 140px);
    padding: 0 18px 76px;
    padding-top: calc(var(--hdrH) + 34px) !important;
  }
}

/* Tablet: stack hero, grid becomes 1 column (fix your screenshot issue) */
@media (max-width: 920px){
  #sm-profile-v40 .top{
    flex-direction:column;
    align-items:stretch;
    gap:16px;
    margin-bottom:26px;
  }
  #sm-profile-v40 .topInner{ max-width:100%; }

  #sm-profile-v40 .grid{
    grid-template-columns:1fr !important;
    gap:22px !important;
  }
  #sm-profile-v40 section[aria-label="Saved Moves"]{ order:1; }
  #sm-profile-v40 section[aria-label="Session History"]{ order:2; }

  #sm-profile-v40 .topCta{
    width:100%;
    align-items:stretch;
    gap:10px;
    padding-top:0;
  }
}

/* Phone: premium CTA layout (1 + 2 in a row) */
@media (max-width: 560px){
  #sm-profile-v40 .wrap{
    padding-left:16px !important;
    padding-right:16px !important;
    padding-bottom:64px !important;
  }

  #sm-profile-v40 .hello{
    font-size:26px;
    line-height:1.1;
    white-space:normal;
    overflow:visible;
    text-overflow:clip;
    word-break:break-word;
  }
  #sm-profile-v40 .sub{
    font-size:13px;
    max-width:100%;
  }

  #sm-profile-v40 .topCta{
    display:grid !important;
    grid-template-columns: 1fr 1fr;
    gap:10px;
    align-items:stretch;
  }

  /* Start Session full width */
  #sm-profile-v40 .smBtnCta{
    width:100% !important;
    min-width:0 !important;
    grid-column: 1 / -1;
    justify-content:space-between;
  }

  /* How it works + Edit half width */
  #sm-profile-v40 .howBtn,
  #sm-profile-v40 .smEditBtn{
    width:100% !important;
    justify-content:center !important;
  }

  /* Make How it works look like a button in the grid */
  #sm-profile-v40 .howBtn{
    padding:10px 12px !important;
    border-radius:999px !important;
    background: rgba(255,255,255,.05) !important;
    border: 1px solid rgba(255,255,255,.12) !important;
    color: rgba(255,255,255,.88) !important;
  }

  /* Session card bottom row wrap */
  #sm-profile-v40 .sessBottom{
    flex-wrap:wrap;
    gap:10px;
  }
}

/* Very small phones */
@media (max-width: 360px){
  #sm-profile-v40 .hello{ font-size:24px; }
  #sm-profile-v40 .smBtn{ font-size:12.5px; }
  #sm-profile-v40 .smBtnCta{ padding:12px 14px; }
  #sm-profile-v40 .sessInner{ padding:14px 14px 12px; }
  #sm-profile-v40 .sessDate{ font-size:16px; }
}

/* Modal on phone */
@media (max-width: 520px){
  #sm-profile-v40 .sm-modal{ padding:12px; }
  #sm-profile-v40 .sm-modal__content{
    width:100%;
    max-height:86vh;
    border-radius:18px;
  }
}
