/* Flowday V5.4 — Collaboration workflow: messages, shortlist, invites, contracts & milestones */
.employer-head-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.is-shortlisted{border-color:#cbd99f!important;background:linear-gradient(180deg,#f5f9e8,#efeee8)!important;box-shadow:inset 0 0 0 1px rgba(122,146,62,.08)}.shortlist-badge{display:inline-flex;align-items:center;border-radius:999px;padding:5px 8px;background:#1f241b;color:var(--accent);font-size:9px;font-weight:900;white-space:nowrap}.contract-strip-v54{display:flex;align-items:center;justify-content:space-between;gap:12px}.contract-strip-v54>div:first-child{display:grid;gap:4px}.contract-strip-v54>div:first-child span{font-size:10px}.contract-strip-v54>div:last-child{display:flex;gap:7px;flex-wrap:wrap}.talent-actions{flex-wrap:wrap}.invite-modal{max-width:580px}
.messages-layout{display:grid;grid-template-columns:minmax(240px,.34fr) minmax(0,.66fr);gap:14px;min-height:620px}.thread-list{overflow:hidden;align-self:stretch}.thread-list-head{padding:17px 17px 11px;border-bottom:1px solid #e5e3db}.thread-list-head h3{margin:0;font-size:17px}.thread-list-head span{font-size:10px;color:var(--muted)}.thread-card{width:100%;border:0;border-bottom:1px solid #eceae3;background:transparent;padding:13px 14px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center;text-align:start;cursor:pointer;color:var(--ink)}.thread-card:hover{background:#f3f2ec}.thread-card.active{background:#eef4dc}.thread-card .avatar-sm{width:38px;height:38px}.thread-copy{min-width:0;display:grid;gap:2px}.thread-copy b{font-size:12px}.thread-copy small,.thread-copy em{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.thread-copy small{font-size:9px;color:#7b8176}.thread-copy em{font-style:normal;font-size:10px;color:var(--muted)}.thread-card>i{font-style:normal;width:20px;height:20px;border-radius:50%;display:grid;place-items:center;background:#1f241b;color:#fff;font-size:9px;font-weight:900}.chat-panel{display:grid;grid-template-rows:auto 1fr auto;min-height:620px;overflow:hidden}.chat-head{padding:16px 18px;border-bottom:1px solid #e5e3db;display:flex;align-items:center;justify-content:space-between;gap:12px}.chat-head>div:first-child{display:grid}.chat-head b{font-size:14px}.chat-head span:not(.pill){font-size:9px;color:var(--muted)}.chat-messages{padding:20px;overflow:auto;display:flex;flex-direction:column;gap:9px;background:radial-gradient(circle at 20% 10%,rgba(214,255,99,.11),transparent 26%),#f6f5f0}.chat-row{display:flex}.chat-row.me{justify-content:flex-end}.chat-row.them{justify-content:flex-start}.chat-row.system{justify-content:center}.chat-bubble{max-width:min(78%,560px);border:1px solid #e0ded5;background:#fff;border-radius:17px;padding:10px 12px;box-shadow:0 5px 14px rgba(40,42,34,.04)}.chat-row.me .chat-bubble{background:#1f241b;color:#fff;border-color:#1f241b;border-bottom-right-radius:6px}.chat-row.them .chat-bubble{border-bottom-left-radius:6px}.chat-row.system .chat-bubble{background:#edf3dc;color:#526237;border-color:#d8e4bc;border-radius:999px;padding:7px 11px;box-shadow:none}.chat-bubble p{margin:0;font-size:12px;line-height:1.8}.chat-bubble time{display:block;font-size:8px;color:#969c90;margin-top:4px}.chat-row.me .chat-bubble time{color:#9fa89a}.chat-empty{margin:auto;color:var(--muted);font-size:11px}.chat-compose{padding:12px;border-top:1px solid #e5e3db;display:grid;grid-template-columns:1fr auto;gap:8px;background:#fbfaf7}.chat-compose textarea{resize:none;border:1px solid #dedcd3;background:#f3f2ec;border-radius:15px;padding:10px 12px;outline:none;line-height:1.6}.chat-compose textarea:focus{border-color:#b6c47f;box-shadow:0 0 0 3px rgba(214,255,99,.18)}
.contracts-overview{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:14px}.contracts-overview h2{margin:0 0 3px}.contract-summary{min-width:105px;border-radius:18px;background:#1f241b;color:#fff;padding:12px;text-align:center;display:grid;gap:2px}.contract-summary b{font-size:23px;color:var(--accent)}.contract-summary span{font-size:9px;color:#abb2a5}.contract-list{display:grid;gap:14px}.contract-card{padding:20px}.contract-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}.contract-head h3{font-size:19px;margin:5px 0}.contract-progress{margin:17px 0}.contract-progress>div:first-child{display:flex;align-items:baseline;gap:7px;margin-bottom:7px}.contract-progress b{font-size:18px}.contract-progress span{font-size:9px;color:var(--muted)}.milestone-list{border:1px solid #e1dfd6;border-radius:18px;overflow:hidden}.milestone-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:10px;padding:13px 14px;border-bottom:1px solid #ebe9e1;background:#fbfaf7}.milestone-row:last-child{border-bottom:0}.milestone-row>div{display:grid;gap:2px}.milestone-row b{font-size:12px}.milestone-row small{font-size:9px;color:var(--muted)}.milestone-dot{width:10px;height:10px;border-radius:50%;background:#c8c8c0;box-shadow:0 0 0 4px #efeee8}.milestone-row.active .milestone-dot{background:#7d9e2d;box-shadow:0 0 0 4px #e7efcf}.milestone-row.submitted .milestone-dot{background:#d79c2c;box-shadow:0 0 0 4px #f8ebd0}.milestone-row.approved .milestone-dot{background:#3b8b58;box-shadow:0 0 0 4px #dff0e4}.milestone-row.approved{background:#f5faf5}.milestone-status{font-size:9px;padding:5px 8px;border-radius:999px;background:#ecebe5;color:#70756d;white-space:nowrap}.milestone-row.active .milestone-status{background:#edf4dc;color:#58702f}.milestone-row.submitted .milestone-status{background:#fff0cf;color:#8d6515}.milestone-row.approved .milestone-status{background:#dff2e4;color:#2f7046}.contract-actions{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:13px}.demo-payment-note{font-size:9px;color:#8a8f85}.proposal-actions .btn{min-width:92px}
@media(max-width:900px){.messages-layout{grid-template-columns:1fr;min-height:auto}.thread-list{max-height:280px;overflow:auto}.chat-panel{min-height:520px}.milestone-row{grid-template-columns:auto 1fr auto}.milestone-row .btn{grid-column:2/-1;justify-self:start}.contract-strip-v54{align-items:flex-start;flex-direction:column}}
@media(max-width:760px){.employer-head{align-items:stretch;flex-direction:column}.employer-head-actions{display:grid;grid-template-columns:1fr 1fr}.employer-head-actions .btn{grid-column:1/-1}.freelancer-name{flex-wrap:wrap}.talent-trust{margin-inline-start:0}.shortlist-badge{margin-inline-start:auto}.messages-layout{display:block}.thread-list{max-height:245px;margin-bottom:10px}.thread-card{padding:11px}.chat-panel{min-height:510px}.chat-head{padding:13px}.chat-head .pill{display:none}.chat-messages{padding:14px}.chat-bubble{max-width:88%}.chat-compose{grid-template-columns:1fr}.chat-compose .btn{width:100%}.contracts-overview{align-items:flex-start}.contract-summary{min-width:85px}.contract-card{padding:15px}.contract-head{display:block}.contract-head>.proposal-status{display:inline-flex;margin-top:8px}.milestone-row{grid-template-columns:auto 1fr;padding:12px 10px}.milestone-status{grid-column:2}.milestone-row .btn{grid-column:2;width:100%}.contract-actions{align-items:stretch;flex-direction:column}.contract-actions .btn{width:100%}.contract-strip-v54>div:last-child{width:100%}.contract-strip-v54 .btn{flex:1}.talent-actions .btn{flex:1 1 calc(50% - 6px)}}
