/* WAHAJ prototype — Mission 05: Teach the Sorter. The mission screen is shared with the other missions
   (css/mission.css, the Moon's .mm rules for part photos, and the Program panel's .hg rules in factory.css);
   this file draws the recycling hall on the site plan, the 2D fallback scene and the Teach panel. */

/* ---------- the scene (2D fallback): the hall, with the line in the open middle of the screen ---------- */
.rm .mx-scene.rc-scene { background: #a9a59c}
.rc-sky { position: absolute; inset: 0; width: 100%; height: 100%; display: block}
.rc-host { position: absolute; inset-inline-start: 296px; top: 206px; width: 732px; height: 457px; direction: ltr; transition: filter .6s}
.rc-host .g2d, .rc-host .g2d-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block}
.rc-host .g2d-scale, .rc-host .g2d-north, .rc-host .g2d-xy { display: none}
.rc-host .g-minor, .rc-host .g-major { stroke: transparent}
.rc-host .g-it { cursor: default}
.rc-host .g-it .g-sh { fill-opacity: .75; stroke-width: 1.4}
.rc-host .g-it .g-ic { color: #111112}
.rc-host.dust { filter: sepia(.6) saturate(1.4) brightness(.85)}
.rc-host.rc-build .g-it { cursor: pointer}
.rc-host .g-it.slot .g-sh { fill-opacity: .08; stroke-dasharray: 3 3; animation: mmSlot 1.6s ease-in-out infinite}
.rc-host .g-it.slot .g-ic { color: currentColor; opacity: .7}
.rc-host .g-it.slot:hover .g-sh { fill-opacity: .22}
.rc-host .g-it.mm-new .g-sh, .rc-host .g-it.mm-flash .g-sh { animation: mmPop .9s ease-out 2}
#stage[dir="rtl"] .rc-host:not(.rc-in) { inset-inline-start: 420px}
.mx-plan .rc-host.rc-in { inset-inline-start: 12px; inset-inline-end: 12px; top: 12px; bottom: 86px; width: auto; height: auto; border-radius: 10px; overflow: hidden; background: #a9a59c}

/* ---------- the recycling hall on the site plan ---------- */
.rc-floor { fill: #b9b5ac}
.rc-wall { fill: none; stroke: #6e6e73; stroke-width: .2}
.rc-aisle { fill: #f2c230; fill-opacity: .16}
.rc-aisle-l { stroke: #f2c230; stroke-width: .12; fill: none}
.rc-team { fill: #d2cdc3; stroke: #8f8a80; stroke-width: .06}
.rc-tbelt { fill: #2b2f33}
.rc-person { fill: #FF9F0A}
.rc-belt { fill: #2b2f33}
.rc-roll { stroke: #3a3d41; stroke-width: .05}
.rc-arrow { stroke: #f5f5f7; stroke-width: .1; fill: none; stroke-linecap: round; stroke-linejoin: round}
.rc-mach { fill: #d2d2d7; stroke: #8f8a80; stroke-width: .08}
.rc-bale { stroke: #3a3d41; stroke-width: .05}
.rc-bale.b { fill: #7fb8e8}
.rc-bale.c { fill: #b9bec4}
.rc-bale.k { fill: #b88a5a}
.rc-exit { fill: #00FF6F}
.rc-host .rc-floor { fill: transparent}

/* ---------- inventory: four parts and Teach ---------- */

/* ---------- Teach: the photos the AI learns from, and how sure it must be ---------- */
.rg h5 small.rg-base { display: inline-flex; align-items: center; gap: 4px; margin-inline-start: 8px; font-size: 12px; font-weight: 500; color: var(--muted)}
.rg h5 small.rg-base .ico { color: var(--accent)}
.rg-kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 8px}
.rg-kind { position: relative; display: grid; grid-template-columns: 56px 1fr 22px; gap: 10px; align-items: center; padding: 8px 10px 8px 8px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--panel-2); text-align: start; transition: border-color .15s}
.rg-kind img { width: 56px; height: 46px; border-radius: 9px; object-fit: cover; display: block}
.rg-kind b { display: block; font-size: 14px; color: var(--text)}
.rg-kind small { display: block; margin-top: 1px; font-size: 12px; line-height: 1.3; color: var(--text-2)}
.rg-kind i { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--muted)}
.rg-kind.on { border-color: var(--accent); background: var(--tile)}
.rg-kind.on i { background: var(--accent-fill, var(--accent)); border-color: transparent; color: #000}
.rg-kind.off { opacity: .55}
.rg .hg-seg button b { font-size: 15px}

/* the recycling plan is drawn in metres, so its label outlines are thin */
.g2d-svg[data-g2d-svg^="recycle"] .g-lab { stroke-width: .16px}
.g2d-svg[data-g2d-svg^="recycle"] text { text-rendering: geometricPrecision; letter-spacing: 0}
