/* styles.css */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Noto Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;
}

.app {
  --ui-bg: #fff;
  --ui-fg: #1a1a1a;
  --ui-border: #ccc;
  --ui-muted-border: #ddd;
  background: var(--ui-bg);
  color: var(--ui-fg);
  min-height: 100vh;
}

.app[data-theme="dark"] {
  --ui-bg: #1a1c1e;
  --ui-fg: #e6e6e6;
  --ui-border: #444;
  --ui-muted-border: #333;
  --gc-ink: #e6e6e6;
  --gc-surface: #1a1c1e;
  --gc-domain-fill: #2a2d31;
  --gc-domain-stroke: #6b6459;
  --gc-stem: #8a8a8a;
  --gc-head-ring: #1a1c1e;
}

main {
  display: grid;
  grid-template-columns: 450px 1fr;
  gap: 1rem;
  height: 100vh;
  padding: 1rem;
}

textarea {
  resize: none;
  border: 1px solid var(--ui-border);
  background: var(--ui-bg);
  color: var(--ui-fg);
  border-radius: 6px;
  width: 100%;
  height: 100%;
  padding: .75rem;
  font-family: ui-monospace, monospace;
  font-size: 13px;
}

.tabs {
  display: flex;
  align-items:  center;
  gap: .5rem;
  padding: .75rem 1rem 0;
}

.tabs button {
  border: 1px solid var(--ui-border);
  background: var(--ui-bg);
  color: var(--ui-fg);
  cursor: pointer;
  border-radius: 6px;
  padding: .35rem .75rem;
  font-size: 13px;
}

.tabs button.active {
  border-color: var(--ui-fg);
  font-weight: 600;
}

.theme-toggle {
  margin-left: auto;
}

article {
  overflow: auto;
  padding: 0 1rem;
}

article table {
  border-collapse: collapse;
}

article th, article td {
  border: 1px solid var(--ui-muted-border);
  padding: .35rem .6rem;
}
