/* TikitiPress organizer area. Scoped to .tpo so the theme is not affected. */
.tpo {
  --tpo-ink: #0d0d0d;
  --tpo-ink-2: #1c1c1c;
  --tpo-gold: #fcdc04;
  --tpo-text: #0d0d0d;
  --tpo-muted: #555;
  --tpo-line: #e3e3dd;
  --tpo-soft: #f5f5f3;
  --tpo-ok: #1a7f45;
  --tpo-bad: #b3261e;
  --tpo-warn: #7a5200;
  color: var(--tpo-text);
  font-size: 16px;
  line-height: 1.5;
}
.tpo *, .tpo *::before, .tpo *::after { box-sizing: border-box; }
.tpo :focus-visible { outline: 3px solid var(--tpo-ink); outline-offset: 2px; }

.tpo .tpo-h2 { margin: 0 0 6px; font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: -0.02em; color: var(--tpo-text) !important; }
.tpo h3, .tpo h4 { color: var(--tpo-text) !important; margin: 0; }
.tpo h3 { font-size: 19px; font-weight: 800; }
.tpo h4 { font-size: 16px; font-weight: 700; margin: 22px 0 10px; }
.tpo .tpo-sub { color: var(--tpo-muted); margin: 0 0 18px; }
.tpo .tpo-hint { display: block; color: var(--tpo-muted); font-size: 13px; margin-top: 4px; font-weight: 400; }
.tpo .tpo-kicker { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--tpo-muted); }
.tpo a { color: var(--tpo-ink); }

