:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", system-ui, sans-serif;
  font-size: 16px;
  color: #1c2c24;
  background: #f4f6f3;
  --muted: #536258;
  --line: #dde4dd;
  --green: #204738;
  --green-dark: #15382c;
  --green-tint: #edf4ed;
  --good: #36795a;
  --needed: #a36124;
  --due: #356786;
  --shadow: 0 10px 28px #253e2d12, 0 2px 6px #253e2d0b;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 0; }
button, input, select, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button:disabled { opacity: .45; cursor: default; }
:focus-visible { outline: 3px solid #3b795f; outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3, h4, p { margin: 0; }
svg { flex-shrink: 0; vertical-align: middle; }
.skip-link { position: fixed; top: 10px; left: 10px; transform: translateY(-170%); z-index: 10; padding: 10px 16px; background: white; color: var(--green); border-radius: 8px; }
.skip-link:focus { transform: none; }
.masthead { border-bottom: 1px solid #e0e7df; background: #fff; }
.masthead-inner { max-width: 1580px; padding: 7px 42px; margin: auto; min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { flex: none; object-fit: contain; }
.brand strong, .brand span { display: block; }
.brand strong { font-size: 1rem; letter-spacing: -.018em; }
.brand span { color: var(--muted); font-size: .79rem; margin-top: 3px; }
.global-tools, .workspace-tools { display: flex; align-items: center; gap: 9px; }
.demo-tag { display: inline-flex; gap: 7px; align-items: center; margin-right: 5px; padding: 7px 11px; border: 1px solid #dce7dd; border-radius: 50px; color: #355e48; background: #f0f5ef; font-size: .77rem; font-weight: 650; white-space: nowrap; }
.demo-tag > span, .status-dot { flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%; background: #538167; }
.role-wrap { position: relative; display: flex; align-items: center; }
#role-icon { left: 11px; pointer-events: none; position: absolute; color: #496052; }
select {
  appearance: none;
  border: 1px solid #d9e2d9;
  border-radius: 9px;
  color: inherit;
  padding: 9px 31px 9px 11px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23476050' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 9 5 5 5-5'/%3E%3C/svg%3E") right 9px center / 15px no-repeat;
}
.role-wrap select { min-height: 40px; max-width: 212px; padding-left: 34px; font-size: .85rem; font-weight: 620; cursor: pointer; }
.company-picker { min-height: 40px; max-width: 220px; font-size: .83rem; font-weight: 650; }
.page { max-width: 1580px; margin: auto; padding: 31px 42px 26px; }
.intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.intro h1 { font-size: clamp(2.05rem, 3.4vw, 3rem); line-height: 1.03; font-weight: 735; letter-spacing: -.052em; }
.intro p { margin-top: 10px; font-size: 1rem; line-height: 1.47; color: var(--muted); }
.button { display: inline-flex; min-height: 41px; align-items: center; justify-content: center; gap: 7px; padding: 8px 13px; flex: none; border: 1px solid transparent; border-radius: 9px; font-weight: 650; font-size: .86rem; line-height: 1.2; transition: background .16s, border-color .16s, color .16s; text-align: center; }
.icon-button { padding: 0; width: 41px; }
.text-button, .subtle { color: var(--green); background: transparent; }
.text-button:hover, .subtle:hover { background: #e9f0e8; }
#reset { color: #b42318; }
#reset:hover { background: #fcebe9; }
.secondary { border-color: #dbe4dc; background: #fff; color: #2f4e3d; }
.secondary:hover { background: #f2f7f1; border-color: #c2d5c7; }
.primary { background: var(--green); border-color: var(--green); color: white; }
.primary:hover { background: var(--green-dark); border-color: var(--green-dark); }
.danger { background: #8b352e; border-color: #8b352e; color: #fff; }
.danger:hover { background: #6e2822; }
.projects { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 20px; }
.project-button { display: flex; align-items: center; text-align: left; gap: 11px; min-width: 0; width: 100%; padding: 11px 13px; border: 1px solid #dfe6dd; border-radius: 13px; background: #fdfefc; transition: background .18s, border-color .18s; }
.project-button:hover { border-color: #a8c2ab; background: #f7faf6; }
.project-button[aria-current="page"] { background: #eaf2e9; border-color: #9ebca4; box-shadow: inset 0 0 0 .5px #aec8af; }
.project-icon { display: inline-grid; width: 39px; height: 39px; place-items: center; border-radius: 10px; background: #eef3ed; color: #416a52; flex: none; }
.project-button[aria-current="page"] .project-icon { background: var(--green); color: #e6f3e7; }
.project-name { min-width: 0; }
.project-name strong, .project-name small { display: block; overflow-wrap: anywhere; }
.project-name strong { font-size: .91rem; letter-spacing: -.012em; }
.project-name small { font-size: .765rem; color: var(--muted); margin-top: 3px; }
.project-open { display: none; color: var(--green); font-weight: 700; font-size: .88rem; }
.projects.is-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.is-directory .project-button { display: grid; align-content: start; min-height: 190px; padding: 22px; gap: 12px; }
.is-directory .project-icon { width: 45px; height: 45px; }
.is-directory .project-name strong { font-size: 1.28rem; }
.is-directory .project-name small { display: block; font-size: .93rem; line-height: 1.45; }
.is-directory .project-open { display: block; }
.session-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; padding: 13px 16px; margin: 0 0 13px; border: 1px solid #dbe5db; background: #fff; border-radius: 13px; }
.session-title, .session-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.session-title h1 { font-size: 1.23rem; letter-spacing: -.025em; }
.session-label { color: var(--green); font-size: .85rem; font-weight: 700; }
.session-controls select { max-width: 100%; }
@media (max-width: 600px) {
  .projects.is-directory { grid-template-columns: 1fr; gap: 8px; }
  .is-directory .project-button { grid-template-columns: auto minmax(0, 1fr); min-height: 0; padding: 12px; gap: 6px 10px; }
  .is-directory .project-name strong { font-size: 1rem; }
  .is-directory .project-name small { font-size: .82rem; }
  .is-directory .project-open { grid-column: 2; font-size: .78rem; }
  .session-bar { padding: 9px; gap: 7px; }
  .session-title { gap: 4px; }
  .session-title h1 { font-size: 1.02rem; }
  .session-controls { flex: 1 1 100%; }
}
.workspace { border: 1px solid #dae4da; border-radius: 17px; background: #fff; box-shadow: 0 4px 20px #13251908; overflow: clip; }
.workspace-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 19px; min-height: 75px; border-bottom: 1px solid var(--line); }
.workspace-head h2 { font-size: 1.25rem; font-weight: 715; letter-spacing: -.035em; }
.workspace-head p { margin-top: 4px; color: var(--muted); font-size: .85rem; line-height: 1.4; }
.workspace-body { display: grid; grid-template-columns: minmax(278px, 27%) minmax(0, 1fr); height: clamp(510px, calc(100svh - 337px), 810px); min-height: 0; }
.mobile-view { display: none; }
.rail { position: relative; z-index: 1; display: flex; flex-direction: column; min-height: 0; background: #fff; border-right: 1px solid var(--line); }
.rail-head { padding: 15px 13px 7px; }
.search-tools { display: flex; align-items: stretch; gap: 7px; }
.search { display: flex; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid #e2e8e1; border-radius: 10px; background: #f5f7f4; color: #586d5f; flex: 1; min-width: 0; }
.search:focus-within { border-color: #90ab98; box-shadow: 0 0 0 2px #d7e6d9; }
.search input { background: transparent; border: 0; color: #24362a; font-size: .9rem; width: 100%; min-width: 0; outline: none; padding: 0; min-height: 38px; }
.search input::placeholder { color: #58665d; }
#filter-button.is-active { background: #e6f1e7; border-color: #a8c5ae; }
.filters { display: grid; gap: 11px; padding: 12px; margin-top: 8px; border: 1px solid #dce6dc; border-radius: 10px; background: #f8faf7; }
.filters label, .form-grid label { display: grid; gap: 4px; font-size: .83rem; color: #364c3e; font-weight: 650; min-width: 0; }
.filters select { width: 100%; font-size: .85rem; }
.filters .check-field { display: flex; align-items: center; gap: 7px; }
.check-field input { width: 17px; height: 17px; accent-color: var(--green); }
.filters .text-button { justify-self: start; min-height: 29px; padding: 3px; font-size: .79rem; }
.list-meta { margin-top: 14px; padding: 0 2px; display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.list-meta h3 { font-size: .87rem; font-weight: 700; }
#list-count { color: var(--muted); font-size: .76rem; text-align: right; }
.feature-list { overflow-y: auto; overscroll-behavior: contain; padding: 0 8px 12px; min-height: 0; flex: 1; }
.feature-item { padding: 3px 0; }
.feature-row { width: 100%; text-align: left; display: grid; grid-template-columns: 38px minmax(0, 1fr) 14px; align-items: center; gap: 9px; padding: 9px 8px; min-height: 67px; border: 1px solid transparent; border-radius: 10px; background: transparent; }
.feature-row:hover { background: #f4f7f3; }
.feature-row[aria-current="true"] { background: #ebf3eb; border-color: #d4e5d5; }
.feature-icon { width: 36px; height: 36px; background: #edf3ed; color: #3a6750; border-radius: 10px; display: grid; place-items: center; }
.feature-row[aria-current="true"] .feature-icon { background: #dceadc; }
.feature-text { min-width: 0; }
.feature-name { font-size: .92rem; font-weight: 685; display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.feature-meta { display: block; margin-top: 4px; color: var(--muted); font-size: .76rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.feature-meta .status-dot { display: inline-block; vertical-align: 1px; }
.feature-row > svg { color: #617367; }
.status-dot[data-tone="needed"] { background: #b77434; }
.status-dot[data-tone="due"] { background: #5084a6; }
.status-dot[data-tone="good"] { background: #508464; }
.status-chip { display: inline-flex; align-items: center; gap: 6px; border-radius: 50px; padding: 5px 8px; font-size: .73rem; font-weight: 680; width: fit-content; }
.status-chip[data-tone="good"] { background: #e8f2e8; color: #366149; }
.status-chip[data-tone="needed"] { background: #f9eedc; color: #834d1e; }
.status-chip[data-tone="due"] { background: #e8f0f6; color: #305a79; }
.empty { display: grid; gap: 6px; padding: 22px 11px; color: var(--muted); font-size: .88rem; line-height: 1.45; }
.empty strong { color: #2f4537; }
.map-pane { position: relative; min-width: 0; min-height: 0; background: #e8ecdf; isolation: isolate; }
#map-host { position: absolute; inset: 0; }
.map-label, .legend, .map-controls button, .detail, .placement { background: #fff; border: 1px solid #dce5db; box-shadow: var(--shadow); }
.map-label { display: flex; gap: 7px; align-items: center; position: absolute; top: 13px; left: 13px; padding: 7px 9px; border-radius: 9px; color: #34533f; font-size: .76rem; font-weight: 720; pointer-events: none; }
.map-label-divider { width: 1px; background: #dce6dd; height: 12px; }
.map-label-note { color: #58695e; font-weight: 520; }
.legend { position: absolute; bottom: 12px; left: 13px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; max-width: calc(100% - 73px); border-radius: 9px; padding: 7px 10px; font-size: .73rem; color: #44554a; pointer-events: none; }
.legend > span { display: inline-flex; align-items: center; gap: 5px; }
.map-controls { position: absolute; right: 13px; bottom: 12px; display: grid; gap: 7px; }
.map-controls button { display: grid; place-items: center; width: 41px; height: 41px; padding: 0; border-radius: 9px; color: #2e513d; }
.map-controls button:hover { background: #f0f6ee; }
.zoom-group button:first-child { border-radius: 9px 9px 0 0; border-bottom: 0; }
.zoom-group button:last-child { border-radius: 0 0 9px 9px; }
.detail { position: absolute; top: 13px; right: 13px; width: min(314px, 41%); max-height: calc(100% - 171px); overflow-y: auto; overscroll-behavior: contain; border-radius: 13px; }
.detail-head { display: grid; grid-template-columns: 38px minmax(0,1fr) 29px; align-items: start; gap: 8px; padding: 12px 11px 0; }
.detail-head h3 { overflow-wrap: anywhere; font-size: 1.04rem; letter-spacing: -.025em; margin-top: 2px; }
.detail-head p { margin-top: 3px; overflow-wrap: anywhere; font-size: .76rem; color: var(--muted); }
.detail-head .icon-button { min-height: 31px; width: 31px; }
.detail-status { margin: 10px 11px; }
.detail-tabs { display: flex; border-top: 1px solid #e5ebe4; border-bottom: 1px solid #e5ebe4; background: #fbfcfa; padding: 0 6px; }
.detail-tabs button { flex: 1; min-width: 0; padding: 9px 4px; border: 0; border-bottom: 2px solid transparent; background: transparent; font-size: .77rem; font-weight: 650; color: var(--muted); overflow-wrap: anywhere; }
.detail-tabs button[aria-pressed="true"] { color: var(--green); border-bottom-color: #457358; }
.detail-content { padding: 11px; font-size: .84rem; line-height: 1.4; display: grid; gap: 9px; overflow-wrap: anywhere; }
.detail-content > p { color: #3f5447; }
.detail-content dl { display: grid; grid-template-columns: minmax(0,.82fr) minmax(0, 1fr); margin: 0; column-gap: 8px; row-gap: 4px; font-size: .78rem; }
.detail-content dt { color: var(--muted); }
.detail-content dd { margin: 0; font-weight: 650; }
.detail-content .button { width: 100%; min-height: 35px; font-size: .78rem; }
.detail-link { border: 0; text-align: left; width: fit-content; background: transparent; padding: 1px; color: #315b42; font-weight: 690; font-size: .82rem; }
.detail-link:hover { text-decoration: underline; }
.record { display: grid; gap: 5px; background: #f6f8f5; padding: 9px; border: 1px solid #e6ebe5; border-radius: 8px; }
.record .record-meta { font-size: .76rem; color: var(--muted); }
.record h4 { font-size: .87rem; }
.record .button { margin-top: 4px; }
.workspace-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 15px; min-height: 35px; border-top: 1px solid #e4e9e2; background: #fbfcfa; color: #425449; font-size: .76rem; line-height: 1.25; }
.workspace-footer span { display: inline-flex; align-items: center; gap: 5px; }
.placement { position: absolute; top: 13px; left: 13px; right: 13px; width: fit-content; border-radius: 11px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 9px; }
.placement strong, .placement div span { display: block; }
.placement strong { font-size: .9rem; }
.placement div span { color: var(--muted); font-size: .78rem; margin-top: 3px; }
.placement .button { min-height: 35px; }
dialog { border: 1px solid #dce6db; color: #1c2c24; width: min(510px, calc(100% - 22px)); max-height: calc(100% - 22px); padding: 0; border-radius: 17px; box-shadow: 0 20px 68px #12251c41; }
dialog::backdrop { background: #182a2180; }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 7px; padding: 16px 17px 12px; border-bottom: 1px solid #e8ece7; }
.dialog-head h2 { font-size: 1.25rem; letter-spacing: -.025em; padding-top: 6px; overflow-wrap: anywhere; }
.dialog-head .icon-button { width: 35px; min-height: 35px; }
.dialog-body { padding: 15px 17px 17px; }
.dialog-body > p, .help-list { color: #46594c; line-height: 1.52; font-size: .93rem; }
.help-list { margin: 0; padding-left: 1.2rem; }
.help-list li + li { margin-top: 8px; }
.dialog-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; flex-wrap: wrap; padding-top: 13px; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 11px; }
.form-grid .wide { grid-column: 1 / -1; }
.form-grid input, .form-grid textarea, .form-grid select { min-width: 0; width: 100%; min-height: 40px; font-size: .91rem; font-weight: 450; border: 1px solid #d6e0d6; border-radius: 8px; background-color: white; color: #253a2c; }
.form-grid input, .form-grid textarea { padding: 8px 10px; }
.form-grid textarea { resize: vertical; min-height: 62px; }
.form-grid details { padding: 7px 0; }
.form-grid details > summary { font-size: .86rem; font-weight: 650; color: #325a45; cursor: pointer; }
.form-grid details > div { margin-top: 9px; }
.form-note, .form-error { font-size: .83rem; line-height: 1.4; margin: 5px 0 0; }
.form-note { color: var(--muted); }
.form-error { color: #9d3428; }
.location-state { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.location-state .button { min-height: 38px; }
.toast { z-index: 5; position: fixed; bottom: max(16px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 22px); padding: 11px 16px; border-radius: 10px; background: #234b38; color: white; box-shadow: var(--shadow); font-size: .92rem; line-height: 1.4; }
@media (max-width: 1100px) {
  .page { padding-right: 26px; padding-left: 26px; }
  .masthead-inner { padding-right: 26px; padding-left: 26px; }
  .project-button { padding: 9px; gap: 8px; }
}
@media (max-width: 760px) {
  .page { padding: 20px 12px 14px; }
  .masthead-inner { padding: 9px 12px; min-height: 57px; gap: 7px; }
  .brand { gap: 6px; }
  .brand img { width: 35px; height: 35px; }
  .brand strong { font-size: .83rem; }
  .brand span { display: none; }
  .demo-tag { display: none; }
  .global-tools { gap: 2px; }
  .global-tools:has(.company-picker:not([hidden])) { flex-wrap: wrap; justify-content: flex-end; }
  .company-picker { max-width: 148px; min-height: 34px; font-size: .76rem; }
  .global-tools .icon-button { width: 33px; }
  .role-wrap select { max-width: 146px; min-height: 36px; padding-left: 9px; font-size: .78rem; }
  #role-icon { display: none; }
  .intro { gap: 6px; align-items: flex-start; margin-bottom: 14px; }
  .intro p { font-size: .89rem; margin-top: 5px; }
  #reset { padding: 6px; gap: 4px; font-size: .75rem; }
  .projects { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 6px; margin-bottom: 13px; }
  .project-button { min-height: 44px; padding: 6px 8px; border-radius: 9px; }
  .project-icon { width: 31px; height: 31px; border-radius: 8px; }
  .project-name strong { font-size: .83rem; }
  .project-name small { display: none; }
  .workspace { border-radius: 12px; }
  .workspace-head { padding: 9px 10px; gap: 8px; min-height: 60px; align-items: center; }
  .workspace-head h2 { font-size: 1.06rem; }
  .workspace-head p { font-size: .76rem; }
  .workspace-tools { gap: 5px; }
  .workspace-tools .button { min-height: 38px; padding: 6px 8px; font-size: .76rem; }
  .workspace-tools .button svg { width: 16px; height: 16px; }
  .workspace-tools #report span { display: none; }
  .workspace-tools #project-register span { display: none; }
  .workspace-tools #project-orders span { display: none; }
  .mobile-view { display: flex; gap: 3px; margin: 6px 8px; padding: 2px; background: #ecf1eb; border-radius: 8px; }
  .mobile-view button { min-height: 30px; flex: 1; border: 1px solid transparent; background: transparent; border-radius: 7px; font-size: .8rem; font-weight: 660; color: #4e6557; }
  .mobile-view button[aria-pressed="true"] { background: white; color: var(--green); border-color: #dce6db; box-shadow: 0 1px 2px #15362310; }
  .workspace-body { grid-template-columns: minmax(0, 1fr); height: clamp(343px, 57svh, 570px); border-top: 1px solid #e2e8df; }
  .workspace-body[data-view="map"] > .rail, .workspace-body[data-view="list"] > .map-pane { display: none; }
  .rail { border-right: 0; }
  .rail-head { padding: 9px 9px 6px; }
  .feature-row { min-height: 57px; }
  .map-label { top: 7px; left: 7px; }
  .map-controls { right: 7px; bottom: 7px; }
  .map-controls button { width: 40px; height: 40px; }
  .legend { left: 7px; bottom: 7px; max-width: calc(100% - 59px); gap: 3px 8px; font-size: .68rem; padding: 6px; }
  .detail { top: auto; bottom: 38px; left: 7px; right: 55px; width: auto; max-height: calc(100% - 80px); }
  .detail-content .button { min-height: 38px; }
  .placement { top: 7px; left: 7px; right: 7px; }
  .workspace-footer { padding: 7px 8px; font-size: .69rem; }
}
@media (max-width: 390px) {
  .brand strong { max-width: 85px; }
  .workspace-head p { display: none; }
  .workspace-footer { align-items: flex-start; }
  .detail { bottom: 48px; }
  .workspace-footer span { flex-wrap: wrap; }
}
@media (max-width: 352px) {
  .brand strong { max-width: 74px; font-size: .76rem; }
  .role-wrap select { max-width: 124px; padding-right: 23px; background-position: right 6px center; }
  .global-tools .icon-button { width: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

dialog.fach-dialog { width: min(760px, calc(100% - 24px)); }
.fach-form { display: grid; gap: 12px; }
.fach-form-head { display: grid; grid-template-columns: 1fr minmax(145px, 31%); gap: 14px; align-items: start; }
.fach-form-head > p, .fach-group > p { font-size: .88rem; line-height: 1.45; color: var(--muted); }
.fach-form-head label { display: grid; gap: 5px; color: var(--muted); font-size: .77rem; font-weight: 650; }
.fach-form-head input { width: 100%; min-height: 39px; border: 1px solid #d6e0d6; border-radius: 8px; color: #24362a; padding: 7px 9px; }
.fach-groups { display: grid; gap: 8px; }
.fach-group { border: 1px solid #dce6dc; border-radius: 10px; padding: 10px 11px; background: #fcfdfb; }
.fach-group[open] { background: #fff; }
.fach-group > summary { color: var(--green); font-size: .92rem; font-weight: 695; cursor: pointer; }
.fach-group > summary span { padding-left: 3px; }
.fach-group > summary small { color: var(--muted); font-weight: 520; margin-left: .5em; }
.fach-group > p { margin-top: 8px; }
.fach-group .form-grid { margin: 10px 0 0; }
.form-grid .fach-field small { color: var(--muted); font-size: .75rem; font-weight: 460; line-height: 1.4; }
.fach-field output { display: block; min-height: 34px; padding: 6px 8px; border-radius: 6px; background: #edf3ed; overflow-wrap: anywhere; font-weight: 570; white-space: pre-line; }
.form-grid .fach-toggle { display: grid; grid-template-columns: auto 1fr; align-items: center; align-content: start; gap: 6px; }
.fach-toggle > span { grid-column: 2; grid-row: 1; }
.form-grid .fach-toggle > input { min-height: auto; width: 18px; height: 18px; grid-column: 1; grid-row: 1; accent-color: var(--green); }
.fach-toggle > small { grid-column: 2; }
.fach-required { color: #89452b; }
.fach-form .form-error { padding: 10px; background: #faf0ea; border-radius: 8px; }
.fach-form .form-error ul { margin: 6px 0 0; padding-left: 20px; }
.fach-references { display: grid; gap: 8px; }
.fach-references input { min-height: 40px; border: 1px solid #d6e0d6; border-radius: 8px; padding: 7px 9px; }
.fach-references .record > summary { cursor: pointer; font-weight: 660; }
.fach-references .record ul { padding-left: 17px; margin: 6px 0 0; font-size: .86rem; }
.fach-reference-key { color: var(--muted); font-size: .76rem; overflow-wrap: anywhere; }
@media (max-width: 540px) {
  .fach-form-head, .fach-group .form-grid { grid-template-columns: 1fr; }
}

.basemap-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 10px; padding: 8px 14px; border-bottom: 1px solid var(--line); background: #fbfcfa; font-size: .85rem; color: var(--green); }
.basemap-bar label { font-weight: 700; }
.basemap-bar .button, .basemap-bar select { min-height: 36px; padding-block: 6px; }
#map-network { color: var(--muted); font-size: .78rem; }
.map-sources { position: absolute; z-index: 1; bottom: 3px; right: 4px; color: #24392d; background: #ffffffe8; border-radius: 3px; padding: 2px 4px; max-width: calc(100% - 8px); font-size: .65rem; text-align: right; }
.map-sources a { color: inherit; }
.map-pane:has(.map-sources:not([hidden])) .legend { bottom: 22px; }
.map-pane:has(.map-sources:not([hidden])) .map-controls { bottom: 24px; }
@media (max-width: 600px) { .basemap-bar { padding: 6px 9px; gap: 5px; } #map-network { flex-basis: 100%; } }

.masthead .brand{color:inherit;text-decoration:none}
