/* Final layout layer: loaded last so responsive fixes cannot be overridden. */
@media (min-width: 751px) {
  .stat-grid {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    margin-bottom: 28px;
  }

  .dashboard-tools {
    /* These panels need the full content width. At the dashboard's capped
       width, two columns leave neither panel enough room for its controls. */
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .promo-card,
  .dashboard-plans,
  .humanize-dashboard-card {
    min-width: 0;
    overflow: hidden;
  }
}

@media (min-width: 751px) and (max-width: 1200px) {
  .promo-card {
    grid-template-columns: minmax(0, 1fr) 88px;
    grid-template-rows: auto auto auto;
    align-content: center;
    column-gap: 12px;
    row-gap: 12px;
    padding: 18px;
  }

  .promo-card > div {
    grid-column: 1 / -1;
  }

  .promo-card label,
  .promo-card input {
    width: 100%;
    min-width: 0;
  }

  .promo-card .dark-button {
    width: 88px;
    height: 42px;
    padding-inline: 8px;
  }

  .promo-card .form-error {
    position: static;
    grid-column: 1 / -1;
    margin: -3px 0 0;
  }

  .dashboard-plans {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-content: center;
  }

  .dashboard-plans > div {
    grid-column: 1 / -1;
  }

  .dashboard-plans > button {
    min-width: 0;
    padding-inline: 7px;
  }
}

.score-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 145px;
  height: 145px;
  background: none !important;
  box-shadow: none;
}

.score-ring::before {
  content: none;
}

.score-donut {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform: rotate(-90deg);
  fill: none;
  stroke-linecap: round;
}

.score-track,
.score-progress {
  fill: none;
  stroke-width: 13;
}

.score-track {
  stroke: rgba(255, 255, 255, .72);
}

.score-progress {
  stroke: #14a875;
  filter: drop-shadow(0 4px 6px rgba(20, 168, 117, .2));
}

.preview-score.similarity .score-progress {
  stroke: #8656dc;
  filter: drop-shadow(0 4px 6px rgba(134, 86, 220, .2));
}

.score-ring strong {
  position: relative;
  z-index: 1;
}

.report-badges .red-flag-badge {
  border: 2px solid #ef3340 !important;
  background: #ffe4e6 !important;
  color: #a70f1b !important;
  box-shadow: 0 7px 18px rgba(220, 38, 38, .15);
}

.report-badges .red-flag-badge b {
  color: #df1423 !important;
}

@media (max-width: 750px) {
  .score-ring {
    width: 108px;
    height: 108px;
  }

  .score-track,
  .score-progress {
    stroke-width: 12;
  }
}

@media (max-width: 390px) {
  .score-ring {
    width: 96px;
    height: 96px;
  }
}

