/* ready.css - Ready (deliverables) screen. Scoped to .ready.
   Tokens and shared components come from tokens/components/screens.css. */

/* ---------- Deliverables ---------- */
.ready .deliverables .section-h { justify-content: space-between; }
.ready .dl-tiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .ready .dl-tiles-3 { grid-template-columns: 1fr; } }

.ready .dl-tile {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-md);
  padding: 18px; box-shadow: var(--sh-1);
  transition: border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease), transform var(--dur-1) var(--ease);
}
.ready .dl-tile:hover { border-color: var(--navy); box-shadow: var(--sh-2); }
.ready .dl-primary { border-color: var(--navy); background: var(--brand-tint); }
.ready .btn-secondary { color: var(--ink); background: var(--surface); border-color: var(--line-strong); }
.ready .btn-secondary:hover:not(:disabled) { background: var(--surface-2); }
.ready .dl-tile.expired { opacity: .72; box-shadow: none; }
.ready .dl-tile.expired:hover { border-color: var(--line-strong); box-shadow: none; }

.ready .dt-preview { border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: var(--surface-2); }
.ready .dt-preview img { display: block; width: 100%; height: auto; max-height: 200px; object-fit: cover; object-position: top; }

.ready .dt-row { display: flex; gap: 13px; align-items: flex-start; }
.ready .dt-ic { width: 46px; height: 46px; border-radius: var(--r-md); background: var(--brand-tint); color: var(--navy); display: flex; align-items: center; justify-content: center; flex: none; }
.ready .dt-ic .ic { width: 24px; height: 24px; }
[data-theme="dark"] .ready .dt-ic { color: var(--ink-2); }
.ready .dl-tile.expired .dt-ic { background: var(--bg-tint); color: var(--muted); }
.ready .dt-main { min-width: 0; flex: 1; }
.ready .dt-kind { font-size: 15px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.ready .dt-file { font-family: inherit; font-size: 12.5px; color: var(--muted); margin-top: 3px; word-break: break-word; }
.ready .dt-size { font-size: 12px; color: var(--muted); margin-top: 4px; }
@media (min-width: 641px) { .ready .dl-tiles:not(.dl-tiles-3) { grid-auto-rows: 1fr; } }
@media (min-width: 861px) { .ready .dl-tiles-3 { grid-auto-rows: 1fr; } }
.ready .dt-description { margin: 0; color: var(--ink-2); font-size: 13px; }
.ready .dt-actions { display: flex; gap: 8px; margin-top: auto; }
.ready .dt-actions .btn { flex: 1; }

.ready .expiry-ok { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); margin: 14px 0 0; }
.ready .expiry-ok .ic { width: 15px; height: 15px; flex: none; }
.ready .expiry-ok strong { color: var(--ink-2); font-weight: 600; }
.ready .expiry-note { margin-top: 14px; }

