:root {
  --ink: #20251f;
  --paper: #f5f5ee;
  --green: #d8f36a;
  --muted: #777d70;
  --line: #dedfd5;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 8px;
  padding: 13px 19px;
  background: var(--ink);
  color: white;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.15s,
    background 0.15s;
}
button:hover,
.btn:hover {
  transform: translateY(-1px);
  filter: brightness(0.94);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.btn.light,
button.light {
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn.lime,
button.lime {
  background: var(--green);
  color: var(--ink);
}
button.small,
.btn.small {
  padding: 9px 12px;
  font-size: 12px;
}
button.danger {
  color: #a7332a;
  background: #ffebe7;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
p {
  line-height: 1.7;
}
h1 {
  letter-spacing: -0.065em;
  line-height: 1.04;
  font-weight: 500;
}
h2 {
  letter-spacing: -0.04em;
  font-size: 30px;
  font-weight: 500;
}
h3 {
  font-size: 17px;
}
small,
.muted {
  color: var(--muted);
}
label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 7px;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 7px;
  padding: 12px;
  min-width: 0;
}
input[type="checkbox"] {
  width: auto;
}
input[type="color"] {
  height: 43px;
  padding: 5px;
}
textarea {
  min-height: 90px;
  resize: vertical;
}
.field {
  margin-bottom: 18px;
}
.row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -1px;
}
.brand-icon {
  display: inline-grid;
  place-items: center;
  width: 31px;
  height: 34px;
  background: var(--ink);
  color: var(--green);
  border-radius: 7px;
  transform: rotate(-8deg);
  font-size: 22px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: bold;
  text-transform: uppercase;
}
.pill {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 100px;
  font-size: 11px;
  background: #eef4d7;
  color: #45521b;
  align-items: center;
  gap: 6px;
}
.pill.dark {
  background: #ffffff15;
  color: inherit;
}
.pill.used {
  background: #e3ecfb;
  color: #375780;
}
.pill.cancelled {
  background: #ffe6df;
  color: #9d3e30;
}
.pill.draft {
  background: #eee;
  color: #666;
}
.page-nav {
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1240px;
  padding: 0 40px;
  margin: auto;
}
.landing {
  max-width: 1240px;
  margin: auto;
  padding: 45px 40px 60px;
}
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 55px;
  align-items: center;
  min-height: 570px;
}
.hero h1 {
  font-size: clamp(52px, 6vw, 84px);
  margin: 25px 0;
}
.hero p {
  font-size: 17px;
  max-width: 420px;
  color: #6d7466;
}
.hero .row {
  margin: 28px 0;
}
.hero-note {
  font-size: 12px !important;
}
.poster {
  min-height: 520px;
  position: relative;
  background: #222d25;
  border-radius: 18px;
  overflow: hidden;
  padding: 32px;
  color: #f5f4e9;
  box-shadow: 0 25px 50px #25302013;
}
.orb {
  position: absolute;
  width: 330px;
  height: 330px;
  right: -15px;
  top: 55px;
  border-radius: 50%;
  background: repeating-radial-gradient(
    ellipse at 50% 50%,
    #d8f36a 0px,
    #d8f36a 2px,
    transparent 3px,
    transparent 9px
  );
  transform: rotate(-30deg) scaleX(0.8);
  opacity: 0.75;
}
.poster-title {
  position: relative;
  margin-top: 88px;
  font-size: 69px;
  line-height: 0.93;
  letter-spacing: -5px;
  font-family: Georgia, serif;
  font-style: italic;
}
.poster-bottom {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-top: 45px;
  font-size: 12px;
  line-height: 1.8;
}
.mini-pass {
  position: absolute;
  right: 22px;
  bottom: 45px;
  background: #f5f4e9;
  color: var(--ink);
  padding: 20px;
  border-radius: 10px;
  width: 184px;
  transform: rotate(9deg);
  box-shadow: 0 15px 20px #0003;
}
.mini-pass strong {
  font-size: 20px;
}
.mini-pass .bars {
  height: 45px;
  margin: 18px 0 9px;
  background: repeating-linear-gradient(
    90deg,
    #20251f 0 2px,
    transparent 2px 5px,
    #20251f 5px 9px,
    transparent 9px 12px
  );
}
.features {
  margin-top: 70px;
  border-top: 1px solid var(--line);
  padding-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.features span {
  font-size: 12px;
  color: #7b8272;
}
.features h3 {
  margin: 15px 0 8px;
}
.features p {
  font-size: 13px;
  color: var(--muted);
}
footer {
  padding: 35px 0;
  margin-top: 50px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}
.sidebar {
  width: 235px;
  position: fixed;
  inset: 0 auto 0 0;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 32px 23px;
  display: flex;
  flex-direction: column;
  z-index: 4;
}
.sidebar .brand {
  margin-bottom: 46px;
}
.sidebar .eyebrow {
  color: #9a9f94;
  letter-spacing: 1px;
  font-size: 9px;
  margin: 15px 13px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 7px;
  padding: 13px;
  margin: 4px 0;
  color: #78806e;
  font-size: 13px;
}
.nav-item.active {
  background: #edf2df;
  color: #293221;
  font-weight: bold;
}
.side-footer {
  margin-top: auto;
  padding-top: 25px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.avatar {
  width: 33px;
  height: 33px;
  background: #e9eddc;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.dashboard {
  margin-left: 235px;
  min-height: 100vh;
}
.topbar {
  height: 80px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: #fbfbf6;
  font-size: 12px;
}
.content {
  padding: 38px 40px;
  max-width: 1510px;
  margin: auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}
.page-heading h1 {
  font-size: 37px;
  margin-bottom: 10px;
}
.page-heading p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 35px;
}
.stat {
  padding: 23px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.stat label {
  color: var(--muted);
  font-weight: 400;
}
.stat strong {
  display: block;
  font-weight: 500;
  font-size: 34px;
  margin: 17px 0 5px;
  letter-spacing: -1px;
}
.stat small {
  font-size: 11px;
}
.stat:first-child {
  background: #e9efdb;
}
.section-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 25px 0 18px;
}
.section-top h2 {
  font-size: 20px;
  margin: 0;
}
.event-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.event-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.event-art {
  position: relative;
  height: 170px;
  background: #222d25;
  color: #d8f36a;
  padding: 22px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.event-art .orb {
  width: 160px;
  height: 160px;
  right: -15px;
  top: 10px;
}
.event-art .art-title {
  position: relative;
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 36px;
  line-height: 0.95;
  letter-spacing: -2px;
  max-width: 80%;
  margin-top: 18px;
}
.event-art .eyebrow {
  position: relative;
  font-size: 8px;
}
.card-body {
  padding: 21px;
}
.card-body h3 {
  font-size: 16px;
  margin: 0 0 12px;
  line-height: 1.4;
}
.card-meta {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
  margin: 12px 0;
}
.progress {
  height: 5px;
  background: #ecefe5;
  border-radius: 9px;
  margin: 10px 0 18px;
  overflow: hidden;
}
.progress > div {
  height: 100%;
  background: #adc85a;
}
.card-actions {
  display: flex;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.card-actions > * {
  flex: 1;
}
.new-card {
  min-height: 360px;
  border: 1px dashed #bdc5ad;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  flex-direction: column;
  font-weight: 400;
}
.new-card b {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #e9eddc;
  font-size: 26px;
  font-weight: 400;
}
.panel {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 22px;
}
.panel h2 {
  font-size: 21px;
  margin-bottom: 24px;
}
.help {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
.notice {
  background: #eef3de;
  border: 1px solid #d8e0be;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.error {
  background: #fff0ec;
  color: #a63a29;
  padding: 14px;
  border-radius: 8px;
  margin: 14px 0;
  font-size: 13px;
}
.editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(290px, 0.7fr);
  gap: 25px;
}
.preview-wrap {
  position: sticky;
  top: 25px;
  align-self: start;
}
.preview-box {
  border-radius: 14px;
  padding: 32px;
  min-height: 390px;
  background: var(--event-bg);
  color: var(--event-text);
  overflow: hidden;
  position: relative;
}
.preview-box h2 {
  font-size: 36px;
  position: relative;
  margin-top: 55px;
}
.preview-box .preview-button {
  background: var(--accent);
  color: #172018;
  padding: 13px;
  border-radius: 6px;
  text-align: center;
  margin-top: 22px;
}
.preview-image {
  width: 100%;
  max-height: 130px;
  object-fit: cover;
  border-radius: 7px;
}
.event-logo {
  max-width: 125px;
  max-height: 55px;
  object-fit: contain;
}
.event-page {
  --event-bg: #181b19;
  --event-text: #f5f4e9;
  --accent: #d8f36a;
  min-height: 100vh;
  background: var(--event-bg);
  color: var(--event-text);
}
.event-nav {
  padding: 30px 7%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ffffff20;
}
.event-layout {
  max-width: 1250px;
  margin: auto;
  padding: 65px 50px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: start;
}
.event-copy {
  position: relative;
  padding: 30px 0;
}
.event-copy h1 {
  font-size: 70px;
  position: relative;
  z-index: 1;
  margin: 28px 0;
}
.event-copy > .orb {
  top: 0;
  right: 0;
  width: 250px;
  height: 250px;
  opacity: 0.23;
}
.event-copy p {
  opacity: 0.75;
  max-width: 440px;
  font-size: 15px;
}
.event-detail {
  display: flex;
  gap: 18px;
  padding: 23px 0;
  border-top: 1px solid #ffffff25;
  margin-top: 20px;
  font-size: 13px;
  line-height: 1.8;
}
.event-cover {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
}
.registration {
  color: var(--ink);
  background: #f8f8f2;
  border-radius: 15px;
  padding: 32px;
  box-shadow: 0 20px 80px #0002;
}
.registration h2 {
  font-size: 28px;
  margin: 12px 0;
}
.registration > p {
  font-size: 13px;
  color: var(--muted);
}
.registration button.primary {
  width: 100%;
  background: var(--accent);
  color: #172018;
  padding: 16px;
  margin: 6px 0;
}
.registration .fine {
  font-size: 10px;
  text-align: center;
  line-height: 1.7;
  color: var(--muted);
  margin: 17px 0 0;
}
.ticket {
  max-width: 430px;
  margin: auto;
  text-align: center;
}
.ticket .qr {
  width: 230px;
  max-width: 100%;
  display: block;
  margin: 22px auto;
  border: 1px solid #eee;
  border-radius: 8px;
}
.ticket-name {
  font-size: 20px;
  margin: 20px 0 5px;
}
.ticket-number {
  letter-spacing: 2px;
  font-family: monospace;
  padding: 18px 0;
  border-top: 1px dashed #bbb;
  margin-top: 20px;
}
.ticket .row {
  justify-content: center;
}
.ticket-page {
  min-height: 100vh;
  background: #222d25;
  padding: 45px 20px;
}
.ticket-page .registration {
  max-width: 450px;
  margin: 25px auto;
}
.login {
  max-width: 430px;
  margin: 8vh auto;
  padding: 34px;
}
.login .brand {
  margin-bottom: 40px;
}
.login h1 {
  font-size: 35px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}
th {
  font-size: 10px;
  color: var(--muted);
  font-weight: 500;
  padding: 14px 12px;
  background: #f5f6f0;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
td {
  padding: 16px 12px;
  border-bottom: 1px solid #edf0e7;
}
td strong {
  display: block;
  margin-bottom: 5px;
}
td small {
  font-size: 11px;
}
.toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 22px;
}
.toolbar input {
  flex: 1;
}
.toolbar select {
  max-width: 240px;
}
.empty {
  padding: 45px 25px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.scan-panel {
  max-width: 600px;
  margin: 0 auto;
}
.scan-target {
  border: 1px dashed #aab49a;
  min-height: 220px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin: 20px 0;
  background: #f8faf1;
}
.scan-result {
  padding: 30px;
  border-radius: 12px;
  background: #e4f5d8;
  text-align: center;
  margin-top: 25px;
}
.scan-result.bad {
  background: #ffe5df;
  color: #a63124;
}
.scan-result h2 {
  margin: 10px 0;
}
.inbox-card {
  padding: 20px;
  border-bottom: 1px solid var(--line);
}
.inbox-card pre {
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.6;
  background: #f5f6ef;
  padding: 15px;
  border-radius: 7px;
  font-size: 13px;
}
.loading {
  padding: 80px;
  text-align: center;
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  padding: 15px 22px;
  background: #253322;
  color: #fff;
  box-shadow: 0 10px 30px #0002;
  border-radius: 9px;
  z-index: 20;
  display: none;
  font-size: 13px;
  max-width: 90vw;
}
#toast.show {
  display: block;
}
.mobile-brand {
  display: none;
}
.check-row {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.check-row label {
  display: flex;
  gap: 7px;
  align-items: center;
  font-weight: 400;
}
.font-serif {
  font-family: Georgia, serif;
}
.font-mono {
  font-family: monospace;
}
@media (max-width: 1100px) {
  .event-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sidebar {
    width: 200px;
    padding: 25px 15px;
  }
  .dashboard {
    margin-left: 200px;
  }
  .content {
    padding: 30px 25px;
  }
  .event-layout {
    gap: 40px;
    padding: 40px;
  }
  .event-copy h1 {
    font-size: 55px;
  }
  .stats {
    gap: 12px;
  }
  .stat {
    padding: 17px;
  }
  .editor-layout {
    grid-template-columns: 1fr;
  }
  .preview-wrap {
    position: static;
    max-width: 500px;
  }
  .hero {
    gap: 30px;
  }
  .mini-pass {
    right: 15px;
    width: 160px;
  }
  .poster-title {
    font-size: 60px;
  }
}
@media (max-width: 760px) {
  .page-nav {
    padding: 0 22px;
    height: 80px;
  }
  .landing {
    padding: 20px 22px;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 58px;
  }
  .poster {
    min-height: 450px;
  }
  .features {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 50px;
  }
  .sidebar {
    position: static;
    width: auto;
    display: block;
    padding: 16px;
    border-bottom: 1px solid var(--line);
  }
  .sidebar .brand {
    margin-bottom: 16px;
  }
  .sidebar nav {
    display: flex;
    overflow: auto;
    gap: 5px;
  }
  .sidebar .eyebrow,
  .side-footer {
    display: none;
  }
  .nav-item {
    white-space: nowrap;
    padding: 10px;
    font-size: 12px;
  }
  .dashboard {
    margin: 0;
  }
  .topbar {
    padding: 0 20px;
    height: 50px;
  }
  .content {
    padding: 28px 18px;
  }
  .page-heading {
    align-items: start;
  }
  .page-heading h1 {
    font-size: 30px;
  }
  .page-heading .btn {
    font-size: 12px;
    padding: 12px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .event-grid {
    grid-template-columns: 1fr;
  }
  .event-art {
    height: 190px;
  }
  .new-card {
    min-height: 160px;
  }
  .grid2 {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .event-layout {
    grid-template-columns: 1fr;
    padding: 22px;
    gap: 20px;
  }
  .event-copy {
    padding: 15px 0;
  }
  .event-copy h1 {
    font-size: 52px;
  }
  .event-nav {
    padding: 22px;
  }
  .registration {
    padding: 25px;
  }
  .event-detail {
    margin-bottom: 0;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .toolbar select {
    max-width: none;
  }
  .login {
    margin: 30px 16px;
  }
  .panel {
    padding: 20px;
  }
  .features p {
    margin: 0;
  }
}
@media print {
  body {
    background: white !important;
  }
  .event-nav,
  .ticket .row,
  .fine,
  .print-hide,
  #toast {
    display: none !important;
  }
  .ticket-page {
    background: white;
    padding: 0;
  }
  .registration {
    box-shadow: none;
  }
  .ticket-page .registration {
    border: 1px solid #ddd;
  }
}
/* Keep long event names and decorations inside small screens. */
.event-page {
  overflow-x: clip;
}
.event-layout > * {
  min-width: 0;
}
.event-copy h1 {
  overflow-wrap: anywhere;
}
.event-art .eyebrow {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 760px) {
  .sidebar .side-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    margin-top: 10px;
  }
  .sidebar .side-footer #logout {
    width: auto !important;
    margin-top: 0 !important;
  }
  .sidebar .side-footer .avatar {
    width: 27px;
    height: 27px;
  }
}
@media print {
  .event-copy {
    display: none !important;
  }
  .event-page {
    background: white !important;
  }
  .event-layout {
    display: block;
    padding: 0;
  }
  .event-layout .registration {
    max-width: 430px;
    margin: auto;
    color: black;
  }
}
