/* ── Guiderly Daily Insights — modal ──────────────────────────────────────── */

.gdi-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 43, 58, 0.55); /* ink at 55% */
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.gdi-overlay[hidden] {
  display: none;
}

.gdi-modal {
  background: #FAF8F4;          /* parchment */
  color: #1C2B3A;               /* ink */
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(28, 43, 58, 0.22);
  max-width: 480px;
  width: 100%;
  padding: 36px 32px 28px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.gdi-modal__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9C6B4E;               /* terra */
  margin: 0;
}

.gdi-modal__question {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.45;
  color: #1C2B3A;               /* ink */
  margin: 0;
}

.gdi-modal__textarea {
  width: 100%;
  min-height: 100px;
  border: 1.5px solid #ddd8d0;
  border-radius: 6px;
  background: #fff;
  color: #1C2B3A;
  font-size: 15px;
  line-height: 1.5;
  padding: 10px 12px;
  box-sizing: border-box;
  resize: vertical;
  font-family: inherit;
  transition: border-color 0.15s;
}

.gdi-modal__textarea:focus {
  outline: none;
  border-color: #8FA03A;        /* olive */
}

.gdi-modal__actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.gdi-btn-save {
  background: #8FA03A;          /* olive */
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  flex-shrink: 0;
}

.gdi-btn-save:hover:not(:disabled) {
  background: #6A7B29;
}

.gdi-btn-save:disabled {
  opacity: 0.55;
  cursor: wait;
}

.gdi-btn-skip {
  background: none;
  border: none;
  color: #9C6B4E;               /* terra */
  font-size: 14px;
  cursor: pointer;
  padding: 10px 8px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.gdi-btn-skip:hover {
  color: #7a5240;
}

/* Loading state — shown while select_insight_question is in flight */
.gdi-modal--loading .gdi-modal__question {
  color: #9C6B4E;
  font-style: italic;
  font-size: 22px;
  letter-spacing: 0.15em;
}

@media (max-width: 480px) {
  .gdi-modal {
    padding: 28px 20px 22px;
  }
  .gdi-modal__question {
    font-size: 16px;
  }
}
