:root {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  color: #15222e;
  background: #f6f5f0;
  --ink: #15222e;
  --side: #09283e;
  --side-2: #113b52;
  --muted: #506a7c;
  --line: #d4dadb;
  --edge: #b9d2dd;
  --cyan: #0da6d9;
  --navy: #18365e;
  --deep: #09283e;
  --link: #00688c;
  --pale: #e8f4f8;
  --paper: #f6f5f0;
  --white: #fff;
  --r: 3px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  cursor: wait;
  opacity: 0.65;
}
button {
  background: transparent;
  border: 0;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #0586b0;
  outline-offset: 3px;
}
input,
select,
textarea {
  min-width: 0;
}
h1,
h2,
h3,
p,
dl,
dd {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.2;
}
h1 {
  font-size: 2.12rem;
  letter-spacing: -0.052em;
  font-weight: 700;
}
h2 {
  font-size: 1.34rem;
  letter-spacing: -0.036em;
}
h3 {
  font-size: 1.04rem;
  letter-spacing: -0.02em;
}
p {
  line-height: 1.55;
}
.ico {
  display: inline-block;
  flex: none;
  vertical-align: middle;
}
.sr-only,
.skip:not(:focus) {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip:focus {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 50;
  background: white;
  padding: 12px;
  border-radius: 6px;
}
.workspace {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
}
.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100dvh;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--side);
  color: #edf6fc;
  padding: 29px 17px 15px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #577384 var(--side);
  z-index: 5;
}
.brand-row {
  padding: 0 10px 27px;
}
.brand {
  display: flex;
  align-items: center;
  flex: none;
}
.brand img {
  display: block;
  width: 158px;
  max-width: 100%;
  height: auto;
}
.brand-row {
  border-bottom: 1px solid #305269;
  margin-bottom: 18px;
  padding-bottom: 20px;
}

