/* Application shell. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.ui-icon {
  display: block;
  flex-shrink: 0;
}
.is-staff,
.is-customer {
  background: #f3f5f4;
}
.workspace {
  min-width: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.is-staff .workspace {
  margin-left: 256px;
}
.workspace > .container {
  width: 100%;
  flex: 1;
  min-width: 0;
}
.is-staff .workspace > .container {
  max-width: 1600px;
  padding: 0 36px;
}
.workspace-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 256px;
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  z-index: 110;
}
.sidebar-brand {
  padding: 33px 26px 31px;
}
.workspace-label {
  display: block;
  font-size: 0.65rem;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 20px;
}
.workspace-nav {
  padding: 0 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nav-heading {
  font-size: 0.59rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  margin: 14px 12px;
  color: #647879;
}
.workspace-nav-link {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 49px;
  padding: 12px 15px;
  border-radius: 10px;
  text-decoration: none;
  color: #4b6268;
  font-size: 0.88rem;
  font-weight: 550;
}
.workspace-nav-link:hover {
  background: #f1f5f2;
}
.workspace-nav-link.is-active {
  background: #e8eeeb;
  color: var(--ink);
  font-weight: 700;
}
.workspace-nav-link.is-active:before {
  content: "";
  width: 3px;
  height: 18px;
  background: var(--accent);
  border-radius: 3px;
  margin-left: -15px;
  margin-right: -1px;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 22px 22px 20px;
  border-top: 1px solid var(--line);
}
.signed-in-person {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
.signed-in-person > div {
  min-width: 0;
}
.signed-in-person strong {
  display: block;
  font-weight: 600;
  font-size: 0.79rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.signed-in-person small {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  overflow-wrap: anywhere;
}
.avatar {
  display: inline-flex;
  width: 37px;
  height: 37px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e5ece6;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
}
.logout-form {
  margin: 17px 0 0;
}
.logout-button {
  display: flex;
  align-items: center;
  gap: 11px;
  border: 0;
  background: transparent;
  color: #52696e;
  cursor: pointer;
  min-height: 44px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
}
.logout-button:hover {
  background: #f1f4f1;
}
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffffef;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.app-header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 13px 36px;
  min-height: 76px;
  max-width: 1600px;
  margin: auto;
}
.app-header-brand {
  display: none;
}
.workspace-context {
  line-height: 1.5;
}
.workspace-context > span {
  display: block;
  font-size: 0.57rem;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: #7d663f;
}
.workspace-context > strong {
  display: block;
  font-size: 0.83rem;
  font-weight: 550;
}
.app-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}
.profile-shortcut {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-height: 44px;
}
.profile-name {
  max-width: 190px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.8rem;
  font-weight: 550;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.icon-button:hover {
  background: #edf2ee;
}
.mobile-menu-toggle,
.mobile-no-script {
  display: none;
}
.mobile-drawer {
  border: 0;
  padding: 0;
  color: var(--ink);
  background: white;
  inset: 0 0 0 auto;
  margin: 0;
  width: min(355px, calc(100% - 28px));
  height: 100dvh;
  max-height: 100dvh;
  max-width: none;
  border-radius: 18px 0 0 18px;
  box-shadow: -20px 0 60px #102f3926;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mobile-drawer[open] {
  display: flex;
  flex-direction: column;
}
.mobile-drawer::backdrop {
  background: #102f3966;
  backdrop-filter: blur(2px);
}
.drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.drawer-top > span {
  font-size: 0.8rem;
  font-weight: 600;
}
.drawer-brand {
  padding: 26px 24px 16px;
}
.drawer-brand .workspace-label {
  margin-top: 15px;
}
.drawer-bottom {
  margin-top: auto;
  padding: 24px;
  border-top: 1px solid var(--line);
}
.menu-open {
  overflow: hidden;
}
.is-customer .app-header-inner {
  max-width: 1264px;
  padding-left: 32px;
  padding-right: 32px;
}
.is-customer .app-header-brand {
  display: block;
}
.is-customer .workspace-context {
  display: none;
}
.customer-desktop-nav {
  margin-left: 30px;
  display: flex;
  gap: 20px;
  font-size: 0.85rem;
}
.customer-desktop-nav a {
  text-decoration: none;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.customer-desktop-logout .logout-form {
  margin: 0;
}
.workspace-heading h1 {
  font-size: 2.2rem;
  line-height: 1.2;
  letter-spacing: -0.04em;
  margin-bottom: 9px;
}
.workspace-heading {
  margin: 36px 0 26px;
}
.workspace-heading .eyebrow {
  font-size: 0.6rem;
  margin-bottom: 10px;
}
.workspace-heading .lead {
  font-size: 0.91rem;
}
.new-project-button {
  min-height: 47px;
  padding: 12px 19px;
  box-shadow: 0 3px 8px #193b4610;
}
.project-workspace {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  overflow: hidden;
}
.workspace-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px 20px;
}
.project-search {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  max-width: 590px;
}
.search-field {
  position: relative;
  flex: 1;
  min-width: 0;
}
.search-field > .ui-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: #647b80;
  pointer-events: none;
}
.search-field input[type="search"] {
  padding-left: 41px;
  background: #f8faf8;
  min-height: 45px;
  font-size: 0.8rem;
  border-color: #d5dfdb;
}
.project-search .button {
  min-height: 45px;
  padding: 10px 16px;
  font-size: 0.79rem;
}
.view-switch {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f6f8f5;
  flex-shrink: 0;
}
.view-switch a {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 12px;
  font-size: 0.76rem;
  font-weight: 550;
  border-radius: 6px;
  text-decoration: none;
  color: var(--muted);
}
.view-switch .is-active {
  background: white;
  color: var(--ink);
  box-shadow: 0 1px 4px #193b4614;
}
.status-filters {
  display: flex;
  gap: 22px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: thin;
}
.status-filter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
  min-height: 49px;
  border-bottom: 2px solid transparent;
  padding: 9px 0 11px;
  text-decoration: none;
  font-size: 0.79rem;
  color: var(--muted);
}
.status-filter > span {
  min-width: 21px;
  padding: 1px 6px;
  border-radius: 5px;
  background: #edf1ed;
  font-size: 0.65rem;
  text-align: center;
}
.status-filter.is-active {
  color: var(--ink);
  border-color: var(--ink);
  font-weight: 700;
}
.status-filter.is-active > span {
  color: var(--ink);
  background: #e3eae4;
}
.search-summary {
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  font-size: 0.78rem;
  background: #f9faf7;
  overflow-wrap: anywhere;
}
.search-summary a {
  flex-shrink: 0;
}
.workspace-map {
  padding: 0;
  border-bottom: 1px solid var(--line);
}
.workspace-map .map-section {
  border: 0;
  border-radius: 0;
}
.map--browse {
  height: clamp(520px, 68dvh, 850px);
}
.project-list-heading {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) 130px 110px 176px;
  gap: 15px;
  padding: 15px 24px;
  color: #637777;
  font-size: 0.61rem;
  letter-spacing: 0.06em;
  background: #fbfcfa;
  border-bottom: 1px solid var(--line);
}
.project-list-heading > span:last-child {
  text-align: right;
}
.work-project-row {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) 130px 110px 176px;
  gap: 15px;
  align-items: center;
  padding: 21px 24px;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.work-project-row:last-child {
  border-bottom: 0;
}
.work-project-row:hover {
  background: #fdfefc;
}
.work-project-main {
  display: flex;
  gap: 16px;
  align-items: center;
  min-width: 0;
}
.work-project-image {
  display: block;
  width: 88px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 9px;
  overflow: hidden;
  background: #e7eeea;
  text-decoration: none;
}
.work-project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.work-project-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #708980;
}
.work-project-title {
  min-width: 0;
}
.work-project-title h2 {
  font-size: 0.88rem;
  line-height: 1.55;
  margin: 0 0 7px;
  letter-spacing: -0.01em;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.work-project-title h2 a {
  text-decoration: none;
}
.work-project-title h2 a:hover {
  text-decoration: underline;
}
.work-project-title p {
  font-size: 0.69rem;
  color: var(--muted);
  margin: 0;
}
.work-project-status .badge {
  font-size: 0.64rem;
  padding: 5px 9px;
  gap: 6px;
  white-space: nowrap;
}
.badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
  flex-shrink: 0;
}
.work-project-updated {
  font-size: 0.72rem;
  color: var(--muted);
}
.work-project-updated small {
  display: block;
  font-size: 0.67rem;
  color: #70817f;
}
.work-project-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}
.row-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 9px 11px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 7px;
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 550;
  white-space: nowrap;
}
.row-action:hover {
  border-color: #829b91;
  background: #f5f8f3;
}
.row-action--view {
  padding: 10px;
  width: 39px;
}
.row-action--view > span {
  display: none;
}
.mobile-updated {
  display: none;
}
.work-project-list > .empty-state {
  border: 0;
  padding: 55px 24px;
  border-radius: 0;
  background: white;
}
.empty-state h2 {
  font-size: 1.3rem;
}
.empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: #edf2ed;
  border-radius: 50%;
  margin: 0 auto 22px;
  color: var(--ink);
}
.customer-search {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
  max-width: 620px;
}
.customer-search > .search-field {
  flex: 1;
}
.customer-search .button {
  min-height: 45px;
  font-size: 0.8rem;
}
.editor-sections {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin: -7px 0 22px;
}
.editor-sections a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid #d6dfd8;
  background: white;
  border-radius: 8px;
  padding: 8px 15px;
  font-size: 0.77rem;
  text-decoration: none;
}
.editor-sections a:hover {
  background: #e9efea;
}
#project-details,
#photos,
#comments {
  scroll-margin-top: 95px;
}
.person-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}
.person-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(180px, 1.2fr) 145px auto;
  align-items: center;
  gap: 20px;
  padding: 23px 26px;
  border-bottom: 1px solid var(--line);
}
.person-row:last-child {
  border-bottom: 0;
}
.person-row .person-name {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}
.person-name > div {
  min-width: 0;
}
.person-name strong {
  display: block;
  font-size: 0.84rem;
  overflow-wrap: anywhere;
}
.person-name small {
  font-size: 0.7rem;
  color: var(--muted);
}
.person-contact {
  min-width: 0;
  font-size: 0.79rem;
}
.person-contact > a {
  overflow-wrap: anywhere;
  text-decoration: none;
}
.person-contact > a:hover {
  text-decoration: underline;
}
.person-contact .phone-link {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  margin-top: 3px;
}
.person-state .badge {
  font-size: 0.66rem;
}
.person-list > .empty-state {
  border: 0;
  border-radius: 0;
}
.is-staff .site-footer {
  width: calc(100% - 72px);
  max-width: 1528px;
  padding: 23px 0;
  margin-top: 40px;
  font-size: 0.68rem;
}
.is-staff .narrow {
  margin: 36px auto;
}
@media (min-width: 1025px) and (max-width: 1250px) {
  .is-staff .workspace {
    margin-left: 226px;
  }
  .workspace-sidebar {
    width: 226px;
  }
  .sidebar-brand {
    padding-left: 23px;
  }
  .is-staff .workspace > .container {
    padding: 0 26px;
  }
  .app-header-inner {
    padding-left: 26px;
    padding-right: 26px;
  }
  .work-project-updated,
  .project-list-heading > span:nth-child(3) {
    display: none;
  }
  .project-list-heading,
  .work-project-row {
    grid-template-columns: minmax(180px, 1fr) 125px 165px;
  }
  .work-project-main {
    gap: 12px;
  }
  .work-project-image {
    width: 70px;
    height: 65px;
  }
  .mobile-updated {
    display: inline;
  }
  .work-project-row {
    padding-left: 20px;
    padding-right: 20px;
  }
  .person-row {
    gap: 12px;
    grid-template-columns: minmax(130px, 1fr) minmax(150px, 1.1fr) 120px auto;
    padding: 20px;
  }
  .is-staff .site-footer {
    width: calc(100% - 52px);
  }
}
@media (max-width: 1024px) {
  .workspace-sidebar {
    display: none;
  }
  .is-staff .workspace {
    margin-left: 0;
  }
  .app-header-inner {
    padding: 9px 22px;
    min-height: 70px;
  }
  .app-header-brand {
    display: block;
  }
  .app-header-brand .brand {
    font-size: 1.25rem;
  }
  .app-header-brand .brand svg {
    width: 25px;
    height: 28px;
  }
  .app-header-brand .brand small {
    font-size: 0.48rem;
  }
  .workspace-context {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
  .profile-name {
    display: none;
  }
  .app-header-actions {
    gap: 10px;
  }
  .is-customer .app-header-inner {
    padding: 9px 22px;
  }
  .customer-desktop-nav,
  .customer-desktop-logout {
    display: none;
  }
  .is-staff .workspace > .container {
    padding: 0 26px;
  }
  .mobile-no-script {
    display: block;
    padding: 16px;
    background: white;
    border-bottom: 1px solid var(--line);
  }
  .mobile-no-script .workspace-nav {
    padding: 0;
  }
  .mobile-no-script .logout-form {
    margin: 0;
  }
  .is-staff .site-footer {
    width: calc(100% - 52px);
  }
}
@media (min-width: 701px) and (max-width: 900px) {
  .work-project-row,
  .project-list-heading {
    grid-template-columns: minmax(200px, 1fr) 130px 165px;
    gap: 12px;
  }
  .work-project-updated,
  .project-list-heading > span:nth-child(3) {
    display: none;
  }
  .mobile-updated {
    display: inline;
  }
  .work-project-main {
    gap: 12px;
  }
  .work-project-image {
    width: 76px;
    height: 68px;
  }
  .person-row {
    grid-template-columns: minmax(150px, 1fr) minmax(170px, 1fr) 125px;
    gap: 14px;
    padding: 20px;
  }
  .person-access {
    grid-column: 2/-1;
    justify-self: end;
  }
}
@media (max-width: 700px) {
  .app-header-inner,
  .is-customer .app-header-inner {
    padding: 8px 16px;
    min-height: 65px;
    gap: 12px;
  }
  .app-header-brand .brand {
    font-size: 1.22rem;
  }
  .app-header-brand .brand small {
    margin-top: 6px;
    font-size: 0.46rem;
  }
  .app-header-brand .brand svg {
    width: 24px;
    height: 27px;
  }
  .profile-shortcut {
    min-height: 44px;
    padding: 3px;
  }
  .avatar {
    width: 34px;
    height: 34px;
  }
  .app-header-actions {
    gap: 8px;
  }
  .icon-button {
    border-radius: 9px;
  }
  .is-staff .workspace > .container {
    padding: 0 16px;
  }
  .is-customer .workspace > .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .workspace-heading {
    margin: 28px 0 22px;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
  }
  .workspace-heading h1 {
    font-size: 1.8rem;
    line-height: 1.25;
    margin-bottom: 7px;
  }
  .workspace-heading .eyebrow {
    font-size: 0.55rem;
    margin-bottom: 8px;
  }
  .workspace-heading .lead {
    font-size: 0.81rem;
  }
  .workspace-heading .new-project-button {
    min-height: 45px;
    font-size: 0.78rem;
    padding: 11px 15px;
  }
  .project-workspace {
    border-radius: 13px;
  }
  .workspace-toolbar {
    padding: 17px 14px 12px;
    gap: 14px;
    flex-wrap: wrap;
  }
  .project-search {
    width: 100%;
    max-width: none;
    gap: 8px;
    flex-basis: 100%;
  }
  .search-field input[type="search"] {
    font-size: 16px;
    min-height: 46px;
    padding-left: 36px;
    padding-right: 8px;
  }
  .search-field > .ui-icon {
    left: 11px;
    width: 17px;
  }
  .project-search .button {
    padding: 10px 12px;
    min-height: 46px;
    font-size: 0.72rem;
  }
  .view-switch {
    width: 100%;
    justify-content: center;
    padding: 3px;
  }
  .view-switch a {
    flex: 1;
    justify-content: center;
    min-height: 44px;
    font-size: 0.78rem;
  }
  .status-filters {
    padding: 0 14px;
    gap: 0;
    justify-content: space-between;
    overflow: visible;
  }
  .status-filter {
    gap: 5px;
    font-size: 0.7rem;
    padding: 10px 3px;
    min-height: 48px;
  }
  .status-filter > span {
    min-width: 18px;
    font-size: 0.6rem;
    padding: 1px 4px;
  }
  .search-summary {
    padding: 12px 14px;
    flex-wrap: wrap;
    gap: 7px;
    font-size: 0.74rem;
  }
  .search-summary a {
    min-height: 36px;
    display: flex;
    align-items: center;
  }
  .project-list-heading {
    display: none;
  }
  .work-project-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: start;
    padding: 19px 14px;
    position: relative;
  }
  .work-project-main {
    gap: 12px;
    align-items: flex-start;
  }
  .work-project-image {
    width: 76px;
    height: 77px;
    border-radius: 8px;
  }
  .work-project-title h2 {
    font-size: 0.86rem;
    line-height: 1.55;
    margin: 0 0 5px;
    letter-spacing: -0.01em;
  }
  .work-project-title p {
    font-size: 0.65rem;
  }
  .work-project-status {
    margin-left: 88px;
    margin-top: -10px;
    pointer-events: none;
  }
  .work-project-status .badge {
    font-size: 0.59rem;
    padding: 3px 7px;
    min-height: 24px;
  }
  .work-project-updated {
    display: none;
  }
  .mobile-updated {
    display: inline;
  }
  .work-project-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-top: 1px;
  }
  .row-action {
    min-height: 44px;
    width: auto;
    padding: 10px 11px;
    font-size: 0.72rem;
    background: #fdfefb;
  }
  .row-action--view > span {
    display: inline;
  }
  .workspace-map {
    padding: 0;
  }
  .map--browse {
    height: clamp(360px, 62dvh, 620px);
  }
  .workspace-map .map-caption {
    padding: 10px 12px;
    font-size: 0.66rem;
  }
  .work-project-list > .empty-state {
    padding: 36px 20px;
  }
  .empty-state h2 {
    font-size: 1.2rem;
  }
  .empty-state p {
    font-size: 0.84rem;
  }
  .person-row {
    grid-template-columns: 1fr auto;
    gap: 12px 8px;
    padding: 20px 16px;
  }
  .person-name {
    grid-column: 1/-1;
  }
  .person-name .avatar {
    width: 40px;
    height: 40px;
  }
  .person-name strong {
    font-size: 0.88rem;
  }
  .person-name small {
    font-size: 0.7rem;
  }
  .person-contact {
    grid-column: 1/-1;
    padding-left: 53px;
    font-size: 0.81rem;
  }
  .person-state {
    grid-column: 1;
    align-self: center;
    padding-left: 53px;
  }
  .person-access {
    grid-column: 2;
    justify-self: end;
  }
  .person-access .row-action {
    padding: 10px 13px;
    min-width: 92px;
  }
  .person-row .phone-link {
    font-size: 0.79rem;
    min-height: 30px;
  }
  .person-state .badge {
    font-size: 0.65rem;
  }
  .is-staff .site-footer {
    width: calc(100% - 32px);
    margin-top: 28px;
    font-size: 0.65rem;
  }
  .is-staff .narrow {
    margin: 26px auto;
  }
  .is-staff h1 {
    overflow-wrap: anywhere;
  }
  .editor-sections {
    gap: 7px;
    margin: -7px 0 19px;
    flex-wrap: nowrap;
  }
  .editor-sections a {
    flex: 1;
    padding: 8px 9px;
    font-size: 0.72rem;
    min-height: 44px;
  }
  .editor-grid .panel {
    padding: 23px 16px;
  }
  .form-columns {
    grid-template-columns: 1fr;
    gap: 17px;
  }
  .form-columns label {
    font-size: 0.8rem;
  }
  input[type="file"] {
    font-size: 0.77rem !important;
    padding: 10px !important;
    max-width: 100%;
  }
  .editor-grid form > .button,
  .block-space form > .button,
  .narrow form > .button {
    width: 100%;
  }
  .customer-search {
    gap: 8px;
    margin-bottom: 18px;
  }
  .customer-search .button {
    font-size: 0.72rem;
    padding: 11px 13px;
  }
  .is-customer .page-heading {
    margin: 28px 0 23px;
  }
  .is-customer .page-heading h1 {
    font-size: 2rem;
  }
  .is-customer .page-heading .lead {
    font-size: 0.87rem;
  }
  .is-customer .project-grid {
    gap: 17px;
  }
  .is-customer .project-card img {
    height: 210px;
  }
  .is-customer .card-body {
    padding: 20px;
  }
  .is-customer .section-heading h2 {
    font-size: 1.2rem;
  }
  .pagination {
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.72rem;
  }
  .pagination .button {
    font-size: 0.73rem;
    min-height: 44px;
    padding: 10px 13px;
  }
  .mobile-drawer .workspace-nav-link {
    min-height: 51px;
    font-size: 0.9rem;
  }
  .drawer-bottom .signed-in-person strong {
    font-size: 0.85rem;
  }
  .drawer-bottom .logout-button {
    width: 100%;
    font-size: 0.85rem;
  }
  .gallery {
    margin-top: 5px;
  }
  .detail-grid .panel {
    padding: 24px 18px;
  }
  .workspace .site-footer span {
    overflow-wrap: anywhere;
  }
}

/* Shared Girni Portal identity: private entrance mark and Roboto wordmark. */
.brand {
  gap: 11px;
}
.brand-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.brand-wordmark {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1;
}
.brand-wordmark small {
  font-size: 0.52rem;
  font-weight: 500;
  letter-spacing: 0.39em;
  margin-top: 8px;
}
@media (max-width: 1024px) {
  .app-header-brand .brand {
    gap: 9px;
  }
  .app-header-brand .brand-mark {
    width: 35px;
    height: 35px;
  }
  .app-header-brand .brand-wordmark {
    font-size: 1.3rem;
  }
  .app-header-brand .brand-wordmark small {
    font-size: 0.46rem;
    margin-top: 7px;
  }
}
@media (max-width: 700px) {
  .header-inner .brand-mark {
    width: 35px;
    height: 35px;
  }
  .header-inner .brand-wordmark {
    font-size: 1.3rem;
  }
}

