:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --lime: #c8ff24;
  --glass: rgba(76, 69, 64, .64);
  --glass-strong: rgba(72, 65, 61, .78);
  --line: rgba(255, 255, 255, .26);
  --text: #fff;
  --muted: rgba(255, 255, 255, .72);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { width: 100%; min-height: 100%; margin: 0; background: #050505; overflow: hidden; }
button, input { font: inherit; }
button { color: inherit; }

.viewport {
  width: 100vw;
  height: 100dvh;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 50%, #20211e 0, #090a09 55%, #030403 100%);
}

.scene {
  position: relative;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  background: #111;
}

.scene-background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; }
.night-shade { position: absolute; inset: 7.85cqh 0 3.7cqh; background: rgba(0, 0, 0, 0); pointer-events: none; transition: background-color .45s ease; z-index: 1; }
.scene.night .night-shade { background: rgba(0, 0, 0, .58); }

.menu-stage {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: min(100vw, 56.25dvh);
  height: 100%;
  margin-inline: auto;
  container-type: size;
  pointer-events: none;
}

.sidebar {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 15.7cqh;
  width: 50cqw;
  height: 71.4cqh;
  transform: translateX(-50%);
  border: .16cqw solid var(--line);
  border-radius: 4.5cqw;
  background: linear-gradient(150deg, rgba(118, 110, 101, .58), rgba(56, 51, 49, .75));
  box-shadow: inset 0 .1cqw 0 rgba(255,255,255,.13), 0 2.5cqw 6cqw rgba(0,0,0,.2);
  backdrop-filter: blur(2.2cqw) saturate(1.05);
  -webkit-backdrop-filter: blur(2.2cqw) saturate(1.05);
  transition: width .42s cubic-bezier(.2,.86,.28,1), height .42s cubic-bezier(.2,.86,.28,1), top .42s cubic-bezier(.2,.86,.28,1), border-radius .42s ease, background-color .4s ease;
  overflow: visible;
  pointer-events: auto;
}

.sidebar.collapsed { top: 18.6cqh; width: 12.8cqw; height: 63.5cqh; border-radius: 6.3cqw; }

