﻿
    :root {
      --bg: #edf3f4;
      --paper: #fffdf8;
      --ink: #102a32;
      --ink-soft: #526a70;
      --line: #c8d5d7;
      --red: #e44f37;
      --red-dark: #ad3020;
      --yellow: #f1d566;
      --green: #2e7864;
      --green-pale: #e8f1ed;
      --blue: #235e7e;
      --shadow: rgba(16, 42, 50, 0.13);
      --ui: "Segoe UI Variable Text", "Microsoft YaHei", "PingFang SC", sans-serif;
      --display: "Bahnschrift", "Microsoft YaHei", "PingFang SC", sans-serif;
      --essay: Georgia, "Times New Roman", serif;
    }
    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; background: var(--bg); }
    body {
      margin: 0; color: var(--ink); font-family: var(--ui);
      background:
        radial-gradient(circle at 86% 8%, rgba(241, 213, 102, 0.2), transparent 24rem),
        linear-gradient(90deg, rgba(16, 42, 50, 0.035) 1px, transparent 1px),
        linear-gradient(rgba(16, 42, 50, 0.035) 1px, transparent 1px), var(--bg);
      background-size: auto, 38px 38px, 38px 38px, auto;
      min-height: 100vh;
    }
    button, input { font: inherit; }
    button { color: inherit; }
    button:focus-visible, a:focus-visible, input:focus-visible, .upload-zone:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
    .site-header { width: min(1200px, calc(100% - 48px)); margin: 0 auto; padding: 24px 0 12px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
    .brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
    .brand-stamp { width: 44px; height: 44px; display: grid; place-items: center; border: 2px solid var(--red); color: var(--red); font-family: var(--display); font-size: 25px; font-weight: 800; transform: rotate(-4deg); box-shadow: inset 0 0 0 2px var(--paper); background: rgba(255, 253, 248, 0.7); }
    .brand-name { display: block; font-family: var(--display); font-size: 20px; font-weight: 800; line-height: 1.05; letter-spacing: 0.06em; }
    .brand-sub { display: block; margin-top: 3px; color: var(--ink-soft); font-size: 11px; letter-spacing: 0.08em; }
    .demo-badge { border: 1px solid var(--ink); background: var(--yellow); padding: 7px 12px 6px; font-size: 12px; font-weight: 700; transform: rotate(1deg); box-shadow: 3px 3px 0 var(--ink); white-space: nowrap; }
    main { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }
    .landing { min-height: calc(100vh - 110px); display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(380px, 0.96fr); align-items: center; gap: clamp(42px, 7vw, 90px); padding: 56px 0 70px; }
    .hero-kicker { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 22px; color: var(--red-dark); font-size: 14px; font-weight: 700; }
    .hero-kicker::before { content: ""; width: 24px; height: 3px; background: var(--red); transform: rotate(-7deg); }
    .hero-title { margin: 0; font-family: var(--display); font-size: clamp(52px, 7.1vw, 92px); font-weight: 780; line-height: 0.99; letter-spacing: -0.055em; }
    .title-line { display: block; }
    .title-marked { position: relative; display: inline-block; }
    .title-marked svg { position: absolute; left: -3%; bottom: -8px; width: 106%; height: 17px; overflow: visible; }
    .title-marked path { fill: none; stroke: var(--red); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
    .title-dot { color: var(--red); }
    .hero-copy { margin: 28px 0 0; max-width: 600px; color: #38545c; font-size: 17px; line-height: 1.8; }
    .hero-promises { display: flex; flex-wrap: wrap; gap: 11px 24px; margin-top: 30px; padding-top: 19px; border-top: 1px solid rgba(16, 42, 50, 0.25); color: var(--ink); font-size: 14px; font-weight: 650; }
    .hero-promises span { display: inline-flex; align-items: center; gap: 8px; }
    .hero-promises span::before { content: ""; width: 7px; height: 7px; background: var(--red); transform: rotate(45deg); }
    .hero-footnote { margin-top: 26px; max-width: 530px; color: var(--ink-soft); font-size: 12px; line-height: 1.65; }
    .upload-shell { position: relative; padding-top: 16px; }
    .upload-tab { position: absolute; z-index: 2; top: 2px; left: 28px; padding: 8px 17px 7px; background: var(--ink); color: var(--paper); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; transform: rotate(-1deg); }
    .upload-card { position: relative; background: var(--paper); border: 1px solid var(--ink); padding: 34px 34px 24px; box-shadow: 14px 16px 0 var(--shadow); }
    .upload-card::after { content: ""; position: absolute; top: -1px; right: -1px; width: 24px; height: 24px; background: linear-gradient(225deg, var(--bg) 49%, var(--line) 50%, var(--paper) 53%); }
    .upload-zone { min-height: 248px; border: 1.5px dashed #84999e; background-color: #fbfaf5; background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 31px, rgba(35, 94, 126, 0.1) 31px, rgba(35, 94, 126, 0.1) 32px); display: grid; place-items: center; padding: 24px; text-align: center; cursor: pointer; transition: background-color 180ms ease, border-color 180ms ease; }
    .upload-zone:hover, .upload-zone.is-dragover { border-color: var(--red); background-color: #fffaf0; }
    .upload-zone.is-dragover { border-style: solid; }
    .upload-hidden { display: none !important; }
    .upload-icon { width: 54px; height: 54px; display: grid; place-items: center; margin: 0 auto 15px; border: 1.5px solid var(--ink); color: var(--red); transform: rotate(-2deg); background: var(--paper); }
    .upload-title { margin: 0; font-family: var(--display); font-size: 20px; font-weight: 760; }
    .upload-hint { display: block; margin-top: 8px; color: var(--ink-soft); font-size: 12px; }
    .file-preview { position: relative; min-height: 248px; overflow: hidden; border: 1px solid var(--line); background: #e8eeed; }
    .file-preview img { width: 100%; height: 248px; object-fit: cover; display: block; }
    .preview-shade { position: absolute; inset: auto 0 0; padding: 22px 14px 12px; color: white; background: linear-gradient(transparent, rgba(10, 28, 34, 0.82)); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .remove-file { position: absolute; top: 10px; right: 10px; width: 31px; height: 31px; border: 1px solid rgba(255,255,255,.7); background: rgba(16,42,50,.82); color: white; cursor: pointer; font-size: 18px; line-height: 1; }
    .form-section { margin-top: 22px; }
    .field-label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; font-size: 12px; font-weight: 700; }
    .field-label small { color: var(--ink-soft); font-size: 11px; font-weight: 500; }
    .type-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
    .type-chip { border: 1px solid var(--line); background: transparent; min-height: 40px; padding: 7px 5px; font-size: 12px; font-weight: 650; cursor: pointer; transition: 140ms ease; }
    .type-chip:hover { border-color: var(--ink); }
    .type-chip.is-selected { background: var(--ink); border-color: var(--ink); color: white; }
    .type-chip small { display: block; margin-top: 2px; font-size: 10px; font-weight: 450; opacity: .68; }
    .primary-button { width: 100%; min-height: 52px; margin-top: 20px; border: 1px solid var(--ink); background: var(--red); color: white; font-family: var(--display); font-size: 17px; font-weight: 760; letter-spacing: 0.04em; cursor: pointer; box-shadow: 5px 5px 0 var(--ink); transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease; }
    .primary-button:hover { background: #d8442e; transform: translate(-1px, -1px); box-shadow: 7px 7px 0 var(--ink); }
    .primary-button:active { transform: translate(4px, 4px); box-shadow: 1px 1px 0 var(--ink); }
    .sample-button { display: block; width: 100%; margin-top: 15px; padding: 3px 0; border: 0; border-bottom: 1px dashed #92a4a7; background: transparent; color: var(--ink-soft); font-size: 12px; cursor: pointer; }
    .sample-button:hover { color: var(--red-dark); border-color: var(--red); }
    .privacy-note { margin: 18px 0 0; padding-left: 12px; border-left: 3px solid var(--yellow); color: var(--ink-soft); font-size: 11px; line-height: 1.6; }
    .report { padding: 42px 0 72px; }
    .report[hidden], .landing[hidden] { display: none; }
    .report-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
    .back-button { display: inline-flex; align-items: center; gap: 9px; border: 0; background: transparent; padding: 8px 0; font-size: 13px; font-weight: 700; cursor: pointer; }
    .back-button::before { content: "←"; color: var(--red); font-size: 18px; }
    .report-mode { display: inline-flex; align-items: center; gap: 9px; color: var(--ink-soft); font-size: 11px; }
    .report-mode::before { content: ""; width: 8px; height: 8px; background: var(--yellow); border: 1px solid var(--ink); transform: rotate(45deg); }
    .report-sheet { border: 1px solid var(--ink); background: var(--paper); box-shadow: 16px 18px 0 var(--shadow); }
    .report-head { display: grid; grid-template-columns: 252px minmax(0, 1fr); gap: 34px; padding: 34px; border-bottom: 1px solid var(--ink); background: linear-gradient(135deg, rgba(241, 213, 102, 0.17), transparent 38%), var(--paper); }
    .score-column { display: flex; flex-direction: column; align-items: center; justify-content: center; border-right: 1px solid var(--line); padding-right: 32px; text-align: center; }
    .score-stamp { width: 176px; height: 176px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 3px double var(--red); border-radius: 50%; color: var(--red-dark); transform: rotate(-4deg); background: rgba(241, 213, 102, 0.13); box-shadow: inset 0 0 0 7px var(--paper), inset 0 0 0 9px rgba(228, 79, 55, 0.4); }
    .score-value { font-family: var(--display); font-size: 66px; font-weight: 780; line-height: 0.9; letter-spacing: -0.04em; }
    .score-max { margin-top: 6px; font-family: var(--display); font-size: 16px; font-weight: 700; }
    .score-caption { margin-top: 14px; color: var(--red-dark); font-family: var(--display); font-size: 12px; font-weight: 760; letter-spacing: 0.14em; }
    .score-range { margin: 22px 0 0; color: var(--ink-soft); font-size: 11px; line-height: 1.6; }
    .score-range strong { color: var(--ink); }
    .report-summary { min-width: 0; }
    .report-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 15px; color: var(--ink-soft); font-size: 12px; }
    .report-meta strong { color: var(--red-dark); }
    .report-title { margin: 0; font-family: var(--display); font-size: clamp(30px, 4vw, 48px); line-height: 1.08; letter-spacing: -0.035em; }
    .report-title span { color: var(--red); }
    .report-lead { margin: 16px 0 0; max-width: 760px; color: #405a62; font-size: 14px; line-height: 1.8; }
    .quick-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 24px; margin-top: 24px; }
    .quick-note { padding: 13px 0 13px 15px; border-left: 3px solid var(--green); background: linear-gradient(90deg, rgba(46, 120, 100, 0.07), transparent 78%); }
    .quick-note.issue { border-left-color: var(--red); background: linear-gradient(90deg, rgba(228, 79, 55, 0.07), transparent 78%); }
    .quick-note b { display: block; margin-bottom: 5px; font-size: 12px; }
    .quick-note p { margin: 0; color: var(--ink-soft); font-size: 11px; line-height: 1.65; }
    .report-content { display: grid; grid-template-columns: 252px minmax(0, 1fr); gap: 34px; padding: 34px; }
    .side-index { align-self: start; position: sticky; top: 20px; padding-right: 32px; border-right: 1px solid var(--line); }
    .side-label { margin: 0 0 16px; color: var(--ink-soft); font-size: 11px; font-weight: 700; }
    .side-nav { display: grid; gap: 2px; }
    .side-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 0; color: var(--ink); text-decoration: none; font-size: 12px; border-bottom: 1px solid transparent; }
    .side-nav a:hover { color: var(--red-dark); border-color: var(--line); }
    .side-nav span { color: var(--red); font-family: var(--display); font-size: 10px; }
    .confidence-box { margin-top: 26px; padding: 14px; border: 1px dashed #9aabad; background: rgba(241, 213, 102, 0.1); }
    .confidence-box strong { display: block; margin-bottom: 6px; font-size: 11px; }
    .confidence-box p { margin: 0; color: var(--ink-soft); font-size: 10px; line-height: 1.65; }
    .report-main { min-width: 0; }
    .section { scroll-margin-top: 20px; }
    .section + .section { margin-top: 48px; }
    .section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
    .section-heading h2 { margin: 0; font-family: var(--display); font-size: 24px; letter-spacing: -0.02em; }
    .section-heading p { margin: 0; color: var(--ink-soft); font-size: 11px; }
    .dimension-list { display: grid; gap: 15px; }
    .dimension { display: grid; grid-template-columns: 112px minmax(80px, 1fr) 50px; align-items: center; gap: 14px; font-size: 12px; }
    .dimension-name { font-weight: 650; }
    .dimension-track { height: 8px; background: #e3eae9; border: 1px solid #c8d3d3; overflow: hidden; }
    .dimension-fill { height: 100%; background: var(--green); transform-origin: left; animation: bar-grow 700ms cubic-bezier(.2,.8,.2,1) both; }
    .dimension:nth-child(2) .dimension-fill { background: var(--red); }
    .dimension:nth-child(3) .dimension-fill { background: var(--blue); }
    .dimension:nth-child(4) .dimension-fill { background: var(--ink); }
    .dimension-score { color: var(--ink-soft); font-family: var(--display); font-size: 11px; text-align: right; }
    .sentence-list { border-top: 1px solid var(--line); }
    .sentence-item { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 15px; padding: 22px 0 24px; border-bottom: 1px solid var(--line); }
    .sentence-number { padding-top: 2px; color: var(--red); font-family: var(--display); font-size: 13px; font-weight: 760; }
    .sentence-body { min-width: 0; }
    .sentence-topline { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 10px; margin-bottom: 11px; }
    .issue-tag { display: inline-block; padding: 3px 7px 2px; border: 1px solid #e9b0a6; background: #fff1ee; color: var(--red-dark); font-size: 10px; font-weight: 700; }
    .issue-tag.keep { border-color: #b8d4c9; background: var(--green-pale); color: var(--green); }
    .issue-tag.optional { border-color: #d9c572; background: #fff9dd; color: #745c0f; }
    .original-text { margin: 0; color: #243d44; font-family: var(--essay); font-size: 17px; line-height: 1.7; }
    .original-text mark { padding: 0 2px; background: linear-gradient(transparent 48%, rgba(241, 213, 102, 0.72) 48%); color: inherit; }
    .issue-explanation { margin: 9px 0 0; color: var(--ink-soft); font-size: 11px; line-height: 1.7; }
    .revision { margin-top: 14px; padding: 12px 14px; border-left: 3px solid var(--green); background: var(--green-pale); }
    .revision-label { display: block; margin-bottom: 5px; color: var(--green); font-size: 10px; font-weight: 760; }
    .revision p { margin: 0; font-family: var(--essay); font-size: 16px; line-height: 1.65; }
    .upgrade-list { display: grid; border-top: 1px solid var(--ink); }
    .upgrade-row { display: grid; grid-template-columns: minmax(150px, .85fr) 24px minmax(180px, 1.15fr); gap: 14px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line); font-family: var(--essay); font-size: 14px; line-height: 1.55; }
    .upgrade-before { color: var(--ink-soft); text-decoration: line-through; text-decoration-color: rgba(228,79,55,.5); }
    .upgrade-arrow { color: var(--red); text-align: center; font-family: var(--display); }
    .upgrade-after { color: var(--green); font-weight: 600; }
    .upgrade-reason { grid-column: 3; margin-top: -8px; color: var(--ink-soft); font-family: var(--ui); font-size: 10px; line-height: 1.55; }
    .upgrade-caution { margin: 13px 0 0; padding: 11px 13px; border: 1px dashed #b7c4c5; color: var(--ink-soft); font-size: 10px; line-height: 1.65; }
    .optimized-panel { position: relative; border: 1px solid var(--ink); background: repeating-linear-gradient(to bottom, transparent 0, transparent 31px, rgba(35,94,126,.08) 31px, rgba(35,94,126,.08) 32px), #fbfaf5; padding: 26px 28px 24px; }
    .optimized-panel::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--green); }
    .optimized-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 16px; }
    .optimized-head strong { font-size: 12px; }
    .optimized-head span { color: var(--ink-soft); font-size: 10px; }
    .copy-button { border: 1px solid var(--ink); background: var(--paper); padding: 6px 10px; font-size: 10px; font-weight: 700; cursor: pointer; }
    .copy-button:hover { background: var(--yellow); }
    .optimized-text { margin: 0; color: #1c343b; font-family: var(--essay); font-size: 16px; line-height: 1.85; white-space: pre-line; }
    .score-lift { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--line); font-size: 11px; }
    .score-lift strong { color: var(--green); font-size: 13px; }
    .report-disclaimer { margin: 20px 0 0; color: var(--ink-soft); font-size: 10px; line-height: 1.7; }
    .site-footer { width: min(1200px, calc(100% - 48px)); margin: 0 auto; padding: 0 0 30px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--ink-soft); font-size: 10px; }
    .footer-mark { color: var(--red-dark); font-weight: 700; }
    .loading-overlay { position: fixed; z-index: 20; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(237, 243, 244, 0.91); backdrop-filter: blur(8px); }
    .loading-overlay[hidden] { display: none; }
    .loading-card { width: min(440px, 100%); border: 1px solid var(--ink); background: var(--paper); box-shadow: 12px 14px 0 var(--shadow); padding: 27px; animation: card-in 220ms ease-out both; }
    .loading-title { margin: 0; font-family: var(--display); font-size: 23px; }
    .loading-subtitle { margin: 7px 0 19px; color: var(--ink-soft); font-size: 11px; line-height: 1.6; }
    .scan-paper { position: relative; height: 155px; overflow: hidden; border: 1px solid var(--line); background: repeating-linear-gradient(to bottom, transparent 0, transparent 23px, rgba(35,94,126,.13) 23px, rgba(35,94,126,.13) 24px), #fbfaf5; padding: 19px 18px; }
    .scan-line { position: absolute; left: 0; right: 0; height: 2px; top: 15px; background: var(--red); box-shadow: 0 0 11px rgba(228, 79, 55, .6); animation: scan 1.45s ease-in-out infinite; }
    .scan-copy { color: #829397; font-family: var(--essay); font-size: 11px; line-height: 24px; }
    .scan-copy b { color: #435a61; font-weight: normal; }
    .scan-copy em { color: var(--red-dark); font-style: normal; }
    .loading-steps { display: grid; gap: 9px; margin: 20px 0 0; padding: 0; list-style: none; }
    .loading-step { display: flex; align-items: center; gap: 10px; color: #9aa9ac; font-size: 12px; transition: color 160ms ease; }
    .step-dot { width: 16px; height: 16px; display: grid; place-items: center; border: 1px solid currentColor; font-size: 9px; }
    .loading-step.is-active { color: var(--ink); font-weight: 700; }
    .loading-step.is-done { color: var(--green); }
    .loading-step.is-done .step-dot { border-color: var(--green); background: var(--green-pale); }
    .toast { position: fixed; z-index: 30; left: 50%; bottom: 24px; transform: translate(-50%, 16px); padding: 10px 16px; background: var(--ink); color: white; font-size: 12px; opacity: 0; pointer-events: none; transition: 180ms ease; }
    .toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
    @keyframes scan { 0%, 100% { top: 14px; opacity: .35; } 50% { top: 137px; opacity: 1; } }
    @keyframes bar-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
    @keyframes card-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
    @media (max-width: 900px) {
      .landing { grid-template-columns: 1fr; gap: 44px; padding-top: 36px; }
      .hero-copy { max-width: 700px; }
      .upload-shell { width: min(560px, 100%); }
      .report-head, .report-content { grid-template-columns: 1fr; }
      .score-column { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 28px; }
      .report-summary { padding-top: 4px; }
      .side-index { position: static; padding: 0 0 22px; border-right: 0; border-bottom: 1px solid var(--line); }
      .side-nav { grid-template-columns: repeat(4, 1fr); gap: 6px 14px; }
      .confidence-box { display: none; }
    }
    @media (max-width: 600px) {
      .site-header, main, .site-footer { width: min(100% - 28px, 1200px); }
      .site-header { padding-top: 17px; }
      .brand-stamp { width: 39px; height: 39px; font-size: 22px; }
      .brand-name { font-size: 18px; }
      .demo-badge { padding: 6px 9px 5px; font-size: 10px; box-shadow: 2px 2px 0 var(--ink); }
      .landing { min-height: auto; padding: 42px 0 54px; }
      .hero-title { font-size: clamp(48px, 15vw, 72px); line-height: 1.01; }
      .title-marked svg { bottom: -4px; height: 12px; }
      .hero-copy { margin-top: 22px; font-size: 15px; line-height: 1.75; }
      .hero-promises { gap: 9px 16px; font-size: 12px; }
      .hero-footnote { font-size: 11px; }
      .upload-card { padding: 26px 18px 18px; box-shadow: 9px 10px 0 var(--shadow); }
      .upload-tab { left: 18px; }
      .upload-zone, .file-preview, .file-preview img { min-height: 220px; height: 220px; }
      .type-chip { font-size: 11px; }
      .report { padding-top: 26px; }
      .report-toolbar { align-items: flex-start; }
      .report-mode { max-width: 190px; text-align: right; line-height: 1.5; }
      .report-head, .report-content { padding: 22px 18px; gap: 24px; }
      .report-head { padding-top: 27px; }
      .score-stamp { width: 148px; height: 148px; }
      .score-value { font-size: 56px; }
      .quick-notes { grid-template-columns: 1fr; gap: 9px; }
      .report-title { font-size: 34px; }
      .side-nav { grid-template-columns: 1fr 1fr; }
      .section + .section { margin-top: 39px; }
      .section-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
      .dimension { grid-template-columns: 88px 1fr 44px; gap: 9px; font-size: 11px; }
      .sentence-item { grid-template-columns: 29px minmax(0, 1fr); gap: 8px; }
      .original-text { font-size: 16px; }
      .revision p { font-size: 15px; }
      .upgrade-row { grid-template-columns: 1fr 18px 1fr; gap: 7px; font-size: 13px; }
      .upgrade-reason { grid-column: 1 / -1; margin-top: 0; }
      .optimized-panel { padding: 23px 18px 20px; }
      .optimized-text { font-size: 15px; }
      .site-footer { align-items: flex-start; flex-direction: column; gap: 5px; }
    }
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
    }
  

/* Live API additions */
.header-actions { display: flex; align-items: center; gap: 11px; }
.api-connect {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--ink);
  background: var(--paper); padding: 9px 12px; font-size: 11px; font-weight: 700; cursor: pointer;
  box-shadow: 3px 3px 0 rgba(16,42,50,.14); white-space: nowrap;
}
.api-connect:hover { background: #fff8db; }
.api-dot { width: 8px; height: 8px; border-radius: 50%; background: #9caaac; box-shadow: 0 0 0 2px rgba(156,170,172,.2); }
.api-connect.is-ready { border-color: var(--green); color: var(--green); }
.api-connect.is-ready .api-dot { background: var(--green); box-shadow: 0 0 0 2px rgba(46,120,100,.15); }
.modal-overlay {
  position: fixed; z-index: 40; inset: 0; display: grid; place-items: center; padding: 22px;
  background: rgba(10,28,34,.52); backdrop-filter: blur(5px);
}
.modal-overlay[hidden] { display: none; }
.modal-card {
  width: min(500px, 100%); border: 1px solid var(--ink); background: var(--paper);
  box-shadow: 12px 14px 0 rgba(16,42,50,.22); padding: 26px;
}
.modal-card h2 { margin: 0; font-family: var(--display); font-size: 26px; letter-spacing: -.02em; }
.modal-card > p { margin: 9px 0 20px; color: var(--ink-soft); font-size: 11px; line-height: 1.7; }
.modal-close { float: right; border: 0; background: transparent; color: var(--ink-soft); font-size: 20px; cursor: pointer; padding: 0 0 8px 12px; }
.key-label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 750; }
.key-row { display: flex; gap: 7px; }
.key-input {
  min-width: 0; flex: 1; height: 44px; border: 1px solid #8da0a4; background: #fbfaf5;
  padding: 0 12px; color: var(--ink); font-family: var(--display); font-size: 13px;
}
.key-input:focus { border-color: var(--red); }
.key-toggle { width: 66px; border: 1px solid var(--ink); background: var(--paper); font-size: 11px; font-weight: 700; cursor: pointer; }
.key-help { margin: 10px 0 0; color: var(--ink-soft); font-size: 10px; line-height: 1.65; }
.key-help a { color: var(--red-dark); }
.modal-actions { display: flex; gap: 9px; margin-top: 20px; }
.modal-primary, .modal-secondary, .modal-danger {
  min-height: 42px; padding: 8px 15px; border: 1px solid var(--ink); font-size: 12px; font-weight: 750; cursor: pointer;
}
.modal-primary { flex: 1; background: var(--red); color: #fff; box-shadow: 3px 3px 0 var(--ink); }
.modal-primary:hover { background: #d8442e; }
.modal-secondary { background: var(--paper); }
.modal-secondary:hover { background: var(--yellow); }
.modal-danger { background: transparent; color: var(--red-dark); border-color: #d9a29a; }
.modal-danger:hover { background: #fff1ee; }
.server-key-note { margin: 13px 0 0; padding: 10px 12px; border-left: 3px solid var(--green); background: var(--green-pale); color: var(--green); font-size: 11px; line-height: 1.6; }
.task-details { margin-top: 17px; border-top: 1px solid var(--line); padding-top: 2px; }
.task-details summary { cursor: pointer; padding: 12px 0 4px; color: var(--ink-soft); font-size: 11px; font-weight: 650; list-style: none; }
.task-details summary::-webkit-details-marker { display: none; }
.task-details summary::before { content: "+"; display: inline-block; width: 16px; color: var(--red); font-family: var(--display); font-size: 15px; }
.task-details[open] summary::before { content: "−"; }
.task-input {
  width: 100%; min-height: 88px; resize: vertical; border: 1px solid #9aabad; background: #fbfaf5;
  padding: 10px 11px; color: var(--ink); font-size: 12px; line-height: 1.65;
}
.task-input:focus { border-color: var(--red); outline: 2px solid rgba(241,213,102,.55); }
.preview-count { position: absolute; left: 10px; top: 10px; background: var(--ink); color: white; padding: 5px 8px; font-size: 10px; font-weight: 700; }
.report-mode .mode-dot { width: 8px; height: 8px; border: 1px solid var(--ink); transform: rotate(45deg); background: var(--yellow); }
.report-mode.is-live .mode-dot { background: var(--green); }
.report-subline { color: var(--ink-soft); font-size: 11px; line-height: 1.6; }
.score-stamp.is-live { box-shadow: inset 0 0 0 7px var(--paper), inset 0 0 0 9px rgba(228,79,55,.4); }
.dimension-reason { grid-column: 2 / -1; margin-top: -8px; color: var(--ink-soft); font-size: 10px; line-height: 1.55; }
.issue-explain-list { display: grid; gap: 5px; margin: 9px 0 0; padding: 0; list-style: none; }
.issue-explain-list li { color: var(--ink-soft); font-size: 11px; line-height: 1.65; }
.issue-explain-list b { color: var(--red-dark); font-weight: 700; }
.sentence-topline .issue-tag + .issue-tag { margin-left: -3px; }
.transcript-details { margin-top: 17px; border: 1px dashed #9aabad; padding: 12px 14px; color: var(--ink-soft); font-size: 11px; }
.transcript-details summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.transcript-copy { margin: 12px 0 0; white-space: pre-wrap; color: #314b53; font-family: var(--essay); font-size: 15px; line-height: 1.75; }
.report-error, .inline-error { border: 1px solid #e2a59b; background: #fff1ee; padding: 16px; color: var(--red-dark); font-size: 12px; line-height: 1.7; }
.report-error strong, .inline-error strong { display: block; margin-bottom: 5px; }
.report-placeholder { padding: 48px 24px; text-align: center; color: var(--ink-soft); font-size: 13px; }
.loading-error { margin-top: 16px; border: 1px solid #e2a59b; background: #fff1ee; padding: 12px; color: var(--red-dark); font-size: 11px; line-height: 1.6; }
.loading-error[hidden] { display: none; }
.loading-retry { width: 100%; margin-top: 10px; min-height: 38px; border: 1px solid var(--red-dark); background: var(--paper); color: var(--red-dark); font-size: 11px; font-weight: 700; cursor: pointer; }
.loading-retry:hover { background: #ffe2dc; }
.live-note { margin: 16px 0 0; color: var(--ink-soft); font-size: 10px; line-height: 1.7; }
.live-note a { color: var(--red-dark); }
@media (max-width: 600px) {
  .header-actions { gap: 6px; }
  .demo-badge { display: none; }
  .api-connect { padding: 7px 9px; font-size: 10px; }
  .api-connect .api-label { max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .dimension-reason { grid-column: 1 / -1; margin-top: -4px; }
  .modal-card { padding: 21px 17px; }
  .modal-actions { flex-wrap: wrap; }
  .modal-primary { min-width: 140px; }
}
.loading-actions { display: flex; gap: 8px; margin-top: 10px; }
.loading-actions .loading-retry { flex: 1; margin-top: 0; }
.quota-line {
  margin: 17px 0 0; padding: 9px 11px; border: 1px solid #c9d5d5;
  background: #f7f9f7; color: var(--ink-soft); font-size: 10px; line-height: 1.65;
}
.quota-line strong { color: var(--red-dark); }
.quota-line.is-empty { border-color: #e3a59b; background: #fff1ee; color: var(--red-dark); }
.quota-detail {
  margin: 12px 0 0; padding: 10px 12px; border: 1px dashed #aebdbf;
  color: var(--ink-soft); font-size: 10px; line-height: 1.7;
}
.quota-detail strong { color: var(--ink); }
.modal-overlay.server-mode .byok-only { display: none !important; }
.modal-overlay.server-mode .modal-actions { justify-content: flex-end; }
.band-chip {
  display: inline-block; margin-top: 12px; padding: 5px 10px 4px; border: 1px solid var(--red);
  color: var(--red-dark); background: #fff1ee; font-size: 11px; font-weight: 750;
}
.score-rationale {
  margin-top: 20px; padding: 13px 15px; border-left: 3px solid var(--blue);
  background: rgba(35,94,126,.06); font-size: 11px; line-height: 1.7;
}
.score-rationale b { display: block; margin-bottom: 4px; color: var(--ink); }
.score-rationale p { margin: 0; color: var(--ink-soft); }
.score-rationale .next-band { display: block; margin-top: 8px; color: var(--green); font-weight: 650; }
.issue-tag .tag-meta { display: block; margin-top: 2px; font-size: 8px; font-weight: 500; opacity: .72; }
.content-check-list { display: grid; border-top: 1px solid var(--line); }
.content-check-item {
  display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 14px; padding: 14px 0;
  border-bottom: 1px solid var(--line); font-size: 12px; line-height: 1.65;
}
.content-status { align-self: start; padding: 3px 7px; text-align: center; font-size: 9px; font-weight: 750; border: 1px solid; }
.content-status.fully { color: var(--green); background: var(--green-pale); border-color: #b8d4c9; }
.content-status.partly { color: #775d00; background: #fff8d8; border-color: #dfc96c; }
.content-status.missing { color: var(--red-dark); background: #fff1ee; border-color: #e4b0a6; }
.content-check-body strong { display: block; margin-bottom: 3px; font-size: 11px; color: var(--ink); }
.content-check-body p { margin: 0; color: var(--ink-soft); }
.continuity-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.continuity-item { padding: 13px 14px; border: 1px solid var(--line); background: #fbfaf5; }
.continuity-item strong { display: block; margin-bottom: 5px; color: var(--red-dark); font-size: 10px; }
.continuity-item p { margin: 0; color: var(--ink-soft); font-size: 11px; line-height: 1.65; }
.upgrade-level { display: inline-block; margin-right: 6px; padding: 1px 5px; border: 1px solid #aebdbf; font-family: var(--ui); font-size: 8px; vertical-align: 1px; }
.upgrade-level.advanced { border-color: #d6bf5f; background: #fff8d8; color: #745c0f; }
@media (max-width: 600px) {
  .content-check-item { grid-template-columns: 65px minmax(0, 1fr); gap: 10px; }
  .continuity-grid { grid-template-columns: 1fr; }
}
.score-audit {
  margin-top: 12px; padding: 9px 11px; border: 1px dashed #b7c4c5;
  background: #fbfaf5; color: var(--ink-soft); font-size: 10px; line-height: 1.65;
}
.score-audit strong { color: var(--ink); }
.score-audit .cap { display: block; margin-top: 4px; color: var(--red-dark); }
.uncertain-list { display: grid; border-top: 1px solid var(--line); }
.uncertain-item { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 11px; line-height: 1.7; }
.uncertain-item strong { display: block; margin-bottom: 3px; color: var(--ink); }
.uncertain-item span { color: var(--red-dark); }
.uncertain-item p { margin: 3px 0 0; color: var(--ink-soft); }
.corpus-page { padding: 36px 0 70px; }
.corpus-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.corpus-hero h1 { margin: 0; font-family: var(--display); font-size: clamp(38px,5vw,64px); line-height: 1; letter-spacing: -.045em; }
.corpus-hero p { margin: 10px 0 0; max-width: 620px; color: var(--ink-soft); font-size: 13px; line-height: 1.75; }
.corpus-stats { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.corpus-stat { min-width: 96px; padding: 8px 12px; border: 1px solid var(--line); background: var(--paper); font-size: 10px; color: var(--ink-soft); }
.corpus-stat strong { display: block; margin-top: 3px; color: var(--ink); font-family: var(--display); font-size: 22px; }
.corpus-layout { display: grid; grid-template-columns: minmax(320px,.8fr) minmax(0,1.2fr); gap: 24px; align-items: start; }
.corpus-panel { border: 1px solid var(--ink); background: var(--paper); box-shadow: 8px 9px 0 var(--shadow); padding: 22px; }
.corpus-panel.sticky { position: sticky; top: 18px; }
.corpus-panel h2 { margin: 0; font-family: var(--display); font-size: 23px; }
.corpus-panel > p { margin: 7px 0 18px; color: var(--ink-soft); font-size: 11px; line-height: 1.65; }
.corpus-field { margin-top: 14px; }
.corpus-field label { display: block; margin-bottom: 7px; font-size: 11px; font-weight: 700; }
.corpus-select, .corpus-input, .corpus-textarea { width: 100%; border: 1px solid #9aabad; background: #fbfaf5; padding: 10px 11px; color: var(--ink); font-size: 12px; }
.corpus-select, .corpus-input { height: 42px; }
.corpus-textarea { min-height: 220px; resize: vertical; line-height: 1.7; font-family: var(--essay); font-size: 14px; }
.corpus-file { margin-top: 9px; font-size: 10px; color: var(--ink-soft); }
.corpus-actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.corpus-action { min-height: 40px; border: 1px solid var(--ink); padding: 8px 13px; font-size: 11px; font-weight: 750; cursor: pointer; background: var(--paper); }
.corpus-action.primary { background: var(--red); color: white; box-shadow: 3px 3px 0 var(--ink); }
.corpus-action.primary:hover { background: #d8442e; }
.corpus-action:hover { background: var(--yellow); }
.corpus-action.primary:hover { background: #d8442e; }
.corpus-status { margin-top: 13px; padding: 10px 12px; border-left: 3px solid var(--yellow); background: #fff9dd; color: var(--ink-soft); font-size: 10px; line-height: 1.6; }
.corpus-status.error { border-left-color: var(--red); background: #fff1ee; color: var(--red-dark); }
.corpus-toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.corpus-toolbar input, .corpus-toolbar select { height: 38px; border: 1px solid var(--line); background: #fbfaf5; padding: 0 10px; font-size: 11px; }
.corpus-toolbar input { flex: 1; min-width: 0; }
.draft-list, .corpus-list { display: grid; gap: 10px; }
.draft-card, .corpus-item { border: 1px solid var(--line); background: #fbfaf5; padding: 14px; }
.draft-card { display: grid; grid-template-columns: 24px minmax(0,1fr); gap: 10px; }
.draft-card input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--red); margin-top: 2px; }
.draft-meta, .corpus-item-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 7px; color: var(--ink-soft); font-size: 9px; }
.draft-meta span, .corpus-tag { padding: 2px 6px; border: 1px solid #c8d5d7; background: var(--paper); }
.draft-en { margin: 0; font-family: var(--essay); font-size: 15px; line-height: 1.65; color: var(--ink); }
.draft-cn { margin: 6px 0 0; color: var(--ink-soft); font-size: 11px; line-height: 1.6; }
.draft-note { margin: 6px 0 0; color: var(--ink-soft); font-size: 10px; line-height: 1.6; }
.draft-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.corpus-item-head { display: flex; justify-content: space-between; gap: 12px; }
.corpus-item-head strong { font-size: 11px; }
.corpus-delete { border: 1px solid #dda49a; background: #fff1ee; color: var(--red-dark); padding: 4px 7px; font-size: 9px; cursor: pointer; }
.corpus-delete:hover { background: #ffe2dc; }
.corpus-empty { padding: 34px 20px; text-align: center; border: 1px dashed var(--line); color: var(--ink-soft); font-size: 11px; }
.corpus-tag.advanced { background: #fff8d8; border-color: #ddc768; }
.corpus-save-note { color: var(--ink-soft); font-size: 10px; margin-top: 12px; }
@media (max-width: 900px) { .corpus-layout { grid-template-columns: 1fr; } .corpus-panel.sticky { position: static; } .corpus-hero { align-items: flex-start; flex-direction: column; } }
@media (max-width: 600px) { .corpus-page { padding-top: 24px; } .corpus-panel { padding: 17px 15px; } .corpus-toolbar { flex-wrap: wrap; } }
/* Library workbench */
.library-page { width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 42px 0 72px; }
.library-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 30px; }
.library-hero h1 { margin: 0; font-family: var(--display); font-size: clamp(44px, 6vw, 76px); line-height: .95; letter-spacing: -.055em; }
.library-hero p { max-width: 650px; margin: 16px 0 0; color: var(--ink-soft); font-size: 14px; line-height: 1.8; }
.library-stats { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.library-stat { min-width: 92px; padding: 10px 12px; border: 1px solid var(--line); background: var(--paper); }
.library-stat span { display: block; color: var(--ink-soft); font-size: 9px; }
.library-stat strong { display: block; margin-top: 3px; font-family: var(--display); font-size: 25px; line-height: 1; }
.library-layout { display: grid; grid-template-columns: minmax(320px, .76fr) minmax(0, 1.24fr); gap: 24px; align-items: start; }
.library-editor, .library-browser { border: 1px solid var(--ink); background: var(--paper); box-shadow: 10px 11px 0 var(--shadow); }
.library-editor { position: sticky; top: 18px; padding: 25px; }
.library-browser { padding: 25px; }
.editor-head { padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.editor-head h2, .browser-head h2, .draft-head h2 { margin: 4px 0 0; font-family: var(--display); font-size: 26px; letter-spacing: -.025em; }
.editor-head p { margin: 8px 0 0; color: var(--ink-soft); font-size: 11px; line-height: 1.65; }
.editor-index, .browser-index { color: var(--red-dark); font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.field { margin-top: 16px; }
.field label { display: block; margin-bottom: 7px; font-size: 11px; font-weight: 700; }
.field-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.file-pick { color: var(--red-dark); cursor: pointer; font-size: 10px; font-weight: 650; border-bottom: 1px dashed #c89086; }
#extractForm select, #extractForm textarea, .library-tools input, .library-tools select {
  width: 100%; border: 1px solid #9aabad; background: #fbfaf5; color: var(--ink); font-size: 12px;
}
#extractForm select, .library-tools input, .library-tools select { height: 42px; padding: 0 11px; }
#extractForm textarea { min-height: 245px; padding: 12px; resize: vertical; line-height: 1.75; font-family: var(--essay); font-size: 14px; }
#extractForm select:focus, #extractForm textarea:focus, .library-tools input:focus, .library-tools select:focus { border-color: var(--red); outline: 2px solid rgba(241,213,102,.5); }
.editor-actions { display: flex; gap: 8px; margin-top: 16px; }
.library-button { min-height: 42px; padding: 8px 14px; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); font-size: 11px; font-weight: 750; cursor: pointer; }
.library-button:hover { background: var(--yellow); }
.library-button.primary { background: var(--red); color: white; box-shadow: 3px 3px 0 var(--ink); }
.library-button.primary:hover { background: #d8442e; }
.library-button.compact { min-height: 34px; padding: 6px 11px; }
.library-button:disabled { opacity: .55; cursor: wait; }
.editor-status { margin-top: 15px; padding: 11px 12px; border-left: 3px solid var(--yellow); background: #fff9dd; color: var(--ink-soft); font-size: 10px; line-height: 1.65; }
.editor-status.is-error { border-left-color: var(--red); background: #fff1ee; color: var(--red-dark); }
.editor-note { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); color: var(--ink-soft); font-size: 10px; line-height: 1.65; }
.editor-note strong, .editor-note span { display: block; }
.editor-note strong { margin-bottom: 3px; color: var(--ink); }
.browser-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--ink); }
.result-count { color: var(--red-dark); font-family: var(--display); font-size: 13px; font-weight: 750; }
.library-tools { display: grid; grid-template-columns: minmax(0,1fr) 130px 110px; gap: 8px; margin: 16px 0 20px; }
.draft-section { margin-bottom: 30px; padding: 18px; border: 1px solid #d7c565; background: #fffdf4; }
.draft-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.draft-head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; color: var(--ink-soft); font-size: 10px; }
.text-action { border: 0; border-bottom: 1px dashed #aebdbf; background: transparent; padding: 2px 0; color: var(--ink-soft); font-size: 10px; cursor: pointer; }
.draft-list { display: grid; gap: 9px; }
.draft-card { display: grid; grid-template-columns: 25px minmax(0,1fr); gap: 12px; padding: 14px; border: 1px solid var(--line); background: var(--paper); }
.draft-check { position: relative; width: 18px; height: 18px; margin-top: 2px; cursor: pointer; }
.draft-check input { position: absolute; opacity: 0; }
.draft-check span { display: block; width: 18px; height: 18px; border: 1px solid #93a6a9; background: #fff; }
.draft-check input:checked + span { background: var(--red); border-color: var(--red); box-shadow: inset 0 0 0 4px var(--paper); }
.draft-body { min-width: 0; }
.draft-meta, .draft-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.draft-meta { margin-bottom: 8px; }
.library-tag { display: inline-block; padding: 2px 6px; border: 1px solid #ccd7d8; background: #f7f9f7; color: var(--ink-soft); font-size: 8px; font-weight: 650; }
.library-tag.type { border-color: #c8a39b; color: var(--red-dark); }
.library-tag.advanced { border-color: #d8c269; background: #fff8d8; color: #70590c; }
.library-tag.safe { border-color: #b7d3c9; background: var(--green-pale); color: var(--green); }
.draft-en { margin: 0; color: var(--ink); font-family: var(--essay); font-size: 16px; line-height: 1.7; }
.draft-cn { margin: 5px 0 0; color: var(--ink-soft); font-size: 11px; line-height: 1.6; }
.draft-note { margin: 6px 0 0; color: var(--ink-soft); font-size: 10px; line-height: 1.6; }
.draft-note b { margin-right: 7px; color: var(--ink); font-size: 9px; }
.draft-note.caution b { color: var(--red-dark); }
.draft-tags { margin-top: 8px; }
.corpus-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.corpus-card { min-width: 0; padding: 14px; border: 1px solid var(--line); background: #fbfaf5; }
.corpus-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.corpus-number { color: var(--red); font-family: var(--display); font-size: 11px; font-weight: 750; }
.corpus-delete { border: 0; background: transparent; color: #9a716b; font-size: 9px; cursor: pointer; }
.corpus-delete:hover { color: var(--red-dark); text-decoration: underline; }
.library-empty { padding: 48px 20px; border: 1px dashed var(--line); text-align: center; color: var(--ink-soft); }
.library-empty strong, .library-empty span { display: block; }
.library-empty strong { margin-bottom: 6px; color: var(--ink); font-family: var(--display); font-size: 18px; }
@media (max-width: 980px) {
  .library-hero { align-items: flex-start; flex-direction: column; }
  .library-stats { justify-content: flex-start; }
  .library-layout { grid-template-columns: 1fr; }
  .library-editor { position: static; }
  .corpus-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 650px) {
  .library-page { width: min(100% - 28px, 1240px); padding-top: 26px; }
  .library-editor, .library-browser { padding: 17px 14px; box-shadow: 6px 7px 0 var(--shadow); }
  .library-tools { grid-template-columns: 1fr 1fr; }
  .library-tools input { grid-column: 1 / -1; }
  .draft-head { align-items: flex-start; flex-direction: column; }
  .draft-head-actions { justify-content: flex-start; }
  .corpus-grid { grid-template-columns: 1fr; }
  .library-hero h1 { font-size: 52px; }
}
.library-pagination { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 20px; }
.page-button { min-height: 34px; padding: 6px 12px; border: 1px solid var(--line); background: var(--paper); font-size: 10px; font-weight: 700; cursor: pointer; }
.page-button:hover:not(:disabled) { border-color: var(--ink); background: var(--yellow); }
.page-button:disabled { opacity: .35; cursor: default; }
.page-indicator { color: var(--ink-soft); font-size: 10px; }
/* Apple HIG-inspired interaction polish */
:root {
  --ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Microsoft YaHei", sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Microsoft YaHei", sans-serif;
}
html { scroll-padding-top: 90px; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: rgba(241,213,102,.72); color: var(--ink); }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
.site-header {
  position: sticky; top: 0; z-index: 18; margin-top: 8px;
  padding: 12px 16px; border: 1px solid rgba(16,42,50,.08); border-radius: 16px;
  background: rgba(237,243,244,.82); backdrop-filter: blur(18px) saturate(145%);
  box-shadow: 0 8px 30px rgba(16,42,50,.06);
}
.brand, .api-connect, .library-button, .page-button, .text-action, .corpus-delete, .file-pick {
  touch-action: manipulation;
}
.api-connect { min-height: 40px; border-radius: 10px; transition: background 160ms ease, transform 120ms ease, box-shadow 160ms ease; }
.api-connect:active { transform: scale(.98); }
.library-page { padding-top: 34px; }
.library-editor, .library-browser {
  border-color: rgba(16,42,50,.16); border-radius: 18px;
  background: rgba(255,253,248,.88); backdrop-filter: blur(14px) saturate(115%);
  box-shadow: 0 18px 46px rgba(16,42,50,.10);
}
.library-editor { padding: 26px; }
.library-browser { padding: 26px; }
.library-stat { border-radius: 12px; box-shadow: 0 3px 12px rgba(16,42,50,.04); }
.library-stat strong { font-weight: 680; }
#extractForm select, #extractForm textarea, .library-tools input, .library-tools select {
  border-color: rgba(16,42,50,.18); border-radius: 10px; background: rgba(255,255,255,.72);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
#extractForm select, .library-tools input, .library-tools select { min-height: 44px; }
#extractForm select:focus, #extractForm textarea:focus, .library-tools input:focus, .library-tools select:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(228,79,55,.12); background: #fff;
}
.file-pick { min-height: 40px; display: inline-flex; align-items: center; padding: 0 8px; border-radius: 8px; }
.file-pick:hover { background: rgba(241,213,102,.24); }
.library-button {
  min-height: 44px; border-color: rgba(16,42,50,.35); border-radius: 10px;
  transition: background 160ms ease, transform 120ms ease, box-shadow 160ms ease, opacity 160ms ease;
}
.library-button:active:not(:disabled), .page-button:active:not(:disabled) { transform: scale(.98); }
.library-button.primary { background: var(--red); box-shadow: 0 5px 16px rgba(228,79,55,.22); }
.library-button.primary:hover { background: #d94733; }
.library-button:disabled { opacity: .48; }
.text-action { min-height: 32px; padding: 0 4px; }
.editor-status { border-radius: 0 10px 10px 0; }
.editor-note { border-top-color: rgba(16,42,50,.14); }
.library-tools { gap: 10px; }
.draft-section { border-color: rgba(195,169,52,.48); border-radius: 14px; background: rgba(255,251,232,.76); }
.draft-card, .corpus-card {
  border-color: rgba(16,42,50,.14); border-radius: 12px; background: rgba(255,255,255,.7);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.draft-card:hover, .corpus-card:hover { border-color: rgba(16,42,50,.28); background: rgba(255,255,255,.94); box-shadow: 0 6px 18px rgba(16,42,50,.05); }
.draft-check span { border-radius: 5px; transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease; }
.draft-check input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }
.library-tag { border-radius: 5px; }
.corpus-delete { min-height: 32px; padding: 0 4px; border-radius: 6px; }
.corpus-delete:hover { background: #fff1ee; text-decoration: none; }
.library-empty { border-radius: 14px; background: rgba(255,255,255,.45); }
.library-pagination { gap: 12px; }
.page-button { min-height: 40px; min-width: 72px; border-radius: 9px; border-color: rgba(16,42,50,.18); background: rgba(255,255,255,.72); }
.page-button:hover:not(:disabled) { background: rgba(241,213,102,.35); border-color: rgba(16,42,50,.34); }
.page-indicator { min-width: 72px; text-align: center; font-variant-numeric: tabular-nums; }
@keyframes library-enter { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.library-layout { animation: library-enter 280ms cubic-bezier(.2,.8,.2,1) both; }
@media (max-width: 650px) {
  .site-header { margin-top: 6px; padding: 10px 10px; border-radius: 13px; }
  .library-editor, .library-browser { border-radius: 15px; }
  .library-tools { gap: 8px; }
  .page-button { min-width: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .library-layout { animation: none; }
}
/* Large-title breathing room */
.hero-title {
  font-size: clamp(50px, 6.25vw, 84px);
  line-height: 1.09;
  letter-spacing: -0.01em;
  font-weight: 720;
  text-wrap: balance;
}
.title-line { padding-block: .012em; }
.title-marked svg { bottom: -10px; }
.library-hero h1 {
  font-size: clamp(44px, 5.2vw, 68px);
  line-height: 1.07;
  letter-spacing: -0.01em;
  font-weight: 710;
}
.report-title {
  line-height: 1.2;
  letter-spacing: -0.012em;
  font-weight: 710;
  text-wrap: balance;
}
.corpus-hero h1 {
  line-height: 1.07;
  letter-spacing: -0.01em;
  font-weight: 710;
}
@media (max-width: 600px) {
  .hero-title {
    font-size: clamp(44px, 13.2vw, 62px);
    line-height: 1.11;
    letter-spacing: 0;
  }
  .title-line { padding-block: .018em; }
  .title-marked svg { bottom: -6px; }
  .report-title { font-size: 32px; line-height: 1.22; }
  .library-hero h1 { font-size: 48px; line-height: 1.08; }
}
.level-up-suggestion {
  margin-top: 12px; padding: 13px 15px; border: 1px solid rgba(46,120,100,.32);
  border-radius: 10px; background: linear-gradient(135deg, rgba(46,120,100,.09), rgba(255,255,255,.42));
}
.level-up-label { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; color: var(--green); font-size: 10px; font-weight: 780; }
.level-up-label .upgrade-level { margin-right: 0; }
.level-up-suggestion p { margin: 0; color: var(--ink); font-family: var(--essay); font-size: 17px; line-height: 1.7; }
.level-up-suggestion small { display: block; margin-top: 7px; color: var(--ink-soft); font-size: 10px; line-height: 1.6; }
.lift-plan-list { display: grid; border-top: 1px solid var(--line); }
.lift-plan-item { display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.lift-number { color: var(--red); font-family: var(--display); font-size: 12px; font-weight: 760; }
.lift-plan-item strong { display: block; margin-bottom: 4px; font-size: 12px; color: var(--ink); }
.lift-plan-item p { margin: 0; color: var(--ink-soft); font-size: 11px; line-height: 1.7; }
.lift-plan-item code { display: block; margin-top: 7px; padding: 7px 9px; border-radius: 7px; background: #f3f7f5; color: var(--green); font-family: var(--essay); font-size: 12px; white-space: pre-wrap; }
.corpus-delete.view { color: var(--blue); }
@media (max-width: 600px) {
  .level-up-suggestion p { font-size: 16px; }
  .lift-plan-item { grid-template-columns: 30px minmax(0,1fr); gap: 8px; }
}
.api-mode-options { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 4px 0 18px; }
.api-mode {
  min-height: 64px; padding: 10px 12px; border: 1px solid rgba(16,42,50,.2); border-radius: 11px;
  background: rgba(255,255,255,.55); color: var(--ink); text-align: left; cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 120ms ease;
}
.api-mode:hover { border-color: rgba(16,42,50,.4); background: rgba(241,213,102,.16); }
.api-mode:active { transform: scale(.985); }
.api-mode.is-selected { border-color: var(--red); background: #fff7f1; box-shadow: 0 0 0 3px rgba(228,79,55,.08); }
.api-mode strong { display: block; font-size: 11px; }
.api-mode small { display: block; margin-top: 4px; color: var(--ink-soft); font-size: 9px; line-height: 1.5; }
.api-mode[hidden] { display: none; }
@media (max-width: 520px) { .api-mode-options { grid-template-columns: 1fr; } }
/* Editorial marking desk visual pass */
body {
  background:
    radial-gradient(circle at 88% 6%, rgba(228,79,55,.09), transparent 27rem),
    radial-gradient(circle at 4% 92%, rgba(35,94,126,.08), transparent 30rem),
    linear-gradient(90deg, rgba(16,42,50,.032) 1px, transparent 1px),
    linear-gradient(rgba(16,42,50,.032) 1px, transparent 1px),
    var(--bg);
  background-size: auto, auto, 38px 38px, 38px 38px, auto;
}
.hero { position: relative; padding-left: 36px; }
.hero::before {
  content: ""; position: absolute; left: 0; top: 12px; bottom: 18px; width: 1px;
  background: linear-gradient(to bottom, var(--red) 0 42%, rgba(16,42,50,.16) 42% 100%);
}
.hero::after {
  content: "READ / MARK / LIFT"; position: absolute; left: -8px; bottom: 12px;
  writing-mode: vertical-rl; transform: rotate(180deg); color: rgba(16,42,50,.3);
  font-family: var(--display); font-size: 8px; letter-spacing: .16em;
}
.hero-kicker { margin-bottom: 20px; letter-spacing: .03em; }
.hero-sample {
  max-width: 570px; margin-top: 22px; padding: 13px 16px 14px;
  border: 1px solid rgba(16,42,50,.16); border-left: 3px solid var(--red);
  background: rgba(255,253,248,.7); transform: rotate(-.35deg);
  box-shadow: 5px 6px 0 rgba(16,42,50,.055);
}
.hero-sample-label {
  display: inline-block; margin-bottom: 7px; padding: 2px 6px;
  background: var(--yellow); color: var(--ink); font-size: 9px; font-weight: 800; letter-spacing: .08em;
}
.hero-sample-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px 10px; }
.sample-before { color: var(--ink-soft); font-family: var(--essay); font-size: 14px; text-decoration: line-through; text-decoration-color: rgba(228,79,55,.45); }
.sample-arrow { color: var(--red); font-family: var(--display); font-size: 12px; }
.sample-after { color: var(--green); font-family: var(--essay); font-size: 15px; font-weight: 600; }
.hero-promises { border-top-color: rgba(16,42,50,.17); }
.hero-promises span::before { background: var(--green); }
.upload-shell { position: relative; }
.upload-scale {
  position: absolute; left: -30px; top: 102px; z-index: 2; width: 30px;
  display: flex; flex-direction: column; align-items: flex-end; gap: 13px;
  color: var(--red-dark); font-family: var(--display); font-size: 8px; font-weight: 700;
  pointer-events: none;
}
.upload-scale i { display: block; width: 16px; height: 1px; margin-left: auto; background: rgba(228,79,55,.45); }
.upload-scale i:nth-of-type(even) { width: 9px; }
.upload-seal {
  position: absolute; z-index: 4; right: -18px; top: 78px; width: 67px; height: 67px;
  display: grid; place-items: center; border: 2px double var(--red); border-radius: 50%;
  background: rgba(255,253,248,.86); color: var(--red-dark); text-align: center;
  font-family: var(--display); font-size: 11px; font-weight: 800; line-height: 1.35;
  transform: rotate(8deg); box-shadow: 0 0 0 5px rgba(255,253,248,.72);
  pointer-events: none;
}
.upload-card { background: linear-gradient(90deg, rgba(228,79,55,.045) 0 36px, transparent 36px), var(--paper); }
.upload-zone { background-color: #fbfaf5; }
.report-sheet {
  position: relative; overflow: hidden;
  background-image: linear-gradient(90deg, transparent 31px, rgba(228,79,55,.08) 31px, rgba(228,79,55,.08) 32px, transparent 32px);
}
.report-sheet::before {
  content: ""; position: absolute; z-index: 0; left: 0; top: 0; bottom: 0; width: 6px;
  background: var(--red);
}
.report-head, .report-content { position: relative; z-index: 1; }
.score-stamp { animation: stamp-in 500ms cubic-bezier(.2,.85,.25,1) both; }
.report-main .section-heading h2 { padding-left: 11px; border-left: 3px solid var(--red); }
.report-main .section-heading { align-items: center; }
.sentence-item { transition: background 160ms ease; }
.sentence-item:hover { background: rgba(241,213,102,.08); }
.optimized-panel { box-shadow: inset 3px 0 0 var(--green); }
.library-browser { position: relative; }
.library-browser::before {
  content: ""; position: absolute; left: 0; top: 26px; bottom: 26px; width: 3px;
  background: var(--red); opacity: .8;
}
@keyframes stamp-in {
  from { opacity: 0; transform: rotate(-10deg) scale(1.3); }
  to { opacity: 1; transform: rotate(-4deg) scale(1); }
}
@media (max-width: 1050px) {
  .upload-scale { display: none; }
  .upload-seal { right: 8px; }
}
@media (max-width: 900px) {
  .hero { padding-left: 0; }
  .hero::before, .hero::after { display: none; }
}
@media (max-width: 600px) {
  .upload-seal { width: 56px; height: 56px; top: 66px; right: 2px; font-size: 9px; }
  .hero-sample { padding: 11px 12px; }
  .sample-after { font-size: 14px; }
  .report-sheet { background-image: none; }
  .report-sheet::before { width: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  .score-stamp { animation: none; }
}
/* Premium editorial refinement */
:root {
  --red: #c94d3b;
  --red-dark: #8f2e23;
  --yellow: #e8d17c;
  --green: #2c6d5b;
  --blue: #265b73;
}
.demo-badge { display: none !important; }
.api-connect {
  background: rgba(255,255,255,.38); border-color: rgba(16,42,50,.18); box-shadow: none;
  color: var(--ink-soft); border-radius: 999px; padding-inline: 13px;
}
.api-connect.is-ready { background: rgba(46,120,100,.08); border-color: rgba(46,120,100,.28); }
.hero-copy { line-height: 1.92; font-size: 16px; color: #3d5960; }
.hero-promises { margin-top: 25px; }
.hero-footnote { margin-top: 20px; max-width: 450px; font-size: 10.5px; line-height: 1.7; opacity: .72; }
.upload-card { padding: 38px 38px 27px; }
.upload-zone { min-height: 258px; }
.form-section { margin-top: 24px; }
.type-options { gap: 9px; }
.type-chip { min-height: 44px; }
.primary-button {
  min-height: 56px; border-radius: 4px; box-shadow: 0 9px 22px rgba(143,46,35,.2);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.primary-button:hover { transform: translateY(-1px); box-shadow: 0 13px 26px rgba(143,46,35,.25); }
.primary-button:active { transform: translateY(1px) scale(.995); box-shadow: 0 4px 12px rgba(143,46,35,.18); }
.sample-button { margin-top: 17px; opacity: .72; }
.privacy-note { opacity: .58; font-size: 9.5px; border-left-color: rgba(232,209,124,.7); }
.score-stamp {
  border-color: var(--ink); color: var(--ink);
  background: rgba(255,253,248,.72);
  box-shadow: inset 0 0 0 7px var(--paper), inset 0 0 0 9px rgba(16,42,50,.22), 0 5px 18px rgba(16,42,50,.08);
}
.score-value { font-size: 72px; color: var(--ink); }
.score-max { font-size: 15px; color: var(--ink-soft); }
.score-caption { color: var(--red-dark); letter-spacing: .18em; }
.score-rationale { border-left-color: var(--ink); background: rgba(16,42,50,.045); }
.score-rationale p { margin: 0 0 7px; line-height: 1.85; }
.score-rationale p:last-child { margin-bottom: 0; }
.report-meta { margin-top: 13px; margin-bottom: 10px; }
.report-title { margin-top: 2px; }
.report-lead { line-height: 1.9; }
.band-chip { border-color: var(--ink); color: var(--ink); background: rgba(232,209,124,.24); }
@media (max-width: 600px) {
  .upload-card { padding: 26px 18px 19px; }
  .api-connect { border-radius: 10px; }
  .score-value { font-size: 58px; }
}
/* Final hierarchy cleanup */
.hero::after { display: none; }
.upload-seal { right: 10px; top: 82px; }
.type-chip { border-color: rgba(16,42,50,.32); background: rgba(255,255,255,.64); color: var(--ink); }
.type-chip:hover { background: rgba(232,209,124,.22); }
.type-chip.is-selected { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.field-label { margin-bottom: 13px; }
.quota-line { border: 0; background: transparent; padding: 0; margin: 15px 0 0; font-size: 9.5px; line-height: 1.6; }
.quota-line strong { color: var(--ink); }
.privacy-note { margin-top: 10px; }
@media (max-width: 600px) {
  .upload-seal { right: 8px; top: 68px; }
}

/* 行间 · 编辑批注视觉升级 V2 */
:root {
  --bg: #f1efe9;
  --paper: #fffdf8;
  --paper-deep: #f7f3ea;
  --ink: #142c31;
  --ink-soft: #5a6d6e;
  --line: #d5d3c9;
  --red: #bd4a3c;
  --red-dark: #882f26;
  --yellow: #ddc878;
  --green: #2e6b58;
  --green-pale: #edf3ee;
  --blue: #315f70;
  --shadow: rgba(20, 44, 49, 0.12);
  --ui: "Segoe UI Variable Text", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --display: "Noto Serif SC", "STSong", "Songti SC", serif;
  --essay: Georgia, "Times New Roman", serif;
}

html { background: var(--bg); }
body {
  color: var(--ink);
  background:
    radial-gradient(circle at 82% -8%, rgba(189,74,60,.075), transparent 31rem),
    radial-gradient(circle at 2% 88%, rgba(49,95,112,.055), transparent 33rem),
    linear-gradient(90deg, rgba(20,44,49,.018) 1px, transparent 1px),
    linear-gradient(rgba(20,44,49,.018) 1px, transparent 1px),
    var(--bg);
  background-size: auto, auto, 44px 44px, 44px 44px, auto;
  -webkit-font-smoothing: antialiased;
}
main { width: min(1240px, calc(100% - 64px)); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  width: 100%;
  margin: 0;
  padding: 13px max(24px, calc((100vw - 1240px) / 2));
  border: 0;
  border-bottom: 1px solid rgba(20,44,49,.12);
  border-radius: 0;
  background: rgba(241,239,233,.88);
  box-shadow: 0 8px 28px rgba(20,44,49,.035);
  backdrop-filter: blur(18px) saturate(125%);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--red) 0 118px, rgba(20,44,49,.18) 118px 100%);
  opacity: .88;
}
.brand { gap: 11px; }
.brand-stamp {
  width: 36px;
  height: 36px;
  border: 1px solid var(--red);
  color: var(--red-dark);
  background: transparent;
  box-shadow: none;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  transform: rotate(-2deg);
}
.brand-name {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .11em;
}
.brand-sub {
  margin-top: 4px;
  font-size: 9px;
  letter-spacing: .16em;
}
.api-connect {
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid rgba(20,44,49,.18);
  border-radius: 999px;
  background: rgba(255,253,248,.48);
  box-shadow: none;
  color: var(--ink-soft);
  font-size: 10px;
  letter-spacing: .02em;
}
.api-connect:hover { background: rgba(255,253,248,.9); border-color: rgba(20,44,49,.34); }
.api-connect.is-ready { background: rgba(46,107,88,.07); border-color: rgba(46,107,88,.28); }
.api-dot { width: 6px; height: 6px; }

.landing {
  grid-template-columns: minmax(0, 1.12fr) minmax(400px, .88fr);
  align-items: center;
  gap: clamp(52px, 7vw, 96px);
  min-height: calc(100vh - 72px);
  padding: 64px 0 82px;
}
.hero {
  position: relative;
  padding-left: clamp(24px, 3vw, 44px);
}
.hero::before {
  top: 10px;
  bottom: 16px;
  width: 1px;
  background: linear-gradient(to bottom, var(--red) 0 26%, rgba(20,44,49,.16) 26% 100%);
  opacity: .72;
}
.hero::after { display: none; }
.hero-kicker {
  margin-bottom: 21px;
  color: var(--red-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
}
.hero-kicker::before { width: 20px; height: 1px; transform: none; }
.hero-title {
  max-width: 640px;
  font-family: var(--display);
  font-size: clamp(50px, 4.8vw, 68px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.title-line { padding-block: .02em; white-space: nowrap; }
.title-tail { display: inline; }
.title-marked { z-index: 0; }
.title-marked svg {
  z-index: -1;
  bottom: -5px;
  height: 10px;
  opacity: .82;
}
.title-marked path { stroke-width: 4; }
.title-dot { color: var(--red); }
.hero-copy {
  max-width: 545px;
  margin-top: 27px;
  color: #475e62;
  font-size: 15px;
  line-height: 1.95;
  text-wrap: pretty;
}
.hero-sample {
  position: relative;
  max-width: 570px;
  margin-top: 25px;
  padding: 15px 18px 16px;
  border: 1px solid rgba(20,44,49,.14);
  border-left: 2px solid var(--red);
  background: rgba(255,253,248,.68);
  box-shadow: none;
  transform: none;
}
.hero-sample::after {
  content: "SENTENCE / 04";
  position: absolute;
  top: 13px;
  right: 15px;
  color: rgba(20,44,49,.36);
  font-family: var(--ui);
  font-size: 7px;
  letter-spacing: .15em;
}
.hero-sample-label {
  margin-bottom: 9px;
  padding: 0;
  background: transparent;
  color: var(--red-dark);
  font-size: 9px;
  letter-spacing: .14em;
}
.hero-sample-line { gap: 7px 11px; padding-right: 70px; }
.sample-before { font-size: 13px; }
.sample-arrow { font-size: 10px; }
.sample-after { color: var(--green); font-size: 14px; }
.hero-promises {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: 570px;
  margin-top: 25px;
  padding-top: 0;
  border-top: 1px solid rgba(20,44,49,.18);
}
.hero-promises span {
  display: block;
  padding: 13px 12px 0 0;
  border: 0;
  color: var(--ink);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .03em;
}
.hero-promises span::before { display: none; }
.hero-promises b {
  display: block;
  margin-bottom: 4px;
  color: var(--red-dark);
  font-family: var(--ui);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .12em;
}
.hero-footnote {
  margin-top: 22px;
  max-width: 480px;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.7;
  opacity: .78;
}

.upload-shell {
  width: 100%;
  max-width: 500px;
  justify-self: end;
  isolation: isolate;
  padding-top: 12px;
}
.upload-scale { display: none; }
.upload-tab {
  top: 0;
  left: 25px;
  padding: 9px 15px 8px;
  border: 1px solid var(--ink);
  background: var(--ink);
  font-family: var(--ui);
  font-size: 10px;
  letter-spacing: .14em;
  transform: none;
}
.upload-card {
  padding: 34px 32px 25px;
  border: 1px solid rgba(20,44,49,.42);
  background: linear-gradient(90deg, rgba(189,74,60,.035) 0 28px, transparent 28px), var(--paper);
  box-shadow: 0 28px 74px rgba(20,44,49,.13), 0 2px 0 rgba(20,44,49,.06);
}
.upload-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 9px -9px -9px 10px;
  border: 1px solid rgba(20,44,49,.14);
  background: #e8e3d9;
}
.upload-card::after {
  width: 20px;
  height: 20px;
  background: linear-gradient(225deg, var(--bg) 49%, rgba(20,44,49,.24) 50%, rgba(255,253,248,.98) 53%);
}
.upload-zone {
  position: relative;
  min-height: 224px;
  padding: 26px;
  border: 1px solid rgba(20,44,49,.26);
  background-color: #faf7ef;
  background-image:
    linear-gradient(90deg, transparent 49.8%, rgba(20,44,49,.025) 50%, transparent 50.2%),
    repeating-linear-gradient(to bottom, transparent 0, transparent 35px, rgba(49,95,112,.075) 35px, rgba(49,95,112,.075) 36px);
}
.upload-zone::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px dashed rgba(20,44,49,.13);
  pointer-events: none;
}
.upload-zone:hover, .upload-zone.is-dragover {
  border-color: rgba(189,74,60,.72);
  background-color: #fffaf0;
}
.upload-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 17px;
  border: 1px solid rgba(20,44,49,.5);
  background: var(--paper);
  color: var(--red-dark);
  transform: none;
}
.upload-title {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 650;
  letter-spacing: .02em;
}
.upload-hint { margin-top: 9px; font-size: 10px; letter-spacing: .02em; }
.file-preview, .file-preview img { min-height: 224px; height: 224px; }
.upload-seal {
  top: 58px;
  right: 22px;
  width: 58px;
  height: 58px;
  border: 1px solid var(--red);
  background: rgba(255,253,248,.9);
  box-shadow: 0 0 0 4px rgba(255,253,248,.8);
  color: var(--red-dark);
  font-family: var(--display);
  font-size: 9px;
  font-weight: 700;
  transform: rotate(4deg);
  opacity: .86;
}
.form-section { margin-top: 24px; }
.field-label { margin-bottom: 11px; font-size: 11px; letter-spacing: .03em; }
.field-label small { font-size: 9px; }
.type-options { gap: 0; border: 1px solid rgba(20,44,49,.28); }
.type-chip {
  min-height: 45px;
  border: 0;
  border-right: 1px solid rgba(20,44,49,.2);
  background: rgba(255,255,255,.28);
  color: var(--ink);
  font-size: 11px;
}
.type-chip:last-child { border-right: 0; }
.type-chip:hover { background: rgba(221,200,120,.2); }
.type-chip.is-selected { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.type-chip small { font-size: 8px; }
.task-details { margin-top: 15px; border-top-color: rgba(20,44,49,.15); }
.task-details summary { color: var(--ink-soft); font-size: 10px; }
.primary-button {
  min-height: 54px;
  margin-top: 18px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 13px 30px rgba(20,44,49,.16);
  font-family: var(--ui);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
}
.primary-button::after { content: "  →"; color: var(--yellow); }
.primary-button:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  box-shadow: 0 16px 34px rgba(136,47,38,.18);
  transform: translateY(-1px);
}
.primary-button:active { transform: translateY(1px); box-shadow: 0 5px 16px rgba(20,44,49,.14); }
.sample-button { margin-top: 14px; color: var(--ink-soft); font-size: 10px; }
.quota-line { margin-top: 14px; padding: 0; border: 0; background: transparent; font-size: 9px; }
.quota-line strong { color: var(--green); }
.quota-line.is-empty { border: 0; background: transparent; color: var(--red-dark); }
.privacy-note { margin-top: 8px; padding-left: 0; border-left: 0; font-size: 8.5px; opacity: .56; }

.report { padding: 28px 0 84px; }
.report-toolbar { margin-bottom: 14px; }
.back-button { font-size: 11px; }
.report-mode { font-size: 10px; }
.report-sheet {
  border: 1px solid rgba(20,44,49,.35);
  background-color: var(--paper);
  box-shadow: 0 28px 74px rgba(20,44,49,.11);
}
.report-sheet::before { width: 3px; background: var(--red); opacity: .85; }
.report-head {
  grid-template-columns: 218px minmax(0, 1fr);
  gap: 48px;
  padding: 48px 56px 40px;
}
.score-column { align-items: center; }
.score-stamp {
  width: 158px;
  height: 158px;
  border: 1px solid var(--ink);
  background: #f8f4ea;
  color: var(--ink);
  box-shadow: inset 0 0 0 7px var(--paper), inset 0 0 0 8px rgba(20,44,49,.22), 0 12px 30px rgba(20,44,49,.07);
  transform: rotate(-1.5deg);
}
.score-stamp.is-live { box-shadow: inset 0 0 0 7px var(--paper), inset 0 0 0 8px rgba(20,44,49,.22), 0 12px 30px rgba(20,44,49,.07); }
.score-value { font-family: var(--display); font-size: 58px; font-weight: 700; color: var(--ink); }
.score-max { font-size: 13px; color: var(--ink-soft); }
.score-caption { margin-top: 4px; color: var(--green); font-size: 9px; letter-spacing: .2em; }
.score-range { margin-top: 22px; color: var(--ink-soft); font-size: 10px; line-height: 1.75; }
.score-range strong { color: var(--ink); font-weight: 700; }
.band-chip {
  margin-top: 10px;
  padding: 4px 8px 3px;
  border: 1px solid rgba(20,44,49,.26);
  background: transparent;
  color: var(--ink);
  font-size: 9px;
  letter-spacing: .04em;
}
.report-summary { position: relative; padding-top: 2px; }
.report-summary::before {
  content: "EDITOR'S NOTE / 总体诊断";
  display: block;
  margin-bottom: 11px;
  color: var(--red-dark);
  font-family: var(--ui);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .16em;
}
.report-title {
  max-width: 780px;
  font-family: var(--display);
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: -.018em;
}
.report-meta { margin: 14px 0 17px; gap: 7px; color: var(--ink-soft); font-size: 9px; }
.report-meta strong, .report-meta span {
  padding: 3px 7px 2px;
  border: 1px solid rgba(20,44,49,.14);
  background: rgba(255,255,255,.28);
  font-weight: 550;
}
.report-meta strong { color: var(--ink); border-color: rgba(20,44,49,.24); }
.report-lead { color: #41595d; font-size: 12.5px; line-height: 1.9; text-wrap: pretty; }
.quick-notes { margin-top: 20px; gap: 10px; }
.quick-note {
  border-color: rgba(20,44,49,.13);
  border-left: 2px solid var(--green);
  background: rgba(46,107,88,.045);
  padding: 12px 14px;
}
.quick-note.issue { border-left-color: var(--red); background: rgba(189,74,60,.045); }
.quick-note b { font-size: 9px; letter-spacing: .06em; }
.quick-note p { color: var(--ink-soft); font-size: 10px; line-height: 1.7; }
.score-rationale {
  margin-top: 22px;
  padding: 2px 0 0 16px;
  border-left: 1px solid rgba(20,44,49,.32);
  background: transparent;
  color: var(--ink-soft);
  font-size: 10.5px;
  line-height: 1.82;
}
.score-rationale b { margin-bottom: 7px; color: var(--ink); font-size: 10px; letter-spacing: .03em; }
.score-rationale p { margin-bottom: 5px; }
.score-rationale .next-band { margin-top: 9px; color: var(--green); }
.score-audit { border: 0; border-top: 1px solid rgba(20,44,49,.12); background: transparent; padding: 10px 0 0; }

.report-content { grid-template-columns: 168px minmax(0, 1fr); gap: 46px; padding: 0 56px 56px; }
.side-index { padding-top: 14px; }
.side-label { color: var(--red-dark); font-size: 8px; letter-spacing: .15em; }
.side-nav a { border-bottom-color: rgba(20,44,49,.12); font-size: 10px; }
.side-nav a:hover { color: var(--red-dark); }
.confidence-box { border-color: rgba(20,44,49,.13); background: rgba(255,255,255,.25); }
.report-main { min-width: 0; }
.section-heading h2, .report-main .section-heading h2 {
  padding-left: 0;
  border-left: 0;
  font-family: var(--display);
  font-size: 25px;
  font-weight: 650;
  letter-spacing: -.01em;
}
.report-main .section-heading h2::before {
  content: "";
  display: inline-block;
  width: 15px;
  height: 1px;
  margin: 0 9px 6px 0;
  background: var(--red);
}
.section-heading p { font-size: 9px; letter-spacing: .03em; }
.dimension { padding: 12px 0; border-bottom: 1px solid rgba(20,44,49,.1); }
.dimension-track { height: 4px; border: 0; background: rgba(20,44,49,.09); }
.dimension-fill { background: var(--green); }
.dimension-reason { font-size: 9.5px; }
.content-check-item { border-bottom-color: rgba(20,44,49,.1); }
.content-status { border-radius: 999px; }
.continuity-item { border-color: rgba(20,44,49,.12); background: #faf7ef; }
.lift-plan-item { border-bottom-color: rgba(20,44,49,.12); }
.lift-plan-item code { border-radius: 0; border-left: 2px solid rgba(46,107,88,.4); background: #f5f7f2; }

.sentence-list { border-top-color: rgba(20,44,49,.2); }
.sentence-item { grid-template-columns: 38px minmax(0, 1fr); gap: 14px; padding: 24px 0 26px; border-bottom-color: rgba(20,44,49,.12); }
.sentence-item:hover { background: rgba(221,200,120,.06); }
.sentence-number { color: var(--red-dark); font-size: 11px; letter-spacing: .05em; }
.sentence-topline { margin-bottom: 10px; gap: 6px; }
.issue-tag {
  padding: 3px 7px 2px;
  border-color: rgba(189,74,60,.35);
  border-radius: 999px;
  background: rgba(189,74,60,.055);
  color: var(--red-dark);
  font-size: 9px;
}
.issue-tag.keep { border-color: rgba(46,107,88,.3); background: rgba(46,107,88,.055); }
.issue-tag.optional { border-color: rgba(157,128,29,.34); background: rgba(221,200,120,.1); }
.tag-meta { font-size: 7px; }
.original-text { color: #263d42; font-size: 17px; line-height: 1.76; }
.issue-explain-list { gap: 6px; margin-top: 10px; }
.issue-explain-list li { font-size: 10.5px; line-height: 1.72; }
.revision {
  margin-top: 14px;
  padding: 12px 14px;
  border-left: 2px solid var(--green);
  background: rgba(46,107,88,.055);
}
.revision-label { font-size: 9px; letter-spacing: .05em; }
.revision p { font-size: 15px; line-height: 1.72; }
.level-up-suggestion {
  margin-top: 10px;
  padding: 13px 15px 14px;
  border: 1px solid rgba(157,128,29,.25);
  border-left: 2px solid var(--yellow);
  border-radius: 0;
  background: linear-gradient(135deg, rgba(221,200,120,.14), rgba(255,253,248,.6));
}
.level-up-label { color: #746019; font-size: 9px; letter-spacing: .05em; }
.level-up-suggestion p { color: var(--ink); font-size: 16px; line-height: 1.75; }
.level-up-suggestion small { color: var(--ink-soft); font-size: 9.5px; }
.upgrade-level { border-radius: 999px; border-color: rgba(116,96,25,.3); font-size: 7px; }

.upgrade-list { border-top-color: rgba(20,44,49,.32); }
.upgrade-row { border-bottom-color: rgba(20,44,49,.12); font-size: 13px; }
.upgrade-after { color: var(--green); }
.optimized-panel {
  border-color: rgba(20,44,49,.26);
  background: repeating-linear-gradient(to bottom, transparent 0, transparent 31px, rgba(49,95,112,.065) 31px, rgba(49,95,112,.065) 32px), #faf7ef;
}
.optimized-panel::before { width: 2px; }
.optimized-text { font-size: 15px; line-height: 1.9; }
.copy-button { border-radius: 999px; font-size: 9px; }
.optimized-head strong { font-family: var(--display); font-size: 14px; }

.site-footer {
  width: min(1240px, calc(100% - 64px));
  padding: 0 0 28px;
  border-top: 1px solid rgba(20,44,49,.1);
  padding-top: 16px;
  font-size: 9px;
}
.footer-mark { font-family: var(--display); font-size: 12px; letter-spacing: .08em; }

/* Corpus / library follows the same editorial language */
.library-page { width: min(1240px, calc(100% - 64px)); padding-top: 48px; }
.library-hero h1, .corpus-hero h1 {
  font-family: var(--display);
  font-size: clamp(42px, 4.5vw, 62px);
  font-weight: 700;
  letter-spacing: -.02em;
}
.library-hero p, .corpus-hero p { color: var(--ink-soft); font-size: 12px; line-height: 1.85; }
.library-stat, .corpus-stat {
  border-color: rgba(20,44,49,.14);
  border-radius: 0;
  background: rgba(255,253,248,.55);
  box-shadow: none;
}
.library-stat strong, .corpus-stat strong { font-family: var(--display); font-weight: 650; }
.library-editor, .library-browser {
  border-color: rgba(20,44,49,.3);
  border-radius: 0;
  background: var(--paper);
  box-shadow: 0 22px 55px rgba(20,44,49,.08);
  backdrop-filter: none;
}
.library-editor, .library-browser { padding: 28px; }
.editor-head, .browser-head { border-color: rgba(20,44,49,.13); }
.editor-head h2, .browser-head h2 { font-family: var(--display); font-weight: 650; }
#extractForm select, #extractForm textarea, .library-tools input, .library-tools select {
  border-color: rgba(20,44,49,.2);
  border-radius: 0;
  background: #faf7ef;
}
#extractForm select:focus, #extractForm textarea:focus, .library-tools input:focus, .library-tools select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(189,74,60,.1);
}
.library-button {
  border-color: var(--ink);
  border-radius: 0;
  background: transparent;
}
.library-button.primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: none;
}
.library-button.primary:hover { background: var(--red-dark); }
.library-button:hover { background: rgba(221,200,120,.24); }
.library-tag { border-radius: 999px; background: transparent; }
.corpus-card, .draft-card { border-color: rgba(20,44,49,.12); background: #faf7ef; }
.page-button { border-radius: 0; }

@media (max-width: 1050px) {
  .landing { grid-template-columns: minmax(0, 1fr) minmax(370px, .82fr); gap: 44px; }
  .hero { padding-left: 28px; }
  .report-head { grid-template-columns: 190px minmax(0, 1fr); gap: 34px; padding-inline: 38px; }
  .report-content { padding-inline: 38px; gap: 32px; }
}

@media (max-width: 900px) {
  main { width: min(100% - 40px, 1240px); }
  .site-header { padding-inline: 20px; }
  .landing { grid-template-columns: 1fr; gap: 48px; padding: 48px 0 70px; }
  .hero { padding-left: 0; }
  .hero::before { display: none; }
  .upload-shell { width: min(540px, 100%); justify-self: start; }
  .report-head { grid-template-columns: 1fr; gap: 28px; }
  .report-content { grid-template-columns: 1fr; }
  .side-index { border-bottom: 1px solid rgba(20,44,49,.12); }
  .side-nav { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
  body { background-size: auto, auto, 36px 36px, 36px 36px, auto; }
  main, .site-footer { width: min(100% - 28px, 1240px); }
  .site-header { padding: 10px 14px; }
  .brand-stamp { width: 33px; height: 33px; font-size: 18px; }
  .brand-name { font-size: 17px; }
  .brand-sub { font-size: 8px; letter-spacing: .12em; }
  .api-connect { min-height: 36px; padding: 7px 10px; font-size: 9px; }
  .api-connect .api-label { max-width: 58px; }

  .landing { padding-top: 38px; gap: 40px; }
  .hero-kicker { margin-bottom: 17px; font-size: 10px; }
  .hero-kicker::before { width: 14px; }
  .hero-title {
    font-size: clamp(40px, 11.5vw, 50px);
    line-height: 1.15;
    letter-spacing: -.02em;
  }
  .title-line { white-space: nowrap; }
  .title-tail { display: block; margin-top: .08em; }
  .title-marked svg { bottom: -3px; height: 7px; }
  .title-marked path { stroke-width: 3; }
  .hero-copy { margin-top: 22px; font-size: 14px; line-height: 1.9; }
  .hero-sample { margin-top: 21px; padding: 13px 14px 14px; }
  .hero-sample::after { display: none; }
  .hero-sample-line { padding-right: 0; }
  .sample-before { font-size: 12px; }
  .sample-after { font-size: 13px; }
  .hero-promises { margin-top: 21px; }
  .hero-promises span { padding-top: 11px; font-size: 10px; }
  .hero-footnote { margin-top: 17px; font-size: 9px; }

  .upload-shell { padding-top: 10px; }
  .upload-card { padding: 27px 17px 20px; box-shadow: 0 20px 48px rgba(20,44,49,.11); }
  .upload-zone, .file-preview, .file-preview img { min-height: 210px; height: 210px; }
  .upload-title { font-size: 19px; }
  .upload-seal { top: 52px; right: 16px; width: 52px; height: 52px; font-size: 8px; }
  .type-chip { min-height: 46px; padding: 6px 3px; font-size: 10px; }
  .type-chip small { font-size: 7px; }
  .primary-button { min-height: 52px; }
  .quota-line { font-size: 8.5px; }

  .report { padding-top: 18px; }
  .report-toolbar { margin-bottom: 10px; align-items: center; }
  .report-mode { display: none; }
  .report-sheet { box-shadow: 0 18px 46px rgba(20,44,49,.08); }
  .report-sheet::before { width: 2px; }
  .report-head { display: block; padding: 20px 16px 22px; }
  .score-column {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 4px 16px;
    align-items: center;
    padding: 0 0 18px;
    border-bottom: 1px solid rgba(20,44,49,.12);
  }
  .score-stamp {
    grid-row: 1 / 3;
    width: 104px;
    height: 104px;
    box-shadow: inset 0 0 0 5px var(--paper), inset 0 0 0 6px rgba(20,44,49,.2);
  }
  .score-value { font-size: 42px; }
  .score-max { font-size: 10px; }
  .score-caption { font-size: 7px; }
  .score-range { align-self: end; margin: 0 0 4px; text-align: left; font-size: 9px; line-height: 1.6; }
  .band-chip { align-self: start; justify-self: start; margin: 0; font-size: 8px; }
  .report-summary { margin-top: 20px; }
  .report-summary::before { margin-bottom: 8px; font-size: 7px; }
  .report-title { font-size: 26px; line-height: 1.42; letter-spacing: -.01em; }
  .report-meta { margin: 11px 0 14px; gap: 5px; font-size: 8px; }
  .report-meta strong, .report-meta span { padding: 3px 6px 2px; }
  .report-lead { font-size: 12px; line-height: 1.88; }
  .quick-notes { grid-template-columns: 1fr; gap: 8px; margin-top: 16px; }
  .quick-note { padding: 11px 12px; }
  .score-rationale { margin-top: 17px; padding-left: 12px; font-size: 10px; }
  .score-audit { font-size: 9px; }

  .report-content { padding: 0 16px 36px; gap: 30px; }
  .side-index { padding: 0 0 17px; }
  .side-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
  .side-nav a { padding: 8px 2px; font-size: 9px; }
  .side-nav a span { font-size: 7px; }
  .section + .section { margin-top: 34px; }
  .section-heading h2, .report-main .section-heading h2 { font-size: 22px; }
  .section-heading p { font-size: 8px; }
  .sentence-item { grid-template-columns: 25px minmax(0, 1fr); gap: 7px; padding: 20px 0 22px; }
  .sentence-number { font-size: 9px; }
  .original-text { font-size: 16px; line-height: 1.75; }
  .revision, .level-up-suggestion { padding: 11px 12px; }
  .revision p, .level-up-suggestion p { font-size: 15px; }
  .upgrade-row { grid-template-columns: 1fr; gap: 5px; }
  .upgrade-arrow { transform: rotate(90deg); text-align: left; }
  .upgrade-after { grid-column: 1; }
  .upgrade-reason { grid-column: 1; }
  .optimized-panel { padding: 20px 15px 18px; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 4px; padding-top: 13px; font-size: 8px; }

  .library-page { width: min(100% - 28px, 1240px); padding-top: 30px; }
  .library-hero h1 { font-size: 46px; }
  .library-hero p { font-size: 11px; }
  .library-layout { gap: 16px; }
  .library-editor, .library-browser { padding: 18px 14px; box-shadow: 0 14px 34px rgba(20,44,49,.07); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}


/* Visual refinement V2.1 */
.landing { column-gap: clamp(52px, 7vw, 96px); row-gap: 38px; }
.method-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(240px, .72fr) minmax(0, 1.28fr);
  gap: 40px;
  align-items: stretch;
  padding-top: 22px;
  border-top: 1px solid rgba(20,44,49,.16);
}
.method-quote > span {
  display: block;
  margin-bottom: 8px;
  color: var(--red-dark);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .16em;
}
.method-quote p {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(17px, 1.7vw, 22px);
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: -.01em;
}
.method-quote em { color: var(--green); font-style: normal; }
.method-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.method-steps > div { padding: 0 18px; border-left: 1px solid rgba(20,44,49,.14); }
.method-steps b {
  display: block;
  margin-bottom: 5px;
  color: var(--red-dark);
  font-size: 8px;
  letter-spacing: .12em;
}
.method-steps span { display: block; font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.method-steps small { display: block; margin-top: 5px; color: var(--ink-soft); font-size: 9px; line-height: 1.65; }

.title-dot { color: var(--ink); }
.title-marked svg { opacity: .62; }
.title-marked path { stroke-width: 3; }
.brand-sub { color: #617174; font-size: 10px; }
.hero-sample-line { gap: 8px 12px; }
.sample-before { font-size: 14px; }
.sample-after { font-size: 15px; }
.task-details summary::before {
  width: 15px;
  height: 15px;
  margin-right: 7px;
  border: 1px solid rgba(20,44,49,.2);
  border-radius: 50%;
  color: var(--ink-soft);
  font-family: var(--ui);
  font-size: 10px;
  line-height: 13px;
  text-align: center;
  vertical-align: -1px;
}
.task-details[open] summary::before { content: "−"; }
.upload-card { box-shadow: 0 24px 60px rgba(20,44,49,.105), 0 2px 0 rgba(20,44,49,.05); }
.upload-seal {
  top: 50px;
  right: 21px;
  width: 52px;
  height: 42px;
  border-radius: 0;
  border: 1px solid rgba(189,74,60,.7);
  background: rgba(255,253,248,.94);
  box-shadow: 4px 4px 0 rgba(20,44,49,.055);
  font-family: var(--ui);
  font-size: 8px;
  line-height: 1.35;
  letter-spacing: .08em;
  transform: none;
}
.type-chip { display: flex; flex-direction: column; justify-content: center; align-items: center; line-height: 1.12; }
.primary-button { margin-top: 15px; }
.sample-button { margin-top: 11px; padding-bottom: 6px; color: #53676a; font-size: 11px; }
.quota-line { margin-top: 17px; color: #5d7072; font-size: 9.5px; }
.privacy-note { margin-top: 9px; color: #6a7b7d; font-size: 9px; opacity: .78; }

.score-range { align-self: end; }
.band-chip { align-self: start; padding: 5px 9px 4px; }
.report-meta { gap: 7px 6px; }
.report-meta strong, .report-meta span { padding: 4px 8px 3px; line-height: 1.25; }
.score-rationale { line-height: 1.94; }
.score-rationale p { margin: 0 0 8px; }
.score-rationale p:last-of-type { margin-bottom: 0; }
.quick-note p { color: #4c6265; }
.dimension { grid-template-columns: 104px minmax(0,1fr) 58px; gap: 12px; }
.dimension-track { height: 6px; }
.dimension-reason { color: #40575b; font-size: 10px; line-height: 1.7; }
.side-label { margin: 0 0 9px; }
.side-nav a { display: grid; grid-template-columns: 20px minmax(0,1fr); align-items: baseline; column-gap: 7px; }
.side-nav a span { line-height: 1; }
.side-nav a { line-height: 1.35; }

@media (max-width: 900px) {
  .method-strip { grid-template-columns: 1fr; gap: 20px; }
  .method-steps > div:first-child { padding-left: 0; border-left: 0; }
}
@media (max-width: 600px) {
  .landing { row-gap: 30px; }
  .method-strip { padding-top: 18px; }
  .method-quote p { font-size: 19px; }
  .method-steps { grid-template-columns: 1fr; gap: 0; border-top: 1px solid rgba(20,44,49,.1); }
  .method-steps > div {
    display: grid;
    grid-template-columns: 28px 50px minmax(0,1fr);
    align-items: baseline;
    gap: 8px;
    padding: 10px 0;
    border-left: 0;
    border-bottom: 1px solid rgba(20,44,49,.1);
  }
  .method-steps b { margin: 0; }
  .method-steps span { font-size: 10px; }
  .method-steps small { margin: 0; font-size: 8.5px; line-height: 1.55; }
  .brand-sub { font-size: 8px; color: #617174; }
  .hero-sample .sample-before { font-size: 12.5px; }
  .hero-sample .sample-after { font-size: 13.5px; }
  .upload-seal { top: 48px; right: 15px; width: 48px; height: 40px; font-size: 7.5px; }
  .report { padding-top: 26px; }
  .score-column { align-content: center; }
  .score-range { align-self: center; margin: 0; font-size: 9.5px; line-height: 1.7; }
  .band-chip { align-self: center; margin: 2px 0 0; padding: 4px 8px 3px; }
  .report-meta { gap: 5px; }
  .report-meta strong, .report-meta span { padding: 4px 7px 3px; font-size: 8px; }
  .score-rationale { line-height: 1.9; }
  .score-rationale p { margin-bottom: 7px; }
  .dimension { grid-template-columns: 82px minmax(0,1fr) 48px; gap: 8px; }
  .dimension-track { height: 6px; }
  .dimension-reason { font-size: 9.5px; line-height: 1.7; }
  .side-index { padding-top: 2px; }
  .side-nav a { grid-template-columns: 16px minmax(0,1fr); column-gap: 5px; padding: 9px 2px 8px; }
  .side-nav a span { font-size: 7px; }
}


/* Final readability pass */
.report-title { text-wrap: pretty; }
.original-label {
  display: block;
  margin: 0 0 5px;
  color: rgba(20,44,49,.42);
  font-family: var(--ui);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .14em;
}
.report-meta { max-width: 780px; }
@media (max-width: 600px) {
  .report-meta { max-width: 100%; gap: 6px; }
  .report-meta strong, .report-meta span { padding: 4px 8px 3px; font-size: 8.5px; }
  .report-title { text-wrap: pretty; }
  .original-label { margin-bottom: 4px; font-size: 6.5px; }
}


/* Secondary-copy contrast */
.hero-footnote { color: #4b5f62; opacity: 1; font-size: 10.5px; }
.sample-button { color: #40575b; font-size: 11px; }
.quota-line { color: #4c6063; font-size: 9.5px; }
.privacy-note { color: #607174; opacity: 1; font-size: 9px; }
@media (max-width: 600px) {
  .hero-footnote { font-size: 10px; }
  .sample-button { font-size: 10.5px; }
  .quota-line { font-size: 9px; }
  .privacy-note { font-size: 8.5px; }
}


/* Corpus tag legibility */
.library-tag {
  padding: 3px 7px 2px;
  color: #4b6063;
  font-size: 8.5px;
  letter-spacing: .02em;
}
.library-tag.type { color: var(--red-dark); border-color: rgba(189,74,60,.34); }
.library-tag.advanced { color: #66520c; }
.library-tag.safe { color: var(--green); }
