:root {
  --bg: #0E0F13;
  --card: #141622;
  --text: #F6F7FB;
  --sub: #A9AABC;
  --accent: #2F80ED;
  --danger: #FF5A5F;
  --ok: #2ECC71;
  --line: #23263A;
  --rail-w: 240px;
  --shell-pad: 6px;
}

* {
  box-sizing: border-box;
  scrollbar-width: none;
}

*::-webkit-scrollbar {
  display: none;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit
}

button, input {
  font: inherit
}

input, select, textarea {
  font-size: 16px
}

.wrap {
  min-height: calc(100vh - 64px);
  min-height: calc(100dvh - 64px);
  display: flex;
  justify-content: center
}

.app {
  width: min(420px, 100%);
  padding: 18px
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px
}

.back {
  color: var(--sub);
  cursor: pointer;
  padding: 8px 12px 8px 0;
  user-select: none
}

.brand {
  color: var(--sub);
  font-weight: 800
}

.h1 {
  font-size: 28px;
  font-weight: 900;
  margin: 10px 0 4px
}

.p {
  color: var(--sub);
  margin: 0 0 12px;
  line-height: 1.45
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
}

.big {
  font-size: 34px;
  font-weight: 950;
  margin: 0 0 8px
}

.btn {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: 0;
  background: var(--accent);
  color: var(--text);
  font-weight: 800;
  cursor: pointer
}

.btn.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text)
}
.btn.ghost.active {
  background: rgba(59,130,246,.12);
  border-color: rgba(59,130,246,.35);
  color: #93bbfc
}

.gap10 {
  display: grid;
  gap: 10px
}

.gap12 {
  display: grid;
  gap: 12px
}

.mt16 {
  margin-top: 16px
}

.mt18 {
  margin-top: 18px
}

.input {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  outline: none
}

.row {
  display: flex;
  gap: 10px
}

.row>* {
  flex: 1
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #1E2236;
  color: var(--sub);
  font-size: 12px
}

.kicker {
  color: var(--sub);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .02em
}

.hr {
  height: 1px;
  background: var(--line);
  margin: 8px 0
}

.list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding-bottom: 40px
}

.item {
  cursor: pointer
}

.swipeItem.like {
  border-color: rgba(46, 204, 113, 0.35);
  background:
    linear-gradient(135deg, rgba(46, 204, 113, 0.12), rgba(46, 204, 113, 0) 60%),
    var(--card);
}

.swipeItem.nope {
  border-color: rgba(255, 90, 95, 0.35);
  background:
    linear-gradient(135deg, rgba(255, 90, 95, 0.12), rgba(255, 90, 95, 0) 60%),
    var(--card);
}

.badge {
  background: var(--accent);
  color: var(--text);
  border-radius: 999px;
  padding: 4px 10px;
  font-weight: 900;
  font-size: 12px
}

.flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px
}

.chat {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding-bottom: 120px
}

.bubble {
  max-width: 86%;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  line-height: 1.3
}

.bubble.me {
  margin-left: auto;
  background: #1C2A52
}

.bubble.them {
  background: var(--card)
}

.composer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  background: linear-gradient(180deg, transparent, rgba(14, 15, 19, .92) 40%, rgba(14, 15, 19, 1));
  padding: 10px 0 calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 5
}

.composer .inner {
  width: min(420px, 100%);
  padding: 0 18px;
  display: grid;
  gap: 10px
}

.smallbtn {
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--sub);
  font-weight: 800;
  font-size: 12px;
  cursor: pointer
}

.send {
  width: 56px;
  border-radius: 14px;
  border: 0;
  background: var(--accent);
  color: var(--text);
  font-weight: 950;
  cursor: pointer
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap
}

.swipeArea {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-bottom: 80px
}

.swipeCard {
  touch-action: pan-y;
  user-select: none;
  cursor: grab;
  transform: translate(0, 0) rotate(0deg);
  will-change: transform
}

.swipeBtns {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 12px 18px calc(16px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, transparent, rgba(14,15,19,.92) 40%, rgba(14,15,19,1));
  z-index: 5
}

.swbtn {
  flex: 1;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--card);
  cursor: pointer;
  font-weight: 900
}

.swbtn.no {
  color: var(--danger);
  font-size: 18px
}

