/* ============================================================
   The Case Home and the upload sheet (js/home.js)
   ============================================================ */
.hm-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 18px; }
.hm-kicker { font-size: 12px; color: var(--text-3); letter-spacing: .02em; margin-bottom: 6px; }
.hm-title { margin: 0; }
.hm-client { font-size: 14px; color: var(--text-2); margin-top: 4px; }

.hm-next {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: 'k b' 'l b' 'h b'; column-gap: 24px; align-items: center;
  padding: 22px 26px; border-radius: 16px; margin-bottom: 18px;
  border: 1px solid var(--border-gold);
  background: linear-gradient(135deg, rgba(201,169,98,.12), rgba(201,169,98,.03));
}
.hm-next-k { grid-area: k; font-size: 12px; color: var(--gold); letter-spacing: .04em; }
.hm-next-l { grid-area: l; font-family: var(--serif); font-size: 28px; line-height: 1.2; color: var(--text); margin: 2px 0 4px; }
.hm-next-p { font-family: var(--sans); font-size: 14px; color: var(--text-2); }
.hm-next-how { grid-area: h; font-size: 14px; line-height: 1.55; color: var(--text-2); max-width: 70ch; }
.hm-next .hm-big { grid-area: b; }
.hm-alldone { grid-template-areas: 'l b' 'h b'; border-color: rgba(143,206,159,.35); background: linear-gradient(135deg, rgba(143,206,159,.10), rgba(143,206,159,.02)); }
.hm-big { padding: 12px 22px; font-size: 14px; border-radius: 11px; white-space: nowrap; }

.hm-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
@media (max-width: 1280px) { .hm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hm-card {
  display: flex; flex-direction: column; gap: 12px; padding: 18px 18px 16px; border-radius: 14px;
  border: 1px solid var(--border); background: var(--surface);
}
.hm-card.hm-now { border-color: var(--border-gold); box-shadow: 0 0 0 3px rgba(201,169,98,.06); }
.hm-card-head { display: flex; flex-direction: column; gap: 4px; }
.hm-stage { font-size: 12px; color: var(--text-3); }
.hm-card.hm-now .hm-stage { color: var(--gold); }
.hm-card.hm-done .hm-stage::after { content: ' ✓'; color: var(--green); }
.hm-card-title { font-family: var(--serif); font-size: 22px; line-height: 1.2; color: var(--text); }
.hm-rows { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.hm-p { font-size: 13.5px; line-height: 1.55; color: var(--text-2); margin: 0; }
.hm-stats { display: flex; gap: 18px; flex-wrap: wrap; }
.hm-stat { display: flex; flex-direction: column; }
.hm-n { font-size: 20px; color: var(--text); font-variant-numeric: tabular-nums; }
.hm-l { font-size: 12px; color: var(--text-3); }
.hm-warn .hm-n { color: var(--amber); }
.hm-bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.06); overflow: hidden; }
.hm-bar span { display: block; height: 100%; background: var(--gold); border-radius: 3px; transition: width .3s; }
.hm-mix { display: flex; height: 8px; border-radius: 4px; overflow: hidden; gap: 2px; }
.hm-seg { min-width: 4px; }
.hm-keys { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--text-2); }
.hm-keys i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; vertical-align: 0; }
.hm-card-btn { align-self: flex-start; }

.hm-lower { display: grid; grid-template-columns: 1.1fr 1fr; gap: 14px; }
@media (max-width: 1100px) { .hm-lower { grid-template-columns: 1fr; } }
.hm-steps-card .sh { margin: 0; border: none; background: none; padding: 0; }
.hm-ev { font-size: 13px; color: var(--text-2); line-height: 1.5; padding: 6px 0; border-bottom: 1px solid var(--border); }
.hm-ev:last-of-type { border-bottom: none; }
.hm-ev-t { color: var(--text-3); font-size: 12px; margin-right: 8px; font-variant-numeric: tabular-nums; }
.hm-ev-w { color: var(--text); }
.hm-ev-x { color: var(--text-3); }
.hm-recent .hm-card-btn { margin-top: 10px; }
.hm-empty { text-align: center; padding: 80px 20px; }
.hm-empty h2 { font: 400 30px/1.2 var(--serif); color: var(--text); margin-bottom: 8px; }
.hm-empty p { color: var(--text-2); margin-bottom: 18px; }

/* The upload sheet */
.us {
  position: fixed; right: 24px; bottom: 24px; z-index: 290; width: min(440px, calc(100vw - 32px));
  padding: 18px 20px; border-radius: 14px; background: var(--glass, rgba(13,15,23,.95));
  border: 1px solid var(--border-gold); box-shadow: 0 20px 60px rgba(0,0,0,.5);
  backdrop-filter: blur(12px);
}
.us-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.us-title { font-family: var(--serif); font-size: 22px; color: var(--text); }
.us-x { all: unset; cursor: pointer; font-size: 20px; color: var(--text-3); padding: 0 4px; }
.us-x:hover { color: var(--text); }
.us-name { font-size: 12px; color: var(--text-3); margin-bottom: 10px; word-break: break-all; }
.us-bar { margin: 10px 0 8px; }
.us-line { font-size: 12.5px; color: var(--text-2); }
.us-mix { margin: 8px 0; }
.us-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--text-2); line-height: 1.45; }
.us-list b { color: var(--text); font-weight: 500; }
.us-list .us-warn b { color: var(--amber); }
.us-link { all: unset; cursor: pointer; color: var(--gold); border-bottom: 1px dotted var(--gold-soft); }
.us-next { font-size: 13px; color: var(--text); margin: 14px 0 10px; }
.us-actions { display: flex; gap: 8px; }

/* The hero above already says the next step: the steps list here is the list. */
.hm-steps-card .sh-next, .hm-steps-card .sh-bar { display: none; }
.hm-stats .hm-stat { flex: 1 1 0; min-width: 90px; }
