.password-field {
  position: relative;
  display: block;
  margin-top: .48rem;
}

.auth-card .password-field input:not([type=checkbox]) {
  margin-top: 0;
  padding-right: 4.9rem;
}

.password-visibility-toggle {
  position: absolute;
  top: 50%;
  right: .55rem;
  transform: translateY(-50%);
  min-width: 3.6rem;
  padding: .4rem .5rem;
  color: #c6ced7;
  background: transparent;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  font-size: .86rem;
  font-weight: 650;
  letter-spacing: .02em;
}

.password-visibility-toggle:hover {
  color: #ffffff;
}

.password-visibility-toggle:focus-visible {
  outline: 2px solid var(--wb-gold-light);
  outline-offset: 2px;
}

/* -------------------------------------------------------------------------
   WB Private Access & Client Administration UX refinement
   Approved Owner-review direction: immersive authentication, compact private
   shell, dense institutional operations console. This file is deliberately
   loaded after access.css so the change remains an experience-layer override.
   ------------------------------------------------------------------------- */

/* Authentication is one uninterrupted secure surface. The public-site header
   is intentionally absent; relationship and product identity live inside the
   private experience itself. */
.auth-page .wb-utility,
.auth-page .wb-site-header {
  display: none !important;
}

.auth-page .auth-main,
.auth-page .auth-stage {
  min-height: 100vh;
}

.auth-page .auth-main {
  position: relative;
}

.auth-page .auth-brand-home {
  position: absolute;
  z-index: 9;
  left: 40px;
  top: 23px;
  width: 218px;
  height: 46px;
  display: block;
  opacity: 1;
}

.auth-page .auth-brand-home img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.auth-page .auth-brand-home:hover {
  opacity: .88;
}

.auth-page .auth-main::before {
  content: none;
  display: none;
}

.auth-page .auth-main::after {
  position: absolute;
  z-index: 8;
  top: 27px;
  pointer-events: none;
  content: "PRIVATE ACCESS";
  right: 40px;
  color: rgba(255,255,255,.72);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
}

.auth-page .auth-shell {
  padding-top: 112px;
  padding-bottom: 74px;
}

.auth-page .auth-card-heading::before {
  content: "";
  display: block;
  width: 190px;
  height: 44px;
  margin: 0 0 24px;
  background: url("/static/wb_radar_official.png") left center / contain no-repeat;
}

.auth-page .auth-card label {
  font-size: 13px;
  letter-spacing: .075em;
}

.auth-page .auth-card input:not([type=checkbox]),
.auth-page .auth-card select {
  min-height: 54px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  padding-left: 16px;
  padding-right: 16px;
}

.auth-page .auth-card input[type="password"],
.auth-page .auth-card input[type="text"] {
  font-size: 16px;
}

.auth-page .auth-card-heading > p:last-child {
  font-size: 16px;
  line-height: 1.55;
}

/* Authenticated My Access stays inside the private environment rather than
   returning to public website chrome. */
.relationship-page .wb-utility {
  display: none;
}

.relationship-page .wb-site-header {
  height: 70px;
  background: #081a31;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.relationship-page .wb-header-grid {
  grid-template-columns: 1fr auto;
  gap: 24px;
}

.relationship-page .wb-brand-logo,
.relationship-page .wb-main-nav {
  display: none;
}

.relationship-page .wb-brand-link::after {
  content: "Westford Bridge   ·   Private Access";
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  letter-spacing: -.01em;
}

.relationship-page .wb-login-btn {
  display: none;
  background: transparent;
  border-color: rgba(255,255,255,.28);
  color: #fff;
}

.relationship-page.owner-account .wb-login-btn {
  display: inline-flex;
}

.relationship-page .relationship-main {
  width: min(1080px, calc(100% - 64px));
  padding: 54px 0 80px;
}

.relationship-page .relationship-hero {
  margin-bottom: 24px;
}

.relationship-page .relationship-hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  font-weight: 500;
}

.relationship-page .relationship-grid {
  grid-template-columns: minmax(0, 620px);
}

.relationship-page .relationship-card {
  padding: 26px 30px;
  border-radius: 2px;
  box-shadow: 0 8px 28px rgba(15,36,65,.035);
}

.owner-admin-link {
  margin-left: 10px;
}

/* -------------------------------------------------------------------------
   Client Access Administration application shell
   ------------------------------------------------------------------------- */
