/* ==========================================================
   STEMS* — App shell & screen layouts
   ========================================================== */

/* ---------- App shell ---------- */
#root { min-height: 100vh; }

.shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  padding: var(--s5) var(--s4);
  background: var(--black);
  z-index: 40;
}
.sidebar__logo {
  font-size: 20px;
  padding: 4px 10px 20px;
  display: block;
}
.sidebar nav { display: flex; flex-direction: column; gap: 2px; }
.navitem {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px;
  border-radius: var(--r-input);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--g300);
  transition: all var(--t-micro);
}
.navitem svg { flex: none; }
.navitem:hover { color: var(--offwhite); background: rgba(255, 255, 255, 0.04); }
.navitem.is-active { color: var(--offwhite); background: rgba(255, 255, 255, 0.06); }
.navitem.is-active svg { color: var(--green); }
.navitem--create { color: var(--offwhite); }
.navitem--create svg { color: var(--green); }

.sidebar__section {
  margin-top: var(--s5);
  padding-top: var(--s5);
  border-top: 1px solid var(--line-soft);
}
.sidebar__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--g600);
  padding: 0 10px 10px;
}
.sidebar__proj {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  font-size: 13px;
  color: var(--g300);
  transition: all var(--t-micro);
}
.sidebar__proj:hover { color: var(--offwhite); background: rgba(255, 255, 255, 0.04); }
.sidebar__proj i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--g600); flex: none;
}
.sidebar__proj.is-live i { background: var(--green); }
.sidebar__foot {
  margin-top: auto;
  padding: var(--s4) 10px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar__foot a { color: var(--g600); font-size: 11px; transition: color var(--t-micro); }
.sidebar__foot a:hover { color: var(--g300); }

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: var(--s4);
  padding: 0 var(--s6);
  background: rgba(11, 11, 11, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.topbar .search { flex: 1; max-width: 420px; }
.topbar .search .input { height: 40px; background: rgba(255, 255, 255, 0.05); border-color: transparent; }
.topbar .search .input:focus { border-color: var(--green); }
.topbar__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.topbar__logo { display: none; font-size: 17px; }

/* Content area */
.content {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--s6) var(--s7) var(--s9);
  width: 100%;
}
.content--narrow { max-width: 760px; }
.content--full { max-width: none; padding: 0; }

/* Page transitions */
.view {
  animation: view-in var(--t-page) var(--ease);
}
@keyframes view-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Bottom navigation (mobile) */
.bottomnav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: rgba(11, 11, 11, 0.92);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line-soft);
  height: calc(var(--bottomnav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  grid-template-columns: repeat(5, 1fr);
}
.bottomnav a, .bottomnav button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--g600);
  transition: color var(--t-micro);
}
.bottomnav a.is-active { color: var(--offwhite); }
.bottomnav a.is-active svg { color: var(--green); }
.bottomnav .createbtn span.plus {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--green);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -18px;
  box-shadow: 0 6px 20px rgba(166, 255, 51, 0.25);
}

/* Responsive shell */
@media (max-width: 1200px) and (min-width: 769px) {
  .shell { grid-template-columns: 68px 1fr; }
  .sidebar { padding: var(--s5) 10px; align-items: center; }
  .sidebar__logo { font-size: 17px; padding: 4px 0 18px; }
  .sidebar__logo .bysnflwr, .navitem span, .sidebar__label,
  .sidebar__proj span, .sidebar__foot { display: none; }
  .sidebar nav { width: 100%; align-items: center; }
  .navitem { padding: 11px; justify-content: center; width: 48px; }
  .sidebar__section { width: 100%; display: flex; flex-direction: column; align-items: center; }
  .sidebar__proj { justify-content: center; width: 48px; padding: 10px; }
}
@media (max-width: 768px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .bottomnav { display: grid; }
  .topbar { padding: 0 var(--s4); height: 56px; }
  .topbar .search { display: none; }
  .topbar__logo { display: block; }
  .content { padding: var(--s5) 20px calc(var(--bottomnav-h) + var(--s8)); }
}

/* ==========================================================
   LANDING PAGE
   ========================================================== */
.landing { overflow-x: hidden; }
.landing section { position: relative; }

.lnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 48px);
  transition: background var(--t-ui), border-color var(--t-ui);
  border-bottom: 1px solid transparent;
}
.lnav.is-scrolled {
  background: rgba(11, 11, 11, 0.85);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line-soft);
}
.lnav__brand { display: flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.lnav__brand .wordmark { font-size: 19px; }
.lnav__actions { display: flex; align-items: center; gap: 10px; }

.lhero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px clamp(20px, 5vw, 64px) 60px;
  position: relative;
}
.lhero__map {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.lhero__map svg {
  position: absolute;
  right: -8%;
  top: 50%;
  transform: translateY(-50%);
  width: min(72vw, 980px);
  opacity: 0.9;
}
.lhero__content { position: relative; z-index: 2; max-width: 860px; }
.lhero__eyebrow { margin-bottom: var(--s5); display: flex; align-items: baseline; gap: 10px; }
.lhero__sub {
  max-width: 460px;
  margin-top: var(--s5);
  color: var(--g300);
  font-size: 17px;
}
.lhero__ctas { display: flex; gap: 12px; margin-top: var(--s6); flex-wrap: wrap; }
.lhero__scroll {
  position: absolute;
  bottom: 28px;
  left: clamp(20px, 5vw, 64px);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--g600);
  display: flex;
  align-items: center;
  gap: 10px;
}
.lhero__scroll::after {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--g600);
}

.lsection {
  padding: clamp(80px, 12vh, 140px) clamp(20px, 5vw, 64px);
  max-width: 1280px;
  margin: 0 auto;
}
.lsection__head { max-width: 720px; margin-bottom: var(--s7); }
.lsection__head .eyebrow { margin-bottom: 14px; }
.lsection__head p { color: var(--g300); font-size: 17px; margin-top: var(--s4); max-width: 520px; }

/* Problem fragments */
.lproblem { position: relative; }
.frags {
  position: relative;
  height: 340px;
  margin-top: var(--s6);
}
.frag {
  position: absolute;
  padding: 12px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-input);
  background: var(--charcoal);
  font-size: clamp(14px, 1.6vw, 19px);
  font-weight: 600;
  color: var(--g300);
  opacity: 0;
  transform: translateY(24px) rotate(var(--rot, 0deg));
  transition: opacity 600ms var(--ease), transform 600ms var(--ease), border-color 600ms, color 600ms;
}
.frags.is-in .frag { opacity: 1; transform: translateY(0) rotate(var(--rot, 0deg)); }
.frags.is-connected .frag { border-color: var(--green-soft); color: var(--offwhite); --rot: 0deg; }
.frags svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.frags svg line {
  stroke: var(--green);
  stroke-opacity: 0;
  stroke-width: 1;
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  transition: stroke-dashoffset 1100ms var(--ease) 200ms, stroke-opacity 400ms;
}
.frags.is-connected svg line { stroke-dashoffset: 0; stroke-opacity: 0.55; }
.frags__note {
  position: absolute;
  bottom: -10px;
  left: 0;
  color: var(--g300);
  font-size: 15px;
  opacity: 0;
  transition: opacity 600ms var(--ease) 900ms;
}
.frags.is-connected .frags__note { opacity: 1; }

/* Journey path */
.ljourney__track {
  display: flex;
  align-items: flex-start;
  overflow-x: auto;
  padding: var(--s5) 0;
  scrollbar-width: none;
}
.ljourney__track::-webkit-scrollbar { display: none; }
.jstep {
  min-width: 128px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  position: relative;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}
.ljourney__track.is-in .jstep { opacity: 1; transform: translateY(0); }
.jstep::before {
  content: '';
  position: absolute;
  top: 19px;
  left: calc(-50% + 20px);
  right: calc(50% + 20px);
  height: 1px;
  background: var(--g800);
}
.jstep:first-child::before { display: none; }
.ljourney__track.is-in .jstep::before { background: linear-gradient(90deg, var(--green-soft), var(--g800)); }
.jstep__dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--g300);
  background: var(--black);
  z-index: 1;
}
.jstep__label { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--g300); }
.jstep:nth-child(-n+3) .jstep__dot { border-color: var(--green-soft); color: var(--green); }

