body.paper-theme .app-install-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin: 0 0 0 12px; padding: 8px 0; border: 0; border-radius: 0; background: transparent; color: var(--ui-muted); box-shadow: none; font: inherit; font-size: 12px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
body.paper-theme .app-install-link:hover { background: transparent; color: var(--ui-text); box-shadow: none; transform: none; }
body.paper-theme .footer-copyright { flex-wrap: wrap; }
body.paper-theme.gate-body .gate-main .gate-card .app-install-link { justify-content: flex-start; width: auto; margin: 20px 0 0; padding: 8px 0; border: 0; border-radius: 0; background: transparent; color: var(--ui-muted); box-shadow: none; font-size: 13px; }
.app-install-dialog { box-sizing: border-box; width: min(420px, calc(100% - 32px)); max-height: calc(100dvh - 48px); margin: auto; padding: 28px; overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--ui-border); border-radius: 12px; background: var(--ui-surface); color: var(--ui-text); box-shadow: 0 20px 70px rgb(var(--ui-text-rgb) / .12); font: 400 15px/1.8 'Huninn', sans-serif; }
.app-install-dialog::backdrop { background: rgb(var(--ui-text-rgb) / .24); }
.app-install-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
body.paper-theme .app-install-heading h2 { margin: 0; font: 400 23px/1.5 'Huninn', sans-serif; letter-spacing: -.02em; }
body.paper-theme .app-install-close { display: grid; place-items: center; flex: none; width: 44px; height: 44px; min-height: 44px; margin: -6px -10px -6px 0; padding: 10px; border: 0; border-radius: 50%; background: transparent; color: var(--ui-muted); box-shadow: none; cursor: pointer; }
body.paper-theme .app-install-close:hover { background: var(--ui-soft); color: var(--ui-text); box-shadow: none; transform: none; }
.app-install-close svg { width: 20px; height: 20px; }
.app-install-intro { margin: 16px 0 20px; color: var(--ui-muted); }
.app-install-steps { margin: 0; padding: 0 0 0 22px; }
.app-install-steps li { padding-left: 4px; margin-bottom: 12px; }
.app-install-steps li::marker { color: var(--ui-accent); }
body.paper-theme .app-install-native { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; padding: 10px 20px; border: 1px solid var(--ui-accent); border-radius: 6px; background: var(--ui-accent); color: #fff; font: inherit; box-shadow: none; }
body.paper-theme .app-install-native:hover { border-color: var(--ui-text); background: var(--ui-text); box-shadow: none; transform: none; }
.app-install-note { margin: 24px 0 0; color: var(--ui-muted); font-size: 13px; }
.app-install-status { margin: 12px 0 0; font-size: 13px; }
.app-install-status:empty { display: none; }
body:has(.app-install-dialog[open]) { overflow: hidden; }
.app-install-dialog[open] { animation: app-install-enter 180ms ease-out both; }
@keyframes app-install-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
body.paper-theme :is(.app-install-link,.app-install-native)[hidden],.app-install-steps[hidden] { display: none; }
@media (max-width: 760px) { .app-install-dialog { max-height: calc(var(--mobile-height, 100dvh) - 48px); padding: 24px; } }
@media (prefers-reduced-motion: reduce) { .app-install-dialog[open] { animation: none; } }
@media print { .app-install-link,.app-install-dialog { display: none !important; } }
