/* Layout: one calm column. A floating liquid-glass bar on top (brand, Panels | Activity, theme, lock, you), then the panels as big glass cards: icon, name, address, who it signs in as, one "Open" button.
   Everything else lives behind the three-dot menu. Liquid glass = soft blobs of one colour family behind, very blurred translucent layers, a lit rim, a soft highlight that follows the pointer. Dark first; a light variant follows the system or the toggle. */
:root {
  --bg: #07080c; --b1: #aabfe2; --b2: #6a82b4; --b3: #c6d2e8; --b4: #475d8a; --blob-o: .42; --rock-o: .8; --rock-blend: overlay; --vig: radial-gradient(125% 100% at 50% 28%, transparent 48%, rgba(0, 0, 0, .66) 100%);
  --glass-a: rgba(255, 255, 255, .17); --glass-b: rgba(255, 255, 255, .05); --glass-flat: rgba(255, 255, 255, .09); --glass-hover: rgba(255, 255, 255, .16);
  --rim-1: rgba(255, 255, 255, .8); --rim-2: rgba(255, 255, 255, .1); --rim-3: rgba(255, 255, 255, .5); --sheen: rgba(255, 255, 255, .26);
  --line: rgba(255, 255, 255, .16);
  --fg: #f2f7fb; --fg-2: #b6c3d2; --fg-3: #8b9bad;
  --accent-1: #a6bfff; --accent-2: #5078ea; --on-accent: #06122e; --accent-text: #93b0ff; --accent-shade: rgba(8, 24, 96, .4);
  --ok: #55e6b0; --warn: #ffcf63; --err: #ff8080;
  --field: rgba(6, 12, 24, .42); --shadow: 0 22px 60px rgba(0, 0, 0, .38); --pop: 0 24px 64px rgba(0, 0, 0, .55); --scrim: rgba(4, 8, 18, .58); --menu-bg: rgba(20, 28, 44, .72);
  --font-display: 'Sora', 'Plus Jakarta Sans', system-ui, sans-serif; --font-ui: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #a7b3c8; --b1: #d9e2f4; --b2: #6f87b8; --b3: #c4cfe4; --b4: #5f78ab; --blob-o: .55; --rock-o: 1; --rock-blend: soft-light; --vig: radial-gradient(125% 100% at 50% 28%, transparent 46%, rgba(22, 34, 70, .38) 100%);
    --glass-a: rgba(255, 255, 255, .4); --glass-b: rgba(255, 255, 255, .1); --glass-flat: rgba(255, 255, 255, .22); --glass-hover: rgba(255, 255, 255, .54);
    --rim-1: rgba(255, 255, 255, .95); --rim-2: rgba(255, 255, 255, .34); --rim-3: rgba(255, 255, 255, .8); --sheen: rgba(255, 255, 255, .55);
    --line: rgba(20, 36, 74, .18);
    --fg: #0a1424; --fg-2: #2b3c54; --fg-3: #3f5068;
    --accent-1: #7fa0f7; --accent-2: #3558d4; --on-accent: #ffffff; --accent-text: #2c4bc0; --accent-shade: rgba(10, 30, 120, .34);
    --ok: #0a7d5a; --warn: #8a5a00; --err: #b8302a;
    --field: rgba(255, 255, 255, .34); --shadow: 0 18px 50px rgba(28, 42, 84, .26); --pop: 0 22px 60px rgba(28, 42, 84, .38); --scrim: rgba(130, 144, 172, .6); --menu-bg: rgba(226, 232, 244, .92);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #a7b3c8; --b1: #d9e2f4; --b2: #6f87b8; --b3: #c4cfe4; --b4: #5f78ab; --blob-o: .55; --rock-o: 1; --rock-blend: soft-light; --vig: radial-gradient(125% 100% at 50% 28%, transparent 46%, rgba(22, 34, 70, .38) 100%);
  --glass-a: rgba(255, 255, 255, .4); --glass-b: rgba(255, 255, 255, .1); --glass-flat: rgba(255, 255, 255, .22); --glass-hover: rgba(255, 255, 255, .54);
  --rim-1: rgba(255, 255, 255, .95); --rim-2: rgba(255, 255, 255, .34); --rim-3: rgba(255, 255, 255, .8); --sheen: rgba(255, 255, 255, .55);
  --line: rgba(20, 36, 74, .18);
  --fg: #0a1424; --fg-2: #2b3c54; --fg-3: #3f5068;
  --accent-1: #7fa0f7; --accent-2: #3558d4; --on-accent: #ffffff; --accent-text: #2c4bc0; --accent-shade: rgba(10, 30, 120, .34);
  --ok: #0a7d5a; --warn: #8a5a00; --err: #b8302a;
  --field: rgba(255, 255, 255, .34); --shadow: 0 18px 50px rgba(28, 42, 84, .26); --pop: 0 22px 60px rgba(28, 42, 84, .38); --scrim: rgba(130, 144, 172, .6); --menu-bg: rgba(226, 232, 244, .92);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #07080c; --b1: #aabfe2; --b2: #6a82b4; --b3: #c6d2e8; --b4: #475d8a; --blob-o: .42; --rock-o: .8; --rock-blend: overlay; --vig: radial-gradient(125% 100% at 50% 28%, transparent 48%, rgba(0, 0, 0, .66) 100%);
  --glass-a: rgba(255, 255, 255, .17); --glass-b: rgba(255, 255, 255, .05); --glass-flat: rgba(255, 255, 255, .09); --glass-hover: rgba(255, 255, 255, .16);
  --rim-1: rgba(255, 255, 255, .8); --rim-2: rgba(255, 255, 255, .1); --rim-3: rgba(255, 255, 255, .5); --sheen: rgba(255, 255, 255, .26);
  --line: rgba(255, 255, 255, .16);
  --fg: #f2f7fb; --fg-2: #b6c3d2; --fg-3: #8b9bad;
  --accent-1: #a6bfff; --accent-2: #5078ea; --on-accent: #06122e; --accent-text: #93b0ff; --accent-shade: rgba(8, 24, 96, .4);
  --ok: #55e6b0; --warn: #ffcf63; --err: #ff8080;
  --field: rgba(6, 12, 24, .42); --shadow: 0 22px 60px rgba(0, 0, 0, .38); --pop: 0 24px 64px rgba(0, 0, 0, .55); --scrim: rgba(4, 8, 18, .58); --menu-bg: rgba(20, 28, 44, .72);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { min-height: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 14.5px/1.5 var(--font-ui); -webkit-font-smoothing: antialiased; padding-block: 14px 40px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); overflow-x: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: -.015em; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
.mono { font-family: var(--font-mono); font-size: 12.5px; }
.i { flex: none; display: inline-block; vertical-align: middle; }
:focus-visible { outline: 2px solid var(--accent-1); outline-offset: 2px; }

/* what sits behind the glass: a dark stone surface lit from the top (a relief made by the browser, nothing to download), a few soft patches of cool light drifting over it, a vignette and a fine grain.
   Liquid glass needs something with depth behind it: the glass bends and frosts what it sits on. */
.blobs { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: var(--bg); }
.blobs .rock { position: absolute; inset: 0; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='1600' height='1000'><filter id='r' x='0' y='0' width='100%25' height='100%25'><feTurbulence type='turbulence' baseFrequency='0.0042 0.0075' numOctaves='4' seed='11' result='n'/><feDiffuseLighting in='n' lighting-color='%23ffffff' surfaceScale='11' diffuseConstant='1.05'><feDistantLight azimuth='228' elevation='38'/></feDiffuseLighting></filter><rect width='100%25' height='100%25' filter='url(%23r)'/></svg>") center / cover no-repeat; opacity: var(--rock-o, .8); mix-blend-mode: var(--rock-blend, overlay); }
.blobs i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: var(--blob-o, .36); animation: drift 40s ease-in-out infinite alternate; will-change: transform; }
.blobs .a { width: 62vw; height: 52vw; max-width: 860px; max-height: 720px; left: -8vw; top: -20vw; background: radial-gradient(ellipse at 40% 40%, var(--b1), transparent 68%); }
.blobs .b { width: 40vw; height: 40vw; max-width: 560px; max-height: 560px; right: -10vw; top: 6vh; background: radial-gradient(circle at 50% 50%, var(--b2), transparent 66%); animation-duration: 48s; }
.blobs .c { width: 48vw; height: 34vw; max-width: 680px; max-height: 480px; left: 22vw; bottom: -18vw; background: radial-gradient(ellipse at 50% 50%, var(--b3), transparent 68%); animation-duration: 54s; opacity: calc(var(--blob-o, .36) * .7); }
.blobs .d { width: 30vw; height: 30vw; max-width: 420px; max-height: 420px; right: 16vw; bottom: 2vh; background: radial-gradient(circle at 50% 50%, var(--b4), transparent 66%); animation-duration: 46s; opacity: calc(var(--blob-o, .36) * .8); }
.blobs::after { content: ''; position: absolute; inset: 0; background-image: var(--vig), url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .12 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>"); background-size: auto, 180px 180px; }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(6vw, 5vh, 0) scale(1.14); } }
@media (prefers-reduced-motion: reduce) { .blobs i { animation: none; } * { transition-duration: .01ms !important; animation-duration: .01ms !important; } }

/* liquid glass: a translucent body, a lit rim, an inner glow and a highlight that follows the pointer */
.glass { position: relative; isolation: isolate; background: linear-gradient(145deg, var(--glass-a), var(--glass-b)); backdrop-filter: blur(30px) saturate(190%); -webkit-backdrop-filter: blur(30px) saturate(190%); box-shadow: var(--shadow), inset 0 1px 1px var(--rim-3), inset 0 -1px 1px var(--rim-2), inset 0 0 26px var(--glass-b); border-radius: 30px; }
.glass::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none; background: radial-gradient(260px circle at var(--mx, 18%) var(--my, 0%), var(--sheen), transparent 62%); opacity: .75; transition: opacity .25s; }
.glass::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.2px; pointer-events: none; background: linear-gradient(140deg, var(--rim-1), var(--rim-2) 36%, var(--rim-2) 64%, var(--rim-3)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.glass.flat::before { display: none; }
#app { position: relative; z-index: 1; }

/* buttons: glass capsules; the one action is a glossy liquid capsule in the accent colour */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--glass-flat); color: var(--fg); font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; backdrop-filter: blur(18px) saturate(170%); -webkit-backdrop-filter: blur(18px) saturate(170%); box-shadow: inset 0 1px 1px var(--rim-3), inset 0 -1px 1px var(--rim-2), 0 6px 18px rgba(0, 0, 0, .14); transition: transform .18s cubic-bezier(.3, 1.6, .5, 1), background .15s, filter .15s; }
.btn:hover { background: var(--glass-hover); transform: translateY(-1px) scale(1.02); }
.btn:active { transform: scale(.97); }
.btn.primary { color: var(--on-accent); background: linear-gradient(180deg, var(--accent-1), var(--accent-2)); box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, .6), inset 0 -3px 8px var(--accent-shade), 0 12px 26px -8px var(--accent-2); }
.btn.primary:hover { filter: brightness(1.07); background: linear-gradient(180deg, var(--accent-1), var(--accent-2)); }
.btn.danger { color: var(--err); }
.btn.block { width: 100%; }
.btn.lg { height: 50px; font-size: 15px; padding: 0 26px; }
.btn.sm { height: 36px; padding: 0 14px; font-size: 13px; }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.ib { width: 38px; height: 38px; display: inline-grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--fg-2); flex: none; transition: background .15s, color .15s, transform .18s cubic-bezier(.3, 1.6, .5, 1); }
.ib:hover { background: var(--glass-flat); color: var(--fg); transform: scale(1.08); }
.ib[aria-pressed="true"] { color: var(--accent-text); }
.ib[aria-pressed="true"] svg { fill: currentColor; }

