.pg-root {--pg-green:#174e43;--pg-line:#dde7e7;--pg-muted:#7a8c93;color:#233c3e}
.pg-root button,.pg-bottom-card button {cursor:pointer}
.pg-eyebrow {font-size:11px;font-weight:700;letter-spacing:2px;color:#7c929b;margin-bottom:10px}
.pg-list-heading {display:flex;align-items:center;justify-content:space-between;gap:20px;margin:4px 0 30px}
.pg-list-heading h1,.pg-import-wrap h1 {font-size:30px;margin:0 0 10px;font-weight:750}
.pg-list-heading p {margin:0;font-size:13px}
.pg-list-table {background:white;border:1px solid var(--pg-line);border-radius:18px;overflow:auto;min-height:320px}
.pg-list-table table {width:100%;border-collapse:collapse;text-align:left;min-width:650px}
.pg-list-table th {font-size:12px;color:#82939e;background:#f8fafb;font-weight:600;padding:21px 24px;border-bottom:1px solid #e8eef1}
.pg-list-table td {padding:25px 24px;border-bottom:1px solid #edf1f2;font-size:13px}
.pg-list-table td:nth-child(2) {width:43%}
.pg-title-link {font-weight:700;color:#233c3e!important;font-size:14px;line-height:1.5}
.pg-status-pill {font-size:11px;border-radius:20px;padding:5px 9px;background:#f1f4f8;color:#8490a0;white-space:nowrap}
.pg-status-pill.ready {color:#23705c;background:#e9f5ee}
.pg-empty {text-align:center;padding:55px 20px 65px;color:#82939b}
.pg-empty h2 {font-size:19px;color:#38535a;margin:18px 0 8px}
.pg-empty p {font-size:13px;margin:0 0 25px}
.pg-empty-icon {display:flex;background:#edf4f3;border:1px solid #dce9e6;width:60px;height:64px;align-items:center;justify-content:center;border-radius:14px;margin:auto;color:#619389}
.pg-empty-icon .icon {width:27px;height:27px}
.pg-local-note {font-size:11px;color:#8a9ba6;margin:18px 2px}
.pg-import-wrap {max-width:860px;margin:0 auto 30px}
.pg-import-wrap>.link {display:inline-flex;margin-bottom:30px}
.pg-import-wrap>p {font-size:14px;margin-bottom:28px}
.pg-import-card {background:white;border:1px solid var(--pg-line);padding:30px;border-radius:20px}
.pg-field {display:flex;flex-direction:column;gap:12px;margin-bottom:27px}
.pg-field>span {font-size:14px;font-weight:650}
.pg-field em {color:#ae4747;font-style:normal}
.pg-field input:not([type=file]),.pg-field textarea {border:1px solid #dce5ee;border-radius:10px;padding:14px 16px;width:100%;background:white;color:#233c3e;outline:none}
.pg-field textarea {resize:vertical;line-height:1.8;font:16px/1.8 Georgia,serif}
.pg-field input:focus,.pg-field textarea:focus {border-color:#4f8dbf;box-shadow:0 0 0 3px #e9f2fa}
.pg-upload {position:relative;display:flex;flex-direction:column;align-items:center;gap:9px;border:1.5px dashed #bfd1e4;border-radius:13px;background:#f7fafd;padding:30px;cursor:pointer;text-align:center}
.pg-upload input {position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}
.pg-upload-icon {color:#487fae}.pg-upload-icon .icon {width:28px;height:28px}
.pg-upload strong {font-size:14px;font-weight:600;color:#4276a3}.pg-upload small {font-size:12px;color:#8d9eac}
.pg-image-thumbs {display:flex;flex-wrap:wrap;gap:15px}
.pg-image-thumbs>div {width:120px;font-size:11px;color:#84939f;display:flex;flex-direction:column;gap:6px}
.pg-image-thumbs img {width:120px;height:115px;object-fit:cover;border-radius:9px;border:1px solid #e3e9ee}
.pg-image-thumbs span {overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pg-import-footer {display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #edf1f2;padding-top:20px;font-size:12px}
.pg-import-status {min-height:20px;font-size:13px}.pg-root .error {color:#b14343}
.pg-workspace {max-width:none}
body:has(.pg-workspace) .content {max-width:none;width:100%;padding:28px 30px}
.pg-workspace-header {display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:10px}
.pg-workspace-header .link {font-size:12px}
.pg-workspace-header h1 {font-size:23px;line-height:1.4;margin:13px 0 6px;font-weight:700}
.pg-workspace-meta {font-size:11px;color:#86969e}
.pg-job-status {font-size:12px;line-height:1.6;margin:0 0 16px;min-height:18px}
.pg-workspace-columns {display:grid;grid-template-columns:minmax(260px, .78fr) minmax(440px,1.22fr);gap:18px;align-items:start}
.pg-source-pane,.pg-analysis-pane {background:white;border:1px solid var(--pg-line);border-radius:15px;min-width:0;overflow:hidden}
.pg-source-pane>header,.pg-analysis-toolbar {height:68px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 19px;border-bottom:1px solid #e8eeee}
.pg-source-pane h2 {font-size:17px;margin:0}
.pg-source-tabs {display:flex;gap:6px}.pg-source-tabs .btn {padding:7px 10px;font-size:12px}
.pg-source-scroll {height:calc(100vh - 290px);min-height:400px;overflow:auto;padding:16px;background:#f3f6f5}
.pg-original-images {display:grid;gap:18px}
.pg-image-button {display:block;border:0;background:none;padding:0;position:relative;width:100%;cursor:zoom-in!important}
.pg-image-button img {display:block;width:100%;height:auto;box-shadow:0 3px 14px #203d4810;border-radius:3px}
.pg-image-button span {position:absolute;bottom:10px;left:10px;font-size:11px;padding:6px 10px;border-radius:20px;background:#ffffffe8;color:#66817e;opacity:0;transition:.15s}
.pg-image-button:hover span,.pg-image-button:focus-visible span {opacity:1}
.pg-source-editor {display:grid;gap:13px;font-size:12px;color:#566f72}
.pg-source-editor span {display:flex;flex-direction:column;gap:6px}.pg-source-editor small {font-size:11px;color:#8c9b9d}
.pg-source-editor textarea {font:17px/1.9 Georgia,serif;color:#385257;border:1px solid #dbe6e3;border-radius:9px;background:white;resize:vertical;width:100%;padding:18px;min-height:430px}
.pg-source-scroll>.btn {margin-top:12px;font-size:12px}
.pg-analysis-toolbar {background:#fff;gap:10px}
.pg-analysis-toolbar>.btn {font-size:12px;padding:8px 12px;display:flex;align-items:center;gap:6px;white-space:nowrap;color:#2f725f;border-color:#c9ded5}
.pg-toggles {display:flex;gap:6px;align-items:center}
.pg-toggles .btn {border-color:transparent;background:#f3f6f7;border-radius:7px;font-size:12px;color:#7c8e92;padding:8px 13px}
.pg-toggles .btn.on {background:#e5f0ec;border-color:#c3d9ce;color:#24664f;font-weight:700}
.pg-analysis-content {position:relative;display:grid;grid-template-columns:minmax(0,1fr);height:calc(100vh - 290px);min-height:400px}
.pg-analysis-content.with-follow {grid-template-columns:minmax(0,1fr) 310px}
.pg-reading-scroll {overflow:auto;padding:28px 28px 60px;min-width:0}
.pg-reading-heading {margin-bottom:28px}.pg-reading-heading>span {font-size:10px;color:#97a9aa;letter-spacing:1.7px;font-weight:600}.pg-reading-heading h2 {font-size:21px;font-weight:700;margin:9px 0 0;color:#294c47}
.pg-reading-paragraph {margin-bottom:28px;padding-bottom:28px;border-bottom:1px solid #e4ece8}
.pg-reading-paragraph:last-child {border-bottom:0}
.pg-paragraph-english {font:400 20px/2.1 Georgia,serif;color:#273f3a;overflow-wrap:break-word}
.pg-word {cursor:pointer;border-radius:3px}.pg-word:hover {background:#e7f1f6}.pg-word:focus-visible {outline:2px solid #3582c0}
.pg-chunk {text-decoration:underline;text-decoration-color:#cb4d85;text-underline-offset:.2em;text-decoration-thickness:1.5px;text-decoration-skip-ink:none}
.pg-core {color:#b63530;text-decoration:underline;text-underline-offset:.17em;text-decoration-color:#b63530;text-decoration-skip-ink:none;text-decoration-thickness:1.5px;ruby-position:under;ruby-align:center;font-weight:700}
.pg-core rt {font:500 11px/1.35 -apple-system,BlinkMacSystemFont,'PingFang SC',sans-serif;color:#6e7b75;text-align:center;letter-spacing:0;white-space:normal}
.pg-backbones {margin:14px 0 0;border-left:2px solid #d1ded7;padding-left:12px}
.pg-backbones p {font-size:12px;color:#73867d;line-height:1.8;margin:7px 0}
.pg-backbones strong {font-size:10px;color:#9bac9f;font-weight:500;margin-right:9px}
.pg-paragraph-translation {margin:18px 0 0;color:#748780;font-size:14px;line-height:1.9}
.pg-analysis-empty {padding:45px 10px;text-align:center;color:#8f9d9f;font-size:13px}.pg-analysis-empty>span {font-size:25px;color:#729c8c}.pg-analysis-empty h3 {font-size:17px;color:#627d74}.pg-analysis-empty p {max-width:320px;margin:12px auto 25px;line-height:1.8}
.pg-follow-pane[hidden] {display:none}
.pg-follow-pane {background:#f8faf8;border-left:1px solid #dfe9e2;padding:20px 17px;overflow:auto;min-width:0}
.pg-follow-header {display:flex;justify-content:space-between;align-items:center}.pg-follow-header h3 {font-size:16px;color:#3e6355;margin:0}.pg-follow-header .pg-eyebrow {font-size:9px;letter-spacing:1.5px;margin-bottom:6px}
.pg-follow-position {display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between;font-size:11px;color:#8c9d93;margin:24px 0 15px}
.pg-follow-sentence {font:700 20px/1.85 Georgia,serif;color:#304e42;min-height:100px;overflow-wrap:anywhere}
.pg-follow-translation {font-size:12px;line-height:1.8;color:#8a998f;margin-bottom:22px}
.pg-follow-controls {display:flex;justify-content:center;gap:12px;margin:18px 0}
.pg-follow-controls button {border-radius:50%;width:39px;height:39px;padding:0}.pg-follow-controls .primary {width:46px;height:46px;margin-top:-3px;background:#387b63;border-color:#387b63}
.pg-follow-options {display:flex;align-items:center;justify-content:space-between;gap:4px;font-size:11px;color:#7d9084}.pg-follow-options select {border:1px solid #d8e3db;border-radius:5px;background:white;padding:4px}.pg-follow-options .btn {font-size:11px;padding:6px 8px}
.pg-follow-pane .small {font-size:11px;line-height:1.7}
.pg-follow-segments {display:grid;gap:8px;margin-top:10px}.pg-follow-segments .btn {text-align:left;display:block;width:100%;font:15px/1.7 Georgia,serif;padding:9px 11px;border-color:#dce7df;white-space:normal}
.pg-follow-segments .soft {background:#e6efe9;color:#2d6953}
.pg-boundary {border:0;padding:1px 3px;color:#a4b5aa;background:none;font:inherit;min-width:12px}
.pg-boundary.marked {color:#c36d47;background:#f9eee5;border-radius:4px}
.pg-follow-list {border-top:1px solid #e2e9e1;margin-top:23px;padding-top:13px;display:grid;gap:6px}
.pg-follow-list .btn {display:block;width:100%;text-align:left;border:0;background:none;font:13px/1.7 Georgia,serif;color:#87988a;padding:9px}
.pg-follow-list .current {background:#edf3ec;border-radius:7px;color:#426b51}
.pg-bottom-card {position:fixed;bottom:18px;left:calc(224px + 4%);right:4%;z-index:30;max-width:1250px;margin:auto;background:white;border:1px solid #cfdfdd;box-shadow:0 12px 65px #203e4526;border-radius:15px;overflow:hidden;color:#294343}
.pg-bottom-card>header {padding:17px 23px;border-bottom:1px solid #e9efec;display:flex;align-items:flex-start;justify-content:space-between;gap:20px}
.pg-card-word {font:700 22px/1.5 Georgia,serif;max-width:78%;max-height:90px;overflow:auto}.pg-bottom-card header>div {display:flex;gap:8px;flex-shrink:0}.pg-bottom-card .btn {font-size:12px;padding:8px 11px;display:flex;align-items:center;gap:5px}
.pg-card-body {max-height:240px;overflow:auto;padding:8px 23px 20px;font-size:14px;line-height:1.9}.pg-card-body p {margin:8px 0}.pg-pronunciation {font-size:13px;color:#93a09a}.pg-card-meaning {font-weight:600;color:#365b4b}
.pg-image-viewer {border:1px solid #b9cfc7;border-radius:14px;padding:0;width:92vw;max-width:1600px;height:92vh;max-height:none;background:#eff3f0}
.pg-image-viewer::backdrop {background:#152e34b3;backdrop-filter:blur(4px)}
.pg-zoom-toolbar {display:flex;justify-content:space-between;align-items:center;padding:12px 18px;background:white;border-bottom:1px solid #dbe6de;font-size:13px;color:#6e8477}
.pg-zoom-toolbar>div {display:flex;gap:7px}.pg-zoom-toolbar .btn {padding:6px 12px}
.pg-zoom-scroll {height:calc(100% - 65px);overflow:auto;padding:20px;text-align:center}.pg-zoom-scroll img {width:100%;max-width:none;height:auto;object-fit:contain}
@media(min-width:1600px){.pg-analysis-content.with-follow {grid-template-columns:minmax(0,1fr) 330px}.pg-workspace-columns {grid-template-columns:minmax(340px,.7fr) minmax(600px,1.3fr)}}
@media(max-width:1200px){.pg-workspace-columns {grid-template-columns:minmax(240px,.7fr) minmax(350px,1.3fr)}.pg-analysis-content.with-follow {grid-template-columns:minmax(0,1fr)}.pg-follow-pane {position:absolute;right:0;top:0;bottom:0;width:310px;box-shadow:-10px 0 40px #254c4120;z-index:4}.pg-reading-scroll {padding:24px 20px}}
@media(max-width:900px){body:has(.pg-workspace) .content {padding:20px 14px}.pg-workspace-columns {grid-template-columns:minmax(0,1fr)}.pg-source-scroll {height:300px;min-height:0}.pg-source-pane {order:2}.pg-analysis-pane {order:1}.pg-analysis-content {height:65vh;min-height:400px}.pg-source-editor textarea {min-height:250px}.pg-workspace-header h1 {font-size:20px}.pg-bottom-card {left:240px;right:15px}}
@media(max-width:760px){.pg-bottom-card {left:10px;right:10px;bottom:10px}.pg-bottom-card>header {padding:13px}.pg-card-word {font-size:18px;max-width:68%}.pg-card-body {padding:8px 13px 15px}.pg-import-card {padding:22px 18px}.pg-import-footer {flex-wrap:wrap}.pg-list-heading {align-items:flex-start}.pg-list-heading h1 {font-size:25px}.pg-workspace-header {align-items:flex-start}.pg-workspace-actions .btn {font-size:12px}.pg-follow-pane {width:min(320px,95%)}.pg-list-table table {min-width:600px}}

/* Keep each backbone translation together without widening the English text. */
.pg-core {display:inline-block;position:relative;max-width:100%;vertical-align:baseline;text-decoration:none}
.pg-core-text {text-decoration:underline;text-underline-offset:.17em;text-decoration-skip-ink:none;text-decoration-color:#b63530;text-decoration-thickness:1.5px}
.pg-core-gloss {position:absolute;top:calc(100% - .6em);left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% + 16px);font:500 10px/1.3 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:0;color:#76877e;text-align:center}
.pg-root:has(.pg-core) .pg-paragraph-english {line-height:2.5}

.pg-list-tools {display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-bottom:18px;font-size:13px}
.pg-list-tools label {display:flex;align-items:center;gap:10px}
.pg-list-tools select,.pg-list-table select {font:inherit;color:inherit;border:1px solid #dce7e7;border-radius:7px;background:white;padding:7px 10px;max-width:170px}
.pg-list-table .pg-check-cell {width:44px;padding-left:20px;padding-right:0}
.pg-check-cell input {width:16px;height:16px;accent-color:#23705c;cursor:pointer;vertical-align:middle}
.pg-list-table .btn {font-size:12px;padding:7px 11px;white-space:nowrap}
.pg-delete {color:#b34343!important;background:#fff3f3!important;border-color:#f2dede!important}
.pg-category-form,.pg-undo {display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-bottom:18px;padding:14px 18px;border:1px solid #dde7e7;border-radius:10px;background:#fff;font-size:13px}
.pg-category-form input {border:1px solid #dce7e7;border-radius:7px;padding:9px 12px;margin-left:10px}
.pg-import-footer {justify-content:flex-end}

.pg-category-tabs {display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.pg-category-tabs .btn {font-size:13px;padding:9px 15px}
.pg-upload-actions {display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.pg-upload.pg-upload-small {display:inline-flex;flex-direction:row;width:auto;padding:10px 16px;border:1px solid #c7d8e7;border-radius:8px}
.pg-upload-small>span {display:flex;align-items:center;gap:7px;font-size:13px;font-weight:600;color:#4276a3}
.pg-upload-small .icon {width:17px;height:17px}
.pg-upload-actions small {font-size:12px;color:#8d9eac}
body:has(.pg-ocr-workspace) .content {max-width:none;width:100%;padding:28px 30px}
.pg-ocr-heading {display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:22px}
.pg-ocr-heading h1 {font-size:24px;margin:0 0 8px}.pg-ocr-heading p {font-size:13px;color:#768e96;margin:0}
.pg-ocr-columns {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px}
.pg-ocr-pane {border:1px solid #dce7e7;background:white;border-radius:14px;overflow:hidden;min-width:0}
.pg-ocr-pane>header {padding:18px;border-bottom:1px solid #e5eded}
.pg-ocr-pane h2 {font-size:17px;margin:0 0 14px}
.pg-ocr-controls {display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:13px}
.pg-ocr-controls .btn {font-size:12px;padding:8px 11px}
.pg-ocr-controls select {font:inherit;padding:8px;border:1px solid #dce7e7;border-radius:7px;background:white;color:#233c3e}
.pg-ocr-source-scroll,.pg-ocr-result-scroll {height:calc(100vh - 320px);min-height:420px;overflow:auto;padding:16px}
.pg-ocr-source-scroll {background:#f1f5f4}
.pg-ocr-image {position:relative;touch-action:none;user-select:none;cursor:crosshair}
.pg-ocr-image>img {display:block;width:100%;height:auto;pointer-events:none}
.pg-ocr-outlines {position:absolute;inset:0;pointer-events:none}
.pg-ocr-rectangle {position:absolute;border:2px solid #2878e9;background:#2878e91a;box-sizing:border-box}
.pg-ocr-rectangle span {position:absolute;left:0;top:0;background:#2878e9;color:white;font:12px/1.4 sans-serif;padding:1px 5px}
.pg-ocr-rectangle.draft {border-style:dashed}
.pg-ocr-message {font-size:12px;margin:12px 0 0;color:#567a6c;line-height:1.5}
.pg-ocr-result-scroll textarea {font-size:16px}
.pg-source-editor.pg-question-editor {margin-top:24px}.pg-question-editor textarea {min-height:160px}
@media(max-width:800px){.pg-ocr-columns{grid-template-columns:1fr}.pg-ocr-source-scroll,.pg-ocr-result-scroll{height:60vh;min-height:300px}.pg-ocr-heading{align-items:flex-start}.pg-ocr-heading>.btn{white-space:nowrap}}

.pg-study-sidebar {display:flex;flex-direction:column;gap:16px;min-width:0;max-height:calc(100vh - 220px);overflow:auto;padding-right:3px}
.pg-side-card {background:white;border:1px solid var(--pg-line);border-radius:13px;overflow:hidden;flex-shrink:0}
.pg-side-card>header {display:flex;justify-content:space-between;align-items:center;padding:15px 18px;gap:8px;border-bottom:1px solid #edf1f2}
.pg-side-card h2 {font-size:16px;margin:0}.pg-side-card>header .btn {font-size:11px;padding:6px 9px}
.pg-source-thumbnails {display:grid;grid-template-columns:repeat(auto-fill,minmax(85px,1fr));gap:12px;padding:16px;max-height:220px;overflow:auto}
.pg-source-thumbnails .pg-image-button {max-width:150px;justify-self:center}
.pg-source-thumbnails img {height:140px;width:100%;object-fit:contain;object-position:top;background:#f5f7f6}
.pg-source-thumbnails .pg-image-button span {font-size:10px;bottom:0;left:0;position:relative;display:block;opacity:1;padding:6px 0;background:none}
.pg-side-empty {font-size:12px;padding:4px 18px;color:#84979c}
.pg-side-editor {padding:16px}.pg-side-editor textarea{font-size:16px}
.pg-side-card .pg-question-text {display:block;width:calc(100% - 32px);margin:16px;border:1px solid #e1e8e8;border-radius:8px;padding:12px;font:15px/1.8 Georgia,serif;color:#233c3e;resize:vertical;min-height:120px}
.pg-save-status {font-size:11px;color:#7a9394;margin:0 17px 14px;min-height:15px}
.pg-notes-toolbar {display:flex;gap:6px;padding:12px 15px 0;flex-wrap:wrap}
.pg-notes-toolbar .btn {font-size:12px;padding:5px 9px;min-width:30px}
.pg-notes-editor {margin:12px 16px;min-height:150px;max-height:380px;overflow:auto;border:1px solid #dfe8e8;border-radius:8px;padding:12px;font:15px/1.8 Georgia,"PingFang SC",sans-serif;outline:none;overflow-wrap:anywhere}
.pg-notes-editor:focus{border-color:#80a6bd}.pg-notes-editor:empty:before{content:attr(data-placeholder);color:#9aa8aa;pointer-events:none}
.pg-notes-editor blockquote {margin:0 0 0 30px;padding:0;border:0}
.pg-answer-module {border-top:1px solid #dce8e5;margin-top:38px;padding-top:26px}
.pg-answer-module>header {display:flex;align-items:center;justify-content:space-between;gap:10px}.pg-answer-module h2{font-size:20px;margin:0}
.pg-answer-module>header .btn{font-size:12px;padding:8px 11px}.pg-answer-status{font-size:12px;color:#7a9292;line-height:1.8}
.pg-answer-item {border-bottom:1px solid #dce8e5;padding:18px 0;font-size:15px;line-height:1.9}
.pg-answer-item h3{font-size:16px;margin:0 0 12px}.pg-answer-item p{margin:8px 0;white-space:pre-wrap;overflow-wrap:anywhere}
.pg-answer-question{font-family:Georgia,serif}
@media(max-width:800px){.pg-study-sidebar{max-height:none;overflow:visible}}

.pg-notes-print {width:min(880px,94vw);max-height:90vh;border:0;border-radius:14px;padding:0;overflow:auto;color:#233c3e;background:#f2f5f5;box-shadow:0 20px 80px #102e3140}
.pg-notes-print::backdrop{background:#18373766}
.pg-notes-print>header {display:flex;align-items:center;justify-content:space-between;gap:14px;padding:18px 22px;background:white;border-bottom:1px solid #dde7e7;position:sticky;top:0}
.pg-notes-print>header p{font-size:12px;color:#7c9193;margin:7px 0 0}.pg-notes-print>header>div:last-child{display:flex;gap:8px;white-space:nowrap}
.pg-notes-print article{margin:24px;background:white;min-height:400px;padding:40px;font:14px/1.9 Georgia,"Songti SC","SimSun",serif;overflow-wrap:anywhere}
.pg-notes-print h1{font-size:22px;line-height:1.5;border-bottom:1px solid #ddd;margin:0 0 24px;padding-bottom:16px}
.pg-notes-print blockquote{margin:0 0 0 32px}.pg-print-note-content p,.pg-print-note-content div{orphans:3;widows:3}
@media print{
 @page{size:A4;margin:20mm}
 body.pg-printing-notes{display:block!important;background:white!important;overflow:visible!important;height:auto!important;margin:0!important}
 body.pg-printing-notes>*:not(.pg-notes-print){display:none!important}
 body.pg-printing-notes .pg-notes-print{display:block!important;position:static!important;width:auto!important;height:auto!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;overflow:visible!important;border:0!important;border-radius:0!important;background:white!important;box-shadow:none!important}
 body.pg-printing-notes .pg-notes-print>header,body.pg-printing-notes .pg-notes-print::backdrop{display:none!important}
 body.pg-printing-notes .pg-notes-print article{margin:0!important;padding:0!important;min-height:0!important;background:white!important}
 body.pg-printing-notes .pg-notes-print *{-webkit-print-color-adjust:exact;print-color-adjust:exact}
}

.pg-source-thumbnails img{height:100px}.pg-side-card .pg-question-text{height:170px}

.pg-notes-toolbar [data-note-command="bold"]{font-weight:800}
.pg-notes-toolbar [data-note-command="underline"]{text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1.5px}
.pg-notes-toolbar [data-note-command="red"]{color:#b91c1c}

.pg-side-card .pg-question-text,.pg-side-card .pg-question-text:focus{border:0;border-radius:0;box-shadow:none;outline:none;background:transparent}

.pg-chunk{display:inline-block;position:relative;max-width:100%;vertical-align:baseline;color:#cb4d85;text-decoration:none}
.pg-chunk-text{color:#cb4d85;text-decoration:underline;text-decoration-color:currentColor;text-underline-offset:.2em;text-decoration-thickness:1.5px;text-decoration-skip-ink:none}
.pg-chunk-gloss{position:absolute;top:calc(100% - .6em);left:50%;transform:translateX(-50%);width:max-content;max-width:100%;font:500 11px/1.3 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;color:#a64d75;text-align:center;letter-spacing:0;white-space:normal;overflow-wrap:break-word;pointer-events:none}
.pg-root:has(.pg-chunk) .pg-paragraph-english{line-height:2.7}

.pg-modifier{display:inline-block;position:relative;max-width:100%;vertical-align:baseline;color:#c46512}
.pg-modifier-text{color:#c46512;text-decoration:underline;text-decoration-color:currentColor;text-underline-offset:.2em;text-decoration-thickness:1.5px;text-decoration-skip-ink:none}
.pg-modifier-gloss{position:absolute;top:calc(100% - .6em);left:50%;transform:translateX(-50%);width:max-content;max-width:100%;font:500 11px/1.3 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;color:#a65b20;text-align:center;letter-spacing:0;white-space:normal;overflow-wrap:break-word;pointer-events:none}
.pg-root:has(.pg-modifier) .pg-paragraph-english{line-height:2.7}
.pg-toggles .btn[data-key="modifiers"].on{color:#c46512;background:#fff1e3;border-color:#edc49e}
.pg-analysis-toolbar{flex-wrap:wrap;height:auto;min-height:68px}.pg-toggles{flex-wrap:wrap}

.pg-modifier-feedback{flex-basis:100%;display:flex;align-items:center;gap:8px;padding:3px 0;font-size:12px;line-height:1.6;color:#53715c}
.pg-modifier-feedback[hidden]{display:none}.pg-modifier-feedback .btn{padding:4px 8px;font-size:12px}

.pg-modifier-gloss{max-width:calc(100% + 12px)}

/* Reading workbench: one compact toolbar; give the remaining viewport to the two panes. */
body:has(.pg-workspace) .topbar {display:none}
body:has(.pg-workspace) .content {padding:14px 24px 18px}
.pg-workspace {height:calc(100dvh - 32px);display:flex;flex-direction:column;min-height:0}
.pg-workspace-header {flex-shrink:0;min-height:40px;margin:0 0 12px;gap:16px}
.pg-workspace-identity {display:flex;align-items:center;gap:14px;min-width:0;flex:1}
.pg-workspace-header .pg-workspace-back {flex-shrink:0;white-space:nowrap;font-size:12px}
.pg-workspace-header h1 {font-size:18px;line-height:1.4;margin:0;padding-left:14px;border-left:1px solid #cbd9e4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.pg-workspace-meta {flex-shrink:0;white-space:nowrap;font-size:11px}
.pg-workspace-actions {display:flex;align-items:center;gap:12px;flex-shrink:0}
.pg-workspace-actions .btn {padding:8px 13px;font-size:12px;line-height:1.4;white-space:nowrap}
.pg-workspace-settings {display:flex;align-items:center;justify-content:center;width:30px;height:32px;color:#8095a4;border-radius:6px}
.pg-workspace-settings:hover {background:#d8e7f5}
.pg-workspace-settings .icon {width:17px;height:17px}
.pg-job-status {flex-shrink:0;min-height:0;margin:0 0 10px}
.pg-job-status:empty {display:none}
.pg-workspace-columns {flex:1;min-height:0;align-items:stretch}
.pg-study-sidebar {height:100%;max-height:none}
.pg-workspace .pg-analysis-pane {display:flex;flex-direction:column;height:100%}
.pg-analysis-toolbar {flex-shrink:0;min-height:52px;padding:10px 16px}
.pg-analysis-content {flex:1;height:auto;min-height:0}
.pg-reading-scroll {padding-top:20px}
.pg-reading-heading {display:flex;align-items:baseline;flex-wrap:wrap;gap:10px;margin-bottom:20px}
.pg-reading-heading h2 {font-size:18px;margin:0}
.pg-reading-heading>span {font-size:9px}
@media(max-width:1100px){.pg-workspace-identity{gap:10px}.pg-workspace-header h1{padding-left:10px}.pg-workspace-meta{display:none}}
@media(max-width:900px){
 body:has(.pg-workspace) .content{padding:12px 14px 20px}
 .pg-workspace{height:auto;min-height:calc(100dvh - 32px)}
 .pg-workspace-header{flex-wrap:wrap;gap:8px;margin-bottom:12px}
 .pg-workspace-identity{flex-basis:100%}
 .pg-workspace-actions{margin-left:auto}
 .pg-workspace-columns{display:flex;flex-direction:column;gap:14px;flex:none}
 .pg-workspace .pg-analysis-pane{order:0;height:min(720px,75dvh);min-height:360px}
 .pg-study-sidebar{order:1;height:auto;overflow:visible}
}

.pg-toggles .btn[data-key="chunks"].on{color:#cb4d85;background:#fff0f6;border-color:#edbed2}

/* Glosses follow the highlighted English phrase color. */
.pg-core-gloss,.pg-chunk-gloss,.pg-modifier-gloss{color:inherit}

.pg-predicate{display:inline-block;position:relative;max-width:100%;vertical-align:baseline;color:#e60000}
.pg-predicate-text{color:inherit;text-decoration:underline;text-decoration-color:currentColor;text-underline-offset:.2em;text-decoration-thickness:1.5px;text-decoration-skip-ink:none}
.pg-predicate-gloss{position:absolute;top:calc(100% - .6em);left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% + 12px);font:500 11px/1.3 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;color:inherit;text-align:center;letter-spacing:0;white-space:normal;overflow-wrap:break-word;pointer-events:none}
.pg-root:has(.pg-predicate) .pg-paragraph-english{line-height:2.7}
.pg-toggles .btn[data-key="predicates"].on{color:#e60000;background:#fff0f0;border-color:#f2b5b5}
@media(min-width:901px){.pg-workspace-columns{grid-template-columns:minmax(190px,.39fr) minmax(0,1.61fr)}}
@media(min-width:1600px){.pg-workspace-columns{grid-template-columns:minmax(190px,.35fr) minmax(0,1.65fr)}}
.pg-study-sidebar .pg-side-card>header{flex-wrap:wrap}

.pg-follow-heading-actions{display:flex;align-items:center;gap:5px;flex-shrink:0}
.pg-follow-heading-actions .btn{font-size:11px;padding:6px 8px;white-space:nowrap}
@media(min-width:901px){
 .pg-workspace-columns{grid-template-columns:minmax(0,1.61fr) minmax(190px,.39fr);grid-template-areas:"reading notes"}
 .pg-workspace .pg-analysis-pane{grid-area:reading}
 .pg-study-sidebar{grid-area:notes}
}
@media(min-width:1600px){.pg-workspace-columns{grid-template-columns:minmax(0,1.65fr) minmax(190px,.35fr)}}

.pg-field-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:14px;font-weight:650}
.pg-field-heading>div{display:flex;gap:8px}.pg-field-heading .btn{font-size:12px;padding:7px 11px;font-weight:400}
.pg-proof-text{white-space:pre-wrap;overflow-wrap:break-word;border:1px solid #dce5ee;border-radius:10px;padding:14px 16px;background:white;color:#233c3e;font:16px/1.8 Georgia,serif;min-height:260px;max-height:520px;overflow:auto}
.pg-field textarea[hidden]{display:none}
.pg-proof-text .pg-proof-error{display:inline;border:0;border-radius:0;background:none;color:#c02727;font:inherit;padding:0;text-decoration:underline;text-decoration-style:dashed;text-underline-offset:3px;cursor:pointer}
.pg-proof-status{font-size:12px;font-weight:400;line-height:1.7;color:#748990;margin:0}.pg-proof-status:empty{display:none}
.pg-proof-suggestions{border:1px solid #eddada;border-radius:8px;padding:0 12px;background:#fffafa;font-size:13px}
.pg-proof-suggestions>div{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 0;border-bottom:1px solid #f1e3e3}
.pg-proof-suggestions>div:last-child{border-bottom:0}.pg-proof-suggestions strong{color:#c02727}.pg-proof-suggestions small{display:block;color:#889398;font-size:11px;margin-top:4px}
.pg-proof-suggestions .btn{flex-shrink:0;padding:7px;font-size:12px}
.pg-import-image{display:block;background:none;border:0;padding:0;cursor:zoom-in!important;border-radius:9px}
.pg-import-image img{display:block}

.pg-reading-tools{display:flex;align-items:center;gap:8px;margin-left:auto}
.pg-reading-tools .btn{font-size:12px;padding:8px 12px;display:flex;align-items:center;gap:6px;white-space:nowrap;color:#2f725f;border-color:#c9ded5}
.pg-repeat-summary{font-size:12px;line-height:1.6;color:#557563;margin:16px 0 5px}
.pg-repeat-rule{font-size:11px;line-height:1.6;color:#8a9b91;margin:0 0 14px}
.pg-repeat-feedback{font-size:11px;line-height:1.7;color:#688371;margin-bottom:12px;overflow-wrap:anywhere}
.pg-repeat-feedback:empty{display:none}.pg-repeat-feedback .btn{font-size:11px;padding:4px 7px;margin-left:5px}
.pg-repeat-table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:12px;line-height:1.7}
.pg-repeat-table th{text-align:left;font-weight:600;color:#81948b;font-size:11px;border-bottom:1px solid #dce7df;padding:8px 4px}
.pg-repeat-table th:nth-child(1){width:36%}.pg-repeat-table th:nth-child(2){width:17%}
.pg-repeat-table td{border-bottom:1px solid #e6ede7;padding:10px 4px;vertical-align:top;overflow-wrap:anywhere;color:#456653}
.pg-repeat-table td.pg-repeat-word{font-family:Georgia,serif;font-size:15px;font-weight:600;color:#294c3e}

.pg-raw-notice{font-size:12px;line-height:1.7;color:#72867a;background:#f3f7f3;border-radius:7px;padding:9px 12px;margin-bottom:18px}

.pg-follow-segments{display:flex;flex-wrap:wrap;gap:8px}
.pg-follow-segments .btn{display:inline-flex;width:auto;flex:0 0 auto;font:12px/1.5 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;padding:7px 10px}
.pg-follow-segments .btn.soft{color:#2479d8;background:#eaf3ff;border-color:#a8c9ef}
.pg-follow-active-segment{color:#2479d8}

.pg-sentence-navigation{display:flex;gap:8px;align-items:center;margin:20px 0}.pg-sentence-navigation select{flex:1;min-width:0;border:1px solid #d5e3dd;border-radius:7px;background:white;padding:8px;color:#3d6457;font:inherit;font-size:12px}.pg-sentence-navigation .btn{padding:6px 10px}.pg-detail-original{font-family:Georgia,"Times New Roman",serif;font-size:20px;font-weight:700;line-height:1.8;overflow-wrap:anywhere;margin:0 0 18px}.pg-detail-section{padding:16px 0;border-top:1px solid #dbe6df}.pg-detail-section h4{font-size:15px;font-weight:700;margin:0 0 12px}.pg-detail-section h5{font-size:12px;margin:12px 0 7px;color:#70897d}.pg-detail-section p{font-size:13px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;margin:0 0 14px}.pg-detail-section b{font-weight:650}.pg-detail-status{font-size:12px;line-height:1.7;color:#8a6754;margin-bottom:12px}

.pg-pos{display:inline-block;position:relative;max-width:100%;vertical-align:baseline;color:#b91c1c}.pg-pos-text{color:inherit;text-decoration:underline;text-decoration-color:currentColor;text-underline-offset:.2em;text-decoration-thickness:1.5px;text-decoration-skip-ink:none}.pg-pos-text .pg-word{color:inherit}.pg-pos-gloss{position:absolute;top:calc(100% - .6em);left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% + 12px);font:500 11px/1.3 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;color:inherit;text-align:center;letter-spacing:0;white-space:normal;overflow-wrap:break-word;pointer-events:none}.pg-root:has(.pg-pos) .pg-paragraph-english{line-height:2.7}.pg-pos-feedback{width:100%;font-size:12px;line-height:1.7;color:#6b8275}.pg-pos-feedback:empty{display:none}

.pg-detail-section{padding:0;border:0;margin:12px 0;font-size:13px;line-height:1.9}.pg-detail-section h4{display:inline;margin:0;font-size:13px;font-weight:700}.pg-detail-section p{display:inline;margin:0;white-space:normal;line-height:inherit}

.pg-detail-original{padding-bottom:16px;border-bottom:1px dashed #ccd5cf}
.pg-repeat-table th:nth-child(1){width:46%}.pg-repeat-table th:nth-child(2){width:12%}.pg-repeat-word .pg-repeat-word-button{font:600 13px/1.6 Georgia,serif;white-space:nowrap;word-break:normal;overflow-wrap:normal;padding:0;border:0;border-radius:3px;color:inherit;background:transparent;max-width:100%;letter-spacing:-.3px}.pg-repeat-word .pg-repeat-word-button[aria-pressed=true]{color:#9a6612;background:#fff0bd}.pg-reading-body .pg-repeat-highlight{background:#ffe6a0!important;box-shadow:0 0 0 2px #ffe6a0;border-radius:2px;color:#513c19!important}

.pg-cloud-bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:11px;color:#698775;margin-bottom:10px}.pg-cloud-bar>[role=status]{flex:1}.pg-cloud-bar .btn{font-size:11px;padding:4px 8px}.pg-cloud-bar details{position:relative}.pg-cloud-bar summary{cursor:pointer;color:#7a9486}.pg-cloud-bar [hidden]{display:none!important}

/* 词性颜色同时作用于英文、下划线及语境释义。 */
.pg-pos-noun{color:#d96b00}
.pg-pos-adjective{color:#5b8c20}
.pg-toggles .btn[data-key="nouns"].on{color:#d96b00;background:#fff4e8;border-color:#edc9a5}
.pg-toggles .btn[data-key="adjectives"].on{color:#5b8c20;background:#f1f7e9;border-color:#bfd39e}
