@font-face {
  font-family: Golos;
  src: url("/assets/fonts/golos-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6-02DA, U+0304, U+0308,
    U+0329, U+2000-206F;
}
@font-face {
  font-family: Golos;
  src: url("/assets/fonts/golos-cyrillic.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0400-052F, U+2DE0-2DFF, U+A640-A69F, U+1C80-1C8F, U+2116;
}
:root {
  color-scheme: dark;
  scrollbar-gutter: stable;
  --bg: #111017;
  --panel: #1b1923;
  --raised: #262330;
  --text: #f0edf7;
  --muted: #b6b0c6;
  --faint: #9690a5;
  --border: #393343;
  --accent: #b7a0ff;
  --pink: #efa6c7;
  font-family: Golos, "Segoe UI", sans-serif;
  font-synthesis: none;
  background: var(--bg);
  color: var(--text);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
}
button {
  cursor: pointer;
}
button,
a {
  touch-action: manipulation;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
[hidden] {
  display: none !important;
}
.shell {
  width: min(1160px, calc(100% - 80px));
  margin: 0 auto;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.site-header {
  min-height: 108px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid #292531;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: 0.07em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid #504361;
  border-radius: 14px;
  background: #211b2c;
}
.brand-mark img {
  image-rendering: pixelated;
}
.brand-caption {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--faint);
  letter-spacing: 0.02em;
  margin-top: 3px;
}
.invitation-label {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 9px;
  align-items: center;
}
.tiny-star {
  color: var(--accent);
  font-size: 18px;
}
main {
  flex: 1;
}
.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  transform: translateY(-150%);
  z-index: 5;
  padding: 12px;
  background: var(--accent);
  color: #111017;
}
.skip-link:focus {
  transform: translateY(0);
}
.welcome {
  padding-top: 68px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 0 24px;
  align-items: center;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.15em;
  font-weight: 650;
  line-height: 1.5;
  color: var(--accent);
  margin: 0 0 25px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow > span {
  width: 20px;
  height: 2px;
  background: var(--accent);
}
h1 {
  font-weight: 650;
  letter-spacing: -0.055em;
  margin: 0;
  line-height: 1.09;
}
.welcome h1 {
  font-size: clamp(44px, 5.2vw, 66px);
}
.welcome h1 > span {
  color: var(--accent);
}
.lead {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  margin: 25px 0 30px;
}
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  background: var(--accent);
  color: #1b142a;
  padding: 17px 21px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 650;
  min-height: 54px;
  transition:
    background 0.18s,
    transform 0.18s,
    box-shadow 0.18s;
}
.primary-button > span {
  font-size: 22px;
  line-height: 1;
}
.primary-button:hover {
  background: #ccbaff;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px #b7a0ff18;
}
.primary-button:active {
  transform: translateY(0);
}
.login-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--faint);
  margin-top: 15px;
}
.login-note img {
  opacity: 0.8;
  image-rendering: pixelated;
}
.welcome-art {
  position: relative;
  min-height: 430px;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.mascot {
  width: 280px;
  height: auto;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 14px 20px #0005);
  animation: float 7s ease-in-out infinite;
}
.mascot-halo {
  position: absolute;
  width: 320px;
  height: 320px;
  background: radial-gradient(ellipse, #8e63b22c, transparent 67%);
  z-index: -1;
}
.orbit {
  position: absolute;
  border: 1px solid #3a30464d;
  border-radius: 50%;
  width: 355px;
  height: 355px;
  transform: rotate(-22deg) scaleY(0.8);
}
.orbit-two {
  width: 420px;
  height: 420px;
  transform: rotate(20deg) scaleY(0.88);
  border-style: dashed;
  opacity: 0.6;
}
.art-caption {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 8px;
  letter-spacing: 0.16em;
  color: #91859f;
}
.art-coordinate {
  position: absolute;
  bottom: 18px;
  right: 14px;
  letter-spacing: 0.14em;
  font-size: 9px;
  color: #91859f;
}
.art-star {
  position: absolute;
  color: var(--accent);
  font-size: 25px;
  animation: twinkle 5s ease-in-out infinite;
}
.star-one {
  top: 58px;
  right: 66px;
}
.star-two {
  left: 35px;
  top: 126px;
  font-size: 40px;
  animation-delay: -1s;
}
.star-three {
  bottom: 55px;
  right: 102px;
  font-size: 16px;
  color: var(--pink);
  animation-delay: -3s;
}
.floating-note {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 9px;
  z-index: 2;
  border: 1px solid #494052;
  padding: 12px 15px;
  background: #201b29;
  border-radius: 12px;
  box-shadow: 0 9px 26px #0004;
  font-size: 11px;
  color: #ddd2ed;
  transform: rotate(-5deg);
}
.floating-note img {
  image-rendering: pixelated;
}
.note-voice {
  top: 59px;
  left: 22px;
}
.note-mail {
  bottom: 49px;
  right: 12px;
  transform: rotate(5deg);
}
.welcome-bottom {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: 1.15fr 1fr 1.1fr 1.3fr;
  gap: 22px;
  align-items: center;
  border-top: 1px solid #292531;
  margin: 58px 0 35px;
  padding-top: 28px;
}
.welcome-bottom > p {
  font-size: 11px;
  color: var(--faint);
  line-height: 1.7;
  margin: 0;
}
.welcome-bottom strong {
  color: var(--muted);
  font-weight: 500;
}
.service-preview {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 12px;
}
.service-preview img {
  image-rendering: pixelated;
}
.service-preview small {
  display: block;
  font-size: 10px;
  color: var(--faint);
  margin-top: 5px;
}
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0 25px;
  color: #958aa3;
  font-size: 10px;
  letter-spacing: 0.02em;
}
.footer-dot {
  color: #64586e;
  padding: 0 8px;
}
.footer-star {
  color: var(--accent);
  padding-left: 10px;
}
.account {
  display: flex;
  gap: 11px;
  align-items: center;
  min-width: 0;
}
.avatar {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 12px;
  background: #30263f;
  color: #dac8ff;
  border: 1px solid #584767;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 600;
}
.account-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  font-size: 12px;
}
.account-copy > span {
  max-width: 220px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
#account-email {
  font-size: 10px;
  color: var(--faint);
}
.account-link {
  font-size: 11px;
  border-left: 1px solid var(--border);
  margin-left: 8px;
  padding: 8px 0 8px 20px;
  color: var(--muted);
}
.account-link:hover,
.space-note a:hover {
  color: var(--accent);
}
.dashboard {
  padding: 56px 0 30px;
  animation: arrive 0.3s ease-out;
}
.dashboard-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  margin-bottom: 45px;
}
.dashboard-heading .eyebrow {
  margin-bottom: 17px;
  overflow-wrap: anywhere;
}
.dashboard h1 {
  font-size: clamp(32px, 4.2vw, 52px);
}
.dashboard h1 > span {
  color: var(--accent);
}
.dashboard .lead {
  margin: 17px 0 0;
  font-size: 15px;
}
.dashboard-mascot {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-right: 25px;
  transform: rotate(7deg);
}
.section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.section-heading h2 {
  font-size: 13px;
  font-weight: 500;
  margin: 0;
}
.section-heading > span {
  display: grid;
  place-items: center;
  color: var(--faint);
  border: 1px solid var(--border);
  border-radius: 7px;
  min-width: 22px;
  height: 22px;
  font-size: 10px;
}
.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 247px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--panel);
  overflow: hidden;
  transition:
    transform 0.18s,
    border-color 0.18s,
    background 0.18s;
}
.service-card:hover {
  border-color: #89729e;
  transform: translateY(-3px);
  background: #201c2b;
}
.service-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.service-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid #574669;
  border-radius: 15px;
  background: #30253e;
}
.service-icon img {
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
}
.service-card[data-id="mail"] .service-icon {
  background: #36232f;
  border-color: #69445a;
}
.service-arrow {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid #494151;
  border-radius: 50%;
  color: var(--faint);
  transition:
    background 0.18s,
    color 0.18s,
    transform 0.18s;
  font-size: 18px;
}
.service-card:hover .service-arrow {
  background: var(--accent);
  color: #1b142a;
  transform: rotate(5deg);
}
.service-card h3 {
  font-size: 23px;
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 550;
  margin: 22px 0 9px;
}
.service-card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 22px;
  max-width: 380px;
}
.service-url {
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--faint);
  margin-top: auto;
}
.service-card[data-id="directory"] {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 0 20px;
  min-height: 116px;
  padding: 24px 28px;
  align-items: center;
  background: #16141d;
}
.service-card[data-id="directory"] .service-top {
  display: contents;
}
.service-card[data-id="directory"] .service-icon {
  grid-column: 1;
  grid-row: 1/4;
  width: 48px;
  height: 48px;
  background: #25202f;
  border-color: #494052;
}
.service-card[data-id="directory"] .service-arrow {
  grid-column: 3;
  grid-row: 1/4;
}
.service-card[data-id="directory"] h3 {
  grid-column: 2;
  font-size: 16px;
  margin: 0 0 6px;
}
.service-card[data-id="directory"] p {
  grid-column: 2;
  margin: 0;
  font-size: 12px;
  max-width: none;
}
.service-card[data-id="directory"] .service-url {
  grid-column: 2;
  margin-top: 8px;
  font-size: 9px;
}
.space-note {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 25px 0;
  color: var(--faint);
  font-size: 11px;
}
.space-note p {
  margin: 0;
  line-height: 1.6;
}
.space-note img {
  image-rendering: pixelated;
}
.space-note a {
  margin-left: auto;
  white-space: nowrap;
  color: var(--muted);
}
.loading {
  min-height: 65vh;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}