/* fields */
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > label, .lab { font-size: 13px; font-weight: 600; color: var(--fg-2); }
.inp { position: relative; display: flex; align-items: center; }
.inp > .i { position: absolute; left: 16px; color: var(--fg-3); pointer-events: none; }
.inp input { width: 100%; height: 48px; padding: 0 16px 0 44px; border: 0; border-radius: 16px; background: var(--field); color: var(--fg); box-shadow: inset 0 1px 3px rgba(0, 0, 0, .22), inset 0 0 0 1px var(--line); transition: box-shadow .15s; }
.inp input:focus { outline: none; box-shadow: inset 0 1px 3px rgba(0, 0, 0, .22), inset 0 0 0 1.5px var(--accent-1), 0 0 0 4px color-mix(in srgb, var(--accent-1) 25%, transparent); }
.inp input::placeholder { color: var(--fg-3); }
.inp .tail { position: absolute; right: 6px; display: flex; gap: 0; }
.inp input.has-tail { padding-right: 88px; }
.err { font-size: 12.5px; color: var(--err); } .err:empty { display: none; }
.hint { font-size: 12.5px; color: var(--fg-3); line-height: 1.45; }
.seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px; background: var(--field); box-shadow: inset 0 1px 3px rgba(0, 0, 0, .2), inset 0 0 0 1px var(--line); }
.seg button { height: 36px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--fg-2); font-weight: 600; font-size: 13.5px; display: inline-flex; align-items: center; gap: 7px; transition: background .2s, color .2s; }
.seg button[aria-pressed="true"], .seg button[aria-current="page"] { background: var(--glass-a); color: var(--fg); box-shadow: inset 0 1px 1px var(--rim-3), 0 3px 10px rgba(0, 0, 0, .16); }
.check { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--fg-2); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent-2); margin: 0; }

