.ah-tools-trigger,
.ah-property-manage{
  position:fixed;
  z-index:9996;
  border:1px solid rgba(20,32,34,.14);
  background:rgba(255,255,255,.96);
  color:#172426;
  box-shadow:0 8px 28px rgba(20,32,34,.16);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  font:600 13px/1.2 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  cursor:pointer
}
.ah-tools-trigger{right:18px;bottom:18px;border-radius:999px;padding:11px 15px;display:flex;align-items:center;gap:8px}
.ah-property-manage{right:18px;bottom:66px;border-radius:12px;padding:10px 14px}
.ah-tools-dot{width:8px;height:8px;border-radius:50%;background:#20a878;box-shadow:0 0 0 4px rgba(32,168,120,.12)}
html[data-reh-theme="dark"] .ah-tools-trigger,
html[data-reh-theme="dark"] .ah-property-manage{background:rgba(24,28,30,.95);color:#fff;border-color:rgba(255,255,255,.14)}
.ah-tools-dialog{width:min(1220px,calc(100vw - 30px));height:min(860px,calc(100vh - 30px));max-width:none;max-height:none;padding:0;border:0;border-radius:22px;background:#f5f6f6;color:#142022;box-shadow:0 35px 100px rgba(0,0,0,.28);overflow:hidden}
.ah-tools-dialog::backdrop{background:rgba(8,13,14,.48);backdrop-filter:blur(6px)}
.ah-tools-shell{display:grid;grid-template-rows:auto 1fr;height:100%}
.ah-tools-head{display:flex;align-items:center;justify-content:space-between;padding:18px 22px;background:#fff;border-bottom:1px solid #e7eaea}
.ah-tools-head>div{display:flex;flex-direction:column;gap:2px}
.ah-tools-head strong{font-size:16px}
.ah-kicker{display:block;font-size:10px;font-weight:800;letter-spacing:.14em;color:#738083}
.ah-icon-button{width:38px;height:38px;border-radius:50%;border:1px solid #e0e5e5;background:#fff;font-size:25px;line-height:1;cursor:pointer}
.ah-tools-main{display:grid;grid-template-columns:210px 1fr;min-height:0}
.ah-tools-nav{padding:18px 12px;background:#172426;color:#fff;display:flex;flex-direction:column;gap:6px}
.ah-tools-nav button{border:0;background:transparent;color:#bdc7c8;text-align:left;padding:11px 12px;border-radius:10px;font:600 14px system-ui;cursor:pointer}
.ah-tools-nav button:hover,.ah-tools-nav button.active{background:#263638;color:#fff}
.ah-tools-nav-spacer{flex:1}
.ah-version{padding:10px 12px;font-size:10px;color:#7f9194}
.ah-tools-body{min-width:0;overflow:auto;padding:28px}
.ah-page-head{display:flex;gap:20px;align-items:flex-start;justify-content:space-between;margin-bottom:22px}
.ah-page-head h1{font:700 clamp(28px,3vw,42px)/1.02 system-ui;margin:5px 0 7px;letter-spacing:-.04em}
.ah-page-head h1 span{color:#20a878}
.ah-page-head p{margin:0;color:#667477;max-width:650px}
.ah-primary,.ah-secondary,.ah-link-button,.ah-text-button{appearance:none;text-decoration:none;border-radius:10px;font:700 13px system-ui;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.ah-primary{border:0;background:#172426;color:#fff;padding:11px 15px}
.ah-primary:hover{background:#253638}
.ah-primary[disabled],.ah-secondary[disabled]{opacity:.55;cursor:wait}
.ah-primary.ah-inline{display:inline-flex;margin-top:20px}
.ah-secondary,.ah-link-button{border:1px solid #dbe1e1;background:#fff;color:#172426;padding:9px 12px}
.ah-text-button{border:0;background:transparent;color:#47585b;padding:5px 0}
.ah-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}
.ah-stats article{background:#fff;border:1px solid #e2e7e7;border-radius:15px;padding:15px}
.ah-stats span{display:block;font-size:11px;color:#788588;text-transform:uppercase;letter-spacing:.08em}
.ah-stats strong{display:block;margin-top:6px;font-size:28px}
.ah-list-panel,.ah-form-card,.ah-profile-card{background:#fff;border:1px solid #e1e6e6;border-radius:16px}
.ah-list-toolbar{display:flex;justify-content:space-between;gap:12px;padding:14px;border-bottom:1px solid #edf0f0}
.ah-search{display:flex;align-items:center;gap:10px;flex:1}
.ah-search span{font-size:11px;font-weight:800;color:#718083;text-transform:uppercase}
.ah-search input{width:min(420px,100%);border:1px solid #dce2e2;border-radius:9px;padding:9px 11px;font:14px system-ui}
.ah-listing-row{display:grid;grid-template-columns:1fr auto;gap:18px;padding:17px;border-bottom:1px solid #edf0f0;align-items:center}
.ah-listing-row:last-child{border-bottom:0}
.ah-listing-main{min-width:0}
.ah-listing-main h3{margin:5px 0 2px;font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ah-listing-main p,.ah-listing-main small{display:block;margin:2px 0;color:#748184}
.ah-listing-main strong{display:block;margin:6px 0 2px}
.ah-status{display:inline-block;border-radius:999px;padding:4px 8px;background:#edf7f3;color:#187657;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}
.ah-listing-actions{display:flex;gap:8px}
.ah-empty{text-align:center;padding:60px 20px}
.ah-empty.compact{padding:40px 20px}
.ah-empty h2{margin:0 0 6px}
.ah-empty p{color:#748184}
.ah-inline-error{padding:20px;color:#a12626}
.ah-loading{min-height:360px;display:grid;place-content:center;text-align:center;color:#6f7d80}
.ah-loading span{width:26px;height:26px;margin:auto;border:3px solid #d8dede;border-top-color:#172426;border-radius:50%;animation:ahspin .8s linear infinite}
@keyframes ahspin{to{transform:rotate(360deg)}}
.ah-editor-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px;color:#748184;font-size:12px}
.ah-editor-form{display:grid;gap:14px;padding-bottom:30px}
.ah-form-card{padding:20px}
.ah-form-card h2{margin:0 0 16px;font-size:18px}
.ah-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.ah-form-grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}
.ah-form-grid .wide{grid-column:1/-1}
.ah-editor-form label{display:flex;flex-direction:column;gap:6px;font-size:11px;font-weight:800;color:#657477;text-transform:uppercase;letter-spacing:.045em}
.ah-editor-form input,.ah-editor-form select,.ah-editor-form textarea{width:100%;box-sizing:border-box;border:1px solid #d9e0e0;border-radius:9px;background:#fff;color:#172426;padding:10px 11px;font:400 14px/1.4 system-ui;text-transform:none;letter-spacing:normal}
.ah-editor-form textarea{resize:vertical}
.ah-form-footer{display:flex;align-items:center;justify-content:flex-end;gap:16px}
.ah-form-footer p{margin:0 auto 0 0;color:#59696c}
.ah-profile-card{max-width:650px;padding:24px}
.ah-avatar{width:60px;height:60px;border-radius:18px;background:#172426;color:#fff;display:grid;place-items:center;font-weight:800;font-size:19px}
.ah-avatar.small{width:42px;height:42px;border-radius:12px;font-size:13px}
.ah-profile-card dl{display:grid;grid-template-columns:150px 1fr;gap:0;margin:22px 0 0}
.ah-profile-card dt,.ah-profile-card dd{margin:0;padding:11px 0;border-bottom:1px solid #eef1f1}
.ah-profile-card dt{color:#738083;font-size:12px}
.ah-agent-list{display:grid;gap:8px}
.ah-agent-row{display:grid;grid-template-columns:auto 1fr auto auto;gap:14px;align-items:center;background:#fff;border:1px solid #e1e6e6;border-radius:14px;padding:13px}
.ah-agent-row>div:nth-child(2){display:flex;flex-direction:column}
.ah-agent-row span,.ah-agent-row small{color:#748184}
.ah-agent-count{text-align:right}
.ah-agent-count strong,.ah-agent-count span{display:block}
html[data-reh-theme="dark"] .ah-tools-dialog{background:#121819;color:#f4f7f7}
html[data-reh-theme="dark"] .ah-tools-head,
html[data-reh-theme="dark"] .ah-list-panel,
html[data-reh-theme="dark"] .ah-form-card,
html[data-reh-theme="dark"] .ah-profile-card,
html[data-reh-theme="dark"] .ah-stats article,
html[data-reh-theme="dark"] .ah-agent-row{background:#1c2426;border-color:#2e393b}
html[data-reh-theme="dark"] .ah-tools-head{border-color:#2e393b}
html[data-reh-theme="dark"] .ah-secondary,
html[data-reh-theme="dark"] .ah-link-button,
html[data-reh-theme="dark"] .ah-icon-button,
html[data-reh-theme="dark"] .ah-editor-form input,
html[data-reh-theme="dark"] .ah-editor-form select,
html[data-reh-theme="dark"] .ah-editor-form textarea,
html[data-reh-theme="dark"] .ah-search input{background:#182022;color:#f4f7f7;border-color:#374345}
@media(max-width:760px){
  .ah-tools-dialog{width:100vw;height:100vh;border-radius:0}
  .ah-tools-main{grid-template-columns:1fr}
  .ah-tools-nav{flex-direction:row;overflow:auto;padding:8px}
  .ah-tools-nav-spacer,.ah-version{display:none}
  .ah-tools-body{padding:18px}
  .ah-page-head{flex-direction:column}
  .ah-stats{grid-template-columns:repeat(2,1fr)}
  .ah-form-grid,.ah-form-grid.four{grid-template-columns:1fr 1fr}
  .ah-listing-row{grid-template-columns:1fr}
  .ah-agent-row{grid-template-columns:auto 1fr}
  .ah-agent-count,.ah-agent-row button{grid-column:2}
}

/* AGENT_HOST_LEGACY_CARD_TOOLS_V1 */
.ah-agent-card{position:relative!important}
.ah-card-tools{
  position:absolute;
  left:10px;
  top:10px;
  z-index:25;
  display:flex;
  gap:6px;
  pointer-events:auto
}
.ah-card-tool{
  min-height:30px;
  padding:6px 9px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:9px;
  background:rgba(15,21,22,.88);
  color:#fff;
  box-shadow:0 4px 14px rgba(0,0,0,.22);
  backdrop-filter:blur(9px);
  -webkit-backdrop-filter:blur(9px);
  display:inline-flex;
  align-items:center;
  gap:5px;
  font:700 11px/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  cursor:pointer
}
.ah-card-tool:hover{background:rgba(25,168,121,.96);border-color:rgba(25,168,121,1)}
.ah-card-tool svg{
  width:14px;
  height:14px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round
}
.ah-card-manage svg circle{fill:currentColor;stroke:none}
.ah-new-listing-quick{
  position:fixed;
  right:18px;
  bottom:66px;
  z-index:9996;
  border:1px solid rgba(20,32,34,.14);
  border-radius:999px;
  padding:11px 15px;
  background:#1fa878;
  color:#fff;
  box-shadow:0 8px 28px rgba(20,32,34,.18);
  display:flex;
  align-items:center;
  gap:7px;
  font:700 13px/1.2 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  cursor:pointer
}
.ah-new-listing-quick:hover{filter:brightness(1.06)}
.ah-new-listing-quick span:first-child{font-size:18px;line-height:12px}
.ah-property-manage{bottom:114px!important}
@media(max-width:760px){
  .ah-card-tools{left:8px;top:8px;gap:4px}
  .ah-card-tool{padding:6px 8px}
  .ah-card-manage span{display:none}
  .ah-new-listing-quick{right:12px;bottom:62px}
}
/* AGENT_HOST_CARD_TOOL_HOVER_FIX_V1 */
#reh-v2-app .card-media{
  position:relative!important;
}

#reh-v2-app .card-media .ah-card-tools{
  position:absolute!important;
  top:10px!important;
  left:10px!important;
  z-index:100!important;
  display:flex!important;
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
  transform:none!important;
}

#reh-v2-app .property-card:hover .ah-card-tools,
#reh-v2-app .property-card.selected .ah-card-tools,
#reh-v2-app .card-media:hover .ah-card-tools{
  display:flex!important;
  opacity:1!important;
  visibility:visible!important;
  z-index:100!important;
}

#reh-v2-app .ah-card-tool{
  position:relative!important;
  z-index:101!important;
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
}

#reh-v2-app .card-media img{
  z-index:0!important;
}

#reh-v2-app .media-arrow{
  z-index:20!important;
}

#reh-v2-app .heart{
  z-index:30!important;
}

/* AGENT_HOST_NAV_ADD_LISTING_V1 */
#reh-v2-app .transaction-nav > .ah-new-listing-nav{
  flex:0 0 auto!important;
  align-self:center!important;
  width:auto!important;
  min-width:auto!important;
  height:36px!important;
  min-height:36px!important;
  margin:0 0 0 8px!important;
  padding:0 14px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  border:1px solid #20a878!important;
  border-radius:999px!important;
  background:#20a878!important;
  color:#fff!important;
  font-weight:750!important;
  white-space:nowrap!important;
  line-height:1!important;
  box-shadow:none!important;
}
#reh-v2-app .transaction-nav > .ah-new-listing-nav:hover{
  background:#178d65!important;
  border-color:#178d65!important;
  color:#fff!important;
}
#reh-v2-app .transaction-nav > .ah-new-listing-nav::after{
  display:none!important;
}
#reh-v2-app .ah-new-listing-plus{
  font-size:18px!important;
  line-height:1!important;
  font-weight:500!important;
}
#reh-v2-app .ah-new-listing-text{
  font-size:12px!important;
}
body > .ah-new-listing-quick{
  display:none!important;
}
.ah-property-manage{
  bottom:66px!important;
}
@media(max-width:800px){
  #reh-v2-app .transaction-nav > .ah-new-listing-nav{
    flex:0 0 36px!important;
    width:36px!important;
    min-width:36px!important;
    height:40px!important;
    min-height:40px!important;
    padding:0!important;
    margin-left:3px!important;
  }
  #reh-v2-app .ah-new-listing-text{
    display:none!important;
  }
}

/* AGENT_HOST_MARK_SOLD_CSS_V1 */
#reh-v2-app .ah-card-sold{
  min-width:88px;
}
#reh-v2-app .ah-card-sold:disabled{
  opacity:.72!important;
  cursor:wait!important;
}
@media(max-width:760px){
  #reh-v2-app .ah-card-sold span{
    display:none;
  }
  #reh-v2-app .ah-card-sold{
    min-width:30px;
  }
}

/* AGENT_HOST_LISTING_EDITOR_MODAL_V2 */
.ah-listing-editor-dialog{
  width:min(1780px,96vw);
  height:94vh;
  max-width:none;
  max-height:none;
  padding:0;
  border:0;
  border-radius:18px;
  overflow:hidden;
  background:#eef1ef;
  box-shadow:0 30px 100px rgba(0,0,0,.46);
}
.ah-listing-editor-dialog::backdrop{
  background:rgba(7,12,13,.68);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
}
.ah-listing-editor-shell{
  display:grid;
  grid-template-rows:58px 1fr;
  height:100%;
}
.ah-listing-editor-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:0 16px 0 20px;
  background:#172426;
  color:#fff;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.ah-listing-editor-bartext{
  display:flex;
  flex-direction:column;
  min-width:0;
}
.ah-listing-editor-kicker{
  font-size:9px;
  font-weight:800;
  letter-spacing:.14em;
  color:#8ea3a5;
}
.ah-listing-editor-bar strong{
  font-size:14px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.ah-listing-editor-baractions{
  display:flex;
  align-items:center;
  gap:8px;
}
.ah-listing-editor-external{
  border:1px solid rgba(255,255,255,.18);
  border-radius:9px;
  background:rgba(255,255,255,.06);
  color:#fff;
  padding:8px 11px;
  font:700 11px system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  cursor:pointer;
}
.ah-listing-editor-close{
  width:36px;
  height:36px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:999px;
  background:transparent;
  color:#fff;
  font-size:24px;
  line-height:1;
  cursor:pointer;
}
.ah-listing-editor-stage{
  position:relative;
  min-height:0;
  background:#eef1ef;
}
#ah-listing-editor-frame{
  width:100%;
  height:100%;
  border:0;
  display:block;
  opacity:0;
  transition:opacity .16s ease;
  background:#eef1ef;
}
#ah-listing-editor-frame.ready{
  opacity:1;
}
.ah-listing-editor-loading{
  position:absolute;
  inset:0;
  z-index:2;
  display:grid;
  place-content:center;
  gap:10px;
  text-align:center;
  background:#eef1ef;
  color:#5e7072;
}
.ah-listing-editor-loading.hidden{
  display:none;
}
.ah-listing-editor-loading span{
  width:28px;
  height:28px;
  margin:auto;
  border:3px solid #ced7d6;
  border-top-color:#172426;
  border-radius:50%;
  animation:ahspin .8s linear infinite;
}
@keyframes ahspin{
  to{transform:rotate(360deg)}
}
@media(max-width:900px){
  .ah-listing-editor-dialog{
    width:100vw;
    height:100vh;
    border-radius:0;
  }
  .ah-listing-editor-shell{
    grid-template-rows:52px 1fr;
  }
  .ah-listing-editor-external{
    display:none;
  }
}

/* AGENT_HOST_PUBLICATION_CARD_CSS_V1 */
#reh-v2-app .ah-card-publish{background:rgba(24,124,90,.94)!important;border-color:rgba(32,168,120,.55)!important}
#reh-v2-app .ah-card-publish:hover{background:#20a878!important;border-color:#20a878!important}
#reh-v2-app .ah-card-unpublish{background:rgba(15,21,22,.92)!important;border-color:rgba(255,255,255,.24)!important}
#reh-v2-app .ah-card-publish:disabled,#reh-v2-app .ah-card-unpublish:disabled{opacity:.68!important;cursor:wait!important}

/* AGENT_HOST_MODAL_NO_SCROLL_V1 */
.ah-listing-editor-dialog,
.ah-listing-editor-shell,
.ah-listing-editor-stage{
  overflow:hidden!important;
}
#ah-listing-editor-frame{
  overflow:hidden!important;
}

/* AGENT_HOST_ACCOUNT_PILL_TOOLS_V1 */
#reh-v2-app .account-pill{
  overflow:visible!important;
}

#reh-v2-app .account-pill #ah-tools-trigger.in-account-pill{
  position:static!important;
  right:auto!important;
  bottom:auto!important;
  z-index:auto!important;
  margin:0 1px 0 3px!important;
  padding:5px 8px!important;
  min-height:28px!important;
  border:0!important;
  border-left:1px solid rgba(120,130,132,.22)!important;
  border-right:1px solid rgba(120,130,132,.22)!important;
  border-radius:0!important;
  background:transparent!important;
  color:inherit!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:5px!important;
  font:700 10px/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  white-space:nowrap!important;
  cursor:pointer!important;
}

#reh-v2-app .account-pill #ah-tools-trigger.in-account-pill:hover{
  color:#20a878!important;
}

#reh-v2-app .account-pill #ah-tools-trigger.in-account-pill:focus-visible{
  outline:2px solid #20a878!important;
  outline-offset:2px!important;
}

#reh-v2-app .account-pill .ah-tools-icon{
  width:14px!important;
  height:14px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
}

#reh-v2-app .account-pill .ah-tools-icon svg{
  width:14px!important;
  height:14px!important;
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:1.8!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}

#reh-v2-app .account-pill .ah-tools-dot{
  display:none!important;
}

@media(max-width:760px){
  #reh-v2-app .account-pill #ah-tools-trigger.in-account-pill{
    padding:5px 6px!important;
    margin-left:1px!important;
  }
  #reh-v2-app .account-pill .ah-tools-label{
    display:none!important;
  }
}

/* AGENT_HOST_ACCOUNT_PILL_TOOLS_V2
   One smooth account pill: avatar | account | tools icon | menu.
   No extra text label, no separator bars, no boxed sub-button. */
#reh-v2-app .account-pill{
  gap:6px!important;
  padding-right:8px!important;
}

#reh-v2-app .account-pill #ah-tools-trigger.in-account-pill{
  position:static!important;
  width:28px!important;
  height:28px!important;
  min-width:28px!important;
  min-height:28px!important;
  margin:0!important;
  padding:0!important;

  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;

  border:0!important;
  border-radius:50%!important;
  background:transparent!important;
  color:inherit!important;

  box-shadow:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}

#reh-v2-app .account-pill #ah-tools-trigger.in-account-pill:hover{
  background:rgba(127,140,144,.12)!important;
  color:#20a878!important;
}

#reh-v2-app .account-pill #ah-tools-trigger.in-account-pill:focus-visible{
  outline:2px solid #20a878!important;
  outline-offset:1px!important;
}

#reh-v2-app .account-pill .ah-tools-label{
  display:none!important;
}

#reh-v2-app .account-pill .ah-tools-icon{
  width:15px!important;
  height:15px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
}

#reh-v2-app .account-pill .ah-tools-icon svg{
  width:15px!important;
  height:15px!important;
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:1.65!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}

#reh-v2-app .account-pill > span:last-child{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:24px!important;
  height:24px!important;
  margin:0!important;
}

/* Neutralise the V1 separators completely. */
#reh-v2-app .account-pill #ah-tools-trigger.in-account-pill{
  border-left:0!important;
  border-right:0!important;
}

/* AGENT_HOST_SETTINGS_HUB_V1 */
#reh-v2-app .account-pill #ah-tools-trigger.in-account-pill{
  width:30px!important;
  height:30px!important;
  min-width:30px!important;
  min-height:30px!important;
  border-radius:50%!important;
}
#reh-v2-app .account-pill .ah-tools-icon,
#reh-v2-app .account-pill .ah-tools-icon svg{
  width:16px!important;
  height:16px!important;
}
#reh-v2-app .account-pill .ah-tools-label{
  display:none!important;
}
.ah-tools-head strong{
  font-size:15px!important;
}
.ah-tools-nav button{
  text-align:left!important;
}

