:root {
  --bg: #edf3f2;
  --bg-deep: #e5edeb;
  --panel: rgba(255, 255, 255, 0.97);
  --panel-strong: #f9fbfa;
  --ink: #16384c;
  --muted: #698091;
  --line: rgba(22, 56, 76, 0.09);
  --brand: #1c5b67;
  --brand-deep: #154650;
  --accent: #c79758;
  --ok: #257558;
  --warn: #a1722f;
  --error: #b45353;
  --shadow: 0 20px 50px rgba(24, 54, 70, 0.08);
  --shadow-soft: 0 10px 24px rgba(24, 54, 70, 0.05);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(28, 91, 103, 0.11), transparent 24%),
    radial-gradient(circle at top right, rgba(199, 151, 88, 0.09), transparent 18%),
    linear-gradient(180deg, #f7faf9 0%, var(--bg) 56%, var(--bg-deep) 100%);
}

.page-shell {
  width: min(1360px, calc(100vw - 30px));
  margin: 14px auto 28px;
}

.hero,
.summary-card,
.table-section {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.55fr 0.95fr;
  gap: 22px;
  padding: 26px 28px;
  border-radius: 28px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 8% 18%, rgba(28, 91, 103, 0.11), transparent 28%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.34), transparent 40%),
    linear-gradient(180deg, transparent 0%, rgba(245, 249, 248, 0.7) 100%);
  pointer-events: none;
}

.hero-copy,
.hero-actions {
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-kicker,
.label {
  margin: 0 0 10px;
  font-family: "Segoe UI Semibold", Arial, sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--brand);
}

h1,
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.04;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.25rem, 4.3vw, 3.8rem);
  max-width: 700px;
}

h2 {
  font-size: clamp(1.45rem, 2.2vw, 2rem);
}

.status-line {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.primary-button,
.search-input {
  border-radius: 999px;
  font-family: "Segoe UI", Arial, sans-serif;
}

.primary-button {
  align-self: flex-start;
  border: 1px solid rgba(21, 70, 80, 0.12);
  padding: 12px 18px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #2a6f7b 0%, var(--brand-deep) 100%);
  box-shadow: 0 14px 24px rgba(28, 91, 103, 0.17);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 28px rgba(28, 91, 103, 0.2);
}

.primary-button:disabled {
  opacity: 0.7;
  cursor: default;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.summary-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 16px 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 250, 249, 0.95));
}

.summary-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(28, 91, 103, 0.9), rgba(199, 151, 88, 0.7));
}

.summary-card strong {
  display: block;
  font-size: clamp(1.3rem, 2.1vw, 1.95rem);
  letter-spacing: -0.03em;
  color: var(--brand-deep);
  font-variant-numeric: tabular-nums;
}

.table-section {
  margin-top: 14px;
  border-radius: 28px;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 251, 250, 0.96));
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 14px;
}

.search-input {
  width: min(320px, 100%);
  border: 1px solid rgba(22, 56, 76, 0.11);
  background: rgba(250, 252, 252, 0.95);
  padding: 11px 14px;
  font-size: 0.84rem;
  color: var(--ink);
  box-shadow: inset 0 1px 2px rgba(22, 56, 76, 0.03);
}

.table-wrap {
  overflow: auto;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #fbfcfc;
  box-shadow: var(--shadow-soft);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 940px;
}

thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f2f7f6;
  color: var(--brand);
  border-bottom: 1px solid rgba(28, 91, 103, 0.11);
  font-family: "Segoe UI Semibold", Arial, sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

th,
td {
  padding: 12px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(22, 56, 76, 0.07);
  font-size: 0.86rem;
  color: var(--ink);
}

tbody tr:hover {
  background: rgba(28, 91, 103, 0.035);
}

.rate-name {
  display: block;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

.provider-chip,
.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  font-family: "Segoe UI Semibold", Arial, sans-serif;
  font-size: 0.66rem;
  line-height: 1;
}

.provider-chip {
  margin-top: 7px;
  color: var(--brand);
  background: rgba(28, 91, 103, 0.09);
  border: 1px solid rgba(28, 91, 103, 0.1);
}

.status-pill.ok {
  color: var(--ok);
  background: rgba(37, 117, 88, 0.1);
  border: 1px solid rgba(37, 117, 88, 0.13);
}

.status-pill.warning {
  color: var(--warn);
  background: rgba(161, 114, 47, 0.1);
  border: 1px solid rgba(161, 114, 47, 0.13);
}

.status-pill.error {
  color: var(--error);
  background: rgba(180, 83, 83, 0.1);
  border: 1px solid rgba(180, 83, 83, 0.13);
}

.rate-value {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--brand-deep);
  font-variant-numeric: tabular-nums;
}

.rate-value.missing {
  color: var(--error);
}

.micro {
  margin-top: 5px;
  font-size: 0.75rem;
  line-height: 1.42;
  color: var(--muted);
}

a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}

a:hover {
  text-decoration: underline;
}

.name-cell,
.value-cell,
.date-cell,
.status-cell,
.source-cell {
  white-space: normal;
}

.date-cell {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.value-cell,
.date-cell,
.status-cell {
  min-width: 100px;
}

.source-cell {
  min-width: 90px;
  white-space: nowrap;
}

.source-cell a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(28, 91, 103, 0.12);
  background: rgba(28, 91, 103, 0.07);
  font-size: 0.72rem;
}

@media (max-width: 980px) {
  .hero,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    flex-direction: column;
    align-items: stretch;
  }

  .page-shell {
    width: min(100vw - 18px, 1360px);
    margin: 10px auto 18px;
  }

  .hero,
  .table-section {
    padding: 16px;
  }

  th,
  td {
    padding: 10px 10px;
  }

  table {
    min-width: 860px;
  }
}
