
/* Shared CrewW website surfaces. Feature-specific layouts stay in their own files. */
:root {
  --ui-bg: #0b0c10;
  --ui-panel: #121419;
  --ui-raised: #1c1f26;
  --ui-text: #f5f0e8;
  --ui-muted: #9d9a94;
  --ui-line: #d7c6a51c;
  --ui-blue: var(--ui-accent);
  --ui-ease: cubic-bezier(.22,.75,.25,1);
  --ui-spring: cubic-bezier(.22,1,.36,1);
  --ui-fast: 150ms;
  --ui-duration: 280ms;
  --nav-height: 68px;
  --nav-bottom: max(14px,env(safe-area-inset-bottom));
  --nav-space: calc(var(--nav-height) + var(--nav-bottom) + 22px);
  --bg: var(--ui-bg);
  --panel: var(--ui-panel);
  --panel2: var(--ui-raised);
  --text: var(--ui-text);
  --muted: var(--ui-muted);
  --line: var(--ui-line);
  --violet: var(--ui-blue);
  --pink: #ff375f;
  --radius: 22px;
  --nav-count: 5;
  --ui-accent: #c9ac7b;
  --ui-accent-ink: #1b1710;
  --ui-display-font: Georgia,'Times New Roman',serif;
  --ui-shadow: 0 10px 32px #00000016;
  --ui-focus: color-mix(in srgb,var(--ui-accent),transparent 78%);
  color-scheme: dark;
}
body {
  margin: 0;
  background: radial-gradient(ellipse at 80% 0%,#b7935010,transparent 48%),var(--ui-bg);
  color: var(--ui-text);
  font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: .005em;
}
body.theme-light {
  --ui-bg: #f5f2ec;
  --ui-panel: #fffdf8;
  --ui-raised: #eae5dc;
  --ui-text: #25231f;
  --ui-muted: #706a61;
  --ui-line: #74603b26;
  color-scheme: light;
  --ui-accent: #8c6834;
  --ui-accent-ink: #ffffff;
  --ui-shadow: 0 10px 32px #6f542c0a;
}
*,*::before,*::after {
  box-sizing: border-box;
}
button,input,textarea,select {
  font: inherit;
}
button {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible {
  outline: 2px solid var(--ui-accent);
  outline-offset: 3px;
}
button:disabled {
  cursor: default;
  opacity: .45;
}
button svg {
  flex-shrink: 0;
  vertical-align: middle;
}
img,video {
  max-width: 100%;
}
[hidden] {
  display: none!important;
}
.liquid {
  background: linear-gradient(145deg,#ffffff04,transparent 65%),var(--ui-panel);
  border: 1px solid var(--ui-line);
  box-shadow: 0 12px 36px #00000014;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.field {
  background: var(--ui-bg);
  border: 1px solid var(--ui-line);
  border-radius: 14px;
  color: var(--ui-text);
  min-height: 46px;
  transition: border-color var(--ui-fast),box-shadow var(--ui-fast);
}
.primary-btn {
  background: linear-gradient(115deg,var(--ui-accent),color-mix(in srgb,var(--ui-accent),#fff 20%));
  border: 0;
  color: var(--ui-accent-ink);
  box-shadow: inset 0 1px #ffffff38,0 6px 18px #0000001f;
  border-radius: 12px;
  min-height: 44px;
  font-weight: 650;
  transition: transform 180ms var(--ui-ease),filter 180ms ease;
}
.soft-btn {
  background: linear-gradient(145deg,#ffffff05,transparent),var(--ui-raised);
  border: 1px solid var(--ui-line);
  box-shadow: none;
  border-radius: 12px;
  min-height: 42px;
  font-weight: 600;
  color: var(--ui-text);
  transition: background-color var(--ui-fast),border-color var(--ui-fast),transform var(--ui-fast) var(--ui-ease);
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
  width: 40px;
  height: 40px;
  padding: 8px;
  color: var(--ui-text);
  border-radius: 50%;
  transition: background var(--ui-fast),opacity var(--ui-fast),transform var(--ui-fast) var(--ui-ease);
}
.icon-btn svg {
  width: 24px;
  height: 24px;
}
.avatar {
  background: #282b2f;
  border: 1px solid var(--ui-line);
}
.fallback {
  background: linear-gradient(145deg,#3d3b36,#20232a);
  font-weight: 500;
  color: #e9dec9;
}
.muted {
  color: var(--ui-muted);
}
.topbar {
  height: 76px;
  padding: 0 24px;
  background: var(--ui-bg);
  border-bottom: 1px solid var(--ui-line);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  display: flex;
  gap: 24px;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 20;
}
.topbar .brand {
  font-size: 29px;
  letter-spacing: -.9px;
  flex: none;
  color: var(--ui-text);
  position: static;
  transform: none;
  font-family: var(--ui-display-font);
  font-weight: 400;
  gap: 8px;
}
.brand-mark {
  display: none;
}
.brand-word {
  font-weight: 400;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
}
.topbar .brand-word span {
  color: var(--ui-accent);
  font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  font-weight: 600;
  font-size: 9px;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.top-search {
  max-width: 320px;
  flex: 1;
}
.top-search input {
  min-height: 38px;
  background: var(--ui-panel);
  border: 1px solid var(--ui-line);
  border-radius: 14px;
}
.topbar .count-dot {
  min-width: 14px;
  height: 14px;
  top: 1px;
  right: 1px;
  background: #ff3156;
  border: 2px solid var(--ui-bg);
  font-size: 8px;
}
.app {
  max-width: 1240px;
  margin: auto;
  padding: 0 24px;
}
.layout {
  display: grid;
  grid-template-columns: 190px minmax(0,550px) minmax(180px,260px);
  gap: 32px;
  justify-content: center;
  padding: 28px 0 var(--nav-space);
}
.sidebar {
  top: 88px;
}
.nav-card {
  background: transparent;
  border: 0;
  padding: 0;
  border-radius: 0;
}
.nav-item {
  min-height: 50px;
  padding: 12px 14px;
  font-size: 14px;
  gap: 14px;
  color: var(--ui-muted);
  border-radius: 14px;
  box-shadow: none;
  transition: background 180ms ease,color 180ms ease;
  font-weight: 450;
  border: 1px solid transparent;
}
.nav-item:hover {
  transform: none;
  background: #c9ac7b0a;
  color: var(--ui-text);
}
.nav-item.active {
  background: linear-gradient(110deg,#c9ac7b1c,#c9ac7b05);
  box-shadow: inset 2px 0 var(--ui-accent);
  font-weight: 600;
  border-color: #c9ac7b30;
  color: var(--ui-text);
}
.nav-icon svg {
  width: 25px;
  height: 25px;
}
.right-rail {
  top: 88px;
}
.right-rail .surface {
  background: linear-gradient(145deg,#ffffff03,transparent),var(--ui-panel);
  border: 1px solid var(--ui-line);
  padding: 20px;
  border-radius: 22px;
}
.sidebar>.side-profile {
  background: var(--ui-panel);
  border: 1px solid var(--ui-line);
  padding: 14px 12px;
  border-radius: 18px;
}
.main {
  min-width: 0;
  min-height: 70vh;
}
.main>.page-title {
  padding: 0 4px;
}
.page-title h1 {
  font-size: 34px;
  letter-spacing: -.7px;
  font-family: var(--ui-display-font);
  font-weight: 400;
  line-height: 1.15;
}
.page-title p {
  font-size: 13px;
}
/* Five real destinations, one persistent indicator. Selection animates without layout work. */
.bottom-nav {
  position: fixed;
  z-index: 35;
  left: 50%;
  bottom: var(--nav-bottom);
  width: min(calc(100% - 40px),490px);
  height: var(--nav-height);
  min-height: 0;
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 5px;
  border: 1px solid #d8c49f38;
  border-radius: 26px;
  background: rgba(20,22,27,.92);
  box-shadow: inset 0 1px #fff1,0 12px 40px #0008;
  backdrop-filter: blur(14px) saturate(115%);
  -webkit-backdrop-filter: blur(14px) saturate(115%);
  transform: translateX(-50%);
  touch-action: none;
  user-select: none;
  isolation: isolate;
  transition: transform 280ms var(--ui-spring),opacity var(--ui-fast);
  border-color: #d8c49f38;
  overflow: hidden;
}
.bottom-nav button {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  min-width: 0;
  min-height: 44px;
  width: auto;
  height: auto;
  display: flex;
  place-items: center;
  border: 0;
  border-radius: 21px;
  background: transparent!important;
  box-shadow: none;
  color: #b5b4b2;
  padding: 0;
  transform: none!important;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: color 180ms ease;
}
.bottom-nav button svg {
  width: 24px;
  height: 24px;
  transition: transform var(--ui-fast) var(--ui-ease);
}
.bottom-nav button:active svg {
  transform: scale(.89);
}
.bottom-nav button:focus-visible {
  outline-offset: -2px;
}
.bottom-nav .avatar {
  width: 25px;
  height: 25px;
  font-size: 12px;
  border-radius: 50%;
  object-fit: cover;
}
.bottom-nav .liquid-selection {
  position: absolute;
  z-index: 0;
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: calc((100% - 10px)/var(--nav-count,5));
  border-radius: 21px;
  background: linear-gradient(135deg,#f4eee3,#d9cbb2);
  box-shadow: inset 0 1px #ffffffa1,0 3px 9px #0003;
  pointer-events: none;
  transition: transform 340ms var(--ui-spring),scale 300ms var(--ui-spring),opacity 150ms ease;
  scale: var(--selection-stretch,1) 1;
}
.bottom-nav.is-dragging .liquid-selection {
  transition: none;
  background: #e5d6bb;
}
.crew-nav-dot {
  position: absolute;
  right: calc(50% - 18px);
  bottom: 20px;
  width: 6px;
  height: 6px;
  background: #ff2451;
  border-radius: 50%;
  border: 1px solid #191b20;
}
.bottom-nav.nav-compact {
  transform: translateX(-50%) scaleX(.94);
}
.bottom-nav.nav-compact button svg,.bottom-nav.nav-compact button .avatar {
  transform: scaleX(1.06383);
}
.bottom-nav.nav-compact button:active svg {
  transform: scaleX(1.06383) scale(.89);
}
.bottom-nav button[data-route=reels].active svg rect {
  fill: currentColor;
  stroke: currentColor;
}
.bottom-nav button[data-route=reels].active svg path {
  fill: #eee5d4;
  stroke: #eee5d4;
}
.theme-light .bottom-nav {
  background: #fffdf8ee;
  border-color: #a1865640;
  box-shadow: inset 0 1px #fff,0 10px 32px #66542e20;
}
.theme-light .bottom-nav button {
  color: #11151a;
}
.theme-light .liquid-selection {
  background: linear-gradient(135deg,#292824,#39352d);
}
.theme-light .bottom-nav button[data-route=reels].active svg path {
  fill: #2b2924;
  stroke: #2b2924;
}
body.chat-open-mobile .bottom-nav {
  display: none;
}
body[data-view=reels] .topbar {
  display: none;
}
body[data-view=reels] .sidebar,body[data-view=reels] .right-rail {
  display: none;
}
body[data-view=reels] .app {
  padding: 0;
  max-width: none;
}
body[data-view=reels] .layout {
  display: block;
  padding: 0;
}
body[data-view=reels] .main {
  height: 100dvh;
  min-height: 0;
}
body:has(.reels-page.is-peeking) .bottom-nav {
  opacity: 0;
  pointer-events: none;
}
/* Feed */
.feed-card {
  container-type: inline-size;
  background: var(--ui-panel);
  border: 0;
  border-bottom: 1px solid var(--ui-line);
  border-radius: 0;
  margin: 0;
  animation: none;
  box-shadow: none;
  backdrop-filter: none;
  overflow: hidden;
  width: auto;
  max-width: none;
}
.feed-card .post-media-wrap {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  height: 687.5px;
  height: min(125cqw,700px);
  max-height: 700px;
  aspect-ratio: auto;
  background: #000;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.feed-card .post-media {
  width: 100%;
  height: 100%;
  flex: 0 0 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  max-height: 100%;
  scroll-snap-align: start;
}
.composer {
  display: none;
}
/* Inbox */
body[data-view=messages] .topbar {
  display: none;
}
body[data-view=messages] .layout {
  grid-template-columns: 190px minmax(0,860px);
  padding-top: 16px;
}
body[data-view=messages] .right-rail {
  display: none;
}
.chat-shell.dm-inbox {
  border: 1px solid var(--ui-line);
  background: var(--ui-panel);
  box-shadow: 0 16px 50px #0000001c;
  border-radius: 24px;
  height: calc(100dvh - var(--nav-space) - 88px);
  grid-template-columns: 320px minmax(0,1fr);
}
.chat-shell.dm-inbox .chat-list {
  background: var(--ui-panel);
  padding: 0;
  gap: 0;
  border-right: 1px solid var(--ui-line);
  overflow-x: hidden;
}
.dm-mobile-header {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  gap: 12px;
  border-bottom: 1px solid var(--ui-line);
  background: var(--ui-bg);
}
.dm-mobile-header strong {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: inherit;
}
.dm-mobile-header button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--ui-text);
  border-radius: 50%;
}
.dm-mobile-header svg {
  width: 24px;
  height: 24px;
}
.dm-inbox .chat-list-search {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--ui-line);
  border-radius: 12px;
  margin: 12px 16px 10px;
  width: calc(100% - 32px);
  font-size: 16px;
  background: var(--ui-raised);
}
.dm-messages-title {
  padding: 16px 20px 8px;
}
.dm-messages-title strong {
  font-size: 16px;
  font-family: inherit;
  font-weight: 700;
}
.dm-messages-title button {
  font-size: 12px;
  color: var(--ui-accent);
}
.dm-inbox .chat-filters {
  padding: 8px 16px;
  gap: 8px;
}
.dm-inbox .chat-filter {
  font-size: 12px;
  min-height: 34px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--ui-line);
  color: var(--ui-muted);
  background: transparent;
}
.dm-inbox .conversation-rows {
  display: block;
  padding: 4px 6px;
  overflow-y: auto;
  min-height: 0;
  scrollbar-width: thin;
}
.dm-inbox .chat-row {
  min-height: 76px;
  padding: 10px 12px;
  gap: 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  margin-bottom: 0;
}
.dm-inbox .chat-row .avatar {
  width: 50px;
  height: 50px;
  box-shadow: none;
  flex-shrink: 0;
  object-fit: cover;
}
.dm-inbox .chat-summary strong {
  font-size: 14px;
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dm-inbox .chat-preview {
  font-size: 13px;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dm-inbox .chat-kind {
  display: none;
}
.dm-inbox .chat-list-actions {
  padding: 12px 16px;
}
.dm-inbox .notes-title {
  display: none;
}
.dm-inbox .chat-headline {display:flex;align-items:baseline;gap:8px;min-width:0;}
.dm-inbox .chat-headline strong {flex:1;}
.dm-inbox .chat-headline .chat-delivery {flex:none;margin:0;max-width:48%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;}
.dm-inbox .chat-row.has-unread .chat-preview {color:var(--ui-text);font-weight:600;}
.dm-inbox .chat-row:focus-visible {outline:2px solid var(--ui-accent);outline-offset:-2px;}
/* Search, general sheets, and loading surfaces */
.crew-search-header {
  padding: 18px 0;
}
.crew-search-header h1 {
  font-size: 36px;
  margin: 0;
  font-family: var(--ui-display-font);
  font-weight: 400;
  letter-spacing: -.7px;
}
.crew-section-eyebrow{display:block;margin-bottom:10px;color:var(--ui-accent);font-size:10px;font-weight:600;letter-spacing:.15em;text-transform:uppercase}
.crew-search-intro{margin:10px 0 25px;color:var(--ui-muted);font-size:13px;line-height:1.6}
.search-results[aria-busy=true]:empty::before{content:'Searching your crew…';display:block;padding:30px 16px;color:var(--ui-muted);font-size:13px}
.crew-search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--ui-panel);
  border-radius: 18px;
  padding: 0 16px;
  min-height: 54px;
  border: 1px solid var(--ui-line);
}
.crew-search-field svg {
  width: 20px;
  height: 20px;
  color: var(--ui-muted);
}
.crew-search-field input {
  border: 0;
  background: none;
  outline: none;
  flex: 1;
  min-width: 0;
  color: inherit;
  padding: 10px 0;
}
.crew-search-field input::-webkit-search-cancel-button {
  display: none;
}
.crew-search-field button {
  width: 40px;
  height: 44px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ui-muted);
}
.search-results {
  gap: 0;
}
.person-card {
  background: var(--ui-panel);
  border: 1px solid var(--ui-line);
  box-shadow: none;
  padding: 14px 16px;
  gap: 12px;
  border-radius: 18px;
  margin-bottom: 8px;
  min-width: 0;
  transition: border-color 160ms ease,background-color 160ms ease;
}
.person-card .avatar {
  width: 48px;
  height: 48px;
}
.person-card .user-button {
  font-size: 14px;
}
.person-card .soft-btn {
  font-size: 12px;
  padding: 7px 13px;
}
.crew-search-recents {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  font-size: 14px;
}
.crew-search-recents button {
  border: 0;
  background: none;
  color: var(--ui-accent);
}
.crew-recent {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: none;
  border: 0;
  color: inherit;
  padding: 16px 12px;
  text-align: left;
  border-bottom: 1px solid var(--ui-line);
}
.crew-recent svg {
  width: 20px;
  height: 20px;
  color: var(--ui-muted);
}
.crew-recent span {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.crew-recent small {
  color: var(--ui-muted);
}
.modal-backdrop {
  background: #0009;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 20px;
  animation: crew-fade-in 180ms ease;
}
.modal {
  background: linear-gradient(140deg,#ffffff04,transparent),var(--ui-panel);
  border: 1px solid var(--ui-line);
  border-radius: 28px;
  box-shadow: inset 0 1px #ffffff08,0 24px 90px #0007;
  max-height: calc(100dvh - 40px);
  animation: crew-sheet-in 260ms var(--ui-spring);
  color: var(--ui-text);
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.modal-head h2 {
  font-size: 18px;
}
.social-overlay {
  background: #0008;
  backdrop-filter: none!important;
  -webkit-backdrop-filter: none!important;
}
.social-sheet {
  background: linear-gradient(140deg,#ffffff04,transparent),var(--ui-panel);
  border: 1px solid var(--ui-line);
  border-radius: 28px 28px 0 0;
  animation: crew-sheet-in 300ms var(--ui-spring);
}
.social-sheet,.note-sheet {
  transition: transform 220ms var(--ui-spring);
}
.social-sheet.is-sheet-dragging,.note-sheet.is-sheet-dragging {
  animation: none!important;
  transition: none!important;
  will-change: transform;
}
.social-sheet-head h2 {
  font-size: 16px;
}
.social-drag-handle {
  width: 36px;
  height: 4px;
  border-radius: 4px;
  background: #ad9a79;
  margin: 10px auto 15px;
  cursor: grab;
  touch-action: none;
}
.social-overlay.is-closing {
  pointer-events: none;
}
.social-overlay.is-closing .social-sheet {
  animation: crew-sheet-out 180ms ease forwards;
}
.toast-stack {
  bottom: calc(var(--nav-space) + 8px);
}
.toast {
  background: var(--ui-raised);
  border: 1px solid #c9ac7b33;
  font-size: 13px;
  box-shadow: 0 6px 24px #0003;
  border-radius: 16px;
  max-width: min(440px,calc(100vw - 32px));
  overflow-wrap: anywhere;
  padding: 13px 18px;
  line-height: 1.5;
}
.empty-state {
  background: none;
  border: 0;
  font-size: 14px;
}
.crew-skeleton {
  height: 16px;
  border-radius: 6px;
  background: var(--ui-raised);
  animation: crew-pulse 1.5s ease-in-out infinite;
}
.crew-feed-loading {
  display: grid;
  gap: 16px;
  padding-top: 18px;
}
.crew-feed-loading .crew-skeleton:nth-child(2) {
  height: 380px;
  border-radius: 22px;
}
.crew-dialog-open {
  overflow: hidden;
}
@keyframes crew-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes crew-sheet-in {
  from {
    opacity: .3;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes crew-sheet-out {
  to {
    opacity: 0;
    transform: translateY(36px);
  }
}
@keyframes crew-pulse {
  50% {
    opacity: .45;
  }
}
/* Desktop uses a persistent sidebar and content columns, not a phone frame. */
.link-btn {
  color: var(--ui-accent);
}
.bottom-nav button.active {
  color: #25241f;
}
.crew-nav-label {
  font-size: 9px;
  line-height: 1;
  letter-spacing: .01em;
  font-weight: 550;
  pointer-events: none;
}
.theme-light .bottom-nav button.active {
  color: #fff8ec;
}
.theme-light .bottom-nav button[data-route=profile].active .avatar {
  outline-color: #fff8ec;
}
.dm-inbox .chat-filter.active {
  background: var(--ui-accent);
  color: var(--ui-accent-ink);
  border-color: var(--ui-accent);
  font-weight: 650;
}
.dm-inbox .chat-row:hover,.dm-inbox .chat-row.selected {
  background: #c9ac7b0b;
  border-color: #c9ac7b20;
}
.dm-inbox .chat-window>.empty-state {
  margin: auto;
  max-width: 310px;
  font-family: var(--ui-display-font);
  font-size: 24px;
  line-height: 1.4;
  color: var(--ui-muted);
}
.right-rail .section-head h3 {
  font-family: var(--ui-display-font);
  font-size: 19px;
  font-weight: 400;
  letter-spacing: -.3px;
}
.right-rail .section-head>span,.sidebar>.side-profile>span {
  display: none;
}
.right-rail .surface:last-child {
  font-size: 11px;
  line-height: 1.8;
  background: transparent;
  border: 0;
  padding: 4px 8px;
}
.brand-word span {
  font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  font-size: 9px;
  letter-spacing: .17em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ui-accent);
}
.auth-card .brand {
  font-family: var(--ui-display-font);
  font-size: 34px;
  font-weight: 400;
}
.theme-light .primary-btn {
  background: var(--ui-accent);
  color: var(--ui-accent-ink);
}
.right-rail .section-head .link-btn {
  white-space: nowrap;
  flex-shrink: 0;
  padding: 4px 0;
  font-size: 11px;
}
.right-rail .section-head {
  gap: 8px;
  align-items: baseline;
}
@media(min-width:761px) {
  :root {
    --desktop-sidebar: 88px;
    --nav-space: 24px;
  }
  .main {
    padding: 0;
  }
  .topbar,body[data-view=reels] .topbar,body[data-view=messages] .topbar {
    display: flex;
    position: fixed;
    inset: 0 auto auto 0;
    width: var(--desktop-sidebar);
    height: 90px;
    padding: 24px;
    border: 0;
    z-index: 50;
    background: var(--ui-bg);
  }
  .topbar .brand {
    font-size: 23px;
    white-space: nowrap;
    letter-spacing: -.7px;
  }
  .top-search,.top-actions {
    display: none;
  }
  .topbar .brand-word {
    font-size: 0;
  }
  .topbar .brand-word:before {
    content: 'C';
    font-size: 34px;
    font-family: var(--ui-display-font);
    font-weight: 400;
    color: var(--ui-accent);
  }
  .app,body[data-view=reels] .app {
    margin: 0;
    max-width: none;
    padding: 0 28px 0 calc(var(--desktop-sidebar) + 28px);
  }
  .layout,body[data-view=messages] .layout,body[data-view=reels] .layout {
    display: grid;
    grid-template-columns: minmax(0,680px);
    gap: 40px;
    justify-content: center;
    margin: 0;
    padding: 40px 0 32px;
  }
  .sidebar,body[data-view=reels] .sidebar,body[data-view=messages] .sidebar {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0 auto 0 0;
    top: 0;
    width: var(--desktop-sidebar);
    height: 100dvh;
    max-height: none;
    padding: 104px 12px 22px;
    border-right: 1px solid var(--ui-line);
    background: linear-gradient(180deg,#b7935006,transparent 50%),var(--ui-bg);
    overflow-x: hidden;
    overflow-y: auto;
    z-index: 45;
    gap: 24px;
    overscroll-behavior: contain;
  }
  .nav-card {
    display: grid;
    gap: 7px;
  }
  .nav-item {
    min-height: 52px;
    padding: 13px 16px;
    font-size: 0;
    gap: 16px;
    white-space: nowrap;
    border-radius: 16px;
  }
  .nav-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 26px;
    height: 26px;
  }
  .nav-icon svg {
    transition: transform 160ms var(--ui-ease);
  }
  .nav-item:hover .nav-icon svg {
    transform: scale(1.06);
  }
  .nav-item:active .nav-icon svg {
    transform: scale(.94);
  }
  .sidebar>.side-profile {
    display: none;
  }
  .right-rail,body[data-view=reels] .right-rail {
    display: none;
  }
  .bottom-nav {
    display: none!important;
  }
  body[data-view=messages] .layout {
    grid-template-columns: minmax(0,1200px);
    padding: 20px 0 0;
  }
  body[data-view=messages] .main {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }
  body[data-view=messages] .main>.page-title {
    display: none;
  }
  body[data-view=messages] .main>.dm-mobile-header {
    flex: none;
  }
  .chat-shell.dm-inbox {
    flex: 1;
    height: auto;
    max-height: none;
    min-height: 0;
    overflow: hidden;
    grid-template-columns: minmax(260px,340px) minmax(0,1fr);
    border-block: 0;
    border: 1px solid var(--ui-line);
    border-radius: 24px;
    margin-bottom: 20px;
  }
  body.chat-open-mobile .app {
    height: auto;
    overflow: visible;
  }
  .chat-shell.dm-inbox .chat-window {
    display: flex;
    min-width: 0;
  }
  .chat-shell.dm-inbox .chat-list {
    display: flex;
    min-width: 0;
  }
  body[data-view=profile] .layout,body[data-view=search] .layout,body[data-view=settings] .layout {
    grid-template-columns: minmax(0,960px);
  }
  body[data-view=profile] .right-rail,body[data-view=search] .right-rail,body[data-view=settings] .right-rail {
    display: none;
  }
  body[data-view=reels] .layout {
    padding: 24px 0;
    display: block;
  }
  body[data-view=reels] .main {
    height: calc(100dvh - 48px);
    min-height: 0;
    max-width: 960px;
    margin: auto;
  }
  .reels-page {
    position: relative;
    inset: auto;
    left: auto;
    right: auto;
    transform: none;
    width: auto;
    height: 100%;
    margin: auto;
    border: 1px solid var(--ui-line);
    border-radius: 26px;
    aspect-ratio: 9/16;
    max-width: 100%;
    max-height: 100%;
    box-shadow: 0 20px 60px #0005;
  }
  .install-toast {
    left: calc((100vw + var(--desktop-sidebar))/2);
    bottom: 32px;
  }
  .modal {
    width: min(640px,calc(100vw - 64px));
  }
  .social-sheet {
    max-width: 600px;
    margin-inline: auto;
    border-radius: 24px 24px 0 0;
    animation: crew-sheet-in 300ms var(--ui-spring);
  }
  .topbar .brand-word span {
    display: none;
  }
}
@media(min-width:1200px) {
  :root {
    --desktop-sidebar: 252px;
  }
  .topbar {
    padding-inline: 24px;
  }
  .topbar .brand-word {
    font-size: 30px;
  }
  .topbar .brand-word:before {
    content: none;
  }
  .nav-item {
    font-size: 14px;
  }
  .sidebar>.side-profile {
    display: flex;
    margin-top: auto;
  }
  .layout {
    grid-template-columns: minmax(0,600px) 260px;
  }
  .right-rail {
    display: block;
  }
  .topbar .brand-word span {
    display: inline;
  }
}
@media(prefers-reduced-motion:reduce) {
  .nav-icon svg {
    transition: none!important;
  }
}
@media(max-width:760px) {
  :root {
    --nav-height: 68px;
  }
  .topbar {
    height: calc(72px + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) 18px 0;
    gap: 8px;
    box-sizing: border-box;
  }
  .topbar .brand {
    font-size: 29px;
    letter-spacing: -.9px;
    min-width: 0;
    flex: 1;
    position: static;
    transform: none;
  }
  .top-search,.top-actions>.avatar,.top-actions>.desktop-only {
    display: none;
  }
  .top-actions {
    gap: 7px;
  }
  .topbar .icon-btn {
    width: 34px;
    height: 36px;
    min-width: 34px;
    border: 1px solid var(--ui-line);
    background: var(--ui-panel);
  }
  .app {
    padding: 0;
  }
  .layout {
    display: block;
    padding: 0 0 var(--nav-space);
    margin: 0;
  }
  .sidebar,.right-rail {
    display: none;
  }
  .main {
    min-height: calc(100dvh - 72px - var(--nav-space));
    padding: 0;
    margin: 0;
  }
  .main>.page-title,.main>.search-card,.main>.search-results,.main>.crew-search-header,.main>.crew-search-recents,.main>#searchHint {
    margin-inline: 16px;
  }
  .feed-card {
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    border: 0;
    border-bottom: 1px solid var(--ui-line);
  }
  .feed-card .post-media-wrap {
    border-radius: 0;
    height: min(125vw,75svh);
    height: min(125cqw,75svh);
    max-height: 75svh;
  }
  .bottom-nav {
    width: calc(100% - 36px);
    max-width: 470px;
  }
  .bottom-nav button svg {
    width: 24px;
    height: 24px;
  }
  .chat-shell.dm-inbox {
    height: calc(100dvh - var(--nav-space) - 84px);
    min-height: 0;
    border: 0;
    display: grid;
    grid-template-columns: minmax(0,1fr);
    width: 100%;
    border-radius: 0;
    background: var(--ui-bg);
  }
  .chat-shell.dm-inbox .chat-list {
    border: 0;
    width: 100%;
    padding: 0;
    background: var(--ui-bg);
  }
  .chat-shell.dm-inbox .chat-window {
    display: none;
  }
  .chat-shell[data-mobile-view=chat] .chat-list {
    display: none;
  }
  .chat-shell[data-mobile-view=chat] .chat-window {
    display: flex;
    height: 100%;
    min-height: 0;
  }
  .chat-open-mobile .chat-shell.dm-inbox {
    height: var(--crew-viewport-height,100dvh);
  }
  body[data-view=messages] .layout {
    padding: 0;
  }
  .dm-inbox .chat-list-head {
    display: none;
  }
  .chat-open-mobile .app {
    height: var(--crew-viewport-height,100dvh);
    overflow: hidden;
  }
  .modal-backdrop {
    padding: 0;
    align-items: end;
    background: #0009;
    animation: crew-fade-in 180ms ease;
  }
  .modal {
    width: 100%;
    max-height: calc(var(--crew-viewport-height,100dvh) - 16px);
    border-radius: 28px 28px 0 0;
    border-bottom: 0;
    padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
  }
  .person-card {
    flex-wrap: nowrap;
  }
  .person-card>.icon-btn {
    width: 34px;
    flex: none;
  }
  .person-card .soft-btn {
    padding-inline: 10px;
  }
  .toast-stack {
    left: 16px;
    right: 16px;
    bottom: calc(var(--nav-space) + 8px);
  }
  .toast {
    text-align: center;
  }
  .dm-mobile-header {
    padding-top: max(20px,env(safe-area-inset-top));
  }
}
@media(max-width:360px) {
  .bottom-nav.nav-compact {
    transform: translateX(-50%) scaleX(.97);
  }
  .bottom-nav.nav-compact button svg,.bottom-nav.nav-compact button .avatar {
    transform: scaleX(1.03093);
  }
  .bottom-nav {
    width: calc(100% - 24px);
  }
  .bottom-nav button svg {
    width: 23px;
    height: 23px;
  }
  .bottom-nav .avatar {
    width: 25px;
    height: 25px;
  }
  .dm-inbox .chat-row {
    padding-inline: 12px;
  }
  .topbar .brand {
    font-size: 26px;
    letter-spacing: -.9px;
  }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    scroll-behavior: auto!important;
  }
  .bottom-nav,.liquid-selection,.bottom-nav svg,.modal,.social-sheet,.note-sheet,.modal-backdrop,.crew-skeleton {
    animation: none!important;
    transition: none!important;
  }
}
.crew-account-actions {
  display: grid;
  gap: 10px;
}
.crew-account-actions button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  min-height: 48px;
}
.crew-account-actions svg {
  width: 23px;
  height: 23px;
}
.person-card .grow {
  min-width: 0;
}
.person-card .user-button strong,.person-card .user-button .muted {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.person-card .user-button>span {
  min-width: 0;
}
/* Shell controls and navigation geometry are owned here; feature chrome is owned by its stylesheet. */
@media (hover:hover) {
.icon-btn:hover:not(:disabled) {
  transform: none;
  background: var(--ui-raised);
}
.icon-btn:active {
  transform: scale(.92);
}
.soft-btn:hover:not(:disabled),.primary-btn:hover:not(:disabled) {
  transform: none;
  box-shadow: none;
  filter: brightness(1.08);
}
}
.soft-btn:active,.primary-btn:active {
  transform: scale(.98);
}
.bottom-nav button[data-route=home].active svg {
  stroke-width: 2.25;
}
.bottom-nav button[data-route=profile].active .avatar {
  outline: 1.5px solid #534735;
  outline-offset: 2px;
}
.nav-item .nav-icon .avatar {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  object-fit: cover;
}
.nav-item.active .nav-icon svg {
  stroke-width: 2.3;
}
.nav-item:focus-visible {
  outline-offset: -3px;
}
.topbar .brand {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 29px;
  letter-spacing: -.9px;
  font-family: var(--ui-display-font);
  font-weight: 400;
  gap: 8px;
}
.crew-menu-list {
  display: grid;
  gap: 4px;
}
.crew-menu-list button {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  padding: 13px 14px;
  text-align: left;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--ui-text);
  font-weight: 500;
  transition: background-color var(--ui-fast),transform var(--ui-fast) var(--ui-ease);
}
.crew-menu-list button svg {
  width: 25px;
  height: 25px;
  flex: none;
}
.crew-menu-list button:hover {
  background: var(--ui-raised);
}
.crew-menu-list button:active {
  opacity: .6;
}
.crew-menu-list button:last-child {
  margin-top: 4px;
  border-top: 1px solid var(--ui-line);
  border-radius: 0;
  color: #ff526d;
}
.crew-search-field:focus-within {
  border-color: var(--ui-accent);
  box-shadow: 0 0 0 3px var(--ui-focus);
}
.crew-search-field input:focus-visible {
  outline: none;
}
.crew-search-field button:focus-visible {
  outline-offset: 0;
}
.crew-recent:active,.person-card .user-button:active {
  opacity: .6;
}
@media(max-width:760px) {
  .topbar {
    height: calc(72px + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) 18px 0;
    gap: 8px;
  }
  .top-actions>.icon-btn {
    width: 34px;
    min-width: 34px;
  }
  .crew-search-header {
    padding-top: max(18px,env(safe-area-inset-top));
    padding-bottom: 8px;
  }
  .crew-search-recents {
    padding-block: 14px;
  }
  .modal {
    animation: crew-mobile-sheet-in 300ms var(--ui-spring);
    border-radius: 28px 28px 0 0;
    padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
  }
  .crew-menu-list button {
    min-height: 50px;
  }
}
@media(min-width:761px) {
  :root {
    --nav-count: 5;
    --desktop-sidebar: 88px;
  }
  .sidebar .nav-card {
    gap: 8px;
  }
  body[data-view=search] .main {
    max-width: 680px;
    width: 100%;
    margin-inline: auto;
  }
  .crew-search-header {
    padding-top: 0;
  }
}
@media(min-width:1440px) {
  :root {
    --desktop-sidebar: 264px;
  }
  .sidebar {
    padding-inline: 14px;
  }
  .nav-item {
    min-height: 50px;
  }
  .layout {
    gap: 44px;
  }
}
@keyframes crew-mobile-sheet-in {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}
@media(prefers-reduced-motion:reduce) {
  .icon-btn,.primary-btn,.soft-btn,.crew-menu-list button,.bottom-nav .liquid-selection {
    animation: none!important;
    transition: none!important;
  }
  .bottom-nav .liquid-selection {
    scale: 1;
  }
}
/* Shared form surfaces keep creation, search and account dialogs consistent. */
.area{background:var(--ui-bg);border:1px solid var(--ui-line);border-radius:14px;color:var(--ui-text)}
.field:focus,.area:focus,.top-search input:focus{border-color:var(--ui-accent);box-shadow:0 0 0 3px var(--ui-focus)}
.upload-zone{background:#c9ac7b04;border:1px dashed #c9ac7b66;border-radius:20px;color:var(--ui-text);min-height:180px}
.upload-zone:focus-within{outline:2px solid var(--ui-blue);outline-offset:3px}
.preview-strip img,.preview-strip video{border-radius:8px;background:#000}
.modal .form-stack{gap:14px}
.modal .modal-head h2{font-size:26px;line-height:1.3;letter-spacing:-.5px;font-family: var(--ui-display-font);font-weight: 400}
@media(min-width:761px){html{scrollbar-gutter:stable}}

@media(max-width:760px){.top-actions>button[aria-label="Switch between dark and light appearance"]{display:none}}

/* Call entry and small media-state transitions avoid layout animation. */
.call-card{animation:crew-call-enter .22s cubic-bezier(.22,1,.36,1)}
.ig-story-segment>span{transition:transform .08s linear}
[data-avatar][aria-busy=true]{opacity:.6;pointer-events:none}
@keyframes crew-call-enter{from{opacity:0;transform:translateY(10px) scale(.97)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.call-card{animation:none}.ig-story-segment>span{transition:none}}
