@font-face {
  font-family: Inter;
  src: url("/fonts/Inter.ttf");
  font-weight: 100 900;
  font-display: swap;
}
* {
  box-sizing: border-box;
}
html {
  color-scheme: light;
}
body {
  margin: 0;
  background: #f3f4fa;
  color: #1b2335;
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
}
header {
  height: 80px;
  padding: 0 max(24px, calc((100vw - 1120px) / 2));
  display: flex;
  align-items: center;
  gap: 20px;
  background: #191d2e;
  color: white;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 26px;
  font-weight: 850;
  text-decoration: none;
  color: white;
  letter-spacing: -1px;
}
.brand > span:last-child {
  color: #aca3ff;
}
.mark {
  display: grid;
  place-items: center;
  width: 41px;
  height: 41px;
  background: #6c5cff;
  border-radius: 13px;
  transform: rotate(-8deg);
  margin-right: 10px;
  font-size: 34px;
}
.pilot {
  margin-left: auto;
  color: #b8bed1;
  font-size: 12px;
}
main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 44px 24px 90px;
}
h1 {
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.12;
  letter-spacing: -1.5px;
  margin: 14px 0 18px;
}
h2 {
  font-size: 23px;
  letter-spacing: -0.6px;
  margin: 0 0 16px;
}
h3 {
  margin: 0 0 10px;
}
p {
  line-height: 1.6;
  color: #69758c;
}
.eyebrow {
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7664db;
}
.lead {
  max-width: 560px;
  font-size: 18px;
}
.roles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 34px;
}
.role,
.panel,
.auth {
  background: white;
  border: 1px solid #e0e4ef;
  border-radius: 24px;
  padding: 28px;
}
.role {
  min-height: 240px;
  display: flex;
  flex-direction: column;
}
.role.featured {
  background: #202137;
  color: white;
  border-color: #202137;
  box-shadow: 0 14px 40px #34296316;
}
.role.featured p {
  color: #b7bed2;
}
.role p {
  flex: 1;
}
.role .symbol {
  font-size: 27px;
  color: #a69bff;
  margin-bottom: 25px;
}
.auth {
  max-width: 620px;
  margin: 0 auto;
}
.auth h1 {
  font-size: 32px;
}
.back {
  color: #7767cd;
  text-decoration: none;
  font-size: 14px;
  display: inline-block;
  margin-bottom: 22px;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  min-width: 0;
}
.full {
  grid-column: 1/-1;
}
.field small {
  color: #718096;
  font-weight: 400;
  line-height: 1.5;
}
input,
button {
  font: inherit;
}
input {
  border: 1px solid #d9deeb;
  border-radius: 12px;
  min-width: 0;
  min-height: 48px;
  padding: 12px;
  background: #fff;
  color: #1b2335;
}
input:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid #d8d1ff;
  outline-offset: 2px;
  border-color: #8472e8;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid #dce1ec;
  background: white;
  color: #29354c;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  gap: 8px;
}
button.primary,
.button.primary {
  background: #6956ed;
  border-color: #6956ed;
  color: #fff;
}
button.lime,
.button.lime {
  background: #c6f778;
  color: #172119;
  border-color: #c6f778;
}
button:disabled {
  opacity: 0.55;
  cursor: default;
}
.actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.actions > * {
  flex: 1;
}
.error {
  color: #ab263f;
  background: #fff0f3;
  padding: 12px;
  border-radius: 10px;
  line-height: 1.5;
}
.note {
  font-size: 13px;
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  font-size: 13px;
  color: #6d7890;
  margin-top: 8px;
}
.check input {
  min-height: 0;
  accent-color: #6956ed;
}
.password-line {
  display: flex;
  gap: 8px;
}
.password-line input {
  flex: 1;
  width: 0;
}
.password-line button {
  padding: 8px;
  font-size: 12px;
}
.code {
  font-size: 30px;
  letter-spacing: 0.35em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.notice {
  border-radius: 14px;
  padding: 16px;
  background: #eeebff;
  color: #5e509c;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
}
.notice.neutral {
  background: #f7f8fc;
  color: #647189;
}
.dashboard-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.dashboard-head h1 {
  font-size: 36px;
  margin-bottom: 8px;
}
.badge {
  display: inline-flex;
  border-radius: 9px;
  background: #fff1d9;
  color: #8a6228;
  font-size: 12px;
  padding: 8px 10px;
  font-weight: 650;
}
.badge.green {
  background: #e4f4ea;
  color: #22714d;
}
.grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 20px;
}
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.stat {
  padding: 22px;
  background: white;
  border-radius: 20px;
  border: 1px solid #e0e4ef;
}
.stat b {
  font-size: 36px;
  display: block;
  margin-top: 14px;
}
.stat span {
  color: #6c7790;
  font-size: 14px;
}
.stat.dark {
  background: #202137;
  color: white;
}
.stat.dark span {
  color: #c2c6d7;
}
.nav {
  display: flex;
  gap: 6px;
  overflow: auto;
  margin-bottom: 25px;
  background: #e9eaf4;
  border-radius: 14px;
  padding: 5px;
}
.nav button {
  flex: 1;
  white-space: nowrap;
  background: transparent;
  border: 0;
  min-height: 42px;
  font-size: 14px;
}
.nav button.active {
  background: white;
  color: #6956ed;
  box-shadow: 0 2px 8px #1b234508;
}
.empty {
  padding: 32px 10px;
  text-align: center;
}
.empty .symbol {
  font-size: 40px;
  color: #a194de;
  margin-bottom: 18px;
}
.details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.details dt {
  font-size: 13px;
  color: #7b8599;
  margin-bottom: 7px;
}
.details dd {
  margin: 0;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.toggle {
  display: flex;
  background: #f1f2f8;
  padding: 4px;
  border-radius: 12px;
  gap: 4px;
  margin-top: 18px;
}
.toggle button {
  flex: 1;
  background: transparent;
  border: 0;
}
.toggle button.active {
  background: #6956ed;
  color: white;
}
.identity {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: #ece8ff;
  color: #6956ed;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 700;
}
.profile-head {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 24px;
}
.profile-head p {
  margin: 0;
  font-size: 14px;
}
#logout {
  background: #ffffff0b;
  border-color: #ffffff22;
  color: white;
  min-height: 36px;
  font-size: 12px;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #202137;
  color: white;
  padding: 16px 22px;
  border-radius: 14px;
  box-shadow: 0 8px 30px #0002;
  max-width: 90vw;
  z-index: 10;
}
[hidden] {
  display: none !important;
}
@media (max-width: 680px) {
  header {
    padding: 0 18px;
    height: 72px;
    gap: 12px;
  }
  .brand {
    font-size: 22px;
  }
  .mark {
    width: 35px;
    height: 35px;
    font-size: 29px;
  }
  .pilot {
    font-size: 10px;
    max-width: 80px;
  }
  main {
    padding: 28px 16px 50px;
  }
  .roles,
  .grid {
    grid-template-columns: 1fr;
  }
  .roles {
    gap: 14px;
    margin-top: 25px;
  }
  .role {
    padding: 24px;
    min-height: 0;
  }
  .role .symbol {
    margin-bottom: 15px;
  }
  .role p {
    margin-top: 0;
  }
  .roles .featured {
    order: -1;
  }
  .auth,
  .panel {
    padding: 23px 20px;
    border-radius: 21px;
  }
  .fields {
    grid-template-columns: 1fr;
  }
  .full {
    grid-column: auto;
  }
  .dashboard-head {
    align-items: flex-start;
  }
  .dashboard-head h1 {
    font-size: 29px;
  }
  .dashboard-head .badge {
    max-width: 115px;
    line-height: 1.4;
  }
  .nav {
    margin-left: -4px;
    margin-right: -4px;
  }
  .nav button {
    font-size: 12px;
    padding: 8px 10px;
  }
  .details {
    grid-template-columns: 1fr;
  }
  .actions {
    gap: 9px;
  }
  .actions button {
    font-size: 14px;
  }
}

@media (max-width: 680px) {
  .nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
  }
  .nav button {
    min-width: 0;
    white-space: normal;
    font-size: 11px;
    padding: 8px 3px;
    line-height: 1.35;
  }
  .dashboard-head h1 {
    overflow-wrap: anywhere;
  }
}

.auth > .back {
  display: block;
  width: max-content;
}
.auth > .eyebrow {
  display: block;
}
