/* Calm neutrals, hairline borders, no shadows, one typeface. Colour only says something about state. */
@font-face { font-family: Geist; src: url(/geist.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
:root { color-scheme: light dark;
	--page: #f4f5f6; --card: #fff; --sunk: #f8f9fa; --line: #e3e5e8; --line-2: #eef0f2;
	--ink: #16181b; --ink-2: #3d4148; --muted: #6b7079; --faint: #9ea3ab; --seg: #e6e8eb;
	--ok: #3a9a64; --warn: #b4610f; --bad: #b42318; --accent: #3b6fe0; --button: #16181b; --on-button: #fff; }
@media (prefers-color-scheme: dark) { :root {
	--page: #0f1011; --card: #18191b; --sunk: #141517; --line: #26282b; --line-2: #1f2124;
	--ink: #ebecee; --ink-2: #c3c6cb; --muted: #8a8f97; --faint: #5f646b; --seg: #2a2c30;
	--ok: #5fbf88; --warn: #e0a458; --bad: #f0a3a3; --accent: #7aa2f7; --button: #ebecee; --on-button: #16181b; } }
* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); font: 15px/1.55 Geist, system-ui, sans-serif; -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--ink-2); }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; border-radius: 8px; }
.loading { color: var(--muted); text-align: center; margin-top: 30vh; }

.label { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.quiet { color: var(--muted); font-size: 13px; margin: 0; }
.error { color: var(--bad); font-size: 13px; margin: .6rem 0 0; }
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 600; }
.mark { width: 28px; height: 28px; border-radius: 8px; background: var(--button); color: var(--on-button); display: grid; place-items: center; flex: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; height: 38px; padding: 0 1rem; border-radius: 9px; border: 1px solid var(--line); background: var(--card); font-weight: 500; white-space: nowrap; }
.btn:hover { border-color: var(--faint); }
.btn.primary { background: var(--button); color: var(--on-button); border-color: transparent; }
.btn.primary:hover { opacity: .9; }
.btn.ghost { background: transparent; }
.btn.small { height: 30px; font-size: 13px; padding: 0 .75rem; }
.btn.wide { width: 100%; }
.btn.danger { color: var(--bad); }
.btn:disabled { opacity: .5; cursor: default; }
.link { border: 0; background: none; padding: 0; color: var(--muted); font-size: 14px; }
.link:hover, .link.on { color: var(--ink); }
.note { font-size: 13px; color: var(--muted); display: flex; gap: .45rem; align-items: flex-start; margin: 0; }
.note svg { flex: none; margin-top: 3px; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; background: var(--faint); flex: none; }
.dot.ok { background: var(--ok); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.field { width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); padding: 0 .8rem; font: inherit; }
.row { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; }
.pill { display: inline-flex; align-items: center; gap: .35rem; height: 24px; padding: 0 .55rem; border-radius: 999px; border: 1px solid var(--line); font-size: 12px; color: var(--muted); }

/* first visit */
.welcome { max-width: 34rem; margin: 0 auto; padding: 14vh 1.5rem 4rem; }
.welcome h1 { font-size: 34px; line-height: 40px; letter-spacing: -.02em; margin: 1.8rem 0 .6rem; font-weight: 600; }
.welcome h1 span { color: var(--muted); }
.welcome .lead { color: var(--muted); margin: 0 0 1.6rem; max-width: 30rem; }
.keybox { margin-top: 1.2rem; padding: 1rem 1.1rem; border: 1px dashed var(--line); border-radius: 12px; display: grid; gap: .6rem; }
.facts { display: flex; gap: .4rem 1.6rem; margin-top: 2.4rem; flex-wrap: wrap; }

/* setup */
.setup-page { padding: 3.5rem 1.5rem 5rem; }
.setup { max-width: 1060px; margin: 0 auto; display: grid; grid-template-columns: 420px 1fr; overflow: hidden; min-height: 580px; }
.setup .form { padding: 1.6rem 1.8rem 1.8rem; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.stepper { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2.4rem; }
.dots { display: flex; gap: 5px; margin-right: .8rem; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--seg); transition: background .2s, width .2s; }
.dots i.done { background: var(--ink-2); }
.dots i.now { background: var(--ink); width: 16px; border-radius: 3px; }
.step { display: flex; flex: 1; flex-direction: column; }
.step h2 { font-size: 24px; line-height: 30px; letter-spacing: -.015em; margin: 0 0 .4rem; font-weight: 600; }
.step .sub { color: var(--muted); margin: 0 0 1.4rem; }
.step .actions { margin-top: 1rem; }
.checks { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.checks li { display: grid; grid-template-columns: 20px 1fr; gap: .7rem; position: relative; padding-bottom: 1rem; }
.checks li:not(:last-child)::after { content: ""; position: absolute; left: 9px; top: 22px; bottom: 2px; width: 1px; background: var(--line); }
.checks .c { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; margin-top: 1px; }
.checks .done .c { background: var(--ink); border-color: var(--ink); color: var(--on-button); }
.checks .now .c { border-color: var(--ink); }
.checks .later { opacity: .45; }
.checks b { font-weight: 500; }
.checks small { display: block; color: var(--muted); font-size: 13px; }
.code { display: flex; align-items: center; gap: .5rem; border: 1px solid var(--line); border-radius: 10px; padding: .45rem .45rem .45rem .8rem; background: var(--sunk); font-size: 12.5px; color: var(--ink-2); margin-top: .4rem; }
.code span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.waiting { display: flex; align-items: center; gap: .5rem; font-size: 13px; color: var(--muted); margin-top: .9rem; }
.waiting .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: pulse 1.4s infinite; }
.waiting.done { color: var(--ink-2); }
@keyframes pulse { 50% { opacity: .25; } }
.badge { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--on-button); display: grid; place-items: center; margin-bottom: 1.2rem; }
.nextup { border: 1px dashed var(--line); border-radius: 12px; padding: .9rem 1rem; margin-top: .4rem; display: grid; gap: .55rem; }
.nextup div { display: flex; justify-content: space-between; gap: 1rem; font-size: 14px; }
.preview { background: var(--sunk); padding: 2.2rem 0 0 2.2rem; overflow: hidden; }
.window { background: var(--page); border: 1px solid var(--line); border-right: 0; border-bottom: 0; border-radius: 14px 0 0 0; height: 100%; }
.window .bar { height: 34px; display: flex; align-items: center; gap: 6px; padding: 0 .8rem; border-bottom: 1px solid var(--line); }
.window .bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--seg); }
.window .bar span { margin-left: .7rem; font-size: 12px; color: var(--faint); }
.window .inner { padding: 1.4rem 1.6rem; }
.window h3 { font-size: 19px; letter-spacing: -.01em; margin: 0 0 1.2rem; }
.skel { height: 10px; border-radius: 5px; background: var(--seg); }
.skel.title { width: 46%; height: 16px; margin-bottom: 1.6rem; }
.skel.short { width: 24%; height: 8px; margin-top: 7px; }
.skel.mid { width: 40%; }
.appear { animation: appear .45s ease both; }
@keyframes appear { from { opacity: 0; transform: translateY(6px); } }