/* Cards */
.tpo .tpo-card { background: #fff; border: 1px solid var(--tpo-line); border-radius: 18px; padding: 24px; margin: 0 0 20px; }
.tpo .tpo-card--narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
.tpo .tpo-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.tpo .tpo-empty { color: var(--tpo-muted); padding: 10px 0; }

/* Dashboard header and tabs */
.tpo-dash { max-width: 1200px; margin: 0 auto; }
.tpo .tpo-dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.tpo .tpo-tabs { display: flex; gap: 4px; flex-wrap: wrap; background: var(--tpo-ink); padding: 6px; border-radius: 14px; margin-bottom: 18px; }
.tpo .tpo-tabs a { color: #d9d9d9 !important; text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 16px; border-radius: 10px; min-height: 44px; display: inline-flex; align-items: center; }
.tpo .tpo-tabs a:hover { color: #fff !important; background: var(--tpo-ink-2); }
.tpo .tpo-tabs a[aria-current="page"] { background: var(--tpo-gold); color: var(--tpo-ink) !important; }

/* Tiles: ticket stubs */
.tpo .tpo-tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: 0 0 20px; }
.tpo .tpo-tile { position: relative; background: var(--tpo-ink); color: #fff; border-radius: 16px; padding: 18px 22px; overflow: hidden; }
.tpo .tpo-tile::after { content: ""; position: absolute; right: -9px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; background: var(--tpo-soft); }
.tpo .tpo-tile-label { margin: 0; color: #bdbdbd; font-size: 13px; }
.tpo .tpo-tile-value { margin: 4px 0 0; font-size: 24px; font-weight: 800; color: var(--tpo-gold); font-variant-numeric: tabular-nums; line-height: 1.2; }
.tpo .tpo-tile-note { margin: 4px 0 0; color: #bdbdbd; font-size: 12px; }

/* Alerts and pills */
.tpo .tpo-alert { border-radius: 12px; padding: 12px 16px; margin: 0 0 16px; border: 1px solid; }
.tpo .tpo-alert ul { margin: 6px 0 0 18px; padding: 0; }
.tpo .tpo-alert--ok { background: #e9f6ee; border-color: #b8e0c6; color: #12512e; }
.tpo .tpo-alert--bad { background: #fbe9e7; border-color: #f2c4bf; color: #7d1d17; }
.tpo .tpo-alert--warn { background: #fff7d1; border-color: #f1df8a; color: #5c4300; }
.tpo .tpo-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.tpo .tpo-pill--ok { background: #e3f4e9; color: var(--tpo-ok); }
.tpo .tpo-pill--bad { background: #fbe9e7; color: var(--tpo-bad); }
.tpo .tpo-pill--warn { background: #fff4c2; color: var(--tpo-warn); }
.tpo .tpo-pill--muted { background: #eee; color: #555; }
.tpo .tpo-badge { display: inline-flex; align-items: center; gap: 4px; background: var(--tpo-gold); color: var(--tpo-ink); font-weight: 700; font-size: 13px; padding: 3px 10px; border-radius: 999px; }

/* Tables */
.tpo .tpo-scroll { overflow-x: auto; }
.tpo .tpo-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.tpo .tpo-table th, .tpo .tpo-table td { padding: 11px 12px; border-bottom: 1px solid var(--tpo-line); text-align: left; vertical-align: middle; }
.tpo .tpo-table thead th { background: var(--tpo-soft); font-weight: 700; font-size: 13px; color: #333; }
.tpo .tpo-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tpo .tpo-table code { font-size: 13px; letter-spacing: .05em; }
.tpo .tpo-row-actions a { margin-right: 10px; font-weight: 600; white-space: nowrap; }
.tpo .tpo-table--form input { width: 100%; min-width: 90px; }
.tpo .tpo-table--form input[type="checkbox"] { width: 22px; height: 22px; min-width: 0; }

/* Forms */
.tpo .tpo-form fieldset { border: 0; padding: 0; margin: 0 0 22px; }
.tpo .tpo-form legend { font-weight: 800; font-size: 17px; margin: 0 0 10px; padding: 0; }
.tpo .tpo-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.tpo .tpo-field { display: block; font-weight: 600; font-size: 14px; margin: 0 0 14px; }
.tpo .tpo-field input, .tpo .tpo-field select, .tpo .tpo-field textarea, .tpo .tpo-table--form input:not([type="checkbox"]) {
  display: block; width: 100%; margin-top: 6px; padding: 11px 12px; border: 2px solid #d5d5cf; border-radius: 10px;
  background: #fff; color: var(--tpo-text); font: inherit; font-size: 16px; font-weight: 400; box-shadow: none; min-height: 46px;
}
.tpo .tpo-table--form input:not([type="checkbox"]) { margin-top: 0; }
.tpo .tpo-field input:focus, .tpo .tpo-field select:focus, .tpo .tpo-field textarea:focus, .tpo .tpo-table--form input:focus { border-color: var(--tpo-ink); outline: none; }
.tpo .tpo-field input[readonly], .tpo .tpo-table--form input[readonly] { background: #f0f0ec; color: #555; }
.tpo .tpo-field input[type="file"] { padding: 9px; }
.tpo .tpo-check { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 18px; font-size: 15px; }
.tpo .tpo-check input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.tpo .tpo-inline { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 16px; }
.tpo .tpo-inline .tpo-field { margin: 0; min-width: 220px; }
.tpo .tpo-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Buttons: 3px borders like the rest of the brand */
.tpo .tpo-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 12px; border: 3px solid transparent; font: inherit; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; }
.tpo .tpo-btn--gold { background: var(--tpo-gold); border-color: var(--tpo-gold); color: var(--tpo-ink) !important; }
.tpo .tpo-btn--gold:hover { background: #ffe94d; border-color: #ffe94d; }
.tpo .tpo-btn--dark { background: var(--tpo-ink); border-color: var(--tpo-ink); color: #fff !important; }
.tpo .tpo-btn--dark:hover { border-color: var(--tpo-gold); }
.tpo .tpo-btn--big { min-height: 54px; padding: 0 28px; font-size: 16px; }
.tpo .tpo-link { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--tpo-ink); text-decoration: underline; cursor: pointer; }

/* Scanner pairing */
.tpo .tpo-token { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.tpo .tpo-pair { width: 170px; background: #fff; border-radius: 8px; }
.tpo .tpo-pair svg { display: block; width: 100%; height: auto; }
.tpo .tpo-code { font-family: Consolas, Monaco, monospace; font-size: 20px; letter-spacing: .12em; margin: 6px 0 0; }

/* Event page: organizer and report */
.tpo-event-foot { margin: 1.5em 0; }
.tpo .tpo-organizer { margin: 0 0 10px; }
.tpo .tpo-report { border: 1px solid var(--tpo-line); border-radius: 12px; padding: 0 16px; }
.tpo .tpo-report summary { cursor: pointer; padding: 12px 0; font-weight: 600; font-size: 14px; color: var(--tpo-muted); }
.tpo .tpo-report[open] { padding-bottom: 16px; }

/* WordPress login form inside the card */
.tpo #loginform p { margin: 0 0 12px; }
.tpo #loginform label { display: block; font-weight: 600; font-size: 14px; }
.tpo #loginform input[type="text"], .tpo #loginform input[type="password"] { width: 100%; padding: 11px 12px; border: 2px solid #d5d5cf; border-radius: 10px; font-size: 16px; margin-top: 6px; }
.tpo #loginform input[type="submit"] { background: var(--tpo-gold); border: 3px solid var(--tpo-gold); color: var(--tpo-ink); font-weight: 700; padding: 12px 24px; border-radius: 12px; cursor: pointer; }

@media (max-width: 600px) {
  .tpo .tpo-card { padding: 18px; border-radius: 14px; }
  .tpo .tpo-tabs a { padding: 10px 12px; font-size: 14px; }
}
