/* Constrain logo to match old SVG height (new logowname.svg is 300×95 vs old 343×43) */
#logo-block img {
    height: 43px;
    width: auto;
}

/* ── Safe area insets (viewport-fit=cover is set in the Next.js viewport export) ── */

/* Chat: header sits below the Dynamic Island / status bar */
.chat-header {
    padding-top: env(safe-area-inset-top);
    /* min-height, not height: this loads after style.css, and pinning it here is what
       clipped a two-line title. See the .chat-header comment there. */
    min-height: calc(42px + env(safe-area-inset-top));
}

/* Chat: use dynamic viewport height so the layout fills correctly on iOS Safari */
.chat-container {
    height: 100dvh;
    max-height: 100dvh;
}

/*
 * TEMPORARY, and safe to delete once iOS fixes it. The chat page's twin of the
 * `.shell` rule in app/app/app.module.css, which only wraps the /app screens:
 * the chat window renders its own .chat-container, so it never got the
 * workaround and its header still sat in the blurred strip.
 *
 * iOS 27 renders the top of an installed web app blurred; 16px of padding
 * pushes the content clear of it. It is not a design decision and nothing
 * should depend on it. Scoped to display-mode: standalone because it is a bug
 * in the INSTALLED app, and a browser tab must not inherit it.
 *
 * box-sizing is not optional. This container is sized to 100dvh and the
 * stylesheet has no global reset, so bare padding ADDS to it: measured in
 * Chrome, the container grew from 1005px to 1021px and the message input was
 * pushed 16px below the bottom of the screen. border-box takes the 16px out of
 * the existing height instead, exactly as `.shell` does.
 */
@media (display-mode: standalone) {
    .chat-container {
        box-sizing: border-box;
        padding-top: 16px;
    }
}

/* Chat: input area clears the iOS home indicator */
.chat-input {
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
}

/* Full-page centred layouts (login, register, scan, etc.) */
.vertical-justified-container {
    min-height: 100dvh;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
}

/* Footer button inside vertical-justified-container */
.company-footer {
    padding-bottom: env(safe-area-inset-bottom);
}
