:root {
  --ink: #192b4a;
  --muted: #5e6d84;
  --accent: #145ad3;
  --line: #d9e2ee;
  --paper: #fff;
  --bg: #f2f5fa;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
a {
  color: var(--accent);
}
button,
.action {
  border: 0;
  border-radius: 9px;
  background: var(--accent);
  color: white;
  padding: 10px 16px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  font-weight: 600;
}
button:disabled {
  opacity: 0.45;
  cursor: wait;
}
button.secondary {
  background: #e8eef9;
  color: var(--ink);
}
button.danger {
  background: #a52c3b;
}
button.small {
  padding: 6px 10px;
  font-size: 0.85rem;
}
input,
textarea,
select {
  display: block;
  border: 1px solid #bdc9d8;
  border-radius: 7px;
  padding: 10px;
  width: 100%;
  background: white;
  color: var(--ink);
}
textarea {
  min-height: 110px;
  resize: vertical;
}
label {
  display: grid;
  gap: 7px;
  font-weight: 600;
  font-size: 0.9rem;
}
label input[type="checkbox"] {
  width: auto;
  justify-self: start;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
p {
  line-height: 1.6;
}
h1 {
  font-size: clamp(1.8rem, 3vw, 3rem);
}
.top {
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 28px;
  flex-wrap: wrap;
}
.top nav {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}
.brand {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
}
.container {
  max-width: 1200px;
  margin: 32px auto;
  padding: 0 24px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
  margin-bottom: 24px;
}
.hero {
  background: #122947;
  color: white;
  padding: 55px 40px;
  border-radius: 18px;
  margin-bottom: 26px;
}
.hero p {
  color: #dce8fd;
}
.hero .eyebrow {
  color: #a7c7ff;
  letter-spacing: 0.08em;
  font-weight: 700;
}
.hero h1 {
  max-width: 850px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.form-grid .wide {
  grid-column: 1/-1;
}
.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 16px;
}
.message {
  padding: 12px 16px;
  border-radius: 8px;
  white-space: pre-wrap;
}
.message:not(:empty) {
  background: #e9f0fe;
}
.message.error {
  background: #ffe9e9;
  color: #8b1f2f;
}
.muted {
  color: var(--muted);
}
.badge {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 6px;
  background: #eef2f8;
  font-size: 0.8rem;
}
.layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: calc(100vh - 80px);
}
.sidebar {
  padding: 22px 16px;
  background: white;
  border-right: 1px solid var(--line);
}
.sidebar button {
  width: 100%;
  text-align: left;
  margin: 3px 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.9rem;
}
.sidebar button.active {
  background: #e8effd;
  color: #145ad3;
}
.work {
  padding: 28px;
  min-width: 0;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9rem;
}
th,
td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  max-width: 350px;
  white-space: pre-wrap;
}
th {
  background: #f6f8fc;
}
td button {
  margin: 3px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 16px;
  width: min(800px, 94vw);
  max-height: 90vh;
  padding: 26px;
}
dialog::backdrop {
  background: #15223588;
}
.dialog-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.dialog-top h2 {
  margin: 0;
}
.metric {
  padding: 20px;
  background: #eef3fb;
  border-radius: 12px;
}
.metric strong {
  display: block;
  font-size: 2rem;
  margin-top: 8px;
}
.agenda-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.agenda-list li {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.route-image {
  width: 100%;
  max-height: 210px;
  object-fit: cover;
  border-radius: 9px;
}
.qr {
  width: 220px;
  max-width: 100%;
  border: 1px solid var(--line);
}
.secret {
  overflow-wrap: anywhere;
  font-weight: 600;
}
.honeypot {
  position: absolute;
  left: -10000px;
}
.criteria-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 8px;
  margin-bottom: 10px;
}
.footer {
  text-align: center;
  padding: 28px;
  color: var(--muted);
  font-size: 0.85rem;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 3px solid #6c9ffd;
  outline-offset: 3px;
}
@media (max-width: 850px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 8px;
    overflow-x: auto;
    max-width: 100vw;
  }
  .sidebar button {
    width: auto;
    min-width: 150px;
  }
  .work {
    padding: 18px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 30px 24px;
  }
  .top {
    padding: 16px;
  }
  .criteria-row {
    grid-template-columns: 1fr 80px 80px auto;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
}
.congress-logo {
  display: block;
  width: min(100%, 380px);
  height: auto;
  margin: 0 0 24px;
  border-radius: 12px;
}
.institution-logo {
  display: block;
  width: min(100%, 220px);
  height: 160px;
  object-fit: contain;
  margin: 16px auto;
}
.organizer-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 24px;
  align-items: start;
}
.organizer {
  margin: 0;
  text-align: center;
}
.organizer img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: contain;
  object-position: center;
  margin-bottom: 16px;
}
.organizer figcaption {
  font-weight: 600;
}
