/* Responsive and visual layer for the C400 design on DLE 20.0. */
html {
	box-sizing: border-box;
	-webkit-text-size-adjust: 100%;
}

*,
*::before,
*::after { box-sizing: inherit; }

body {
	min-width: 0;
	overflow-x: hidden;
}

.cont-page {
	width: calc(100% - 32px);
	max-width: 1600px;
}

.c400-page { padding-top: 1px; }

.c400-skip-link {
	position: fixed;
	left: 16px;
	top: 10px;
	z-index: 10000;
	transform: translateY(-160%);
	padding: 9px 14px;
	border-radius: 4px;
	background: #fff;
	color: #333;
	box-shadow: 0 2px 12px rgba(0, 0, 0, .2);
}

.c400-skip-link:focus { transform: translateY(0); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 3px solid rgba(79, 193, 233, .75);
	outline-offset: 2px;
}

img,
video,
iframe,
embed,
object { max-width: 100%; }

img { height: auto; }

.full-content,
.short-text,
.comment-post,
.panel-body {
	overflow-wrap: anywhere;
}

.full-content iframe,
.full-content video,
.full-content table,
.page_static iframe,
.page_static table { max-width: 100%; }

.table-responsive { -webkit-overflow-scrolling: touch; }

.navbar { border-radius: 0 0 5px 5px; }

.navbar-brand { font-weight: 700; }

.navbar-nav > li > a {
	white-space: nowrap;
}

.c400-speedbar { margin-bottom: 12px; }

.c400-page-title h1 {
	margin-top: 0;
	font-size: 24px;
	line-height: 1.3;
}

.c400-welcome-panel,
.c400-slider-panel { margin-bottom: 15px; }

.c400-slider-panel { margin: 0; overflow: hidden; }

#owl-demo1 .item img {
	display: block;
	width: 100%;
	height: 300px;
	max-height: none;
	object-fit: cover;
	object-position: center center;
}

#owl-demo { padding: 12px; }

#owl-demo .bgmtt {
	height: auto;
	overflow: hidden;
}

#owl-demo .bgmtt > a {
	display: flex;
	flex-direction: column;
}

#owl-demo .c400-topnews-image {
	position: relative;
	overflow: hidden;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #eef1f4;
}

#owl-demo .item .c400-topnews-image img {
	display: block;
	width: 100%;
	height: 100%;
	max-height: none;
	object-fit: cover;
	object-position: center;
}

#owl-demo .c400-topnews-title {
	display: -webkit-box;
	overflow: hidden;
	min-height: 2.7em;
	margin-top: 7px;
	font-size: 13px;
	line-height: 1.35;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

#owl-demo .c400-topnews-category {
	display: block;
	margin-top: 3px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.c400-mobile-search { margin: 0 0 15px; }

.c400-layout { display: flex; flex-wrap: wrap; }

.c400-main-column,
.c400-sidebar { float: none; }

.panel,
.alert,
.well { max-width: 100%; }

.shortstory .row,
.c400-story-row { display: flex; align-items: stretch; }

.shortstory img { width: 100%; }

.c400-story-body {
	display: flex;
	flex-direction: column;
}

.c400-story-heading {
	position: relative;
	padding: 12px 18px;
	border-color: #d9dde2;
	border-top: 1px solid #b9c5d1;
	background: #f5f6f7;
	box-shadow: 0 4px 10px rgba(48, 53, 59, .18);
	color: #434a54;
}

