:root {
  color-scheme: light;
  --ink: #000000;
  --muted: #5f5a52;
  --line: #ded5b4;
  --paper: #fffff0;
  --cream: #ffffcc;
  --soft: #fffbe1;
  --accent: #740000;
  --accent-2: #cfb53b;
  --danger: #a93636;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Garamond, "Adobe Garamond Pro", "EB Garamond", Georgia, serif;
}

a {
  color: var(--accent);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: white;
  padding: 0 16px;
  cursor: pointer;
  line-height: 1.2;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease, box-shadow 120ms ease, transform 80ms ease;
}

button:hover {
  box-shadow: 0 0 0 2px rgba(207, 181, 59, 0.32);
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

button:active {
  transform: translateY(1px);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.18);
}

button.secondary {
  background: var(--soft);
  color: var(--ink);
  border: 1px solid var(--line);
}

button.danger {
  background: var(--danger);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--ink);
  font-size: 16px;
  padding: 10px 12px;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

.shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 18px 56px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.brand {
  color: var(--ink);
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 12px;
  align-items: center;
}

.hero {
  display: grid;
  gap: 10px;
  padding: 28px 0 14px;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: 0;
  font-weight: 700;
}

.hero p {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

.event-hero h1 {
  max-width: 800px;
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.12;
  font-weight: 600;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 24px;
  border-top: 2px solid var(--ink);
}

.card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  min-height: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 22px 0;
  align-items: center;
}

.card h2,
.card h3 {
  margin: 0;
  font-size: 24px;
}

.meta {
  color: var(--muted);
  line-height: 1.45;
}

.event-description {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.listing-blurb {
  max-width: 700px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.4;
}

.panel {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 24px;
}

.event-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.ticket-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.ticket-row h3 {
  margin: 0 0 4px;
}

.ticket-row input {
  text-align: center;
}

.discount-code {
  margin-top: 16px;
}

.discount-note {
  color: var(--accent);
  font-size: 16px;
  line-height: 1.35;
  margin-top: 6px;
}

.ticket-drop-note h2 {
  margin: 0 0 8px;
}

.ticket-drop-note p {
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.confirmation-details {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 18px;
}

.confirmation-details h2 {
  margin-top: 0;
}

.confirmation-details p {
  line-height: 1.45;
}

.confirmation-lead {
  color: var(--ink) !important;
  font-size: 24px !important;
  font-weight: 700;
}

.checkout-box,
.admin-box {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: white;
  padding: 18px;
}

.checkout-box {
  position: sticky;
  top: 18px;
}

.total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 14px;
  font-size: 20px;
  font-weight: 750;
}

.support-shell {
  max-width: 920px;
}

.support-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 34px;
  align-items: start;
  padding-top: 42px;
}

.support-hero {
  padding-top: 0;
}

.eyebrow {
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
  margin: 0;
}

.support-box {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: white;
  padding: 18px;
}

.amount-options {
  border: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 0 0 16px;
  padding: 0;
}

.amount-options legend {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 8px;
}

.amount-options label {
  display: block;
}

.amount-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.amount-options span {
  display: grid;
  min-height: 48px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--accent);
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
}

.amount-options input:checked + span {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.featured-amount span {
  border-color: var(--accent-2);
  box-shadow: inset 0 0 0 1px var(--accent-2);
}

.custom-amount {
  margin-bottom: 16px;
}

.money-input {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  overflow: hidden;
}

.money-input span {
  color: var(--muted);
  padding-left: 12px;
}

.money-input input {
  border: 0;
  border-radius: 0;
}

.support-disclaimer {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
  margin: 12px 0 0;
}

.support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.support-actions a {
  border: 1px solid var(--accent);
  border-radius: 4px;
  color: var(--accent);
  min-height: 40px;
  padding: 9px 12px;
  text-decoration: none;
}

.support-actions a[aria-disabled="true"] {
  border-color: var(--line);
  color: var(--muted);
  cursor: default;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.full {
  grid-column: 1 / -1;
}

.form-section {
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 14px;
}

.form-section legend {
  color: var(--accent);
  font-weight: 700;
  padding: 0 8px;
}

.score-summary {
  border-top: 1px solid var(--line);
  color: var(--accent);
  font-weight: 700;
  padding-top: 12px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.login-panel {
  max-width: 440px;
  margin: 88px auto 0;
}

.login-panel .form-grid {
  grid-template-columns: 1fr;
}

.login-panel .actions {
  justify-content: center;
}

.admin-toolbar {
  justify-content: flex-end;
}

.admin-shell {
  max-width: 1280px;
}

.dashboard-hero {
  padding-bottom: 10px;
}

.dashboard-message {
  min-height: 20px;
  margin: -10px 0 16px;
  color: var(--muted);
  font-weight: 700;
}

.dashboard-message.error {
  color: var(--danger);
}

.tabbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 8px 0 24px;
  padding: 12px 0;
}

.tabbar button {
  min-height: 38px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}

.tabbar button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.85fr);
  gap: 22px;
  align-items: start;
}

