/* Maxmind Hub — one stylesheet. Order: font, tokens, base, shared components (icons,
   buttons, pills, tooltip), then the lock screen (/connexion), the start screen (/)
   and the detail flyout. The look follows docs/screenshots/dashboard.png: flat colour
   tiles of several sizes on a tight grid, light large type, square corners. */

@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --bg: #0f1319;
  --text: #f5f6f8;
  --muted: rgba(245, 246, 248, .66);
  --faint: rgba(245, 246, 248, .4);
  --red: #ef244b;
  --teal: #00adb6;
  --teal-deep: #008a92;
  --yellow: #ffc845;
  --ink: #15181e;
  --ink-muted: #5e6572;
  --paper: #ffffff;
  --paper-2: #f3f4f6;
  --paper-line: #e3e6ea;
  --gap: 6px;
  --font: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ------------------------------------------------------------ components -- */

.icon { width: 20px; height: 20px; flex: none; }

/* Icon-only button: always with aria-label + data-tip. */
.ibtn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background-color .15s;
}
.ibtn:hover { background: rgba(255, 255, 255, .12); }
.ibtn:active { background: rgba(255, 255, 255, .2); }
.ibtn-xs { width: 30px; height: 30px; }
.ibtn-xs .icon { width: 16px; height: 16px; }
.icon-done, .icon-eye-off { display: none; }
.is-copied .icon-copy { display: none; }
.is-copied .icon-done { display: block; color: #1f9d55; }
[aria-pressed="true"] > .icon-eye { display: none; }
[aria-pressed="true"] > .icon-eye-off { display: block; }

/* Metro button: a flat rectangle with a 2 px border. */
.mbtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border: 2px solid currentColor;
  background: transparent;
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s, color .15s, filter .15s;
}
.mbtn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.mbtn-primary { background: var(--c, var(--teal)); border-color: var(--c, var(--teal)); color: #fff; }
.mbtn-primary:hover { background: var(--c, var(--teal)); border-color: var(--c, var(--teal)); filter: brightness(1.12); }
.mbtn .icon { width: 16px; height: 16px; }
.icon-nudge { transition: transform .2s; }
a:hover > .icon-nudge { transform: translate(2px, -2px); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 9px;
  background: var(--paper-2);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.pill-accent { background: var(--c, var(--teal)); color: #fff; }
.pill-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #2fb36b; }

/* The one tooltip (assets/js/tooltip.js): data-tip="…", never the native title. */
.tip {
  position: fixed;
  z-index: 100;
  max-width: 240px;
  padding: 5px 9px;
  background: #fff;
  color: var(--ink);
  border: 1px solid #c3c8cf;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .45);
  pointer-events: none;
  opacity: 0;
  translate: 0 3px;
  transition: opacity .14s, translate .14s;
}
.tip.is-below { translate: 0 -3px; }
.tip.is-on { opacity: 1; translate: 0 0; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 30px; height: 30px; }
.brand-name { font-weight: 600; font-size: 17px; line-height: 1.1; }
.brand-name small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); }

/* ------------------------------------------------------------ lock screen -- */

.auth-body { overflow: hidden; background: #0b2a35; }
.auth { position: relative; min-height: 100vh; min-height: 100dvh; }

.signin {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  overflow: auto;
  background:
    radial-gradient(70% 60% at 85% 110%, rgba(0, 173, 182, .35), transparent 70%),
    radial-gradient(50% 50% at 0% 0%, rgba(239, 36, 75, .14), transparent 70%),
    linear-gradient(160deg, #0c2f3b, #0a1f29 70%);
}
.signin-inner { width: min(380px, 100%); display: grid; gap: 16px; justify-items: stretch; }
.signin-tile {
  width: 104px;
  height: 104px;
  justify-self: center;
  display: grid;
  place-items: center;
  background: #fff;
}
.signin-mark { width: 60px; height: 60px; }
.signin-copy { text-align: center; }
.signin-title { margin: 6px 0 0; font-size: 34px; font-weight: 300; line-height: 1.1; }
.signin-sub { margin: 4px 0 4px; color: var(--muted); font-size: 14px; }
.signin-form { display: grid; gap: 10px; }

.mfield {
  display: flex;
  height: 46px;
  background: #fff;
  color: var(--ink);
  border: 2px solid transparent;
  transition: border-color .15s;
}
.mfield:focus-within { border-color: var(--teal); }
.minput {
  flex: 1;
  min-width: 0;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  outline: none;
}
.minput::placeholder { color: #8a909b; }
.mfield-btn, .mfield-go {
  display: grid;
  place-items: center;
  width: 42px;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.mfield-btn { background: transparent; color: var(--ink-muted); }
.mfield-btn:hover { color: var(--ink); }
.mfield-go { width: 46px; margin: -2px -2px -2px 0; background: var(--teal); color: #fff; transition: background-color .15s; }
.mfield-go:hover { background: var(--teal-deep); }
.mfield-go.is-loading { pointer-events: none; opacity: .7; }

.notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  background: rgba(255, 255, 255, .12);
  font-size: 14px;
}
.notice .icon { width: 18px; height: 18px; margin-top: 1px; }
.notice-error { background: #fff; color: var(--ink); box-shadow: inset 4px 0 0 var(--red); }
.notice-error .icon { color: var(--red); }

.signin-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  text-align: center;
}
.signin-foot .icon { width: 16px; height: 16px; }

.welcome { display: grid; justify-items: center; gap: 20px; padding: 20px 0; font-size: 30px; font-weight: 300; }

/* Windows 8 progress ring: five dots chasing round a circle (motion.js → ring). */
.ring { position: relative; width: 46px; height: 46px; }
.ring i { position: absolute; inset: 0; opacity: 0; }
.ring i::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: #fff;
}

.lock {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  flex-direction: column;
  color: #fff;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  background: linear-gradient(172deg, #0c2636 0%, #0f4e60 48%, #0d6b74 66%, #0a3442 100%);
}
.lock:active { cursor: grabbing; }
.js .lock { display: flex; }
.is-unlocked .lock { display: none; }

.lock-art { position: absolute; inset: 0; pointer-events: none; }
.lock-shape { position: absolute; display: block; will-change: transform; }
.lock-tri {
  width: min(78vw, 980px);
  aspect-ratio: 1.15;
  right: -14vw;
  bottom: -22vh;
  background: linear-gradient(165deg, #ff4467, #d0163d 70%, #a80f30);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.lock-d {
  width: min(26vw, 330px);
  height: min(40vw, 500px);
  right: 34vw;
  bottom: -12vh;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(180deg, #19c4cc, #008e96);
  opacity: .92;
}
.lock-tile {
  width: 120px;
  height: 120px;
  left: 62vw;
  top: 14vh;
  border: 2px solid rgba(255, 255, 255, .28);
}
.lock-tile-2 { width: 64px; height: 64px; left: 54vw; top: 30vh; background: rgba(255, 200, 69, .85); border: 0; }
.lock::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 24, 33, .55), transparent 55%);
  pointer-events: none;
}

.lock-brand {
  position: absolute;
  z-index: 1;
  top: 28px;
  left: clamp(20px, 5vw, 64px);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 300;
}
.lock-brand small { font-size: 14px; color: var(--muted); font-weight: 500; }
.lock-mark { width: 34px; height: 34px; }
.lock-clock { position: absolute; z-index: 1; left: clamp(20px, 5vw, 64px); bottom: clamp(84px, 14vh, 150px); }
.lock-time {
  margin: 0;
  font-size: clamp(76px, 12vw, 150px);
  font-weight: 300;
  line-height: .9;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.lock-date { margin: .25em 0 0; font-size: clamp(22px, 3vw, 40px); font-weight: 300; }
.lock-hint {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 24px;
  width: max-content;
  max-width: calc(100% - 32px);
  translate: -50% 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.lock-hint-icon { width: 18px; height: 18px; rotate: -90deg; }
.lock-hint span { text-shadow: 0 1px 8px rgba(0, 0, 0, .45); }
/* Portrait (phones): the shapes move up, out of the way of the clock and the hint. */
@media (max-aspect-ratio: 4/5) {
  .lock-tri { width: 112vw; right: -40vw; top: 14vh; bottom: auto; }
  .lock-d { width: 32vw; height: 50vw; right: auto; left: -2vw; top: 26vh; bottom: auto; }
  .lock-tile { width: 72px; height: 72px; left: 60vw; top: 9vh; }
  .lock-tile-2 { width: 44px; height: 44px; left: 24vw; top: 17vh; }
  .lock::after { background: linear-gradient(0deg, rgba(8, 24, 33, .85), rgba(8, 24, 33, .35) 45%, transparent 70%); }
}

/* ----------------------------------------------------------- start screen -- */

.start-body {
  min-height: 100vh;
  background:
    radial-gradient(60% 50% at 0% 0%, rgba(0, 173, 182, .12), transparent 70%),
    radial-gradient(50% 40% at 100% 100%, rgba(239, 36, 75, .08), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}
.start { max-width: 1680px; margin: 0 auto; padding: 26px clamp(16px, 4vw, 56px) 40px; }

.start-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.start-home { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.start-mark { width: 36px; height: 36px; }
.start-h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 300; line-height: 1; letter-spacing: -.01em; }

.search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(320px, 100%);
  height: 40px;
  padding: 0 8px 0 12px;
  background: rgba(255, 255, 255, .1);
  color: var(--text);
  transition: background-color .15s, color .15s;
}
.search:focus-within { background: #fff; color: var(--ink); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 15px; }
.search input::placeholder { color: inherit; opacity: .6; }
.search input::-webkit-search-cancel-button { filter: grayscale(1); }
.search kbd { font: 600 11px var(--font); padding: 1px 7px; border: 1px solid currentColor; opacity: .55; }

.me { display: flex; align-items: center; gap: 12px; }
.me-name { text-align: right; font-size: 18px; font-weight: 300; line-height: 1.1; }
.me-name small { display: block; color: var(--muted); font-size: 12px; font-weight: 500; }
.me-tile { display: grid; place-items: center; width: 40px; height: 40px; background: var(--teal); font-size: 18px; font-weight: 600; }

/* Categories as a Metro pivot: large light words, the active one bright. */
.pivot {
  display: flex;
  gap: clamp(16px, 2.6vw, 30px);
  margin: 14px 0 20px;
  padding-bottom: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  /* More categories than room: the row scrolls and fades at the right edge. */
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent);
}
.pivot::-webkit-scrollbar { display: none; }
.pivot-item {
  padding: 0;
  border: 0;
  background: none;
  color: var(--faint);
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 300;
  line-height: 1.25;
  white-space: nowrap;
  cursor: pointer;
  transition: color .2s;
}
.pivot-item sup { margin-left: 3px; font-size: .42em; font-weight: 700; vertical-align: super; }
.pivot-item:hover { color: var(--muted); }
.pivot-item[aria-pressed="true"] { color: var(--text); }

/* The grid: square cells sized from the container width, tiles span 1 or 2 cells. */
.tiles-wrap { container-type: inline-size; }
.tiles {
  --cols: 3;
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  grid-auto-rows: calc((100cqi - (var(--cols) - 1) * var(--gap)) / var(--cols));
  grid-auto-flow: dense;
  gap: var(--gap);
  margin: 0;
  padding: 0;
  list-style: none;
}
@container (min-width: 520px) { .tiles { --cols: 4; } }
@container (min-width: 760px) { .tiles { --cols: 5; } }
@container (min-width: 980px) { .tiles { --cols: 6; } }
@container (min-width: 1200px) { .tiles { --cols: 7; } }
@container (min-width: 1420px) { .tiles { --cols: 8; } }

.slot { position: relative; min-width: 0; perspective: 1100px; }
.slot-wide { grid-column: span 2; }
.slot-tall { grid-row: span 2; }
.slot-large { grid-column: span 2; grid-row: span 2; }
.slot-hero { grid-column: span 3; grid-row: span 3; }
@container (min-width: 520px) and (max-width: 759.98px) { .slot-hero { grid-column: 1 / -1; } }
@container (max-width: 519.98px) { .slot-hero { grid-column: 1 / -1; grid-row: span 4; } }

.tile {
  position: absolute;
  inset: 0;
  overflow: hidden;
  container-type: size;
  background: var(--c, #2a3442);
  color: #fff;
  transform-origin: 0% 50%;
}
.tone-light { color: var(--ink); }
.js.tiles-pending .slot > .tile { opacity: 0; }
/* Hover / keyboard focus: the Metro white frame. */
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  box-shadow: inset 0 0 0 0 rgba(255, 255, 255, 0);
  transition: box-shadow .14s;
}
@media (hover: hover) { .slot:hover > .tile::after { box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .6); } }
.tile:has(:focus-visible)::after { box-shadow: inset 0 0 0 3px var(--yellow); }
.tile :focus-visible { outline: none; }

/* Two faces stacked: the live-tile animation slides the back one up now and then. */
.tile-faces { position: absolute; inset: 0 0 auto; height: 200%; display: grid; grid-template-rows: 1fr 1fr; }
.tile-face { position: relative; overflow: hidden; padding: clamp(10px, 7cqmin, 20px); }
.tile-front { display: flex; flex-direction: column; }
.tile-text { position: relative; z-index: 1; }
.tile-title { margin: 0; font-size: clamp(15px, 12cqmin, 40px); font-weight: 300; line-height: 1.08; }
.tile-tagline {
  margin: .45em 0 0;
  max-width: 28ch;
  font-size: clamp(11px, 6.4cqmin, 15px);
  line-height: 1.3;
  opacity: .84;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tile-glyph { align-self: center; width: clamp(26px, 30cqmin, 110px); height: clamp(26px, 30cqmin, 110px); margin: auto 0 2cqmin; }
.tile-glyph .icon { width: 100%; height: 100%; stroke-width: 1.2; }
@container (min-aspect-ratio: 3/2) {
  .tile-glyph { position: absolute; right: 7cqmin; bottom: 7cqmin; margin: 0; width: 42cqmin; height: 42cqmin; }
  .tile-tagline { max-width: 50%; }
}
@container (max-height: 175px) { .tile-tagline { -webkit-line-clamp: 2; } }
@container (max-height: 136px) { .tile-tagline { display: none; } }

.tile-photo .tile-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.1, .9, .2, 1);
}
@media (hover: hover) { .slot:hover .tile-img { transform: scale(1.04); } }
.tile-photo .tile-front::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, .66), rgba(0, 0, 0, .18) 48%, transparent 62%, color-mix(in srgb, var(--c) 75%, transparent));
}
.tile-photo .tile-text { z-index: 2; }

