/*
----------------------------------------------------------

                    Greyd.Hub Styles

----------------------------------------------------------
*/
/* general */
.hub_remote_title {
    font-size: 1.75em;
}
.hub_panel {
    margin: 30px 0;
    position: relative;
    transition: opacity .4s ease;
}
.hub_panel > section {
    margin-bottom: 50px;
    position: relative;
}
.hub_tab {
    display: none;
}
.hub_tab.default {
    display: block;
}

/* small buttons */
.hub_panel .button.small {
    margin-right: 4px;
}
.hub_panel .button.small:last-child {
    margin-right: 0;
}

/*
    Messages
*/
.hub_msg {
    font-size: 15px;
    line-height: 18px;
    padding: 10px 15px;
    margin: 20px 20px 0 2px;
    border: 1px solid #ccc;
    border-left: 5px solid #ccc;
    background-color: #fff;
}
.hub_msg.msg_list {
    font-size: 12px;
    padding: 1px 25px;
    margin-top: 0px;
    border-top-width: 0px;
}
.hub_msg .close {
    position: absolute;
    color: #72777c;
    right: 30px;
}
.hub_msg .close:hover {
    color: #c00;
    cursor: pointer;
}
.hub_msg .close::before {
    content: "\f153";
    display: block;
    height: 20px;
    width: 20px;
    font: normal 16px/20px dashicons;
    text-align: center;
    background: 0 0;
}
.hub_msg.info {
    border-left-color: #4da3ce; /*#31708f;*/
}
.hub_msg.success {
    border-left-color: #46b450; /*#328566;*/
}
.hub_msg.danger {
    border-left-color: #dc3232; /*#b11500;*/
}
.hub_msg a {
    font-size: 13px;
}

/*
    Websites
*/
/* Domain */
.hub_domain a {
    display: inline-block;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
    word-break: break-all;
    margin-top: .3em;
}
.hub_domain a:not(:hover) {
    text-decoration: none;
}
.greyd_tile small > .dashicons {
    height: 1.5em;
    width: 1.5em;
    font-size: 1.5em;
    opacity: .75;
}

/* greyd tile */
.hub_panel .greyd_tile_wrapper {
    align-items: start
}

/* title */
.greyd_tile .hub_title h4 {
    font-size: 1.5em;
    line-height: 120%;
    margin: .4em 0 .4em;
    -webkit-transition: color .2s;
    transition: color .2s;
}
.greyd_tile .hub_title h5 {
    font-size: 1em;
    font-weight: 400;
    margin: 0 0 1em;
    -webkit-transition: color .2s;
    transition: color .2s;
}
.greyd_tile:hover .hub_title h4,
.greyd_tile:hover .hub_title h5 {
    color: #000;
}

/* Links */
.greyd_tile .hub_links a {
    display: inline-block;
    text-decoration: none;
    margin: 0 1em .7em 0;
    white-space: nowrap;
    text-decoration: none;
}
.greyd_tile .hub_links a span:not(.dashicons) {
    text-decoration: underline;
}
.greyd_tile .hub_links a span {
    vertical-align: middle;
}

/* buttons */
.greyd_tile .button .dashicons:not(:first-child) {
    margin-left: 4px;
}

/* Inner Tabs */
.greyd_tile .greyd_tabs {
    margin: 0 -20px;
    padding: 0 7px;
    height: 30px;
    background: none;
}
.greyd_tile .greyd_tabs .tab {
    background: none;
    padding: 0px 12px;
}
.greyd_tile .greyd_tabs .tab.active {
    border-top-width: 2px;
    background: #F5F5F5;
}
.greyd_tile .tab_view:not(.active) {
    display: none;
}

