*{ box-sizing: border-box; }
html, body{ height: 100%; }

body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--text);
  /* Single stable background so the teal accent does NOT appear as a moving band while scrolling. */
  background: var(--bg);
}

.desktop-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  margin: 8px 18px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  /* Solid surface to avoid the "split gradient" look */
  background: var(--panel-2);
  box-shadow: var(--shadow);
}

.app{
  min-height: calc(100vh - 90px);
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 18px;
  padding: 18px;
}

aside, main{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  /* Keep main and sidebar on the same surface color */
  background: var(--panel-2);
  box-shadow: var(--shadow);
  overflow: hidden;
}

aside{
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

main{
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.main-header h2 {
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -0.3px;
}

.main-header p {
  margin-top: 4px;
  font-size: 13.5px;
  color: var(--muted);
}

@media (max-width: 980px){
  .app{ grid-template-columns: 1fr; }
}


