/* BOSS WC Code Guesser v2.0 - Partner & Client Vetting design system */

#boss-wcg-wrap{
  --band:#20241F; --band2:#171A16;
  --sage:#E9EDE6; --card:#FFFFFF; --line:#D8DED4;
  --ink:#1F2221; --ink2:#4A4E49; --muted:#66635F;
  --gold:#FCB900; --gold-d:#C68C00;
  --green:#2E6B46; --green-t:#DCEFE2;
  --orange:#CF6A17; --orange-t:#FEE7CF;
  --burg:#8F2434; --burg-t:#F6DADF;
  font-family:'Raleway',Arial,sans-serif;
  max-width:860px;margin:0 auto;color:var(--ink);
  background:var(--sage);border-radius:16px;overflow:hidden;
  box-shadow:0 8px 30px rgba(31,34,33,.10);
}
#boss-wcg-wrap *{box-sizing:border-box}
#boss-wcg-wrap .hidden{display:none !important}

/* Band */
.wcg-band{background:var(--band);padding:20px 24px;display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap}
.wcg-band-left{display:flex;align-items:center;gap:16px}
.wcg-logo{background:#fff;border-radius:10px;padding:8px 16px;font-family:'Playfair Display',Georgia,serif;font-weight:700;font-size:26px;color:var(--ink);line-height:1;letter-spacing:.5px}
.wcg-logo-dot{color:var(--gold)}
.wcg-band-title{color:#fff;font-weight:800;font-size:19px;line-height:1.25}
.wcg-band-sub{color:rgba(255,255,255,.65);font-size:13px;margin-top:3px;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.wcg-dot{width:9px;height:9px;border-radius:999px;display:inline-block}
.wcg-dot.ok{background:#4CAF6D}
.wcg-dot.bad{background:#E05A6D}
.wcg-newsearch{background:rgba(255,255,255,.10);color:#fff !important;border:1px solid rgba(255,255,255,.22);border-radius:8px;padding:9px 16px;font-family:inherit;font-weight:700;font-size:13.5px;cursor:pointer;transition:background .15s ease}
.wcg-newsearch:hover{background:rgba(255,255,255,.18)}
.wcg-newsearch:focus-visible{outline:2px solid var(--gold);outline-offset:2px}

/* Body */
.wcg-body{padding:22px 24px 28px}
.wcg-eyebrow{color:var(--gold-d);font-size:12px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;margin:24px 0 10px}
.wcg-card{background:var(--card);border:1px solid var(--line);border-radius:12px}
.wcg-card.pad{padding:22px 24px}
.wcg-card + .wcg-card{margin-top:16px}

/* Fields (theme-override hardened) */
.wcg-row{display:flex;gap:14px;flex-wrap:wrap}
.wcg-field{margin-bottom:14px;min-width:140px}
.wcg-field.grow{flex:1}
.wcg-field label{display:block;font-size:14px;font-weight:700;color:var(--ink) !important;margin-bottom:6px}
.wcg-opt{font-weight:400;color:var(--muted);font-size:12.5px}
#boss-wcg-wrap input[type="text"],
#boss-wcg-wrap input:not([type]),
#boss-wcg-wrap textarea{
  width:100%;padding:11px 14px;border:2px solid var(--line) !important;border-radius:10px;
  font-family:inherit;font-size:14.5px;line-height:1.6;
  background:#FBFBF9 !important;color:var(--ink) !important;caret-color:var(--ink) !important;
  -webkit-text-fill-color:var(--ink) !important;
}
#boss-wcg-wrap textarea{min-height:170px;resize:vertical}
#boss-wcg-wrap input:focus,#boss-wcg-wrap textarea:focus{outline:none;border-color:var(--gold) !important;background:#fff !important}
#boss-wcg-wrap input::placeholder,#boss-wcg-wrap textarea::placeholder{color:#AEB3AC !important;-webkit-text-fill-color:#AEB3AC !important;opacity:1 !important}

/* Buttons */
.wcg-nav{display:flex;justify-content:flex-end;gap:12px;margin-top:6px;align-items:center;flex-wrap:wrap}
.wcg-btn{font-family:inherit;font-weight:700;font-size:14.5px;padding:11px 22px;border-radius:8px;cursor:pointer;border:1px solid transparent;transition:background .15s ease,color .15s ease,border-color .15s ease;text-decoration:none;display:inline-block}
.wcg-btn.dark,.wcg-btn.dark:visited{background:var(--band) !important;color:#fff !important}
.wcg-btn.dark:hover{background:var(--band2) !important;color:#fff !important}
.wcg-btn.outline,.wcg-btn.outline:visited{background:#fff !important;color:var(--ink) !important;border-color:var(--line) !important}
.wcg-btn.outline:hover{border-color:var(--gold-d) !important;color:var(--gold-d) !important}
.wcg-btn.gold,.wcg-btn.gold:visited{background:var(--gold) !important;color:var(--ink) !important}
.wcg-btn.gold:hover{background:#E0A400 !important;color:var(--ink) !important}
.wcg-btn:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.wcg-btn[disabled]{opacity:.55;cursor:not-allowed}

/* Loading / error */
.wcg-loading{display:flex;align-items:center;gap:10px;font-size:13px;color:var(--muted);margin-top:14px;font-weight:600}
.wcg-spinner{width:18px;height:18px;border:3px solid var(--line);border-top-color:var(--gold);border-radius:50%;animation:wcg-spin .7s linear infinite;flex-shrink:0}
@keyframes wcg-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.wcg-spinner{animation-duration:1.6s}}
.wcg-error{background:var(--burg-t);color:var(--burg);border-left:4px solid var(--burg);border-radius:8px;padding:12px 14px;margin-top:14px;font-weight:600;font-size:14px}

/* Follow-up */
#wcg-followup{margin-top:16px}
.wcg-followup-title{font-size:17px;font-weight:800;color:var(--ink) !important;margin:0 0 16px}
.wcg-fq{margin-bottom:18px;padding-bottom:18px;border-bottom:1px solid #EEF1EC}
.wcg-fq:last-child{border-bottom:none;margin-bottom:0;padding-bottom:0}
.wcg-fq label{display:block;font-size:14.5px;font-weight:700;color:var(--ink) !important;margin-bottom:4px;line-height:1.5}
.wcg-fq-why{font-size:12.5px;color:var(--muted);margin-bottom:8px;font-style:italic}
.wcg-fq textarea{min-height:56px !important}
.wcg-impact{display:inline-block;font-size:10px;font-weight:800;padding:2px 8px;border-radius:999px;margin-left:6px;letter-spacing:.05em;vertical-align:middle}
.wcg-impact.high{background:var(--burg-t);color:var(--burg)}
.wcg-impact.medium{background:var(--orange-t);color:var(--orange)}

/* Result */
.wcg-primary{background:var(--card);border:1px solid var(--line);border-left:6px solid var(--gold);border-radius:12px;padding:22px 26px;margin-bottom:14px}
.wcg-primary-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}
.wcg-code{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:26px;font-weight:800;color:var(--ink);background:#FDF1CF;border-radius:8px;padding:4px 12px;display:inline-block}
.wcg-code-title{font-size:18px;font-weight:800;color:var(--ink);margin-top:8px}
.wcg-conf{display:inline-flex;align-items:center;font-size:12px;font-weight:800;padding:4px 12px;border-radius:999px;letter-spacing:.03em}
.wcg-conf.high{background:var(--green-t);color:var(--green)}
.wcg-conf.medium{background:var(--orange-t);color:var(--orange)}
.wcg-conf.low{background:var(--burg-t);color:var(--burg)}
.wcg-rationale{font-size:14.5px;line-height:1.65;color:var(--ink2);margin-top:12px}
.wcg-sec{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:18px 22px;margin-bottom:14px}
.wcg-sec-title{font-size:11px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--gold-d);margin-bottom:10px}
.wcg-alt{padding:10px 0;border-bottom:1px solid #EEF1EC;font-size:14px;color:var(--ink2);line-height:1.55}
.wcg-alt:last-child{border-bottom:none}
.wcg-alt .c{font-family:ui-monospace,Menlo,Consolas,monospace;font-weight:800;color:var(--ink);background:#F4F6F2;border-radius:6px;padding:1px 8px;margin-right:6px}
.wcg-flags{display:flex;flex-wrap:wrap;gap:8px}
.wcg-flag{background:var(--orange-t);color:var(--orange);font-size:12px;font-weight:800;padding:4px 12px;border-radius:999px}
.wcg-note{font-size:14px;color:var(--ink2);line-height:1.6}

/* CTA card */
.wcg-cta-card{background:var(--band);border-radius:14px;padding:22px 26px;display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap;margin-bottom:14px}
.wcg-cta-title{color:#fff;font-weight:800;font-size:17px}
.wcg-cta-sub{color:rgba(255,255,255,.75);font-size:13.5px;line-height:1.55;margin-top:4px;max-width:520px}
.wcg-actions{display:flex;gap:10px;flex-wrap:wrap}

/* Promo */
.wcg-info{margin-top:34px}
.wcg-info-h{font-size:27px;font-weight:800;color:var(--ink) !important;margin:4px 0 10px;line-height:1.2}
.wcg-info-p{color:var(--ink2);font-size:15.5px;line-height:1.65;max-width:760px;margin:0 0 22px}
.wcg-info-p strong{color:var(--ink)}
.wcg-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px 26px;margin-bottom:26px}
.wcg-feat{display:flex;align-items:flex-start;gap:12px;font-size:14.5px;line-height:1.55;color:var(--ink2)}
.wcg-feat strong{color:var(--ink)}
.wcg-ic{flex:0 0 34px;width:34px;height:34px;border-radius:999px;display:flex;align-items:center;justify-content:center;font-size:15px;font-weight:800;margin-top:1px}
.ic-gold{background:#FDF1CF;color:#B58500}
.ic-green{background:#E4EDE6;color:#3F6A46}
.ic-navy{background:#E2E8EF;color:#344F6C}
.ic-brick{background:#F3E3E1;color:#9D4B41}
.wcg-dark-panel{background:var(--band);border-radius:14px;padding:26px 28px;color:#fff}
.wcg-dark-panel h3{font-size:19px;font-weight:800;margin:0 0 10px;color:#fff !important}
.wcg-dark-panel p{margin:0 0 10px;color:rgba(255,255,255,.82);font-size:14.5px;line-height:1.65;max-width:760px}
.wcg-dark-panel .wcg-gold-line{color:var(--gold);font-weight:700;margin:12px 0 0}

@media (max-width:640px){
  .wcg-band{padding:16px}
  .wcg-body{padding:14px 14px 22px}
  .wcg-logo{font-size:22px;padding:7px 13px}
  .wcg-card.pad{padding:16px}
  .wcg-grid{grid-template-columns:1fr}
  .wcg-info-h{font-size:22px}
  .wcg-nav{flex-direction:column-reverse;align-items:stretch}
  .wcg-nav .wcg-btn{width:100%;text-align:center}
  .wcg-cta-card{flex-direction:column;align-items:flex-start}
}

/* v2.1 - upload dropzone + doc chips */
.wcg-drop{background:#fff;border:2px dashed #B9C2B4;border-radius:10px;padding:14px 16px;margin-bottom:14px;transition:border-color .15s ease,background .15s ease}
.wcg-drop.dragover{border-color:var(--gold);background:#FFFDF4}
.wcg-drop-inner{display:flex;align-items:center;gap:12px;cursor:pointer;font-size:14px;color:var(--ink2);line-height:1.5}
.wcg-drop-inner strong{color:var(--ink)}
.wcg-drop-note{font-size:12px;color:var(--muted)}
.wcg-file-input{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.wcg-doc-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.wcg-doc-list:empty{margin-top:0}
.wcg-doc-chip{display:inline-flex;align-items:center;gap:6px;background:var(--green-t);color:var(--green);font-size:12.5px;font-weight:700;padding:5px 10px;border-radius:999px}
.wcg-doc-x{background:none;border:none;color:var(--green);font-size:15px;font-weight:800;cursor:pointer;padding:0;line-height:1}
.wcg-doc-x:hover{color:var(--burg)}

/* v2.2 - chat */
.wcg-chat{margin-bottom:14px}
.wcg-chat-title{font-size:16px;font-weight:800;color:var(--ink) !important;margin-bottom:3px}
.wcg-chat-sub{font-size:13px;color:var(--muted);line-height:1.5;margin-bottom:14px;padding-bottom:12px;border-bottom:1px solid #EEF1EC}
#wcg-chat-messages{display:flex;flex-direction:column;gap:12px;margin-bottom:14px;max-height:360px;overflow-y:auto}
#wcg-chat-messages:empty{margin-bottom:0}
.wcg-chat-msg{padding:12px 16px;border-radius:10px;font-size:13.5px;line-height:1.6;max-width:90%;white-space:pre-wrap}
.wcg-chat-msg.user{background:var(--band);color:#fff;align-self:flex-end;border-bottom-right-radius:3px}
.wcg-chat-msg.assistant{background:#F4F6F2;color:var(--ink2);border:1px solid #E4E9E1;align-self:flex-start;border-bottom-left-radius:3px}
.wcg-chat-input-wrap{display:flex;gap:10px;align-items:flex-end}
#wcg-chat-input{flex:1;min-height:44px !important;max-height:120px;resize:none}
@media (max-width:640px){.wcg-chat-input-wrap{flex-direction:column;align-items:stretch}}
