/* :root {
  --bg: #fafafa;
  --ink: #111827;
  --muted: #6b7280;
  --accent: #2563eb;
  --panel: #ffffff;
  --border: #e5e7eb;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.45 Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial;
}
header {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
}
main {
    margin: 16px auto;
    padding: 0 16px;
    display: grid;
    gap: 16px;
    max-height: calc(100vh - 200px);
    overflow: overlay;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
}
h1 {
  font-size: 18px;
  margin: 0;
}
h2 {
  font-size: 16px;
  margin: 4px 0 8px;
}
label {
  display: block;
  margin-bottom: 6px;
}
input,
textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
textarea {
    min-height: 160px;
    resize: vertical;
    font-family: monospace;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s ease;
    padding-top: 50px;
}
button {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
}
button.secondary {
  background: #e5e7eb;
  color: #111827;
}
.code {
  background: #fff;
  border: 1px dashed var(--border);
  border-radius: 8px;
  overflow: auto;
  max-height: 360px;
}
#jsonLink {
  transition: all 0.3s ease;
}
ul#files {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
ul#files li {
  display: flex;
  align-items: center;
  gap: 8px;
}
audio {
  width: 100%;
}
.prompt-wrap {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 8px 0;
}
#log {
  display: none;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px;
  font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  height: 70px;
  overflow: auto;
  white-space: pre-wrap;
} */
:root {
  --bg: #f6f7fb;
  --ink: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --card: #ffffff;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.45 Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}

.app-main {
  padding-bottom: 24px;
}

.app-tabs .nav-link {
  font-weight: 600;
}

.app-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
  background: var(--card);
}

.app-steps .list-group-item {
  border-radius: 10px;
  margin-bottom: 8px;
  border: 1px solid var(--border);
  font-weight: 600;
}

.app-steps .list-group-item.active {
  background: #111827;
  border-color: #111827;
}

textarea.form-control,
input.form-control,
select.form-select {
  border-radius: 12px;
  border-color: var(--border);
}

textarea.form-control {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  padding-top: 50px;
}

.app-diagram {
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
  overflow: auto;
}

.app-output {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
  min-height: 56px;
}

.app-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.app-gallery img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.app-files li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  margin-bottom: 8px;
}

.app-log {
  background: #0b1020;
  color: #e5e7eb;
  border-radius: 12px;
  padding: 12px;
  min-height: 240px;
  white-space: pre-wrap;
  overflow: auto;
}
