.port-home {
  max-width: 1420px;
  margin: 0 auto;
  padding: clamp(16px, 3vw, 44px);
  color: var(--ink);
}
.port-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: white;
  background:
    linear-gradient(100deg, #071b2ac9, #103d5580),
    url('klamath-topography-wide.svg') right center/cover,
    #103149;
  border-radius: 8px 8px 0 0;
  padding: clamp(20px, 4vw, 48px);
  border-bottom: 3px solid var(--cyan);
}
.port-hero p {
  font-size: 0.875rem;
  color: #d1e9f4;
  margin: 0 0 0.45rem;
}
.port-hero h1 {
  color: white;
  font-size: clamp(2.3rem, 4vw, 3.6rem);
  letter-spacing: -0.055em;
  margin: 0;
  line-height: 1;
}
.port-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
  margin-bottom: 1.4rem;
}
.port-metrics button {
  background: white;
  color: var(--deep);
  text-align: left;
  padding: 1.1rem clamp(0.8rem, 2vw, 2rem);
  border: 0;
  border-right: 1px solid var(--line);
  cursor: pointer;
}
.port-metrics button:hover,
.port-task:hover,
.port-card-title:hover {
  background: #eef7fa;
}
.port-metrics b,
.port-metrics span,
.port-task-body strong,
.port-task-body small,
.port-card-title span {
  display: block;
}
.port-metrics b {
  font-size: 2rem;
  line-height: 1.05;
}
.port-metrics span {
  font-size: 0.88rem;
  margin-top: 0.25rem;
}
.port-home section {
  scroll-margin-top: calc(var(--mast-height, 64px) + 14px);
}
.port-queue .panel-head,
.port-section-head,
.port-filters,
.port-card-foot,
.port-counts,
.port-updates a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.port-filters label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
}
.port-filters select,
.port-section-head input {
  border: 1px solid var(--edge);
  border-radius: 5px;
  background: white;
  color: var(--deep);
  font: inherit;
  padding: 0.55rem;
}
.port-task {
  display: grid;
  grid-template-columns: 2.4rem 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.2rem;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.port-kind {
  display: grid;
  place-items: center;
  background: #e8f4f7;
  border-radius: 6px;
  color: var(--link);
  width: 2.35rem;
  height: 2.35rem;
}
.port-task-body small,
.port-card-title small {
  color: var(--muted);
  font-size: 0.8rem;
}
.port-task-body strong {
  margin-top: 0.22rem;
}
.port-due,
.port-card-foot {
  font-size: 0.85rem;
}
.port-empty,
.port-more {
  margin: 1rem 1.25rem;
}
.port-more,
.port-card-foot button {
  background: transparent;
  color: var(--link);
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 650;
  padding: 0.2rem 0;
}
.port-section-head {
  margin: 1.8rem 0 0.8rem;
}
.port-section-head h2 {
  margin: 0;
}
.port-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 0.85rem;
}
.port-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}
.port-card-title {
  display: block;
  padding: 1rem 1.1rem;
  color: var(--deep);
  text-decoration: none;
}
.port-card-title h3 {
  margin: 0.4rem 0 0.3rem;
  font-size: 1.2rem;
}
.port-card-title span {
  font-size: 0.85rem;
  color: var(--muted);
}
.port-card-foot,
.port-counts,
.port-updates a {
  padding: 0.65rem 1.1rem;
  border-top: 1px solid var(--line);
}
.port-counts {
  justify-content: flex-start;
  gap: 1.25rem;
  background: #f5f8f9;
  font-size: 0.85rem;
}
.port-counts a,
.port-card-foot a,
.port-updates a {
  color: var(--link);
}
.port-updates {
  margin-top: 1rem;
}
.port-home :focus-visible {
  outline: 3px solid #00759a;
  outline-offset: -3px;
}
@media (max-width: 700px) {
  .port-metrics {
    grid-template-columns: 1fr 1fr;
  }
  .port-metrics button:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .port-hero {
    align-items: flex-start;
    flex-direction: column;
  }
  .port-queue .panel-head,
  .port-filters {
    align-items: flex-start;
  }
  .port-filters {
    width: 100%;
  }
  .port-filters label {
    flex-direction: column;
    align-items: flex-start;
    max-width: 100%;
  }
  .port-filters select {
    max-width: 100%;
  }
  .port-task {
    grid-template-columns: 2.2rem minmax(0, 1fr);
    gap: 0.45rem 0.65rem;
  }
  .port-due {
    grid-column: 2;
  }
  .port-home {
    padding: 14px;
  }
  .port-section-head input {
    max-width: 100%;
  }
}

.finance-metrics {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 175px), 1fr));
  gap: 0;
  margin: 0;
}
.finance-metrics .metric {
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
}
.finance-metrics .metric > strong {
  font-size: clamp(1.1rem, 2vw, 1.7rem);
  overflow-wrap: anywhere;
}