/* Inner Sections */
.greyd_tile .inner {
    font-size: 12px;
    margin: 0 -20px -2px;
    padding: 0;
}
.greyd_tile .inner.border-top {
    border-top: 1px solid #c4c4c4;
}
.greyd_tile .inner > div {
    background: #F5F5F5;
    padding: 12px 12px;
    border-bottom: 1px solid #DDDDDD;
}
.greyd_tile .inner p {
    font-size: .9em;
    margin: 0 0 6px;
}
.greyd_tile .inner small {
    font-size: .75em;
}
.greyd_tile .inner i {
    font-size: .95em;
    opacity: .75;
}
.greyd_tile .inner :not(.popup) > small {
    opacity: .5;
}
.greyd_tile .inner .button {
    margin-bottom: 8px;
}
.greyd_tile .inner .button .dashicons:not(:last-child) {
    margin-right: 4px;
}
.greyd_tile .inner ul {
    list-style: disc;
    margin: 0;
}
.greyd_tile .inner li {
    margin: 0 0 4px 18px;
}
.greyd_tile .inner .greyd_popup_wrapper .dashicons {
    font-size: small;
    vertical-align: middle;
    margin-bottom: 0;
}

/* frame */
.greyd_tile .hub_frame_wrapper {
    position: relative;
    margin: 0 -20px;
    width: calc(100% + 40px);
    height: 0;
    padding-top: 67%;
    border-radius: 2px 2px 0 0;
    overflow: hidden;
    background: #F5F5F5;
    border-bottom: 1px solid #DDDDDD;
}
.greyd_tile .hub_frame {
    position: absolute;
    top: 0;
    left: 0;
    height: 400%;
    width: 400%;
    -webkit-transform-origin: center;
    transform-origin: top left;
    -webkit-transform: scale(.25);
    transform: scale(.25);
}
.greyd_tile .hub_frame iframe {
    height: 100%;
    width: 100%;
}

/* loader */
.hub_frame_wrapper::before {
    content: " ";
    position: absolute;
    display: inline-block;
    top: calc(50% - 10px);
    left: calc(50% - 10px);
    height: 20px;
    width: 20px;
    border-radius: 100%;
    border: 2px solid transparent;
}
.hub_frame_wrapper.loading::before {
    border-color: #0085ba;
    border-right-color: transparent;
    -webkit-animation: turn .7s linear 0s infinite;
    animation: turn .7s linear 0s infinite;
}
@-webkit-keyframes turn {
  from {-webkit-transform: rotate(0deg);transform: rotate(0deg);}
  to {-webkit-transform: rotate(360deg);transform: rotate(360deg);}
}
@keyframes turn {
  from {-webkit-transform: rotate(0deg);transform: rotate(0deg);}
  to {-webkit-transform: rotate(360deg);transform: rotate(360deg);}
}
/* overlay */
.hub_frame_wrapper .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    background: rgba(48,114,166,.85);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    opacity: 0;
    -webkit-transition: opacity .2s;
    transition: opacity .2s;
    color: white;
    text-decoration: none;
}
.hub_frame_wrapper .overlay .dashicons {
    vertical-align: bottom;
}
.hub_frame_wrapper:hover .overlay {
    opacity: 1;
}

