/* =========================================================
   U Horses v1.10 targeted client-requested improvements
========================================================= */

/* My Horses cards */
.uh-my-horses-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.uh-my-horse-card{padding:0!important;overflow:hidden;min-width:0}.uh-my-horse-media{display:block;position:relative;width:100%;aspect-ratio:16/10;overflow:hidden;background:var(--uh-background)}.uh-my-horse-media img,.uh-my-horse-media .uh-horse-placeholder{display:block;width:100%;height:100%;object-fit:cover}.uh-my-horse-media .uh-status-badge{position:static!important;inset:auto!important}.uh-my-horse-body{display:grid;gap:14px;padding:18px;min-width:0}.uh-horse-card-status-row{display:flex;justify-content:flex-start;align-items:center;min-height:24px}.uh-horse-card-status-row .uh-status-badge{display:inline-flex;width:auto;max-width:100%;padding:6px 11px;border-radius:999px;font-size:12px;font-weight:600;line-height:1.2}.uh-status-active,.uh-status-published{background:#dcfce7;color:#166534}.uh-status-pending,.uh-status-draft{background:#fef3c7;color:#92400e}.uh-status-reserved{background:#dbeafe;color:#1e40af}.uh-status-sold{background:#ede9fe;color:#5b21b6}.uh-status-rejected,.uh-status-suspended{background:#fee2e2;color:#991b1b}.uh-my-horse-title-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:start;min-width:0}.uh-my-horse-title-row h2{min-width:0;margin:0;font-size:20px;line-height:1.3}.uh-my-horse-title-row h2 a{display:block;color:var(--uh-text);overflow-wrap:anywhere}.uh-my-horse-price{color:var(--uh-primary);font-size:18px;font-weight:700;line-height:1.3;white-space:nowrap}.uh-horse-card-info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px 14px;min-width:0}.uh-horse-card-info-grid>div{display:grid;min-width:0;gap:3px}.uh-card-label{display:block;color:var(--uh-text);font-weight:600;line-height:1.35}.uh-card-value{display:block;color:var(--uh-muted);font-weight:400;line-height:1.45;overflow-wrap:anywhere;min-width:0}.uh-horse-card-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0}.uh-horse-card-stats>div{display:grid;gap:3px;min-width:0;padding:10px 8px;border-radius:11px;background:color-mix(in srgb,var(--uh-background) 78%,var(--uh-card));text-align:center}.uh-horse-card-stats dt{color:var(--uh-muted);font-size:11px;font-weight:500}.uh-horse-card-stats dd{margin:0;color:var(--uh-text);font-size:15px;font-weight:600}.uh-horse-published{display:flex;gap:6px;flex-wrap:wrap;margin:0;padding-top:12px;border-top:1px solid var(--uh-border);font-size:12px}.uh-my-horse-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0}.uh-my-horse-actions .uh-horse-action-link{display:inline-flex;align-items:center;min-height:38px;padding:7px 10px;border-radius:9px;color:var(--uh-primary);font-size:12px;font-weight:600;text-decoration:none}.uh-my-horse-actions .uh-horse-action-link:hover{background:color-mix(in srgb,var(--uh-primary) 9%,var(--uh-card))}.uh-my-horse-actions .is-danger{color:var(--uh-danger)!important}

/* Horse details */
.uh-horse-detail-page{display:grid;gap:22px;min-width:0}.uh-horse-overview-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(320px,1fr);gap:22px;align-items:start}.uh-horse-gallery-card,.uh-horse-summary-card,.uh-seller-information,.uh-horse-detail-section,.uh-horse-related,.uh-horse-reviews{padding:22px}.uh-horse-summary-card{position:sticky;top:92px;min-width:0}.uh-detail-title-row{display:flex;justify-content:space-between;align-items:flex-start;gap:14px}.uh-detail-title-row>div{min-width:0}.uh-detail-title-row h1{margin:10px 0 5px;font-size:30px;line-height:1.18;overflow-wrap:anywhere}.uh-detail-title-row p{margin:0;color:var(--uh-muted);font-weight:400;line-height:1.5}.uh-detail-price{margin:20px 0;color:var(--uh-primary);font-size:31px;font-weight:700}.uh-detail-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 22px;margin:0}.uh-detail-item{display:grid;grid-template-columns:minmax(115px,.45fr) minmax(0,1fr);gap:12px;padding:12px 0;border-bottom:1px solid var(--uh-border);min-width:0}.uh-detail-item.is-wide{grid-column:1/-1;grid-template-columns:minmax(150px,.24fr) minmax(0,1fr)}.uh-detail-label{color:var(--uh-text);font-size:12px;font-weight:600;line-height:1.45}.uh-detail-value{margin:0;color:var(--uh-muted);font-size:13px;font-weight:400;line-height:1.55;overflow-wrap:anywhere;min-width:0}.uh-detail-value a{font-weight:600}.uh-horse-detail-sections{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.uh-horse-detail-section{min-width:0}.uh-horse-detail-section h2,.uh-seller-information h2,.uh-horse-related h2,.uh-horse-reviews h2{margin:0 0 17px;font-size:21px}.uh-detail-description{grid-column:1/-1}.uh-detail-long-text,.uh-detail-long-text p{color:var(--uh-muted);font-weight:400;line-height:1.75;overflow-wrap:anywhere}.uh-seller-profile{display:flex;align-items:center;gap:16px;min-width:0}.uh-seller-profile>div{min-width:0}.uh-seller-profile h3{margin:0 0 4px;overflow-wrap:anywhere}.uh-seller-profile p{margin:3px 0;color:var(--uh-muted);font-weight:400;overflow-wrap:anywhere}

/* Breed management and images */
.uh-breeds-toolbar{display:grid;grid-template-columns:minmax(320px,1fr) auto auto;align-items:center;gap:14px;padding:18px 20px;margin-bottom:18px}.uh-breed-search-form{display:grid;grid-template-columns:minmax(220px,1fr) auto auto;align-items:center;gap:10px;min-width:0}.uh-breed-search-form input{width:100%;min-width:0;min-height:var(--uh-input-height,50px)}.uh-breeds-toolbar-meta{display:flex;align-items:baseline;justify-content:center;gap:5px;color:var(--uh-muted);white-space:nowrap}.uh-breeds-toolbar-meta strong{color:var(--uh-text);font-size:21px}.uh-breed-form-card{padding:22px;margin-bottom:18px}.uh-breed-form{display:grid;grid-template-columns:minmax(240px,.7fr) minmax(0,1.3fr);gap:18px}.uh-breed-form .uh-field-wide,.uh-breed-form .uh-form-actions{grid-column:1/-1}.uh-breed-media-field{display:grid;gap:12px}.uh-breed-media-preview{width:min(360px,100%);aspect-ratio:16/9;overflow:hidden;border:1px solid var(--uh-border);border-radius:14px;background:var(--uh-background)}.uh-breed-media-preview img{display:block;width:100%;height:100%;object-fit:cover}.uh-breed-media-preview.is-placeholder img{object-fit:cover}.uh-breed-media-actions{display:flex;flex-wrap:wrap;gap:10px}.uh-breed-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.uh-breed-card{display:flex;flex-direction:column;min-width:0;padding:0!important;overflow:hidden}.uh-breed-card-image{aspect-ratio:16/9;overflow:hidden;background:var(--uh-background)}.uh-breed-card-image img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .25s ease}.uh-breed-card:hover .uh-breed-card-image img{transform:scale(1.025)}.uh-breed-card-content{display:flex;flex:1;flex-direction:column;padding:17px;min-width:0}.uh-breed-card-content h3{margin:0 0 7px;font-size:18px;overflow-wrap:anywhere}.uh-breed-card-content p{margin:0 0 16px;color:var(--uh-muted);font-weight:400;line-height:1.55}.uh-breed-card-content footer{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:auto;padding-top:13px;border-top:1px solid var(--uh-border)}.uh-breed-card-content footer>span{color:var(--uh-muted);font-size:12px;font-weight:400}.uh-breed-actions{display:flex;align-items:center;gap:10px}.uh-breed-actions form{margin:0}.uh-breed-actions a,.uh-breed-actions button{border:0;background:none;padding:0;color:var(--uh-primary);font:inherit;font-size:12px;font-weight:600;cursor:pointer}.uh-breed-actions .is-danger{color:var(--uh-danger)}

