/* The same expand/exit controls and 250ms movement as Note Reading view. */
.jta-drive-preview-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.jta-drive-shell .jta-drive-reading-open{width:44px;height:44px;padding:10px;flex:none}
.jta-drive-reading-open svg,.jta-drive-reading-exit svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}
.jta-drive-shell .jta-drive-reading-exit{background:#fff8ce;color:#494632;border:1px solid #e8dfa0;padding:10px 14px;font:600 14px/20px Arial,sans-serif;box-shadow:none;white-space:nowrap}
.jta-drive-shell .jta-drive-reading-exit:hover{background:#ffed90;border-color:#e8dfa0;box-shadow:none;transform:none}
.jta-drive-reading-name{display:none}
.jta-drive-reading-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.jta-drive-preview-stage:focus-visible{outline:0;box-shadow:inset 0 0 0 2px #d6bd42}
.jta-drive-panel.has-drive-reading{z-index:100010}
html:has(.jta-drive-panel.has-drive-reading),body:has(.jta-drive-panel.has-drive-reading){overflow:hidden!important}
.jta-drive-panel.has-drive-reading:before{content:'';position:fixed;inset:0;background:#f6f6f4}
.jta-drive-preview-card.is-drive-reading-surface{position:fixed;z-index:1;top:var(--drive-reading-top);left:var(--drive-reading-left);width:var(--drive-reading-width);height:var(--drive-reading-height);display:flex;flex-direction:column;margin:0;overflow:hidden;transition:top 250ms cubic-bezier(.2,.7,.2,1),left 250ms cubic-bezier(.2,.7,.2,1),width 250ms cubic-bezier(.2,.7,.2,1),height 250ms cubic-bezier(.2,.7,.2,1),border-radius 250ms cubic-bezier(.2,.7,.2,1)}
.jta-drive-preview-card.is-drive-reading-active{top:0;left:0;width:100%;height:100vh;height:100dvh;border-radius:0;border:0;padding:max(12px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));background:#f6f6f4}
.is-drive-reading-surface .jta-drive-preview-bar{flex:none;display:flex;flex-direction:row;align-items:center;gap:12px;margin-bottom:12px}
.is-drive-reading-surface .jta-drive-reading-name{display:block;min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:600 14px/1.5 Arial,sans-serif}
.is-drive-reading-surface .jta-drive-preview-actions{flex:none}
.is-drive-reading-surface :is(#jta-drive-preview-title,.jta-drive-preview-links,.jta-drive-reading-open){display:none!important}
.is-drive-reading-surface .jta-drive-preview-stage{flex:1;min-height:0;max-height:none;width:100%;padding:0;border-radius:12px;background:#fff;justify-content:center}
.is-drive-reading-surface .jta-drive-preview-stage>iframe{flex:1;width:100%;height:100%;min-height:0}
.is-drive-reading-surface .jta-drive-preview-stage>:is(img,video){max-height:100%;max-width:100%;object-fit:contain}
.is-drive-reading-surface .jta-drive-preview-stage>pre{flex:none;align-self:stretch;min-height:100%;padding:24px;margin:0;font:16px/1.65 Arial,sans-serif}
.is-drive-reading-surface .jta-drive-preview-stage:has(>pre){justify-content:flex-start}
.is-drive-reading-surface .jta-drive-preview-stage>audio{width:min(600px,calc(100% - 32px))}
@media(max-width:650px){.jta-drive-preview-bar .jta-drive-preview-actions{width:100%;justify-content:flex-start}.is-drive-reading-surface .jta-drive-preview-bar .jta-drive-preview-actions{width:auto}.jta-drive-preview-card.is-drive-reading-active{padding-left:max(10px,env(safe-area-inset-left));padding-right:max(10px,env(safe-area-inset-right))}.is-drive-reading-surface .jta-drive-preview-stage>pre{padding:16px}.jta-drive-shell .jta-drive-reading-exit{padding:10px}}
@media(prefers-reduced-motion:reduce){.jta-drive-preview-card.is-drive-reading-surface{transition:none!important;animation:none!important}}
