/* Preview-only chrome: the strip above the app and the in-page dialogs that
   stand in for browser confirms and file downloads. */
.pv-strip { border-bottom: 1px solid rgb(var(--rule)); background: rgb(var(--surface)); }
.pv-strip-inner { margin: 0 auto; display: flex; max-width: 42rem; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 9px 16px; font-size: 13px; line-height: 1.35; color: rgb(var(--muted)); }
.pv-strip-inner p { flex: 1 1 15rem; min-width: 0; }
.pv-strip b { color: rgb(var(--ink)); font-weight: 600; }
.pv-strip-actions { display: flex; gap: 14px; }
.pv-strip button { min-height: 32px; font-size: 13px; font-weight: 600; color: rgb(var(--ledger)); white-space: nowrap; }
.pv-overlay { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgb(var(--ink) / .45); }
@media (prefers-color-scheme: dark) { .pv-overlay { background: rgb(0 0 0 / .6); } }
.pv-overlay[hidden] { display: none; }
.pv-dialog { width: 100%; max-width: 24rem; max-height: 100%; display: flex; flex-direction: column; border-radius: 16px; background: rgb(var(--surface)); padding: 20px; box-shadow: 0 0 0 1px rgb(var(--rule)), 0 20px 50px rgb(0 0 0 / .25); }
.pv-dialog-wide { max-width: 44rem; }
.pv-dialog-text { font-size: 15px; line-height: 1.45; }
.pv-dialog-actions { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pv-csv { margin-top: 12px; min-height: 6rem; flex: 1 1 auto; overflow: auto; border-radius: 10px; border: 1px solid rgb(var(--rule)); background: rgb(var(--paper)); padding: 12px; font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre; user-select: text; -webkit-user-select: text; }