.brand { display: flex; align-items: center; gap: 12px; }
.mark { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(150deg, var(--accent-1), var(--accent-2)); box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, .55), inset 0 -3px 6px var(--accent-shade), 0 8px 20px -6px var(--accent-2); }
.brand b { font: 700 16px/1.1 var(--font-display); white-space: nowrap; } .brand small { display: block; margin-top: 2px; font-size: 12px; color: var(--fg-3); }

/* ───────── sign in ───────── */
.login { min-height: calc(100dvh - 54px); display: grid; place-items: center; padding-block: 24px; }
.login-card { width: min(440px, 100%); padding: 36px 34px 28px; display: flex; flex-direction: column; gap: 24px; border-radius: 36px; }
.login-card h1 { font-size: 28px; line-height: 1.15; } .login-card .sub { color: var(--fg-2); margin-top: 6px; }
.login form { display: flex; flex-direction: column; gap: 16px; }
.login .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.login .link { color: var(--accent-text); font-weight: 600; background: none; border: 0; padding: 0; font-size: 13px; }
.login .foot { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--fg-3); font-size: 12.5px; }
.otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 9px; }
.otp input { height: 58px; text-align: center; font: 600 22px var(--font-mono); border: 0; border-radius: 16px; background: var(--field); width: 100%; min-width: 0; padding: 0; box-shadow: inset 0 1px 3px rgba(0, 0, 0, .22), inset 0 0 0 1px var(--line); }
.otp input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--accent-1), 0 0 0 4px color-mix(in srgb, var(--accent-1) 25%, transparent); }
.demo { align-self: center; font-size: 12px; color: var(--fg-3); }

