/* ---- Seedhouses (add-on, Gin edition): public/js/seedhouse.js, seedhouse-draw.js, the seedHouse widget */
.sh-line { font-size: 24px; font-weight: 800; line-height: 1.25; cursor: pointer; margin-bottom: 8px; }
.sh-big { font-size: 20px; }
.sh-note { background: var(--panel2); border-left: 5px solid var(--warn, #d97706); padding: 8px 12px; border-radius: 8px; }
.sh-alert { background: color-mix(in srgb, var(--fault, #dc2626) 16%, transparent); border-left: 5px solid var(--fault, #dc2626); padding: 7px 12px; border-radius: 8px; margin: 6px 0; font-weight: 600; }
.sh-sidebox { background: var(--panel2); border: 1px solid var(--line2); border-radius: 10px; padding: 6px; margin: 8px 0; cursor: pointer; }
.sh-sidebox.big { cursor: default; }
.sh-side { width: 100%; height: auto; display: block; }
.sh-side .sh-grid { stroke: var(--line); stroke-dasharray: 4 4; } .sh-side .sh-post { stroke: #8e2f2a; stroke-width: 1.5; opacity: 0.85; } .sh-side .sh-dot { stroke-dasharray: 2 5; }
.sh-side .sh-mut, .sh-side text.sh-mut { fill: var(--dim); } .sh-side .sh-mutl { stroke: var(--dim); }
.sh-side .sh-fg { fill: var(--text); } .sh-side .sh-trim { stroke: var(--text2); } .sh-side .sh-linel { stroke: var(--line); }
.sh-3dbox { background: var(--panel2); border: 1px solid var(--line2); border-radius: 10px; padding: 6px; margin: 8px 0; }
.sh-3d { width: 100%; height: min(58vh, 560px); display: block; cursor: grab; }
.sh-seg { display: inline-flex; gap: 4px; }
.sh-fans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin: 10px 0; }
.sh-fan { background: var(--panel2); border: 1px solid var(--line2); border-left: 8px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.sh-fan.sh-ok { border-left-color: #16a34a; } .sh-fan.sh-check { border-left-color: #d97706; } .sh-fan.sh-bad { border-left-color: #dc2626; } .sh-fan.sh-off { opacity: .8; }
.sh-fan-h { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.sh-state { font-size: 22px; font-weight: 800; letter-spacing: .02em; }
.sh-fan.sh-ok .sh-state { color: #16a34a; } .sh-fan.sh-check .sh-state { color: #d97706; } .sh-fan.sh-bad .sh-state { color: #dc2626; } .sh-fan.sh-off .sh-state { color: var(--dim); }
.sh-fan-n { font-size: 18px; font-weight: 700; margin-top: 4px; }
.sh-why { color: var(--text2); font-size: 14px; margin-top: 4px; }
.sh-small { font-size: 13px; color: var(--dim); }
.sh-aer { margin-top: 8px; padding: 6px 10px; border-radius: 8px; background: var(--panel); border-left: 5px solid var(--line); font-size: 14px; }
.sh-aer.sh-ok { border-left-color: #16a34a; } .sh-aer.sh-check { border-left-color: #d97706; } .sh-aer.sh-bad { border-left-color: #dc2626; }
.sh-sug { margin-top: 8px; padding: 6px 10px; border-radius: 8px; background: color-mix(in srgb, var(--accent, #3b82f6) 18%, transparent); font-size: 15px; }
.sh-probes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 8px 0; }
.sh-probe { background: var(--panel2); border: 1px solid var(--line2); border-left: 8px solid var(--line); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; }
.sh-probe b { font-size: 13px; letter-spacing: .06em; color: var(--text2); } .sh-pt { font-size: 28px; font-weight: 800; line-height: 1.1; }
.sh-probe small { color: var(--dim); font-size: 12px; } .sh-probe.flag { box-shadow: inset 0 0 0 2px #dc2626; } .sh-flag { color: #dc2626 !important; font-weight: 700; }
.sh-okt { color: #16a34a; font-weight: 700; } .sh-badt { color: #dc2626; font-weight: 700; }
.sh-doors { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.sh-door { min-width: 86px; min-height: 64px; border-radius: 10px; border: 2px solid var(--line); background: var(--panel2); color: var(--text); font: inherit; cursor: pointer; }
.sh-door.open { border-color: #16a34a; } .sh-door.open b { color: #16a34a; } .sh-door.shut { border-color: #dc2626; } .sh-door.shut b { color: #dc2626; } .sh-door:disabled { cursor: default; opacity: .7; }
.sh-key { display: block; padding: 10px; background: var(--panel2); border-radius: 8px; word-break: break-all; user-select: all; }
.w-seed { height: 100%; display: flex; flex-direction: column; padding: 8px 10px; background: var(--panel); border: 1px solid var(--line2); border-radius: 12px; overflow: hidden; cursor: pointer; }
.w-seed h4 { margin: 0 0 6px; font-size: 16px; font-weight: 800; }
.w-seed-g { flex: 1; min-height: 0; overflow: hidden; } .w-seed-g svg { width: 100%; height: 100%; }
.w-seed-3d { width: 100%; height: 100%; display: block; cursor: grab; }
.w-seed-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.w-seed-f, .w-seed-p { flex: 1; min-width: 92px; background: var(--panel2); border-radius: 8px; padding: 4px 8px; border-left: 6px solid var(--line); display: flex; flex-direction: column; }
.w-seed-f.ok { border-left-color: #16a34a; } .w-seed-f.check { border-left-color: #d97706; } .w-seed-f.problem { border-left-color: #dc2626; }
.w-seed-f small, .w-seed-p small { color: var(--dim); font-size: 11px; } .w-seed-f b, .w-seed-p b { font-size: 18px; } .w-seed-f span, .w-seed-p span { font-size: 11px; color: var(--text2); }
.w-seed-a { font-size: 12px; font-weight: 700; color: #dc2626; }
.w-seed-side { max-height: 55%; } .w-seed-side svg { max-height: 100%; }
body.phone .sh-line { font-size: 18px; }
.sh-draft { border-top: 1px solid var(--line2); padding-top: 8px; margin-top: 8px; } .sh-draft:first-of-type { border-top: 0; }

/* 1.57.20: 3D view controls and key, the airflow cross-section on the Air tab (Kenton's slice panel) */
.sh-3dctl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 6px; }
.sh-key { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; }
.sh-key .ramp { width: 120px; height: 8px; border-radius: 4px; display: inline-block; }
.sh-key .sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; vertical-align: -2px; margin-right: 3px; }
.sh-slicewrap { width: 100%; aspect-ratio: 131 / 92; max-height: 62vh; background: var(--panel2); border: 1px solid var(--line2); border-radius: 8px; overflow: hidden; margin-top: 8px; }
.sh-slicewrap canvas { width: 100%; height: 100%; display: block; }
.sh-slicex { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.sh-slicex input[type=range] { flex: 1 1 220px; min-width: 160px; }
@media (max-width: 600px) { .sh-3d { height: min(78vw, 420px); } }
