.cm-workbook {
  margin-top: 28px;
  padding: 0 0 28px;
  border-top: 1px solid #e8ecf0;
  background: #fff;
}

.cm-workbook.cm-loading .cm-workbook-inner {
  visibility: hidden;
  position: absolute;
  pointer-events: none;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cm-workbook-inner {
  position: relative;
}

.cm-workbook-header .label {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: #d4af37;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 6px;
}

.cm-workbook-header .section-head {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  color: #1a2a44;
  letter-spacing: 1px;
  line-height: 1.05;
  margin-bottom: 12px;
}

.cm-auth-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-radius: 4px;
  border: 1px solid #e0e0e0;
  background: #f4f6f9;
  margin-bottom: 18px;
}

.cm-auth-banner.cm-logged-in {
  border-left: 4px solid #00d4aa;
}

.cm-auth-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: #1a2a44;
  line-height: 1.45;
}

.cm-auth-actions {
  flex-shrink: 0;
}

.cm-btn-account {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 3px;
  border: 1px solid #1a2a44;
  background: #1a2a44;
  color: #fff;
  cursor: pointer;
}

.cm-btn-account:hover {
  opacity: 0.92;
}

.cm-save-indicator {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: #666;
  margin-bottom: 12px;
  min-height: 18px;
}

.cm-save-indicator.cm-saved {
  color: #00d4aa;
}

.cm-intro-html {
  margin-bottom: 18px;
}

.cm-intro-html,
.cm-html-block {
  font-size: 14px;
  color: #1a1a1a;
  line-height: 1.65;
}

.cm-field {
  margin-bottom: 16px;
}

.cm-field-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #1a2a44;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.cm-field.cm-inline-dark .cm-field-label {
  color: #d4af37;
}

.cm-field-hint {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  color: #888;
  font-style: italic;
  margin-bottom: 8px;
  line-height: 1.4;
}

.cm-workbook textarea.cm-input {
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #1a1a1a;
  padding: 10px 12px;
  line-height: 1.45;
  min-height: 160px;
  max-height: none;
  resize: vertical;
  overflow-y: hidden;
}

.cm-fill-card textarea.cm-input,
.cm-fill-card-dark textarea.cm-input,
.cm-reflection-card textarea.cm-input {
  min-height: 160px;
  resize: vertical;
  overflow-y: hidden;
  max-height: none;
}

.cm-field input.cm-input[type='number'] {
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #1a1a1a;
  padding: 10px 12px;
  line-height: 1.45;
}

.cm-workbook textarea.cm-input:focus,
.cm-field input.cm-input:focus {
  outline: none;
  border-color: #1a2a44;
}

.cm-fill-card,
.cm-fill-card-dark {
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 14px 16px;
  margin-bottom: 14px;
  background: #fff;
}

.cm-fill-card-dark {
  background: #1a2a44;
  border-color: #1a2a44;
}

.cm-fill-card-dark .cm-field-label {
  color: #d4af37;
}

.cm-fill-card-dark .cm-field-hint {
  color: rgba(255, 255, 255, 0.55);
}

.cm-fill-card-dark textarea.cm-input {
  background: rgba(255, 255, 255, 0.96);
}

.cm-reflection-card {
  border-radius: 4px;
  padding: 14px 16px;
  margin-bottom: 16px;
  background: #f4f6f9;
  border: 1px solid #e0e0e0;
}

.cm-reflection-card.cm-edge-gold {
  border-top: 3px solid #d4af37;
}

.cm-reflection-card.cm-edge-teal {
  border-top: 3px solid #00d4aa;
}

.cm-reflection-card.cm-edge-navy {
  border-top: 3px solid #1a2a44;
}

.cm-reflection-tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #d4af37;
  margin-bottom: 8px;
}

.cm-reflection-q {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #1a2a44;
  margin-bottom: 10px;
  line-height: 1.55;
}

.cm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.cm-grid .cm-grid-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cm-chk-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid #f0f0f0;
}

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

.cm-chk-row input[type='checkbox'] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: #1a2a44;
  cursor: pointer;
}

.cm-chk-row .cm-chk-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: #1a1a1a;
  line-height: 1.45;
}

.cm-chk-row .cm-chk-text strong {
  color: #1a2a44;
}

.cm-workbook-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.cm-btn-secondary {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 14px;
  letter-spacing: 1px;
  padding: 10px 18px;
  border-radius: 3px;
  border: 2px solid #1a2a44;
  background: #fff;
  color: #1a2a44;
  cursor: pointer;
}

.cm-btn-secondary:hover {
  background: #f4f6f9;
}

.cm-teal-check {
  color: #00d4aa;
  font-weight: 700;
  margin-right: 6px;
}

@media print {
  body {
    background: #fff !important;
    padding: 0 !important;
  }

  .newsletter {
    width: 100% !important;
    max-width: 100% !important;
  }

  .nl-header,
  .hero-band,
  .opening-quote,
  .body-text,
  .stat-row,
  .book-callout,
  .nl-top-cta,
  .nl-footer,
  .cm-auth-banner,
  .cm-save-indicator,
  .cm-workbook-actions {
    display: none !important;
  }

  .cm-workbook {
    border: none !important;
    margin: 0 !important;
    padding: 16px !important;
  }

  .cm-workbook.cm-loading .cm-workbook-inner {
    visibility: visible !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
  }

  .cm-workbook textarea.cm-input {
    overflow-y: visible !important;
  }

  .cm-fill-card-dark textarea.cm-input {
    border: 1px solid #ccc !important;
    background: #fff !important;
    color: #000 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .cm-fill-card-dark {
    background: #fff !important;
    border: 1px solid #ccc !important;
  }

  .cm-fill-card-dark .cm-field-label {
    color: #000 !important;
  }
}
