:root {
  font-family:
    "Segoe UI Variable", "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 400;

  --zinc-50: #fafafa;
  --zinc-100: #f4f4f5;
  --zinc-200: #e4e4e7;
  --zinc-300: #d4d4d8;
  --zinc-400: #a1a1aa;
  --zinc-500: #71717a;
  --zinc-600: #52525b;
  --zinc-700: #3f3f46;
  --zinc-800: #27272a;
  --zinc-900: #18181b;
  --zinc-950: #09090b;

  --bg-app: var(--zinc-950);
  --bg-navbar: var(--zinc-900);
  --bg-panel: var(--zinc-800);
  --bg-editor: var(--zinc-900);
  --bg-hover: var(--zinc-800);
  --bg-active: var(--zinc-700);

  --surface-1: var(--zinc-900);
  --surface-2: var(--zinc-800);
  --surface-3: var(--zinc-700);

  --border-soft: var(--zinc-700);
  --border-strong: var(--zinc-600);

  --text-primary: var(--zinc-100);
  --text-muted: var(--zinc-300);
  --text-dim: var(--zinc-500);
  --accent: var(--zinc-200);

  color: var(--text-primary);
  background-color: var(--bg-app);

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

html,
body {
  min-height: 100%;
}

body {
  background: radial-gradient(
    circle at 15% -10%,
    var(--zinc-800) 0%,
    var(--bg-app) 42%
  );
  color: var(--text-primary);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: inherit;
}

button,
input,
select {
  border: none;
  outline: none;
  background: none;
  color: inherit;
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23d4d4d8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px 12px;
  padding-right: 30px;
}

.app-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 72px 300px minmax(0, 1fr);
}

.app-shell.panel-closed {
  grid-template-columns: 72px minmax(0, 1fr);
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 64px minmax(0, 1fr);
    grid-template-rows: 280px minmax(0, 1fr);
  }

  .app-shell:not(.panel-closed) > .side-panel {
    grid-column: 2;
    grid-row: 1;
  }

  .app-shell:not(.panel-closed) > .editor-panel {
    grid-column: 2;
    grid-row: 2;
  }
}
