/* Layout fallbacks shared by IE9-11, older Safari and current browsers. */
body.discuzx5 #dz_btm_layer .header-user .iscwo-dismall-user-card .user-card-admin-area {gap:0;}
body.discuzx5 #dz_btm_layer .header-user .iscwo-dismall-user-card .user-card-admin-area a + a {margin-left:8px;}
body.discuzx5 #dz_btm_layer .header-user .iscwo-dismall-user-card .user-card-main-area {display:block;}
body.discuzx5 #dz_btm_layer .header-user .iscwo-dismall-user-card .user-card-main-area:after {content:"";display:block;clear:both;}
body.discuzx5 #dz_btm_layer .header-user .iscwo-dismall-user-card .user-card-main-area a {float:left;display:block;width:47%;width:calc(50% - 6px);margin:0 0 10px;}
body.discuzx5 #dz_btm_layer .header-user .iscwo-dismall-user-card .user-card-main-area a:nth-child(even) {margin-left:12px;}
body.discuzx5 #dz_btm_layer .header-user .iscwo-dismall-user-card .user-card-main-area a:nth-last-child(-n+2) {margin-bottom:0;}
body.discuzx5 .topics .topic .iscwo-x5-topic-title,
body.discuzx5 .topics .topic .iscwo-x5-topic-stats {gap:0;}
body.discuzx5 .topics .topic .iscwo-x5-topic-stats > * + * {margin-left:15px;}
html body.discuzx5 #postform .pbt > .z {gap:0!important;}
html body.discuzx5 #postform .pbt > .z > * + * {margin-left:10px!important;}

/* IE9/10: retain usable header, topic rows and post form without Flexbox. */
html.iscwo-no-flex body.discuzx5 #dz_btm_layer .dz_nav_logo {display:block;height:73px;line-height:73px;}
html.iscwo-no-flex body.discuzx5 #dz_btm_layer .dz_nav_logo img {float:none;vertical-align:middle;}
html.iscwo-no-flex body.discuzx5 #dz_btm_layer .header-right {display:block;line-height:70px;white-space:nowrap;}
html.iscwo-no-flex body.discuzx5 #dz_btm_layer .header-right > * {display:inline-block;vertical-align:middle;line-height:normal;}
html.iscwo-no-flex body.discuzx5 #dz_btm_layer .header-user-avatar {line-height:70px;}
html.iscwo-no-flex body.discuzx5 #dz_btm_layer .header-user-avatar img {vertical-align:middle;}
html.iscwo-no-flex body.discuzx5 #dz_btm_layer .user-card-top {display:block!important;height:auto!important;min-height:94px;box-sizing:border-box;padding-top:15px!important;padding-bottom:15px!important;}
html.iscwo-no-flex body.discuzx5 #dz_btm_layer .user-card-top .block_avatar {float:left;}
html.iscwo-no-flex body.discuzx5 #dz_btm_layer .user-card-top .block_name {padding-top:8px;}
html.iscwo-no-flex body.discuzx5 #dz_btm_layer .user-card-admin-area,
html.iscwo-no-flex body.discuzx5 #dz_btm_layer .user-card-admin-area a,
html.iscwo-no-flex body.discuzx5 #dz_btm_layer .user-card-bottom,
html.iscwo-no-flex body.discuzx5 #dz_btm_layer .user-card-bottom a {display:block!important;}
html.iscwo-no-flex body.discuzx5 #dz_btm_layer .user-card-admin-area a {display:inline-block!important;}
html.iscwo-no-flex body.discuzx5 #dz_btm_layer .user-card-bottom {text-align:right;}
html.iscwo-no-flex body.discuzx5 .topics .topic.media {display:block!important;}
html.iscwo-no-flex body.discuzx5 .topics .topic.media:after {content:"";display:block;clear:both;}
html.iscwo-no-flex body.discuzx5 .topics .topic .media-left {float:left;margin-right:14px;}
html.iscwo-no-flex body.discuzx5 .topics .topic .infos.media-body {overflow:hidden;}
html.iscwo-no-flex body.discuzx5 .topics .topic .iscwo-x5-topic-title,
html.iscwo-no-flex body.discuzx5 .topics .topic .iscwo-x5-topic-stats {display:block;}
html.iscwo-no-flex body.discuzx5 .topics .topic .iscwo-x5-topic-stats > * {display:inline-block;}
html.iscwo-no-flex body.discuzx5 #postform .pbt > .z {display:block!important;}
html.iscwo-no-flex body.discuzx5 #postform .pbt > .z > * + * {margin-left:0!important;}
html.iscwo-no-grid body.pg_spacecp .tdats {display:block;white-space:normal;font-size:12px;}
html.iscwo-no-grid body.pg_spacecp .tdats > .tdat {display:inline-table!important;width:32%!important;margin-right:1%!important;vertical-align:top;}

