:root{
  --bg: #eef2f6;
  --text: #4b4f55;
  --heading: #013a5a;
  --card: #ffffff;
  --border: #d7dde5;
  --muted: #6b7280;
  --shadow: 0 10px 24px rgba(10, 30, 60, 0.08);
  --radius: 14px;
}

*{ box-sizing: border-box; }
html{ min-height: 100%; text-size-adjust: 100%; }

body{
  margin: 0;
  font-family: "Lato", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.25;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 700px){
  body{ font-size: 1.125rem; line-height: 1.33; }
}

::selection{ background: var(--heading); color: #fff; }

a, button, input, select{
  transition: background-color .2s linear, border-color .2s linear, color .2s linear,
              box-shadow .2s linear, transform .2s linear, opacity .2s linear;
}

/* Wider page so the table has more space */
.wrap{
  max-width: 1500px;
  margin: 0 auto;
  padding: 28px 18px 60px;
}

header{
  display: flex;
  gap: 14px;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.brand{ display: grid; gap: 6px; }

h1{
  margin: 0;
  color: var(--heading);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 1.95rem;
  line-height: 1.15;
}

@media (min-width: 700px){
  h1{ font-size: 2.25rem; line-height: 1.12; }
}

.sub{
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(1, 58, 90, 0.08);
  color: var(--heading);
  border: 1px solid rgba(1, 58, 90, 0.12);
  font-weight: 700;
  font-size: 0.92rem;
}

.layout{ display: grid; gap: 18px; }

@media (min-width: 900px){
  .layout{ grid-template-columns: 1.6fr 0.9fr; align-items: start; }
}

.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-hd{
  padding: 18px 18px 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

h2{
  margin: 0;
  color: var(--heading);
  font-weight: 700;
  font-size: 1.55rem;
  line-height: 1.2;
}

@media (min-width: 700px){
  h2{ font-size: 1.9rem; line-height: 1.12; }
}

.card-bd{ padding: 16px 18px 18px; }

.note{ margin: 0 0 14px; color: var(--muted); }

.tabs{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 18px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(240, 243, 246, 0.55);
}

.tab{
  border: 1px solid var(--border);
  background: #fff;
  color: var(--heading);
  padding: 8px 10px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: default;
}

.tab[aria-current="true"]{
  border-color: rgba(1, 58, 90, 0.35);
  box-shadow: 0 6px 14px rgba(1, 58, 90, 0.12);
  transform: translateY(-1px);
}

.table{
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.table th, .table td{
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  text-align: left;
  font-size: 0.98rem;
}

.table th{
  color: var(--heading);
  background: rgba(1, 58, 90, 0.06);
  font-weight: 700;
  white-space: nowrap;
}

.table tr:last-child td{ border-bottom: 0; }

.field{
  width: 100%;
  padding: 10px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  outline: none;
}

.field:focus{
  border-color: rgba(1, 58, 90, 0.45);
  box-shadow: 0 0 0 4px rgba(1, 58, 90, 0.12);
}

.muted{ color: var(--muted); font-size: 0.92rem; }

.stack{ display: grid; gap: 12px; }

.kv{
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(240, 243, 246, 0.55);
}

.kv-row{
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.98rem;
}

.kv-row strong{ color: var(--heading); }

.btn{
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(1, 58, 90, 0.25);
  background: var(--heading);
  color: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 700;
  cursor: not-allowed;
  opacity: 0.92;
}

.btn:hover{ opacity: 1; }
.btn:active{ transform: translateY(1px); }

footer{
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

/* Summary stays centered and narrower */
[aria-label="Summary"]{
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* Allow horizontal scrolling if the table needs more space */
.table-wrap{
  overflow-x: auto;
}

/* Make the table wider so columns breathe */
.table-wrap .table{
  min-width: 1400px;
}

/* Keep input fields consistent */
.field{
  width: 90px;
  max-width: 90px;
}