.section-heading,
.filterbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.section-heading h2,
.admin-box h2 {
  margin-top: 0;
}

.table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.oversold-row {
  background: #fff3f0;
}

.oversold-badge {
  display: inline-block;
  border: 1px solid var(--danger);
  border-radius: 4px;
  color: var(--danger);
  font-size: 13px;
  font-weight: 700;
  margin-left: 6px;
  padding: 2px 6px;
}

.link-button {
  min-height: 0;
  background: transparent;
  color: var(--accent);
  padding: 0;
  text-align: left;
  text-decoration: underline;
}

.compact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.compact-row button {
  min-height: 34px;
}

.manual-ticket-grid {
  display: grid;
  gap: 10px;
}

.manual-ticket-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px 160px;
  gap: 12px;
  align-items: end;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.event-builder {
  display: grid;
  gap: 12px;
}

.builder-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.builder-bin {
  border: 1px solid var(--line);
  padding: 12px;
}

.builder-bin h4 {
  margin: 0 0 10px;
}

.builder-palette,
.drop-zone {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.drop-zone {
  align-items: flex-start;
  background: var(--soft);
  border: 1px dashed var(--line);
  min-height: 58px;
  padding: 10px;
}

.drop-zone.drag-over {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.builder-palette {
  border-top: 1px solid var(--line);
  margin-top: 10px;
  padding-top: 10px;
}

.builder-chip {
  align-items: flex-start;
  background: white;
  border-color: var(--line);
  color: var(--ink);
  cursor: grab;
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  height: auto;
  min-height: 36px;
  padding: 7px 10px;
  text-align: left;
}

.builder-chip.assigned {
  border-color: var(--accent);
}

.builder-chip small,
.builder-ticket span {
  color: var(--muted);
  font-size: 12px;
}

.ticket-drop-zone {
  display: grid;
  width: 100%;
}

.builder-ticket {
  background: white;
  border: 1px solid var(--line);
  display: grid;
  gap: 8px;
  padding: 10px;
}

.discount-ticket-zone {
  min-height: 42px;
}

.check-grid {
  display: grid;
  gap: 8px;
}

.check-grid label,
.task-line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 16px;
}

.artist-due {
  display: block;
  margin-top: 8px;
}

.artist-events {
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 14px;
}

.event-association {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(140px, 0.8fr) minmax(120px, 0.6fr);
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.event-association label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 16px;
}

.check-grid input,
.task-line input,
.admin-table input[type="checkbox"] {
  width: auto;
}

.task-event {
  margin: 0 8px 8px 0;
}

.import-table td:first-child {
  min-width: 280px;
}

.import-table select {
  min-width: 150px;
}

.compact-input {
  min-width: 72px;
  max-width: 92px;
}

.compact-notes {
  min-height: 72px;
  min-width: 180px;
}

.import-workspace {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.import-sidebar {
  position: sticky;
  top: 18px;
}

.import-sidebar h3 {
  margin: 0 0 8px;
}

.import-sidebar h3 + h3 {
  margin-top: 18px;
}

.sidebar-row {
  display: block;
  margin: 0 0 8px;
}

.muted-row {
  opacity: 0.6;
}

.duplicate-note {
  color: var(--danger);
  font-weight: 700;
  margin: 8px 0 4px;
}

.ticket-split-grid {
  display: grid;
  gap: 8px;
  min-width: 260px;
}

.ticket-split-row {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) 72px 92px;
  gap: 8px;
  align-items: center;
}

.import-pager button.active {
  background: var(--accent);
  color: white;
}

.playbook-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
}

.playbook-source {
  position: sticky;
  top: 18px;
}

.playbook-facts {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px 14px;
  margin: 0;
}

.playbook-facts dt {
  color: var(--muted);
  font-weight: 700;
}

.playbook-facts dd {
  margin: 0;
  line-height: 1.4;
}