/* ───────── the console ───────── */
.wrap { max-width: 1080px; margin: 0 auto; display: flex; flex-direction: column; gap: 34px; }
.bar { position: sticky; top: 12px; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 16px; border-radius: 999px; }
.bar .grow { flex: 1; display: flex; justify-content: center; }
.tabbar { display: none; }
.bar .me { display: flex; align-items: center; gap: 8px; }
.av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 700 12.5px var(--font-display); color: #fff; background: linear-gradient(150deg, var(--accent-1), var(--accent-2)); box-shadow: inset 0 1px 1px rgba(255, 255, 255, .5); flex: none; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.head h1 { font-size: 34px; line-height: 1.1; } .head p { color: var(--fg-2); margin-top: 6px; }
.head .tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.search { position: relative; width: 250px; max-width: 100%; }
.search input { height: 42px; border-radius: 999px; padding-left: 42px; }
.search > .i { left: 15px; }
.kbd { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font: 500 11.5px var(--font-mono); color: var(--fg-3); pointer-events: none; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.card { padding: 22px; display: flex; flex-direction: column; gap: 26px; transition: transform .25s cubic-bezier(.3, 1.4, .5, 1), box-shadow .25s; min-width: 0; }
.card:hover { transform: translateY(-4px); box-shadow: var(--pop), inset 0 1px 1px var(--rim-3), inset 0 -1px 1px var(--rim-2), inset 0 0 26px var(--glass-b); }
.card header { display: flex; align-items: flex-start; gap: 14px; }
.tile { position: relative; width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; color: #fff; flex: none; background: linear-gradient(150deg, var(--t1), var(--t2)); box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, .5), inset 0 -3px 8px rgba(0, 0, 0, .2), 0 10px 22px -10px var(--t2); }
.tile .dot { position: absolute; right: -3px; bottom: -3px; width: 14px; height: 14px; border-radius: 50%; background: var(--ok); border: 3px solid color-mix(in srgb, var(--bg) 60%, transparent); box-shadow: 0 0 10px var(--ok); }
.tile .dot.slow { background: var(--warn); box-shadow: 0 0 10px var(--warn); } .tile .dot.down { background: var(--err); box-shadow: 0 0 10px var(--err); }
.card .ttl { min-width: 0; flex: 1; padding-top: 1px; }
.card h3 { font-size: 18px; line-height: 1.25; display: flex; align-items: center; gap: 8px; }
.card .host { display: block; font: 400 12.5px var(--font-mono); color: var(--fg-3); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .stg { font: 700 10px var(--font-ui); letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; color: var(--accent-text); background: color-mix(in srgb, var(--accent-1) 16%, transparent); }
.card .acts { display: flex; gap: 0; margin: -6px -8px 0 0; }
.card footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card .who { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.card .who .mail { display: flex; align-items: center; gap: 7px; font: 400 12.5px var(--font-mono); color: var(--fg-2); min-width: 0; } .card .who .mail span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .who small { font-size: 12px; color: var(--fg-3); }
.card .btn .i { transition: transform .18s; } .card .btn:hover .i { transform: translateX(3px); }
.menu { position: absolute; z-index: 40; min-width: 220px; padding: 8px; border-radius: 22px; background: var(--menu-bg); backdrop-filter: blur(30px) saturate(190%); -webkit-backdrop-filter: blur(30px) saturate(190%); box-shadow: var(--pop), inset 0 1px 1px var(--rim-3); border: 1px solid var(--line); animation: pop .16s ease-out; }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(-4px); } to { opacity: 1; transform: none; } }
.menu button { display: flex; align-items: center; gap: 12px; width: 100%; height: 42px; padding: 0 12px; border: 0; border-radius: 14px; background: transparent; font-weight: 500; text-align: left; }
.menu button:hover { background: var(--glass-flat); } .menu button.danger { color: var(--err); } .menu hr { border: 0; height: 1px; background: var(--line); margin: 6px 4px; }

.list { padding: 8px; display: flex; flex-direction: column; }
.list .row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 22px; }
.list .row + .row { border-top: 1px solid var(--line); border-radius: 0; }
.list .ev { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; background: var(--glass-flat); color: var(--ok); flex: none; box-shadow: inset 0 1px 1px var(--rim-3); }
.list .ev.acc { color: var(--accent-text); } .list .ev.warn { color: var(--warn); }
.list p { font-size: 14px; } .list p b { font-weight: 600; } .list small { color: var(--fg-3); }
.list time { margin-left: auto; font-size: 12.5px; color: var(--fg-3); white-space: nowrap; }

.empty { padding: 64px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; grid-column: 1 / -1; }
.empty .big { width: 76px; height: 76px; border-radius: 26px; display: grid; place-items: center; background: var(--glass-flat); color: var(--accent-text); box-shadow: inset 0 1px 1px var(--rim-3); }
.empty h3 { font-size: 22px; } .empty p { max-width: 42ch; color: var(--fg-2); }

/* ───────── windows ───────── */
.scrim { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: var(--scrim); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); overflow-y: auto; animation: fade .2s ease-out; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.win { width: min(520px, 100%); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; border-radius: 34px; animation: rise .28s cubic-bezier(.3, 1.3, .5, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.win-h { display: flex; align-items: center; gap: 14px; padding: 24px 26px 8px; }
.win-h h2 { font-size: 21px; } .win-h p { color: var(--fg-2); font-size: 13.5px; margin-top: 3px; } .win-h .ib { margin-left: auto; align-self: flex-start; margin-right: -8px; }
.win-b { padding: 14px 26px 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; }
.win-f { display: flex; align-items: center; gap: 10px; padding: 8px 26px 24px; flex-wrap: wrap; justify-content: flex-end; }
.win-f .note { margin-right: auto; display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--fg-3); }
.win-f .note .i { color: var(--ok); }
.method { display: flex; flex-direction: column; gap: 9px; }
.test { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; width: 100%; }
.test.ok { color: var(--ok); } .test.bad { color: var(--err); }

.opening { width: min(430px, 100%); padding: 34px 30px 28px; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; border-radius: 36px; animation: rise .28s cubic-bezier(.3, 1.3, .5, 1); }
.opening .tile { width: 68px; height: 68px; border-radius: 22px; }
.opening h2 { font-size: 21px; } .opening .sub { color: var(--fg-3); margin-top: 4px; overflow-wrap: anywhere; }
.steps { list-style: none; margin: 0; padding: 0; width: 100%; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.steps li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 18px; background: var(--field); color: var(--fg-3); transition: color .25s; box-shadow: inset 0 0 0 1px var(--line); }
.steps li.on { color: var(--fg); } .steps li.done { color: var(--fg-2); }
.steps .dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line); flex: none; }
.steps li.on .dot { border-color: var(--accent-1); border-top-color: transparent; animation: spin .8s linear infinite; }
.steps li.done .dot { background: var(--ok); border-color: var(--ok); color: #04150f; } .steps li.done .dot .i { width: 13px; height: 13px; }
@keyframes spin { to { transform: rotate(360deg); } }
.opening .ok-big { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--ok) 20%, transparent); color: var(--ok); box-shadow: inset 0 1px 1px var(--rim-3), 0 0 30px color-mix(in srgb, var(--ok) 40%, transparent); }
.opening .foot { font-size: 12.5px; color: var(--fg-3); }
.lock { width: min(400px, 100%); padding: 34px 30px 28px; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; border-radius: 36px; animation: rise .28s cubic-bezier(.3, 1.3, .5, 1); }
.lock .big { width: 68px; height: 68px; border-radius: 22px; display: grid; place-items: center; background: var(--glass-flat); color: var(--accent-text); box-shadow: inset 0 1px 1px var(--rim-3); }
.lock form { width: 100%; display: flex; flex-direction: column; gap: 14px; text-align: left; }

