:root{--brand:#0f3d31;--brand2:#195f4c;--ink:#17211e;--muted:#6f7d77;--line:#e3e9e6;--surface:#fff;--bg:#e8eeeb;--chat:#f5f7f6;--user:#dff4e8;--warn:#fff4df;--shadow:0 24px 70px rgba(20,45,37,.15)}*{box-sizing:border-box}html,body{height:100%}body{margin:0;font-family:'Cairo',sans-serif;color:var(--ink);background:radial-gradient(circle at 10% 10%,#dceae4 0,transparent 32%),#edf2ef}.wa-shell{width:min(1440px,calc(100% - 32px));height:calc(100vh - 32px);margin:16px auto;display:grid;grid-template-columns:330px 1fr;background:#fff;border:1px solid rgba(15,61,49,.08);border-radius:24px;overflow:hidden;box-shadow:var(--shadow)}.wa-side{background:#fff;border-left:1px solid var(--line);display:flex;flex-direction:column;padding:22px}.company-card{display:flex;gap:12px;align-items:center;padding:0 2px 22px;border-bottom:1px solid var(--line)}.company-logo{width:48px;height:48px;border-radius:15px;background:linear-gradient(145deg,var(--brand),var(--brand2));display:grid;place-items:center;color:#fff;font-size:20px}.company-card strong{display:block;font-size:15px}.company-card small{display:block;color:var(--muted);font-size:11px;margin-top:2px}.side-section{padding:22px 0;border-bottom:1px solid var(--line)}.side-label{display:block;font-size:10px;color:#95a19c;font-weight:700;margin-bottom:12px}.side-state{display:flex;gap:10px;align-items:center;background:#f5f8f6;border:1px solid #e7eeea;padding:13px;border-radius:14px}.side-state>i{width:34px;height:34px;border-radius:10px;background:#e4efe9;color:var(--brand);display:grid;place-items:center}.side-state strong{display:block;font-size:12px}.side-state small{font-size:9px;color:var(--muted)}.feature-line{display:flex;gap:10px;align-items:flex-start;margin:13px 0;font-size:11px;line-height:1.7;color:#50605a}.feature-line i{color:var(--brand);margin-top:3px}.side-footer{margin-top:auto;color:#8a9691;font-size:10px}.wa-chat{min-width:0;display:flex;flex-direction:column;background:var(--chat)}.chat-header{height:76px;padding:14px 20px;background:rgba(255,255,255,.96);border-bottom:1px solid var(--line);display:flex;gap:12px;align-items:center}.assistant-avatar{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,#e4f0eb,#d7e9e1);color:var(--brand);font-size:18px;border:1px solid #d5e4de}.assistant-avatar.mini{width:30px;height:30px;font-size:11px;flex:0 0 30px}.chat-header h1{font-size:15px;font-weight:800;margin:0 0 3px}.status-line{font-size:10px;color:var(--muted);display:flex;align-items:center;gap:6px}.online-dot{width:7px;height:7px;background:#2fa66b;border-radius:50%;box-shadow:0 0 0 3px rgba(47,166,107,.12)}.icon-btn{border:0;background:#f1f5f3;width:40px;height:40px;border-radius:50%;color:#51615b}.progress-wrap{padding:8px 20px;background:#fff;border-bottom:1px solid #edf1ef}.progress-meta{display:flex;justify-content:space-between;font-size:9px;color:var(--muted);margin-bottom:5px}.progress{height:4px;background:#edf2ef}.progress-bar{background:var(--brand);width:0;transition:.3s}.chat-body{flex:1;min-height:0;overflow:auto;padding:28px max(22px,5vw);background:radial-gradient(circle at 20% 20%,rgba(255,255,255,.8),transparent 30%),linear-gradient(180deg,#f7f9f8,#f2f6f4);scroll-behavior:smooth}.message-row{display:flex;gap:8px;align-items:flex-end;margin-bottom:14px;animation:pop .2s ease}.message-row.user{justify-content:flex-start;flex-direction:row-reverse}.bubble{max-width:min(78%,650px);padding:10px 13px;border-radius:12px;font-size:13px;line-height:1.85;white-space:pre-line;word-break:break-word;box-shadow:0 1px 2px rgba(0,0,0,.04)}.bot .bubble{background:#fff;border:1px solid #e5ebe8;border-bottom-right-radius:4px}.user .bubble{background:var(--user);border:1px solid #cfe8da;border-bottom-left-radius:4px}.message-time{font-size:8px;color:#8a9791;margin-top:4px}.choice-area{display:flex;flex-wrap:wrap;gap:8px;margin:2px 38px 18px 0;max-width:720px}.choice-btn{border:1px solid #d8e3de;background:#fff;color:var(--ink);border-radius:999px;padding:10px 14px;font-size:11px;font-weight:700;transition:.16s}.choice-btn:hover{border-color:#7ba492;background:#edf6f2;transform:translateY(-1px)}.choice-btn.primary{background:var(--brand);border-color:var(--brand);color:#fff}.job-card{margin:4px 38px 18px 0;max-width:640px;background:#fff;border:1px solid #e0e8e4;border-radius:17px;padding:17px;box-shadow:0 8px 24px rgba(30,60,50,.04)}.job-card-title{font-weight:800;font-size:14px;margin-bottom:10px}.job-meta{display:flex;gap:12px;flex-wrap:wrap;color:#64736d;font-size:10px;margin-bottom:10px}.job-desc{font-size:11px;color:#52625c;line-height:1.8}.chat-composer{min-height:78px;padding:12px 16px calc(12px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--line);display:flex;align-items:center}.input-wrap{display:flex;gap:8px;align-items:center;width:100%}.chat-input{flex:1;background:#f5f7f6;border:1px solid #e0e7e3;border-radius:999px;padding:12px 16px;font-size:12px;outline:0}.chat-input:focus{border-color:#8fb2a3;background:#fff;box-shadow:0 0 0 3px rgba(25,95,76,.06)}.send-btn,.attach-btn{border:0;width:44px;height:44px;border-radius:50%;display:grid;place-items:center}.send-btn{background:var(--brand);color:#fff}.attach-btn{background:#f0f4f2;color:#50615a}.composer-note{width:100%;text-align:center;font-size:10px;color:#8b9792}.file-card{width:100%;border:1px dashed #b8ccc3;background:#f8fbf9;border-radius:16px;padding:14px;cursor:pointer;display:flex;align-items:center;gap:12px}.file-icon{width:42px;height:42px;border-radius:12px;background:#e3f0ea;color:var(--brand);display:grid;place-items:center;font-size:18px}.file-title{font-size:12px;font-weight:800}.file-hint{font-size:9px;color:var(--muted)}.manual-link{margin-right:auto;border:0;background:transparent;color:var(--brand);font-size:10px;text-decoration:underline}.typing-row{display:flex;gap:8px;align-items:flex-end;padding:0 max(22px,5vw) 12px}.typing-bubble{background:#fff;border:1px solid #e3e9e6;border-radius:12px;padding:10px 13px}.typing-bubble span{display:inline-block;width:5px;height:5px;margin:0 2px;border-radius:50%;background:#94a39d;animation:blink 1.1s infinite}.typing-bubble span:nth-child(2){animation-delay:.15s}.typing-bubble span:nth-child(3){animation-delay:.3s}.system-inline{margin:8px auto 18px;max-width:560px;background:var(--warn);border:1px solid #f2dfb7;border-radius:14px;padding:12px 14px;text-align:center;font-size:11px;color:#6f551f}.system-overlay{position:fixed;inset:0;background:rgba(16,31,26,.35);backdrop-filter:blur(6px);z-index:100;display:grid;place-items:center;padding:20px}.system-card{width:min(92vw,430px);background:#fff;border-radius:24px;padding:28px;text-align:center;box-shadow:0 30px 90px rgba(0,0,0,.18)}.system-icon{width:58px;height:58px;margin:0 auto 14px;border-radius:18px;background:#fff4df;color:#9a6c11;display:grid;place-items:center;font-size:22px}.system-card h3{font-size:17px;font-weight:800}.system-card p{font-size:11px;color:var(--muted);line-height:1.8}.countdown-ring{width:62px;height:62px;border-radius:50%;border:5px solid #ecf0ee;display:grid;place-items:center;margin:16px auto;font-size:20px;font-weight:800;color:var(--brand)}@keyframes blink{0%,80%,100%{opacity:.35;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}@keyframes pop{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}@media(max-width:850px){body{background:#fff}.wa-shell{width:100%;height:100%;margin:0;border:0;border-radius:0;display:block}.wa-side{display:none}.wa-chat{height:100%}.chat-header{height:68px;padding:10px 14px}.chat-body{padding:20px 13px}.bubble{max-width:86%;font-size:12px}.choice-area,.job-card{margin-right:0}.chat-composer{min-height:70px;padding:10px}.typing-row{padding:0 13px 8px}}
/* V1.1 focused premium chat */
.wa-shell{grid-template-columns:285px minmax(0,1fr);max-width:1320px}.wa-side{padding:20px}.chat-body{padding:30px clamp(28px,8vw,115px)}.bubble{max-width:min(72%,610px)}.job-card{max-width:610px}.choice-area{max-width:650px}.chat-header{padding-inline:clamp(18px,4vw,55px)}.chat-composer{padding-inline:clamp(16px,5vw,70px)}
@media(max-width:1050px){.wa-shell{grid-template-columns:250px minmax(0,1fr)}}
@media(max-width:850px){.chat-body{padding:20px 13px}.bubble{max-width:88%}.chat-header,.chat-composer{padding-inline:14px}}

/* V1.6 viewport/scroll hardening - only message pane scrolls */
html,body{width:100%;height:100%;height:100dvh;overflow:hidden}
body{overscroll-behavior:none}
.wa-shell{height:calc(100dvh - 32px);max-height:calc(100dvh - 32px);overflow:hidden}
.wa-side{height:100%;min-height:0;overflow-y:auto}
.wa-chat{height:100%;min-height:0;min-width:0;overflow:hidden;display:flex;flex-direction:column}
.chat-header{flex:0 0 76px}.progress-wrap{flex:0 0 auto}
.chat-body{flex:1 1 0;height:0;min-height:0;overflow-y:auto!important;overflow-x:hidden!important;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;scrollbar-gutter:stable}
.typing-row{flex:0 0 auto}.chat-composer{flex:0 0 auto;position:relative;z-index:4}
@media(max-width:850px){html,body{height:100%;height:100dvh;overflow:hidden}.wa-shell{height:100dvh;max-height:100dvh;overflow:hidden}.wa-chat{height:100dvh;max-height:100dvh;min-height:0;overflow:hidden}.chat-header{flex:0 0 68px}.chat-body{flex:1 1 0;height:0;min-height:0;padding-bottom:24px}.chat-composer{flex:0 0 auto;padding-bottom:calc(10px + env(safe-area-inset-bottom))}.typing-row{flex:0 0 auto}}

/* AI-driven structured replies */
.ai-card{margin:4px 38px 18px 0;max-width:660px;background:#fff;border:1px solid #dfe8e4;border-radius:18px;padding:18px;box-shadow:0 10px 30px rgba(28,65,52,.06);animation:pop .2s ease}.ai-card-title{font-weight:800;font-size:14px;margin-bottom:6px;color:#173f33}.ai-card-subtitle{font-size:11px;color:#62716b;line-height:1.8;margin-bottom:12px}.ai-section{border-top:1px solid #edf1ef;padding-top:12px;margin-top:12px}.ai-section-title{font-size:11px;font-weight:800;margin-bottom:7px}.ai-section-required .ai-section-title{color:#9c3f36}.ai-section-preferred .ai-section-title{color:#9a6b13}.ai-section-info .ai-section-title{color:#316b59}.ai-section-warning .ai-section-title{color:#9c3f36}.ai-list{margin:0;padding-right:20px;font-size:11px;line-height:2;color:#42524c}.ai-card-footer{margin-top:14px;padding:10px 12px;border-radius:12px;background:#f4f8f6;font-size:10px;font-weight:700;color:#36594c}.ai-card-fit_warning{border-color:#ecd3b2;background:#fffdf8}.ai-card-job_requirements{border-color:#cfe0d8}@media(max-width:850px){.ai-card{margin-right:0;max-width:100%}}
