#private-projects-link { white-space: nowrap; }
#private-projects-link[aria-current="page"] { text-underline-offset: 5px; text-decoration-thickness: 2px; }
body[data-private-library] .studio-layout { display: none; }
body[data-private-workspace] .workspace-basis > div:nth-child(4) { display: none; }
body[data-private-workspace] .studio-link-copy { display: none; }
#private-projects-page { width: min(calc(100% - 64px), 1376px); margin: 30px auto 48px; padding: 0; color: #151921; }
.private-page-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding-bottom: 22px; border-bottom: 2px solid #151921; }
.private-page-head h1 { margin: 0; font-size: clamp(29px, 3vw, 43px); letter-spacing: -.055em; line-height: 1.15; }
#private-project-back { display: inline-block; margin-bottom: 12px; color: #153ebd; font-size: 13px; }
#private-project-back[hidden] { display: none; }
.private-primary { display: inline-flex; align-items: center; justify-content: center; padding: 10px 16px; min-height: 42px; background: #1540d4; border: 1px solid #1540d4; color: white; font-weight: 680; font-size: 14px; text-decoration: none; white-space: nowrap; }
.private-primary:hover { background: #1033ad; }
.private-primary:disabled { background: #e3e6ed; border-color: #d4d9e2; color: #565f72; }
#private-project-library { padding-top: 16px; }
#private-project-empty { margin: 0; padding: 38px 0; color: #555c66; }
#private-project-list { padding: 0; margin: 0; list-style: none; }
#private-project-list a { min-height: 64px; display: grid; grid-template-columns: minmax(180px, 1.2fr) minmax(180px, 1fr) 130px 125px 24px; align-items: center; gap: 18px; border-bottom: 1px solid #d3d7dd; color: inherit; text-decoration: none; padding: 8px 12px; }
#private-project-list a:hover { background: #f1f4fa; }
#private-project-list a strong { font-size: 17px; }
#private-project-list a span { font-size: 13px; color: #4b5463; }
#private-project-list a span:last-child { color: #1540d4; font-size: 18px; }
#private-project-form:not([hidden]) { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 0; align-items: stretch; margin-top: 20px; border: 1px solid #cbd0d9; background: #fff; }
.private-map-area { display: grid; grid-template-rows: auto clamp(370px, calc(100svh - 326px), 510px) auto; min-width: 0; }
.private-map-search { display: flex; align-items: center; padding: 10px 12px; gap: 8px; border-bottom: 1px solid #cbd0d9; }
.private-map-search label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.private-map-search input { flex: 1; min-width: 0; }
#private-supported-sites { position: relative; flex: none; margin: 0; padding: 0; border: 0; }
#private-supported-sites summary { display: flex; align-items: center; min-height: 36px; gap: 7px; padding: 5px 8px; border: 1px solid #b9c1cf; border-radius: 2px; cursor: pointer; font-size: 13px; }
#private-supported-sites summary::after { content: '▾'; color: #1540d4; }
#private-supported-sites[open] summary { border-color: #1540d4; }
#private-supported-list { position: absolute; z-index: 1100; inset: 100% 0 auto auto; width: min(340px, 77vw); max-height: 320px; padding: 4px; margin: 4px 0 0; overflow: auto; list-style: none; background: #fff; border: 1px solid #b9c1cf; box-shadow: 0 3px 10px #15192120; }
#private-project-form #private-supported-list button { display: grid; gap: 3px; width: 100%; border-color: transparent; text-align: left; word-break: keep-all; overflow-wrap: anywhere; }
#private-supported-list button small { color: #485164; font-size: 11px; }
@media (min-width: 781px) and (max-height: 820px) {
  #private-projects-page:has(#private-project-form:not([hidden])) { margin-top: 20px; }
  #private-project-form:not([hidden]) { margin-top: 14px; }
  .private-page-head:has(#private-project-back:not([hidden])) { padding-bottom: 14px; }
  .private-form-fields .private-field { padding-block: 10px; }
  .private-form-fields .private-field:first-child { padding-block-start: 0; }
  .private-form-fields .private-finish { margin-top: 10px; }
}
#private-location-map { background: #e8ecf0; font-family: inherit; }
#private-location-map .leaflet-container, #private-location-map .leaflet-control-attribution { font: inherit; }
#private-location-map .leaflet-control-attribution { font-size: 10px; }
#private-location-map .private-marker { background: #1643dc; border: 2px solid white; box-shadow: 0 0 0 1px #123cbc; border-radius: 50%; }
#private-location-map .private-marker-pending { background: white; border-color: #1643dc; box-shadow: 0 0 0 1px white; }
.private-map-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; padding: 8px 12px; border-top: 1px solid #cbd0d9; color: #485164; font-size: 12px; }
.private-map-footer span:first-child { display: inline-flex; align-items: center; gap: 7px; }
.private-map-footer i { width: 13px; height: 10px; border: 1px solid #1540d4; background: #e5eaf7; }
.private-map-footer button { margin-left: auto; }
.private-form-fields { display: flex; flex-direction: column; border-left: 1px solid #cbd0d9; padding: 20px; }
.private-field { display: grid; gap: 8px; padding: 15px 0; border-bottom: 1px solid #e3e6eb; }
.private-field:first-child { padding-top: 0; }
.private-field label { font-size: 14px; font-weight: 690; }
.brief .private-field label { display: block; }
.private-field label span { color: #535d6e; padding-left: 3px; font-weight: 400; font-size: 12px; }
.private-field output { font-size: 14px; color: #344155; }
#private-project-form #private-location-confirm { justify-self: start; border-color: #1540d4; color: #1540d4; font-weight: 680; }
#private-location-feedback { margin: 0; font-size: 12px; line-height: 1.45; color: #344155; word-break: keep-all; }
#private-location-feedback:empty { display: none; }
#private-location-feedback[data-error] { color: #a02323; }
.private-boundary-actions { display: flex; flex-wrap: wrap; gap: 6px; }
#private-project-form :is(input:not([type="file"]), select, button:not(.private-primary)) { min-height: 36px; border: 1px solid #b9c1cf; border-radius: 2px; padding: 5px 8px; color: #16223b; background: #fff; font: inherit; font-size: 13px; }
#private-project-form button:not(:disabled):hover { border-color: #1540d4; }
#private-project-form button:not(.private-primary):disabled { color: #606a7b; background: #eef0f4; }
.private-file-field input { width: 100%; font-size: 12px; }
.private-file-field input::file-selector-button { border: 1px solid #b9c1cf; border-radius: 2px; padding: 6px 8px; margin-right: 8px; background: #fff; color: #16223b; }
.private-finish { display: flex; flex-direction: column; justify-content: end; flex: 1; gap: 8px; margin-top: 15px; }
#private-project-status { min-height: 1.4em; margin: 0; color: #475469; font-size: 12px; line-height: 1.45; }
#private-project-status[data-error] { color: #a02323; }
#private-local-note { margin: 16px 0 0; color: #555c66; font-size: 12px; }
@media (max-width: 780px) {
  #private-projects-page { width: calc(100% - 28px); }
  #private-project-form:not([hidden]) { grid-template-columns: 1fr; }
  .private-map-area { grid-template-rows: auto minmax(340px, 48vh) auto; }
  .private-form-fields { border-left: 0; border-top: 1px solid #cbd0d9; }
  #private-project-list a { grid-template-columns: repeat(2, minmax(0, 1fr)) auto; }
  #private-project-list a span:nth-child(2), #private-project-list a span:nth-child(3) { display: none; }
}