.tile-back {
  display: flex;
  flex-direction: column;
  gap: .35em;
  background: color-mix(in srgb, var(--c) 80%, #000);
  font-size: clamp(11px, 6.2cqmin, 15px);
}
.tile-status { display: inline-flex; align-items: center; gap: 6px; font-size: .82em; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.tile-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #5ee08f; }
.tile-host { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.tile-stack { margin: 0; opacity: .78; }
.tile-mini { margin-top: auto; display: flex; align-items: center; gap: 6px; font-size: .86em; font-weight: 600; }
.tile-mini .icon { width: 16px; height: 16px; }

.tile-hit { position: absolute; inset: 0; z-index: 3; padding: 0; border: 0; background: transparent; cursor: pointer; }
.tile-go {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, .22);
  color: #fff;
  opacity: 0;
  transition: opacity .15s, background-color .15s;
}
.tile-go:hover { background: rgba(0, 0, 0, .4); }
.tile-go .icon { width: 18px; height: 18px; }
.slot:hover .tile-go, .tile-go:focus-visible { opacity: 1; }
@media (hover: none) { .tile-go { display: none; } }

/* The hero tile (the « Myanmar » tile of the reference): greeting, brand, live apps. */
.tile-hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(18px, 6cqmin, 40px);
  background: linear-gradient(170deg, #0d3550 0%, #0e6278 52%, #0b8b92 64%, #0a3b4a 100%);
}
.hero-art { position: absolute; inset: 0; pointer-events: none; }
.hero-art span { position: absolute; display: block; }
.hero-tri {
  width: 64cqmin;
  aspect-ratio: 1.15;
  right: -12cqmin;
  top: 2cqmin;
  background: linear-gradient(165deg, #ff4467, #c8143b);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.hero-d { width: 20cqmin; height: 30cqmin; right: 40cqmin; top: 16cqmin; border-radius: 0 999px 999px 0; background: #17c0c8; opacity: .9; }
.hero-sq { width: 11cqmin; height: 11cqmin; right: 6cqmin; top: 5cqmin; background: var(--yellow); }
.tile-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 22%, rgba(6, 22, 31, .72) 52%, rgba(6, 22, 31, .9) 100%), linear-gradient(90deg, rgba(6, 22, 31, .5), transparent 70%);
}
.tile-hero > :not(.hero-art) { position: relative; z-index: 1; }
.hero-eyebrow { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; font-weight: 500; }
.hero-eyebrow .icon { width: 18px; height: 18px; color: var(--yellow); }
.hero-title { margin: .04em 0 .06em; font-size: clamp(40px, 17cqmin, 96px); font-weight: 300; line-height: 1; letter-spacing: -.015em; }
.hero-count { margin: 0 0 1.1em; color: var(--muted); font-size: 14px; }
.hero-count strong { color: #fff; font-weight: 700; }
.hero-sub { margin: 0 0 .4em; color: var(--yellow); font-size: 13px; font-weight: 600; }
.hero-list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.hero-list a { display: flex; align-items: center; gap: 10px; padding: 4px 0; font-size: 14px; text-decoration: none; }
.hero-list .icon { width: 18px; height: 18px; transition: transform .2s; }
.hero-list small { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-list a:hover .icon { transform: translateX(3px); }
.hero-list a:hover span { text-decoration: underline; text-underline-offset: 3px; }
@container (max-height: 380px) { .hero-count { margin-bottom: .6em; } .hero-list li:nth-child(n+4) { display: none; } }

.empty { display: grid; gap: 4px; justify-items: center; padding: 48px 16px; color: var(--muted); text-align: center; }
.empty strong { color: var(--text); font-size: 22px; font-weight: 300; }
.empty code { font-family: var(--mono); font-size: .9em; }
.foot { margin: 28px 0 0; color: var(--faint); font-size: 12.5px; }

/* --------------------------------------------------------------- flyout -- */

.flyout-scrim { position: fixed; inset: 0; z-index: 40; background: rgba(4, 7, 10, .55); opacity: 0; pointer-events: none; }
.flyout-scrim.is-on { pointer-events: auto; }
.flyout {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  width: min(480px, 100vw);
  background: var(--paper);
  color: var(--ink);
  color-scheme: light;
  box-shadow: -40px 0 80px -40px rgba(0, 0, 0, .6);
}
.flyout-art { position: relative; flex: none; height: clamp(140px, 24vh, 210px); overflow: hidden; background: var(--c, var(--teal)); color: #fff; }
.flyout-art .tile-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.flyout-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .38), transparent 46%); pointer-events: none; }
.flyout-art .tile-glyph { position: absolute; right: 26px; bottom: -18px; width: 150px; height: 150px; margin: 0; opacity: .95; }
.flyout-art.tone-light { color: var(--ink); }
.flyout-back {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, .9);
  border-radius: 50%;
  background: rgba(0, 0, 0, .14);
  color: #fff;
}
.flyout-back:hover { background: rgba(0, 0, 0, .3); }
.flyout-back .icon { width: 18px; height: 18px; }
.flyout-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 22px 28px 28px; }
.flyout .ibtn:hover { background: rgba(0, 0, 0, .07); }

