/* ============================================================================
   Humanizer V5 — sentence-level UI, scoped under .hv5-section so it does not
   bleed into the marketing/SEO sections that share .essayWriterWrapper.
   Palette uses the existing site teal (#05ada3 family) on a near-black
   background, matching the rest of the tools.
   ============================================================================ */
.hv5-section {
  /* Light theme — page surfaces flipped from near-black to white/soft-gray.
     Text vars flipped from white-on-dark to dark ink on light.
     Teal accents preserved; risk-state hues nudged for legibility on white. */
  --hv5-ink:      #FFFFFF;
  --hv5-ink-1:    #FFFFFF;
  --hv5-ink-2:    #F6FAF9;
  --hv5-ink-3:    #EFF4F2;
  --hv5-ink-4:    #E4EDEB;
  --hv5-teal:     #05ada3;
  --hv5-teal-d:   #048f87;
  --hv5-teal-glow: rgba(5,173,163,.10);
  --hv5-teal-rim:  rgba(5,173,163,.30);
  --hv5-teal-text: #048E86;
  --hv5-text:    #0F2B26;
  --hv5-text-2:  #486560;
  --hv5-text-3:  #7A8F8B;
  --hv5-text-4:  #A8B3B1;
  --hv5-rim:    rgba(15,43,38,.08);
  --hv5-rim-2:  rgba(15,43,38,.18);
  --hv5-g: #22C55E; --hv5-g-s: rgba(34,197,94,.10); --hv5-g-t: #16A34A;
  --hv5-y: #F59E0B; --hv5-y-s: rgba(245,158,11,.12); --hv5-y-t: #B45309;
  --hv5-r: #EF4444; --hv5-r-s: rgba(239,68,68,.10);  --hv5-r-t: #B91C1C;
  --hv5-amber: #F59E42;
  --hv5-amber-rim: rgba(245,158,66,.35);
  background: var(--hv5-ink);
  color: var(--hv5-text);
}

.hv5-section{ padding: 0 0 60px;}
.hv5-section .container { max-width: 1246px; }
.hv5-section .toolBreadcrumb { color: var(--hv5-text-3); }
.hv5-section .toolBreadcrumb p,
.hv5-section .toolBreadcrumb p a,
.hv5-section .toolBreadcrumb .pageUpdate { color: var(--hv5-text-2); }
.hv5-section .toolBreadcrumb p a:hover { color: var(--hv5-teal-text); }
.hv5-section .toolBreadcrumb span { color: var(--hv5-text-4); }

/* Hero */
.hv5-hero { padding: 28px 0 18px; }
.hv5-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--hv5-teal-glow); border: 1px solid var(--hv5-teal-rim);
  color: var(--hv5-teal-text); padding: 5px 13px;
  border-radius: 100px; font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px;
}
.hv5-pulse {
  width: 6px; height: 6px; background: var(--hv5-g); border-radius: 50%;
  box-shadow: 0 0 7px var(--hv5-g); animation: hv5pulse 2s ease-in-out infinite;
}
@keyframes hv5pulse { 0%,100%{opacity:.5} 50%{opacity:1} }
.hv5-section h1.hv5-h1 {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700; letter-spacing: -.025em; line-height: 1.1;
  margin: 0 0 8px; color: var(--hv5-text);
}
.hv5-h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--hv5-teal) 0%, #2dd4bf 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hv5-sub { font-size: 14px; color: var(--hv5-text-2); max-width: 620px; line-height: 1.55; }

/* Two-panel layout */
.hv5-wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  margin-top: 4px;
}
.hv5-panel {
  background: var(--hv5-ink-1);
  border: 1px solid var(--hv5-rim);
  border-radius: 16px;
  display: flex; flex-direction: column;
  height: 720px;
  max-height: 80vh;
  overflow: hidden;
}
.hv5-panel-head {
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--hv5-rim);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.hv5-panel-label {
  font-size: 10.5px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--hv5-text-3);
}
.hv5-panel-meta { display: flex; align-items: center; gap: 10px; font-size: 12.5px; }
.hv5-wc {
  font-family: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px; color: var(--hv5-text-2);
}
.hv5-wc.over { color: var(--hv5-r-t); font-weight: 600; }
.hv5-wc-limit {
  font-family: 'DM Mono', ui-monospace, monospace;
  color: var(--hv5-text-4); font-size: 12px;
}

