/* ============================================================
   PAAAL v2 — Shared Styles
   Personas & Purposes, My Plans, PAAAL Wizard/Dashboard
   ============================================================ */

/* --- Design Tokens --- */
:root {
  --primary: #4F46E5;
  --primary-hover: #4338CA;
  --primary-light: #EEF2FF;
  --primary-ring: rgba(79, 70, 229, 0.3);

  --bg-page: #F9FAFB;
  --bg-card: #FFFFFF;
  --text-primary: #1F2937;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;
  --border: #E5E7EB;
  --border-hover: #D1D5DB;

  --success: #059669;
  --success-light: #ECFDF5;
  --warning: #D97706;
  --warning-light: #FFFBEB;
  --danger: #DC2626;
  --danger-light: #FEF2F2;
  --info: #2563EB;
  --info-light: #EFF6FF;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.06), 0 4px 6px rgba(0,0,0,0.04);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --transition: 150ms ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

img { max-width: 100%; display: block; }

.hidden { display: none !important; }

/* --- Layout --- */
.paaal-container {
  max-width: 960px;
  margin-inline: auto;
  padding: 24px clamp(16px, 4vw, 32px);
}

.paaal-container-wide {
  max-width: 1100px;
  margin-inline: auto;
  padding: 24px clamp(16px, 4vw, 32px);
}

/* --- Header / Nav --- */
.paaal-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 50;
}

.paaal-nav {
  max-width: 960px;
  margin-inline: auto;
  padding: 0 clamp(16px, 4vw, 32px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  gap: 16px;
}

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

.paaal-nav-brand img { height: 26px; }

.paaal-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.paaal-nav-link {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}

.paaal-nav-link:hover {
  background: var(--primary-light);
  color: var(--primary);
  text-decoration: none;
}

.paaal-nav-link.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

.paaal-nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-secondary);
}

.paaal-nav-user {
  font-weight: 500;
  color: var(--text-primary);
}

.paaal-nav-logout {
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.paaal-nav-logout:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

/* --- Breadcrumbs --- */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--text-secondary);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.breadcrumbs .sep { color: var(--text-muted); }
.breadcrumbs .current { color: var(--text-primary); font-weight: 500; }

/* --- Page Header --- */
.page-header {
  margin-bottom: 28px;
}

.page-header h1 {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.page-header .subtitle {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
}

/* --- Cards --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.card:hover {
  box-shadow: var(--shadow);
}

.card-add {
  border: 2px dashed var(--border);
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  min-height: 180px;
  transition: all var(--transition);
}

.card-add:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
  box-shadow: none;
}

.card-add .plus {
  font-size: 28px;
  line-height: 1;
}

/* --- Grid --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.2;
}

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

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
}

.btn-secondary {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--primary-light);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  padding: 8px 14px;
}

.btn-ghost:hover:not(:disabled) {
  background: var(--primary-light);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-danger:hover:not(:disabled) {
  background: #B91C1C;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

.btn-block {
  width: 100%;
}

.btn-icon {
  padding: 6px;
  background: transparent;
  color: var(--text-muted);
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-icon:hover {
  background: var(--primary-light);
  color: var(--primary);
}

/* --- Badges --- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge-green {
  background: var(--success-light);
  color: var(--success);
}

.badge-amber {
  background: var(--warning-light);
  color: var(--warning);
}

.badge-blue {
  background: var(--info-light);
  color: var(--info);
}

.badge-gray {
  background: #F3F4F6;
  color: var(--text-secondary);
}

.badge-red {
  background: var(--danger-light);
  color: var(--danger);
}

/* --- Tabs --- */
.tab-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.tab-bar::-webkit-scrollbar { display: none; }

.tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
  font-family: var(--font);
}

.tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.tab .count {
  background: rgba(255,255,255,0.2);
  padding: 0 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.tab:not(.active) .count {
  background: #F3F4F6;
  color: var(--text-muted);
}

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

.form-label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-ring);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.5;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-hint {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted);
}

.form-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.form-row > * { flex: 1; }

/* --- Progress Bar --- */
.progress-bar {
  width: 100%;
  height: 8px;
  background: #E5E7EB;
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 999px;
  transition: width 300ms ease;
}

.progress-fill.green { background: var(--success); }
.progress-fill.amber { background: var(--warning); }

.progress-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* --- Modal --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 16px;
  animation: fadeIn 150ms ease;
}

.modal-content {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 200ms ease;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 0;
}

.modal-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 20px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.modal-close:hover {
  background: #F3F4F6;
  color: var(--text-primary);
}

.modal-body {
  padding: 20px 24px;
}

.modal-footer {
  padding: 0 24px 20px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Toast Notification --- */
.toast-container {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  font-size: 13px;
  font-weight: 500;
  transform: translateX(120%);
  transition: transform 300ms ease;
  max-width: 360px;
}

.toast.show { transform: translateX(0); }

.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--danger); }
.toast.info { border-left: 3px solid var(--info); }

.toast-icon { font-size: 16px; flex-shrink: 0; }

/* --- Wizard Steps --- */
.wizard-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 32px;
  padding: 0 16px;
}

.wizard-step {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.wizard-step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  background: #F3F4F6;
  color: var(--text-muted);
  border: 2px solid var(--border);
  transition: all var(--transition);
  flex-shrink: 0;
}