.swbtn.ok {
  color: var(--ok);
  font-size: 18px
}

.swbtn.mid {
  color: var(--sub)
}

.hidden {
  display: none
}

/* ---- Landing ---- */
.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: #0b0c10;
}

.heroBg {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(600px 300px at 20% 20%, rgba(47, 128, 237, .25), transparent 60%),
    radial-gradient(500px 400px at 80% 30%, rgba(46, 204, 113, .18), transparent 60%),
    linear-gradient(120deg, #0b0c10 20%, #131525 60%, #0b0c10 90%);
  filter: blur(0.5px);
}

.heroCards {
  position: absolute;
  inset: -10%;
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 18px;
  transform: rotate(-8deg) scale(1.05);
  opacity: 0.45;
}

.heroCard {
  height: 210px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,0)),
    linear-gradient(135deg, rgba(47,128,237,.35), rgba(47,128,237,0)),
    #111421;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

.heroCard::after {
  content: "";
  display: block;
  height: 36%;
  margin: 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,0));
}

.hc1 {transform: translateY(10px) rotate(2deg);}
.hc2 {transform: translateY(-6px) rotate(-3deg);}
.hc3 {transform: translateY(18px) rotate(1deg);}
.hc4 {transform: translateY(-12px) rotate(-2deg);}
.hc5 {transform: translateY(6px) rotate(3deg);}
.hc6 {transform: translateY(-16px) rotate(-1deg);}
.hc7 {transform: translateY(14px) rotate(2deg);}
.hc8 {transform: translateY(-8px) rotate(-4deg);}
.hc9 {transform: translateY(12px) rotate(1deg);}
.hc10 {transform: translateY(-14px) rotate(-2deg);}
.hc11 {transform: translateY(8px) rotate(3deg);}
.hc12 {transform: translateY(-10px) rotate(-1deg);}

.heroInner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 18px;
  max-width: 540px;
}

.heroBrand {
  font-weight: 900;
  letter-spacing: .2px;
  color: var(--sub);
  margin-bottom: 10px;
}

.heroTitle {
  font-size: 48px;
  font-weight: 950;
  margin: 0 0 10px;
}

.heroSub {
  color: var(--sub);
  margin: 0 0 18px;
  line-height: 1.5;
}

.heroActions {
  display: grid;
  gap: 10px;
}

.heroMini {
  margin: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(10, 12, 20, .7);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--text);
  font-weight: 800
}

.heroMini .name {
  font-size: 12px;
  font-weight: 900
}

.heroMini .role {
  font-size: 11px;
  color: var(--sub);
  margin-top: 2px
}

.landingSection {
  margin-top: 24px;
  display: grid;
  gap: 24px;
  width: 100%
}

.sectionTitle {
  font-size: 20px;
  font-weight: 950;
  margin: 0 0 10px
}

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

.storyCard {
  text-align: left;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 18px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  display: grid;
  grid-template-rows: 120px 1fr;
  min-height: 220px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.storyCard:hover {
  border-color: rgba(47,128,237,.55);
  box-shadow: 0 12px 26px rgba(0,0,0,.35);
  transform: translateY(-2px)
}

.storyMedia {
  background:
    radial-gradient(300px 140px at 20% 20%, rgba(47,128,237,.25), transparent 60%),
    linear-gradient(135deg, #151a2b, #0f1220);
  border-bottom: 1px solid var(--line)
}

.storyBody {
  padding: 14px;
  display: grid;
  gap: 8px
}

.storyBody .title {
  font-weight: 900;
  font-size: 16px;
  color: var(--text)
}

.storyBody .link {
  color: var(--accent);
  font-weight: 800;
  font-size: 12px
}

.footer {
  margin-top: 6px
}

.footerCard {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 18px;
  padding: 18px
}

.footerGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 24px
}

.footerTitle {
  font-weight: 900;
  font-size: 14px;
  margin-bottom: 8px
}

.footerList {
  display: grid;
  gap: 6px
}

.footerLink {
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--sub);
  text-align: left;
  cursor: pointer;
  font-size: 13px
}

.footerLink:hover {
  color: var(--text)
}

.socialRow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px
}

.chip {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--sub);
  font-weight: 800;
  font-size: 12px;
  cursor: pointer
}