/* AGENT_HOST_UNIFIED_SETTINGS_V1 */
.ah-tools-dialog{
  width:min(1180px,calc(100vw - 30px))!important;
  height:min(840px,calc(100vh - 30px))!important;
}
.ah-tools-main{
  min-height:0!important;
}
.ah-tools-body{
  min-width:0!important;
  min-height:0!important;
}
.ah-settings-signout{
  width:100%!important;
  padding:10px 12px!important;
  border:1px solid rgba(255,255,255,.14)!important;
  border-radius:10px!important;
  background:transparent!important;
  color:inherit!important;
  text-align:left!important;
  cursor:pointer!important;
}
.ah-settings-signout:hover{
  background:rgba(255,255,255,.06)!important;
}
.ah-account-embed{
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  overflow:hidden!important;
}
.ah-account-frame{
  width:100%!important;
  height:100%!important;
  border:0!important;
  display:block!important;
  background:#101819!important;
}
.ah-preferences-form{
  width:min(760px,100%)!important;
  display:grid!important;
  gap:14px!important;
}
.ah-pref-field{
  display:grid!important;
  gap:7px!important;
}
.ah-pref-field select{
  width:100%!important;
  min-height:42px!important;
}
.ah-check-row{
  display:grid!important;
  grid-template-columns:22px 1fr!important;
  gap:10px!important;
  align-items:start!important;
  padding:10px 0!important;
}
.ah-check-row input{
  margin-top:3px!important;
}
.ah-check-row span{
  display:grid!important;
  gap:3px!important;
}
.ah-check-row small{
  opacity:.72!important;
}
@media(max-width:760px){
  .ah-tools-dialog{
    width:100vw!important;
    height:100dvh!important;
    border-radius:0!important;
  }
  .ah-tools-main{
    grid-template-columns:1fr!important;
    grid-template-rows:auto minmax(0,1fr)!important;
  }
  .ah-tools-nav{
    display:flex!important;
    gap:6px!important;
    overflow-x:auto!important;
    padding:8px!important;
  }
  .ah-tools-nav-spacer,
  .ah-version,
  .ah-settings-signout{
    display:none!important;
  }
  .ah-tools-nav button{
    flex:0 0 auto!important;
  }
}
/* AGENT_HOST_SIMPLE_ACCOUNT_PILL_V1 */