/* Input form */
.hv5-input-body { flex: 1; min-height: 0; padding: 20px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; }
.hv5-form { display: contents; }
.hv5-section textarea.hv5-textarea {
  flex: 1;
  background: transparent;
  border: none; outline: none; resize: none;
  color: var(--hv5-text);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.7;
  min-height: 220px;
  height: auto !important; /* defeat inline height set by legacy setDivData() */
  padding: 0;
  width: 100%;
}
.hv5-section textarea.hv5-textarea::placeholder { color: var(--hv5-text-4); }
.hv5-section textarea.hv5-textarea:focus { box-shadow: none; }

/* Hide the Select2 widget that the legacy script injects for the now-hidden
   #tone <select>. The replacement tone pills live in .hv5-tone-row. */
.hv5-section .select2-container { display: none !important; }

/* Over-limit warning */
.hv5-overlimit {
  display: none;
  background: rgba(248,113,113,.08);
  border: 1px solid rgba(248,113,113,.2);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--hv5-r-t);
  gap: 10px; align-items: flex-start;
}
.hv5-overlimit.on { display: flex; }
.hv5-overlimit svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 2px; }
.hv5-overlimit-body { flex: 1; }
.hv5-overlimit-msg { margin-bottom: 8px; }
.hv5-overlimit-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.hv5-ol-btn {
  padding: 5px 11px; border-radius: 6px;
  font-size: 12px; font-weight: 600; cursor: pointer;
  border: 1px solid; font-family: inherit; transition: all .15s;
}
.hv5-ol-btn.primary {
  background: var(--hv5-teal-glow); color: var(--hv5-teal-text);
  border-color: var(--hv5-teal-rim);
}
.hv5-ol-btn.primary:hover { background: rgba(5,173,163,.22); }
.hv5-ol-btn.ghost {
  background: transparent; color: var(--hv5-text-2);
  border-color: var(--hv5-rim-2);
}
.hv5-ol-btn.ghost:hover { color: var(--hv5-text); }

/* Tone pills */
.hv5-tone-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hv5-tone-label {
  font-size: 11.5px; font-weight: 600; color: var(--hv5-text-3);
  white-space: nowrap;
}
.hv5-tone-opts { display: flex; gap: 5px; flex-wrap: wrap; }
.hv5-tone-btn {
  padding: 5px 13px;
  background: transparent;
  border: 1px solid var(--hv5-rim);
  border-radius: 100px;
  color: var(--hv5-text-2);
  font-size: 12px; font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s;
}
.hv5-tone-btn:hover { border-color: var(--hv5-rim-2); color: var(--hv5-text); }
.hv5-tone-btn.on {
  background: var(--hv5-teal-glow); border-color: var(--hv5-teal-rim);
  color: var(--hv5-teal-text);
}