.peek-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.peek-title { margin: 12px 0 0; font-size: 36px; font-weight: 300; line-height: 1.05; }
.peek-tagline { margin: 6px 0 0; color: var(--ink-muted); font-size: 16px; }
.peek-desc { margin-top: 16px; font-size: 15px; }
.peek-desc p { margin: 0 0 .7em; }
.peek-desc a { color: var(--teal-deep); }
.peek-desc code, .peek-list code { font-family: var(--mono); font-size: .88em; background: var(--paper-2); padding: 1px 5px; }
.peek-section { margin-top: 20px; }
.peek-section h3 { margin: 0 0 10px; color: var(--ink-muted); font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.peek-stack { display: flex; flex-wrap: wrap; gap: 6px; }
.peek-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 14.5px; }
.peek-list li { display: flex; gap: 10px; }
.tick { display: grid; place-items: center; flex: none; width: 20px; height: 20px; margin-top: 1px; background: var(--c, var(--teal)); color: #fff; }
.tick .icon { width: 13px; height: 13px; stroke-width: 2.4; }

.logins { display: grid; gap: 10px; }
.login-group { border: 1px solid var(--paper-line); }
.login-head { display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: var(--paper-2); font-size: 13px; text-decoration: none; }
.login-label { font-weight: 700; }
.login-host { flex: 1; min-width: 0; overflow: hidden; color: var(--ink-muted); text-overflow: ellipsis; white-space: nowrap; }
.login-head .icon { width: 15px; height: 15px; }
.login-account { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 8px; padding: 9px 12px; border-top: 1px solid var(--paper-line); }
.login-role { grid-column: 1 / -1; color: var(--ink-muted); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.login-value { overflow: hidden; font: 500 13px var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.login-pass.is-empty { font-family: var(--font); font-style: italic; color: var(--ink-muted); }
.login-tools { display: flex; justify-content: flex-end; gap: 2px; }

.peek-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--paper-line); }
.peek-host { flex-basis: 100%; color: var(--ink-muted); font-size: 12.5px; }

@media (max-width: 640px) {
  .start { padding-top: 18px; }
  .search { order: 3; width: 100%; margin-left: 0; }
  .me { margin-left: auto; }
  .me-name { display: none; }
  .flyout-body { padding: 18px 18px 24px; }
  .peek-title { font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