.chip:hover {
  color: var(--text);
  border-color: rgba(47,128,237,.45)
}

@media (max-width: 1100px) {
  .storyGrid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
  .footerGrid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 720px) {
  .storyGrid {
    grid-template-columns: 1fr;
  }
  .footerGrid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .heroCards {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    gap: 14px;
    opacity: 0.35;
  }
  .heroTitle {
    font-size: 40px;
  }
}

/* ---- Website shell (desktop) ---- */
.siteHeader {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(14, 15, 19, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px)
}

.siteHeaderInner {
  max-width: 100%;
  margin: 0 auto;
  padding: 8px 6px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px
}

.siteLeft {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
}

.menuBtn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--card);
  display: grid;
  place-items: center;
  gap: 2px;
  cursor: pointer;
  position: relative;
  padding: 0
}

.menuBtn .bar {
  display: block;
  width: 13px;
  height: 1.5px;
  background: var(--text);
  border-radius: 999px
}

.siteBrand {
  font-weight: 950;
  letter-spacing: .2px
}

.langToggle {
  height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  font-weight: 800
}

.siteRight {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-self: end;
  position: relative
}

.siteLogo {
  width: 60px;
  height: 46px;
  display: grid;
  place-items: center;
  /*background: linear-gradient(180deg, #0b1f3a, #091729);*/
}

.siteLogo img {
  width: 52px;
}


.iconBtn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.iconBtn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.profileMenu {
  position: absolute;
  top: 52px;
  right: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 6px;
  min-width: 200px;
  display: none;
  gap: 4px;
  z-index: 30;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

.profileMenu.open {
  display: grid;
}

.profileInfo {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2px;
}

.profileInfoEmail {
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profileInfoRole {
  font-size: 12px;
  color: var(--sub);
  margin-top: 2px;
}

.profileItem {
  padding: 9px 12px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  text-align: left;
}

.profileItem:hover {
  background: rgba(255,255,255,.06);
}

.profileItem.danger {
  color: #e74c3c;
}

.profileItem.danger:hover {
  background: rgba(231,76,60,.1);
}

.webShell {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 18px;
  display: block;
  position: relative
}

.landingLayout .rightRail {
  display: none !important;
}

@media (min-width:900px) {
  .landingLayout {
    display: grid;
    grid-template-columns: 280px minmax(760px, 1fr);
    gap: 16px;
    align-items: start;
  }
}

.rightRail {
  display: none
}

.railCard {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px
}

.railTitle {
  font-weight: 950;
  font-size: 14px;
  padding: 2px 6px;
  margin-bottom: 6px
}

.railBtns {
  display: grid;
  gap: 6px
}

.railBtn {
  position: relative;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
  font-size: 14px;
  text-align: left
}

.railBtn:hover {
  border-color: rgba(47, 128, 237, .65)
}

.railBtn:disabled,
.railBtn.locked {
  opacity: 0.6;
  color: var(--sub);
  border-color: rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
  cursor: not-allowed;
}

.rightRail.hidden {
  display: none !important;
}

.railMeta {
  display: grid;
  gap: 1px;
  background: var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 10px
}

.railMeta > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--card)
}

.railMeta > div .muted {
  font-size: 13px
}

.railMeta > div .strong {
  font-size: 14px;
  font-weight: 800;
  text-align: right
}

.muted {
  color: var(--sub)
}

.strong {
  font-weight: 950;
  color: var(--text)
}

.mainCol {
  min-width: 0
}

@media (min-width:900px) {
  .wrap {
    justify-content: center
  }

  .app.webShell {
    display: grid;
    grid-template-columns: 280px minmax(760px, 1fr) 300px;
    gap: 16px;
    align-items: start
  }

  .leftRail, .rightRail {
    display: block
  }

  #topbar {
    display: none !important
  }

  .chat {
    padding-bottom: 40px
  }

  .swipeBtns {
    position: static;
    background: none;
    padding: 0;
    justify-content: flex-start;
    margin-top: 16px
  }

  .swipeArea {
    padding-bottom: 0
  }

  .composer {
    position: sticky;
    bottom: 0
  }

  .composer .inner {
    width: 100%;
    max-width: none;
    padding: 0
  }
}

