* {
  box-sizing: border-box;
}

:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #182230;
  background: #f5f7fb;
  font-synthesis: none;
}

body {
  margin: 0;
  min-width: 320px;
}

button, input {
  font: inherit;
}

.app {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
  padding: 42px 0 28px;
}

.topbar, .panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #64748b;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .13em;
}

h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 40px);
  letter-spacing: -.04em;
}

.subtitle, .muted {
  color: #667085;
}

.subtitle {
  margin: 8px 0 0;
}

.refresh-button {
  border: 0;
  border-radius: 9px;
  padding: 11px 16px;
  color: white;
  background: #2457d6;
  font-weight: 650;
  cursor: pointer;
}

.refresh-button:hover {
  background: #1947bb;
}

.refresh-button:disabled {
  opacity: .6;
  cursor: wait;
}

.refresh-button span {
  margin-right: 5px;
  font-size: 18px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 30px 0 22px;
}

.stat-card, .panel {
  border: 1px solid #e6eaf0;
  border-radius: 13px;
  background: white;
  box-shadow: 0 2px 8px rgb(16 24 40 / 3%);
}

.stat-card {
  padding: 19px 21px;
}

.stat-label {
  display: block;
  color: #667085;
  font-size: 13px;
  font-weight: 600;
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: 30px;
  letter-spacing: -.04em;
}

.panel {
  overflow: hidden;
}

.panel-heading {
  padding: 22px 22px 18px;
}

h2 {
  margin: 0;
  font-size: 18px;
}

.panel-heading p {
  margin: 6px 0 0;
  font-size: 12px;
}

.search-box input {
  width: min(280px, 38vw);
  border: 1px solid #d9e0ea;
  border-radius: 8px;
  padding: 10px 12px;
  outline: none;
}

.search-box input:focus {
  border-color: #2457d6;
  box-shadow: 0 0 0 3px rgb(36 87 214 / 12%);
}

.message {
  display: none;
  margin: 0 22px 14px;
  padding: 11px 13px;
  border-radius: 8px;
  color: #475467;
  background: #f2f4f7;
  font-size: 13px;
}

.message.visible {
  display: block;
}

.message.error {
  color: #9b1c1c;
  background: #fef3f2;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}

thead {
  background: #f8fafc;
}

th, td {
  padding: 13px 16px;
  border-top: 1px solid #edf0f4;
  font-size: 13px;
}

th {
  color: #667085;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
}

td {
  color: #344054;
}

td.name {
  color: #182230;
  font-weight: 650;
}

td.enquiry {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status {
  display: inline-block;
  border-radius: 999px;
  padding: 5px 9px;
  color: #475467;
  background: #f2f4f7;
  font-size: 11px;
  font-weight: 700;
}

.status.high_priority {
  color: #067647;
  background: #ecfdf3;
}

.status.standard {
  color: #175cd3;
  background: #eff8ff;
}

footer {
  padding: 18px 2px 0;
  color: #98a2b3;
  font-size: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media (max-width: 700px) {
  .app {
    width: min(100% - 28px, 1440px);
    padding-top: 26px;
  }

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

  .stats {
    gap: 9px;
  }

  .stat-card {
    padding: 14px;
  }

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

  .search-box, .search-box input {
    width: 100%;
  }
}