.shortstory > .c400-story-heading,
.fullstory > .c400-story-heading,
.shortstory > .c400-story-meta,
.fullstory > .c400-story-meta { background: #f5f6f7; }

.c400-story-heading .short-title,
.c400-story-heading .c400-full-title { margin: 0; }

.shortstory > .c400-story-heading a,
.shortstory > .c400-story-heading a:hover,
.shortstory > .c400-story-heading a:focus { color: #434a54; }

.short-title {
	margin: 0 0 10px;
	font-size: clamp(18px, 1.1vw, 22px);
	font-weight: 400;
	line-height: 1.3;
	letter-spacing: -.01em;
}

.short-title .label {
	display: inline-block;
	margin: 0 7px 3px 0;
	padding: .34em .58em;
	font-size: 12px;
	line-height: 1;
	vertical-align: middle;
}

.short-text { font-size: 14px; line-height: 1.55; }

.c400-full-title {
	margin: 0 0 12px;
	font-size: clamp(22px, 1.55vw, 28px);
	font-weight: 400;
	line-height: 1.25;
	letter-spacing: -.01em;
}

.c400-full-title .label {
	display: inline-block;
	margin: 0 7px 3px 0;
	padding: .34em .58em;
	font-size: 12px;
	line-height: 1;
	vertical-align: middle;
}

.fullstory .infull {
	margin-bottom: 16px;
	font-size: 13px;
	line-height: 1.55;
}

.fullstory .c400-full-meta {
	margin: 0;
	border-top: 1px solid #d9dde2;
	background: #f5f6f7;
}

.full-content { font-size: 13px; line-height: 1.45; }

.full-content h2 { font-size: 22px; }
.full-content h3 { font-size: 19px; }
.full-content h4 { font-size: 17px; }
.full-content h5,
.full-content h6 { font-size: 15px; }

.full-content { display: flow-root; }

/* Keep DLE/BBCode empty lines visible without adding a second oversized gap. */
.full-content br + br {
	display: inline;
	content: normal;
	margin: 0;
	height: auto;
	line-height: inherit;
}

/* A standalone [img=left/right] must finish before the following empty line. */
.full-content > img[style*="float"] + br {
	display: block;
	clear: both;
	content: "";
	margin: 0;
	height: 0;
	line-height: 0;
}

.full-content img[style*="float:left"],
.full-content img[style*="float: left"] {
	margin: 0 18px 12px 0;
}

.full-content img[style*="float:right"],
.full-content img[style*="float: right"] {
	margin: 0 0 12px 18px;
}

.full-content p { margin-bottom: .65em; }

/* DLE vote controls use label > input + span. */
.vote_list {
	margin: 0 0 14px;
}

.vote_list .vote,
.vote_list .pollanswer {
	margin: 0;
}

.vote_list .vote + .vote,
.vote_list .pollanswer + .pollanswer {
	margin-top: 9px;
}

.vote_list .form-check-label,
.pollanswer .form-check-label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	width: 100%;
	margin: 0;
	font-weight: 400;
	line-height: 1.4;
	cursor: pointer;
}

.vote_list .form-check-input,
.pollanswer .form-check-input {
	flex: 0 0 auto;
	margin: 3px 0 0;
	accent-color: #3b82b9;
}

.vote_list .form-check-label > span,
.pollanswer .form-check-label > span {
	min-width: 0;
}

/* Compact only DLE separators before another spoiler or quote. */
.full-content > .text_spoiler:has(+ br + :is(.title_spoiler, .title_quote, .quote)) + br,
.full-content > .text_spoiler:has(+ br + br + :is(.title_spoiler, .title_quote, .quote)) + br,
.full-content > .text_spoiler:has(+ br + br + :is(.title_spoiler, .title_quote, .quote)) + br + br {
	display: none;
}

.full-content > .text_spoiler + br + :is(.title_spoiler, .title_quote, .quote),
.full-content > .text_spoiler + br + br + :is(.title_spoiler, .title_quote, .quote) {
	margin-top: 8px;
}

.c400-story-actions,
.c400-comment-actions,
.c400-profile-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}

.c400-story-controls {
	margin-top: auto;
	padding-top: 18px;
}

.c400-edit-reason {
	display: inline-block;
	width: auto;
	max-width: 100%;
	margin: 0 0 10px;
	padding: 5px 9px;
	border: 0;
	border-left: 2px solid #9eacbb;
	border-radius: 0;
	background: #f4f6f8;
	box-shadow: none;
	color: #66727e;
	font-size: 12px;
	line-height: 1.4;
}

.c400-edit-reason b {
	color: #4f5b67;
	font-weight: 600;
}

.c400-story-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: nowrap;
	gap: 10px;
	margin-top: 0;
	padding-top: 0;
}

.c400-story-actions {
	display: flex;
	order: 2;
	flex: 0 1 auto;
	align-items: center;
	justify-content: flex-end;
	width: auto;
	margin-left: auto;
	gap: 8px;
}

.c400-story-more { order: 2; }

.c400-story-secondary {
	order: 1;
	position: relative;
	display: flex;
	align-items: center;
}

.c400-story-secondary-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	font-size: 18px;
	line-height: 1;
}

.c400-story-secondary-list.dropdown-menu {
	position: absolute;
	top: auto;
	bottom: calc(100% + 4px);
	right: 0;
	left: auto;
	display: none;
	min-width: 190px;
	padding: 5px 0;
	border: 1px solid #d9dde2;
	background: #fff;
	box-shadow: 0 5px 14px rgba(48, 53, 59, .14);
}

.c400-story-secondary.open > .c400-story-secondary-list { display: block; }
.c400-story-secondary-list > li { display: block; }
.c400-story-secondary-list > li:empty { display: none; }
.c400-story-secondary-list > li > a { padding: 0; }
.c400-story-secondary-list > li > a:hover,
.c400-story-secondary-list > li > a:focus { background: #f4f6f8; }
.c400-story-secondary-list .btn {
	display: block;
	width: 100%;
	padding: 8px 14px;
	border: 0;
	background: transparent;
	box-shadow: none;
	text-align: left;
	white-space: normal;
}

.c400-rating {
	display: flex;
	order: 1;
	flex: 0 0 auto;
	align-items: center;
	justify-content: flex-start;
	margin: 0;
}

.c400-rating-vote {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.c400-rating .btn {
	min-width: 24px;
	min-height: 24px;
	padding: 2px 6px;
	font-size: 11px;
	line-height: 18px;
}

.c400-rating-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	padding: 0;
	font-size: 11px;
	line-height: 1;
}

.c400-rating-score {
	min-width: 28px;
	font-size: 11px;
	line-height: 1;
	font-weight: 600;
	text-align: center;
}

.c400-full-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: nowrap;
	gap: 12px;
	margin-top: 18px;
}

