/* "Get the Android app" prompts (see modules/appPrompt.js, appStrip.js). */

/* Author display rules (flex, block) would otherwise beat the hidden attribute. */
[data-app-prompt][hidden] { display: none !important; }

/* ── Room strip ──────────────────────────────────────────────────────── */
/* Fixed to the top of the screen, over the banner (JS sets the height to match
   it). Not inside the banner: the keyboard collapses that to zero height on phones.
   Fixed, so it never moves the room layout. */
.app-strip-wrap {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    z-index: 10010;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s ease, opacity 0.35s ease, visibility 0s linear 0.35s;
}
.app-strip-wrap[data-open="true"] {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.app-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 100%;
    padding: 0 8px 0 12px;
    background: #e9ecff;
    color: #2b2f6b;
    box-shadow: 0 4px 14px rgba(40, 20, 90, 0.3);
}
.app-strip-icon {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--banner-gradient);
    display: grid;
    place-items: center;
}
.app-strip-text { flex: 1; min-width: 0; line-height: 1.2; }
.app-strip-text b { display: block; font-size: 13.5px; }
.app-strip-text span { font-size: 11.5px; opacity: 0.8; }
.app-strip-go {
    flex: 0 0 auto;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    padding: 7px 12px;
    border-radius: 9px;
    background: var(--cta-bg);
    color: var(--cta-ink);
}
.app-strip-x {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.75;
}
.app-strip-x:hover { opacity: 1; background: rgba(120, 120, 160, 0.2); }
.app-strip-go:focus-visible, .app-strip-x:focus-visible { outline: 2px solid var(--highlight); outline-offset: 2px; }

:root[data-night]:not([data-theme]) .app-strip {
    background: #2a2c5c;
    color: #dfe3ff;
}
:root[data-night]:not([data-theme]) .app-strip-go { background: var(--cta-bg); color: var(--cta-ink); }

@media (prefers-reduced-motion: reduce) {
    .app-strip-wrap, .app-strip-wrap[data-open="true"] { transition: none; }
}

/* ── Profile-menu entry: first in the list and bold, so it is not missed ── */
.dropdown-item[data-app-prompt] { font-weight: 700; }
