/* TEMVIO v1.6.1 LC3.1 — stability + mobile UX polish */

/* 1) Notifications: make unread state unmistakable. */
.notif-button.has-unread{border-color:rgba(229,72,77,.36)!important;box-shadow:0 0 0 4px rgba(229,72,77,.08),0 8px 20px rgba(229,72,77,.12)!important}
.notif-button>i,#notifBadge{background:#e5484d!important;color:#fff!important;border-color:#fff!important;box-shadow:0 4px 12px rgba(229,72,77,.42)!important;font-weight:900!important}
.notification-card-v142.unread{border-color:rgba(229,72,77,.32)!important;background:linear-gradient(135deg,#fff,#fff7f7)!important;box-shadow:0 10px 28px rgba(229,72,77,.08)!important}
.notification-card-v142.unread .notification-icon-v142{background:#fff0f1!important;color:#c9363b!important}
.notification-dot-v142{background:#e5484d!important;box-shadow:0 0 0 4px rgba(229,72,77,.10)!important}

/* 2) Important contract-selection popup for professionals. */
.lc31-important-backdrop{position:fixed;inset:0;z-index:180;display:grid;place-items:center;padding:20px;background:rgba(13,24,22,.42);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.lc31-important-backdrop.hidden{display:none!important}
.lc31-important-card{position:relative;width:min(430px,100%);padding:28px 22px 22px;border-radius:28px;background:#fff;border:1px solid rgba(13,148,136,.18);box-shadow:0 28px 80px rgba(15,23,42,.24);text-align:center}
.lc31-important-icon{width:62px;height:62px;margin:0 auto 12px;border-radius:20px;display:grid;place-items:center;background:linear-gradient(145deg,#ccfbf1,#99f6e4);color:#0f766e;font-size:30px;font-weight:950;box-shadow:0 10px 28px rgba(13,148,136,.18)}
.lc31-important-card h2{margin:6px 0 8px;font-size:25px}
.lc31-important-card p{margin:0 auto 14px;color:var(--muted,#667085);line-height:1.85;max-width:34ch}
.lc31-important-project{display:grid;gap:3px;text-align:start;padding:13px 14px;margin:15px 0 18px;border-radius:16px;background:#f4fbf9;border:1px solid #d9f3ec}
.lc31-important-project b{font-size:14px}.lc31-important-project span{font-size:11px;color:var(--muted,#667085)}
.lc31-important-card>.btn{width:100%;min-height:48px}
.lc31-important-close{position:absolute;top:14px;inset-inline-end:14px;width:36px;height:36px;border:0;border-radius:12px;background:#f3f5f4;color:#26312e;font-size:22px;cursor:pointer}

/* 3) Messages: on phones, the selected chat owns the screen so the composer is visible. */
.chat-head-primary{display:flex;align-items:center;gap:9px;min-width:0}.chat-head-primary>div{display:grid;min-width:0}.chat-mobile-back{display:none;width:36px;height:36px;border:1px solid var(--line,#deddd5);border-radius:12px;background:#fff;color:var(--ink,#1d211b);font:900 24px/1 inherit;place-items:center;flex:0 0 auto}
@media(max-width:760px){
  .messages-layout.has-active-thread{display:block!important;min-height:0!important;margin-bottom:0!important}
  .messages-layout.has-active-thread .thread-list{display:none!important}
  .messages-layout.has-active-thread .chat-panel{display:flex!important;flex-direction:column!important;min-height:0!important;height:calc(100dvh - 190px)!important;max-height:calc(100dvh - 190px)!important;overflow:hidden!important;border-radius:20px!important;margin:0!important}
  .messages-layout.has-active-thread .chat-head{flex:0 0 auto;padding:10px 12px!important;min-height:58px;background:#fff}
  .messages-layout.has-active-thread .chat-safety-actions .btn{display:none}
  .messages-layout.has-active-thread .chat-safety-actions .pill{display:inline-flex!important;font-size:9px!important}
  .chat-mobile-back{display:grid}
  .messages-layout.has-active-thread .chat-messages{flex:1 1 auto!important;min-height:0!important;overflow:auto!important;padding:12px!important;overscroll-behavior:contain}
  .messages-layout.has-active-thread .chat-empty{margin:auto!important;min-height:0!important;padding:30px 10px;color:#7b8582}
  .messages-layout.has-active-thread .chat-compose{position:relative!important;flex:0 0 auto!important;bottom:auto!important;z-index:4;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important;padding:10px!important;background:#fff!important;border-top:1px solid #e4e8e6!important;box-shadow:0 -8px 24px rgba(15,23,42,.06)!important}
  .messages-layout.has-active-thread .chat-compose textarea{min-height:46px!important;max-height:92px!important;height:46px!important;rows:unset!important;padding:10px 12px!important;border-radius:14px!important;background:#f7f9f8!important}
  .messages-layout.has-active-thread .chat-compose .btn{width:auto!important;min-width:70px!important;min-height:46px!important;padding-inline:14px!important}
  html.temvio-keyboard-open.temvio-chat-composing .messages-layout.has-active-thread .chat-panel{height:calc(var(--temvio-vv-height,100dvh) - 16px)!important;max-height:calc(var(--temvio-vv-height,100dvh) - 16px)!important;border-radius:16px!important}
}

/* 4) Trial: keep it in More/account, not in operational market/employer screens. */
.more-account-card-v16131{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:10px;padding:17px!important}
.more-account-main-v16131{display:grid;gap:3px;min-width:0}.more-account-main-v16131>b{font-size:17px}.more-account-main-v16131 small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted,#667085)}
.more-account-actions-v16131{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.more-trial-home-v16131{margin-bottom:14px}.more-trial-home-v16131 .trial-card-v160{margin:0!important}.more-trial-home-v16131 .trial-decision-v167{margin-top:10px!important;margin-bottom:0!important}
@media(max-width:640px){.more-account-card-v16131{align-items:stretch;flex-direction:column}.more-account-actions-v16131{display:grid;grid-template-columns:1fr 1fr}.more-account-actions-v16131 .btn{width:100%}.more-trial-home-v16131 .trial-card-v160{padding:14px!important}.more-trial-home-v16131 .trial-decision-v167{display:none!important}}

/* 5) Marketplace command card — cleaner opportunity/search surface. */
.market-v139-shell{padding:18px!important;border:1px solid #e3e9e6!important;background:linear-gradient(180deg,#fff,#fbfdfc)!important;box-shadow:0 12px 34px rgba(15,23,42,.055)!important}
.market-v139-head{align-items:center!important;padding-bottom:14px!important;margin-bottom:12px!important;border-bottom:1px solid #edf0ef!important}
.market-v139-head h2{margin:2px 0 0!important;font-size:25px!important}.market-v139-head .eyebrow{color:#6e7a76!important}
.saved-market-toggle{background:#fff!important;border:1px solid #dfe7e3!important;box-shadow:0 4px 12px rgba(15,23,42,.035)!important}
.market-search-toggle-v160{border:1px solid #dfe8e4!important;background:#f7faf9!important;border-radius:16px!important;min-height:64px!important;padding:12px 14px!important}
.market-search-toggle-v160 b{font-size:14px}.market-results-head{padding:10px 4px!important;margin-top:4px!important}
@media(max-width:640px){.market-v139-shell{padding:15px!important;border-radius:22px!important}.market-v139-head{gap:10px!important}.market-v139-head h2{font-size:23px!important}.saved-market-toggle{padding:8px 10px!important;font-size:10px!important}}

/* 6) New-project modal: grouped, calm, mobile-first. */
.post-job-modal-v16131{padding:0!important;overflow:auto!important;max-height:min(92dvh,860px)!important;background:#f7f9f8!important}
.post-job-modal-v16131>.modal-x{top:15px!important;inset-inline-start:16px!important;z-index:3;background:#fff!important;border:1px solid #e2e7e5!important;box-shadow:0 5px 16px rgba(15,23,42,.07)!important}
.post-job-modal-v16131>.modal-help-btn{top:15px!important;inset-inline-end:16px!important;z-index:3}
.post-job-hero-v16131{padding:26px 24px 18px;background:linear-gradient(145deg,#ecfdf8,#fff);border-bottom:1px solid #e4ece8}
.post-job-hero-v16131 h2{margin:3px 0 5px;font-size:26px}.post-job-hero-v16131 p{margin:0;color:#66726e;font-size:12px;line-height:1.75}
.post-job-section-v16131{margin:14px 16px 0;padding:16px;border:1px solid #e1e7e4;border-radius:20px;background:#fff;box-shadow:0 7px 22px rgba(15,23,42,.035)}
.post-job-section-title-v16131{display:flex;align-items:center;gap:9px;margin-bottom:12px}.post-job-section-title-v16131>span{width:27px;height:27px;border-radius:9px;display:grid;place-items:center;background:#dff8f1;color:#0f766e;font-size:11px;font-weight:900}.post-job-section-title-v16131>b{font-size:14px}
.post-job-modal-v16131 .field{margin-bottom:12px}.post-job-modal-v16131 .field:last-child{margin-bottom:0}.post-job-modal-v16131 .field label{font-size:11px;font-weight:800;color:#53615d;margin-bottom:5px}.post-job-modal-v16131 .field input,.post-job-modal-v16131 .field select,.post-job-modal-v16131 .field textarea{background:#fbfcfc!important;border-color:#dce4e0!important;border-radius:14px!important;min-height:48px!important}.post-job-modal-v16131 .field textarea{min-height:115px!important}
.post-job-actions-v16131{position:sticky;bottom:0;z-index:2;display:grid!important;grid-template-columns:1fr 1.25fr!important;gap:8px!important;margin-top:16px!important;padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px))!important;background:rgba(255,255,255,.96)!important;border-top:1px solid #e2e8e5!important;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.post-job-actions-v16131 .btn{min-height:48px!important}
@media(max-width:640px){.post-job-modal-v16131{width:100%!important;max-width:none!important;border-radius:26px 26px 0 0!important;max-height:94dvh!important}.post-job-hero-v16131{padding:24px 18px 15px}.post-job-hero-v16131 h2{font-size:23px}.post-job-section-v16131{margin:11px 12px 0;padding:14px;border-radius:18px}.post-job-budget-v16131{grid-template-columns:1fr 1fr!important;gap:8px!important}.post-job-budget-v16131 .field input{font-size:13px!important;padding-inline:9px!important}}
