.app-shell{
  width:1200px;
  max-width:100%;
  min-height:100vh;
  margin:0 auto;

  display:grid;
  grid-template-columns:240px 1fr;
}

.sidebar{
  position:sticky;
  top:0;
  height:100vh;
  padding:28px 18px;
  border-right:1px solid var(--line);
}

.brand{
  font-size:25px;
  font-weight:800;
  letter-spacing:.08em;
  margin:6px 10px 30px;
}

.brand-twin{
  color:#0a0a0a;
}

.brand-ly{
  color:#db4dac;
}

.main{
  min-width:0;
  width:100%;
  max-width:1280px;
  margin:0 auto;
}

.topbar{
  height:72px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 28px;
  border-bottom:1px solid var(--line);
}

.content{
  width:100%;
  max-width:1100px;
  margin:auto;
  padding:28px 72px;
  box-sizing:border-box;
}

.app-shell:has(.chat-window){
  height:100vh;
  min-height:0;
}

.app-shell:has(.chat-window) .main{
  min-height:0;
  height:100vh;
  display:flex;
  flex-direction:column;
}

.app-shell:has(.chat-window) .content{
  flex:1 1 auto;
  min-height:0;
  overflow:hidden;
}

/* =========================
   NAVIGATION
   ========================= */

.nav{
  display:flex;
  flex-direction:column;
  gap:7px;
}

.nav button{
  border:0;
  background:transparent;
  text-align:left;

  padding:12px 14px;

  font-size:16px;

  border-radius:16px;

  color:var(--muted);

  cursor:pointer;

  transition:
    background .18s ease,
    color .18s ease,
    transform .12s ease,
    box-shadow .18s ease;
}

.nav button.active{
  background:var(--card);
  color:var(--text);
  box-shadow:var(--shadow);
}

.nav button:hover{
  background:var(--card);
  color:var(--text);
}

.nav button:active{
  transform:scale(.97);
}

body.filters-modal-open .sidebar {
  display: none;
}