:root {
  color-scheme: light;
  --ink: #202331;
  --muted: #667085;
  --line: #e4e7ec;
  --soft: #f7f8fb;
  --paper: #ffffff;
  --accent: #355c7d;
  --accent-2: #3f8f88;
  --warn: #b85c38;
  --danger: #9f2a2a;
  --ok: #267057;
}

* {
  box-sizing: border-box;
}

body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
  background: #f2f4f7;
  color: var(--ink);
}

.site-header {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding: 34px 44px 24px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.site-header.compact {
  padding-bottom: 30px;
}

.brand {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 8px;
}

h1, h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: 32px;
  line-height: 1.25;
}

h2 {
  font-size: 19px;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

nav {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: flex-end;
  flex-wrap: wrap;
}

nav a {
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  padding: 9px 12px;
  border-radius: 6px;
  background: #fff;
  white-space: nowrap;
}

nav a.active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 6px 14px rgba(53, 92, 125, 0.16);
}

.workflow-nav {
  gap: 7px;
  flex-wrap: nowrap;
}

.workflow-nav a.nav-step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-step-index {
  color: #98a2b3;
  font-size: 10px;
  font-weight: 800;
}

.workflow-arrow {
  color: #8b97a3;
  font-size: 18px;
  font-weight: 700;
}

.account-slot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  white-space: nowrap;
}

.account-login,
.account-logout {
  border: 0;
  background: transparent;
  color: #d8e4e9;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
}

.account-logout {
  color: #9fb0bb;
  padding: 0 0 0 4px;
}

.account-name {
  font-size: 12px;
  font-weight: 700;
}

.auth-main {
  max-width: 620px;
  padding-top: 56px;
  padding-bottom: 64px;
}

.auth-intro {
  max-width: 600px;
  margin: 0 auto 22px;
  text-align: center;
}

.auth-intro h1 {
  margin-top: 8px;
}

.auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.auth-single-grid {
  grid-template-columns: minmax(0, 1fr);
}

.auth-panel {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 28px;
}

.auth-panel[hidden] {
  display: none;
}

.auth-panel label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-size: 13px;
  font-weight: 700;
}

.auth-panel input {
  min-height: 42px;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  padding: 9px 11px;
  color: var(--ink);
  font: inherit;
}

.auth-panel button {
  margin-top: 5px;
}

.auth-switch-copy {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.auth-text-button {
  display: inline;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-2);
  font: inherit;
  font-weight: 700;
  box-shadow: none;
}

.auth-text-button:hover {
  background: transparent;
  color: var(--accent);
  text-decoration: underline;
}

.auth-status {
  min-height: 24px;
  margin: 18px auto 0;
  text-align: center;
}

main {
  flex: 1 0 auto;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px;
}

.home-main {
  max-width: 1500px;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(420px, 1.05fr) minmax(380px, 0.95fr) minmax(260px, .68fr);
  gap: 18px;
  margin-bottom: 18px;
}

.hero-copy,
.hero-report,
.home-platform-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 10px 24px rgba(30, 42, 62, 0.04);
}

.hero-copy h2 {
  font-size: 34px;
  line-height: 1.22;
  max-width: 720px;
}

.hero-copy p {
  font-size: 15px;
}

.report-window {
  border: 1px solid #d7dce2;
  border-radius: 8px;
  overflow: hidden;
  background: #3f474b;
}

.report-top {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 14px;
  color: #fff;
  background: #2f3336;
}

.report-top span {
  color: #55d19a;
  font-weight: 900;
}

.report-top b {
  background: #56bd8f;
  border-radius: 999px;
  padding: 3px 12px;
}

.report-page {
  width: 78%;
  min-height: 360px;
  margin: 18px auto 26px;
  background: #fff;
  padding: 42px 44px;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
}

.report-title-line,
.report-meta-line {
  height: 16px;
  border-radius: 999px;
  background: #d0d5dd;
  margin: 0 auto 16px;
}

.report-title-line {
  width: 76%;
  height: 24px;
}

.report-meta-line {
  width: 56%;
}

.report-score-demo {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 34px 0 18px;
}

.report-score-demo strong {
  color: var(--accent);
  font-size: 38px;
}

.report-score-demo span {
  font-weight: 800;
  color: var(--warn);
}

.report-score-demo.low-risk-demo span {
  color: var(--ok);
}

