.app {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  width: 100%;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.main {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100%;
  max-height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--bg);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  min-width: 0;
  padding: 0 22px;
  border-bottom: 1px solid var(--border);
  background: rgba(25, 24, 23, .92);
}

.topbar-left {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  gap: 10px;
}

.title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 650;
}

.logout {
  border-radius: 8px;
  padding: 8px 10px;
  background: transparent;
  color: var(--muted);
}

.logout:hover {
  background: var(--panel-soft);
  color: var(--text);
}

@media (min-width: 769px) and (max-width: 1180px) {
  .app {
    grid-template-columns: 232px minmax(0, 1fr);
  }

  .topbar {
    min-height: 52px;
    padding: 0 16px;
  }
}
