/* Mi PC: XP Explorer shell with a navigable removable drive demo. */
#mipc-window {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    color: #111;
    font: 11px Tahoma, sans-serif;
}

#mipc-window .mipc-menu-bar,
#mipc-window .mipc-function-bar,
#mipc-window .mipc-address-bar,
#mipc-window .mipc-status-bar {
    flex: 0 0 auto;
    background: #ece9d8;
}

#mipc-window .mipc-menu-bar {
    min-height: 22px;
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 1px 5px;
    border-bottom: 1px solid #aca899;
}

#mipc-window .mipc-menu-bar span {
    padding: 3px 7px;
    white-space: nowrap;
}

#mipc-window .mipc-function-bar {
    min-height: 38px;
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 3px 5px;
    border-bottom: 1px solid #aca899;
}

#mipc-window .mipc-function-bar button {
    min-width: 0;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    border: 1px solid transparent;
    background: transparent;
    box-shadow: none;
    font: 11px Tahoma, sans-serif;
}

#mipc-window .mipc-function-bar button:not(:disabled):hover,
#mipc-window .mipc-function-bar button[aria-pressed="true"] {
    border-color: #9eb5d7;
    background: linear-gradient(#fff, #e3e8f0);
    box-shadow: inset 1px 1px #fff;
}

#mipc-window .mipc-function-bar button:disabled {
    color: #8d8d8d;
    opacity: 0.58;
}

#mipc-window .mipc-function-bar .mipc-icon-button {
    width: 32px;
    justify-content: center;
    padding: 2px;
}

#mipc-window .mipc-function-bar img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

#mipc-window .mipc-function-bar .separator {
    width: 1px;
    height: 27px;
    margin: 0 3px;
    border-left: 1px solid #aca899;
    border-right: 1px solid #fff;
}

#mipc-window .mipc-address-bar {
    min-height: 28px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 3px 5px;
    border-bottom: 1px solid #aca899;
}

#mipc-window .mipc-address-bar > span {
    color: #4d4d4d;
}

#mipc-window .mipc-address-bar .address-input {
    min-width: 0;
    min-height: 21px;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 1px 4px;
    overflow: hidden;
    background: #fff;
    border: 1px inset #7f9db9;
}

#mipc-window .mipc-address-bar .address-input img {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    object-fit: contain;
}

#mipc-window .mipc-address-bar .address-input span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#mipc-window .mipc-main-content {
    min-width: 0;
    min-height: 0;
    flex: 1 1 auto;
    display: flex;
    overflow: hidden;
    background: #fff;
}

#mipc-window .mipc-left-panel {
    width: 184px;
    min-width: 184px;
    height: 100%;
    overflow-y: auto;
    padding: 10px 9px 16px;
    color: #0d2a72;
    background:
        radial-gradient(circle at 25% 8%, rgba(255,255,255,0.28), transparent 29%),
        linear-gradient(180deg, #7b96e5 0%, #637fd4 48%, #4e6bc5 100%);
    border-right: 1px solid #3157ad;
    box-shadow: inset -1px 0 rgba(255,255,255,0.2);
}

#mipc-window .mipc-left-panel .panel-section {
    margin: 0 0 11px;
    overflow: hidden;
    background: #d6dff7;
    border: 1px solid #fff;
    border-radius: 5px 5px 2px 2px;
    box-shadow: 0 1px 2px rgba(24, 54, 132, 0.34);
}

#mipc-window .mipc-left-panel .panel-header {
    margin: 0;
    padding: 6px 8px;
    color: #215dc6;
    background: linear-gradient(90deg, #fff, #c6d4f6);
    font: 700 11px Tahoma, sans-serif;
}

#mipc-window .mipc-task-link {
    width: 100%;
    min-width: 0;
    min-height: 28px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #0d2a72;
    font: 11px Tahoma, sans-serif;
    text-align: left;
    cursor: pointer;
}

#mipc-window .mipc-task-link:hover,
#mipc-window .mipc-task-link:focus-visible {
    color: #0054e3;
    text-decoration: underline;
    outline: 1px dotted #1b3b80;
    outline-offset: -3px;
}

#mipc-window .mipc-task-link img {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    object-fit: contain;
}

#mipc-window .mipc-details-section p {
    margin: 0;
    padding: 7px 8px 9px;
    line-height: 1.35;
}

#mipc-window .mipc-right-panel {
    min-width: 0;
    min-height: 0;
    flex: 1 1 auto;
    overflow: auto;
    padding: 18px 20px;
    background: #fff;
    outline: none;
}

#mipc-window .mipc-content-section {
    min-height: 100%;
}

#mipc-window .mipc-section-heading {
    margin: 0 0 12px;
    padding: 0 0 6px;
    color: #215dc6;
    border-bottom: 1px solid #d9e3f4;
    font: 700 12px Tahoma, sans-serif;
}

#mipc-window .mipc-items {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 14px 20px;
}

#mipc-window .mipc-item {
    width: 116px;
    min-width: 116px;
    min-height: 104px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    padding: 7px 5px;
    border: 1px solid transparent;
    border-radius: 2px;
    background: transparent;
    box-shadow: none;
    color: #111;
    font: 11px/1.25 Tahoma, sans-serif;
    text-align: center;
    cursor: default;
}

#mipc-window .mipc-item:hover {
    border-color: #b6cdf0;
    background: #eef5ff;
}

#mipc-window .mipc-item.selected,
#mipc-window .mipc-item:focus-visible {
    border-color: #316ac5;
    background: #c7d7f3;
    outline: 1px dotted #123c88;
    outline-offset: -4px;
}

#mipc-window .mipc-item img {
    width: 62px;
    height: 62px;
    object-fit: contain;
    pointer-events: none;
}

#mipc-window .mipc-empty-state {
    min-height: 180px;
    display: grid;
    place-items: center;
    padding: 28px;
    color: #595959;
    text-align: center;
}

#mipc-window .mipc-empty-state img {
    width: 48px;
    height: 48px;
    margin-bottom: 8px;
    opacity: 0.72;
}

#mipc-window .mipc-status-bar {
    min-height: 23px;
    display: grid;
    grid-template-columns: minmax(90px, 1fr) minmax(100px, 2fr);
    gap: 2px;
    padding: 2px;
    border-top: 1px solid #aca899;
}

#mipc-window .mipc-status-bar span {
    min-width: 0;
    overflow: hidden;
    padding: 2px 6px;
    border: 1px inset #fff;
    white-space: nowrap;
    text-overflow: ellipsis;
}

#mipc-window.sidebar-collapsed .mipc-left-panel,
#mipc-window [hidden] {
    display: none !important;
}

@media (max-width: 760px) {
    #mipc-window .mipc-menu-bar {
        overflow-x: auto;
        scrollbar-width: none;
    }

    #mipc-window .mipc-menu-bar::-webkit-scrollbar {
        display: none;
    }

    #mipc-window .mipc-menu-bar span {
        padding-inline: 6px;
    }

    #mipc-window .mipc-function-bar,
    #mipc-window .mipc-function-bar button {
        min-height: 44px;
    }

    #mipc-window .mipc-function-bar button span,
    #mipc-window .mipc-left-panel {
        display: none;
    }

    #mipc-window .mipc-right-panel {
        padding: 13px 10px;
    }

    #mipc-window .mipc-items {
        gap: 10px;
    }

    #mipc-window .mipc-item {
        width: calc(50% - 5px);
        min-width: 112px;
        min-height: 112px;
    }

    #mipc-window .mipc-item img {
        width: 68px;
        height: 68px;
    }
}
