/* ============================================================
   Image panel — channel view and LSB extraction in-page
   (chain stages, maze terminals, Workshop)
   Location: assets/css/image-lab.css   (after workbench.css)
   ============================================================ */
.ilab {
    display: grid;
    gap: 12px;
    font-family: 'Courier New', Courier, monospace;
}
.ilab-work { display: grid; gap: 12px; }
.ilab-frame {
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 6px;
    background: #000;
    padding: 6px;
    text-align: center;
    overflow: hidden;
}
.ilab-canvas {
    display: block;
    max-width: 100%;
    max-height: 420px;
    height: auto;
    margin: 0 auto;
    image-rendering: pixelated;
}
.ilab-info { color: #8a8; font-size: 0.85em; }
.ilab-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    align-items: flex-end;
}
.ilab-controls label {
    display: grid;
    gap: 4px;
    color: #0f0;
    font-size: 0.85em;
}
.ilab-controls label > span {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
}
.ilab .ilab-check {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #cfc;
    padding-bottom: 6px;
}
.ilab-check[hidden] { display: none; }
/* What to look for on this stage: a picture (view) or hidden text (extract) */
.ilab-guide {
    padding: 10px 14px;
    border: 1px solid rgba(0, 255, 255, 0.45);
    border-left: 4px solid #0ff;
    border-radius: 6px;
    background: rgba(0, 40, 40, 0.35);
    color: #cff;
    line-height: 1.5;
}
.ilab-guide strong { color: #0ff; }
.ilab-status { margin: 0; color: #0ff; font-size: 0.9em; }
.ilab-status:empty { display: none; }
.ilab-result { display: grid; gap: 8px; }
.ilab-result[hidden], .ilab-work[hidden] { display: none; }
.ilab .ilab-out { min-height: 60px; background: rgba(0, 40, 0, 0.6); }
.ilab-note { margin: 0; color: #c9a; font-size: 0.85em; }
.ilab-note.is-found { color: #8f8; }
.ilab .ilab-send:disabled { opacity: 0.45; cursor: not-allowed; }

/* Upload (Workshop) */
.ilab-drop {
    display: block;
    padding: 18px;
    border: 2px dashed rgba(0, 255, 0, 0.45);
    border-radius: 8px;
    color: #cfc;
    text-align: center;
    cursor: pointer;
    line-height: 1.5;
    text-transform: none;
    letter-spacing: normal;
    font-weight: normal;
}
.ilab-drop strong { color: #0f0; }
.ilab-drop.is-over, .ilab-drop:hover { border-color: #0ff; background: rgba(0, 255, 255, 0.06); }
.ilab-drop:focus-within { outline: 2px solid #0ff; outline-offset: 2px; }
.ilab-file {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}
.ilab-muted { display: block; color: #8a8; font-size: 0.85em; }

/* Placement on pages */
.pz-imagelab h2, .ws-imagelab summary { color: #0f0; }
.ws-imagelab { margin-bottom: 18px; }
.ws-imagelab summary { cursor: pointer; font-weight: bold; padding: 6px 0; }
.ws-imagelab[open] summary { margin-bottom: 10px; }
.maze-imagelab { margin: 10px 0 14px; }

@media (max-width: 600px) {
    .ilab-controls { display: grid; grid-template-columns: 1fr 1fr; }
    .ilab-controls .ilab-check { grid-column: 1 / -1; }
    .ilab-canvas { max-height: 300px; }
}
