@font-face { font-family: "Onest"; src: url("fonts/onest_regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Onest"; src: url("fonts/onest_medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Onest"; src: url("fonts/onest_semibold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Onest"; src: url("fonts/onest_bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains_mono_medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }

:root {
  color-scheme: light dark;
  --bg: #eef0f5;
  --b1: oklch(0.86 0.07 290);
  --b2: oklch(0.88 0.07 60);
  --b3: oklch(0.87 0.06 220);
  --ink: #15171c;
  --ink2: rgba(21, 23, 28, .62);
  --hair: rgba(21, 23, 28, .08);
  --g: rgba(255, 255, 255, .55);
  --gs: rgba(255, 255, 255, .7);
  --gw: rgba(255, 255, 255, .4);
  --st: rgba(255, 255, 255, .8);
  --sp: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -1px 0 rgba(30, 40, 80, .04);
  --sh: 0 10px 30px rgba(40, 50, 90, .08);
  --bl: 24px;
  --ac: oklch(0.52 0.14 258);
  --onac: #ffffff;
  --aci: #1d3f8a;
  --acs: rgba(29, 63, 138, .1);
  --p4s: rgba(190, 120, 20, .14);
  --p4i: #7a4a00;
  --dg: oklch(0.55 0.18 25);
  --ondg: #ffffff;
  --dgi: #a3261b;
  --dgs: rgba(200, 50, 30, .1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1016;
    --b1: oklch(0.36 0.09 290);
    --b2: oklch(0.34 0.06 50);
    --b3: oklch(0.35 0.08 230);
    --ink: #f2f3f7;
    --ink2: rgba(242, 243, 247, .66);
    --hair: rgba(255, 255, 255, .1);
    --g: rgba(44, 48, 62, .5);
    --gs: rgba(56, 60, 76, .66);
    --gw: rgba(255, 255, 255, .08);
    --st: rgba(255, 255, 255, .14);
    --sp: inset 0 1px 0 rgba(255, 255, 255, .2), inset 0 -1px 0 rgba(255, 255, 255, .03);
    --sh: 0 12px 36px rgba(0, 0, 0, .35);
    --bl: 28px;
    --ac: oklch(0.74 0.12 258);
    --onac: #0b1530;
    --aci: oklch(0.82 0.09 258);
    --acs: rgba(140, 170, 255, .15);
    --p4s: rgba(255, 190, 90, .16);
    --p4i: oklch(0.84 0.12 75);
    --dg: oklch(0.7 0.16 25);
    --ondg: #2a0805;
    --dgi: oklch(0.8 0.12 25);
    --dgs: rgba(255, 110, 90, .14);
  }
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/21px "Onest", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--aci); text-decoration: none; font-weight: 500; }
a:hover { text-decoration: underline; }

.blobs { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.blob { position: absolute; border-radius: 50%; }
.b1 { width: 420px; height: 420px; left: -140px; top: -60px; background: var(--b1); filter: blur(60px); }
.b2 { width: 380px; height: 380px; right: -160px; top: 260px; background: var(--b2); filter: blur(70px); }
.b3 { width: 420px; height: 420px; left: -80px; bottom: -120px; background: var(--b3); filter: blur(70px); }

main {
  position: relative;
  z-index: 1;
  max-width: 520px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 48px 16px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

h1 { margin: 0; font-size: 34px; line-height: 40px; font-weight: 700; letter-spacing: -0.025em; }
h1.large { font-size: 40px; line-height: 44px; }
p { margin: 0; }
.muted { color: var(--ink2); }
.lead { font-size: 19px; line-height: 26px; font-weight: 500; max-width: 340px; text-wrap: pretty; }

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding-bottom: 48px;
}
.hero .muted { max-width: 320px; text-wrap: pretty; }

.logo { width: 112px; height: 112px; border-radius: 34px; box-shadow: var(--sp), 0 18px 40px rgba(40, 50, 90, .18); margin-bottom: 12px; }
.logo.small { width: 56px; height: 56px; border-radius: 17px; margin-bottom: 8px; }

.status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--acs); color: var(--aci); font-weight: 500; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ac); }

.page-title { display: flex; flex-direction: column; gap: 4px; padding: 8px 4px; }

.glass {
  border-radius: 28px;
  overflow: hidden;
  background: var(--g);
  -webkit-backdrop-filter: blur(var(--bl)) saturate(1.6);
  backdrop-filter: blur(var(--bl)) saturate(1.6);
  border: 1px solid var(--st);
  box-shadow: var(--sp), var(--sh);
}

.divider { height: 1px; margin-left: 58px; background: var(--hair); }

.row { display: flex; gap: 14px; padding: 14px 16px; align-items: flex-start; overflow-wrap: anywhere; }
.mark { width: 28px; height: 28px; border-radius: 14px; flex: none; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; margin-top: -3px; }
.mark.ok { background: var(--acs); color: var(--aci); }
.mark.warn { background: var(--p4s); color: var(--p4i); }

.step { display: flex; gap: 14px; padding: 18px 16px 16px; }
.num { width: 28px; height: 28px; border-radius: 14px; flex: none; background: var(--acs); color: var(--aci); font-size: 14px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.step-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.step-title { font-size: 16px; line-height: 22px; font-weight: 500; padding-top: 3px; }

.cmd { display: flex; align-items: center; gap: 4px; border-radius: 16px; padding: 4px 4px 4px 14px; background: var(--gw); border: 1px solid var(--hair); }
.cmd code { flex: 1; min-width: 0; font: 500 15px/20px "JetBrains Mono", ui-monospace, monospace; overflow-wrap: anywhere; color: var(--ink); }

.copy {
  width: 44px;
  height: 44px;
  flex: none;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .4s cubic-bezier(.34, 1.56, .64, 1);
}
.copy:active { transform: scale(.88); background: var(--gw); }
.copy:focus-visible { outline: 2px solid var(--ac); outline-offset: 2px; }
.copy .icon-done { display: none; color: var(--aci); }
.copy.done .icon-copy { display: none; }
.copy.done .icon-done { display: block; }

.note { font-size: 13px; line-height: 18px; color: var(--ink2); }
.center { text-align: center; padding: 0 16px; }
code.inline { font: 500 0.92em "JetBrains Mono", ui-monospace, monospace; white-space: nowrap; color: var(--ink); }

.dock {
  margin: 8px 0 0;
  border-radius: 36px;
  padding: 8px;
  display: flex;
  background: var(--gs);
  -webkit-backdrop-filter: blur(var(--bl)) saturate(1.6);
  backdrop-filter: blur(var(--bl)) saturate(1.6);
  border: 1px solid var(--st);
  box-shadow: var(--sp), var(--sh);
}
.primary {
  flex: 1;
  height: 56px;
  border: 0;
  border-radius: 28px;
  background: var(--ac);
  color: var(--onac);
  font: 600 16px/20px "Onest", system-ui, sans-serif;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3);
  transition: transform .45s cubic-bezier(.34, 1.56, .64, 1);
}
.primary:active { transform: scale(.95); }
.primary:focus-visible { outline: 2px solid var(--ac); outline-offset: 3px; }

footer { margin-top: auto; padding-top: 24px; text-align: center; font-size: 13px; color: var(--ink2); }

main.wide { max-width: 760px; }

.mono { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .92em; }
.good { color: var(--aci); font-weight: 500; }
.warn-text { color: var(--p4i); font-weight: 500; }
.hero.narrow form { width: 100%; max-width: 380px; text-align: left; margin-top: 8px; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border-radius: 999px;
  background: var(--gs);
  -webkit-backdrop-filter: blur(var(--bl)) saturate(1.6);
  backdrop-filter: blur(var(--bl)) saturate(1.6);
  border: 1px solid var(--st);
  box-shadow: var(--sp), var(--sh);
  overflow-x: auto;
}
.nav a, .nav button {
  flex: none;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--ink);
  font: 500 15px/20px "Onest", system-ui, sans-serif;
  text-decoration: none;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.nav a.on { background: var(--acs); color: var(--aci); }
.nav a:hover { text-decoration: none; background: var(--gw); }
.nav-out { margin: 0 0 0 auto; }
.nav-out button { color: var(--ink2); }

.flash { margin: 0; padding: 12px 16px; border-radius: 16px; font-weight: 500; }
.flash.ok { background: var(--acs); color: var(--aci); }
.flash.bad { background: var(--dgs); color: var(--dgi); }

.page-title h1 { overflow-wrap: anywhere; }
.back { font-size: 15px; margin-bottom: 4px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { display: flex; flex-direction: column; gap: 4px; padding: 16px; }
.stat-value { font-size: 28px; line-height: 32px; font-weight: 700; letter-spacing: -0.02em; }
.stat-label { font-size: 13px; line-height: 18px; color: var(--ink2); }

.row-head { padding: 16px 16px 8px; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--ink2); text-transform: uppercase; letter-spacing: .04em; }
.kv { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; overflow-wrap: anywhere; }
.kv span:first-child { color: var(--ink2); }
.kv span:last-child { text-align: right; }
.divider.flat { margin-left: 16px; }
.pad { padding: 0 16px 16px; }
.empty { margin: 0; padding: 20px 16px; color: var(--ink2); text-align: center; }

.item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; color: var(--ink); text-decoration: none; font-weight: 400; }
a.item:hover { text-decoration: none; background: var(--gw); }
.item-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.item-title { font-size: 16px; line-height: 22px; font-weight: 500; overflow-wrap: anywhere; }
.item-sub { font-size: 13px; line-height: 18px; color: var(--ink2); overflow-wrap: anywhere; }
.item-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; text-align: right; }
.item-time { font-size: 13px; line-height: 18px; color: var(--ink2); }
.badge { padding: 2px 8px; border-radius: 999px; background: var(--acs); color: var(--aci); font-size: 12px; line-height: 18px; font-weight: 600; white-space: nowrap; }

