/* Planificador de cultivos de Aniimo (/aniimo/farm/). Usa hub.css, stardew.css y aniimo.css. */
.fm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px 18px; align-items: end; margin-bottom: 6px; }
.fm-field { display: grid; gap: 6px; font-weight: 700; }
.fm-field input[type="number"] { width: 100%; }
.fm-rv { display: grid; grid-template-columns: 1fr 76px; gap: 10px; align-items: center; }
.fm-zones { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-top: 8px; }
.fm-zone { display: grid; gap: 4px; padding: 10px 12px; border-radius: 14px; background: var(--dusk-2); border: 1px solid rgba(255, 255, 255, .08); }
.fm-zone.off { opacity: .55; }
.fm-zname { font-weight: 800; }
.fm-zone input { width: 80px; }
.fm-zone small { color: var(--muted); }
#fSummary h3 { margin: 12px 0 4px; font-size: 16px; }
#fSummary ul, #fPlan ul { margin: 4px 0 8px; padding-left: 1.2em; }
#fSummary li, #fPlan li { margin: 4px 0; line-height: 1.5; }
.fm-filters { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin: 8px 0 10px; }
.fm-sel select { margin-left: 6px; }
.fm-table th, .fm-table td { vertical-align: middle; }
.fm-table th small, .fm-table td small { color: var(--muted); font-weight: 600; }
.fm-sort { background: none; border: 0; color: inherit; font: inherit; font-weight: 800; cursor: pointer; padding: 0; text-align: left; }
.fm-locked { opacity: .45; }
.fm-plots { width: 70px; }
.fm-req { display: inline-block; padding: 2px 9px; border-radius: 999px; font: 800 12px var(--font-body); white-space: nowrap; background: #352850; }
.fm-req.fm-light { background: rgba(255, 229, 138, .18); color: #FFE58A; }
.fm-req.fm-warm1, .fm-req.fm-warm2 { background: rgba(255, 138, 92, .2); color: #FFB08A; }
.fm-req.fm-cold1, .fm-req.fm-cold2 { background: rgba(127, 216, 238, .18); color: #9FE4F4; }
.fm-ok { color: #A8F0CF; font-weight: 700; }
.fm-bad { color: #FFB0B0; font-weight: 700; }
.fm-warn { color: #FFD79A; }
@media (max-width: 640px) { .fm-table { font-size: 13px; } }

/* Diseñador del hogar */
.fl-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; align-items: start; }
.fl-wrap { overflow: auto; max-height: 78vh; border-radius: 14px; background: #1b1530; border: 1px solid rgba(255, 255, 255, .08); }
#flMap { display: block; touch-action: manipulation; user-select: none; }
.fl-side h3 { margin: 0 0 6px; font-size: 16px; }
.fl-side h4 { margin: 10px 0 4px; font-size: 14px; }
.fl-side ul { margin: 4px 0 8px; padding-left: 1.2em; }
.fl-side li { margin: 3px 0; line-height: 1.45; }
.fl-plot { fill: rgba(130, 200, 120, .16); stroke: rgba(255, 255, 255, .35); stroke-width: .12; }
.fl-plot.fl-locked { fill: rgba(0, 0, 0, .45); }
.fl-plotn { fill: rgba(255, 255, 255, .55); font: 700 1.1px var(--font-body, sans-serif); }
.fl-it { stroke: rgba(255, 255, 255, .6); stroke-width: .1; cursor: pointer; }
.fl-k-farm { fill: #8B6B3E; } .fl-k-wood { fill: #3E7A45; }
.fl-k-mine, .fl-k-stn, .fl-k-box { fill: #6B6F85; }
.fl-k-heat { fill: #C2502B; } .fl-k-cool { fill: #3C86B4; } .fl-k-sun { fill: #D6A92A; }
.fl-st-ok { stroke: #6EE7A8; stroke-width: .22; } .fl-st-warn { stroke: #FFC05C; stroke-width: .22; } .fl-st-bad { stroke: #FF6B6B; stroke-width: .22; }
.fl-bad { opacity: .35; stroke: #FF6B6B; }
.fl-sel { stroke: #fff; stroke-width: .3; stroke-dasharray: .5 .3; }
.fl-tl { fill: #fff; font-weight: 700; }
.fl-zone { stroke-width: .08; stroke-dasharray: .4 .3; }
.fl-z-h1 { fill: rgba(255, 150, 70, .16); stroke: #FFA55C; } .fl-z-h2 { fill: rgba(255, 70, 40, .22); stroke: #FF6B4A; }
.fl-z-c1 { fill: rgba(120, 200, 255, .16); stroke: #86D0FF; } .fl-z-c2 { fill: rgba(60, 110, 255, .24); stroke: #6E8BFF; }
.fl-z-sun { fill: rgba(255, 230, 100, .18); stroke: #FFE58A; }
.fl-ghost { fill: rgba(255, 255, 255, .15); stroke-width: .2; } .fl-gok { stroke: #6EE7A8; } .fl-gno { stroke: #FF6B6B; fill: rgba(255, 80, 80, .25); }
.fl-gz { fill: none; stroke: rgba(255, 255, 255, .5); stroke-width: .1; stroke-dasharray: .4 .3; }
@media (max-width: 900px) { .fl-layout { grid-template-columns: 1fr; } }