.project-switch {
  border: 1px solid #365970;
  border-radius: 7px;
  display: flex;
  align-items: center;
  text-align: left;
  padding: 11px 9px;
  gap: 9px;
  width: 100%;
  color: #f4f9fb;
  background: #12384f;
}
.project-switch:hover,
.profile:hover {
  background: #19435c;
}
.switch-icon,
.file-icon {
  width: 33px;
  height: 35px;
  border: 1px solid #43728c;
  background: #224b61;
  color: #d3e7ef;
  display: inline-grid;
  place-items: center;
  flex: none;
  border-radius: 5px;
}
.project-switch > span:nth-child(2) {
  min-width: 0;
  flex: 1;
}
.project-switch small,
.project-switch strong,
.profile small,
.profile strong,
.person-cell small,
.download-card small,
.invite-row small,
.file-row small {
  display: block;
}
.project-switch small,
.profile small {
  font-size: 0.77rem;
  color: #bbd1df;
  line-height: 1.4;
}
.project-switch strong {
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.nav-group {
  margin-top: 25px;
}
.nav-label,
.section-kicker {
  font-size: 0.68rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.nav-label {
  color: #a0c1d4;
  margin: 0 11px 8px;
}
.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 6px;
  font-size: 0.91rem;
  font-weight: 500;
  line-height: 1.35;
  min-height: 40px;
  padding: 9px 12px;
  color: #d9e8f0;
}
.nav-link .ico {
  color: #adccdd;
  width: 18px;
  height: 18px;
}
.nav-link:hover {
  background: #163d54;
}
.nav-link.selected {
  background: #144761;
  color: #f5fcff;
}
.nav-link.selected .ico {
  color: #59cbed;
}
.nav-link.selected:before {
  content: '';
  position: absolute;
  left: 0;
  background: #0da6d9;
  width: 3px;
  height: 19px;
  border-radius: 0 3px 3px 0;
}
.sidebar-end {
  margin-top: auto;
  padding-top: 30px;
}
.sample-setting {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.8rem;
  color: #cadce6;
  padding: 6px 10px 16px;
}
.sample-setting .ico {
  opacity: 0.68;
}
.sample-light,
.project-dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  border-radius: 50%;
  background: #40bce5;
}
.profile {
  width: 100%;
  margin: 0;
  padding: 16px 3px 1px;
  border-top: 1px solid #325669;
  display: flex;
  align-items: center;
  text-align: left;
  gap: 11px;
}
.profile > span:nth-child(2) {
  flex: 1;
}
.profile strong {
  font-size: 0.9rem;
}
.profile .ico {
  color: #adc5d6;
}
.avatar {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  flex: none;
  border-radius: 50%;
  background: #d9e8ef;
  color: #264a63;
  font-weight: 700;
  font-size: 0.83rem;
  line-height: 1;
}
.avatar.tiny {
  width: 26px;
  height: 26px;
  font-size: 0.63rem;
}
.av0 {
  background: #e4d9cf;
  color: #624735;
}
.av1 {
  background: #d9e6df;
  color: #375744;
}
.av2 {
  background: #dce4ef;
  color: #3d566d;
}
.av3 {
  background: #e7dfee;
  color: #65547b;
}
.av4 {
  background: #f0e2c5;
  color: #755920;
}
.av5 {
  background: #f1dcd5;
  color: #794c43;
}
.main-pane {
  min-width: 0;
}
.topbar {
  height: 63px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(22px, 2.8vw, 48px);
  background: #fff;
  border-bottom: 1px solid var(--line);
  gap: 10px;
}
.crumb,
.crumb-link,
.top-search,
.today,
.head-actions,
.btn,
.text-link,
.banner-meta,
.banner-meta > span,
.metric-label,
.queue-meta,
.panel-title,
.record-class,
.subhead,
.preview-head,
.activity-decoration,
.filter-toggle,
.dialog-header,
.detail-controls,
.search-result,
.profile-summary,
.after-form,
.panel-footer-link,
.job-tag {
  display: flex;
  align-items: center;
}
.crumb {
  gap: 12px;
  font-size: 0.85rem;
  white-space: nowrap;
}
.crumb-icon {
  color: #506a7c;
  display: inline-flex;
}
.crumb-link {
  color: #506a7c;
  padding: 0;
}
.crumb-link:hover,
.text-link:hover,
.panel-footer-link:hover {
  text-decoration: underline;
}
.crumb-project {
  font-size: 0.79rem;
  color: #536a78;
  font-weight: 600;
}
.slash {
  color: #b9cbd3;
}
.crumb strong {
  font-weight: 600;
}
.top-search {
  gap: 9px;
  background: #fafbf9;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #506a7c;
  padding: 6px 8px 6px 10px;
  font-size: 0.81rem;
}
.top-search kbd {
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 3px;
  line-height: 18px;
  width: 19px;
  text-align: center;
  margin-left: 26px;
  color: #566c7c;
  background: white;
}
.page {
  width: min(100%, 1600px);
  margin: 0 auto;
  padding: 27px clamp(22px, 2.8vw, 48px) 40px;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.page-head p,
.quiet,
.muted {
  color: var(--muted);
  font-size: 0.9rem;
}
.head-actions {
  gap: 18px;
}
.today {
  gap: 7px;
  font-size: 0.86rem;
  color: #506a7c;
}
.btn {
  display: inline-flex;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 9px 15px;
  border: 1px solid #b9d2dd;
  border-radius: 6px;
  background: white;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
}
.btn:hover {
  background: #e8f4f8;
}
.btn.primary {
  border-color: #0da6d9;
  background: var(--cyan);
  color: var(--deep);
  box-shadow: 0 1px 2px #09283e0c;
}
.btn.primary:hover {
  background: #32b5df;
}
.text-link,
.panel-footer-link {
  display: inline-flex;
  gap: 6px;
  font-size: 0.845rem;
  font-weight: 600;
  color: #00688c;
  padding: 0;
}
.icon-button {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  color: var(--muted);
}
.icon-button:hover {
  background: #e8f4f8;
}
.mobile-only,
.nav-backdrop {
  display: none;
}
.project-banner {
  min-height: 188px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  color: #fff;
  background: linear-gradient(120deg, #041e32, #0a344e 65%, #06273f);
  border-bottom: 3px solid var(--cyan);
}
.banner-topo,
.auth-terrain {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.banner-topo {
  background-image:
    url('klamath-topography-detail.svg'), linear-gradient(90deg, #0da6d913 1px, transparent 1px),
    linear-gradient(#0da6d913 1px, transparent 1px);
  background-size:
    cover,
    100px 100px,
    100px 100px;
  background-position:
    right 52%,
    center,
    center;
  mask-image: linear-gradient(90deg, #0002, #0009 45%, #000 80%);
}

.banner-content {
  padding: 23px clamp(22px, 2.5vw, 38px);
  max-width: min(80%, 850px);
}
.job-tag {
  gap: 9px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.68rem;
  font-weight: 700;
  color: #cce2ed;
}
.project-dot {
  background: #0da6d9;
  width: 7px;
  height: 7px;
}
.job-tag i,
.banner-meta i,
.queue-meta i,
.record-class i {
  height: 12px;
  width: 1px;
  background: #b9d2dd99;
  margin: 0 2px;
}
.banner-content h2 {
  font-size: clamp(2.45rem, 3.65vw, 4rem);
  font-family: Arial, Helvetica, sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-weight: 700;
  line-height: 1.03;
  margin: 11px 0 15px;
  text-wrap: balance;
}
.banner-meta {
  gap: 12px;
  color: #eef7fb;
  flex-wrap: wrap;
  font-size: 0.85rem;
}
.banner-meta > span {
  gap: 6px;
}
.banner-meta i {
  height: 13px;
  margin: 0;
  background: #b9d2dd80;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin: 17px 0 21px;
}
.metric {
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  padding: 15px 17px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  min-width: 0;
  transition: border-color 0.15s;
}
.metric:hover,
.panel a.attention-row:hover {
  border-color: #7eb6cc;
}
.metric-label {
  gap: 9px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #30475a;
  line-height: 1.2;
}
.kind-icon,
.timeline-dot {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  flex: none;
  border-radius: 7px;
}
.kind-icon.rfi,
.timeline-dot.rfi {
  background: #e1f3f9;
  color: #00698b;
}
.kind-icon.submittal,
.timeline-dot.submittal {
  background: #e7eef7;
  color: #36557a;
}
.kind-icon.drawing,
.timeline-dot.drawing {
  background: #e5edf3;
  color: #47647b;
}
.kind-icon.change,
.timeline-dot.change {
  background: #e5eef1;
  color: #405e70;
}
.kind-icon.document,
.timeline-dot.document {
  background: #e8f3f7;
  color: #427086;
}
.metric .kind-icon {
  width: 30px;
  height: 30px;
  border-radius: 6px;
}
.metric > strong {
  font-size: 2.05rem;
  letter-spacing: -0.06em;
  line-height: 1.05;
  margin: 12px 0 6px;
}
.metric > small {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.3;
}
.late,
.metric small.late {
  color: #a14829;
}
.late i {
  display: inline-block;
  vertical-align: middle;
  width: 5px;
  height: 5px;
  margin-right: 5px;
  background: #bf6549;
  border-radius: 50%;
}
.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(245px, 1fr);
  gap: 18px;
  align-items: start;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r);
  min-width: 0;
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 19px 20px 13px;
}
.panel-title {
  display: block;
}
.section-kicker {
  display: block;
  color: #566d7b;
  line-height: 1.2;
  margin-bottom: 5px;
  font-size: 0.65rem;
}
.queue-meta {
  gap: 8px;
  padding: 0 20px 12px;
  font-size: 0.79rem;
  color: #506a7c;
}
.queue-meta i {
  height: 10px;
  background: #b9cbd1;
}
.attention-row {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 63px;
  padding: 10px 19px;
  border-top: 1px solid #e0e6e8;
}
.attention-row:hover,
.record-link:hover,
.search-result:hover,
.choose-list > a:hover,
.choose-list > button:hover,
.timeline a:hover {
  background: #f0f7f9;
}
.row-copy,
.record-link > span:last-child,
.search-result > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.row-copy {
  flex: 1;
}
.row-copy strong,
.record-link strong,
.search-result strong {
  font-size: 0.895rem;
  letter-spacing: -0.015em;
  font-weight: 600;
  line-height: 1.3;
}
.id-text {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.065em;
  line-height: 1.2;
  color: #526d7d;
}
.row-due {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-size: 0.76rem;
  white-space: nowrap;
}
.row-due small {
  font-size: 0.72rem;
  color: #546d7c;
}
.row-person {
  margin-left: 2px;
}
.activity-decoration {
  color: #54788c;
}
.timeline {
  padding: 5px 19px 5px;
}
.timeline-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 7px 0 12px;
}
.timeline-item:not(:last-child):before {
  content: '';
  position: absolute;
  width: 1px;
  top: 29px;
  bottom: -9px;
  left: 13px;
  background: #d4e0e4;
}
.timeline-dot {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  z-index: 1;
}
.timeline-dot.neutral {
  background: #e8f4f8;
  color: #3d6175;
}
.timeline-item > div {
  min-width: 0;
}
.timeline-item strong {
  font-size: 0.84rem;
  line-height: 1.2;
}
.timeline-item p {
  font-size: 0.79rem;
  line-height: 1.35;
  color: #455f70;
  margin: 2px 0;
}
.timeline-item p span {
  font-weight: 600;
  color: #49677a;
  white-space: nowrap;
}
.timeline-item time {
  font-size: 0.72rem;
  color: #556f80;
}
.panel-footer-link {
  padding: 11px 20px;
  border-top: 1px solid #e0e6e8;
  width: 100%;
}
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 35px 20px;
  color: #526d7c;
  gap: 8px;
  text-align: center;
}
.empty > .ico {
  color: #7392a3;
}
.empty strong {
  font-size: 0.95rem;
  color: #34516a;
}
.empty p {
  font-size: 0.85rem;
}
.spaced,
.full-timeline {
  margin-top: 18px;
}
.full-timeline .timeline {
  padding: 18px 22px;
}
.filterbar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 15px;
  flex-wrap: wrap;
}
.filter-search {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  border: 1px solid #b9d2dd;
  border-radius: 6px;
  padding: 0 9px;
  color: #506a7c;
}
.filter-search input {
  border: 0;
  outline: 0;
  background: transparent;
  width: 190px;
  height: 36px;
  font-size: 0.85rem;
  color: var(--ink);
}
.filter-search:focus-within {
  outline: 2px solid #0584ad;
  outline-offset: 1px;
}
.filter-search input:focus-visible {
  outline: 0;
}
select {
  appearance: none;
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' fill='none' stroke='%23506a7c' stroke-width='1.7' viewBox='0 0 20 20'%3E%3Cpath d='m5 8 5 5 5-5'/%3E%3C/svg%3E")
    no-repeat right 10px center;
  padding: 8px 31px 8px 10px;
  color: var(--ink);
  border: 1px solid #b9d2dd;
  border-radius: 6px;
  font-size: 0.85rem;
  min-height: 36px;
}
.filter-toggle {
  border: 1px solid #c3d4dc;
  padding: 7px 10px;
  border-radius: 20px;
  min-height: 32px;
  font-size: 0.8rem;
  color: #506a7c;
}
.filter-toggle.on {
  background: #e2f3f8;
  border-color: #77aec2;
  color: #163a51;
}
.table-scroll {
  overflow-x: auto;
}
.record-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.86rem;
}
.record-table th {
  padding: 11px 14px;
  background: #f0f6f8;
  color: #4c6575;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.055em;
  font-weight: 600;
  white-space: nowrap;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.record-table td {
  padding: 13px 14px;
  border-bottom: 1px solid #e0e6e8;
  vertical-align: middle;
}
.record-table tr:last-child td {
  border-bottom: 0;
}
.record-link {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 170px;
}
.assignee,
.person-cell,
.file-row,
.download-card,
.invite-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.assignee {
  white-space: nowrap;
}
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 9px;
  border-radius: 20px;
  line-height: 1.2;
  font-size: 0.76rem;
  white-space: nowrap;
  font-weight: 600;
}
.chip.green {
  background: #e2eee1;
  color: #335d39;
}
.chip.gold {
  background: #f4ebd6;
  color: #7b5c1e;
}
.chip.blue {
  background: #e3edf4;
  color: #416379;
}
.chip.red {
  background: #f3e2d9;
  color: #874c36;
}
.chip.gray {
  background: #e9ece7;
  color: #586759;
}
.person-cell small,
.file-row small,
.download-card small,
.invite-row small {
  color: var(--muted);
  font-size: 0.79rem;
  line-height: 1.35;
  margin-top: 3px;
}
.person-cell strong,
.file-row strong,
.invite-row strong,
.download-card strong {
  font-weight: 600;
}
.team-table td {
  white-space: nowrap;
}
.invite-row {
  padding: 13px 20px;
  border-top: 1px solid var(--line);
  justify-content: space-between;
}
dialog {
  border: 1px solid #c1d4df;
  background: white;
  color: var(--ink);
  border-radius: 12px;
  padding: 0;
  width: min(500px, calc(100vw - 30px));
  max-height: 90dvh;
  overflow: auto;
  overscroll-behavior: contain;
  box-shadow: 0 24px 100px #09283e30;
}
dialog.wide {
  width: min(720px, calc(100vw - 30px));
}
dialog::backdrop {
  background: rgba(4, 30, 50, 0.55);
}
.dialog-header {
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 13px 20px;
  background: white;
  position: sticky;
  top: 0;
  z-index: 2;
}
.dialog-header h2 {
  font-size: 1.15rem;
}
.dialog-body {
  padding: 20px;
}
.dialog-body > p {
  margin-bottom: 15px;
  color: #455f70;
}
.form-fields {
  display: grid;
  gap: 14px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #253e51;
  font-size: 0.875rem;
  font-weight: 600;
}
.field input:not([type='file']),
.field textarea,
.field select {
  width: 100%;
  border: 1px solid #b9cbd5;
  border-radius: 5px;
  min-height: 40px;
  padding: 9px 11px;
  background-color: #fff;
  font-size: 0.91rem;
  color: var(--ink);
  font-weight: 400;
}
.field select {
  padding-right: 32px;
}
.field textarea {
  resize: vertical;
  line-height: 1.5;
}
.field small,
.field-help {
  color: #506a7c;
  font-size: 0.81rem;
  font-weight: 400;
}
.field-help {
  margin-top: -7px;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.upload-field input {
  padding: 11px 9px;
  border: 1px dashed #8daebf;
  border-radius: 5px;
  background: #f3f7f9;
  font-size: 0.83rem;
}
.form-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid var(--line);
  margin-top: 21px;
  padding-top: 15px;
}
.form-error {
  padding: 10px 12px;
  background: #fae9e2;
  border-radius: 5px;
  color: #893d27;
  font-size: 0.88rem;
  margin-top: 12px;
}
.form-error[hidden],
.toast[hidden] {
  display: none;
}
.choose-list {
  display: grid;
  gap: 4px;
}
.choose-list > button,
.choose-list > a,
.search-result {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 8px;
  text-align: left;
  border-radius: 6px;
  color: var(--ink);
  width: 100%;
}
.choose-list > button > div,
.choose-list > a > div,
.search-result > span:nth-child(2) {
  flex: 1;
}
.choose-list strong {
  display: block;
  font-size: 0.97rem;
}
.choose-list small {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 3px;
}
.choose-list .switch-icon,
.file-icon {
  background: #e8f4f8;
  color: #486b80;
  border-color: #c7dde6;
}
.after-form {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 14px;
}
.detail-controls,
.after-form,
.subhead,
.preview-head {
  gap: 9px;
  flex-wrap: wrap;
}
.detail-top,
.record-class {
  display: flex;
  align-items: center;
  gap: 9px;
}
.detail-top {
  justify-content: space-between;
  margin-bottom: 12px;
}
.record-class {
  font-size: 0.82rem;
  font-weight: 600;
  color: #506a7c;
}
.record-class i {
  background: #bdd0da;
}
.detail-title {
  font-size: 1.62rem;
  margin-bottom: 14px;
}
.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 20px;
  background: #f0f6f8;
  padding: 15px;
  border-radius: 7px;
  margin: 14px 0 18px;
}
.facts dt {
  font-size: 0.76rem;
  color: #506a7c;
  margin-bottom: 3px;
}
.facts dd {
  font-size: 0.91rem;
  font-weight: 500;
}
.prose {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 0.94rem;
}
.dialog-body h3 + .prose {
  margin: 7px 0 14px;
}
.detail-section {
  border-top: 1px solid var(--line);
  margin-top: 19px;
  padding-top: 15px;
}
.subhead,
.preview-head {
  justify-content: space-between;
  margin-bottom: 9px;
}
.file-row {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 9px;
  margin: 6px 0;
}
.file-row > div {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.89rem;
}
.file-icon {
  width: 31px;
  height: 33px;
}
.note {
  border-left: 2px solid #bad3df;
  padding: 5px 0 5px 12px;
  margin: 9px 0 12px;
}
.note > div {
  display: flex;
  align-items: center;
  gap: 7px;
}
.note strong {
  font-size: 0.86rem;
}
.note small,
.history small {
  font-size: 0.75rem;
  color: var(--muted);
}
.note .chip {
  margin-top: 7px;
}
.note p {
  margin: 5px 0;
}
.history {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 13px;
  font-size: 0.84rem;
}
.history summary {
  cursor: pointer;
  font-weight: 600;
}
.history p {
  margin: 7px 0;
}
.history small {
  display: block;
}
.global-search input {
  width: 100%;
}
.search-results {
  margin-top: 9px;
  max-height: 57dvh;
  overflow: auto;
}
.file-preview {
  width: 100%;
  height: 55dvh;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.file-preview-img {
  width: 100%;
  max-height: 56dvh;
  object-fit: contain;
}
.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  background: #09283e;
  color: white;
  padding: 12px 18px;
  max-width: 90vw;
  border-radius: 7px;
  box-shadow: 0 4px 20px #09283e2e;
  font-size: 0.9rem;
}
.invitation-info,
.download-card {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
  background: #f0f7f9;
  margin-bottom: 15px;
}
.auth-page {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(420px, 1fr);
  background: white;
}
.auth-image {
  background: linear-gradient(120deg, #041e32, #0a344e 65%, #06273f);
  color: white;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-top: 4px solid var(--cyan);
  padding: clamp(32px, 5.5vw, 100px);
}
.auth-terrain {
  background:
    url('klamath-topography-wide.svg') center/cover,
    linear-gradient(90deg, #0da6d917 1px, transparent 1px),
    linear-gradient(#0da6d917 1px, transparent 1px);
  background-size:
    cover,
    100px 100px,
    100px 100px;
}
.auth-art::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, #041e32f5, #041e3244 48%, transparent 80%);
}
.auth-art .brand img {
  width: 185px;
}
.auth-brand {
  display: block;
  font-size: clamp(2.5rem, 5vw, 6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.055em;
  margin-top: 22px;
  text-transform: uppercase;
}

.auth-card {
  align-self: center;
  padding: 55px clamp(26px, 5vw, 85px);
  width: 100%;
  max-width: 620px;
}
.auth-card > h1 {
  margin: 28px 0 12px;
}
.auth-card > p,
.auth-sub {
  color: var(--muted);
  margin: 0 0 20px;
}
.auth-card .form-footer {
  justify-content: flex-start;
}
.auth-card .form-footer .primary {
  min-width: 125px;
}
.loading {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
}
.loading img {
  width: 47px;
}
.loading p {
  color: var(--muted);
}
@media (min-width: 1550px) {
  .workspace {
    grid-template-columns: 255px minmax(0, 1fr);
  }
  .project-banner {
    min-height: 200px;
  }
  .metric {
    padding: 19px 22px;
  }
  .attention-row {
    min-height: 70px;
  }
  .timeline-item {
    padding-bottom: 18px;
  }
  .page {
    padding-top: 32px;
  }
}
@media (max-width: 1150px) {
  .workspace {
    grid-template-columns: 208px minmax(0, 1fr);
  }
  .sidebar {
    padding-left: 12px;
    padding-right: 12px;
  }
  .overview-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(223px, 1fr);
    gap: 13px;
  }
  .row-person {
    display: none;
  }
  .metric {
    padding: 13px 12px;
  }
  .metric-label {
    gap: 6px;
  }
  .panel-head {
    padding-left: 15px;
    padding-right: 15px;
  }
  .attention-row {
    padding-left: 14px;
    padding-right: 14px;
  }
  .queue-meta,
  .timeline {
    padding-left: 15px;
    padding-right: 15px;
  }
  .metrics {
    gap: 10px;
  }
  .today {
    display: none;
  }
}
@media (max-width: 900px) {
  .workspace {
    grid-template-columns: 182px minmax(0, 1fr);
  }
  .sidebar {
    padding-left: 10px;
    padding-right: 10px;
  }
  .brand-row {
    padding-left: 5px;
  }
  .project-switch {
    padding: 8px 6px;
    gap: 6px;
  }
  .project-switch .switch-icon {
    display: none;
  }
  .page {
    padding-left: 18px;
    padding-right: 18px;
  }
  .topbar {
    padding-left: 18px;
    padding-right: 18px;
  }
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .timeline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 10px;
  }
  .timeline-item:not(:last-child):before {
    display: none;
  }
  .full-timeline .timeline {
    display: flex;
    flex-direction: column;
  }
  .metric-label {
    align-items: flex-start;
    flex-direction: column;
    font-size: 0.78rem;
  }
  .metric > strong {
    margin-top: 8px;
  }
  .metrics {
    gap: 8px;
  }
  .row-person {
    display: inline;
  }
  .project-banner {
    min-height: 158px;
  }
  .banner-content {
    max-width: 85%;
  }
  .top-search kbd {
    margin-left: 6px;
  }
}
@media (max-height: 760px) and (min-width: 701px) {
  .sidebar {
    padding-top: 17px;
  }
  .brand-row {
    padding-bottom: 17px;
  }
  .nav-group {
    margin-top: 16px;
  }
  .nav-link {
    min-height: 35px;
    padding-top: 7px;
    padding-bottom: 7px;
  }
  .sidebar-end {
    padding-top: 16px;
  }
  .profile {
    padding-top: 11px;
  }
}
@media (max-width: 700px) {
  .workspace {
    display: block;
  }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 245px;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    z-index: 12;
    padding: 24px 16px 17px;
  }
  .nav-open .sidebar {
    transform: translateX(0);
  }
  .brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px 22px;
  }
  .sidebar .icon-button {
    color: #dfedf5;
  }
  .mobile-only {
    display: inline-flex;
  }
  .nav-open .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: #041e3270;
    z-index: 11;
  }
  .topbar {
    height: 53px;
    padding: 0 12px;
  }
  .crumb {
    gap: 7px;
    font-size: 0.8rem;
  }
  .crumb-icon {
    display: none;
  }
  .top-search span,
  .top-search kbd {
    display: none;
  }
  .top-search {
    padding: 7px;
    border-color: transparent;
  }
  .project-switch .switch-icon {
    display: grid;
  }
  .page {
    padding: 20px 14px 30px;
  }
  .page-head {
    margin-bottom: 14px;
  }
  h1 {
    font-size: 1.72rem;
  }
  .btn {
    min-height: 37px;
    padding: 8px 12px;
  }
  .banner-content {
    padding: 22px 17px;
  }
  .banner-content h2 {
    font-size: 2.4rem;
  }
  .project-banner {
    min-height: 154px;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin: 12px 0 15px;
  }
  .metric {
    padding: 12px 13px;
  }
  .metric-label {
    flex-direction: row;
    align-items: center;
    gap: 7px;
    font-size: 0.81rem;
  }
  .metric > strong {
    font-size: 1.8rem;
  }
  .metric > small {
    font-size: 0.75rem;
  }
  .overview-grid {
    gap: 14px;
  }
  .panel-head {
    padding: 15px 14px 11px;
  }
  .timeline {
    display: flex;
    flex-direction: column;
  }
  .timeline-item:not(:last-child):before {
    display: block;
  }
  .attention-row {
    min-height: 60px;
  }
  .row-copy strong {
    font-size: 0.85rem;
  }
  .row-due {
    font-size: 0.72rem;
  }
  .row-person {
    display: none;
  }
  .top-search .ico {
    width: 20px;
    height: 20px;
  }
  .filterbar {
    padding: 11px;
    gap: 7px;
  }
  .filter-search {
    width: 100%;
  }
  .filter-search input {
    width: 100%;
  }
  .record-table td,
  .record-table th {
    padding: 10px 11px;
  }
  .auth-page {
    display: block;
  }
  .auth-image {
    display: none;
  }
  .auth-card {
    margin: 0 auto;
    padding: 44px 22px;
  }
  .team-table td,
  .team-table th {
    padding: 10px 12px;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .dialog-body {
    padding: 16px;
  }
  .dialog-header {
    padding: 11px 15px;
  }
  .sample-setting {
    padding-bottom: 13px;
  }
  .dialog-header h2 {
    font-size: 1.06rem;
  }
  .toast {
    width: max-content;
    bottom: 12px;
  }
  .banner-meta {
    gap: 7px;
    font-size: 0.78rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
/* Shared BCI button geometry and navigation treatment. */
.btn {
  position: relative;
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  font-weight: 700;
  min-height: 40px;
  padding-inline: 17px;
}
.btn::after {
  content: '';
  position: absolute;
  top: 4px;
  right: -3px;
  width: 15px;
  height: 1px;
  background: currentColor;
  opacity: 0.45;
  transform: rotate(45deg);
  pointer-events: none;
}
.btn.primary::after {
  background: var(--cyan);
  opacity: 1;
}
.btn:focus-visible {
  outline: 3px solid var(--deep);
  outline-offset: -5px;
}
.nav-command {
  width: 100%;
  text-align: left;
}
.nav-link,
.project-switch,
.switch-icon,
.filter-search,
.filter-toggle,
.kind-icon,
.file-icon,
.facts,
.file-row,
.upload-field input,
.field input:not([type='file']),
.field textarea,
.field select,
select,
.top-search,
.top-search kbd,
dialog,
.toast,
.download-card,
.invitation-info {
  border-radius: 3px;
}
.nav-label {
  letter-spacing: 0.13em;
  color: #a9ccdd;
  font-size: 0.74rem;
}
.nav-link {
  font-size: 0.9rem;
}
.nav-link.selected::before {
  height: 22px;
}
.topbar {
  position: relative;
  isolation: isolate;
  background: var(--paper);
  border-bottom: 2px solid var(--cyan);
}
.topbar::before {
  content: '';
  position: absolute;
  inset: 0 0 0 24%;
  z-index: -1;
  background: url('klamath-topography-navy.svg') 70% 48% / cover;
  opacity: 0.3;
  mask-image: linear-gradient(90deg, transparent, #000);
  pointer-events: none;
}
.crumb-link,
.crumb-project {
  font-size: 0.84rem;
}
h1,
h2,
.record-link strong,
.row-copy strong {
  color: var(--deep);
}
.page-head h1,
.panel-head h2,
.auth-card h1,
.dialog-header h2 {
  font-weight: 750;
  letter-spacing: -0.04em;
}
.page-head h1 {
  font-size: clamp(1.8rem, 2.7vw, 2.6rem);
}
.banner-content {
  max-width: min(91%, 950px);
  padding: 25px clamp(21px, 2.7vw, 42px);
}
.banner-content h2 {
  color: white;
  font-size: clamp(2rem, 3.1vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.99;
}
.job-tag {
  font-size: 0.75rem;
  letter-spacing: 0.13em;
  color: #aee4f6;
}
.banner-meta {
  font-size: 0.91rem;
}
.panel-head h2 {
  font-size: 1.3rem;
}
.metric {
  position: relative;
  min-height: 118px;
}
.metric:hover {
  border-color: #4997b3;
  background: #fbfdfe;
}
.metric-label {
  color: #254358;
  font-size: 0.88rem;
}
.metric > strong {
  color: var(--deep);
  font-weight: 750;
}
.metric > small {
  font-size: 0.81rem;
}
.kind-icon {
  border: 1px solid #0d698914;
}
.record-table th {
  background: #eef4f6;
  color: #466172;
}
.row-copy strong,
.record-link strong {
  font-size: 0.94rem;
}
.id-text {
  color: #475f70;
  font-size: 0.75rem;
}
.subhead .text-link,
.panel-footer-link,
.panel-head .text-link {
  font-size: 0.875rem;
}
.timeline-item strong {
  font-size: 0.9rem;
}
.timeline-item p {
  font-size: 0.86rem;
}
.timeline-item time,
.row-due small {
  font-size: 0.78rem;
}
.timeline-item p span {
  color: #29516a;
}
.panel-footer-link {
  background: #f8fbfc;
}
.dialog-header {
  border-bottom: 2px solid var(--cyan);
}
.auth-card .brand img {
  width: 184px;
}
.auth-card h1 {
  margin-top: 24px;
}
.auth-card.recovery {
  margin: 7vh auto;
  background: white;
  border-top: 3px solid var(--cyan);
}
.sample-note {
  font-size: 0.875rem;
  color: #29495d;
  background: #e8f4f8;
  border-left: 3px solid var(--cyan);
  padding: 10px 12px;
  line-height: 1.45;
}
.account-sms {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.account-sms p {
  margin: 7px 0 12px;
  color: var(--muted);
  font-size: 0.91rem;
}
.signin-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--edge);
  margin: 18px 0;
}
.method {
  padding: 11px 6px;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  font-weight: 700;
}
.method.current {
  border-color: var(--cyan);
  color: var(--deep);
}
.signin-help {
  margin: 0;
}
.code-help {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}
.otp-field {
  max-width: 340px;
}
.otp-entry {
  position: relative;
  display: block;
  margin: 3px 0 2px;
}
.otp-cells {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}
.otp-cells i {
  display: grid;
  place-items: center;
  aspect-ratio: 0.89;
  border: 1px solid #8baebb;
  border-bottom: 3px solid #8baebb;
  background: #f7fbfd;
  font:
    700 1.55rem/1 Arial,
    Helvetica,
    sans-serif;
  color: var(--deep);
}
.otp-entry:focus-within .otp-cells i {
  border-bottom-color: var(--cyan);
}
.otp-entry:focus-within .otp-cells i.active,
.otp-entry:focus-within .otp-cells i:first-child:empty {
  border-color: var(--cyan);
  box-shadow: inset 0 0 0 1px var(--cyan);
}
.otp-entry input:not([type='file']) {
  position: absolute;
  inset: 0;
  opacity: 0.01;
  width: 100%;
  height: 100%;
  cursor: text;
  border: 0;
  background: transparent;
  color: transparent;
  caret-color: transparent;
  font-size: 1rem;
  line-height: 1;
}
.code-options,
.directory-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0 6px;
}
.sample-return {
  margin-top: 12px;
}
.consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.9rem;
  color: #344f60;
  line-height: 1.45;
}
.consent input {
  accent-color: #00779d;
  margin-top: 4px;
}
.directory-tools {
  margin: 0 0 16px;
  gap: 8px;
}
.directory-list,
.transfer-review-list {
  max-height: 48dvh;
  overflow: auto;
  margin-top: 12px;
}
.directory-row {
  display: flex;
  width: 100%;
  align-items: center;
  text-align: left;
  gap: 12px;
  padding: 12px 5px;
  border-bottom: 1px solid var(--line);
}
.directory-row:hover {
  background: #f0f7f9;
}
.directory-row .switch-icon {
  background: var(--pale);
  color: #24617d;
  border-color: var(--edge);
}
.directory-row > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.directory-row strong,
.directory-row small,
.company-review small {
  display: block;
}
.directory-row small,
.directory-row > span:nth-child(3),
.company-review small {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 3px;
}
.import-summary {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.import-problems {
  padding: 10px;
  background: #fbf3ee;
  color: #73452e;
}
.company-review {
  padding: 10px 3px;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.company-review > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.company-review summary {
  color: var(--link);
  font-size: 0.82rem;
  cursor: pointer;
  margin-top: 4px;
}
.company-review dl {
  background: #f2f7f9;
  margin: 8px 0;
  padding: 7px 10px;
}
.company-review dl > div {
  padding: 3px 0;
}
.company-review dt {
  font-weight: 700;
  font-size: 0.8rem;
}
@media (max-width: 900px) {
  .brand img {
    width: 145px;
  }
  .metric {
    min-height: 108px;
  }
  .metric-label {
    font-size: 0.82rem;
  }
  .banner-content {
    max-width: 95%;
  }
}
@media (max-width: 700px) {
  .brand-row {
    margin-bottom: 14px;
    padding-bottom: 17px;
  }
  .brand img {
    width: 160px;
  }
  .metric {
    min-height: 95px;
  }
  .metric-label {
    font-size: 0.85rem;
  }
  .banner-content h2 {
    font-size: clamp(1.9rem, 7.3vw, 2.7rem);
  }
  .auth-card {
    border-top: 3px solid var(--cyan);
    background:
      linear-gradient(#f6f5f0ef, #fff 130px),
      url('klamath-topography-navy.svg') 80% top/auto 140px no-repeat;
  }
  .directory-row > span:nth-child(3) {
    display: none;
  }
  .row-copy strong {
    font-size: 0.9rem;
  }
}
