:root {
  --paper: #f6f5f1;
  --ink: #171817;
  --muted: #62655f;
  --line: #d9dbd3;
  --white: #fff;
  --soft: #eceee6;
  --green: #3a5b38;
  --red: #982f26;
  --radius: 14px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 18px;
  background: var(--ink);
  color: white;
  border: 1px solid var(--ink);
  border-radius: 5px;
  font-weight: 550;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease-out;
}
button:hover,
.button:hover {
  background: #343832;
}
button:disabled,
.button[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.secondary:hover {
  background: var(--soft);
}
.danger {
  color: var(--red);
  background: transparent;
  border-color: var(--line);
}
:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 4px;
}
::selection {
  background: #cbd9bc;
  color: var(--ink);
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #9c9f95;
  border-radius: 4px;
  min-height: 44px;
  background: white;
  color: var(--ink);
  padding: 11px;
  caret-color: var(--green);
}
input::placeholder,
textarea::placeholder {
  color: #6b6d67;
}
textarea {
  resize: vertical;
  min-height: 95px;
}
label {
  display: block;
  font-size: 14px;
  font-weight: 550;
  margin: 0 0 18px;
}
label > input,
label > select,
label > textarea {
  display: block;
  margin-top: 7px;
}
input[type="checkbox"] {
  display: inline-block;
  width: 18px;
  min-height: 18px;
  margin: 0 9px 0 0;
  vertical-align: middle;
}
header {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 92px;
  padding: 24px 5vw;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: block;
  width: 200px;
}
.brand img {
  width: 100%;
  height: 25px;
  object-fit: contain;
}
.pilot {
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
}
main {
  max-width: 1280px;
  margin: auto;
  padding: 48px 4vw 80px;
  min-height: 75vh;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 550;
  letter-spacing: -0.035em;
  line-height: 1.1;
  text-wrap: balance;
}
h2 {
  font-size: 25px;
  font-weight: 550;
  letter-spacing: -0.02em;
}
h3 {
  font-size: 18px;
  font-weight: 550;
}
p {
  line-height: 1.6;
  max-width: 66ch;
}
.intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 38px;
}
.intro p {
  margin-top: 12px;
  color: var(--muted);
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 13px;
}
.layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 44px;
}
.rail {
  min-width: 0;
  border-right: 1px solid var(--line);
  padding-right: 24px;
}
.rail nav {
  display: grid;
  gap: 6px;
  margin-bottom: 32px;
}
.rail nav button {
  text-align: left;
  justify-content: start;
  background: transparent;
  color: var(--muted);
  border: 0;
}
.rail nav button[aria-current="page"] {
  background: var(--soft);
  color: var(--ink);
}
.people {
  display: grid;
  gap: 0;
  margin-top: 18px;
}
.person {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  padding: 16px 12px;
  display: block;
  text-align: left;
  width: 100%;
  font-weight: 400;
}
.person strong,
.person span {
  display: block;
  overflow-wrap: anywhere;
}
.person span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 6px;
}
.person:hover,
.person.selected {
  background: var(--soft);
}
.sheet {
  min-width: 0;
}
.detail-grid > div {
  min-width: 0;
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(200px, 1fr);
  gap: 30px;
  align-items: start;
}
.pass {
  color: #fff;
  background: #141414;
  border-radius: var(--radius);
  padding: 25px;
  max-width: 380px;
  width: 100%;
  min-height: 300px;
  position: relative;
  overflow: hidden;
}
.pass-logo {
  width: 100%;
  height: 28px;
  object-fit: contain;
  filter: invert(1);
}
.pass hr {
  border: 0;
  border-top: 1px solid #484a46;
  margin: 22px 0;
}
.pass .level {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #c8cbc3;
}
.pass .name {
  font-size: 27px;
  line-height: 1.2;
  margin: 12px 0 24px;
  overflow-wrap: anywhere;
}
.pass .balance {
  font-size: 38px;
  font-variant-numeric: tabular-nums;
}
.pass .balance small {
  font-size: 12px;
  color: #c8cbc3;
  display: block;
  margin-top: 4px;
}
.pass .notice {
  font-size: 13px;
  color: #e4e6e0;
  line-height: 1.45;
  margin-top: 20px;
  overflow-wrap: anywhere;
}
.pass .qr {
  display: block;
  margin: 25px auto 0;
  width: 150px;
  height: 150px;
  border-radius: 5px;
  background: white;
}
.pass.inactive {
  background: #4a4b49;
}
.pass-meta {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.section {
  border-top: 1px solid var(--line);
  margin-top: 34px;
  padding-top: 28px;
}
.section h2,
.section h3 {
  margin-bottom: 20px;
}
.section > p {
  margin-bottom: 18px;
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.empty {
  padding: 30px 0;
  color: var(--muted);
}
.status-row,
.reward,
.activity {
  display: flex;
  gap: 15px;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.status-row p,
.reward p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}
.tag {
  font-size: 12px;
  padding: 5px 8px;
  border-radius: 4px;
  background: var(--soft);
  white-space: nowrap;
}
.tag.ready {
  background: #e3eddc;
  color: #31542a;
}
.tag.blocked {
  background: #f5e9d7;
  color: #72501f;
}
.stack {
  display: grid;
  gap: 18px;
}
.member-view {
  max-width: 430px;
  margin: auto;
}
.member-view h1 {
  margin-bottom: 24px;
}
.member-view .pass {
  max-width: none;
}
.member-view .actions {
  display: grid;
}
.member-view .section h2 {
  font-size: 22px;
}
.login {
  max-width: 600px;
  margin: 60px auto;
}
.login p {
  margin: 24px 0;
}
.scanner {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  background: #171817;
  border-radius: 8px;
  margin: 20px 0;
}
.noticebox {
  padding: 18px;
  background: var(--soft);
  border-radius: 6px;
  font-size: 14px;
  margin-top: 20px;
  line-height: 1.5;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}
th,
td {
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
th {
  font-weight: 550;
  color: var(--muted);
}
#message:empty {
  display: none;
}
#message {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #e2ecdb;
  color: #254224;
  padding: 16px 5vw;
  font-size: 14px;
  box-shadow: 0 4px 12px #0000000a;
}
#message.error {
  background: #f8e7e2;
  color: #7e261d;
}
footer {
  padding: 25px 5vw;
  border-top: 1px solid var(--line);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 20;
  background: white;
  padding: 15px;
}
.loading {
  padding: 60px 0;
}
.hidden {
  display: none !important;
}
details {
  margin-top: 24px;
}
summary {
  cursor: pointer;
  padding: 12px 0;
  min-height: 44px;
}
.checklabel {
  font-weight: 400;
  line-height: 1.5;
}
.nowrap {
  white-space: nowrap;
}
body {
  scrollbar-color: #989d91 var(--paper);
}
@media (max-width: 1050px) {
  .layout {
    grid-template-columns: 250px 1fr;
    gap: 24px;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .pass {
    max-width: 400px;
  }
  .rail {
    padding-right: 18px;
  }
}
@media (max-width: 700px) {
  header {
    min-height: 75px;
    padding: 20px;
    gap: 15px;
  }
  .brand {
    width: 140px;
  }
  .brand img {
    height: 20px;
  }
  header > span:not(.pilot) {
    display: none;
  }
  .pilot {
    font-size: 11px;
  }
  main {
    padding: 30px 20px 60px;
  }
  .intro {
    align-items: start;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 26px;
  }
  .layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .rail {
    border: 0;
    padding: 0;
  }
  .rail nav {
    display: flex;
    overflow-x: auto;
    margin-bottom: 15px;
  }
  .rail nav button {
    white-space: nowrap;
  }
  .people {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    margin-top: 10px;
  }
  .person {
    width: 180px;
    flex-shrink: 0;
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 12px;
  }
  .pass {
    max-width: 100%;
  }
  .detail-grid {
    gap: 24px;
  }
  .two {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .status-row {
    align-items: start;
    flex-wrap: wrap;
  }
  .status-row > div {
    flex: 1;
    min-width: 180px;
  }
  footer {
    flex-direction: column;
    font-size: 11px;
    gap: 10px;
  }
  .section {
    margin-top: 26px;
    padding-top: 24px;
  }
  .member-view {
    max-width: 430px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