/* Landing map section */
.lmap__stage {
  border: 1px solid var(--line-soft);
  border-radius: var(--r-panel);
  background: radial-gradient(120% 100% at 50% 0%, #131412 0%, var(--black) 70%);
  padding: clamp(16px, 3vw, 40px);
  position: relative;
  overflow: hidden;
}
.lmap__cities {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: var(--s5);
}

/* Landing product mock frames */
.lframe {
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  background: var(--charcoal);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.lframe__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
}
.lframe__bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--g800); }
.lframe__bar span { margin-left: 10px; font-size: 11px; color: var(--g600); letter-spacing: 0.08em; text-transform: uppercase; }
.lframe__body { padding: var(--s5); }

.lsplit {
  display: grid;
  grid-template-columns: minmax(300px, 440px) 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.lsplit--rev { grid-template-columns: 1fr minmax(300px, 440px); }
@media (max-width: 900px) {
  .lsplit, .lsplit--rev { grid-template-columns: 1fr; }
  .lsplit--rev .lsplit__text { order: -1; }
}

/* snflwr26 network section */
.lnet {
  border-radius: var(--r-panel);
  border: 1px solid var(--line-soft);
  background: var(--charcoal);
  padding: clamp(24px, 4vw, 48px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s6);
  align-items: center;
}
@media (max-width: 900px) { .lnet { grid-template-columns: 1fr; } }

/* Partners strip */
.partner-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 40px;
  max-width: 860px;
  margin: 0 auto;
}
.partner-strip span {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--g600);
  transition: color var(--t-micro);
  white-space: nowrap;
}
.partner-strip span:hover { color: var(--g300); }

/* Final CTA */
.lfinal {
  text-align: center;
  padding: clamp(100px, 16vh, 180px) 20px;
}
.lfinal .display-xl { max-width: 900px; margin: 0 auto var(--s6); }

/* Footer */
.lfooter {
  border-top: 1px solid var(--line-soft);
  padding: var(--s7) clamp(20px, 5vw, 64px);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s5);
  align-items: center;
  justify-content: space-between;
}
.lfooter__links { display: flex; gap: var(--s5); flex-wrap: wrap; }
.lfooter__links a { color: var(--g300); font-size: 13px; transition: color var(--t-micro); }
.lfooter__links a:hover { color: var(--offwhite); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* ==========================================================
   ONBOARDING
   ========================================================== */
.onb {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 640px;
  margin: 0 auto;
  padding: var(--s5) 20px calc(var(--s6) + env(safe-area-inset-bottom));
}
.onb__top {
  display: flex;
  align-items: center;
  gap: var(--s4);
  margin-bottom: clamp(32px, 8vh, 80px);
}
.onb__progress { flex: 1; }
.onb__body { flex: 1; }
.onb__body .h1 { margin-bottom: 10px; }
.onb__sub { color: var(--g300); margin-bottom: var(--s6); }
.onb__actions {
  display: flex;
  gap: 12px;
  margin-top: var(--s6);
  position: sticky;
  bottom: var(--s5);
}
.onb__actions .btn { flex: 1; }
.onb__skip { text-align: center; margin-top: var(--s4); }
.onb__skip button { color: var(--g600); font-size: 13px; }
.onb__skip button:hover { color: var(--g300); }

.optcard {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 18px;
  background: var(--charcoal);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-card);
  text-align: left;
  transition: all var(--t-micro);
  color: var(--offwhite);
}
.optcard:hover { border-color: var(--line-hover); }
.optcard.is-on { border-color: var(--green); background: var(--green-dim); }
.optcard__icon { color: var(--g300); flex: none; transition: color var(--t-micro); }
.optcard.is-on .optcard__icon { color: var(--green); }
.optcard__title { font-size: 15px; font-weight: 600; }
.optcard__sub { font-size: 12.5px; color: var(--g300); margin-top: 2px; }
.optcard__check {
  margin-left: auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--g600);
  flex: none;
  color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t-micro);
}
.optcard.is-on .optcard__check { background: var(--green); border-color: var(--green); color: var(--black); }

