:root{--bg:#f7f7f8;--card:#fff;--text:#171717;--muted:#666;--line:#ddd;--primary:#155eef;--danger:#b42318;--ok:#067647}
*{box-sizing:border-box}body{margin:0;font-family:Arial,Helvetica,sans-serif;background:var(--bg);color:var(--text)}a{color:inherit}header{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:2}.wrap{max-width:1180px;margin:0 auto;padding:18px}.nav{display:flex;gap:14px;align-items:center;justify-content:space-between}.brand{display:inline-flex;align-items:center;gap:10px;text-decoration:none;font-weight:800}.brand img{width:42px;height:42px;max-width:42px;max-height:42px;object-fit:contain;display:block}.nav a,.btn{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:8px 13px;border:1px solid var(--line);border-radius:7px;background:#fff;text-decoration:none;font-weight:600;font-size:14px}.nav .brand{border:0;background:transparent;padding:0;min-height:42px}.btn.primary{background:var(--primary);color:#fff;border-color:var(--primary)}.btn.danger{background:var(--danger);color:#fff;border-color:var(--danger)}.btn.ghost{border-color:transparent;background:transparent}.grid{display:grid;gap:16px}.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-5{grid-template-columns:repeat(5,minmax(0,1fr))}.card{background:var(--card);border:1px solid var(--line);border-radius:8px;padding:18px}.section-title{font-size:20px;margin:24px 0 12px}.muted{color:var(--muted)}.small{font-size:13px}.badge{display:inline-flex;border-radius:999px;background:#eef4ff;color:#1849a9;padding:4px 9px;font-size:12px;font-weight:700}.danger-text{color:var(--danger)}.ok-text{color:var(--ok)}label{display:block;font-weight:700;font-size:13px;margin:0 0 6px}input,select,textarea{width:100%;border:1px solid var(--line);border-radius:7px;background:#fff;min-height:39px;padding:9px;font:inherit}textarea{min-height:100px}.form-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:14px}.toolbar{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.job-card{display:flex;flex-direction:column;gap:10px}.table{width:100%;border-collapse:collapse;background:#fff}.table th,.table td{border-bottom:1px solid var(--line);padding:10px;text-align:left;font-size:14px}.flash{padding:12px;border-radius:7px;border:1px solid var(--line);background:#fff;margin:12px 0}.flash.ok{border-color:#abefc6;background:#ecfdf3}.flash.err{border-color:#fecdca;background:#fef3f2}.chat{height:620px;display:grid;grid-template-columns:330px 1fr;overflow:hidden}.conv-list{border-right:1px solid var(--line);overflow:auto}.conv{display:block;width:100%;padding:14px;border:0;border-bottom:1px solid var(--line);text-align:left;background:#fff}.conv.active{background:#f2f4f7}.messages{overflow:auto;padding:18px}.bubble{max-width:72%;padding:10px 12px;border-radius:16px;margin:8px 0;background:#eee}.bubble.me{background:#155eef;color:#fff;margin-left:auto}.chat-input{border-top:1px solid var(--line);padding:12px;background:#fff}.avatar{width:42px;height:42px;border-radius:50%;object-fit:cover;background:#eee}footer{border-top:1px solid var(--line);background:#fff;margin-top:28px}.footer-links{display:flex;gap:18px;align-items:center;flex-wrap:wrap;font-size:14px}.footer-links a{text-decoration:none}.footer-links a:hover{text-decoration:underline}@media(max-width:800px){.grid-2,.grid-3,.grid-4,.grid-5,.form-row,.chat{grid-template-columns:1fr}.wrap{padding:12px}.chat{height:auto}.conv-list{border-right:0}.nav{align-items:flex-start}.brand img{width:34px;height:34px}.footer-links{gap:10px}}
.legal-page p{text-align:justify;line-height:1.65}

.footer-sep{color:#98a2b3}.footer-copy{white-space:nowrap}.legal-page p{text-align:justify;line-height:1.65}


.footer-links{display:flex!important;gap:16px!important;align-items:center!important;flex-wrap:wrap!important}
.footer-sep{color:#98a2b3;margin:0 2px}.footer-copy{white-space:nowrap}
.legal-page p{text-align:justify!important;text-align-last:left;line-height:1.7!important;margin:0 0 18px!important}
.photo-holder{width:112px;height:112px;border:1px dashed #98a2b3;border-radius:8px;background:#f8fafc;display:flex;align-items:center;justify-content:center;color:#667085;font-size:13px;margin-bottom:8px;overflow:hidden}
.photo-holder img{width:100%;height:100%;object-fit:cover;display:block}

.profile-photo-editor{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:8px 0 14px}.photo-holder.large{width:128px;height:128px;border:1px solid #d0d5dd;background:#f8fafc;margin-bottom:0;font-size:28px;font-weight:800;color:#475467}.photo-holder.avatar{border-radius:50%}.photo-holder.logo{border-radius:12px}.document-box{display:flex;gap:10px;align-items:center;flex-wrap:wrap;border:1px solid var(--line);border-radius:8px;padding:12px;background:#f8fafc;margin-bottom:14px}.document-box p{margin:0}.sr-only-file{position:absolute;left:-9999px;width:1px;height:1px;opacity:0;overflow:hidden}

.profile-photo-editor .photo-holder{width:128px!important;height:128px!important;min-width:128px!important;max-width:128px!important;overflow:hidden!important}.profile-photo-editor .photo-holder img{width:100%!important;height:100%!important;object-fit:cover!important;display:block!important}.profile-photo-editor .photo-holder.avatar{border-radius:50%!important}.profile-photo-editor .photo-holder.logo{border-radius:12px!important}.sr-only-file{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;opacity:0!important;overflow:hidden!important}

.messaging-shell{display:grid;grid-template-columns:360px minmax(0,1fr);min-height:680px;background:#fff;border:1px solid var(--line);border-radius:8px;overflow:hidden}.message-sidebar{border-right:1px solid var(--line);min-width:0}.message-sidebar-head{padding:14px;border-bottom:1px solid var(--line)}.message-sidebar-head h1{font-size:20px;margin:0 0 10px}.message-panel{display:flex;flex-direction:column;min-width:0}.message-panel-head{display:flex;gap:12px;align-items:center;padding:14px 18px;border-bottom:1px solid var(--line)}.message-panel-head h2{font-size:18px;margin:0}.messages-thread{display:flex;flex:1;flex-direction:column;gap:12px;margin:0;padding:18px;overflow:auto;background:#fff}.message-bubble{max-width:72%;padding:12px 14px;border-radius:10px;background:#f2f4f7}.message-bubble.mine{align-self:flex-end;background:#dbeafe}.message-bubble.theirs{align-self:flex-start}.message-bubble p{margin:0 0 6px}.message-bubble small{color:#667085}.message-form{display:grid;gap:10px;margin:0;padding:14px;border-top:1px solid var(--line);background:#fff}

.menu-toggle{display:none;align-items:center;justify-content:center;width:42px;height:42px;min-height:42px;padding:0;border:1px solid var(--line);border-radius:7px;background:#fff;font-weight:800;font-size:22px;line-height:1}
.nav-badge{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;border-radius:999px;background:#b42318;color:#fff;font-size:11px;font-weight:800;padding:0 5px;margin-left:6px}
.message-list{display:grid}
.conversation-card{display:grid;grid-template-columns:48px 1fr auto;gap:12px;align-items:center;text-decoration:none;padding:14px;border-bottom:1px solid var(--line);background:#fff}
.conversation-card.active{background:#eef4ff;border-left:4px solid var(--primary)}
.conversation-avatar{width:48px;height:48px;border-radius:50%;background:#eef4ff;color:#1849a9;display:flex;align-items:center;justify-content:center;font-weight:800;overflow:hidden}
.conversation-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.conversation-card h3,.conversation-card p{margin:0}.conversation-preview{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:180px}.conversation-meta{text-align:right;color:#667085;font-size:13px}.empty-message{padding:22px;color:#667085}
.company-profile .photo-holder.logo{width:88px!important;height:88px!important;min-width:88px!important;max-width:88px!important}
.job-card{gap:7px!important}
.job-card h3{margin:0 0 4px!important;line-height:1.15}
.job-card p{margin:0 0 6px!important;line-height:1.3}
.job-card .small{margin-top:4px!important;line-height:1.25}
.job-card .toolbar{margin-top:6px}
.sector-block{margin:0 0 22px}.sector-row{align-items:start}
.sector-row.grid-5{display:grid!important;grid-template-columns:repeat(5,minmax(210px,1fr));gap:14px}
.sector-row .home-job-card{gap:9px!important;padding:18px!important;max-width:none!important;min-width:0}
.home-job-card .badge{align-self:flex-start}
.home-job-title{margin:6px 0 4px!important;font-size:26px!important;line-height:1.05!important;letter-spacing:0}
.home-company{display:block;margin:0 0 8px!important;color:#667085;text-decoration:none;font-size:16px!important;line-height:1.25!important}
.home-company:hover{text-decoration:underline}
.home-job-line{margin:0!important;line-height:1.28!important;font-size:15px!important}
.home-job-question{margin:8px 0 0!important;line-height:1.25!important;font-size:15px!important}
.home-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}
.home-actions .btn{min-height:38px;padding:8px 12px;font-size:14px}
.home-actions .btn.primary{font-size:14px}
.brand,.nav .brand{border:0!important;background:transparent!important;box-shadow:none!important;padding:0!important;border-radius:0!important}

@media(max-width:800px){
  header{position:sticky;top:0}
  .nav{display:grid;grid-template-columns:1fr auto;align-items:center}
  .menu-toggle{display:inline-flex}
  .nav-menu{display:none;grid-column:1/-1;width:100%;padding-top:10px}
  .nav-menu.open{display:grid;grid-template-columns:1fr;gap:8px}
  .nav-menu .btn{width:100%;justify-content:flex-start}
  .messaging-shell{display:block;min-height:0}
  .message-sidebar{border-right:0;border-bottom:1px solid var(--line)}
  .message-panel{min-height:520px}
  .conversation-card{grid-template-columns:42px 1fr;align-items:start}
  .conversation-meta{grid-column:2;text-align:left}
  .sector-block{margin-left:-12px;margin-right:-12px}
  .sector-block .section-title{padding:0 12px}
  .sector-row{display:flex!important;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;padding:0 12px 10px;-webkit-overflow-scrolling:touch}
  .sector-row .job-card{flex:0 0 86%;max-width:360px;scroll-snap-align:start}
  .sector-row .home-job-card{flex:0 0 86%!important;min-width:300px!important;max-width:360px!important;width:auto!important}
  .home-job-title{font-size:28px!important}
  .home-job-line{font-size:15px!important;line-height:1.35!important}
  .home-actions .btn{width:auto;justify-content:center}
  .home-actions .btn.primary{width:100%}
}

/* Compact spacing used across the site. */
p{margin:0 0 6px!important;line-height:1.3!important}
.grid{gap:12px!important}.card{padding:14px!important}
.section-title{margin:18px 0 10px!important}.form-row{gap:12px!important;margin-bottom:12px!important}
.toolbar{gap:8px!important;margin-top:6px!important}.job-card{gap:6px!important}
.job-card h3{margin:0 0 4px!important;line-height:1.15!important}.job-card p{margin:0 0 4px!important;line-height:1.25!important}
.legal-page p{margin:0 0 12px!important;line-height:1.55!important}
.message-bubble p{margin:0 0 4px!important}.messages-thread{gap:8px!important;padding:14px!important}
.document-box{gap:8px!important;padding:10px!important;margin-bottom:10px!important}

/* Strong compact rhythm for job cards. */
.job-card,.home-job-card{display:block!important;align-self:start!important;min-height:0!important;padding:12px!important}
.job-card h3,.home-job-title{margin:0 0 6px!important;line-height:1.15!important}
.job-card p,.home-job-line{margin:0 0 7px!important;line-height:1.25!important}
.job-card .small,.home-job-question{margin:6px 0!important;line-height:1.2!important}
.job-card .toolbar,.home-actions{margin-top:8px!important}
.grid>.job-card,.grid>.card{align-self:start!important}
.sector-row .home-job-card{padding:12px!important}
.sector-row.grid-5{grid-template-columns:repeat(5,minmax(220px,1fr))!important;align-items:start!important}
@media(max-width:800px){
  .sector-row .home-job-card{flex:0 0 82vw!important;min-width:280px!important;max-width:340px!important;width:82vw!important}
  .home-actions .btn{width:100%;justify-content:center}
}

/* Final overrides: compact public cards and clear WhatsApp-style messages. */
.sector-row.grid-5{display:grid!important;grid-template-columns:repeat(5,minmax(190px,1fr))!important;gap:12px!important;align-items:start!important}
.home-job-card{display:flex!important;flex-direction:column!important;gap:6px!important;min-height:0!important;height:auto!important;padding:12px!important}
.home-job-card p,.home-job-line{margin:0!important;line-height:1.15!important}
.home-job-title{font-size:18px!important;line-height:1.15!important;margin:0 0 4px!important}
.home-company{font-size:14px!important;line-height:1.15!important;margin:0!important}
.home-job-question{margin:4px 0 0!important;line-height:1.15!important}
.home-actions{gap:6px!important;margin-top:6px!important}
.home-actions .btn{min-height:34px!important;padding:7px 10px!important;font-size:13px!important}
.message-panel-head{align-items:flex-start!important}
.message-panel-head .btn{margin-top:6px!important}
.message-bubble{line-height:1.25!important}
.message-bubble .btn{min-height:32px!important;padding:6px 10px!important}
@media(max-width:800px){
  .sector-row{display:flex!important;gap:12px!important;overflow-x:auto!important;padding:0 12px 10px!important}
  .sector-row .home-job-card{flex:0 0 86vw!important;min-width:300px!important;max-width:360px!important;width:86vw!important}
  .home-actions .btn{width:100%!important}
}

/* Homepage: no title banner, tighter top spacing, and independent mobile sector scrollers. */
.home-main{margin-top:0!important}
.home-main .sector-block:first-child{margin-top:0!important}
.home-main .section-title{margin:0 0 10px!important}
.home-main .sector-row.grid-4,.home-main .sector-row.grid-5{display:grid!important;grid-template-columns:repeat(4,minmax(230px,1fr))!important;gap:10px!important}
.home-main .home-job-card{max-width:none!important}
@media(max-width:800px){
  main.wrap{padding-top:10px!important}
  .home-main .sector-block{margin:0 0 18px!important;overflow:hidden!important}
  .home-main .section-title{padding:0!important;margin:0 0 8px!important}
  .home-main .sector-row,
  .home-main .sector-row.grid-4,
  .home-main .sector-row.grid-5{
    display:flex!important;
    grid-template-columns:none!important;
    gap:12px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    overscroll-behavior-x:contain!important;
    -webkit-overflow-scrolling:touch!important;
    scroll-snap-type:x mandatory!important;
    touch-action:pan-x!important;
    padding:0 2px 10px!important;
  }
  .home-main .sector-row .home-job-card{
    flex:0 0 78vw!important;
    min-width:270px!important;
    max-width:330px!important;
    width:78vw!important;
    scroll-snap-align:start!important;
  }
}

/* Mobile homepage containment: the page stays fixed; only each job row slides. */
html,body{max-width:100%;overflow-x:hidden!important}
.home-main{width:100%;max-width:100%;overflow:hidden!important}
@media(max-width:800px){
  header,.nav,main.wrap,.home-main,.home-main .sector-block{max-width:100vw!important;box-sizing:border-box!important}
  .home-main .sector-block{width:100%!important;margin-left:0!important;margin-right:0!important}
  .home-main .sector-row,
  .home-main .sector-row.grid-4,
  .home-main .sector-row.grid-5{
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
    padding:0 0 10px!important;
    box-sizing:border-box!important;
  }
  .home-main .sector-row .home-job-card{
    flex:0 0 88vw!important;
    min-width:300px!important;
    max-width:420px!important;
    width:88vw!important;
  }
}

/* Mobile: keep the header frozen while each sector row scrolls by itself. */
@media(max-width:800px){
  header{
    position:fixed!important;
    top:0!important;
    left:0!important;
    right:0!important;
    width:100vw!important;
    max-width:100vw!important;
    z-index:9999!important;
  }
  body{padding-top:74px!important}
  header .wrap{width:100%!important;max-width:100%!important}
  .home-main .sector-row .home-job-card{
    flex-basis:90vw!important;
    width:90vw!important;
    min-width:310px!important;
    max-width:430px!important;
  }
}

/* Final homepage/footer layout: desktop 4 cards, phone 1 card, centered footer. */
footer .wrap{display:flex!important;justify-content:center!important}
.footer-links{justify-content:center!important;text-align:center!important}
.home-main .sector-row.grid-4,
.home-main .sector-row.grid-5{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(230px,1fr))!important;
  gap:10px!important;
}
@media(max-width:800px){
  .home-main .sector-row,
  .home-main .sector-row.grid-4,
  .home-main .sector-row.grid-5{
    display:grid!important;
    grid-template-columns:1fr!important;
    overflow:visible!important;
    overflow-x:visible!important;
    overflow-y:visible!important;
    touch-action:auto!important;
    scroll-snap-type:none!important;
    overscroll-behavior:auto!important;
    gap:10px!important;
    padding:0!important;
  }
  .home-main .sector-row .home-job-card{
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    flex:none!important;
  }
}

/* Final mobile homepage scroll fix: let the page scroll vertically again. */
@media(max-width:800px){
  html,
  body{
    height:auto!important;
    min-height:100%!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    touch-action:auto!important;
  }

  .home-main,
  .home-main .sector-block{
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow:visible!important;
    touch-action:auto!important;
  }

  .home-main .sector-row,
  .home-main .sector-row.grid-4,
  .home-main .sector-row.grid-5{
    height:auto!important;
    max-height:none!important;
    overflow:visible!important;
    touch-action:auto!important;
    display:grid!important;
    grid-template-columns:1fr!important;
  }
}
