/* Dashboard and BCI application typography */
h1,
h2,
.detail-title,
.dialog-header h2,
.auth-brand,
.crumb strong {
  text-transform: uppercase;
}
button,
.btn,
a.panel-footer-link,
a.text-link,
.nav-command {
  text-transform: uppercase;
}
button input,
button textarea {
  text-transform: none;
}
.btn.primary,
.btn.primary:hover,
.btn.chosen,
.btn.chosen:hover,
.btn.hd-hero-main,
.btn.hd-hero-btn,
.filter-toggle.on,
.hd-toggle[aria-pressed='true'] {
  color: #fff;
}
.btn.primary,
.btn.primary:hover {
  background: #006a89;
  border-color: #006a89;
}
.btn.chosen,
.btn.chosen:hover,
.filter-toggle.on,
.hd-toggle[aria-pressed='true'] {
  background: #124764;
  border-color: #124764;
}
#dialog .dialog-header {
  display: grid;
  grid-template-columns: clamp(84px, 9vw, 104px) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(10px, 2vw, 24px);
}
#dialog .dialog-mark {
  display: block;
  width: 100%;
  height: auto;
  max-width: 104px;
}
#dialog .dialog-header h2 {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.16;
}
.site-tail {
  padding: 0;
  min-height: 0;
  background: #09283e;
  color: #fff;
}
.site-tail::before {
  inset: 0;
  width: 100%;
  opacity: 0.14;
}
.tail-content {
  padding: 13px clamp(14px, 3vw, 42px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  min-height: 0;
}
.tail-content .tail-motto {
  font-size: 1rem;
  line-height: 1;
  letter-spacing: -0.025em;
}
.tail-content nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
}
.tail-content nav a {
  font-size: 0.8rem;
  line-height: 1.4;
  padding: 3px 0;
  min-height: 0;
}
.site-tail .tail-legal {
  display: block;
  border: 0;
  padding: 0;
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: #d8e6ea;
}
.port-home {
  max-width: 1480px;
  padding: clamp(12px, 2.3vw, 32px);
  margin: 0 auto;
  color: var(--deep);
}
.port-home.hd-embedded {
  max-width: 100%;
  padding: 0;
  margin-bottom: 1.4rem;
}
.port-hero,
.port-hero.project-banner {
  isolation: isolate;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(200px, 19vw, 285px);
  height: auto;
  border: 0;
  border-radius: 4px;
  padding: clamp(22px, 3.5vw, 48px);
  color: #fff;
  background:
    linear-gradient(
      88deg,
      rgba(5, 30, 49, 0.99) 0%,
      rgba(8, 41, 62, 0.94) 24%,
      rgba(10, 40, 57, 0.44) 58%,
      rgba(6, 25, 33, 0.13) 80%
    ),
    url('fielddesk-home-hero.webp') 73% 38% / cover no-repeat,
    #0b334b;
}
.port-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url('klamath-topography-unlabeled.svg') 10% 48% / 830px auto;
  opacity: 0.13;
  mask-image: linear-gradient(to right, black, transparent 75%);
}
.port-hero::after {
  content: '';
  position: absolute;
  width: clamp(65px, 12%, 180px);
  height: 4px;
  background: #1bc0d8;
  bottom: 0;
  left: 0;
}
.hd-hero-content {
  max-width: 75ch;
}
.port-hero h1 {
  color: #fff;
  margin: 0;
  max-width: 25ch;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: clamp(2.15rem, 4.7vw, 4.55rem);
  line-height: 1.04;
  text-wrap: balance;
}
.port-hero .hd-date {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  color: #d5f3f6;
  font-size: 0.82rem;
  margin: 0 0 0.55rem;
}
.port-hero h1 + p {
  margin: 0.45rem 0 0.9rem;
  font-size: 1rem;
  color: #e3f1f6;
}
.hd-hero-actions,
.hd-scope,
.hd-scope > div,
.hd-panel-head,
.hd-filters,
.hd-caption,
.hd-volume,
.port-section-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.hd-hero-actions {
  flex-wrap: wrap;
}
.hd-hero-actions .btn {
  font-size: 0.79rem;
  letter-spacing: 0.045em;
  min-height: 36px;
  padding: 0.55rem 0.85rem;
}
.hd-hero-actions .hd-hero-main {
  background: #006783;
  border-color: #4da0b1;
  color: white;
}
.hd-hero-actions .hd-hero-btn {
  background: #14384aeb;
  border-color: #acc9d0;
  color: #fff;
}
.hd-scope {
  justify-content: space-between;
  margin: 1rem 0 0.8rem;
  flex-wrap: wrap;
}
.hd-scope label,
.hd-scope strong {
  font-size: 0.83rem;
  font-weight: 750;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}
