/* Project collaboration and specification registers */
.nav-drawer-head .drawer-mark {
  width: 85px;
  height: 33px;
  object-fit: contain;
  flex-shrink: 0;
}
.site-tail .tail-content small {
  font-size: 0.7rem;
  color: #d4e3e8;
  line-height: 1.35;
}
.port-hero.project-banner .hd-hero-content {
  position: relative;
  z-index: 1;
}
.pilot-source-note {
  color: #456475;
  font-size: 0.85rem;
  margin: 0 0 1rem;
}
.spaced,
.spec-book + .spec-book,
.official-box {
  margin-top: 1rem;
}
.contact-meta,
.contact-link,
.person-cell small {
  display: block;
  font-size: 0.85rem;
}
.contact-link,
.spec-line[href],
.guide-hit,
.thread-link {
  color: #075a76;
}
#people-search {
  width: min(100%, 18rem);
  border: 1px solid #becdd3;
  border-radius: 3px;
  padding: 0.55rem 0.7rem;
  background: white;
}
.directory-page .section-head,
.team .panel-head,
.directory-page .panel-head {
  flex-wrap: wrap;
  gap: 0.6rem;
}
.official-box {
  border: 1px solid #bbd1da;
  border-left: 4px solid #087694;
  border-radius: 3px;
  background: #f2f7f8;
  padding: 1rem 1.1rem;
}
.official-box h3 {
  margin: 0 0 0.55rem;
}
.official-choice {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.65rem;
  border-bottom: 1px solid #dbe4e7;
}
.official-choice span span,
.official-choice span small {
  display: block;
}
.chat-layout {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(0, 2fr);
  gap: 1rem;
  align-items: start;
}
.thread-link,
.guide-hit {
  display: block;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #dbe4e7;
  text-decoration: none;
}
.thread-link[aria-current='page'],
.thread-link:hover,
.guide-hit:hover {
  background: #eaf3f5;
}
.thread-link small,
.guide-hit small {
  display: block;
  color: #456475;
  margin-top: 0.2rem;
}
.chat-log {
  max-height: 49vh;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0.8rem 1rem;
}
.chat-msg {
  padding: 0.55rem 0.75rem;
  background: #f1f4f5;
  border-radius: 3px;
  margin: 0.4rem 12% 0.7rem 0;
}
.chat-msg.mine {
  background: #e1eef2;
  margin-left: 12%;
  margin-right: 0;
}
.chat-msg p {
  margin: 0.3rem 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.chat-msg time,
.spec-meta {
  font-size: 0.8rem;
  color: #486675;
}
.chat-layout form {
  padding: 1rem;
  border-top: 1px solid #dbe4e7;
}
.spec-book {
  overflow: hidden;
}
.spec-book .panel-head {
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}
.spec-book .panel-head small {
  color: #486675;
}
.spec-rev {
  padding: 0.65rem 1rem;
  border-top: 1px solid #dbe4e7;
}
.spec-rev summary,
.history summary {
  cursor: pointer;
  font-weight: 650;
}
.spec-meta {
  padding: 0.65rem 0;
}
.spec-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.4rem 0.2rem;
  border-top: 1px solid #e1e7e8;
}
.spec-line span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.spec-line small {
  color: #486675;
  white-space: nowrap;
}
.guide-panel {
  padding: clamp(1rem, 3vw, 1.6rem);
}
.guide-panel form {
  display: flex;
  align-items: flex-end;
  gap: 0.55rem;
}
.guide-panel .field {
  flex: 1;
  margin: 0;
}
.guide-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0;
}
.guide-panel > small {
  display: block;
  margin: 1.25rem 0 0;
  color: #486675;
}
@media (max-width: 700px) {
  .chat-layout {
    grid-template-columns: 1fr;
  }
  .chat-log {
    max-height: 55vh;
  }
  .guide-panel form {
    display: block;
  }
  .guide-panel .field {
    margin-bottom: 0.7rem;
  }
  .spec-line {
    flex-wrap: wrap;
    gap: 0.2rem 0.55rem;
  }
  .site-tail .tail-content {
    display: flex;
    justify-content: flex-start;
    gap: 0.55rem 1.3rem;
  }
  .site-tail .tail-content small {
    flex-basis: 100%;
  }
  .mast-actions .btn {
    font-size: 0.7rem;
    min-height: 32px;
  }
  .spec-book .panel-head {
    flex-wrap: wrap;
  }
}

