/* ============================================
 * DevPortfolio — Shared styles (style.css)
 * --------------------------------------------
 * Linear/Vercel-inspired SaaS aesthetic.
 * CSS variables, dark theme via prefers-color-scheme,
 * responsive (mobile-first), no framework.
 * ============================================ */

/* ---- Design tokens ---- */
:root {
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-soft: rgba(99, 102, 241, 0.12);
  --success: #10b981;
  --success-soft: rgba(16, 185, 129, 0.14);
  --warning: #f59e0b;
  --warning-soft: rgba(245, 158, 11, 0.16);
  --danger: #ef4444;
  --danger-soft: rgba(239, 68, 68, 0.14);
  --info: #3b82f6;
  --info-soft: rgba(59, 130, 246, 0.14);

  --bg: #ffffff;
  --bg-subtle: #f7f7fb;
  --bg-elevated: #ffffff;
  --border: #e6e7ee;
  --border-strong: #d4d6e0;
  --text: #18181b;
  --text-muted: #6b7280;
  --text-faint: #9ca3af;

  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(16, 17, 24, 0.06);
  --shadow: 0 4px 14px rgba(16, 17, 24, 0.08);
  --shadow-lg: 0 18px 50px rgba(16, 17, 24, 0.16);

  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, Helvetica, Arial,
    sans-serif;
  --mono: 'SF Mono', ui-monospace, 'JetBrains Mono', Menlo, Consolas, monospace;

  --nav-h: 60px;
  --maxw: 1240px;
}

/* ---- Dark theme ---- */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0f;
    --bg-subtle: #111118;
    --bg-elevated: #15151d;
    --border: #23232e;
    --border-strong: #313140;
    --text: #f4f4f6;
    --text-muted: #a1a1b3;
    --text-faint: #6b6b80;
    --primary-soft: rgba(99, 102, 241, 0.18);
    --success-soft: rgba(16, 185, 129, 0.18);
    --warning-soft: rgba(245, 158, 11, 0.2);
    --danger-soft: rgba(239, 68, 68, 0.18);
    --info-soft: rgba(59, 130, 246, 0.18);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.6);
  }
}

/* ---- Reset ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  font-family: var(--font);
  background: var(--bg-subtle);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
h1,
h2,
h3,
h4 {
  margin: 0 0 0.4em;
  font-weight: 600;
  letter-spacing: -0.01em;
}
p {
  margin: 0 0 1em;
}
button {
  font-family: inherit;
  cursor: pointer;
}
input,
select,
textarea {
  font-family: inherit;
  font-size: 14px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 14px;
  background: var(--bg-elevated);
  color: var(--text);
  border-color: var(--border);
  transition: background 0.15s, border-color 0.15s, opacity 0.15s, transform 0.05s;
}
.btn:hover {
  border-color: var(--border-strong);
}
.btn:active {
  transform: translateY(1px);
}
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}
.btn-ghost {
  background: transparent;
  border-color: transparent;
}
.btn-ghost:hover {
  background: var(--bg-subtle);
}
.btn-danger {
  color: var(--danger);
  border-color: var(--border);
}
.btn-block {
  width: 100%;
}
.btn-sm {
  padding: 5px 10px;
  font-size: 13px;
}

/* ---- Forms ---- */
.field {
  margin-bottom: 16px;
}
.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.input,
select.input,
textarea.input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
textarea.input {
  resize: vertical;
  min-height: 80px;
}