.low-risk-demo + .demo-bars i {
  background: linear-gradient(90deg, var(--ok), #79b8a9);
}

.demo-bars {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.demo-bars i {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #3f8f88, #f08a18, #d92d20);
}

.demo-text {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  margin-top: 18px;
}

.demo-text p {
  margin: 0;
}

mark {
  padding: 1px 3px;
  border-radius: 3px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 10px 24px rgba(30, 42, 62, 0.04);
}

.primary-card {
  border-color: #b9d9d4;
  background: linear-gradient(180deg, #ffffff 0%, #f4fbfa 100%);
}

.product-card h2 {
  font-size: 25px;
}

.card-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 16px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(53, 92, 125, 0.16);
}

.secondary-link {
  background: #edf2f7;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}

.top-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.strip-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(30, 42, 62, 0.04);
}

.strip-card span {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: var(--accent);
  font-weight: 800;
  margin-bottom: 12px;
}

.strip-card strong,
.strip-card p {
  display: block;
  margin: 0;
}

.strip-card strong {
  font-size: 16px;
}

.strip-card p {
  margin-top: 8px;
  font-size: 13px;
}

.hero-grid, .two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.85fr);
  gap: 18px;
  margin-bottom: 18px;
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  margin-bottom: 18px;
  box-shadow: 0 10px 24px rgba(30, 42, 62, 0.04);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.eyebrow {
  display: block;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.badge {
  border: 1px solid #b9d9d4;
  color: var(--accent-2);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  background: #f0faf8;
}

textarea {
  width: 100%;
  min-height: 250px;
  resize: vertical;
  border: 1px solid #cfd5df;
  border-radius: 6px;
  padding: 14px;
  color: var(--ink);
  font: 14px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  outline: none;
}

textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(53, 92, 125, 0.12);
}

button {
  border: 0;
  background: var(--accent);
  color: #fff;
  padding: 11px 16px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(53, 92, 125, 0.16);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

button.secondary {
  background: #edf2f7;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(53, 92, 125, 0.18);
}

button.secondary:hover {
  box-shadow: 0 8px 16px rgba(30, 42, 62, 0.08);
}

button:disabled {
  cursor: wait;
  opacity: .65;
  transform: none;
}

.text-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
}

.upload-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2fr auto;
  gap: 12px;
  align-items: center;
  border: 1px dashed #b9c2d0;
  border-radius: 8px;
  padding: 14px;
  background: #fbfcfd;
  margin-bottom: 12px;
}

.upload-box input {
  width: 100%;
}

.upload-box p {
  margin: 4px 0 0;
  font-size: 13px;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0;
}

.meta-grid label {
  display: grid;
  gap: 7px;
  color: #424858;
  font-weight: 800;
  font-size: 13px;
}

.meta-grid label.wide {
  grid-column: 1 / -1;
}

.meta-grid span {
  color: var(--danger);
}

.meta-grid small {
  color: var(--muted);
  font-weight: 600;
}

.meta-grid input {
  width: 100%;
  border: 1px solid #cfd5df;
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--ink);
  font: 14px/1.4 inherit;
  outline: none;
}

.meta-grid input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(53, 92, 125, 0.12);
}

.section-divider {
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 16px;
}

.section-divider h2 {
  font-size: 17px;
}

.upload-preview {
  margin: 12px 0;
}

.preview-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px 8px 0 0;
  background: #fbfcfd;
  padding: 12px 14px;
}

.preview-head span {
  color: var(--muted);
  font-size: 12px;
}

.upload-preview .figure-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  padding: 14px;
  background: #fff;
}

.upload-preview .figure-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--soft);
  margin: 0;
}

.upload-preview .figure-card img {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: contain;
}

.upload-preview .figure-caption {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  margin-top: 8px;
}

.upload-preview .docx-document {
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  padding: 14px;
  background: #fff;
  max-height: 460px;
  overflow: auto;
}

.upload-preview .docx-document p {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.8;
  text-indent: 2em;
}

.upload-preview .inline-figure {
  margin: 12px auto;
  text-align: center;
}

.upload-preview .inline-figure img {
  display: block;
  max-width: 100%;
  max-height: 240px;
  object-fit: contain;
  margin: 0 auto;
}

.upload-preview .docx-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 12px;
  line-height: 1.5;
}

.upload-preview .docx-table td {
  border: 1px solid var(--line);
  padding: 7px 8px;
  vertical-align: top;
}

.upload-preview .docx-table tr:first-child td {
  background: #f6f8fb;
  font-weight: 700;
}

.toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

.hint {
  font-size: 13px;
  color: var(--muted);
}

.score-panel {
  min-height: 360px;
}

.score-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  align-items: center;
}

.score {
  font-size: 58px;
  font-weight: 850;
  color: var(--accent);
}

.score-level {
  font-weight: 800;
  color: var(--muted);
}

.score-scale {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 11px;
  color: var(--muted);
}

.score-scale span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  padding: 7px 3px;
  border-right: 1px solid var(--line);
  white-space: nowrap;
}

.score-scale span:last-child {
  border-right: 0;
}