.greyd_popup_wrapper dialog {
    background-color: #fff;
    color: #3c434a;
    font-size: 16px;
    padding: 1.4em;
    border-radius: .2em;
    box-shadow: 0px .3em 1em -.1em rgba(0,0,0,.2);
    border: none;
    max-width: min(30em, 80vw);
    line-height: 140%;
}
.greyd_popup_wrapper dialog > p {
    margin-top: 1em !important;
    white-space: normal;
}
.greyd_popup_wrapper dialog > :first-child {
    margin-top: 0 !important;
}
.greyd_popup_wrapper dialog::backdrop {
    background: linear-gradient(165deg, rgb(0,0,0,.2), rgb(0,0,0,.4));
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

/*
    Change Website Infos Form
*/
.change_bloginfo {
    position: relative;
    display: inline-block;
    width: 100%;
}
.change_bloginfo .input,
.change_bloginfo .buttons {
    position: absolute;
}
.change_bloginfo .input,
.change_bloginfo .preview {
    box-sizing: border-box;
    padding-left: 8px;
    padding-right: 8px;
    margin: 0 -8px !important;
    width: calc(100% + 16px);
    
    border: none;
    border-radius: 3px;
}
.change_bloginfo + .change_bloginfo {
    margin-top: -4px;
}
/* input */
.change_bloginfo .input {
    display: block;
    resize: none;
    top: 0;
    left: 0;
    bottom: 0;
    outline: 0;
    color: transparent;
    background-color: transparent !important;
}
.change_bloginfo .input,
.change_bloginfo .input:hover,
.change_bloginfo .input:focus,
.change_bloginfo.focus .input {
    color: transparent;
    border-color: transparent;
    background-color: transparent;
    outline: 0;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
}
.change_bloginfo.focus .input {
    color: #000;
    background-color: transparent;
}
/* preview */
.change_bloginfo .input + .preview {
    z-index: -1;
    transition: background-color .2s ease-in-out 0s, box-shadow .1s ease-in-out;
}
.change_bloginfo:not(.loading):not(.success):not(.fail) .input:hover + .preview {
    background: #eeeeee;
}
.change_bloginfo.focus .input + .preview {
    background: #fff !important;
    box-shadow: 0 0 1px 2px rgb(76, 154, 255);
    color: transparent;
}
.change_bloginfo .input + .preview:empty::before {
    content: attr(data-empty);
    opacity: 0.4;
    pointer-events: none;
}
/* sizes */
.change_bloginfo .input.h4,
.change_bloginfo h4.preview {
    font-size: 1.5em;
    line-height: 120%;
    font-weight: 600;
    padding-top: .2em;
    padding-bottom: .2em;
    min-height: 1.4em;
}
.change_bloginfo .input.h5,
.change_bloginfo h5.preview {
    font-size: 1em;
    line-height: 120%;
    font-weight: 400;
    padding-top: .4em;
    padding-bottom: .4em;
    min-height: 1.8em;
}

/* change blog details form */
.change_bloginfo2 {
    position: relative;
    display: inline-flex;
    flex-grow: 1;
    height: 18px;
    border-radius: 3px;
}
.change_bloginfo2 .input {
    line-height: 16px;
    font-size: inherit;
    min-height: 18px;
    /* font-weight: 600; */
    border: none;
    box-shadow: none;
}
.change_bloginfo2:not(:hover) .input {
    background: none;
    border-color: transparent;
}
.change_bloginfo2.focus {
    background: #fff !important;
    box-shadow: 0 0 1px 2px rgb(76, 154, 255);
    color: transparent;
}

/* buttons */
.change_bloginfo .buttons,
.change_bloginfo2 .buttons {
    position: absolute;
    z-index: 1;
    top: 100%;
    right: 0;
    padding: 0;
    height: 0;
    overflow: hidden;
    opacity: 0;
    transition: opacity .2s ease-in-out 0s;
}
.change_bloginfo.focus .input ~ .buttons,
.change_bloginfo2.focus .input ~ .buttons {
    padding: 4px;
    height: 30px;
    opacity: 1;
}
/* icons */
.change_bloginfo .icons,
.change_bloginfo2 .icons {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}
.change_bloginfo:not(.success) .icons > .color_green,
.change_bloginfo:not(.failed) .icons > .color_red,
.change_bloginfo:not(.loading) .icons > .loader,
.change_bloginfo2:not(.success) .icons > .color_green,
.change_bloginfo2:not(.failed) .icons > .color_red,
.change_bloginfo2:not(.loading) .icons > .loader {
    display: none;
}

/**
 *  Pagination
 */
.hub_panel .tablenav {
	margin: 0 0 20px;
}
.hub_panel .pagination-links {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	gap: 4px;
}

/*
    Overlay Logging
*/
.greyd_overlay#log > * {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}
.greyd_overlay .log {
    position: relative;
    overflow: auto;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    padding: 10px 14px 10px 10px;
    
    background-color: #F2F2F2;
    border: 1px solid #D7D7D7;
    border-radius: 2px;
    margin-bottom: 10px;
}
.greyd_overlay .log > div {
    overflow: visible;
    height: auto;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: reverse;
    -ms-flex-direction: column-reverse;
    flex-direction: column-reverse;
}
.greyd_overlay .log .nag {
    padding: 4px 8px;
    border-left: 4px solid #949495;
    color: #6d6e6f;
    background-color: #fff;
    border-radius: 3px;
    -webkit-box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.15);
    box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.15);
    margin-bottom: 4px;
}
.greyd_overlay .log .nag.success {
    border-left-color: #27AE60;
}
.greyd_overlay .log .nag.danger {
    border-left-color: #BC0B0B;
}
.greyd_overlay .log .nag.warning {
    border-left-color: #F2994A;
}
.greyd_overlay .log .nag.info {
    border-left-color: #2F80ED;
}
.greyd_overlay .log .nag.large {
    margin-bottom: 14px;
    padding: 8px;
}
.greyd_overlay .log .nag h5 {
    font-size: 1em;
    color: #2d2d2d;
    margin: 0 0 7px;
}
.greyd_overlay .log .nag h5:last-child {
    margin-bottom: 0px;
}
.greyd_overlay .log .nag pre {
    background: rgb(0,0,0,.05);
    white-space: pre-wrap;
    max-height: 300px;
    overflow: auto;
    padding: 0.5em 1em;
    outline: 1px solid rgba(0,0,0,.2);
}