/* Action bar */
.hv5-action-bar {
  padding: 14px 20px;
  border-top: 1px solid var(--hv5-rim);
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.hv5-btn-ghost {
  padding: 9px 13px;
  background: transparent;
  border: 1px solid var(--hv5-rim);
  border-radius: 9px;
  color: var(--hv5-text-2);
  font-size: 12.5px; font-weight: 600;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: inherit;
  transition: all .15s;
}
.hv5-btn-ghost:hover { border-color: var(--hv5-rim-2); color: var(--hv5-text); }
.hv5-btn-ghost svg { width: 13px; height: 13px; }
label.hv5-btn-ghost { cursor: pointer; }
.hv5-btn-go {
  flex: 1;
  padding: 12px 20px;
  background: var(--hv5-teal);
  color: #fff;
  border: none; border-radius: 9px;
  font-size: 14.5px; font-weight: 700; letter-spacing: -.01em;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 4px 16px rgba(5,173,163,.22);
  text-decoration: none;
  font-family: inherit;
  transition: all .15s;
  max-width: unset;
}
.hv5-btn-go:hover {
  background: var(--hv5-teal-d); transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(5,173,163,.32); color: #fff;
}
.hv5-btn-go:disabled, .hv5-btn-go.disabled {
  opacity: .35; cursor: not-allowed; transform: none; box-shadow: none;
}
.hv5-btn-go svg { width: 16px; height: 16px; }

/* Output panel */
.hv5-output-body {
  flex: 1; overflow-y: auto;
  display: flex; flex-direction: column;
  min-height: 300px;
  background: radial-gradient(ellipse 70% 45% at 50% 30%, rgba(5,173,163,.04) 0%, transparent 100%);
}

/* Zero state */
.hv5-zero {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 28px 20px; gap: 16px;
}
.hv5-zero-icon {
  width: 52px; height: 52px;
  background: var(--hv5-teal-glow);
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
}
.hv5-zero-icon svg { width: 26px; height: 26px; color: var(--hv5-teal); }
.hv5-zero-title { font-size: 15px; font-weight: 600; color: var(--hv5-text-2); }
.hv5-zero-sub {
  font-size: 13px; color: var(--hv5-text-3);
  max-width: 300px; line-height: 1.6;
}
.hv5-zero-preview {
  width: 100%; max-width: 340px;
  background: var(--hv5-ink-2);
  border: 1px dashed var(--hv5-rim-2);
  border-radius: 11px;
  padding: 12px;
  display: flex; flex-direction: column; gap: 7px;
  margin-top: 4px;
}
.hv5-zp {
  display: block; padding: 7px 11px;
  border-left: 2.5px solid; border-radius: 0 6px 6px 0;
  font-size: 12px; color: var(--hv5-text-2);
  text-align: left; line-height: 1.5;
}
.hv5-zp.low  { border-color: var(--hv5-g); }
.hv5-zp.med  { border-color: var(--hv5-y); background: var(--hv5-y-s); }
.hv5-zp.high { border-color: var(--hv5-r); background: var(--hv5-r-s); }
.hv5-zt {
  display: inline-block; font-size: 9.5px; font-weight: 700;
  padding: 2px 6px; border-radius: 4px; margin-right: 5px; letter-spacing: .04em;
}
.hv5-zt.low  { background: var(--hv5-g-s); color: var(--hv5-g-t); }
.hv5-zt.med  { background: var(--hv5-y-s); color: var(--hv5-y-t); }
.hv5-zt.high { background: var(--hv5-r-s); color: var(--hv5-r-t); }

/* Loading */
.hv5-loading {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 40px 20px; text-align: center;
}
.hv5-spinner {
  width: 52px; height: 52px;
  border: 2px solid rgba(15,43,38,.08);
  border-top-color: var(--hv5-teal);
  border-right-color: var(--hv5-teal-d);
  border-radius: 50%;
  animation: hv5spin 1.1s linear infinite;
  margin-bottom: 22px;
}
@keyframes hv5spin { to { transform: rotate(360deg); } }
.hv5-load-status {
  font-size: 15px; font-weight: 600;
  color: var(--hv5-text); margin-bottom: 5px;
  transition: opacity .25s;
}
.hv5-load-status.fade { opacity: 0; }
.hv5-load-sub { font-size: 12.5px; color: var(--hv5-text-3); }

/* Sentences */
.hv5-sentences { padding: 18px 20px 12px; }
.hv5-sent {
  font-size: 15.5px;
  line-height: 1.78;
  color: var(--hv5-text);
  position: relative;
  transition: background .2s;
}
.hv5-sent.low {
  padding: 2px 0 2px 14px;
  border-left: 2px solid rgba(34,197,94,.40);
  margin-bottom: 10px;
}
.hv5-sent.med {
  padding: 10px 14px;
  border-left: 2.5px solid var(--hv5-y);
  background: rgba(245,158,11,.10);
  border-radius: 0 10px 10px 0;
  margin-bottom: 10px;
}
.hv5-sent.high {
  padding: 10px 14px;
  border-left: 3px solid var(--hv5-r);
  background: rgba(239,68,68,.08);
  border-radius: 0 10px 10px 0;
  margin-bottom: 10px;
}
.hv5-para-group { margin-bottom: 18px; }
.hv5-para-group:last-child { margin-bottom: 0; }
.hv5-para-group .hv5-sent { margin-bottom: 2px; }
.hv5-para-group .hv5-sent.med,
.hv5-para-group .hv5-sent.high { margin-bottom: 8px; }
.hv5-sent-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 6px;
  font-size: 10px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
}
.hv5-sent.low .hv5-sent-head { display: none; }
.hv5-sent-tag { display: inline-flex; align-items: center; gap: 5px; }
.hv5-sent-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.hv5-sent.low  .hv5-sent-tag { color: var(--hv5-g-t); } .hv5-sent.low  .hv5-sent-dot { background: var(--hv5-g); }
.hv5-sent.med  .hv5-sent-tag { color: var(--hv5-y-t); } .hv5-sent.med  .hv5-sent-dot { background: var(--hv5-y); }
.hv5-sent.high .hv5-sent-tag { color: var(--hv5-r-t); } .hv5-sent.high .hv5-sent-dot { background: var(--hv5-r); }
.hv5-rewrite-btn {
  display: none; padding: 4px 10px;
  background: var(--hv5-ink-3); color: var(--hv5-text-2);
  border: 1px solid var(--hv5-rim-2); border-radius: 6px;
  font-family: inherit; font-size: 11px; font-weight: 600;
  cursor: pointer; align-items: center; gap: 4px;
  text-transform: none; letter-spacing: 0;
  transition: all .15s;
}
.hv5-rewrite-btn:hover {
  background: var(--hv5-teal-glow); color: var(--hv5-teal-text);
  border-color: var(--hv5-teal-rim);
}
.hv5-rewrite-btn svg { width: 10px; height: 10px; }
.hv5-sent.med .hv5-rewrite-btn,
.hv5-sent.high .hv5-rewrite-btn { display: inline-flex; }
.hv5-sent-text { color: var(--hv5-text); display: block; }
.hv5-sent.rewriting { pointer-events: none; }
.hv5-sent.rewriting .hv5-sent-text { opacity: .35; }
.hv5-sent.rewriting .hv5-sent-tag { opacity: .4; }
.hv5-spin-indicator {
  display: none; align-items: center; gap: 5px;
  font-size: 10.5px; color: var(--hv5-teal-text);
  font-weight: 600; text-transform: none; letter-spacing: 0;
}
.hv5-sent.rewriting .hv5-spin-indicator { display: inline-flex; }
.hv5-sent.rewriting .hv5-rewrite-btn { display: none !important; }
.hv5-mspin {
  width: 10px; height: 10px;
  border: 1.5px solid rgba(5,173,163,.2);
  border-top-color: var(--hv5-teal);
  border-radius: 50%;
  animation: hv5spin .8s linear infinite;
}
@keyframes hv5sentFlash {
  0%   { background: rgba(52,211,153,.28); }
  100% { background: transparent; }
}
.hv5-sent.low.flash { animation: hv5sentFlash .9s ease-out forwards; }

