:root{color-scheme:light;--ink:#141915;--muted:#68726c;--paper:#f4f6f7;--white:#fff;--line:#d8dfdb;--soft:#ecefed;--green:#54b900;--green-deep:#318300;--green-soft:#e9f6df;--shadow:0 18px 50px rgba(18,27,21,.09)}
*{box-sizing:border-box}body{margin:0;min-width:320px;background:var(--paper);color:var(--ink);font-family:Inter,Aptos,"Segoe UI",Arial,sans-serif;line-height:1.5;-webkit-font-smoothing:antialiased}button,input{font:inherit}[hidden]{display:none!important}:focus-visible{outline:3px solid rgba(49,131,0,.38);outline-offset:2px}
.topbar{position:sticky;top:0;z-index:10;min-height:68px;display:flex;align-items:center;justify-content:space-between;padding:9px clamp(18px,4vw,58px);border-bottom:1px solid var(--line);background:rgba(255,255,255,.9);backdrop-filter:blur(14px)}.brand{display:flex;align-items:center;gap:9px;color:inherit;text-decoration:none}.brand img{width:43px;height:43px;border-radius:10px}.brand span{display:grid;line-height:1}.brand strong{font-size:17px}.brand small{margin-top:5px;color:var(--green-deep);font-size:9px;font-weight:900;letter-spacing:.09em;text-transform:uppercase}.back-link{display:flex;align-items:center;gap:7px;padding:9px 13px;border:1px solid var(--line);border-radius:999px;background:white;color:#39433d;font-size:13px;font-weight:800;text-decoration:none}
.page{width:min(1240px,calc(100% - 36px));margin:0 auto;padding:50px 0 72px}.hero{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:30px}.hero>div{max-width:760px}.eyebrow{margin:0 0 7px;color:var(--green-deep);font-size:12px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}.hero h1{margin:0;font-size:clamp(34px,5vw,58px);line-height:1;letter-spacing:-.055em}.hero p:not(.eyebrow){margin:17px 0 0;color:var(--muted);font-size:16px}.cases-link{flex:0 0 auto;padding:13px 18px;border-radius:12px;background:#373d39;color:white;font-weight:850;text-decoration:none}
.tools{display:grid;grid-template-columns:minmax(260px,1fr) auto;gap:12px;align-items:center;padding:13px;border:1px solid var(--line);border-radius:18px;background:white;box-shadow:var(--shadow)}.search{position:relative}.search>span{position:absolute;left:14px;top:9px;color:var(--muted);font-size:21px}.search input{width:100%;height:48px;padding:0 14px 0 42px;border:1px solid var(--line);border-radius:11px;background:#fafbfb;color:var(--ink)}.tabs{display:flex;gap:5px;padding:4px;border-radius:12px;background:var(--soft)}.tabs button{min-height:40px;display:flex;align-items:center;gap:8px;padding:0 13px;border:0;border-radius:9px;background:transparent;color:#4f5953;font-size:12px;font-weight:850;cursor:pointer}.tabs button[aria-selected=true]{background:white;color:var(--ink);box-shadow:0 3px 12px rgba(18,27,21,.08)}.tabs b{min-width:23px;padding:2px 6px;border-radius:999px;background:var(--green-soft);color:var(--green-deep);font-size:9px;text-align:center}
.notice{margin:18px 0 0;padding:11px 14px;border:1px solid #e4aaa6;border-radius:11px;background:#fbedec;color:#8e2d27;font-size:13px;font-weight:750}.library-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:24px}.document-card,.photo-card{min-width:0;overflow:hidden;border:1px solid var(--line);border-radius:16px;background:white;box-shadow:0 8px 26px rgba(18,27,21,.045)}.document-card{display:grid;gap:12px;padding:18px}.card-head{display:flex;align-items:flex-start;gap:10px}.kind{flex:0 0 auto;padding:5px 8px;border-radius:8px;background:var(--green-soft);color:var(--green-deep);font-size:9px;font-weight:950;text-transform:uppercase}.document-card h2,.photo-card h2{min-width:0;margin:0;overflow:hidden;font-size:16px;line-height:1.35;text-overflow:ellipsis}.equipment{margin:0;color:#465049;font-size:13px;font-weight:700}.meta{display:flex;flex-wrap:wrap;gap:6px}.meta span{max-width:100%;padding:4px 8px;border-radius:999px;background:#f2f4f3;color:var(--muted);font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.case-origin{margin:0;color:var(--muted);font-size:11px}.card-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:auto;padding-top:12px;border-top:1px solid var(--line)}.card-actions a{padding:8px 11px;border-radius:9px;background:#373d39;color:white;font-size:11px;font-weight:850;text-decoration:none}.card-actions a.secondary{border:1px solid #b7dca4;background:var(--green-soft);color:var(--green-deep)}
.photo-preview{position:relative;display:block;aspect-ratio:4/3;overflow:hidden;background:linear-gradient(110deg,#edf1ee 20%,#f7f9f8 42%,#edf1ee 64%);background-size:220% 100%;animation:photo-loading 1.3s linear infinite}.photo-preview img{width:100%;height:100%;display:block;object-fit:cover;opacity:0;transition:opacity .18s ease}.photo-preview.loaded{animation:none;background:#eef1ef}.photo-preview.loaded img{opacity:1}.photo-body{display:grid;gap:9px;padding:14px}.photo-card h2{font-size:14px;white-space:nowrap}.photo-card .card-actions{padding-top:10px}
.empty{padding:75px 20px;text-align:center}.empty>span{width:58px;height:58px;display:grid;place-items:center;margin:0 auto 13px;border-radius:15px;background:var(--green-soft);color:var(--green-deep);font-size:10px;font-weight:950}.empty h2{margin:0}.empty p{color:var(--muted)}.empty a{display:inline-block;padding:10px 14px;border-radius:10px;background:#373d39;color:white;font-weight:800;text-decoration:none}.loading{min-height:calc(100vh - 68px);display:grid;place-content:center;justify-items:center;gap:11px;color:var(--muted)}.loading img{width:66px;height:66px;border-radius:16px}.loading strong{font-size:14px}
@keyframes photo-loading{to{background-position:-220% 0}}@media(prefers-reduced-motion:reduce){.photo-preview{animation:none}}
@media(max-width:980px){.library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.tools{grid-template-columns:1fr}.tabs{width:100%}.tabs button{flex:1;justify-content:center}.library-grid{grid-template-columns:1fr}}
@media(max-width:560px){.topbar{padding:9px 14px}.brand small{display:none}.back-link{font-size:0}.back-link span{font-size:20px}.page{width:min(100% - 24px,1240px);padding-top:28px}.hero{align-items:flex-start;flex-direction:column}.hero h1{font-size:40px}.hero p:not(.eyebrow){font-size:14px}.cases-link{width:100%;text-align:center}.tools{padding:10px}.library-grid{margin-top:16px}}

html[dir="rtl"] input:is([type="email"], [type="password"], [type="tel"], [type="url"], [autocomplete="one-time-code"]) { direction: ltr; text-align: left; }

.tabs [data-excel-tab-icon]{display:flex}.tabs [data-excel-tab-icon] svg{width:21px;height:21px}.library-grid .fe-spreadsheet-card{margin:0}.tabs{flex-wrap:wrap}.tabs button{white-space:nowrap}
.library-file-icon{display:flex;flex:0 0 44px;width:44px;height:48px;align-items:center;justify-content:center}.library-file-icon svg{width:44px;height:44px}.card-head h2{overflow-wrap:anywhere}.card-actions button,.card-actions a{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:36px;padding:8px 11px;border:1px solid transparent;border-radius:9px;background:#373d39;color:white;font-size:11px;font-weight:850;text-decoration:none;cursor:pointer;white-space:nowrap}.card-actions button.secondary,.card-actions a.secondary{border:1px solid #b7dca4;background:var(--green-soft);color:var(--green-deep)}.card-actions svg{width:15px;height:15px;flex:none}.card-actions button:disabled{opacity:.5;cursor:wait}.library-grid .fe-spreadsheet-card{display:grid;gap:12px;padding:18px}.library-grid .fe-spreadsheet-icon{padding:0;background:transparent;border-radius:0}.library-grid .fe-spreadsheet-origin{margin:0;border:1px solid #b7dca4;padding:8px 11px;font-size:11px}.library-status{margin:0;font-size:12px;color:#8e2d27}.library-share-dialog{max-width:min(440px,calc(100% - 24px));border:1px solid var(--line);border-radius:18px;padding:24px;box-shadow:var(--shadow)}.library-share-dialog::backdrop{background:#14231b66}.library-share-dialog p{overflow-wrap:anywhere}.photo-card h2{white-space:normal;overflow-wrap:anywhere}.photo-body .case-origin{overflow-wrap:anywhere}

/* Dedicated Quarry page shares Tunnel’s responsive shell. */
.quarry-library .tools .search{display:block}.quarry-library .tabs button{font:inherit;font-size:12px;font-weight:850}.quarry-library .tabs svg{width:21px;height:21px;flex:none}.quarry-library .tabs b{margin-inline-start:4px}.quarry-library .fe-library-empty{padding:55px 20px}.quarry-library .library-grid .library-card{height:100%}.quarry-library .library-grid{align-items:stretch}html[dir="rtl"] .search>span{left:auto;right:14px}html[dir="rtl"] .search input{padding:0 42px 0 14px}

.quarry-library .tools .fe-library-search{margin:0}

.quarry-library .photo-card{display:flex;flex-direction:column}.quarry-library .photo-preview{border:0;padding:0;width:100%;cursor:pointer;flex:none}.quarry-library .photo-preview .library-photo{border-radius:0;aspect-ratio:auto}.quarry-library .photo-body{flex:1;align-content:start}.quarry-library .photo-body .card-actions{margin-top:auto}.quarry-library .photo-body .case-origin{font-size:11px}.quarry-library .photo-body .card-actions button,.quarry-library .photo-body .card-actions a{font-size:11px;font-weight:850;min-height:36px;white-space:nowrap}
