:root {
  --bg: #f6f7f9;
  --panel: #ffffff;
  --ink: #1f2933;
  --muted: #64748b;
  --line: #d8dee7;
  --accent: #146c94;
  --accent-dark: #0f4e69;
  --danger: #b42318;
  --ok: #166534;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  display: grid;
  gap: 10px;
  padding: 12px 24px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 3;
}

.header-main {
  display: grid;
  grid-template-columns: minmax(150px, 260px) minmax(260px, 1fr) minmax(150px, 260px);
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
}

.brand-logo {
  display: block;
  width: min(240px, 24vw);
  height: auto;
  max-height: 64px;
  object-fit: contain;
}

.site-title {
  justify-self: center;
  text-align: center;
  color: #123f78;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
}

.header-spacer {
  min-height: 1px;
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 2px solid transparent;
  border-radius: 6px;
  padding: 6px 10px;
  color: var(--accent);
  font-weight: 600;
}

.nav-link:hover {
  background: #eef7fb;
  text-decoration: none;
}

.nav-link.active {
  border-color: var(--danger);
  background: #fff1f1;
  color: var(--danger);
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 0 0 2px rgba(180, 35, 24, 0.12);
}

.logout-form {
  display: inline;
}

.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 24px 56px;
}

.login-conference-banner {
  max-width: 1180px;
  margin: 18px auto 0;
  padding: 0 24px;
}

.login-conference-banner img {
  display: block;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #4b178d;
  aspect-ratio: 3 / 1;
  object-fit: cover;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.document-download-panel {
  border: 2px solid var(--accent);
  border-radius: 8px;
  background: #f1f8fb;
  padding: 24px;
  margin: 24px 0 20px;
}

.document-download-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.document-download-button {
  width: 100%;
  min-height: 56px;
  padding: 10px 14px;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
}

.button.is-disabled {
  border-color: var(--line);
  background: #e8edf3;
  color: var(--muted);
  cursor: not-allowed;
}

.document-download-meta {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.notice {
  border-left: 4px solid var(--accent);
  padding: 4px 0 4px 14px;
  margin: 14px 0 20px;
}

.page-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

h1, h2, h3 {
  margin: 0 0 12px;
  line-height: 1.2;
  letter-spacing: 0;
}

h1 {
  font-size: 28px;
}

h2 {
  font-size: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border: 1px solid var(--line);
}

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

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

th {
  background: #eef2f5;
  font-weight: 700;
}

.participant-photo-thumb {
  display: block;
  width: 54px;
  height: 54px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
}

.actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: #ffffff;
  padding: 8px 12px;
  font: inherit;
  cursor: pointer;
}

button:hover,
.button:hover {
  background: var(--accent-dark);
  text-decoration: none;
}

.button.secondary,
button.secondary {
  background: #ffffff;
  color: var(--accent);
}

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

form p {
  display: grid;
  gap: 6px;
  margin: 0 0 14px;
}

label {
  font-weight: 600;
}

fieldset {
  max-width: 680px;
}

input,
select,
textarea {
  width: 100%;
  max-width: 680px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  font: inherit;
  background: #ffffff;
}

input[type="checkbox"],
input[type="radio"] {
  width: auto;
}

.helptext,
.muted {
  color: var(--muted);
  font-size: 13px;
}

.errorlist {
  color: var(--danger);
  margin: 0 0 10px;
  padding-left: 20px;
}

.messages {
  margin-bottom: 18px;
}

.message {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  background: #ffffff;
}

.message.success {
  border-color: #86efac;
  color: var(--ok);
}

.message.error {
  border-color: #fca5a5;
  color: var(--danger);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.stat {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #ffffff;
}

.stat strong {
  display: block;
  font-size: 24px;
}

.badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 8px;
  background: #ffffff;
  font-size: 13px;
}

.field-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  margin: 0 0 14px;
}

.field-block legend {
  font-weight: 700;
  padding: 0 4px;
}

.field-block ul {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}

.field-block li {
  margin: 6px 0;
}

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

.slot-choice-block {
  max-width: 920px;
}

.slot-section-list {
  display: grid;
  gap: 18px;
  margin-top: 12px;
}

.slot-choice-section {
  display: grid;
  gap: 10px;
}

.slot-choice-section-title {
  margin: 0;
  border-left: 4px solid var(--accent);
  padding: 2px 0 2px 10px;
  color: var(--accent-dark);
  font-size: 16px;
  font-weight: 800;
}

.slot-choice-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
}

.payment-option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.payment-option {
  display: grid;
  gap: 12px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #ffffff;
}

.payment-option.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(20, 108, 148, 0.12);
}

.payment-option-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.payment-option-header h3 {
  margin: 0;
  font-size: 17px;
}

.payment-option-header h3.card-payment-title {
  color: var(--danger);
  font-weight: 800;
}

.payment-option-amount {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
}

.payment-option button {
  width: 100%;
}

.payment-option-rate {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.bank-account-no {
  font-style: italic;
}

.slot-choice {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #ffffff;
  font-weight: 500;
}

.slot-choice:has(input:checked) {
  border-color: var(--accent);
  background: #eef7fb;
}

.slot-choice:has(input:disabled) {
  background: #f8fafc;
  color: var(--muted);
}

.slot-choice-main {
  min-width: 0;
}

.slot-status {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.slot-status.full,
.full-slot {
  color: var(--danger);
  font-weight: 800;
}

.is-hidden {
  display: none;
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
  }

  .header-main {
    grid-template-columns: 1fr;
    gap: 8px;
    justify-items: center;
    width: 100%;
  }

  .brand {
    justify-self: center;
  }

  .brand-logo {
    width: min(220px, 72vw);
    max-height: 58px;
  }

  .site-title {
    font-size: 18px;
  }

  .nav {
    justify-content: flex-start;
  }

  .page {
    padding: 20px 14px 40px;
  }

  .login-conference-banner {
    margin-top: 14px;
    padding: 0 14px;
  }

  .login-conference-banner img {
    aspect-ratio: 3 / 1;
  }

  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
