:root {
  --ink: #112437;
  --muted: #54697f;
  --paper: #f4f8fc;
  --card: #ffffff;
  --line: #d7e2ed;
  --accent: #0e5a87;
  --warn: #b77807;
  --good: #148061;
  --radius: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  font-family: "Manrope", "Segoe UI", sans-serif;
  background:
    radial-gradient(900px 360px at 110% -20%, #d8eef7 0%, transparent 58%),
    radial-gradient(780px 340px at -20% 100%, #ffe7dc 0%, transparent 58%),
    var(--paper);
  line-height: 1.45;
}

.wrap {
  width: min(1280px, calc(100vw - 12px));
  margin: 8px auto 14px;
}

.hero {
  border-radius: 20px;
  padding: 10px 12px;
  background: linear-gradient(125deg, #0d2f4f, #0672a8);
  color: #fff;
  box-shadow: 0 14px 30px rgba(13, 47, 79, 0.25);
}

.head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-logo {
  width: clamp(36px, 4.8vw, 50px);
  height: auto;
  flex: 0 0 auto;
}

.title {
  margin: 0;
  font-family: "Outfit", "Manrope", sans-serif;
  font-size: clamp(22px, 3.2vw, 30px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.sub {
  margin: 3px 0 0;
  font-size: clamp(12px, 1.4vw, 14px);
  opacity: 0.94;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 700;
  padding: 7px 11px;
  font-size: 12px;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.24);
}

.card {
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 10px 24px rgba(17, 36, 55, 0.08);
  padding: 10px;
}

h2 {
  margin: 0;
  font-family: "Outfit", "Manrope", sans-serif;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.meta {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.table-shell {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--card);
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: #f2f7fc;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
}

tbody td {
  padding: 7px 10px;
  border-bottom: 1px solid #edf2f6;
  vertical-align: top;
  font-size: 13px;
}

tbody tr:last-child td {
  border-bottom: none;
}

.company {
  font-weight: 700;
}

.contact {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #e7f4ff;
  color: #0e5a87;
}

.tag.office {
  background: #fff4e5;
  color: var(--warn);
}

.tag.shock {
  background: #e5f5ef;
  color: var(--good);
}

.tag.overdue {
  background: #fdecee;
  color: var(--bad);
}

.mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #c9d8e8;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  background: #fff;
}

.mini-btn:hover {
  background: #f2f7fd;
}

.empty {
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #fbfdff;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}

@media (max-width: 760px) {
  .wrap { width: min(1280px, calc(100vw - 10px)); margin-top: 6px; }
  .hero { padding: 10px; }
  .brand-lockup { width: 100%; flex-direction: column; align-items: flex-start; gap: 8px; }
  .brand-logo { width: min(50px, 16vw); }
  table { display: block; overflow-x: auto; white-space: nowrap; }
}
