/* Capitol City Resumes — floating chat widget
   Sits above the deed.page badge (right:10px; bottom:10px) and "Report abuse" (bottom:38px). */

:root{
  --ccr-chat-bottom: 78px;
  --ccr-chat-right: 16px;
  --ccr-chat-z: 10000;
}

.ccr-chat{
  position:fixed;
  right:var(--ccr-chat-right);
  bottom:var(--ccr-chat-bottom);
  z-index:var(--ccr-chat-z);
  font-family:var(--sans, "Lato",-apple-system,"Segoe UI",Helvetica,Arial,sans-serif);
  color:var(--ink, #1d2330);
  pointer-events:none;
}
.ccr-chat *{box-sizing:border-box}
.ccr-chat button,.ccr-chat a,.ccr-chat input,.ccr-chat form,.ccr-chat .ccr-chat-panel{
  pointer-events:auto;
}

.ccr-sr-only{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
  clip:rect(0,0,0,0);white-space:nowrap;border:0;
}

.ccr-chat-launch{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-width:56px;
  height:56px;
  padding:0 18px 0 16px;
  border:0;
  border-radius:28px;
  background:var(--navy, #121a2b);
  color:#fff;
  font:700 14px/1 var(--sans, "Lato",sans-serif);
  letter-spacing:.04em;
  cursor:pointer;
  box-shadow:0 10px 28px -10px rgba(18,26,43,.7),0 0 0 1px rgba(201,169,97,.35);
  transition:background .15s,transform .15s,box-shadow .15s;
}
.ccr-chat-launch:hover{background:var(--navy-2, #1a2438);transform:translateY(-1px)}
.ccr-chat-launch:focus-visible{outline:2px solid var(--gold, #c9a961);outline-offset:3px}
.ccr-chat-launch svg{flex:none;display:block}
.ccr-chat-launch[aria-expanded="true"]{background:var(--steel, #2f5d8a)}
.ccr-chat-launch-label{padding-right:2px}

.ccr-chat-panel{
  position:absolute;
  right:0;
  bottom:68px;
  width:min(380px, calc(100vw - 24px));
  max-height:min(560px, calc(100dvh - var(--ccr-chat-bottom) - 80px));
  display:flex;
  flex-direction:column;
  background:var(--paper, #fff);
  border:1px solid var(--line, #e3e1da);
  border-radius:6px;
  box-shadow:0 28px 60px -24px rgba(18,26,43,.55),0 0 0 1px rgba(18,26,43,.06);
  overflow:hidden;
}
.ccr-chat-panel[hidden]{display:none}

.ccr-chat-head{
  background:var(--navy, #121a2b);
  color:#fff;
  padding:14px 44px 14px 16px;
  position:relative;
  flex:none;
}
.ccr-chat-head h2{
  font-family:var(--serif, "Libre Caslon Text",Georgia,serif);
  font-weight:400;
  font-size:18px;
  line-height:1.25;
  color:#fff;
  margin:0 0 6px;
}
.ccr-chat-head p{
  margin:0;
  font-size:12px;
  line-height:1.45;
  color:rgba(255,255,255,.75);
  font-weight:400;
  letter-spacing:0;
}
.ccr-chat-close{
  position:absolute;
  top:8px;
  right:8px;
  width:36px;
  height:36px;
  border:0;
  background:transparent;
  color:#fff;
  font-size:28px;
  line-height:1;
  cursor:pointer;
  border-radius:4px;
}
.ccr-chat-close:hover{background:rgba(255,255,255,.1)}
.ccr-chat-close:focus-visible{outline:2px solid var(--gold, #c9a961);outline-offset:1px}

.ccr-chat-log{
  flex:1 1 auto;
  overflow-y:auto;
  padding:14px 14px 6px;
  background:var(--bg, #f6f5f1);
  display:flex;
  flex-direction:column;
  gap:10px;
  min-height:160px;
}
.ccr-chat-msg{
  max-width:92%;
  padding:10px 12px;
  border-radius:6px;
  font-size:14px;
  line-height:1.5;
}
.ccr-chat-msg p{margin:0 0 .6em}
.ccr-chat-msg p:last-child{margin-bottom:0}
.ccr-chat-msg--bot{
  align-self:flex-start;
  background:#fff;
  color:var(--ink, #1d2330);
  border:1px solid var(--line, #e3e1da);
  border-top-left-radius:2px;
}
.ccr-chat-msg--user{
  align-self:flex-end;
  background:var(--navy, #121a2b);
  color:#fff;
  border-top-right-radius:2px;
}
.ccr-chat-msg--pending{font-style:italic;color:var(--muted, #5d6675)}

.ccr-chat-ctas{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:10px;
}
.ccr-chat-ctas a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:7px 10px;
  border-radius:3px;
  font-size:12px;
  font-weight:700;
  letter-spacing:.03em;
  text-decoration:none;
  color:var(--navy, #121a2b);
  background:var(--gold, #c9a961);
  border:1px solid transparent;
}
.ccr-chat-ctas a:hover{background:var(--gold-2, #d8bd7e)}
.ccr-chat-ctas a:focus-visible{outline:2px solid var(--steel, #2f5d8a);outline-offset:2px}
.ccr-chat-ctas a.ccr-chat-cta-ghost{
  background:transparent;
  color:var(--navy, #121a2b);
  border-color:var(--line, #e3e1da);
}
.ccr-chat-ctas a.ccr-chat-cta-ghost:hover{border-color:var(--steel, #2f5d8a)}

.ccr-chat-quick{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  padding:8px 14px 4px;
  background:var(--bg, #f6f5f1);
  flex:none;
}
.ccr-chat-quick[hidden]{display:none}
.ccr-chat-quick button{
  border:1px solid var(--line, #e3e1da);
  background:#fff;
  color:var(--navy, #121a2b);
  font:700 12px/1.3 var(--sans, "Lato",sans-serif);
  letter-spacing:.02em;
  padding:7px 10px;
  border-radius:16px;
  cursor:pointer;
}
.ccr-chat-quick button:hover{border-color:var(--gold, #c9a961);background:#fbf8f0}
.ccr-chat-quick button:focus-visible{outline:2px solid var(--steel, #2f5d8a);outline-offset:2px}

.ccr-chat-form{
  display:flex;
  gap:8px;
  padding:10px 12px 12px;
  border-top:1px solid var(--line, #e3e1da);
  background:#fff;
  flex:none;
}
.ccr-chat-form input{
  flex:1;
  min-width:0;
  padding:10px 12px;
  border:1px solid #d4d2cb;
  border-radius:3px;
  font:400 15px/1.4 var(--sans, "Lato",sans-serif);
  color:var(--ink, #1d2330);
  background:#fbfbf9;
}
.ccr-chat-form input:focus{outline:none;border-color:var(--steel, #2f5d8a);box-shadow:0 0 0 3px rgba(47,93,138,.15);background:#fff}
.ccr-chat-form button[type="submit"]{
  flex:none;
  padding:10px 14px;
  border:0;
  border-radius:3px;
  background:var(--gold, #c9a961);
  color:var(--navy, #121a2b);
  font:700 13px/1 var(--sans, "Lato",sans-serif);
  letter-spacing:.04em;
  cursor:pointer;
}
.ccr-chat-form button[type="submit"]:hover{background:var(--gold-2, #d8bd7e)}
.ccr-chat-form button[type="submit"]:focus-visible{outline:2px solid var(--steel, #2f5d8a);outline-offset:2px}
.ccr-chat-form button[type="submit"]:disabled{opacity:.55;cursor:not-allowed}

@media (max-width:680px){
  :root{
    --ccr-chat-bottom: 78px;
    --ccr-chat-right: 12px;
  }
  .ccr-chat-launch{padding:0;width:56px;border-radius:50%}
  .ccr-chat-launch-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
  .ccr-chat-panel{
    width:calc(100vw - 24px);
    max-height:min(70dvh, calc(100dvh - var(--ccr-chat-bottom) - 80px));
  }
}

@media (prefers-reduced-motion:reduce){
  .ccr-chat-launch{transition:none}
  .ccr-chat-launch:hover{transform:none}
}

/* typing indicator */
.ccr-typing{display:flex;gap:5px;align-items:center;min-height:16px;margin:0}
.ccr-typing span{width:7px;height:7px;border-radius:50%;background:var(--gold,#c9a961);opacity:.35;animation:ccr-dot 1s ease-in-out infinite}
.ccr-typing span:nth-child(2){animation-delay:.15s}
.ccr-typing span:nth-child(3){animation-delay:.3s}
@keyframes ccr-dot{0%,80%,100%{opacity:.3;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}
@media (prefers-reduced-motion:reduce){
  .ccr-typing span{animation:none;opacity:.7}
}

/* resume drop / file picker */
.ccr-drop{padding:8px 12px 2px;background:var(--bg,#f6f5f1);flex:none}
.ccr-drop-label{display:block;border:1px dashed var(--line,#e3e1da);border-radius:4px;padding:8px 10px;font-size:12px;color:var(--muted,#5d6675);text-align:center;cursor:pointer;background:#fff}
.ccr-drop.is-over .ccr-drop-label,.ccr-drop-label:hover{border-color:var(--gold,#c9a961);background:#fbf8f0;color:var(--navy,#121a2b)}
.ccr-drop input[type="file"]{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}
.ccr-chat-form{position:relative}

/* watermarked personal-draft preview (canvas only; not selectable) */
.ccr-draft-wrap{align-self:stretch;margin:4px 0 8px;user-select:none;-webkit-user-select:none}
.ccr-draft-label{margin:0 0 6px;font-size:11px;letter-spacing:.08em;text-transform:uppercase;font-weight:700;color:var(--steel,#2f5d8a)}
.ccr-draft-scroll{max-height:280px;overflow:auto;border:1px solid var(--line,#e3e1da);border-radius:4px;background:#fff;user-select:none;-webkit-user-select:none}
.ccr-draft-canvas{display:block;width:100%;height:auto;user-select:none;-webkit-user-select:none;pointer-events:none}

.ccr-draft-wrap,.ccr-draft-scroll,.ccr-draft-canvas{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
.ccr-delivery{margin:0 0 10px;padding:10px 12px;border:1px solid var(--line,#e3e1da);border-radius:4px;background:#f7f5f0}
.ccr-delivery-note{margin:0 0 8px;font-size:13px;line-height:1.45;color:#1d2330}
.ccr-delivery-actions{display:flex;flex-wrap:wrap;gap:8px}
.ccr-delivery-actions button,.ccr-unlock-row button{appearance:none;border:1px solid #1d2330;background:#1d2330;color:#f7f5f0;border-radius:3px;padding:8px 10px;font:600 12px/1.2 Lato,sans-serif;cursor:pointer}
.ccr-delivery-actions button:disabled{opacity:.45;cursor:not-allowed;background:#6b7280;border-color:#6b7280}
.ccr-unlock-label{display:block;margin:10px 0 6px;font-size:12px;color:#33373f}
.ccr-unlock-row{display:flex;gap:8px}
.ccr-unlock-row input{flex:1;min-width:0;border:1px solid var(--line,#e3e1da);border-radius:3px;padding:8px 10px;font:16px Lato,sans-serif;letter-spacing:.12em;text-transform:uppercase}
@media print{
  #ccr-chat,#ccr-draft-wrap,.ccr-draft-wrap,.ccr-draft-scroll,.ccr-draft-canvas,.ccr-delivery{display:none !important}
}
