:root {
  --ink: #1b1916;
  --muted: #655f57;
  --cream: #faf8f3;
  --white: #fffefb;
  --line: #d6d0c7;
  --orange: #f47531;
  --brown: #36251f;
  font-family: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
a {
  color: inherit;
}
svg.i {
  width: 1.25em;
  height: 1.25em;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
header {
  background: var(--ink);
  color: white;
}
.wrap {
  width: min(1160px, calc(100% - 72px));
  margin-inline: auto;
}
.top {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.wordmark {
  color: #fffaf1;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 32px;
  letter-spacing: -1.7px;
  font-weight: 750;
}
.wordmark svg {
  color: var(--orange);
  width: 31px;
  height: 34px;
}
.identity {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
}
.monogram {
  border: 1.5px solid currentColor;
  border-radius: 50%;
  width: 33px;
  height: 33px;
  display: inline-grid;
  place-items: center;
  flex: none;
  font-size: 12px;
  letter-spacing: -0.04em;
}
[hidden] {
  display: none !important;
}
nav {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  min-height: 59px;
}
.tab {
  padding: 19px 14px 16px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  font-weight: 550;
}
.tab:first-child {
  margin-left: 0;
}
.tab[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
  border-color: var(--orange);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #12748b;
  outline-offset: 3px;
}
main {
  padding-bottom: 70px;
}
.titlebar,
.sectionhead,
.row,
.dialoghead,
.actionrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.titlebar {
  margin: 30px 0 26px;
}
.titlebar h1 {
  font-size: clamp(42px, 4.6vw, 66px);
  line-height: 1.03;
  margin: 0;
  letter-spacing: -0.065em;
}
.titlebar p,
.dialogdesc {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}
.btn {
  border: 1px solid transparent;
  min-height: 45px;
  border-radius: 8px;
  padding: 10px 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-decoration: none;
  font-weight: 650;
  font-size: 15px;
  line-height: 1.3;
}
.dark {
  background: var(--ink);
  color: #fffaf2;
}
.dark:hover {
  background: #403b35;
}
.outline {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
}
.outline:hover {
  border-color: var(--ink);
}
.plain {
  border: 0;
  background: none;
  color: inherit;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 10px 2px;
}
.panels {
  display: grid;
  grid-template-columns: 1.42fr 1fr;
  gap: 16px;
}
.scan,
.sample,
.box,
.ledger {
  border-radius: 13px;
}
.scan {
  background: var(--orange);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  min-height: 283px;
}
.scan:before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 400px;
  height: 400px;
  right: -202px;
  bottom: -230px;
  border: 1px solid #ffbf89;
  border-radius: 50%;
  box-shadow:
    0 0 0 36px var(--orange),
    0 0 0 37px #ffbf89,
    0 0 0 73px var(--orange),
    0 0 0 74px #ffbf89,
    0 0 0 111px var(--orange),
    0 0 0 112px #ffbf89;
}
.scan > .i {
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  stroke-width: 2.4;
}
.scan h2,
.sample h2,
.sectionhead h2,
.box h2 {
  margin: 0;
  font-size: clamp(24px, 2.4vw, 34px);
  letter-spacing: -0.055em;
  line-height: 1.08;
}
.scan p {
  max-width: 390px;
  font-size: 16px;
  line-height: 1.4;
  margin: 8px 0 20px;
}
.actionrow {
  justify-content: flex-start;
  flex-wrap: wrap;
}
.sample,
.box {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 25px;
}
.sample {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}
.sample h2 {
  font-size: 25px;
}
.pass {
  position: relative;
  background: var(--brown);
  color: #fff4df;
  border-radius: 12px;
  padding: 21px 12% 23px 21px;
  min-height: 155px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  gap: 22px;
}
.pass:after {
  content: "";
  position: absolute;
  right: 6%;
  top: 2px;
  bottom: 2px;
  border-right: 2px dashed #ac927f;
}
.pass:before {
  content: "";
  position: absolute;
  right: -11px;
  top: calc(50% - 11px);
  width: 22px;
  height: 22px;
  background: var(--white);
  border-radius: 50%;
  z-index: 1;
}
.passname {
  display: flex;
  align-items: center;
  gap: 13px;
  font-weight: 700;
  font-size: clamp(18px, 2vw, 27px);
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}
.passname .monogram {
  width: 43px;
  height: 43px;
  font-size: 16px;
}
.stamps {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.stamp {
  width: clamp(28px, 3.1vw, 44px);
  height: clamp(28px, 3.1vw, 44px);
  border-radius: 50%;
  border: 2px solid #ff975e;
  display: grid;
  place-items: center;
  color: #ff975e;
}
.stamp svg {
  width: 53%;
  height: 53%;
}
.overflow {
  font-size: 14px;
  color: #ffb48a;
}
.sectionhead {
  margin: 29px 0 15px;
}
.sectionhead h2 {
  font-size: 28px;
}
.ledger {
  overflow: auto;
  border: 1px solid var(--line);
  background: var(--white);
}
table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  text-align: left;
  font-size: 14px;
}
td,
th {
  padding: 12px 17px;
  border-bottom: 1px solid var(--line);
}
th {
  font-size: 12px;
  color: var(--muted);
  font-weight: 650;
  background: #f5f1ea;
}
tbody tr:last-child td {
  border: 0;
}
.empty {
  text-align: center;
  padding: 25px 10px !important;
  white-space: normal;
  color: var(--muted);
}
.empty b {
  display: block;
  color: var(--ink);
  margin-bottom: 4px;
}
.delta {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--cream);
  width: min(490px, calc(100vw - 28px));
  padding: 25px;
  max-height: 90dvh;
  color: var(--ink);
  box-shadow: 0 18px 65px #19151133;
}
dialog::backdrop {
  background: #17130f85;
}
.dialoghead {
  align-items: flex-start;
}
.dialoghead h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.055em;
}
.iconbtn {
  padding: 8px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 8px;
  color: var(--ink);
  display: inline-grid;
  place-items: center;
  min-width: 37px;
  min-height: 37px;
}
.stack {
  display: grid;
  gap: 17px;
  margin-top: 21px;
}
.field {
  display: grid;
  gap: 7px;
  font-weight: 650;
  font-size: 14px;
}
.field input,
.field select,
.rewardrow input {
  border: 1px solid #bfb9ae;
  border-radius: 7px;
  min-height: 45px;
  background: var(--white);
  padding: 9px 12px;
  color: var(--ink);
  width: 100%;
}
.field small,
.hint {
  font-weight: 400;
  color: var(--muted);
  line-height: 1.5;
}
.error {
  color: #a52510;
  margin: 0;
}
.error:empty {
  display: none;
}
.loading {
  color: var(--muted);
  margin-top: 50px;
}
.login {
  max-width: 440px;
  margin: 72px auto;
}
.login h1 {
  margin: 0;
  font-size: 39px;
  letter-spacing: -0.055em;
}
.grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 18px;
  align-items: start;
}
.box h2 {
  font-size: 23px;
}
.muted,
.price span {
  color: var(--muted);
}
.muted {
  line-height: 1.45;
}
.price {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.05em;
  margin-bottom: 0;
}
.price span {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
}
.rewardrow {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) 90px auto;
  align-items: end;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 13px;
}
.rewardrow .iconbtn {
  height: 45px;
}
.rewardline,
.balance {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.rewardline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.rewardline span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}
.balance {
  margin: 12px 0;
  font-size: 27px;
  font-weight: 750;
}
.qrprint {
  width: min(205px, 100%);
  display: block;
  margin: auto;
}
.camera {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--ink);
  border-radius: 9px;
  object-fit: cover;
}
.camframe {
  position: relative;
}
.camframe:after {
  content: "";
  position: absolute;
  width: 53%;
  height: 64%;
  left: 23.5%;
  top: 16%;
  border: 2px solid white;
  border-radius: 8px;
  pointer-events: none;
}
.code {
  font-family: ui-monospace, monospace;
}
.smalltitle {
  margin: 12px 0 0;
  font-size: 18px;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 8px;
  background: var(--ink);
  color: white;
  padding: 12px 20px;
  z-index: 3;
  max-width: 92vw;
  box-shadow: 0 3px 20px #0002;
}
#printArea {
  display: none;
}
#inviteLink {
  font-size: 14px;
}
.sharebuttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .top {
    height: 59px;
  }
  .wordmark {
    font-size: 27px;
  }
  .wordmark svg {
    width: 26px;
  }
  .identity {
    font-size: 13px;
    max-width: 45%;
    line-height: 1.1;
  }
  .identity span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  nav {
    min-height: 48px;
  }
  .tab {
    padding: 14px 8px 12px;
    font-size: 14px;
  }
  .titlebar {
    margin: 24px 0 18px;
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .titlebar p {
    font-size: 15px;
    margin-top: 6px;
  }
  .panels,
  .grid {
    grid-template-columns: 1fr;
  }
  .scan {
    min-height: 245px;
    padding: 23px;
  }
  .sample {
    padding: 20px;
  }
  .sample h2 {
    font-size: 22px;
  }
  .pass {
    min-height: 144px;
  }
  .stamp {
    width: 35px;
    height: 35px;
  }
  .box {
    padding: 19px;
  }
  .titlebar .btn {
    font-size: 14px;
    min-height: 40px;
    padding: 8px 12px;
  }
  td,
  th {
    padding: 10px 12px;
  }
  .sectionhead h2 {
    font-size: 24px;
  }
  .login {
    margin-top: 40px;
  }
}
@media print {
  body > *:not(#printArea) {
    display: none !important;
  }
  #printArea {
    display: block;
    text-align: center;
    padding: 2cm;
    color: #151515;
  }
  #printArea h1 {
    font-size: 42px;
  }
  #printArea img {
    width: 7cm;
  }
  #printArea p {
    font-size: 20px;
  }
  #printArea small {
    overflow-wrap: anywhere;
  }
}
@media (min-width: 1200px) {
  .wrap {
    width: min(1430px, calc(100% - 104px));
  }
  .wordmark {
    font-size: 37px;
  }
  .wordmark svg {
    width: 36px;
    height: 40px;
  }
  .identity {
    font-size: 18px;
  }
  .identity .monogram {
    width: 40px;
    height: 40px;
    font-size: 15px;
  }
  .tab {
    font-size: 18px;
    padding-inline: 18px;
  }
  .titlebar {
    margin-top: 25px;
    margin-bottom: 28px;
  }
  .titlebar h1 {
    font-size: 72px;
  }
  .titlebar p {
    font-size: 22px;
  }
  .scan {
    min-height: 330px;
    padding: 35px;
  }
  .scan > .i {
    width: 56px;
    height: 56px;
  }
  .scan h2 {
    font-size: 43px;
  }
  .scan p {
    font-size: 19px;
    max-width: 490px;
  }
  .btn,
  .plain {
    font-size: 17px;
  }
  .sample {
    padding: 25px 28px;
  }
  .sample h2,
  .sectionhead h2 {
    font-size: 32px;
  }
  .pass {
    padding: 25px 12% 28px 26px;
    min-height: 206px;
  }
  .passname {
    font-size: 32px;
  }
  .passname .monogram {
    width: 55px;
    height: 55px;
    font-size: 20px;
  }
  .stamp {
    width: 51px;
    height: 51px;
  }
  .stamps {
    gap: 9px;
  }
  .sectionhead {
    margin-top: 31px;
  }
  table {
    font-size: 16px;
  }
  th {
    font-size: 14px;
  }
}
@media (max-width: 760px) {
  .scan:before {
    right: -288px;
    bottom: -289px;
  }
  .passname {
    line-height: 1.15;
  }
}
.auth-actions {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  margin-top: 18px;
  gap: 2px;
}
.settings-side,
.campaign-list {
  display: grid;
  gap: 17px;
}
.settings-side {
  position: sticky;
  top: 16px;
}
.pass.pz-face {
  background-color: var(--pz-bg);
  color: var(--pz-ink);
}
.pass.pz-face .stamp {
  color: var(--pz-accent);
  border-color: var(--pz-accent);
}
.pass.pz-face .overflow {
  color: var(--pz-accent);
}
.pass-logo {
  width: 58px;
  height: 52px;
  object-fit: contain;
  background: #fffcf5;
  border-radius: 8px;
  padding: 3px;
}
.design-group {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.design-group legend {
  font-size: 14px;
  font-weight: 650;
  margin: 0 0 8px;
  padding: 0;
}
.design-group small.hint {
  display: block;
  margin: 6px 0;
}
.theme-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.theme-tile {
  position: relative;
  cursor: pointer;
}
.theme-tile input,
.upload-label input,
.visuallyhidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(100%);
  white-space: nowrap;
}
.theme-color {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  border-radius: 7px;
  padding: 12px 4px;
  background-color: var(--pz-bg);
  color: var(--pz-ink);
  min-height: 65px;
}
.theme-color span {
  font-size: 20px;
  line-height: 1;
}
.theme-color b {
  font-size: 12px;
}
.theme-tile :checked + .theme-color {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.theme-tile:focus-within,
.upload-label:focus-within {
  outline: 3px solid #12748b;
  outline-offset: 4px;
}
.logo-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.logo-preview,
.chosen-glyph {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
  font-size: 17px;
  font-weight: 700;
}
.logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.chosen-glyph {
  font-size: 25px;
}
.upload-label {
  position: relative;
  cursor: pointer;
}
.icon-group {
  margin-top: 18px;
}
.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
  gap: 5px;
}
.glyph {
  height: 42px;
  font-family: inherit;
  font-size: 21px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 6px;
}
.glyph[aria-pressed="true"],
.glyph:hover {
  background: #ffe4d1;
  border-color: #ae4e17;
}
.campaign-layout {
  grid-template-columns: 1.2fr 1fr;
}
.campaign-channel {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.campaign-channel h3,
.campaign-title h3 {
  margin: 0 0 8px;
  font-size: 18px;
  overflow-wrap: anywhere;
}
.sharetools {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.sharetools input {
  flex: 1 1 130px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--cream);
  font: inherit;
  font-size: 13px;
  padding: 9px;
}
.sharetools .btn {
  min-height: 36px;
  font-size: 14px;
  padding: 8px 12px;
}
.campaign-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.campaign-title span,
.campaign p {
  font-size: 14px;
  color: var(--muted);
}
.campaign-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.login {
  max-width: 465px;
}
@media (max-width: 760px) {
  .settings-side {
    position: static;
  }
  .campaign-layout,
  .campaign-list {
    grid-template-columns: 1fr;
  }
  nav {
    gap: 0;
  }
  .tab {
    padding-inline: 7px;
  }
  .theme-grid {
    gap: 8px;
  }
  .sharetools input {
    min-width: 125px;
  }
}
.pass.pz-face:before {
  border-radius: 0;
}
.extra-themes {
  margin-top: 12px;
}
.extra-themes summary {
  font-size: 14px;
  cursor: pointer;
  color: var(--muted);
  font-weight: 600;
  padding: 4px 0;
}
.extra-themes[open] .theme-grid {
  margin-top: 8px;
}
.account-email {
  overflow-wrap: anywhere;
}
.settings-side:has(#credentials) {
  position: static;
}
.logo-preview {
  overflow: hidden;
}
.logo-preview img {
  width: 46px;
  height: 46px;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
@media (min-width: 1300px) {
  .theme-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .theme-color {
    min-height: 82px;
    padding: 9px 6px;
    text-align: center;
  }
}