.wizard-step.active .wizard-step-circle {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.wizard-step.completed .wizard-step-circle {
  background: var(--success);
  color: #fff;
  border-color: var(--success);
}

.wizard-step-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

.wizard-step.active .wizard-step-label { color: var(--primary); font-weight: 600; }
.wizard-step.completed .wizard-step-label { color: var(--success); }

.wizard-step-line {
  width: 40px;
  height: 2px;
  background: var(--border);
  flex-shrink: 0;
  margin: 0 4px;
}

.wizard-step-line.completed { background: var(--success); }

.wizard-content {
  margin-bottom: 24px;
}

.wizard-nav {
  display: flex;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* --- Persona Card --- */
.persona-card {
  display: flex;
  flex-direction: column;
}

.persona-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.persona-emoji {
  font-size: 28px;
  line-height: 1;
}

.persona-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.persona-description {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0 0 14px;
}

.purpose-block {
  padding: 14px;
  background: var(--primary-light);
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.purpose-sentence {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0 0 4px;
  font-style: italic;
}

.purpose-paragraph {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}

.purpose-empty {
  padding: 14px;
  background: #F9FAFB;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
  color: var(--text-muted);
  font-size: 13px;
}

.persona-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

/* --- Plan Card --- */
.plan-card {
  display: flex;
  flex-direction: column;
}

.plan-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.plan-card-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.plan-card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.plan-card-progress {
  margin-bottom: 16px;
}

.plan-card-action {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* --- Dashboard --- */
.dashboard-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 24px;
  align-items: start;
}

.achievement-card {
  background: var(--warning-light);
  border: 1px solid #FDE68A;
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
}

.achievement-card-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--warning);
  margin: 0 0 6px;
}

.achievement-card-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px;
}

.achievement-card-meta {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}

/* --- Actions List --- */
.actions-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.actions-header h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.action-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.action-row:last-child { border-bottom: none; }

.action-checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
  background: var(--bg-card);
}

.action-checkbox:hover {
  border-color: var(--primary);
}

.action-checkbox.checked {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}

.action-name {
  flex: 1;
  font-size: 14px;
  color: var(--text-primary);
}

.action-row.done .action-name {
  text-decoration: line-through;
  color: var(--text-muted);
}

.action-due {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* --- Log Panel --- */
.log-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  background: var(--bg-card);
}

.log-panel.nudge {
  border-color: #F59E0B;
  border-width: 2px;
}

.log-nudge-banner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  background: var(--warning-light);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--warning);
}

.log-nudge-banner strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.log-panel-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px;
}

.log-panel-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0 0 14px;
}

/* --- PAAAL Full View (collapsible) --- */
.paaal-full-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 14px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.paaal-full-toggle .arrow {
  transition: transform var(--transition);
  font-size: 12px;
}

.paaal-full-toggle.open .arrow {
  transform: rotate(90deg);
}

.paaal-full-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding-bottom: 24px;
}

.paaal-full-card {
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.paaal-full-card h4 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.paaal-full-card p,
.paaal-full-card li {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0 0 4px;
}

.paaal-full-card ul {
  margin: 0;
  padding-left: 18px;
}

/* --- Log History --- */
.log-entry {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.log-entry:last-child { border-bottom: none; }

.log-entry-date {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.log-entry-text {
  font-size: 13px;
  color: var(--text-primary);
  margin: 4px 0 0;
}

/* --- Area Pills --- */
.area-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.area-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font);
}

.area-pill:hover {
  background: #DDD6FE;
}

.area-pill.selected {
  background: var(--primary);
  color: #fff;
}

.area-pill.removable::after {
  content: "\00D7";
  margin-left: 2px;
  font-size: 16px;
  line-height: 1;
}

/* --- Inline Add Form --- */
.inline-add {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 10px;
}

.inline-add .form-input {
  flex: 1;
}

/* --- Repeating Rows (wizard) --- */
.repeating-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.repeating-row:last-child { border-bottom: none; }

.repeating-row .form-input {
  flex: 1;
}

.repeating-row input[type="radio"] {
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.repeating-row .remove-btn {
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.repeating-row .remove-btn:hover {
  color: var(--danger);
  background: var(--danger-light);
}

/* --- Loading --- */
.loading {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 14px;
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
  margin: 0 auto 12px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

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

.empty-state p {
  font-size: 14px;
  margin: 0 0 16px;
}

/* --- Divider --- */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}

/* --- Callout --- */
.callout {
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-bottom: 16px;
}

.callout.amber {
  background: var(--warning-light);
  color: #92400E;
  border: 1px solid #FDE68A;
}

.callout.green {
  background: var(--success-light);
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.callout.blue {
  background: var(--info-light);
  color: #1E40AF;
  border: 1px solid #BFDBFE;
}

/* --- Saved Feedback --- */
.saved-msg {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--success);
  opacity: 0;
  transition: opacity 300ms ease;
}

.saved-msg.show { opacity: 1; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .paaal-full-grid {
    grid-template-columns: 1fr;
  }

  .wizard-step-label {
    display: none;
  }

  .wizard-step-line {
    width: 24px;
  }

  .page-header h1 {
    font-size: 20px;
  }

  .form-row {
    flex-direction: column;
  }

  .paaal-nav-links {
    gap: 2px;
  }

  .paaal-nav-link {
    padding: 6px 10px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 18px;
  }

  .modal-content {
    border-radius: var(--radius-lg);
    margin: 8px;
  }
}
