/* The account pages, drawn to match sykyclient.com: white, black pill buttons, hairline rings, Geist. */

@font-face {
  font-family: "Geist";
  src: url("/static/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --text: #0a0a0a;
  --muted: #737373;
  --faint: #a3a3a3;
  --line: rgb(10 10 10 / 0.08);
  --line-strong: rgb(10 10 10 / 0.14);
  --soft: #fafafa;
  --danger: #dc2626;
  --ok: #16a34a;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--text);
  font: 15px/1.55 "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgb(10 10 10 / 0.9); color: #fff; }

a { color: inherit; }

/* ---- the bar, as on the site: translucent, the page scrolls under it ---- */

.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(255 255 255 / 0.72);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid rgb(10 10 10 / 0.06);
}
.bar-inner {
  max-width: 1152px;
  margin: 0 auto;
  height: 56px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.brand svg { width: 20px; height: 20px; }
.nav-link, .me {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  text-decoration: none;
  color: #525252;
  transition: background-color .15s, color .15s;
}
.nav-link:hover, .me:hover { background: rgb(10 10 10 / 0.04); color: var(--text); }
.me { padding-left: 4px; color: var(--text); font-weight: 500; }
.avatar {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

/* ---- page ---- */

main { flex: 1; width: 100%; margin: 0 auto; padding: 72px 20px 96px; }
main.narrow { max-width: 420px; }
main.wide { max-width: 720px; padding-top: 56px; }

h1 {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.035em;
}
h2 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
p { margin: 0 0 16px; }
.muted { color: var(--muted); font-size: 14px; }
.lead { color: var(--muted); font-size: 15px; margin-bottom: 28px; }
strong { font-weight: 600; }

/* ---- forms ---- */

form { margin: 0; }
label {
  display: block;
  margin: 18px 0 8px;
  font-size: 13px;
  font-weight: 500;
}
label:first-child { margin-top: 0; }
input[type=text], input[type=email], input[type=password] {
  display: block;
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line-strong), 0 1px 2px rgb(0 0 0 / 0.04);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: box-shadow .15s;
}
input:hover { box-shadow: inset 0 0 0 1px rgb(10 10 10 / 0.24), 0 1px 2px rgb(0 0 0 / 0.04); }
input:focus { box-shadow: inset 0 0 0 1.5px var(--text), 0 1px 2px rgb(0 0 0 / 0.04); }
.hint { margin: 8px 0 0; color: var(--faint); font-size: 13px; }

.reveal { position: relative; display: block; }
.reveal input { padding-right: 46px; }
.reveal-eye {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--faint);
  box-shadow: none;
  transition: color .15s, background-color .15s;
}
.reveal-eye:hover { background: var(--soft); color: var(--text); }
.reveal-eye[aria-pressed=true] { color: var(--text); }
/* Edge draws its own eye inside password fields: one is enough. */
input::-ms-reveal, input::-ms-clear { display: none; }

button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.12);
  transition: background-color .15s, box-shadow .15s;
}
button:hover, .button:hover { background: #262626; }
button:focus-visible, .button:focus-visible, a:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
form > button[type=submit], .block { width: 100%; margin-top: 24px; }
.secondary {
  background: #fff;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-strong), 0 1px 2px rgb(0 0 0 / 0.04);
}
.secondary:hover { background: var(--soft); }
.danger { background: var(--danger); }
.danger:hover { background: #b91c1c; }
.inline { width: auto !important; height: 32px; margin: 0 !important; padding: 0 14px; font-size: 13px; }

.providers { display: grid; gap: 10px; }
.providers .button { width: 100%; }
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: var(--faint);
  font-size: 12px;
}
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  font-size: 13px;
}
.links a { color: var(--muted); text-decoration: none; transition: color .15s; }
.links a:hover { color: var(--text); }

.notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 24px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14px;
}
.notice::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 8px; border-radius: 999px; background: currentColor; }
.notice.ok { background: var(--soft); color: #262626; box-shadow: inset 0 0 0 1px var(--line); }
.notice.ok::before { background: var(--ok); }
.notice.error { background: #fef2f2; color: #991b1b; box-shadow: inset 0 0 0 1px rgb(220 38 38 / 0.12); }

/* ---- a single panel page (auth) ---- */

.panel { text-align: left; }
.panel .icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 24px;
  border-radius: 14px;
  background: var(--text);
  color: #fff;
}
.panel .icon svg { width: 20px; height: 20px; }

/* ---- the account page ---- */

.hero { position: relative; margin-bottom: 8px; }
.banner {
  position: relative;
  height: 148px;
  overflow: hidden;
  border-radius: 24px;
  background: #f4f4f6;
  box-shadow: inset 0 0 0 1px var(--line);
}
/* Three soft blobs of colour, blurred into a quiet gradient. */
.banner span {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.75;
}
.banner span:nth-child(1) { left: -40px; top: -160px; background: #c7d2fe; }
.banner span:nth-child(2) { left: 38%; top: -120px; background: #fbcfe8; }
.banner span:nth-child(3) { right: -60px; top: -140px; background: #bae6fd; }
.hero-body {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-top: -44px;
  padding: 0 24px;
  position: relative;
}
.avatar.xl {
  width: 96px;
  height: 96px;
  font-size: 40px;
  letter-spacing: -0.02em;
  box-shadow: 0 0 0 5px #fff, 0 10px 30px -10px rgb(0 0 0 / 0.35);
}
/* The avatar overlaps the banner by 44px; the name starts just below its edge. */
.hero-text { padding-top: 56px; min-width: 0; }

.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-form { flex: none; }
/* Hover the picture to change it: a frosted veil with a camera, the file picker behind the whole circle. */
.avatar.editable { position: relative; cursor: pointer; }
.avatar.editable input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.avatar-edit {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgb(10 10 10 / 0.45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  opacity: 0;
  transition: opacity .15s;
}
.avatar-edit svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.avatar.editable:hover .avatar-edit, .avatar.editable:focus-within .avatar-edit { opacity: 1; }
.avatar.editable:focus-within { outline: 2px solid var(--text); outline-offset: 3px; }
.text-button {
  height: auto;
  padding: 0;
  background: none;
  box-shadow: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}
.text-button:hover { background: none; color: var(--danger); }
.hero-text h1 { margin: 0; font-size: 30px; overflow-wrap: anywhere; }
.hero-text p { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0 0; }
.since { color: var(--muted); font-size: 13px; }
.uid {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--soft);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.tabs {
  display: flex;
  gap: 4px;
  margin: 28px 0 24px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.tabs a {
  position: relative;
  padding: 10px 12px 12px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s;
}
.tabs a:hover { color: var(--text); }
.tabs a.on { color: var(--text); font-weight: 500; }
.tabs a.on::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
}

.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 20px;
  border-radius: 20px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  text-decoration: none;
  transition: box-shadow .15s, transform .15s;
}
.tile:hover { box-shadow: inset 0 0 0 1px var(--line-strong), 0 8px 24px -12px rgb(0 0 0 / 0.18); transform: translateY(-1px); }
.tile-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--soft);
  box-shadow: inset 0 0 0 1px var(--line);
}
.tile-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.tile-value { font-size: 28px; font-weight: 600; letter-spacing: -0.04em; line-height: 1.2; }
.tile-value.small { font-size: 18px; letter-spacing: -0.02em; }
.tile-label { color: var(--muted); font-size: 13px; }
.tile-go { margin-top: 14px; color: var(--muted); font-size: 13px; font-weight: 500; transition: color .15s; }
.tile:hover .tile-go { color: var(--text); }
.tile.wide { grid-column: 1 / -1; }
.tile.dark { background: var(--text); color: #fff; box-shadow: none; }
.tile.dark:hover { box-shadow: 0 12px 30px -12px rgb(0 0 0 / 0.5); }
.tile.dark .tile-icon { background: rgb(255 255 255 / 0.1); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12); }
.tile.dark .tile-label, .tile.dark .tile-go { color: #a3a3a3; }
.tile.dark:hover .tile-go { color: #fff; }

/* A card: its body, then a grey strip with a hint on the left and the action on the right. */
.card {
  display: block;
  margin: 0 0 16px;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}
.card-body { padding: 24px; }
.card-body > :last-child { margin-bottom: 0; }
.card-body h2 + .muted:not(:last-child) { margin-bottom: 16px; }
.card-body input[type=text], .card-body input[type=password], .card-body .reveal { max-width: 360px; }
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 10px 16px 10px 24px;
  background: var(--soft);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.card-foot button { flex: none; }
.card.danger-zone { box-shadow: inset 0 0 0 1px rgb(220 38 38 / 0.2); }
.card.danger-zone .card-foot { background: #fef2f2; border-top-color: rgb(220 38 38 / 0.14); color: #991b1b; }

.list { margin-top: 4px; }
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.row:first-child { border-top: 0; padding-top: 4px; }
.row-main { display: flex; flex-direction: column; gap: 2px; font-weight: 500; min-width: 0; }
.row-main .muted, .row-main .pill-ok { font-weight: 400; font-size: 13px; }
.empty { padding: 4px 0; color: var(--muted); font-size: 14px; }
.empty a { color: var(--text); }

.pill-ok {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}
.pill-ok::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--ok); }

.foot {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 32px 20px 40px;
  color: var(--faint);
  font-size: 12px;
}
.foot a { text-decoration: none; transition: color .15s; }
.foot a:hover { color: var(--text); }

@media (max-width: 520px) {
  main { padding-top: 48px; }
  h1 { font-size: 26px; }
  .tiles { grid-template-columns: 1fr; }
  .banner { height: 112px; }
  .hero-body { padding: 0 12px; gap: 14px; }
  .hero-text { padding-top: 48px; }
  .avatar.xl { width: 76px; height: 76px; font-size: 32px; }
  .hero-text h1 { font-size: 24px; }
  .card-foot { flex-direction: column; align-items: stretch; padding: 12px 16px; }
  .card-foot button { width: 100% !important; }
}
.flush { margin-bottom: 0; }

input.code {
  height: 56px;
  text-align: center;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.35em;
  font-variant-numeric: tabular-nums;
}
input.code::placeholder { color: #d4d4d4; }
