/* Reset and basic setup */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Georgia, serif;
  background-color: #fafafa;
  color: #333;
}

/* ============================================
   HEADER STYLING
   ============================================ */

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
}

.logo-link {
  text-decoration: none;
  color: #000;
  display: flex;
  align-items: center;
}

.logo-link:hover {
  opacity: 0.8;
}

.logo-link:visited {
  color: #000;
}

.logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  letter-spacing: 2px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.2;
  font-size: 40px;
  font-weight: bold;
}

.logo-icon {
  position: relative;
  width: 100px;
  height: 90px;
  flex-shrink: 0;
}

/* Orange circle */
.arc {
  position: absolute;
  width: 65px;
  height: 65px;
  border: 6px solid #f58220;
  border-radius: 50%;
  top: 30px;
  left: 0;
  background: transparent;
  z-index: 2;
}

/* Green rounded square */
.square {
  position: absolute;
  width: 60px;
  height: 60px;
  border: 6px solid #1fb376;
  border-radius: 8px;
  top: 0;
  left: 45px;
  background: transparent;
  z-index: 1;
}

.dashboard-link {
  text-decoration: none;
  color: #666;
  font-size: 16px;
  padding: 10px 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.dashboard-link:hover {
  background-color: #f0f0f0;
}

.dashboard-link.active {
  background-color: #f0f0f0;
}

/* ============================================
   HOMEPAGE STYLES
   ============================================ */

main {
  text-align: center;
  max-width: 900px;
  margin: 80px auto;
  padding: 0 20px;
}

.main-heading {
  font-size: 72px;
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 30px;
}

.green-text {
  color: #1fb376;
}

.descriptor {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 20px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.tagline {
  font-size: 48px;
  font-style: italic;
  color: #f58220;
  margin-bottom: 60px;
}

.cta-button {
  background-color: #1fb376;
  color: white;
  font-size: 18px;
  padding: 18px 40px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
}

.cta-button:hover {
  background-color: #1a9d65;
}

.cta-button-link {
  text-decoration: none;
}

/* ============================================
   DASHBOARD - REDESIGNED
   ============================================ */

.dashboard-redesign {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 40px 80px 40px;
}

/* Dashboard Header */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 48px;
}

.dashboard-title-section {
  flex: 1;
}

.dashboard-title {
  font-family: Georgia, serif;
  font-size: 42px;
  font-weight: bold;
  color: #333;
  margin-bottom: 8px;
}

.dashboard-subtitle {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  color: #666;
}

.btn-new-project {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #1fb376;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 14px 24px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-new-project:hover {
  background-color: #1a9d64;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(31, 179, 118, 0.3);
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

/* Project Card */
.project-card {
  background: white;
  border: 2px solid #f0f0f0;
  border-radius: 16px;
  padding: 28px;
  transition: all 0.3s ease;
  position: relative;
}

.project-card:hover {
  border-color: #e0e0e0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.project-info {
  flex: 1;
}

.project-name {
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: bold;
  color: #333;
  margin-bottom: 6px;
  line-height: 1.3;
}

.project-date {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  color: #999;
}

.btn-delete-project {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-delete-project:hover {
  background-color: #fff0f0;
}

.btn-delete-project svg {
  display: block;
}

/* Project Tools */
.project-tools {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-tool-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background-color: #fafafa;
  border: 2px solid #f0f0f0;
  border-radius: 10px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.project-tool-btn:hover {
  background-color: white;
  border-color: #e0e0e0;
  transform: translateX(4px);
}

.tool-icon {
  flex-shrink: 0;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 80px 40px;
}

.empty-state-icon {
  margin-bottom: 24px;
}

.empty-state-title {
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: bold;
  color: #333;
  margin-bottom: 12px;
}

.empty-state-text {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  color: #666;
  margin-bottom: 32px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.btn-create-first {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #1fb376;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 16px 32px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-create-first:hover {
  background-color: #1a9d64;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(31, 179, 118, 0.3);
}

/* Join Project Section */
.join-project-section {
  margin-top: 48px;
  padding-top: 48px;
  border-top: 2px solid #f0f0f0;
}

.join-project-card {
  background-color: #fafafa;
  border: 2px solid #f0f0f0;
  border-radius: 16px;
  padding: 32px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 20px;
  align-items: center;
}

.join-project-icon svg {
  display: block;
}

.join-project-title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.join-project-text {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  color: #666;
  margin: 0;
}

.project-code-input {
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  width: 200px;
  transition: border-color 0.3s ease;
}

.project-code-input:focus {
  outline: none;
  border-color: #333;
}

.btn-join-project {
  background-color: #333;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-join-project:hover {
  background-color: #1a1a1a;
}

.project-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn-edit-project {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-edit-project:hover {
  background-color: #f0f0f0;
}

.btn-edit-project svg {
  display: block;
}

/* Modal Styling */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.2s ease;
}

.modal-content {
  background-color: white;
  margin: 10% auto;
  padding: 0;
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  animation: slideDown 0.3s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 32px;
  border-bottom: 2px solid #f0f0f0;
}

.modal-title {
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: bold;
  color: #333;
  margin: 0;
}

.modal-close {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.modal-close:hover {
  background-color: #f0f0f0;
}

.modal form {
  padding: 32px;
}

.form-group {
  margin-bottom: 24px;
}

.modal-label {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.modal-input,
.modal-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.modal-input:focus,
.modal-textarea:focus {
  outline: none;
  border-color: #333;
}

.modal-textarea {
  resize: vertical;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 32px;
}

.btn-modal-cancel {
  background-color: white;
  color: #666;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 12px 24px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-modal-cancel:hover {
  background-color: #f8f8f8;
  border-color: #999;
}

.btn-modal-create {
  background-color: #333;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-modal-create:hover {
  background-color: #1a1a1a;
}

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

@keyframes slideDown {
  from { transform: translateY(-50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

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

  .dashboard-header {
    flex-direction: column;
    gap: 20px;
  }

  .join-project-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .project-code-input {
    width: 100%;
  }
}

/* Drag and drop — project cards */
.project-card {
  cursor: grab;
}
.project-card:active {
  cursor: grabbing;
}
.sortable-ghost {
  opacity: 0.4;
  background: #fff8f3;
  border: 2px dashed #f58220;
}
.sortable-chosen {
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}


/* ============================================
   BUTTON STYLES
   ============================================ */

.btn-primary {
  background-color: #1fb376;
  color: white;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  padding: 14px 28px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  background-color: #1a9d65;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(31, 179, 118, 0.3);
}

.btn-new-project {
  white-space: nowrap;
}

.btn-cancel {
  background-color: white;
  color: #666;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  padding: 14px 28px;
  border: 1px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-cancel:hover {
  background-color: #f5f5f5;
  border-color: #999;
}

.btn-secondary {
  background-color: white;
  color: #1fb376;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  padding: 10px 18px;
  border: 1px solid #1fb376;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  flex: 1;
}

.btn-secondary:hover {
  background-color: #1fb376;
  color: white;
}

.btn-delete {
  background-color: white;
  color: #dc3545;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  padding: 10px 18px;
  border: 1px solid #dc3545;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  flex: 1;
}

.btn-delete:hover {
  background-color: #dc3545;
  color: white;
}

.btn-delete-small {
  background: none;
  border: none;
  color: #dc3545;
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.btn-delete-small:hover {
  background-color: #fee;
}

/* Impact CoMap button - Orange (solid fill) */
.btn-tool-orange {
  background-color: #f58220;
  border: 2px solid #f58220;
  border-radius: 8px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: white; /* White text on orange background */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-tool-orange:hover {
  background-color: #e57310;
  border-color: #e57310;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 130, 32, 0.3);
}

/* Story CoLab button - Green (solid fill) */
.btn-tool-green {
  background-color: #1fb376;
  border: 2px solid #1fb376;
  border-radius: 8px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: white; /* White text on green background */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-tool-green:hover {
  background-color: #1a9d65;
  border-color: #1a9d65;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(31, 179, 118, 0.3);
}

.btn-tool:hover {
  border-color: #1fb376;
  background-color: #f8fdf9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
/* AI synthesis buttons - orange variant */
.btn-synthesis {
  background-color: #f58220;
}

.btn-synthesis:hover {
  background-color: #e57310;
}
/* ============================================
   IMPACT COMAP STYLES
   ============================================ */

.section-banner {
  background-color: #f58220;
  border-radius: 12px;
  padding: 32px 40px;
  margin-bottom: 32px;
  text-align: center;
}

.section-banner-title {
  font-family: Georgia, serif;
  font-size: 48px;
  font-weight: bold;
  color: #333;
  margin: 0;
}

.comap-main {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 40px 80px 40px;
}

.section-icon-header {
  text-align: center;
  margin-bottom: 16px;
}

.progress-indicator {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #999;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.section-title {
  font-size: 56px;
  font-weight: bold;
  font-family: Georgia, serif;
  color: #333;
  margin-bottom: 16px;
}

.section-description {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  color: #666;
  margin-bottom: 40px;
  line-height: 1.6;
}

/* ============================================
   FORM CONTAINER (like Story CoLab)
   ============================================ */

.comap-form-container {
  background: #FFFFFF;
  background-image: none;
  background-size: 20px 20px;
  border: 1.5px solid #e8f5ee;
  border-radius: 20px;
  padding: 48px 100px;
  margin-bottom: 40px;
}

/* ============================================
   COLLABORATION BANNER
   ============================================ */

.collab-banner {
  background: linear-gradient(135deg, #fffbf7 0%, #fff8f2 100%);
  border: 1.5px solid #f58220;
  border-radius: 14px;
  padding: 20px 28px;
  margin-bottom: 48px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.collab-banner-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.collab-banner-text {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  color: #555;
  line-height: 1.6;
}

.collab-banner-text strong {
  color: #f58220;
  font-weight: 600;
}

/* ============================================
   QUESTION CARDS
   ============================================ */

/* Legacy — kept for pages not yet updated */
.question-block {
  margin-bottom: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid #A9A9A9;
}

.question-block:last-of-type {
  border-bottom: none;
}

.question-number {
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: bold;
  color: #333;
  margin-bottom: 12px;
}

.question-text {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  color: #666;
  margin-bottom: 32px;
  line-height: 1.6;
}

.question-card {
  background: #FFFFFF;
  background-size: 20px 20px;
  border: 1.5px solid #A9A9A9;
  border-radius: 16px;
  padding: 32px 36px;
  margin-bottom: 24px;
}

.question-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}

.question-badge {
  width: 34px;
  height: 34px;
  background: #f58220;
  color: white;
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 15px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.question-title {
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: bold;
  color: #333;
  margin: 0;
}

.question-prompt {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  color: #777;
  line-height: 1.6;
  margin-bottom: 28px;
  padding-left: 50px;
}

/* ============================================
   TWO-COLUMN GRID & COLUMN PANELS
   ============================================ */

.two-column-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

/* two-column-grid already defined above with divider */
.column {
  display: flex;
  flex-direction: column;
}

.column-panel {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 4px 0;
  display: flex;
  flex-direction: column;
}

.column-panel-orange { border: none; }
.column-panel-blue   { border: none; }
.column-panel-green  { border: none; }
.column-panel-red    { border: none; }

.column-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.column-pill {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.column-pill-orange { background: #d4f4ed; color: #1a7a65; }
.column-pill-blue   { background: #dbeafe; color: #1d4ed8; }
.column-pill-green  { background: #d4f4e2; color: #0f7a45; }
.column-pill-red    { background: #ffd5d5; color: #c0392b; }

/* Legacy */
.category-label     { font-size: 16px; font-weight: 600; color: #666; margin-bottom: 16px; }
.category-label-alt { color: #666; }
.category-green     { color: #1fb376; }
.category-red       { color: #dc3545; }

.category-description,
.column-description {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  color: #999;
  line-height: 1.5;
  margin-bottom: 16px;
}

/* ============================================
   RESPONSES — STICKY NOTE STYLE
   ============================================ */

.responses-container {
  margin-bottom: 14px;
  min-height: 8px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
}

.response-box {
  background: #fffef0;
  border: 1px solid #e8e4c0;
  border-radius: 6px;
  padding: 16px 16px 14px 16px;
  box-shadow: 2px 3px 8px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  position: relative;
  transition: box-shadow 0.2s ease;
  width: calc(33% - 8px);
  min-width: 180px;
  box-sizing: border-box;
}

/* Inside column panels, two notes side by side */
.column-panel .response-box {
  width: calc(50% - 6px);
  min-width: 120px;
}

.response-box:hover {
  box-shadow: 3px 5px 14px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.04);
}

/* Sticky note top colour strip */
.response-box::before {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(90deg, #f5c842, #f0d84a);
  border-radius: 6px 6px 0 0;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.response-author {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #999;
  letter-spacing: 0.2px;
  margin-bottom: 6px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.response-delete {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  color: #ccc;
  font-size: 13px;
  transition: color 0.15s ease;
  flex-shrink: 0;
}

.response-delete:hover {
  color: #e05555;
}

/* Two-column grid with vertical divider */
.two-column-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0 24px;
  margin-bottom: 24px;
}

.column-divider {
  background: #b0b0b0;
  width: 1px;
  align-self: stretch;
  min-height: 40px;
}

.response-text {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  color: #444;
  line-height: 1.65;
  white-space: pre-wrap;
}

/* ============================================
   ADD RESPONSE BUTTON
   ============================================ */

.btn-add-response {
  background: #fffbf7 !important;
  border: 1.5px dashed #f58220 !important;
  border-radius: 10px;
  padding: 13px 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  color: #f58220 !important;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-add-response:hover {
  background: #fde8d0 !important;
  border-color: #f58220 !important;
  border-style: solid !important;
  color: #f58220 !important;
}

/* ============================================
   RESPONSE FORM
   ============================================ */

.response-form {
  margin-top: 14px;
  background: white;
  border: 1.5px solid #e8e8e8;
  border-radius: 10px;
  padding: 20px;
}

.response-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e8e8e8;
  border-radius: 8px;
  font-size: 15px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  resize: vertical;
  min-height: 90px;
  margin-bottom: 14px;
  box-sizing: border-box;
  background: white;
  transition: border-color 0.2s ease;
}

.response-input:focus {
  outline: none;
  border-color: #f58220;
  box-shadow: 0 0 0 3px rgba(245, 130, 32, 0.1);
}

.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
  box-sizing: border-box;
  width: 100%;
}

/* ============================================
   SYNTHESIS SECTION
   ============================================ */

.synthesis-section {
  text-align: center;
  margin-top: 40px;
  padding: 48px 40px;
  background: linear-gradient(135deg, #fffbf7 0%, #fff8f2 100%);
  border: 1.5px solid #f58220;
  border-radius: 16px;
}

.synthesis-label {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #f58220;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.synthesis-heading {
  font-family: Georgia, serif;
  font-size: 26px;
  color: #333;
  margin-bottom: 8px;
}

.synthesis-note {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  color: #999;
  margin-top: 16px;
  margin-bottom: 28px;
  line-height: 1.6;
}

.btn-large {
  font-size: 17px;
  padding: 16px 40px;
}

/* ============================================
   SECTION NAVIGATION
   ============================================ */

.section-navigation {
  margin-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ============================================
   PROBLEM STATEMENT SECTION
   ============================================ */

.problem-statement-section {
  margin-top: 60px;
  padding-top: 60px;
  border-top: 2px solid #e5e5e5;
}

.problem-statement-title {
  font-family: Georgia, serif;
  font-size: 32px;
  font-weight: bold;
  color: #333;
  margin-bottom: 12px;
}

.problem-statement-description {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  color: #666;
  margin-bottom: 24px;
}

.problem-statement-textarea {
  width: 100%;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 12px;
  font-size: 16px;
  font-family: Georgia, serif;
  line-height: 1.8;
  resize: vertical;
  min-height: 450px;
  margin-bottom: 24px;
  box-sizing: border-box;
  background-color: white;
}

.problem-statement-textarea:focus {
  outline: none;
  border-color: #1fb376;
  box-shadow: 0 0 0 3px rgba(31, 179, 118, 0.1);
}

/* ============================================
   SMART OUTCOMES SECTION
   ============================================ */

.outcomes-section {
  margin-top: 60px;
  padding-top: 60px;
  border-top: 2px solid #e5e5e5;
}

.outcomes-title {
  font-family: Georgia, serif;
  font-size: 32px;
  font-weight: bold;
  color: #333;
  margin-bottom: 12px;
}

.outcomes-description {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  color: #666;
  margin-bottom: 32px;
}

.outcome-card {
  background-color: white;
  border: 1px solid #f58220;
  border-left: 10px solid #f58220;
  border-radius: 12px;
  padding: 28px 28px 24px 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(245, 130, 32, 0.08);
}

.outcome-label {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #f58220;
  margin-bottom: 10px;
}

.outcome-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  margin-bottom: 16px;
  box-sizing: border-box;
  resize: vertical; width: 100%;
}

.outcome-input:focus {
  outline: none;
  border-color: #1fb376;
  box-shadow: 0 0 0 3px rgba(31, 179, 118, 0.1);
}

.indicators-label {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #666;
  margin-bottom: 8px;
}

.indicator-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.indicator-bullet {
  width: 6px;
  height: 6px;
  background-color: #f58220;
  border-radius: 50%;
  flex-shrink: 0;
}

.indicator-text {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  color: #333;
  flex: 1;
}

.outcome-category-title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.outcome-category-description {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  color: #666;
  margin-bottom: 24px;
}

.indicator-input {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  color: #333;
  border: 1px solid transparent;
  background: transparent;
  padding: 4px 8px;
  border-radius: 4px;
  flex: 1;
  transition: all 0.2s ease;
}

.indicator-input:hover {
  border-color: #ddd;
  background-color: white;
}

.indicator-input:focus {
  outline: none;
  border-color: #1fb376;
  background-color: white;
  box-shadow: 0 0 0 2px rgba(31, 179, 118, 0.1);
}

.indicators-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.weave-notes-inline {
  margin-top: 16px;
  padding: 4px 8px;
  color: #374151;
}

.weave-notes-inline ul {
  margin: 0;
  padding-left: 20px;
}

.weave-notes-inline li {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 12px;
  color: #374151;
}

/* Edit mode cards */
.edit-mode-card {
  position: relative;
  border: 1px solid #f58220;
  border-left: 10px solid #f58220;
  cursor: default;
}

.edit-mode-card[draggable="true"] {
  cursor: grab;
}
.card-drag-handle {
  position: absolute;
  top: 12px;
  right: 40px;
  font-size: 18px;
  color: #9ca3af;
  cursor: grab;
  user-select: none;
  letter-spacing: 2px;
}
.btn-delete-card {
  float: right;
  background: none;
  border: none;
  color: #d1d5db;
  font-size: 14px;
  cursor: pointer;
  padding: 0 0 0 8px;
  line-height: 1;
  transition: color 0.15s;
}
.btn-delete-card:hover {
  color: #ef4444;
}
.btn-add-outcome {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  background: white;
  border: 1.5px dashed #d4f4e2;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #1fb376;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s, border-color 0.15s;
}
.btn-add-outcome:hover {
  background: #f7fdf9;
  border-color: #1fb376;
}

/* ── Refine Outcomes Facilitation board -Comparison outcome cards ──────────────── */
.comp-card {
  background: white;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.comp-card:hover { border-color: #9ca3af; }
.comp-card.kept  { border-color: #1fb376; background: #f0fdf4; }
.comp-card.added { border-color: #1fb376; background: #f0fdf4; }
.comp-card input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: #1fb376;
  flex-shrink: 0;
  cursor: pointer;
}
.comp-card-text {
  font-size: 14px;
  color: #1a1a1a;
  line-height: 1.6;
  font-weight: 500;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .two-column-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .comap-main {
    padding: 0 20px 60px 20px;
  }

  .comap-form-container {
    padding: 28px 24px;
  }

  .question-card {
    padding: 24px 20px;
  }

  .question-prompt {
    padding-left: 0;
  }

  .synthesis-section {
    padding: 32px 24px;
  }

  .section-navigation {
    flex-direction: column;
    gap: 16px;
  }
}
/* ============================================
   VISUAL PATHWAY STYLES
   ============================================ */

.pathway-diagram {
  margin-top: 60px;
}

.pathway-container {
  background-color: white;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  padding: 60px 40px;
  display: flex;
  align-items: stretch;
  gap: 20px;
  margin-bottom: 32px;
  overflow-x: auto;
}

.pathway-box {
  flex: 1;
  min-width: 240px;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.pathway-activities {
  background-color: #fef3e2;
  border: 2px solid #f4d19b;
}

.pathway-direct {
  background-color: #d4f4ed;
  border: 2px solid #9fe2d0;
}

.pathway-system {
  background-color: #e8d9f3;
  border: 2px solid #d0b3e6;
}

.pathway-impact {
  background-color: #d4f4e2;
  border: 2px solid #9fe2c0;
}

.pathway-box-title {
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: bold;
  color: #333;
  margin-bottom: 16px;
  text-align: center;
}

.pathway-box-content {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  flex: 1;
}

.pathway-box-content ul {
  margin: 0;
  padding-left: 20px;
}

.pathway-box-content li {
  margin-bottom: 8px;
}

.placeholder-text {
  color: #999;
  font-style: italic;
  text-align: center;
  margin: 20px 0;
}

.pathway-arrow {
  font-size: 48px;
  color: #1fb376;
  display: flex;
  align-items: center;
  font-weight: bold;
  flex-shrink: 0;
}

.pathway-explanation {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  color: #666;
  text-align: center;
  line-height: 1.6;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

.report-section {
  text-align: center;
  margin-top: 60px;
  padding-top: 60px;
  border-top: 2px solid #e5e5e5;
}

/* Responsive */
@media (max-width: 1024px) {
  .pathway-container {
    flex-direction: column;
    align-items: center;
  }

  .pathway-arrow {
    transform: rotate(90deg);
    margin: 10px 0;
  }

  .pathway-box {
    width: 100%;
    max-width: 500px;
  }
}
/* Problem Statement Display Page */
.problem-statement-display {
  margin-bottom: 40px;
}

/* Outcomes Display Page */
.outcomes-display {
  margin-bottom: 40px;
}

.pathway-next-section {
  margin-top: 64px;
  padding-top: 0;
  border-top: none;
  text-align: center;
}

.pathway-next-section .btn-primary {
  background-color: #1fb376;
}

.pathway-next-section .btn-primary:hover {
  background-color: ##1fb376;
}
/* ============================================
   IMPACT COMAP INTRO PAGE
   ============================================ */

.intro-main {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 40px 80px 40px;
  text-align: center;
}

.intro-bullseye {
  margin: 0 auto 24px auto;
  width: 120px;
  height: 110px;
}

/* Title and subtitle */
.intro-title {
  font-family: Georgia, serif;
  font-size: 60px;
  font-weight: bold;
  color: #333;
  margin-bottom: 16px;
}

.intro-subtitle {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 22px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Main card */
.intro-card {
  background-color: white;
  border: 1px solid #d4f4e2; /* Changed from #e5e5e5 to match team note green border */
  border-radius: 16px;
  padding: 40px;
  text-align: left;
  margin-bottom: 40px;
}

.intro-card-title {
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
}

.intro-card-body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 16px;
}

.intro-card-tagline {
  color: #222;
  border-left: none;
  padding: 18px 24px;
  border-radius: 8px;
  margin-bottom: 32px;
  font-weight: 500;
  font-size: 20px;
  text-align: center;
  letter-spacing: 0.3px;
}

.intro-sections-label {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 16px;
}

/* Section items */
.intro-section-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background-color: #fde8d0;
  border: 1px solid #f5c49a;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 12px;
}

.intro-section-number {
  background-color: #f58220;
  color: white;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  font-weight: bold;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.intro-section-content {
  flex: 1;
}

.intro-section-title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.intro-section-icon {
  font-size: 18px;
}

.intro-section-description {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  color: #666;
  line-height: 1.7;
  margin: 0;
}

/* Best with your team note */
.intro-team-note {
  border: 1px solid #d4f4e2;
  border-radius: 8px;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  color: #555;
  line-height: 1.7;
  margin-top: 24px;
}

.intro-team-note-label {
  display: block;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

/* Begin button */
.intro-begin-btn {
  font-size: 18px;
  padding: 18px 48px;
  border-radius: 50px;
}
/* ============================================
   STORY COLAB INTRO PAGE
   ============================================ */

.story-colab-icon {
  margin: 0 auto 24px auto;
  width: 120px;
  height: 120px;
}

/* Story CoLab card - orange borders (inverse of Impact CoMap) */
.story-colab-card {
  border: 1px solid #ffe8d4;
}

/* How it works items */
.intro-how-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.intro-how-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-how-content {
  flex: 1;
}

.intro-how-title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-bottom: 6px;
}

.intro-how-description {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  color: #666;
  line-height: 1.7;
  margin: 0;
}

/* Pro Tip callout box */
.intro-pro-tip {
  background-color: #fff8f3;
  border: 2px solid #f58220;
  border-radius: 12px;
  padding: 20px;
  margin-top: 32px;
  margin-bottom: 24px;
}

.intro-pro-tip-label {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  font-weight: bold;
  color: #f58220;
  margin-bottom: 12px;
  display: block;
}

.intro-pro-tip-text {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 12px;
}

.intro-pro-tip-text:last-child {
  margin-bottom: 0;
}

/* Story CoLab team note */
.story-colab-team-note {
  border: 1px solid #ffe8d4;
  background-color: white;
}
/* ============================================
   STORY COLAB MAIN FORM PAGE
   ============================================ */

.story-colab-main {
  max-width: 1000px;  /* Changed from 800px */
  margin: 40px auto;
  padding: 0 40px 80px 40px;
}

.page-title {
  font-family: Georgia, serif;
  font-size: 60px;
  font-weight: bold;
  color: #333;
  margin-bottom: 8px;
  text-align: center;
}

.page-description {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 20px;
  color: #666;
  text-align: center;
  margin-bottom: 40px;
}

/* Success Message */
.success-message {
  background-color: #d4f4e2;
  border: 2px solid #1fb376;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  color: #1fb376;
  font-weight: 600;
}

/* Form Container */
.story-form-container {
  background-color: white;
  border: 2px solid #ffe8d4;
  border-radius: 16px;
  padding: 40px;
  margin-bottom: 40px;
}

.form-section-title {
  font-family: Georgia, serif;
  font-size: 34px;
  font-weight: bold;
  color: #333;
  margin-bottom: 32px;
}

/* Form Fields */
.form-field {
  margin-bottom: 32px;
}

.form-label {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.form-label-secondary {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #666;
  margin-top: 16px;
  margin-bottom: 6px;
}

.required {
  color: #f58220;
}

.form-help-text {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  color: #999;
  font-style: italic;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  box-sizing: border-box;
}

.form-textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  resize: vertical;
  box-sizing: border-box;
}

.form-textarea-small {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  resize: vertical;
  box-sizing: border-box;
}

/* Tag Selection */
.tag-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.outcome-tag {
  background-color: white;
  border: 2px solid #ffe8d4;
  border-radius: 8px;
  padding: 10px 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  color: #666;
  cursor: pointer;
  transition: all 0.2s ease;
}

.outcome-tag:hover {
  border-color: #f58220;
}

.outcome-tag.selected {
  background-color: #f58220;
  border-color: #f58220;
  color: white;
  font-weight: 600;
}

.no-outcomes-message {
  background-color: #fff8f3;
  border: 2px solid #f58220;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}

.no-outcomes-message p {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}

.no-outcomes-message a {
  color: #f58220;
  font-weight: 600;
  text-decoration: none;
}

.no-outcomes-message a:hover {
  text-decoration: underline;
}

/* Stats Container */
.stats-container {
  display: none;
}
.stats-container {
  background-color: #f8fdf9;
  border: 2px solid #d4f4e2;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
  text-align: center;
}

.stats-empty p {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  color: #666;
  margin: 0;
}

.stats-summary p {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  color: #333;
  margin: 0;
}

.stats-summary strong {
  color: #1fb376;
  font-weight: 700;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-action {
  background-color: white;
  border: 2px solid #f58220;
  border-radius: 8px;
  padding: 14px 24px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #f58220;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-action:hover {
  background-color: #f58220;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 130, 32, 0.3);
}
/* Button icons */
.btn-icon {
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
  flex-shrink: 0;
}

.btn-link-file,
.btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
/* Prominent no-outcomes message */
.no-outcomes-prominent {
  background-color: #fff8f3;
  border: 3px solid #f58220;
  border-radius: 12px;
  padding: 32px;
  text-align: center;
}

.no-outcomes-title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  font-weight: bold;
  color: #f58220;
  margin-bottom: 12px;
}

.no-outcomes-text {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

.btn-link-comap {
  display: inline-block;
  background-color: #f58220;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-link-comap:hover {
  background-color: #e07318;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 130, 32, 0.3);
}

/* Evidence input group */
.evidence-input-group {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.evidence-input {
  flex: 1;
}

.btn-link-file {
  background-color: #1fb376;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-link-file:hover {
  background-color: #1a9d64;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(31, 179, 118, 0.3);
}
/* ============================================
   STORY COLAB FORM - IMPROVED SPACING
   ============================================ */

.form-intro-text {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  color: #666;
  margin-bottom: 40px;
  text-align: center;
}

/* Form Section Blocks */
.form-section-block {
  background-color: #fafafa;
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 32px;
  border: 1px solid #e8e8e8;
}

.form-section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e0e0e0;
}

.form-section-number {
  background-color: #f58220;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  font-weight: bold;
  flex-shrink: 0;
}

.form-section-heading {
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: bold;
  color: #333;
  margin: 0;
}

/* Spaced Form Fields */
.form-field-spaced {
  margin-bottom: 0;
}

.form-subsection {
  margin-top: 24px;
}

.form-label-large {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;  /* Standardized */
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
}

.form-label-secondary-large {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;  /* Standardized - same as form-label-large */
  font-weight: 600;
  color: #666;
  margin-bottom: 10px;
}

.form-help-text-prominent {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;  /* Standardized */
  font-weight: 600;
  color: #333;
  margin-bottom: 16px;
  line-height: 1.5;
}

.form-help-text {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 12px;  /* Standardized - same as form-help-text-prominent */
  color: #333;
  font-style: italic;
  margin-top: 8px;
}

.form-input-large::placeholder,
.form-textarea-large::placeholder,
.form-textarea-medium::placeholder {
  font-size: 14px;  /* Standardized for all placeholders */
  color: #999;
}
.form-input-large {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #ddd;
  border-radius: 10px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.form-input-large:focus {
  outline: none;
  border-color: #1fb376;
}

.form-textarea-large {
  width: 100%;
  padding: 16px;
  border: 2px solid #ddd;
  border-radius: 10px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  resize: vertical;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.form-textarea-large:focus {
  outline: none;
  border-color: #1fb376;
}

.form-textarea-medium {
  width: 100%;
  padding: 14px;
  border: 2px solid #ddd;
  border-radius: 10px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  resize: vertical;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.form-textarea-medium:focus {
  outline: none;
  border-color: #1fb376;
}

/* Tag Container Spacing */
.tag-container-spaced {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 0;
  padding: 20px;
  background-color: white;
  border-radius: 10px;
  border: 2px solid #e8e8e8;
}

/* Submit Section */
.form-submit-section {
  text-align: center;
  margin-top: 48px;
  padding-top: 32px;
  border-top: none;
}

.btn-submit-form {
  font-size: 17px;
  padding: 16px 48px;
  box-shadow: 0 4px 16px rgba(31, 179, 118, 0.3);
}

.btn-submit-form:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(31, 179, 118, 0.4);
}
/* Story CoLab page header with back button below */
.page-header-story {
  text-align: center;
  margin-bottom: 32px;
}

.page-header-story .page-title {
  margin-bottom: 30px;
}

.page-header-story .page-description {
  margin-bottom: 20px;
}

.btn-back-below {
  display: block;
  margin-left: auto;
  margin-right: 0;
  width: fit-content;
  background-color: white;
  border: 2px solid #ddd;
  border-radius: 8px;
  padding: 10px 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-back-below:hover {
  border-color: #1fb376;
  color: #1fb376;
}
/* ============================================
   VIEW ALL ENTRIES PAGE - IMPROVED
   ============================================ */

.view-all-main {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 40px 80px 40px;
}

.view-all-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.btn-back {
  background-color: white;
  border: 2px solid #ddd;
  border-radius: 8px;
  padding: 10px 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-back:hover {
  border-color: #1fb376;
  color: #1fb376;
}

/* Filter Controls */
.filter-container {
  background-color: #f8f8f8;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.filter-group {
  flex: 1;
  min-width: 200px;
}

.filter-label {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.filter-select,
.filter-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  box-sizing: border-box;
}

/* Entries Container */
.entries-container {
  margin-top: 24px;
}

.entries-count {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  color: #666;
  margin-bottom: 16px;
}

.no-entries-message {
  text-align: center;
  padding: 60px 20px;
  background-color: #f8f8f8;
  border-radius: 12px;
}

.no-entries-message p {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  color: #666;
}

/* Entry Cards - IMPROVED */
.entry-card {
  background-color: white;
  border: 2px solid #e8e8e8;
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 24px;
  transition: all 0.3s ease;
}

.entry-card:hover {
  border-color: #1fb376;
  box-shadow: 0 4px 12px rgba(31, 179, 118, 0.1);
}

.entry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #f0f0f0;
}

.entry-date {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #333;
}

.entry-contributor {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  color: #999;
}

.entry-section {
  margin-bottom: 20px;
}

.entry-label {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.entry-content {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  color: #555;
  line-height: 1.7;
}

.entry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.entry-tag {
  background-color: white;
  color: #f58220;
  border: 2px solid #ffe8d4;
  padding: 6px 14px;
  border-radius: 8px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  font-weight: 300;
}

.entry-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}

/* Entry Grid - side by side sections */
.entry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
}

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

.btn-edit,
.btn-delete {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 6px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-edit svg,
.btn-delete svg {
  flex-shrink: 0;
}

.btn-edit {
  background-color: #f0f0f0;
  color: #666;
}

.btn-edit:hover {
  background-color: #1fb376;
  color: white;
}

.btn-delete {
  background-color: transparent;
  color: #e74c3c;
  padding: 6px 12px;
}

.btn-delete:hover {
  background-color: #fff0f0;
}
/* ============================================
   EXPORT DATA PAGE
   ============================================ */

.export-main {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 40px 80px 40px;
  background-color: transparent;  /* Add this */
}

.export-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.export-container {
  background-color: white;
  border: 2px solid #ffe8d4;
  border-radius: 16px;
  padding: 40px;
}

body {
  background-color: white;
}

.export-section {
  margin-bottom: 40px;
}

.export-section-title {
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: bold;
  color: #333;
  margin-bottom: 12px;
}

.export-help-text {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  color: #666;
  margin-bottom: 24px;
}

/* Filter Groups */
.export-filter-group {
  margin-bottom: 24px;
  padding: 16px;
  background-color: #f8f8f8;
  border-radius: 8px;
}

.export-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
}

.export-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.filter-options {
  margin-top: 16px;
  padding-left: 28px;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  color: #333;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Date Range */
.date-range {
  display: flex;
  gap: 20px;
}

.date-input-group {
  flex: 1;
}

.date-label {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #666;
  margin-bottom: 6px;
}

.date-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  box-sizing: border-box;
}

/* Keywords Input */
.keywords-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  box-sizing: border-box;
}

.filter-help-text {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  color: #999;
  font-style: italic;
  margin-top: 6px;
}

/* Preview */
.preview-container {
  background-color: white;
  border: 2px solid #ffe8d4;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
  min-height: 100px;
}

.story-preview {
  background-color: white;
  border: 2px solid #ffe8d4;
  border-radius: 12px;
  padding: 20px;
  margin-top: 16px;
}

.preview-text {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  color: #666;
  text-align: center;
}

.preview-count {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  color: #333;
  margin-bottom: 16px;
}

.preview-count strong {
  color: #333;
}

.preview-list {
  margin-top: 16px;
}

.preview-item {
  padding: 12px;
  background-color: #fafafa;
  border-radius: 8px;
  margin-bottom: 10px;
}

.preview-date {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.preview-excerpt {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

.preview-more {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  color: #999;
  font-style: italic;
  margin-top: 10px;
}

.btn-preview {
  background-color: #f58220;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-preview:hover {
  background-color: #e07318;
  transform: translateY(-2px);
}

/* GDPR Warning */
.gdpr-warning {
  background-color: #fff8f3;
  border: 3px solid #f58220;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
  display: flex;
  gap: 16px;
}

.gdpr-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.gdpr-content {
  flex: 1;
}

.gdpr-title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  font-weight: bold;
  color: #f58220;
  margin-bottom: 12px;
}

.gdpr-text {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}

.gdpr-list {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  color: #666;
  margin-left: 20px;
  margin-bottom: 12px;
}

.gdpr-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  margin-top: 16px;
}

.gdpr-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* Export Actions */
.export-actions {
  text-align: center;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 2px solid #f0f0f0;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
/*/* ============================================
   TELL YOUR STORY - REDESIGNED
   ============================================ */

.tell-story-redesign {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 40px 80px 40px;
}

/* Hero Section */
.story-hero {
  text-align: center;
  margin-bottom: 60px;
  padding: 60px 40px;
  background: linear-gradient(135deg, #fff8f3 0%, #ffe8d4 100%);
  border-radius: 20px;
  border: 3px solid #f58220;
}

.weave-sparkle {
  font-size: 28px;
}

.weave-ai-badge-large {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  padding: 0;
  margin-bottom: 24px;
}

.weave-ai-badge-large span {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #f58220;
}

.story-hero-title {
  font-family: Georgia, serif;
  font-size: 66px;
  font-weight: bold;
  color: #333;
  margin-bottom: 30px;
  line-height: 1.2;
}

.story-hero-subtitle {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 20px;
  color: #666;
  line-height: 1.6;
  max-width: 800px;
  margin-bottom: 30px;
  margin: 0 auto;
}

/* Two Column Layout */
.story-two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 64px;  /* Add this line */
  margin-bottom: 60px;
}

@media (max-width: 900px) {
  .story-two-column {
    grid-template-columns: 1fr;
  }
}

.story-column {
  background-color: white;
  border-radius: 16px;
  padding: 40px;
}

.story-selection {
  border: 2px solid #d4f4e2;
  background-color: #f8fdf9;
}

.story-guidance {
  border: 2px solid #ffe8d4;
  background-color: #fff8f3;
}

/* Step Headers */
.story-step-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.story-step-number {
  background-color: #f58220;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 20px;
  font-weight: bold;
  flex-shrink: 0;
}

.story-step-title {
  font-family: Georgia, serif;
  font-size: 26px;
  font-weight: bold;
  color: #333;
  margin: 0;
}

.story-step-description {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 32px;
}

/* Filters */
.story-filter-clean {
  margin-bottom: 28px;
}

.story-filter-label {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
}

.story-outcomes-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.story-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  padding: 10px;
  background-color: white;
  border: 2px solid #d4f4e2;  /* Add faint green border */
  border-radius: 8px;
  transition: all 0.2s ease;
}

.story-checkbox-label:hover {
  background-color: #f8fdf9;  /* Lighter green on hover */
  border-color: #1fb376;  /* Darker green border on hover */
}

.story-outcome-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* Date Inputs */
.story-date-inputs {
  display: flex;
  align-items: center;
  gap: 12px;
}

.story-date-input {
  flex: 1;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
}

.date-separator {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  color: #999;
}

/* Preview */
.story-selection-preview {
  border-radius: 12px;
  padding: 20px;
  margin-top: 24px;
}

.btn-preview-selection {
  background-color: #1fb376;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
  margin: 0 auto;
  width: 100%;
}

.btn-preview-selection:hover {
  background-color: #1a9d64;
  transform: translateY(-2px);
}

.preview-success {
  text-align: center;
  margin-bottom: 16px;
}

.preview-count {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  color: #333;
  margin-bottom: 6px;
}

.preview-count strong {
  color: #1fb376;
  font-size: 20px;
}

.preview-date-range,
.preview-outcomes {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  color: #666;
  margin-bottom: 4px;
}

.preview-warning {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  color: #f58220;
  text-align: center;
  margin-bottom: 16px;
}

/* AI Guidance */
.ai-guidance-box {
  background-color: transparent;
  border-radius: 0;
  padding: 0;
  margin-bottom: 20px;
}

.story-guidance-textarea {
  width: 100%;
  padding: 16px;
  border: 2px solid #e8e8e8;
  border-radius: 10px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  resize: vertical;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
  background-color: white;
}

.story-guidance-textarea:focus {
  outline: none;
  border-color: #f58220;
}

.story-guidance-label {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;  /* Match body font */
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-bottom: 16px;  /* Add gap - increased from 12px */
}

.story-guidance-tip {
  background-color: white;
  border-left: 4px solid #f58220;
  padding: 16px;
  border-radius: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}


.story-guidance-tip strong {
  color: #f58220;
}

/* Generate Section */
.story-generate-section {
  text-align: center;
  padding: 40px 0;
  margin-bottom: 40px;
  background: none !important;  /* Force remove */
  border: none !important;
  border-radius: 0;
}

.btn-generate-story {
  background: #f58220 !important;  /* Force solid orange */
  color: white;
  border: none;
  border-radius: 12px;
  padding: 20px 48px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: none;  /* Remove shadow completely */
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.btn-generate-story:hover {
  background: #e07318 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);  /* Subtle shadow on hover only */
}

.btn-sparkle {
  font-size: 24px;
}

.generate-subtext {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  color: #999;
  margin-top: 16px;
  font-style: italic;
}

/* Bottom actions */
.bottom-actions {
  text-align: right;
  margin-top: 40px;
  padding-top: 32px;
  border-top: none;
}
/* ============================================
   STORY OUTPUT PAGE - REDESIGNED
   ============================================ */

.story-output-redesign {
  max-width: 1100px;  /* Changed from 900px */
  margin: 40px auto;
  padding: 0 40px 80px 40px;
}

/* Hero Header */
.story-output-hero {
  text-align: center;
  margin-bottom: 48px;
  padding: 32px 0;
  background: transparent;
  border: none;
  border-radius: 0;
}

.weave-badge-small {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.sparkle-small {
  font-size: 20px;
}

.weave-badge-small span {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #f58220;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.story-output-title {
  font-family: Georgia, serif;
  font-size: 66px;
  font-weight: bold;
  color: #333;
  margin-bottom: 16px;
  line-height: 1.2;
}

.story-meta-info {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  color: #999;
}

/* Story Content */
.story-content-wrapper {
  margin-bottom: 48px;
}

.story-content-card {
  background: white;
  border-radius: 16px;
  padding: 48px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 3px solid #d4f4e2;  /* Thicker light green border */
}

.story-display-text {
  width: 100%;
  border: none;
  font-family: Georgia, serif;
  font-size: 17px;
  line-height: 1.9;
  color: #333;
  resize: vertical;
  box-sizing: border-box;
  background-color: transparent;
  min-height: 600px;
}

.story-display-text:focus {
  outline: none;
}

.story-edit-hint {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  color: #999;
  text-align: center;
  margin-top: 16px;
  font-style: italic;
}
.hint-icon {
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
}

.story-edit-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  color: #999;
  text-align: center;
  margin-top: 16px;
  font-style: italic;
}
/* Green scrollbar for story text */
.story-display-text::-webkit-scrollbar {
  width: 12px;
}

.story-display-text::-webkit-scrollbar-track {
  background: #f8fdf9;
  border-radius: 10px;
}

.story-display-text::-webkit-scrollbar-thumb {
  background: #1fb376;
  border-radius: 10px;
  border: 2px solid #f8fdf9;
}

.story-display-text::-webkit-scrollbar-thumb:hover {
  background: #1a9d64;
}

/* For Firefox */
.story-display-text {
  scrollbar-width: thin;
  scrollbar-color: #1fb376 #f8fdf9;
}
/* Action Buttons at Bottom */
.story-actions-bottom {
  display: flex;
  gap: 16px;
  justify-content: center;
  padding: 32px 0;
  border-top: none;
}

.btn-story-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid;
}

.btn-copy {
  background-color: #1fb376;
  color: white;
  border-color: #1fb376;
}

.btn-copy:hover {
  background-color: #1a9d64;
  border-color: #1a9d64;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(31, 179, 118, 0.3);
}

.btn-regenerate {
  background-color: #f58220;
  color: white;
  border-color: #f58220;
}

.btn-regenerate:hover {
  background-color: #e07318;
  border-color: #e07318;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 130, 32, 0.3);
}

.btn-back-story {
  background-color: white;
  color: #666;
  border-color: #ddd;
}

.btn-back-story:hover {
  background-color: #f8f8f8;
  border-color: #999;
  transform: translateY(-2px);
}

.btn-story-action svg {
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .story-actions-bottom {
    flex-direction: column;
  }

  .story-content-card {
    padding: 32px 24px;
  }
}
.quick-link-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 100px;
  border: 1.5px solid #e5e7eb;
  background: white;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  transition: border-color 0.15s, color 0.15s;
  white-space: nowrap;
}

.quick-link-pill:hover {
  border-color: #f58220;
  color: #f58220;
}

.quick-links-bar {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  justify-content: center;
}