/* UBN GROUP 7.0 — progressive theme on top of existing design. No JS dependencies. */
:root{--ubn-v7-ink:#102f38;--ubn-v7-teal:#067f88;--ubn-v7-gold:#f5b82e;--ubn-v7-border:#dbe8e9;--ubn-v7-shadow:0 14px 34px rgba(13,46,55,.08)}
html{scroll-padding-top:84px}
body{overflow-x:clip}
:where(.panel,.property-card,.catalog-card,.crm-clean-group){border-radius:16px}
:where(.property-card,.catalog-card,.panel){box-shadow:0 3px 16px rgba(10,36,45,.045)}
:where(.property-card,.catalog-card){overflow:hidden;border:1px solid var(--ubn-v7-border)}
:where(.property-card,.catalog-card) img{width:100%;height:auto;object-fit:cover}
:where(.property-card,.catalog-card) :where(h2,h3){line-height:1.3;text-wrap:balance}
:where(.btn,button,input,select,textarea){min-height:40px}
:where(input,select,textarea){accent-color:var(--ubn-v7-teal)}
:where(.btn,button){transition:filter .15s ease,transform .15s ease}
:where(.btn,button):not(:disabled):active{transform:scale(.985)}
:where(.ubn-catalog-list,.cards){min-width:0}
:where(.ubn-catalog-list) > *{min-width:0}
:where(.filter-actions,.mini-actions){gap:10px;flex-wrap:wrap}
:where(.search-field-with-icon) input{min-width:0}
:where(.crm-main-full) h1{letter-spacing:-.025em;line-height:1.18}
:where(.crm-main-full) :where(.panel,.crm-clean-group){border:1px solid var(--ubn-v7-border)}
:where(.crm-main-full) :where(table){border-collapse:separate;border-spacing:0}
:where(.crm-main-full) :where(th,td){vertical-align:middle}
:where(.crm-main-full) :where(thead th){position:sticky;top:0;background:var(--surface,#f7fafb);z-index:1}
.ubn-v7-crm-search{display:flex;align-items:center;gap:4px;min-width:150px;max-width:230px;margin:0;border:1px solid var(--ubn-v7-border);border-radius:10px;background:#fff;padding:2px 5px}
.ubn-v7-crm-search input{min-width:0;width:100%;border:0!important;background:transparent!important;color:#18363f!important;padding:5px 7px!important;box-shadow:none!important;outline-offset:0!important;font-size:13px}
.ubn-v7-crm-search button{border:0;background:transparent;color:var(--ubn-v7-teal);padding:4px 8px;cursor:pointer}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@media(max-width:1024px){.ubn-v7-crm-search{min-width:125px;max-width:175px}.crm-top-actions{flex-wrap:wrap}}
@media(max-width:760px){:where(.filter-actions) .btn{flex:1;min-width:125px}:where(.ubn-catalog-list,.cards){grid-template-columns:repeat(2,minmax(0,1fr))}:where(.crm-main-full) :where(.panel){max-width:100%}.ubn-v7-crm-search{order:5;max-width:none;width:100%}}
@media(max-width:480px){:where(.ubn-catalog-list,.cards){grid-template-columns:minmax(0,1fr)}:where(.crm-main-full) table{font-size:13px}:where(.crm-main-full) :where(th,td){padding:8px 6px}.ubn-v7-crm-search{width:100%}}
@media(prefers-reduced-motion:reduce){:where(.btn,button,.property-card,.catalog-card){transition:none!important;transform:none!important}}
/* UBN 7.5 incremental refinements: keep legacy templates intact. */
:where(a,button,input,select,textarea):focus-visible{outline:3px solid #e6a522;outline-offset:3px}
:where(.ubn-quality-filters){display:flex;align-items:end;gap:12px;flex-wrap:wrap}
:where(.ubn-quality-filters) label{display:grid;gap:6px;min-width:min(220px,100%);flex:1}
:where(.ubn-quality-filters) input[type=search]{width:100%;min-height:44px;border-radius:10px;border:1px solid #cddddd;padding:9px 12px}
:where(.crm-main-full) .table-wrap{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
:where(.crm-main-full) .metric-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(180px,100%),1fr));gap:12px}
:where(.crm-main-full) .metric{min-width:0}
:where(.property-card,.catalog-card) a:focus-visible{outline-offset:-4px}
@media(max-width:620px){:where(.ubn-quality-filters) label{min-width:100%}:where(.ubn-quality-filters) button{width:100%}}
/* UBN 7.6: keyboard access, reduced motion, narrow screens and long labels. */
.ubn-skip-link{position:fixed;left:16px;top:12px;z-index:99999;padding:12px 18px;border-radius:10px;background:#102f38;color:#fff!important;font-weight:700;text-decoration:none;transform:translateY(-180%)}
.ubn-skip-link:focus-visible{transform:translateY(0);outline:3px solid #f5b82e}
:where(.property-market-card,.crm-main-full .panel){min-width:0}
:where(.property-market-title,.crm-main-full td){overflow-wrap:anywhere}
@media(max-width:600px){:where(.crm-main-full input,.crm-main-full select,.crm-main-full textarea){max-width:100%}:where(.crm-main-full .table-wrap){scrollbar-width:thin}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
