.ranch-wallet{display:flex;gap:24px;flex-wrap:wrap;align-items:center;margin:0 0 20px;padding:18px 20px;border:1px solid var(--border,#e2e8f0);border-radius:14px;background:var(--surface,#fff)}.ranch-wallet span{display:flex;gap:10px;align-items:center;color:var(--muted)}.ranch-wallet strong{font-size:20px;color:var(--text,#172033)}.ranch-wallet small{margin-left:auto;color:var(--muted)}.ranch-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:20px}.ranch-yard{margin-bottom:20px}.ranch-yard-summary{padding:4px 0 16px;flex-wrap:wrap;gap:12px;color:var(--muted);font-size:13px}.ranch-animal-grid,.ranch-shop-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(205px,1fr));gap:14px}.ranch-animal{border:1px solid var(--border,#e2e8f0);border-radius:12px;padding:16px;min-width:0}.ranch-animal-head{display:flex;align-items:center;gap:12px}.ranch-animal-mark{font-size:30px;display:grid;place-items:center;width:54px;height:54px;border-radius:14px;background:#eef6ed}.ranch-animal h3{margin:0 0 8px;font-size:15px}.ranch-animal small{font-size:12px;font-weight:400;color:var(--muted)}.ranch-animal p{font-size:12px;line-height:1.6}.ranch-animal .row{flex-wrap:wrap}.ranch-products{margin-top:18px;padding-top:14px;border-top:1px solid var(--border,#e2e8f0);font-size:13px}.ranch-side .card{margin-bottom:20px}.ranch-side h2{font-size:16px}.ranch-side progress{width:100%;height:12px;accent-color:#76a763}.ranch-store{margin:18px 0 28px}.ranch-store>h2{font-size:18px;margin-bottom:16px}.ranch-good{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin:0!important;min-width:0}.ranch-good h3{font-size:16px;margin:0}.ranch-good p{font-size:13px;line-height:1.7;margin:0 0 8px}.ranch-good button{margin-top:auto}.ranch-side .inspection-row{gap:8px}.ranch-side .inspection-row strong{white-space:nowrap}[data-theme=dark] .ranch-wallet{background:#182538}[data-theme=dark] .ranch-wallet strong{color:#e2e8f0}[data-theme=dark] .ranch-animal-mark{background:#213a30}@media(max-width:1050px){.ranch-layout{grid-template-columns:minmax(0,1fr)}.ranch-side{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}}@media(max-width:550px){.ranch-wallet{gap:12px;padding:14px}.ranch-wallet span{width:calc(50% - 8px);font-size:12px;gap:6px}.ranch-wallet strong{font-size:17px}.ranch-wallet small{margin-left:0}.ranch-animal-grid{grid-template-columns:1fr}.ranch-shop-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.ranch-good{padding:12px}.ranch-good p{font-size:12px}.ranch-layout{gap:10px}.ranch-yard-summary{align-items:flex-start}}.ranch-image{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;flex:0 0 auto;vertical-align:middle}.ranch-image img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 3px 3px #263b1712)}.ranch-image img[hidden]{display:none}.ranch-image-fallback,.ranch-image-unavailable:after{display:grid;place-items:center;width:100%;height:100%;border-radius:10px;background:var(--bg,#f0f4ed);color:var(--muted);font-size:12px}.ranch-image-unavailable:after{content:"物"}.ranch-item-label{display:inline-flex;align-items:center;gap:10px}.ranch-facility-title{display:flex;align-items:center;gap:12px;min-width:0}.ranch-facility-title>.ranch-image{width:62px;height:62px}.ranch-facility-title h2{line-height:1.6;margin:0}.ranch-yard>.card-head{gap:12px;flex-wrap:wrap}.ranch-animal-mark{width:76px;height:76px;flex:0 0 auto;border-radius:20px;background:linear-gradient(145deg,#f5f9eb,#e7f3e7)}.ranch-animal-mark .ranch-image{width:68px;height:68px}.ranch-animal-head h3{line-height:1.6}.ranch-animal-head small{display:block}.ranch-animal{background:linear-gradient(150deg,#f7faf233,var(--surface,#fff));transition:border-color .18s,box-shadow .18s}.ranch-animal:hover{border-color:#a3bd8b;box-shadow:0 5px 16px #365a2010}.ranch-empty{grid-column:1/-1;display:flex;align-items:center;gap:20px;padding:24px 16px;background:linear-gradient(110deg,#f4f8ed,#fafbf8);border:1px dashed #cfdec5;border-radius:14px}.ranch-empty>.ranch-image{width:104px;height:104px}.ranch-empty strong{font-size:15px;color:var(--text)}.ranch-empty p{color:var(--muted);font-size:13px;line-height:1.7;margin:8px 0 12px}.ranch-wallet>span>.ranch-image{width:38px;height:38px}.ranch-wallet>span{gap:8px}.ranch-reward{display:inline-flex;align-items:center;gap:7px}.ranch-reward .ranch-image{width:30px;height:30px}.ranch-shop-grid{grid-template-columns:repeat(auto-fill,minmax(215px,1fr));gap:18px}.ranch-good{padding:14px 14px 18px;gap:10px;overflow:hidden}.ranch-good-art{position:relative;width:100%;height:140px;display:grid;place-items:center;border-radius:11px;background:radial-gradient(ellipse at 50% 70%,#e4efd0 0,#f3f7ed 65%)}.ranch-good-art>.ranch-image{width:110px;height:110px;transition:transform .2s}.ranch-good:hover .ranch-good-art>.ranch-image{transform:translateY(-3px) scale(1.04)}.ranch-good-art>.badge{position:absolute;top:8px;left:8px;font-size:11px;background:#ffffffd9;color:#557343;border:1px solid #dbe7d1}.ranch-good h3,.ranch-good>p,.ranch-good>button,.ranch-good>.muted{margin-left:3px;margin-right:3px}.ranch-good>p.muted{min-height:44px;margin-bottom:0}.ranch-price{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.ranch-price .ranch-image{width:25px;height:25px}.ranch-price strong{font-size:18px;color:#956715}.ranch-price>span:last-child{font-size:12px;color:var(--muted)}.ranch-good>button{align-self:stretch;justify-content:center}.ranch-good-locked .ranch-good-art{background:radial-gradient(ellipse at 50% 70%,#e9eae3,#f5f6f2)}.ranch-good-locked>.muted{font-size:12px;line-height:1.6;margin-top:auto}.ranch-feed .card-head{flex-wrap:wrap;gap:8px}.ranch-feed>.card-head>strong{margin-left:auto;font-size:14px;white-space:nowrap}.ranch-confirm-preview{display:flex;align-items:center;gap:18px;padding:14px 18px;margin:12px 0 18px;border-radius:12px;background:#f0f6e9}.ranch-confirm-preview .ranch-image{width:72px;height:72px}[data-theme=dark] .ranch-animal{background:#182538}[data-theme=dark] .ranch-animal-mark,[data-theme=dark] .ranch-good-art,[data-theme=dark] .ranch-confirm-preview{background:radial-gradient(ellipse at 50% 65%,#314636,#21342e)}[data-theme=dark] .ranch-good-locked .ranch-good-art{background:#25312f}[data-theme=dark] .ranch-good-art>.badge{background:#1d3029e8;color:#bdd5a8;border-color:#476343}[data-theme=dark] .ranch-empty{background:linear-gradient(110deg,#21342c,#1a2932);border-color:#3b5746}[data-theme=dark] .ranch-price strong{color:#e5bd6a}@media(max-width:550px){.ranch-good{padding:10px;gap:8px}.ranch-good-art{height:118px}.ranch-good-art>.ranch-image{width:92px;height:92px}.ranch-good-art>.badge{top:5px;left:5px;padding:3px 6px;font-size:10px}.ranch-good h3{font-size:15px}.ranch-shop-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.ranch-wallet>span{width:auto;flex:1 1 140px}.ranch-wallet>span>.ranch-image{width:28px;height:28px}.ranch-wallet small{flex:1 0 100%}.ranch-empty{gap:12px;padding:16px 10px}.ranch-empty>.ranch-image{width:74px;height:74px}.ranch-facility-title>.ranch-image{width:50px;height:50px}.ranch-empty strong{font-size:14px}.ranch-empty p{font-size:12px}.ranch-good>p.muted{min-height:61px}.ranch-price{gap:4px}.ranch-price>span:last-child{flex-basis:100%;padding-left:2px}.ranch-price strong{font-size:17px}}@media(prefers-reduced-motion:reduce){.ranch-animal,.ranch-good-art>.ranch-image{transition:none}.ranch-good:hover .ranch-good-art>.ranch-image{transform:none}}.ranch-tabs{flex-wrap:wrap;gap:6px}.ranch-automation .control-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:20px 0}.ranch-automation .control-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px;border:1px solid var(--border);border-radius:12px;margin:0;min-width:0}.ranch-automation .control-row span{min-width:0}.ranch-automation .control-row small{display:block;color:var(--muted);line-height:1.7;font-size:12px;margin-top:6px}.ranch-automation .control-row input{flex:0 0 auto;width:20px;height:20px;accent-color:var(--primary,#6b9254)}.ranch-auto-fields{margin-top:20px;max-width:640px}.ranch-automation .actions{flex-wrap:wrap}.ranch-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}.ranch-metrics>div{padding:20px;border-radius:12px;background:var(--bg,#f2f6ed);display:flex;flex-direction:column;gap:10px}.ranch-metrics span,.ranch-counter-grid span{font-size:13px;color:var(--muted)}.ranch-metrics strong{font-size:28px;color:var(--text)}.ranch-counter-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:20px 0 28px}.ranch-counter-grid>div{border:1px solid var(--border);border-radius:10px;padding:12px;display:flex;justify-content:space-between;gap:10px;align-items:center}.ranch-counter-grid strong{font-size:14px;white-space:nowrap}.ranch-overview h3{margin-top:24px}.ranch-events{margin-top:14px}.ranch-event{display:flex;gap:12px;align-items:flex-start;padding:14px 0;border-top:1px solid var(--border)}.ranch-event>div{flex:1;min-width:0}.ranch-event strong{font-size:14px}.ranch-event p{margin:5px 0 0;color:var(--muted);font-size:12px;line-height:1.7;overflow-wrap:anywhere}.ranch-event time{font-size:12px;color:var(--muted);white-space:nowrap}.ranch-task-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:18px}.ranch-task{padding:18px;border:1px solid var(--border);border-radius:12px;min-width:0}.ranch-task .row{gap:8px;flex-wrap:wrap}.ranch-task h3{flex:1;font-size:14px;margin:0;min-width:120px;line-height:1.7}.ranch-task p{font-size:13px}.ranch-task>button{margin-top:16px}.ranch-overview>.card-head{gap:14px;flex-wrap:wrap}@media(max-width:750px){.ranch-automation .control-grid,.ranch-task-list{grid-template-columns:1fr}.ranch-counter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ranch-metrics>div{padding:14px}.ranch-metrics strong{font-size:23px}.ranch-event{flex-wrap:wrap}.ranch-event time{flex-basis:100%;padding-left:56px}.ranch-tabs>button{flex:1 1 120px}.ranch-auto-fields{grid-template-columns:1fr}.ranch-automation>.card-head{flex-wrap:wrap}.ranch-overview .card-head .row{flex-wrap:wrap}}@media(max-width:400px){.ranch-metrics{gap:6px}.ranch-metrics>div{padding:12px 8px}.ranch-metrics span{font-size:11px}.ranch-metrics strong{font-size:20px}.ranch-counter-grid>div{padding:10px 8px;gap:4px}.ranch-counter-grid span{font-size:12px}}.ranch-automation .control-row input[role=switch]{width:34px;height:19px}[data-theme=dark] .ranch-metrics>div{background:#253548}[data-theme=dark] .ranch-overview .reward-chip,[data-theme=dark] .ranch-task .reward-chip{background:#24374b;color:#dce6f0}.ranch-purchase-settings{margin:24px 0 12px}.ranch-purchase-setting{min-width:0}.ranch-purchase-setting select{max-width:100%;width:100%}.ranch-purchase-setting>[data-ranch-custom]{margin-top:14px}.ranch-purchase-setting>[hidden]{display:none}.ranch-automation .ranch-auto-group{margin-top:24px;padding-top:20px;border-top:1px solid var(--border)}.ranch-auto-group-head h3{font-size:14px;margin:0 0 6px}.ranch-auto-group-head .section-note{margin:0 0 12px}.ranch-automation .ranch-auto-group .control-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;margin:12px 0 0}.ranch-automation .ranch-auto-group .control-row{align-items:flex-start;padding:12px;gap:12px;border-radius:10px;background:var(--ui-surface-soft,var(--surface));font-size:12px}.ranch-automation .ranch-auto-group .control-row strong{font-size:12px;line-height:1.5}.ranch-automation .ranch-auto-group .control-row small{font-size:11px;line-height:1.6;margin-top:4px}.ranch-automation .ranch-auto-group .control-row input[role=switch]{margin-top:1px;flex:0 0 34px}.ranch-automation .ranch-auto-actions{display:flex;justify-content:flex-start;align-items:center;gap:8px;margin-top:24px;padding-top:16px;border-top:1px solid var(--border)}.ranch-automation .ranch-auto-actions>button{flex:0 0 auto;width:auto;min-width:0;margin:0;padding:9px 13px;white-space:nowrap}.ranch-friend-quotas{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px;max-width:560px}.ranch-friend-quotas>div{display:grid;grid-template-columns:1fr auto;align-items:center;gap:6px 12px;border:1px solid var(--border);border-radius:10px;padding:12px 14px;background:var(--ui-surface-soft,var(--surface))}.ranch-friend-quotas span,.ranch-friend-quotas small{font-size:11px;color:var(--muted)}.ranch-friend-quotas strong{font-size:18px;color:var(--text,var(--ui-ink));white-space:nowrap}.ranch-friend-quotas>div>small{grid-column:1/-1}@media(max-width:550px){.ranch-automation .ranch-auto-group .control-grid{grid-template-columns:minmax(0,1fr)}.ranch-automation .ranch-auto-actions>button{padding:9px 11px;font-size:11px}.ranch-friend-quotas>div{padding:10px;gap:6px}.ranch-friend-quotas strong{font-size:16px}.ranch-friend-quotas span{font-size:10px}}.ranch-bag-tabs{flex-wrap:wrap;gap:6px;margin:16px 0}.ranch-bag-tabs button{flex:1 1 100px}.ranch-wallet~.tabs+.table-wrap>.card-head{flex-wrap:wrap;gap:10px}.ranch-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}@media(max-width:750px){.ranch-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}.ranch-book-card,.ranch-mall-card{padding:18px;border:1px solid var(--border);border-radius:16px;background:var(--ui-surface,#fff);min-width:0}.ranch-book-card>.ranch-image{width:88px;height:88px}.ranch-mall-art{display:flex;gap:8px}.ranch-mall-art .ranch-image{width:64px;height:64px}.ranch-friend-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px;max-height:480px;overflow:auto;margin-top:16px}.ranch-friend-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid var(--border);border-radius:12px;padding:14px}.ranch-friend-row p{margin:6px 0}.ranch-friend-yard{border-top:1px solid var(--border);margin-top:18px;padding-top:18px}.ranch-friend-yard .ranch-animal-grid{margin-top:14px}.ranch-tabs{flex-wrap:wrap}@media(max-width:550px){.ranch-inventory table{min-width:0;width:100%;table-layout:fixed}.ranch-inventory th,.ranch-inventory td{white-space:normal;padding:10px 5px;overflow-wrap:anywhere}.ranch-inventory th:first-child{width:51%}.ranch-inventory th:nth-child(2){width:16%}.ranch-inventory th:last-child{width:33%}.ranch-inventory .ranch-item-label{gap:5px;font-size:12px}.ranch-inventory .ranch-item-label .ranch-image{width:28px;height:28px}.ranch-inventory button{font-size:11px;padding:7px 5px}}