/* Keep navigation reachable when a phone is rotated to landscape. */
@media (max-height: 600px) {
  .map--browse {
    height: max(260px, calc(100dvh - 150px));
  }
}

/* Map view uses the entire workspace width; regular lists stay contained. */
.is-staff .workspace > .project-index-page--map,
.is-customer .workspace > .project-index-page {
  max-width: none;
  padding-inline: 0;
}
.is-staff .project-index-page--map > .page-heading {
  padding-inline: 36px;
}
.project-workspace--map {
  border-inline: 0;
  border-radius: 0;
}
.customer-content {
  width: 100%;
  max-width: 1264px;
  padding-inline: 32px;
  margin-inline: auto;
}
.is-customer .project-index-page > .map-section {
  border-inline: 0;
  border-radius: 0;
}
@media (min-width: 701px) and (max-width: 1250px) {
  .is-staff .project-index-page--map > .page-heading {
    padding-inline: 26px;
  }
}
@media (max-width: 700px) {
  .is-staff .project-index-page--map > .page-heading,
  .customer-content {
    padding-inline: 16px;
  }
}

/* Mobile search sits directly below the navigation, in the sticky header. */
.mobile-header-search {
  display: none;
}
@media (max-width: 1024px) {
  .mobile-header-search {
    display: block;
    padding: 10px 22px 12px;
    border-top: 1px solid #edf1ed;
  }
  .header-search-form {
    display: flex;
    align-items: center;
    gap: 9px;
  }
  .header-search-form .search-field input[type="search"] {
    font-size: 16px;
    min-height: 44px;
    background: #f8faf8;
  }
  .header-search-form .button {
    min-height: 44px;
    padding: 10px 14px;
    font-size: 0.76rem;
  }
  .is-staff .project-search,
  .is-customer .customer-search {
    display: none;
  }
}
@media (max-width: 700px) {
  .mobile-header-search {
    padding: 9px 16px 11px;
  }
}