.spec-search {
  background: #fff;
  border: 1px solid #ccd7db;
  border-radius: 3px;
  padding: 0.7rem 1rem;
  margin: 0 0 1rem;
}
.spec-search .field {
  margin: 0;
}
.spec-search input {
  max-width: 35rem;
}
#spec-matches p {
  color: #456475;
  font-size: 0.85rem;
}
.daily-body{padding:0 1.2rem 1.2rem}.daily-metrics{display:flex;flex-wrap:wrap;gap:1.4rem}.daily-metrics>div{font-weight:700;text-transform:uppercase}.daily-metrics strong{display:block;font-size:2.25rem;color:var(--navy,#103d56)}.daily-row{padding:.75rem 0;border-bottom:1px solid #dbe3e5}.daily-row:last-child{border:0}.daily-row small,.daily-body>small{display:block;color:#48606b}.daily-row-head{display:flex;justify-content:space-between;align-items:center;gap:1rem}.daily-note{white-space:pre-wrap;overflow-wrap:anywhere}.daily-photo{display:block;max-width:100%;max-height:70vh;margin:auto}.daily-body h3{margin-top:1rem}

.coord-row {display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;padding:1rem;border-top:1px solid #d6dcde}
.coord-row h3,.coord-row p {margin:.25rem 0}
.coord-row .btn {margin:.2rem}
@media(max-width:640px){.coord-row{flex-direction:column}}

.estimate-scope .panel-head h2{margin:.45rem 0 0}.estimate-controls,.estimate-field{display:flex;align-items:center;gap:.65rem;flex-wrap:wrap}.estimate-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(8.5rem,1fr));gap:.7rem;margin:1rem}.estimate-metrics .metric{padding:.9rem;background:#f7f5ef;border-left:3px solid #1686a3}.estimate-field{display:grid;margin:1rem;padding:1rem;border-radius:4px;color:#fff;background:#123c51 url(klamath-topography-navy.svg) center/cover}.estimate-field progress{width:100%;accent-color:#24bfd8}.estimate-scope .history{margin:1rem}.estimate-scope .daily-row p{margin:.3rem 0;overflow-wrap:anywhere}.estimate-scope .panel-head{flex-wrap:wrap;gap:.7rem}

.packet-controls {
  margin: .75rem 0; padding: .9rem 1rem; border: 1px solid #c1d4db;
  border-left: 3px solid #087d9b; background: #f5f8f7;
}
.packet-controls summary { cursor: pointer; font-weight: 750; color: #153747; }
.packet-controls[open] summary { margin-bottom: .75rem; }
.packet-controls .field { margin: .75rem 0; }

.est-shortcuts{display:flex;flex-wrap:wrap;gap:.5rem;padding:.7rem 1rem;background:#eeece3}.est-shortcuts a{display:inline-flex;align-items:center;gap:.35rem;padding:.42rem .5rem;color:#10435a;font-size:.75rem;font-weight:750;text-decoration:none;text-transform:uppercase}.est-shortcuts a:hover,.est-shortcuts a:focus-visible{background:#fff;text-decoration:underline}.estimate-preview{display:block;background:#edf5f6;border-left:3px solid #00779b;padding:1rem;font-weight:700}

.daily-album-grid {display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,165px),1fr));gap:1rem;margin-bottom:1rem;}
.daily-album-card {margin:0;min-width:0;border:1px solid #d0d9d9;background:white;border-radius:4px;overflow:hidden;}
.daily-album-open {display:block;padding:0;width:100%;text-align:left;color:#17475a;}
.daily-album-open img {width:100%;aspect-ratio:4/3;object-fit:cover;background:#eef2f1;display:block;}
.daily-album-open strong,.daily-album-card figcaption {display:block;overflow-wrap:anywhere;padding:.5rem .65rem;}
.daily-album-card figcaption {padding-top:0;color:#46606d;}
.daily-album-card small {display:block;}
[data-form=daily_entry] details.history textarea {font-size:1rem;width:100%;}
@media(max-width:620px){[data-form=daily_entry] .two-col{grid-template-columns:1fr;}}

.ai-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.25rem;
  color: white;
  background: #10374c url('./klamath-topography-navy.svg') center / cover;
  border-bottom: 3px solid #18b9df;
}
.ai-brand h2 {
  display: flex;
  align-items: baseline;
  margin: 0;
  color: white;
  font-size: 1.65rem;
  line-height: 1.15;
  letter-spacing: -.035em;
  text-transform: none;
}
.ai-brand h2 span { color: #62dafa; }
.ai-brand h2 b {
  align-self: flex-start;
  margin-left: .16em;
  padding: 0 .15em;
  color: #082e43;
  background: #62dafa;
  border-radius: .18em;
  font-size: .72em;
  line-height: 1.08;
}
.ai-brand sup { align-self: flex-start; font-size: .36em; }
.ai-brand small { color: #e3f4fa; font-size: .78rem; }
