:root {
  font-family: Arial, sans-serif;
  color: #19385d;
  background: #f3f6fb;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  background: #0b234b;
  color: white;
  padding: 24px 4%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 4px solid #64c9f5;
}
header a {
  color: white;
}
h1 {
  margin: 8px 0;
}
main {
  max-width: 1360px;
  margin: auto;
  padding: 24px;
}
.layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
section {
  background: white;
  border: 1px solid #d6e1ee;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  min-width: 0;
}
h2 {
  font-size: 21px;
  margin-top: 0;
}
h3 {
  font-size: 16px;
}
label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin: 14px 0;
}
input,
textarea {
  display: block;
  width: 100%;
  font: inherit;
  padding: 12px;
  border: 1px solid #b8cee5;
  border-radius: 8px;
  margin-top: 6px;
}
textarea {
  resize: vertical;
}
button {
  height: 40px;
  padding: 0 16px;
  border: 1px solid #254878;
  border-radius: 9px;
  background: #0b234b;
  color: white;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
.green {
  background: #168361;
  border-color: #168361;
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.notice {
  background: #eaf2ff;
  padding: 16px;
  border-radius: 10px;
}
.muted {
  font-size: 14px;
  color: #58708d;
  line-height: 1.5;
}
.preview {
  border: 1px solid #cbdcf0;
  border-radius: 12px;
  padding: 22px;
  background: #f7faff;
}
.preview p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.recipients {
  max-height: 240px;
  overflow: auto;
  border: 1px solid #d6e1ee;
  border-radius: 8px;
}
.recipient {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  margin: 0;
  border-bottom: 1px solid #edf1f7;
}
.recipient input {
  width: 18px;
  height: 18px;
  margin: 0;
}
.recipient span {
  font-weight: 400;
  overflow-wrap: anywhere;
}
.recipient small {
  display: block;
  color: #58708d;
  margin-top: 5px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.message {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 12px;
  align-items: center;
  border-top: 1px solid #d6e1ee;
  padding: 16px 0;
}
.message button {
  height: 34px;
  font-size: 12px;
}
.badge {
  background: #eaf2ff;
  border-radius: 20px;
  padding: 5px 10px;
  display: inline-block;
  font-size: 13px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th {
  background: #0b234b;
  color: white;
  text-align: left;
}
td,
th {
  padding: 12px;
  border-bottom: 1px solid #d6e1ee;
  overflow-wrap: anywhere;
}
#error {
  color: #b42318;
}
#tracking {
  overflow: auto;
}
@media (max-width: 800px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .message {
    grid-template-columns: 1fr;
  }
  header {
    gap: 20px;
  }
  main {
    padding: 12px;
  }
}

#send-review {
  width: min(720px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid #cbdcf0;
  border-radius: 16px;
  color: #19385d;
}
#send-review::backdrop {
  background: rgba(10, 30, 60, 0.55);
}
.review-heading {
  padding: 20px 24px;
  background: #0b234b;
  color: white;
  border-bottom: 4px solid #64c9f5;
}
.review-heading h2 {
  margin: 8px 0 0;
}
.review-content {
  padding: 20px 24px;
  overflow-wrap: anywhere;
}
.review-content li {
  margin: 8px 0;
}
.review-actions {
  margin: 0;
  padding: 16px 24px;
  position: sticky;
  bottom: 0;
  background: white;
  border-top: 1px solid #d6e1ee;
}
#send-error {
  color: #b42318;
}
