/* Trading-stock controls, existing animal/vehicle detail tiles retained. */
.livestock-live .vehicle-market-results>header{flex-wrap:wrap;gap:10px}
.livestock-live [data-price-form]{display:flex;flex-wrap:wrap;gap:12px;align-items:end;margin-top:16px}
.livestock-live [data-price-form][hidden]{display:none!important}
.livestock-live [data-price-form] label{display:grid;gap:7px;color:#a9bdb9;font-size:12px;text-transform:uppercase}
.livestock-live [data-price-form] input{box-sizing:border-box;width:170px;min-height:44px;border:1px solid #285452;border-radius:6px;background:#062627;color:#edf6f2;font:inherit;font-size:16px;padding:10px 12px}
.livestock-live [data-price-form] button{flex:1;min-height:44px}
.livestock-live .animal-offer-preview{flex:0 0 100%;margin:0;color:#b7d1b7;font-size:14px;line-height:1.5}
.livestock-live .animal-photo{box-sizing:border-box;padding:8px;overflow:hidden}
.livestock-live .animal-photo-unknown{display:grid;place-items:center;color:#a9bdb9}
.livestock-live [data-dialog-status]{color:#ffc34d;font-size:13px;line-height:1.4}
.livestock-live [data-park]{margin-top:10px}
@media(max-width:650px){.livestock-live [data-price-form]{flex-direction:column;align-items:stretch}.livestock-live [data-price-form] input{width:100%}.livestock-live .vehicle-detail-content{min-height:0}.livestock-live .vehicle-detail-scrollbody{overflow:visible;flex:none}.livestock-live .vehicle-detail-content{overflow-y:auto}}

/* Keep the three animal-market views on the existing livestock layout. */
.livestock-live .animal-market-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}
.livestock-live .animal-market-actions .is-selected{border-color:#59dc48;background:#143c30;color:#eaf6e8}
.livestock-live .animal-market-actions button:focus-visible{outline:2px solid #ffc047;outline-offset:3px}
.livestock-live .vehicle-market-main,.livestock-live .vehicle-market-results,.livestock-live .vehicle-market-notice>span{min-width:0}
.livestock-live .vehicle-market-notice small{line-height:1.5}
.livestock-live .vehicle-market-empty{padding:24px;box-sizing:border-box;align-content:center;gap:8px}
.livestock-live .vehicle-market-empty p{max-width:58ch;line-height:1.6}
.livestock-live [data-status]{line-height:1.6;overflow-wrap:anywhere}
.livestock-live .vehicle-filter-note p{line-height:1.6}
.livestock-live .vehicle-market-grid:empty{display:none}
.semenbank-live .vehicle-market-summary b{color:#a9bdb9}
.am-extra-nav [aria-current="page"]{border-color:#59dc48;background:#143c30;color:#eaf6e8}
@media(max-width:1100px){.livestock-live .vehicle-market-results>header{align-items:flex-start}.livestock-live .animal-market-actions{justify-content:flex-start;width:100%}.livestock-live .vehicle-market-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.livestock-live .vehicle-market-grid{grid-template-columns:minmax(0,1fr)}.livestock-live .animal-market-actions button{flex:1 1 140px;white-space:normal;min-height:44px}.livestock-live .vehicle-market-summary>span{min-width:0}.livestock-live .vehicle-filter-panel input,.livestock-live .vehicle-filter-panel select{box-sizing:border-box;min-width:0;max-width:100%}.livestock-live .vehicle-market-empty{padding:24px 12px}.am-extra-nav{flex-wrap:wrap}}

/* Animal-specific content uses the existing Gebrauchtmarkt components. */
.ap [hidden]{display:none!important}
.ap .animal-photo{position:absolute;inset:0;width:100%;height:100%;z-index:0;filter:none;display:block}
.ap .animal-result-count{color:#8fa9a4;font-size:11px}
.ap .animal-scope{display:block;margin-top:16px;padding:18px;border:1px solid var(--am-line);border-radius:var(--am-radius);background:#082b2c;color:#9cb2ae;font-size:13px;line-height:1.55}
.ap .animal-scope summary{cursor:pointer;color:#eef5f3;font-weight:700}
.ap .animal-diseases{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.ap .animal-diseases>div{padding:10px;border:1px solid var(--am-line);border-radius:6px}
.ap .animal-diseases dt{font-weight:700;color:#eef5f3}.ap .animal-diseases dd{margin:3px 0 0}
.ap .animal-danger{background:#4c2924;color:#ffcec4;border-color:#a05d4b}
.ap .animal-modal{box-sizing:border-box;margin:0;width:100%;height:100%;max-width:none;max-height:none;border:0;color:inherit}
.ap .animal-modal:not([open]){display:none!important}
.ap .animal-modal::backdrop{background:transparent}
body:not(.animal-preview-authorized) [data-nav-target="breeder"],body:not(.animal-preview-authorized) [data-nav-target="livestock"]{display:none!important}
@media(max-width:820px){.ap .animal-diseases{grid-template-columns:1fr}}

.trade-notifications { position:relative; flex:0 0 auto; z-index:65; }
.hero-notification.has-notifications { border-color:#84bd00; color:#b9e16c; background:#123b2e; }
.hero-notification:disabled { cursor:default; opacity:.5; }
.notification-panel { position:absolute; top:calc(100% + 9px); right:0; width:min(380px,calc(100vw - 32px)); max-height:min(65dvh,540px); overflow:auto; padding:12px; border:1px solid #2d6869; border-radius:10px; background:#06292b; box-shadow:0 12px 35px rgba(0,0,0,.4); color:#e7f1ed; text-align:left; }
.notification-panel>header { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:0 2px 10px; border-bottom:1px solid #24504e; }
.notification-panel>header strong { font-size:14px; }
.notification-panel>header small { color:#adbfba; font-size:11px; }
.notification-group { margin:13px 0 0; }
.notification-group h3 { margin:0 0 7px; color:#a7d16c; font-size:12px; font-weight:800; }
.notification-group ul { margin:0; padding:0; list-style:none; }
.notification-group li { display:flex; align-items:center; gap:10px; padding:9px 0; border-top:1px solid rgba(125,162,150,.16); }
.notification-group li>div { min-width:0; flex:1; }
.notification-group p { margin:0 0 4px; color:#e7f1ed; font-size:12px; line-height:1.5; overflow-wrap:anywhere; }
.notification-group time { color:#a6bdb4; font-size:10px; }
.notification-dismiss { display:grid; place-items:center; flex:0 0 32px; width:32px; height:32px; padding:0; border:1px solid #3d6654; border-radius:7px; background:#153c30; color:#b9e16c; cursor:pointer; }
.notification-dismiss:hover { background:#24533d; }
.notification-dismiss:disabled { opacity:.5; cursor:wait; }
.notification-dismiss svg { width:17px; height:17px; }
.notification-empty,.notification-status { margin:12px 2px 3px; color:#bbcbc5; font-size:12px; line-height:1.5; }
.notification-status { color:#f4cf91; }
.notification-more,.notification-messages { display:flex; align-items:center; justify-content:center; gap:8px; width:100%; margin-top:10px; padding:9px; border:1px solid #2d6869; border-radius:7px; background:#0b3536; color:#e7f1ed; font-size:12px; cursor:pointer; }
.notification-messages { justify-content:flex-start; }
.notification-messages span { flex:1; }
.notification-messages svg { flex:0 0 16px; width:16px; height:16px; }
.notification-panel button:focus-visible,.hero-notification:focus-visible { outline:2px solid #b9e16c; outline-offset:3px; }
@media(max-width:760px) {
  .trade-notifications { position:static; }
  .market-hero { position:relative; overflow:visible; }
  .notification-panel { top:calc(100% + 5px); left:8px; right:8px; width:auto; max-height:60dvh; z-index:65; }
}

.animal-storage-warning{border-left:4px solid #e9a541!important;background:#332b20!important}