/* ---- Restored UI components ---- */
.menuBadge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--danger);
  color: var(--text);
  font-size: 11px;
  font-weight: 900;
  display: none;
  place-items: center;
  border: 1px solid rgba(0,0,0,.25)
}

.menuBadge.show {
  display: grid
}

.menuBadge.dot {
  min-width: 10px;
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px
}

.navBadge {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--danger);
  color: var(--text);
  font-size: 10px;
  font-weight: 900;
  display: none;
  place-items: center;
  border: 1px solid rgba(0,0,0,.25)
}

.navBadge.show {
  display: grid
}

.navBadge.dot {
  min-width: 10px;
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px
}

.leftRail {
  display: block;
  position: fixed;
  top: calc(var(--header-h, 72px) + 8px);
  left: 0;
  width: min(280px, 86vw);
  max-height: calc(100vh - var(--header-h, 72px) - 16px);
  max-height: calc(100dvh - var(--header-h, 72px) - 16px);
  overflow: auto;
  z-index: 15;
  transform: translateX(-120%);
  opacity: 0;
  pointer-events: none;
  transition: transform .2s ease, opacity .2s ease;
}

.leftRail.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
  z-index: 26;
}

.rightRail {
  display: none
}

@media (min-width:900px) {
  .leftRail {
    position: static;
    width: 100%;
    top: auto;
    left: auto;
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .leftRail.collapsed {
    display: none;
  }
  .leftRail.open {
    transform: none;
    opacity: 1;
  }
}

.railToggle {
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--sub);
  font-weight: 700;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  margin-top: 2px
}

.railToggle:hover {
  background: rgba(255,255,255,.06);
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,12,18,.65);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  z-index: 50;
  padding: 18px
}

.overlayCard {
  width: min(520px, 92vw);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  display: grid;
  gap: 12px
}

.overlayList {
  display: grid;
  gap: 8px;
  color: var(--sub)
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: #101422;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
  z-index: 60;
  max-width: 80vw;
  text-align: center
}

.statusBadge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 800
}

.statusBadge.ok {
  background: rgba(46,204,113,.18);
  color: #baf2cf;
  border-color: rgba(46,204,113,.45)
}

.statusBadge.muted {
  background: rgba(255,255,255,.06);
  color: var(--sub)
}

.statusDot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(47,128,237,.8);
  display: inline-block
}

.miniBtn {
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
  font-size: 12px
}

.miniBtn.ok {
  border-color: rgba(46,204,113,.45);
  color: #baf2cf
}

.miniBtn.danger {
  border-color: rgba(255,90,95,.45);
  color: #ffb3b6
}

.chatActions {
  display: flex;
  align-items: center;
  gap: 8px
}

.progressMeta {
  display: grid;
  gap: 8px;
  margin-top: 12px
}

.tip {
  color: var(--sub);
  font-size: 13px;
  line-height: 1.5;
  margin-top: 10px
}

.progressTrack {
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
  overflow: hidden
}

.progressFill {
  height: 100%;
  background: linear-gradient(90deg, rgba(47,128,237,.85), rgba(46,204,113,.65));
  width: 0%;
  border-radius: 999px
}

.filterPanel {
  margin-top: 12px;
  display: grid;
  gap: 12px
}

.filterBody {
  margin-top: 14px;
  display: grid;
  gap: 10px
}

.filterBody.hidden {
  display: none
}

.swipeCard {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  min-height: 320px;
  padding: 18px;
  animation: swipeFloat 4s ease-in-out infinite;
}

@media (min-width:900px) {
  .swipeCard {
    min-height: 440px;
    padding: 22px;
  }
}

.swipeCard.dragging {
  animation: none;
}

.swipeHead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px
}

.swipeBadges {
  display: grid;
  gap: 6px;
  justify-items: end
}

.fitBadge {
  font-size: 11px;
  padding: 5px 8px
}

.swipeTitle {
  font-weight: 950;
  font-size: 22px;
  line-height: 1.15
}

.swipeSubtitle {
  color: var(--sub);
  margin-top: 6px
}

.swipeHighlights {
  margin-top: 12px;
  display: grid;
  gap: 6px
}

.swipePills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px
}

.swipeList {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 6px
}

.swipeList li::before {
  content: "•";
  color: var(--sub);
  margin-right: 6px
}

