:root {
  color-scheme: light;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #202820;
  background: #f6f7f3;
  font-synthesis: none;
  --ink: #202820;
  --muted: #5d665b;
  --line: #dce1d6;
  --green: #205441;
  --light: #e7f0e3;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
button:focus-visible, a:focus-visible, textarea:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
.sr-only, .skip:not(:focus) { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; inset: 10px auto auto 10px; padding: 10px; z-index: 10; background: white; }

.bar { border-bottom: 1px solid var(--line); background: #fcfcf9; }
.bar-inner, .layout, .footer { width: min(1110px, 100% - 64px); margin-inline: auto; }
.bar-inner { min-height: 72px; display: flex; align-items: center; gap: 32px; }
.wordmark { font-size: 21px; font-weight: 750; letter-spacing: -.04em; text-decoration: none; display: inline-flex; gap: 11px; align-items: center; white-space: nowrap; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; gap: 3px; width: 33px; height: 33px; border-radius: 9px; background: var(--green); }
.brand-mark i { display: block; width: 3px; height: 13px; background: #dbf1cf; border-radius: 8px; }
.brand-mark i:first-child { height: 8px; }
.brand-mark i:last-child { height: 18px; }
.header-links { margin-left: auto; display: flex; gap: 26px; }
.header-links a, .language { text-decoration: none; color: var(--muted); font-size: 14px; }
.header-links a:hover, .language:hover { color: var(--ink); }
.language { border: 1px solid var(--line); padding: 8px 11px; border-radius: 7px; white-space: nowrap; }

.intro { margin-block: clamp(42px, 6vw, 82px) 34px; }
.intro-type { color: var(--green); font-weight: 650; font-size: 14px; letter-spacing: .06em; margin-bottom: 14px; }
.intro h1 { font-size: clamp(38px, 6.3vw, 73px); line-height: 1.1; font-weight: 760; letter-spacing: -.055em; margin: 0; text-wrap: balance; }
.intro p { color: var(--muted); line-height: 1.7; font-size: clamp(16px, 1.7vw, 18px); margin: 17px 0 0; max-width: 69ch; }

.workbench { background: #fff; border: 1px solid var(--line); border-radius: 15px; overflow: hidden; box-shadow: 0 16px 36px #2639220c; }
.tools { display: flex; align-items: stretch; background: #fafbf7; border-bottom: 1px solid var(--line); padding-inline: 20px; gap: 12px; }
.tools a { display: flex; align-items: center; justify-content: center; gap: 9px; border-bottom: 2px solid transparent; padding: 17px 13px 15px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--muted); }
.tools a[aria-current] { border-color: var(--green); color: var(--green); }
.tools a:hover { color: var(--green); }
.tool-icon { position: relative; height: 14px; width: 14px; display: inline-block; flex: none; }
.tool-icon--detector { border: 1.5px solid currentColor; border-radius: 4px; }
.tool-icon--detector::after { position: absolute; top: 5px; left: 2px; right: 2px; border-top: 1px solid currentColor; content: ""; }
.tool-icon--humanizer::before { position: absolute; width: 4px; height: 15px; border: 1px solid currentColor; transform: rotate(39deg); border-radius: 2px; top: -1px; left: 5px; content: ""; }
.tool-icon--plagiarism::before, .tool-icon--plagiarism::after { position: absolute; inset: 0 4px 4px 0; border: 1px solid currentColor; border-radius: 2px; content: ""; }
.tool-icon--plagiarism::after { inset: 4px 0 0 4px; background: #fafbf7; }

.work-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
#job-form { padding: 24px; min-width: 0; }
.editor-top, .editor-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.editor-top { margin-bottom: 12px; font-weight: 650; }
.text-button { background: none; border: none; color: var(--green); padding: 4px 0; font-weight: 650; font-size: 13px; }
.text-button:hover { text-decoration: underline; }
.muted { color: var(--muted); }
textarea { display: block; width: 100%; min-height: 218px; resize: vertical; border: 1px solid var(--line); background: #fcfdfb; color: var(--ink); border-radius: 8px; padding: 15px; line-height: 1.6; font-size: 15px; }
textarea::placeholder { color: #626d60; }
.editor-foot { padding-top: 9px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.submit-row { display: flex; align-items: center; flex-wrap: wrap; gap: 13px; margin-top: 18px; }
.primary, .secondary { padding: 11px 15px; border: 1px solid transparent; border-radius: 8px; font-size: 14px; font-weight: 680; }
.primary { background: var(--green); color: white; }
.primary:hover:not(:disabled) { background: #153c2e; }
.primary:disabled { background: #dbe6d7; color: #50624e; }
.primary span { padding-left: 6px; }
.secondary { background: #fff; border-color: var(--line); color: var(--green); }
.secondary:hover { background: var(--light); }
.access { display: grid; max-width: 310px; gap: 6px; margin-top: 18px; font-size: 13px; }
.access label { font-weight: 680; }
.access small { color: var(--muted); }
.access input, select { width: 100%; border: 1px solid #b9c6b6; background: #fff; border-radius: 6px; padding: 8px 10px; color: var(--ink); }
.feedback { margin: 16px 0 0; font-size: 14px; color: #8c390e; line-height: 1.55; }
.options { margin: 19px 0 0; padding: 10px 13px 13px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
.options legend { padding-inline: 5px; font-weight: 680; }
.selects { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.selects select { margin-top: 5px; }
.checks { display: flex; flex-wrap: wrap; gap: 12px 17px; margin-top: 12px; }
.checks label { display: inline-flex; align-items: center; gap: 5px; }
.checks input { accent-color: var(--green); }

.result-pane { background: #f4f7ef; border-left: 1px solid var(--line); min-width: 0; padding: 24px; display: flex; flex-direction: column; }
.readiness { display: flex; gap: 7px; align-items: center; color: #435540; font-size: 12px; }
.indicator { background: #a47741; height: 8px; width: 8px; border-radius: 50%; }
.indicator[data-ready="true"] { background: #40805b; }
.result-inner { margin-block: 20px 12px; flex: 1; }
.result-pane h2 { font-size: 19px; margin: 0 0 15px; letter-spacing: -.015em; }
.result-empty { display: grid; justify-items: center; text-align: center; place-content: center; min-height: 177px; gap: 11px; padding: 18px; border: 1px dashed #bdc9b8; border-radius: 10px; color: var(--muted); margin: 0; line-height: 1.55; font-size: 14px; }
.report-icon { display: block; width: 29px; height: 35px; position: relative; border: 1.5px solid #527850; border-radius: 6px; background: #eaf2e6; }
.report-icon::after { content: ""; position: absolute; inset: 10px 6px auto; height: 11px; border-block: 1px solid #527850; }
.result-note { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 0; }
.job-state { color: var(--green); font-weight: 680; font-size: 15px; }
.result-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 10px 0; line-height: 1.6; font: inherit; }
.task-report { background: white; border: 1px solid #e0e8db; border-radius: 9px; padding: 13px; max-height: 390px; overflow: auto; }
.metrics { margin: 0; display: grid; gap: 8px; }
.metric { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); padding: 7px 0; }
.metric:last-child { border-bottom: 0; }
.metric dt { font-size: 13px; color: var(--muted); }
.metric dd { font-weight: 700; margin: 0; }
.result-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }

.history { margin: 14px 0 0; padding: 13px 18px; border: 1px solid var(--line); border-radius: 9px; background: #fafbf8; }
summary { cursor: pointer; font-weight: 650; }
.history summary { font-size: 14px; }
.history p { color: var(--muted); font-size: 14px; }
.history-list { padding: 0; margin: 10px 0 0; list-style: none; }
.history-list li { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--line); padding: 8px 0; font-size: 13px; color: var(--muted); }
.reading { max-width: 790px; margin: 52px 0 60px; }
.reading h2, .article h2 { font-size: 25px; margin: 0 0 16px; }
.reading details { border-top: 1px solid var(--line); padding: 14px 0; }
.reading p, .article p { line-height: 1.75; color: var(--muted); }
.reading p { padding-left: 17px; }
.guide-link { display: inline-block; margin-top: 10px; color: var(--green); font-weight: 650; text-underline-offset: 4px; }
.article { max-width: 760px; margin: 37px 0 60px; }
.article section { border-top: 1px solid var(--line); padding: 24px 0; }
.article p { margin: 0; }
.account-form { padding: 24px; margin: 0; }
.account-form .access { max-width: 420px; }
.article-tools, .footer nav { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
.article-tools a, .footer a { font-size: 14px; text-underline-offset: 4px; }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; border-top: 1px solid var(--line); padding-block: 24px 39px; }
.footer p { margin: 5px 0 0; font-size: 13px; color: var(--muted); }

@media (max-width: 720px) {
  .bar-inner, .layout, .footer { width: calc(100% - 32px); }
  .bar-inner { min-height: 61px; gap: 12px; }
  .header-links { gap: 12px; }
  .header-links a, .language { font-size: 12px; }
  .intro { margin-block: 38px 25px; }
  .work-grid { grid-template-columns: 1fr; }
  .result-pane { border-left: 0; border-top: 1px solid var(--line); }
  .tools { padding-inline: 5px; gap: 0; }
  .tools a { flex: 1; padding: 12px 5px; gap: 5px; font-size: 12px; text-align: center; }
  #job-form, .result-pane { padding: 17px; }
  .reading { margin-block: 36px 44px; }
}

@media (max-width: 355px) {
  .bar-inner, .header-links { gap: 8px; }
  .tool-icon { display: none; }
}
