@media screen {
html[data-ios-pwa] #toast-container { display: none; }
html[data-ios-pwa] .ios-pwa-notification-bar {
    display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap;
}
html[data-ios-pwa] .ios-pwa-notification-bar[hidden],
html[data-ios-pwa] [data-ios-pwa-open-notifications][hidden] { display: none; }
html[data-ios-pwa] .ios-pwa-notification-announcement {
    position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
html[data-ios-pwa] .ios-pwa-notification-bar > span {
    min-width: 0; flex: 1 1 200px; color: var(--text-secondary); overflow-wrap: anywhere;
    max-height: 3em; overflow: hidden; font-size: 13px; line-height: 1.5;
}
/* Notifications (1.23.0): one row per notice, the message then the time it came on a quieter line, rows divided by a
   hairline; the type is the row's class and a hidden prefix. A cleared list's "No notifications" sits under it. */
html[data-ios-pwa] .ios-pwa-notification-list { margin: 0; padding: 0; list-style: none; }
html[data-ios-pwa] .ios-pwa-notification-list > li {
    white-space: pre-wrap; overflow-wrap: anywhere; padding-block: 9px; border-block-end: 1px solid var(--border-color); font-size: 13px;
}
html[data-ios-pwa] .ios-pwa-notification-list > li:first-child { padding-block-start: 0; }
html[data-ios-pwa] .ios-pwa-notification-list > li:last-child { padding-block-end: 0; border-block-end: 0; }
html[data-ios-pwa] .ios-pwa-notification-list time {
    display: block; margin-top: 2px; font-size: 12px; color: var(--text-secondary); font-variant-numeric: tabular-nums;
}
html[data-ios-pwa] .ios-pwa-notification-empty { margin: 0; }
html[data-ios-pwa][data-design="horizon"] .ios-pwa-notification-list > li { border-block-end-color: var(--hz-divider); }
html[data-ios-pwa][data-design="horizon"] .ios-pwa-notification-list time { color: var(--hz-caption); }
/* File ready (1.23.0): the card, the one line, then the status, which takes no room while it has nothing to say but stays
   in the page, so its first outcome is announced. The two actions are stacked full width. */
html[data-ios-pwa] .ios-pwa-file-name { display: block; overflow-wrap: anywhere; font-weight: 600; }
/* The recovery screen loads no dialogs.css, so the title, card and line it gives the dialog are restated here with its
   Classic values (the recovery screen loads no horizon.css either). :where() keeps them below dialogs.css's own rules,
   so on the app page, in both designs, dialogs.css alone decides. */
html[data-ios-pwa] :where(#ios-pwa-file-modal .modal-title) { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
html[data-ios-pwa] :where(#ios-pwa-file-modal .dlg-card) {
    display: grid; gap: 2px; margin: 0 0 var(--spacing-md); padding: 10px 12px; border: 1px solid var(--border-color); border-radius: var(--radius-md);
}
html[data-ios-pwa] :where(#ios-pwa-file-modal .dlg-card b) { justify-self: start; max-width: 100%; font-weight: 600; overflow-wrap: anywhere; }
html[data-ios-pwa] :where(#ios-pwa-file-modal .dlg-card span) { font-size: 12.5px; color: var(--text-secondary); }
html[data-ios-pwa] :where(#ios-pwa-file-modal .dlg-line) { margin: 0 0 var(--spacing-md); color: var(--text-secondary); }
html[data-ios-pwa] #ios-pwa-file-modal .dlg-line { margin-bottom: 0; }
html[data-ios-pwa] .ios-pwa-file-status { margin: 8px 0 0; }
html[data-ios-pwa] .ios-pwa-file-status:empty { margin: 0; }
html[data-ios-pwa] #ios-pwa-file-modal .modal-footer { display: grid; grid-template-columns: minmax(0, 1fr); }
/* Share while sharing is unavailable (or either button while a share runs): no half-transparent text, which fell to about
   2.2:1 in Horizon; a dashed edge in the control-border colour and the quiet text colour say it cannot be pressed. */
html[data-ios-pwa] #ios-pwa-file-modal .modal-footer .btn:disabled {
    opacity: 1; border: 1px dashed var(--border-control); background-color: transparent; color: var(--text-secondary);
}
html[data-ios-pwa][data-design="horizon"] #ios-pwa-file-modal .modal-footer .btn:disabled { color: var(--hz-caption); }
html[data-ios-pwa] #ios-pwa-discard-modal .modal-footer,
html[data-ios-pwa] #ios-pwa-notifications-modal .modal-footer { flex-wrap: wrap; }
html[data-ios-pwa] #ios-pwa-file-modal .modal-body,
html[data-ios-pwa] #ios-pwa-notifications-modal .modal-body { overflow-wrap: anywhere; }
}
@media print {
html[data-ios-pwa] .ios-pwa-ux { display: none; }
}