.toasts { position: fixed; z-index: 80; left: 50%; transform: translateX(-50%); bottom: max(22px, env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: min(92vw, 420px); }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; background: var(--menu-bg); backdrop-filter: blur(24px) saturate(190%); -webkit-backdrop-filter: blur(24px) saturate(190%); box-shadow: var(--pop), inset 0 1px 1px var(--rim-3); font-weight: 600; font-size: 13.5px; animation: rise .25s ease-out; }
.toast .i { color: var(--ok); }
.protonote { text-align: center; color: var(--fg-3); font-size: 12px; }

@media (max-width: 720px) {
  /* on a phone the three sections move to a floating bar at the bottom (thumb reach), and the top bar keeps only the brand and the three small buttons: nothing is wider than the screen */
  .bar .brand small { display: none; } .bar { padding: 8px 10px 8px 12px; gap: 10px; } .bar .brand { flex: 1; min-width: 0; } .bar .brand b { overflow: hidden; text-overflow: ellipsis; }
  .bar .grow, .bar .me .av { display: none; }
  body { padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px)); }
  .tabbar { display: flex; position: fixed; z-index: 30; left: 50%; transform: translateX(-50%); bottom: max(14px, env(safe-area-inset-bottom, 0px)); width: min(calc(100vw - 32px), 380px); padding: 6px; gap: 4px; border-radius: 999px; }
  .tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 54px; border: 0; border-radius: 999px; background: transparent; color: var(--fg-2); font: 600 11.5px var(--font-ui); transition: background .2s, color .2s; }
  .tabbar button[aria-current="page"] { background: var(--glass-a); color: var(--fg); box-shadow: inset 0 1px 1px var(--rim-3), 0 3px 10px rgba(0, 0, 0, .16); }
  .toasts { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .head h1 { font-size: 28px; } .search { width: 100%; } .head .tools { width: 100%; } .head .tools .btn { flex: none; }
  .login-card { padding: 28px 22px 22px; } .grid { grid-template-columns: minmax(0, 1fr); }
  .win-h, .win-b, .win-f { padding-left: 20px; padding-right: 20px; }
  .scrim { align-items: end; padding-bottom: 0; } .win { border-bottom-left-radius: 0; border-bottom-right-radius: 0; max-height: 94dvh; }
  .list time { display: none; }
}

