.exchanges-manage .exchanges-content {
  max-width: 1300px;
  padding-top: clamp(16px, 3vw, 30px);
}

.exchanges-manage .manage-intro { margin-bottom: 22px; }
.exchanges-manage .manage-intro h1 {
  max-width: none;
  margin: 10px 0 4px;
  font-size: clamp(30px, 4vw, 48px);
  overflow-wrap: anywhere;
}
.exchanges-manage .manage-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; }
.exchanges-manage .manage-intro p { margin: 0; font-size: clamp(15px, 1.6vw, 20px); }
.exchanges-manage .manage-card, .exchanges-manage .manage-secondary > section,
.exchanges-manage .exchange-admission {
  border: 1px solid #cbd4da;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 2px 4px #04182f12;
  overflow-wrap: anywhere;
}
.exchanges-manage .manage-card, .exchanges-manage .manage-secondary > section, .exchanges-manage .exchange-admission {
  margin: 0 0 18px;
  padding: clamp(14px, 2.2vw, 25px);
}
.exchanges-manage .manage-card h2 { margin: 0 0 5px; font-size: clamp(20px, 2.65vw, 30px); line-height: 1.22; }
.exchanges-manage .manage-card p { margin: 0 0 12px; }
.exchanges-manage .manage-card p:last-child { margin-bottom: 0; }
.exchanges-manage :is(.manage-intro, .manage-card) p { color: #414b59; }
.exchanges-manage .manage-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-block: 8px;
}
.manage-overview > div { padding: 9px 14px; }
.manage-overview > :nth-child(n + 4) { border-top: 1px solid #d9e0e4; }
.manage-overview > :not(:nth-child(3n + 1)) { border-left: 1px solid #d9e0e4; }
.manage-overview dt { color: #414b59; font-weight: 600; }
.manage-overview dd { margin: 3px 0 0; font-size: clamp(16px, 1.5vw, 20px); font-weight: 700; line-height: 1.3; }
.manage-overview .exchange-event-schedule {
  --exchange-event-gap: 6px;
  font-size: clamp(16px, 1.2vw, 17px);
}
.exchanges-manage .manage-overview dd p { margin: 5px 0 0; font-size: 14px; font-weight: 400; }
.manage-badge { display: inline-block; padding: 3px 12px; border-radius: 7px; background: #eef3f4; color: #04182f; font-weight: 700; }
.manage-badge-ready { background: #d3fcf3; }
.manage-badge-pending { background: #ffebc6; }

.exchanges-manage:has(.draw-confirmation[open]) { overflow: hidden; }
.draw-confirmation {
  box-sizing: border-box;
  position: fixed;
  width: min(70rem, calc(100% - 32px));
  max-height: calc(100% - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: clamp(20px, 4vw, 32px);
  padding-top: clamp(32px, 4vw, 44px);
  overflow: auto;
  overscroll-behavior: contain;
  border: 0;
  border-radius: clamp(16px, 2.4vw, 24px);
  background: #fff;
  color: #04182f;
  text-align: center;
}
.draw-confirmation::backdrop { background: #142643d9; }
.draw-confirmation-image {
  display: block;
  width: min(72%, 38rem);
  height: auto;
  margin: 0 auto 14px;
}
.draw-confirmation h2 {
  margin: 0 0 12px;
  font-size: clamp(23px, 4.5vw, 40px);
  line-height: 1.15;
}
.draw-confirmation h2:focus { outline: none; }
.draw-confirmation p {
  margin: 0 0 14px;
  font-size: clamp(15px, 1.4vw, 20px);
  line-height: 1.45;
}
.draw-confirmation .draw-confirmation-caption {
  margin-bottom: 8px;
  color: #414b59;
  font-size: clamp(13px, 1.15vw, 16px);
}
.draw-confirmation form { max-width: none; }
.draw-confirmation svg { width: 24px; height: 24px; flex: none; }
.draw-confirmation .draw-confirmation-close,
.draw-confirmation .draw-confirmation-later {
  min-height: 44px;
  background: transparent;
  color: inherit;
}
.draw-confirmation .draw-confirmation-close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  width: 44px;
  place-items: center;
  padding: 0;
}
.draw-confirmation .draw-confirmation-send {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: clamp(48px, 5vw, 62px);
  padding: 9px 12px;
  border-radius: 12px;
  background: #04182f;
  color: #d3fcf3;
  font-size: clamp(16px, 1.55vw, 22px);
  font-weight: 700;
}
.draw-confirmation .draw-confirmation-send:disabled { opacity: .65; cursor: wait; }
.draw-confirmation .draw-confirmation-later {
  margin-top: 4px;
  font-size: clamp(16px, 1.4vw, 19px);
}

.exchanges-manage .manage-whatsapp { margin: 0 0 14px; }
.manage-whatsapp svg { flex: none; }
.exchanges-manage label[for="exchange-invitation-url"] { display: block; margin: 0 0 4px; font-weight: 600; }
.exchanges-manage #exchange-invitation-url {
  display: block;
  width: 100%;
  padding: 8px 12px;
  min-height: 44px;
  border: 1px solid #abb7c2;
  background: #f5f7f8;
  color: inherit;
}
.manage-actions { display: flex; flex-wrap: wrap; align-items: start; gap: 8px; margin-top: 10px; }
.exchanges-manage .manage-card form { max-width: none; }
.exchanges-manage .manage-card button, .exchanges-manage .manage-card input[type="submit"],
.exchanges-manage a.manage-button {
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  padding: 7px 18px;
  border-radius: 7px;
  background: #04182f;
  color: #d3fcf3;
  font-weight: 700;
  text-decoration: none;
}
.exchanges-manage a.manage-button { display: inline-flex; justify-content: center; align-items: center; gap: 9px; text-align: center; }
.exchanges-manage .manage-card :is(button, input[type="submit"]):hover:not(:disabled), .exchanges-manage a.manage-button:hover { background: #163652; }
.exchanges-manage .manage-card :is(button, input).manage-button-secondary { border: 1px solid #04182f; background: white; color: #04182f; }
.exchanges-manage .manage-card :is(button, input).manage-button-secondary:hover:not(:disabled) { background: #eafbf6; }
.exchanges-manage a.manage-button-secondary { border: 1px solid #04182f; background: #fff; color: #04182f; }
.exchanges-manage a.manage-button-secondary:hover { background: #eafbf6; }
.manage-participants-link { margin-top: 16px; }
.exchanges-manage .manage-card input[type="submit"]:disabled { background: #d9dee2; color: #414b59; border-color: transparent; cursor: default; }
.exchanges-manage .manage-status:not(:empty) { margin: 10px 0; }
.exchanges-manage .manage-status:empty { margin: 0; }
.manage-people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.manage-confirmed, .manage-pending { list-style: none; margin: 10px 0 0; padding: 0; }
.manage-confirmed { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
.manage-confirmed li { display: flex; gap: 10px; align-items: center; font-weight: 600; min-width: 0; }
.manage-initial { display: grid; flex: 0 0 36px; width: 36px; height: 36px; place-items: center; border-radius: 50%; background: #d3fcf3; }
.manage-pending li { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; justify-content: space-between; }
.manage-pending li + li { margin-top: 8px; padding-top: 8px; border-top: 1px solid #d9e0e4; }
.exchanges-manage .manage-empty { padding-block: 12px; text-align: center; }
.manage-confirmation { margin-top: 12px; }
.manage-confirmation label { display: flex; align-items: start; gap: 9px; min-height: 44px; cursor: pointer; }
.manage-confirmation input[type="checkbox"] { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: #04182f; }
.manage-draw-details { margin-top: 12px; border-top: 1px solid #d9e0e4; }
.manage-draw-details summary { min-height: 44px; padding: 10px 0; font-weight: 600; cursor: pointer; }
.manage-draw-details article { padding: 10px 0; border-top: 1px solid #d9e0e4; }
.manage-draw-actions { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.manage-draw-rows { list-style: none; margin: 8px 0 0; padding: 0; }
.manage-draw-rows > li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 16px; padding: 6px 0; overflow-wrap: anywhere; }
.manage-draw-rows > li + li { border-top: 1px solid #d9e0e4; }
.assignment-notice-rows > li { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 12rem); }
.assignment-notice-state, .assignment-notices-counter { color: #414b59; }
.exchanges-manage .manage-draw-rows form { margin: 0; }
.exchanges-manage .manage-draw-rows :is(button, input).manage-withdraw-action { color: #962926; }
.assignment-notice-resend { justify-self: start; }
.assignment-notice-resend > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 6px 12px;
  border: 1px solid #04182f;
  border-radius: 7px;
  background: #fff;
  text-align: center;
}
.assignment-notice-resend > summary:hover { background: #eafbf6; }
.assignment-notice-resend[open] { grid-column: 1 / -1; width: 100%; }
.assignment-notice-confirmation { margin-top: 8px; padding: 12px; border-radius: 7px; background: #eef3f4; }
.exchanges-manage .assignment-notice-confirmation form { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.assignment-notice-confirmation a { display: inline-flex; align-items: center; min-height: 44px; }
.manage-secondary { color: #414b59; }

@media (max-width: 680px) {
  .manage-draw-actions { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .assignment-notice-rows > li { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .assignment-notice-rows > li > :is(form, details) { grid-column: 1 / -1; }
  .manage-people { grid-template-columns: 1fr; gap: 0; }
  .exchanges-manage .manage-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .manage-overview > :not(:nth-child(3n + 1)) { border-left: 0; }
  .manage-overview > :nth-child(2), .manage-overview > :last-child { border-left: 1px solid #d9e0e4; }
  .manage-overview-wide { grid-column: 1 / -1; border-top: 1px solid #d9e0e4; }
  .manage-overview > div { padding-inline: 8px; }
  .manage-overview .exchange-event-schedule { --exchange-event-gap: 4px; }
  .manage-overview .exchange-event-time { font-size: 0.875em; }
  .manage-overview .exchange-event-icon { width: 18px; height: 18px; }
  .exchanges-manage a.manage-whatsapp { width: 100%; }
  .exchanges-manage .manage-actions button { padding-inline: 10px; font-size: 13px; }
}
@media (max-width: 360px) {
  .manage-confirmed { grid-template-columns: 1fr; }
}
