/* ============================================================
   ESV JOB BOARD — premium SaaS job-board UI
   Scoped to job-board classes so it never conflicts with
   Elementor or the rest of the theme. Inherits theme tokens.
   ============================================================ */

/* ---------- search bars ---------- */
.job-search{display:grid;grid-template-columns:1.4fr 1fr 1fr auto;gap:10px;background:#fff;border:1px solid var(--line);border-radius:18px;padding:10px;box-shadow:var(--shadow-md)}
.banner-search{margin-top:30px;max-width:920px}
.js-field{display:flex;align-items:center;gap:10px;padding:4px 14px;border-radius:12px;background:var(--mist)}
.js-field svg{width:18px;height:18px;color:var(--gold-deep);flex-shrink:0}
.js-field input,.js-field select{border:0;background:transparent;font-family:inherit;font-size:.95rem;color:var(--ink);width:100%;padding:12px 0;outline:none}
.job-search .js-submit{white-space:nowrap}
.jobs-banner h1{max-width:18ch}

/* ---------- jobs layout ---------- */
.jobs-layout{display:grid;grid-template-columns:300px 1fr;gap:34px;align-items:start}
.jobs-filters{position:sticky;top:110px}
.jobs-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px;flex-wrap:wrap}
.jobs-count{color:var(--slate);font-size:.95rem}
.jobs-count b{color:var(--navy-900)}
.jobs-sort{display:flex;align-items:center;gap:10px}
.jobs-sort label{font-size:.85rem;color:var(--slate);font-weight:600}
.jobs-sort select{padding:10px 14px;border:1px solid var(--line);border-radius:10px;background:#fff;font-family:inherit;font-weight:500;color:var(--navy-900);cursor:pointer}
.view-toggle{display:flex;gap:4px;background:var(--mist);border-radius:10px;padding:4px}
.view-toggle .vt{width:36px;height:36px;border:0;background:transparent;border-radius:8px;cursor:pointer;display:grid;place-items:center;color:var(--slate)}
.view-toggle .vt svg{width:18px;height:18px}
.view-toggle .vt.active{background:#fff;color:var(--navy-900);box-shadow:var(--shadow-sm)}

/* ---------- filter card ---------- */
.filter-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:24px;box-shadow:var(--shadow-sm)}
.fc-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}
.fc-head h4{font-size:1.1rem}
.fc-clear{font-size:.82rem;color:var(--gold-deep);font-weight:600}
.fc-group{padding:18px 0;border-top:1px solid var(--line)}
.fc-label{display:block;font-size:.8rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--navy-800);margin-bottom:12px}
.fc-label b{float:right;color:var(--gold-deep);text-transform:none;letter-spacing:0}
.fc-group select{width:100%;padding:11px 13px;border:1px solid var(--line);border-radius:10px;background:var(--mist);font-family:inherit;color:var(--ink);outline:none}
.fc-checks{display:flex;flex-direction:column;gap:11px}
.fc-check{display:flex;align-items:center;gap:10px;font-size:.92rem;color:var(--ink);cursor:pointer}
.fc-check input{width:17px;height:17px;accent-color:var(--gold-deep)}
.fc-visa span{font-weight:600}
.fc-group input[type=range]{width:100%;accent-color:var(--gold-deep)}

