/* AGENT_UI_FINISH_V2 */

.agent-host-lockup{
  display:inline-flex!important;
  align-items:center!important;
  gap:9px!important;
  min-width:0!important;
  text-decoration:none!important;
  color:var(--reh-ink,#102a47)!important;
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif!important;
}
.agent-host-lockup img{
  width:31px!important;
  height:31px!important;
  flex:0 0 31px!important;
  display:block!important;
  object-fit:contain!important;
  filter:none!important;
}
.agent-host-lockup .agent-host-word{
  white-space:nowrap!important;
  font-size:23px!important;
  line-height:1!important;
  font-weight:800!important;
  letter-spacing:-.045em!important;
}
.agent-host-lockup .agent-host-word span{font-weight:650!important}
.agent-host-lockup .agent-host-sub{
  white-space:nowrap!important;
  color:var(--reh-muted,#697985)!important;
  font-size:11px!important;
  font-weight:600!important;
  letter-spacing:0!important;
}
[data-reh-theme="dark"] .agent-host-lockup{color:#f2f2f2!important}

/* REH-style light/dark toggle */
.agent-theme-toggle{
  appearance:none!important;
  width:42px!important;
  height:42px!important;
  min-width:42px!important;
  padding:0!important;
  display:inline-grid!important;
  place-items:center!important;
  flex:0 0 42px!important;
  color:var(--reh-ink,#102a47)!important;
  background:var(--reh-surface,#fff)!important;
  border:1px solid var(--reh-border,#d9e1e8)!important;
  border-radius:50%!important;
  box-shadow:none!important;
  cursor:pointer!important;
}
.agent-theme-toggle:hover{background:var(--reh-soft,#f1f3f3)!important}
.agent-theme-toggle svg{width:19px!important;height:19px!important;display:block!important}
.agent-theme-toggle .agent-theme-sun{display:none!important}
[data-reh-theme="dark"] .agent-theme-toggle .agent-theme-moon{display:none!important}
[data-reh-theme="dark"] .agent-theme-toggle .agent-theme-sun{display:block!important}

/* Workspace header branding */
#reh-v2-app .brand-wrap .agent-host-lockup{
  min-height:44px!important;
}
#reh-v2-app .brand-wrap .agent-host-lockup img{
  width:34px!important;height:34px!important;flex-basis:34px!important;
}
#reh-v2-app .brand-wrap .agent-host-word{font-size:26px!important}
#reh-v2-app .top-nav>.agent-theme-toggle{
  order:3!important;
  margin-left:2px!important;
}

/* Gateway */
.agent-auth-header .agent-auth-brand{
  display:flex!important;
  align-items:center!important;
  text-decoration:none!important;
}
.agent-auth-header .agent-host-lockup .agent-host-sub{font-size:11px!important}
.agent-auth-header .agent-theme-toggle{
  margin-left:auto!important;
}
.agent-auth-header .agent-auth-public{margin-left:8px!important}
.agent-auth-card-brand .agent-host-lockup img{width:25px!important;height:25px!important;flex-basis:25px!important}
.agent-auth-card-brand .agent-host-word{font-size:18px!important}

/* Legacy registration/login shared shell */
body.agent-reh-registration .agent-legacy-top,
body.agent-reh-login .agent-legacy-top{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:18px!important;
  margin:0 0 22px!important;
  padding:0 0 20px!important;
  border-bottom:1px solid var(--reh-border,#d9e1e8)!important;
}
body.agent-reh-registration .header::before{display:none!important;content:none!important}
body.agent-reh-registration .header{
  border:0!important;
  padding:0!important;
  margin:0 0 18px!important;
}
body.agent-reh-registration .header>img{display:none!important}

/* Give legacy login the same neutral REH V2 shell */
body.agent-reh-login{
  margin:0!important;
  min-height:100vh!important;
  padding:42px 20px!important;
  display:grid!important;
  place-items:center!important;
  color:var(--reh-ink,#102a47)!important;
  background:var(--reh-page,#f7f8f8)!important;
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,Inter,Arial,sans-serif!important;
}
body.agent-reh-login .agent-login-card{
  width:min(460px,calc(100vw - 32px))!important;
  margin:0 auto!important;
  padding:28px!important;
  color:var(--reh-ink,#102a47)!important;
  background:var(--reh-surface,#fff)!important;
  border:1px solid var(--reh-border,#d9e1e8)!important;
  border-radius:24px!important;
  box-shadow:0 24px 90px #0002!important;
}
[data-reh-theme="dark"] body.agent-reh-login .agent-login-card{
  box-shadow:0 24px 90px #0005!important;
}
body.agent-reh-login .agent-login-card img[src*="reh-logo"],
body.agent-reh-login .agent-login-card img[alt*="RealEstate"],
body.agent-reh-login .agent-login-card img[alt*="Real Estate"]{
  display:none!important;
}
body.agent-reh-login .agent-login-card h1,
body.agent-reh-login .agent-login-card h2,
body.agent-reh-login .agent-login-card h3{
  color:var(--reh-ink,#102a47)!important;
}
body.agent-reh-login .agent-login-card label{
  color:var(--reh-ink,#102a47)!important;
}
body.agent-reh-login .agent-login-card input:not([type="checkbox"]):not([type="radio"]),
body.agent-reh-login .agent-login-card select{
  width:100%!important;
  color:var(--reh-ink,#102a47)!important;
  background:transparent!important;
  border:1px solid var(--reh-border,#d9e1e8)!important;
  border-radius:10px!important;
  padding:12px!important;
  box-shadow:none!important;
  outline:none!important;
}
body.agent-reh-login .agent-login-card input:focus{
  border-color:var(--reh-ink,#102a47)!important;
}
body.agent-reh-login .agent-login-card button[type="submit"],
body.agent-reh-login .agent-login-card input[type="submit"]{
  width:100%!important;
  min-height:44px!important;
  color:var(--reh-surface,#fff)!important;
  background:var(--reh-ink,#102a47)!important;
  border:1px solid var(--reh-ink,#102a47)!important;
  border-radius:10px!important;
  box-shadow:none!important;
}
body.agent-reh-login .agent-login-card a{
  color:var(--reh-ink,#102a47)!important;
}
body.agent-reh-login .agent-login-card .message,
body.agent-reh-login .agent-login-card .success,
body.agent-reh-login .agent-login-card .error{
  border-radius:12px!important;
  box-shadow:none!important;
}

/* Consistent form control dimensions on registration */
body.agent-reh-registration input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="file"]),
body.agent-reh-registration select,
body.agent-reh-registration textarea{
  min-height:44px!important;
  font-size:14px!important;
}
body.agent-reh-registration input[type="file"]{
  color:var(--reh-ink,#102a47)!important;
  font:inherit!important;
}
body.agent-reh-registration input[type="file"]::file-selector-button{
  margin-right:10px!important;
  padding:8px 12px!important;
  color:var(--reh-ink,#102a47)!important;
  background:var(--reh-surface,#fff)!important;
  border:1px solid var(--reh-border,#d9e1e8)!important;
  border-radius:9px!important;
  cursor:pointer!important;
}

/* Account & Settings: exact neutral shell. */
.ah-tools-dialog{
  background:var(--reh-surface,#fff)!important;
}
.ah-tools-head{
  min-height:66px!important;
}
.ah-tools-head .agent-tools-brand{
  display:flex!important;
  align-items:center!important;
  gap:9px!important;
}
.ah-tools-head .agent-tools-brand img{
  width:24px!important;height:24px!important;display:block!important;
}
.ah-tools-head .agent-tools-brand-copy{
  display:flex!important;
  flex-direction:column!important;
  gap:1px!important;
}
.ah-tools-head .agent-tools-brand-copy small{
  color:var(--reh-muted,#697985)!important;
  font-size:9px!important;
  font-weight:800!important;
  letter-spacing:.12em!important;
}
.ah-tools-head .agent-tools-brand-copy strong{
  font-size:14px!important;
}

/* The Account tab is an iframe: remove the old teal/green visual system around it. */
.ah-account-frame{
  width:100%!important;
  min-height:100%!important;
  border:0!important;
  background:var(--reh-surface,#fff)!important;
}

/* Common visible field polish */
input[data-agent-mobile-format]{
  font-variant-numeric:tabular-nums!important;
  letter-spacing:.015em!important;
}
input[data-agent-abn-format],
input[data-agent-acn-format]{
  font-variant-numeric:tabular-nums!important;
}

/* Property/admin brand slots */
.reh-pd-brand.agent-reh-brand,
.pa-native-logo.agent-reh-brand{
  display:flex!important;
  align-items:center!important;
}

/* Mobile */
@media(max-width:700px){
  .agent-host-lockup .agent-host-sub{display:none!important}
  .agent-theme-toggle{width:38px!important;height:38px!important;min-width:38px!important;flex-basis:38px!important}
}