/* Avoid a fixed 1280px content canvas on smaller desktop windows and phones. */
html body.discuzx5 .wp, html body.discuzx5 .container {box-sizing:border-box;max-width:100%;}
@media screen and (max-width:1279px) {
    html body.discuzx5 {min-width:0;}
    html body.discuzx5 #wp, html body.discuzx5 #ct.wp,
    html body.discuzx5 .main-container, html body.discuzx5 .wp {width:100%!important;max-width:100%!important;min-width:0;box-sizing:border-box;}
    body.discuzx5 .wp > .row {margin-left:0;margin-right:0;}
    body.discuzx5 #dz_btm_layer {position:relative;}
    body.discuzx5 #dz_btm_layer .dz_btm_layer {width:100%;min-width:0;height:auto;padding:0 12px;box-sizing:border-box;}
    body.discuzx5 #dz_btm_layer .dz_layer_nav {width:auto;max-width:100%;height:auto;overflow:visible;}
    body.discuzx5 #dz_btm_layer .dz_layer_nav ul {margin:0;}
    body.discuzx5 #dz_btm_layer .dz_layer_dl {float:none;clear:both;}
    body.discuzx5 #dz_btm_layer .header-right {height:50px;}
    html.iscwo-no-flex body.discuzx5 #dz_btm_layer .header-right,
    html.iscwo-no-flex body.discuzx5 #dz_btm_layer .header-user-avatar {line-height:50px;}
    body.discuzx5 #dz_btm_layer .header-user-dropdown {top:40px;right:0;}
    body.discuzx5 #dz_btm_layer .header-user .iscwo-dismall-user-card {max-width:calc(100vw - 24px);}
}
@media screen and (max-width:767px) {
    body.discuzx5 #dz_btm_layer .dz_nav .dz_nav_logo {float:none;height:54px;}
    body.discuzx5 #dz_btm_layer .dz_layer_nav {float:none;}
    body.discuzx5 #dz_btm_layer .dz_layer_nav ul:after {content:"";display:block;clear:both;}
    body.discuzx5 #dz_btm_layer .dz_layer_nav ul li a {height:44px;line-height:44px;margin-right:18px;font-size:14px;letter-spacing:0;}
    body.discuzx5 #dz_btm_layer .header-searcher {flex:1;min-width:0;margin-right:8px;}
    body.discuzx5 #dz_btm_layer .header-searcher .search-input {width:100%;box-sizing:border-box;padding-right:38px;}
    body.discuzx5 .topics .topic .infos.media-body {padding-right:0;}
    body.discuzx5 .topics .topic .iscwo-x5-topic-title {padding-right:22px;}
    body.discuzx5 .topics .topic .iscwo-x5-topic-stats {position:static;margin-top:8px;justify-content:flex-start;}
    html body.discuzx5 #postform .pbt > .z {display:block!important;}
    html body.discuzx5 #postform .pbt > .z > * + * {margin-left:0!important;}
}
