.idea-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}

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

.idea-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  background: var(--surface2);
  font-size: 0.88rem;
}

.idea-card h3 {
  margin: 0 0 0.3rem;
  font-size: 0.95rem;
}

.file-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.file-tabs button {
  font-family: var(--mono);
  font-size: 0.75rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  cursor: pointer;
}

.file-tabs button.is-active {
  border-color: var(--accent);
  background: var(--surface2);
}

.file-tabs button .pill {
  margin-left: 0.25rem;
  font-size: 0.65rem;
  color: var(--muted);
}

.env-editor {
  font-family: var(--mono);
  font-size: 0.78rem;
  width: 100%;
  min-height: 11rem;
  padding: 0.65rem 0.75rem;
  background: #1a222c;
  color: #e8eef4;
  border-radius: 8px;
  border: 1px solid var(--line);
  resize: vertical;
  line-height: 1.45;
}

.env-editor:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.resolved-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 0.78rem;
}

.resolved-table th,
.resolved-table td {
  text-align: left;
  padding: 0.35rem 0.4rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.resolved-table .src-default { color: var(--muted); }
.resolved-table .src-shell { color: #9ecbff; }
.resolved-table .src-env { color: #8fd4a8; }
.resolved-table .src-local { color: #f0c674; }
.resolved-table .secret { color: #f5a8a8; }

.shell-row,
.status-row {
  font-family: var(--mono);
  font-size: 0.8rem;
  margin: 0 0 0.55rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface2);
}

.status-row strong { color: var(--text); }

.action-grid {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.action-grid button {
  font-family: var(--mono);
  font-size: 0.8rem;
  text-align: left;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
}

.action-grid button:hover { border-color: var(--accent); }

.log-box {
  font-family: var(--mono);
  font-size: 0.78rem;
  margin: 0.65rem 0 0;
  padding: 0.65rem 0.75rem;
  background: #1a222c;
  color: #e8eef4;
  border-radius: 8px;
  border: 1px solid var(--line);
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 6rem;
  max-height: 10rem;
  overflow: auto;
}

.log-box .ok { color: #8fd4a8; }
.log-box .warn { color: #f0c674; }
.log-box .run { color: #9ecbff; }
.log-box .muted { color: #7a8a9a; }
.log-box .err { color: #f5a8a8; }

.cheat-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.cheat-table th,
.cheat-table td {
  text-align: left;
  padding: 0.4rem 0.45rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.hint-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.hint-list li { margin: 0.35rem 0; }

.git-box {
  font-family: var(--mono);
  font-size: 0.78rem;
  margin: 0;
  padding: 0.55rem 0.65rem;
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 8px;
  white-space: pre-wrap;
}

.git-box .ok { color: var(--ok); }
.git-box .err { color: var(--err); }
.git-box .muted { color: var(--muted); }