.port-home select,
.port-section-head input,
.hd-select select {
  font-size: 0.88rem;
  min-height: 36px;
  color: var(--deep);
  border: 1px solid var(--edge);
  border-radius: 3px;
  background-color: #fff;
}
.hd-tool,
.hd-toggle,
.hd-more {
  color: #075d79;
  font-size: 0.78rem;
  letter-spacing: 0.025em;
  font-weight: 750;
  display: inline-flex;
  gap: 0.3rem;
  align-items: center;
  min-height: 34px;
}
.hd-tool:hover,
.hd-more:hover {
  text-decoration: underline;
}
.hd-toggle {
  padding: 5px 8px;
  background: #f2f6f7;
  border-radius: 3px;
}
.port-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(155px, 100%), 1fr));
  gap: 1px;
  border: 1px solid #cbd7db;
  background: #cbd7db;
  border-radius: 4px;
  margin: 0 0 1rem;
}
.port-metrics .hd-tile {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-direction: column;
  gap: 0.62rem;
  background: white;
  color: #0c344c;
  border: 0;
  padding: clamp(12px, 1.4vw, 22px);
  min-height: 96px;
  text-align: left;
}
.port-metrics .hd-tile[aria-pressed='true'] {
  background: #133d55;
  color: #fff;
}
.port-metrics .hd-tile:hover {
  box-shadow: inset 0 -3px #0b8daa;
}
.hd-tile > span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.18;
  font-weight: 750;
  letter-spacing: 0.04em;
}
.hd-tile b {
  font-size: clamp(1.75rem, 2.6vw, 2.6rem);
  font-variant-numeric: tabular-nums;
}
.hd-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(10px, 1.25vw, 20px);
  margin-bottom: 1rem;
}
.hd-pair.hd-single {
  grid-template-columns: minmax(0, 1fr);
}
.hd-panel {
  background: white;
  border: 1px solid #cdd7d8;
  border-radius: 4px;
  overflow: hidden;
  min-width: 0;
}
.hd-panel-head {
  min-height: 52px;
  justify-content: space-between;
  padding: 0.8rem 1.1rem;
  border-bottom: 1px solid #e1e8e9;
  flex-wrap: wrap;
}
.hd-panel-head h2,
.port-section-head h2 {
  font-size: 1.03rem;
  letter-spacing: 0.035em;
  margin: 0;
  font-weight: 800;
}
.hd-meta,
.hd-caption,
.hd-axis,
.hd-volume span {
  font-size: 0.82rem;
  color: #486779;
}
.hd-response {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) minmax(135px, 1.35fr);
  align-items: center;
  gap: 12px;
  padding: 15px clamp(14px, 2vw, 28px);
}
.hd-donut {
  position: relative;
  padding: 0;
  max-width: 154px;
  width: 100%;
  justify-self: center;
  aspect-ratio: 1;
  color: #0c354c;
  cursor: pointer;
}
.hd-donut > svg {
  width: 100%;
  height: 100%;
  display: block;
}
.hd-donut > span {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: absolute;
  inset: 22%;
  pointer-events: none;
}
.hd-donut b {
  font-size: clamp(1.5rem, 2.4vw, 2.4rem);
  line-height: 1;
}
.hd-donut small {
  font-size: 0.7rem;
  letter-spacing: 0.045em;
  margin-top: 3px;
}
.hd-key {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  gap: 9px;
  align-items: center;
  text-align: left;
  width: 100%;
  min-height: 27px;
  font-size: 0.78rem;
  color: var(--deep);
  border-radius: 2px;
}
.hd-key:hover,
.hd-key[aria-pressed='true'] {
  background: #eff6f7;
}
.hd-key strong {
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}
.hd-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.hd-dot.hd-late {
  background: #bd5134;
}
.hd-dot.hd-today {
  background: #087493;
}
.hd-dot.hd-week {
  background: #15a3b7;
}
.hd-dot.hd-later {
  background: #263e60;
}
.hd-dot.hd-undated {
  background: #91a5b1;
}
.hd-volume {
  padding: 12px 1.1rem 0;
  gap: 8px;
  align-items: baseline;
}
.hd-volume strong {
  font-size: 1.55rem;
}
.hd-columns {
  margin: 4px 1.1rem 0;
  height: 79px;
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid #aabec7;
  background: repeating-linear-gradient(
    to top,
    transparent 0px,
    transparent 22px,
    #e4ebed 23px,
    #e4ebed 24px
  );
}
.hd-column {
  flex: 1;
  min-width: 0;
  padding: 0;
  margin: 0 1px;
  border-radius: 2px;
}
.hd-column svg {
  display: block;
  width: 100%;
  height: 100%;
}
.hd-column:hover,
.hd-column[aria-pressed='true'] {
  background: #e1f3f5;
  outline: 1px solid #238299;
}
.hd-axis {
  display: flex;
  justify-content: space-between;
  padding: 4px 1.1rem 12px;
}
.hd-filters,
.hd-caption {
  padding: 0.45rem 1.1rem;
  flex-wrap: wrap;
  background: #f3f6f6;
  min-height: 43px;
}
.hd-filters label {
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 5px;
}
.hd-filters select {
  min-height: 30px;
  max-width: 150px;
}
.hd-revision,
.hd-revision a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}
.hd-revision {
  padding: 12px 1.1rem;
  border-top: 1px solid #e1e8e9;
  justify-content: space-between;
}
.hd-revision a {
  flex: 1;
}
.hd-revision a:hover strong {
  text-decoration: underline;
}
.hd-revision strong,
.port-task-body strong {
  overflow-wrap: anywhere;
  font-size: 0.93rem;
}
.hd-revision small,
.hd-revision strong {
  display: block;
}
.hd-revision small {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 3px;
}
.hd-sheet {
  display: inline-block;
  font-size: 0.78rem;
  background: #edf4f6;
  color: #0b5871;
  padding: 6px;
  font-weight: 750;
  border-left: 3px solid #1685a0;
  max-width: 8.5rem;
  overflow-wrap: anywhere;
}
.hd-read {
  border: 1px solid #b5cbd0;
  color: #176378;
  min-width: 34px;
  min-height: 34px;
  border-radius: 2px;
}
.hd-more {
  margin: 5px 1.1rem;
}
.hd-panel .port-task {
  grid-template-columns: 2rem minmax(0, 1fr) auto;
  padding: 0.7rem 0.95rem;
  gap: 0.55rem;
}
.port-kind {
  width: 2rem;
  height: 2rem;
}
.port-card-title h3 {
  text-transform: uppercase;
}
.port-card-foot button {
  font-size: 0.78rem;
}
.port-updates {
  margin: 0 0 1rem;
}
.hd-embedded .hd-meta {
  display: none;
}
.hd-embedded .port-hero h1 {
  font-size: clamp(2rem, 3.55vw, 3.4rem);
}
.hd-embedded .port-hero {
  min-height: 185px;
}
@media (max-width: 1000px) {
  .hd-embedded .hd-pair {
    grid-template-columns: 1fr;
  }
  .hd-embedded .hd-response {
    max-width: 515px;
    margin: auto;
  }
  .hd-embedded .hd-hero-content {
    max-width: 85%;
  }
}
@media (max-width: 720px) {
  .hd-pair {
    grid-template-columns: 1fr;
  }
  .port-metrics {
    grid-template-columns: 1fr 1fr;
  }
  .hd-tile {
    min-width: 0;
  }
  .port-metrics .hd-tile {
    min-height: 82px;
  }
  .port-hero,
  .port-hero.project-banner {
    display: flex;
    align-items: flex-start;
    min-height: 186px;
    padding: 22px 17px;
    background-position:
      center,
      70% 31%,
      center;
  }
  .hd-hero-content {
    max-width: 100%;
  }
  .hd-response {
    max-width: 500px;
    margin: auto;
  }
  .hd-scope > div {
    max-width: 100%;
    flex-wrap: wrap;
  }
  .hd-scope select {
    max-width: 100%;
  }
  .hd-scope label {
    display: none;
  }
  .site-tail .tail-content {
    flex-direction: row;
    align-items: center;
    padding: 10px 16px;
    gap: 6px 16px;
  }
  .tail-content nav {
    gap: 14px;
  }
  .site-tail .tail-legal {
    font-size: 0.7rem;
  }
  .hd-panel .port-task {
    grid-template-columns: 2rem minmax(0, 1fr);
  }
  .port-due {
    grid-column: 2;
  }
  .port-home .hd-key {
    min-height: 33px;
  }
  .hd-read {
    min-height: 40px;
    min-width: 40px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .port-home * {
    scroll-behavior: auto;
  }
}
