:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    sans-serif;
  color: #e7e7df;
  background: #101510;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  background: radial-gradient(ellipse at 5% 15%, #26372280, transparent 45%);
  min-height: 100vh;
}
.shell {
  max-width: 1160px;
  margin: auto;
  padding: 0 36px;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 110px;
  border-bottom: 1px solid #ffffff12;
}
.brand {
  color: #eef0df;
  text-decoration: none;
  font-size: 29px;
  font-weight: 850;
  letter-spacing: 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0;
}
.brand img {
  display: block;
  width: 120px;
  height: auto;
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 3px;
  margin-top: 0;
  color: #9faaa0;
}
#session {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #b2bdae;
}
main {
  min-height: calc(100vh - 200px);
  padding: 60px 0;
}
.entry {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 75px;
  padding: 35px 0;
}
h1 {
  font-size: clamp(32px, 4.7vw, 54px);
  line-height: 1.12;
  letter-spacing: -2px;
  font-weight: 650;
  margin: 17px 0 22px;
}
h2 {
  font-size: 22px;
  letter-spacing: -0.5px;
  margin: 0 0 8px;
}
p {
  color: #a9b3a7;
  line-height: 1.7;
  font-size: 14px;
}
.eyebrow {
  color: #c1d67c;
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
}
.seal {
  margin-top: 40px;
  color: #acbb97;
  font-size: 12px;
}
.panel,
.card {
  background: #1a211b;
  border: 1px solid #ffffff10;
  border-radius: 17px;
  padding: 28px;
}
.panel p {
  margin-top: 0;
}
label {
  display: block;
  font-size: 12px;
  color: #bdc7b6;
  margin: 19px 0 12px;
}
input {
  display: block;
  width: 100%;
  margin-top: 8px;
  border: 1px solid #414c3c;
  background: #111711;
  color: #eff2e6;
  border-radius: 8px;
  padding: 13px;
  font: inherit;
  font-size: 15px;
  outline: none;
}
input:focus {
  border-color: #bdcf80;
  box-shadow: 0 0 0 3px #bdcf8015;
}
button {
  font: inherit;
  cursor: pointer;
  border-radius: 8px;
  padding: 11px 17px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid transparent;
}
button:focus-visible {
  outline: 2px solid #d1e598;
  outline-offset: 3px;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.primary {
  background: #c8dc87;
  color: #192313;
}
.primary:hover {
  background: #d7e9a1;
}
.secondary {
  background: #303c27;
  border-color: #617244;
  color: #d6e7b6;
}
.subtle {
  background: transparent;
  color: #acb79f;
  padding: 10px;
}
.subtle:hover {
  color: #e0ebcc;
}
.panel form > .primary,
form.panel > .primary,
#account-form > .primary,
#password-form > .primary,
#reset-form > .primary {
  width: 100%;
  margin-top: 20px;
}
small {
  display: block;
  font-size: 11px;
  color: #99a48f;
  line-height: 1.6;
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 27px;
}
.heading h1 {
  font-size: 38px;
  margin: 12px 0;
}
.heading p {
  margin: 0;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  padding: 23px;
  position: relative;
}
.card h2 {
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 15px;
}
.card .code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 36px;
  letter-spacing: 3px;
  display: block;
  margin: 28px 0 21px;
  color: #eef5d9;
}
.card .bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: #a8b498;
}
.track {
  height: 3px;
  background: #34412e;
  border-radius: 8px;
  margin: 22px 0 0;
  overflow: hidden;
}
.bar {
  height: 100%;
  background: #c8dc87;
  transition: width 0.5s linear;
}
.remove {
  position: absolute;
  right: 9px;
  top: 9px;
  color: #87927d;
  background: transparent;
  padding: 7px;
  font-size: 16px;
}
.empty {
  grid-column: 1/-1;
  padding: 45px;
  text-align: center;
  border: 1px dashed #516043;
  border-radius: 15px;
  color: #b5c0aa;
}
.footerline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #84917c;
  margin: 22px 0 40px;
}
#admin {
  margin-top: 35px;
}
.userrow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid #ffffff10;
}
.userrow span {
  flex: 1;
  font-size: 13px;
}
.userrow small {
  display: inline;
  margin-left: 10px;
}
#notice {
  color: #e0cba4;
  min-height: 24px;
}
footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #ffffff12;
  padding: 26px 0;
  color: #73816d;
  font-size: 9px;
  letter-spacing: 1.5px;
}
dialog {
  color: #e7e7df;
  background: #1a211b;
  border: 1px solid #4c5b3f;
  border-radius: 17px;
  width: min(480px, calc(100% - 28px));
  padding: 28px;
}
dialog::backdrop {
  background: #080c09d9;
}
.dialog-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.close {
  background: transparent;
  color: #aebca0;
  font-size: 24px;
  padding: 0 8px;
}
.file input {
  font-size: 12px;
}
.error {
  color: #eab391;
}
#invite-result {
  background: #111711;
  padding: 16px;
  border-radius: 10px;
  margin-bottom: 20px;
}
#invite-result label {
  margin-top: 0;
}
@media (max-width: 850px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .entry {
    gap: 35px;
  }
}
@media (max-width: 600px) {
  .shell {
    padding: 0 20px;
  }
  header {
    min-height: 90px;
  }
  .brand {
    font-size: 23px;
  }
  main {
    padding: 32px 0;
  }
  .entry {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0;
  }
  .entry h1 {
    font-size: 40px;
  }
  .seal {
    margin-top: 20px;
  }
  .panel {
    padding: 22px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .heading {
    align-items: flex-start;
  }
  .heading h1 {
    font-size: 30px;
  }
  .heading > .primary {
    white-space: nowrap;
    padding: 10px;
  }
  .footerline {
    align-items: flex-start;
    gap: 12px;
  }
  .userrow {
    flex-wrap: wrap;
  }
  .userrow span {
    min-width: 100%;
  }
  footer span {
    letter-spacing: 0;
  }
  .card .code {
    font-size: 40px;
  }
}