/* Remove the old hamburger/menu glyph. */
#reh-v2-app .account-pill > span:last-child:not(#ah-tools-trigger){
  display:none!important;
}

/* Cog is now decorative inside the ONE account button. */
#reh-v2-app .account-pill #ah-tools-trigger.in-account-pill{
  pointer-events:none!important;
  width:24px!important;
  height:24px!important;
  min-width:24px!important;
  min-height:24px!important;
  margin-left:2px!important;
  padding:0!important;
  background:transparent!important;
}

/* Keep the entire pill visually simple and balanced. */
#reh-v2-app .account-pill{
  gap:7px!important;
  padding-right:10px!important;
  cursor:pointer!important;
}

#reh-v2-app .account-pill:hover #ah-tools-trigger{
  color:#20a878!important;
}

/* AGENT_HOST_PROPERTY_PAGE_ACTIONS_CSS_V1 */
.reh-agent-property-actions{
  display:flex;
  gap:8px;
  margin:0 0 18px;
  padding:0 0 18px;
  border-bottom:1px solid var(--pd-line);
}
.reh-agent-action{
  min-height:39px;
  padding:0 13px;
  border:1px solid var(--pd-line);
  border-radius:999px;
  background:var(--pd-surface-2);
  color:var(--pd-ink);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  font-size:11px;
  font-weight:800;
  cursor:pointer;
}
.reh-agent-action-primary{
  background:var(--pd-ink);
  color:var(--pd-surface);
  border-color:var(--pd-ink);
}
.reh-agent-action svg{
  width:15px;
  height:15px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.reh-agent-action:disabled{opacity:.6;cursor:wait}
#ah-property-manage{display:none!important}
@media(max-width:520px){
  .reh-agent-property-actions{display:grid;grid-template-columns:1fr 1fr}
  .reh-agent-action{width:100%}
}

/* AGENT_PROPERTY_PAGE_HEADER_FIX_V1 */
.reh-pd-account-host{
  min-height:0!important;
  height:auto!important;
  margin:0!important;
  display:flex!important;
  align-items:center!important;
}
.reh-pd-account-host .account-pill{
  min-height:38px!important;
  height:38px!important;
  padding:4px 8px 4px 5px!important;
  gap:7px!important;
  border:1px solid var(--pd-line)!important;
  background:var(--pd-surface)!important;
  color:var(--pd-ink)!important;
  box-shadow:none!important;
}
.reh-pd-account-host .account-avatar{
  width:28px!important;
  height:28px!important;
  min-width:28px!important;
  background:var(--pd-ink)!important;
  color:var(--pd-surface)!important;
  font-size:10px!important;
}
.reh-pd-account-host .account-name{
  max-width:145px!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-size:11px!important;
  font-weight:750!important;
}
.reh-pd-pill-slot{display:none!important}

.reh-agent-ownerbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin:0 0 18px;
  padding:13px 14px;
  border:1px solid var(--pd-line);
  border-radius:14px;
  background:var(--pd-surface);
}
.reh-agent-ownerbar-copy{
  display:grid;
  gap:2px;
}
.reh-agent-ownerbar-copy span{
  color:var(--pd-accent);
  font-size:9px;
  font-weight:850;
  letter-spacing:.12em;
}
.reh-agent-ownerbar-copy strong{
  font-size:13px;
  color:var(--pd-ink);
}
.reh-agent-ownerbar .reh-agent-property-actions{
  margin:0!important;
  padding:0!important;
  border:0!important;
}
.reh-agent-ownerbar:has(.reh-agent-property-actions:empty){
  display:none;
}
@media(max-width:760px){
  .reh-pd-account-host .account-name{display:none!important}
  .reh-agent-ownerbar{
    align-items:stretch;
    flex-direction:column;
  }
  .reh-agent-ownerbar .reh-agent-property-actions{
    width:100%;
  }
}

