html.file-is-open, html.file-is-open body { overflow: hidden; }
dialog.phone-original {
  position: fixed; inset: 0; margin: 0; width: 100%; height: 100%; height: 100dvh;
  max-width: none; max-height: none; padding: 0; border: 0; border-radius: 0; box-sizing: border-box;
  background: #f3f3f5; color: #17171a; font: 16px -apple-system, BlinkMacSystemFont, sans-serif;
}
.phone-original[open] { display: flex; flex-direction: column; isolation: isolate; }
.phone-original::backdrop { background: #f3f3f5; }
.phone-original header { position:relative; z-index:1; display:grid; grid-template-columns:48px minmax(0,1fr) 48px; align-items:center; gap:6px; padding:calc(env(safe-area-inset-top,0px) + 6px) 10px 6px; background:#f6f6f8; }
.phone-original header strong { justify-self:center; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; border-radius:30px; background:white; padding:11px 14px; font-size:16px; box-sizing:border-box; }
.phone-original button { width:46px; height:46px; border:0; border-radius:50%; display:inline-grid; place-items:center; background:white; color:#121214; padding:0; box-shadow:0 2px 12px #16162112; cursor:pointer; }
.phone-original button:disabled { opacity:.45; }
.phone-original :focus-visible { outline:2px solid #4f3ff0; outline-offset:-2px; }
.phone-original footer { position:absolute; z-index:1; bottom:calc(env(safe-area-inset-bottom,0px) + 12px); left:50%; transform:translateX(-50%); display:grid; justify-items:center; gap:4px; width:max-content; max-width:94%; pointer-events:none; }
.phone-original footer button,.phone-original footer span:not(:empty) { pointer-events:auto; }
.phone-original .file-share { border-radius:30px; width:70px; box-shadow:0 2px 16px #17172330; }
.phone-original footer span:not(:empty) { padding:6px 12px; border-radius:12px; text-align:center; background:white; }
.phone-original .file-pages { flex:1 1 auto; min-height:0; overflow:auto; overscroll-behavior:contain; padding:6px 6px calc(env(safe-area-inset-bottom,0px) + 74px); text-align:start; }
.phone-original .file-page { aspect-ratio: 210/297; width:100%; background:white; box-shadow:0 1px 5px #10102020; margin-bottom:6px; }
.phone-original .file-page canvas,.phone-original .file-pages img { display:block; width:100%; height:auto; }
.phone-original .file-pages img { object-fit:contain; max-height:100%; }
.phone-original .file-pages pre { width:max-content; padding:12px; background:white; }
.phone-original .file-pages select { position:sticky; left:0; max-width:100%; margin:2px 0 8px; padding:8px; font:inherit; }
.phone-original .file-pages table { border-collapse:collapse; width:max-content; min-width:100%; font:14px -apple-system,BlinkMacSystemFont,sans-serif; background:white; }
.phone-original .file-pages td { max-width:40ch; padding:5px 8px; border:1px solid #dddde4; white-space:pre-wrap; overflow-wrap:anywhere; }
