.sidebar-nav[data-active-section="revision"] { --sidebar-active-y: 114px; }
body.revision-open .workspace,
body.revision-open .mobile-switcher,
body.revision-open .support-chat { visibility: hidden; pointer-events: none; }
body.revision-open .topbar :is(.document-name, .view-mode-switcher, .page-settings-button, .page-settings-popover, .download-button, .download-menu) { display: none !important; }
body.revision-open .topbar .top-actions { margin-inline-start: auto; }
#revisionView {
  --revision-green: #315f4b;
  --revision-soft-green: #edf3e9;
  position: fixed;
  inset: var(--topbar-height) 0 0 var(--sidebar-width);
  z-index: 97;
  overflow: auto;
  overscroll-behavior: contain;
  background: #f6f6f2;
  padding: clamp(22px, 4vw, 54px);
  color: var(--ink, #171917);
}
body.sidebar-collapsed #revisionView { left: 0; }
.revision-shell { width: 100%; max-width: 1180px; margin-inline: auto; }
#revisionView * { min-width: 0; }
#revisionView button { cursor: pointer; }
#revisionView button:disabled { cursor: default; opacity: .5; }
#revisionView :is(button,input,summary):focus-visible,
.revision-intent-card:focus-visible,
.revision-onboarding-back:focus-visible { outline: 3px solid #54816a; outline-offset: 4px; }
.revision-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.revision-eyebrow { margin: 0 0 12px; color: #54705f; font-size: 11px; font-weight: 750; letter-spacing: .13em; line-height: 1.4; text-transform: uppercase; }
.revision-header h1 { max-width: 790px; margin: 0; font-size: clamp(29px, 3.1vw, 44px); line-height: 1.1; letter-spacing: -.04em; font-weight: 650; overflow-wrap: anywhere; }
.revision-subtitle { max-width: 690px; margin: 15px 0 0; color: #696d65; font-size: 15px; line-height: 1.65; }
.revision-header.has-result { align-items: center; margin-bottom: 23px; }
.revision-header.has-result h1 { font-size: 27px; }
.revision-header.has-result .revision-eyebrow { margin-bottom: 6px; }
.revision-header.has-result .revision-subtitle { margin-top: 7px; font-size: 12px; }
.revision-close { flex: 0 0 36px; height: 36px; border: 1px solid #dedfd7; border-radius: 50%; font-size: 24px; font-weight: 400; line-height: 1; color: #555b51; background: transparent; }
.revision-close:hover { background: #fff; }
.revision-start-grid { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, .85fr); align-items: start; gap: clamp(24px, 4vw, 58px); }
.revision-upload-panel { padding-top: 3px; }
.revision-dropzone { min-height: 316px; display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 30px 22px; border: 1.5px dashed #afb9a7; border-radius: 18px; background: #fdfefa; text-align: center; transition: background-color .15s, border-color .15s; }
.revision-dropzone.is-dragging { background: #e9f2e4; border-color: #315f4b; }
.revision-dropzone.has-file { border-style: solid; border-color: #c1d1ba; }
.revision-dropzone h2 { margin: 20px 0 7px; max-width: 100%; font-size: 20px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.revision-dropzone p { margin: 0 0 19px; color: #727969; font-size: 13px; line-height: 1.5; }
.revision-file-stack { position: relative; width: 95px; height: 85px; }
.revision-file-stack span { position: absolute; top: 7px; left: 31px; width: 58px; height: 74px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 13px; border: 1px solid #d0d7c5; border-radius: 6px; background: #f0f3e7; color: #657653; font-size: 11px; font-weight: 800; letter-spacing: .02em; transform: rotate(10deg); }
.revision-file-stack span:first-child { left: 9px; top: 0; background: #fff; border-color: #d8ddcf; transform: rotate(-11deg); color: #526b78; }
.revision-button { border: 1px solid #d9ddd2; border-radius: 9px; padding: 10px 15px; min-height: 40px; background: #fff; color: #353d30; font-size: 13px; font-weight: 600; line-height: 1.3; white-space: normal; text-align: center; transition: background-color .15s; }
.revision-button:hover { background: #f1f4ec; }
.revision-button.revision-primary { background: var(--revision-green); border-color: var(--revision-green); color: #fff; }
.revision-button.revision-primary:hover { background: #244d3b; }
.revision-text-button { border: 0; background: none; margin-top: 10px; font-size: 12px; color: #75816b; text-decoration: underline; text-underline-offset: 3px; }
.revision-generate-row { margin-top: 18px; text-align: center; }
.revision-generate-row .revision-button { width: 100%; min-height: 47px; font-size: 14px; }
.revision-generate-row p { margin: 10px 0; font-size: 12px; line-height: 1.5; color: #7b8075; }
.revision-privacy { max-width: 460px; margin: 25px auto 0; color: #858a7f; font-size: 11px; line-height: 1.65; text-align: center; }
.revision-preview { margin-top: 14px; border: 1px solid #dedfd7; border-radius: 9px; background: #fff; font-size: 12px; }
.revision-preview summary { cursor: pointer; padding: 13px; color: #57664c; }
.revision-preview p { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 180px; overflow: auto; margin: 0; padding: 0 13px 13px; color: #6b7265; line-height: 1.7; }
.revision-preview-sheet { background: #fffef9; border: 1px solid #e3e2d7; padding: 33px 30px 24px; margin: 18px 4px 0; box-shadow: 0 20px 38px -25px #45532a45, 6px 6px 0 -1px #eaece1; transform: rotate(2deg); }
.revision-sample-label { color: #74836a; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.revision-preview-sheet h3 { font-family: Georgia, serif; font-size: 29px; line-height: 1.15; font-weight: 400; margin: 22px 0; }
.revision-preview-sheet i { display: block; height: 5px; background: #e5e7de; border-radius: 2px; margin: 9px 0; width: 100%; }
.revision-preview-sheet i:nth-last-child(1) { width: 67%; }
.revision-sample-highlight { margin: 25px 0; padding: 18px; background: #edf2df; border-inline-start: 3px solid #9baa73; }
.revision-preview-sheet b { display: block; font-size: 11px; font-weight: 650; margin-bottom: 13px; color: #5c6850; }
.revision-sample-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.revision-sample-footer { display: flex; justify-content: space-between; gap: 10px; margin-top: 30px; padding-top: 15px; border-top: 1px solid #e5e7dd; font-size: 10px; color: #69775e; }
.revision-sample-footer span { letter-spacing: .2em; }
.revision-message { padding: 14px 17px; border: 1px solid #e7c6b5; background: #fff5ed; border-radius: 10px; margin-bottom: 20px; font-size: 13px; line-height: 1.6; color: #7c4025; }
.revision-working { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 13px; color: #45603b; padding-top: 14px; }
.revision-spinner { width: 15px; height: 15px; border: 2px solid #d6dfce; border-top-color: #315f4b; border-radius: 50%; animation: revision-spin .8s linear infinite; flex-shrink: 0; }
@keyframes revision-spin { to { transform: rotate(360deg); } }
.revision-history { margin-top: 45px; padding-top: 24px; border-top: 1px solid #dcded3; }
.revision-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 15px; }
.revision-section-heading h2 { font-size: 15px; margin: 0; font-weight: 650; }
.revision-section-heading > span { color: #7c8374; font-size: 11px; }
.revision-history-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.revision-history-row { display: flex; border: 1px solid #dedfd6; background: #ffffff90; border-radius: 10px; }
.revision-history-row > button:first-child { display: flex; align-items: center; flex: 1; gap: 13px; background: none; border: none; padding: 14px; text-align: start; }
.revision-history-row strong { display: block; font-size: 13px; line-height: 1.4; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.revision-history-row small { display: block; font-size: 11px; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #7b8372; }
.revision-history-icon { flex: 0 0 33px; height: 41px; padding: 0 3px; display: flex; align-items: center; justify-content: center; background: #edf2e7; border: 1px solid #d6dec9; border-radius: 4px; color: #67824c; font-size: 8px; font-weight: 800; }
.revision-history-delete { flex: 0 0 34px; border: none; background: transparent; color: #8c9386; font-size: 21px; }
.revision-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 10px 0 22px; flex-wrap: wrap; }
.revision-tabs { display: flex; padding: 4px; border-radius: 10px; background: #e8ebdf; gap: 4px; }
.revision-tabs button { padding: 10px 17px; color: #647156; border: none; background: transparent; border-radius: 7px; font-size: 13px; font-weight: 650; display: flex; gap: 9px; align-items: center; }
.revision-tabs button[aria-selected="true"] { background: #fff; color: #2b4532; box-shadow: 0 2px 4px #30402a0a; }
.revision-tabs span { border-radius: 4px; background: #e3e9d8; padding: 1px 5px; font-size: 10px; }
.revision-toolbar-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.revision-toolbar-actions .revision-button { font-size: 11px; padding: 9px 12px; }
.revision-sheet { padding: clamp(24px, 4vw, 55px); background: #fffef9; border: 1px solid #e1e1d7; box-shadow: 0 12px 35px -25px #4e553844; overflow-wrap: anywhere; }
.revision-sheet-meta { display: flex; justify-content: space-between; gap: 15px; font-size: 10px; line-height: 1.5; text-transform: uppercase; letter-spacing: .09em; color: #6d7c5f; padding-bottom: 18px; border-bottom: 1px solid #dfe3d2; }
.revision-sheet-heading h2 { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(28px, 3.8vw, 46px); line-height: 1.12; letter-spacing: -.025em; font-weight: 400; margin: 26px 0 12px; }
.revision-sheet-heading p { color: #7b8070; font-size: 14px; line-height: 1.6; margin: 0 0 28px; }
.revision-sheet h3 { margin: 0 0 12px; color: #384d32; font-size: 16px; line-height: 1.35; font-weight: 650; }
.revision-sheet p, .revision-sheet li, .revision-sheet dd { color: #525c49; font-size: 13px; line-height: 1.75; }
.revision-sheet p { margin: 0 0 12px; }
.revision-overview { padding-bottom: 18px; }
.revision-overview h3 { font-size: 10px; letter-spacing: .09em; text-transform: uppercase; color: #83936e; }
.revision-essentials { padding: 22px 25px; background: #edf2df; border-inline-start: 3px solid #98aa6b; margin: 6px 0 35px; }
.revision-sheet ul { margin: 0; padding-inline-start: 18px; }
.revision-sheet li + li { margin-top: 7px; }
.revision-essentials li::marker { color: #8c9f66; }
.revision-topic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 40px; }
.revision-topic { border-top: 1px solid #dfe3d1; padding-top: 18px; break-inside: avoid; }
.revision-topic-number { display: inline-block; color: #8b9b78; font-size: 11px; font-weight: 650; margin-bottom: 10px; }
.revision-topic li { font-size: 12px; }
.revision-terms { border-top: 1px solid #dfe3d1; padding-top: 25px; margin-top: 32px; }
.revision-terms dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 35px; margin: 0; }
.revision-terms dt { font-size: 12px; font-weight: 700; color: #53683f; margin-bottom: 4px; }
.revision-terms dd { margin: 0; font-size: 12px; }
.revision-sheet-footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 35px; padding-top: 15px; border-top: 1px solid #dfe3d1; font-size: 9px; line-height: 1.5; color: #8e9982; }
.revision-quiz-card { max-width: 820px; margin: 0 auto; padding: clamp(22px, 4vw, 44px); background: #fffef9; border: 1px solid #e1e1d7; border-radius: 14px; }
.revision-quiz-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.revision-quiz-heading p { margin: 0; }
.revision-quiz-heading > span { font-size: 12px; color: #7b8b6d; }
.revision-quiz-progress { display: block; width: 100%; height: 4px; margin: 17px 0 20px; border: none; background: #e9eddf; color: #70915a; border-radius: 4px; overflow: hidden; }
.revision-quiz-progress::-webkit-progress-bar { background: #e9eddf; }
.revision-quiz-progress::-webkit-progress-value { background: #70915a; }
.revision-quiz-progress::-moz-progress-bar { background: #70915a; }
.revision-quiz-intro { color: #8a927f; font-size: 12px; line-height: 1.6; margin: 0 0 24px; }
.revision-quiz-card fieldset { border: 0; margin: 0; padding: 0; }
.revision-quiz-card legend { font-size: clamp(20px, 2vw, 26px); line-height: 1.4; font-weight: 600; margin-bottom: 23px; padding: 0; overflow-wrap: anywhere; }
.revision-quiz-options { display: grid; gap: 10px; margin-bottom: 22px; }
.revision-quiz-option { display: flex; align-items: center; gap: 13px; padding: 14px; border: 1px solid #dde2d2; background: #fff; border-radius: 9px; cursor: pointer; font-size: 14px; line-height: 1.5; }
.revision-quiz-option input { accent-color: #315f4b; margin: 0; flex: 0 0 16px; width: 16px; height: 16px; }
.revision-quiz-option:has(input:checked) { border-color: #7d9b66; background: #f5f8ef; }
.revision-option-letter { color: #88917e; font-size: 11px; font-weight: 650; }
.revision-quiz-option.is-correct { border-color: #8eab72; background: #eef5e6; }
.revision-quiz-option.is-incorrect { border-color: #ce9c85; background: #fff2e9; }
.revision-feedback { border-inline-start: 3px solid #9bac7a; padding: 13px 17px; background: #f0f4e8; margin: 0 0 22px; font-size: 13px; line-height: 1.65; }
.revision-feedback p { margin: 6px 0 0; color: #657555; }
.revision-results > .revision-eyebrow, .revision-results > h2 { text-align: center; }
.revision-results h2 { font-family: Georgia, serif; font-weight: 400; font-size: 30px; margin: 0; }
.revision-score { text-align: center; font-size: 72px; font-weight: 500; letter-spacing: -.06em; color: #47653d; line-height: 1.2; padding: 20px 0; }
.revision-result-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.revision-answer-review { margin-top: 35px; }
.revision-answer-review section { border-top: 1px solid #e3e7d8; padding: 20px 0; }
.revision-answer-review h3 { font-size: 15px; font-weight: 600; line-height: 1.6; margin: 10px 0; }
.revision-answer-review p { font-size: 13px; line-height: 1.65; color: #68775a; }
.revision-answer-badge { font-size: 10px; font-weight: 650; padding: 4px 7px; border-radius: 4px; }
.revision-answer-badge.is-correct { color: #416d33; background: #ecf4e3; }
.revision-answer-badge.is-incorrect { color: #985b37; background: #fff0e4; }
.revision-intent-step { width: min(720px, 100%) !important; }
.revision-intent-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 25px; }
.revision-intent-card { display: flex; flex-direction: column; align-items: flex-start; gap: 13px; text-align: start; border: 1px solid #dedfd6; border-radius: 12px; background: #fff; padding: 23px 18px; color: #282f23; cursor: pointer; transition: border-color .15s, background-color .15s; }
.revision-intent-card:hover { background: #f3f6ed; border-color: #91a57b; }
.revision-intent-card svg { width: 24px; height: 24px; color: #677f51; }
.revision-intent-label { font-size: 17px; font-weight: 650; }
.revision-intent-description { font-size: 12px; line-height: 1.65; color: #7a8270; }
.revision-onboarding-back { border: none; background: none; color: #7a8270; cursor: pointer; padding: 8px 0; font-size: 12px; margin-bottom: 10px; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1000px) { .revision-start-grid { grid-template-columns: 1fr; } .revision-preview-sheet { display: none; } }
@media (max-width: 760px) {
  #revisionView { inset-inline-start: 0; padding: 25px 17px 35px; }
  .revision-header { gap: 12px; margin-bottom: 24px; }
  .revision-header h1 { font-size: 29px; }
  .revision-subtitle { font-size: 13px; }
  .revision-dropzone { min-height: 280px; }
  .revision-history-list, .revision-topic-grid, .revision-terms dl { grid-template-columns: 1fr; }
  .revision-toolbar { align-items: stretch; gap: 12px; }
  .revision-toolbar-actions { width: 100%; }
  .revision-toolbar-actions .revision-button { flex: 1; }
  .revision-topic-grid { gap: 24px; }
  .revision-sheet { padding: 25px 20px; }
  .revision-sheet-heading h2 { font-size: 30px; }
  .revision-sheet-footer { flex-direction: column; gap: 5px; }
  .revision-essentials { padding: 18px; }
  .revision-section-heading { align-items: flex-start; }
  .revision-section-heading > span { max-width: 120px; text-align: end; }
  .revision-intent-grid { grid-template-columns: 1fr; gap: 10px; }
  .revision-intent-card { gap: 6px; padding: 17px 20px; }
  .revision-quiz-option { padding: 13px 10px; gap: 9px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .revision-spinner { animation: none; } }
@media print {
  @page { size: A4; margin: 12mm; }
  body.revision-printing { height: auto !important; overflow: visible !important; background: #fff !important; zoom: 1 !important; }
  body.revision-printing > :not(#revisionView) { display: none !important; }
  body.revision-printing #revisionView { display: block !important; position: static !important; overflow: visible !important; padding: 0 !important; background: #fff !important; }
  body.revision-printing .revision-header,
  body.revision-printing .revision-toolbar,
  body.revision-printing .revision-history,
  body.revision-printing .revision-message,
  body.revision-printing #revisionQuizPanel { display: none !important; }
  body.revision-printing #revisionSheetPanel { display: block !important; }
  body.revision-printing .revision-sheet { border: 0; box-shadow: none; padding: 0; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  body.revision-printing .revision-sheet-heading h2 { font-size: 30px; }
  body.revision-printing .revision-topic-grid { display: block; columns: 2; column-gap: 26px; }
  body.revision-printing .revision-topic { margin-bottom: 22px; }
  body.revision-printing .revision-sheet p, body.revision-printing .revision-sheet li, body.revision-printing .revision-sheet dd { font-size: 10px; }
  body.revision-printing .revision-essentials, body.revision-printing .revision-terms dl > div { break-inside: avoid; }
}