/* Filter toolbars using enhanced dropdown widgets */
.uh-users-filter-group,.uh-notification-filter-bar{display:grid;align-items:center;gap:12px}.uh-users-filter-group{grid-template-columns:minmax(260px,1fr) minmax(190px,220px) minmax(190px,220px) auto}.uh-users-filter-group>.uh-select-widget,.uh-notification-filter-bar>.uh-select-widget{min-width:0}.uh-notification-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px}.uh-notification-filter-bar{grid-template-columns:minmax(180px,220px) minmax(220px,280px) auto}.uh-notification-toolbar>form{margin:0}.uh-custom-date-range{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;grid-column:span 2}.uh-custom-date-range[hidden]{display:none!important}

/* Messaging modal, composer, and readable text */
.uh-message-bubble p{color:inherit;font-weight:400;line-height:1.55}.uh-message-bubble.is-theirs{color:var(--uh-text);background:color-mix(in srgb,var(--uh-background) 72%,var(--uh-card))}.uh-message-bubble.is-mine{color:#fff}.uh-message-bubble time,.uh-conversation-meta time,.uh-conversation-copy small,.uh-chat-header small{color:var(--uh-muted);font-weight:400}.uh-message-bubble.is-mine time{color:rgba(255,255,255,.8)}.uh-message-composer{position:sticky;bottom:0;display:grid!important;grid-template-columns:46px minmax(0,1fr) auto!important;align-items:end;gap:10px;width:100%;padding:12px;background:var(--uh-card);border-top:1px solid var(--uh-border);z-index:4}.uh-message-composer textarea{width:100%;min-width:0;max-height:160px;min-height:46px;resize:none;color:var(--uh-text);font-weight:400}.uh-message-composer .uh-message-error{grid-column:2/-1}.uh-message-attach{display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;border:1px solid var(--uh-border);border-radius:12px;background:var(--uh-background);color:var(--uh-primary);cursor:pointer}.uh-message-attach input{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}body.uh-modal-open{overflow:hidden}.uh-conversation-modal[hidden]{display:none!important}.uh-conversation-modal{position:fixed;inset:0;z-index:10100;display:grid;place-items:center;padding:20px}.uh-conversation-modal-overlay{position:absolute;inset:0;background:rgba(15,23,42,.58);backdrop-filter:blur(3px)}.uh-conversation-dialog{position:relative;z-index:1;width:min(680px,100%);max-height:min(780px,calc(100vh - 40px));overflow:auto;padding:24px;border:1px solid var(--uh-border);border-radius:20px;background:var(--uh-card);box-shadow:0 28px 80px rgba(15,23,42,.28);outline:0}.uh-conversation-dialog>header{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:18px}.uh-conversation-dialog h2{margin:0 0 4px;font-size:24px}.uh-conversation-dialog header p{margin:0;color:var(--uh-muted);font-weight:400}.uh-modal-close{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border:1px solid var(--uh-border);border-radius:11px;background:var(--uh-background);color:var(--uh-text);font-size:24px;cursor:pointer}.uh-conversation-user-results{display:grid;gap:7px;max-height:280px;overflow:auto;margin:4px 0 10px;padding:2px}.uh-conversation-user-result{display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:12px;width:100%;padding:10px;border:1px solid var(--uh-border);border-radius:12px;background:var(--uh-card);color:var(--uh-text);text-align:start;cursor:pointer}.uh-conversation-user-result:hover,.uh-conversation-user-result:focus-visible,.uh-conversation-user-result.is-selected{border-color:var(--uh-primary);background:color-mix(in srgb,var(--uh-primary) 7%,var(--uh-card));outline:0}.uh-conversation-user-result img,.uh-conversation-selected-user img{width:48px;height:48px;border-radius:50%;object-fit:cover}.uh-conversation-user-result>span{display:grid;min-width:0}.uh-conversation-user-result strong{overflow-wrap:anywhere}.uh-conversation-user-result small{color:var(--uh-muted);font-weight:400;overflow-wrap:anywhere}.uh-conversation-user-result em{margin-top:3px;color:var(--uh-primary);font-size:12px;font-style:normal;font-weight:600}.uh-user-select-action{color:var(--uh-primary);font-size:12px;font-weight:600;white-space:nowrap}.uh-conversation-selected-user{display:flex;align-items:center;gap:12px;margin:10px 0;padding:10px;border-radius:12px;background:color-mix(in srgb,var(--uh-primary) 8%,var(--uh-card))}.uh-conversation-selected-user span{display:grid}.uh-conversation-selected-user small,.uh-conversation-search-state{color:var(--uh-muted);font-weight:400}.uh-conversation-search-state{text-align:center;padding:18px}.uh-conversation-search-state.is-error{color:var(--uh-danger)}.uh-modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}

/* Notifications toolbar */
.uh-notification-toolbar .uhc-btn{white-space:nowrap}.uh-notification-toolbar .uh-filter-bar select{min-width:0}

@media(min-width:1650px){.uh-my-horses-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1199px){.uh-my-horses-grid,.uh-breed-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.uh-horse-overview-grid{grid-template-columns:1fr}.uh-horse-summary-card{position:static}.uh-breeds-toolbar{grid-template-columns:minmax(0,1fr) auto}.uh-breeds-toolbar>.uhc-btn{grid-column:2}.uh-breed-search-form{grid-column:1/-1}.uh-users-filter-group{grid-template-columns:minmax(220px,1fr) repeat(2,minmax(170px,1fr)) auto}.uh-notification-toolbar{align-items:stretch;flex-wrap:wrap}.uh-notification-filter-bar{flex:1;grid-template-columns:repeat(2,minmax(170px,1fr)) auto}}
@media(max-width:767px){.uh-my-horses-grid,.uh-breed-grid,.uh-horse-detail-sections{grid-template-columns:1fr}.uh-my-horse-title-row{grid-template-columns:1fr}.uh-my-horse-price{white-space:normal}.uh-horse-card-info-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.uh-horse-overview-grid{display:block}.uh-horse-gallery-card{margin-bottom:16px}.uh-horse-gallery-card,.uh-horse-summary-card,.uh-seller-information,.uh-horse-detail-section,.uh-horse-related,.uh-horse-reviews{padding:17px}.uh-detail-title-row h1{font-size:25px}.uh-detail-facts{grid-template-columns:1fr}.uh-detail-item,.uh-detail-item.is-wide{grid-column:auto;grid-template-columns:1fr;gap:4px}.uh-detail-value{font-size:14px}.uh-breeds-toolbar{display:flex;flex-direction:column;align-items:stretch;padding:16px}.uh-breed-search-form{display:grid;grid-template-columns:1fr}.uh-breeds-toolbar-meta{justify-content:flex-start}.uh-breeds-toolbar>.uhc-btn,.uh-breed-search-form .uhc-btn{width:100%}.uh-breed-form{grid-template-columns:1fr}.uh-breed-form .uh-field-wide,.uh-breed-form .uh-form-actions{grid-column:auto}.uh-users-filter-group,.uh-notification-filter-bar{grid-template-columns:1fr;width:100%}.uh-users-filter-group .uhc-btn,.uh-notification-filter-bar .uhc-btn,.uh-notification-toolbar>form:last-child .uhc-btn{width:100%}.uh-notification-toolbar{display:grid;grid-template-columns:1fr}.uh-custom-date-range{grid-template-columns:1fr;grid-column:auto}.uh-message-composer{grid-template-columns:44px minmax(0,1fr) auto!important;padding:10px}.uh-message-composer .uhc-btn{min-width:70px;padding-inline:12px}.uh-conversation-modal{padding:0;align-items:end}.uh-conversation-dialog{width:100%;max-height:92vh;border-radius:20px 20px 0 0;padding:18px}.uh-conversation-user-result{grid-template-columns:44px minmax(0,1fr)}.uh-conversation-user-result img{width:44px;height:44px}.uh-user-select-action{grid-column:2;white-space:normal}.uh-modal-actions{display:grid;grid-template-columns:1fr}.uh-modal-actions .uhc-btn{width:100%}}
@media(max-width:380px){.uh-horse-card-info-grid{grid-template-columns:1fr}.uh-horse-card-stats{gap:6px}.uh-horse-card-stats>div{padding:9px 5px}.uh-message-composer{grid-template-columns:42px minmax(0,1fr)!important}.uh-message-composer .uhc-btn{grid-column:1/-1;width:100%}.uh-message-composer .uh-message-error{grid-column:1/-1}}
