.mast-context,.mast-switch,.mast-menu summary { display: flex; align-items: center; gap: .55rem; min-width: 0; }
.mast-tools .mast-context { flex: 0 1 auto; }
.mast-switch,.mast-menu summary { min-height: 44px; padding: .4rem .65rem; color: #173c4d; cursor: pointer; font-weight: 700; }
.mast-switch { border: 1px solid #c7d3d2; background: #fafbf8; border-radius: 3px; }
.mast-switch span { max-width: 20ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mast-menu { position: relative; }
.mast-menu summary { list-style: none; }
.mast-menu summary::-webkit-details-marker,.rail-group summary::-webkit-details-marker { display: none; }
.mast-menu[open] > div { display: grid; position: absolute; z-index: 5; inset: calc(100% + 5px) 0 auto auto; min-width: 190px; background: #082438; box-shadow: 0 8px 30px #102b3c26; border: 1px solid #ccd6d6; padding: .35rem; border-radius: 4px; }
.mast-menu :is(a,button) { display: flex; align-items: center; min-height: 44px; text-align: left; padding: .5rem .75rem; color: #f3f8fa; font-weight: 700; }
.mast-menu :is(a,button):is(:hover,:focus-visible) { background: #19455d; color: #fff; }
.rail-project { border-bottom: 1px solid #91b4c238; padding: .1rem .6rem 1rem; margin-bottom: .7rem; display: grid; gap: .25rem; }
.rail-project > span { color: #bad3db; font-size: .74rem; font-weight: 700; letter-spacing: .06em; }
.rail-project strong { font-size: clamp(1.25rem, 2vw, 1.45rem); font-weight: 800; line-height: 1.15; color: #fff; overflow-wrap: anywhere; }
.rail-group { border-top: 1px solid #91b4c22c; }
.rail-group:first-of-type { margin-top: .65rem; }
.rail-group summary { list-style: none; min-height: 45px; display: flex; align-items: center; justify-content: space-between; gap: 6px; cursor: pointer; padding: .4rem .6rem; color: #cee1e7; font-weight: 700; font-size: .82rem; }
.rail-group[open], .rail-group[open] > div { background-color: #082438; }
.rail-group[open] > summary { color: #fff; background: #103348; }
.rail-group[open] > summary svg { transform: rotate(180deg); }
.rail-group > div { padding: 0 0 .55rem; }
.sidebar .nav-link { min-height: 42px; }
#app .sidebar { background-color: #102f41; height: calc(100dvh - var(--mast-height) - var(--feedback-bar-height)); }
.rail-group,.work-fold,.work-record .history,.work-card { scroll-margin-top: calc(var(--mast-height) + 12px); }
.site-tail::before { opacity: .25; }
.site-tail .tail-content .tail-mark { width: 84px; max-height: 37px; object-fit: contain; }
.masthead { background-size: cover; }
body .btn.primary,body .btn.primary:visited { color: #fff; background-color: #00677f; }
body .btn.primary:hover { background-color: #07576e; }
button.btn, a.btn, button.text-link, .mast-switch,.entry-help,.record-preset,.work-record h1 { text-transform: uppercase; }
.choose-list [hidden],.record-consult [hidden] { display: none !important; }
.work-register { overflow: visible; }
.work-register .filterbar { border-top: 1px solid #e2e7e5; gap: .55rem; }
.record-views { display: flex; align-items: stretch; gap: .25rem; padding: .45rem .8rem 0; }
.record-preset { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: .5rem .75rem; border: 0; border-bottom: 3px solid transparent; color: #48606b; font-weight: 700; font-size: .83rem; background: transparent; }
.record-preset span { font-variant-numeric: tabular-nums; border-radius: 3px; background: #eaf0ef; color: #264454; padding: .15rem .35rem; }
.record-preset[aria-pressed=true] { color: #005e77; border-bottom-color: #087c98; }
.record-preset[aria-pressed=true] span { background: #d8eef2; color: #064f67; }
.work-table { width: 100%; min-width: 0; table-layout: fixed; }
.work-table th:first-child { width: 43%; }
.work-table th:nth-child(2) { width: 22%; }
.work-table th:nth-child(3) { width: 17%; }
.work-table th,.work-table td { text-align: left; overflow-wrap: anywhere; }
.work-table .record-link { min-width: 0; display: block; line-height: 1.4; }
.work-table .record-link strong,.work-table .id-text { display: block; }
.work-table .record-link strong { font-size: 1rem; color: #103a51; white-space: normal; }
.work-table .row-next { display: block; color: #216477; font-size: .79rem; font-weight: 600; margin-top: .2rem; }
.work-table td { font-size: .9rem; }
.work-table .late,.work-record .late { color: #984325; }
.work-table .chip,.work-record .chip { white-space: normal; }
.work-record { width: min(100%,1280px); margin: 0 auto; }
.work-record .record-back { display: inline-flex; align-items: center; min-height: 44px; color: #0a657b; font-weight: 700; }
.work-record-heading { padding: .6rem 0 1.45rem; }
.work-record-tag,.work-record-line { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; }
.work-record-tag { color: #3f5864; font-size: .85rem; font-weight: 700; letter-spacing: .035em; }
.work-record h1 { color: #123449; margin: .7rem 0 1rem; font-size: clamp(1.8rem,3.1vw,3rem); line-height: 1.08; letter-spacing: -.045em; overflow-wrap: anywhere; }
.work-record-line { align-items: start; gap: .7rem 2.2rem; }
.work-record-line > div { display: grid; gap: .22rem; font-size: .94rem; }
.work-record-line > div > span { font-size: .78rem; color: #53656c; }
.work-record .work-next strong { color: #03627a; }
.work-record-heading .detail-controls { margin: 1rem 0 0; }
.work-card,.work-fold,.work-secondary > .history,.work-record-grid .panel { border: 1px solid #d6deda; background: #fff; border-radius: 5px; box-shadow: 0 2px 8px #112e3c08; }
.work-card { padding: clamp(16px,2.2vw,28px); }
.work-card h2,.work-card h3,.work-record .panel h3 { font-size: 1.1rem; line-height: 1.35; margin: 0 0 .55rem; color: #163b4c; }
.work-record .prose { font-size: 1rem; line-height: 1.6; color: #233b45; overflow-wrap: anywhere; white-space: pre-wrap; margin: .35rem 0; }
.work-record .request-body { border-inline-start: 4px solid #087e98; }
.work-record .official-box,.work-record .gate-note { margin: 1rem 0 0; }
.work-record-grid { display: grid; grid-template-columns: minmax(0,1.75fr) minmax(230px,1fr); align-items: start; gap: 1rem; margin-top: 1rem; }
.work-record-grid > div,.work-secondary { display: grid; gap: 1rem; min-width: 0; }
.work-record-grid .panel,.work-secondary .history { margin: 0; }
.work-card > .detail-section { padding: 0; border: 0; margin: 0; }
.work-card .subhead,.work-record .file-row { flex-wrap: wrap; gap: .45rem; }
.work-record .file-row > div { overflow-wrap: anywhere; }
.work-fold,.work-secondary .history { padding: 0 1rem; }
.work-fold summary,.work-secondary .history summary { cursor: pointer; padding: .95rem 0; min-height: 46px; color: #254452; font-size: .94rem; font-weight: 700; }
.work-fold[open],.work-secondary .history[open] { padding-bottom: .8rem; }
.work-record .facts { grid-template-columns: repeat(auto-fit,minmax(min(100%,150px),1fr)); margin: .35rem 0; }
.work-record .facts dd { overflow-wrap: anywhere; }
.work-record :is(.btn,.text-link) { min-height: 42px; }
.work-sources > .text-link { margin-right: 1rem; }
.work-sources .detail-section { margin-top: .9rem; }
.record-consult { padding: .15rem .85rem; border: 1px solid #cad9dc; background: #f6f9f8; border-radius: 4px; }
.record-consult summary { display: flex; align-items: center; gap: .55rem; cursor: pointer; color: #075e74; font-weight: 700; min-height: 45px; }
.record-consult[open] { padding-bottom: .8rem; }
.consult-tools { display: flex; align-items: end; flex-wrap: wrap; gap: .45rem; }
.consult-tools .field { flex: 1 1 14rem; min-width: 0; }
.consult-stage { overflow: auto; max-height: min(55vh,540px); padding: .4rem; background: #233b45; }
.consult-stage canvas { display: block; margin: auto; max-width: 100%; height: auto; background: white; }
.record-consult [data-consult-status] { margin: .5rem 0; font-size: .9rem; }
@media(min-width:701px) {
  .rail-compact #app .workspace { grid-template-columns:64px minmax(0,1fr); }
  .rail-compact #app .sidebar { padding:8px; background-color:#102f41e8; }
  .rail-compact .sidebar :is(.rail-project,.rail-group-label) { display:none; }
  .rail-compact .sidebar :is(nav > .nav-link,.rail-group > summary,.sidebar-end button) { justify-content:center; padding-inline:0; }
  .rail-compact .sidebar :is(nav > .nav-link,.sidebar-end button) > span:not(.avatar),
  .rail-compact .sidebar .profile > svg,
  #app .workspace .rail-group.rail-flyout > summary::after,
  .rail-compact #app .workspace .rail-group > summary::after { display:none; }
  #app .workspace .rail-group[open] > summary > span svg { transform:none; }
  .rail-compact .rail-group > div {
    position:fixed; left:68px; top:var(--rail-flyout-top, 80px); width:min(17rem,calc(100vw - 78px));
    max-height:var(--rail-flyout-height, 50vh); overflow:auto; overscroll-behavior:contain; z-index:8;
    padding:.5rem; background:#082438; border:1px solid #416171; border-radius:5px; box-shadow:0 8px 24px #071c3260;
  }
  .rail-compact .rail-group .rail-flyout-title { display:block; padding:.6rem .75rem; color:#72d6ed; font-size:.8rem; }
  .rail-compact .rail-group:has([aria-current="page"]) > summary { box-shadow:inset 3px 0 var(--cyan); }

}
@media(max-width:900px) {
  .work-record-grid { grid-template-columns: minmax(0,1fr); }
}
@media(max-width:700px) {
  body.nav-open .site-tail { visibility: hidden; }
  #app .sidebar { height: calc(100dvh - var(--mast-height)); }
  .mast-tools { gap: .2rem; }
  .mast-context .rail-size { display: none; }
  .mast-switch { padding: .4rem .5rem; }
  .mast-switch span { display: none; }
  .mast-tools .top-search,.mast-tools .mast-action,.mast-menu summary { min-width: 40px; min-height: 44px; }
  .record-views { padding-inline: .35rem; }
  .record-preset { padding: .5rem .62rem; }
  .work-register .filterbar { display: flex; flex-wrap: wrap; align-items: center; }
  .work-register .filter-search { flex: 1 1 100%; }
  .work-register .filterbar select { flex: 1 1 9rem; min-width: 0; max-width: 100%; }
  .work-table,.work-table tbody { display: block; }
  .work-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .work-table tbody tr { display: grid; grid-template-columns: minmax(0,1fr) auto; padding: .85rem 1rem; gap: .45rem .8rem; border-bottom: 1px solid #dae2df; }
  .work-table tbody td { display: block; padding: 0; border: none; white-space: normal; }
  .work-table tbody td:first-child { grid-column: 1/-1; }
  .work-table [data-column="Status"] { grid-row: 2/4; grid-column: 2; align-self: start; }
  .work-table td[data-column]:not([data-column="Status"])::before { content: attr(data-column) " · "; color: #62757c; font-size: .8rem; }
  .work-record .detail-controls { gap: .4rem; }
  .work-record .detail-controls .btn { flex: 0 1 auto; white-space: normal; }
  .work-record-heading { padding-top: .2rem; }
  .work-record-line { gap: .7rem 1.1rem; }
}
@media(max-width:395px) {
  .masthead:has(.mast-home) { gap: 4px; padding-inline: 6px; }
  .mast-tools .mast-notices { display: none; }
  .mast-switch { gap: 0; }
  .mast-switch svg:last-child { display: none; }
  .mast-actions { gap: 2px; }
}

.question-images-editor,.rfi-capture { min-width:0; padding:.85rem; border:1px solid #cbd8db; border-radius:4px; background:#f5f8f7; }
.question-images-editor small,.rfi-capture small { display:block; margin:.45rem 0; line-height:1.45; color:#3d5863; }
.question-images-editor [data-image-message]:empty { display:none; }
.question-image { margin:.85rem 0; padding:.55rem; border:1px solid #cbd7db; background:white; }
.question-image img { display:block; max-width:100%; max-height:70vh; object-fit:contain; margin:auto; }
.question-image figcaption { font-size:.9rem; color:#294554; overflow-wrap:anywhere; margin-top:.45rem; }
.rfi-capture { margin:.8rem 0; }
.capture-actions,.crop-fields { display:flex; flex-wrap:wrap; gap:.4rem; }
.crop-fields { margin:.6rem 0; }
.crop-fields label { flex:1 1 4rem; min-width:0; font-size:.875rem; }
.crop-fields input { width:100%; min-height:44px; }
.consult-stage.cropping { touch-action:none; cursor:crosshair; }
.crop-sheet { position:relative; width:fit-content; max-width:100%; margin:auto; }
.rfi-crop-box,.rfi-crop-box svg { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; }
.question-image-open { display:block; width:100%; padding:0; border:0; background:white; cursor:zoom-in; color:#045b73; text-align:left; }
.question-image-open span { display:block; padding:.45rem 0 0; font-size:.8rem; text-transform:uppercase; font-weight:bold; }
.rfi-image-dialog { width:min(98vw,1280px); max-width:100%; max-height:98dvh; padding:0; }
.rfi-image-dialog[open] { display:flex; flex-direction:column; }
.rfi-image-dialog .dialog-header { min-width:0; }
.rfi-image-dialog .image-size-bar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:.4rem; padding:.5rem .9rem; }
.rfi-image-dialog .image-size-bar p { margin:0; overflow-wrap:anywhere; }
.rfi-image-dialog .image-scroll { overflow:auto; overscroll-behavior:contain; min-height:0; background:#253744; }
.rfi-image-dialog .image-scroll img { display:block; width:auto; max-width:100%; max-height:72dvh; margin:auto; }
.rfi-image-dialog .actual-size img { max-width:none; max-height:none; margin:0; }

.fin-export-tools{display:flex;flex-wrap:wrap;gap:.7rem;align-items:end;padding:12px 16px;background:#f3f6f5}.fin-export-tools label{display:grid;gap:3px;font-size:.8rem;font-weight:700}
#dialog:has([data-event-lines]){width:min(1120px,96vw);max-width:96vw}
#dialog [data-event-line]{min-width:0;padding:12px;border:1px solid #cedbdc;margin:8px 0}
@media(min-width:800px){#dialog [data-event-line]{display:grid;grid-template-columns:minmax(200px,1.3fr) minmax(220px,1fr) auto;gap:12px;align-items:end}#dialog:has([data-event-lines]) textarea{min-height:110px}}

/* Bid Room typography and action hierarchy for project work. */
#app .workspace :is(.page-head h1, .hd-hero h1, .work-record h1) {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 500;
  letter-spacing: -0.045em;
  text-transform: none;
}
#app .workspace :is(.page-head h1, .work-record h1) {
  color: var(--ink);
}
#app .workspace :is(.page-head, .work-record .detail-controls, .hd-hero-actions) .btn {
  border-radius: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.055em;
}
#app .workspace :is(.page-head, .work-record .detail-controls) .btn.primary,
#app .workspace .hd-hero-actions .hd-hero-main {
  border-color: var(--cyan);
  background: var(--cyan);
  color: #09283e;
}
#app .workspace :is(.page-head, .work-record .detail-controls) .btn.primary:hover,
#app .workspace .hd-hero-actions .hd-hero-main:hover {
  border-color: #43bfe7;
  background: #43bfe7;
}
#app .workspace .registry .filterbar {
  background: #f6f5f0;
}
#app .workspace .registry :is(.filter-search, select, .filter-toggle) {
  border-radius: 2px;
}
#app .workspace :is(.registry .record-table thead th, .work-record .work-record-tag) {
  color: #36546a;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}
#app .workspace .registry .record-table tbody tr:not(.drawing-discipline):hover {
  background: #f1f8fa;
}
#app .workspace .work-record .request-body {
  border-inline-start-color: var(--cyan);
}
#app .workspace .rail-group > summary > svg {
  display: none;
}
#app .workspace .rail-group > summary::after {
  content: '';
  width: 1rem;
  height: 1rem;
  flex: none;
  background-color: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 1h6a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2h-2v6h4v3c0 3-2 5.5-5 7-3-1.5-5-4-5-7v-3h4V7H9a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2Zm0 2v2h6V3Z'/%3E%3C/svg%3E") center / contain no-repeat;
  transform: rotate(-90deg);
}
#app .workspace .rail-group[open] > summary::after {
  transform: none;
}
#app .workspace .sidebar .nav-link[aria-current='page'] {
  box-shadow: inset 3px 0 var(--cyan);
}

#app .sidebar .profile:hover {
  background: transparent;
}
#app .sidebar .profile:focus-visible {
  outline: 2px solid #77d6f2;
  outline-offset: -2px;
}
#dialog .account-overview {
  display: grid;
  gap: 12px;
  color: var(--ink);
}
#dialog .account-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: #09283e;
  color: white;
}
#dialog .account-identity .avatar {
  width: 48px;
  height: 48px;
  background: #0da6d9;
  color: #09283e;
}
#dialog .account-identity strong,
#dialog .account-identity span:not(.avatar) {
  display: block;
  overflow-wrap: anywhere;
}
#dialog .account-identity strong {
  font-size: 1.25rem;
}
.account-section {
  padding: 14px 16px;
  border: 1px solid #d8dddc;
  background: #f6f5f0;
}
.account-section h3 {
  margin: 0 0 8px;
}
.account-section p {
  margin: 0 0 6px;
}
.account-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.account-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 12px;
  margin: 12px 0 0;
}
.account-facts dt {
  color: #476071;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
}
.account-facts dd {
  margin: 2px 0 0;
  overflow-wrap: anywhere;
}
.account-end {
  display: flex;
  justify-content: flex-end;
}
.hd-embedded .focus-insights + .focus-overview-grid {
  margin-top: 1rem;
}
.jobsite-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 205px), 1fr));
  gap: 10px 20px;
  margin: 0 0 12px;
  padding: 14px 16px;
  border: 1px solid #d8dddc;
  background: #f6f5f0;
  color: #15222e;
}
.jobsite-strip h2 {
  margin: 0 0 5px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.jobsite-strip p {
  margin: 0;
  font-size: .87rem;
}
.jobsite-strip a {
  display: block;
  width: fit-content;
  color: #00627d;
  font-size: .87rem;
  overflow-wrap: anywhere;
}

.avatar:has(img) {
  position: relative;
  overflow: hidden;
}
.avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#dialog .account-identity .btn {
  margin-inline-start: auto;
}
.profile-photo-preview img,
.profile-photo-suggestion img {
  display: block;
  width: 128px;
  height: 128px;
  border: 1px solid #bdced6;
  border-radius: 50%;
  object-fit: cover;
}
.profile-photo-preview img[hidden] {
  display: none;
}
.profile-photo-suggestion {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-block: 12px;
}

.fd-steps {
  counter-reset: fd-step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 10px;
  margin: .75rem 0 1rem;
  padding: 0;
  list-style: none;
}
.fd-steps > li {
  counter-increment: fd-step;
  display: grid;
  align-content: start;
  grid-template-columns: 1.7rem minmax(0, 1fr);
  column-gap: .55rem;
  row-gap: .25rem;
  padding: .75rem;
  border: 1px solid #d4dfdf;
  background: #f6f5f0;
  color: #15222e;
}
.fd-steps > li::before {
  grid-row: 1 / span 3;
  display: grid;
  align-self: start;
  place-items: center;
  width: 1.65rem;
  height: 1.65rem;
  background: #09283e;
  color: #fff;
  content: counter(fd-step);
  font-weight: 800;
}
.fd-steps strong,
.fd-steps p,
.fd-steps .text-link {
  grid-column: 2;
}
.fd-steps strong {
  line-height: 1.3;
}
.fd-steps p {
  margin: 0;
  color: #405663;
  font-size: .85rem;
}
.fd-steps .text-link {
  justify-self: start;
  min-height: 34px;
  text-align: left;
}
[data-fin-register] h2 {
  scroll-margin-top: calc(var(--mast-height) + 16px);
}

.rail-group > summary > span {
  display:flex;
  align-items:center;
  gap:.55rem;
}
.rail-group > summary > span svg { flex:none; color:#72d6ed; }
.mast-menu[open] > div {
  min-width:min(14rem,calc(100vw - 2rem));
  max-height:70dvh;
  overflow:auto;
}
.mast-menu-group + .mast-menu-group { border-top:1px solid #385467; }
.mast-menu-label {
  display:block;
  padding:.45rem .75rem .1rem;
  color:#9ed6e8;
  font-size:.72rem;
  font-weight:750;
}
.mast-menu-group :is(a,button) { gap:.6rem; width:100%; }
.mast-menu-group .ico { flex:none; color:#70d7ef; }


.rail-flyout-title { display:none; }
.rail-tooltip:not([hidden]) {
  position:fixed; left:70px; z-index:20; pointer-events:none;
  background:#09283e; color:white; padding:.4rem .65rem; border-radius:4px;
  font-size:.84rem; box-shadow:0 2px 8px #0004;
}
.rail-size[aria-expanded="false"] svg { transform:rotate(-90deg); }

.page-head > div:first-child { min-width:0; }
.page-head h1 { overflow-wrap:anywhere; }
.page-head { flex-wrap:wrap; align-items:flex-start; }
.page-head-actions { display:flex; flex-wrap:wrap; align-items:center; gap:.5rem; max-width:100%; }
@media(max-width:700px) {
  .page-head-actions { width:100%; }
  .page-head-actions > * { max-width:100%; white-space:normal; }
}

#bogatay-ai-question { display:grid; gap:.65rem; }
#bogatay-ai-question .field span,.fd-ai-reply small { font-weight:800; letter-spacing:.09em; text-transform:uppercase; }
#bogatay-ai-question textarea { width:100%; resize:vertical; min-height:5rem; }
#bogatay-ai-question .btn { justify-self:start; background:#092a40; color:white; }
.fd-ai-reply { margin-top:1rem; padding:1rem; border-left:3px solid #12a9d3; background:#f1f6f7; }
.fd-ai-reply p { overflow-wrap:anywhere; }
.fd-ai-reply ul { padding-left:1.3rem; }

.focus-insights > summary::after {display:none}
.focus-insights > summary > svg:last-child {margin-left:auto;flex:none;transform:rotate(-90deg)}
.focus-insights[open] > summary > svg:last-child {transform:none}
.hd-panel-head h2 .ico {vertical-align:middle;color:#1387a5}
.workload-chart .workload-row {border-radius:5px;padding:.55rem .65rem;background:linear-gradient(110deg,#edf7f8,#fff)}
.workload-chart .workload-row:is(:hover,:focus-visible) {background:#dcedf2}
.workload-chart .workload-row svg {height:9px;border-radius:6px;overflow:hidden}
.workload-chart .workload-row strong {color:#075c76;font-variant-numeric:tabular-nums}
.fd-camera iframe {width:100%;aspect-ratio:16/9;border:0}

.fd-ai-project {display:block;margin-top:.4rem;font-size:1.2rem;color:white}
#bogatay-ai-question textarea {background:white;color:#15222e;border-radius:6px 6px 0 0;padding:12px;font:inherit}
#bogatay-ai-question .btn {background:#0da6d9;color:#07283c;padding:8px 22px;border-radius:0;font-weight:800}
.fd-ai-reply h3 {text-transform:uppercase;margin:.25rem 0 1rem}
.fd-ai-reply h4 {font-size:1.1rem;margin:.25rem 0 .85rem}
.fd-ai-reply small {color:#086481}

.fd-project-context {display:grid;gap:.2rem;margin:0;padding:.65rem 0;background:linear-gradient(90deg,#092638,#092638de),url(klamath-topography-navy.svg) center/cover;color:white;overflow-wrap:anywhere}
.fd-project-context span {color:#b8e6f0;font-size:.74rem;font-weight:750;letter-spacing:.055em}
.fd-project-context a {color:white;font-size:1.14rem;font-weight:750;width:fit-content}

.main-pane > .page:has(> #project-home) {width:100%;max-width:none;margin:0;padding:0}
.main-pane #project-home {margin:0}
#project-home .port-home.focus-home .project-banner {margin:0;padding-inline:0;width:100%}
.fd-project-context > *, #project-home .project-banner .hd-hero-content {
  margin-inline:clamp(16px,2vw,32px);
  max-width:calc(100% - 2 * clamp(16px,2vw,32px));
}
#project-home .project-banner .hd-hero-actions {margin-inline-end:clamp(16px,2vw,32px)}
#app #project-home .project-banner [data-do="create"] {background:rgb(6 32 49 / 62%);color:white;border:1px solid rgb(159 222 238 / 72%)}
#app #project-home .project-banner [data-do="create"]:is(:hover,:focus-visible) {background:rgb(10 74 95 / 86%)}

#app .project-meta-divider { color:rgb(255 255 255 / 45%); }
@media (min-width:701px) {
  body:not(.rail-compact) #app .sidebar { padding-inline:6px; }
  body:not(.rail-compact) #app .sidebar :is(.nav-link,.rail-group > summary) { padding-inline:7px; }
}

.sidebar .nav-link .rail-ai-wordmark { font-style:italic; font-weight:400; }
.sidebar .rail-ai-wordmark b { font-weight:800; }

.staff-ai.panel { padding:0; overflow:hidden; }
.staff-ai-hero { display:flex; align-items:center; gap:1.2rem; padding:clamp(1.4rem,4vw,3.4rem); border-bottom:3px solid #12a9d3; color:white; background:linear-gradient(100deg,#071f35f5,#0d3449aa),url('klamath-topography-navy.svg') center/cover,#082c42; }
.staff-ai-hero h1 { margin:.15rem 0; color:white; font:italic 400 clamp(2rem,5vw,4rem)/1 Arial,sans-serif; letter-spacing:-.055em; }
.staff-ai-hero h1 b { font-weight:800; }
.staff-ai-hero h1 b:last-child { color:#70ddfa; }
.staff-ai-hero small { color:#a6e7f5; font-weight:700; text-transform:uppercase; letter-spacing:.1em; }
.staff-ai-hero p { color:white; margin:.45rem 0 0; }
.staff-ai-body { padding:clamp(1rem,3vw,2rem); }
.staff-ai-prompts { display:flex; flex-wrap:wrap; gap:.5rem; margin-bottom:1.25rem; }
.staff-ai-search { margin-top:1rem; }
.staff-ai-search summary { padding:1rem; cursor:pointer; font-weight:700; }
