/* IBG Apps: the front door to the IBG suite. A soft sky behind frosted tiles, one tile per app.
   The type (Public Sans) and the status colors match the IBG portals, so moving between them feels like one product. */
:root {
  --ink: #14242c; --ink-2: #4a5b64; --ink-3: #7a8a92; --line: rgba(20, 50, 65, .12);
  --tile: rgba(255, 255, 255, .74); --paper: #ffffff; --paper-2: #f4f8f9; --accent: #0f5f66;
  --good: #1f7a4d; --warn: #b7791f; --crit: #b3261e;
  --sky-1: #8ecbe6; --sky-2: #4f9fc4; --sky-3: #1f6f8c; --blob: rgba(255, 255, 255, .22);
  --shadow: 0 1px 2px rgba(10, 45, 60, .10), 0 12px 32px rgba(10, 45, 60, .18);
  --font: "Public Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #eaf1f3; --ink-2: #a9b9c0; --ink-3: #7f9099; --line: rgba(255, 255, 255, .12);
    --tile: rgba(24, 38, 46, .72); --paper: #15222a; --paper-2: #1b2b34; --accent: #63c4cc;
    --good: #5cc28f; --warn: #e2b354; --crit: #f0857d;
    --sky-1: #17485c; --sky-2: #0f3445; --sky-3: #081c26; --blob: rgba(120, 200, 220, .09);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .45); }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.45 var(--font); color: var(--ink); background: var(--sky-2); min-height: 100vh; min-height: 100dvh; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 6px rgba(15, 95, 102, .55); border-radius: 10px; }

.sky { position: fixed; inset: 0; z-index: -1; background: linear-gradient(155deg, var(--sky-1), var(--sky-2) 48%, var(--sky-3)); overflow: hidden; }
.sky svg { width: 100%; height: 100%; display: block; } .sky ellipse { fill: var(--blob); }
.boot { color: #fff; text-align: center; margin-top: 30vh; font-weight: 600; }

/* top bar */
.bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 10px max(18px, env(safe-area-inset-left)) 10px max(18px, env(safe-area-inset-right)); padding-top: max(10px, env(safe-area-inset-top));
  background: rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); color: #fff; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.brand svg { width: 26px; height: 26px; }
.bar .grow { flex: 1; }
.round { width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .2); color: #fff; display: grid; place-items: center; cursor: pointer; }
.round:hover { background: rgba(255, 255, 255, .32); } .round svg { width: 20px; height: 20px; }
.avatar { background: linear-gradient(140deg, #0f5f66, #2aa4a0); font-weight: 800; font-size: 14px; letter-spacing: .02em; box-shadow: 0 0 0 2px rgba(255, 255, 255, .7); }
.pop { position: absolute; right: max(14px, env(safe-area-inset-right)); top: calc(100% + 8px); min-width: 250px; background: var(--paper); color: var(--ink); border-radius: 16px; box-shadow: var(--shadow); padding: 8px; }
.pop .who { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; } .pop .who b { display: block; } .pop .who span { color: var(--ink-2); font-size: 14px; word-break: break-all; }
.pop a.row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; font-weight: 600; } .pop a.row:hover { background: var(--paper-2); }
.pop.apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; width: min(380px, calc(100vw - 28px)); padding: 14px 10px; }

/* the grid of tiles */
.wrap { max-width: 1120px; margin: 0 auto; padding: 34px 22px 60px; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.tile { grid-column: span 4; background: var(--tile); -webkit-backdrop-filter: blur(26px) saturate(1.5); backdrop-filter: blur(26px) saturate(1.5); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.tile.wide { grid-column: span 8; }
.tile > header { display: flex; align-items: center; gap: 13px; padding: 16px 18px; min-height: 78px; }
.tile > header .t { flex: 1; min-width: 0; } .tile > header h2 { margin: 0; font-size: 21px; font-weight: 750; letter-spacing: -.01em; line-height: 1.15; }
.tile > header p { margin: 3px 0 0; font-size: 14px; color: var(--ink-2); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tile > .body { background: var(--paper); flex: 1; display: flex; flex-direction: column; }
a.open { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--accent); flex: none; background: rgba(255, 255, 255, .55); }
a.open:hover { background: var(--paper); } a.open svg { width: 18px; height: 18px; }
@media (prefers-color-scheme: dark) { a.open { background: rgba(255, 255, 255, .08); } }

/* app icons: a rounded square in the app's own color with a white drawing */
.ic { width: 46px; height: 46px; border-radius: 24%; display: grid; place-items: center; flex: none; background: linear-gradient(150deg, var(--c1), var(--c2)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 2px 6px rgba(0, 0, 0, .18); }
.ic svg { width: 58%; height: 58%; stroke: #fff; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ic.lg { width: 62px; height: 62px; }

/* who is signed in */
.me { padding: 26px 24px 22px; justify-content: flex-end; gap: 4px; min-height: 250px; }
.me .face { width: 104px; height: 104px; border-radius: 50%; background: linear-gradient(140deg, #0f5f66, #2aa4a0 60%, #7fd0c0); color: #fff; display: grid; place-items: center; font-size: 38px; font-weight: 800; letter-spacing: .02em; box-shadow: 0 0 0 5px rgba(255, 255, 255, .55), 0 8px 20px rgba(10, 45, 60, .25); margin-bottom: auto; }
.me .hello { font-size: 14px; color: var(--ink-2); font-weight: 600; margin-top: 18px; }
.me h1 { margin: 0; font-size: 32px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; overflow-wrap: anywhere; }
.me .mail { color: var(--ink-2); font-size: 15px; overflow-wrap: anywhere; } .me .org { font-weight: 750; margin-top: 10px; font-size: 15px; }

/* a live app's preview */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.stat { padding: 16px 18px 14px; display: block; border-right: 1px solid var(--line); min-width: 0; } .stat:last-child { border-right: 0; } a.stat:hover { background: var(--paper-2); }
.stat b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat span { display: block; font-size: 13px; color: var(--ink-2); margin-top: 4px; font-weight: 550; }
.stat.good b { color: var(--good); } .stat.warn b { color: var(--warn); } .stat.crit b { color: var(--crit); }
.stats.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .stats.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stats.n1 { grid-template-columns: minmax(0, 1fr); }
.cap { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 750; color: var(--ink-3); padding: 14px 18px 4px; }
.items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 6px 8px; column-gap: 6px; }
.item { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 2px 10px; align-items: baseline; padding: 9px 12px; border-radius: 12px; }
a.item:hover { background: var(--paper-2); }
.item i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); align-self: center; grid-row: 1; } .item.good i { background: var(--good); } .item.warn i { background: var(--warn); } .item.crit i { background: var(--crit); }
.item b { font-weight: 650; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .item time { font-size: 13px; color: var(--ink-2); white-space: nowrap; font-weight: 550; }
.item span { grid-column: 2 / -1; font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quiet { padding: 22px 18px; color: var(--ink-2); font-size: 15px; flex: 1; display: grid; align-content: center; gap: 12px; justify-items: start; }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; font-size: 15px; }
@media (prefers-color-scheme: dark) { .btn { color: #06262b; } }
.btn:hover { filter: brightness(1.08); } .btn svg { width: 16px; height: 16px; }
.skel { padding: 18px; display: grid; gap: 12px; } .skel i { display: block; height: 16px; border-radius: 8px; background: linear-gradient(90deg, var(--paper-2), var(--line), var(--paper-2)); background-size: 200% 100%; animation: sh 1.4s linear infinite; }
.skel i:nth-child(1) { height: 44px; } .skel i:nth-child(3) { width: 70%; }
@keyframes sh { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skel i { animation: none; } }

/* the launcher: every app as an icon */
.launcher .body { padding: 18px 10px 14px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 2px; align-content: center; background: transparent; }
.app-ic { display: grid; justify-items: center; gap: 7px; padding: 8px 2px; border-radius: 14px; text-align: center; font-size: 13px; font-weight: 600; line-height: 1.2; color: var(--ink); }
a.app-ic:hover { background: rgba(255, 255, 255, .45); } .app-ic.off { opacity: .5; cursor: default; }
@media (prefers-color-scheme: dark) { a.app-ic:hover { background: rgba(255, 255, 255, .08); } }
.pop .app-ic { color: var(--ink); } .pop a.app-ic:hover { background: var(--paper-2); }

/* an app that is not built yet */
.pill { font-size: 12px; font-weight: 750; padding: 4px 10px; border-radius: 999px; background: rgba(20, 50, 65, .1); color: var(--ink-2); white-space: nowrap; }
@media (prefers-color-scheme: dark) { .pill { background: rgba(255, 255, 255, .1); } }
.soon .ic { filter: saturate(.75); }
.about { margin: 0; padding: 16px 18px 6px; color: var(--ink-2); font-size: 15px; } .about:last-child { padding-bottom: 20px; }
.soon > header { min-height: 0; } .soon > header h2 { font-size: 19px; }
.peek { padding: 0 18px 10px; } .peek div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 15px; } .peek div:last-child { border-bottom: 0; } .peek div b { color: var(--ink-3); font-weight: 700; }

.foot { color: rgba(255, 255, 255, .8); text-align: center; font-size: 13px; margin-top: 30px; }
.gate { max-width: 420px; margin: 16vh auto 0; padding: 30px 26px; text-align: center; display: block; } .gate h1 { margin: 14px 0 6px; font-size: 26px; } .gate p { color: var(--ink-2); margin: 0 0 20px; }

@media (max-width: 900px) {
  .wrap { padding: 20px 14px 50px; } .grid { gap: 16px; }
  .tile, .tile.wide { grid-column: 1 / -1; }
  .me { min-height: 0; flex-direction: row; align-items: center; gap: 16px; padding: 18px; flex-wrap: wrap; } .me .face { width: 68px; height: 68px; font-size: 25px; margin: 0; } .me .hello { margin-top: 0; } .me h1 { font-size: 25px; } .me .org { margin-top: 2px; }
  .me .txt { flex: 1; min-width: 0; }
  .launcher { order: -1; } .me { order: -2; }
}
@media (max-width: 560px) {
  .stats, .stats.n3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stat:nth-child(2n) { border-right: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stats.n3 .stat:last-child { grid-column: 1 / -1; }
  .items { grid-template-columns: minmax(0, 1fr); }
  .stat b { font-size: 26px; }
}
