/* The Onsite IT console. Onsite colours: sand, ink, red; navy only for text in the bars. Inter is served from
   this site itself (public/fonts, SIL Open Font Licence). */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/fonts/inter-latin.woff2?v=c940764593) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --sand: #e9dfcf;
  --sand-soft: #f4f1ec;
  --paper: #fbfaf7;
  --card: #ffffff;
  --ink: #0f0f0e;
  --text: #1d1c19;
  --muted: #6c675e;
  --faint: #9a958b;
  --navy: #1e2c4c;
  --line: #e6e0d5;
  --line-soft: #efeae2;
  --red: #e2442a;
  --red-soft: #fbe6e1;
  --green: #2f8a4c;
  --green-soft: #e3f1e6;
  --amber: #b7791f;
  --amber-soft: #f7eddb;
  --navy-soft: #e6eaf2;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --out: 0.2s;
  --in: 0.5s;
  --radius: 18px;
  --top: 60px;
  --side: 248px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; background: var(--sand-soft); }
body { margin: 0; min-height: 100vh; background: var(--sand-soft); color: var(--text);
  font: 15px/1.5 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-feature-settings: "cv11", "ss01"; letter-spacing: -0.006em; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; letter-spacing: inherit; }
[hidden] { display: none !important; }
h1 { font-size: 26px; line-height: 1.2; font-weight: 650; letter-spacing: -0.022em; margin: 0; color: var(--ink); }
h2 { font-size: 16px; line-height: 1.3; font-weight: 650; letter-spacing: -0.012em; margin: 0; color: var(--ink); }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; border-radius: 8px; }

/* ------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-weight: 600;
  text-decoration: none; cursor: pointer; white-space: nowrap; position: relative;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), opacity .25s var(--ease); }
.btn:hover { border-color: #d4ccbe; background: var(--paper); }
.btn:active { transform: scale(0.98); }
.btn.main { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 700; }
.btn.main:hover { background: #2a2925; border-color: #2a2925; }
.btn.danger { background: var(--red); border-color: var(--red); color: #fff; font-weight: 700; }
.btn.danger:hover { background: #c93a22; border-color: #c93a22; }
.btn.plain { background: transparent; border-color: transparent; color: var(--muted); }
.btn.plain:hover { color: var(--ink); background: rgba(15, 15, 14, 0.04); }
.btn.small { min-height: 32px; padding: 0 13px; font-size: 13.5px; }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: default; }
/* A busy button keeps its size: the label fades and three dots take its place in the same spot. */
.btn .label { display: inline-flex; align-items: center; gap: 6px; transition: opacity var(--out) var(--ease); }
.btn.small .icon { width: 16px; height: 16px; }
.btn .dots { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 4px; opacity: 0; transition: opacity var(--out) var(--ease); pointer-events: none; }
.btn .dots i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; animation: dot 1.2s var(--ease) infinite; }
.btn .dots i:nth-child(2) { animation-delay: .15s; } .btn .dots i:nth-child(3) { animation-delay: .3s; }
.btn.is-busy .label { opacity: 0; }
.btn.is-busy .dots { opacity: 1; transition-duration: var(--in); }
@keyframes dot { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease); }
.icon-btn:hover, .icon-btn[aria-expanded="true"] { background: rgba(15, 15, 14, 0.06); color: var(--ink); }

