.fe-rich{white-space:normal;overflow-wrap:anywhere;line-height:1.6}.fe-rich h3{margin:1.3em 0 .5em;font-size:1.08em;line-height:1.4}.fe-rich p{margin:.5em 0}.fe-rich code{font-size:.92em;background:#00000008;padding:.1em .25em;border-radius:4px}.fe-rich a{color:#438600;text-underline-offset:3px}.fe-supplier{border:1px solid #becbb8;border-radius:16px;background:#ffffff75;padding:18px;margin:18px 0}.fe-supplier h3:first-child{margin-top:0}.fe-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:16px}.fe-action{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 17px;border:1px solid #a7bd99;border-radius:12px;background:transparent;color:#387100;font:inherit;font-weight:750;text-decoration:none!important;cursor:pointer}.fe-action:hover{background:#edf4e7}.fe-media{display:flex;flex-wrap:wrap;gap:12px;margin:12px 0}.fe-photo{display:flex;flex-direction:column;gap:5px;max-width:220px;font-size:12px;color:inherit;overflow-wrap:anywhere}.fe-photo img{display:block;max-width:100%;width:auto;max-height:220px;object-fit:contain;border-radius:12px;background:#f1f3ef}.fe-media-error{outline:1px dashed #a77;padding:10px}.fe-archive{width:min(960px,calc(100% - 24px));max-height:85dvh;border:1px solid #d0d7cd;border-radius:20px;background:#f5f7f4;color:#202b23;padding:24px}.fe-archive::backdrop{background:#10201899}.fe-archive header{display:flex;align-items:center;justify-content:space-between;gap:15px}.fe-archive header button{border:0;background:transparent;font-size:28px;cursor:pointer;min-width:44px;min-height:44px}.fe-filters{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}.fe-filters input,.fe-filters select{font:inherit;border:1px solid #bbc5b6;border-radius:10px;background:#fff;padding:12px;min-width:0}.fe-filters input{flex:1;min-width:180px}.fe-case-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr));gap:12px;margin-bottom:18px}.fe-case{display:flex;gap:14px;align-items:center;text-align:start;background:#fff;border:1px solid #d0d7cd;border-radius:14px;padding:15px;font:inherit;color:inherit;cursor:pointer;min-width:0}.fe-case:hover{border-color:#538f24}.fe-case>span:last-child{display:flex;flex-direction:column;gap:5px;min-width:0;overflow-wrap:anywhere}.fe-case small{color:#687267;font-size:12px}.fe-case-thumb{display:flex;align-items:center;justify-content:center;width:70px;height:76px;flex-shrink:0;overflow:hidden;border-radius:10px;background:#edf4e7;font-size:10px;text-align:center}.fe-case-thumb img{width:100%;height:100%;object-fit:cover}[hidden]{display:none!important}@media(max-width:600px){.fe-archive{padding:15px}.fe-supplier{padding:13px}.fe-action{flex:1 1 auto}.fe-photo{max-width:150px}.fe-photo img{max-height:170px}}

/* Same compact identity in archives and recent-case sidebars. */
.fe-case-identity{display:grid!important;gap:2px;min-width:0;white-space:normal!important;overflow:visible!important}
.fe-identity-line{display:block;min-width:0;overflow-wrap:anywhere;line-height:1.3;white-space:normal}
.fe-identity-0{font-weight:800}.fe-identity-1{font-size:.9em;font-weight:700;color:#414b44}.fe-identity-2{font-size:.82em;font-weight:500;color:#68726c}
.case-button .fe-case-identity{font-size:12px;text-align:start}.case-button .fe-identity-line{white-space:normal!important;overflow:visible!important}

/* Contact fields retain readable text as well as the unique action row. */
.fe-rich .fe-contact-label{font-weight:800}.fe-rich a.fe-contact-value{color:#438600;font-weight:750;text-decoration:underline;text-underline-offset:3px}.fe-rich .fe-contact{margin:.4em 0}

/* Same three-source photo chooser on both products. */
.fe-photo-source{width:min(430px,calc(100% - 24px));max-height:90dvh;overflow:auto;padding:0;border:1px solid #d0d7cd;border-radius:18px;background:#fff;color:#202b23;box-shadow:0 20px 70px #10201833;font:inherit}
.fe-photo-source:not([open]){display:none}.fe-photo-source::backdrop{background:#12171466;backdrop-filter:blur(3px)}
.fe-photo-source-panel{padding:18px}.fe-photo-source-panel>header{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:14px}.fe-photo-source-panel header>div{display:grid}
.fe-photo-source-panel header small{color:#438600;font-size:12px;font-weight:800;letter-spacing:.04em;text-transform:uppercase}.fe-photo-source-panel h2{margin:2px 0 0;font-size:22px;line-height:1.3}
.fe-photo-source-panel header button{width:44px;height:44px;flex-shrink:0;border:1px solid #d0d7cd;border-radius:10px;background:#fff;font-size:24px;color:inherit;cursor:pointer}
.fe-photo-source-options{display:grid;gap:8px}.fe-photo-source-options button{min-height:76px;display:grid;grid-template-columns:46px minmax(0,1fr);grid-template-rows:auto auto;column-gap:11px;padding:12px;border:1px solid #d0d7cd;border-radius:12px;background:#fafbfb;color:inherit;text-align:start;cursor:pointer;font:inherit}.fe-photo-source-options button:hover{background:#edf4e7;border-color:#9fc58b}
.fe-photo-source-options button>span{grid-row:1/3;align-self:center;width:46px;height:46px;display:grid;place-items:center;border-radius:10px;background:#edf1ee;color:#438600;font-size:11px;font-weight:900}.fe-photo-source-options strong{font-size:15px;align-self:end}.fe-photo-source-options small{font-size:13px;color:#68726c;line-height:1.4;align-self:start}.fe-photo-source button:focus-visible{outline:3px solid #438600;outline-offset:2px}
@media(max-width:600px){.fe-photo-source{margin-bottom:max(12px,env(safe-area-inset-bottom));border-radius:18px 18px 14px 14px}}

/* Progress belongs to the conversation flow, with the same avatar as a reply. */
.fe-request-message{min-width:0}
.fe-request-progress{position:static;min-width:0;width:100%;max-width:540px;box-sizing:border-box;padding:14px 16px;border:1px solid #d4ded3;border-radius:4px 16px 16px;background:#f3f7f0;color:#26352d;font:inherit;font-size:14px;line-height:1.45;text-align:start;overflow-wrap:anywhere}
.fe-request-progress strong{display:block;font-size:14px;font-weight:700}
.fe-request-progress progress{display:block;width:100%;height:6px;margin:12px 0 8px;border:0;border-radius:999px;overflow:hidden;appearance:none;background:#dce5d7;accent-color:#5ba900}
.fe-request-progress progress::-webkit-progress-bar{background:#dce5d7;border-radius:999px}
.fe-request-progress progress::-webkit-progress-value{background:#5ba900;border-radius:999px}
.fe-request-progress progress::-moz-progress-bar{background:#5ba900;border-radius:999px}
.fe-request-progress p{margin:6px 0;font-size:12px}
.fe-request-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px 16px;margin-top:6px}
.fe-request-progress .fe-request-elapsed{font-variant-numeric:tabular-nums;color:#52604d}
.fe-request-progress button{min-height:44px;max-width:100%;padding:8px 14px;border:1px solid #a5b79b;border-radius:10px;background:transparent;color:#34492b;font:inherit;font-size:13px;font-weight:700;white-space:normal;overflow-wrap:anywhere;cursor:pointer}
.fe-request-progress button:hover{background:#e6eedd}
.fe-request-progress button:focus-visible{outline:3px solid #427a0c;outline-offset:3px}
[dir=rtl] .fe-request-progress{border-radius:16px 4px 16px 16px}
@media(max-width:600px){.fe-request-progress{padding:12px}}



.fe-document-results{display:grid;gap:12px;margin-block:12px}.fe-document-card{display:grid;gap:8px;padding:16px;border:1px solid #a8bba2;border-radius:12px;min-width:0;overflow-wrap:anywhere}.fe-document-card>strong{font-size:1rem}.fe-document-card>small{font-size:.875rem}.fe-document-actions{display:flex;flex-wrap:wrap;gap:8px}.fe-document-actions a,.fe-document-actions button{display:inline-flex;align-items:center;min-height:44px;padding:8px 12px;border:1px solid #49732e;border-radius:8px;background:transparent;color:inherit;font:inherit;font-size:.875rem;text-decoration:none;cursor:pointer}.fe-document-actions :focus-visible{outline:2px solid currentColor;outline-offset:3px}.fe-document-actions button:disabled{opacity:.55;cursor:wait}.fe-document-card [role=status]{font-size:.875rem;margin:0}

.fe-document-section{min-width:0;display:flex;flex-direction:column;gap:8px}.fe-document-section .fe-document-card{margin-top:0}.fe-document-footer{margin-top:14px}.fe-document-actions>*{min-width:0;white-space:normal;overflow-wrap:anywhere}
.fe-document-main{display:grid;gap:8px;color:inherit;text-decoration:none}.fe-document-main strong{font-size:1rem}.fe-document-main small{font-size:.875rem}.fe-document-main:focus-visible{outline:2px solid #5ba900;outline-offset:4px}.fe-document-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.fe-document-actions>*{justify-content:center;text-align:center;gap:6px}.fe-document-spinner{width:14px;height:14px;flex-shrink:0;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:fe-document-spin .8s linear infinite}.fe-document-actions [aria-busy=true]{cursor:wait}.fe-document-actions [aria-disabled=true]{opacity:.7}@keyframes fe-document-spin{to{transform:rotate(360deg)}}

/* Private generated spreadsheets share document actions without PDF labeling. */
.fe-spreadsheet-card{margin:12px 0;min-width:0;overflow-wrap:anywhere}.fe-spreadsheet-icon{font-size:11px;background:#e6f3e6;color:#17632a;border:1px solid #a8cba8;border-radius:4px;padding:4px;display:inline-block}.fe-spreadsheet-card[aria-busy="true"]{opacity:.75}

/* Excel cards: readable filenames and whole action labels at mobile widths. */
.fe-spreadsheet-card{padding:16px;gap:16px;background:#fff;border:1px solid #d9e3dc;border-radius:16px;box-shadow:0 4px 16px #183d2410;align-content:start;text-align:start}
.fe-spreadsheet-head{display:flex;align-items:center;gap:12px;min-width:0}
.fe-spreadsheet-icon{display:flex;align-items:center;justify-content:center;flex:0 0 48px;width:48px;height:48px;padding:0;border:0;background:#eaf6ee;border-radius:12px}
.fe-spreadsheet-icon svg{display:block;width:40px;height:40px}
.fe-spreadsheet-info{min-width:0;display:grid;gap:4px}.fe-spreadsheet-name{font-size:15px;line-height:1.4;font-weight:750;color:#24382c;overflow-wrap:anywhere}
.fe-spreadsheet-detail{font-size:11px;line-height:1.4;letter-spacing:.035em;color:#62736a;font-weight:700}
.fe-spreadsheet-card .fe-document-actions{display:flex;flex-wrap:wrap;gap:8px}
.fe-spreadsheet-card .fe-document-actions button{flex:1 1 auto;min-width:max-content;min-height:44px;padding:10px 12px;gap:7px;border:1px solid #dce5de;border-radius:10px;background:#f2f6f3;color:#365c43;font-size:13px;font-weight:700;line-height:1.3;white-space:nowrap;overflow-wrap:normal;transition:background .15s,border-color .15s}
.fe-spreadsheet-card .fe-document-actions button[data-file-action=open]{background:#197344;border-color:#197344;color:#fff}
.fe-spreadsheet-card .fe-document-actions button:hover{background:#e4efe7;border-color:#a4c8b1}.fe-spreadsheet-card .fe-document-actions button[data-file-action=open]:hover{background:#125b35}
.fe-spreadsheet-card .fe-document-actions svg{width:16px;height:16px;flex-shrink:0}.fe-spreadsheet-card .fe-document-actions span{white-space:nowrap;overflow-wrap:normal}
.fe-spreadsheet-card .fe-document-actions button:focus-visible{outline:3px solid #73b888;outline-offset:3px}
.fe-spreadsheet-origin{display:block;padding-top:10px;border-top:1px solid #e7ede8;font-size:12px;color:#52715b;text-decoration:none;overflow-wrap:anywhere}.fe-spreadsheet-origin:hover{text-decoration:underline}
.fe-excel-library{width:100%;min-width:0}.fe-library-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 20px}.fe-library-tabs button{display:flex;align-items:center;gap:8px;min-height:44px;padding:10px 18px;border:1px solid #d9e3dc;border-radius:12px;background:#fff;color:#486050;font:inherit;font-size:14px;font-weight:750;cursor:pointer}.fe-library-tabs button[aria-selected=true]{background:#eaf6ee;border-color:#a2cdb0;color:#185c37}.fe-library-tabs svg{width:22px;height:22px}.fe-library-search{display:block;width:100%;min-height:46px;padding:12px 14px;border:1px solid #d9e3dc;border-radius:12px;background:#fff;color:inherit;font:inherit;font-size:14px;margin:12px 0}
.fe-library-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:14px}.fe-library-grid .fe-spreadsheet-card{margin:0}.fe-library-empty{padding:28px 12px;text-align:center;color:#62736a;font-size:14px}.fe-library-hint{color:#62736a;font-size:13px;line-height:1.5;margin:8px 0 16px}
@media(prefers-reduced-motion:reduce){.fe-spreadsheet-card .fe-document-actions button{transition:none}}

/* Quarry library uses the same compact file actions as Tunnel. */
.quarry-library .library-card{display:flex;flex-direction:column;gap:12px;min-width:0;margin:0;padding:18px;border:1px solid #d9e3dc;border-radius:16px;background:#fff;color:#26362d;box-shadow:0 8px 26px #121b150b;overflow-wrap:anywhere}
.quarry-library .card-head{display:flex;gap:10px;align-items:flex-start}.quarry-library .card-head h2{margin:0;font-size:16px;line-height:1.35;min-width:0}.quarry-library .library-file-icon{display:flex;flex:none;width:44px;height:44px;padding:0;background:transparent}.quarry-library .library-file-icon svg{width:44px;height:44px}.quarry-library .case-origin,.quarry-library .library-meta{margin:0;font-size:12px;color:#62736a}.quarry-library .library-photo{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:10px;background:#edf1ee}
.quarry-library .card-actions,.library-share-dialog .card-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:auto;padding-top:12px;border-top:1px solid #d9e3dc}.quarry-library .card-actions button,.quarry-library .card-actions a,.library-share-dialog button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:38px;padding:8px 11px;border:1px solid transparent;border-radius:9px;background:#373d39;color:white;font:inherit;font-size:12px;font-weight:750;text-decoration:none;cursor:pointer;white-space:normal}.quarry-library .card-actions .secondary,.library-share-dialog .secondary{border-color:#b7dca4;background:#eaf6ee;color:#185c37}.quarry-library .card-actions svg{width:15px;height:15px;flex:none}.quarry-library .card-actions button:disabled{opacity:.5;cursor:wait}.quarry-library .fe-spreadsheet-origin{margin:0}.quarry-library .library-status{margin:0;font-size:12px;color:#8e2d27}.library-share-dialog{max-width:min(440px,calc(100% - 24px));border:1px solid #d9e3dc;border-radius:18px;padding:24px;box-shadow:0 16px 48px #14231b33}.library-share-dialog::backdrop{background:#14231b66}.library-share-dialog p{overflow-wrap:anywhere}