/* Pills + actions */
.hv5-out-pills { display: flex; align-items: center; gap: 6px; flex: 1; padding: 0 12px; }
.hv5-ohp {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600;
  padding: 3px 8px; border-radius: 100px;
  border: 1px solid; transition: opacity .3s;
}
.hv5-ohp.low  { background: var(--hv5-g-s); color: var(--hv5-g-t); border-color: rgba(52,211,153,.22); }
.hv5-ohp.med  { background: var(--hv5-y-s); color: var(--hv5-y-t); border-color: rgba(251,191,36,.22); }
.hv5-ohp.high { background: var(--hv5-r-s); color: var(--hv5-r-t); border-color: rgba(248,113,113,.22); }
.hv5-ohp.zero { opacity: .25; }
.hv5-ohp svg { width: 9px; height: 9px; }

.hv5-out-legend {
  padding: 11px 20px;
  border-top: 1px solid var(--hv5-rim);
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  font-size: 12px; background: var(--hv5-ink-2); flex-shrink: 0;
}
.hv5-ol-label { color: var(--hv5-text-3); font-weight: 600; }
.hv5-ol-item {
  display: inline-flex; align-items: center; gap: 5px; color: var(--hv5-text-2);
}
.hv5-ol-bar { width: 12px; height: 3px; border-radius: 100px; }
.hv5-ol-bar.low { background: var(--hv5-g); }
.hv5-ol-bar.med { background: var(--hv5-y); }
.hv5-ol-bar.high { background: var(--hv5-r); }
.hv5-out-actions {
  padding: 12px 20px; border-top: 1px solid var(--hv5-rim);
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap; flex-shrink: 0;
}
.hv5-out-btn {
  padding: 8px 13px; background: transparent; color: var(--hv5-text-2);
  border: 1px solid var(--hv5-rim); border-radius: 8px;
  font-family: inherit; font-size: 12.5px; font-weight: 600;
  cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  transition: all .15s;
}
.hv5-out-btn:hover {
  border-color: var(--hv5-teal-rim); color: var(--hv5-text);
  background: var(--hv5-teal-glow);
}
.hv5-out-btn svg { width: 12px; height: 12px; }
.hv5-out-btn.primary {
  background: var(--hv5-teal-glow); color: var(--hv5-teal-text);
  border-color: var(--hv5-teal-rim);
}
.hv5-out-btn.primary:hover { background: rgba(5,173,163,.22); }
.hv5-out-btn.urgent {
  background: rgba(248,113,113,.1);
  border-color: rgba(248,113,113,.3);
  color: var(--hv5-r-t);
}
.hv5-out-btn.urgent:hover {
  background: rgba(248,113,113,.18); border-color: rgba(248,113,113,.45);
}
.hv5-rwa-progress { display: none; align-items: center; gap: 7px; font-size: 12px; color: var(--hv5-teal-text); font-weight: 600; }
.hv5-rwa-progress.on { display: flex; }
.hv5-rwa-progress .hv5-mspin { width: 13px; height: 13px; border-width: 2px; }