.onb-welcome {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  position: relative;
  overflow: hidden;
}
.onb-welcome__bg { position: absolute; inset: 0; opacity: 0.5; pointer-events: none; }
.onb-welcome__content { position: relative; z-index: 2; max-width: 520px; display: flex; flex-direction: column; align-items: center; gap: var(--s5); }

/* Building path animation */
.building {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s6);
  text-align: center;
  padding: 24px;
}
.building svg { width: min(340px, 78vw); }
.building .bnode { opacity: 0; animation: node-in 500ms var(--ease) forwards; }
.building .bline {
  stroke: var(--green);
  stroke-opacity: 0.5;
  stroke-width: 1;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: draw-line 800ms var(--ease) forwards;
}
.building__status { color: var(--g300); font-size: 14px; min-height: 22px; }

/* Path result */
.pathresult {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 560px;
  margin: 0 auto;
  padding: var(--s7) 20px;
}

/* ==========================================================
   HOME
   ========================================================== */
.home-hero { margin-bottom: var(--s6); }
.home-hero .h1 { margin-bottom: 6px; }

.home-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--s5);
  align-items: start;
}
@media (max-width: 1024px) { .home-grid { grid-template-columns: 1fr; } }
.home-grid > *, .prof-grid > *, .lsplit > *, .lnet > *, .beathero > * { min-width: 0; }
.home-main { display: flex; flex-direction: column; gap: var(--s5); min-width: 0; }
.home-side { display: flex; flex-direction: column; gap: var(--s5); min-width: 0; }
.home-main > *, .home-side > * { min-width: 0; }

.nextcard { overflow: hidden; }
.nextcard__label { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.nextcard__label i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse-dot 2s infinite; }
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(166, 255, 51, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(166, 255, 51, 0); }
}
.nextcard .h2 { margin-bottom: 8px; }
.nextcard__sub { color: var(--g300); max-width: 420px; margin-bottom: var(--s5); }
.nextcard__ctas { display: flex; gap: 10px; flex-wrap: wrap; }

.pathcard__top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s4); }
.pathcard__pct { font-size: 28px; font-weight: 700; color: var(--green); font-variant-numeric: tabular-nums; }

/* ==========================================================
   FULL PATH
   ========================================================== */
.fullpath { max-width: 760px; }
.fp-step {
  display: flex;
  gap: 20px;
  position: relative;
  padding-bottom: var(--s6);
}
.fp-step::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 34px;
  bottom: 2px;
  width: 1.5px;
  background: var(--g800);
}
.fp-step:last-child::before { display: none; }
.fp-step.is-done::before { background: var(--green-soft); }
.fp-step__dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--g600);
  background: var(--black);
  color: var(--g600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  z-index: 1;
  font-size: 11px;
  font-weight: 700;
}
.fp-step.is-done .fp-step__dot { background: var(--green); border-color: var(--green); color: var(--black); }
.fp-step.is-active .fp-step__dot { border-color: var(--green); color: var(--green); box-shadow: 0 0 0 6px var(--green-dim); }
.fp-step__body { flex: 1; padding-top: 3px; min-width: 0; }
.fp-step__title { font-size: 17px; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; color: var(--g300); }
.fp-step.is-active .fp-step__title, .fp-step.is-done .fp-step__title { color: var(--offwhite); }
.fp-step__desc { color: var(--g300); font-size: 14px; margin-top: 4px; }
.fp-step__meta { font-size: 12px; color: var(--g600); margin-top: 6px; }
.fp-step__panel {
  margin-top: 14px;
  padding: var(--s4);
  background: var(--charcoal);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-input);
}

/* ==========================================================
   MAP SCREEN
   ========================================================== */