.internal-page {
  background: #f7f6f2;
  color: #253247;
}

.internal-page .wb-utility {
  display: none;
}

.internal-page .wb-site-header {
  position: fixed;
  z-index: 70;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: #081a31;
  border: 0;
  box-shadow: 0 1px 0 rgba(255,255,255,.08);
}

.internal-page .wb-site-header .wb-shell {
  width: calc(100% - 48px);
  max-width: none;
}

.internal-page .wb-header-grid {
  grid-template-columns: minmax(320px,1fr) auto auto;
  gap: 18px;
}

.internal-page .wb-brand-logo,
.internal-page .wb-ops-nav {
  display: none;
}

.internal-page .wb-brand-link::after {
  content: "Westford Bridge   |   Client Access Administration";
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  letter-spacing: -.012em;
}

.internal-page .admin-owner-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-left: 1px solid rgba(255,255,255,.16);
  border-right: 1px solid rgba(255,255,255,.16);
  color: rgba(255,255,255,.86);
  font-size: 12px;
  font-weight: 600;
}

.internal-page .wb-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 17px;
  background: #b4852d;
  border-color: #b4852d;
  color: #fff;
  border-radius: 2px;
}

.internal-page .wb-login-btn:hover {
  background: #c09137;
}

.internal-page .ops-main {
  width: calc(100% - 220px);
  max-width: none;
  margin: 0 0 0 220px;
  padding: 108px 32px 64px;
}

.internal-page .ops-hero {
  display: none;
}

.internal-page .ops-tabs {
  position: fixed;
  z-index: 60;
  left: 0;
  top: 72px;
  bottom: 0;
  width: 220px;
  margin: 0;
  padding: 24px 12px 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  background: linear-gradient(180deg,#0b213c 0%,#081a31 100%);
  border: 0;
  box-shadow: 1px 0 0 rgba(15,36,65,.08);
}

.internal-page .ops-tabs a {
  position: relative;
  flex: 0 0 auto;
  padding: 12px 13px 12px 18px;
  border: 0;
  border-radius: 3px;
  color: rgba(255,255,255,.78);
  font-size: 13px;
  font-weight: 560;
  white-space: normal;
}

.internal-page .ops-tabs a::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 50%;
  width: 3px;
  height: 0;
  transform: translateY(-50%);
  background: var(--wb-gold);
  border-radius: 2px;
  transition: height .15s ease;
}

.internal-page .ops-tabs a:hover,
.internal-page .ops-tabs a.active {
  color: #fff;
  background: rgba(255,255,255,.075);
  border: 0;
}

.internal-page .ops-tabs a.active::before {
  height: 28px;
}

.internal-page .ops-tabs::after {
  content: "SECURE ACCESS\A STRONGER INSIGHT\A A MORE CONNECTED\A PROPERTY MARKET";
  white-space: pre;
  margin-top: auto;
  padding: 24px 16px 0;
  border-top: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.48);
  font-size: 9px;
  line-height: 2.05;
  letter-spacing: .18em;
}

.internal-page .ops-section-head {
  align-items: flex-start;
  margin: 0 0 24px;
}

.internal-page .ops-section-head .kicker {
  margin-bottom: 5px;
  color: #a77824;
  font-size: 10px;
  letter-spacing: .17em;
}

.internal-page .ops-section-head h2 {
  margin: 0 0 6px;
  color: #10294a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 35px;
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -.018em;
}

.internal-page .ops-section-head > div > p:last-child {
  max-width: 760px;
  color: #687282;
  font-size: 14px;
}

.internal-page .readiness-overall {
  min-width: 110px;
  text-align: center;
  border-color: #d4bc86;
  background: #fffaf0;
}

/* Compact overview metrics */
.internal-page .ops-metrics {
  gap: 12px;
  margin-bottom: 16px;
}

.internal-page .ops-metric {
  min-height: 118px;
  padding: 18px 20px 16px;
  border-color: #dedad1;
  box-shadow: 0 6px 22px rgba(15,36,65,.025);
}

.internal-page .ops-metric strong {
  margin: 9px 0 5px;
  font-size: 30px;
}

.internal-page .ops-two-col {
  gap: 14px;
  margin-bottom: 16px;
}

.internal-page .ops-feature-card {
  padding: 22px 24px;
  border-color: #dedad1;
  box-shadow: 0 6px 22px rgba(15,36,65,.025);
}