/* ---------- Check before you send ---------- */
.ready .check-list { display: flex; flex-direction: column; gap: 10px; }
.ready .check-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; background: var(--warn-bg); border-radius: var(--r-md); }
.ready .ci-ic { width: 22px; height: 22px; border-radius: 50%; background: var(--warn); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.ready .ci-ic .ic { width: 14px; height: 14px; }
.ready .ci-text { font-size: 13.5px; color: var(--warn-text); line-height: 1.5; }

.ready .check-reminder { display: flex; align-items: flex-start; gap: 9px; margin: 14px 0 0; font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.ready .check-reminder .ic { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--muted); }

.ready .read-notes { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.ready .read-notes summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.ready .read-notes summary::-webkit-details-marker { display: none; }
.ready .read-notes summary .ic { width: 16px; height: 16px; flex: none; color: var(--muted); transition: transform var(--dur-1) var(--ease); }
.ready .read-notes[open] summary .ic { transform: rotate(90deg); }
.ready .rn-count { font-weight: 400; font-size: 12.5px; color: var(--muted); }
.ready .rn-file { margin: 14px 0 0 24px; }
.ready .rn-name { font-size: 13px; font-weight: 600; color: var(--ink-2); word-break: break-word; }
.ready .rn-name span { font-weight: 400; color: var(--muted); }
.ready .rn-file ul { margin: 6px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.ready .rn-file li { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

.ready .check-clear { display: flex; gap: 13px; align-items: center; }
.ready .cc-ic { width: 38px; height: 38px; border-radius: 50%; background: var(--ok); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.ready .cc-ic .ic { width: 20px; height: 20px; }
.ready .cc-title { font-weight: 700; font-size: 14px; color: var(--ink); }
.ready .cc-sub { font-size: 13px; color: var(--muted); margin-top: 1px; }

/* ---------- Recommendation summary ---------- */
.ready .section-h h2 { display: inline-flex; align-items: center; gap: 8px; }
.ready .section-h h2 .ic { width: 18px; height: 18px; color: var(--primary); }
.ready .rec-ledger { margin-bottom: 18px; }
@media (max-width: 560px) { .ready .rec-ledger { grid-template-columns: 1fr; } }
.ready .rec-why { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 7px; }
.ready .rec-why li { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }

.ready .impact-table { margin-top: 18px; }
.ready .impact-table table { width: 100%; border-collapse: collapse; }
.ready .impact-table th, .ready .impact-table td { padding: 9px 14px; text-align: left; font-size: 13px; border-bottom: 1px solid var(--line); }
.ready .impact-table th { font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .02em; background: var(--surface-2); }
.ready .impact-table td { color: var(--ink-2); }
.ready .impact-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.ready .impact-table tr:last-child td { border-bottom: none; }
.ready .delta-save { color: var(--ok-text); font-weight: 600; }
.ready .delta-cost { color: var(--primary-text); font-weight: 600; }

/* ---------- Footer ---------- */
.ready .ready-foot { display: flex; gap: 12px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); flex-wrap: wrap; }
@media (max-width: 520px) { .ready .ready-foot .btn { width: 100%; } }

/* ---------- Make changes ---------- */
.ready .edit-card { display: flex; flex-direction: column; gap: 10px; }
.ready .edit-card textarea { width: 100%; min-height: 76px; resize: vertical; }
.ready .edit-card .field-hint { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.ready .edit-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ready .edit-pending { background: var(--info-bg); color: var(--info-text); align-items: center; }
.ready .edit-plan { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.ready .ep-h { font-size: 13px; font-weight: 700; color: var(--ink); }
.ready .check-item.ok { background: var(--ok-bg); }
.ready .check-item.ok .ci-ic { background: var(--ok); }
.ready .check-item.ok .ci-text { color: var(--ok-text); }
.ready .ep-question { display: flex; gap: 9px; align-items: flex-start; margin: 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.ready .ep-question .ic { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--muted); }
.ready .edit-versions { margin-top: 6px; border-top: 1px solid var(--line); padding-top: 12px; }
.ready .edit-versions summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.ready .edit-versions summary::-webkit-details-marker { display: none; }
.ready .edit-versions summary .ic { width: 16px; height: 16px; flex: none; color: var(--muted); transition: transform var(--dur-1) var(--ease); }
.ready .edit-versions[open] summary .ic { transform: rotate(90deg); }
.ready .ev-row { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; margin: 12px 0 0 24px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.ready .ev-row:last-child { border-bottom: 0; padding-bottom: 0; }
.ready .ev-main { min-width: 0; }
.ready .ev-title { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.ready .ev-title span { display: block; font-weight: 400; font-size: 12px; color: var(--muted); margin-top: 2px; }
.ready .ev-main ul { margin: 6px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 3px; }
.ready .ev-main li, .ready .ev-note { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.ready .ev-note { margin-top: 4px; }
.ready .ev-problems li { color: var(--warn-text); }
.ready .spinner { width: 14px; height: 14px; flex: none; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; display: inline-block; animation: edit-spin .8s linear infinite; vertical-align: -2px; }
@keyframes edit-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ready .spinner { animation-duration: 2.4s; } }
@media (max-width: 600px) { .ready .edit-card textarea { min-height: 118px; } }

/* PRISM Phase A */

.ready .deliverables { margin-top: 30px; margin-bottom: 36px; }
.ready .dl-tile { padding: 24px; gap: 22px; border-radius: var(--r-lg); box-shadow: var(--sh-2); }
.ready .dl-primary { border-color: var(--primary); background: var(--surface); border-top: 3px solid var(--primary); padding-top: 22px; }
.ready .dt-row { flex-direction: column; gap: 16px; }
.ready .dt-ic { width: 48px; height: 48px; color: var(--info-text); }
.ready .dt-kind { font-size: 19px; line-height: 1.3; }
.ready .dt-description { font-size: 14px; line-height: 1.6; }
.ready .dt-actions .btn { min-height: 42px; }
.ready .dl-tile:hover { border-color: var(--primary); }
@media (max-width: 600px) {
  .ready .section-h { flex-wrap: wrap; gap: 12px; }
  .ready .dl-tile { padding: 22px; }
  .ready .dt-row { flex-direction: row; }
  .ready .dt-kind { font-size: 18px; }
}

