.attachment-card{display:flex;flex-direction:column;gap:.4rem;padding:.8rem;border:1px solid var(--line,#65523f);border-radius:10px;margin:.5rem 0;overflow-wrap:anywhere}.attachment-card>span{font-size:.85rem;color:var(--muted,#b5aea3)}.attachment-card img,[data-attachment-choice] img{display:block;max-width:240px;max-height:140px;object-fit:contain}.attachment-image{border:0;background:transparent;padding:0;cursor:zoom-in}[data-attachment-choice]{display:flex;align-items:center;flex-wrap:wrap;gap:.75rem}[data-attachment-composer] input[type=file]{max-width:100%}.attachment-viewer{width:min(1200px,96vw);max-width:96vw;height:94dvh;max-height:94dvh;padding:0;border:1px solid #957650;border-radius:12px;background:#252522;color:#e9e4dc}.attachment-viewer::backdrop{background:#000b}.attachment-viewer[open]{display:flex;flex-direction:column}.attachment-viewer>header{padding:.8rem;border-bottom:1px solid #65523f;flex-shrink:0}.attachment-viewer>header>strong{display:block;overflow-wrap:anywhere;margin-bottom:.5rem}.attachment-viewer>p{margin:.3rem .8rem;font-size:.9rem}.attachment-viewer .actions{flex-wrap:wrap}.attachment-viewer input,.attachment-viewer select{width:auto;max-width:220px;min-width:0}.attachment-viewer input[type=number]{width:75px}.attachment-body{overflow:auto;flex:1;min-height:0;padding:1rem;position:relative}.attachment-paper{background:white;color:#222;padding:2rem;max-width:900px;margin:auto;white-space:pre-wrap;overflow-wrap:anywhere}.attachment-paper img{max-width:100%;height:auto}.attachment-body table{border-collapse:collapse;background:white;color:#222}.attachment-body td,.attachment-body th{border:1px solid #bbb;padding:.35rem;min-width:50px;vertical-align:top;white-space:pre-wrap}.attachment-paper table{width:100%}.attachment-sheet-tabs{display:flex;gap:.5rem;position:sticky;top:0;background:#252522;padding:.4rem}.attachment-text{white-space:pre-wrap;overflow-wrap:anywhere}.attachment-full-image{display:block;max-width:none;background:#fff}.attachment-pdf-page{position:relative;margin:0 auto 1rem;background:white;max-width:none}.attachment-pdf-page canvas{display:block}.attachment-pdf-page .textLayer{position:absolute;inset:0;overflow:clip;line-height:1;text-align:initial;text-size-adjust:none;forced-color-adjust:none;transform-origin:0 0;caret-color:CanvasText}.attachment-pdf-page .textLayer :is(span,br){color:transparent;position:absolute;white-space:pre;cursor:text;transform-origin:0 0}.attachment-pdf-page .textLayer>span:not(.markedContent),.attachment-pdf-page .textLayer .markedContent span:not(.markedContent){z-index:1}.attachment-pdf-page .textLayer span.markedContent{top:0;height:0}.attachment-pdf-page .textLayer ::selection{background:#ac855966}@media(max-width:600px){.attachment-viewer{width:98vw;max-width:98vw;height:97dvh;max-height:97dvh}.attachment-body{padding:.4rem}.attachment-paper{padding:.8rem}.attachment-card img{max-width:100%}.attachment-viewer .button{padding:.4rem}.attachment-viewer input[type=search]{max-width:160px}}

.attachment-pdf-page .textLayer{--min-font-size:1;--text-scale-factor:calc(var(--total-scale-factor)*var(--min-font-size))}.attachment-pdf-page .textLayer span{font-size:calc(var(--text-scale-factor)*var(--font-height));transform:rotate(var(--rotate,0deg)) scaleX(var(--scale-x,1)) scale(calc(1 / var(--min-font-size)))}.attachment-pdf-page .textLayer .markedContent{display:contents}

.attachment-pdf-page .textLayer mark{color:transparent;background:#ffbd3480}

.attachment-body td,.attachment-body th{color:#222}.attachment-paper p{color:inherit}
