
/* Shrink GoldenLayout's container to leave 90px at the bottom for the orb.
   GoldenLayout mounts inside #main-sub — reducing its height pushes the
   entire layout (including the input row) up away from the screen bottom. */
#main-sub {
    height: calc(100% - 90px) !important;
}

/* Hide the GoldenLayout drag/resize handle */
.lm_splitter {
    display: none !important;
}
.lm_drag_handle {
    display: none !important;
}

/* Input bar layout */
#inputform {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    padding: 4px 8px;
    height: 100%;
    box-sizing: border-box;
}

/* Lock the textarea to one line */
#inputfield {
    height: 100% !important;
    min-height: unset !important;
    resize: none !important;
}

/* Health Orb — fixed, bottom-left, below the input bar */
#healthbar-panel {
    position: fixed;
    bottom: 0;
    left: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    z-index: 9999;
    pointer-events: none;
}

#orb-container {
    position: relative;
    width: 70px;
    height: 70px;
}

.orb-layer {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
}

.orb-liquid-clip {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border-radius: 50%;
    overflow: hidden;
}

.orb-color {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, #6e0000, #c41a1a);
    transition: height 0.5s ease;
}

.orb-color.orb-dead {
    height: 0% !important;
    transition: none;
}

.orb-tex {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    mix-blend-mode: overlay;
    opacity: 0.55;
    pointer-events: none;
}

.orb-highlight {
    mix-blend-mode: screen;
    opacity: 0.35;
}

.hb-text {
    color: #ccc;
    font-size: 9px;
    text-align: center;
    font-family: monospace;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}