/* ------------------------------------------------------------ dots, pills, tags */
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; transition: background-color var(--in) var(--ease); }
.dot.up { background: var(--green); box-shadow: 0 0 0 3px rgba(47, 138, 76, 0.13); }
.dot.down { background: var(--red); box-shadow: 0 0 0 3px rgba(226, 68, 42, 0.14); }
.dot.checking { background: #c9c2b5; }
.dot.new { background: var(--navy); box-shadow: 0 0 0 3px rgba(30, 44, 76, 0.12); }
.dot.note { background: var(--amber); box-shadow: 0 0 0 3px rgba(183, 121, 31, 0.13); }
.pill { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 11px; border-radius: 999px; font-size: 13px; font-weight: 550;
  background: var(--line-soft); color: var(--text); white-space: nowrap; }
.pill.up { background: var(--green-soft); color: #1f6236; }
.pill.down { background: var(--red-soft); color: #a3301c; }
.pill.checking { background: var(--line-soft); color: var(--muted); }
.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .03em;
  background: var(--navy-soft); color: var(--navy); vertical-align: 1px; white-space: nowrap; }
.tag.new { background: var(--navy); color: #fff; }
.tag.off { background: var(--line-soft); color: var(--muted); }
.tag.warn { background: var(--amber-soft); color: #8a5a12; }
.tag.bad { background: var(--red-soft); color: #a3301c; }
.tag.good { background: var(--green-soft); color: #1f6236; }

/* ------------------------------------------------------------ the app frame */
.app { min-height: 100vh; }
.app.is-loading { visibility: hidden; }
/* The shell only fades in: a transform, even one left at its end, would hold the fixed top bar and side list to the
   page's height instead of the window's. */
.login { animation: appear var(--in) var(--ease) backwards; }
.shell { animation: fade-in var(--in) var(--ease) backwards; }
@keyframes fade-in { from { opacity: 0; } }
.app.is-leaving .login, .app.is-leaving .shell { opacity: 0; transition: opacity var(--out) var(--ease); }
@keyframes appear { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* log-in */
.login { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px;
  background: radial-gradient(1200px 600px at 50% -10%, #fff 0%, rgba(255, 255, 255, 0) 60%), var(--sand-soft); }
.login-card { width: 100%; max-width: 380px; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 30px 28px 18px;
  box-shadow: 0 1px 2px rgba(15, 15, 14, .04), 0 18px 48px -24px rgba(30, 44, 76, .22); }
.login-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 26px; color: var(--navy); font-weight: 750; font-size: 20px; letter-spacing: -0.01em; }
.login-brand img { display: block; }
.login h1 { margin-bottom: 18px; }
.login .muted { margin: -8px 0 22px; }
.login .btn.wide + .btn.wide { margin-top: 8px; }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.field input, .input { width: 100%; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid #d9d2c5; background: var(--paper); outline: none;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease); }
.field input:focus, .input:focus { border-color: var(--navy); background: #fff; box-shadow: 0 0 0 3px rgba(30, 44, 76, .1); }
.field + .btn { margin-top: 8px; }
.login-error { min-height: 44px; margin: 0; padding: 12px 2px 0; font-size: 13.5px; color: #a3301c; opacity: 0; transition: opacity var(--out) var(--ease); }
.login-error.is-on { opacity: 1; transition-duration: var(--in); }

/* Alternate states share one grid cell, so the box is always as tall as its tallest state: no jumps. */
.stack { display: grid; }
.stack > .state { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity var(--out) var(--ease), transform var(--out) var(--ease), visibility 0s linear var(--out); }
.stack > .state.is-on { opacity: 1; visibility: visible; transform: none;
  transition: opacity var(--in) var(--ease) .12s, transform var(--in) var(--ease) .12s, visibility 0s; }

/* top bar: light frosted glass, navy text (never a navy bar) */
.top { position: fixed; z-index: 30; top: 0; left: 0; right: 0; height: var(--top); display: flex; align-items: center; gap: 12px; padding: 0 20px;
  background: rgba(250, 248, 244, 0.74); -webkit-backdrop-filter: saturate(1.5) blur(16px); backdrop-filter: saturate(1.5) blur(16px);
  border-bottom: 1px solid rgba(15, 15, 14, 0.07); color: var(--navy); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 750; font-size: 17px; letter-spacing: -0.01em; color: var(--navy); }
.brand img { display: block; }
.menu-btn { display: none; align-items: center; gap: 9px; height: 36px; padding: 0 12px 0 10px; border-radius: 10px; border: 1px solid rgba(30, 44, 76, .14);
  background: rgba(255, 255, 255, .6); color: var(--navy); font-weight: 600; font-size: 14px; cursor: pointer; }
.menu-btn .bars, .menu-btn .bars::before, .menu-btn .bars::after { display: block; width: 15px; height: 1.8px; border-radius: 2px; background: currentColor; position: relative;
  transition: transform .35s var(--ease), opacity .25s var(--ease); }
.menu-btn .bars::before, .menu-btn .bars::after { content: ""; position: absolute; left: 0; }
.menu-btn .bars::before { top: -5px; } .menu-btn .bars::after { top: 5px; }
.menu-btn[aria-expanded="true"] .bars { background: transparent; }
.menu-btn[aria-expanded="true"] .bars::before { transform: translateY(5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars::after { transform: translateY(-5px) rotate(-45deg); }
.user { margin-left: auto; position: relative; }
.user-btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 14px; border-radius: 999px; border: 1px solid rgba(30, 44, 76, .14);
  background: rgba(255, 255, 255, .6); color: var(--navy); font-weight: 600; cursor: pointer; transition: background-color .25s var(--ease); }
.user-btn:hover, .user-btn[aria-expanded="true"] { background: #fff; }
.chev { width: 8px; height: 8px; border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; transform: translateY(-2px) rotate(45deg);
  transition: transform .35s var(--ease); }
.user-btn[aria-expanded="true"] .chev { transform: translateY(1px) rotate(225deg); }

.pop { position: absolute; z-index: 40; right: 0; top: calc(100% + 8px); min-width: 180px; padding: 6px; border-radius: 14px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 16px 40px -18px rgba(30, 44, 76, .35), 0 2px 6px rgba(15, 15, 14, .05);
  opacity: 0; visibility: hidden; transform: translateY(-4px) scale(.98); transform-origin: top right;
  transition: opacity var(--out) var(--ease), transform var(--out) var(--ease), visibility 0s linear var(--out); }
.pop.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s; }
.pop a, .pop button { display: flex; align-items: center; width: 100%; height: 38px; padding: 0 12px; border-radius: 9px; border: 0; background: transparent; text-align: left;
  text-decoration: none; color: var(--text); font-weight: 500; cursor: pointer; white-space: nowrap; transition: background-color .2s var(--ease); }
.pop a:hover, .pop button:hover, .pop a:focus-visible, .pop button:focus-visible { background: var(--sand-soft); outline: none; }
.pop .danger-item { color: #a3301c; }

/* side list */
.side { position: fixed; z-index: 20; top: var(--top); bottom: 0; left: 0; width: var(--side); padding: 20px 12px 28px; overflow-y: auto;
  border-right: 1px solid rgba(15, 15, 14, 0.06); background: rgba(250, 248, 244, .55); }
.side a { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px; border-radius: 11px; color: var(--navy); text-decoration: none; font-weight: 550;
  font-size: 14.5px; transition: background-color .3s var(--ease), box-shadow .3s var(--ease), color .3s var(--ease); }
.side a:hover { background: rgba(255, 255, 255, .7); }
.side a.is-on { background: #fff; box-shadow: 0 1px 2px rgba(15, 15, 14, .05), 0 0 0 1px rgba(15, 15, 14, .05); color: var(--ink); }
.side a .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side .count { min-width: 22px; height: 20px; padding: 0 7px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 12px; font-weight: 700;
  display: inline-grid; place-items: center; opacity: 0; transform: scale(.85); transition: opacity var(--in) var(--ease), transform var(--in) var(--ease); }
.side .count.is-on { opacity: 1; transform: none; }
.side-label { margin: 22px 12px 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.side hr { border: 0; border-top: 1px solid rgba(15, 15, 14, .07); margin: 16px 8px; }
.scrim { display: none; }

/* main.main: the page area (a .btn.main is a dark button, never this) */
main.main { margin-left: var(--side); padding: calc(var(--top) + 30px) 36px 90px; max-width: calc(var(--side) + 1180px); outline: none; min-width: 0; }
main.main > .page { transition: opacity var(--in) var(--ease), transform var(--in) var(--ease); }
main.main > .page.is-out { opacity: 0; transform: translateY(-4px); transition: opacity var(--out) var(--ease), transform var(--out) var(--ease); }
main.main > .page.is-in { opacity: 0; transform: translateY(10px); transition: none; }

.progress { position: fixed; z-index: 31; top: var(--top); left: 0; right: 0; height: 2px; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity .4s var(--ease); }
.progress.is-on { opacity: 1; }
.progress i { position: absolute; top: 0; bottom: 0; width: 30%; background: linear-gradient(90deg, transparent, var(--navy), transparent); animation: slide 1.4s var(--ease) infinite; }
@keyframes slide { from { left: -30%; } to { left: 100%; } }

/* ------------------------------------------------------------ page parts */
.page-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; min-height: 40px; }
.page-head .titles { flex: 1; min-width: 0; }
.page-head .titles h1 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.page-head .sub { margin-top: 6px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.page-head .sub a { color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; transition: color .25s var(--ease); }
.page-head .sub a:hover { color: var(--ink); }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.section { margin-top: 30px; }
.section > h2, .two > section > h2 { margin-bottom: 12px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.pad { padding: 20px; }
.empty { padding: 34px 20px; text-align: center; color: var(--muted); }
.empty .btn { margin-top: 14px; }

/* swapping values crossfade in place */
.swap { transition: opacity var(--in) var(--ease); }
.swap.is-out { opacity: 0; transition-duration: var(--out); }

/* needs a look */
.look { margin-bottom: 22px; padding: 6px; }
.look h2 { padding: 12px 14px 8px; }
.look a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 14px; border-radius: 12px; text-decoration: none;
  transition: background-color .25s var(--ease); }
.look a:hover { background: var(--sand-soft); }
.look a .text { flex: 1; min-width: 0; }
.look a .go { width: 7px; height: 7px; border-right: 1.8px solid var(--faint); border-top: 1.8px solid var(--faint); transform: rotate(45deg); flex: none; margin-right: 4px; }

/* website cards on the overview */
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.site-card { display: flex; flex-direction: column; padding: 20px 20px 18px; transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease); }
.site-card:hover { border-color: #d8d0c2; box-shadow: 0 14px 34px -24px rgba(30, 44, 76, .35); }
.site-card .head { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.site-card .head h2 { flex: 1; min-width: 0; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-card .host { display: block; margin: 3px 0 16px; color: var(--muted); font-size: 13.5px; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-card .host:hover { color: var(--ink); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin: 0 0 18px; }
.stats div { min-width: 0; }
.stats dt { font-size: 12.5px; color: var(--muted); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stats dd { margin: 0; font-weight: 650; font-size: 15px; font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stats dd.quiet { color: var(--faint); font-weight: 500; }
.site-card .foot { margin-top: auto; display: flex; gap: 8px; align-items: center; }
.site-card .foot .btn.main { flex: 1; }
.site-card .foot .btn:not(.main) { flex: 1; }

/* figures (tiles) */
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-bottom: 26px; }
.tile { padding: 16px 18px; }
.tile .label { font-size: 12.5px; color: var(--muted); }
.tile .value { font-size: 22px; font-weight: 650; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .value small { font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.tile .note { font-size: 13px; color: var(--muted); margin-top: 2px; }
.meter { height: 6px; border-radius: 99px; background: var(--line-soft); overflow: hidden; margin-top: 10px; }
.meter i { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--navy); transition: width .9s var(--ease); }
.meter.warn i { background: var(--amber); } .meter.bad i { background: var(--red); }

/* tabs: a sliding marker, and the panels share one grid cell so switching never changes the page height */
.tabs { position: relative; display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(15, 15, 14, .05); margin-bottom: 18px; max-width: 100%; overflow-x: auto;
  scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { position: relative; z-index: 1; height: 34px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-weight: 600;
  font-size: 14px; cursor: pointer; white-space: nowrap; transition: color .35s var(--ease); }
.tabs button[aria-selected="true"] { color: var(--ink); }
.tabs .marker { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 999px; background: #fff;
  box-shadow: 0 1px 2px rgba(15, 15, 14, .06), 0 0 0 1px rgba(15, 15, 14, .04); transition: transform .5s var(--ease), width .5s var(--ease); }
.tabs .marker.no-anim { transition: none; }
.panels { display: grid; }
.panels > .panel { grid-area: 1 / 1; min-width: 0; opacity: 0; visibility: hidden; transition: opacity var(--out) var(--ease), visibility 0s linear var(--out); }
.panels > .panel.is-on { opacity: 1; visibility: visible; transition: opacity var(--in) var(--ease) .1s, visibility 0s; }

/* toolbar */
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.search { position: relative; flex: 1 1 240px; max-width: 360px; }
.search .icon { position: absolute; left: 13px; top: 50%; margin-top: -9px; color: var(--faint); pointer-events: none; }
.search input { width: 100%; height: 40px; padding: 0 14px 0 40px; border-radius: 999px; border: 1px solid var(--line); background: #fff; outline: none;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease); }
.search input:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(30, 44, 76, .1); }
.select { height: 40px; padding: 0 36px 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; outline: none; max-width: 100%; min-width: 0;
  -webkit-appearance: none; appearance: none; cursor: pointer; flex: 0 1 260px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 19px) 17px, calc(100% - 14px) 17px; background-size: 5px 5px; background-repeat: no-repeat; }
.select:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(30, 44, 76, .1); }
.toolbar .count-note { margin-left: auto; color: var(--muted); font-size: 13.5px; white-space: nowrap; }

/* lists that are tables on a computer and stacked rows on a phone */
.list { container-type: inline-size; }
.rows { border-radius: var(--radius); }
.row-wrap { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .45s var(--ease), opacity .45s var(--ease); }
.row-wrap.is-gone { grid-template-rows: 0fr; opacity: 0; transition-duration: .35s; }
.row-wrap > * { min-height: 0; overflow: hidden; }
.row, .row-head { display: grid; align-items: center; gap: 12px; padding: 0 16px; }
.row { min-height: 56px; border-top: 1px solid var(--line-soft); transition: background-color .25s var(--ease); }
.row-wrap:first-of-type > .row, .row-head + .row-wrap > .row { border-top: 0; }
.row.click { cursor: pointer; }
.row.click:hover { background: var(--paper); }
.row-head { min-height: 42px; font-size: 12px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); border-bottom: 1px solid var(--line-soft); }
.cell { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 12px 0; font-variant-numeric: tabular-nums; }
.cell.strong { font-weight: 600; color: var(--ink); }
.cell .sub { display: block; font-size: 13px; color: var(--muted); font-weight: 400; overflow: hidden; text-overflow: ellipsis; }
.cell.right, .row-head .right { text-align: right; }
.cell.menu, .cell.action { overflow: visible; display: flex; justify-content: flex-end; padding: 8px 0; }
.cell a { text-decoration: none; color: var(--muted); }
.cell a:hover { color: var(--ink); }
.cell .now { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; color: var(--green); font-size: 13px; font-weight: 550; }
/* the name cell: a tag or "Logged in now" goes to a second line when there is no room, never cut off */
.cell.first { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; white-space: normal; }
.cell.first > span:first-child { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell.first .sub { flex: 0 0 100%; }
.cell.first .now { margin-left: 0; white-space: nowrap; }
.cell .now .dot { width: 6px; height: 6px; box-shadow: none; background: var(--green); }
.people .row, .people .row-head { grid-template-columns: minmax(170px, 1.6fr) minmax(90px, .9fr) minmax(90px, .9fr) minmax(110px, 1.2fr) minmax(130px, 1fr) 110px minmax(120px, .9fr) 34px; }
.people.no-groups .row, .people.no-groups .row-head { grid-template-columns: minmax(170px, 1.6fr) minmax(100px, 1fr) minmax(100px, 1fr) minmax(130px, 1fr) 110px minmax(120px, .9fr) 34px; }
.groups .row, .groups .row-head { grid-template-columns: minmax(180px, 1.6fr) minmax(130px, 1.2fr) minmax(110px, 1fr) 100px 70px 90px minmax(120px, 1fr) 124px; }
.cell[data-label]::before { content: none; }
.no-match { padding: 26px 16px; text-align: center; color: var(--muted); opacity: 0; transition: opacity var(--in) var(--ease); }
.no-match.is-on { opacity: 1; }

@container (max-width: 900px) {
  .row-head { display: none; }
  .people .row, .people.no-groups .row, .groups .row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 0; padding: 14px 16px; }
  .row .cell { padding: 0; white-space: normal; }
  .row .cell.first { flex: 1 1 calc(100% - 44px); font-size: 15.5px; }
  .row .cell.menu { flex: 0 0 44px; order: 1; align-self: flex-start; padding: 0; margin-top: -4px; }
  .row .cell.meta { order: 2; flex: 0 0 auto; color: var(--muted); font-size: 13.5px; }
  .row .cell.meta + .cell.meta::before { content: "\00b7"; margin: 0 7px; color: var(--faint); }
  .row .cell.meta:empty { display: none; }
  /* the facts always start on their own line, however short the line above is */
  .people .row::after, .groups .row::after { content: ""; order: 3; flex: 0 0 100%; height: 0; }
  .row .cell.fact { order: 4; flex: 0 0 33.333%; margin-top: 10px; font-size: 14px; }
  .row .cell.fact::before { content: attr(data-label); display: block; font-size: 12px; color: var(--muted); }
  .row .cell.action { order: 5; flex: 1 1 100%; margin-top: 12px; padding: 0; justify-content: flex-start; }
  .row .cell.right { text-align: left; }
  .row .cell.first .sub { display: none; }
}

/* the row menu floats above the page, so a gliding row can never clip it */
.pop.floating { position: fixed; right: auto; top: 0; min-width: 210px; }
.pop.floating.up { top: auto; transform-origin: bottom right; }

/* storage bars */
.bars-list { padding: 8px 20px 14px; }
.bar-row { display: grid; grid-template-columns: minmax(120px, 1fr) 2fr 90px; align-items: center; gap: 14px; min-height: 46px; border-top: 1px solid var(--line-soft); }
.bar-row:first-child { border-top: 0; }
.bar-row .label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-row .size { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.bar-row .meter { margin: 0; }
.total-line { display: flex; align-items: baseline; gap: 10px; padding: 18px 20px 6px; }
.total-line b { font-size: 24px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--ink); }
.two { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

/* activity and the IT log */
.events { padding: 6px 0; }
.event { display: grid; grid-template-columns: 150px 1fr; gap: 14px; padding: 11px 20px; border-top: 1px solid var(--line-soft); }
.event:first-child { border-top: 0; }
.event .at { color: var(--muted); font-size: 13.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.event .what { min-width: 0; overflow-wrap: anywhere; }
.event .what .sub { display: block; color: var(--muted); font-size: 13px; }
.event.failed .what > span:first-child { color: #a3301c; }
.log .event { grid-template-columns: 150px minmax(0, 1.6fr) minmax(0, 1fr) 120px; align-items: baseline; }
.log .event .site, .log .event .ip { color: var(--muted); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log .event .ip { text-align: right; font-variant-numeric: tabular-nums; }

/* simple key/value lines (server page) */
.lines { padding: 4px 0; }
.line { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 20px; border-top: 1px solid var(--line-soft); }
.line:first-child { border-top: 0; }
.line .k { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line .k .sub { display: block; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.line .v { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.line .v b { color: var(--ink); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 20px; }
.chips .pill { background: var(--sand-soft); }

/* messages */
.messages { display: grid; gap: 12px; }
.message { padding: 18px 20px; position: relative; transition: border-color .4s var(--ease), box-shadow .4s var(--ease); }
.message.unread { border-color: #cbd3e3; box-shadow: inset 3px 0 0 var(--navy); }
.message .m-head { display: flex; align-items: flex-start; gap: 12px; }
.message .m-who { flex: 1; min-width: 0; }
.message .m-who b { font-weight: 650; color: var(--ink); }
.message .m-who .sub { display: block; color: var(--muted); font-size: 13.5px; overflow-wrap: anywhere; }
.message .m-side { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.message .m-side .at { color: var(--muted); font-size: 13.5px; white-space: nowrap; }
.message .m-tag { display: inline-grid; }
.message .m-tag > * { grid-area: 1 / 1; transition: opacity var(--in) var(--ease); }
.message .m-tag > .is-hidden { opacity: 0; transition-duration: var(--out); }
.message .details { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 12px 0 0; font-size: 13.5px; color: var(--muted); }
.message .details b { color: var(--text); font-weight: 600; }
.message p.text { margin: 12px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.message .m-foot { margin-top: 14px; }
.btn .alt { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity var(--out) var(--ease); }
.btn.is-alt .label { opacity: 0; }
.btn.is-alt .alt { opacity: 1; transition-duration: var(--in); }

/* fingerprints */
.prints .line { min-height: 64px; }
.rename { display: flex; gap: 8px; align-items: center; }
.rename .input { height: 36px; max-width: 240px; }
.inline-stack { display: grid; flex: 1; min-width: 0; }
.inline-stack > * { grid-area: 1 / 1; transition: opacity var(--in) var(--ease); min-width: 0; }
.inline-stack > .is-hidden { opacity: 0; visibility: hidden; transition: opacity var(--out) var(--ease), visibility 0s linear var(--out); }
.note-line { margin: 14px 2px 0; color: var(--muted); font-size: 14px; }

/* external links */
.ext { width: 12px; height: 12px; }

/* ------------------------------------------------------------ dialog */
.dialog { width: min(440px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: 22px; background: #fff; color: var(--text);
  box-shadow: 0 30px 80px -30px rgba(15, 15, 14, .45), 0 0 0 1px rgba(15, 15, 14, .06);
  opacity: 0; transform: translateY(10px) scale(.985); transition: opacity var(--out) var(--ease), transform var(--out) var(--ease); }
.dialog.is-open { opacity: 1; transform: none; transition: opacity var(--in) var(--ease), transform var(--in) var(--ease); }
.dialog::backdrop { background: rgba(23, 26, 34, 0); -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); transition: background-color var(--in) var(--ease); }
.dialog.is-open::backdrop { background: rgba(23, 26, 34, .32); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.dialog .d-body { padding: 26px 26px 22px; }
.dialog h2 { font-size: 19px; line-height: 1.3; letter-spacing: -0.015em; }
.dialog p { margin: 10px 0 0; color: var(--muted); }
.dialog .d-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 24px; }
.dialog .d-error { min-height: 20px; margin: 12px 0 0; font-size: 13.5px; color: #a3301c; opacity: 0; transition: opacity var(--out) var(--ease); }
.dialog .d-error.is-on { opacity: 1; transition-duration: var(--in); }
.secret-box { margin: 18px 0 0; padding: 18px 16px; border-radius: 16px; background: var(--sand-soft); border: 1px solid var(--line); text-align: center; }
.secret-box .secret { display: block; font: 600 34px/1.2 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .06em; color: var(--ink); overflow-wrap: anywhere;
  user-select: all; -webkit-user-select: all; }
.secret-box .btn { margin-top: 12px; }
.kv { margin: 16px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; font-weight: 600; color: var(--ink); }
.kv dd a { color: var(--ink); }

/* toast */
.toast { position: fixed; z-index: 60; left: 50%; bottom: 26px; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 14px; background: var(--ink); color: #fff;
  font-size: 14px; font-weight: 500; box-shadow: 0 16px 40px -16px rgba(15, 15, 14, .5); opacity: 0; visibility: hidden; transform: translate(-50%, 8px);
  transition: opacity var(--out) var(--ease), transform var(--out) var(--ease), visibility 0s linear var(--out); }
.toast.is-on { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity var(--in) var(--ease), transform var(--in) var(--ease), visibility 0s; }

/* ------------------------------------------------------------ phone and tablet */
@media (max-width: 960px) {
  .menu-btn { display: inline-flex; }
  .brand span { display: none; }
  .side { width: min(300px, 86vw); transform: translateX(-102%); background: rgba(250, 248, 244, .97); box-shadow: 18px 0 50px -30px rgba(15, 15, 14, .4);
    transition: transform .45s var(--ease), visibility 0s linear .45s; visibility: hidden; z-index: 26; }
  .side.is-open { transform: none; visibility: visible; transition: transform .45s var(--ease), visibility 0s; }
  .scrim { display: block; position: fixed; z-index: 25; inset: var(--top) 0 0 0; background: rgba(23, 26, 34, .25); opacity: 0; visibility: hidden;
    transition: opacity .35s var(--ease), visibility 0s linear .35s; }
  .scrim.is-on { opacity: 1; visibility: visible; transition: opacity .35s var(--ease), visibility 0s; }
  main.main { margin-left: 0; padding: calc(var(--top) + 22px) 16px 70px; max-width: none; }
  .top { padding: 0 16px; gap: 10px; }
}
@media (min-width: 961px) { .brand span { display: inline; } }
@media (max-width: 640px) {
  h1 { font-size: 23px; }
  .page-head { flex-direction: column; gap: 14px; margin-bottom: 20px; }
  .page-head .actions { justify-content: flex-start; width: 100%; }
  .page-head .actions .btn { flex: 1; }
  .cards { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile { padding: 14px; }
  .tile .value { font-size: 19px; }
  .tabs { display: flex; width: 100%; }
  .tabs button { flex: 1 0 auto; padding: 0 12px; font-size: 13.5px; }
  .search { max-width: none; flex-basis: 100%; }
  .select { flex: 1 1 auto; }
  .event, .log .event { grid-template-columns: 1fr; gap: 2px; padding: 12px 16px; }
  .log .event .ip { text-align: left; }
  .bar-row { grid-template-columns: 1fr 80px; gap: 4px 12px; padding: 10px 0; }
  .bar-row .meter { grid-column: 1 / -1; grid-row: 2; }
  .bars-list { padding: 4px 16px 12px; }
  .line { padding: 10px 16px; flex-wrap: wrap; }
  .line .v { white-space: normal; }
  .two { grid-template-columns: 1fr; }
  .dialog .d-body { padding: 22px 20px 18px; }
  .secret-box .secret { font-size: 28px; }
  .message { padding: 16px; }
  .message .m-head { flex-wrap: wrap; }
  .message .m-side { width: 100%; justify-content: flex-start; }
  .login-card { padding: 26px 22px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; transition-delay: 0s !important; }
  .progress i { animation: none; left: 0; width: 100%; opacity: .4; }
}