/* dashboard */
.dash { max-width: 980px; margin: 0 auto; padding: 2.6rem 1.5rem 3rem; }
.top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2.6rem; }
.top nav { display: flex; gap: 1.2rem; }
.headline { font-size: 30px; line-height: 38px; letter-spacing: -.02em; font-weight: 500; color: var(--faint); margin: 0 0 1.6rem; max-width: 46rem; }
.headline b { color: var(--ink); font-weight: 600; }
.notice { display: flex; align-items: center; gap: .9rem; padding: .75rem .9rem .75rem 1rem; margin-bottom: 1.6rem; }
.notice .label { color: var(--ok); }
.notice p { margin: 0; flex: 1; font-size: 14px; color: var(--ink-2); }
.notice button { border: 0; background: none; color: var(--faint); font-size: 18px; line-height: 1; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-bottom: 2.4rem; }
.tile { padding: 1.1rem 1.2rem 1.2rem; }
.tile.high .big { color: var(--bad); }
.tile .big { font-size: 28px; font-weight: 600; letter-spacing: -.02em; margin: .4rem 0 .1rem; }
.tile .big small { font-size: 15px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.tile .ctx { font-size: 13px; color: var(--muted); }
.delta { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: .45rem; letter-spacing: 0; }
.delta.up { color: var(--ok); }
.segs { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; margin-top: .9rem; }
.segs i { height: 18px; border-radius: 3px; background: var(--seg); }
.segs i.on { background: var(--ink-2); }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 34px; margin-top: .9rem; }
.bars i { flex: 1; background: var(--seg); border-radius: 2px; min-height: 2px; }
.bars i:last-child { background: var(--ink-2); }
.twocol { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.6rem; align-items: start; }
.section { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin: 0 0 .6rem; }
.section h3 { margin: 0; font-size: 15px; font-weight: 600; }
.section input.rename { font-weight: 600; }
.vault { margin-bottom: 1.4rem; }
.vault .card { overflow: hidden; }
.devrow { display: grid; grid-template-columns: 34px 1fr auto; gap: .9rem; align-items: center; padding: .85rem 1.1rem; border-top: 1px solid var(--line-2); }
.devrow:first-child { border-top: 0; }
.devrow .ic { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-2); }
.devrow .ic.ghost { border-style: dashed; }
.devrow .name { font-weight: 500; letter-spacing: .03em; cursor: default; }
.devrow .name[title] { cursor: text; }
.devrow .name.named { letter-spacing: 0; }
input.rename { font: inherit; font-weight: 500; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); padding: .15rem .5rem; width: 100%; max-width: 16rem; }
.devrow .meta { font-size: 13px; color: var(--muted); }
.devrow .state { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; justify-content: flex-end; }
.devrow .state.ok { color: var(--ink-2); }
.devrow .state a { color: var(--warn); }
.devrow.flag { background: color-mix(in srgb, var(--warn) 6%, transparent); }
.devrow.flag .ic { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 35%, var(--line)); }
.panel { padding: 1.1rem 1.2rem 1.2rem; }
.panel h4 { margin: .2rem 0 1rem; font-size: 15px; font-weight: 600; }
.panel textarea { width: 100%; font: inherit; font-size: 12.5px; padding: .5rem .6rem; border: 1px solid var(--line); border-radius: 10px; background: var(--sunk); color: var(--ink); resize: none; word-break: break-all; margin-top: .7rem; }
.side .note { margin: 1rem .2rem 0; }
.empty { padding: 1.4rem 1.2rem; }
.passkeys { max-width: 40rem; }
.foot { margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.foot a { color: var(--muted); }
@media (max-width: 900px) { .setup { grid-template-columns: 1fr; } .setup .form { border-right: 0; } .preview { display: none; } .tiles, .twocol { grid-template-columns: 1fr; } .headline { font-size: 24px; line-height: 31px; } }
@media (max-width: 30rem) {
	.btn { min-height: 44px; }
	.welcome h1 { font-size: 28px; line-height: 34px; }
	.devrow { grid-template-columns: 34px 1fr; }
	.devrow .state { grid-column: 2; justify-content: flex-start; }
}
