/* Task Manager Pro v2.0 - Full Styles */
:root {
    --tmp-primary:    #2563eb;
    --tmp-primary-d:  #1d4ed8;
    --tmp-success:    #16a34a;
    --tmp-danger:     #dc2626;
    --tmp-warning:    #d97706;
    --tmp-gray-50:    #f9fafb;
    --tmp-gray-100:   #f3f4f6;
    --tmp-gray-200:   #e5e7eb;
    --tmp-gray-500:   #6b7280;
    --tmp-gray-700:   #374151;
    --tmp-gray-900:   #111827;
    --tmp-radius:     8px;
    --tmp-shadow:     0 1px 3px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.06);
    --tmp-shadow-lg:  0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
}

/* ─── Layout ──────────────────────────────────────────────────────────────── */
.tmp-wrap { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: var(--tmp-gray-900); }
.tmp-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.tmp-title  { font-size: 1.5rem; font-weight: 700; margin: 0; color: var(--tmp-gray-900); }

/* ─── Stats Grid ──────────────────────────────────────────────────────────── */
.tmp-stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px,1fr)); gap: 16px; margin-bottom: 28px; }
.tmp-stat-card  { background: #fff; border: 1px solid var(--tmp-gray-200); border-radius: var(--tmp-radius); padding: 16px; text-align: center; box-shadow: var(--tmp-shadow); }
.tmp-stat-number { font-size: 2rem; font-weight: 700; color: var(--tmp-primary); line-height: 1; }
.tmp-stat-label  { font-size: .75rem; color: var(--tmp-gray-500); margin-top: 4px; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; }
.tmp-stat-pending  .tmp-stat-number { color: var(--tmp-warning); }
.tmp-stat-progress .tmp-stat-number { color: #7c3aed; }
.tmp-stat-review   .tmp-stat-number { color: #0891b2; }
.tmp-stat-done     .tmp-stat-number { color: var(--tmp-success); }
.tmp-stat-unpaid   .tmp-stat-number { color: var(--tmp-danger); }
.tmp-stat-paid     .tmp-stat-number { color: var(--tmp-success); }

/* ─── Filter Bar ──────────────────────────────────────────────────────────── */
.tmp-filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; align-items: center; }
.tmp-dashboard-toolbar .tmp-input { flex: 1 1 280px; min-width: 220px; }
.tmp-dashboard-toolbar .tmp-select { flex: 0 1 190px; min-width: 160px; }
.tmp-dashboard-footer { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-top:16px; flex-wrap:wrap; }
.tmp-dashboard-count { font-size:.85rem; color: var(--tmp-gray-500); }
.tmp-dashboard-pagination { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.tmp-dashboard-page-label { font-size:.85rem; color: var(--tmp-gray-700); font-weight:600; }

/* ─── Table ───────────────────────────────────────────────────────────────── */
.tmp-table-wrap { overflow-x: auto; }
.tmp-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--tmp-gray-200); border-radius: var(--tmp-radius); overflow: hidden; box-shadow: var(--tmp-shadow); }
.tmp-table thead { background: var(--tmp-gray-50); }
.tmp-table th, .tmp-table td { padding: 12px 14px; text-align: left; font-size: .875rem; border-bottom: 1px solid var(--tmp-gray-200); }
.tmp-table th { font-weight: 600; color: var(--tmp-gray-700); font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; }
.tmp-table tbody tr:hover { background: var(--tmp-gray-50); }
.tmp-table tbody tr:last-child td { border-bottom: none; }
.tmp-task-name a { font-weight: 600; color: var(--tmp-primary); text-decoration: none; }
.tmp-task-name a:hover { text-decoration: underline; }
.tmp-desc-preview { max-width: 240px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--tmp-gray-500); font-size: .8rem; }

