.view-enter{animation:ex-view-in .24s ease-out}.card,.file-card{transition:border-color .18s ease,background-color .18s ease}.file-card:active,.order-card:active{background:#30343d;border-color:#c9a951}.attention-link{width:100%;text-align:left;margin:0 0 24px;background:#393321;color:#ffe58b}.document-section{margin:28px 0}.file-card{display:flex;align-items:center;gap:13px;width:100%;background:linear-gradient(130deg,#242832,#1a1e25);border:1px solid #373e4a;color:#f2f4f8;text-align:left;margin:10px 0;padding:16px;border-radius:16px;min-height:82px}.file-card>span:nth-child(2){flex:1;min-width:0}.file-card strong{display:block;font-size:.91rem;overflow-wrap:anywhere}.file-card small{display:block;font-size:.73rem;font-weight:400;margin-top:6px}.file-card b{color:#e7c34e;font-size:24px}.file-icon{display:grid;place-items:center;flex:none;width:38px;height:48px;border:1px solid #6c623d;border-radius:7px;background:#383223;color:#ead486;font-size:.62rem;letter-spacing:.03em}.document-history{margin:20px 0;color:#bcc4d2}.document-history summary{min-height:48px;padding:12px 0;cursor:pointer}nav button{position:relative}nav button[data-count]:not([data-count=""]):after{content:attr(data-count);position:absolute;top:0;right:16%;padding:1px 6px;border-radius:10px;background:#ffd548;color:#17191e;font-size:11px}.file-viewer{position:fixed;inset:0;box-sizing:border-box;margin:0;width:100%;height:100dvh;max-width:100%;max-height:100dvh;border:0;border-radius:0;padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom);background:#14171d;color:#eef1f7;overflow:hidden}.file-viewer[open]{display:flex;flex-direction:column}.file-toolbar{display:flex;align-items:center;gap:12px;padding:10px 14px;border-bottom:1px solid #333b46}.file-toolbar strong{font-size:.85rem;overflow-wrap:anywhere;line-height:1.3}.file-viewer button{margin:0;min-height:48px}.file-message{padding:8px 16px;color:#b9c4d2;font-size:.75rem;line-height:1.4;min-height:32px}.file-pages{display:flex;align-items:center;justify-content:center;gap:8px;padding:5px 12px 10px}.file-pages button{background:#2b323e;color:#edf1f6;font-size:.8rem;padding:8px 14px}.file-pages span{font-variant-numeric:tabular-nums;font-size:.84rem;min-width:50px;text-align:center}.file-content{flex:1;min-height:0;overflow:auto;background:#0c0f14;padding:12px;display:flex;align-items:safe center;justify-content:safe center;overscroll-behavior:contain}.file-content canvas{flex:none;background:white;box-shadow:0 8px 35px #0006}.file-content img{max-width:100%;max-height:100%;object-fit:contain}.file-share{padding:12px 16px;flex:none;border-top:1px solid #333b46}.file-share button{width:100%}.file-share small{display:block;font-size:.67rem;line-height:1.4;margin-top:9px}.preference-row{display:flex;align-items:center;gap:12px;min-height:48px}.preference-row input{width:22px;height:22px;min-height:0;margin:0;accent-color:#ffd548}@keyframes ex-view-in{from{opacity:.35;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}@media(prefers-reduced-motion:reduce){.view-enter{animation:none}.card,.file-card{transition:none}}@media(min-width:750px){.file-viewer{inset:3vh 5vw;width:90vw;height:94dvh;border-radius:20px;border:1px solid #4d5562}.file-share{display:flex;align-items:center;gap:24px}.file-share button{width:auto;min-width:200px}.file-share small{max-width:450px}}

/* Keep the application frame fixed while allowing normal one-finger page scrolling. */
.file-viewer [hidden]{display:none!important}
html,body{touch-action:pan-x pan-y}
.file-pages{gap:5px;padding:5px 8px 10px;flex-wrap:wrap}
.file-pages button{padding:8px 12px;min-width:44px}
.file-pages [data-zoom]{min-width:66px;font-variant-numeric:tabular-nums}
.file-pages [data-page]{min-width:48px}
.file-content.pdf-viewport{display:block;padding:0;touch-action:none;position:relative;user-select:none;-webkit-user-select:none;cursor:grab;scroll-behavior:auto;overscroll-behavior:none}
.pdf-viewport:active{cursor:grabbing}
.pdf-stage{position:relative;overflow:hidden;flex:none}
.pdf-sheet{position:absolute;background:white;box-shadow:0 8px 35px #0006}
.file-content .pdf-sheet canvas{position:absolute;display:block;box-shadow:none;pointer-events:none}
.pdf-sheet .pdf-base{inset:0;width:100%;height:100%}
.pdf-sheet .pdf-detail{z-index:1}
@media(max-width:360px){.file-pages{gap:3px}.file-pages button{padding:6px 8px}.file-pages [data-zoom]{min-width:58px}.file-pages [data-page]{min-width:44px}}
@media(max-height:500px){.file-toolbar{padding:4px 12px}.file-message{min-height:0;padding:3px 12px}.file-pages{padding:2px 6px}.file-share{padding:5px 12px}.file-share small{display:none}}

.image-gesture-surface{touch-action:none!important;overflow:hidden;position:relative}.image-gesture-surface img{will-change:transform;user-select:none;-webkit-user-drag:none;pointer-events:none;object-fit:contain;max-width:100%;max-height:100%}