.score-scale i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.scale-green { background: #2f9e44; }
.scale-yellow { background: #f2c94c; }
.scale-orange { background: #f08a18; }
.scale-red { background: #d92d20; }

.meter {
  height: 18px;
  border-radius: 999px;
  background: #eef1f5;
  overflow: hidden;
}

.meter span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #2f9e44 0%, #2f9e44 20%, #f2c94c 20%, #f2c94c 50%, #f08a18 50%, #f08a18 80%, #d92d20 80%, #d92d20 100%);
  transition: width .2s ease;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.facts div {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  background: var(--soft);
}

.facts strong, .facts span {
  display: block;
}

.facts span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.mini-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.side-action-stack {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.side-action-stack button,
.side-action-stack .button-link {
  width: 100%;
  min-height: 40px;
}

.side-action-stack button.secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}

.side-action-stack button.secondary:hover {
  box-shadow: 0 8px 16px rgba(30, 42, 62, 0.08);
}

.humanizer-output-panel {
  align-self: start;
  overflow: hidden;
}

.humanizer-output-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.humanizer-output-heading h2 {
  margin: 0;
}

.flow-mode-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid #c8d7e2;
  border-radius: 5px;
  background: #f4f7fa;
  color: #526170;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.flow-mode-badge.has-baseline {
  border-color: #a8d8c9;
  background: #edf8f4;
  color: #23745f;
}

.aigc-comparison {
  margin: 16px -22px 18px;
  padding: 17px 22px 18px;
  border-top: 1px solid #d9e1e7;
  border-bottom: 1px solid #d9e1e7;
  background: #f7fafb;
}

.comparison-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.comparison-title strong {
  font-size: 14px;
}

.comparison-title span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.comparison-values {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.aigc-comparison.no-baseline .comparison-values {
  grid-template-columns: minmax(0, 1fr);
}

.aigc-comparison.no-baseline .before-value,
.aigc-comparison.no-baseline .comparison-arrow {
  display: none;
}

.aigc-comparison.no-baseline .after-value {
  text-align: left;
}

.comparison-value {
  min-width: 0;
}

.comparison-value span,
.comparison-value strong,
.comparison-value small {
  display: block;
}

.comparison-value span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.comparison-value strong {
  margin: 3px 0 1px;
  color: #22384b;
  font-size: 36px;
  line-height: 1.1;
}

.comparison-value small {
  color: var(--muted);
  font-size: 12px;
}

.after-value {
  text-align: right;
}

.after-value strong {
  color: var(--accent-2);
}

.comparison-arrow {
  color: #8c99a6;
  font-size: 26px;
  line-height: 1;
  text-align: center;
}

.comparison-delta {
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px solid #dfe6eb;
  color: #596774;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.aigc-comparison.is-improved .comparison-delta,
.aigc-comparison.is-improved .after-value strong {
  color: #23745f;
}

.aigc-comparison.is-increased .comparison-delta,
.aigc-comparison.is-increased .after-value strong {
  color: #c24132;
}

.humanizer-output-panel #rewrittenText {
  min-height: 360px;
  font-family: "Times New Roman", "Songti SC", STSong, serif;
  font-size: 15px;
  line-height: 1.8;
}

.humanizer-output-panel #rewriteNote {
  min-height: 20px;
  margin: 0 0 9px;
}

#rewriteBtn {
  min-width: 210px;
}

.platform-stats {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 14px;
}

.home-platform-card {
  padding: 22px;
}

.home-platform-stats {
  margin-top: 0;
  height: 100%;
  background: linear-gradient(180deg, #fbfcfd, #ffffff);
}

.platform-stats-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}

.platform-stats-head strong {
  color: var(--ink);
}

.platform-stats-head span {
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 800;
}

.platform-stat-row,
.platform-format-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  font-size: 13px;
}

.platform-stat-row span,
.platform-format-row span {
  color: var(--muted);
}

.platform-stat-row b,
.platform-format-row b {
  color: var(--ink);
  text-align: right;
}

.platform-format-row {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
  margin-top: 6px;
  padding-top: 10px;
}

.platform-format-row b {
  text-align: left;
  color: var(--accent);
}

.status-ok {
  color: var(--ok) !important;
}

.highlight-box {
  white-space: pre-wrap;
  line-height: 1.8;
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px;
}

.risk-mark {
  padding: 1px 2px;
  border-radius: 3px;
}

.risk-red {
  color: #d92d20;
  background: rgba(217, 45, 32, 0.09);
  border-bottom: 2px solid #d92d20;
}

.risk-orange {
  color: #b85c00;
  background: rgba(240, 138, 24, 0.11);
  border-bottom: 2px solid #f08a18;
}

.risk-yellow {
  color: #7a5b00;
  background: rgba(242, 201, 76, 0.22);
  border-bottom: 2px solid #f2c94c;
}

.risk-green {
  color: #1f7a3a;
  background: rgba(47, 158, 68, 0.10);
  border-bottom: 2px solid #2f9e44;
}

.segment-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.segment {
  border: 1px solid var(--line);
  border-left: 4px solid var(--warn);
  border-radius: 6px;
  padding: 12px;
}

.segment strong {
  color: var(--warn);
}

.segment.risk-red {
  border-left-color: #d92d20;
  color: var(--ink);
  background: #fff;
  border-bottom: 0;
}

.segment.risk-orange {
  border-left-color: #f08a18;
  color: var(--ink);
  background: #fff;
  border-bottom: 0;
}

.segment.risk-yellow {
  border-left-color: #f2c94c;
  color: var(--ink);
  background: #fff;
  border-bottom: 0;
}

.segment.risk-green {
  border-left-color: #2f9e44;
  color: var(--ink);
  background: #fff;
  border-bottom: 0;
}

.report-card {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid var(--line);
  background: var(--soft);
  border-radius: 8px;
  padding: 18px;
}

.copy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.scoring-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.copy-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--soft);
}

.copy-grid p {
  margin-bottom: 0;
}

.score-standard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.admin-main {
  width: min(1380px, calc(100% - 48px));
  margin: 34px auto 60px;
}

.admin-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.admin-heading h1 {
  margin: 5px 0 6px;
  font-size: 30px;
}

.admin-heading p {
  margin: 0;
  color: var(--muted);
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.admin-stat-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fff;
}

.admin-stat-grid span,
.admin-stat-grid small {
  display: block;
  color: var(--muted);
}

.admin-stat-grid strong {
  display: block;
  margin: 10px 0 7px;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
}

.admin-table-panel {
  padding: 0;
  overflow: hidden;
}