/* ─── Badges ──────────────────────────────────────────────────────────────── */
.tmp-badge { display: inline-block; padding: 2px 10px; border-radius: 9999px; font-size: .75rem; font-weight: 600; }
.tmp-badge-pending     { background: #fef3c7; color: #92400e; }
.tmp-badge-in_progress { background: #ede9fe; color: #5b21b6; }
.tmp-badge-review      { background: #dbeafe; color: #1e40af; }
.tmp-badge-revision_requested { background: #fee2e2; color: #991b1b; }
.tmp-badge-revised { background: #e0f2fe; color: #0c4a6e; }
.tmp-badge-completed   { background: #dcfce7; color: #14532d; }
.tmp-badge-cancelled   { background: #f3f4f6; color: #374151; }
.tmp-badge-accepted    { background: #bbf7d0; color: #065f46; }
.tmp-badge-pay-unpaid  { background: #fee2e2; color: #991b1b; }
.tmp-badge-pay-invoiced{ background: #fef3c7; color: #92400e; }
.tmp-badge-pay-paid    { background: #dcfce7; color: #14532d; }
.tmp-badge-pay-refunded{ background: #f3f4f6; color: #374151; }
.tmp-badge-inv-draft   { background: #f3f4f6; color: #374151; }
.tmp-badge-inv-sent    { background: #dbeafe; color: #1e40af; }
.tmp-badge-inv-paid    { background: #dcfce7; color: #14532d; }
.tmp-badge-inv-cancelled { background: #fee2e2; color: #991b1b; }
.tmp-file-count-badge  { display: inline-flex; align-items: center; justify-content: center; background: var(--tmp-primary); color: #fff; border-radius: 9999px; font-size: .7rem; font-weight: 700; padding: 1px 7px; margin-left: 6px; vertical-align: middle; }

/* ─── Buttons ─────────────────────────────────────────────────────────────── */
.tmp-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border: none; border-radius: 6px; font-size: .875rem; font-weight: 600; cursor: pointer; text-decoration: none; transition: background .15s, opacity .15s; white-space: nowrap; }
.tmp-btn:focus { outline: 2px solid var(--tmp-primary); outline-offset: 2px; }
.tmp-btn-primary   { background: var(--tmp-primary); color: #fff; }
.tmp-btn-primary:hover { background: var(--tmp-primary-d); color: #fff; }
.tmp-btn-secondary { background: var(--tmp-gray-100); color: var(--tmp-gray-700); border: 1px solid var(--tmp-gray-200); }
.tmp-btn-secondary:hover { background: var(--tmp-gray-200); }
.tmp-btn-success   { background: var(--tmp-success); color: #fff; }
.tmp-btn-success:hover { background: #15803d; }
.tmp-btn-warning   { background: #f59e0b; color: #111827; }
.tmp-btn-warning:hover { background: #d97706; color: #111827; }
.tmp-btn-danger    { background: var(--tmp-danger); color: #fff; }
.tmp-btn-danger:hover { background: #b91c1c; }
.tmp-btn-sm  { padding: 4px 10px; font-size: .8rem; }
.tmp-btn-lg  { padding: 12px 24px; font-size: 1rem; }
.tmp-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ─── Forms ───────────────────────────────────────────────────────────────── */
.tmp-input, .tmp-select, .tmp-textarea { width: 100%; padding: 9px 12px; border: 1px solid var(--tmp-gray-200); border-radius: 6px; font-size: .875rem; background: #fff; color: var(--tmp-gray-900); transition: border-color .15s, box-shadow .15s; box-sizing: border-box; }
.tmp-input:focus, .tmp-select:focus, .tmp-textarea:focus { border-color: var(--tmp-primary); box-shadow: 0 0 0 3px rgba(37,99,235,.15); outline: none; }
.tmp-textarea { resize: vertical; }
.tmp-form-group { margin-bottom: 16px; }
.tmp-form-group label { display: block; font-weight: 600; font-size: .875rem; margin-bottom: 5px; color: var(--tmp-gray-700); }
.tmp-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .tmp-form-row { grid-template-columns: 1fr; } }
.tmp-form-actions { display: flex; gap: 10px; margin-top: 20px; }
.tmp-form-card { background: #fff; border: 1px solid var(--tmp-gray-200); border-radius: var(--tmp-radius); padding: 20px 24px; margin-bottom: 20px; box-shadow: var(--tmp-shadow); }
.tmp-form-card h3 { margin: 0 0 16px; font-size: 1rem; color: var(--tmp-gray-900); }
.tmp-form-standalone { max-width: 700px; }
.tmp-help-text { font-size: .8rem; color: var(--tmp-gray-500); margin: 4px 0 0; }
.tmp-input-file { padding: 0; border: 1px dashed var(--tmp-gray-200); background: var(--tmp-gray-50); cursor: pointer; }
.tmp-input-file-hidden { display: none; }
.tmp-select { -webkit-appearance: auto; }

/* ─── File drop zone ──────────────────────────────────────────────────────── */
.tmp-file-drop-zone { border: 2px dashed var(--tmp-gray-200); border-radius: var(--tmp-radius); padding: 32px; text-align: center; background: var(--tmp-gray-50); transition: border-color .2s, background .2s; cursor: pointer; }
.tmp-file-drop-zone:hover, .tmp-file-drop-zone.dragover { border-color: var(--tmp-primary); background: #eff6ff; }
.tmp-file-drop-label { cursor: pointer; }
.tmp-file-icon { font-size: 2.5rem; display: block; margin-bottom: 8px; }
.tmp-file-icon-sm { font-size: 1rem; vertical-align: middle; margin-right: 4px; }
.tmp-file-drop-label p { margin: 4px 0; color: var(--tmp-gray-500); }
.tmp-file-list { margin-top: 12px; text-align: left; }
.tmp-file-list-item { display: flex; justify-content: space-between; padding: 6px 10px; background: #fff; border: 1px solid var(--tmp-gray-200); border-radius: 4px; margin-top: 6px; font-size: .85rem; }
.tmp-file-list-empty { color: var(--tmp-gray-500); font-size: .82rem; margin-top: 8px; }

/* ─── Notices ─────────────────────────────────────────────────────────────── */
.tmp-notice { padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; font-size: .9rem; }
.tmp-notice-success { background: #dcfce7; color: #14532d; border: 1px solid #86efac; }
.tmp-notice-warning { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.tmp-notice-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.tmp-empty-state { text-align: center; padding: 60px 20px; color: var(--tmp-gray-500); }

/* ─── Modal ───────────────────────────────────────────────────────────────── */
.tmp-modal { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; }
.tmp-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); }
.tmp-modal-box { position: relative; background: #fff; border-radius: var(--tmp-radius); box-shadow: var(--tmp-shadow-lg); width: 100%; max-width: 560px; z-index: 1; }
.tmp-modal-lg { max-width: 720px; }
.tmp-modal-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--tmp-gray-200); }
.tmp-modal-header h3 { margin: 0; font-size: 1.1rem; }
.tmp-modal-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--tmp-gray-500); padding: 0 4px; line-height: 1; }
.tmp-modal-close:hover { color: var(--tmp-gray-900); }
.tmp-modal-body { padding: 20px; }
body.tmp-body-modal-open { overflow: hidden; }

/* ─── View / detail table ─────────────────────────────────────────────────── */
.tmp-detail-table { width: 100%; border-collapse: collapse; }
.tmp-detail-table th, .tmp-detail-table td { padding: 8px 10px; font-size: .875rem; border-bottom: 1px solid var(--tmp-gray-100); vertical-align: top; }
.tmp-detail-table th { width: 35%; color: var(--tmp-gray-500); font-weight: 600; white-space: nowrap; }
.tmp-description-body { font-size: .9rem; line-height: 1.6; color: var(--tmp-gray-700); }
.tmp-uploads-list { list-style: none; padding: 0; margin: 0; }
.tmp-uploads-list li { padding: 6px 0; border-bottom: 1px solid var(--tmp-gray-100); font-size: .875rem; }
.tmp-uploads-list li:last-child { border-bottom: none; }
.tmp-file-size, .tmp-file-date { color: var(--tmp-gray-500); font-size: .8rem; }
.tmp-link { color: var(--tmp-primary); text-decoration: none; cursor: pointer; }
.tmp-link:hover { text-decoration: underline; }
.tmp-loading { text-align: center; padding: 30px; color: var(--tmp-gray-500); }
.tmp-view-grid { display: grid; gap: 20px; }

/* ─── Submissions Box ─────────────────────────────────────────────────────── */
.tmp-submission-card { background: #fff; border: 1px solid var(--tmp-gray-200); border-radius: var(--tmp-radius); margin-bottom: 24px; box-shadow: var(--tmp-shadow); overflow: hidden; }
.tmp-submission-card-header { display: flex; justify-content: space-between; align-items: flex-start; padding: 18px 20px; border-bottom: 1px solid var(--tmp-gray-100); gap: 12px; flex-wrap: wrap; }
.tmp-submission-title { margin: 0 0 6px; font-size: 1.05rem; font-weight: 700; }
.tmp-submission-meta  { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tmp-submission-date  { font-size: .8rem; color: var(--tmp-gray-500); }
.tmp-submission-notes { padding: 14px 20px; background: var(--tmp-gray-50); border-bottom: 1px solid var(--tmp-gray-100); font-size: .9rem; }
.tmp-submission-notes strong { display: block; margin-bottom: 6px; color: var(--tmp-gray-700); }

.tmp-submission-files { padding: 16px 20px; }
.tmp-submission-files-title { font-size: .9rem; font-weight: 600; margin: 0 0 12px; color: var(--tmp-gray-700); display: flex; align-items: center; }
.tmp-submission-file-item { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--tmp-gray-100); flex-wrap: wrap; }
.tmp-submission-file-item:last-child { border-bottom: none; }
.tmp-submission-file-link { color: var(--tmp-primary); text-decoration: none; font-weight: 500; font-size: .9rem; display: inline-flex; align-items: center; gap: 4px; }
.tmp-submission-file-link:hover { text-decoration: underline; }
.tmp-submission-file-locked { color: var(--tmp-gray-500); font-size: .9rem; display: inline-flex; align-items: center; gap: 4px; }

.tmp-submission-locked { display: flex; align-items: flex-start; gap: 16px; padding: 20px; background: #fffbeb; border-bottom: 1px solid #fde68a; flex-wrap: wrap; }
.tmp-submission-lock-icon { font-size: 2rem; flex-shrink: 0; }
.tmp-submission-lock-text { flex: 1; }
.tmp-submission-lock-text strong { display: block; margin-bottom: 4px; color: #92400e; }
.tmp-submission-lock-text p { margin: 0 0 10px; font-size: .875rem; color: var(--tmp-gray-700); }
.tmp-submission-file-count { background: #fef3c7; color: #92400e; border-radius: 6px; padding: 8px 14px; font-weight: 600; font-size: .875rem; align-self: center; }

/* ─── Invoice portal extra ────────────────────────────────────────────────── */
.tmp-loading { text-align: center; padding: 20px; color: var(--tmp-gray-500); }

/* ─── Chat Layout ─────────────────────────────────────────────────────────── */
.tmp-chat-layout { display: flex; gap: 0; border: 1px solid var(--tmp-gray-200); border-radius: var(--tmp-radius); overflow: hidden; box-shadow: var(--tmp-shadow); background: #fff; }
.tmp-chat-shell { display:grid; grid-template-columns: 320px 1fr; height: 620px; min-height: 620px; border:1px solid var(--tmp-gray-200); border-radius: 18px; overflow:hidden; background: linear-gradient(180deg,#f8fafc 0%,#eef2ff 100%); box-shadow: var(--tmp-shadow-lg); }
.tmp-chat-sidebar-modern { background: rgba(255,255,255,.92); border-right:1px solid var(--tmp-gray-200); display:flex; flex-direction:column; min-width:0; min-height:0; }
.tmp-chat-sidebar-top { padding:18px; border-bottom:1px solid var(--tmp-gray-200); background: rgba(255,255,255,.85); backdrop-filter: blur(10px); }
.tmp-chat-sidebar-title { font-size: 1rem; font-weight:700; margin-bottom:12px; }
.tmp-chat-thread-list-modern { padding:12px; overflow-y:scroll; display:flex; flex-direction:column; gap:8px; flex:1; min-height:0; scrollbar-width: thin; scrollbar-color: #94a3b8 rgba(148,163,184,.15); }
.tmp-chat-thread-card { background:#fff; border:1px solid #e2e8f0; border-radius:14px; padding:12px 14px; cursor:pointer; transition:transform .12s ease, box-shadow .12s ease, border-color .12s ease; }
.tmp-chat-thread-card:hover, .tmp-chat-thread-card.active { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(15,23,42,.08); border-color:#bfdbfe; }
.tmp-chat-thread-row { display:flex; justify-content:space-between; align-items:center; gap:10px; }
.tmp-chat-thread-name { font-weight:700; font-size:.92rem; color:#0f172a; }
.tmp-chat-thread-meta { font-size:.72rem; color:#64748b; }
.tmp-chat-thread-preview { margin-top:5px; font-size:.82rem; color:#475569; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.tmp-chat-search-box { position:relative; }
.tmp-chat-search-results { position:absolute; top:calc(100% + 8px); left:0; right:0; background:#fff; border:1px solid #cbd5e1; border-radius:14px; box-shadow:0 16px 40px rgba(15,23,42,.16); z-index:20; display:none; max-height:280px; overflow:auto; }
.tmp-chat-search-item { padding:12px 14px; cursor:pointer; border-bottom:1px solid #eef2ff; }
.tmp-chat-search-item:last-child { border-bottom:none; }
.tmp-chat-search-item:hover { background:#eff6ff; }
.tmp-chat-search-name { font-weight:600; color:#0f172a; }
.tmp-chat-search-meta { display:block; font-size:.74rem; color:#64748b; margin-top:2px; }
.tmp-chat-stage { display:flex; flex-direction:column; min-width:0; min-height:0; background: radial-gradient(circle at top right, rgba(191,219,254,.9), rgba(248,250,252,.92) 38%, rgba(255,255,255,.96) 100%); }
.tmp-chat-stage-head { padding:20px 24px; border-bottom:1px solid rgba(148,163,184,.24); background:rgba(255,255,255,.7); backdrop-filter: blur(12px); }
.tmp-chat-subhead { font-size:.78rem; color:#64748b; margin-top:4px; }
.tmp-chat-messages-modern { flex:1; overflow-y:scroll; padding:24px; display:flex; flex-direction:column; gap:12px; min-height:0; scrollbar-width: thin; scrollbar-color: #94a3b8 rgba(148,163,184,.15); }
.tmp-chat-thread-list-modern::-webkit-scrollbar,
.tmp-chat-messages-modern::-webkit-scrollbar { width: 10px; }
.tmp-chat-thread-list-modern::-webkit-scrollbar-track,
.tmp-chat-messages-modern::-webkit-scrollbar-track { background: rgba(148,163,184,.12); border-radius: 999px; }
.tmp-chat-thread-list-modern::-webkit-scrollbar-thumb,
.tmp-chat-messages-modern::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 999px; border: 2px solid rgba(255,255,255,.7); }
.tmp-chat-compose-modern { border-top:1px solid rgba(148,163,184,.24); padding:18px; background:rgba(255,255,255,.78); backdrop-filter: blur(10px); }
.tmp-chat-compose-row { display:flex; gap:12px; align-items:flex-end; }
.tmp-chat-compose-row .tmp-textarea { flex:1; min-height:56px; max-height:150px; border-radius:16px; padding:14px 16px; }
.tmp-chat-bubble-wrap { display:flex; flex-direction:column; }
.tmp-chat-bubble-wrap.me { align-items:flex-end; }
.tmp-chat-bubble-wrap.them { align-items:flex-start; }
.tmp-chat-bubble { max-width:72%; border-radius:20px; padding:12px 16px; font-size:.9rem; line-height:1.45; box-shadow:0 12px 28px rgba(15,23,42,.08); }
.tmp-chat-bubble-wrap.me .tmp-chat-bubble { background: linear-gradient(135deg,#2563eb,#1d4ed8); color:#fff; border-bottom-right-radius:6px; }
.tmp-chat-bubble-wrap.them .tmp-chat-bubble { background:#fff; color:#0f172a; border:1px solid #dbeafe; border-bottom-left-radius:6px; }
.tmp-chat-bubble-time { font-size:.72rem; color:#64748b; margin-top:4px; padding:0 4px; }
.tmp-chat-sidebar { width: 220px; flex-shrink: 0; border-right: 1px solid var(--tmp-gray-200); display: flex; flex-direction: column; }
.tmp-chat-sidebar-header { background: var(--tmp-gray-50); padding: 12px 14px; font-weight: 600; font-size: .875rem; border-bottom: 1px solid var(--tmp-gray-200); }
#tmp-chat-threads-list { overflow-y: auto; flex: 1; }
.tmp-chat-thread-item { padding: 10px 14px; cursor: pointer; border-bottom: 1px solid var(--tmp-gray-100); font-size: .875rem; display: flex; justify-content: space-between; align-items: center; }
.tmp-chat-thread-item:hover, .tmp-chat-thread-item.active { background: #eff6ff; }
.tmp-chat-unread-dot { background: #dc2626; color: #fff; border-radius: 9999px; font-size: .7rem; font-weight: 700; padding: 1px 6px; }
.tmp-chat-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.tmp-chat-contact-header { background: var(--tmp-gray-50); padding: 12px 16px; border-bottom: 1px solid var(--tmp-gray-200); font-weight: 600; font-size: .95rem; display: flex; align-items: center; gap: 10px; }
.tmp-chat-role-badge { background: var(--tmp-gray-200); color: var(--tmp-gray-700); border-radius: 9999px; font-size: .7rem; font-weight: 600; padding: 2px 8px; }
.tmp-chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; min-height: 320px; max-height: 480px; }
.tmp-chat-placeholder { color: var(--tmp-gray-500); text-align: center; margin-top: 60px; font-size: .9rem; }
.tmp-chat-bubble-wrap { display: flex; flex-direction: column; }
.tmp-chat-bubble-wrap.me   { align-items: flex-end; }
.tmp-chat-bubble-wrap.them { align-items: flex-start; }
.tmp-chat-bubble { max-width: 70%; border-radius: 14px; padding: 9px 14px; font-size: .875rem; line-height: 1.4; word-break: break-word; }
.tmp-chat-bubble-wrap.me   .tmp-chat-bubble { background: var(--tmp-primary); color: #fff; border-bottom-right-radius: 4px; }
.tmp-chat-bubble-wrap.them .tmp-chat-bubble { background: var(--tmp-gray-100); color: var(--tmp-gray-900); border-bottom-left-radius: 4px; }
.tmp-chat-bubble-time { font-size: .7rem; color: var(--tmp-gray-500); margin-top: 2px; }
.tmp-chat-input-bar { border-top: 1px solid var(--tmp-gray-200); padding: 12px; }
.tmp-chat-composer { display: flex; gap: 8px; align-items: flex-end; }
.tmp-chat-composer .tmp-textarea { flex: 1; min-height: 50px; max-height: 120px; resize: none; }
.tmp-chat-send-btn { flex-shrink: 0; align-self: flex-end; }
@media (max-width: 600px) {
    .tmp-chat-layout { flex-direction: column; }
    .tmp-chat-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--tmp-gray-200); }
    .tmp-chat-shell { grid-template-columns: 1fr; height: auto; min-height: 720px; }
}

/* ─── Open Task Board ─────────────────────────────────────────────────────── */
#tmp-modal-request .tmp-modal-box { max-width: 480px; }

/* ─── Admin WP compat ─────────────────────────────────────────────────────── */
.tmp-admin-chat-layout { display: flex; gap: 20px; align-items: flex-start; }
