:root {
  --bg: #0d1117;
  --bg-secondary: #161b22;
  --bg-tertiary: #21262d;
  --border: #30363d;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --link: #58a6ff;
  --green: #3fb950;
  --yellow: #d29922;
  --red: #f85149;
  --blue: #58a6ff;
  --purple: #bc8cff;
  --orange: #d18616;
  --font-mono: "SF Mono", "Cascadia Code", "Fira Code", Menlo, monospace;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --radius: 6px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Layout */
.nav {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
  text-decoration: none;
}

.nav-brand:hover {
  text-decoration: none;
  color: var(--text);
}

.nav-logo {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background-image: url("/assets/logo-f6cc59c8.png");
  background-size: 135%;
  background-position: center 45%;
  background-repeat: no-repeat;
}

.nav-link { color: var(--text-muted); font-size: 14px; }
.nav-link:hover { color: var(--text); text-decoration: none; }

/* User menu */
.nav-user-menu {
  margin-left: auto;
  position: relative;
}

.nav-user-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-tertiary);
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.nav-user-trigger:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

.nav-user-icon {
  width: 20px;
  height: 20px;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 100;
  overflow: hidden;
}

.nav-dropdown-header {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-muted);
  word-break: break-all;
}

.nav-dropdown-divider {
  height: 1px;
  background: var(--border);
}

.nav-dropdown-item {
  display: block;
  width: 100%;
  padding: 8px 16px;
  font-size: 14px;
  color: var(--text);
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-sans);
}

.nav-dropdown-item:hover {
  background: var(--bg-tertiary);
  text-decoration: none;
  color: var(--text);
}

.nav-dropdown-item-danger {
  color: var(--red);
}

.nav-dropdown-item-danger:hover {
  color: var(--red);
}

main { max-width: 960px; margin: 0 auto; padding: 24px; }

/* Flash messages */
.flash {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 14px;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  border: 1px solid var(--border);
  background: var(--bg-tertiary);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
}