/* Confidence card */
.hv5-confidence-wrap { margin: 20px 0 0; display: none; }
.hv5-confidence-wrap.show { display: block; }
.hv5-confidence-card {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 24px 32px;
  display: flex; align-items: center; gap: 0;
  box-shadow: 0 4px 24px rgba(0,0,0,.14), 0 1px 4px rgba(0,0,0,.08);
}
.hv5-cc-left {
  flex: 1; display: flex; flex-direction: column; gap: 16px;
  padding-right: 32px;
}
.hv5-cc-det-row { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.hv5-cc-det-item {
  display: flex; align-items: center; gap: 10px;
  opacity: 0; transform: translateY(5px);
  transition: opacity .35s ease, transform .35s ease;
}
.hv5-cc-det-item.revealed { opacity: 1; transform: translateY(0); }
.hv5-cc-det-name {
  font-size: 15.5px; font-weight: 700; color: #111827; letter-spacing: .01em;
}
.hv5-cc-dot {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: background .3s;
}
.hv5-cc-dot.human  { background: #22C55E; }
.hv5-cc-dot.likely { background: #F59E0B; }
.hv5-cc-dot.ai     { background: #EF4444; }
.hv5-cc-dot svg { width: 13px; height: 13px; color: #fff; stroke-width: 2.8; }
.hv5-cc-dot.sm { width: 22px; height: 22px; }
.hv5-cc-dot.sm svg { width: 10px; height: 10px; }
.hv5-cc-legend { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hv5-cc-legend-label {
  font-size: 11.5px; font-weight: 700; color: #9CA3AF;
  letter-spacing: .06em; text-transform: uppercase;
}
.hv5-cc-legend-item {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13.5px; font-weight: 500; color: #374151;
}
.hv5-cc-divider {
  width: 1px; background: #E5E7EB; align-self: stretch;
  flex-shrink: 0; margin: 0 32px;
}
.hv5-cc-right { display: flex; align-items: center; gap: 24px; flex-shrink: 0; }
.hv5-cc-likely { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.hv5-cc-likely-word {
  font-size: 10.5px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: #9CA3AF;
}
.hv5-cc-likely-pct {
  font-size: 24px; font-weight: 800; letter-spacing: -.02em;
  line-height: 1.1; color: #22C55E;
  font-variant-numeric: tabular-nums;
  transition: color .4s;
}
.hv5-cc-gauge-wrap { position: relative; width: 160px; height: 96px; flex-shrink: 0; }
.hv5-cc-gauge-svg { width: 160px; height: 96px; display: block; }
.hv5-cc-gauge-nums {
  position: absolute; bottom: 0; left: 0; right: 0;
  display: flex; flex-direction: column; align-items: center;
  pointer-events: none; padding-bottom: 2px;
}
.hv5-cc-gauge-pct {
  font-size: 32px; font-weight: 800; color: #111827;
  letter-spacing: -.025em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.hv5-cc-gauge-lbl {
  font-size: 12px; font-weight: 700; color: #22C55E;
  letter-spacing: .04em; text-transform: uppercase;
  margin-top: 2px; transition: color .4s;
}

/* Hire banner */
.hv5-hire-wrap { margin: 16px 0 0; display: none; }
.hv5-hire-wrap.show { display: block; }
.hv5-hire-card {
  background: linear-gradient(135deg, #FFF8F0 0%, #FFF1E0 50%, #FFE9CC 100%);
  border: 1px solid var(--hv5-amber-rim);
  border-radius: 14px;
  padding: 18px 26px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  position: relative; overflow: hidden;
  box-shadow: 0 4px 16px rgba(245,158,66,.10);
}
.hv5-hire-card::before {
  content:''; position:absolute; top:-50px; right:-50px;
  width:180px; height:180px;
  background: radial-gradient(circle, rgba(245,158,66,.18) 0%, transparent 70%);
  pointer-events: none;
}
.hv5-hire-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--hv5-amber) 0%, #FFB366 100%);
  border: 1px solid rgba(245,158,66,.45);
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; position: relative; z-index: 1;
}
.hv5-hire-icon svg { width: 21px; height: 21px; color: #FFFFFF; }
.hv5-hire-copy { flex: 1; min-width: 220px; position: relative; z-index: 1; }
.hv5-hire-title { font-size: 14.5px; font-weight: 700; margin-bottom: 2px; color: var(--hv5-text); }
.hv5-hire-sub { font-size: 12.5px; color: var(--hv5-text-2); }
.hv5-hire-cta {
  padding: 10px 18px; background: var(--hv5-amber); color: #1A1208;
  border-radius: 8px;
  font-size: 13px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none;
  position: relative; z-index: 1;
  transition: all .15s;
}
.hv5-hire-cta:hover { transform: translateY(-1px); color: #1A1208; }
.hv5-hire-cta svg { width: 13px; height: 13px; }

/* Toast */
.hv5-toast-wrap {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
  z-index: 999; pointer-events: none;
}
.hv5-toast {
  background: #FFFFFF;
  border: 1px solid var(--hv5-teal-rim);
  border-radius: 11px;
  padding: 11px 16px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 10px 28px rgba(15,43,38,.18);
  transform: translateY(110%); opacity: 0;
  transition: transform .28s cubic-bezier(.16,1,.3,1), opacity .28s;
  pointer-events: auto;
}
.hv5-toast.on { transform: translateY(0); opacity: 1; }
.hv5-toast-icon {
  width: 22px; height: 22px;
  background: var(--hv5-teal); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.hv5-toast-icon svg { width: 11px; height: 11px; color: #fff; }
.hv5-toast-text { font-size: 13.5px; font-weight: 500; color: var(--hv5-text); }

/* Responsive */
@media (max-width: 1100px) {
  .hv5-wrap { grid-template-columns: 1fr; }
  .hv5-panel { min-height: 420px; }
  .hv5-confidence-card { flex-wrap: wrap; }
  .hv5-cc-left { padding-right: 0; }
  .hv5-cc-divider { display: none; }
  .hv5-cc-right {
    width: 100%; justify-content: center;
    padding-top: 16px; border-top: 1px solid #E5E7EB;
    margin-top: 8px;
  }
}
@media (max-width: 768px) {
  .hv5-section h1.hv5-h1 { font-size: 26px; }
  .hv5-tone-btn { font-size: 11px; padding: 4px 10px; }
}

/* Hide the old analysis sidebar / disclaimer / output-elements that the
   v5 design replaces. They stay in the DOM for legacy JS but should not
   render. The marketing sections below the tool are unaffected. */
.hv5-section .essayWriterBodyWrapper,
.hv5-section .analysesWrap,
.hv5-section .humanizerDisclaimer { display: none !important; }