/*
    Backups
*/
.hub_panel .greyd_table .date_row td {
    padding-top: 20px;
    padding-bottom: 5px;
}
.hub_panel .greyd_table .file_row td {
    padding-top: 3px;
    padding-bottom: 3px;
    background: #f5f5f5;
}
.hub_panel .greyd_table .file_row td:nth-child(2) {
    word-break: break-all;
}
.hub_panel .greyd_table .file_row td:nth-child(4) {
    white-space: nowrap;
}
.hub_panel .greyd_table th:last-child,
.hub_panel .greyd_table td:last-child {
    border-right: 1px solid var(--wp-admin-color-light);
}

.hub_panel .template_row.file_row td:first-child {
    white-space: nowrap;
}
.hub_panel .template_row .greyd_popup_wrapper {
    margin-right: 5px;
}
.hub_panel .template_row .popup {
    white-space: normal;
    left: 20px;
    top: 17px;
}
.hub_panel .template_row .toggle {
    margin:0;
}

/*
    Database
*/
/* Checkboxen */
.greyd_tile .inner .hub_tables {
    overflow: auto;
    max-height: 400px;
    padding-bottom: 20px;
}
.greyd_tile .inner .hub_tables label {
    white-space: nowrap;
    display: inline-block;
    margin-bottom: 4px;
}
.greyd_tile .toggle_all .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

.hub_panel [class*="toggle"] {
    display: inline-block;
    cursor: pointer;
    margin-bottom: 8px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.hub_panel [class*="toggle"]:hover {
    color: #000;
}
/* Control */
.hub_panel.hub_db :not(.greyd_tile) > hr {
    margin: 2.5em 0;
    border: none;
    border-top: 1px solid var(--wp-admin-color-light);
}
.hub_panel.hub_db .greyd_tile_wrapper {
    margin-bottom: 2em;
}

#init-loader {
    position: absolute;
}



/*
----------------------------------------------------------

                    Hub 2.0

----------------------------------------------------------
*/

/*    Hub Wizard
__________________________________
*/
.hub_wizard .overlay_inner_content {
    display: flex;
    flex-direction: column;
}
/* .hub_wizard .overlay_inner_content, */
.hub_wizard .split-view {
    background-repeat: no-repeat;
    background-image: linear-gradient( var(--wp-admin-color-light) 100%, transparent 0 );
    background-size: 1px 100%;
    background-position: 50% 0;
}

/* split view */
.hub_wizard .split-view {
    flex: 1 1 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    gap: var(--overlay-padding);
}
.hub_wizard .split-view .preview-wrap {
    flex: 0 1 340px;
}
.hub_wizard .split-view .split-arrow {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6vw;
    height: 6vw;
    margin: -3vw;
    background: #fff;
}
.hub_wizard .split-view .split-arrow::before {
    content: " ";
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 3vw;
    height: 0;
    margin: 0 -1.5vw;
    box-shadow: 0 0 0 1px var(--wp-admin-color-light);
}
.hub_wizard .split-view .split-arrow::after {
    content: " ";
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2vw;
    height: 2vw;
    margin: -1vw;
    box-shadow: 2px 2px 0 0 var(--wp-admin-color-light);
    transform: rotate(-45deg);
}

