/* layout.css — header + main grid */

.app-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 0.5px solid var(--border);
  background: var(--bg-panel);
}
.header-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; letter-spacing: -.02em; }
.brand-accent  { font-size: 18px; color: var(--accent); line-height: 1; }
.brand-title   { color: var(--text); }
.header-desc   { font-size: 11px; color: var(--text-muted); font-family: var(--font-mono); }

/* 3-column grid */
.app-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  grid-template-rows: 1fr auto auto;
  gap: var(--gap);
  padding: var(--gap);
  height: calc(100vh - 53px);
  max-height: calc(100vh - 53px);
}

/* Code: left column full height */
.panel--code {
  grid-column: 1 / 2;
  grid-row: 1 / 4;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* DP Table: top right */
.panel--table {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* State arrays: mid right */
.panel--state {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
}

/* Editor: bottom right */
.panel--editor {
  grid-column: 2 / 3;
  grid-row: 3 / 4;
}

@media (max-width: 860px) {
  .app-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    height: auto;
    max-height: none;
  }
  .panel--code,
  .panel--table,
  .panel--state,
  .panel--editor { grid-column: 1; grid-row: auto; }
}
