:root {
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #171717;
  background: #fff;
  font-synthesis: none;
  --green: #171717;
  --muted: #858585;
  --line: #e8e8e8;
  --blue: #171717;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
a {
  touch-action: manipulation;
}
button,
input,
select {
  font: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
  border: 0;
  background: #f3f3f3;
  color: #171717;
  border-radius: 14px;
  padding: 12px 17px;
  min-height: 44px;
  font-weight: 550;
}
button:hover {
  background: #eaeaea;
}
button:active {
  transform: scale(0.98);
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
button.primary,
.primary.link-button {
  background: #171717;
  color: #fff;
}
button.primary:hover,
.primary.link-button:hover {
  background: #171717;
}
button.danger {
  color: #262626;
  background: #f3f3f3;
}
button.text {
  background: transparent;
  padding: 8px;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #171717;
  outline-offset: 4px;
}
header {
  max-width: 1020px;
  margin: auto;
  padding: 24px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f2f2f2;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.brand small {
  font-size: 12px;
  color: #858585;
  font-weight: 500;
  margin-left: 4px;
  letter-spacing: 0;
}
.logo {
  background: #171717;
  color: #fff;
  border-radius: 10px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  font-size: 21px;
}
.icon {
  background: #f6f6f6;
  font-size: 24px;
  padding: 4px 12px;
}
main {
  max-width: 960px;
  margin: 38px auto 130px;
  padding: 0 24px;
}
h1 {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -1px;
  margin: 6px 0 10px;
}
h2 {
  font-size: 21px;
  margin: 0 0 15px;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 20px;
  margin: 12px 0;
  font-weight: 650;
  letter-spacing: -0.3px;
}
p {
  line-height: 1.7;
  margin: 8px 0;
}
.eyebrow {
  display: none;
}
.muted,
small {
  color: #858585;
}
.intro {
  margin-bottom: 26px;
}
.tabs {
  display: flex;
  gap: 4px;
  background: #f0f0f0;
  padding: 4px;
  border-radius: 11px;
  width: max-content;
  margin: 12px 0 24px;
}
.tabs button {
  background: transparent;
  padding: 7px 24px;
  min-height: 36px;
  border-radius: 8px;
  font-size: 14px;
  color: #737373;
}
.tabs .active {
  background: #fff;
  color: #171717;
  box-shadow: 0 2px 6px #00000012;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.panel,
.activity {
  background: #fafafa;
  border: 1px solid #eeeeee;
  border-radius: 24px;
  padding: 26px;
}
.activity {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 275px;
}
.activity p {
  color: #737373;
  font-size: 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.activity .primary {
  margin-top: auto;
  width: 100%;
}
.activity .meta {
  margin-bottom: 22px;
}
.tag {
  display: inline-block;
  font-size: 11px;
  padding: 5px 9px;
  border-radius: 7px;
  background: #f0f0f0;
  color: #171717;
  letter-spacing: 0.1px;
}
.meta {
  font-size: 13px;
  color: #858585;
  margin-top: 16px;
  line-height: 1.8;
}
.empty {
  text-align: center;
  padding: 50px 20px;
  border: 1px solid #ececec;
  border-radius: 22px;
  color: #858585;
  grid-column: 1/-1;
}
.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.stack {
  display: grid;
  gap: 15px;
}
.spacer {
  margin-top: 24px;
}
.card {
  background: linear-gradient(120deg, #fff, #f3f3f3);
  color: #171717;
  border: 1px solid #e5e5e5;
  border-radius: 24px;
  padding: 26px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px #17171706;
}
.card p,
.card small {
  color: #858585;
}
.card h3 {
  font-size: 24px;
}
.card button {
  background: #fff;
  color: #171717;
  border: 1px solid #e3e3e3;
}
.balance {
  font-size: 56px;
  letter-spacing: -2px;
  font-weight: 650;
  margin: 16px 0;
}
.stats {
  display: flex;
  gap: 35px;
  margin: 22px 0;
}
.stats strong {
  font-size: 25px;
  display: block;
  color: #171717;
}
.stats small {
  font-size: 12px;
}
.list-item {
  border-bottom: 1px solid #e8e8e8;
  padding: 17px 0;
}
.list-item:last-child {
  border: 0;
}
.list-item p {
  font-size: 13px;
}
.positive {
  color: #262626;
}
.negative {
  color: #262626;
}
.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #f3f3f3;
  display: grid;
  place-items: center;
  font-size: 27px;
  color: #555555;
  flex-shrink: 0;
}
.profile {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 25px 0;
}
.profile h1 {
  font-size: 27px;
}
.profile p {
  margin: 0;
  font-size: 13px;
}
nav {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  background: #fffffff0;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid #e8e8e8;
  border-radius: 23px;
  box-shadow: 0 8px 32px #1717170d;
  padding: 6px;
  gap: 6px;
  z-index: 10;
}
nav a {
  min-width: 120px;
  text-align: center;
  padding: 13px;
  border-radius: 17px;
  color: #858585;
  font-size: 14px;
  font-weight: 550;
}
nav a.active {
  background: #f0f0f0;
  color: #171717;
}
dialog {
  border: 1px solid #e8e8e8;
  border-radius: 28px;
  padding: 0 26px 26px;
  max-width: 620px;
  width: calc(100% - 30px);
  max-height: 88dvh;
  color: #171717;
  box-shadow: 0 24px 100px #00000025;
  background: #fff;
}
dialog::backdrop {
  background: #00000044;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  background: #fffffff5;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 2;
  padding: 18px 0 15px;
  border-bottom: 1px solid #eeeeee;
}
.dialog-head h2 {
  margin: 0;
}
.close-button {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  flex-shrink: 0;
  background: #eaeaea;
  color: #333333;
  border: 1px solid #d6d6d6;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding: 0;
  box-shadow: 0 2px 5px #00000008;
}
.close-button:hover {
  background: #dedede;
}
.close-button svg {
  display: block;
}
#dialog-body {
  margin-top: 20px;
}
label {
  display: block;
  font-size: 13px;
  color: #737373;
  margin: 16px 0 7px;
}
input,
select {
  width: 100%;
  border: 1px solid #dedede;
  border-radius: 13px;
  padding: 13px;
  background: #fafafa;
  color: inherit;
  min-width: 0;
}
input:focus,
select:focus {
  outline: 2px solid #171717;
  outline-offset: 2px;
}
.full {
  width: 100%;
  margin-top: 20px;
}
.details {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 14px;
}
.photos {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.photos img {
  width: 100%;
  max-width: 240px;
  border-radius: 14px;
}
.seats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}
.seats button {
  padding: 9px 4px;
  border: 1px solid #e3e3e3;
  background: #f6f6f6;
  color: #555555;
}
.seats button.selected {
  background: #171717;
  color: white;
  border-color: #171717;
}
.seats button.mine {
  border-color: #171717;
}
.qr {
  text-align: center;
  margin: 20px 0;
}
.qr img {
  max-width: 100%;
  width: 240px;
  height: 240px;
  image-rendering: pixelated;
}
.error {
  color: #262626;
  padding: 12px;
  background: #f3f3f3;
  border-radius: 12px;
  margin: 12px 0;
  font-size: 14px;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
#toast {
  position: fixed;
  bottom: 110px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90%;
  background: #171717;
  color: white;
  padding: 12px 20px;
  border-radius: 14px;
  z-index: 30;
  display: none;
  box-shadow: 0 5px 20px #0002;
  font-size: 14px;
}
#toast.show {
  display: block;
}
.form-note {
  font-size: 12px;
  color: #858585;
  margin-top: 16px;
}
.expired {
  opacity: 0.7;
}
.settings-group {
  background: #f6f6f6;
  border-radius: 19px;
  overflow: hidden;
}
.settings-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
  padding: 17px 20px;
  background: transparent;
  color: #171717;
}
.settings-icon {
  width: 30px;
  height: 30px;
  background: #171717;
  color: #fff;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 22px;
}
.chevron {
  margin-left: auto;
  color: #aaaaaa;
  font-size: 25px;
  font-weight: 400;
}
.product-list {
  display: grid;
  gap: 12px;
}
.product-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: #f6f6f6;
  text-align: left;
  color: #171717;
  border-radius: 18px;
}
.product-row strong {
  display: block;
  font-size: 16px;
}
.product-row small {
  display: block;
  font-size: 12px;
  margin-top: 5px;
  line-height: 1.6;
}
.product-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: #ededed;
  color: #3b3b3b;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 25px;
  font-weight: 650;
}
.product-hero {
  text-align: center;
  padding: 18px 0;
}
.product-icon.large {
  width: 80px;
  height: 80px;
  margin: auto;
  border-radius: 23px;
  font-size: 38px;
}
.feature-tags {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.link-button {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 14px;
  background: #f3f3f3;
  color: #171717;
  font-weight: 550;
}
@media (min-width: 800px) {
  main {
    margin-top: 42px;
  }
  .intro {
    max-width: 600px;
  }
  .grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  header {
    padding: 20px;
  }
  main {
    padding: 0 20px;
    margin-top: 24px;
  }
  h1 {
    font-size: 32px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .panel,
  .activity {
    padding: 23px;
  }
  .intro {
    margin-bottom: 24px;
  }
  nav {
    bottom: calc(12px + env(safe-area-inset-bottom));
    width: calc(100% - 36px);
    justify-content: space-between;
  }
  nav a {
    min-width: 0;
    flex: 1;
  }
  .balance {
    font-size: 48px;
  }
  dialog {
    padding: 0 21px 24px;
    border-radius: 25px;
  }
  .seats {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .brand small {
    font-size: 11px;
  }
  .product-row {
    padding: 15px;
    gap: 10px;
  }
  .product-row strong {
    font-size: 15px;
  }
  .close-button {
    width: 48px;
    height: 48px;
  }
}
.dialog-head h2 {
  min-width: 0;
  overflow-wrap: anywhere;
}
.product-row > span:nth-child(2) {
  min-width: 0;
  overflow-wrap: anywhere;
}
@media (max-width: 360px) {
  .tabs button {
    padding: 7px 18px;
  }
  .profile h1 {
    font-size: 24px;
  }
}

/* Monochrome edition */
.panel,
.activity,
.card {
  border-radius: 18px;
}
.panel,
.activity {
  background: #fff;
}
.card {
  background: #171717;
  color: #fff;
  box-shadow: none;
  border-color: #171717;
}
.card h3,
.card .stats strong {
  color: #fff;
}
.card p,
.card small {
  color: #bcbcbc;
}
.card button {
  background: #292929;
  color: #fff;
  border-color: #4b4b4b;
}
.tabs {
  background: #f3f3f3;
}
.tabs .active {
  box-shadow: none;
  background: #fff;
  color: #171717;
}
nav {
  background: #fffffff5;
  box-shadow: 0 4px 20px #00000006;
  border-radius: 19px;
}
nav a {
  border-radius: 13px;
}
nav a.active {
  background: #171717;
  color: #fff;
}
.tag {
  background: #f1f1f1;
  color: #555;
}
.settings-icon {
  background: #171717;
}
.primary.link-button,
button.primary {
  background: #171717;
  color: #fff;
}
.primary.link-button:hover,
button.primary:hover {
  background: #333;
}
.settings-group {
  background: #f6f6f6;
}
.product-icon {
  background: #eeeeee;
  color: #333;
}
.balance {
  font-weight: 600;
}
button,
input,
select,
.link-button {
  border-radius: 11px;
}
.close-button {
  border-radius: 50%;
  background: #e8e8e8;
  color: #171717;
  border-color: #cfcfcf;
}
dialog {
  border-radius: 22px;
}
.activity .primary {
  margin-top: auto;
}
.stats {
  gap: 40px;
}
