/* My Preparation (2026-09-04): the private saved-work index and detail.
   Page-scoped `.mp-*` rules only; buttons reuse `.rf-btn` (2px accent border,
   44px, card-fx glow via `cardfx-pop`) so THE BUTTON LAW holds without a
   second button style. Both themes come from the shared tokens. */
.mp-main { padding-top: var(--space-5); padding-bottom: var(--space-6); }
.mp-card { max-width: 1040px; margin: 0 auto; }
.mp-h1 { margin: 0 0 var(--space-2); font-family: var(--font-serif); font-size: var(--text-2xl, 1.9rem); line-height: 1.2; color: var(--color-text-strong, var(--color-text)); overflow-wrap: anywhere; }
.mp-h2 { margin: 0 0 var(--space-2); font-size: var(--text-lg); line-height: 1.25; color: var(--color-text-strong, var(--color-text)); }
.mp-lead { margin: 0 0 var(--space-4); font-size: var(--text-body); line-height: 1.55; color: var(--color-text); max-width: var(--prose-measure); margin-inline: auto; }
.mp-note { margin: 0 0 var(--space-3); font-size: var(--text-sm); line-height: 1.5; color: var(--color-text-muted); }
.mp-status { margin: 0 0 var(--space-3); font-size: var(--text-sm); line-height: 1.5; color: var(--color-text); min-height: 1.2em; }
.mp-status.is-error { color: var(--color-danger, #a12626); font-weight: 600; }
.mp-status.is-ok { color: var(--color-success, #1f6b3a); font-weight: 600; }
.mp-state { text-align: center; padding: var(--space-5) 0; }
.mp-state .mp-lead { margin-bottom: var(--space-3); }
.mp-state-actions, .mp-top-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; margin: 0 0 var(--space-5); }
.mp-top-actions { justify-content: flex-start; }

/* Index cards. The card is not itself a link; its two actions are. */
.mp-claims { display: grid; gap: var(--space-3); margin-bottom: var(--space-5); }
.mp-claim { border: 2px solid var(--color-accent); border-radius: var(--radius-md); background: var(--color-surface); padding: var(--space-4); min-width: 0; }
.mp-claim h3 { margin: 0 0 var(--space-1); font-size: var(--text-md); line-height: 1.3; overflow-wrap: anywhere; }
.mp-claim-situation, .mp-claim-conditions, .mp-claim-count, .mp-claim-phase { margin: 0 0 var(--space-1); font-size: var(--text-sm); line-height: 1.5; color: var(--color-text-muted); overflow-wrap: anywhere; }
.mp-claim-conditions { color: var(--color-text); }
.mp-claim-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
.mp-claim-actions .rf-btn { flex: 1 1 200px; }
.mp-empty { padding: var(--space-4); border: 1px dashed var(--color-border); border-radius: var(--radius-md); font-size: var(--text-sm); color: var(--color-text-muted); }
.mp-guidance-list { display: grid; gap: var(--space-2); }
.mp-guidance-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2); padding: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); }
.mp-guidance-row strong { overflow-wrap: anywhere; }
.mp-guidance-row .rf-btn { min-width: 140px; }

/* Detail head: the packet action is visible without scrolling at 375x812. */
.mp-back { margin: 0 0 var(--space-3); font-size: var(--text-sm); }
.mp-back a { color: var(--color-primary); font-weight: 600; }
.mp-head { margin-bottom: var(--space-3); }
.mp-situation { margin: 0 0 var(--space-1); font-size: var(--text-sm); color: var(--color-text-muted); }
.mp-conditions { margin: 0; font-size: var(--text-sm); line-height: 1.5; color: var(--color-text); overflow-wrap: anywhere; }
.mp-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--space-2); margin-bottom: var(--space-4); }
.mp-actions .rf-btn { width: 100%; }

/* My next step */
.mp-next { margin-bottom: var(--space-4); padding: var(--space-4); border: 1px solid var(--color-accent); border-radius: var(--radius-md); background: var(--color-surface); }
.mp-next-text { margin: 0 0 var(--space-2); font-size: var(--text-body); line-height: 1.5; overflow-wrap: anywhere; }
.mp-next-text.is-done { text-decoration: line-through; color: var(--color-text-muted); }
.mp-next-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.mp-next-form { display: grid; gap: var(--space-2); }
.mp-next-form label { display: grid; gap: 4px; font-size: var(--text-sm); font-weight: 600; }
.mp-next-form input, .mp-next-form select, .mp-filter select { min-height: 44px; font-size: 16px; padding: var(--space-2); border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-bg); color: var(--color-text); }

/* Filters + results */
.mp-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: var(--space-4); align-items: start; margin-bottom: var(--space-5); }
.mp-filters { display: grid; gap: var(--space-3); padding: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); position: sticky; top: 90px; }
.mp-filter { display: grid; gap: 4px; font-size: var(--text-sm); font-weight: 600; }
.mp-filter select { width: 100%; }
.mp-count { margin: 0 0 var(--space-2); font-size: var(--text-sm); color: var(--color-text-muted); }
.mp-list { display: grid; gap: var(--space-2); }
.mp-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-2); align-items: start; padding: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); }
.mp-row:focus-within, .mp-row.is-focus { border-color: var(--color-primary); }
.mp-row strong { display: block; font-size: var(--text-body); line-height: 1.35; overflow-wrap: anywhere; }
.mp-row-meta { display: block; margin-top: 2px; font-size: var(--text-sm); line-height: 1.45; color: var(--color-text-muted); overflow-wrap: anywhere; }
.mp-row-review { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--color-danger, #a12626) 10%, transparent); color: var(--color-danger, #a12626); font-size: var(--text-xs, .78rem); font-weight: 700; }
.mp-row-actions { display: grid; gap: var(--space-1); }
.mp-row-actions .rf-btn-quiet { min-width: 96px; }
.mp-more { margin: var(--space-3) 0 0; }

.mp-add, .mp-links { margin-bottom: var(--space-5); }
.mp-add-actions, .mp-links-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: var(--space-2); margin-bottom: var(--space-3); }
.mp-add-actions .rf-btn, .mp-links-grid .rf-btn { width: 100%; }
.mp-family { margin-bottom: var(--space-4); }
.mp-phase { max-width: 420px; }

@media (max-width: 860px) {
  .mp-layout { grid-template-columns: minmax(0, 1fr); }
  .mp-filters { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mp-filters .rf-btn { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .mp-main { padding-top: var(--space-4); }
  .mp-h1 { font-size: 1.5rem; }
  .mp-actions { grid-template-columns: minmax(0, 1fr); }
  .mp-filters { grid-template-columns: minmax(0, 1fr); }
  .mp-row { grid-template-columns: minmax(0, 1fr); }
  .mp-row-actions { grid-auto-flow: column; }
  .mp-claim-actions .rf-btn, .mp-top-actions .rf-btn, .mp-state-actions .rf-btn { width: 100%; }
}
@media print {
  /* A native print of this page outside the packet prints its notice only;
     the packet's own print stylesheet governs the reviewed copy. */
  .mp-filters, .mp-add, .mp-links, .mp-family, .mp-next, .mp-actions, .mp-back { display: none !important; }
}
