#potree_sidebar_container { overflow: hidden; }
#sidebar_root { height: 100%; display: flex; flex-direction: column; }
#sidebar_header {
    flex: 0 0 auto;
    padding: 14px;
    border-bottom: 1px solid #59656a;
}
.wingtra_logo { display: block; width: 175px; max-width: 100%; height: auto; }
#sidebar_content { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
#sidebar_footer {
    flex: 0 0 auto;
    padding: 16px 14px max(16px, env(safe-area-inset-bottom));
    border-top: 1px solid #59656a;
    font: 14px Arial, sans-serif;
    background: #19282c;
}
#sidebar_footer a {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border: 1px solid #f36c21;
    border-radius: 4px;
    background: #f36c21;
    color: #151515;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
}
#sidebar_footer a:hover { background: #ff8741; border-color: #ff8741; }
#sidebar_footer a:active { background: #e95e13; }
#sidebar_footer a:focus-visible { outline: 2px solid #f36c21; outline-offset: 4px; }
#display_controls {
    padding: 12px 14px;
    border-bottom: 1px solid #59656a;
    font: 13px Arial, sans-serif;
    color: #e8edf0;
}
#display_controls * { box-sizing: border-box; }
#display_controls .display_modes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0 0 10px;
    padding: 0;
    border: 1px solid #78868c;
    border-radius: 4px;
    overflow: hidden;
}
#display_controls .display_modes label { position: relative; min-width: 0; }
#display_controls .display_modes input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    z-index: 1;
    cursor: pointer;
}
#display_controls .display_modes span {
    display: block;
    padding: 8px 2px;
    text-align: center;
    background: #253239;
    cursor: pointer;
}
#display_controls .display_modes input:checked + span { background: #dbe8e8; color: #15252c; }
#display_controls .display_modes input:focus-visible + span { outline: 2px solid #ffcc66; outline-offset: -3px; }
#display_controls summary { cursor: pointer; padding: 6px 0; font-weight: bold; }
#display_controls .class_actions { display: flex; gap: 6px; padding: 6px 0; }
#display_controls button {
    background: #354950;
    color: #eef4f5;
    border: 1px solid #72858c;
    border-radius: 3px;
    padding: 4px 7px;
    cursor: pointer;
    font: inherit;
}
#display_controls button:hover { background: #49616a; }
#display_controls .intensity_controls { padding: 4px 0 12px; }
#display_controls .intensity_controls label { display: flex; align-items: center; justify-content: space-between; margin: 6px 0; }
#display_controls .intensity_controls input[type=number] {
    width: 64px;
    background: #253239;
    color: #e8edf0;
    border: 1px solid #78868c;
    border-radius: 3px;
    padding: 4px;
}
#display_controls .intensity_controls input[type=range] { width: 100%; margin: 4px 0 10px; }
#advanced_rendering { padding: 4px 10px 10px; font: 13px Arial, sans-serif; }
#advanced_rendering summary { padding: 6px 0; cursor: pointer; font-weight: bold; }
#advanced_rendering .point_size_control label { display: flex; justify-content: space-between; align-items: center; }
#advanced_rendering .point_size_control input { width: 100%; margin: 8px 0; }
#display_controls .class_row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 24px;
    align-items: center;
    gap: 6px;
    min-height: 43px;
    border-bottom: 1px solid #35474e;
}
#display_controls .class_row label { display: flex; align-items: center; gap: 7px; min-width: 0; }
#display_controls .class_row input[type=checkbox] { margin: 0; flex-shrink: 0; }
#display_controls .class_count { display: block; color: #a6b8c0; font-size: 11px; padding-top: 2px; }
#display_controls input[type=color] {
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}
@media (max-width: 759px) {
    #potree_render_area[style*="300px"] #potree_description { display: none; }
}