.loading-star {
  font-size: 32px;
  color: var(--accent);
  animation: twinkle 1.5s ease-in-out infinite;
}
.empty-state {
  padding: 40px 24px;
  border: 1px dashed var(--border);
  border-radius: 18px;
  text-align: center;
}
.empty-state h2 {
  font-size: 20px;
  margin: 20px 0 10px;
}
.empty-state p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.login-error {
  margin-top: 22px;
  padding: 14px 16px;
  border: 1px solid #734557;
  border-radius: 10px;
  max-width: 410px;
  font-size: 12px;
  color: #ffd1e0;
  line-height: 1.6;
}
.login-error button {
  display: block;
  margin-top: 8px;
  background: none;
  color: inherit;
  border: 0;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.no-script {
  padding: 30px 0;
  color: var(--muted);
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-7px) rotate(1deg);
  }
}
@keyframes twinkle {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}
@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (min-width: 1450px) {
  .welcome {
    padding-top: 90px;
  }
  .welcome-bottom {
    margin-top: 80px;
  }
  .welcome-art {
    min-height: 465px;
  }
  .mascot {
    width: 310px;
  }
}
@media (max-width: 1000px) {
  .shell {
    width: calc(100% - 48px);
  }
  .welcome {
    gap: 0;
  }
  .welcome h1 {
    font-size: 50px;
  }
  .welcome-art {
    min-height: 400px;
  }
  .mascot {
    width: 230px;
  }
  .orbit {
    width: 285px;
    height: 285px;
  }
  .orbit-two {
    width: 330px;
    height: 330px;
  }
  .note-voice {
    left: 5px;
  }
  .note-mail {
    right: 0;
  }
  .floating-note {
    padding: 10px;
    font-size: 10px;
  }
  .lead {
    font-size: 14px;
  }
  .welcome-bottom {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 42px;
  }
  .welcome-bottom > p {
    display: none;
  }
  .art-caption {
    font-size: 7px;
  }
  .service-card {
    padding: 24px;
  }
}
@media (max-width: 720px) {
  .shell {
    width: calc(100% - 40px);
  }
  .site-header {
    min-height: 88px;
  }
  .brand {
    font-size: 18px;
  }
  .brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }
  .brand-caption {
    font-size: 9px;
  }
  .welcome {
    padding-top: 43px;
    grid-template-columns: 1fr;
  }
  .welcome h1 {
    font-size: clamp(39px, 9.7vw, 60px);
  }
  .eyebrow {
    font-size: 9px;
    margin-bottom: 20px;
  }
  .lead {
    font-size: 14px;
    margin: 20px 0 24px;
  }
  .welcome-art {
    min-height: 330px;
    margin-top: 23px;
  }
  .mascot {
    width: 225px;
  }
  .orbit {
    width: 275px;
    height: 275px;
  }
  .orbit-two {
    width: min(330px, 95%);
    height: 310px;
  }
  .art-caption {
    top: 3px;
  }
  .art-coordinate {
    bottom: 6px;
    right: 8px;
    font-size: 8px;
  }
  .note-voice {
    top: 39px;
    left: calc(50% - 155px);
  }
  .note-mail {
    bottom: 27px;
    right: calc(50% - 158px);
  }
  .star-one {
    top: 35px;
    right: calc(50% - 135px);
  }
  .star-two {
    left: calc(50% - 142px);
    top: 133px;
  }
  .star-three {
    bottom: 23px;
  }
  .welcome-bottom {
    gap: 25px 10px;
    grid-template-columns: 1fr 1fr;
    margin-top: 28px;
    padding-top: 25px;
  }
  .service-preview:last-child {
    grid-column: 1/-1;
  }
  .service-preview {
    font-size: 11px;
    gap: 10px;
  }
  .service-preview small {
    font-size: 9px;
  }
  .site-footer {
    font-size: 9px;
    align-items: flex-start;
    gap: 15px;
    line-height: 1.7;
  }
  .site-footer > span:last-child {
    text-align: right;
    max-width: 145px;
  }
  .account-copy {
    display: none;
  }
  .account {
    gap: 8px;
  }
  .account-link {
    font-size: 10px;
    padding-left: 10px;
    margin-left: 1px;
  }
  .avatar {
    height: 32px;
    width: 32px;
    border-radius: 10px;
    font-size: 13px;
  }
  .dashboard {
    padding-top: 36px;
  }
  .dashboard-heading {
    gap: 10px;
    margin-bottom: 34px;
    align-items: flex-start;
  }
  .dashboard h1 {
    font-size: 36px;
  }
  .dashboard-mascot {
    width: 62px;
    height: 62px;
    margin-right: 0;
    margin-top: 15px;
  }
  .dashboard .lead {
    font-size: 13px;
  }
  .dashboard-heading .eyebrow {
    font-size: 8px;
  }
  .services {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .service-card {
    min-height: 216px;
    padding: 22px;
  }
  .service-card h3 {
    margin-top: 16px;
    font-size: 22px;
  }
  .service-card p {
    font-size: 12px;
    margin-bottom: 18px;
  }
  .service-card[data-id="directory"] {
    padding: 20px;
    grid-template-columns: 40px 1fr auto;
    gap: 0 12px;
  }
  .service-card[data-id="directory"] .service-icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
  }
  .service-card[data-id="directory"] .service-icon img {
    width: 26px;
    height: 26px;
  }
  .service-card[data-id="directory"] h3 {
    font-size: 14px;
  }
  .service-card[data-id="directory"] p {
    font-size: 11px;
  }
  .space-note {
    flex-wrap: wrap;
    font-size: 10px;
    padding: 22px 0;
  }
  .space-note p {
    flex: 1;
  }
  .space-note a {
    margin: 1px 0 0 28px;
  }
  .login-note {
    font-size: 10px;
  }
  .primary-button {
    padding: 16px 19px;
    gap: 35px;
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.welcome-art {
  overflow: clip;
}
.no-js .loading {
  display: none;
}
.no-js .invite-shortcut {
  display: none;
}

.login-toast { position: fixed; z-index: 50; top: 96px; right: max(24px, calc((100vw - 1160px) / 2)); display: flex; align-items: center; gap: 13px; width: min(360px, calc(100vw - 32px)); padding: 16px 14px 16px 18px; border: 1px solid #55466d; border-radius: 16px; background: #211c2c; color: #f0edf7; box-shadow: 0 16px 48px #0005; animation: login-notice-in .22s ease-out; }
.login-toast-check { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 10px; background: #b7a0ff21; color: #c4adff; font-size: 18px; }
.login-toast strong { font-size: 13px; font-weight: 600; }
.login-toast p { margin: 4px 0 0; color: #b6b0c6; font-size: 11px; line-height: 1.5; }
.login-toast button { align-self: flex-start; margin-left: auto; display: grid; place-items: center; flex: none; width: 30px; height: 30px; border: none; border-radius: 8px; background: transparent; color: #b6b0c6; font: inherit; font-size: 22px; cursor: pointer; }
.login-toast button:hover { background: #393043; color: #fff; }
@keyframes login-notice-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (max-width: 540px) { .login-toast { top: 90px; right: 16px; } }

.invite-shortcut { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; padding: 9px 13px; border: 1px solid #514466; border-radius: 10px; color: #d8c8ff; background: #b7a0ff0a; font-size: 12px; font-weight: 600; text-decoration: none; transition: background .15s, border-color .15s; }
.invite-shortcut:hover { background: #302640; border-color: #8b75bc; color: #f0edf7; }
@media (prefers-reduced-motion: reduce) { .invite-shortcut { transition: none; } }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.logout-link { margin-left: 0; }
body.invite-open { overflow: hidden; }
.invite-panel {
  width: min(560px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 30px;
  overflow-y: auto;
  border: 1px solid #594b70;
  border-radius: 18px;
  background: #1e1a29;
  color: var(--text);
  box-shadow: 0 28px 90px #0009, 0 0 0 1px #b7a0ff0e inset;
}
.invite-panel::backdrop { background: #08070dc9; backdrop-filter: blur(5px); }
.invite-panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}
.invite-panel-heading .eyebrow { margin-bottom: 10px; }
.invite-panel-heading h2 { margin: 0; font-size: 23px; letter-spacing: -.025em; }
.invite-panel-heading p:last-child { margin: 9px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.invite-close {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--raised);
  color: var(--muted);
  font-size: 22px;
}
.invite-close:hover { color: var(--text); border-color: var(--accent); }
.invite-state { margin: 28px 0 2px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.invite-groups { min-width: 0; border: 0; padding: 0; margin: 25px 0 22px; }
.invite-groups legend { padding: 0; margin-bottom: 12px; font-size: 12px; font-weight: 650; }
.invite-group-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.invite-group {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 58px;
  padding: 12px 13px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #17151f;
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.invite-group:hover { border-color: #8672a5; background: #211b2d; }
.invite-group:has(input:checked) { border-color: var(--accent); background: #302640; }
.invite-group:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.invite-group:has(input:disabled) { opacity: .55; cursor: not-allowed; }
.invite-group input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  opacity: 0;
}
.invite-group input:focus-visible { outline: none; }
.invite-check {
  display: grid;
  place-items: center;
  flex: none;
  width: 20px;
  height: 20px;
  border: 1px solid #756888;
  border-radius: 6px;
  background: #14121b;
  color: #1b142a;
  transition: background .15s, border-color .15s;
}
.invite-group input:checked + .invite-check { border-color: var(--accent); background: var(--accent); }
.invite-group input:checked + .invite-check::after { content: ""; width: 8px; height: 4px; border-left: 2px solid #251936; border-bottom: 2px solid #251936; transform: translateY(-1px) rotate(-45deg); }
.invite-group-name { min-width: 0; overflow-wrap: anywhere; line-height: 1.35; }
.invite-submit { width: 100%; border: 0; }
.invite-submit #invite-submit-label { font-size: 14px; line-height: 1.3; }
.invite-retry,
.invite-another { border: 0; padding: 0; background: none; color: #d7c7ff; font: inherit; font-size: 12px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.invite-retry { margin-top: 15px; }
.invite-another { margin-top: 6px; }
.invite-retry:hover,
.invite-another:hover { color: var(--text); }
.invite-alert {
  margin: 22px 0 0;
  padding: 13px 15px;
  border: 1px solid #734557;
  border-radius: 10px;
  background: #3a202d;
  color: #ffd1e0;
  font-size: 12px;
  line-height: 1.5;
}
.invite-result { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--border); }
.invite-result strong { font-size: 15px; }
.invite-result > p { color: var(--muted); font-size: 12px; line-height: 1.5; }
.invite-link-row { display: flex; gap: 9px; }
.invite-link-row input,
.invite-registration input {
  min-width: 0;
  border: 1px solid #51465f;
  border-radius: 9px;
  background: #14121b;
  color: var(--text);
  font: inherit;
}
.invite-link-row input { flex: 1; padding: 12px 14px; font-size: 12px; }
.invite-link-row button { flex: none; border: 1px solid var(--accent); border-radius: 9px; padding: 0 15px; background: #3c3054; color: var(--text); font: inherit; font-size: 12px; }
.invite-link-row button:hover { background: #4b3c68; }
.invite-result .invite-expiry { color: var(--faint); font-size: 11px; }

.invite-main {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  align-items: center;
  gap: clamp(34px, 6vw, 100px);
  padding: 66px 0 76px;
}
.invite-intro h1 { font-size: clamp(42px, 5vw, 64px); }
.invite-intro h1 span { color: var(--accent); }
.invite-intro > p:last-child { max-width: 390px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.invite-registration {
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--panel);
}
.invite-registration h2 { margin: 0; font-size: 23px; letter-spacing: -.025em; }
.invite-registration .form-intro { margin: 10px 0 25px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.invite-registration form { display: flex; flex-direction: column; }
.invite-registration label { margin: 0 0 8px; font-size: 12px; font-weight: 600; }
.invite-registration input { width: 100%; min-height: 47px; padding: 11px 13px; font-size: 14px; }
.invite-registration input:not(:first-of-type) { margin-top: 0; }
.invite-registration .field-hint { margin: 6px 0 20px; color: var(--faint); font-size: 11px; line-height: 1.5; }
.invite-registration .email-preview { margin: -8px 0 23px; color: #d7c7ff; font-size: 12px; overflow-wrap: anywhere; }
.invite-registration #invite-name { margin-bottom: 21px; }
.invite-registration .primary-button { width: 100%; border: 0; text-align: left; }
.invite-registration .registration-note { margin: 13px 0 0; color: var(--faint); font-size: 11px; line-height: 1.5; }
.invite-status { color: var(--muted); font-size: 13px; line-height: 1.6; }
.invite-status h2 { color: var(--text); margin-bottom: 10px; }
.invite-status p { margin: 0 0 22px; }
.invite-success .success-mark { display: block; margin-bottom: 15px; font-size: 28px; color: var(--accent); }
.invite-success .primary-button { display: flex; }
@media (max-width: 820px) {
  .invite-main { grid-template-columns: 1fr; gap: 35px; align-items: start; padding: 48px 0 65px; }
  .invite-intro > p:last-child { max-width: 600px; }
  .invite-registration { max-width: 580px; width: 100%; }
}
@media (max-width: 720px) {
  .invite-group-list { grid-template-columns: 1fr; }
  .invite-panel { padding: 22px; max-height: calc(100dvh - 24px); }
  .invite-link-row { flex-direction: column; }
  .invite-link-row button { min-height: 43px; }
  .account { flex-wrap: wrap; justify-content: flex-end; }
  .account-link { padding-left: 8px; }
  .invite-registration { padding: 22px; }
  .invite-intro h1 { font-size: clamp(38px, 9vw, 54px); }
}
