.dev-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-family: "Segoe UI", sans-serif;
  color: #1f2937;
}

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

.dev-title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
}

.dev-subtitle {
  margin: 4px 0 0;
  font-size: 14px;
  color: #6b7280;
}

.dev-header-actions {
  display: flex;
  gap: 8px;
}

.dev-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dev-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

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

.dev-section-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dev-section h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.dev-section-title {
  margin: 4px 0 0;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}

.dev-note {
  font-size: 12px;
  color: #64748b;
}

.dev-note-link {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}

.dev-note-link:hover {
  text-decoration: underline;
}

.dev-derived-icon {
  margin-left: 6px;
  color: #64748b;
  font-size: 12px;
}

.dev-token-title {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.dev-token-status {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 500;
  border: 1px solid transparent;
}

.dev-token-status-generated {
  background: #dcfce7;
  color: #166534;
  border-color: #86efac;
}

.dev-token-status-expired {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fecaca;
}

.dev-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dev-label {
  font-size: 13px;
  color: #475569;
  font-weight: 600;
}

.dev-token-name {
  font-weight: 700;
  color: #111827;
}

.dev-input-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.dev-input {
  flex: 1;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #cbd5f5;
  padding: 0 12px;
  font-size: 13px;
  background: #ffffff;
  color: #1f2937;
}

.dev-input:focus {
  outline: 2px solid rgba(59, 130, 246, 0.2);
  border-color: #3b82f6;
}

.dev-copy-btn {
  height: 34px;
  width: 34px;
  border: 1px solid #dbeafe;
  background: #eff6ff;
  color: #2563eb;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dev-cell-copy {
  height: 32px;
  width: 32px;
  border: 1px solid #dbeafe;
  background: #eff6ff;
  color: #2563eb;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dev-copy-btn:hover:not(.dev-copied-btn),
.dev-cell-copy:hover:not(.dev-copied-btn) {
  background: #dbeafe;
  border-color: #bfdbfe;
}

.dev-copied-btn,
.dev-copied-btn:hover {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
}

.dev-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dev-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.dev-btn-primary {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.3);
}

.dev-btn-secondary {
  background: #111827;
  color: #fff;
  box-shadow: 0 6px 14px rgba(17, 24, 39, 0.2);
}

.dev-btn-ghost {
  background: #eef2ff;
  color: #4f46e5;
}

.dev-btn:hover {
  transform: translateY(-1px);
}

.dev-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: #64748b;
}

.dev-copied {
  font-size: 12px;
  color: #10b981;
  font-weight: 600;
}

.dev-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #cbd5f5, transparent);
}

.dev-table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.dev-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
}

.dev-table thead {
  background: #1e293b;
  color: #fff;
}

.dev-table th,
.dev-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.dev-table th{
  color: white;
}

.dev-table.app-details-table th,
.dev-table.app-details-table td {
  width: 50%;
}

.dev-table tbody tr:hover {
  background: #f1f5f9;
}

.dev-empty {
  text-align: center;
  color: #94a3b8;
  padding: 18px;
}

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

.dev-cell-muted span {
  color: #64748b;
}

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

.dev-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 8px;
}

.dev-alert {
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #9a3412;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
}

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

  .dev-section-actions {
    width: 100%;
  }

  .dev-btn {
    flex: 1 1 auto;
  }

  .dev-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .dev-btn {
    justify-content: center;
  }
}