/* A single compact reference lookup, with its submit action inside the field. */
.property-search {
  display: block;
  width: 100%;
}
.property-search .search-field input[type="search"] {
  height: 44px;
  min-height: 44px;
  padding: 10px 48px 10px 14px;
  border: 1px solid #d8e1dc;
  border-radius: 9px;
  background: #f8faf8;
  font-size: 0.85rem;
}
.search-submit {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.search-submit:hover {
  background: #e9efea;
}
.customer-desktop-search {
  flex: 1;
  max-width: 380px;
  margin-left: 42px;
}
.property-reference {
  display: block;
  margin: 0 0 6px;
  color: #536e72;
  font-size: 0.68rem;
  line-height: 1.5;
  letter-spacing: 0.03em;
}
.property-code {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-weight: 500;
}

/* Compact property cards are requested only when a map pin is opened. */
.project-map-popup .leaflet-popup-content-wrapper {
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 36px #102f3933;
}
.project-map-popup .leaflet-popup-content {
  width: clamp(180px, calc(100vw - 96px), 300px) !important;
  margin: 0;
  line-height: 1.5;
}
.project-map-popup .leaflet-popup-scrolled {
  border: 0;
}
.project-map-popup a.leaflet-popup-close-button {
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fffffff2;
  color: var(--ink);
  font-size: 24px;
  box-shadow: 0 2px 8px #102f3926;
}
.map-project-image,
.map-project-placeholder {
  display: block;
  width: 100%;
  height: 132px;
  object-fit: cover;
}
.map-project-placeholder {
  display: grid;
  place-items: center;
  color: #536e72;
  background: #e8efea;
  font-size: 0.8rem;
}
.map-project-body {
  padding: 14px 16px 16px;
  color: var(--ink);
}
.map-project-body .property-reference {
  margin: 0 0 5px;
  font-size: 0.7rem;
}
.map-project-body h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
}
.project-map-popup .map-project-description {
  margin: 8px 0 0;
  color: #53656c;
  font-size: 0.8rem;
  line-height: 1.5;
}
.map-project-body h3,
.map-project-description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.map-project-body h3 {
  -webkit-line-clamp: 2;
}
.project-map-popup .map-project-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  margin-top: 14px;
  padding: 10px 13px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}