.referral-card{display:grid;grid-template-columns:minmax(190px,.75fr) minmax(230px,1.25fr);gap:13px 20px;align-items:center;background:linear-gradient(135deg,#e7f5ec,#f8fbf9);border:1px solid #cce3d5;border-radius:10px;padding:18px;min-height:112px}.referral-card h3{font:600 20px var(--serif);margin:6px 0 4px}.referral-card p{margin:0;color:#65776e;font-size:10px;line-height:1.45}.referral-link{display:flex;gap:8px}.referral-link input{min-width:0;flex:1;height:42px;border:1px solid #bdd8c9;border-radius:6px;background:#fff;padding:0 12px;color:#315248;font:500 11px var(--mono)}.referral-link .dark-button{flex:none}.referral-stats{grid-column:1/-1;display:flex;gap:22px;padding-top:11px;border-top:1px solid #cfe3d7;color:#62736b;font-size:10px}.referral-stats b{color:var(--green);font-size:14px;margin-right:3px}
@media(max-width:750px){.referral-card{grid-template-columns:1fr;padding:17px 15px}.referral-stats{grid-column:auto;justify-content:space-between;gap:8px}.referral-link{display:grid;grid-template-columns:minmax(0,1fr) auto}}

.humanize-stat-card{border-color:#c8ded3;background:linear-gradient(135deg,#f4fbf7,#fff)}.humanize-stat-card>small button{border:0;background:none;padding:0;color:var(--green);font:700 9px var(--sans);cursor:pointer}.humanize-stat-card>small button:hover{text-decoration:underline}.humanize-dashboard-card{display:grid;grid-template-columns:auto minmax(220px,1fr) auto auto;align-items:center;gap:16px;background:linear-gradient(135deg,#0b5647,#123e35);color:#fff;border-radius:11px;padding:20px 22px;overflow:hidden;position:relative}.humanize-dashboard-card:after{content:"";position:absolute;width:190px;height:190px;border:1px solid rgba(255,255,255,.1);border-radius:50%;right:-95px;top:-110px;pointer-events:none}.humanize-dashboard-icon{display:grid;place-items:center;width:45px;height:45px;border-radius:50%;background:rgba(201,231,143,.16);color:#d9f29d}.humanize-dashboard-icon svg{width:20px}.humanize-dashboard-card .kicker{color:#acd1c2}.humanize-dashboard-card .kicker span{background:#c8e78a}.humanize-dashboard-card h3{font:600 22px var(--serif);margin:7px 0 4px}.humanize-dashboard-card>div>p:last-child{margin:0;color:#bdd4cb;font-size:10px;line-height:1.45}.humanize-dashboard-prices{display:flex;gap:15px}.humanize-dashboard-prices span{display:grid;gap:2px;min-width:84px}.humanize-dashboard-prices b{color:#d9f29d;font:600 19px var(--serif)}.humanize-dashboard-prices small{color:#b8cec5;font-size:8px;white-space:nowrap}.humanize-dashboard-card>.dark-button{position:relative;z-index:1;background:#fff;color:var(--green);min-height:42px;padding-inline:15px}.promo-card>div>p:last-child{margin:4px 0 0;color:var(--muted);font-size:9px;line-height:1.35}
@media(max-width:1000px){.humanize-dashboard-card{grid-template-columns:auto minmax(0,1fr) auto}.humanize-dashboard-prices{grid-column:2}.humanize-dashboard-card>.dark-button{grid-column:3;grid-row:1/3}}
@media(max-width:750px){.humanize-stat-card{grid-column:1/-1}.humanize-dashboard-card{grid-template-columns:auto minmax(0,1fr);padding:18px 16px}.humanize-dashboard-prices{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,1fr);gap:7px}.humanize-dashboard-prices span{min-width:0;border:1px solid rgba(255,255,255,.13);border-radius:7px;padding:8px}.humanize-dashboard-prices small{white-space:normal}.humanize-dashboard-card>.dark-button{grid-column:1/-1;grid-row:auto;width:100%}}

.humanize-history-actions{display:flex;align-items:center;gap:16px}.humanization-results-list{display:grid;gap:16px;margin-top:29px}.humanization-result-card{background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden}.humanization-result-card>header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:19px 22px;border-bottom:1px solid var(--line);background:#fbfcfa}.humanization-result-card h2{font:600 19px var(--serif);margin:0 0 4px}.humanization-result-card header p{margin:0;color:var(--muted);font-size:9.5px}.humanization-comparison{display:grid;grid-template-columns:minmax(0,1fr) 34px minmax(0,1fr);align-items:stretch;padding:19px;gap:8px}.comparison-arrow{display:grid;place-items:center;color:#719085;font-size:20px}.comparison-file{display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-rows:auto 1fr;align-items:center;gap:8px 12px;min-height:126px;padding:17px;border:1px solid #dce5df;border-radius:9px;background:#fafcfa}.comparison-file.after{border-color:#bad9ca;background:#eff8f3}.comparison-file>p{grid-column:1/-1;margin:0;color:#829089;font:500 8px var(--mono);letter-spacing:1px}.comparison-file-icon{display:grid;place-items:center;width:39px;height:43px;border-radius:7px;background:#e6f1e9;color:var(--green)}.comparison-file.after .comparison-file-icon{background:#d9eddf}.comparison-file-icon svg{width:18px}.comparison-file>div{min-width:0}.comparison-file b{display:block;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.comparison-file small{display:block;color:#7f8d86;font-size:9px;margin-top:4px}.comparison-file>a,.comparison-file>button{justify-self:end;min-height:35px;border:1px solid #c9d8d0;border-radius:5px;background:#fff;color:var(--green);padding:0 11px;font:600 9px var(--sans);display:inline-flex;align-items:center;gap:7px;text-decoration:none;cursor:pointer}.comparison-file>a.primary{background:var(--green);border-color:var(--green);color:#fff}.comparison-file.unavailable,.comparison-file.pending{grid-template-columns:minmax(0,1fr) auto}.comparison-file.unavailable>div,.comparison-file.pending>div{grid-column:1}.comparison-file.unavailable>a,.comparison-file.pending>button{grid-column:2;grid-row:2}.humanization-results-list>.data-empty{background:#fff;border:1px solid var(--line);border-radius:11px}.humanization-results-list>.data-empty .dark-button{width:max-content;margin-top:8px}
.list-order{display:flex;align-items:center;gap:6px;width:max-content;margin:-15px 0 15px auto;color:#718079;font:600 10px var(--sans)}.list-order span{color:var(--green);font-size:14px}.section-order{margin:6px 0 0;color:#829089;font:600 9px var(--mono);letter-spacing:.4px;text-transform:uppercase}
@media(max-width:750px){.humanize-history-actions{align-items:flex-end;flex-direction:column;gap:7px}.humanization-result-card>header{align-items:flex-start;padding:16px}.humanization-comparison{grid-template-columns:1fr;padding:14px}.comparison-arrow{transform:rotate(90deg);min-height:22px}.comparison-file{grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto 1fr auto}.comparison-file>a,.comparison-file>button{grid-column:1/-1;justify-self:stretch;justify-content:center}.comparison-file.unavailable,.comparison-file.pending{grid-template-columns:1fr}.comparison-file.unavailable>a,.comparison-file.pending>button{grid-column:1;grid-row:auto}.list-order{margin:-8px 0 12px}.library-pagination{justify-content:space-between;flex-wrap:wrap}.library-pagination span{order:-1;width:100%;text-align:center}}

/* Humanisation tracking is a single responsive status surface. */
.humanize-job{display:block;padding:19px}.humanize-job>header{display:flex;align-items:center;justify-content:space-between;gap:16px}.humanize-job>header>.status{flex:0 0 auto}.humanize-stages{list-style:none;margin:17px 0;padding:0;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));position:relative}.humanize-stages:before{content:"";position:absolute;top:14px;left:8%;right:8%;height:1px;background:#dbe5df}.humanize-stages li{position:relative;display:grid;justify-items:center;align-content:start;gap:6px;color:#89958f;z-index:1;text-align:center;min-width:0}.humanize-stages li>i{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#fff;border:1px solid #cedbd4;color:#718079;font:600 9px var(--mono);font-style:normal}.humanize-stages li>span{min-width:0}.humanize-stages li.done>i{background:var(--green);border-color:var(--green);color:#fff}.humanize-stages li.active>i{background:#fff5dc;border-color:#d9a34b;color:#9a6718;box-shadow:0 0 0 4px rgba(217,163,75,.12)}.humanize-stages li.failed>i{background:#fbe9e5;border-color:#d98777;color:#a44d40}.humanize-stages b,.humanize-stages small{display:block}.humanize-stages b{font-size:9px;margin-top:1px}.humanize-stages small{font-size:7.5px;color:#89958f;margin-top:2px;line-height:1.3}.humanize-job-actions{justify-content:flex-start;border-top:1px solid var(--line);padding-top:14px}.humanize-job-actions .free-ai-check{background:#f0eafa;border-color:#d6c8ef;color:#6448af}.humanize-job-actions .free-ai-check svg{width:14px}.humanize-job-actions .free-ai-check.pending{min-height:34px;border:1px solid #d6c8ef;border-radius:5px;padding:0 11px;display:inline-flex;align-items:center;font:600 10px var(--sans)}.humanize-job-actions .free-ai-check.complete{background:#6448af;color:#fff}.humanize-provider-note{margin-top:11px!important}.humanize-failure{margin-top:11px!important}
@media(max-width:600px){.humanize-history{margin-top:30px}.humanize-history .section-head{align-items:flex-start;gap:12px}.humanize-history-actions{flex:0 0 auto;align-items:flex-end}.humanize-history-actions .link-button{white-space:nowrap}.humanize-job{padding:15px}.humanize-job>header{align-items:flex-start}.humanize-job-main .doc-icon{flex:0 0 auto}.humanize-job-main b{max-width:55vw}.humanize-job-main small{line-height:1.45}.humanize-job>header>.status{font-size:7.5px;margin-top:4px}.humanize-stages{grid-template-columns:1fr;gap:10px;margin:15px 0}.humanize-stages:before{top:14px;bottom:14px;left:14px;right:auto;width:1px;height:auto}.humanize-stages li{grid-template-columns:28px minmax(0,1fr);justify-items:start;align-items:start;text-align:left}.humanize-stages li>span{padding-top:1px}.humanize-stages b{font-size:10px}.humanize-stages small{font-size:8.5px}.humanize-job-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%}.humanize-job-actions a,.humanize-job-actions button,.humanize-job-actions .free-ai-check.pending{width:100%;justify-content:center;text-align:center;min-width:0}.humanize-job-actions .primary,.humanize-job-actions .free-ai-check{grid-column:1/-1}.humanize-provider-note{line-height:1.5}.humanize-file-picker{display:grid;grid-template-columns:auto minmax(0,1fr)}.humanize-file-picker .outline-button{grid-column:1/-1}.humanize-consent{font-size:9.5px}.humanize-requirements{overflow:hidden}}
.report-score-grid.single{grid-template-columns:minmax(0,1fr)}
.humanized-documents-title{align-items:flex-end;gap:22px}.humanized-documents-title>div{min-width:0}.humanized-documents-title .section-order{margin-bottom:0}.humanized-documents-page .humanize-history{margin-top:28px}
@media(max-width:600px){.humanized-documents-title{align-items:flex-start;flex-direction:column;gap:16px}.humanized-documents-title .outline-button{width:100%;justify-content:center}.humanized-documents-page .humanize-history{margin-top:22px}}

/* Compact mobile page hierarchy, visible free-check progress, and swipeable plans. */
@media(max-width:750px){.page-title-row{margin-bottom:24px}.page-title-row h1{font:700 29px/1.12 var(--sans);letter-spacing:-.9px;margin:9px 0 7px}.page-title-row p:not(.kicker){font-size:11px;line-height:1.5}.humanize-requirements h2{font-size:22px}.credit-balance-strip{grid-template-columns:1fr 1fr;gap:8px;margin:-3px 0 24px}.credit-balance-strip article{padding:12px 11px;gap:9px}.credit-balance-strip .stat-icon{width:29px;height:29px}.credit-balance-strip b{font-size:21px}.credit-balance-strip em{font-size:8px}.plan-section{margin-top:25px}.plan-section-heading{display:block;margin-bottom:11px}.plan-section-heading h2{font:700 20px/1.2 var(--sans);letter-spacing:-.4px}.plan-section-heading>p{font-size:10px;text-align:left;margin-top:5px}.billing-page .plan-options{display:grid;grid-template-columns:repeat(3,minmax(158px,1fr));overflow-x:auto;scroll-snap-type:x mandatory;padding:1px 14px 10px 1px;margin-right:-14px}.billing-page .humanisation-plan-options{grid-template-columns:repeat(4,minmax(158px,1fr))}.billing-page .plan-options article{scroll-snap-align:start;padding:18px 16px;min-height:177px}.billing-page .plan-options strong{font-size:31px}.billing-page .plan-options button{width:100%;justify-content:center}.humanisation-plan-section{padding-top:24px}.paynow-note{margin-top:12px}}

.humanize-job-actions .free-ai-check.pending{gap:9px;min-height:48px;padding:7px 12px;background:#f0eafa;border:1px solid #bca8e3;box-shadow:0 5px 14px rgba(100,72,175,.12);color:#513793}.humanize-job-actions .free-ai-check.pending>i,.free-check-spinner{width:17px;height:17px;flex:0 0 17px;border:2px solid rgba(100,72,175,.24);border-top-color:#6448af;border-radius:50%;animation:free-check-spin .8s linear infinite}.humanize-job-actions .free-ai-check.pending>span{display:grid;gap:2px;text-align:left}.humanize-job-actions .free-ai-check.pending b{font-size:10px}.humanize-job-actions .free-ai-check.pending small{color:#715aa8;font-size:8.5px}.free-check-spinner{display:inline-block;border-color:rgba(255,255,255,.35);border-top-color:currentColor}@keyframes free-check-spin{to{transform:rotate(360deg)}}
@media(max-width:600px){.humanize-job-actions .free-ai-check.pending{grid-column:1/-1;justify-content:flex-start!important;padding:9px 13px}.humanize-job-actions .free-ai-check.pending>span{text-align:left}}

/* One percentage variable paints the bar and is updated with the displayed value. */
.humanize-progress{--humanization-progress:0%;margin-top:16px;padding:12px 13px;border:1px solid #dce7e1;border-radius:8px;background:#f8fbf9}.humanize-progress-copy{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:8px}.humanize-progress-copy b{font-size:10px}.humanize-progress-copy span{color:#687871;font:600 9px var(--mono);text-align:right}.humanize-progress-track{height:7px;border-radius:99px;background:linear-gradient(90deg,var(--green) 0 var(--humanization-progress),#dfe9e4 var(--humanization-progress) 100%)}
