/* V16 ersetzt das vereinfachte React-Inventar und das erste Stallmenü. */
.inventory-react-app,
.stable-menu-app { display: none !important; }

.inventory-v16-app {
    position: absolute;
    inset: 0;
    z-index: 9700;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    padding: 11vh 12px 0;
    overflow: hidden;
    background: radial-gradient(circle at 48% 44%, rgba(0,0,0,.07), rgba(0,0,0,.34));
    color: #ddd2c4;
    font-family: 'Arial Narrow', 'Segoe UI', sans-serif;
    user-select: none;
}

.inventory-v16-window {
    position: relative;
    display: grid;
    grid-template-rows: 43px auto auto auto auto minmax(0,1fr);
    flex: 0 0 clamp(315px, 22.8vw, 430px);
    width: clamp(315px, 22.8vw, 430px);
    height: min(735px, 77vh);
    min-width: 0;
    min-height: 0;
    padding: 11px;
    overflow: hidden;
    border: 1px solid rgba(122,49,39,.68);
    border-radius: 3px;
    background:
        linear-gradient(132deg, rgba(24,21,18,.985), rgba(8,9,7,.992) 72%),
        url('../../bank-dark-texture-v2.png') center / cover;
    box-shadow: 0 17px 46px rgba(0,0,0,.72), inset 0 1px rgba(255,255,255,.025);
}
.inventory-v16-window::before {
    content: '';
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(177,133,73,.09);
    pointer-events: none;
}
.inventory-v16-window > header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    border-bottom: 1px solid rgba(101,81,57,.38);
}
.inventory-v16-window > header div { min-width: 0; }
.inventory-v16-window > header h1 { margin: 0; overflow: hidden; color: #eee7de; font-size: 17px; letter-spacing: .045em; text-overflow: ellipsis; white-space: nowrap; }
.inventory-v16-window > header small { display: block; margin-top: 3px; overflow: hidden; color: #776f65; font-size: 8px; letter-spacing: .13em; text-overflow: ellipsis; white-space: nowrap; }
.inventory-v16-close { width: 28px; height: 28px; min-height: 0; padding: 0; border: 1px solid #4d3c2f; background: #0d0e0c; color: #8d8171; text-align: center; }

.inventory-v16-main > nav {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 3px;
    margin: 8px 0 9px;
}
.inventory-v16-main > nav button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    min-height: 31px;
    padding: 3px 2px;
    border: 1px solid rgba(82,71,58,.48);
    background: rgba(12,13,11,.75);
    color: #81796f;
    font-size: 7px;
    font-weight: 600;
    letter-spacing: .055em;
}
.inventory-v16-main > nav button:hover,
.inventory-v16-main > nav button.selected { border-color: #963d31; background: linear-gradient(#743028,#482019); color: #e2d7c8; }
.inventory-v16-icon { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }

.inventory-v16-weight { display: flex; justify-content: space-between; color: #837b70; font-size: 8px; letter-spacing: .12em; }
.inventory-v16-weight strong { color: #bdb1a2; font-weight: 500; letter-spacing: .04em; }
.inventory-v16-weightbar { height: 6px; margin: 5px 0 11px; border: 1px solid #302922; background: #090a08; box-shadow: inset 0 1px 2px #000; }
.inventory-v16-weightbar i { display: block; height: 100%; background: linear-gradient(90deg,#87352d,#af9255); box-shadow: 0 0 5px rgba(157,96,50,.2); }
.inventory-v16-caption { margin: 0 0 6px; color: #81786c; font-size: 8px; font-weight: 600; letter-spacing: .16em; }

.inventory-v16-quick {
    display: grid;
    grid-template-columns: repeat(5,1fr);
    gap: 4px;
    margin-bottom: 11px;
}
.inventory-v16-quick > div {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px solid rgba(67,59,49,.76);
    background: radial-gradient(circle at 50% 36%, rgba(49,42,31,.72), rgba(10,11,9,.92) 72%);
    box-shadow: inset 0 0 12px rgba(0,0,0,.52);
}
.inventory-v16-quick > div::after { content:''; position:absolute; inset:3px; border:1px solid rgba(255,255,255,.014); pointer-events:none; }
.inventory-v16-quick b { position:absolute; top:3px; left:4px; color:#918577; font-size:8px; }
.inventory-v16-quick span { position:absolute; inset:20% 15% 18%; display:grid; place-items:center; }
.inventory-v16-quick img,.inventory-v16-quick svg { width:100%; height:100%; object-fit:contain; filter:drop-shadow(0 2px 2px rgba(0,0,0,.72)); }
.inventory-v16-quick strong { position:absolute; right:4px; bottom:3px; left:4px; overflow:hidden; color:#c7b9a6; font-size:6px; font-weight:500; text-align:center; text-overflow:ellipsis; white-space:nowrap; }
.inventory-v16-quick input { position:absolute; right:3px; top:3px; z-index:3; width:21px; height:18px; min-height:0; padding:0; border:1px solid rgba(151,78,60,.8); border-radius:10px; background:#1b1712; color:#e5d6c2; font:600 9px/16px 'Arial Narrow',sans-serif; text-align:center; }
.inventory-v16-quick em { color:#4f493f; font-size:17px; font-style:normal; }

.inventory-v16-raster {
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    grid-auto-rows: max-content;
    align-content: start;
    gap: 4px;
    min-height: 0;
    padding-right: 7px;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: #8d4a3d #11100d;
}
.inventory-v16-raster::-webkit-scrollbar { width: 7px; }
.inventory-v16-raster::-webkit-scrollbar-track { border:1px solid rgba(82,67,53,.58); background:linear-gradient(90deg,#0b0c0a,#17140f); }
.inventory-v16-raster::-webkit-scrollbar-thumb { min-height:38px; border:1px solid #a05a47; background:linear-gradient(180deg,#9d4a3d,#592722); }
.inventory-v16-item,
.inventory-v16-empty {
    position: relative;
    display: block;
    width: 100%;
    min-height: 0;
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px solid rgba(61,55,46,.67);
    background: linear-gradient(145deg,rgba(18,18,14,.84),rgba(7,9,7,.8));
    box-shadow: inset 0 0 12px rgba(0,0,0,.42);
}
.inventory-v16-empty::after { content:''; position:absolute; inset:4px; border:1px solid rgba(255,255,255,.012); }
.inventory-v16-item { cursor: grab; }
.inventory-v16-item:active { cursor: grabbing; }
.inventory-v16-item:hover,
.inventory-v16-item.selected { border-color:rgba(151,72,57,.76); background:radial-gradient(circle at 50% 35%,rgba(84,48,31,.34),rgba(8,9,7,.86)); }
.inventory-v16-item > strong { position:absolute; top:5px; right:5px; left:6px; z-index:2; color:#e4d9ca; font-size:7px; font-weight:600; line-height:1.08; overflow-wrap:anywhere; }
.inventory-v16-item-image { position:absolute; inset:28% 12% 14%; display:grid; place-items:center; color:#a88950; }
.inventory-v16-item-image img,.inventory-v16-item-image svg { width:100%; height:100%; object-fit:contain; filter:drop-shadow(0 2px 2px rgba(0,0,0,.74)); }
.inventory-v16-quantity { position:absolute; right:4px; bottom:4px; z-index:3; width:23px; height:19px; min-height:0; padding:0; border:1px solid rgba(151,78,60,.82); border-radius:11px; background:#1c1712; color:#e6d7c3; font:600 9px/17px 'Arial Narrow',sans-serif; text-align:center; }

.inventory-v16-side { display:block; }
.inventory-v16-side > .inventory-v16-close { position:absolute; top:10px; right:10px; z-index:10; }
.inventory-v16-side-content { height:100%; min-height:0; overflow:hidden; }
.inventory-v16-side-content > header { min-height:56px; margin-bottom:10px; padding-right:35px; border-bottom:1px solid rgba(101,81,57,.36); }
.inventory-v16-side-content > header h2 { margin:0; color:#eee5d8; font-size:17px; }
.inventory-v16-side-content > header small { display:block; margin-top:5px; color:#776e62; font-size:8px; letter-spacing:.13em; }

.inventory-v16-clothing-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:5px; height:calc(100% - 66px); overflow-y:auto; padding-right:5px; }
.inventory-v16-clothing-grid button { position:relative; display:grid; grid-template-rows:auto 1fr auto; min-height:120px; padding:7px; border:1px solid rgba(64,57,47,.72); background:radial-gradient(circle at 50% 40%,rgba(40,34,26,.5),rgba(9,10,8,.88)); color:#81786c; text-align:left; }
.inventory-v16-clothing-grid button.filled { border-color:rgba(128,91,54,.64); color:#d2c3af; }
.inventory-v16-clothing-grid small { font-size:7px; letter-spacing:.08em; }
.inventory-v16-clothing-grid span { display:grid; place-items:center; min-height:62px; color:#665d50; }
.inventory-v16-clothing-grid img,.inventory-v16-clothing-grid svg { width:82%; height:82%; object-fit:contain; opacity:.86; }
.inventory-v16-clothing-grid strong { overflow:hidden; font-size:8px; text-overflow:ellipsis; white-space:nowrap; }

.inventory-v16-equipment-grid { display:grid; grid-template-columns:1fr 1fr; gap:6px; height:calc(100% - 66px); overflow-y:auto; padding-right:5px; }
.inventory-v16-equipment-grid button { position:relative; display:grid; grid-template-rows:1fr auto auto; min-height:142px; padding:8px; overflow:hidden; border:1px solid rgba(65,58,48,.7); background:radial-gradient(circle at 50% 38%,rgba(43,36,27,.58),rgba(8,9,7,.9)); color:#847a6c; text-align:left; }
.inventory-v16-equipment-grid button.wide { grid-column:1/-1; min-height:125px; }
.inventory-v16-equipment-grid button.disabled { opacity:.35; }
.inventory-v16-equipment-grid button > span { display:grid; place-items:center; min-height:85px; }
.inventory-v16-equipment-grid img,.inventory-v16-equipment-grid svg { width:90%; height:90%; object-fit:contain; opacity:.72; filter:sepia(.18) drop-shadow(0 3px 4px rgba(0,0,0,.74)); }
.inventory-v16-equipment-grid button.filled img { opacity:1; }
.inventory-v16-equipment-grid small { color:#9a8973; font-size:8px; }
.inventory-v16-equipment-grid strong { margin-top:4px; overflow:hidden; color:#d6c7b3; font-size:9px; text-overflow:ellipsis; white-space:nowrap; }
.inventory-v16-equipment-grid b { position:absolute; top:5px; right:5px; z-index:2; width:24px; height:20px; border:1px solid #7e4437; border-radius:11px; background:#17130f; color:#d8b995; font:600 9px/18px sans-serif; text-align:center; }

.inventory-v16-side-content.wealth { display:grid; grid-template-rows:56px auto auto minmax(0,1fr) auto; }
.inventory-v16-currencies { display:grid; gap:6px; margin-bottom:12px; }
.inventory-v16-currencies article { display:grid; grid-template-columns:45px minmax(0,1fr); align-items:center; gap:10px; min-height:58px; padding:7px 10px; border:1px solid rgba(75,65,52,.54); background:rgba(11,12,10,.68); }
.inventory-v16-currencies img { width:40px; height:40px; object-fit:contain; filter:drop-shadow(0 2px 3px rgba(0,0,0,.68)); }
.inventory-v16-currencies span { display:grid; gap:3px; }
.inventory-v16-currencies small { color:#817568; font-size:8px; }
.inventory-v16-currencies strong { color:#d8c9b4; font:500 14px Georgia,serif; }
.inventory-v16-side-content > h3 { margin:0 0 7px; color:#827869; font-size:8px; letter-spacing:.15em; }
.inventory-v16-documents { min-height:0; overflow-y:auto; padding-right:5px; }
.inventory-v16-documents > section { margin-bottom:5px; border:1px solid rgba(75,64,50,.48); }
.inventory-v16-documents > section > header { display:flex; justify-content:space-between; padding:6px 8px; background:rgba(20,18,14,.72); color:#a28a67; font-size:8px; }
.inventory-v16-documents > section > button { display:grid; grid-template-columns:44px minmax(0,1fr); align-items:center; gap:9px; width:100%; min-height:57px; padding:6px 8px; border:0; border-top:1px solid rgba(68,58,46,.42); background:rgba(9,10,8,.58); color:#cabaa5; text-align:left; }
.inventory-v16-documents img { width:41px; height:41px; object-fit:contain; }
.inventory-v16-documents button span { display:grid; gap:3px; min-width:0; }
.inventory-v16-documents strong,.inventory-v16-documents small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.inventory-v16-documents strong { font-size:10px; }
.inventory-v16-documents small { color:#7f7262; font-size:8px; }
.inventory-v16-help { margin:8px 0 0; color:#6f6559; font-size:7px; line-height:1.4; }
.inventory-v16-keys { display:grid; align-content:start; gap:6px; height:calc(100% - 66px); overflow-y:auto; }
.inventory-v16-keys article { display:grid; grid-template-columns:38px 1fr; align-items:center; gap:9px; padding:9px; border:1px solid rgba(71,61,49,.52); background:rgba(10,11,9,.66); }
.inventory-v16-keys svg { width:28px; height:28px; color:#aa8a59; }
.inventory-v16-keys span { display:grid; gap:4px; }
.inventory-v16-keys strong { color:#d5c6b2; font-size:10px; }
.inventory-v16-keys small { color:#796d5f; font-size:8px; }

.inventory-v16-storage { grid-template-rows:43px 39px auto auto minmax(0,1fr); }
.inventory-v16-storage-spacer { border-bottom:0; }

.inventory-v16-context,
.inventory-v16-document-menu { position:fixed; z-index:10050; transform:translate(8px,8px); border:1px solid #77543a; background:rgba(13,13,11,.985); box-shadow:0 12px 30px rgba(0,0,0,.82); }
.inventory-v16-context { display:grid; min-width:175px; padding:4px; }
.inventory-v16-context button { min-height:32px; padding:6px 10px; border:0; border-bottom:1px solid rgba(119,91,57,.25); background:transparent; color:#d7c8b4; font-size:10px; text-align:left; }
.inventory-v16-context button:hover { background:#38291c; }
.inventory-v16-document-menu { width:330px; padding:12px; color:#d9c9b5; }
.inventory-v16-document-menu > header { display:grid; grid-template-columns:62px 1fr; align-items:center; gap:11px; padding-bottom:10px; border-bottom:1px solid #4c3a2c; }
.inventory-v16-document-menu img { width:58px; height:58px; object-fit:contain; }
.inventory-v16-document-menu header span { display:grid; gap:4px; }
.inventory-v16-document-menu strong { font:700 14px Georgia,serif; }
.inventory-v16-document-menu small { color:#867665; font-size:9px; }
.inventory-v16-document-menu > div { padding:10px 0; }
.inventory-v16-document-menu p { margin:5px 0; color:#aa9a86; font-size:10px; }
.inventory-v16-document-menu footer { display:grid; grid-template-columns:repeat(2,1fr); gap:5px; }
.inventory-v16-document-menu button { min-height:31px; border:1px solid #5d4430; background:#17140f; color:#cab18d; font:700 8px Georgia,serif; }
.inventory-v16-document-menu button.danger { border-color:#76261f; color:#d26b5f; }
.inventory-v16-toast { position:fixed; right:25px; bottom:25px; margin:0; color:#d6c5ae; font-size:11px; }
.inventory-v16-global-close { position:fixed; right:22px; top:22px; width:auto; min-height:31px; padding:6px 11px; border:1px solid #503a2a; background:rgba(10,11,9,.88); color:#8c7c69; font:700 8px Georgia,serif; }

/* Schlankes, detailreicheres Stallmenü links. */
.stable-v16-app { position:absolute; inset:0; z-index:9700; background:linear-gradient(90deg,rgba(0,0,0,.56),transparent 48%); color:#d6bc8d; font-family:Georgia,'Times New Roman',serif; }
.stable-v16-panel { position:absolute; top:3vh; bottom:3vh; left:2vw; display:grid; grid-template-rows:auto auto auto minmax(120px,.8fr) auto; width:min(440px,32vw); padding:18px; border:1px solid #711d17; background:linear-gradient(rgba(5,6,5,.94),rgba(8,8,6,.98)),url('../../bank-dark-texture-v2.png') center/cover; box-shadow:0 23px 70px rgba(0,0,0,.8); }
.stable-v16-panel::before { content:''; position:absolute; inset:-8px; background:url('../../bank-frame-v5.png') center/100% 100% no-repeat; filter:sepia(1) saturate(5) hue-rotate(318deg) brightness(.4); opacity:.62; pointer-events:none; }
.stable-v16-brand { position:relative; display:grid; place-items:center; min-height:87px; margin-bottom:11px; border-bottom:3px double #73502d; }
.stable-v16-brand strong { color:#dfc294; font-size:39px; line-height:1; }
.stable-v16-brand strong span { color:#a5231b; }
.stable-v16-brand small { margin-top:5px; color:#a72a21; font-size:12px; letter-spacing:.22em; }
.stable-v16-brand button { position:absolute; top:0; right:0; width:31px; min-height:25px; padding:0; border:1px solid #4a3728; background:#0c0d0b; color:#796852; font-size:8px; }
.stable-v16-boxes { display:grid; grid-template-columns:52px minmax(0,1fr) auto; align-items:center; gap:10px; margin-bottom:10px; padding:11px; border:1px solid #702019; background:linear-gradient(100deg,rgba(98,24,17,.74),rgba(39,10,8,.62)),url('../../bank-button-active-v2.png') center/cover; }
.stable-v16-boxes > svg { width:46px; height:46px; fill:none; stroke:#c59c60; stroke-width:1.6; }
.stable-v16-boxes > span { display:grid; gap:3px; }
.stable-v16-boxes small { color:#aa8354; font-size:8px; letter-spacing:.1em; }
.stable-v16-boxes strong { color:#dfbd82; font-size:17px; }
.stable-v16-boxes em { color:#8d7553; font-size:8px; font-style:normal; }
.stable-v16-boxes button { width:auto; min-height:38px; padding:7px 9px; border:1px solid #8c2c22; background:#3e110d; color:#d6ac70; font:700 8px Georgia,serif; }
.stable-v16-boxes button b { display:block; margin-top:3px; color:#ead0a0; }
.stable-v16-heading { display:flex; justify-content:space-between; padding:8px 3px; color:#a98a5d; font-size:9px; letter-spacing:.12em; }
.stable-v16-list { min-height:0; overflow-y:auto; border-top:1px solid rgba(90,63,36,.42); scrollbar-width:thin; scrollbar-color:#8b3c31 #0c0d0b; }
.stable-v16-list > button { display:grid; grid-template-columns:43px minmax(0,1fr) auto; align-items:center; gap:9px; width:100%; min-height:61px; padding:7px 8px; border:0; border-bottom:1px solid rgba(91,65,37,.4); background:transparent; color:#b99460; text-align:left; }
.stable-v16-list > button:hover,.stable-v16-list > button.selected { background:linear-gradient(90deg,rgba(91,24,17,.78),rgba(35,9,7,.35)); box-shadow:inset 3px 0 #9d281f; }
.stable-v16-list svg { width:39px; height:39px; fill:none; stroke:#a87c47; stroke-width:1.45; }
.stable-v16-list span { display:grid; gap:4px; }
.stable-v16-list strong { font-size:12px; }
.stable-v16-list small { color:#796649; font-size:8px; }
.stable-v16-list em { color:#74634a; font-size:7px; font-style:normal; }
.stable-v16-list em.active { color:#78a055; }
.stable-v16-details { margin-top:10px; padding:13px; border:1px solid #77522f; background:#c49a61 url('../../bank-parchment-v2.png') center/cover; color:#2c1a10; }
.stable-v16-details > header { display:flex; align-items:center; justify-content:space-between; gap:10px; padding-bottom:10px; border-bottom:1px solid rgba(101,67,36,.4); }
.stable-v16-details header span { display:grid; gap:3px; }
.stable-v16-details header small { color:#81572f; font-size:8px; letter-spacing:.1em; }
.stable-v16-details h2 { margin:0; color:#741b14; font-size:22px; }
.stable-v16-details p { margin:0; color:#5e412b; font-size:9px; }
.stable-v16-details header svg { width:54px; height:54px; fill:none; stroke:#7e241a; stroke-width:1.7; }
.stable-v16-details dl { display:grid; grid-template-columns:repeat(3,1fr); gap:4px; margin:10px 0; }
.stable-v16-details dl div { display:grid; gap:3px; padding:6px; border:1px solid rgba(98,65,35,.3); background:rgba(232,192,127,.16); }
.stable-v16-details dt { color:#765033; font-size:7px; }
.stable-v16-details dd { margin:0; font-size:9px; font-weight:700; }
.stable-v16-bars { display:grid; gap:6px; }
.stable-v16-bars label { display:grid; grid-template-columns:63px 35px 1fr; align-items:center; gap:6px; color:#5f422d; font-size:7px; font-weight:700; }
.stable-v16-bars label > b { text-align:right; }
.stable-v16-bars label > i { display:block; height:6px; border:1px solid #805b36; background:rgba(75,46,25,.25); }
.stable-v16-bars label em { display:block; height:100%; background:linear-gradient(90deg,#722018,#a77a3e); }
.stable-v16-details footer { display:grid; grid-template-columns:1fr .55fr; gap:7px; margin-top:11px; }
.stable-v16-details footer button { min-height:40px; border:1px solid #722019; background:#3b110d; color:#d4aa71; font:700 9px Georgia,serif; }
.stable-v16-details footer button.saddle { display:flex; align-items:center; justify-content:center; gap:8px; background:#6a1c15 url('../../bank-button-active-v2.png') center/100% 100%; color:#e0bf89; }
.stable-v16-details footer button.saddle svg { width:27px; height:27px; fill:none; stroke:currentColor; stroke-width:1.6; }
.stable-v16-details footer button:disabled { opacity:.48; }
.stable-v16-details footer button.release { color:#bd4d43; }
.stable-v16-tabs { display:grid; grid-template-columns:repeat(auto-fit,minmax(0,1fr)); gap:4px; margin-bottom:8px; }
.stable-v16-tabs button { min-height:29px; padding:4px; border:1px solid #493620; background:#0d0e0c; color:#806b4d; font:700 7px Georgia,serif; }
.stable-v16-tabs button.active { border-color:#8e2b21; background:#48130f; color:#d2aa72; }
.stable-v16-recovery { min-height:30px; margin-bottom:7px; border:1px solid #77522f; background:#24150c; color:#d0a76f; font:700 8px Georgia,serif; }
.stable-v16-purchase { display:grid; gap:11px; overflow-y:auto; scrollbar-width:thin; scrollbar-color:#7b4126 transparent; }
.stable-v16-purchase-fields { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.stable-v16-purchase label { display:grid; gap:5px; color:#624329; font-size:8px; font-weight:700; letter-spacing:.08em; }
.stable-v16-purchase input { min-height:32px; padding:6px 8px; border:1px solid rgba(91,54,28,.55); background:rgba(245,218,166,.46); color:#28160c; font:700 10px Georgia,serif; }
.stable-v16-purchase input:focus { outline:1px solid #7f241b; outline-offset:-2px; background:rgba(250,226,178,.72); }
.stable-v16-purchase .acp-select { position:relative; z-index:6; width:100%; }
.stable-v16-purchase .acp-select.open { z-index:80; }
.stable-v16-purchase .acp-select-trigger { display:grid; grid-template-columns:minmax(0,1fr) 16px; align-items:center; gap:7px; width:100%; min-height:32px; padding:6px 8px; border:1px solid rgba(91,54,28,.55); background:rgba(245,218,166,.46); color:#28160c; font:700 10px Georgia,serif; text-align:left; }
.stable-v16-purchase .acp-select-trigger span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.stable-v16-purchase .acp-select-trigger i { width:0; height:0; justify-self:end; border-right:5px solid transparent; border-left:5px solid transparent; border-top:6px solid #6d3c22; }
.stable-v16-purchase .acp-select-menu { position:absolute; top:calc(100% + 2px); right:0; left:0; display:grid; max-height:220px; overflow-y:auto; border:1px solid #71472a; background:#d8b77e; box-shadow:0 10px 24px rgba(31,16,7,.42); }
.stable-v16-purchase .acp-select-search { position:sticky; z-index:2; top:0; width:calc(100% - 8px); min-height:30px; margin:4px; padding:6px 8px; border:1px solid rgba(91,54,28,.55); background:#ead09f; color:#28160c; outline:none; }
.stable-v16-purchase .acp-select-empty { padding:9px; color:#765237; text-align:center; }
.stable-v16-purchase .acp-select-menu button { min-height:30px; padding:6px 8px; border:0; border-bottom:1px solid rgba(91,54,28,.25); background:transparent; color:#28160c; font:700 9px Georgia,serif; text-align:left; }
.stable-v16-purchase .acp-select-menu button:hover,.stable-v16-purchase .acp-select-menu button.focused,.stable-v16-purchase .acp-select-menu button.selected { background:rgba(119,42,28,.22); color:#681b14; }
.stable-v16-purchase-label { display:flex; align-items:center; justify-content:space-between; margin-bottom:5px; color:#624329; font-size:8px; font-weight:700; letter-spacing:.08em; }
.stable-v16-purchase-label b { display:grid; place-items:center; min-width:20px; height:17px; border:1px solid rgba(102,61,31,.42); color:#7a2018; font-size:8px; }
.stable-v16-coat-picker > div:last-child { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:5px; max-height:138px; overflow-y:auto; padding:1px; scrollbar-width:thin; scrollbar-color:#7b4126 rgba(116,74,38,.13); }
.stable-v16-coat-picker button { display:grid; gap:3px; min-height:43px; padding:7px 8px; border:1px solid rgba(92,56,28,.4); background:rgba(240,204,143,.22); color:#382113; font:700 9px Georgia,serif; text-align:left; }
.stable-v16-coat-picker button small { color:#805735; font-size:7px; letter-spacing:.08em; }
.stable-v16-coat-picker button:hover,.stable-v16-coat-picker button.selected { border-color:#7e2119; background:linear-gradient(100deg,rgba(126,33,25,.19),rgba(242,204,141,.32)); box-shadow:inset 3px 0 #83251c; color:#711b14; }
.stable-v16-sex-picker { display:grid; gap:5px; }
.stable-v16-sex-picker > span { color:#624329; font-size:8px; font-weight:700; letter-spacing:.08em; }
.stable-v16-sex-picker > div { display:grid; grid-template-columns:1fr 1fr; gap:5px; }
.stable-v16-sex-picker button { min-height:31px; border:1px solid rgba(91,54,28,.5); background:rgba(240,204,143,.2); color:#67482f; font:700 8px Georgia,serif; }
.stable-v16-sex-picker button:hover,.stable-v16-sex-picker button.selected { border-color:#7e2119; background:#702018; color:#e0bd84; }
.stable-v16-purchase footer { grid-template-columns:.65fr 1fr; align-items:stretch; margin-top:0; padding-top:10px; border-top:1px solid rgba(101,67,36,.35); }
.stable-v16-purchase-total { display:grid; align-content:center; gap:3px; padding:5px 8px; border:1px solid rgba(98,65,35,.34); background:rgba(232,192,127,.18); }
.stable-v16-purchase-total small { color:#765033; font-size:7px; letter-spacing:.09em; }
.stable-v16-purchase-total strong { color:#741b14; font-size:12px; }
.stable-v16-panel.stable-v16-storage { width:min(760px,58vw); grid-template-rows:auto auto minmax(0,1fr); }
.stable-v16-storage-columns { display:grid; grid-template-columns:1fr 1fr; gap:12px; min-height:0; }
.stable-v16-storage-columns > section { display:grid; grid-template-rows:auto minmax(0,1fr); min-height:0; border:1px solid rgba(113,80,45,.42); }
.stable-v16-storage-columns .stable-v16-list > button { grid-template-columns:minmax(0,1fr) auto; }
.stable-v16-storage-columns .stable-v16-list > button:disabled { opacity:.46; }

/* Stall V17: ruhiges linkes Menü; die rechte Bildschirmhälfte bleibt für die lokale Weltvorschau frei. */
.stable-v17-app {
    position:fixed;
    inset:0;
    z-index:9700;
    pointer-events:none;
    background:linear-gradient(90deg,rgba(0,0,0,.46),rgba(0,0,0,.12) 34%,transparent 58%);
    color:#d9c7aa;
    font-family:'Segoe UI',Arial,sans-serif;
}
.stable-v17-preview-input {
    position:absolute;
    z-index:0;
    top:0;
    right:0;
    bottom:0;
    left:calc(1.8vw + clamp(380px,27vw,500px) + 36px);
    pointer-events:auto;
    cursor:grab;
    touch-action:none;
}
.stable-v17-preview-input:active { cursor:grabbing; }
.stable-v17-panel {
    position:absolute;
    z-index:1;
    top:2.5vh;
    bottom:2.5vh;
    left:1.8vw;
    display:flex;
    flex-direction:column;
    width:clamp(380px,27vw,500px);
    padding:18px;
    overflow-x:hidden;
    overflow-y:auto;
    border:1px solid rgba(151,113,66,.62);
    outline:1px solid rgba(17,14,11,.95);
    outline-offset:-5px;
    background:
        radial-gradient(circle at 12% 0,rgba(125,76,39,.16),transparent 31%),
        linear-gradient(145deg,rgba(24,21,17,.985),rgba(8,9,7,.99) 72%);
    box-shadow:0 20px 58px rgba(0,0,0,.72),inset 0 0 0 1px rgba(222,186,126,.06);
    pointer-events:auto;
    scrollbar-width:thin;
    scrollbar-color:#704331 #0c0d0b;
}
.stable-v17-panel::before,.stable-v17-panel::after {
    content:'';
    position:absolute;
    z-index:2;
    left:18px;
    right:18px;
    height:1px;
    background:linear-gradient(90deg,transparent,#8b6440 15%,#8b6440 85%,transparent);
    pointer-events:none;
}
.stable-v17-panel::before { top:8px; }
.stable-v17-panel::after { bottom:8px; }
.stable-v17-panel button {
    border-radius:0;
    cursor:pointer;
    transition:border-color 120ms ease,background 120ms ease,color 120ms ease,transform 120ms ease;
}
.stable-v17-panel button:focus-visible {
    outline:1px solid #d0ad76;
    outline-offset:2px;
}
.stable-v17-panel button:disabled { cursor:default; opacity:.42; }
.stable-v17-panel .stable-v16-brand {
    display:flex;
    min-height:0;
    align-items:flex-end;
    justify-content:space-between;
    gap:16px;
    margin:0 0 14px;
    padding:7px 3px 14px;
    border-bottom:3px double rgba(133,97,55,.62);
}
.stable-v17-panel .stable-v16-brand strong {
    max-width:72%;
    overflow:hidden;
    color:#e1d5c4;
    font:600 21px/1.05 Georgia,serif;
    letter-spacing:.035em;
    text-align:right;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.stable-v17-panel .stable-v16-brand small {
    margin:0;
    color:#9f493c;
    font:700 10px/1 'Segoe UI',sans-serif;
    letter-spacing:.19em;
}
.stable-v17-mode-switch {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:5px;
    margin:0 0 8px;
}
.stable-v17-mode-switch button {
    min-width:0;
    min-height:38px;
    padding:7px 5px;
    border:1px solid rgba(111,88,58,.48);
    background:rgba(11,12,10,.76);
    color:#87765f;
    font:700 10px/1.2 'Segoe UI',sans-serif;
    letter-spacing:.06em;
}
.stable-v17-mode-switch button:hover {
    border-color:rgba(139,89,60,.72);
    color:#d4b994;
}
.stable-v17-mode-switch button.active {
    border-color:#864237;
    border-bottom-color:#bd6a58;
    background:linear-gradient(180deg,rgba(86,36,29,.84),rgba(42,20,17,.9));
    color:#ead9c1;
    box-shadow:inset 0 -2px #9f4a3b;
}
.stable-v17-panel .stable-v16-tabs {
    display:grid;
    grid-auto-columns:1fr;
    grid-auto-flow:column;
    gap:5px;
    margin:0 0 10px;
}
.stable-v17-panel .stable-v16-tabs button {
    min-width:0;
    min-height:38px;
    padding:7px 5px;
    border:1px solid rgba(111,88,58,.48);
    background:rgba(11,12,10,.76);
    color:#87765f;
    font:700 10px/1.2 'Segoe UI',sans-serif;
    letter-spacing:.06em;
}
.stable-v17-panel .stable-v16-tabs button:hover {
    border-color:rgba(139,89,60,.72);
    color:#d4b994;
}
.stable-v17-panel .stable-v16-tabs button.active {
    border-color:#864237;
    border-bottom-color:#bd6a58;
    background:linear-gradient(180deg,rgba(86,36,29,.84),rgba(42,20,17,.9));
    color:#ead9c1;
    box-shadow:inset 0 -2px #9f4a3b;
}
.stable-v17-panel .stable-v16-boxes {
    display:grid;
    grid-template-columns:38px minmax(0,1fr) auto;
    align-items:center;
    gap:11px;
    margin:0 0 8px;
    padding:10px 11px;
    border:1px solid rgba(116,86,50,.5);
    background:linear-gradient(100deg,rgba(44,35,26,.82),rgba(18,18,15,.9));
}
.stable-v17-panel .stable-v16-boxes > svg {
    width:30px;
    height:30px;
    color:#b68b56;
    stroke:currentColor;
}
.stable-v17-panel .stable-v16-boxes > span { display:grid; gap:3px; }
.stable-v17-panel .stable-v16-boxes small {
    color:#80715e;
    font:700 9px/1 'Segoe UI',sans-serif;
    letter-spacing:.11em;
}
.stable-v17-panel .stable-v16-boxes strong {
    color:#dfc59d;
    font:600 17px/1.1 Georgia,serif;
}
.stable-v17-panel .stable-v16-boxes em {
    color:#756b5d;
    font:9px/1.2 'Segoe UI',sans-serif;
}
.stable-v17-panel .stable-v16-boxes button,.stable-v17-panel .stable-v16-recovery {
    min-height:36px;
    padding:6px 10px;
    border:1px solid #754238;
    background:#251714;
    color:#c8aa82;
    font:700 9px/1.25 'Segoe UI',sans-serif;
    letter-spacing:.04em;
}
.stable-v17-panel .stable-v16-boxes button:hover,.stable-v17-panel .stable-v16-recovery:hover {
    border-color:#a95a49;
    background:#43211b;
    color:#ead8bf;
}
.stable-v17-panel .stable-v16-boxes button b {
    display:block;
    margin-top:3px;
    color:#dbc298;
}
.stable-v17-panel .stable-v16-recovery { width:100%; margin:0 0 7px; }
.stable-v17-panel .stable-v16-heading {
    display:flex;
    align-items:center;
    justify-content:space-between;
    min-height:28px;
    padding:7px 3px 6px;
    color:#98846a;
    font:700 9px/1 'Segoe UI',sans-serif;
    letter-spacing:.14em;
}
.stable-v17-panel .stable-v16-heading b {
    display:grid;
    min-width:21px;
    height:18px;
    place-items:center;
    border:1px solid rgba(109,84,54,.5);
    color:#b79a71;
    font-size:9px;
}
.stable-v17-panel .stable-v17-horse-content {
    display:flex;
    flex:1 1 auto;
    flex-direction:column;
    min-height:0;
}
.stable-v17-panel .stable-v17-buy-horse-box {
    display:flex;
    align-items:center;
    justify-content:space-between;
    width:100%;
    min-height:36px;
    margin:0 0 7px;
    padding:7px 10px;
    border:1px solid #754238;
    background:#251714;
    color:#c8aa82;
    font:700 9px/1.2 'Segoe UI',sans-serif;
    letter-spacing:.06em;
}
.stable-v17-panel .stable-v17-buy-horse-box:hover {
    border-color:#a95a49;
    background:#43211b;
    color:#ead8bf;
}
.stable-v17-panel .stable-v17-buy-horse-box b {
    color:#dbc298;
    font-size:10px;
}
.stable-v17-panel .stable-v16-list {
    min-height:0;
    max-height:190px;
    overflow-y:auto;
    border:1px solid rgba(91,74,52,.42);
    background:rgba(7,8,7,.4);
    scrollbar-width:thin;
    scrollbar-color:#704331 #0c0d0b;
}
.stable-v17-panel .stable-v16-list > button {
    display:grid;
    grid-template-columns:33px minmax(0,1fr) auto;
    align-items:center;
    gap:9px;
    width:100%;
    min-height:50px;
    padding:7px 9px;
    border:0;
    border-bottom:1px solid rgba(89,72,50,.37);
    background:transparent;
    color:#baa17e;
    text-align:left;
}
.stable-v17-panel .stable-v16-list > button:last-child { border-bottom:0; }
.stable-v17-panel .stable-v16-list > button:hover {
    background:rgba(61,39,27,.48);
    color:#dec9aa;
}
.stable-v17-panel .stable-v16-list > button.selected {
    background:linear-gradient(90deg,rgba(91,39,31,.78),rgba(42,24,19,.62));
    box-shadow:inset 3px 0 #a65343;
    color:#ead9c1;
}
.stable-v17-panel .stable-v16-list > button.stable-v17-pregnant-horse {
    position:relative;
    cursor:not-allowed;
    opacity:1;
}
.stable-v17-panel .stable-v16-list > button.stable-v17-pregnant-horse:hover {
    background:transparent;
    color:#baa17e;
    box-shadow:none;
}
.stable-v17-panel .stable-v16-list > button.stable-v17-pregnant-horse > svg,
.stable-v17-panel .stable-v16-list > button.stable-v17-pregnant-horse > span:not(.stable-v17-pregnancy-overlay),
.stable-v17-panel .stable-v16-list > button.stable-v17-pregnant-horse > em {
    opacity:.16;
}
.stable-v17-panel .stable-v16-list > button .stable-v17-pregnancy-overlay {
    position:absolute;
    z-index:1;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:0 10px;
    background:rgba(16,13,11,.62);
    color:#dfb88c;
    font:700 13px/1.2 Georgia,serif;
    letter-spacing:.035em;
    text-align:center;
    pointer-events:none;
}
.stable-v17-panel .stable-v16-list > .stable-v17-empty-slot {
    opacity:.58;
    background:rgba(18,18,15,.46);
    color:#827767;
}
.stable-v17-panel .stable-v16-list > .stable-v17-empty-slot:hover {
    background:rgba(18,18,15,.46);
    color:#827767;
    box-shadow:none;
}
.stable-v17-panel .stable-v16-list > .stable-v17-buy-horse-box {
    border-top:1px solid rgba(132,75,57,.72);
    background:linear-gradient(90deg,rgba(73,35,28,.76),rgba(31,23,19,.62));
    color:#d2b58c;
}
.stable-v17-panel .stable-v16-list > .stable-v17-buy-horse-box:hover {
    background:linear-gradient(90deg,rgba(103,45,35,.88),rgba(49,27,22,.72));
    color:#ead8bf;
}
.stable-v17-panel .stable-v16-list svg {
    width:24px;
    height:24px;
    color:#9f7a4c;
    stroke:currentColor;
}
.stable-v17-panel .stable-v16-list span { display:grid; gap:3px; min-width:0; }
.stable-v17-panel .stable-v16-list strong {
    overflow:hidden;
    font:600 13px/1.2 Georgia,serif;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.stable-v17-panel .stable-v16-list small {
    overflow:hidden;
    color:#766c5e;
    font:9px/1.2 'Segoe UI',sans-serif;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.stable-v17-panel .stable-v16-list em {
    max-width:95px;
    color:#756b5d;
    font:700 8px/1.2 'Segoe UI',sans-serif;
    letter-spacing:.035em;
    text-align:right;
}
.stable-v17-panel .stable-v16-list em.active { color:#8dab68; }
.stable-v17-panel .stable-v16-details {
    margin:9px 0 0;
    padding:12px;
    border:1px solid rgba(118,88,52,.58);
    background:linear-gradient(145deg,rgba(31,28,23,.96),rgba(12,13,11,.97));
    color:#cbb89a;
}
.stable-v17-panel .stable-v17-selection {
    flex:0 0 auto;
    margin-top:auto;
}
.stable-v17-panel .stable-v17-selection-stack {
    display:grid;
    flex:0 0 auto;
    gap:6px;
    margin-top:6px;
}
.stable-v17-panel .stable-v17-horse-content > .stable-v16-list {
    flex:1 1 auto;
    max-height:none;
}
.stable-v17-panel .stable-v17-selection-stack .stable-v17-selection {
    margin-top:0;
}
.stable-v17-panel .stable-v16-details > header {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding:0 0 9px;
    border-bottom:1px solid rgba(105,82,55,.42);
}
.stable-v17-panel .stable-v16-details header span { display:grid; gap:3px; }
.stable-v17-panel .stable-v16-details header small {
    color:#8e7960;
    font:700 8px/1 'Segoe UI',sans-serif;
    letter-spacing:.12em;
}
.stable-v17-panel .stable-v16-details h2 {
    margin:0;
    color:#e2d2ba;
    font:600 20px/1.1 Georgia,serif;
}
.stable-v17-panel .stable-v16-details p {
    margin:0;
    color:#817666;
    font:9px/1.3 'Segoe UI',sans-serif;
}
.stable-v17-panel .stable-v16-details header svg {
    width:34px;
    height:34px;
    color:#9f5143;
    stroke:currentColor;
}
.stable-v17-panel .stable-v16-details dl {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:4px;
    margin:9px 0;
}
.stable-v17-panel .stable-v16-details dl div {
    display:flex;
    min-width:0;
    justify-content:space-between;
    gap:7px;
    padding:6px 7px;
    border:1px solid rgba(96,77,54,.32);
    background:rgba(255,255,255,.018);
}
.stable-v17-panel .stable-v16-details dt {
    color:#776b5b;
    font:8px/1.3 'Segoe UI',sans-serif;
}
.stable-v17-panel .stable-v16-details dd {
    overflow:hidden;
    margin:0;
    color:#c8b496;
    font:600 9px/1.3 'Segoe UI',sans-serif;
    text-align:right;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.stable-v17-panel .stable-v16-bars { display:grid; gap:6px; }
.stable-v17-panel .stable-v16-bars label {
    display:grid;
    grid-template-columns:55px 28px minmax(0,1fr);
    align-items:center;
    gap:6px;
    color:#817361;
    font:700 8px/1 'Segoe UI',sans-serif;
}
.stable-v17-panel .stable-v16-bars label > b { color:#b7a183; text-align:right; }
.stable-v17-panel .stable-v16-bars label > i {
    display:block;
    height:5px;
    overflow:hidden;
    border:0;
    background:#26231e;
}
.stable-v17-panel .stable-v16-bars label em {
    display:block;
    height:100%;
    background:linear-gradient(90deg,#7d372d,#b57d49);
}
.stable-v17-panel .stable-v16-details footer {
    display:grid;
    grid-template-columns:1fr;
    gap:6px;
    margin-top:10px;
}
.stable-v17-panel .stable-v16-details footer button,.stable-v17-panel .stable-v16-details footer button.saddle {
    display:flex;
    min-height:38px;
    align-items:center;
    justify-content:center;
    padding:8px 10px;
    border:1px solid #884537;
    background:linear-gradient(180deg,#59271f,#321814);
    color:#e2c9a7;
    font:700 10px/1.2 'Segoe UI',sans-serif;
    letter-spacing:.06em;
}
.stable-v17-panel .stable-v16-details footer button:hover {
    border-color:#b76550;
    background:linear-gradient(180deg,#713127,#411c17);
    color:#f2e5d2;
}
.stable-v17-panel .stable-v16-details footer button:disabled { opacity:.42; }
.stable-v17-panel .stable-v16-purchase {
    display:grid;
    gap:10px;
    overflow:visible;
}
.stable-v17-panel .stable-v16-purchase-fields { display:grid; grid-template-columns:1fr 1fr; gap:7px; }
.stable-v17-panel .stable-v16-purchase label {
    display:grid;
    gap:5px;
    color:#8e7d67;
    font:700 9px/1 'Segoe UI',sans-serif;
    letter-spacing:.09em;
}
.stable-v17-panel .stable-v16-purchase input,.stable-v17-panel .stable-v16-purchase .acp-select-trigger {
    min-height:33px;
    padding:7px 8px;
    border:1px solid rgba(109,84,55,.62);
    background:#11120f;
    color:#d1bea1;
    font:600 10px/1.2 'Segoe UI',sans-serif;
}
.stable-v17-panel .stable-v16-purchase input:focus {
    outline:1px solid #9b5040;
    outline-offset:-1px;
    background:#171511;
}
.stable-v17-panel .stable-v16-purchase .acp-select-menu {
    border:1px solid #765143;
    background:#171713;
    box-shadow:0 10px 24px rgba(0,0,0,.58);
}
.stable-v17-panel .stable-v16-purchase .acp-select-search {
    border-color:#57483a;
    background:#0e0f0d;
    color:#d1bea1;
}
.stable-v17-panel .stable-v16-purchase .acp-select-menu button {
    border-bottom-color:rgba(91,74,52,.42);
    color:#bda887;
}
.stable-v17-panel .stable-v16-purchase .acp-select-menu button:hover,
.stable-v17-panel .stable-v16-purchase .acp-select-menu button.focused,
.stable-v17-panel .stable-v16-purchase .acp-select-menu button.selected {
    background:#4d2821;
    color:#ead9c1;
}
.stable-v17-panel .stable-v16-purchase-label,.stable-v17-panel .stable-v16-sex-picker > span {
    color:#8e7d67;
    font:700 9px/1 'Segoe UI',sans-serif;
}
.stable-v17-panel .stable-v16-coat-picker > div:last-child {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:5px;
    max-height:118px;
    overflow-y:auto;
}
.stable-v17-panel .stable-v16-coat-picker button,.stable-v17-panel .stable-v16-sex-picker button {
    min-height:36px;
    padding:6px 8px;
    border:1px solid rgba(100,79,54,.54);
    background:#11120f;
    color:#a7957d;
    font:700 9px/1.2 'Segoe UI',sans-serif;
    text-align:left;
}
.stable-v17-panel .stable-v16-coat-picker button small { color:#766c5e; font-size:8px; }
.stable-v17-panel .stable-v16-coat-picker button:hover,
.stable-v17-panel .stable-v16-coat-picker button.selected,
.stable-v17-panel .stable-v16-sex-picker button:hover,
.stable-v17-panel .stable-v16-sex-picker button.selected {
    border-color:#9d4e40;
    background:#4b241e;
    box-shadow:inset 3px 0 #a65343;
    color:#ead9c1;
}
.stable-v17-panel .stable-v16-sex-picker > div { display:grid; grid-template-columns:1fr 1fr; gap:5px; }
.stable-v17-panel .stable-v16-sex-picker button { text-align:center; }
.stable-v17-panel .stable-v16-purchase footer {
    grid-template-columns:.65fr 1fr;
    align-items:stretch;
    padding-top:9px;
    border-top:1px solid rgba(105,82,55,.42);
}
.stable-v17-panel .stable-v16-purchase-total {
    display:grid;
    align-content:center;
    gap:3px;
    padding:5px 8px;
    border:1px solid rgba(96,77,54,.42);
    background:#11120f;
}
.stable-v17-panel .stable-v16-purchase-total small { color:#776b5b; font-size:7px; }
.stable-v17-panel .stable-v16-purchase-total strong { color:#d7bf99; font-size:11px; }
.stable-v17-panel .large-system-status {
    margin:7px 0 0;
    padding:8px;
    border:1px solid rgba(124,81,55,.5);
    background:rgba(73,37,29,.42);
    color:#bca88b;
    font:8px/1.4 'Segoe UI',sans-serif;
}
.stable-v17-notice {
    display:grid;
    width:100%;
    box-sizing:border-box;
    gap:4px;
    padding:10px 12px;
    border:1px solid #5f7149;
    border-left:3px solid #86a863;
    background:rgba(15,18,13,.97);
    box-shadow:0 10px 28px rgba(0,0,0,.58);
    pointer-events:none;
}
.stable-v17-notice.error {
    border-color:#754137;
    border-left-color:#b45d4c;
    background:rgba(27,15,13,.97);
}
.stable-v17-notice span {
    color:#91ad71;
    font:700 8px/1 'Segoe UI',sans-serif;
    letter-spacing:.13em;
}
.stable-v17-notice.error span { color:#c97361; }
.stable-v17-notice p {
    margin:0;
    color:#cbbca5;
    font:10px/1.35 'Segoe UI',sans-serif;
}
@media (max-width:1100px) {
    .stable-v17-panel { width:clamp(360px,42vw,460px); }
}
@media (max-height:760px) {
    .stable-v17-panel { top:1.5vh; bottom:1.5vh; padding:14px; }
    .stable-v17-panel .stable-v16-list { max-height:145px; }
    .stable-v17-panel .stable-v17-horse-content > .stable-v16-list { max-height:none; }
    .stable-v17-panel .stable-v16-brand { margin-bottom:9px; padding-bottom:10px; }
}

/* Telegramm: kein Briefbild im Kopf; Aktionsbuttons bleiben immer Drittelbreite. */
.telegram-tabs::before { display:none !important; content:none !important; }
.telegram-react-menu .telegram-tabs { padding-left:17px !important; }
.telegram-react-menu .telegram-reader-empty > img { display:none !important; }
.telegram-react-menu .telegram-reader-actions.message-actions {
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    grid-auto-flow:row !important;
    gap:10px !important;
}
.telegram-react-menu .telegram-reader-actions.message-actions > button,
.telegram-react-menu .telegram-reader-actions.message-actions .telegram-primary,
.telegram-react-menu .telegram-reader-actions.message-actions .telegram-copy-button {
    grid-column:auto !important;
    width:100% !important;
    min-width:0 !important;
}
.telegram-react-menu .telegram-reader-actions.message-actions.no-reply { grid-template-columns:repeat(3,minmax(0,1fr)) !important; }

@media (max-width:1500px) {
    .inventory-v16-window { flex-basis:clamp(285px,23vw,350px); width:clamp(285px,23vw,350px); }
    .inventory-v16-app { justify-content:flex-start; padding-left:12px; overflow-x:auto; }
}
@media (max-width:900px) {
    .stable-v16-panel { width:min(390px,46vw); }
    .inventory-v16-window { flex-basis:330px; width:330px; }
}

/* Kleidungsladen und Kleideraufbewahrung nutzen die vorhandenen Lua-Verträge. */
.clothing-shop-app,.clothing-storage-app{position:fixed;inset:0;z-index:94;display:flex;align-items:center;justify-content:flex-start;padding:3vh 2vw;background:transparent;color:#ded3c3;font-family:'Arial Narrow','Segoe UI',sans-serif}
.clothing-shop-app{pointer-events:auto}.clothing-shop-shell{pointer-events:auto;width:clamp(430px,39vw,520px);height:min(94vh,900px);display:grid;grid-template-rows:auto minmax(0,1fr) auto;border:1px solid rgba(129,64,49,.82);background:linear-gradient(112deg,rgba(25,22,18,.975),rgba(10,11,9,.985) 70%);box-shadow:0 18px 54px rgba(0,0,0,.72)}
.clothing-shop-shell>header,.clothing-storage-shell>header{display:flex;align-items:center;gap:12px;padding:13px 15px;border-bottom:1px solid rgba(91,58,42,.72);background:rgba(15,15,12,.72)}
.clothing-shop-shell h1,.clothing-storage-shell h1{margin:2px 0 0;color:#eee9e1;font-size:20px;letter-spacing:.06em}.clothing-shop-shell header small,.clothing-storage-shell header small{font-size:8px;letter-spacing:.16em;color:#9f4b3d}
.clothing-shop-balance{margin-left:auto;text-align:right;color:#bcb09f}.clothing-shop-balance span{display:block;font-size:8px;letter-spacing:.12em}.clothing-shop-balance strong{font-size:17px;color:#eee9e1}
.clothing-shop-shell>header button,.clothing-storage-shell>header button{margin-left:auto;width:31px;height:31px;padding:0;border:1px solid #574033;background:#171512;color:#b8aa96;font-size:19px}
.clothing-shop-body{min-height:0;display:grid;grid-template-columns:142px minmax(0,1fr)}.clothing-shop-body>aside{display:flex;min-height:0;flex-direction:column;padding:12px 9px;border-right:1px solid rgba(89,64,44,.62);overflow:hidden}.clothing-shop-body h2,.clothing-storage-columns h2{margin:0 0 8px;color:#998f82;font-size:9px;letter-spacing:.16em}
.clothing-shop-body>aside>nav{display:grid;min-height:0;gap:4px;overflow-y:auto}.clothing-shop-body nav button{min-height:28px;padding:6px 8px;border:1px solid transparent;background:transparent;color:#afa493;font:600 10px 'Segoe UI',sans-serif;text-align:left}.clothing-shop-body nav button.active,.clothing-shop-body nav button:hover{border-color:#77362d;background:rgba(92,37,30,.55);color:#f0e8dc}
.clothing-shop-outfits{min-height:0;margin-top:10px;padding-top:10px;border-top:1px solid rgba(90,67,48,.62);overflow:auto}.clothing-shop-outfits form,.clothing-storage-shell form{display:grid;gap:4px}.clothing-shop-outfits input,.clothing-storage-shell input,.clothing-storage-shell select{min-width:0;padding:7px;border:1px solid #514435;background:#10110e;color:#d8cebf;font:10px 'Segoe UI',sans-serif}.clothing-shop-outfits button,.clothing-storage-shell form button,.clothing-outfit-row button{padding:6px;border:1px solid #624137;background:#2e1814;color:#cfb7a1;font:700 8px 'Segoe UI',sans-serif}
.clothing-shop-outfit-entry{display:grid;grid-template-columns:minmax(0,1fr);padding:6px 0;border-bottom:1px solid rgba(76,62,47,.45)}.clothing-shop-outfit-entry span{display:flex;gap:3px}.clothing-shop-outfit-entry span:first-child{display:grid}.clothing-shop-outfit-entry strong{font-size:10px}.clothing-shop-outfit-entry small{font-size:8px;color:#81776a}
.clothing-shop-body>section{min-width:0;padding:12px;display:grid;grid-template-rows:auto minmax(0,1fr);gap:10px;overflow:hidden}.clothing-shop-toolbar{display:grid;gap:7px}.clothing-shop-toolbar label{display:grid;gap:4px}.clothing-shop-toolbar label span{font-size:8px;color:#998f82}.clothing-shop-toolbar input{padding:8px 9px;border:1px solid #514435;background:#10110e;color:#ddd3c4}.clothing-shop-toolbar>strong{color:#b56c5c;font-size:9px}
.clothing-shop-items{display:grid;grid-template-columns:1fr;align-content:start;gap:7px;overflow-y:auto}.clothing-shop-card{position:relative;min-height:82px;padding:8px;display:grid;grid-template-columns:64px minmax(0,1fr);grid-template-rows:auto auto auto;align-content:center;gap:3px 9px;border:1px solid #4c4135;background:rgba(14,15,12,.82);color:#ddd3c4}.clothing-shop-card:hover,.clothing-shop-card.selected{border-color:#a04436;background:rgba(62,29,24,.88)}.clothing-shop-card.selected{z-index:2}.clothing-shop-card>img{grid-row:1/3;width:64px;height:64px;object-fit:contain}.clothing-shop-card>strong{font-size:11px}.clothing-shop-card>small{color:#9f9485;font-size:9px}
.clothing-shop-model-options{grid-column:1/-1;margin-top:6px;padding-top:8px;display:grid;gap:6px;border-top:1px solid rgba(94,71,51,.7)}.clothing-shop-model-options>span{font-size:8px;color:#998f82}.clothing-shop-model-options>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.clothing-shop-color,.clothing-shop-model-buy{min-height:27px;padding:5px 6px;border:1px solid #4c4135;background:#13130f;color:#a99e8f;font:600 9px 'Segoe UI',sans-serif}.clothing-shop-color.selected{border-color:#a04436;background:rgba(62,29,24,.88);color:#eee5d9}.clothing-shop-model-buy{border-color:#75372e;background:#3b1915;color:#e1cbb8}.clothing-shop-model-buy:disabled{opacity:.45}.clothing-shop-shell>footer{display:grid;gap:3px;padding:8px 13px;border-top:1px solid rgba(91,58,42,.72);font-size:9px}.clothing-shop-shell>footer small{color:#756d63;font-size:8px}

/* Kleidungsladen im kompakten Creator-Aufbau. */
.clothing-shop-shell{grid-template-rows:auto auto minmax(0,1fr) auto}
.clothing-shop-app,.clothing-shop-app *{-webkit-user-select:none;user-select:none}
.clothing-shop-app input,.clothing-shop-app textarea{-webkit-user-select:text;user-select:text}
.clothing-shop-shell>header .clothing-shop-undress{width:auto;height:27px;margin-left:0;padding:0 8px;border-color:#5b4635;color:#a99578;font:700 8px Georgia,serif;letter-spacing:.05em}
.clothing-shop-shell>header .clothing-shop-undress:hover,.clothing-shop-shell>header .clothing-shop-undress.active{border-color:#8f2b22;background:#3b1915;color:#e1cbb8}
.clothing-shop-tabs{display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:9px 12px;border-bottom:1px solid rgba(91,58,42,.72)}
.clothing-shop-tabs button{min-height:31px;padding:6px;border:1px solid #4c4135;background:#11120f;color:#8f8374;font:700 9px Georgia,serif;letter-spacing:.08em}
.clothing-shop-tabs button:hover,.clothing-shop-tabs button.active{border-color:#8f2b22;background:linear-gradient(90deg,#4c1812,#24100d);color:#e0c394}
.clothing-shop-body{display:block;min-height:0;padding:12px;overflow-y:auto;scroll-behavior:smooth;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#8b3b31 #0c0d0b}
.clothing-shop-body::-webkit-scrollbar{width:8px}.clothing-shop-body::-webkit-scrollbar-track{background:#0c0d0b}.clothing-shop-body::-webkit-scrollbar-thumb{border:2px solid #0c0d0b;border-radius:8px;background:#8b3b31}
.clothing-shop-body>section{display:grid;min-width:0;padding:0;gap:8px;overflow:visible}
.clothing-shop-categories{align-content:start}
.clothing-shop-category .creator-section-toggle{display:grid;grid-template-columns:minmax(0,1fr) auto 18px;gap:9px}
.clothing-shop-category .creator-section-toggle b{color:#b56c5c;font:700 8px 'Segoe UI',sans-serif;white-space:nowrap}
.clothing-shop-category .creator-section-toggle i{text-align:right}
.clothing-shop-category .creator-range{padding:8px 9px}
.clothing-shop-selection{padding:2px 4px;color:#8f8374;font:9px/1.4 'Segoe UI',sans-serif}
.clothing-shop-buy{justify-self:start;width:50%;min-height:34px;margin-top:2px;padding:7px 10px;border:1px solid #8c3a30;background:linear-gradient(#5c211b,#321511);color:#e3c9ae;font:700 9px Georgia,serif;letter-spacing:.06em}
.clothing-shop-buy:disabled{opacity:.4}
.clothing-shop-outfits{align-content:start;min-height:0;margin:0;padding:0;border:0;overflow:visible}
.clothing-shop-outfits>h2{margin-bottom:2px}
.clothing-shop-outfits form{grid-template-columns:minmax(0,1fr) auto}
.clothing-shop-outfit-entry{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;padding:8px;border:1px solid rgba(76,62,47,.55);background:rgba(14,15,12,.62)}
.clothing-shop-outfit-entry>span:nth-child(2){justify-content:flex-end}
.clothing-shop-outfit-rename{grid-column:1/-1;grid-template-columns:minmax(0,1fr) auto auto!important;margin-top:3px;padding-top:7px;border-top:1px solid rgba(76,62,47,.55)}
.clothing-outfit-rename{grid-template-columns:minmax(0,1fr) auto auto!important}

.clothing-storage-app{z-index:95;justify-content:center;background:rgba(7,5,3,.68)}.clothing-storage-shell{width:min(1380px,95vw);height:min(820px,93vh);display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;border:1px solid rgba(129,64,49,.82);background:linear-gradient(112deg,rgba(25,22,18,.985),rgba(10,11,9,.99));box-shadow:0 22px 70px #000}.clothing-storage-filters{display:flex;gap:20px;padding:13px 25px;border-bottom:1px solid #514435}.clothing-storage-filters label{display:grid;gap:4px;flex:1;font-size:9px;letter-spacing:.1em}.clothing-storage-columns{min-height:0;display:grid;grid-template-columns:1fr 1fr 310px}.clothing-storage-columns>section,.clothing-storage-columns>aside{min-width:0;padding:18px;border-right:1px solid #514435;overflow:hidden}.clothing-storage-list{height:100%;overflow:auto;display:grid;align-content:start;gap:7px}.clothing-storage-row{display:grid;grid-template-columns:55px 1fr auto;align-items:center;gap:10px;padding:8px;border:1px solid #4c4135;background:rgba(14,15,12,.82);color:#ddd3c4;text-align:left}.clothing-storage-row img{width:52px;height:52px;object-fit:contain}.clothing-storage-row span{display:grid}.clothing-storage-row small{color:#9f9485}.clothing-storage-row b{font-size:9px;color:#c97767}.clothing-outfit-row{display:grid;gap:7px;padding:10px;margin-bottom:8px;border:1px solid #4c4135;background:rgba(14,15,12,.82)}.clothing-outfit-row div{display:flex;gap:6px}.clothing-storage-shell>footer{padding:11px 24px;border-top:1px solid #514435;color:#998f82;font-size:10px}

.inventory-world-prompt{position:fixed;left:50%;bottom:6vh;z-index:110;transform:translateX(-50%);display:grid;gap:5px;min-width:370px;padding:15px 20px;border:1px solid #a77b43;background:rgba(14,12,10,.97);box-shadow:0 10px 35px rgba(0,0,0,.7);color:#eee9e1;text-align:center}.inventory-world-prompt span{color:#c59b63}.inventory-world-prompt small{color:#a9987d}.inventory-world-document{position:fixed;left:50%;top:50%;z-index:111;transform:translate(-50%,-50%);width:min(390px,90vw);padding:22px;border:1px solid #75513c;background:rgba(18,16,13,.98);box-shadow:0 18px 60px #000;color:#ded3c3}.inventory-world-document header{display:grid;padding-bottom:12px;border-bottom:1px solid #4c4135}.inventory-world-document header small{color:#9f4b3d;letter-spacing:.18em}.inventory-world-document header strong{font:22px Georgia,serif}.inventory-world-document section{padding:12px 0}.inventory-world-document p{margin:6px 0}.inventory-world-document button{width:100%;padding:9px;border:1px solid #75372e;background:#3b1915;color:#e1cbb8}

/* Spielerbetriebener Friseur: Creator-Optik ohne Creator-Raum oder Kamera. */
.barber-app{position:fixed;inset:0;z-index:96;pointer-events:none;background:linear-gradient(90deg,rgba(0,0,0,.30),transparent 43%);font-family:Georgia,serif}
.barber-app.mouse-active{pointer-events:auto}.barber-app.mouse-inactive .barber-panel,.barber-app.mouse-inactive .barber-category-rail{opacity:.68;pointer-events:none}
.barber-panel{top:50%;bottom:auto;transform:translateY(-50%);max-height:min(78vh,760px);overflow-y:auto;pointer-events:auto}
.barber-category-rail{top:50%;transform:translateY(-50%);pointer-events:auto}.barber-category-rail button:disabled{opacity:.45}
.barber-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}.barber-actions button:disabled{opacity:.5}
.barber-waiting{margin:8px 0 0;padding:10px;border:1px solid rgba(132,94,49,.55);background:rgba(12,13,10,.76);color:#c7a979;font:10px/1.4 'Segoe UI',sans-serif;text-align:center}
.barber-panel kbd,.barber-prompt kbd,.barber-mouse-hint kbd{padding:1px 5px;border:1px solid #75573a;background:#17130f;color:#e1c18c;font:700 10px Consolas,monospace}
.barber-mouse-hint{position:fixed;left:2.2vw;bottom:5vh;padding:8px 12px;border:1px solid rgba(116,82,48,.65);background:rgba(13,13,10,.88);color:#b69a70;font:700 9px 'Segoe UI',sans-serif;letter-spacing:.08em}
.barber-prompt{position:fixed;left:50%;bottom:8vh;z-index:120;transform:translateX(-50%);width:min(520px,88vw);padding:18px 22px 12px;border:1px solid #9a6c38;background:linear-gradient(135deg,rgba(27,23,17,.98),rgba(10,10,8,.98));box-shadow:0 14px 42px rgba(0,0,0,.75);color:#e7d9c4;text-align:center}
.barber-prompt small{color:#a94736;font:700 9px 'Segoe UI',sans-serif;letter-spacing:.18em}.barber-prompt h2{margin:7px 0 12px;font-size:17px}.barber-prompt p{margin:0;color:#9f8d72;font:9px 'Segoe UI',sans-serif;letter-spacing:.08em}.barber-prompt p span{margin:0 8px}
.barber-prompt-timer{height:2px;margin-top:12px;background:#a94736;transform-origin:left;animation:barber-timer linear forwards}@keyframes barber-timer{to{transform:scaleX(0)}}
.barber-customer-waiting{position:fixed;left:50%;bottom:8vh;z-index:119;transform:translateX(-50%);padding:12px 18px;border:1px solid #725334;background:rgba(14,13,10,.95);color:#cdb486;font:700 10px 'Segoe UI',sans-serif;letter-spacing:.06em}

.stable-horse-diagnosis-layer{position:fixed;inset:0;z-index:10310;display:grid;place-items:center;background:transparent;backdrop-filter:none;color:#d6c09a;font-family:Georgia,'Times New Roman',serif;pointer-events:auto}
.stable-horse-diagnosis{width:min(660px,90vw);max-height:84vh;overflow:hidden;border:1px solid rgba(172,134,76,.76);background:linear-gradient(145deg,rgba(24,18,12,.99),rgba(5,5,4,.995));box-shadow:0 32px 95px #000,inset 0 0 0 4px #050403,inset 0 0 0 5px rgba(177,139,80,.18)}
.stable-horse-diagnosis>header{display:grid;grid-template-columns:52px 1fr 36px;align-items:center;gap:13px;padding:19px 23px;border-bottom:1px solid rgba(177,139,80,.28)}.stable-horse-diagnosis>header>span{display:grid;place-items:center;width:46px;height:46px;border:1px solid #806137;border-radius:50%;color:#a42f25;font-size:19px;box-shadow:inset 0 0 0 3px #0b0906}
.stable-horse-diagnosis>header small{color:#a43228;font:700 10px/1 'Segoe UI',Arial,sans-serif;letter-spacing:.17em}.stable-horse-diagnosis>header h2{margin:5px 0 0;color:#e0d2ba;font-size:26px}.stable-horse-diagnosis>header button{width:34px;height:34px;padding:0;border:1px solid rgba(141,78,55,.58);background:#1c0e0b;color:#ad695d;font-size:23px}
.stable-horse-diagnosis>dl{display:grid;grid-template-columns:1.4fr 1fr .7fr;gap:8px;margin:0;padding:16px 23px}.stable-horse-diagnosis>dl>div{padding:11px;border:1px solid rgba(154,121,67,.26);background:rgba(0,0,0,.25)}.stable-horse-diagnosis dt{color:#847252;font:700 9px/1 'Segoe UI',Arial,sans-serif;letter-spacing:.09em;text-transform:uppercase}.stable-horse-diagnosis dd{margin:6px 0 0;color:#d8bd8d;font-size:15px}
.stable-horse-diagnosis>section{max-height:43vh;overflow:auto;padding:2px 23px 18px}.stable-horse-diagnosis>section h3{margin:7px 0 8px;color:#b59663;font:700 12px/1 'Segoe UI',Arial,sans-serif;letter-spacing:.1em}.stable-horse-diagnosis>section>article{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:11px 10px;border-bottom:1px solid rgba(155,123,70,.19)}.stable-horse-diagnosis>section>article span>*{display:block}.stable-horse-diagnosis>section>article small{color:#85745a;font:9px/1 'Segoe UI',Arial,sans-serif;letter-spacing:.08em;text-transform:uppercase}.stable-horse-diagnosis>section>article strong{margin-top:4px;color:#d7c19d;font-size:15px}.stable-horse-diagnosis>section>article b{color:#b35447;font:700 10px/1 'Segoe UI',Arial,sans-serif;letter-spacing:.08em;text-transform:uppercase}.stable-horse-diagnosis>section>p{padding:24px;border:1px dashed rgba(154,121,67,.3);color:#8f8068;text-align:center}
.stable-horse-diagnosis>footer{display:flex;justify-content:flex-end;padding:14px 23px 20px;border-top:1px solid rgba(177,139,80,.22)}.stable-horse-diagnosis>footer button{min-width:180px;padding:12px 22px;border:1px solid #8d5d35;background:linear-gradient(#713126,#351713);color:#e0c79c;font-weight:700;letter-spacing:.07em}.stable-horse-diagnosis>footer button:hover:not(:disabled){border-color:#bd8850;background:linear-gradient(#8b3a2d,#481d17)}.stable-horse-diagnosis>footer button:disabled{opacity:.42}
.horse-search-menu {
    position: fixed;
    inset: 0;
    z-index: 7600;
    pointer-events: none;
    color: #d9ccb2;
    font-family: var(--rs-font-body, Georgia, serif);
}

.horse-search-menu > section {
    pointer-events: auto;
    position: absolute;
    left: 1.5vw;
    top: 3vh;
    width: min(340px, 30vw);
    max-height: 74vh;
    box-sizing: border-box;
    overflow: auto;
    padding: 6px;
    border: 1px solid rgba(192, 154, 93, .5);
    background: linear-gradient(180deg, rgba(20, 17, 14, .97), rgba(5, 5, 4, .97));
    box-shadow: 0 16px 45px rgba(0, 0, 0, .65), inset 0 0 0 2px rgba(214, 180, 119, .05);
}

.horse-search-menu header {
    padding: 8px 10px 11px;
    border-bottom: 1px solid rgba(192, 154, 93, .28);
}

.horse-search-menu header small,
.horse-search-contract > small,
.horse-search-heading {
    color: #b15b4e;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .2em;
}

.horse-search-menu h1,
.horse-search-menu h2 {
    margin: 5px 0 0;
    color: #eadfc8;
    font-family: var(--rs-font-display, Georgia, serif);
}

.horse-search-menu h1 { font-size: 20px; font-weight: 500; }
.horse-search-menu h2 { font-size: 17px; }

.horse-search-menu header p,
.horse-search-offers p {
    margin: 3px 0 0;
    color: #8e836f;
    font: 10px/1.3 'Segoe UI', Arial, sans-serif;
}

.horse-search-menu > section > aside {
    margin: 6px 0;
    padding: 9px 10px;
    border-left: 3px solid #9f7b45;
    background: rgba(117, 86, 45, .14);
    font: 11px/1.35 'Segoe UI', Arial, sans-serif;
}

.horse-search-menu > section > aside.error { border-left-color: #a34b40; }

.horse-search-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 9px 5px 5px;
}

.horse-search-heading b {
    padding: 2px 6px;
    border: 1px solid rgba(167, 130, 71, .35);
    color: #c8b99c;
    font-size: 9px;
}

.horse-search-offers {
    display: grid;
    gap: 3px;
}

.horse-search-offers > button {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
    align-items: center;
    width: 100%;
    min-height: 45px;
    padding: 8px 11px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, .025);
    color: #c3a578;
    text-align: left;
}

.horse-search-offers span { display: grid; }
.horse-search-offers small { margin-top: 3px; color: #756349; font: 9px/1.2 'Segoe UI', Arial, sans-serif; letter-spacing: .08em; }
.horse-search-offers strong { color: #c3a578; font-size: 13px; }
.horse-search-offers em { color: #c09a5d; font-size: 12px; font-style: normal; font-weight: 700; }
.horse-search-offers > button:hover {
    border-color: rgba(152, 32, 23, .72);
    background: rgba(86, 16, 12, .5);
}
.horse-search-offers > button:hover strong { color: #ead3a7; }

.horse-search-menu button {
    min-height: 40px;
    border: 1px solid rgba(179, 91, 75, .7);
    background: linear-gradient(#692b25, #421a17);
    color: #eadfc8;
    font: 800 11px/1 var(--rs-font-body, Georgia, serif);
    letter-spacing: .08em;
}

.horse-search-menu button:disabled { opacity: .45; }
.horse-search-menu button.danger { width: 100%; margin-top: 9px; }

.horse-search-contract {
    margin-top: 6px;
    padding: 10px;
    border: 1px solid rgba(156, 121, 68, .38);
    background: rgba(0, 0, 0, .2);
}

.horse-search-contract dl {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3px;
    margin: 8px 0 0;
}

.horse-search-contract dl div {
    padding: 8px;
    border: 1px solid rgba(156, 121, 68, .2);
}

.horse-search-contract dt { color: #7f7462; font: 9px/1 'Segoe UI', Arial, sans-serif; text-transform: uppercase; }
.horse-search-contract dd { margin: 3px 0 0; font-size: 12px; }
.horse-search-register { display: grid; gap: 7px; margin-top: 8px; }
.horse-search-register p { margin: 0; color: #9f927c; font: 10px/1.35 'Segoe UI', Arial, sans-serif; }
.horse-search-register label { display: grid; gap: 4px; color: #9f927c; font-size: 9px; letter-spacing: .1em; }
.horse-search-register input {
    min-height: 38px;
    padding: 0 9px;
    border: 1px solid rgba(156, 121, 68, .4);
    outline: none;
    background: rgba(0, 0, 0, .36);
    color: #eadfc8;
}

.horse-search-skill {
    --zone-start: 0deg;
    --width: 40deg;
    --duration: 3000ms;
    position: fixed;
    z-index: 9000;
    left: 50%;
    top: 50%;
    width: 10rem;
    height: 10rem;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 12, 9, .94) 0 43%, transparent 44%),
        conic-gradient(from var(--zone-start),
            rgba(187, 145, 74, .96) 0 var(--width), rgba(39, 33, 24, .92) var(--width) 360deg);
    box-shadow: 0 0 0 .14rem rgba(211, 189, 143, .4), 0 1rem 3rem rgba(0, 0, 0, .65);
}

.horse-search-skill-zone {
    position: absolute;
    inset: .55rem;
    border: 1px solid rgba(226, 209, 170, .34);
    border-radius: 50%;
}

.horse-search-skill > i {
    position: absolute;
    left: calc(50% - .08rem);
    top: .45rem;
    width: .16rem;
    height: 4.55rem;
    transform-origin: 50% 100%;
    background: #efe4cb;
    box-shadow: 0 0 .3rem #000;
    animation: horse-search-spin var(--duration) linear forwards;
}

.horse-search-skill > b {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #eadfc8;
    font-size: 1.45rem;
}

.horse-search-skill > small {
    position: absolute;
    left: 50%;
    bottom: -1.8rem;
    transform: translateX(-50%);
    color: #c8b99c;
    letter-spacing: .12em;
}

@keyframes horse-search-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(720deg); }
}

.stable-breeding { display: grid; gap: .8rem; }
.stable-breeding .stable-breeding-select .acp-select-trigger {
    min-height:2.55rem;
    border:1px solid rgba(125,91,53,.56);
    background:linear-gradient(180deg,rgba(35,31,25,.96),rgba(13,14,12,.98));
    color:#d7c4a3;
    font:600 .78rem/1.2 Georgia,serif;
}
.stable-breeding .stable-breeding-select .acp-select-trigger:hover,
.stable-breeding .stable-breeding-select.open .acp-select-trigger {
    border-color:#9d5545;
    background:linear-gradient(180deg,rgba(73,38,30,.92),rgba(35,21,17,.98));
    color:#f0dcc0;
}
.stable-breeding .stable-breeding-select .acp-select-trigger i {
    border-top-color:#b96a55;
}
.stable-breeding-select-menu {
    border-color:rgba(132,91,53,.78);
    background:linear-gradient(180deg,#211d18,#0d0e0c);
    box-shadow:0 14px 30px rgba(0,0,0,.78),inset 0 0 0 2px rgba(151,105,61,.12);
}
.stable-breeding-select-menu button {
    min-height:2.35rem;
    border-color:transparent;
    background:transparent;
    color:#bba17b;
    font:600 .75rem/1.2 Georgia,serif;
}
.stable-breeding-select-menu button:hover,
.stable-breeding-select-menu button.focused,
.stable-breeding-select-menu button.selected {
    border-color:rgba(145,72,55,.68);
    background:linear-gradient(90deg,rgba(87,39,31,.82),rgba(36,23,19,.72));
    color:#ead5b5;
}
.stable-breeding-select-menu button:disabled {
    opacity:.42;
    color:#887b68;
}
.stable-breeding-values {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .35rem;
}
.stable-breeding-values div {
    display: flex;
    justify-content: space-between;
    padding: .55rem .65rem;
    border: 1px solid rgba(162, 126, 70, .26);
    background: rgba(0, 0, 0, .18);
}
.stable-breeding-values span { color: #827661; font-size: .7rem; letter-spacing: .08em; }
.stable-breeding-values b { color: #c9b791; font-size: .82rem; }
.stable-foals { display: grid; gap: .4rem; }
.stable-foals > article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(8rem, .8fr);
    gap: .45rem;
    padding: .65rem;
    border: 1px solid rgba(162, 126, 70, .25);
}
.stable-foals > article span { display: grid; }
.stable-foals > article small { color: #827661; }
.stable-foals input {
    border: 1px solid rgba(162, 126, 70, .35);
    background: rgba(0, 0, 0, .28);
    color: #dccfb5;
    padding: .4rem .55rem;
}
.stable-foals button { grid-column: 1 / -1; }

.gunsmith-modification-menu { position:fixed; z-index:12000; top:7vh; right:4vw; width:min(420px,92vw); max-height:86vh; display:grid; grid-template-rows:auto 1fr auto; overflow:hidden; border:1px solid #77543a; background:rgba(13,13,11,.985); color:#d9c9b5; box-shadow:0 18px 45px rgba(0,0,0,.82); }
.gunsmith-modification-menu > header { padding:18px 20px 13px; border-bottom:1px solid #4c3a2c; }
.gunsmith-modification-menu > header small { color:#aa8150; letter-spacing:.2em; }
.gunsmith-modification-menu h1 { margin:4px 0; font:700 24px Georgia,serif; }
.gunsmith-modification-menu p,.gunsmith-modification-menu footer span { margin:0; color:#867665; font-size:10px; }
.gunsmith-modification-menu > section { padding:12px; overflow:auto; }
.gunsmith-modification-menu fieldset { margin:0 0 10px; padding:8px; border:1px solid #4c3a2c; }
.gunsmith-modification-menu legend { padding:0 6px; color:#b99a73; font:700 10px Georgia,serif; }
.gunsmith-modification-menu fieldset label { display:grid; grid-template-columns:18px 1fr auto; align-items:center; gap:7px; min-height:32px; padding:3px 6px; border-bottom:1px solid rgba(119,84,58,.25); cursor:pointer; }
.gunsmith-modification-menu fieldset label:last-child { border-bottom:0; }
.gunsmith-modification-menu fieldset label > small { color:#867665; font-size:9px; }
.gunsmith-modification-menu > footer { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 16px; border-top:1px solid #4c3a2c; }
.gunsmith-modification-menu button { min-height:34px; padding:0 14px; border:1px solid #77543a; background:#20170f; color:#d5b98e; font:700 10px Georgia,serif; cursor:pointer; }