/* foot */
.hub_wizard .overlay_foot {
    padding: calc( var(--overlay-padding) * 0.5 );
}
.hub_wizard .overlay_foot .button.huge {
    font-size: 20px;
    padding: 0.25em 10vw;
}
.hub_wizard .overlay_foot .button.disabled {
    pointer-events: none;
}

/* inputs */
.hub_wizard .input-wrap {
    margin: 0.5em 0 1.5em;
}
.hub_wizard .input-wrap label {
    display: inline-block;
    margin-bottom: 0.5em;
    line-height: 1.4;
}
.hub_wizard .input-wrap label small {
    display: inline-block;
    margin-top: 7px;
}
.hub_wizard .input-wrap select {
    width: 100%;
    line-height: 3;
}

/* preview */
.hub_frame_wrapper.empty::before {
    content: attr(data-empty);
    position: absolute;
    text-align: center;
    color: var(--wp-admin-color-medium);
    display: inline-block;
    top: calc(50% - 10px);
    left: 5%;
    height: 20px;
    width: 90%;
    border-radius: 0;
}
.hub_frame_wrapper.empty .overlay {
    display: none !important;
}
.hub_wizard .replace[data-empty]:empty::before {
    content: attr(data-empty);
    color: var(--wp-admin-color-medium);
}


/*    Hub Navbar
__________________________________
*/
.hub-nav-wrap {
    position: sticky;
    top: 32px;
    z-index: 10;
}
.hub-nav {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: space-between;

    height: 60px;
    width: calc(100% + 42px);
    box-sizing: border-box;
    margin: -20px -20px 0 -22px;
    padding: 0 20px 0 22px;
    background-color: #f0f0f1;
}
.hub-nav-wrap.fixed .hub-nav {
    background-color: #fff;
    box-shadow: 0 2px 15px -3px rgb(0 0 0 / 25%), 0 1px 3px -2px rgb(0 0 0 / 50%);
    transition: box-shadow 1s ease;
}
.hub-nav-wrap .hub-nav.fixed .block_tab:focus {
    background: none;
}

/* actions */
.hub-nav input:not([type=search]) {
    position: absolute;
    z-index: -99;
    opacity: 0;
}
.nav-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    color: #BABABA;
}
.nav-actions > * {
    height: 50px;
}
.hub-nav-wrap.fixed .nav-actions > * {
    height: 100%;
}
.nav-actions > label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.2em;
    font-weight: 400;
}
.nav-actions > label[for="layout-tiles"] {
    margin-right: -10px;
}
.nav-actions > label:hover {
    background-color: rgba(0,0,0,.03);
}
.nav-actions input:checked + label {
    color: var(--wp-admin-theme-color-darker-10);
}
.nav-actions input:checked + label .dashicons {
    color: var(--wp-admin-theme-color);
}
.nav-actions input:checked + label.block_tab {
    color: var(--wp-admin-color-dark);
    box-shadow: 0 5px 0 0 var(--wp-admin-theme-color);
}
.hub-nav-wrap.fixed .nav-actions input:checked + label.block_tab {
    box-shadow: inset 0 -5px 0 0 var(--wp-admin-theme-color);
}
.nav-actions .divider {
    display: block;
    width: 1px;
    box-shadow: inset 1px 0 0 0 currentColor;
    opacity: .2;
}

/* no connections */
.nav-actions:first-child:last-child {
    width: 100%;
    justify-content: flex-end;
}

/* search */
.hub-nav input[type=search] {
    position: relative;
    overflow: hidden;
    transition: all ease .3s;
    width: 200px;
    margin-left: 1em;
}
.hub-nav label:not(.has-value) > input[type=search]:not(:focus) {
    opacity: 0;
    width: 0;
    padding: 0;
    margin: 0;
}


