:root {
  --bg: #f6f7f8;
  --text: #151719;
  --muted: #5f6872;
  --line: #d8dde2;
  --accent: #0d6b57;
  --code-bg: #111417;
  --code-text: #f5f7f8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "IBM Plex Sans", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

.page-shell {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0 56px;
}

.hero,
.section {
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.02;
}

h2 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

p,
li,
dd {
  color: var(--muted);
  line-height: 1.6;
}

.lead {
  max-width: 680px;
  font-size: 1.08rem;
}

pre {
  overflow-x: auto;
  padding: 16px;
  border-radius: 8px;
  background: var(--code-bg);
  color: var(--code-text);
}

code {
  font-family: "SFMono-Regular", Consolas, monospace;
}

.profile-list {
  display: grid;
  gap: 12px;
}

.profile-list div {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

dt {
  font-weight: 700;
}

dd {
  margin: 4px 0 0;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.stats-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 12px;
}

.stat-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.stat-label {
  margin: 0 0 6px;
  font-size: 0.82rem;
  color: var(--muted);
}

.stat-value {
  margin: 0;
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 700;
}

a {
  color: var(--accent);
  font-weight: 700;
}

.ifport-product-page {
  background: #f5f7f9;
  color: #111827;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.ifport-product-page .product-shell {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 16px 44px;
}

.ifport-product-page h1 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.15;
}

.ifport-product-page h2 {
  margin: 22px 0 8px;
  font-size: 1.08rem;
}

.ifport-product-page p {
  margin: 0 0 12px;
  color: #4b5563;
  line-height: 1.55;
}

.ifport-product-page pre {
  overflow-x: auto;
  padding: 12px;
  border: 1px solid #d9e0e7;
  border-radius: 8px;
  background: #eef2f7;
  color: #111827;
}

.ifport-product-page a,
.ifport-support-page a {
  color: #0b6b57;
  font-weight: 700;
  text-decoration: none;
}

.ifport-product-page .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.ifport-product-page .brand img {
  width: 40px;
  height: 40px;
  flex: none;
}

.ifport-product-page .links {
  margin-top: 18px;
}

.ifport-support-page {
  background: #f5f7f9;
  color: #111827;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.ifport-support-page .support-shell {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 16px 44px;
}

.ifport-donate-page .support-shell {
  max-width: 680px;
}

.ifport-support-page .support-panel {
  margin: 0 0 12px;
  padding: 16px;
  border: 1px solid #d9e0e7;
  border-radius: 8px;
  background: #fff;
}

.ifport-support-page h1 {
  margin: 0 0 10px;
  font-size: 1.8rem;
  line-height: 1.2;
}

.ifport-donate-page h1 {
  font-size: 1.7rem;
}

.ifport-support-page h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.ifport-support-page p {
  color: #4b5563;
  line-height: 1.55;
}

.ifport-support-page ul {
  margin: 8px 0 14px;
  padding-left: 20px;
}

.ifport-support-page li {
  margin: 6px 0;
  color: #374151;
}

.ifport-report-page {
  background: #f5f7f9;
  color: #111827;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.ifport-report-page .report-shell {
  max-width: 860px;
  margin: 0 auto;
  padding: 24px 16px 44px;
}

.ifport-report-page .report-copy {
  white-space: pre-wrap;
  border: 1px solid #d9e0e7;
  border-radius: 8px;
  background: #fff;
  color: #111827;
}

.ifport-result-page {
  --ink: #17202a;
  --result-muted: #5c6875;
  --result-line: #d8dee6;
  --result-panel: #f7f9fb;
  --result-accent: #0f6b57;
  background: #fff;
  color: var(--ink);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ifport-result-page .result-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.ifport-result-page header {
  padding: 20px 0 18px;
  border-bottom: 1px solid var(--result-line);
}

.ifport-result-page h1 {
  max-width: none;
  margin: 0 0 8px;
  font-size: 2.5rem;
  line-height: 1.08;
}

.ifport-result-page h2 {
  margin: 28px 0 10px;
  font-size: 1.375rem;
  line-height: 1.2;
}

.ifport-result-page p {
  margin: 0 0 12px;
  color: var(--ink);
}

.ifport-result-page a {
  color: #0b5cad;
  font-weight: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.ifport-result-page .muted {
  color: var(--result-muted);
}

.ifport-result-page .summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.ifport-result-page .metric {
  min-height: 86px;
  padding: 14px;
  border: 1px solid var(--result-line);
  border-radius: 8px;
  background: var(--result-panel);
}

.ifport-result-page .metric span {
  display: block;
  color: var(--result-muted);
  font-size: 0.8125rem;
}

.ifport-result-page .metric strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  font-size: 1.25rem;
}

.ifport-result-page .notice {
  margin: 16px 0;
  padding: 12px 14px;
  border-left: 4px solid var(--result-accent);
  background: #eef8f4;
}

.ifport-result-page .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 4px;
}

.ifport-result-page .actions a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--result-line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
}

.ifport-result-page .actions a.primary {
  border-color: #17202a;
  background: #17202a;
  color: #fff;
}

.ifport-result-page .copy {
  padding: 12px;
  overflow-wrap: anywhere;
  border: 1px solid var(--result-line);
  border-radius: 8px;
  background: #fbfcfd;
  white-space: pre-wrap;
}

.ifport-result-page table {
  width: 100%;
  margin-top: 10px;
  border-collapse: collapse;
}

.ifport-result-page th,
.ifport-result-page td {
  padding: 10px 8px;
  overflow-wrap: anywhere;
  border-bottom: 1px solid var(--result-line);
  text-align: left;
  vertical-align: top;
}

.ifport-result-page th {
  color: var(--result-muted);
  font-size: 0.8125rem;
  font-weight: 600;
}

.ifport-result-page ul {
  padding-left: 20px;
}

@media (max-width: 680px) {
  .ifport-result-page .result-shell {
    width: min(100% - 20px, 1120px);
    padding-top: 18px;
  }

  .ifport-result-page h1 {
    font-size: 1.75rem;
  }

  .ifport-result-page table {
    display: block;
    overflow-x: auto;
  }

  .ifport-result-page .actions a {
    width: 100%;
    justify-content: center;
  }
}