.form { display: flex; flex-direction: column; gap: 12px; padding-bottom: 16px; }
.form > .row-head { padding-bottom: 0; }
.form > .field, .form > .note, .form > .cmd, .form > button, .form > form, .form > .flash, .form > .row { margin: 0 16px; }
.form > .row { margin: 0; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 14px; line-height: 19px; font-weight: 500; }
.field small { font-size: 13px; line-height: 18px; color: var(--ink2); }
.field input {
  height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--hair);
  background: var(--gw);
  color: var(--ink);
  font: 400 16px/20px "Onest", system-ui, sans-serif;
}
.field input:focus { outline: 2px solid var(--ac); outline-offset: 0; border-color: transparent; }
.hero .form { padding-top: 16px; }

.secondary, .danger, .link-button {
  height: 48px;
  padding: 0 20px;
  border-radius: 24px;
  border: 1px solid var(--st);
  font: 600 15px/20px "Onest", system-ui, sans-serif;
  cursor: pointer;
  transition: transform .45s cubic-bezier(.34, 1.56, .64, 1);
}
.secondary { background: var(--gs); color: var(--aci); box-shadow: var(--sp); }
.danger { background: var(--dgs); color: var(--dgi); border-color: transparent; }
.secondary:active, .danger:active { transform: scale(.96); }
.link-button { display: flex; align-items: center; justify-content: center; text-decoration: none; }
a.primary.link-button { color: var(--onac); border: 0; }
a.primary.link-button:hover { text-decoration: none; }
.form > .primary { flex: none; margin: 4px 16px 0; height: 52px; }
.form > .field:first-child { margin-top: 16px; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.actions form { margin: 0; }

.event { padding: 12px 16px 14px; display: flex; flex-direction: column; gap: 4px; border-left: 3px solid transparent; }
.event.p4 { border-left-color: var(--p4i); }
.event.p5 { border-left-color: var(--dg); background: var(--dgs); }
.event-head { display: flex; justify-content: space-between; gap: 12px; }
.event-title { font-weight: 500; overflow-wrap: anywhere; }
.event-text { color: var(--ink2); white-space: pre-wrap; overflow-wrap: anywhere; }

@media (max-width: 520px) {
  .nav a, .nav button { padding: 10px 12px; }
  .kv { flex-direction: column; gap: 2px; }
  .kv span:last-child { text-align: left; }
}

.live-head { display: flex; align-items: center; gap: 8px; }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--track); transition: background .3s; }
.live.on { background: var(--ac); animation: live-pulse 2s ease-in-out infinite; }
@keyframes live-pulse { 0%, 100% { box-shadow: 0 0 0 0 var(--acs); } 50% { box-shadow: 0 0 0 5px var(--acs); } }
.event.fresh { animation: event-in .5s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes event-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .live.on, .event.fresh { animation: none; } }