.c400-full-toolbar .c400-rating {
	order: 1;
	margin: 0;
}

.c400-full-actions {
	display: flex;
	order: 2;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 10px;
	margin-left: auto;
}

.c400-story-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px 24px;
	min-height: 50px;
	padding: 12px 18px;
	font-size: 13px;
}

.c400-story-meta-main,
.c400-story-stats,
.c400-story-meta-item {
	display: flex;
	align-items: center;
}

.c400-story-meta-main {
	flex: 1 1 auto;
	flex-wrap: wrap;
	gap: 9px 0;
}

.c400-story-meta-item { gap: 6px; }

.c400-story-meta-key {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #7f8790;
	font-size: 12px;
	font-weight: 600;
}

.c400-story-meta-key i {
	width: 14px;
	text-align: center;
}

.c400-story-meta-value { min-width: 0; }

.c400-story-meta-main > .c400-story-meta-item + .c400-story-meta-item {
	margin-left: 18px;
	padding-left: 18px;
	border-left: 1px solid #d9dde2;
}

.c400-story-meta-label { color: #8a9199; }

.c400-story-stats {
	flex: 0 0 auto;
	gap: 18px;
	margin-left: auto;
}

.c400-story-stats a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.c400-comment {
	margin: 0 0 20px;
	overflow: hidden;
	border-color: #d9dde2;
	border-radius: 5px;
	box-shadow: 0 3px 10px rgba(48, 53, 59, .12);
}

.comment-list .c400-comment > .c400-comment-header {
	position: relative;
	top: auto;
	right: auto;
	left: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 42px;
	padding: 9px 14px;
	border-color: #d9dde2;
	background: #f5f6f7;
	color: #434a54;
}

.c400-comment-header .comment-date {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.35;
}

.c400-comment-mass {
	display: inline-flex;
	align-items: center;
	margin-left: auto;
}

.c400-comment-main {
	display: grid;
	grid-template-columns: 128px minmax(0, 1fr);
	align-items: stretch;
	gap: 18px;
	min-height: 120px;
	padding: 15px;
}

.c400-comment-main::before,
.c400-comment-main::after {
	display: none;
	content: none;
}

.c400-comment-author {
	min-width: 0;
	margin: 0;
	padding-right: 18px;
	border-right: 1px solid #e0e3e6;
	text-align: center;
}

.c400-comment-userpic {
	display: block;
	width: 88px;
	height: 88px;
	margin: 0 auto;
	border: 1px solid #d9dde2;
	border-radius: 4px;
	object-fit: cover;
}

.c400-comment-username {
	margin-top: 8px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.c400-comment-status { margin-top: 5px; }
.c400-comment-status .label { display: inline-block; min-width: 62px; }

.c400-comment-content {
	min-width: 0;
	padding: 1px 0;
}

.c400-comment .comment-post {
	margin: 0;
	line-height: 1.5;
}

.c400-comment-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px 14px;
	min-height: 46px;
	padding: 9px 12px;
	border-color: #d9dde2;
	background: #f5f6f7;
}

.c400-comment-footer .c400-comment-rating {
	order: 0;
	min-height: 26px;
}

.c400-comment-footer .c400-comment-actions {
	align-items: center;
	justify-content: flex-end;
	margin-left: auto;
}

.c400-comment-footer .btn { margin: 0; }

.c400-comment-images {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
	gap: 8px;
	margin-top: 12px;
}

.c400-comment-images img { border-radius: 4px; }

.c400-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 15px;
}

.c400-form-grid .form-group--wide { grid-column: 1 / -1; }

.c400-form-help { color: #777; font-size: 12px; }

.c400-server-links {
	display: grid;
	gap: 8px;
}

.c400-server-links .btn { white-space: normal; }

.c400-server-monitor-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 18px;
}

.c400-server-monitor-grid iframe {
	display: block;
	flex: 0 0 170px;
	width: 170px;
	height: 200px;
	max-width: 100%;
	border: 0;
	background: #454441;
}

.c400-server-monitors .c400-server-links { margin-top: 18px; }

.c400-category-menu ul { margin-bottom: 0; }

.c400-category-menu ul ul {
	margin: 6px 0 0 14px;
	padding-left: 10px;
	border-left: 1px solid #ddd;
}

.c400-category-menu li + li { margin-top: 7px; }

