/* Dev Portal — extends main site + developers grid */
.dev-page {
  font-family: "DM Sans", "Segoe UI", system-ui, sans-serif;
  background: #0a0b10;
  color: #e8eaef;
  min-height: 100vh;
}

.dev-page .top-nav-brand span {
  color: #66c0f4;
}

.dev-wrap {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.dev-header {
  margin-bottom: 1.5rem;
}

.dev-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.dev-header p {
  color: #8b92a8;
  font-size: 0.9rem;
  max-width: 36rem;
}

.dev-settings {
  background: #12141c;
  border: 1px solid #1e2230;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.75rem;
  align-items: end;
}

.dev-session-bar {
  grid-template-columns: 1fr auto auto;
  align-items: center;
}

.dev-session-info .dev-session-title {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.dev-session-api {
  font-size: 0.75rem;
  color: #8b92a8;
}

.dev-session-api code {
  font-size: 0.72rem;
  color: #66c0f4;
}

@media (max-width: 700px) {
  .dev-settings {
    grid-template-columns: 1fr;
  }

  .dev-session-bar {
    grid-template-columns: 1fr;
  }
}

.dev-settings label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8b92a8;
  margin-bottom: 0.35rem;
}

.dev-settings input {
  width: 100%;
  padding: 0.5rem 0.65rem;
  background: #0a0b10;
  border: 1px solid #1e2230;
  border-radius: 6px;
  color: #e8eaef;
  font-size: 0.85rem;
}

.dev-settings input:focus {
  outline: none;
  border-color: #7c5cff;
}

.dev-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid #1e2230;
  padding-bottom: 0.5rem;
}

.dev-tab {
  padding: 0.5rem 1rem;
  border: none;
  background: transparent;
  color: #8b92a8;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px 6px 0 0;
  font-family: inherit;
}

.dev-tab:hover {
  color: #e8eaef;
}

.dev-tab.active {
  background: #1e2230;
  color: #66c0f4;
}

.dev-panel {
  display: none;
}

.dev-panel.active {
  display: block;
}

.dev-card {
  background: #12141c;
  border: 1px solid #1e2230;
  border-radius: 10px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.dev-card h2 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: #c4b5fd;
}

.dev-card h3 {
  font-size: 0.85rem;
  margin: 1rem 0 0.5rem;
  color: #8b92a8;
}

.dev-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.dev-form-grid .full {
  grid-column: 1 / -1;
}

@media (max-width: 600px) {
  .dev-form-grid {
    grid-template-columns: 1fr;
  }
}

.dev-field label {
  display: block;
  font-size: 0.72rem;
  color: #8b92a8;
  margin-bottom: 0.3rem;
}

.dev-field input,
.dev-field select,
.dev-field textarea {
  width: 100%;
  padding: 0.45rem 0.6rem;
  background: #0a0b10;
  border: 1px solid #1e2230;
  border-radius: 6px;
  color: #e8eaef;
  font-size: 0.85rem;
  font-family: inherit;
}

.dev-field textarea {
  min-height: 4rem;
  resize: vertical;
}

.dev-field small {
  display: block;
  margin-top: 0.25rem;
  color: #6b7280;
  font-size: 0.68rem;
}

.dev-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.dev-btn {
  padding: 0.55rem 1.1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.dev-btn-primary {
  background: #7c5cff;
  color: #fff;
}

.dev-btn-primary:hover {
  background: #6346e0;
}

.dev-btn-secondary {
  background: transparent;
  border: 1px solid #1e2230;
  color: #e8eaef;
}

.dev-btn-secondary:hover {
  border-color: #7c5cff;
}

.dev-status {
  margin-top: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  font-size: 0.82rem;
  display: none;
}

.dev-status.show {
  display: block;
}

.dev-status.ok {
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.35);
  color: #4ade80;
}

.dev-status.err {
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #f87171;
}

.dev-list {
  list-style: none;
  margin-top: 0.75rem;
}

.dev-list li {
  padding: 0.65rem 0;
  border-top: 1px solid #1e2230;
  font-size: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem;
}

.dev-list li:first-child {
  border-top: none;
}

.dev-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  background: rgba(124, 92, 255, 0.25);
  color: #c4b5fd;
}

.dev-badge.published {
  background: rgba(74, 222, 128, 0.2);
  color: #4ade80;
}

.dev-badge.draft {
  background: rgba(139, 146, 168, 0.2);
  color: #8b92a8;
}

.dev-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  color: #8b92a8;
}

.dev-steps span.done {
  color: #4ade80;
}

.dev-json {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.72rem;
  background: #0a0b10;
  border: 1px solid #1e2230;
  border-radius: 6px;
  padding: 0.75rem;
  max-height: 200px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

.dev-pkg-source {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.dev-pkg-source-opt {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: #c8cdd8;
  cursor: pointer;
}

.dev-progress {
  height: 8px;
  background: #1e2230;
  border-radius: 4px;
  overflow: hidden;
}

.dev-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  transition: width 0.15s ease;
}
