.client-view-content {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

#cw1-window-controls {
    position: relative;
    z-index: 2;
    display: flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    height: 44px;
    min-height: 44px;
    min-width: 0;
    gap: 4px;
    padding: 4px 8px;
    box-sizing: border-box;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    background: rgba(20, 25, 31, 0.94);
    border-bottom: 1px solid rgba(255, 255, 255, 0.24);
}

#cw1-window-controls,
#cw1-window-controls * {
    box-sizing: border-box;
}

#cw1-window-controls .cw1-window-controls__button {
    display: inline-flex;
    flex: 0 0 32px;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    padding: 0;
    color: #f5f7fa;
    background: #2f3b47;
    border: 1px solid #617080;
    border-radius: 3px;
    cursor: pointer;
    font: 700 12px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
    touch-action: manipulation;
}

#cw1-window-controls .cw1-window-controls__button:hover:not(:disabled) {
    background: #405463;
}

#cw1-window-controls .cw1-window-controls__button:active:not(:disabled) {
    background: #536d7d;
}

#cw1-window-controls .cw1-window-controls__button:focus-visible {
    outline: 2px solid #f2c14e;
    outline-offset: 2px;
}

#cw1-window-controls .cw1-window-controls__button:disabled {
    cursor: not-allowed;
    opacity: 0.48;
}

#cw1-window-controls .cw1-window-controls__button--file {
    flex-basis: auto;
    width: auto;
    min-width: 68px;
    padding-right: 8px;
    padding-left: 8px;
}

#cw1-window-controls .cw1-window-controls__button--text {
    flex-basis: auto;
    width: auto;
    min-width: 52px;
    padding-right: 8px;
    padding-left: 8px;
}

#cw1-window-controls .cw1-window-controls__glyph {
    display: inline-block;
    min-width: 1em;
    text-align: center;
}

#cw1-window-controls .cw1-window-controls__file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

#cw1-window-controls .cw1-window-controls__file-status {
    flex: 1 1 16em;
    min-width: 0;
    margin-left: 4px;
    overflow: hidden;
    color: #c8d3dc;
    font: 12px/1.2 system-ui, sans-serif;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 420px) {
    #cw1-window-controls {
        flex-basis: 52px;
        height: 52px;
        min-height: 52px;
        justify-content: flex-start;
        gap: 3px;
        padding-right: 8px;
        padding-left: 8px;
    }
}

#cw1-window-taskbar,
#cw1-window-taskbar * {
    box-sizing: border-box;
}

#cw1-window-taskbar {
    position: relative;
    z-index: 2;
    display: flex;
    flex: 0 0 48px;
    align-items: center;
    width: 100%;
    height: 48px;
    min-height: 48px;
    min-width: 0;
    gap: 6px;
    padding: 4px 8px;
    overflow: hidden;
    color: #e8edf2;
    background: #171e26;
    border-top: 1px solid rgba(255, 255, 255, 0.24);
    font: 12px/1.2 system-ui, sans-serif;
}

#cw1-window-taskbar .cw1-window-taskbar__status {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 15em;
    overflow: hidden;
    color: #aebbc6;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#cw1-window-controls .cw1-window-controls__button--disconnect {
    flex: 0 0 auto;
    min-width: 76px;
    color: #fff8d8;
    border-color: #8d7938;
}

#cw1-window-taskbar .cw1-window-taskbar__windows {
    display: flex;
    flex: 1 1 auto;
    align-items: stretch;
    align-self: stretch;
    min-width: 0;
    gap: 5px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
}

#cw1-window-taskbar .cw1-window-taskbar__window {
    display: flex;
    flex: 0 0 auto;
    align-items: stretch;
    min-width: 0;
    max-width: min(34vw, 420px);
    min-height: 38px;
    margin: 0;
    overflow: hidden;
    background: #26323d;
    border: 1px solid #526374;
    border-radius: 3px;
}

#cw1-window-taskbar .cw1-window-taskbar__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0;
    color: #f5f7fa;
    background: transparent;
    border: 0;
    cursor: pointer;
    font: inherit;
    touch-action: manipulation;
}

#cw1-window-taskbar .cw1-window-taskbar__button:hover:not(:disabled) {
    background: #405463;
}

#cw1-window-taskbar .cw1-window-taskbar__button:active:not(:disabled) {
    background: #536d7d;
}

#cw1-window-taskbar .cw1-window-taskbar__button:focus-visible {
    position: relative;
    z-index: 1;
    outline: 2px solid #f2c14e;
    outline-offset: -2px;
}

#cw1-window-taskbar .cw1-window-taskbar__button:disabled {
    cursor: not-allowed;
    opacity: 0.42;
}

#cw1-window-taskbar .cw1-window-taskbar__title {
    flex: 1 1 12em;
    min-width: 8em;
    max-width: min(27vw, 340px);
    justify-content: flex-start;
    padding: 0 9px;
    overflow: hidden;
    text-align: left;
}

#cw1-window-taskbar .cw1-window-taskbar__title--active {
    color: #fff8d8;
    background: #354b5a;
    box-shadow: inset 0 -2px 0 #f2c14e;
}

#cw1-window-taskbar .cw1-window-taskbar__title-text {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#cw1-window-taskbar .cw1-window-taskbar__window-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
}

#cw1-window-taskbar .cw1-window-taskbar__window-control {
    flex: 0 0 26px;
    width: 26px;
    min-width: 26px;
    height: 30px;
    font: 700 14px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
}

#cw1-window-taskbar .cw1-window-taskbar__truncated {
    flex: 0 0 auto;
    min-width: 1.2em;
    color: #f2c14e;
    font-size: 18px;
    line-height: 1;
    text-align: center;
}

@media (max-width: 420px) {
    #cw1-window-taskbar {
        flex-basis: 44px;
        height: 44px;
        min-height: 44px;
        gap: 4px;
        padding-right: 6px;
        padding-left: 6px;
    }

    #cw1-window-taskbar .cw1-window-taskbar__status {
        max-width: 11em;
    }

    #cw1-window-taskbar .cw1-window-taskbar__window {
        min-height: 34px;
        max-width: min(72vw, 280px);
    }

    #cw1-window-taskbar .cw1-window-taskbar__title {
        max-width: 45vw;
        min-width: 6em;
        padding-right: 6px;
        padding-left: 6px;
    }

    #cw1-window-taskbar .cw1-window-taskbar__window-control {
        flex-basis: 24px;
        width: 24px;
        min-width: 24px;
    }

    #cw1-window-controls .cw1-window-controls__button--disconnect {
        min-width: 68px;
    }
}
