.rural-digest-overlay{display:none;position:fixed;inset:0;background:#18232070;z-index:2200}
.rural-digest-overlay.show{display:block}
.rural-digest-modal{display:none;position:fixed;z-index:2201;inset:5vh 0;margin:0 auto;width:min(780px,calc(100% - 32px));background:#fff;border-radius:12px;box-shadow:0 20px 64px #172c3528;color:#252b28;flex-direction:column;overflow:hidden;font-family:inherit;text-align:left}
.rural-digest-modal.show{display:flex}
.rural-digest-modal [hidden]{display:none!important}
.rural-digest-modal *{box-sizing:border-box}
.rural-digest-modal button,.rural-digest-modal select,.rural-digest-modal textarea{font:inherit}
.rural-digest-modal button{cursor:pointer;min-height:44px;border:0}
.rural-digest-modal button:disabled{opacity:.5;cursor:wait}
.rural-digest-modal :is(button,a,select,textarea,input):focus-visible{outline:2px solid #287653;outline-offset:3px}
.rd-header{padding:22px 24px 16px;display:flex;align-items:center;gap:12px;background:#fff;border-bottom:1px solid #e3e9e3}
.rd-heading{flex:1;min-width:0}
.rd-heading small{font-size:12px;color:#737b76}
.rd-heading h2{margin:5px 0 0;font-size:23px;line-height:1.4;font-weight:700}
.rd-slogan{margin:8px 0 0;color:#276447;font-size:13px;line-height:1.6;font-weight:600}
.rd-slogan span{display:block;font-size:11px;font-weight:400;color:#737b76;letter-spacing:.03em}
.rural-digest-modal[data-view="review"] .rd-slogan,.rural-digest-modal[data-view="source"] .rd-slogan{display:none}
.rd-scope{margin:7px 0 0;color:#737b76;font-size:12px;line-height:1.7;font-weight:400;overflow-wrap:anywhere}
.rural-digest-modal[data-view="review"] .rd-scope,.rural-digest-modal[data-view="source"] .rd-scope{display:none}
.rd-manage{background:#f4f6f4;color:#526158;border-radius:6px;padding:8px 12px;font-size:13px!important;white-space:nowrap}
.rd-close{border-radius:50%;width:44px;background:#f3f5f2;color:#46594c;font-size:25px!important;flex-shrink:0}
.rd-back{background:#edf3ec;color:#365d43;border-radius:10px;padding:8px 11px;font-size:13px!important;white-space:nowrap;flex-shrink:0}
.rd-workflow{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:0 0 16px}
.rd-phase{font-size:12px;line-height:1.8;color:#84602d;background:#fff2dc;border-radius:5px;padding:4px 8px}
.rd-phase[data-kind="published"]{color:#5b7161;background:#f3f6f3}
.rd-phase[data-kind="empty"]{color:#6e7e71;background:#eaf0e9}
.rd-writing-hint{font-size:12px;line-height:1.8;color:#6e7e71;margin:8px 0 14px}
.rd-scroll{overflow:auto;overscroll-behavior:contain;min-height:0;flex:1;padding:20px 32px 28px;-webkit-overflow-scrolling:touch;scrollbar-gutter:stable}
.rd-toolbar{display:flex;gap:14px;justify-content:space-between;align-items:flex-start;margin-bottom:12px}
.rd-meta{display:flex;flex-wrap:wrap;gap:5px 12px;color:#708076;font-size:12px;line-height:1.7;overflow-wrap:anywhere}
.rd-issue-meta{font-size:13px;color:#687c6d;line-height:1.8;margin:0;flex:1}
.rd-history-label{display:flex;align-items:center;gap:6px;color:#687c6d;font-size:12px;flex-shrink:0}
.rural-digest-modal[data-view="review"] .rd-history-label{display:flex;align-items:center;gap:6px;color:#687c6d;font-size:12px;flex-shrink:0}
.rd-reader-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 0 2px}
.rd-reader-actions span{font-size:12px;color:#858c86}
.rd-share{border-radius:6px;background:#f2f6f2;color:#276447;padding:8px 14px;font-size:13px!important}
.rd-history-label select{max-width:210px;min-height:36px;border:1px solid #d7e0d5;background:white;border-radius:8px;padding:4px 6px;color:#365d43}
.rd-status{font-size:13px;line-height:1.8;color:#697c69;margin:8px 0 18px;min-height:0}
.rd-status:empty{display:none}
.rd-status[data-error="1"]{color:#a04b2c;background:#fff4ed;padding:10px;border-radius:8px}
.rd-card{background:#fff;border:0;border-bottom:1px solid #e7ebe7;border-radius:0;padding:26px 0;margin:0;overflow-wrap:anywhere}
.rd-card:last-child{border-bottom:0}
.rd-edit-card{padding:20px;border:1px solid #dfe5df;border-radius:8px;margin-bottom:18px}
.rd-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.rd-tag{font-size:12px;color:#64736a}
.rd-index{font-size:13px;color:#8e9c8e;font-variant-numeric:tabular-nums}
.rd-card h3{font-size:21px;font-weight:650;line-height:1.55;margin:0 0 16px;color:#242c27}
.rd-summary{font-size:16px;line-height:1.95;white-space:pre-wrap;color:#414b44;margin:0 0 16px}
.rd-summary p{margin:0 0 .85em}.rd-summary p:last-child{margin-bottom:0}
.rd-original{padding:10px 0;background:none;color:#276447;font-size:14px!important;display:inline-flex;align-items:center;min-height:44px;text-align:left;text-decoration:none;flex-shrink:0}
.rd-original:hover{text-decoration:underline;text-underline-offset:4px}
.rd-article-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:2px 16px}
.rd-article-footer .rd-meta{flex:1;min-width:160px}
.rd-original span{padding-left:4px}
.rd-empty{padding:44px 20px;text-align:center;border:1px dashed #d6dfd0;border-radius:15px;background:#fff}
.rd-empty strong{font-size:19px}.rd-empty p{font-size:14px;color:#72806c;line-height:1.9;margin:12px auto 0;max-width:390px}
.rd-admin{padding:16px;background:#edf2e8;border:1px solid #d8e2d1;border-radius:12px;margin-bottom:18px}
.rd-admin label{display:flex;align-items:center;gap:10px;font-size:14px;line-height:1.8}
.rd-admin .rd-model-label{flex-wrap:wrap;margin-bottom:4px}
.rd-model-label select{min-height:42px;max-width:100%;padding:8px 12px;border:1px solid #c8d6c0;border-radius:8px;background:#fff;color:#304b33;font-size:14px}
.rd-admin input,.rd-verify input{width:19px;height:19px;accent-color:#436e42;flex-shrink:0}
.rd-admin p{font-size:12px;color:#73806b;line-height:1.8;margin:8px 0 12px}
.rd-generate{background:#456c42;color:#fff;border-radius:9px;padding:10px 16px;font-size:14px!important}
.rd-category{border:1px solid #d8e2d1;border-radius:7px;padding:7px;max-width:140px;background:#f6f9f3;color:#40643a;min-height:38px}
.rd-remove{background:none;color:#936447;font-size:12px!important;margin-left:auto;padding:8px}
.rd-field{display:block;font-size:12px;color:#708066;margin:15px 0 0}
.rd-field textarea{resize:vertical;display:block;width:100%;border:1px solid #cfdcc8;border-radius:10px;background:#fafcf9;padding:12px;min-height:125px;line-height:1.85;font-size:15px;margin-top:6px;color:#30432f}
.rd-evidence{margin:12px 0;font-size:13px;line-height:1.9;color:#6d7c67}
.rd-evidence summary{cursor:pointer;padding:4px 0}.rd-evidence p{padding:12px;background:#f5f7f1;border-left:3px solid #c0d1b4;white-space:pre-wrap}
.rd-verify{display:flex;align-items:flex-start;gap:8px;font-size:13px;line-height:1.8;padding-top:12px;border-top:1px solid #e7ecdf;color:#4d6544}
.rd-actions{display:flex;justify-content:flex-end;gap:10px;padding:14px 24px max(14px,env(safe-area-inset-bottom));border-top:1px solid #dce5d5;background:#fff}
.rd-actions button{border-radius:10px;padding:10px 20px;font-size:14px;color:#4b6640;background:#eef4e7}
.rd-actions button:last-child{background:#456c42;color:#fff}
.rd-warning{border-radius:9px;padding:12px;background:#fff5e9;color:#8c693c;font-size:12px;line-height:1.8;margin-bottom:14px}.rd-warning p{margin:2px}
.rd-update-notice{margin:16px 0 20px;padding:14px 16px;background:#f3f6f2;border:1px solid #e2e8df;border-radius:10px;line-height:1.8;overflow-wrap:anywhere}
.rd-update-notice strong{display:block;font-size:15px;font-weight:600;color:#425b43}.rd-update-notice p{margin:4px 0 0;color:#6c786b;font-size:13px}
.rd-source h3{font-size:22px;line-height:1.6;margin:15px 0;overflow-wrap:anywhere}
.rd-source-notice{font-size:12px;line-height:1.9;color:#788078;margin:12px 0}
.rd-workload{font-size:12px;line-height:1.8;color:#68776d;margin:0 0 18px;padding-bottom:12px;border-bottom:1px solid #e7ebe7;overflow-wrap:anywhere}
.rd-workload-counts{display:flex;flex-wrap:wrap;gap:4px 18px;margin:0 0 4px;font-variant-numeric:tabular-nums}
.rd-workload summary{cursor:pointer;padding:4px 0;width:fit-content;max-width:100%}
.rd-workload details p{margin:6px 0 0;max-width:64em}
.rd-stat-title{font-size:12px;font-weight:600;margin:0 0 6px}
.rd-ai-run{font-size:12px;line-height:1.8;color:#68776d;margin:0 0 18px;padding:10px 12px;background:#f5f7f4;border:1px solid #e2e8df;border-radius:6px;overflow-wrap:anywhere}
.rd-ai-run p{margin:4px 0}.rd-ai-run .rd-stat-title{margin-top:0}.rd-stat-note{color:#788078}
.rd-ai-run summary{cursor:pointer;padding:7px 0;min-height:24px}.rd-assessment{border-top:1px solid #dfe6dc;padding:10px 0}.rd-assessment a{color:#456d40}.rd-assessment-text{font-size:14px;line-height:1.9;white-space:pre-wrap;margin:8px 0;overflow-wrap:anywhere}
.rd-source-text{font-size:16px;line-height:2;white-space:pre-wrap;overflow-wrap:anywhere;margin:24px 0}
.rd-source-link{color:#456d40;font-size:14px;display:inline-block;padding:12px 0}
.rural-digest-modal[data-view="read"] .rd-status:not([data-error="1"]){order:1;margin:18px 0 0;padding-top:16px;border-top:1px solid #e7ebe7;font-size:12px}
.rural-digest-modal[data-view="read"] .rd-scroll{display:flex;flex-direction:column}
.rural-digest-modal[data-view="read"] .rd-workflow{justify-content:flex-end;margin:0;border-bottom:1px solid #e7ebe7;padding-bottom:10px}
.rural-digest-modal[data-view="read"] .rd-phase[data-kind="published"]{display:none}
.rural-digest-modal[data-view="read"] .rd-toolbar{align-items:center}
@media(max-width:600px){.rural-digest-modal{inset:0;width:100%;border-radius:0}.rd-header{padding:14px 18px 12px;gap:8px}.rd-heading h2{font-size:21px}.rd-heading small{font-size:11px}.rd-manage{padding:7px 9px}.rd-scroll{padding:16px 20px max(24px,env(safe-area-inset-bottom));scrollbar-gutter:auto}.rd-toolbar{flex-direction:column;gap:8px}.rural-digest-modal[data-view="read"] .rd-toolbar{align-items:flex-start}.rd-history-label select{max-width:230px}.rd-card{padding:24px 0}.rd-edit-card{padding:16px 14px}.rd-card h3{font-size:20px}.rd-summary{font-size:16px}.rd-actions{padding:12px 14px max(12px,env(safe-area-inset-bottom))}.rd-actions button{flex:1;padding:11px 8px}.rd-source-text{font-size:16px}.rd-source h3{font-size:21px}}