.btn:hover { background: var(--border); text-decoration: none; }
.btn-primary { background: #238636; border-color: #2ea043; }
.btn-primary:hover { background: #2ea043; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-danger { background: #da3633; border-color: #f85149; }
.btn-danger:hover { background: #f85149; }
.btn-info { background: #1158b7; border-color: #388bfd; }
.btn-info:hover { background: #388bfd; }

/* Status badges */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-created { background: var(--bg-tertiary); color: var(--text-muted); }
.badge-queued { background: #1f2937; color: var(--blue); }
.badge-running { background: #0c2d1a; color: var(--green); }
.badge-waiting_for_input { background: #2d2000; color: var(--yellow); }
.badge-evaluating { background: #1c1340; color: var(--purple); }
.badge-completed { background: #0c2d1a; color: var(--green); }
.badge-failed { background: #2d0c0c; color: var(--red); }
.badge-cancelled { background: var(--bg-tertiary); color: var(--text-muted); }
.badge-pending_onboarding { background: #2d2000; color: var(--orange); }

/* Page headers */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.page-header h1 { font-size: 24px; font-weight: 600; }

/* Breadcrumbs */
.breadcrumbs {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.breadcrumb-sep {
  margin: 0 6px;
  color: var(--text-muted);
}

.breadcrumb-current {
  color: var(--text);
}

/* Tab bar */
.tab-bar {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.tab-bar-right {
  margin-left: auto;
  display: flex;
  gap: 0;
}

.tab {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
}

.tab:hover {
  color: var(--text);
  text-decoration: none;
}

.tab-active {
  color: var(--text);
  border-bottom-color: var(--blue);
}

/* History section */
.history-heading {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 32px;
  margin-bottom: 8px;
}

.task-table-muted {
  opacity: 0.6;
}

/* Remote URL link (show page) */
.remote-url-show-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--link);
}

.remote-url-table-link {
  font-size: 13px;
  font-weight: 500;
}

/* Task table */
.task-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.task-table th {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.task-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
}

.task-table tr:hover td { background: var(--bg-secondary); }

.task-title { font-weight: 500; }
.task-meta { color: var(--text-muted); font-size: 12px; }

/* Task detail */
.task-header {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
}

.task-header h1 { font-size: 20px; margin-bottom: 8px; }

.task-metadata {
  margin-top: 16px;
  font-size: 13px;
}

.meta-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 4px 0;
}

.task-metadata dt { color: var(--text-muted); width: 72px; flex-shrink: 0; }
.task-metadata dd { font-weight: 500; min-width: 0; }
.task-metadata dd code { word-break: break-all; }

/* Copy button */
.copy-btn {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  vertical-align: middle;
}
.copy-btn:hover { color: var(--text); background: var(--border); }

.task-prompt {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 16px;
  font-size: 14px;
  white-space: pre-wrap;
}

.task-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.link-danger {
  background: none;
  border: none;
  color: #848d97;
  cursor: pointer;
  font-size: 0.85em;
  padding: 0;
}
.link-danger:hover { color: #f85149; }

/* Message log */
.message-log {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.message-log-header {
  background: var(--bg-secondary);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  font-weight: 500;
}

#task_messages {
  padding: 8px;
}

.message {
  padding: 10px 12px;
  border-radius: var(--radius);
  margin-bottom: 4px;
  font-size: 13px;
}

.message + .message { margin-top: 2px; }

.message-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.message-role {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 1px 6px;
  border-radius: 4px;
}

.message-role-system { background: var(--bg-tertiary); color: var(--text-muted); }
.message-role-worker { background: #0c2d1a; color: var(--green); }
.message-role-supervisor { background: #1c1340; color: var(--purple); }
.message-role-human { background: #1a2332; color: var(--blue); }

.message-time { color: var(--text-muted); font-size: 11px; }

.message-copy-btn {
  margin-left: auto;
  margin-right: 2px;
  padding: 1px 8px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
}

.message-copy-btn:hover { color: var(--text); background: var(--border); }

.toggle-group {
  margin-left: auto;
  display: flex;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.toggle-btn {
  padding: 1px 10px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1.6;
}

.toggle-btn + .toggle-btn {
  border-left: 1px solid var(--border);
}

.toggle-btn:hover { color: var(--text); }

.toggle-btn-active {
  background: var(--bg-tertiary);
  color: var(--text);
}

.message-content { line-height: 1.6; }
.message-content pre {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  margin-top: 4px;
}

.message-content code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--bg-tertiary);
  padding: 2px 4px;
  border-radius: 3px;
}

/* Rendered markdown in worker messages */
.markdown-body {
  font-size: 14px;
  line-height: 1.6;
}

.markdown-body-bordered {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  margin-top: 4px;
}

.markdown-body h1, .markdown-body h2, .markdown-body h3,
.markdown-body h4, .markdown-body h5, .markdown-body h6 {
  margin-top: 16px;
  margin-bottom: 8px;
  font-weight: 600;
}

.markdown-body h1 { font-size: 20px; border-bottom: 1px solid var(--border); padding-bottom: 6px; }
.markdown-body h2 { font-size: 17px; border-bottom: 1px solid var(--border); padding-bottom: 4px; }
.markdown-body h3 { font-size: 15px; }
.markdown-body h1:first-child, .markdown-body h2:first-child, .markdown-body h3:first-child { margin-top: 0; }

.markdown-body p { margin-bottom: 10px; }
.markdown-body p:last-child { margin-bottom: 0; }

.markdown-body ul, .markdown-body ol {
  margin-bottom: 10px;
  padding-left: 24px;
}

.markdown-body li { margin-bottom: 4px; }

.markdown-body pre {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  margin-bottom: 10px;
}

.markdown-body pre code {
  background: none;
  padding: 0;
  font-size: inherit;
}

.markdown-body code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--bg-tertiary);
  padding: 2px 5px;
  border-radius: 3px;
}

.markdown-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 10px;
  font-size: 13px;
}

.markdown-body th, .markdown-body td {
  padding: 6px 12px;
  border: 1px solid var(--border);
  text-align: left;
}

.markdown-body th {
  background: var(--bg-tertiary);
  font-weight: 600;
}

.markdown-body blockquote {
  border-left: 3px solid var(--border);
  padding-left: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.markdown-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 16px 0;
}

.markdown-body strong { font-weight: 600; }

.message-error { background: #2d0c0c; border-left: 3px solid var(--red); }
.message-status { background: var(--bg-secondary); color: var(--text-muted); font-style: italic; margin-left: 12px; margin-right: 12px; }

/* Worker status line (transient) */
.worker-status {
  padding: 8px 12px;
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.85em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.worker-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  animation: status-pulse 1.5s ease-in-out infinite;
}

@keyframes status-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.worker-status-summary {
  padding: 6px 12px;
  color: var(--text-muted);
  font-size: 0.8em;
  font-style: italic;
}

/* Human input form */
.human-input {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 16px;
}

.human-input h3 {
  font-size: 14px;
  margin-bottom: 12px;
  color: var(--yellow);
}

.human-input textarea {
  width: 100%;
  min-height: 100px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  resize: vertical;
}

.human-input textarea:focus {
  outline: none;
  border-color: var(--blue);
}

.human-input .btn { margin-top: 8px; }

/* Forms */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}

.form-group small {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 2px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 12px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
}

.form-group textarea { min-height: 120px; resize: vertical; }

.form-group input[type="number"] { width: 120px; }

.form-errors {
  background: #2d0c0c;
  border: 1px solid var(--red);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 14px;
}

.form-errors h3 { font-size: 14px; margin-bottom: 4px; }
.form-errors ul { margin-left: 16px; }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}

.empty-state p { margin-bottom: 16px; }

/* Iteration counter */
.iteration-count {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}

/* Profile / Account Settings */
.profile-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow: hidden;
}

.profile-section-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.profile-section-header h2 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.profile-section-desc {
  font-size: 13px;
  color: var(--text-muted);
}

.profile-section-body {
  padding: 16px 20px;
}

.profile-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.profile-readonly {
  padding: 8px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-muted);
}

.profile-pending {
  font-size: 13px;
  color: var(--yellow);
  margin-top: -8px;
  margin-bottom: 8px;
}

.profile-section-danger {
  border-color: #f8514933;
}

.profile-section-danger .profile-section-header {
  border-bottom-color: #f8514933;
}

.profile-section-danger .profile-section-header h2 {
  color: var(--red);
}

/* Auth pages (login, signup, forgot password) */
.auth-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.auth-container {
  width: 100%;
  max-width: 400px;
  padding: 24px;
}

.auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
}

.auth-logo {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  background-image: url("/assets/logo-f6cc59c8.png");
  background-size: 135%;
  background-position: center 45%;
  background-repeat: no-repeat;
}

.auth-brand-name {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
}

.auth-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.auth-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 4px;
  text-align: center;
}

.auth-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 8px;
}

.tooltip-wrap {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  cursor: pointer;
}

.tooltip-icon {
  opacity: 0.5;
}

.tooltip-wrap:hover .tooltip-icon {
  opacity: 0.8;
}

.tooltip-bubble {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-elevated, #1e1e2e);
  color: var(--text-primary, #cdd6f4);
  border: 1px solid var(--border-color, #45475a);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12px;
  line-height: 1.4;
  width: 240px;
  text-align: left;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tooltip-wrap:hover .tooltip-bubble {
  display: block;
}

.auth-submit {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
  padding: 10px 16px;
  font-size: 15px;
}

.auth-footer {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-muted);
}

.form-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.form-label-link {
  font-size: 13px;
}

.form-group-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 14px;
}

.form-group-inline input[type="checkbox"] {
  width: auto;
  accent-color: var(--green);
}

.form-group-inline label {
  color: var(--text-muted);
  cursor: pointer;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  accent-color: var(--green);
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  backdrop-filter: blur(4px);
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.modal-header h2 {
  font-size: 16px;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 22px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.modal-close:hover {
  color: var(--text);
}

.modal-body {
  padding: 20px;
}

/* Title skeleton placeholder */
.title-placeholder {
  display: inline-block;
  height: 20px;
  width: 240px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--border) 50%, var(--bg-tertiary) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  vertical-align: middle;
}

.title-placeholder-sm {
  height: 13px;
  width: 160px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Pagination */
.series-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 20px;
  padding: 12px 0;
}

.series-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.series-nav a:hover {
  color: var(--text);
  border-color: var(--text-muted);
  text-decoration: none;
}

.series-nav a[aria-current="page"] {
  background: var(--bg-tertiary);
  color: var(--text);
  border-color: var(--blue);
  cursor: default;
}

.series-nav a[aria-disabled="true"]:not([aria-current]) {
  color: var(--text-muted);
  opacity: 0.4;
  cursor: default;
}

.series-nav a[aria-disabled="true"]:not([aria-current]):hover {
  border-color: var(--border);
  color: var(--text-muted);
}

/* Onboarding */
.onboarding-step {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.onboarding-step-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.onboarding-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
}

.onboarding-check-done {
  background: #0d3117;
  border-color: var(--green);
  color: var(--green);
}

.onboarding-step-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 2px;
}

.onboarding-step-desc {
  font-size: 13px;
  color: var(--text-muted);
}

.onboarding-step-action {
  flex-shrink: 0;
}

.btn-sm {
  padding: 4px 12px;
  font-size: 12px;
}

/* Mobile responsive */
@media (max-width: 640px) {
  .nav { padding: 10px 16px; gap: 16px; }
  main { padding: 16px; }
  .page-header { gap: 12px; }
  .page-header h1 { font-size: 20px; }
  .task-table .col-iteration,
  .task-table .col-created { display: none; }
  .task-table td,
  .task-table th { padding: 10px 8px; }
  .modal-content { max-width: calc(100% - 32px); }
  .onboarding-step { flex-direction: column; align-items: flex-start; }
  .onboarding-step-action { align-self: stretch; }
  .onboarding-step-action .btn,
  .onboarding-step-action button { width: 100%; }
}
