/* Scoped to project export, so global form/nav/table rules cannot compress the controls. */
#project-export-dialog{margin:0;padding:0;border:0;border-radius:0;inset:0;width:100%;max-width:none;height:100dvh;max-height:none;overflow:hidden;background:transparent;color:#30382b;font-family:inherit}
#project-export-dialog::backdrop{background:transparent;backdrop-filter:none}
#project-export-dialog *{box-sizing:border-box}
.pe-shade{position:absolute;inset:0;background:#26302040;backdrop-filter:blur(3px)}
.pe-panel{position:absolute;inset:0 0 0 auto;width:min(1120px,94vw);background:#f5f5ef;box-shadow:var(--shadow-panel);display:flex;flex-direction:column;overflow:hidden;border-radius:var(--radius-panel)}
.pe-header{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;padding:27px 32px 22px;border-bottom:1px solid #dce1d5;flex-shrink:0}
.pe-eyebrow{font-size:9px;letter-spacing:2px;color:#86917c}
.pe-header h2{margin:9px 0 7px;font-size:24px;letter-spacing:-.6px;font-weight:550;outline:none}
.pe-header p{margin:0;font-size:12px;color:#88927d;line-height:1.6;overflow-wrap:anywhere}
.pe-close{border:0;background:transparent;width:44px;height:44px;flex:0 0 44px;font-size:27px;color:#6e7a62;cursor:pointer;border-radius:var(--radius-control);display:grid;place-items:center;line-height:1}
.pe-close:hover{background:#e4e9dc}
.pe-body{display:grid;grid-template-columns:300px minmax(0,1fr);min-height:0;flex:1;overflow:hidden}
.pe-settings{min-width:0;overflow:auto;padding:27px 25px;border-right:1px solid #dce1d5;scrollbar-width:thin}
.pe-section-label{margin:0 0 14px;font-size:12px;color:#657456}
.pe-modes{display:grid;grid-template-columns:1fr 1fr;position:relative;isolation:isolate;background:#e6eadf;padding:4px;border-radius:var(--radius-control)}
.pe-modes>span{position:absolute;left:4px;top:4px;bottom:4px;width:calc(50% - 4px);background:#fbfcf8;border:1px solid #d5ddca;border-radius:var(--radius-control);transform:translateX(calc(var(--pe-mode,0)*100%));transition:transform 220ms cubic-bezier(.22,.72,.2,1);z-index:-1}
.pe-modes button{border:0;background:none;color:#8a937f;padding:12px 8px;font:inherit;font-size:13px;font-weight:500;cursor:pointer;border-radius:var(--radius-control);white-space:nowrap}
.pe-modes button[aria-pressed=true]{color:#3f5032}
#project-export-dialog .pe-help{font-size:11px;color:#929b86;line-height:1.8;margin:13px 0 0}
.pe-fields-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:31px 0 15px}
.pe-fields-heading h3{font-size:13px;font-weight:500;margin:0}
.pe-text-button{border:0;background:transparent;color:#6f825b;font:inherit;font-size:11px;cursor:pointer;padding:5px 0;white-space:nowrap}
.pe-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
#project-export-dialog label.pe-field{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:9px;margin:0;padding:12px 10px;min-height:43px;min-width:0;border:1px solid #dfe4d7;border-radius:var(--radius-control);background:#fafbf7;color:#76816a;cursor:pointer;transition:background 130ms,border-color 130ms,color 130ms}
#project-export-dialog label.pe-field:has(input:checked){background:#e8ede0;border-color:#c9d4ba;color:#455b34}
#project-export-dialog .pe-field input[type=checkbox]{appearance:auto;flex:0 0 15px;width:15px;min-width:15px;max-width:15px;height:15px;margin:0;padding:0;border-radius:3px;accent-color:#526a40;box-shadow:none}
.pe-field span{font-size:12px;line-height:1.4;white-space:nowrap;word-break:normal;overflow-wrap:normal}
.pe-preview{display:flex;flex-direction:column;min-width:0;min-height:0;padding:25px 28px 16px;background:#e9ece3}
.pe-preview-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px;flex-shrink:0}
.pe-preview-bar h3{font-size:12px;font-weight:500;margin:0;color:#6c7d5c}
.pe-preview-bar span{font-size:10px;color:#919d84}
.pe-preview-scroll{overflow:auto;min-height:0;flex:1;scrollbar-width:thin;overscroll-behavior:contain;border:1px solid #dce2d3;background:white;box-shadow:0 7px 22px #34452706}
#project-export-dialog .pe-paper{min-width:620px;min-height:100%;padding:30px 27px 40px;background:white;font-size:11px;line-height:1.7;color:#30352c}
#project-export-dialog .pe-paper h1{font-size:23px;font-weight:600;line-height:1.5;letter-spacing:-.5px;margin:22px 0 17px}
#project-export-dialog .pe-paper h2{font-size:14px;font-weight:550;color:#526744;line-height:1.6;margin:23px 0 12px}
#project-export-dialog .pe-paper p{font-size:10px;color:#89917f;line-height:1.8;margin:9px 0}
#project-export-dialog .pe-paper table{border-collapse:collapse;width:100%;table-layout:auto;margin:0;font-size:10px}
#project-export-dialog .pe-paper th,#project-export-dialog .pe-paper td{text-align:left;vertical-align:top;padding:9px 7px;border-bottom:1px solid #e3e6dd;font-size:10px;line-height:1.7;word-break:normal;overflow-wrap:anywhere;min-width:36px}
#project-export-dialog .pe-paper th{white-space:nowrap;background:#f1f4eb;font-weight:500;color:#6c7f59}
#project-export-dialog .pe-paper td img{width:40px;height:35px;object-fit:contain}
#project-export-dialog .pe-paper .totals{text-align:right;margin:16px 0;color:#657952;font-size:11px}
#project-export-dialog .pe-paper .note{margin-top:27px;font-size:9px;color:#969d8c}
.pe-empty{padding:70px 20px;text-align:center;color:#7f8e70}
.pe-empty b{font-weight:500;font-size:15px}
.pe-preview-note{font-size:10px;color:#919c85;margin:11px 0 0;line-height:1.7;flex-shrink:0}
.pe-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-shrink:0;border-top:1px solid #d7dfcb;padding:17px 30px;background:#f5f5ef}
.pe-footer>div:first-child{min-width:0}
#pe-status{font-size:11px;line-height:1.7;color:#647b50;margin:0}
#pe-error{font-size:12px;color:#a05c46;line-height:1.6;margin:0}
#pe-error:empty{display:none}
.pe-footer small{font-size:10px;line-height:1.7;color:#959f88}
.pe-footer-actions{display:flex;gap:10px;align-items:center;flex-shrink:0}
.pe-footer-actions>.btn{padding:13px 27px;min-width:134px;white-space:nowrap;font-size:13px;border-radius:var(--radius-control)}
.pe-mobile-preview{display:none}
#project-export-dialog button{font-family:inherit;transition:background 130ms,color 130ms,opacity 130ms,transform 130ms}
#project-export-dialog button:active{transform:translateY(1px)}
#project-export-dialog button:disabled{opacity:.45;cursor:default}
#project-export-dialog :is(button,input):focus-visible{outline:2px solid #99ac85;outline-offset:3px}
@media(max-width:800px){.pe-panel{width:100%}.pe-header{padding:20px 22px 17px}.pe-header h2{font-size:22px}.pe-header p{font-size:11px}.pe-body{display:block;overflow:hidden}.pe-settings{height:100%;padding:22px;max-width:600px;margin:auto;border-right:0}.pe-fields{grid-template-columns:repeat(3,minmax(0,1fr))}#project-export-dialog label.pe-field{padding:13px 10px}.pe-preview{display:none;height:100%;padding:18px 20px 12px}.pe-show-preview .pe-settings{display:none}.pe-show-preview .pe-preview{display:flex}.pe-footer{padding:14px 20px calc(14px + env(safe-area-inset-bottom));gap:12px;align-items:stretch;flex-direction:column}.pe-footer small{display:none}.pe-footer-actions{display:flex;justify-content:space-between;gap:12px}.pe-footer-actions>.btn{flex:1;padding:13px 18px}.pe-mobile-preview{display:block;border:1px solid #d0dac4;background:transparent;border-radius:var(--radius-control);font-size:12px;color:#697d57;padding:12px 18px;cursor:pointer}.pe-preview-note{font-size:9px}.pe-fields-heading{margin-top:25px}.pe-footer p:empty{display:none}}
@media(max-width:380px){.pe-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.pe-settings{padding:20px}.pe-header{padding:18px 20px 16px}.pe-header h2{font-size:20px}}
@media(prefers-reduced-motion:reduce){#project-export-dialog *,#project-export-dialog *::before{transition-duration:60ms!important;scroll-behavior:auto!important}}