.internal-page .ops-feature-card h3,
.internal-page .ops-table-card h3 {
  font-size: 19px;
}

.internal-page .ops-feature-card > p:not(.card-number) {
  margin-bottom: 15px;
  font-size: 13px;
  line-height: 1.55;
}

.internal-page .card-number {
  margin-bottom: 10px;
}

.internal-page .ops-table-card {
  margin-bottom: 16px;
  border-color: #dedad1;
  box-shadow: 0 6px 22px rgba(15,36,65,.02);
}

.internal-page .ops-card-heading {
  padding: 15px 18px 12px;
}

.internal-page th,
.internal-page td {
  padding: 10px 12px;
}

.internal-page td {
  font-size: 12px;
}

/* Seven readiness gates become a dense control register rather than seven
   marketing-sized cards. */
.internal-page .readiness-summary {
  margin: 0 0 12px;
}

.internal-page .readiness-summary span {
  padding: 11px 14px;
  font-size: 12px;
}

.internal-page .readiness-summary strong {
  font-size: 18px;
}

.internal-page .readiness-list {
  display: block;
  margin-bottom: 20px;
  background: #fff;
  border: 1px solid #dedad1;
}

.internal-page .readiness-gate {
  display: grid;
  grid-template-columns: 44px minmax(0,1fr);
  border: 0;
  border-bottom: 1px solid #ebe7df;
  background: #fff;
}

.internal-page .readiness-gate:last-child {
  border-bottom: 0;
}

.internal-page .gate-index {
  min-height: 66px;
  border-right: 1px solid #ebe7df;
  color: #9b6f22;
  font-size: 10px;
}

.internal-page .gate-main {
  min-width: 0;
  padding: 11px 14px;
  display: grid;
  grid-template-columns: minmax(170px,1.15fr) 104px minmax(210px,1.2fr) minmax(210px,1.2fr);
  gap: 14px;
  align-items: center;
}

.internal-page .gate-title-row {
  display: contents;
}

.internal-page .gate-title-row h3 {
  margin: 0;
  color: #163052;
  font-size: 13px;
  line-height: 1.35;
}

.internal-page .gate-title-row .status-chip {
  justify-self: start;
}

.internal-page .gate-outcome {
  display: none;
}

.internal-page .gate-main dl {
  display: contents;
}

.internal-page .gate-main dl > div {
  min-width: 0;
}

.internal-page .gate-main dt {
  display: none;
}

.internal-page .gate-main dd {
  margin: 0;
  color: #677180;
  font-size: 11px;
  line-height: 1.45;
}

/* Directory and access controls stay compact until opened. */
.internal-page .directory-panels {
  gap: 12px;
  margin-bottom: 14px;
}

.internal-page .directory-panels .ops-table-card {
  margin-bottom: 0;
}

.internal-page .compact-list > div,
.internal-page .compact-list > p {
  padding: 9px 14px;
}

.internal-page .ops-action-grid {
  gap: 12px;
  margin-bottom: 16px;
}

.internal-page .ops-action {
  border-color: #dedad1;
  background: #fff;
  box-shadow: 0 5px 18px rgba(15,36,65,.018);
}

.internal-page .ops-action summary {
  min-height: 94px;
  padding: 17px 18px;
}

.internal-page .ops-action summary small {
  margin-bottom: 5px;
  color: #a77824;
}

.internal-page .ops-action summary strong {
  font-size: 16px;
}

.internal-page .ops-action summary em {
  margin-top: 4px;
  color: #74808e;
  font-size: 12px;
  line-height: 1.45;
}

.internal-page .ops-action summary b {
  color: #10294a;
  font-size: 11px;
}

.internal-page .ops-action-body {
  padding: 17px 18px 18px;
}

.internal-page .governance-grid {
  grid-template-columns: 1fr;
}

.internal-page .governance-grid .ops-action summary {
  min-height: 76px;
  display: flex;
  align-items: center;
}

.internal-page .governance-grid .ops-action summary span {
  flex: 1;
  display: grid;
  grid-template-columns: 160px 1fr;
  grid-template-areas: "label title" "label description";
  column-gap: 18px;
  align-items: center;
}

.internal-page .governance-grid .ops-action summary small {
  grid-area: label;
  margin: 0;
}

.internal-page .governance-grid .ops-action summary strong {
  grid-area: title;
}

.internal-page .governance-grid .ops-action summary em {
  grid-area: description;
}