.collapse-control {
  position: absolute;
  z-index: 20;
  right: -2.25cqw;
  top: 3.15cqw;
  width: 4.75cqw;
  aspect-ratio: 1;
  border: .12cqw solid rgba(0,0,0,.15);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f7f5f1;
  color: #171717;
  box-shadow: 0 .5cqw 1.6cqw rgba(0,0,0,.2);
  cursor: pointer;
  transition: transform .42s cubic-bezier(.2,.86,.28,1);
}
.collapse-control svg { width: 2.1cqw; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sidebar:not(.collapsed) .collapse-control { transform: rotate(180deg); }

.compact-menu { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; padding: 2.7cqw 0 2.7cqw; opacity: 0; transform: scale(.84); pointer-events: none; transition: opacity .18s ease, transform .32s ease; }
.sidebar.collapsed .compact-menu { opacity: 1; transform: scale(1); pointer-events: auto; transition-delay: .12s; }
.compact-brand, .compact-avatar { border: 0; cursor: pointer; }
.compact-brand { width: 8.5cqw; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 28%, #e0ff62, var(--lime) 58%, #a4d600 100%); color: #151813; box-shadow: 0 0 3.5cqw rgba(200,255,36,.42); transition: transform .32s cubic-bezier(.16,1.45,.42,1), box-shadow .3s ease; }
.bolt-logo { width: 78%; height: 78%; display: block; fill: currentColor; stroke: none; }
.compact-nav { flex: 1; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: space-evenly; padding: 1.4cqw 0 1cqw; }
.compact-nav button { position: relative; width: 7.5cqw; height: 7.5cqw; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; cursor: pointer; transition: transform .3s cubic-bezier(.16,1.55,.42,1), background-color .22s ease, box-shadow .22s ease; }
.compact-nav button.active { background: rgba(255,255,255,.13); outline: .12cqw solid rgba(255,255,255,.48); }
.compact-nav svg { width: 3.4cqw; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.compact-nav i { position: absolute; width: 1.75cqw; aspect-ratio: 1; border-radius: 50%; right: .45cqw; top: .25cqw; background: var(--lime); border: .28cqw solid rgba(73,66,61,.98); }
.compact-separator { width: 3.4cqw; height: .12cqw; background: rgba(255,255,255,.25); }
.compact-avatar { position: relative; width: 7.5cqw; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: #303236; color: var(--lime); outline: .18cqw solid rgba(255,255,255,.65); font-size: 3.7cqw; transition: transform .3s cubic-bezier(.16,1.5,.42,1); }
.compact-avatar i, .profile-avatar i { position: absolute; width: 2cqw; aspect-ratio: 1; border-radius: 50%; right: -.25cqw; bottom: -.1cqw; background: #40d6a0; border: .3cqw solid #f4f0e9; }

.expanded-shell { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; opacity: 1; transition: opacity .18s ease .12s; }
.sidebar.collapsed .expanded-shell { opacity: 0; pointer-events: none; transition-delay: 0s; }
.main-panel, .messages-panel { position: absolute; inset: 0; padding: 3.7cqw 2.7cqw 2.6cqw; transition: transform .5s cubic-bezier(.22,.8,.22,1), opacity .32s ease, filter .45s ease; }
.messages-panel { transform: translateX(105%); opacity: 0; filter: blur(1cqw); }
.sidebar.messages-open .main-panel { transform: translateX(-86%); opacity: 0; filter: blur(1.4cqw); }
.sidebar.messages-open .messages-panel { transform: translateX(0); opacity: 1; filter: blur(0); }

.brand-row { display: flex; align-items: center; gap: 2.1cqw; min-height: 8.3cqw; }
.brand-mark { width: 8.3cqw; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; color: #151813; background: radial-gradient(circle at 35% 28%, #e2ff64, var(--lime) 60%, #a4d600); box-shadow: 0 0 3.5cqw rgba(200,255,36,.34); transition: transform .32s cubic-bezier(.16,1.45,.42,1), box-shadow .3s ease; }
.brand-copy { display: flex; flex-direction: column; gap: .25cqw; }
.brand-copy strong { font-size: 3.65cqw; line-height: 1; }
.brand-copy small { color: var(--muted); font-size: 2.65cqw; }

.search-box { margin-top: 2.8cqw; height: 6.8cqw; border-radius: 3.4cqw; border: .12cqw solid rgba(255,255,255,.28); background: rgba(255,255,255,.08); display: flex; align-items: center; padding: 0 2cqw; gap: 1.4cqw; }
.search-box svg { flex: 0 0 auto; width: 3.1cqw; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; }
.search-box input { min-width: 0; flex: 1; border: 0; outline: 0; color: white; background: transparent; font-size: 2.8cqw; }
.search-box input::placeholder { color: rgba(255,255,255,.74); }
.search-box kbd { border: 0; border-radius: .9cqw; padding: .4cqw .65cqw; color: rgba(255,255,255,.72); background: rgba(255,255,255,.08); font-size: 2cqw; }
.section-label { margin: 2.6cqw 0 1cqw 1.5cqw; color: rgba(255,255,255,.66); font-size: 2cqw; letter-spacing: .18em; }
.workspace-label { margin-top: 1.55cqw; }
.full-nav { display: flex; flex-direction: column; gap: .12cqw; }
.nav-item { height: 6.55cqw; width: 100%; border: .12cqw solid transparent; border-radius: 3.3cqw; background: transparent; display: grid; grid-template-columns: 5.1cqw 1fr auto; align-items: center; padding: 0 1.5cqw; text-align: left; cursor: pointer; color: #fff; transition: transform .3s cubic-bezier(.16,1.55,.42,1), background-color .22s ease, border-color .22s ease, box-shadow .22s ease; }
.nav-item:hover { background: rgba(255,255,255,.08); }
.nav-item.active { border-color: rgba(255,255,255,.74); background: rgba(255,255,255,.13); }
.nav-item svg { width: 3.1cqw; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav-item > span:not(.switch) { font-size: 3cqw; }
.nav-item b { min-width: 5.6cqw; height: 3.8cqw; border-radius: 1.9cqw; display: grid; place-items: center; border: .12cqw solid rgba(255,255,255,.6); font-size: 2.15cqw; font-weight: 600; }
.nav-item b.lime { min-width: 3.8cqw; color: #151813; background: var(--lime); border-color: var(--lime); }
.nav-item > i { width: 1.3cqw; aspect-ratio: 1; background: var(--lime); border-radius: 50%; margin-right: 1.25cqw; }
.nav-item em { font-style: normal; font-size: 2.8cqw; }
.project-children { position: relative; display: flex; flex-direction: column; padding-left: 7.4cqw; margin: -.3cqw 0 .35cqw; max-height: 13cqw; opacity: 1; overflow: hidden; transition: max-height .32s ease, opacity .2s ease, margin .32s ease; }
.project-children::before { content: ""; position: absolute; left: 5cqw; top: 0; bottom: 1.1cqw; width: 1.7cqw; border-left: .12cqw solid rgba(255,255,255,.28); border-bottom: .12cqw solid rgba(255,255,255,.28); border-radius: 0 0 0 1.1cqw; }
.project-children.closed { max-height: 0; opacity: 0; margin: 0; }
.project-children button { height: 4.3cqw; border: 0; background: transparent; color: white; display: flex; align-items: center; gap: 1.4cqw; font-size: 2.45cqw; cursor: pointer; transition: transform .28s cubic-bezier(.16,1.5,.42,1), color .2s ease; }
.project-children i { width: 1.45cqw; aspect-ratio: 1; border-radius: 50%; }
.green { background: var(--lime); }.orange { background: #ff8a3d; }.purple { background: #9e7cff; }
.night-item { grid-template-columns: 5.1cqw 1fr auto; }
.switch { position: relative; width: 7cqw; height: 3.5cqw; border-radius: 2cqw; background: rgba(255,255,255,.34); transition: background-color .3s ease; }
.switch i { position: absolute; top: .38cqw; left: .38cqw; width: 2.75cqw; aspect-ratio: 1; border-radius: 50%; background: white; transition: transform .3s cubic-bezier(.2,.8,.2,1); box-shadow: 0 .2cqw .5cqw rgba(0,0,0,.28); }
.scene.night .switch { background: var(--lime); }
.scene.night .switch i { transform: translateX(3.5cqw); background: #16201a; }
.profile-row { position: absolute; left: 2.7cqw; right: 2.7cqw; bottom: 2.6cqw; height: 8.6cqw; padding: 1.5cqw .6cqw 0; border: 0; border-top: .12cqw solid rgba(255,255,255,.25); background: transparent; display: grid; grid-template-columns: 8cqw 1fr auto; align-items: center; text-align: left; cursor: pointer; transition: transform .3s cubic-bezier(.16,1.5,.42,1); }
.profile-avatar { position: relative; width: 6.8cqw; aspect-ratio: 1; border-radius: 50%; border: .15cqw solid rgba(255,255,255,.72); background: #303236; display: grid; place-items: center; color: var(--lime); font-size: 3.2cqw; }
.profile-row > span:nth-child(2) { display: flex; flex-direction: column; }
.profile-row strong { font-size: 2.8cqw; }.profile-row small { color: var(--muted); font-size: 2.25cqw; }.profile-row em { font-size: 2cqw; line-height: 1.2; font-style: normal; }

.messages-header { display: flex; align-items: center; gap: 1.7cqw; min-height: 7.8cqw; }
.messages-header button { width: 5.8cqw; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; border: .12cqw solid rgba(255,255,255,.34); background: rgba(0,0,0,.08); cursor: pointer; }
.messages-header svg { width: 2.6cqw; fill: none; stroke: white; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.messages-header span { display: flex; flex-direction: column; }
.messages-header strong { font-size: 3.75cqw; line-height: 1; }.messages-header small { color: var(--muted); font-size: 2.55cqw; margin-top: .5cqw; }
.message-list { margin-top: 3.25cqw; }
.message-list button { width: 100%; min-height: 12.6cqw; border: 0; border-bottom: .12cqw solid rgba(255,255,255,.12); background: transparent; display: grid; grid-template-columns: 7.2cqw 1fr auto; align-items: center; gap: 1.5cqw; text-align: left; cursor: pointer; transition: transform .3s cubic-bezier(.16,1.5,.42,1), background-color .22s ease; }
.contact { width: 6.5cqw; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; color: #1a1d19; font-weight: 800; font-size: 2.8cqw; }.lime-contact{background:var(--lime)}.orange-contact{background:#ff8c3d}.purple-contact{background:#9e7cff}.blue-contact{background:#57b5f7}
.message-list button > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; gap: .5cqw; }
.message-list strong { font-size: 2.75cqw; }.message-list small { color: var(--muted); font-size: 2.3cqw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.message-list time { align-self: start; margin-top: 3.2cqw; color: var(--muted); font-size: 2cqw; }
.new-message { margin-top: 3.1cqw; width: 100%; height: 7.7cqw; border: 0; border-radius: 3.9cqw; color: #111; background: var(--lime); font-weight: 800; font-size: 2.55cqw; cursor: pointer; }
.sync-copy { margin: 4.1cqw 0 0; text-align: center; color: rgba(255,255,255,.55); font-size: 2cqw; }

.account-popover { position: absolute; left: 3cqw; right: 3cqw; bottom: 2.7cqw; z-index: 40; height: 8cqw; border-radius: 4cqw; background: rgba(22,24,22,.9); border: .12cqw solid rgba(255,255,255,.24); display: flex; align-items: center; justify-content: space-between; padding: 0 2cqw 0 2.5cqw; opacity: 0; transform: translateY(1.5cqw) scale(.96); pointer-events: none; transition: .22s ease; }
.account-popover.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.account-popover span { font-size: 2.2cqw; }.account-popover button { border: 0; border-radius: 2.5cqw; padding: 1.1cqw 2cqw; background: var(--lime); color: #131613; font-weight: 750; cursor: pointer; }
.sidebar.collapsed .account-popover { left: 14cqw; right: auto; width: 28cqw; bottom: 1cqw; }

.auth-layer { position: absolute; inset: 0; z-index: 30; display: grid; place-items: center; padding: 7cqw; background: rgba(5,7,5,.5); backdrop-filter: blur(2.4cqw); -webkit-backdrop-filter: blur(2.4cqw); }
.auth-layer[hidden] { display: none; }
.auth-card { width: min(84cqw, 480px); padding: 5.2cqw 4.8cqw; border: .15cqw solid rgba(255,255,255,.26); border-radius: 4.4cqw; background: linear-gradient(145deg, rgba(96,90,82,.76), rgba(39,36,34,.88)); box-shadow: 0 5cqw 14cqw rgba(0,0,0,.35), inset 0 .12cqw 0 rgba(255,255,255,.14); }
.auth-brand { display: flex; justify-content: center; }.auth-brand span { width: 9cqw; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: var(--lime); color: #151815; box-shadow: 0 0 4cqw rgba(200,255,36,.42); }
.auth-eyebrow { margin: 3.5cqw 0 .7cqw; color: var(--lime); font-size: 1.85cqw; text-align: center; letter-spacing: .2em; font-weight: 800; }
.auth-card h1 { margin: 0; text-align: center; font-size: 4.1cqw; }.auth-description { margin: 1cqw 0 3.8cqw; text-align: center; color: var(--muted); font-size: 2.3cqw; }
.auth-card label { display: flex; flex-direction: column; gap: .8cqw; margin-top: 2.1cqw; }.auth-card label span { margin-left: 1.5cqw; color: rgba(255,255,255,.75); font-size: 1.9cqw; font-weight: 700; }
.auth-card input { width: 100%; height: 7.2cqw; border-radius: 3.6cqw; border: .12cqw solid rgba(255,255,255,.24); outline: none; padding: 0 2.4cqw; background: rgba(255,255,255,.08); color: white; font-size: 2.55cqw; transition: border-color .2s ease, box-shadow .2s ease; }
.auth-card input:focus { border-color: var(--lime); box-shadow: 0 0 0 .45cqw rgba(200,255,36,.12); }
.auth-error { min-height: 3cqw; margin: 1.8cqw 1cqw .8cqw; color: #ffd0cb; font-size: 1.9cqw; text-align: center; }
.auth-submit { width: 100%; height: 7.2cqw; border: 0; border-radius: 3.6cqw; background: var(--lime); color: #141714; font-weight: 850; font-size: 2.45cqw; cursor: pointer; transition: transform .16s ease, opacity .16s ease; }.auth-submit:active { transform: scale(.985); }.auth-submit:disabled { opacity: .55; cursor: wait; }

@media (min-width: 900px) {
  .night-shade { inset: 6.7vh 0 6.7vh; }
  .auth-layer { padding: 48px; }
  .auth-card { width: 430px; padding: 34px 38px 28px; border-width: 1px; border-radius: 28px; }
  .auth-brand span { width: 50px; }
  .auth-eyebrow { margin: 20px 0 5px; font-size: 11px; }
  .auth-card h1 { font-size: 23px; }
  .auth-description { margin: 7px 0 24px; font-size: 13px; }
  .auth-card label { gap: 6px; margin-top: 15px; }
  .auth-card label span { margin-left: 9px; font-size: 11px; }
  .auth-card input { height: 38px; border-width: 1px; border-radius: 19px; padding: 0 16px; font-size: 14px; }
  .auth-card input:focus { box-shadow: 0 0 0 3px rgba(200,255,36,.12); }
  .auth-error { min-height: 18px; margin: 12px 8px 5px; font-size: 12px; }
  .auth-submit { height: 38px; border-radius: 19px; font-size: 13px; }
}

@media (hover: hover) and (pointer: fine) {
  .compact-brand:hover,
  .brand-row:hover .brand-mark { transform: translateY(-.75cqw) scale(1.075); box-shadow: 0 .9cqw 2.1cqw rgba(0,0,0,.16), 0 0 4.2cqw rgba(200,255,36,.55); }
  .compact-nav button:hover { transform: translateY(-.7cqw) scale(1.09); background: rgba(255,255,255,.11); box-shadow: 0 .9cqw 1.8cqw rgba(0,0,0,.16); }
  .compact-avatar:hover { transform: translateY(-.7cqw) scale(1.07); }
  .nav-item:hover { transform: translateY(-.48cqw) scale(1.018); background: rgba(255,255,255,.1); box-shadow: 0 .8cqw 1.4cqw rgba(0,0,0,.12); }
  .project-children button:hover { transform: translateY(-.35cqw) translateX(.35cqw); color: var(--lime); }
  .message-list button:hover { transform: translateY(-.42cqw) scale(1.012); background: rgba(255,255,255,.065); }
  .new-message:hover { transform: translateY(-.48cqw) scale(1.012); box-shadow: 0 .8cqw 2cqw rgba(200,255,36,.2); }
  .profile-row:hover { transform: translateY(-.42cqw); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
