/* hiring-h03: owner hiring page (v2/hiring.js). Loaded by dev.html only. Phone first: one column, 44px tap targets on
   touch screens, long text wraps, nothing scrolls sideways. Follows v2/mobile.css (16px inputs on touch, press feedback). */
.v2-hiring { display: flex; flex-direction: column; gap: 14px; max-width: 860px; }
.v2-hire-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; justify-content: space-between; }
.v2-hire-tabs { margin: 0; }
.v2-hire-rolepick { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.v2-hire-rolepick select { max-width: 100%; }
.v2-hire-note-line { margin-top: -6px; }
.v2-hire-err { color: var(--red); }

.v2-hire-card, .v2-hire-role, .v2-hire-drafts, .v2-hire-stage, .v2-hire-checklist { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.v2-hire-head { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
.v2-hire-head > div { min-width: 0; }
.v2-hire-name { font-size: 20px; font-weight: 600; margin: 2px 0; overflow-wrap: anywhere; }
.v2-hire-total { text-align: right; flex: none; }
.v2-hire-big { font-size: 28px; line-height: 1; }
.v2-hire-pills { gap: 6px; }
.v2-hire-summary { margin: 0; }
.v2-hire-h3 { font-size: 14px; font-weight: 600; margin: 6px 0 0; }
.v2-hire-scores { display: grid; gap: 8px; }
.v2-hire-score { border-top: 1px solid var(--line); padding-top: 8px; }
.v2-hire-score-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.v2-hire-pre { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 6px; }
.v2-hire-answer { margin-top: 8px; overflow-wrap: anywhere; }
.v2-hire-more summary { cursor: pointer; padding: 6px 0; }
.v2-hire-note, .v2-hire-draft-body, .v2-hire-role textarea, .v2-hire-crit input[name="label"] { width: 100%; box-sizing: border-box; }
.v2-hire-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.v2-hire-nav { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.v2-hire-danger { color: var(--red); }
.v2-hire-actions .btn[disabled], .v2-hire-task-act .btn[disabled] { opacity: .6; cursor: not-allowed; }

.v2-hire-draft { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.v2-hire-timing { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.v2-hire-crit { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line); padding-top: 8px; }
.v2-hire-crit-row { gap: 10px; align-items: center; }
.v2-hire-crit input[name="weight"] { width: 80px; display: inline-block; }
.v2-hire-posting { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 8px; }

.v2-hire-counts { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.v2-hire-count { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.v2-hire-count b { font-size: 20px; }
.v2-hire-count.zero { opacity: .55; }
.v2-hire-li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.v2-hire-li:active { background: var(--line2); }

.v2-hire-task { display: flex; justify-content: space-between; gap: 10px; align-items: center; border-top: 1px solid var(--line); padding-top: 8px; }
.v2-hire-task > div:first-child { min-width: 0; }
.v2-hire-task.done .sm b { color: var(--muted, inherit); }
.v2-hire-task-act { gap: 6px; flex: none; }
.v2-hire-scorein { width: 72px; }

@media (max-width: 640px) {
  .v2-hire-bar { flex-direction: column; align-items: stretch; }
  .v2-hire-actions .btn { flex: 1 1 100%; }
  .v2-hire-task { flex-direction: column; align-items: stretch; }
  .v2-hire-task-act { justify-content: flex-start; }
  .v2-hire-name { font-size: 18px; }
}
@media (pointer: coarse) {
  .v2-hiring .btn, .v2-hiring select, .v2-hire-li, .v2-hire-more summary { min-height: 44px; }
  .v2-hiring .btn.sm { min-height: 44px; }
}