.project-map-popup .map-project-link:hover {
  background: var(--ink-dark);
}
.map-preview-state {
  padding: 52px 20px 24px;
  color: var(--ink);
  font-size: 0.85rem;
}
.map-shell {
  position: relative;
}
.map-tools {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 850;
  display: flex;
  padding: 3px;
  gap: 2px;
  border: 1px solid #dce3df;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 16px #102f3924;
}
.map-tool {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.map-tool:hover {
  background: #edf2ef;
}
.map-tool:focus-visible {
  outline-offset: -3px;
}
.map-collapse-icon {
  display: none;
}
.map-fullscreen[open] .map-expand-icon {
  display: none;
}
.map-fullscreen[open] .map-collapse-icon {
  display: block;
}
.map-shell .leaflet-control-zoom {
  border: 1px solid #dce3df;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 16px #102f3924;
}
.map-shell .leaflet-control-zoom a {
  width: 44px;
  height: 44px;
  line-height: 44px;
  color: var(--ink);
  font-size: 24px;
}
.map-shell .leaflet-control-zoom a:hover {
  background: #edf2ef;
}
.map-shell .leaflet-control-scale {
  margin: 0 0 10px 14px;
}
.map-shell .leaflet-control-scale-line {
  border-color: #3c555c;
  background: #ffffffd9;
  color: #193b46;
  font-size: 11px;
}
.map-fullscreen[open] {
  position: fixed;
  inset: 0;
  display: block;
  width: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #e8efea;
  overflow: hidden;
}
.map-fullscreen[open] .map-shell,
.map-fullscreen[open] .map--browse {
  width: 100%;
  height: 100%;
  border-radius: 0;
}
.map-fullscreen::backdrop {
  background: #102f39a6;
}
html.map-expanded {
  overflow: hidden;
}
.project-map-popup .map-preview-state p {
  margin: 0;
}
.card-body .property-reference {
  margin-top: 0;
  font-size: 0.73rem;
}
@media (max-width: 1024px) {
  .customer-desktop-search,
  .is-staff .project-search {
    display: none;
  }
  .mobile-header-search {
    padding-top: 7px;
    padding-bottom: 9px;
  }
  .property-search .search-field input[type="search"] {
    font-size: 16px;
    background: #fafbf9;
  }
}

/* Customer property cards: native swipe and buttons on small screens. */
.project-slider-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.project-slider-controls[hidden] {
  display: none;
}

/* A shared portrait style in navigation, account settings and user lists. */
.avatar {
  overflow: hidden;
  flex-shrink: 0;
}
.avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.avatar--large {
  width: 64px;
  height: 64px;
}
.profile-preview {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
}
.profile-preview p {
  margin: 5px 0 0;
  font-size: 0.8rem;
}
.profile-preview > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.user-details-fields {
  display: grid;
  gap: 20px;
  margin-bottom: 24px;
}
.user-details-fields > div,
.user-details-fields .form-columns > div {
  margin-bottom: 0;
}
.user-details-fields .form-columns {
  margin: 0;
}
.user-details-fields .form-columns > div {
  min-width: 0;
}
.user-details-fields + div {
  margin-bottom: 24px;
}
.narrow .notice p {
  overflow-wrap: anywhere;
}

/* Quiet footer: identity and maker, with one comfortable link target. */
.site-footer {
  align-items: center;
}
.footer-identity {
  display: grid;
  gap: 5px;
}
.footer-caption {
  color: var(--muted);
  font-size: 0.72rem;
}
.site-footer .footer-credit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  text-decoration: none;
  white-space: nowrap;
  font-size: 0.75rem;
}
.footer-credit strong {
  font-size: 0.86rem;
  color: var(--ink);
}
.footer-credit:hover strong {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.login-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}
.is-login {
  background-color: #193b46;
  background-image:
    linear-gradient(
      180deg,
      #102f3959 0%,
      #102f391a 40%,
      #102f3933 68%,
      #102f39e6 100%
    ),
    url("../images/login-paralia-katerinis-MUCNP5g.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.login-topbar {
  display: flex;
  justify-content: flex-end;
  padding: 16px 32px;
}
.login-topbar a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  font-size: 0.84rem;
  color: #fff;
  background: #102f39d9;
  padding: 8px 16px;
  border: 1px solid #ffffff40;
  border-radius: 999px;
  text-decoration: none;
}
.login-topbar a:hover {
  color: #fff;
  background: #102f39;
  text-decoration: underline;
}
.login-topbar a:focus-visible,
.is-login .footer-credit:focus-visible {
  outline-color: #fff;
}
.is-login .workspace {
  min-height: 100svh;
}
.is-login #main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  min-height: 0;
  padding: 24px 32px;
}
.is-login .login-layout {
  display: block;
  width: 100%;
  max-width: 420px;
  min-height: 0;
  padding: 0;
}
.is-login .login-card {
  position: relative;
  z-index: 0;
  margin: 0;
  border: 1px solid #ffffffb8;
  border-radius: 28px;
  background: #f6faf8f5;
  box-shadow:
    0 24px 70px #082a3a40,
    inset 0 1px 0 #fff,
    inset 0 -1px 0 #ffffff66;
}
.is-login .login-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(ellipse at top left, #ffffff80, transparent 65%),
    linear-gradient(120deg, transparent 48%, #ffffff26 58%, transparent 68%);
}
.is-login .login-card input:not([type="hidden"]) {
  border-color: #67828a;
  background: #ffffffa6;
  box-shadow: inset 0 1px 3px #193b4610;
}
.is-login .login-card input:focus {
  background: #ffffffe6;
}
.is-login .login-card .subtle-link {
  color: var(--ink);
}
@supports (backdrop-filter: blur(24px)) or (-webkit-backdrop-filter: blur(24px)) {
  .is-login .login-card {
    background: linear-gradient(145deg, #ffffffa6, #eff7f7a6);
    -webkit-backdrop-filter: blur(24px) saturate(145%);
    backdrop-filter: blur(24px) saturate(145%);
  }
}
@media (prefers-reduced-transparency: reduce) {
  .is-login .login-card {
    background: #f6faf8;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
.is-login .site-footer {
  width: calc(100% - 64px);
  flex-shrink: 0;
  margin-top: 0;
  color: #fff;
  border-top-color: #ffffff40;
}
.is-login .footer-caption,
.is-login .footer-credit strong {
  color: #fff;
}
@media (max-width: 700px) {
  .workspace .site-footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 16px 0;
    width: calc(100% - 36px);
    margin: 24px auto 0;
  }
  .workspace .site-footer span {
    margin: 0;
  }
  .footer-identity {
    text-align: center;
    font-size: 0.72rem;
    line-height: 1.5;
    gap: 2px;
  }
  .footer-caption {
    font-size: 0.67rem;
  }
  .site-footer .footer-credit {
    gap: 5px;
    font-size: 0.68rem;
  }
  .footer-credit strong {
    font-size: 0.8rem;
  }
  .login-topbar {
    padding: 8px 18px;
  }
  .is-login #main {
    padding: 24px 18px;
  }
  .is-login .site-footer {
    width: calc(100% - 36px);
  }
  .is-login .login-card {
    margin: 0;
    padding: 28px 22px;
  }
}
.project-slider-controls button:disabled {
  color: #a5b3b0;
  background: #f4f6f3;
  cursor: default;
}
@media (max-width: 700px) {
  .is-customer .project-slider-track {
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: 86%;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    padding-bottom: 6px;
  }
  .project-slider-track::-webkit-scrollbar {
    display: none;
  }
  .is-customer .project-slider-track:has(> .project-card:only-child),
  .is-customer .project-slider-track:has(> .empty-state:only-child) {
    grid-auto-columns: 100%;
  }
  .project-slider-track > .project-card {
    min-width: 0;
    scroll-snap-align: start;
  }
  .is-customer .project-slider-track .project-card img {
    height: 180px;
  }
  .is-customer .project-slider-track .card-body {
    padding: 18px;
  }
  .project-slider-track .card-body p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}
