:root {
  --navy: #17253b;
  --navy-2: #243b5c;
  --ink: #253247;
  --muted: #718096;
  --line: #e1e7ef;
  --paper: #f5f7fa;
  --blue: #4e7fd3;
  --blue-dark: #315fa8;
  --orange: #e9793b;
  --green: #279477;
  --red: #c94b5c;
  --white: #fff;
  --shadow: 0 24px 70px rgba(25, 43, 70, .13);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font-family: 'Varela Round', 'PingFang SC', 'Microsoft YaHei', sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: 'Montserrat', 'PingFang SC', 'Microsoft YaHei', sans-serif; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
.page-container { width: calc(100% - 40px); max-width: 1180px; margin-right: auto; margin-left: auto; }
.eyebrow { color: #76a4f2; font-size: 11px; font-weight: 800; letter-spacing: .14em; }

.quality-hero { overflow: hidden; padding: 70px 0 116px; background: radial-gradient(circle at 78% 22%, rgba(83,136,224,.28), transparent 30%), linear-gradient(125deg, #142238, #243b5b 58%, #315276); color: #fff; }
.quality-hero-grid { display: grid; grid-template-columns: 1.18fr .82fr; gap: 70px; align-items: center; }
.quality-hero h1 { margin: 14px 0 20px; color: #fff; font-size: 58px; font-size: clamp(42px, 6vw, 68px); line-height: 1.06; letter-spacing: -.055em; }
.quality-hero h1 em { color: #8ab5ff; font-style: normal; }
.quality-hero-copy > p { max-width: 680px; margin: 0; color: rgba(255,255,255,.73); font-size: 17px; line-height: 1.85; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.hero-badges span { padding: 8px 12px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; background: rgba(255,255,255,.07); color: rgba(255,255,255,.86); font-size: 12px; }
.quality-hero-card { display: grid; grid-template-columns: 140px 1fr; gap: 26px; align-items: center; padding: 28px; border: 1px solid rgba(255,255,255,.16); border-radius: 24px; background: rgba(255,255,255,.08); box-shadow: inset 0 1px rgba(255,255,255,.1); }
.hero-score { display: grid; place-items: center; width: 136px; height: 136px; border: 12px solid rgba(134,177,246,.24); border-top-color: #78a8f3; border-right-color: #78a8f3; border-radius: 50%; }
.hero-score strong { margin-bottom: -33px; font-size: 40px; line-height: 1; }
.hero-score span { color: rgba(255,255,255,.62); font-size: 11px; }
.hero-dimensions { display: grid; gap: 13px; }
.hero-dimensions span { display: grid; grid-template-columns: minmax(90px,1fr) auto; gap: 10px; align-items: center; position: relative; padding-top: 9px; color: rgba(255,255,255,.82); font-size: 12px; }
.hero-dimensions span::before, .hero-dimensions span i { content: ''; position: absolute; top: 0; left: 0; height: 3px; border-radius: 3px; }
.hero-dimensions span::before { width: 100%; background: rgba(255,255,255,.12); }
.hero-dimensions span i { width: var(--level); background: #7faef7; }

.quality-workspace { position: relative; z-index: 2; margin-top: -64px; padding-bottom: 90px; }
.mode-tabs { display: inline-flex; gap: 5px; margin: 0 0 16px 18px; padding: 5px; border: 1px solid rgba(225,231,239,.92); border-radius: 13px; background: rgba(255,255,255,.97); box-shadow: 0 10px 30px rgba(31,51,80,.08); }
.mode-tabs button { min-height: 42px; padding: 0 18px; border: 0; border-radius: 9px; cursor: pointer; background: transparent; color: #69768a; font-size: 13px; font-weight: 750; }
.mode-tabs button i { margin-right: 6px; }
.mode-tabs button b { margin-left: 5px; padding: 3px 6px; border-radius: 5px; background: #edf2f9; color: #7284a0; font-size: 10px; }
.mode-tabs button.active { background: #315fa8; color: #fff; box-shadow: 0 8px 20px rgba(49,95,168,.22); }
.mode-tabs button.active b { background: rgba(255,255,255,.18); color: #fff; }
.mode-panel { display: none; }
.mode-panel.active { display: block; }
.inspection-grid { display: grid; grid-template-columns: minmax(0,.82fr) minmax(520px,1.18fr); gap: 22px; align-items: start; }
.quality-card { border: 1px solid rgba(225,231,239,.94); border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.input-card { padding: 30px; }
.card-heading { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 25px; }
.card-heading .step { display: grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; background: #edf4ff; color: var(--blue-dark); font-weight: 800; }
.card-heading h2, .card-heading p { margin: 0; }
.card-heading h2 { margin-bottom: 6px; font-size: 23px; }
.card-heading p { color: var(--muted); font-size: 12px; line-height: 1.55; }
.meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 15px; }
.ocr-import { margin: 2px 0 18px; padding: 15px; border: 1px dashed #b9c8dc; border-radius: 13px; background: linear-gradient(135deg,#f7faff,#fbfcfe); }
.ocr-import-heading, .ocr-import-heading > div, .ocr-options { display: flex; align-items: center; }
.ocr-import-heading { justify-content: space-between; gap: 14px; }
.ocr-import-heading > div { min-width: 0; gap: 10px; }
.ocr-import-heading strong, .ocr-import-heading small { display: block; }
.ocr-import-heading strong { color: #33445d; font-size: 13px; }
.ocr-import-heading small { margin-top: 3px; color: #8490a1; font-size: 10px; line-height: 1.45; }
.ocr-icon { display: grid; place-items: center; flex: 0 0 auto; width: 35px; height: 35px; border-radius: 10px; background: #e8f1ff; color: var(--blue-dark); }
.ocr-upload-button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; gap: 6px; min-height: 36px; padding: 0 11px; border-radius: 8px; cursor: pointer; background: #315fa8; color: #fff; font-size: 11px; font-weight: 750; }
.ocr-upload-button input { display: none; }
.ocr-options { justify-content: space-between; gap: 12px; margin-top: 13px; padding-top: 11px; border-top: 1px solid #e4eaf2; color: #768397; font-size: 10px; }
.paste-tip kbd { margin-right: 5px; padding: 3px 6px; border: 1px solid #d6dfec; border-bottom-width: 2px; border-radius: 5px; background: #fff; color: #4d5d73; font-family: inherit; font-size: 9px; }
.ocr-options label { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.ocr-options select { height: 30px; padding: 0 23px 0 8px; border: 1px solid #d4dce7; border-radius: 7px; outline: none; background: #fff; color: #526176; font-size: 10px; }
.ocr-preview { display: grid; gap: 8px; margin-top: 12px; }
.ocr-preview-item { display: grid; grid-template-columns: 48px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 8px; border: 1px solid #dfe6ef; border-radius: 9px; background: #fff; }
.ocr-preview-item img { display: block; width: 48px; height: 48px; border-radius: 7px; object-fit: cover; }
.ocr-preview-item strong, .ocr-preview-item span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ocr-preview-item strong { color: #526075; font-size: 11px; }
.ocr-preview-item span { margin-top: 4px; color: #8b95a4; font-size: 10px; }
.ocr-preview-item.is-processing span { color: #416fac; }
.ocr-preview-item.is-success span { color: #31816a; }
.ocr-preview-item.is-failed span { color: #b33c4d; }
.ocr-preview-item button { width: 30px; height: 30px; border: 0; border-radius: 7px; cursor: pointer; background: #f1f4f8; color: #7b8798; }
.ocr-import .form-message { margin: 10px 0 0; }
.ocr-import .form-message.success { background: #edf8f4; color: #28715d; }
.field { display: block; margin-bottom: 16px; }
.field > span { display: flex; align-items: center; margin-bottom: 8px; color: #445166; font-size: 13px; font-weight: 750; }
.field > span em { margin-left: 4px; color: var(--red); font-style: normal; }
.field > span small { margin-left: 5px; color: #99a2b0; font-size: 11px; font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #cfd7e2; border-radius: 10px; outline: none; background: #fff; color: var(--ink); transition: border .15s, box-shadow .15s; }
.field input, .field select { height: 46px; padding: 0 12px; }
.field textarea { min-height: 290px; padding: 14px; line-height: 1.7; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(78,127,211,.11); }
.field input::placeholder, .field textarea::placeholder { color: #a3abb7; }
.conversation-field > span small { margin-left: auto; }
.suffix-input { position: relative; }
.suffix-input input { padding-right: 42px; }
.suffix-input b { position: absolute; top: 14px; right: 12px; color: #8d98a7; font-size: 11px; }
.primary-button, .secondary-button, .file-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px; cursor: pointer; font-weight: 750; }
.primary-button { width: 100%; min-height: 52px; padding: 0 18px; background: linear-gradient(135deg,#315fa8,#5787d7); color: #fff; box-shadow: 0 12px 25px rgba(49,95,168,.22); }
.primary-button:hover { filter: brightness(1.04); transform: translateY(-1px); }
.primary-button:disabled { cursor: not-allowed; opacity: .55; transform: none; }
.secondary-button, .file-button { min-height: 42px; padding: 0 14px; border: 1px solid #d8e0eb; background: #fff; color: #52637b; font-size: 12px; }
.file-button { background: #315fa8; color: #fff; }
.file-button input { display: none; }
.privacy-note { margin: 13px 0 0; color: #8e98a7; font-size: 11px; line-height: 1.65; text-align: center; }
.privacy-note i { margin-right: 5px; color: var(--green); }
.form-message { margin-bottom: 13px; padding: 11px 13px; border-radius: 9px; font-size: 12px; line-height: 1.6; }
.form-message.error { background: #fff0f2; color: #aa3445; }

.report-card { min-height: 780px; padding: 30px; }
.report-placeholder { display: flex; flex-direction: column; justify-content: center; min-height: 716px; text-align: center; }
.placeholder-radar { position: relative; width: 170px; height: 150px; margin: 0 auto 23px; }
.placeholder-radar::before, .placeholder-radar::after, .placeholder-radar span { content: ''; position: absolute; inset: 13px 20px; border: 1px solid #dce3ec; transform: rotate(45deg); }
.placeholder-radar::after { inset: 32px 40px; }
.placeholder-radar span:nth-child(2) { inset: 50px 60px; }
.placeholder-radar i { display: grid; place-items: center; position: absolute; inset: 47px 57px; z-index: 2; border-radius: 14px; background: #edf4ff; color: var(--blue-dark); font-size: 25px; }
.report-placeholder h2 { margin: 0 0 10px; font-size: 23px; }
.report-placeholder > p { max-width: 430px; margin: 0 auto 23px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.quota-display { width: min(320px,100%); margin: 0 auto; padding: 15px 17px; border-radius: 13px; background: var(--paper); text-align: left; }
.quota-display span, .quota-display small { display: block; color: var(--muted); font-size: 10px; }
.quota-display strong { float: right; margin-top: -17px; color: var(--blue-dark); font-size: 31px; }
.quota-display small { margin-top: 5px; }
.report-top { display: grid; grid-template-columns: 126px 1fr; gap: 23px; align-items: center; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.score-ring { display: grid; place-items: center; width: 120px; height: 120px; border: 10px solid #e8eef7; border-top-color: var(--score-color,#4e7fd3); border-right-color: var(--score-color,#4e7fd3); border-radius: 50%; }
.score-ring strong { margin-bottom: -31px; color: var(--score-color,#315fa8); font-size: 39px; line-height: 1; }
.score-ring span { color: #8a95a5; font-size: 10px; }
.report-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.report-tags b, .report-tags span { padding: 5px 8px; border-radius: 6px; background: #edf4ff; color: var(--blue-dark); font-size: 11px; }
.report-tags span { background: #f2f4f7; color: #6c7889; }
.report-summary h2 { margin: 10px 0 7px; font-size: 23px; }
.report-summary p { margin: 0; color: #657287; font-size: 12px; line-height: 1.75; }
.report-visual-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 18px; align-items: center; margin: 23px 0; }
.radar-wrap { min-width: 0; border: 1px solid var(--line); border-radius: 15px; background: #fbfcfe; text-align: center; }
.radar-wrap canvas { display: block; width: 100%; max-width: 360px; height: 260px; margin: auto; }
.dimension-bars { display: grid; gap: 13px; }
.dimension-bar header { display: flex; justify-content: space-between; margin-bottom: 6px; color: #4c596d; font-size: 11px; font-weight: 750; }
.dimension-bar header b { color: var(--blue-dark); font-size: 13px; }
.dimension-bar > span { display: block; height: 7px; overflow: hidden; border-radius: 9px; background: #edf1f6; }
.dimension-bar > span i { display: block; width: var(--score); height: 100%; border-radius: inherit; background: var(--bar-color,#4e7fd3); }
.critical-alert { display: flex; gap: 12px; align-items: center; margin: 0 0 20px; padding: 14px 16px; border: 1px solid #f1c7cd; border-radius: 12px; background: #fff3f4; color: #a33d4b; }
.critical-alert > i { font-size: 19px; }
.critical-alert strong, .critical-alert span { display: block; }
.critical-alert strong { margin-bottom: 3px; font-size: 13px; }
.critical-alert span { font-size: 11px; }
.dimension-details { display: grid; gap: 10px; }
.dimension-detail { border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.dimension-detail summary { display: grid; grid-template-columns: 34px 1fr auto auto; gap: 10px; align-items: center; min-height: 58px; padding: 9px 13px; cursor: pointer; list-style: none; }
.dimension-detail summary::-webkit-details-marker { display: none; }
.dimension-detail summary > i:first-child { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: #eef4fc; color: var(--blue-dark); }
.dimension-detail summary strong, .dimension-detail summary small { display: block; }
.dimension-detail summary strong { font-size: 13px; }
.dimension-detail summary small { margin-top: 2px; color: #8a95a5; font-size: 11px; }
.dimension-detail summary b { color: var(--blue-dark); font-size: 18px; }
.dimension-detail summary .fa-angle-down { color: #a1a9b5; transition: transform .16s; }
.dimension-detail[open] summary .fa-angle-down { transform: rotate(180deg); }
.dimension-body { padding: 0 16px 16px 57px; color: #657287; font-size: 12px; line-height: 1.7; }
.dimension-body p { margin: 0 0 10px; }
.evidence-list, .suggestion-list { margin: 8px 0 0; padding: 0; list-style: none; }
.evidence-list li, .suggestion-list li { margin-top: 6px; padding: 8px 10px; border-radius: 8px; background: #f7f9fc; }
.evidence-list li::before { content: '证据'; margin-right: 7px; color: #8b96a7; font-size: 8px; font-weight: 800; }
.suggestion-list li::before { content: '建议'; margin-right: 7px; color: var(--green); font-size: 8px; font-weight: 800; }
.report-bottom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.report-bottom-grid > section, .reply-improvements { padding: 17px; border-radius: 13px; background: #f7f9fc; }
.block-title { display: flex; align-items: center; gap: 8px; margin-bottom: 11px; }
.block-title i { color: var(--blue-dark); }
.block-title h3 { margin: 0; font-size: 14px; }
.risk-list { display: grid; gap: 7px; }
.risk-item { padding: 9px 10px; border-left: 3px solid var(--risk-color,#d3a64c); border-radius: 7px; background: #fff; }
.risk-item strong, .risk-item span { display: block; }
.risk-item strong { margin-bottom: 3px; color: #4b586c; font-size: 11px; }
.risk-item span { color: #7b8695; font-size: 11px; line-height: 1.55; }
.action-list { margin: 0; padding-left: 23px; color: #5e6b7e; font-size: 11px; line-height: 1.65; }
.action-list li { margin-bottom: 7px; padding-left: 3px; }
.reply-improvements { margin-top: 14px; }
.reply-improvements #improved-replies { display: grid; gap: 8px; }
.improved-reply { position: relative; padding: 11px 45px 11px 12px; border: 1px solid #e2e7ee; border-radius: 9px; background: #fff; color: #5e6b7d; font-size: 11px; line-height: 1.65; }
.improved-reply button { position: absolute; top: 8px; right: 8px; padding: 5px 7px; border: 0; border-radius: 5px; cursor: pointer; background: #edf3fb; color: var(--blue-dark); font-size: 10px; }
.report-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 18px; padding: 17px; border-radius: 13px; background: #1d2d45; color: #fff; }
.report-cta strong, .report-cta span { display: block; }
.report-cta strong { margin-bottom: 4px; font-size: 13px; }
.report-cta span { color: rgba(255,255,255,.65); font-size: 11px; line-height: 1.5; }
.report-cta > div:last-child { display: flex; gap: 7px; flex: 0 0 auto; }
.report-cta a { padding: 9px 11px; border: 1px solid rgba(255,255,255,.28); border-radius: 7px; color: #fff; font-size: 11px; font-weight: 750; }
.report-cta a.solid { border-color: var(--orange); background: var(--orange); }

.batch-login-gate { display: flex; align-items: center; gap: 22px; padding: 32px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.batch-login-gate > i { display: grid; place-items: center; flex: 0 0 auto; width: 58px; height: 58px; border-radius: 17px; background: #edf4ff; color: var(--blue-dark); font-size: 23px; }
.batch-login-gate div { flex: 1; }
.batch-login-gate h2, .batch-login-gate p { margin: 0; }
.batch-login-gate h2 { margin-bottom: 6px; font-size: 22px; }
.batch-login-gate p { color: var(--muted); font-size: 12px; }
.batch-login-gate a { padding: 12px 16px; border-radius: 9px; background: #315fa8; color: #fff; font-size: 12px; font-weight: 750; }
.batch-workspace { display: grid; gap: 20px; }
.batch-upload-card, .batch-progress-card { padding: 30px; }
.batch-actions { display: flex; gap: 10px; margin-bottom: 18px; }
.file-summary { margin-bottom: 14px; padding: 11px 13px; border-radius: 9px; background: #eef8f5; color: #367563; font-size: 11px; }
.batch-preview { margin-bottom: 16px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.preview-heading { display: flex; justify-content: space-between; padding: 11px 13px; background: #f5f7fa; color: #526078; font-size: 11px; }
#preview-list { max-height: 260px; overflow-y: auto; }
.preview-item { display: grid; grid-template-columns: 36px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 10px 13px; border-top: 1px solid #edf0f4; }
.preview-item > b { color: #8b96a7; font-size: 10px; }
.preview-item strong, .preview-item span { display: block; }
.preview-item strong { font-size: 11px; }
.preview-item span { margin-top: 3px; overflow: hidden; color: #8a95a4; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.preview-item em { color: #8a95a5; font-size: 11px; font-style: normal; }
.progress-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.progress-heading h2 { margin: 7px 0 0; font-size: 22px; }
.status-pill { padding: 7px 10px; border-radius: 999px; background: #edf4ff; color: var(--blue-dark); font-size: 10px; font-weight: 750; }
.progress-track { height: 9px; margin: 22px 0 15px; overflow: hidden; border-radius: 10px; background: #edf1f6; }
.progress-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#315fa8,#68a0ee); transition: width .25s; }
.progress-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.progress-stats span { padding: 12px; border-radius: 10px; background: #f6f8fb; color: #8791a0; font-size: 11px; }
.progress-stats strong { display: block; margin-top: 4px; color: #34445d; font-size: 18px; }
.batch-result-actions { display: flex; justify-content: flex-end; margin-top: 14px; }
.batch-results { display: grid; gap: 8px; margin-top: 15px; }
.batch-result-row { display: grid; grid-template-columns: 44px minmax(0,1fr) 90px 90px; gap: 12px; align-items: center; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; }
.batch-result-row > b { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: #eef4fc; color: var(--blue-dark); }
.batch-result-row strong, .batch-result-row span { display: block; }
.batch-result-row strong { font-size: 11px; }
.batch-result-row span { margin-top: 3px; color: #8a95a5; font-size: 11px; }
.batch-result-row em { color: #687589; font-size: 11px; font-style: normal; text-align: center; }
.batch-result-row button { padding: 7px 9px; border: 1px solid #dce3ec; border-radius: 7px; cursor: pointer; background: #fff; color: var(--blue-dark); font-size: 11px; }
.history-section { padding: 35px 0 0; }
.section-heading { margin-bottom: 29px; text-align: center; }
.section-heading.left { text-align: left; }
.section-heading h2 { margin: 9px 0 8px; font-size: 31px; }
.section-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.history-list { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.history-item, .history-empty { padding: 17px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.history-item { cursor: pointer; }
.history-item:hover { border-color: #aebfda; }
.history-item header { display: flex; justify-content: space-between; gap: 10px; }
.history-item header b { color: var(--blue-dark); font-size: 17px; }
.history-item header span { color: #8b96a6; font-size: 11px; }
.history-item strong, .history-item small { display: block; }
.history-item > strong { margin: 13px 0 5px; font-size: 12px; }
.history-item small { color: #8a95a5; font-size: 11px; }
.history-empty { grid-column: 1 / -1; color: #8a95a5; text-align: center; }

.quality-method { padding: 82px 0; background: #f5f3ee; }
.method-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.method-grid article { padding: 27px; border: 1px solid #e3e0d8; border-radius: 16px; background: rgba(255,255,255,.78); }
.method-grid article > i { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #edf4ff; color: var(--blue-dark); font-size: 18px; }
.method-grid h3 { margin: 22px 0 8px; font-size: 17px; }
.method-grid p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.quality-toast { position: fixed; right: 22px; bottom: 22px; z-index: 100; max-width: 330px; padding: 12px 16px; border-radius: 10px; background: #203149; color: #fff; box-shadow: 0 16px 38px rgba(17,31,50,.23); font-size: 12px; }

@media (max-width: 1050px) {
  .quality-hero-grid { gap: 35px; }
  .inspection-grid { grid-template-columns: 1fr; }
  .report-card { min-height: 0; }
  .report-placeholder { min-height: 480px; }
  .history-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .page-container { width: calc(100% - 24px); }
  .quality-hero { padding: 48px 0 92px; }
  .quality-hero-grid { grid-template-columns: 1fr; }
  .quality-hero h1 { font-size: 39px; }
  .quality-hero-copy > p { font-size: 14px; }
  .quality-hero-card { display: none; }
  .quality-workspace { margin-top: -50px; padding-bottom: 65px; }
  .mode-tabs { display: grid; grid-template-columns: 1fr 1fr; width: calc(100% - 12px); margin: 0 6px 12px; }
  .mode-tabs button { padding: 0 8px; font-size: 11px; }
  .input-card, .report-card, .batch-upload-card, .batch-progress-card { padding: 20px; border-radius: 17px; }
  .meta-grid, .report-visual-grid, .report-bottom-grid, .method-grid { grid-template-columns: 1fr; }
  .ocr-import-heading, .ocr-options { align-items: flex-start; flex-direction: column; }
  .ocr-upload-button { width: 100%; }
  .ocr-options label { justify-content: space-between; width: 100%; }
  .field textarea { min-height: 250px; }
  .report-top { grid-template-columns: 92px 1fr; gap: 15px; }
  .score-ring { width: 88px; height: 88px; border-width: 8px; }
  .score-ring strong { margin-bottom: -26px; font-size: 29px; }
  .report-summary h2 { font-size: 18px; }
  .radar-wrap canvas { height: 240px; }
  .dimension-body { padding-left: 16px; }
  .report-cta { align-items: flex-start; flex-direction: column; }
  .report-cta > div:last-child, .report-cta a { width: 100%; text-align: center; }
  .batch-login-gate { align-items: flex-start; flex-wrap: wrap; padding: 22px; }
  .batch-login-gate div { min-width: calc(100% - 82px); }
  .batch-login-gate a { width: 100%; text-align: center; }
  .batch-actions { flex-direction: column; }
  .batch-actions > * { width: 100%; }
  .progress-stats { grid-template-columns: 1fr 1fr; }
  .batch-result-row { grid-template-columns: 38px minmax(0,1fr) 65px; }
  .batch-result-row button { grid-column: 1 / -1; }
  .history-list { grid-template-columns: 1fr; }
  .section-heading h2 { font-size: 25px; }
}
@media print {
  .tool-nav, .tool-breadcrumb, .quality-hero, .mode-tabs, .input-card, .quality-method, footer, .report-cta, .quality-toast { display: none !important; }
  .quality-workspace { margin: 0; padding: 0; }
  .inspection-grid { display: block; }
  .report-card { border: 0; box-shadow: none; }
}