/* AGENT_HOST_STRIPE_BILLING_CSS_V1 */
.ah-billing-dialog{width:min(620px,calc(100vw - 28px));padding:0;border:0;border-radius:22px;background:#fff;color:#142023;box-shadow:0 30px 90px rgba(0,0,0,.35)}
.ah-billing-dialog::backdrop{background:rgba(4,10,12,.66);backdrop-filter:blur(6px)}
.ah-billing-shell{padding:24px}
.ah-billing-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}
.ah-billing-head small{font-size:10px;font-weight:850;letter-spacing:.13em;color:#20a878}
.ah-billing-head h2{margin:5px 0 4px;font-size:27px}
.ah-billing-head p{margin:0;color:#6c797b;font-size:13px}
.ah-billing-head>[data-close]{width:38px;height:38px;border:1px solid #dce3e3;border-radius:50%;background:#fff;font-size:22px;cursor:pointer}
.ah-billing-credit{margin-top:18px;padding:12px 14px;border-radius:12px;background:#eaf8f2;color:#166f53;font-size:13px;display:flex;justify-content:space-between}
.ah-billing-plans{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:18px}
.ah-billing-plans button{display:flex;flex-direction:column;align-items:flex-start;gap:5px;padding:18px;border:1px solid #dce3e3;border-radius:16px;background:#fff;color:#142023;cursor:pointer;text-align:left}
.ah-billing-plans button:hover{border-color:#20a878;box-shadow:0 8px 24px rgba(20,90,70,.10)}
.ah-billing-plans strong{font-size:25px}.ah-billing-plans span{font-weight:800}.ah-billing-plans small{color:#728082}
.ah-billing-renewal{margin:18px 0 0;font-size:13px;line-height:1.5}
.ah-billing-note{margin:8px 0 0;color:#6f7b7d;font-size:11px;line-height:1.55}
html[data-reh-theme="dark"] .ah-billing-dialog{background:#1b2223;color:#f4f7f7}
html[data-reh-theme="dark"] .ah-billing-head>[data-close],
html[data-reh-theme="dark"] .ah-billing-plans button{background:#20292a;color:#f4f7f7;border-color:#364244}
html[data-reh-theme="dark"] .ah-billing-head p,
html[data-reh-theme="dark"] .ah-billing-plans small,
html[data-reh-theme="dark"] .ah-billing-note{color:#9eacad}
html[data-reh-theme="dark"] .ah-billing-credit{background:#173329;color:#65dfb2}
@media(max-width:620px){.ah-billing-plans{grid-template-columns:1fr}.ah-billing-plans button{display:grid;grid-template-columns:auto 1fr auto;align-items:center}.ah-billing-plans strong{font-size:20px}}

/* AGENT_HOST_STRIPE_BILLING_CSS_V1_1 */
.ah-billing-dialog{width:min(620px,calc(100vw - 28px));padding:0;border:0;border-radius:22px;background:#fff;color:#142023;box-shadow:0 30px 90px rgba(0,0,0,.35)}
.ah-billing-dialog::backdrop{background:rgba(4,10,12,.66);backdrop-filter:blur(6px)}
.ah-billing-shell{padding:24px}
.ah-billing-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}
.ah-billing-head small{font-size:10px;font-weight:850;letter-spacing:.13em;color:#20a878}
.ah-billing-head h2{margin:5px 0 4px;font-size:27px}
.ah-billing-head p{margin:0;color:#6c797b;font-size:13px}
.ah-billing-head>[data-close]{width:38px;height:38px;border:1px solid #dce3e3;border-radius:50%;background:#fff;font-size:22px;cursor:pointer}
.ah-billing-credit{margin-top:18px;padding:12px 14px;border-radius:12px;background:#eaf8f2;color:#166f53;font-size:13px;display:flex;justify-content:space-between}
.ah-billing-plans{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:18px}
.ah-billing-plans button{display:flex;flex-direction:column;align-items:flex-start;gap:5px;padding:18px;border:1px solid #dce3e3;border-radius:16px;background:#fff;color:#142023;cursor:pointer;text-align:left}
.ah-billing-plans button:hover{border-color:#20a878;box-shadow:0 8px 24px rgba(20,90,70,.10)}
.ah-billing-plans strong{font-size:25px}.ah-billing-plans span{font-weight:800}.ah-billing-plans small{color:#728082}
.ah-billing-renewal{margin:18px 0 0;font-size:13px;line-height:1.5}
.ah-billing-note{margin:8px 0 0;color:#6f7b7d;font-size:11px;line-height:1.55}
html[data-reh-theme="dark"] .ah-billing-dialog{background:#1b2223;color:#f4f7f7}
html[data-reh-theme="dark"] .ah-billing-head>[data-close],
html[data-reh-theme="dark"] .ah-billing-plans button{background:#20292a;color:#f4f7f7;border-color:#364244}
html[data-reh-theme="dark"] .ah-billing-head p,
html[data-reh-theme="dark"] .ah-billing-plans small,
html[data-reh-theme="dark"] .ah-billing-note{color:#9eacad}
html[data-reh-theme="dark"] .ah-billing-credit{background:#173329;color:#65dfb2}
@media(max-width:620px){.ah-billing-plans{grid-template-columns:1fr}.ah-billing-plans button{display:grid;grid-template-columns:auto 1fr auto;align-items:center}.ah-billing-plans strong{font-size:20px}}

/* AGENT_HOST_RENEWAL_CONSENT_CSS_V1 */
.ah-renewal-warning{margin-top:18px;padding:15px 16px;border:1px solid #e3b341;border-radius:14px;background:#fff8df;color:#2a2417}
.ah-renewal-warning>strong{display:block;font-size:14px;margin-bottom:6px}
.ah-renewal-warning p{margin:5px 0;font-size:12px;line-height:1.5}
.ah-renewal-consent{display:flex;align-items:flex-start;gap:10px;margin-top:12px;padding-top:12px;border-top:1px solid rgba(103,79,20,.18);font-size:12px;line-height:1.5;cursor:pointer}
.ah-renewal-consent input{width:18px;height:18px;min-width:18px;margin-top:1px;accent-color:#15986c;cursor:pointer}
.ah-billing-plans button:disabled{opacity:.42;cursor:not-allowed;box-shadow:none}
.ah-billing-plans button:disabled:hover{border-color:#dce3e3;box-shadow:none}
html[data-reh-theme="dark"] .ah-renewal-warning{background:#302a18;border-color:#6d5928;color:#f6edcf}
html[data-reh-theme="dark"] .ah-renewal-consent{border-top-color:rgba(255,255,255,.12)}

/* AGENT_HOST_DELETE_LISTING_V1 */
#reh-v2-app .ah-page-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
#reh-v2-app .ah-danger{
  appearance:none;border:1px solid rgba(185,28,28,.30);background:rgba(185,28,28,.07);
  color:#b91c1c;border-radius:10px;padding:9px 13px;font:inherit;font-weight:750;cursor:pointer;
}
#reh-v2-app .ah-danger:hover{background:rgba(185,28,28,.12);border-color:rgba(185,28,28,.48)}
#reh-v2-app .ah-danger:disabled{opacity:.55;cursor:wait}
html[data-reh-theme="dark"] #reh-v2-app .ah-danger{
  color:#fca5a5;background:rgba(239,68,68,.11);border-color:rgba(248,113,113,.28)
}
@media(max-width:720px){
  #reh-v2-app .ah-page-actions{width:100%;justify-content:stretch}
  #reh-v2-app .ah-page-actions>button{flex:1}
}
/* AH_CARD_DELETE_BUTTON_V1 */
#reh-v2-app .ah-card-delete{background:rgba(145,25,25,.92)!important;border-color:rgba(255,255,255,.24)!important;color:#fff!important}
#reh-v2-app .ah-card-delete:hover{background:rgba(185,28,28,.98)!important}
#reh-v2-app .ah-card-delete:disabled{opacity:.65!important;cursor:wait!important}

/* AGENT_HOST_ARCHIVE_RESTORE_V1 */
#reh-v2-app .ah-archive{
  appearance:none;border:1px solid rgba(161,98,7,.28);background:rgba(245,158,11,.09);
  color:#9a5d05;border-radius:10px;padding:9px 13px;font:inherit;font-weight:750;cursor:pointer
}
#reh-v2-app .ah-archive:hover{background:rgba(245,158,11,.15);border-color:rgba(161,98,7,.45)}
#reh-v2-app .ah-card-archive{
  background:rgba(98,72,18,.90)!important;border-color:rgba(255,255,255,.24)!important;color:#fff!important
}
#reh-v2-app .ah-card-archive:hover{background:rgba(126,88,12,.98)!important}
#reh-v2-app .ah-card-archive:disabled{opacity:.65!important;cursor:wait!important}
#reh-v2-app .ah-archived-listing-nav{
  display:inline-flex;align-items:center;gap:7px;border:0;background:transparent;color:inherit;
  font:inherit;font-weight:650;cursor:pointer;padding:8px 9px;border-radius:9px
}
#reh-v2-app .ah-archived-listing-nav:hover{background:rgba(127,127,127,.09)}
.ah-archive-dialog{
  width:min(720px,calc(100vw - 28px));max-height:min(760px,calc(100vh - 28px));padding:0;border:0;border-radius:18px;
  box-shadow:0 28px 90px rgba(0,0,0,.28);background:#fff;color:#1e2522
}
.ah-archive-dialog::backdrop{background:rgba(15,20,18,.48);backdrop-filter:blur(4px)}
.ah-archive-shell{display:flex;flex-direction:column;max-height:inherit}
.ah-archive-head{display:flex;justify-content:space-between;gap:20px;padding:24px 26px;border-bottom:1px solid #e4e9e6}
.ah-archive-head small{display:block;font-size:10px;font-weight:800;letter-spacing:.13em;color:#19845f}
.ah-archive-head h2{margin:4px 0 5px;font-size:24px}
.ah-archive-head p{margin:0;color:#65716b;font-size:13px;line-height:1.5}
.ah-archive-head>[data-close]{border:0;background:transparent;font-size:25px;cursor:pointer;color:inherit}
.ah-archive-content{padding:18px 22px 24px;overflow:auto}
.ah-archive-count{font-size:12px;color:#68736e;margin:0 0 10px}
.ah-archive-list{display:grid;gap:9px}
.ah-archive-item{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:15px 16px;border:1px solid #e0e6e3;border-radius:12px}
.ah-archive-item>div{min-width:0;display:grid;gap:3px}
.ah-archive-item small{font-size:9px;letter-spacing:.09em;color:#82908a;font-weight:800}
.ah-archive-item strong{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ah-archive-item span,.ah-archive-item em{font-size:11px;color:#6b7771;font-style:normal}
.ah-archive-empty{padding:34px;text-align:center;border:1px dashed #ccd5d0;border-radius:12px}
.ah-archive-empty p{color:#6d7973;margin-bottom:0}
html[data-reh-theme="dark"] .ah-archive-dialog{background:#161b19;color:#eef4f1}
html[data-reh-theme="dark"] .ah-archive-head{border-color:#303936}
html[data-reh-theme="dark"] .ah-archive-item{border-color:#303936}
html[data-reh-theme="dark"] .ah-archive-head p,
html[data-reh-theme="dark"] .ah-archive-item span,
html[data-reh-theme="dark"] .ah-archive-item em{color:#9aa8a1}
@media(max-width:620px){
  .ah-archive-item{align-items:flex-start;flex-direction:column}
  .ah-archive-item button{width:100%}
}
