.dev-shell {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px;
  max-width: 1200px;
  margin: 0 auto;
  width: min(1200px, 100%);
  overflow-x: hidden;
}

.dev-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.dev-header p {
  margin-top: 6px;
  color: var(--text-muted);
}

.dev-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  align-items: start;
}

.dev-card {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--panel);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-self: start;
}

.dev-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.dev-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.dev-form label {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
}

.dev-form input,
.dev-form select {
  width: 100%;
}

.dev-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dev-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dev-localization {
  flex-direction: row;
  align-items: center;
}

.dev-verification {
  flex-direction: row;
  align-items: center;
}

.dev-error-log {
  flex-direction: row;
  align-items: center;
}

.dev-local-files {
  align-items: center;
  gap: 12px;
}

.file-upload {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px dashed var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.file-upload input {
  display: none;
}

.dev-audit-output {
  width: 100%;
}

.storage-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.storage-grid {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 16px;
  min-width: 0;
}

.storage-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.storage-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.storage-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.storage-row .storage-key {
  flex: 1 1 auto;
}

.storage-delete {
  flex: 0 0 auto;
}

.storage-section-title {
  font-weight: 600;
  margin-bottom: 6px;
}

.storage-key {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 10px 12px;
  background: var(--panel-soft);
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: border 0.2s ease, transform 0.2s ease;
}

.storage-key:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.storage-view {
  background: var(--panel);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 16px;
  min-height: 260px;
  white-space: pre-wrap;
  overflow: auto;
  min-width: 0;
}

.env-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  min-width: 0;
}

@media (max-width: 860px) {
  .dev-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .storage-grid {
    grid-template-columns: 1fr;
  }
}
@import "../shared/vars.css";
