/* THEO PROPERTIES 1.0.0.8.4 — additive CSS only; CSS viewport <=430px for phone improvements.
Exact v1.0.0.8.3 (property class fill/rail) remains unchanged.
*/

/*
Theo Properties v1.0.0.8.4 — Bid2Stay-inspired premium action polish
VISUAL-ONLY / ADDITIVE: no changes to behaviour, cards, geometry, fields, navigation or branding.
Benchmark: Bid2Stay 29.2.13 UI system (button radius, focus affordance and feedback).
All colours inherit their established Theo Properties authority.
The original 0px global button radii remain unchanged for navigation, tabs and icon-only actions.
*/
:root{
  --theo-benchmark-action-radius:12px;
  --theo-benchmark-compact-radius:10px;
  --theo-benchmark-action-shadow:0 2px 8px rgba(11,31,45,.09);
  --theo-benchmark-focus:0 0 0 3px rgba(189,141,73,.22);
}

/* Semantic CTA buttons only. No changes to widths, positions, grid, fonts, content or card sizes. */
body.theo-app :is(button,a[role="button"],a.button,input[type="submit"],input[type="button"]):is(
  .button,.primary,.secondary,.btn-primary,.btn-secondary,.ref32-btn,
  .theo-account-btn,.listing-life-action,.mandate-action,.manager-primary-action,
  .owner-cta-primary,.owner-cta-secondary,.commercial-checkout-submit,.tenant-support-action,
  .multiunit-link
):not(.theo-svg-action):not(.nav-item):not(.top-icon-btn):not(.menu-toggle):not(.category-carousel-arrow):not(.category-carousel-dot):not(.save-icon):not(.location-current-button):not(.password-toggle):not(.auth-modal-close):not(.workspace-identity-menu-button):not(.workspace-identity-logo):not(.workspace-role-chip):not(.role-choice):not(.identity-choice):not([role="tab"]):not([aria-selected]),
body.theo-admin :is(button,a[role="button"],a.button,input[type="submit"],input[type="button"]):is(
  .button,.primary,.secondary,.btn-primary,.btn-secondary,.ref32-btn,
  .theo-account-btn,.listing-life-action,.mandate-action,.manager-primary-action,
  .owner-cta-primary,.owner-cta-secondary,.commercial-checkout-submit,.tenant-support-action,
  .multiunit-link
):not(.theo-svg-action):not(.nav-item):not(.top-icon-btn):not(.menu-toggle):not(.category-carousel-arrow):not(.category-carousel-dot):not(.save-icon):not(.location-current-button):not(.password-toggle):not(.auth-modal-close):not(.workspace-identity-menu-button):not(.workspace-identity-logo):not(.workspace-role-chip):not(.role-choice):not(.identity-choice):not([role="tab"]):not([aria-selected]),
body.affiliate-page :is(button,a[role="button"],a.button,input[type="submit"],input[type="button"]):is(
  .button,.primary,.secondary,.btn-primary,.btn-secondary,.ref32-btn
):not(.theo-svg-action):not([role="tab"]):not([aria-selected]){
  border-radius:var(--theo-benchmark-action-radius)!important;
}

/* Small table actions: moderate, not pill-like, without modifying compact sizing. */
body:is(.theo-app,.theo-admin,.affiliate-page) :is(button,a[role="button"],a.button):is(
  .table-btn,.acq-table-btn,.aff-table-btn
):not(.theo-svg-action):not(.nav-item){
  border-radius:var(--theo-benchmark-compact-radius)!important;
}

/* Quiet lift and tactility for primary actions only, without changing their native Theo colours. */
body:is(.theo-app,.theo-admin,.affiliate-page) :is(button,a.button,a[role="button"]):is(
  .primary,.btn-primary,.owner-cta-primary,.hero-search-submit,.commercial-checkout-submit,
  .manager-primary-action,.tenant-support-action,.ref32-btn.gold
):not(.nav-item):not(.theo-svg-action):not(.workspace-role-chip):not(.role-choice){
  box-shadow:var(--theo-benchmark-action-shadow)!important;
}