/*    Loading state
__________________________________
*/
.hub_panel {
    min-height: 500px;
}
.hub-nav-wrap.is-loading ~.hub_panel .greyd_tile_wrapper .greyd_tile .inner > * {
    display: none;
}
.hub-nav-wrap.is-loading ~.hub_panel .greyd_tile_wrapper .greyd_tile .greyd_tabs .tab {
	opacity: 0;
}
.hub-nav-wrap.is-loading ~.hub_panel .greyd_tile_wrapper .greyd_tile .inner {
    --margin-top: 18px;
    --margin-left: 12px;
    --gap: 8px;
    --label-height: 12px;
    --label-width: 80px;
    --label-color: rgba(146, 146, 146, 0.1);
    --button-height: 24px;
    --button-width: 100px;
    --button-color: rgba(0, 0, 0, 0.1);
    --bg-height: calc( var(--margin-top) + var(--label-height) + var(--gap) + var(--button-height) + var(--margin-top) );
    min-height: 325px;
    background-color: #F5F5F5;
    background-image:
        linear-gradient( var(--label-color) var(--label-height), transparent 0 ),
        linear-gradient( var(--button-color) var(--button-height), transparent 0 ),
        linear-gradient( var(--button-color) var(--button-height), transparent 0 );
    background-size:
        var(--label-width) var(--bg-height),
        var(--button-width) var(--bg-height),
        var(--button-width) var(--bg-height);
    background-position:
        var(--margin-left) var(--margin-top),
        var(--margin-left) calc( var(--margin-top) + var(--label-height) + var(--gap) ),
        calc( var(--margin-left) + var(--button-width) + var(--gap) ) calc( var(--margin-top) + var(--label-height) + var(--gap) );
    background-repeat: repeat-y;
}

.skeleton--placeholder {
	display: inline-block;
	background-color: currentColor;
	opacity: 0.1;
	width: 100%;
	animation: skeleton 2s infinite ease-in-out alternate;
}
.skeleton--placeholder::after {
	content: "-";
}
.skeleton--placeholder * {
	opacity: 0;
}
@keyframes skeleton {
	0% {
		opacity: 0.02;
	}
	100% {
		opacity: 0.15;
	}
}


/*    List view
__________________________________
*/
.hub_panel.layout-mode-list .greyd_tile_wrapper {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 0;
    width: auto;
    box-shadow: 0 0 0 1px #c3c4c7;
}
.hub_panel.layout-mode-list .greyd_tile_wrapper .greyd_tile {
    width: auto !important;
    max-width: 100% !important;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    padding: 10px 20px;
    /* padding: 10px 20px 10px 22px; */
    gap: 12px;
    border-radius: 0;
    overflow-x: auto;
    box-shadow: inset 0 0 0 0 var(--wp-admin-color-light);
    transition: none;
}
.hub_panel.layout-mode-list .greyd_tile_wrapper .greyd_tile:nth-child(2n) {
    background-color: #f6f7f7;
}
.hub_panel.layout-mode-list .greyd_tile_wrapper .greyd_tile:hover {
    box-shadow: inset 0 1px 0 0 var(--wp-admin-color-light), inset 0 -1px 0 0 var(--wp-admin-color-light);
}
.hub_panel.layout-mode-list .greyd_tile_wrapper .greyd_tile:first-child:hover {
    box-shadow: inset 0 -1px 0 0 var(--wp-admin-color-light);
}
.hub_panel.layout-mode-list .greyd_tile_wrapper .greyd_tile > div {
    margin: 0;
    padding: 0;
}
.hub_panel.layout-mode-list .greyd_tile_wrapper .greyd_tile .hub_frame_wrapper {
    margin: -10px 0 -10px -20px;
    flex-grow: 0;
    flex-shrink: 0;
    width: 140px;
    border: none;
    border-radius: 0;
    padding: 0;
    height: auto;
}
.hub_panel.layout-mode-list .greyd_tile_wrapper .greyd_tile .hub_frame_wrapper .hub_frame {
    transform: scale(.2) !important;
}