.c400-cs-link { color: #ffeb3b; }

.c400-pm-menu,
.c400-pm-status,
.c400-pm-list,
.c400-pm-compose { margin-bottom: 15px; }

.c400-pm-status {
	display: grid;
	gap: 5px;
}

.c400-pm-status .progress { margin-bottom: 0; }

.c400-comment-head {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.c400-comment-avatar {
	width: 42px;
	height: 42px;
	object-fit: cover;
}

.c400-signature {
	margin-top: 18px;
	padding-top: 10px;
	border-top: 1px solid #ddd;
	color: #777;
}

.dle-popup-userprofile {
	left: 50% !important;
	z-index: 12020 !important;
	width: min(680px, calc(100vw - 24px)) !important;
	max-width: calc(100vw - 24px) !important;
	max-height: none !important;
	transform: translateX(-50%);
}

.dle-popup-userprofile .ui-dialog-titlebar {
	border: 0;
	background: #30353b;
	color: #fff;
}

.dle-popup-userprofile .ui-dialog-titlebar-close {
	opacity: .9;
}

.dle-popup-userprofile .ui-dialog-titlebar-close:hover,
.dle-popup-userprofile .ui-dialog-titlebar-close:focus { opacity: 1; }

.dle-popup-userprofile .ui-dialog-content {
	height: auto !important;
	min-height: 0 !important;
	max-height: none !important;
	overflow: visible !important;
	padding: 16px 18px;
}

.dle-popup-userprofile .ui-dialog-buttonpane {
	height: auto !important;
	margin-top: 0;
	padding: 12px 16px 14px;
}

.dle-popup-userprofile .ui-dialog-buttonset {
	display: flex;
	width: 100%;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px;
}

.dle-popup-userprofile .ui-dialog-buttonpane button {
	float: none;
	margin: 0;
}

.c400-profile-popup {
	display: grid;
	grid-template-columns: 120px minmax(0, 1fr);
	align-items: start;
	gap: 18px;
	min-width: 0;
}

.c400-profile-popup__avatar img {
	max-width: 96px;
	max-height: 96px;
	object-fit: cover;
}

.c400-profile-popup__avatar .label {
	display: inline-block;
	margin-top: 6px;
}

.c400-profile-popup__details {
	display: grid;
	grid-template-columns: minmax(126px, 150px) minmax(0, 1fr);
	gap: 8px 14px;
	min-width: 0;
	margin: 0;
}

.c400-profile-popup__details dt,
.c400-profile-popup__details dd {
	float: none;
	width: auto;
	min-width: 0;
	margin: 0;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.c400-profile-popup__details dt {
	text-align: right;
	white-space: nowrap;
}

.c400-site-modal .modal-dialog {
	max-width: calc(100vw - 20px);
}

.c400-site-modal { z-index: 12020 !important; }
.modal-backdrop { z-index: 12010 !important; }
.ui-widget-overlay { z-index: 12010 !important; }

.c400-site-modal .modal-content {
	overflow: hidden;
	border: 0;
	border-radius: 5px;
	box-shadow: 0 14px 36px rgba(25, 30, 36, .28);
}

.c400-site-modal .c400-modal-header {
	padding: 14px 18px;
	border: 0;
	background: #30353b;
	color: #fff;
}

.c400-site-modal .c400-modal-header .close {
	color: #fff;
	text-shadow: none;
	opacity: .78;
}

.c400-site-modal .c400-modal-header .close:hover,
.c400-site-modal .c400-modal-header .close:focus { opacity: 1; }

.c400-site-modal .modal-title {
	font-size: 18px;
	font-weight: 500;
	line-height: 1.3;
}

.c400-site-modal .modal-body { padding: 18px; }

/* Modern DLE confirmation without affecting media/profile dialogs. */
.ui-dialog.c400-confirm-dialog {
	left: 50% !important;
	width: min(460px, calc(100vw - 24px)) !important;
	max-width: calc(100vw - 24px) !important;
	transform: translateX(-50%);
	overflow: hidden;
	border: 0;
	border-radius: 6px;
	background: #fff;
	box-shadow: 0 18px 48px rgba(25, 30, 36, .3);
}

.c400-confirm-dialog .ui-dialog-titlebar {
	min-height: 52px;
	padding: 15px 52px 14px 18px;
	border: 0;
	background: #30353b;
	color: #fff;
}

.c400-confirm-dialog .ui-dialog-title {
	float: none;
	margin: 0;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.3;
}

.c400-confirm-dialog .ui-dialog-titlebar-close {
	position: absolute;
	top: 50%;
	right: 10px;
	width: 34px;
	height: 34px;
	margin: -17px 0 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: #fff;
	font-size: 0;
	line-height: 34px;
	opacity: .78;
}

.c400-confirm-dialog .ui-dialog-titlebar-close::before {
	content: "\00d7";
	display: block;
	font-size: 24px;
	font-weight: 300;
	line-height: 32px;
	text-align: center;
}

.c400-confirm-dialog .ui-dialog-titlebar-close:hover,
.c400-confirm-dialog .ui-dialog-titlebar-close:focus { opacity: 1; }
.c400-confirm-dialog .ui-dialog-titlebar-close span { display: none !important; }

/* DLE 20 may paint the dialog before the observer adds its helper class.
 * :has() gives the confirmation window the final appearance immediately. */
.ui-dialog:has(.dle-confirm) {
	z-index: 12030 !important;
}

.ui-dialog:has(.dle-confirm) .ui-dialog-titlebar {
	min-height: 52px;
	padding: 15px 52px 14px 18px !important;
	border: 0 !important;
	background: #30353b !important;
	color: #fff !important;
}

.ui-dialog:has(.dle-confirm) .ui-dialog-title {
	float: none;
	margin: 0;
	color: #fff !important;
	font-size: 0 !important;
	font-weight: 500;
	line-height: 1.3;
}

.ui-dialog:has(.dle-confirm) .ui-dialog-title::before {
	content: "Подтверждение удаления";
	font-size: 18px;
}

.ui-dialog:has(.dle-confirm) .ui-dialog-titlebar-close {
	position: absolute !important;
	top: 50% !important;
	right: 10px !important;
	display: grid !important;
	place-items: center;
	width: 34px !important;
	height: 34px !important;
	margin: -17px 0 0 !important;
	padding: 0 !important;
	overflow: hidden;
	border: 0 !important;
	border-radius: 4px;
	background: transparent !important;
	box-shadow: none !important;
	color: transparent !important;
	font-size: 0 !important;
	line-height: 1 !important;
	text-indent: 0 !important;
	opacity: .82;
}

.ui-dialog:has(.dle-confirm) .ui-dialog-titlebar-close::before {
	content: "\00d7";
	display: block;
	color: #fff;
	font-size: 26px;
	font-weight: 300;
	line-height: 30px;
}

.ui-dialog:has(.dle-confirm) .ui-dialog-titlebar-close:hover,
.ui-dialog:has(.dle-confirm) .ui-dialog-titlebar-close:focus {
	background: rgba(255, 255, 255, .12) !important;
	opacity: 1;
}

.ui-dialog:has(.dle-confirm) .ui-dialog-titlebar-close span,
.ui-dialog:has(.dle-confirm) .ui-dialog-titlebar-close .ui-icon,
.ui-dialog:has(.dle-confirm) .ui-dialog-titlebar-close .ui-button-icon,
.ui-dialog:has(.dle-confirm) .ui-dialog-titlebar-close .ui-button-icon-space,
.ui-dialog:has(.dle-confirm) .ui-dialog-titlebar-close .ui-button-text {
	display: none !important;
}

.c400-confirm-dialog .dle-confirm {
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr);
	align-items: start;
	gap: 13px;
	height: auto !important;
	min-height: 0 !important;
	max-height: none !important;
	padding: 20px 20px 18px !important;
	border: 0;
	background: #fff;
	color: #434a54;
	font-size: 14px;
	line-height: 1.55;
	overflow: visible !important;
}

.c400-confirm-dialog .dle-confirm::before {
	content: "!";
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #fbe9e9;
	color: #b74747;
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
}

.c400-confirm-dialog .ui-dialog-buttonpane {
	margin: 0;
	padding: 12px 16px 14px;
	border-width: 1px 0 0;
	border-style: solid;
	border-color: #e2e5e8;
	background: #f5f6f7;
}

.c400-confirm-dialog .ui-dialog-buttonset {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px;
}

.c400-confirm-dialog .ui-dialog-buttonpane button {
	float: none;
	min-width: 96px;
	height: 38px;
	margin: 0;
	padding: 8px 16px;
	border: 1px solid #cfd4d9;
	border-radius: 4px;
	background: #fff;
	box-shadow: none;
	color: #434a54;
	font-size: 14px;
	font-weight: 500;
	line-height: 20px;
}

.c400-confirm-dialog .ui-dialog-buttonpane button:hover,
.c400-confirm-dialog .ui-dialog-buttonpane button:focus {
	border-color: #aeb5bc;
	background: #eceff1;
}

.c400-confirm-dialog .ui-dialog-buttonpane .c400-confirm-delete {
	order: 2;
	border-color: #b74747;
	background: #b74747;
	color: #fff;
}

.c400-confirm-dialog .ui-dialog-buttonpane .c400-confirm-cancel { order: 1; }

.c400-confirm-dialog .ui-dialog-buttonpane .c400-confirm-delete:hover,
.c400-confirm-dialog .ui-dialog-buttonpane .c400-confirm-delete:focus {
	border-color: #9f3d3d;
	background: #9f3d3d;
}

.c400-modal-search-form .input-group { width: 100%; }

.c400-modal-search-form .form-control,
.c400-modal-search-form .btn {
	height: 42px;
}

.c400-modal-search-form .form-control {
	border-color: #cfd5dc;
	box-shadow: none;
}

.c400-modal-search-form .form-control:focus {
	border-color: #7f8b97;
	box-shadow: 0 0 0 2px rgba(67, 74, 84, .1);
}

.c400-modal-search-form .c400-modal-search-button {
	border-color: #434a54;
	background: #434a54;
	color: #fff;
}

.c400-modal-search-form .c400-modal-search-button:hover,
.c400-modal-search-form .c400-modal-search-button:focus {
	border-color: #30353b;
	background: #30353b;
	color: #fff;
}

.c400-profile-tabs {
	margin: -10px -15px;
	border-bottom: 0;
}

.c400-profile-photo {
	width: min(100%, 210px);
	margin-bottom: 12px;
}

.c400-profile-info { min-height: 40px; }

.c400-userinfo fieldset + fieldset { margin-top: 16px; }

.c400-login-photo {
	width: auto;
	max-width: 120px;
	max-height: 120px;
	object-fit: cover;
}

.c400-login .profile {
	display: block;
	min-height: 0;
	margin-bottom: 0;
}

.c400-profile-modal .c400-login {
	margin: 0;
}

.c400-profile-modal .c400-login > [class*="col-"] { padding: 0; }

.c400-profile-modal .c400-login .well.profile {
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

.c400-login-overview {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 120px;
	align-items: center;
	gap: 16px 22px;
}

.c400-login-identity h2 {
	margin: 0 0 8px;
	color: #434a54;
	font-size: 26px;
	font-weight: 500;
}

.c400-login-group { margin: 0; }

.c400-login-stats {
	display: grid;
	grid-column: 1 / -1;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	margin: 0;
}

.c400-login-stat {
	display: block;
	min-width: 0;
	padding: 10px 12px;
	border: 1px solid #d9dde2;
	border-radius: 4px;
	background: #f5f6f7;
	color: inherit;
	text-decoration: none;
	transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.c400-login-stat:hover,
.c400-login-stat:focus {
	border-color: #aebbc8;
	background: #eef2f5;
	box-shadow: 0 2px 7px rgba(48, 53, 59, .12);
	color: inherit;
	text-decoration: none;
}

.c400-login-stat:focus {
	outline: 2px solid rgba(59, 130, 185, .35);
	outline-offset: 1px;
}

.c400-login-stat__title {
	display: block;
	margin-bottom: 4px;
	color: #7f8790;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.25;
	text-transform: uppercase;
}

.c400-login-stat__value {
	display: block;
	margin: 0;
	color: #434a54;
	font-size: 18px;
	line-height: 1.2;
}

.c400-login-actions > div { margin-top: 12px; }

.c400-profile-modal .c400-login-actions {
	margin: 4px -4px 0;
}

.c400-profile-modal .c400-login-actions > div {
	padding-right: 4px;
	padding-left: 4px;
}

.c400-login-actions .btn-group {
	display: flex;
	width: 100%;
}

.c400-login-actions .btn-group > .btn:first-child {
	flex: 1 1 auto;
}

.c400-login-actions .btn-group > .dropdown-toggle {
	flex: 0 0 auto;
}

.c400-profile-dropdown {
	right: 0;
	left: auto;
	min-width: 210px;
	margin-bottom: 6px;
	padding: 5px 0;
	border-color: #d9dde2;
	box-shadow: 0 7px 18px rgba(48, 53, 59, .18);
	z-index: 1060;
}

.c400-profile-dropdown > li > a {
	padding: 8px 14px;
	color: #434a54;
}

.c400-profile-dropdown > li > a:hover,
.c400-profile-dropdown > li > a:focus { background: #f4f6f8; }

.c400-login-links,
.sociallogin { margin-top: 18px; }

.c400-stats-page .c400-stats-panel {
	border-color: #d9dde2;
}

.c400-stats-page .c400-stats-panel > .panel-heading {
	border-color: #434a54;
	background: #434a54;
	color: #ddd;
}

.c400-stats-page .c400-stats-panel > .panel-body { border-color: #d9dde2; }

.c400-stats-page .table > thead > tr > th,
.c400-stats-page .table > tbody > tr > th,
.c400-stats-page .table > tfoot > tr > th,
.c400-stats-page .table > thead > tr > td,
.c400-stats-page .table > tbody > tr > td,
.c400-stats-page .table > tfoot > tr > td { border-color: #e3e6ea; }

.c400-tags-page {
	overflow: hidden;
	border-color: #dfe3e8;
}

.c400-tags-page > .panel-heading {
	padding: 18px 20px;
	border-color: #dfe3e8;
	background: #3f4054;
	color: #fff;
}

.c400-tags-page > .panel-heading h1 {
	margin: 0;
	font-size: 22px;
	font-weight: 600;
	line-height: 1.25;
}

.c400-tags-page > .panel-heading p {
	margin: 5px 0 0;
	color: rgba(255, 255, 255, .72);
	font-size: 13px;
}

.c400-tags-page > .panel-body { padding: 18px 20px 20px; }

.c400-tags-cloud {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 7px;
	max-width: 100%;
	overflow: hidden;
}

.c400-tags-cloud > span {
	display: inline-flex;
	max-width: 100%;
	margin: 0;
}

.c400-tags-cloud > span > a {
	display: inline-flex;
	align-items: center;
	max-width: 100%;
	min-height: 28px;
	padding: 5px 9px;
	border: 1px solid #d9e2ec;
	border-radius: 4px;
	background: #edf3f8;
	color: #315f86;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.2;
	text-align: left;
	text-decoration: none;
	white-space: normal;
	overflow-wrap: anywhere;
	transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

.c400-tags-cloud > span > a:hover,
.c400-tags-cloud > span > a:focus {
	border-color: #8fb4d3;
	background: #dcebf7;
	color: #204f77;
	text-decoration: none;
}

.c400-footer-panel {
	margin: 5px -15px 0;
}

.c400-footer-panel > .panel-heading {
	background: #434a54;
	border-color: #434a54;
	color: #ddd;
	font-family: NautilusPompilius, Arial, sans-serif;
}

.c400-footer-panel > .panel-body {
	background: #525963;
	color: #ddd;
}

@media (min-width: 1200px) {
	.c400-main-column { width: 75%; }
	.c400-sidebar { width: 25%; }
}

@media (min-width: 768px) {
	.c400-profile-modal .modal-dialog { width: 680px; }
	.c400-search-modal .modal-dialog { width: 640px; }
}

@media (max-width: 1199px) {
	.cont-page { width: calc(100% - 24px); }
	.navbar-nav > li > a { padding-right: 10px; padding-left: 10px; }
}

@media (max-width: 991px) {
	.c400-main-column,
	.c400-sidebar { width: 100%; }
	.c400-sidebar { margin-top: 10px; }
	.c400-server-monitor-grid iframe { display: block; }
	#owl-demo1 .item img { height: 240px; }
}

@media (max-width: 767px) {
	.c400-tags-page > .panel-heading { padding: 14px 15px; }
	.c400-tags-page > .panel-heading h1 { font-size: 18px; }
	.c400-tags-page > .panel-body { padding: 14px 15px 16px; }
	.c400-tags-cloud { gap: 6px; }
	.c400-tags-cloud > span > a {
		min-height: 30px;
		padding: 6px 9px;
		font-size: 12px;
	}
	.cont-page {
		width: 100%;
		padding-right: 10px;
		padding-left: 10px;
	}

	.navbar {
		margin-right: -10px !important;
		margin-left: -10px !important;
	}
	.navbar.navbar-inverse {
		border-color: #30353b;
		background-color: #30353b;
	}
	.navbar-toggle { min-width: 44px; min-height: 44px; }
	.navbar-nav .open .dropdown-menu > li > a { white-space: normal; }
	#owl-demo1 .item img { height: 180px; }

	.c400-layout { display: block; }
	.shortstory .row,
	.c400-story-row {
		display: flex;
		flex-direction: column;
	}
	.shortstory .col-xs-4,
	.shortstory .col-xs-8,
	.c400-story-image,
	.c400-story-body {
		width: 100%;
		float: none;
	}

	.c400-story-body { display: flex; }
	.shortstory > .c400-story-heading,
	.fullstory > .c400-story-heading {
		padding: 13px 15px 14px;
		margin: 0;
		border: 0;
		border-top: 1px solid rgba(255, 255, 255, .32);
		background: #3f4054;
		color: #fff;
	}
	.shortstory > .c400-story-heading .short-title,
	.fullstory > .c400-story-heading .c400-full-title {
		padding: 0;
		margin: 0;
		background: transparent;
		color: #fff;
	}
	.shortstory > .c400-story-heading .short-title {
		font-size: 17px;
		font-weight: 600;
		line-height: 1.35;
		letter-spacing: 0;
	}
	.shortstory > .c400-story-heading a,
	.shortstory > .c400-story-heading a:hover,
	.shortstory > .c400-story-heading a:focus { color: #fff; }
	.shortstory > .c400-story-heading .label {
		margin-bottom: 2px;
		border: 1px solid rgba(255, 255, 255, .24);
		background: rgba(255, 255, 255, .14);
		color: #fff;
	}
	.fullstory > .c400-story-heading .c400-full-title {
		font-size: 18px;
		font-weight: 600;
		line-height: 1.35;
		letter-spacing: 0;
	}
	.fullstory > .c400-story-heading .c400-full-title .label {
		margin-bottom: 2px;
		border: 1px solid rgba(255, 255, 255, .24);
		background: rgba(255, 255, 255, .14);
		color: #fff;
	}
	.fullstory .c400-full-meta {
		margin: 0;
		padding: 10px 12px;
		border-top: 1px solid #d9dde2;
		border-bottom: 0;
		background: #f5f6f7;
	}
	.c400-story-image { order: 0; }
	.c400-story-body > .short-text {
		order: 1;
		padding: 0;
	}
	.c400-story-body > .c400-story-controls {
		order: 2;
		padding: 14px 0 0;
	}

	.shortstory .col-xs-4,
	.c400-story-image { margin-bottom: 12px; }
	.shortstory .col-xs-4 img,
	.c400-story-image img { max-height: 340px; object-fit: contain; }
	.c400-story-toolbar {
		align-items: center;
		flex-wrap: nowrap;
		gap: 10px;
		padding-top: 0;
	}
	.c400-story-actions {
		order: 2;
		flex: 0 1 auto;
		width: auto;
		justify-content: flex-end;
		margin-left: auto;
		gap: 8px;
	}
	.c400-story-more { order: 2; }
	.c400-story-secondary {
		order: 1;
		position: relative;
	}
	.c400-story-secondary-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-width: 34px;
		font-size: 18px;
		line-height: 1;
	}
	.c400-story-secondary-list.dropdown-menu {
		position: absolute;
		top: auto;
		bottom: calc(100% + 4px);
		right: 0;
		left: auto;
		display: none;
		min-width: 190px;
		padding: 5px 0;
		border: 1px solid #d9dde2;
		background: #fff;
		box-shadow: 0 5px 14px rgba(48, 53, 59, .14);
	}
	.c400-story-secondary.open > .c400-story-secondary-list { display: block; }
	.c400-story-secondary-list > li { display: block; }
	.c400-story-secondary-list > li > a { padding: 0; }
	.c400-story-secondary-list > li > a:hover,
	.c400-story-secondary-list > li > a:focus { background: #f4f6f8; }
	.c400-story-secondary-list .btn {
		display: block;
		width: 100%;
		padding: 8px 14px;
		border: 0;
		background: transparent;
		box-shadow: none;
		text-align: left;
		white-space: normal;
	}
	.c400-rating {
		order: 1;
		flex: 0 0 auto;
		width: auto;
		justify-content: flex-start;
		margin-right: 0;
		margin-left: 0;
	}
	.c400-story-meta {
		align-items: flex-start;
		gap: 8px;
		padding: 11px 12px;
	}
	.c400-story-meta-main {
		display: flex;
		align-items: center;
		flex-wrap: nowrap;
		width: 100%;
		gap: 12px;
		overflow: hidden;
	}
	.c400-story-meta-main .c400-story-meta-item {
		display: flex;
		align-items: center;
		gap: 5px;
		width: auto;
		min-width: 0;
		padding: 2px 0;
		border: 0;
	}
	.c400-story-meta-main > .c400-story-meta-item + .c400-story-meta-item {
		margin-left: 0;
		padding-left: 0;
		border-left: 0;
	}
	.c400-story-meta-main .c400-story-author { flex: 0 1 auto; max-width: 29%; }
	.c400-story-meta-main .c400-story-date { flex: 0 0 auto; }
	.c400-story-meta-main .c400-story-category { flex: 1 1 0; }
	.c400-story-meta-key {
		flex: 0 0 auto;
		align-self: center;
	}
	.c400-story-meta-key > span { display: none; }
	.c400-story-meta-value {
		min-width: 0;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
	.c400-story-stats {
		width: 100%;
		justify-content: flex-end;
		padding-top: 9px;
		border-top: 1px solid #d9dde2;
	}
	.c400-full-toolbar { flex-wrap: wrap; }
	.c400-full-actions {
		max-width: 100%;
		margin-left: auto;
	}
	.c400-login-overview {
		grid-template-columns: minmax(0, 1fr) 84px;
		gap: 14px;
	}
	.c400-login-photo {
		max-width: 84px;
		max-height: 84px;
	}
	.c400-login-stats {
		grid-template-columns: 1fr;
		gap: 6px;
	}
	.c400-login-stat {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		padding: 8px 10px;
	}
	.c400-login-stat__title,
	.c400-login-stat__value { margin: 0; }

	.panel-body { padding: 12px; }
	.panel-footer { padding: 10px 12px; }
	.short-title { font-size: 18px; }
	.c400-full-title { font-size: 22px; }
	.short-text { font-size: 14px; }
	.full-content { font-size: 14px; line-height: 1.5; }
	.c400-form-grid { grid-template-columns: 1fr; }
	.c400-form-grid .form-group--wide { grid-column: auto; }
	.c400-pm-menu { display: block; }
	.c400-pm-menu > .btn-group {
		display: block;
		width: 100%;
	}
	.c400-pm-menu > .btn-group > .btn {
		width: 100%;
		border-radius: 0;
	}
	.dle-popup-userprofile {
		width: calc(100vw - 16px) !important;
		max-width: calc(100vw - 16px) !important;
	}
	.dle-popup-userprofile .ui-dialog-content { padding: 12px; }
	.dle-popup-userprofile .ui-dialog-buttonpane { padding: 10px 12px 12px; }
	.dle-popup-userprofile .ui-dialog-buttonset {
		display: grid;
		grid-template-columns: 1fr;
	}
	.dle-popup-userprofile .ui-dialog-buttonpane button { width: 100%; }
	.c400-profile-popup {
		grid-template-columns: 72px minmax(0, 1fr);
		gap: 12px;
	}
	.c400-profile-popup__avatar img {
		max-width: 64px;
		max-height: 64px;
	}
	.c400-profile-popup__details {
		grid-template-columns: max-content minmax(0, 1fr);
		gap: 6px 10px;
	}
	.c400-profile-popup__details dt { text-align: left; }
	.c400-comment { margin-bottom: 16px; }
	.c400-comment-main {
		grid-template-columns: 78px minmax(0, 1fr);
		gap: 11px;
		min-height: 0;
		padding: 12px;
	}
	.c400-comment-author { padding-right: 10px; }
	.c400-comment-userpic {
		width: 62px;
		height: 62px;
	}
	.c400-comment-username {
		margin-top: 6px;
		font-size: 12px;
	}
	.c400-comment-status .label {
		min-width: 0;
		padding: 3px 5px;
		font-size: 10px;
	}
	.c400-comment-footer {
		align-items: flex-start;
		padding: 9px 10px;
	}
	.c400-comment-footer .c400-comment-actions { gap: 5px; }
	.c400-footer-panel { margin-right: -10px; margin-left: -10px; }
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}

	[data-aos] { transform: none !important; opacity: 1 !important; }
}