.mapscreen {
  position: relative;
  height: calc(100vh - var(--topbar-h));
  overflow: hidden;
  background: radial-gradient(130% 110% at 50% 0%, #121311 0%, var(--black) 75%);
}
@media (max-width: 768px) {
  .mapscreen { height: calc(100vh - 56px - var(--bottomnav-h)); }
}
.mapscreen__canvas {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mapscreen__canvas svg { width: min(94%, 1100px); height: auto; max-height: 92%; }
.mapbar {
  position: absolute;
  top: var(--s4);
  left: var(--s4);
  right: var(--s4);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.mapbar > * { pointer-events: auto; }
.mapbar .search { max-width: 420px; }
.mapbar .search .input { background: rgba(20, 21, 19, 0.92); backdrop-filter: blur(8px); }
.mapbar__filters { display: flex; gap: 8px; flex-wrap: wrap; }
.mapbar__filters .chip { background: rgba(20, 21, 19, 0.92); backdrop-filter: blur(8px); }
.map-toggle {
  position: absolute;
  bottom: var(--s5);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  background: rgba(20, 21, 19, 0.95);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  backdrop-filter: blur(8px);
}
.map-toggle button {
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--g300);
}
.map-toggle button.is-on { background: var(--green); color: var(--black); }
.maplist {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  padding: 130px var(--s4) 100px;
  z-index: 5;
  background: var(--black);
}
.maplist__inner { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }

/* Studio drawer content */
.sdrawer__hero { position: relative; }
.sdrawer__body { padding: var(--s5); }
.sdrawer__body .h2 { margin-bottom: 4px; }

/* ==========================================================
   PROFILES (studio / producer / user)
   ========================================================== */
.profhero {
  position: relative;
  border-radius: var(--r-panel);
  overflow: hidden;
  margin-bottom: var(--s5);
}
.profhero .media { border-radius: 0; }
.profhero__overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(20px, 4vw, 40px);
  background: linear-gradient(0deg, rgba(11, 11, 11, 0.92) 0%, rgba(11, 11, 11, 0.4) 60%, transparent 100%);
  z-index: 3;
}
.profhero__overlay .h1 { margin: 6px 0 8px; }
.profhero__meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; color: var(--g300); font-size: 13px; }

.prof-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--s5);
  align-items: start;
}
@media (max-width: 1024px) { .prof-grid { grid-template-columns: 1fr; } }

.credit-row {
  display: flex;
  justify-content: space-between;
  gap: var(--s4);
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
}
.credit-row:last-child { border-bottom: none; }
.credit-row b { font-weight: 600; }
.credit-row span { color: var(--g300); }

.slot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-input);
  transition: all var(--t-micro);
  cursor: pointer;
  width: 100%;
  text-align: left;
  font-size: 14px;
  color: var(--offwhite);
}
.slot:hover { border-color: var(--line-hover); }
.slot.is-on { border-color: var(--green); background: var(--green-dim); }
.slot__day { font-weight: 600; }
.slot__time { color: var(--g300); font-size: 13px; }

/* ==========================================================
   COLLABORATION ROOM
   ========================================================== */
.room-head { margin-bottom: var(--s5); }
.room-head__top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; }
.room-head .h1 { margin-bottom: 6px; }
.room-tabs { margin-bottom: var(--s5); }

.chatpane {
  display: flex;
  flex-direction: column;
  height: min(620px, calc(100vh - 320px));
  min-height: 380px;
}
.chatpane__scroll { flex: 1; overflow-y: auto; padding-right: 6px; }
.chatpane__input {
  display: flex;
  gap: 10px;
  padding-top: var(--s4);
  border-top: 1px solid var(--line-soft);
  margin-top: var(--s4);
}
.chatpane__input .input { flex: 1; }

/* ==========================================================
   BEATS
   ========================================================== */
.beatcard .media { margin: calc(-1 * var(--s5)) calc(-1 * var(--s5)) var(--s4); border-radius: var(--r-card) var(--r-card) 0 0; }
.beatcard__wave { padding: 18px 16px 18px 60px; position: absolute; inset: auto 0 0 0; z-index: 2; }
.beatcard__play {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 3;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
.beatcard__meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--g300); flex-wrap: wrap; }

.beathero {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: var(--s6);
  align-items: start;
  margin-bottom: var(--s6);
}
@media (max-width: 900px) { .beathero { grid-template-columns: 1fr; } }

/* ==========================================================
   MENTOR / FEEDBACK
   ========================================================== */
.mentorcard { display: flex; flex-direction: column; }
.mentorcard .media { margin: calc(-1 * var(--s5)) calc(-1 * var(--s5)) var(--s4); border-radius: var(--r-card) var(--r-card) 0 0; }
.slots-left { font-size: 12px; color: var(--g300); }
.slots-left b { color: var(--green); }

