@font-face {
    font-family: 'IllumyntSite';
    src: url('/shell/resources/illumyntsitefont.woff2') format('woff2');
    font-weight: normal; font-style: normal;
}
:root {
    --header-height: 137px;
    --color-primary: #265289;
    --color-accent: #FEBE10;
    --color-card-bg: #231F20;
    --color-dark-bg: #1a1718;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
/* modern scrollbars everywhere a consumer app scrolls (thin, translucent thumb, no visible
   track) — purely cosmetic, replaces the OS default. Scoped to fine-pointer (mouse) devices only:
   touch browsers (notably iOS Safari) don't cleanly support ::-webkit-scrollbar customization —
   forcing it there suppresses the native overlay scroll indicator instead of restyling it, making
   scrollable areas look like they can't scroll. Touch devices keep their native overlay scrollbar. */
@media (pointer: fine) {
  * { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.25) transparent; }
  *::-webkit-scrollbar { width: 10px; height: 10px; }
  *::-webkit-scrollbar-track { background: transparent; }
  *::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.18); border-radius: 100px;
    border: 2px solid transparent; background-clip: padding-box; }
  *::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.32); background-clip: padding-box; }
  *::-webkit-scrollbar-corner { background: transparent; }
}
html, body { height: 100%; overflow: hidden; }
body {
    font-family: 'IllumyntSite', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background: url('/shell/resources/security.png') center center / cover no-repeat fixed;
    display: flex; flex-direction: column; color: #fff;
}
.container { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 42px; margin: 12px 24px 24px 24px;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 250px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.15) 0%, rgba(25, 40, 51, 0.15) 100%);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.header img { height: 85px; margin-left: -16px; }
.header-left { display: flex; align-items: center; gap: 16px; }
.header a { display: inline-flex; }
.logout-button {
    background: rgba(255,255,255,0.15); color: white; border: 1px solid rgba(255,255,255,0.3); border-radius: 100px;
    padding: 10px 20px 14px; font-family: inherit; font-size: 14px; font-weight: 600;
    cursor: pointer; transition: background 0.2s; box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    text-shadow: 0 0 10px rgba(0,0,0,1); visibility: hidden; white-space: nowrap;
}
.logout-button:hover { background: #031E3B; }
.screen { display: none; flex: 1; flex-direction: column; min-height: 0; }
.screen.active { display: flex; }
.content {
    flex: 1; display: flex; flex-direction: column;
    padding: 24px; padding-top: 0; padding-bottom: var(--header-height);
    align-items: center; justify-content: center; min-height: 0;
    /* `safe center`: when the content is taller than the space, top-align instead of centering the
       overflow — plain `center` pushed cards up underneath the header on short/narrow viewports.
       Browsers without `safe` keep the plain center above. */
    justify-content: safe center;
}

/* ---- Small / short viewports (phones, landscape phones, small windows) --------------------------
   Doubled selectors (.header.header, .content.content, .card.card) are intentional: several consumer
   apps re-declare .header/.content/.card verbatim in their own <style> after this file, and a plain
   same-specificity media rule here would lose to those copies. */
@media (max-width: 1000px), (max-height: 700px) {
    /* the optical-centering bottom padding is dead space on a phone/tablet; let the content area
       scroll instead of clipping whatever doesn't fit (stacked cards, tall forms) */
    .content.content { padding-bottom: 24px; overflow-y: auto; overflow-x: hidden; }
}
/* --header-height tracks the compacted header so consumers that size things from it (bottom
   padding, absolute content offsets) stay in step */
@media (max-width: 700px) {
    :root { --header-height: 108px; }
    .header.header { padding: 8px 16px; margin: 12px 12px 16px; }
    .header.header img { height: 60px; margin-left: -6px; }
    .header.header .logout-button { padding: 8px 14px 11px; font-size: 13px; }
}
@media (max-height: 640px) {
    :root { --header-height: 88px; }
    .header.header { padding: 4px 24px; margin: 8px 24px 12px; }
    .header.header img { height: 56px; }
    .content.content { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 700px) and (max-height: 640px) {
    .header.header { padding: 4px 16px; margin: 8px 12px 12px; }
}

/* Embedded (iframe) mode — pages opt in by setting the offset vars; defaults
   are no-ops so non-embedded consumers (e.g. put-away-suite) are unaffected. */
html.embedded body { background-position: center var(--embed-bg-offset, center); }
html.embedded .container { margin-top: var(--embed-container-offset, 0px); }