/* real-build additions */
.dot.unk { background: var(--fg-3); box-shadow: none; }
button.av { border: 0; cursor: pointer; padding: 0; }
button.av:focus-visible { outline: 2px solid var(--accent-1); outline-offset: 2px; }
.secret { font: 500 14px var(--font-mono); letter-spacing: .08em; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 40%, transparent); word-break: break-all; user-select: all; }
.qr { align-self: flex-start; width: 168px; height: 168px; padding: 8px; border-radius: 14px; background: #fff; }
.qr svg { width: 100%; height: 100%; display: block; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); }
.pill.on { color: var(--ok); }
.btnrow { display: flex; gap: 10px; flex-wrap: wrap; }

/* the profile page: who you are on the left (with the sections), the section you picked on the right */
.inp.plain input { padding-left: 16px; }
.pf { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 22px; align-items: start; }
.pf-nav { position: sticky; top: 92px; padding: 14px 12px 12px; display: flex; flex-direction: column; gap: 4px; }
.pf-me { display: flex; align-items: center; gap: 12px; padding: 4px 8px 16px; margin-bottom: 8px; border-bottom: 1px solid var(--line); min-width: 0; }
.pf-me .av { width: 46px; height: 46px; font-size: 16px; }
.pf-me > div { min-width: 0; }
.pf-me b { display: block; font: 700 15px/1.25 var(--font-display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-me small { display: block; margin-top: 2px; color: var(--fg-3); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-nav button { display: flex; align-items: center; gap: 11px; height: 42px; padding: 0 14px; border: 0; border-radius: 14px; background: transparent; color: var(--fg-2); font: 600 14px var(--font-ui); text-align: left; cursor: pointer; transition: background .15s, color .15s; }
.pf-nav button:hover { background: var(--glass-flat); color: var(--fg); }
.pf-nav button[aria-selected="true"] { background: var(--glass-a); color: var(--fg); box-shadow: inset 0 1px 1px var(--rim-3), inset 0 -1px 1px var(--rim-2); }
.pf-nav button .i { flex: none; opacity: .85; }
.pf-body { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.pcard { padding: 26px 28px; display: flex; flex-direction: column; gap: 18px; }
.pcard > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pcard h3 { font: 600 16px/1.3 var(--font-display); }
.pcard .sub { margin: 4px 0 0; color: var(--fg-2); font-size: 13px; max-width: 60ch; }
.pcard .pfoot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.pcard .pmsg { margin-right: auto; font-size: 13px; color: var(--ok); }
.pcard .pwrow[hidden] { display: none; }
.kv { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px 16px; font-size: 14px; margin: 0; }
.kv dt { color: var(--fg-3); } .kv dd { margin: 0; color: var(--fg); overflow-wrap: anywhere; }
.srow { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.srow:first-of-type { border-top: 0; padding-top: 0; }
.srow .st { flex: 1; min-width: 0; } .srow b { display: block; font-weight: 600; font-size: 14.5px; }
.srow small { display: block; margin-top: 2px; color: var(--fg-3); font-size: 12.5px; }
.srow .here { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); }
.opts { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.opts p { margin: 0; font-size: 13px; color: var(--fg-2); max-width: 46ch; }
@media (max-width: 820px) {
  .pf { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .pf-nav { position: static; flex-direction: row; flex-wrap: wrap; padding: 12px; }
  .pf-me { flex: 0 0 100%; margin-bottom: 4px; padding-bottom: 12px; }
  .pf-nav button { flex: 1 1 auto; justify-content: center; padding: 0 12px; }
  .pcard { padding: 22px 20px; } .kv { grid-template-columns: minmax(0, 1fr); gap: 2px; } .kv dd { margin-bottom: 10px; }
}