.admin-table-head {
  align-items: end;
  padding: 20px 22px 15px;
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.admin-search {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.admin-search input {
  width: 230px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.admin-table-panel > .hint {
  margin: 12px 22px 0;
}

.admin-table-wrap {
  overflow-x: auto;
  padding: 14px 22px 22px;
}

.admin-user-table {
  width: 100%;
  min-width: 1040px;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-user-table th,
.admin-user-table td {
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.admin-user-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  background: var(--soft);
}

.admin-user-table td:first-child strong,
.admin-user-table td:first-child small {
  display: block;
}

.admin-user-table td:first-child small {
  margin-top: 4px;
  color: var(--muted);
}

.admin-role,
.admin-status {
  display: inline-block;
  padding: 4px 7px;
  border-radius: 999px;
  background: #eef2f6;
  color: #5b6878;
  font-size: 12px;
}

.admin-role.is-admin {
  background: #e2f5ef;
  color: #168b72;
}

.admin-status.is-active {
  background: #e5f6ed;
  color: #258657;
}

.admin-empty {
  padding: 30px !important;
  color: var(--muted);
  text-align: center !important;
}

.risk-standard {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 4px solid #98a2b3;
  border-radius: 7px;
  padding: 16px;
  background: #fff;
}

.risk-standard span,
.risk-standard strong {
  display: block;
}

.risk-standard span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.risk-standard strong {
  margin-top: 6px;
  color: var(--ink);
  font-size: 23px;
}

.risk-standard p {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.65;
}

.risk-standard-green { border-top-color: #2f9e44; }
.risk-standard-yellow { border-top-color: #d4a90f; }
.risk-standard-orange { border-top-color: #f08a18; }
.risk-standard-red { border-top-color: #d92d20; }

.steps, .pricing {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.pricing {
  grid-template-columns: repeat(5, 1fr);
}

.steps div, .pricing div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  padding: 16px;
}

.pricing .featured {
  border-color: #9fc4bd;
  background: #f2faf8;
}

.pricing strong, .pricing span, .pricing b {
  display: block;
}

.pricing span {
  color: var(--muted);
  font-size: 12px;
  min-height: 42px;
  margin: 8px 0;
}

.pricing b {
  color: var(--accent);
  font-size: 20px;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  background: var(--soft);
  margin: 10px 0;
}

summary {
  cursor: pointer;
  font-weight: 800;
}

.disclaimer {
  border-left: 4px solid var(--accent);
  padding-left: 14px;
  margin-top: 18px;
}

.prose {
  font-size: 15px;
}

.detailed {
  grid-template-columns: repeat(5, 1fr);
}

@media (max-width: 900px) {
  .site-header, .hero-grid, .two-col, .steps, .pricing, .top-strip, .copy-grid, .product-grid, .home-hero, .upload-preview .figure-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    display: block;
    padding: 24px;
  }

  nav {
    margin-top: 18px;
    justify-content: flex-start;
  }

  .hero-grid, .two-col {
    display: grid;
  }

  .score-row, .upload-box, .meta-grid {
    grid-template-columns: 1fr;
  }

  .toolbar, .mini-actions, .report-card, .card-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* 2026 report-style workspace */
.site-header,
.site-header.compact {
  display: flex;
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 68px;
  padding: 0 30px;
  align-items: center;
  gap: 22px;
  background: #142331;
  border-bottom: 1px solid #0c1822;
  box-shadow: 0 7px 20px rgba(14, 29, 42, .18);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 224px;
  color: #fff;
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  object-fit: contain;
}

.brand-wordmark {
  display: grid;
  gap: 2px;
  line-height: 1;
}

.brand-wordmark strong {
  color: #f6fbfa;
  font-size: 18px;
  font-weight: 780;
}

.brand-wordmark small {
  color: #89a5ad;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-origin {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-2);
}

.submission-guidance {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}

.submission-guidance strong {
  color: var(--ink);
}

.submission-guidance ul,
.service-notes {
  padding-left: 20px;
  line-height: 1.8;
  color: var(--muted);
}

.submission-guidance li,
.service-notes li {
  margin: 6px 0;
}

.submission-guidance a {
  color: var(--accent);
}

.prose[id] {
  scroll-margin-top: 90px;
}

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

.site-header .primary-nav {
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  align-self: stretch;
  gap: 4px;
  margin-left: 4px;
  margin-top: 0;
}

.site-header .primary-nav a {
  display: inline-flex;
  align-items: center;
  position: relative;
  min-height: 68px;
  padding: 0 17px;
  color: #b9c7ce;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 14px;
  font-weight: 650;
  transition: color .16s ease, background .16s ease;
}

.site-header .primary-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, .045);
}

.site-header .primary-nav a.active {
  color: #fff;
  background: rgba(255, 255, 255, .075);
  box-shadow: none;
}

.site-header .primary-nav a.active::after {
  content: "";
  position: absolute;
  left: 17px;
  right: 17px;
  bottom: 0;
  height: 3px;
  background: #4db594;
}

.header-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  margin-left: auto;
  padding: 0 12px;
  color: #c4d5d8;
  border: 1px solid rgba(126, 170, 173, .22);
  border-radius: 5px;
  background: rgba(7, 18, 27, .28);
  font-size: 12px;
  white-space: nowrap;
}

.header-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4db594;
  box-shadow: 0 0 0 3px rgba(77, 181, 148, .13);
}

.account-slot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 10px;
  color: #c4d5d8;
  border-left: 1px solid rgba(126, 170, 173, .22);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.account-slot-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: #315d74;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

.workspace-main {
  max-width: 1800px;
  padding: 24px 24px 36px;
}

.workspace-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 18px;
}

.workspace-intro h1 {
  font-size: 28px;
}

.workspace-intro p {
  margin: 7px 0 0;
  font-size: 14px;
}

.workspace-assurance {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.workspace-assurance span {
  border: 1px solid #d6dde4;
  border-radius: 4px;
  background: #fff;
  color: #4f5968;
  padding: 7px 10px;
  font-size: 12px;
  white-space: nowrap;
}

.workbench-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 28%);
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}

.workbench-grid .panel {
  margin-bottom: 0;
}

.submission-panel {
  padding: 22px;
}

.workspace-main > section { min-width: 0; }
.workspace-help { color: #315d74; font-size: 13px; white-space: nowrap; }
.workspace-main .workspace-task-bar { margin: 0 0 18px; padding: 12px 0; background: transparent; gap: 16px; grid-template-columns: minmax(160px, 1.4fr) repeat(4, minmax(0, 1fr)) auto; }
.workspace-main .eyebrow { letter-spacing: 0; }
.workspace-task-bar strong { font-size: 13px; }
.workspace-task-bar > div > span { font-size: 11px; }
.workspace-task-bar strong span { display: inline; }
.workspace-details { margin: 14px 0 0; padding: 12px 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
.workspace-details summary { cursor: pointer; color: #344054; font-size: 13px; font-weight: 700; line-height: 1.5; }
.workspace-details summary span { margin-left: 8px; font-weight: 400; color: var(--muted); }
.workspace-details summary:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 4px; }
.metadata-details { margin: 0 0 14px; padding: 0 0 12px; border-top: 0; border-bottom: 1px solid var(--line); }
.metadata-details .meta-grid { margin-top: 12px; }
.workspace-main .submission-guidance { border-top: 0; padding-top: 0; margin: 12px 0 0; }
.workspace-main .submission-guidance p { font-size: 13px; margin: 0; }
.editor-label { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; margin: 8px 0; font-size: 13px; font-weight: 700; }
.editor-label span { color: var(--muted); font-size: 12px; font-weight: 400; }
.workspace-main textarea { font-family: ui-sans-serif, system-ui, "PingFang SC", sans-serif; font-size: 14px; line-height: 1.85; }
.workspace-main .upload-dropzone.compact-dropzone { display: grid; grid-template-columns: auto minmax(0, 1fr); text-align: left; align-items: center; gap: 5px 16px; min-height: 108px; padding: 16px; margin-bottom: 14px; }
.workspace-main .compact-dropzone .upload-label { margin: 0; }
.workspace-main .compact-dropzone strong { font-size: 14px; }
.workspace-main .compact-dropzone p { font-size: 12px; margin: 2px 0 0; }
.workspace-main .compact-dropzone .selected-file { grid-column: 1 / -1; margin-top: 4px; font-size: 12px; }
.workspace-main .consent-box { margin: 0 0 14px; padding: 12px 14px; }
.workspace-main .consent-box label { font-size: 12px; }
.workspace-main .consent-box p { margin: 5px 0 0 26px; font-size: 11px; }
.workspace-main .content-field-heading { margin-top: 0; margin-bottom: 10px; }
.workspace-main .submission-textarea { min-height: 370px; }
.workspace-main .process-panel { order: 2; padding: 15px 18px; margin: 0; }
.workspace-main .process-panel .eyebrow { margin-top: 16px; }
.workspace-main .result-panel { order: -1; }
.workspace-main .result-panel .summary { min-height: 0; margin: 12px 0; }
.workspace-main .guest-order-grid { gap: 12px; }
.humanizer-workbench { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
.humanizer-workbench > .panel { margin-bottom: 0; min-width: 0; }
.humanizer-input-panel, .humanizer-workbench .humanizer-output-panel { display: flex; flex-direction: column; align-self: stretch; padding: 22px; }
.humanizer-input-panel .panel-head { align-items: center; margin-bottom: 16px; }
.humanizer-input-panel .panel-head small { display: block; color: var(--muted); margin-top: 6px; font-size: 12px; }
.humanizer-workbench #sourceText, .humanizer-workbench #rewrittenText { min-height: 340px; flex: 1 0 340px; }
.humanizer-workbench .humanizer-output-heading { min-height: 44px; }
.humanizer-workbench .aigc-comparison { margin-top: 10px; margin-bottom: 12px; padding-top: 14px; padding-bottom: 14px; }
.humanizer-workbench .comparison-value strong { font-size: 34px; }
.humanizer-workbench .aigc-comparison.no-baseline .after-value { display: flex; align-items: center; gap: 16px; }
.humanizer-workbench .aigc-comparison.no-baseline .after-value > span, .humanizer-workbench .aigc-comparison.no-baseline .comparison-delta { display: none; }
.humanizer-workbench .side-action-stack { margin-top: 14px; }
.humanizer-workbench .side-action-stack button { padding: 10px; }
.post-polish-review { margin-bottom: 24px; }
.post-polish-review .two-col { margin-top: 14px; margin-bottom: 0; }
.academic-notice { border-left: 3px solid #b54735; background: #fff9f7; }
.warning-keyword { color: #a62f21; font-weight: 700; }
.academic-boundary { border-top: 1px solid #ebdcd5; padding-top: 12px; }
.workspace-academic-notice { padding: 16px 20px; margin: 18px 0 0; border-top: 1px solid #e9ddd8; border-bottom: 1px solid #e9ddd8; }
.workspace-academic-notice h2 { font-size: 15px; }
.workspace-academic-notice p { margin: 7px 0; font-size: 13px; color: #4c5565; }
.workspace-academic-notice a { color: #315d74; font-size: 12px; }
.brand-lockup:focus-visible { outline: 2px solid #7bd8c2; outline-offset: 4px; border-radius: 4px; }

.service-line {
  display: grid;
  grid-template-columns: 82px minmax(190px, auto) 1fr;
  align-items: center;
  gap: 14px;
  min-height: 46px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 0 -26px 20px;
  padding: 0 26px;
  color: var(--muted);
  font-size: 13px;
}

.service-line strong {
  color: var(--ink);
}

.service-line em {
  font-style: normal;
  text-align: right;
}

.field-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin: 14px 0 10px;
}

.field-heading > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.field-heading small {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #355c7d;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.content-field-heading {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.upload-dropzone {
  position: relative;
  display: flex;
  min-height: 210px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px dashed #aeb9c6;
  border-radius: 7px;
  background: #fafbfc;
  padding: 26px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.upload-dropzone:hover,
.upload-dropzone.is-dragging {
  border-color: #3f8f88;
  background: #f4faf8;
  box-shadow: 0 0 0 3px rgba(63, 143, 136, .1);
}

.upload-dropzone.is-loading {
  border-color: #d4a72c;
  background: #fffaf0;
  cursor: progress;
}

.upload-dropzone.is-loaded {
  border-color: #61a48e;
  background: #f4faf7;
}

.upload-dropzone.is-error {
  border-color: #c84b4b;
  background: #fff7f7;
}

.upload-dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.upload-dropzone strong {
  font-size: 17px;
  color: var(--ink);
}

.upload-dropzone p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.upload-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 4px;
  background: #355c7d;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.selected-file {
  margin-top: 8px;
  color: #3f7f72;
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.compact-dropzone {
  min-height: 165px;
  margin-bottom: 12px;
}

.paste-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  color: #84909c;
  font-size: 12px;
}

.paste-divider::before,
.paste-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.submission-textarea {
  min-height: 280px;
  font-family: "Times New Roman", "Songti SC", STSong, serif;
  font-size: 15px;
  line-height: 1.8;
}

.submission-actions {
  align-items: center;
}

.submission-actions #analyzeBtn {
  min-width: 220px;
}

.status-line {
  min-height: 22px;
  margin-bottom: 0;
}

.workbench-side {
  position: sticky;
  top: 76px;
  display: grid;
  gap: 18px;
}

.process-panel,
.result-panel {
  padding: 20px;
}

.process-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.process-list li {
  position: relative;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 11px;
  min-height: 67px;
  color: #8a949f;
}

.process-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 29px;
  bottom: 1px;
  left: 14px;
  width: 1px;
  background: #d8dee5;
}

.process-list li > span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e5e9ed;
  color: #7a8590;
  font-size: 12px;
  font-weight: 800;
}

.process-list li strong,
.process-list li small {
  display: block;
}

.process-list li strong {
  margin-top: 2px;
  color: #5c6672;
  font-size: 14px;
}

.process-list li small {
  margin-top: 3px;
  font-size: 12px;
}

.process-list li.active > span {
  background: #355c7d;
  color: #fff;
}

.process-list li.active strong {
  color: #355c7d;
}

.process-list li.complete > span {
  background: #2f8a6f;
  color: #fff;
}

.process-list li.complete strong {
  color: #2f705f;
}

.result-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.result-heading > span {
  color: var(--muted);
  font-size: 12px;
}

.result-panel .score-row {
  grid-template-columns: 100px 1fr;
  margin-top: 12px;
}

.result-panel .score {
  font-size: 48px;
}

.result-panel .summary {
  min-height: 70px;
  font-size: 13px;
}

.result-panel .facts {
  gap: 7px;
}

.result-panel .facts div {
  padding: 9px;
}

.side-action-stack button:disabled {
  cursor: not-allowed;
}

.review-panel {
  padding: 24px;
}

.review-note {
  color: var(--muted);
  font-size: 12px;
}

.review-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr);
  gap: 16px;
  align-items: start;
}

.document-highlight {
  min-height: 320px;
  max-height: 720px;
  overflow: auto;
  background: #fff;
  font-family: "Times New Roman", "Songti SC", STSong, serif;
  font-size: 15px;
  line-height: 2;
}

.review-segments {
  max-height: 720px;
  overflow: auto;
  margin-top: 0;
  padding-right: 2px;
}

.upload-preview .docx-table {
  table-layout: fixed;
}

.upload-preview .docx-table td {
  word-break: break-word;
  overflow-wrap: anywhere;
}

@media (max-width: 980px) {
  .humanizer-workbench { grid-template-columns: 1fr; }
  .workspace-main .workspace-task-bar { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .site-header,
  .site-header.compact {
    padding: 0 20px;
    gap: 12px;
  }

  .brand-lockup {
    min-width: 180px;
  }

  .brand-wordmark small,
  .header-status {
    display: none;
  }

  .site-header .primary-nav {
    flex: 1 1 auto;
    min-width: 0;
    margin-left: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .site-header .primary-nav::-webkit-scrollbar {
    display: none;
  }

  .site-header .primary-nav a {
    padding: 0 12px;
  }

  .workbench-grid,
  .review-layout {
    grid-template-columns: 1fr;
  }

  .scoring-grid,
  .score-standard-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .workbench-side {
    position: static;
  }
}

@media (max-width: 760px) {
  .site-header .workflow-nav > a[href="/"], .workflow-nav .nav-step-index { display: none; }
  .site-header .primary-nav.workflow-nav a { padding: 0 8px; }
  .workspace-main .upload-dropzone.compact-dropzone { grid-template-columns: 1fr; gap: 8px; }
  .workspace-main .compact-dropzone .upload-label { justify-self: start; }
  .humanizer-input-panel, .humanizer-workbench .humanizer-output-panel { padding: 18px; }
  .humanizer-workbench #sourceText, .humanizer-workbench #rewrittenText { min-height: 300px; flex-basis: 300px; }
  .workspace-main .workspace-task-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .humanizer-workbench .aigc-comparison { margin-left: -18px; margin-right: -18px; padding-left: 18px; padding-right: 18px; }
  .workspace-academic-notice { padding: 14px; }
  .site-header,
  .site-header.compact {
    display: flex;
    min-height: 56px;
    padding: 0 12px;
    gap: 10px;
    overflow: hidden;
  }

  .brand-lockup {
    flex: 0 0 auto;
    min-width: 0;
    gap: 7px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .brand-wordmark strong {
    font-size: 15px;
  }

  .brand-wordmark small,
  .header-status,
  .account-slot {
    display: none;
  }

  .site-header .primary-nav {
    flex: 1 1 auto;
    min-width: 0;
    margin-left: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .site-header .primary-nav::-webkit-scrollbar {
    display: none;
  }

  .site-header .primary-nav a {
    min-height: 56px;
    padding: 0 11px;
    font-size: 12px;
  }

  .site-header .primary-nav a.active::after {
    left: 11px;
    right: 11px;
  }

  .workspace-main {
    padding: 16px 12px 28px;
  }

  .workspace-intro,
  .field-heading,
  .service-line {
    display: block;
  }

  .workspace-assurance {
    justify-content: flex-start;
    margin-top: 12px;
  }

  .scoring-grid,
  .score-standard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workspace-intro h1 {
    font-size: 23px;
  }

  .submission-panel {
    padding: 18px;
  }

  .service-line {
    margin: 0 -18px 18px;
    padding: 12px 18px;
  }

  .service-line strong,
  .service-line em {
    display: block;
    margin-top: 4px;
    text-align: left;
  }

  .field-heading small {
    display: block;
    margin-top: 8px;
    text-align: left;
  }

  .upload-dropzone {
    min-height: 180px;
    padding: 20px 14px;
  }

  .submission-actions #analyzeBtn {
    min-width: 0;
  }
}

@media (max-width: 520px) {
  .scoring-grid,
  .score-standard-grid {
    grid-template-columns: 1fr;
  }

  .humanizer-output-heading {
    align-items: flex-start;
  }

  .aigc-comparison {
    margin-right: -18px;
    margin-left: -18px;
    padding-right: 18px;
    padding-left: 18px;
  }

  .comparison-value strong {
    font-size: 29px;
  }

  .comparison-values {
    grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr);
    gap: 6px;
  }

  #rewriteBtn {
    min-width: 0;
  }
}

/* Guest checkout, privacy notices, and legal pages */
.privacy-commitment {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 13px 30px;
  border-bottom: 1px solid #b9d8ce;
  background: #f3faf7;
  color: #244a42;
}

.privacy-commitment-home {
  position: sticky;
  top: 68px;
  z-index: 45;
  box-shadow: 0 7px 18px rgba(21, 61, 52, .08);
}

.privacy-commitment-bottom {
  margin-top: 32px;
  border-top: 1px solid #b9d8ce;
  border-bottom: 0;
}

.privacy-commitment-bottom + .site-footer {
  margin-top: 0;
}

.privacy-commitment-copy {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.privacy-commitment-copy > div {
  min-width: 0;
}

.privacy-commitment-copy strong {
  display: block;
  color: #183f36;
  font-size: 15px;
}

.privacy-commitment-copy p {
  max-width: 980px;
  margin: 3px 0 0;
  color: #45665f;
  font-size: 12px;
  line-height: 1.65;
}

.privacy-shield {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border: 1px solid #93c8b8;
  border-radius: 50%;
  background: #fff;
  color: #21745e;
  font-weight: 900;
}

.privacy-actions {
  display: grid;
  flex: 0 0 auto;
  gap: 6px;
  text-align: right;
}

.privacy-actions > span,
.privacy-links > span {
  color: #24705d;
  font-size: 12px;
  font-weight: 800;
}

.privacy-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.privacy-links a {
  color: #315d74;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}

.privacy-links a:hover {
  text-decoration: underline;
}

.privacy-commitment-compact {
  padding-top: 10px;
  padding-bottom: 10px;
  background: #f8fbfa;
}

.privacy-commitment-compact .privacy-commitment-copy p {
  max-width: 1060px;
}

.consent-box {
  margin: 0 0 14px;
  border: 1px solid #cbd8e0;
  border-left: 4px solid #2f8a6f;
  border-radius: 6px;
  background: #f8fbfa;
  padding: 13px 15px 11px;
}

.consent-box label {
  display: grid;
  grid-template-columns: 19px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  color: #283b4a;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.7;
  cursor: pointer;
}

.consent-box input {
  width: 17px;
  height: 17px;
  margin: 3px 0 0;
  accent-color: #2f8a6f;
}

.consent-box a {
  margin: 0 2px;
  color: #2d6684;
  text-decoration: none;
}

.consent-box a:hover {
  text-decoration: underline;
}

.consent-box p {
  margin: 7px 0 0 28px;
  color: #65727e;
  font-size: 12px;
}

.upload-dropzone.is-disabled {
  border-color: #d4d9df;
  background: #f5f6f7;
  color: #8b949d;
  cursor: not-allowed;
  opacity: .72;
  box-shadow: none;
}

.upload-dropzone.is-disabled:hover {
  border-color: #d4d9df;
  background: #f5f6f7;
  box-shadow: none;
}

button:disabled {
  cursor: not-allowed;
  opacity: .58;
}

.guest-order-panel {
  padding: 18px 20px;
  border-top: 3px solid #2f8a6f;
}

.guest-order-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.guest-order-head h2 {
  margin: 2px 0 0;
  font-size: 18px;
}

.guest-order-head > span,
.guest-order-strip > em {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  border: 1px solid #d5dde3;
  border-radius: 4px;
  padding: 3px 8px;
  background: #f5f7f8;
  color: #687580;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.guest-order-head > span.active,
.guest-order-strip > em.active {
  border-color: #a8d4c7;
  background: #edf8f4;
  color: #23745f;
}

.guest-order-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  margin: 14px 0 0;
}

.guest-order-grid > div {
  min-width: 0;
}

.guest-order-grid .wide {
  grid-column: 1 / -1;
}

.guest-order-grid dt,
.guest-order-grid dd {
  margin: 0;
}

.guest-order-grid dt {
  color: #7a8792;
  font-size: 11px;
}

.guest-order-grid dd {
  margin-top: 2px;
  color: #263747;
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.guest-order-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: center;
  margin: 4px -22px 18px;
  padding: 12px 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f8fafb;
}

.guest-order-strip > div {
  min-width: 0;
}

.guest-order-strip span,
.guest-order-strip strong {
  display: block;
}

.guest-order-strip > div > span {
  color: #7b8792;
  font-size: 10px;
}

.guest-order-strip strong {
  margin-top: 2px;
  color: #263747;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.pricing,
.detailed {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pricing small {
  display: block;
  margin-top: 8px;
  color: #5d6d78;
  font-size: 11px;
  font-weight: 700;
}

.pricing-note {
  margin: 14px 0 0;
  color: #63717d;
  font-size: 12px;
  line-height: 1.7;
}

.billing-examples {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.billing-examples div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px 14px;
  background: #f8fafb;
}

.billing-examples span {
  color: #596875;
  font-size: 12px;
}

.billing-examples strong {
  color: #2f6b82;
  white-space: nowrap;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
  margin-top: 32px;
  padding: 20px 30px;
  border-top: 1px solid #25394a;
  background: #142331;
  color: #aebfc7;
}

.site-footer p {
  margin: 0;
  font-size: 12px;
}

.site-footer nav {
  display: flex;
  gap: 18px;
  margin: 0;
}

.site-footer a {
  color: #d5e1e4;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.legal-main {
  width: min(940px, calc(100% - 40px));
  margin: 0 auto;
  padding: 36px 0 10px;
}

.legal-hero {
  margin-bottom: 18px;
  padding: 8px 0 18px;
  border-bottom: 2px solid #243d50;
}

.legal-hero h1 {
  margin: 5px 0 2px;
  font-size: 32px;
}

.legal-hero p {
  margin: 0;
  color: #6b7782;
  font-size: 12px;
}

.policy-callout,
.legal-section {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  padding: 20px 22px;
  margin-bottom: 14px;
}

.policy-callout {
  border-left: 5px solid #2f8a6f;
  background: #f4faf7;
}

.policy-callout strong {
  color: #215e4d;
  font-size: 17px;
}

.policy-callout p,
.legal-section p,
.legal-section li {
  color: #485663;
  font-size: 14px;
  line-height: 1.9;
}

.policy-callout p,
.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section h2 {
  margin: 0 0 10px;
  color: #23394a;
  font-size: 18px;
}

.legal-section ul {
  margin: 0;
  padding-left: 21px;
}

@media (max-width: 1100px) {
  .privacy-commitment {
    align-items: flex-start;
  }

  .privacy-actions,
  .privacy-links {
    justify-content: flex-start;
    text-align: left;
  }

  .privacy-commitment-home {
    position: static;
  }

  .guest-order-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .privacy-commitment,
  .site-footer {
    display: grid;
  }

  .pricing,
  .detailed,
  .billing-examples {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .privacy-commitment {
    padding: 12px 14px;
  }

  .privacy-commitment-compact .privacy-commitment-copy,
  .privacy-commitment-bottom .privacy-commitment-copy {
    flex-direction: column;
    gap: 4px;
  }

  .privacy-commitment-copy p {
    font-size: 11px;
  }

  .privacy-links {
    gap: 10px;
    flex-wrap: wrap;
    white-space: normal;
  }

  .privacy-links > span {
    flex-basis: 100%;
  }

  .consent-box {
    padding: 12px;
  }

  .consent-box p {
    margin-left: 0;
  }

  .guest-order-strip,
  .pricing,
  .detailed,
  .billing-examples {
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding: 18px 14px;
  }

  .site-footer nav {
    gap: 12px;
    flex-wrap: wrap;
  }

  .legal-main {
    width: min(100% - 24px, 940px);
    padding-top: 22px;
  }

  .legal-hero h1 {
    font-size: 25px;
  }

  .policy-callout,
  .legal-section {
    padding: 17px;
  }
}