/* Audit is intentionally the densest evidence surface. */
.internal-page .ops-table-card .table-wrap {
  max-height: 560px;
}

.internal-page .ops-signout {
  margin-top: 14px;
}

/* Keep forms institutional and restrained. */
.internal-page .ops-action-body label {
  color: #566171;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.internal-page .ops-action-body input,
.internal-page .ops-action-body select,
.internal-page .ops-action-body textarea {
  min-height: 42px;
  border-radius: 2px;
}

.internal-page .ops-action-body button {
  min-height: 42px;
  border-radius: 2px;
}

@media (max-width: 1180px) {
  .internal-page .ops-main {
    width: calc(100% - 194px);
    margin-left: 194px;
    padding-left: 24px;
    padding-right: 24px;
  }

  .internal-page .ops-tabs {
    width: 194px;
  }

  .internal-page .gate-main {
    grid-template-columns: minmax(150px,1fr) 96px minmax(180px,1fr) minmax(180px,1fr);
    gap: 10px;
  }
}

@media (max-width: 920px) {
  .internal-page .wb-brand-link::after {
    content: "Westford Bridge   |   Client Access";
    font-size: 19px;
  }

  .internal-page .ops-metrics,
  .internal-page .readiness-summary {
    grid-template-columns: repeat(2,1fr);
  }

  .internal-page .gate-main {
    grid-template-columns: minmax(150px,1fr) 100px;
  }

  .internal-page .gate-main dl {
    display: none;
  }
}

@media (max-width: 760px) {
  .auth-page .auth-brand-home {
    left: 22px;
    top: 16px;
    width: 164px;
    height: 36px;
  }

  .auth-page .auth-main::after {
    right: 22px;
    top: 23px;
    font-size: 9px;
  }

  .auth-page .auth-shell {
    padding-top: 84px;
  }

  .auth-page .auth-card-heading::before {
    width: 168px;
    height: 38px;
    margin-bottom: 20px;
  }

  .relationship-page .wb-site-header {
    height: 62px;
  }

  .relationship-page .wb-shell {
    width: calc(100% - 36px);
  }

  .relationship-page .wb-brand-link::after {
    content: "Westford Bridge · Private Access";
    font-size: 17px;
  }

  .relationship-page .relationship-main {
    width: calc(100% - 36px);
    padding-top: 38px;
  }

  .relationship-page .relationship-grid {
    grid-template-columns: 1fr;
  }

  .owner-admin-link {
    margin-left: 0;
    margin-top: 10px;
  }

  .internal-page .wb-site-header {
    position: relative;
    height: 64px;
  }

  .internal-page .wb-site-header .wb-shell {
    width: calc(100% - 28px);
  }

  .internal-page .wb-header-grid {
    grid-template-columns: 1fr auto;
  }

  .internal-page .wb-brand-link::after {
    content: "Westford Bridge";
    font-size: 18px;
  }

  .internal-page .admin-owner-chip {
    display: none;
  }

  .internal-page .wb-login-btn {
    min-height: 38px;
    padding: 0 12px;
    font-size: 11px;
  }

  .internal-page .ops-main {
    width: 100%;
    margin: 0;
    padding: 0 18px 50px;
  }

  .internal-page .ops-tabs {
    position: sticky;
    top: 0;
    z-index: 50;
    width: calc(100% + 36px);
    height: auto;
    margin: 0 -18px 28px;
    padding: 8px 14px;
    display: flex;
    flex-direction: row;
    gap: 2px;
    overflow-x: auto;
    background: #0b213c;
  }

  .internal-page .ops-tabs a {
    min-width: max-content;
    padding: 10px 11px;
    font-size: 11px;
  }

  .internal-page .ops-tabs a::before,
  .internal-page .ops-tabs::after {
    display: none;
  }

  .internal-page .ops-section-head {
    display: block;
  }

  .internal-page .ops-section-head h2 {
    font-size: 31px;
  }

  .internal-page .readiness-overall {
    display: inline-flex;
    margin-top: 12px;
  }

  .internal-page .ops-metrics,
  .internal-page .ops-two-col,
  .internal-page .directory-panels,
  .internal-page .ops-action-grid,
  .internal-page .readiness-summary {
    grid-template-columns: 1fr;
  }

  .internal-page .gate-main {
    grid-template-columns: 1fr auto;
  }

  .internal-page .gate-main dl {
    display: none;
  }
}
