@font-face {
  font-family: Bricolage;
  src: url("./headings.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Jakarta;
  src: url("./body.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #1a1724;
  --muted: #5e586b;
  --paper: #f8f6f1;
  --surface: #fff;
  --line: #e5e0e7;
  --accent: #6145ad;
  --tint: #eee8fa;
  --deep: #171320;
  --radius: 12px;
  font-family: Jakarta, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 15px;
  line-height: 1.55;
}
a {
  color: var(--accent);
  text-underline-offset: 0.2em;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
}
:focus-visible {
  outline: 3px solid #6843c2;
  outline-offset: 4px;
}
.skip {
  position: absolute;
  z-index: 1;
  top: 8px;
  left: 12px;
  transform: translateY(-160%);
  background: white;
  padding: 10px 16px;
  border-radius: 8px;
}
.skip:focus {
  transform: none;
}
.topbar {
  background: var(--deep);
  color: white;
  border-bottom: 1px solid #322941;
}
.top-inner,
.wrap,
.footer {
  max-width: 1144px;
  width: 100%;
  margin-inline: auto;
  padding-inline: 32px;
}
.top-inner {
  min-height: 73px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand,
.top-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.brand {
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  text-align: center;
  font:
    700 23px/1 Bricolage,
    system-ui,
    sans-serif;
  letter-spacing: -0.035em;
  white-space: nowrap;
}
.brand strong {
  color: #dcd0ff;
}
.mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 10px;
  background: #292134;
  border: 1px solid #41364e;
}
.mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.top-link {
  font-size: 13px;
  color: #f6f0ff;
  min-height: 44px;
}
.top-link svg {
  width: 16px;
}
.topbar :focus-visible {
  outline-color: #daceff;
}
.wrap {
  flex: 1;
  padding-block: 48px 66px;
  min-width: 0;
}
.wrap.signed-in {
  display: grid;
  grid-template-columns: 226px minmax(0, 1fr);
  align-items: start;
  gap: 48px;
}
main {
  min-width: 0;
}
.sidebar {
  border-right: 1px solid var(--line);
  padding: 5px 16px 0 0;
}
.sidebar nav {
  display: grid;
  gap: 5px;
}
.sidebar nav a,
.nav-button {
  padding: 10px 11px;
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 13px;
  text-align: left;
  width: 100%;
  line-height: 1.35;
}
.sidebar svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.sidebar nav a:hover,
.nav-button:hover {
  background: #f0edf1;
  color: var(--ink);
}
.sidebar nav a[aria-current="page"] {
  background: var(--tint);
  border-color: #e6dbf6;
  font-weight: 700;
  color: #4e3395;
}
.sidebar-footer {
  border-top: 1px solid var(--line);
  margin-top: 21px;
  padding-top: 11px;
}
.nav-button {
  background: transparent;
}
h1,
h2,
p {
  margin: 0;
}
h1,
h2 {
  font:
    700 1.3rem/1.15 Bricolage,
    system-ui,
    sans-serif;
  letter-spacing: -0.025em;
}
h1 {
  font-size: clamp(2rem, 3.1vw, 2.85rem);
  letter-spacing: -0.05em;
}
p {
  color: var(--muted);
  overflow-wrap: anywhere;
}
.page-heading {
  margin-bottom: 25px;
}
.page-heading p {
  margin-top: 8px;
}
.identity,
.card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 2px 4px #261d3907;
}
.card {
  padding: 25px;
  margin-bottom: 15px;
}
.identity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  margin-bottom: 16px;
  background: #f0eafa;
  border-color: #e3d8f0;
}
.identity-main {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
}
.identity h2,
.identity p {
  overflow-wrap: anywhere;
}
.identity h2 {
  margin-bottom: 3px;
}
.identity p {
  font-size: 13px;
}
.avatar {
  width: 41px;
  height: 41px;
  display: inline-grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  overflow: hidden;
  background: #e3d7f6;
  color: #422a81;
  font:
    700 14px/1 Bricolage,
    system-ui,
    sans-serif;
}
.avatar.large {
  width: 61px;
  height: 61px;
  font-size: 22px;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.shortcuts {
  padding: 5px 21px;
}
.shortcut {
  display: flex;
  align-items: center;
  min-height: 74px;
  gap: 13px;
  padding: 12px 3px;
  color: var(--ink);
  text-decoration: none;
}
.shortcut + .shortcut {
  border-top: 1px solid var(--line);
}
.shortcut:hover strong,
.shortcut:hover .arrow {
  color: var(--accent);
}
.tile {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  flex: none;
  border-radius: 9px;
  background: #f0ebfa;
  color: #593c9d;
}
.shortcut-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.shortcut-copy strong {
  font-size: 14px;
}
.shortcut-copy small,
.check-option small {
  font-size: 13px;
  color: var(--muted);
}
.shortcut .arrow {
  margin-left: auto;
  flex: none;
  width: 18px;
  color: #736981;
}
.card-head {
  margin-bottom: 18px;
}
.card-head p {
  margin-top: 6px;
}
.field,
legend {
  font-weight: 700;
  display: block;
  font-size: 14px;
  margin-bottom: 7px;
}
input[type="text"] {
  display: block;
  width: min(100%, 460px);
  min-height: 46px;
  padding: 8px 12px;
  border: 1px solid #a8a0af;
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}
fieldset {
  border: 0;
  padding: 0;
  margin: 22px 0 0;
  min-width: 0;
}
.avatar-options,
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.avatar-option {
  display: grid;
  justify-items: center;
  align-items: center;
  min-width: 73px;
  cursor: pointer;
  position: relative;
}
.avatar-option input {
  position: absolute;
  opacity: 0;
}
.avatar-option > span {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 7px 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 100%;
  text-align: center;
}
.avatar-option input:checked + span {
  background: var(--tint);
  border-color: var(--accent);
  color: #4e3395;
}
.avatar-option input:focus-visible + span {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.actions {
  margin-top: 18px;
}
.actions form {
  margin: 0;
}
.button {
  display: inline-flex;
  min-height: 44px;
  justify-content: center;
  align-items: center;
  gap: 7px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 8px 13px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  white-space: normal;
  text-align: center;
}
.button svg {
  width: 16px;
  height: 16px;
  flex: none;
}
.primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.primary:hover {
  background: #513693;
  border-color: #513693;
}
.secondary {
  background: white;
  color: #513693;
  border-color: #cec0e0;
}
.secondary:hover,
.quiet:hover {
  background: #f3edfc;
}
.quiet {
  background: transparent;
  color: var(--accent);
}
.danger {
  background: #fff6f6;
  color: #982043;
  border-color: #e1b7c5;
}
.danger:hover {
  background: #fde7eb;
}
.notice {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border: 1px solid #b2d3bc;
  background: #edf8ef;
  color: #23523a;
  border-radius: 8px;
  margin: 0 0 16px;
  font-size: 13px;
}
.notice svg {
  width: 16px;
  flex: none;
}
.notice.error {
  border-color: #ebc0ca;
  background: #fff1f3;
  color: #811534;
}
.note {
  margin-top: 14px;
  font-size: 13px;
}
.email-value {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--ink);
}
.product {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.product-brand {
  width: 173px;
  min-height: 48px;
  border-radius: 8px;
  background: var(--deep);
  display: grid;
  place-items: center;
  padding: 4px;
}
.product-brand img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: #f6f4f5;
}
.status.connected {
  background: #edf7ef;
  border-color: #c9e1cd;
  color: #25563b;
}
.status svg {
  width: 13px;
  height: 13px;
}
.check-option {
  display: flex;
  align-items: start;
  gap: 10px;
  width: fit-content;
  padding: 10px 2px;
  cursor: pointer;
}
.check-option input {
  width: 19px;
  height: 19px;
  margin: 2px 0;
  accent-color: var(--accent);
  flex: none;
}
.check-option span {
  display: grid;
  gap: 3px;
}
.confirmation {
  margin: 0;
}
.auth-card {
  width: min(100%, 525px);
  margin: 28px auto 0;
  padding: 31px;
}
.auth-card h1 {
  margin: 14px 0 10px;
}
.auth-card .notice {
  margin: 15px 0 0;
}
.auth-card .text-link {
  display: inline-block;
  margin-top: 16px;
}
.auth-footer {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 15px;
  font-size: 13px;
}
.auth-footer svg {
  width: 14px;
  height: 14px;
  vertical-align: middle;
}
.auth-card hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 19px 0;
}
.footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  padding-block: 18px;
  border-top: 1px solid var(--line);
}
.footer a {
  color: inherit;
}
.footer nav { display: flex; flex-wrap: wrap; gap: .55rem 1.15rem; }
@media (max-width: 900px) {
  .wrap.signed-in {
    grid-template-columns: 196px minmax(0, 1fr);
    gap: 25px;
  }
  .top-inner,
  .wrap,
  .footer {
    padding-inline: 25px;
  }
  .wrap {
    padding-top: 35px;
  }
  .sidebar {
    padding-right: 11px;
  }
}
@media (max-width: 650px) {
  .top-inner,
  .wrap,
  .footer {
    padding-inline: 16px;
  }
  .top-inner {
    min-height: 61px;
  }
  .brand {
    font-size: 21px;
  }
  .mark {
    width: 34px;
    height: 34px;
  }
  .wrap {
    padding-block: 18px 35px;
  }
  .wrap.signed-in {
    display: block;
  }
  .sidebar {
    padding: 0 0 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    margin-bottom: 24px;
  }
  .sidebar nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }
  .sidebar nav a,
  .nav-button {
    padding: 8px;
    gap: 7px;
  }
  .sidebar-footer {
    margin-top: 3px;
    padding-top: 0;
    border: 0;
  }
  .sidebar svg {
    width: 16px;
    height: 16px;
  }
  .page-heading {
    margin-bottom: 17px;
  }
  .card,
  .identity,
  .auth-card {
    padding: 17px;
  }
  .shortcuts {
    padding: 2px 13px;
  }
  .identity {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .identity .button {
    margin-left: auto;
  }
  .avatar.large {
    width: 52px;
    height: 52px;
  }
  .shortcut {
    gap: 9px;
  }
  .shortcut-copy small {
    font-size: 12px;
  }
  .footer {
    flex-wrap: wrap;
  }
  .auth-card {
    margin-top: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

.public-account {
  --ink: #f7f4ed;
  --muted: #afb3c2;
  --line: #34394b;
  --surface: #12141d;
  --paper: #08090d;
  --accent: #ff8fa0;
  color: var(--ink);
  background: radial-gradient(ellipse at 50% 0%, #2c253e, transparent 48rem), var(--paper);
}

.public-account .wrap { flex: 1; display: grid; align-items: center; padding: clamp(1.35rem, 4vw, 2.5rem) 1rem; }

.account-entry-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.1rem;
  width: min(100%, 32rem);
  margin: 0 auto;
}

.account-entry-brand {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: .45rem;
  font: 700 clamp(1.35rem, 4vw, 1.65rem)/1.1 Bricolage, system-ui, sans-serif;
  letter-spacing: -.04em;
}
.account-entry-brand .mark {
  display: block;
  width: 4.25rem;
  height: 4.25rem;
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.account-entry-brand .mark img {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 150%;
  height: 150%;
  max-width: none;
  transform: translate(-50%, -50%);
}

.public-account .auth-card {
  width: 100%;
  margin: 0;
  padding: clamp(1.15rem, 5vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  box-shadow: 0 24px 70px #0007;
}

.public-account .auth-card h1 { font-size: clamp(1.7rem, 4.8vw, 2.2rem); line-height: 1.12; }
.public-account .auth-card .actions { display: grid; }
.public-account .auth-card .button { justify-content: center; min-height: 2.9rem; }
.public-account .auth-card .primary { color: #1b1119; background: #ff7087; border-color: #ff7087; }
.public-account .auth-card .primary:hover { background: #ff99aa; border-color: #ff99aa; }
.public-account .auth-card .secondary { color: var(--ink); background: #1b1e2b; border-color: var(--line); }
.public-account .auth-card .secondary:hover { background: #272b3b; }
.public-account .auth-card .note { color: var(--muted); background: #1b1e2b; }
.public-account .auth-card .notice { color: #18201d; }
.public-account .auth-card .notice.error { color: #50192b; }