/* Focus feedback: keyboard users can see action boundaries. Only affects focused actions. */
body:is(.theo-app,.theo-admin,.affiliate-page) :is(button,a.button,a[role="button"],input[type="submit"]):is(
  .button,.primary,.secondary,.btn-primary,.btn-secondary,.ref32-btn,
  .theo-account-btn,.table-btn,.acq-table-btn,.aff-table-btn,.listing-life-action,
  .mandate-action,.manager-primary-action,.owner-cta-primary,.owner-cta-secondary
):not(.theo-svg-action):not(.nav-item):focus-visible{
  outline:2px solid var(--theo-ui-gold-500,#bd8d49)!important;
  outline-offset:2px!important;
  box-shadow:var(--theo-benchmark-focus)!important;
}



/*
 Theo Properties — Small Phone UX Composition v1.0.0.8.4 (UAT)
 Base: exact user-uploaded v1.0.0.8.3, preserving image-fill, rail and location corrections.
 Scope: narrow viewports only (<=430 CSS px). Additive appearance rules.
 No markup, route, authentication, role, navigation-event, payment, map or card-scale changes.
 */
@media screen and (max-width:430px){
  :root{--theo-phone-edge:14px;--theo-phone-focus-ring:0 0 0 3px rgba(190,147,83,.20)}

  /* Preserve horizontal swipe rails; protect ordinary content against long labels. */
  body.theo-app :is(.content,.view,.view-head,.panel,.ws30-panel,.commercial-panel),
  body.theo-admin :is(.content,.view,.panel,.admin-content){min-width:0;max-width:100%}
  body.theo-app :is(.view-head,.panel-head,.section-head) :is(h1,h2,h3,p),
  body.theo-admin :is(.view-head,.panel-head,.section-head) :is(h1,h2,h3,p){overflow-wrap:break-word}

  /* Marketplace: space the hero as a readable, deliberate first step. */
  body.theo-app #explore .marketplace-hero-copy{
    box-sizing:border-box!important;
    padding:24px 17px 22px!important;
  }
  body.theo-app #explore .mobile-marketplace-intro{
    min-width:0!important;
    margin-bottom:16px!important;
  }
  body.theo-app #explore .mobile-market-kicker{
    font-size:10px!important;
    line-height:1.35!important;
    letter-spacing:.10em!important;
  }
  body.theo-app #explore .mobile-marketplace-title{
    font-size:clamp(29px,8.5vw,33px)!important;
    line-height:1.07!important;
    letter-spacing:-.035em!important;
    overflow-wrap:normal!important;
  }
  body.theo-app #explore .mobile-marketplace-intro p{
    font-size:13px!important;
    line-height:1.5!important;
    margin-top:9px!important;
    white-space:normal!important;
  }

  /* Search: retain the existing location selector, filters, and action order. */
  body.theo-app #explore .hero-search-card{
    box-sizing:border-box!important;
    padding:12px!important;
    border-radius:14px!important;
    min-width:0!important;
  }
  body.theo-app #explore .hero-search-card .hero-search-card-head{
    min-width:0!important;
    margin-bottom:8px!important;
  }
  body.theo-app #explore .hero-search-card-head strong{
    font-size:17px!important;
    line-height:1.25!important;
  }
  body.theo-app #explore .hero-search-card-head span{
    font-size:11.5px!important;
    line-height:1.42!important;
    white-space:normal!important;
  }
  body.theo-app #explore .hero-search-card .public-search{
    min-width:0!important;
    gap:10px!important;
  }
  body.theo-app #explore :is(.location-search-shell,.rent-range-trigger){border-radius:11px!important}
  body.theo-app #explore .hero-search-submit{
    min-height:48px!important;
    height:48px!important;
    font-size:15px!important;
    border-radius:12px!important;
  }
  body.theo-app #explore .location-current-button{
    min-width:36px!important;
    min-height:36px!important;
    border-radius:10px!important;
  }

  /* Explicit fix: previous late cascade compresses trust benefits into 8px lines. */
  body.theo-app #explore .hero-support{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:0!important;
    width:100%!important;
    max-width:100%!important;
    margin:14px 0 0!important;
    padding:8px 0 0!important;
    border-top:1px solid rgba(200,213,221,.85)!important;
    overflow:visible!important;
    white-space:normal!important;
  }
  body.theo-app #explore .hero-support>.hero-benefit{
    box-sizing:border-box!important;
    display:grid!important;
    grid-template-columns:28px minmax(0,1fr)!important;
    gap:9px!important;
    align-items:center!important;
    width:100%!important;
    min-width:0!important;
    min-height:46px!important;
    padding:8px 0!important;
    margin:0!important;
    border:0!important;
    border-bottom:1px solid rgba(215,225,230,.75)!important;
    overflow:visible!important;
    white-space:normal!important;
  }
  body.theo-app #explore .hero-support>.hero-benefit:last-child{border-bottom:0!important}
  body.theo-app #explore .hero-support>.hero-benefit::before,
  body.theo-app #explore .hero-support>.hero-benefit::after{content:none!important;display:none!important}
  body.theo-app #explore .hero-benefit-icon{
    display:grid!important;
    grid-column:1!important;
    grid-row:1!important;
    place-items:center!important;
    width:28px!important;
    height:28px!important;
    min-width:28px!important;
    min-height:28px!important;
    border-radius:9px!important;
    background:rgba(28,99,94,.08)!important;
    color:#34766f!important;
  }
  body.theo-app #explore .hero-benefit-icon svg{
    display:block!important;
    width:16px!important;
    height:16px!important;
    stroke:currentColor!important;
    fill:none!important;
  }
  body.theo-app #explore .hero-benefit-copy{
    grid-column:2!important;
    grid-row:1!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:2px!important;
    min-width:0!important;
    width:100%!important;
    white-space:normal!important;
    text-align:left!important;
  }
  body.theo-app #explore .hero-benefit-copy b{
    display:block!important;
    font-size:12px!important;
    font-weight:750!important;
    line-height:1.3!important;
    white-space:normal!important;
    overflow:visible!important;
  }
  body.theo-app #explore .hero-benefit-copy small{
    display:block!important;
    margin:0!important;
    font-size:11px!important;
    line-height:1.35!important;
    white-space:normal!important;
    overflow:visible!important;
  }

  /* Non-carousel headings and explanatory copy can wrap without pulling the page wider. */
  body.theo-app #explore :is(.section-intro,.section-head,.results-head,.available-properties-head){min-width:0!important;max-width:100%!important}
  body.theo-app #explore :is(.section-intro,.section-head,.results-head) :is(h2,p,small){overflow-wrap:break-word!important}

  /* Tenant, owner and manager: compact single-column panels and readable controls. */
  body.signed-mode.theo-app :is(#tenant,#owner,#management) :is(.panel,.ws30-panel,.commercial-panel){
    box-sizing:border-box!important;
    min-width:0!important;
    padding:14px!important;
    border-radius:14px!important;
  }
  body.signed-mode.theo-app :is(#tenant,#owner,#management) :is(.ws30-kpis,.ws30-quick-grid,.ws30-mini-context){
    grid-template-columns:minmax(0,1fr)!important;
    gap:10px!important;
  }
  body.signed-mode.theo-app :is(#tenant,#owner,#management) :is(.ws30-kpi,.insight-card){min-width:0!important}
  body.signed-mode.theo-app :is(#tenant,#owner,#management) :is(.form-grid,.theo-form-grid,.lifecycle-form-grid,.multiunit-form-grid,.baf2-two){grid-template-columns:minmax(0,1fr)!important;min-width:0!important}
  body.signed-mode.theo-app :is(#tenant,#owner,#management) :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea){
    box-sizing:border-box!important;
    width:100%;
    max-width:100%!important;
    min-width:0!important;
    font-size:16px!important;
  }
  body.signed-mode.theo-app :is(#tenant,#owner,#management) :is(.data-actions,.baf2-actions,.multiunit-actions,.ws30-tenant-actions){flex-wrap:wrap!important;gap:9px!important}
  body.signed-mode.theo-app :is(#tenant,#owner,#management) :is(.data-actions,.baf2-actions,.multiunit-actions,.ws30-tenant-actions) :is(button,a){
    max-width:100%!important;
    min-height:44px!important;
    white-space:normal!important;
    overflow-wrap:break-word!important;
  }

  /* Consistent safe area beneath content while retaining the canonical five-item dock. */
  body.signed-mode.theo-app .content,
  body.theo-admin .content{padding-bottom:calc(104px + env(safe-area-inset-bottom,0px))!important}
  body.signed-mode.theo-app #mobile-nav.mobile-nav[data-theo-unified="1"],
  body.theo-admin #theo-admin-mobile-nav.theo-unified-dock{
    box-sizing:border-box!important;
    min-height:70px!important;
    bottom:max(10px,env(safe-area-inset-bottom,0px))!important;
    padding:6px 4px!important;
    gap:2px!important;
  }
  body.signed-mode.theo-app #mobile-nav.mobile-nav[data-theo-unified="1"] button,
  body.theo-admin #theo-admin-mobile-nav.theo-unified-dock button{
    min-height:54px!important;
    padding:5px 1px!important;
    gap:4px!important;
    font-size:10px!important;
    line-height:1.15!important;
    letter-spacing:-.01em!important;
    white-space:normal!important;
    text-overflow:clip!important;
  }
  body.signed-mode.theo-app #mobile-nav.mobile-nav[data-theo-unified="1"] button span,
  body.theo-admin #theo-admin-mobile-nav.theo-unified-dock button span{
    display:block!important;
    max-width:100%!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    font:inherit!important;
  }
  body.signed-mode.theo-app #mobile-nav.mobile-nav[data-theo-unified="1"] button svg,
  body.theo-admin #theo-admin-mobile-nav.theo-unified-dock button svg{width:20px!important;height:20px!important;flex:0 0 20px!important}

  /* The More sheet and dialogs must remain scrollable above the safe-area/home indicator. */
  .theo-unified-more-sheet{
    box-sizing:border-box!important;
    width:calc(100vw - 20px)!important;
    max-width:calc(100vw - 20px)!important;
    max-height:calc(100dvh - 24px - env(safe-area-inset-bottom,0px))!important;
    bottom:max(10px,env(safe-area-inset-bottom,0px))!important;
  }
  .theo-unified-more-scroll{
    min-height:0!important;
    padding-bottom:calc(20px + env(safe-area-inset-bottom,0px))!important;
    overscroll-behavior:contain!important;
  }
  body.theo-app :is(.modal,.auth-modal,.ops-modal,.baf2-modal),
  body.theo-admin :is(.modal,.auth-modal,.ops-modal){
    box-sizing:border-box!important;
    max-width:calc(100vw - 24px)!important;
    max-height:calc(100dvh - 32px - env(safe-area-inset-bottom,0px))!important;
    overflow-y:auto!important;
    overscroll-behavior:contain!important;
  }
}
@media screen and (max-width:350px){
  body.theo-app #explore .marketplace-hero-copy{padding-inline:15px!important}
  body.theo-app #explore .mobile-marketplace-title{font-size:29px!important}
  body.theo-app #explore .hero-search-card{padding:10px!important}
  body.signed-mode.theo-app :is(#tenant,#owner,#management) :is(.panel,.ws30-panel,.commercial-panel){padding:12px!important}
  body.signed-mode.theo-app #mobile-nav.mobile-nav[data-theo-unified="1"] button,
  body.theo-admin #theo-admin-mobile-nav.theo-unified-dock button{font-size:9.5px!important}
}