.fbresult__block { margin-bottom: var(--s5); }
.fbresult__block h4 {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--g300);
}
.fbresult__block--works h4 { color: var(--green); }
.fbresult__block--work h4 { color: var(--amber); }
.fbresult__block p { font-size: 16px; }

/* ==========================================================
   KNOW / CHECKLIST
   ========================================================== */
.check-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--charcoal);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-input);
  cursor: pointer;
  transition: border-color var(--t-micro);
  width: 100%;
  text-align: left;
  color: var(--offwhite);
}
.check-item:hover { border-color: var(--line-hover); }
.check-item .task__check { pointer-events: none; }
.check-item.is-done { border-color: rgba(166, 255, 51, 0.2); }
.check-item.is-done .check-item__title { color: var(--g300); }
.check-item__title { font-size: 15px; font-weight: 600; }
.check-item__sub { font-size: 12px; color: var(--g600); margin-top: 1px; }

/* ==========================================================
   SUCCESS SCREEN
   ========================================================== */
.success {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--s7) 24px;
  position: relative;
  overflow: hidden;
}
.success__chain { width: min(680px, 92vw); margin: var(--s6) 0; }
.success__chain .snode { opacity: 0; animation: node-in 500ms var(--ease) forwards; }
.success__chain .sline {
  stroke: var(--green);
  stroke-opacity: 0.6;
  stroke-width: 1.2;
  stroke-dasharray: 140;
  stroke-dashoffset: 140;
  animation: draw-line 700ms var(--ease) forwards;
}
.success__chain text { fill: var(--g300); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; font-family: var(--font); text-anchor: middle; }
.success__chain text.main { fill: var(--offwhite); font-size: 11px; font-weight: 600; }

/* ==========================================================
   PILOT DASHBOARD
   ========================================================== */
.pilot-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s4); margin-bottom: var(--s5); }
@media (max-width: 1024px) { .pilot-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .pilot-grid { grid-template-columns: repeat(2, 1fr); } }
.pilot-net {
  border: 1px solid var(--line-soft);
  border-radius: var(--r-panel);
  background: radial-gradient(120% 100% at 50% 0%, #131412 0%, var(--black) 75%);
  padding: var(--s5);
  position: relative;
  overflow: hidden;
}
.pilot-net svg { width: 100%; height: auto; }
.pnode { cursor: pointer; }
.pnode circle { transition: all var(--t-micro); }
.pnode:hover circle.dot { r: 7; }
.pnode text { fill: var(--g300); font-size: 9.5px; font-family: var(--font); letter-spacing: 0.06em; text-anchor: middle; }
.plink { stroke: rgba(166, 255, 51, 0.28); stroke-width: 1; cursor: pointer; transition: stroke var(--t-micro); }
.plink:hover, .plink.is-active { stroke: var(--green); stroke-width: 1.5; }

/* ==========================================================
   INBOX
   ========================================================== */
.inbox-item { align-items: flex-start; }
.inbox-item .avatar { margin-top: 2px; }
.unread-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; margin-top: 8px; }

/* ==========================================================
   CREATE MENU
   ========================================================== */
.create-opt {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 18px;
  border: 1px solid var(--line-soft);
  background: var(--charcoal);
  border-radius: var(--r-card);
  text-align: left;
  color: var(--offwhite);
  transition: border-color var(--t-micro);
}
.create-opt:hover { border-color: var(--line-hover); }
.create-opt--primary { border-color: var(--green-soft); background: linear-gradient(160deg, rgba(166,255,51,0.07) 0%, var(--charcoal) 60%); }
.create-opt__icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--g300);
  flex: none;
}
.create-opt--primary .create-opt__icon { background: var(--green-dim); color: var(--green); }

/* Landing mock: mini room */
.mini-room { display: flex; flex-direction: column; gap: 14px; }
.mini-room__row { display: flex; align-items: center; gap: 10px; }

/* Print-ish helpers */
.kv { display: flex; justify-content: space-between; gap: var(--s4); font-size: 13.5px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.kv:last-child { border-bottom: none; }
.kv span { color: var(--g300); }
.kv b { font-weight: 600; text-align: right; }