/* ---------- job cards ---------- */
.jobs-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.jobs-grid.list-view{grid-template-columns:1fr}
.job-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:24px;transition:transform .35s var(--ease),box-shadow .35s var(--ease),border-color .35s;display:flex;flex-direction:column;gap:16px;position:relative}
.job-card:hover{transform:translateY(-5px);box-shadow:var(--shadow-md);border-color:transparent}
.job-card.is-featured{border-color:var(--gold);background:linear-gradient(180deg,var(--gold-soft) 0%,#fff 26%)}
.jc-top{display:flex;align-items:flex-start;gap:14px}
.jc-logo{width:54px;height:54px;border-radius:13px;overflow:hidden;flex-shrink:0;border:1px solid var(--line);background:#fff;display:grid;place-items:center}
.jc-logo img{width:100%;height:100%;object-fit:cover}
.jc-logo-fallback{font-family:"Newsreader",serif;font-size:1.5rem;font-weight:600;color:var(--gold-deep)}
.jc-headings{flex:1;min-width:0}
.jc-title{display:block;font-family:"Newsreader",serif;font-size:1.22rem;font-weight:600;color:var(--navy-900);line-height:1.2;transition:color .2s}
.jc-title:hover{color:var(--gold-deep)}
.jc-company{font-size:.88rem;color:var(--slate)}
.jc-save{width:38px;height:38px;border:1px solid var(--line);border-radius:10px;background:#fff;cursor:pointer;display:grid;place-items:center;color:var(--slate-light);transition:.25s;flex-shrink:0}
.jc-save svg{width:18px;height:18px;transition:.25s}
.jc-save:hover{border-color:var(--gold);color:var(--gold-deep)}
.jc-save.saved{background:var(--gold);border-color:var(--gold);color:var(--navy-900)}
.jc-save.saved svg{fill:var(--navy-900)}
.jc-tags{display:flex;flex-wrap:wrap;gap:7px}
.jc-tags .tag{font-size:.76rem;font-weight:600;padding:5px 11px;border-radius:50px;background:var(--mist);color:var(--navy-800)}
.jc-tags .t-type{background:rgba(200,162,76,.14);color:var(--gold-deep)}
.jc-tags .t-remote{background:#e9f6ee;color:#1f8a5b}
.jc-meta{display:flex;flex-wrap:wrap;gap:16px;color:var(--slate);font-size:.86rem}
.jc-meta span{display:inline-flex;align-items:center;gap:7px}
.jc-meta svg{width:15px;height:15px;color:var(--gold-deep)}
.jc-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:auto;padding-top:16px;border-top:1px solid var(--line)}
.jc-badges{display:flex;flex-wrap:wrap;gap:6px}
.badge{display:inline-flex;align-items:center;gap:5px;font-size:.72rem;font-weight:700;padding:5px 10px;border-radius:50px;letter-spacing:.02em}
.badge svg{width:13px;height:13px}
.b-visa{background:var(--navy-900);color:var(--gold)}
.b-urgent{background:#fde9e7;color:#d2452f}
.b-verified{background:#e9f1fb;color:#2a6fdb}
.jc-apply{display:inline-flex;align-items:center;gap:7px;font-weight:600;font-size:.9rem;color:var(--navy-900);white-space:nowrap}
.jc-apply svg{width:15px;height:15px;color:var(--gold-deep);transition:transform .3s}
.jc-apply:hover svg{transform:translateX(4px)}
.jobs-empty{grid-column:1/-1;text-align:center;padding:60px 20px;background:#fff;border:1px dashed var(--line);border-radius:18px}
.jobs-empty h3{font-size:1.4rem;margin-bottom:8px}
.jobs-empty p{color:var(--slate);margin-bottom:20px}

/* list view tweaks */
.list-view .job-card{display:grid;grid-template-columns:auto 1fr auto;grid-template-areas:"logo head foot";align-items:center;gap:20px}
.list-view .jc-top{grid-area:head;border:0;padding:0}
.list-view .jc-tags,.list-view .jc-meta{display:none}
.list-view .jc-foot{grid-area:foot;border:0;padding:0;flex-direction:column;align-items:flex-end}

/* ---------- single job ---------- */
.job-single-banner .jsb-head{display:flex;align-items:center;gap:20px;margin-top:14px}
.jsb-logo{width:74px;height:74px;border-radius:16px;overflow:hidden;flex-shrink:0;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.18);display:grid;place-items:center}
.jsb-logo img{width:100%;height:100%;object-fit:cover}
.jsb-logo span{font-family:"Newsreader",serif;font-size:2rem;color:var(--gold)}
.jsb-head h1{font-size:clamp(1.7rem,3.4vw,2.6rem)}
.jsb-meta{display:flex;flex-wrap:wrap;gap:8px;color:#c2cce0;margin-top:8px;font-size:.96rem}
.jsb-badges{display:flex;gap:7px;margin-top:12px}
.jsb-cta{margin-left:auto;align-self:center}
.js-layout{display:grid;grid-template-columns:1fr 360px;gap:40px;align-items:start}
.js-h{font-family:"Newsreader",serif;font-size:1.5rem;color:var(--navy-900);margin:34px 0 16px}
.js-content .entry-content:first-child,.js-content .entry-content{margin-top:0}
.apply-box{margin-top:40px;background:#fff;border:1px solid var(--line);border-radius:20px;padding:32px;box-shadow:var(--shadow-sm)}
.apply-box .js-h{margin-top:0}
.apply-form label{display:block;font-size:.85rem;font-weight:600;color:var(--slate);margin:16px 0 6px}
.apply-form input,.apply-form textarea{width:100%;padding:13px 15px;border:1px solid var(--line);border-radius:10px;background:var(--mist);font-family:inherit;font-size:.95rem;outline:none;transition:border .2s}
.apply-form input:focus,.apply-form textarea:focus{border-color:var(--gold);background:#fff}
.af-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.apply-form .btn{margin-top:20px}
.apply-success{background:#e9f6ee;border:1px solid #b6e0c7;color:#1f7a4d;padding:18px 20px;border-radius:12px;font-weight:500}
.js-side{position:sticky;top:110px;display:flex;flex-direction:column;gap:20px}
.js-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:26px;box-shadow:var(--shadow-sm)}
.js-card h4{font-size:1.1rem;margin-bottom:16px}
.js-facts{list-style:none;display:flex;flex-direction:column;gap:0;margin:0 0 20px}
.js-facts li{display:flex;justify-content:space-between;gap:14px;padding:12px 0;border-bottom:1px solid var(--line);font-size:.92rem}
.js-facts li:last-child{border-bottom:0}
.js-facts span{color:var(--slate)}
.js-facts b{color:var(--navy-900);text-align:right}
.js-emp{display:flex;align-items:center;gap:13px;margin-bottom:14px}
.js-emp b{display:block;color:var(--navy-900)}
.js-emp a{font-size:.85rem;color:var(--gold-deep);font-weight:600}
.related-jobs{margin-top:60px}
.related-jobs .jobs-grid{grid-template-columns:1fr 1fr 1fr}

/* ---------- employer/candidate cards ---------- */
.emp-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.emp-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:28px;text-align:center;transition:transform .35s var(--ease),box-shadow .35s}
.emp-card:hover{transform:translateY(-5px);box-shadow:var(--shadow-md)}
.emp-logo{width:72px;height:72px;border-radius:16px;margin:0 auto 16px;overflow:hidden;border:1px solid var(--line);display:grid;place-items:center;background:var(--mist)}
.emp-logo img{width:100%;height:100%;object-fit:cover}
.emp-logo span{font-family:"Newsreader",serif;font-size:2rem;color:var(--gold-deep)}
.emp-card h3{font-size:1.22rem;display:flex;align-items:center;justify-content:center;gap:7px}
.verified-tick{width:18px;height:18px;color:#2a6fdb}
.emp-ind{font-size:.82rem;color:var(--gold-deep);font-weight:600}
.emp-card p{color:var(--slate);font-size:.9rem;margin:12px 0 16px}
.emp-jobs{display:inline-block;font-size:.84rem;font-weight:600;color:var(--navy-900);background:var(--mist);padding:7px 16px;border-radius:50px}

/* ---------- dashboard ---------- */
.dash{padding:40px 0 80px;background:var(--mist);min-height:70vh}
.dash-layout{display:grid;grid-template-columns:260px 1fr;gap:28px;align-items:start}
.dash-side{background:#fff;border:1px solid var(--line);border-radius:20px;padding:22px;position:sticky;top:100px}
.dash-user{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;padding-bottom:18px;border-bottom:1px solid var(--line);margin-bottom:14px}
.dash-user-meta{min-width:0}
.dash-user-meta b{display:block;font-size:.95rem;color:var(--navy-900);line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dash-user-meta span{font-size:.78rem;color:var(--slate)}
.dash-av{width:46px;height:46px;border-radius:50%;background:linear-gradient(150deg,var(--navy-700),var(--navy-900));color:var(--gold);display:grid;place-items:center;font-family:"Newsreader",serif;font-size:1.3rem;font-weight:600}
.dash-user b{display:block;font-size:.96rem;color:var(--navy-900)}
.dash-user span{font-size:.8rem;color:var(--slate)}
.dash-nav{display:flex;flex-direction:column;gap:3px}
.dash-nav a{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:11px;font-weight:500;font-size:.94rem;color:var(--ink);transition:.2s}
.dash-nav a svg{width:19px;height:19px;color:var(--slate-light);transition:.2s}
.dash-nav a:hover{background:var(--mist)}
.dash-nav a.active{background:var(--navy-900);color:#fff}
.dash-nav a.active svg{color:var(--gold)}
.dash-logout{margin-top:8px;border-top:1px solid var(--line);color:var(--slate)!important}
.dash-main{min-width:0}
.dash-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px;flex-wrap:wrap}
.dash-head h1{font-size:1.8rem}
.stat-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:26px}
.stat-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:22px;text-align:center}
.sc-ico{font-size:1.5rem;display:block;margin-bottom:8px}
.stat-card b{font-family:"Newsreader",serif;font-size:2rem;color:var(--navy-900);display:block;line-height:1}
.stat-card span{font-size:.84rem;color:var(--slate);margin-top:6px;display:block}
.dash-panel{background:#fff;border:1px solid var(--line);border-radius:18px;padding:26px;margin-bottom:20px}
.dash-panel h3{font-size:1.2rem;margin-bottom:16px}
.dash-table{width:100%;border-collapse:collapse}
.dash-table th{text-align:left;font-size:.76rem;letter-spacing:.05em;text-transform:uppercase;color:var(--slate);padding:0 12px 12px;border-bottom:1px solid var(--line)}
.dash-table td{padding:14px 12px;border-bottom:1px solid var(--line);font-size:.92rem;color:var(--ink)}
.dash-table tr:last-child td{border-bottom:0}
.dash-table a{color:var(--navy-900);font-weight:600}
.dash-link{color:var(--gold-deep);font-weight:600;font-size:.86rem}
.dash-empty{color:var(--slate);padding:20px 0;text-align:center}
.status-pill{display:inline-block;font-size:.74rem;font-weight:700;padding:5px 12px;border-radius:50px}
.s-new,.s-pending{background:#eef1f8;color:#5468ff}
.s-reviewed{background:#fff4e0;color:#b8860b}
.s-shortlisted{background:#e9f1fb;color:#2a6fdb}
.s-interview{background:#efe7fb;color:#7b3ff2}
.s-hired,.s-publish{background:#e9f6ee;color:#1f8a5b}
.s-rejected,.s-draft{background:#fde9e7;color:#d2452f}
.app-row{display:flex;align-items:center;justify-content:space-between;gap:16px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px 20px;margin-bottom:12px;flex-wrap:wrap}
.app-info b{display:block;color:var(--navy-900)}
.app-info span{font-size:.86rem;color:var(--slate)}
.app-actions{display:flex;align-items:center;gap:12px}
.app-actions select{padding:9px 12px;border:1px solid var(--line);border-radius:9px;font-family:inherit;cursor:pointer}

/* ---------- post job + auth forms ---------- */
.postjob-form label{display:block;font-size:.85rem;font-weight:600;color:var(--slate);margin:16px 0 6px}
.postjob-form input,.postjob-form textarea,.postjob-form select{width:100%;padding:13px 15px;border:1px solid var(--line);border-radius:10px;background:var(--mist);font-family:inherit;font-size:.95rem;outline:none;transition:border .2s}
.postjob-form input:focus,.postjob-form textarea:focus,.postjob-form select:focus{border-color:var(--gold);background:#fff}
.postjob-note{margin-top:14px;font-size:.85rem;color:var(--slate-light)}
.auth-grid{display:grid;grid-template-columns:1fr 1fr;gap:26px;max-width:920px;margin:0 auto}
.auth-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:34px;box-shadow:var(--shadow-sm)}
.auth-card h3{font-size:1.4rem;margin-bottom:20px}
.auth-card label{display:block;font-size:.85rem;font-weight:600;color:var(--slate);margin:14px 0 6px}
.auth-card input[type=text],.auth-card input[type=email],.auth-card input[type=password]{width:100%;padding:13px 15px;border:1px solid var(--line);border-radius:10px;background:var(--mist);font-family:inherit;outline:none}
.auth-card .button,.auth-card input[type=submit]{width:100%;margin-top:18px;padding:14px;border-radius:50px;border:0;background:var(--gold);color:var(--navy-900);font-weight:600;cursor:pointer;font-family:inherit}
.auth-forgot{display:inline-block;margin-top:14px;font-size:.86rem;color:var(--gold-deep);font-weight:600}
.auth-social-note,.pricing-note{font-size:.82rem;color:var(--slate-light);margin-top:16px;line-height:1.5}
.role-toggle{display:flex;gap:10px;margin-bottom:6px}
.role-toggle label{display:flex;align-items:center;gap:8px;flex:1;border:1px solid var(--line);border-radius:11px;padding:12px;cursor:pointer;font-size:.9rem;font-weight:500;margin:0}
.role-toggle input{accent-color:var(--gold-deep)}
.login-remember{font-weight:400!important;font-size:.85rem!important}

/* ---------- pricing ---------- */
.pricing-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;align-items:start}
.price-card{background:#fff;border:1px solid var(--line);border-radius:22px;padding:34px 30px;position:relative;transition:transform .35s var(--ease),box-shadow .35s}
.price-card:hover{transform:translateY(-6px);box-shadow:var(--shadow-md)}
.price-card.is-popular{border-color:var(--gold);box-shadow:var(--shadow-md);transform:scale(1.03)}
.pc-badge{position:absolute;top:-13px;left:50%;transform:translateX(-50%);background:var(--gold);color:var(--navy-900);font-size:.74rem;font-weight:700;padding:6px 16px;border-radius:50px;letter-spacing:.03em}
.price-card h3{font-size:1.4rem;margin-bottom:14px}
.pc-price{display:flex;align-items:baseline;gap:8px;margin-bottom:22px;padding-bottom:22px;border-bottom:1px solid var(--line)}
.pc-price b{font-family:"Newsreader",serif;font-size:2.6rem;color:var(--navy-900);line-height:1}
.pc-price span{color:var(--slate);font-size:.92rem}
.pc-feats{list-style:none;display:flex;flex-direction:column;gap:13px;margin-bottom:26px}
.pc-feats li{display:flex;align-items:flex-start;gap:11px;font-size:.94rem;color:var(--ink)}
.pc-feats svg{width:18px;height:18px;color:var(--gold-deep);flex-shrink:0;margin-top:2px}

/* ---------- responsive ---------- */
@media(max-width:1080px){
	.jobs-layout{grid-template-columns:1fr}
	.jobs-filters{position:static}
	.filter-card{display:grid;grid-template-columns:1fr 1fr;gap:0 22px}
	.fc-head{grid-column:1/-1}
	.js-layout{grid-template-columns:1fr}
	.js-side{position:static;flex-direction:row;flex-wrap:wrap}
	.js-card{flex:1;min-width:260px}
	.dash-layout{grid-template-columns:1fr}
	.dash-side{position:static}
	.dash-nav{flex-direction:row;flex-wrap:wrap}
	.dash-nav a span{display:none}
	.dash-nav a{padding:12px}
	.related-jobs .jobs-grid{grid-template-columns:1fr 1fr}
	.emp-grid,.pricing-grid{grid-template-columns:1fr 1fr}
	.price-card.is-popular{transform:none}
}
@media(max-width:760px){
	.job-search{grid-template-columns:1fr}
	.jobs-grid,.related-jobs .jobs-grid,.emp-grid,.pricing-grid,.auth-grid,.stat-cards,.af-row{grid-template-columns:1fr}
	.filter-card{grid-template-columns:1fr}
	.jsb-head{flex-wrap:wrap}
	.jsb-cta{margin-left:0;width:100%}
	.list-view .job-card{grid-template-columns:1fr;grid-template-areas:"head" "foot"}
	.list-view .jc-foot{align-items:flex-start}
	.stat-cards{grid-template-columns:1fr 1fr}
}
@media(max-width:440px){
	.stat-cards{grid-template-columns:1fr}
	.dash,.apply-box,.auth-card,.price-card{padding-left:0;padding-right:0}
	.apply-box,.auth-card{padding:22px}
}


/* ============================================================
   ESV JOB BOARD — PHASE 2 (messaging, alerts, analytics, notifs)
   ============================================================ */

/* notification bell */
.dash-user{position:relative}
.dash-bell{margin-left:auto;width:38px;height:38px;border:1px solid var(--line);border-radius:10px;background:#fff;cursor:pointer;display:grid;place-items:center;color:var(--slate);position:relative;flex-shrink:0}
.dash-bell svg{width:18px;height:18px}
.dash-bell:hover{border-color:var(--gold);color:var(--gold-deep)}
.bell-count{position:absolute;top:-6px;right:-6px;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:#d2452f;color:#fff;font-size:11px;font-weight:700;font-style:normal;display:grid;place-items:center}
.notif-pop{position:absolute;top:54px;right:0;width:320px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow-lg);z-index:50;overflow:hidden}
.notif-head{padding:14px 16px;border-bottom:1px solid var(--line)}
.notif-head b{font-size:.95rem}
.notif-list{max-height:340px;overflow-y:auto}
.notif-item{display:flex;gap:11px;padding:13px 16px;border-bottom:1px solid var(--line);transition:background .2s}
.notif-item:hover{background:var(--mist)}
.notif-item.unread{background:rgba(200,162,76,.07)}
.notif-ico{width:34px;height:34px;border-radius:9px;background:var(--mist);display:grid;place-items:center;flex-shrink:0;color:var(--gold-deep)}
.notif-ico svg{width:17px;height:17px}
.notif-item span{font-size:.86rem;color:var(--ink);line-height:1.4}
.notif-item time{display:block;font-size:.74rem;color:var(--slate-light);margin-top:3px}

/* messaging */
.msg-wrap{display:grid;grid-template-columns:300px 1fr;gap:0;background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden;min-height:540px}
.msg-threads{border-right:1px solid var(--line);overflow-y:auto;max-height:640px}
.msg-thread{display:flex;gap:12px;padding:16px;border-bottom:1px solid var(--line);transition:background .2s}
.msg-thread:hover{background:var(--mist)}
.msg-thread.active{background:rgba(200,162,76,.1)}
.msg-av{width:42px;height:42px;border-radius:50%;background:linear-gradient(150deg,var(--navy-700),var(--navy-900));color:var(--gold);display:grid;place-items:center;font-family:"Newsreader",serif;font-weight:600;flex-shrink:0}
.msg-tinfo{min-width:0;flex:1}
.msg-tinfo b{display:flex;align-items:center;gap:6px;font-size:.92rem;color:var(--navy-900)}
.msg-dot{width:7px;height:7px;border-radius:50%;background:var(--gold);display:inline-block}
.msg-tinfo small{display:block;font-size:.76rem;color:var(--gold-deep);font-weight:600}
.msg-tinfo > span{display:block;font-size:.82rem;color:var(--slate);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.msg-convo{display:flex;flex-direction:column}
.msg-convo-head{display:flex;align-items:center;gap:12px;padding:16px 20px;border-bottom:1px solid var(--line)}
.msg-convo-head b{font-size:1rem}
.msg-jobtag{margin-left:auto;font-size:.78rem;background:var(--mist);padding:6px 12px;border-radius:50px;color:var(--gold-deep);font-weight:600}
.msg-stream{flex:1;padding:22px;display:flex;flex-direction:column;gap:12px;overflow-y:auto;max-height:440px;background:var(--mist)}
.msg-bubble{max-width:72%;background:#fff;border:1px solid var(--line);border-radius:14px;padding:12px 16px;align-self:flex-start}
.msg-bubble.mine{align-self:flex-end;background:var(--navy-900);border-color:var(--navy-900)}
.msg-bubble p{font-size:.92rem;color:var(--ink);line-height:1.5}
.msg-bubble.mine p{color:#fff}
.msg-bubble time{display:block;font-size:.7rem;color:var(--slate-light);margin-top:5px}
.msg-bubble.mine time{color:rgba(255,255,255,.6)}
.msg-compose{display:flex;gap:10px;padding:16px 20px;border-top:1px solid var(--line)}
.msg-compose input{flex:1;padding:12px 16px;border:1px solid var(--line);border-radius:50px;font-family:inherit;outline:none;background:var(--mist)}
.msg-compose input:focus{border-color:var(--gold);background:#fff}
.msg-placeholder{flex:1;display:grid;place-items:center;color:var(--slate);padding:40px}

/* alerts */
.alert-row{display:grid;grid-template-columns:1.3fr 1fr 1fr .8fr auto;gap:12px;align-items:center}
.alert-form input,.alert-form select{padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:var(--mist);font-family:inherit;outline:none}
.alert-item{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0;border-bottom:1px solid var(--line)}
.alert-item:last-child{border-bottom:0}
.alert-crit b{display:block;color:var(--navy-900)}
.alert-crit span{font-size:.84rem;color:var(--slate)}
.alert-del{background:none;border:0;cursor:pointer;color:#d2452f!important}

/* analytics */
.esv-chart{width:100%;height:200px;display:block}
.funnel{display:flex;flex-direction:column;gap:14px}
.funnel-row{display:grid;grid-template-columns:110px 1fr 40px;align-items:center;gap:14px}
.funnel-label{font-size:.88rem;color:var(--slate);font-weight:500}
.funnel-bar{height:14px;background:var(--mist);border-radius:50px;overflow:hidden}
.funnel-fill{display:block;height:100%;border-radius:50px;background:var(--gold);transition:width .6s var(--ease)}
.funnel-fill.s-new{background:#5468ff}.funnel-fill.s-reviewed{background:#b8860b}.funnel-fill.s-shortlisted{background:#2a6fdb}.funnel-fill.s-interview{background:#7b3ff2}.funnel-fill.s-hired{background:#1f8a5b}.funnel-fill.s-rejected{background:#d2452f}
.funnel-val{font-family:"Newsreader",serif;font-weight:600;color:var(--navy-900);text-align:right}

@media(max-width:1080px){
	.msg-wrap{grid-template-columns:1fr}
	.msg-threads{max-height:240px;border-right:0;border-bottom:1px solid var(--line)}
	.alert-row{grid-template-columns:1fr 1fr}
	.notif-pop{right:-40px}
}
@media(max-width:600px){
	.alert-row{grid-template-columns:1fr}
	.msg-bubble{max-width:86%}
}


/* ============================================================
   ESV JOB BOARD — PHASE 3 (resume builder, auth, saved searches)
   ============================================================ */
.rb-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:8px}
.resume-form label{display:block;font-size:.82rem;font-weight:600;color:var(--slate);margin:12px 0 6px}
.resume-form input,.resume-form textarea{width:100%;padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:var(--mist);font-family:inherit;font-size:.94rem;outline:none;transition:border .2s}
.resume-form input:focus,.resume-form textarea:focus{border-color:var(--gold);background:#fff}
.resume-form > .btn{margin-top:8px}
.repeat-row{position:relative;padding:18px;border:1px solid var(--line);border-radius:14px;margin-bottom:14px;background:var(--mist)}
.repeat-del{position:absolute;top:10px;right:10px;width:28px;height:28px;border:1px solid var(--line);border-radius:8px;background:#fff;cursor:pointer;color:var(--slate);font-size:18px;line-height:1}
.repeat-del:hover{border-color:#d2452f;color:#d2452f}
.repeat-add{margin-top:4px}
.rb-vis{display:flex!important;align-items:center;gap:10px;margin-top:14px;font-weight:500!important;color:var(--ink)!important}
.rb-vis input{width:auto!important;accent-color:var(--gold-deep)}
.rb-file{font-size:.85rem;color:var(--slate);margin-top:8px}

/* public resume doc */
.resume-banner-head{display:flex;align-items:center;gap:18px;margin-top:14px}
.resume-av{width:74px;height:74px;border-radius:50%;overflow:hidden;flex-shrink:0;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.18);display:grid;place-items:center}
.resume-av img{width:100%;height:100%;object-fit:cover}
.resume-av span{font-family:"Newsreader",serif;font-size:2rem;color:var(--gold)}
.resume-head{color:#c2cce0;font-size:1.1rem;margin-top:4px}
.resume-loc{color:#9fabc6;font-size:.9rem}
.resume-doc{background:#fff;border:1px solid var(--line);border-radius:20px;padding:40px;box-shadow:var(--shadow-sm)}
.resume-sec{margin-bottom:32px}
.resume-sec:last-child{margin-bottom:0}
.resume-sec h2{font-size:1.3rem;padding-bottom:10px;border-bottom:2px solid var(--gold-soft);margin-bottom:18px}
.resume-item{margin-bottom:18px}
.ri-head{display:flex;justify-content:space-between;gap:14px;align-items:baseline}
.ri-head b{font-size:1.05rem;color:var(--navy-900)}
.ri-head span{font-size:.85rem;color:var(--slate);white-space:nowrap}
.ri-sub{display:block;color:var(--gold-deep);font-weight:600;font-size:.9rem;margin:2px 0 6px}
.resume-item p{color:var(--slate);font-size:.94rem}

/* auth states */
.auth-single{max-width:480px;margin:0 auto}
.auth-lead{color:var(--slate);font-size:.95rem;margin-bottom:8px}
.auth-error{background:#fde9e7;border:1px solid #f3c0b8;color:#c23a26;padding:12px 16px;border-radius:10px;font-size:.9rem;margin-bottom:14px}
.auth-success{background:#e9f6ee;border:1px solid #b6e0c7;color:#1f7a4d;padding:12px 16px;border-radius:10px;font-size:.9rem;margin-bottom:14px}
.auth-divider{display:flex;align-items:center;gap:14px;margin:22px 0;color:var(--slate-light);font-size:.82rem}
.auth-divider::before,.auth-divider::after{content:"";flex:1;height:1px;background:var(--line)}
.social-login{display:flex;flex-direction:column;gap:10px}
.social-btn{display:flex;align-items:center;justify-content:center;gap:10px;padding:12px;border:1px solid var(--line);border-radius:10px;background:#fff;font-family:inherit;font-weight:600;font-size:.9rem;color:var(--navy-900);cursor:pointer;transition:.2s}
.social-btn:not([disabled]):hover{border-color:var(--navy-800);background:var(--mist)}
.social-btn[disabled]{opacity:.6;cursor:not-allowed}
.si{width:18px;height:18px;border-radius:50%;display:inline-block;flex-shrink:0}
.si-google{background:conic-gradient(from -45deg,#ea4335 0 25%,#fbbc05 0 50%,#34a853 0 75%,#4285f4 0)}
.si-linkedin{background:#0a66c2}
.si-facebook{background:#1877f2}
.ss-actions{display:flex;align-items:center;gap:14px}

@media(max-width:600px){.rb-grid{grid-template-columns:1fr}.resume-doc{padding:26px}}


/* ---------- Phase 4d: profile / settings ---------- */
.profile-photo{width:84px;height:84px;border-radius:14px;object-fit:cover;border:1px solid var(--line);margin-bottom:14px}
.btn-danger{background:#d2452f;color:#fff}
.btn-danger:hover{background:#b53a26}
.danger-zone{border:1px solid #f3c0b8;background:#fdf3f1}
.danger-zone h3{color:#c23a26}


/* ---------- apply gate (login required to apply) ---------- */
.apply-gate{background:linear-gradient(150deg,var(--navy-800),var(--navy-900));border-radius:16px;padding:30px;color:#fff;text-align:center}
.apply-gate p{color:#c2cce0;max-width:46ch;margin:0 auto 20px;font-size:.98rem}
.apply-gate-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.apply-notice{background:#fff7e6;border:1px solid #f0d28a;color:#9a6a00;padding:14px 18px;border-radius:11px;margin-bottom:16px;font-size:.94rem}