.playbook-output {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.playbook-section pre {
  margin: 0;
  white-space: pre-wrap;
  color: var(--ink);
  font-family: Garamond, "Adobe Garamond Pro", "EB Garamond", Georgia, serif;
  font-size: 17px;
  line-height: 1.45;
}

.print-sheet {
  display: none;
}

.check-cell {
  width: 72px;
}

.status-guide {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 14px;
}

.status-guide summary {
  color: var(--accent);
  cursor: pointer;
  font-weight: 700;
}

.status-guide dl {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 8px 12px;
  margin: 12px 0 0;
}

.status-guide dt {
  font-weight: 700;
}

.status-guide dd {
  color: var(--muted);
  margin: 0;
}

.import-guide p {
  margin-bottom: 0;
}

.discount-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.ticket-admin-row {
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.discount-pill {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.discount-pill button {
  min-height: 32px;
  padding: 0 10px;
}

.proof-asset-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.proof-asset-row {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) minmax(140px, auto) auto auto auto;
  padding: 8px 0;
}

.proof-link {
  display: inline-block;
  margin: 0 10px 10px 0;
}

.proof-views blockquote {
  border-left: 3px solid var(--accent);
  color: var(--ink);
  margin: 10px 0;
  padding-left: 12px;
}

.settings-section {
  border-top: 1px solid var(--line);
  margin-top: 10px;
  padding-top: 14px;
}

.settings-section:first-child {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.settings-section h3 {
  margin: 0;
}

.list {
  display: grid;
  gap: 18px;
}

.event-list-section {
  display: grid;
  gap: 10px;
}

.event-list-section h3 {
  margin: 0;
  font-size: 18px;
}

.list button {
  height: auto;
  min-height: 0;
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 12px;
  text-align: left;
}

.list button.active {
  border-color: var(--accent);
  background: var(--soft);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.inline-actions {
  margin-top: 0;
}

.notice {
  border-left: 4px solid var(--accent-2);
  background: var(--soft);
  padding: 12px 14px;
  margin: 16px 0;
}

.event-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  color: var(--accent);
  padding: 0 14px;
  text-decoration: none;
}

.swatch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.swatch-panel {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 22px;
}

.swatch-panel.cream {
  background: #ffffcc;
}

.swatch-panel.ivory {
  background: #fffff0;
}

.sample-list {
  margin-top: 28px;
  border-top: 2px solid var(--ink);
}

.sample-event {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}

.sample-event h2 {
  margin: 0 0 6px;
  font-size: 24px;
}

.error {
  color: var(--danger);
}

@media (max-width: 820px) {
  .event-layout,
  .support-page,
  .admin-layout,
  .dashboard-grid,
  .playbook-grid,
  .event-association,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .checkout-box {
    position: static;
  }

  .playbook-source {
    position: static;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .card,
  .sample-event,
  .swatch-grid,
  .manual-ticket-row,
  .import-workspace {
    grid-template-columns: 1fr;
  }
}

@media print {
  body * {
    visibility: hidden;
  }

  #attendee-print-sheet,
  #attendee-print-sheet * {
    visibility: visible;
  }

  #attendee-print-sheet {
    display: block;
    position: absolute;
    inset: 0;
    padding: 24px;
    background: white;
    color: black;
    font-family: Georgia, serif;
  }

  #attendee-print-sheet h1 {
    font-size: 24px;
    margin: 0 0 18px;
  }

  #attendee-print-sheet table {
    width: 100%;
    border-collapse: collapse;
  }

  #attendee-print-sheet th,
  #attendee-print-sheet td {
    border: 1px solid #000;
    padding: 8px;
    text-align: left;
  }
}

@media (max-width: 600px) {
  .shell {
    padding: 18px 14px 40px;
  }

  .topbar {
    gap: 12px;
    padding-bottom: 14px;
  }

  .brand {
    font-size: 20px;
    line-height: 1.15;
  }

  .nav,
  .nav a,
  .event-link,
  .actions,
  .actions button {
    width: 100%;
  }

  .nav a,
  .event-link,
  .actions button {
    justify-content: center;
    text-align: center;
  }

  .hero {
    padding: 22px 0 10px;
  }

  .hero h1,
  .event-hero h1 {
    font-size: 32px;
    line-height: 1.08;
  }

  .hero p {
    font-size: 16px;
  }

  .event-layout {
    gap: 18px;
  }

  .support-page {
    gap: 22px;
    padding-top: 24px;
  }

  .panel {
    margin-top: 18px;
    padding-top: 10px;
  }

  .ticket-row {
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: stretch;
    padding: 16px 0;
  }

  .ticket-row h3 {
    font-size: 20px;
    line-height: 1.2;
  }

  .ticket-row label {
    grid-template-columns: minmax(0, 1fr) 104px;
    align-items: center;
    gap: 12px;
  }

  .checkout-box,
  .admin-box {
    padding: 16px;
  }

  .checkout-box h2 {
    margin-top: 0;
  }

  .total {
    font-size: 19px;
  }
}

@media (max-width: 380px) {
  .shell {
    padding-inline: 12px;
  }

  .hero h1,
  .event-hero h1 {
    font-size: 28px;
  }

  .ticket-row label {
    grid-template-columns: 1fr;
  }
}