.tagRow {
  margin-top: 12px;
  display: grid;
  gap: 8px
}

.tagList {
  display: flex;
  flex-wrap: wrap;
  gap: 8px
}

.tagPill {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  font-size: 12px;
  font-weight: 800;
  color: var(--sub)
}

.matchProfile {
  padding: 0;
  overflow: hidden;
}

.matchHero {
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  background: linear-gradient(135deg, rgba(47,128,237,.25), rgba(47,128,237,0));
  border-bottom: 1px solid var(--line);
}

.matchAvatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #1a1f35;
  color: var(--text);
  display: grid;
  place-items: center;
  font-weight: 900;
}

.matchBody {
  padding: 16px;
}

.matchMeta {
  margin-top: 6px;
  color: var(--sub);
  font-size: 12px;
  font-weight: 700
}

.companyPreview {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #0f1320;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  margin: 12px 16px 0;
}

.companyLogo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  display: grid;
  place-items: center;
  font-weight: 900;
}

.reviewList {
  display: grid;
  gap: 12px
}

.reviewItem {
  display: grid;
  gap: 8px
}

.stars {
  color: #ffd166;
  font-weight: 900
}

.strength {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255,255,255,.03);
  display: grid;
  gap: 8px
}

.strengthTrack {
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
  overflow: hidden
}

.strengthFill {
  height: 100%;
  width: 0%;
  border-radius: 999px
}

.strengthFill.level-1 { background: rgba(255,90,95,.7); }
.strengthFill.level-2 { background: rgba(255,209,102,.85); }
.strengthFill.level-3 { background: rgba(46,204,113,.85); }

.wizardProgress {
  display: grid;
  gap: 8px;
  margin: 10px 0 12px
}

.wizardProgress .track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
  overflow: hidden;
}

.wizardProgress .bar {
  height: 100%;
  background: linear-gradient(90deg, rgba(47,128,237,.85), rgba(46,204,113,.65));
  width: 0%;
  border-radius: 999px
}

.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  margin: 10px 0 6px;
}

.segBtn {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--sub);
  font-weight: 800;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.segBtn:hover {
  border-color: rgba(47,128,237,.35);
  color: var(--text)
}

.segBtn.active {
  background: var(--accent);
  color: var(--text);
  border-color: transparent
}

.checklist {
  margin-top: 12px;
  display: grid;
  gap: 8px
}

.checkItem {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--sub);
  font-size: 13px;
  font-weight: 700
}

.checkDot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 11px;
  color: var(--sub);
  background: rgba(255,255,255,.02)
}

.checkItem.done {
  color: var(--text)
}

.checkItem.done .checkDot {
  border-color: rgba(46,204,113,.5);
  color: #baf2cf;
  background: rgba(46,204,113,.18)
}

@keyframes swipeFloat {
  0% {transform: translateY(0) rotate(0deg);}
  50% {transform: translateY(-6px) rotate(0.4deg);}
  100% {transform: translateY(0) rotate(0deg);}
}


/* ---- Layout stability overrides (desktop) ---- */
@media (min-width:900px) {
  .webShell {
    max-width: 100%;
    padding: 16px var(--shell-pad);
  }

  .app.webShell {
    display: grid;
    grid-template-columns: var(--rail-w) minmax(0, 1fr) var(--rail-w);
    gap: 16px;
    align-items: start;
  }

  .landingLayout {
    grid-template-columns: var(--rail-w) minmax(0, 1fr) var(--rail-w);
  }

  .landingLayout .rightRail {
    display: block !important;
    visibility: hidden;
    pointer-events: none;
  }

  .leftRail {
    position: static;
    width: var(--rail-w);
    min-width: var(--rail-w);
    max-width: var(--rail-w);
    justify-self: start;
    transform: none !important;
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    max-height: none;
    overflow: visible;
    grid-column: 1;
    z-index: 10;
  }

  .leftRail.collapsed {
    display: block;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }

  .leftRail.open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  .rightRail {
    position: static;
    display: block;
    width: var(--rail-w);
    min-width: var(--rail-w);
    max-width: var(--rail-w);
    grid-column: 3;
  }

  .mainCol {
    justify-self: center;
    grid-column: 2;
    width: 100%;
    max-width: 980px;
  }
}