/* title & description */
.hub_panel.layout-mode-list .greyd_tile_wrapper .greyd_tile .hub_domain_and_title {
    flex: 1 0 25%;
}
.hub_panel.layout-mode-list h4,
.hub_panel.layout-mode-list .change_bloginfo .input.h4,
.hub_panel.layout-mode-list .change_bloginfo h4.preview {
    font-size: 1em;
}
.hub_panel.layout-mode-list h5,
.hub_panel.layout-mode-list .change_bloginfo .input.h5,
.hub_panel.layout-mode-list .change_bloginfo h5.preview {
    font-size: 0.8em;
}
.hub_panel.layout-mode-list h5 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hub_panel.layout-mode-list .change_bloginfo .buttons {
    top: auto;
    bottom: 100%;
}

/* inner */
.hub_panel.layout-mode-list .greyd_tile_wrapper .greyd_tile .inner.active {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex: 2 1 65%;
    gap: 20px;
    margin: 0;
}
.hub_panel.layout-mode-list .greyd_tile_wrapper .greyd_tile .inner_head {
    display: block;
    white-space: nowrap;
}
.hub_panel.layout-mode-list .greyd_tile_wrapper .greyd_tile .inner > div {
    background: none;
    padding: 0;
    border: none;
    display: flex;
    flex-direction: row;
    align-items: center;
}
.hub_panel.layout-mode-list .greyd_tile_wrapper .greyd_tile .inner p {
    font-size: 12px;
    margin: 0 4px 0 0;
    line-height: 32px;
}
.hub_panel.layout-mode-list .greyd_tile_wrapper .greyd_tile .data-holder {
    white-space: nowrap;
}

/* infos */
.hub_panel.layout-mode-list .inner_head ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}
.hub_panel.layout-mode-list .inner_head ul li {
    margin: 0;
    list-style: none;
    font-size: 0.9em;
    line-height: 1.3;
}
.hub_panel.layout-mode-list .inner_head ul li:not(:last-child)::after {
    content: ",";
}

/* buttons */
.hub_panel.layout-mode-list .greyd_tile_wrapper .greyd_tile .inner .button {
    position: relative;
    margin: 0 0 0 2px;
    height: 32px;
    width: 32px;
    font-size: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
}
.hub_panel.layout-mode-list .inner .button > .dashicons {
    margin: 0;
}
.hub_panel.layout-mode-list .inner .button > :not(.dashicons) {
    position: absolute;
    bottom: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--wp-admin-color-dark);
    color: #fff;
    font-size: 11px;
    padding: 0 6px;
    border-radius: 2px;
    box-shadow: 0 1px 6px -3px rgb(0 0 0 / 25%);
    display: none;
}
.hub_panel.layout-mode-list .inner .button:hover > :not(.dashicons) {
    display: block;
}
.hub_panel.layout-mode-list .inner .button > :not(.dashicons)::after {
    content: "";
    display: block;
    position: absolute;
    top: 100%;
    left: 50%;
    margin: -1px -4px;
    border: 6px solid transparent;
    border-top: 4px solid var(--wp-admin-color-dark);
}
.hub_panel.layout-mode-list .inner > div:last-child .button > :not(.dashicons) {
    left: auto;
    right: 0;
    transform: none;
}
.hub_panel.layout-mode-list .inner > div:last-child .button > :not(.dashicons)::after {
    left: auto;
    right: 16px;
}

/* tabs */
.hub_panel.layout-mode-list .tab_list {
    position: absolute;
    bottom: 0;
    right: 0;
    height: auto;
    margin: 0;
    padding: 0;
    opacity: 0;
    transition: opacity .2s ease;
}
.hub_panel.layout-mode-list .greyd_tile:hover .tab_list {
    opacity: 0.8;
}
.hub_panel.layout-mode-list .tab_list.greyd_tabs::before {
    display: none;
}
.hub_panel.layout-mode-list .tab_list .tab {
    font-size: 10px;
    line-height: 1;
    margin: 0;
    padding: 0.5em;
    border: none !important;
    background: none !important;
}

