/* First-time hints (初见提示): FirstTimeHintCard in MapDeskLayer, same column as the GuidedTaskPanel
 * (right 304px, 280 wide). `bottom` and `max-height` are set from JS after measuring the live
 * #GuidedTaskPanel. Look follows the first-war explainer (.war-intro): dashed border, parchment paper. */
.first-hint-card {
  left: auto !important; right: 304px !important; top: auto !important; bottom: 68px;
  width: 280px; height: auto;
  display: flex; flex-direction: column; gap: 5px;
  padding: 7px 9px 8px;
  background: #FDF8EE;
  border: 1px dashed var(--blue);
  box-shadow: 0 2px 6px rgba(30, 28, 26, 0.25);
  overflow-y: auto; overflow-x: hidden;
  pointer-events: auto;
  z-index: 16; /* above GuidedTaskPanel (15), below RegionInspectorCard (20) */
}
.first-hint-card.is-urgent { border-color: var(--red); border-left: 3px solid var(--red); }
.first-hint-hdr {
  display: flex; align-items: baseline; gap: 6px;
  border-bottom: 1px solid rgba(30, 28, 26, 0.2); padding-bottom: 3px;
}
.first-hint-kicker {
  flex: 0 0 auto; font-size: 10.5px; color: var(--muted);
  border: 1px solid rgba(30, 28, 26, 0.28); padding: 0 4px; line-height: 1.5;
}
.first-hint-card.is-urgent .first-hint-kicker { color: var(--red); border-color: rgba(184, 41, 47, 0.45); }
.first-hint-title { flex: 1 1 auto; font-family: var(--font-title); font-size: 13.5px; font-weight: 700; color: var(--ink); line-height: 1.35; }
button.btn.first-hint-x { flex: 0 0 auto; padding: 0 5px; min-height: 18px; line-height: 1; font-size: 11px !important; }
.first-hint-line { margin: 0; font-size: 12px; line-height: 1.55; color: var(--ink); }
.first-hint-actions { display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; padding-top: 2px; }
button.btn.first-hint-btn { flex: 0 0 auto; padding: 2px 8px; min-height: 22px; font-size: 11.5px !important; text-align: center; }
button.btn.first-hint-btn.approve { font-weight: 600; background: #F2E3C4; border-color: var(--amber); }
button.btn.first-hint-ok { margin-left: auto; }

/* Compact layout: flows with the agenda and guided tasks above the map. */
html.layout-compact .first-hint-card {
  position: relative !important; right: auto !important; bottom: auto !important;
  width: auto !important; max-height: none !important; margin: 0 12px 8px; order: -1;
}

/* EventModal: one-time note on the first 预决策 event (pre-decision form). */
.first-hint-inline {
  display: flex; align-items: flex-start; gap: 8px;
  margin: 0 0 8px; padding: 6px 9px;
  background: #FDF8EE; border: 1px dashed var(--blue);
  font-size: 12.5px; line-height: 1.55; color: var(--ink);
}
.first-hint-inline-text { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; }
.first-hint-inline-title { font-family: var(--font-title); font-weight: 700; font-size: 13px; }
button.btn.first-hint-inline-ok { flex: 0 0 auto; padding: 2px 8px; min-height: 22px; font-size: 11.5px !important; }

/* Settings: 初见提示 section. */
.settings-hints-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
button.btn.settings-hints-reset { padding: 3px 10px; font-size: 12.5px !important; }
.settings-hints-done { font-size: 12px; color: var(--muted); }

/* Codex: 提示回顾 list. */
.codex-hint-review { display: flex; flex-direction: column; gap: 10px; }
.codex-hint-review-item { border: 1px dashed rgba(107, 68, 40, 0.45); background: #FDF8EE; padding: 7px 10px; }
.codex-hint-review-title { font-family: var(--font-title); font-weight: 700; font-size: 14px; margin-bottom: 3px; }
.codex-hint-review-line { margin: 0 0 2px; font-size: 13px; line-height: 1.6; }
.codex-hint-review-empty { font-size: 13px; color: var(--muted); }