/* ---- Navbar ---- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.navbar-inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand:hover {
  text-decoration: none;
}
.brand .logo-dot {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  display: inline-block;
}
.nav-spacer {
  flex: 1;
}
.nav-user {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
}
.nav-user .avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 12px;
}

/* ---- Layout ---- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px 24px 64px;
}
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.page-header h1 {
  font-size: 24px;
  margin-bottom: 2px;
}
.page-header .sub {
  color: var(--text-muted);
  font-size: 14px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 16px;
}
.back-link:hover {
  color: var(--text);
  text-decoration: none;
}

/* ---- Cards / summary ---- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.card .card-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.card .card-value {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.card .card-trend {
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 4px;
}

/* ---- Tables ---- */
.table-wrap {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
thead th {
  text-align: left;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
tbody tr:last-child td {
  border-bottom: none;
}
tbody tr.clickable {
  cursor: pointer;
  transition: background 0.12s;
}
tbody tr.clickable:hover {
  background: var(--bg-subtle);
}
.t-muted {
  color: var(--text-muted);
}
.t-mono {
  font-family: var(--mono);
  font-size: 12.5px;
}

/* ---- Badges ---- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.badge-success {
  background: var(--success-soft);
  color: var(--success);
}
.badge-warning {
  background: var(--warning-soft);
  color: var(--warning);
}
.badge-danger {
  background: var(--danger-soft);
  color: var(--danger);
}
.badge-info {
  background: var(--info-soft);
  color: var(--info);
}
.badge-primary {
  background: var(--primary-soft);
  color: var(--primary);
}
.badge-muted {
  background: var(--bg-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* ---- Progress bar ---- */
.progress {
  height: 7px;
  background: var(--bg-subtle);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.progress > span {
  display: block;
  height: 100%;
  background: var(--primary);
  border-radius: 999px;
  transition: width 0.4s ease;
}
.progress.progress-success > span {
  background: var(--success);
}
.progress.progress-warning > span {
  background: var(--warning);
}
.progress.progress-danger > span {
  background: var(--danger);
}
.progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.progress-row .progress {
  flex: 1;
}
.progress-row .pct {
  font-size: 12px;
  color: var(--text-muted);
  min-width: 38px;
  text-align: right;
}

/* ---- Search / toolbar ---- */
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.toolbar .search {
  position: relative;
  flex: 1;
  min-width: 220px;
  max-width: 420px;
}
.toolbar .search input {
  width: 100%;
  padding: 9px 12px 9px 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  color: var(--text);
}
.toolbar .search input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.toolbar .search::before {
  content: '⌕';
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-faint);
  font-size: 15px;
}
.toolbar .spacer {
  flex: 1;
}

/* ---- Tabs ---- */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 22px;
  overflow-x: auto;
}
.tab {
  padding: 10px 16px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 14px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}
.tab:hover {
  color: var(--text);
}
.tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.tab-pane {
  display: none;
  animation: fade 0.18s ease;
}
.tab-pane.active {
  display: block;
}
@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Kanban ---- */
.kanban {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.kanban-col {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  min-height: 200px;
}
.kanban-col h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
}
.kanban-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 8px;
}
.kanban-card .kc-title {
  font-weight: 500;
  font-size: 13.5px;
  margin-bottom: 6px;
}
.kanban-card .kc-meta {
  font-size: 11.5px;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ---- Risk matrix ---- */
.risk-matrix {
  display: grid;
  grid-template-columns: 80px repeat(3, 1fr);
  grid-template-rows: auto repeat(3, 90px);
  gap: 6px;
  margin-bottom: 24px;
}
.risk-matrix .rm-corner {
  grid-row: 1;
  grid-column: 1;
}
.risk-matrix .rm-col-h {
  grid-row: 1;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  align-self: end;
}
.risk-matrix .rm-row-h {
  grid-column: 1;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.risk-cell {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: auto;
}
.risk-cell.low {
  background: var(--success-soft);
}
.risk-cell.med {
  background: var(--warning-soft);
}
.risk-cell.high {
  background: var(--danger-soft);
}
.risk-cell .rc-chip {
  font-size: 11px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---- Modal ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 18, 0.5);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}
.modal-overlay.open {
  display: flex;
}
.modal {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 460px;
  padding: 24px;
  animation: pop 0.16s ease;
}
@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.modal h3 {
  font-size: 18px;
  margin-bottom: 4px;
}
.modal .modal-sub {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 18px;
}
.modal .modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

/* ---- States ---- */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 40px;
  color: var(--text-muted);
}
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.error-state,
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
}
.error-state {
  color: var(--danger);
}
.skeleton {
  background: linear-gradient(90deg, var(--bg-subtle), var(--border), var(--bg-subtle));
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
  border-radius: 6px;
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

/* ---- Auth page (login) ---- */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(120% 120% at 0% 0%, #6366f1 0%, #8b5cf6 35%, #ec4899 70%, #f59e0b 100%);
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 36px 32px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.auth-card .auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 4px;
}
.auth-card .auth-brand .logo-dot {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
}
.auth-card .auth-tagline {
  color: var(--text-muted);
  font-size: 13.5px;
  margin-bottom: 26px;
}
.auth-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 22px;
}
.auth-tabs button {
  flex: 1;
  padding: 8px;
  border: none;
  background: transparent;
  border-radius: 4px;
  font-weight: 500;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
}
.auth-tabs button.active {
  background: var(--bg-elevated);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.auth-error {
  background: var(--danger-soft);
  color: var(--danger);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 16px;
  display: none;
}
.auth-error.show {
  display: block;
}
.auth-foot {
  text-align: center;
  color: var(--text-faint);
  font-size: 12px;
  margin-top: 22px;
}

/* ---- Project header ---- */
.project-header {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.project-header .ph-top {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.project-header h1 {
  font-size: 22px;
  margin: 0;
}
.project-header .ph-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 8px;
}
.project-header .ph-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.project-header .ph-desc {
  color: var(--text-muted);
  margin-top: 12px;
  max-width: 720px;
}

/* ---- KPI mini cards ---- */
.kpi-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.kpi-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.kpi-card .kpi-label {
  font-size: 11.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.kpi-card .kpi-value {
  font-size: 24px;
  font-weight: 700;
  margin-top: 6px;
  letter-spacing: -0.02em;
}

/* ---- Sprint list ---- */
.sprint-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}
.sprint-item .si-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.sprint-item .si-title {
  font-weight: 600;
}
.sprint-item .si-goal {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 10px;
}

/* ---- Session list ---- */
.session-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.session-item:last-child {
  border-bottom: none;
}
.session-item .si-agent {
  font-family: var(--mono);
  font-size: 12.5px;
  background: var(--primary-soft);
  color: var(--primary);
  padding: 3px 8px;
  border-radius: 4px;
}

/* ---- Chart container ---- */
.chart-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  position: relative;
  height: 320px;
}
.chart-box canvas {
  max-height: 100%;
}
.chart-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
}
.chart-box .chart-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .chart-grid {
    grid-template-columns: 1fr;
  }
  .kanban {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .container {
    padding: 20px 14px 56px;
  }
  .navbar {
    padding: 0 14px;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .kanban {
    grid-template-columns: 1fr;
  }
  .risk-matrix {
    grid-template-columns: 60px repeat(3, 1fr);
    grid-template-rows: auto repeat(3, 80px);
  }
  .page-header {
    flex-direction: column;
    align-items: stretch;
  }
  .nav-user .nav-email {
    display: none;
  }
  table {
    font-size: 12.5px;
  }
  thead th,
  tbody td {
    padding: 10px 12px;
  }
  .hide-mobile {
    display: none;
  }
  .wizard-steps {
    flex-direction: column;
  }
  .wizard-cards {
    grid-template-columns: 1fr !important;
  }
}

/* ---- Row actions ---- */
.row-actions {
  display: flex;
  gap: 2px;
  align-items: center;
}
.row-actions .btn-sm {
  padding: 4px 8px;
  font-size: 14px;
  line-height: 1;
}

/* ---- Wizard ---- */
.wizard-steps {
  display: flex;
  gap: 0;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
.wizard-step {
  flex: 1;
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.15s, border-color 0.15s;
}
.wizard-step.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.wizard-step.done {
  color: var(--success);
}
.wizard-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-subtle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}
.wizard-step.active .wizard-step-num {
  background: var(--primary-soft);
  color: var(--primary);
}
.wizard-step.done .wizard-step-num {
  background: var(--success-soft);
  color: var(--success);
}

.wizard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.wizard-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.wizard-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}
.wizard-card.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.wizard-card .wc-icon {
  font-size: 36px;
  margin-bottom: 12px;
}
.wizard-card .wc-title {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 6px;
}
.wizard-card .wc-desc {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 16px;
}

.wizard-content {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.wizard-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}

/* ---- Code block ---- */
.code-block {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 12.5px;
  white-space: pre-wrap;
  word-break: break-all;
  overflow-x: auto;
  margin: 12px 0;
  position: relative;
}
.code-block .copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 11px;
}

/* ---- Connection banner ---- */
.connection-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 14px;
}
.connection-banner.connected {
  background: var(--success-soft);
  color: var(--success);
}
.connection-banner.not-connected {
  background: var(--warning-soft);
  color: var(--warning);
}
.connection-banner.manual {
  background: var(--bg-subtle);
  color: var(--text-muted);
}

/* ---- Settings tab ---- */
.settings-section {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.settings-section h4 {
  font-size: 15px;
  margin-bottom: 14px;
}
.settings-info-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.settings-info-row:last-child {
  border-bottom: none;
}
.settings-info-row .label {
  color: var(--text-muted);
}
.settings-info-row .value {
  font-weight: 500;
}

/* ---- Admin filters ---- */
.admin-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.admin-filters select {
  width: auto;
  min-width: 140px;
}