/* hide & show */
.hub_panel.layout-mode-list .greyd_tile_wrapper .greyd_tile .hub_domain small,
.hub_panel.layout-mode-list .hub_links,
.hub_panel.layout-mode-list hr,
.hub_panel.layout-mode-list .inner_head > p + div,
.hub_panel.layout-mode-list .inner_head > p + small,
.hub_panel.layout-mode-list .list_view__hide {
    display: none !important;
}
.hub_panel:not(.layout-mode-list) .list_view__only {
    display: none !important;
}
/* hide section 'website' for main site */
.hub_panel.layout-mode-list .greyd_tile:first-child:not(:last-child) .inner[data-tab=admin] > div:last-child {
    display: none;
}


/*    Uploader
__________________________________
*/
.greyd_overlay .loading .uploader {
    display: none;
    --gap-y: 12px;
    --gap-x: calc(0.66 * var(--gap-y));
}
.greyd_overlay .uploader .uploader-wrapper {
    display: grid;
    grid-template-columns: min-content minmax(0, 1fr);
    gap: var(--gap-x);
}

/* status */
.greyd_overlay .uploader .uploader-status {
    margin-top: -1em;
    margin-bottom: 2em;
}
.greyd_overlay .uploader .uploader-status:empty::before {
    content: attr(data-empty);
}

/* icon */
.greyd_overlay .uploader .uploader-file-icon {
    font-size: 3em;
    height: 1em;
    width: 1em;
    margin-left: -7px;
    color: #c9cbcd;
}

/* percent */
.greyd_overlay .uploader .uploader-percent {
    align-self: center;
    font-size: 1.4em;
}

/* controls */
.greyd_overlay .loading .uploader-controls .dashicons {
    cursor: pointer;
    height: 1em;
    width: 1em;
    padding: 4px;
    border-radius: 100%;
    background-color: var(--wp-admin-color-offwhite);
    transition: all .2s ease;
}
.greyd_overlay .loading .uploader-controls .dashicons:hover {
    color: white;
    background-color: var(--wp-admin-theme-color, #007cba);
}
.greyd_overlay .loading .uploader-controls .uploader-abort:hover {
    color: white;
    background-color: #EB5757;
}

/* file info */
.greyd_overlay .uploader .uploader-file-info {
    color: var(--wp-admin-color-medium);
    gap: var(--gap-y);
}
.greyd_overlay .uploader .uploader-file-title {
    white-space: nowrap;
    flex-shrink: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}
.greyd_overlay .uploader .uploader-file-size {
    white-space: nowrap;
    flex-shrink: 0;
}

/* progress bar */
.greyd_overlay .loading .uploader-progress-container {
    position: relative;
    overflow: hidden;
    height: var(--gap-x);
    border-radius: var(--gap-x);
    margin: var(--gap-y) 0;
    background-color: var(--wp-admin-color-offwhite);
}
.greyd_overlay .loading .uploader-progress-bar {
    height: 100%;
    width: 60px;
    background: var(--wp-admin-theme-color, #007cba);
    transition: width .2s;
}

/* paused */
.greyd_overlay .loading.paused .loader::after {
    animation-play-state: paused;
}
.greyd_overlay .loading.paused .uploader-progress-bar {
    background: var(--wp-admin-color-medium);
}


.greyd_overlay .loading:has(.uploader[style*="block"]) .loader {
    display: none;
}


/*    Staging
__________________________________
*/

.greyd_staging_bar {
    padding: 20px !important;
    margin: 0 -20px !important;
    width: 100%;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
}
.greyd_staging_bar.live {
    background: #B8E6BF;
}
.greyd_staging_bar.stage {
    background: #F5E6AB;
}
.greyd_staging_bar.stage_error {
    background: #f5dddd;
    cursor: not-allowed;
}

.greyd_stage_wrapper > h3 {
    width: 340px;
}
.greyd_stage_link {
    flex: 1;
    padding: 60px 20px;
    text-align: center;
}
.greyd_stage_wrapper ul {
    list-style: disc;
    padding-left: 20px;
}
.greyd_stage_wrapper ul .dashicons {
    height: auto;
    font-size: small;
    cursor: pointer;
    vertical-align: baseline;
}