/* Responsive and visual layer for the C400 design on DLE 20.0. */
@font-face {
	font-family: "Gotham Pro";
	src: local("Gotham Pro"), local("GothamPro"), url("../fonts/gotham-pro-regular.ttf") format("truetype");
	font-style: normal;
	font-weight: 400;
	font-display: swap;
}

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;
	background-color: #f1f2f6;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .11), 0 0 35px rgba(0, 0, 0, .06);
}

.shtitle a {
	color: #434a54;
	transition: color .2s ease;
}

.shtitle a:hover,
.shtitle a:focus { color: #000; }

.c400-author-info { margin-bottom: 16px; }

.c400-form-label { width: 134px; }
.c400-admin-options { width: 55%; }
.c400-required-note { margin: 20px 0 0; }
.c400-required-marker { color: #e85319; }
.c400-related-image { object-fit: cover; }

.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;
}

/* Unified menu standard for native DLE selects and Bootstrap dropdowns. */
body select:not([multiple]):not([size]) {
	box-sizing: border-box;
	min-height: 34px;
	padding: 5px 34px 5px 9px;
	border: 2px solid #697683;
	border-radius: 4px;
	background-color: #fbfcfd;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%236f7780' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
	background-size: 12px 8px;
	box-shadow: inset 0 1px 1px rgba(48, 53, 59, .1), 0 1px 2px rgba(48, 53, 59, .06);
	color: #434a54;
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 13px;
	font-weight: 400;
	line-height: 20px;
	color-scheme: light;
	cursor: pointer;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

body select:not([multiple]):not([size]):hover { border-color: #4f5d69; }

body select:not([multiple]):not([size]):focus {
	border-color: #66afe9;
	outline: 0;
	box-shadow: inset 0 1px 1px rgba(48, 53, 59, .08), 0 0 0 3px rgba(51, 122, 183, .14);
}

body select:not([multiple]):not([size]):disabled {
	background-color: #eef1f4;
	color: #8a939c;
	cursor: not-allowed;
}

body select option {
	background: #fff;
	color: #434a54;
	font: inherit;
}

.c400-page .dropdown-menu,
.modal .dropdown-menu,
.ui-dialog .dropdown-menu {
	padding: 5px;
	border: 1px solid #9faab5 !important;
	border-radius: 4px !important;
	background: #fff;
	box-shadow: 0 8px 20px rgba(48, 53, 59, .22) !important;
	color: #434a54;
}

.c400-page .dropdown-item,
.modal .dropdown-item,
.ui-dialog .dropdown-item {
	min-height: 34px;
	padding: 7px 10px;
	border-radius: 3px;
	color: #434a54;
	font-size: 13px;
	font-weight: 400;
	line-height: 20px;
}

.c400-page .dropdown-item:hover,
.c400-page .dropdown-item:focus,
.modal .dropdown-item:hover,
.modal .dropdown-item:focus,
.ui-dialog .dropdown-item:hover,
.ui-dialog .dropdown-item:focus {
	background: #eef1f4;
	color: #30353b;
	text-decoration: none;
}

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

img { height: auto; }

.full-content,
.short-text,
.comment-post,
.card-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; }

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

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

.c400-navbar .nav-link {
	white-space: nowrap;
}

.c400-navbar .navbar-collapse,
.c400-navbar .navbar-nav.ms-auto,
.c400-navbar .navbar-nav.ms-auto .nav-item { min-width: 0; }

.c400-navbar .navbar-nav.ms-auto {
	flex: 0 1 auto;
	margin-right: 0;
}

.c400-profile-trigger,
.c400-profile-trigger > span {
	display: inline-flex;
	align-items: center;
	min-width: 0;
	max-width: 100%;
}

.c400-profile-trigger > span { gap: 4px; }

#c400-navbar-user {
	display: inline-block;
	min-width: 0;
	max-width: clamp(90px, 12vw, 220px);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.c400-speedbar { margin-bottom: 8px; }
.c400-speedbar .breadcrumb { margin-bottom: 0; }

.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; }

.c400-carousel {
	--c400-visible-items: 1;
	position: relative;
	width: 100%;
}

.c400-carousel-viewport {
	overflow: hidden;
	width: 100%;
}

.c400-carousel-track {
	display: flex;
	align-items: stretch;
	width: 100%;
	transition: transform .42s cubic-bezier(.22, .61, .36, 1);
	will-change: transform;
}

.c400-carousel-item {
	flex: 0 0 calc(100% / var(--c400-visible-items));
	min-width: 0;
	box-sizing: border-box;
}

.c400-hero-carousel .c400-carousel-item img {
	display: block;
	width: 100%;
	height: 300px;
	max-height: none;
	object-fit: cover;
	object-position: center center;
}

.c400-topnews-carousel { padding: 12px; }

.c400-topnews-item {
	padding: 4px;
	text-align: center;
}

.c400-topnews-item > .c400-topnews-card {
	box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
}

.c400-topnews-carousel .c400-topnews-card {
	height: auto;
	overflow: hidden;
	padding: 5px;
	background: #e6e9ed;
}

.c400-topnews-carousel .c400-topnews-card > a {
	display: flex;
	flex-direction: column;
	color: #434a54;
	text-decoration: none;
}

.c400-topnews-carousel .c400-topnews-card > a:hover,
.c400-topnews-carousel .c400-topnews-card > a:focus { color: #000; }

.c400-news-tile {
	position: relative;
	height: 100%;
	min-height: 180px;
	overflow: hidden;
	border-radius: 3px;
	background: #20242a;
	color: #fff;
}

.c400-news-tile__image {
	display: block;
	width: 100%;
	height: 180px;
	object-fit: cover;
	transition: opacity .2s ease, transform .25s ease;
}

.c400-news-tile__body {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 18px;
	background: linear-gradient(180deg, transparent 25%, rgba(0, 0, 0, .88));
}

.c400-news-tile__title {
	margin: 0 0 6px;
	font-size: 16px;
	font-weight: 700;
}

.c400-news-tile__text,
.c400-news-tile__meta {
	margin: 0;
	font-size: 12px;
	line-height: 1.4;
}

.c400-news-tile__meta { margin-top: 8px; }

.c400-news-tile__link {
	position: absolute;
	inset: 0;
	z-index: 2;
}

.c400-news-tile:hover .c400-news-tile__image,
.c400-news-tile:focus-within .c400-news-tile__image {
	opacity: .72;
	transform: scale(1.025);
}

.c400-stats-page .c400-stats-summary {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.c400-stats-page .c400-stats-summary li {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 9px 12px;
	border: 1px solid #e2e6ea;
	background: #fff;
}

.c400-stats-page .c400-stats-table {
	margin: 0;
	font-size: 13px;
}

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

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

.c400-topnews-carousel .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;
}

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

.c400-carousel-controls {
	pointer-events: none;
	position: absolute;
	inset: 50% 8px auto;
	z-index: 3;
	display: flex;
	justify-content: space-between;
	transform: translateY(-50%);
}

.c400-carousel-button {
	pointer-events: auto;
	display: grid;
	place-items: center;
	width: 36px;
	height: 44px;
	padding: 0 0 3px;
	border: 1px solid rgba(255, 255, 255, .35);
	border-radius: 4px;
	background: rgba(48, 53, 59, .78);
	box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
	color: #fff;
	font: 32px/1 Arial, sans-serif;
	opacity: .72;
	transition: opacity .18s ease, background .18s ease;
}

.c400-carousel-button:hover,
.c400-carousel-button:focus {
	background: #30353b;
	color: #fff;
	opacity: 1;
	outline: 0;
}

.c400-topnews-carousel .c400-carousel-controls { inset-inline: 14px; }
.c400-topnews-carousel .c400-carousel-button { width: 30px; height: 38px; font-size: 26px; }
.c400-carousel-button[hidden] { display: none; }

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

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

.c400-navigation {
	overflow-x: auto;
	overflow-y: hidden;
	max-width: 100%;
	-webkit-overflow-scrolling: touch;
}

.c400-navigation-line {
	width: max-content;
	min-width: 100%;
}

.c400-navigation .pagination {
	display: flex;
	flex-wrap: nowrap;
	width: max-content;
	white-space: nowrap;
}

.c400-navigation .pagination > li,
.c400-navigation .c400-page-numbers {
	display: flex;
	flex: 0 0 auto;
	flex-wrap: nowrap;
}

.c400-navigation .pagination > li > a,
.c400-navigation .pagination > li > span {
	float: none;
}

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

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

.shortstory,
.fullstory,
.c400-sidebar > .card,
.c400-card-primary,
.c400-card-info { margin-bottom: 20px; }

.c400-dark-card-header,
.c400-card-info > .card-header {
	border-color: #434a54;
	background: #434a54;
	color: #fff;
}

.c400-card-primary > .card-header {
	border-color: #337ab7;
	background: #337ab7;
	color: #fff;
}

.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: 8px 18px;
	border-top: 1px solid #c1c8d0;
	border-bottom: 1px solid #d9dde2;
	background: #f5f6f7;
	box-shadow: 0 -5px 13px rgba(48, 53, 59, .2), inset 0 1px 0 rgba(255, 255, 255, .8);
	color: #6f7780;
}

.shortstory > .c400-story-heading,
.fullstory > .c400-story-heading,
.shortstory > .c400-story-meta,
.fullstory > .c400-story-meta {
	width: 100%;
	max-width: none;
	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: #6f7780; }

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

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

.short-text {
	color: #333;
	font-family: "Gotham Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 14px;
	line-height: 1.55;
}

/* The list layout already renders {image-1} in its own column. Keep the
 * formatted short story, but suppress the same leading [thumb] image. */
.shortstory .short-text > img:first-child,
.shortstory .short-text > a:first-child > img:first-child,
.shortstory .short-text > p:first-child > img:first-child,
.shortstory .short-text > p:first-child > a:first-child > img:first-child {
	display: none !important;
}

.c400-full-title {
	margin: 0 0 12px;
	font-size: clamp(14px, .9vw, 18px);
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -.01em;
}

.c400-full-title .badge {
	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: 14px;
	line-height: 1.55;
}

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

.full-content {
	font-family: "Gotham Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 14px;
	line-height: 1.45;
}

.c400-sidebar,
.c400-vote-card,
.ui-dialog:has(#dlevotespopupcontent),
#dlevotespopupcontent,
.c400-sidebar button,
.c400-sidebar input,
.c400-sidebar select,
.c400-sidebar textarea,
.c400-vote-card button,
.c400-vote-card input,
.c400-vote-card select,
.c400-vote-card textarea,
#dlevotespopupcontent button,
#dlevotespopupcontent input,
#dlevotespopupcontent select,
#dlevotespopupcontent textarea {
	font-family: "Gotham Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.c400-sidebar .c400-vote-card,
.c400-sidebar .c400-vote-card .card-header,
.c400-sidebar .c400-vote-card .vote_list {
	font-size: 13px;
}

.c400-sidebar .c400-vote-card .btn {
	font-size: 12px;
}

.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; }

.c400-story-navigation {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: center;
	gap: 12px;
	margin: 18px 0;
	padding: 10px 12px;
	border: 1px solid #d9dde2;
	border-radius: 4px;
	background: #f5f6f7;
	box-shadow: 0 2px 7px rgba(48, 53, 59, .08);
}

.c400-story-navigation-prev { grid-column: 1; justify-self: start; }
.c400-comment-notifications { grid-column: 2; justify-self: center; }
.c400-story-navigation-next { grid-column: 3; justify-self: end; }

.c400-story-navigation .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-height: 36px;
	padding: 7px 12px;
	border-color: #cfd5db;
	background: #fff;
	color: #434a54;
	box-shadow: none;
}

.c400-story-navigation .btn:hover,
.c400-story-navigation .btn:focus,
.c400-comment-notifications.show > .btn {
	border-color: #9eacbb;
	background: #eef1f4;
	color: #30353b;
}

.c400-comment-notifications:not(:has(.c400-comment-notifications-menu a)) { display: none; }

.c400-comment-notifications-menu {
	top: calc(100% + 6px);
	right: auto;
	left: 50%;
	min-width: 245px;
	padding: 5px;
	transform: translateX(-50%);
	border-color: #d9dde2;
	box-shadow: 0 6px 16px rgba(48, 53, 59, .16);
}

.c400-comment-notifications-menu > li:empty { display: none; }

.c400-comment-notifications-menu > li > a {
	display: block;
	padding: 0;
	border-radius: 3px;
	color: #434a54;
	text-decoration: none;
}

.c400-comment-notifications-menu > li > a > span {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 9px 11px;
}

.c400-comment-notifications-menu > li > a:hover,
.c400-comment-notifications-menu > li > a:focus {
	background: #eef1f4;
	color: #30353b;
}

.c400-comment-notifications-menu i { width: 14px; text-align: center; }

/* 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;
	color: #333;
	font-size: 14px;
}

.vote_list label,
.vote_list .form-check-label,
.pollanswer,
.pollanswer label,
.pollanswer .form-check-label,
.vote_votes,
.pollallvotes {
	color: #333;
}

.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-size: inherit;
	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;
}

/* DLE "Other polls" window: compact questions and clearer answer variants. */
#dlevotespopupcontent .vote_title,
#dlevotespopupcontent h3,
#dlevotespopupcontent h4 {
	font-size: 13px;
	line-height: 1.35;
}

#dlevotespopupcontent .vote_list,
#dlevotespopupcontent .vote_list label,
#dlevotespopupcontent .vote_list .form-check-label,
#dlevotespopupcontent .pollanswer,
#dlevotespopupcontent .pollanswer label,
#dlevotespopupcontent .pollanswer .form-check-label {
	font-size: 15px;
	line-height: 1.45;
}

/* Compact legacy 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;
}

/* DLE 20 editors wrap blank lines between spoilers in <p><br><br></p>. */
.full-content > .dle-spoiler + p:empty:has(+ .dle-spoiler),
.full-content > .dle-spoiler + p:has(> br):not(:has(> :not(br))):has(+ .dle-spoiler) {
	display: none;
}

.full-content > .dle-spoiler + p:empty + .dle-spoiler,
.full-content > .dle-spoiler + p:has(> br):not(:has(> :not(br))) + .dle-spoiler {
	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;
	height: 24px;
	min-height: 24px;
	padding: 2px 9px;
	font-size: 12px;
	line-height: 18px;
}

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

.c400-story-secondary-toggle {
	display: inline-flex;
	flex: 0 0 34px;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 24px;
	min-width: 34px;
	min-height: 24px;
	padding: 0;
	font-size: 15px;
	line-height: 1;
	overflow: hidden;
}

button.c400-story-secondary-toggle.dropdown-toggle::after { display: none !important; }

.c400-story-secondary-list.dropdown-menu {
	position: absolute;
	top: auto;
	bottom: calc(100% + 4px);
	right: 0;
	left: auto;
	display: none;
	min-width: 205px;
	padding: 6px;
	border: 1px solid #d9dde2;
	border-radius: 4px;
	background: #fff;
	box-shadow: 0 6px 18px rgba(48, 53, 59, .16);
	color: #434a54;
	font-size: 13px;
}

.c400-story-secondary-list.show { display: block; }
.c400-story-secondary-list > li { display: block; }
.c400-story-secondary-list > li + li { margin-top: 2px; }
.c400-story-secondary-list > li:empty { display: none; }
.c400-story-secondary-list > li > a {
	display: block;
	padding: 0;
	border-radius: 3px;
	color: inherit;
	text-decoration: none;
}
.c400-story-secondary-list .dropdown-item {
	display: flex;
	align-items: center;
	gap: 9px;
	min-height: 34px;
	padding: 7px 10px;
	border-radius: 3px;
	color: #434a54;
	font-size: 13px;
	font-weight: 400;
	line-height: 20px;
	white-space: nowrap;
}
.c400-story-secondary-list .dropdown-item i {
	flex: 0 0 16px;
	width: 16px;
	color: #6f7780;
	font-size: 14px;
	text-align: center;
}
.c400-story-secondary-list > li > a:hover,
.c400-story-secondary-list > li > a:focus,
.c400-story-secondary-list > li > a:hover .dropdown-item,
.c400-story-secondary-list > li > a:focus .dropdown-item,
.c400-story-secondary-list .dropdown-item:hover,
.c400-story-secondary-list .dropdown-item:focus {
	background: #eef1f4;
	color: #30353b;
	text-decoration: none;
}
.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;
}

/* Standard DLE edit menu (opened from the Edit button). */
#dropmenudiv {
	box-sizing: border-box;
	min-width: 205px !important;
	margin: 4px 0 !important;
	padding: 6px !important;
	border: 1px solid #d9dde2 !important;
	border-radius: 4px;
	background: #fff !important;
	box-shadow: 0 6px 18px rgba(48, 53, 59, .16);
	opacity: 1 !important;
	color: #434a54;
	font-size: 13px !important;
	font-weight: 400;
	line-height: 20px !important;
	filter: none !important;
}

#dropmenudiv a {
	display: flex !important;
	box-sizing: border-box;
	align-items: center;
	min-height: 34px;
	width: 100% !important;
	padding: 7px 10px !important;
	border: 0 !important;
	border-radius: 3px;
	background: transparent !important;
	color: #434a54 !important;
	text-indent: 0 !important;
	text-decoration: none !important;
	white-space: nowrap;
}

#dropmenudiv a + a {
	margin-top: 2px;
}

#dropmenudiv a:hover,
#dropmenudiv a:focus {
	background: #eef1f4 !important;
	color: #30353b !important;
	outline: 0;
}

.c400-rating {
	display: flex;
	order: 1;
	flex: 0 0 auto;
	align-items: center;
	justify-content: flex-start;
	gap: 4px;
	margin: 0;
	line-height: 1;
	white-space: nowrap;
}

.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 .c400-rating-button {
	display: inline-flex;
	flex: 0 0 24px;
	align-items: center;
	justify-content: center;
	width: 24px !important;
	min-width: 24px !important;
	height: 24px !important;
	min-height: 24px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid #ccc;
	border-radius: 3px;
	background: #fff;
	box-shadow: none;
	color: #333;
	font-size: 11px;
	line-height: 1;
	vertical-align: middle;
}

.c400-rating-score {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	min-width: 24px;
	height: 24px;
	margin: 0;
	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-full-actions .btn {
	height: 24px;
	min-height: 24px;
	padding: 2px 7px;
	font-size: 12px;
	line-height: 18px;
}

.c400-story-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px 24px;
	min-height: 37px;
	padding: 8px 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);
}

.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;
}

.mass_comments_action {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 8px;
	padding: 10px 12px;
	border: 1px solid #d9dde2;
	border-radius: 4px;
	background: #f5f6f7;
	color: #434a54;
	font-size: 13px;
}

.mass_comments_action select {
	min-width: 250px;
	height: 34px;
	margin-left: 5px;
	padding: 6px 32px 6px 10px;
	border: 1px solid #cfd5db;
	border-radius: 4px;
	background-color: #fff;
	color: #434a54;
	font: inherit;
	line-height: 20px;
	box-shadow: inset 0 1px 1px rgba(48, 53, 59, .08);
	color-scheme: light;
}

.mass_comments_action select:hover { border-color: #aeb7c1; }

.mass_comments_action select:focus {
	border-color: #66afe9;
	outline: 0;
	box-shadow: inset 0 1px 1px rgba(48, 53, 59, .08), 0 0 0 3px rgba(51, 122, 183, .14);
}

.mass_comments_action select option {
	padding: 7px 10px;
	background: #fff;
	color: #434a54;
}

.mass_comments_action select option:checked {
	background: #e7ebef;
	color: #30353b;
}

.mass_comments_action .bbcodes {
	height: 34px;
	min-height: 34px;
	margin: 0 !important;
	padding: 6px 12px;
	border: 1px solid #2e6da4;
	border-radius: 4px;
	background: #337ab7;
	color: #fff !important;
	font-size: 13px;
	font-weight: 400;
	line-height: 20px;
	text-shadow: none;
	box-shadow: none;
}

.mass_comments_action .bbcodes:hover,
.mass_comments_action .bbcodes:focus {
	border-color: #204d74;
	background: #286090;
	color: #fff !important;
}

.c400-comments #addcomment {
	margin-top: 18px;
}

.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 .badge { 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 .c400-form-field--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-navbar .c400-cs-link,
.c400-navbar .c400-cs-link:hover,
.c400-navbar .c400-cs-link:focus,
.c400-navbar .c400-cs-link.show { 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-native-select {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
}

.c400-pm-list .c400-select-menu {
	display: inline-block;
	width: 250px;
	max-width: calc(100% - 104px);
	margin: 0 8px 0 0;
	vertical-align: middle;
	text-align: left;
}

.c400-pm-list.is-menu-open {
	position: relative;
	z-index: 20;
	overflow: visible;
}

.c400-select-menu__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	height: 34px;
	min-height: 34px;
	padding: 5px 9px;
	border: 2px solid #697683;
	background: #fbfcfd;
	box-shadow: inset 0 1px 1px rgba(48, 53, 59, .08), 0 1px 3px rgba(48, 53, 59, .14);
	color: #434a54;
	font-size: 13px;
	line-height: 20px;
	text-align: left;
}

.c400-select-menu__toggle:hover {
	border-color: #4f5d69;
	background: #fff;
	color: #30353b;
}

.c400-select-menu__toggle:focus,
.c400-select-menu__toggle.show {
	border-color: #337ab7;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(51, 122, 183, .16);
	color: #30353b;
}

.c400-select-menu__toggle::after {
	margin-left: 12px;
	border-top-color: #6f7780;
}

.c400-select-menu__toggle.show::after { transform: rotate(180deg); }

.c400-select-menu__value {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.c400-select-menu__list.dropdown-menu {
	top: calc(100% + 4px) !important;
	right: auto !important;
	bottom: auto !important;
	left: 0 !important;
	z-index: 1080;
	width: 100%;
	min-width: 100%;
	max-height: 270px;
	margin: 0;
	overflow-x: hidden;
	overflow-y: auto;
	transform: none !important;
}

.c400-select-menu__group {
	padding: 7px 10px 5px;
	color: #30353b;
	font-size: 12px;
	font-weight: 700;
	line-height: 18px;
}

.c400-select-menu__option {
	position: relative;
	padding-right: 32px !important;
	text-align: left;
}

.c400-select-menu__option.is-selected {
	background: #e7ebef;
	color: #30353b;
}

.c400-select-menu__option.is-selected::after {
	position: absolute;
	top: 50%;
	right: 10px;
	content: "\2713";
	transform: translateY(-50%);
	color: #337ab7;
	font-weight: 700;
}

.c400-select-menu__option:disabled {
	color: #9aa1a8;
	cursor: default;
	opacity: 1;
}

.c400-pm-list .c400-select-menu + .bbcodes,
.c400-pm-list .c400-select-menu ~ .bbcodes {
	height: 34px;
	min-height: 34px;
	margin: 0 !important;
	padding: 6px 12px;
	border: 1px solid #2e6da4;
	border-radius: 4px;
	background: #337ab7;
	box-shadow: none;
	color: #fff !important;
	font-size: 13px;
	font-weight: 400;
	line-height: 20px;
	text-shadow: none;
}

.c400-pm-list .c400-select-menu + .bbcodes:hover,
.c400-pm-list .c400-select-menu + .bbcodes:focus,
.c400-pm-list .c400-select-menu ~ .bbcodes:hover,
.c400-pm-list .c400-select-menu ~ .bbcodes:focus {
	border-color: #204d74;
	background: #286090;
}

.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;
}

/* Unified DLE 20 dialog appearance. The SVG close icon follows the current
 * official templates and avoids the broken Close/Clc text from old jQuery UI. */
.ui-widget-overlay {
	background: #111820 !important;
	opacity: .48 !important;
}

.ui-dialog {
	z-index: 12020 !important;
	box-sizing: border-box;
	max-width: calc(100vw - 24px) !important;
	overflow: hidden !important;
	border: 0 !important;
	border-radius: 6px !important;
	background: #fff !important;
	background-clip: padding-box;
	box-shadow: 0 18px 48px rgba(25, 30, 36, .3) !important;
	color: #303740;
	outline: 0;
}

.ui-dialog .ui-dialog-titlebar,
.ui-draggable .ui-dialog-titlebar {
	box-sizing: border-box;
	min-height: 52px;
	padding: 14px 52px 13px 18px !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: #30353b !important;
	color: #fff !important;
}

.ui-dialog .ui-dialog-title {
	display: block;
	float: none !important;
	margin: 0 !important;
	overflow: hidden;
	color: #fff !important;
	font-size: 18px;
	font-weight: 500;
	line-height: 25px;
	text-overflow: ellipsis;
	text-shadow: none !important;
	white-space: nowrap;
}

.ui-dialog .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 !important;
	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 .ui-dialog-titlebar-close::before {
	content: "";
	display: block;
	width: 16px;
	height: 16px;
	background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center / 16px 16px no-repeat;
}

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

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

.ui-dialog .ui-dialog-content {
	box-sizing: border-box;
	border: 0 !important;
	background: #fff !important;
	color: #303740;
}

.ui-dialog .ui-dialog-buttonpane {
	box-sizing: border-box;
	margin: 0 !important;
	padding: 12px 16px 14px !important;
	border-width: 1px 0 0 !important;
	border-style: solid !important;
	border-color: #e2e5e8 !important;
	background: #f5f6f7 !important;
	text-align: right !important;
}

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

.ui-dialog .ui-dialog-buttonpane button {
	float: none !important;
	min-height: 36px;
	margin: 0 !important;
	padding: 7px 14px !important;
	border: 1px solid #cbd1d6 !important;
	border-radius: 4px !important;
	background: #fff !important;
	box-shadow: none !important;
	color: #303740 !important;
	font-size: 14px;
	font-weight: 500;
	line-height: 20px;
	text-shadow: none !important;
}

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

.ui-dialog .ui-dialog-buttonpane button.ui-button-delete {
	border-color: #b74747 !important;
	background: #b74747 !important;
	color: #fff !important;
}

.ui-dialog .ui-dialog-buttonpane button.ui-button-delete:hover,
.ui-dialog .ui-dialog-buttonpane button.ui-button-delete:focus {
	border-color: #9f3d3d !important;
	background: #9f3d3d !important;
}

.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;
}

.dle-popup-userprofile .ui-dialog-buttonpane .c400-profile-popup-action {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 7px;
}

.c400-profile-popup-action__icon {
	width: 15px;
	flex: 0 0 15px;
	color: #697683;
	font-size: 13px;
	line-height: 1;
	text-align: center;
}

.c400-profile-popup-action__label {
	display: inline-block;
	line-height: 20px;
}

.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 .badge {
	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: 10px;
	box-shadow: 0 14px 36px rgba(25, 30, 36, .28);
}

.c400-profile-modal .modal-dialog,
.c400-profile-modal .modal-content,
.c400-profile-modal .modal-body,
.c400-profile-modal .c400-login,
.c400-profile-modal .c400-login .profile,
.c400-profile-modal .c400-login-actions,
.c400-profile-modal .c400-profile-menu {
	overflow: visible;
}

.c400-profile-modal .modal-body {
	border-radius: 0 0 10px 10px;
	background: #f6f7f9;
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.c400-site-modal .c400-modal-header {
	position: relative;
	min-height: 52px;
	padding: 14px 52px 13px 18px;
	border: 0;
	background: #30353b;
	color: #fff;
}

.c400-site-modal .c400-modal-header .btn-close {
	position: absolute;
	top: 50%;
	right: 10px;
	width: 34px;
	height: 34px;
	margin: -17px 0 0;
	padding: 0;
	border: 0;
	border-radius: 4px;
	opacity: .82;
}

.c400-site-modal .c400-modal-header .btn-close:hover,
.c400-site-modal .c400-modal-header .btn-close:focus {
	background: rgba(255, 255, 255, .12);
	opacity: 1;
}

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

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

.c400-site-modal.c400-profile-modal .c400-modal-header {
	min-height: 44px;
	padding: 10px 46px 9px 16px;
}

.c400-site-modal.c400-profile-modal .c400-modal-header .btn-close {
	right: 8px;
	width: 30px;
	height: 30px;
	margin-top: -15px;
}

.c400-site-modal.c400-profile-modal .c400-modal-header .modal-title {
	font-size: 17px;
	line-height: 24px;
}

.c400-site-modal .modal-footer {
	padding: 12px 16px 14px;
	border-color: #e2e5e8;
	background: #f5f6f7;
}

/* Modern DLE confirmation without affecting media/profile dialogs. */
.ui-dialog.c400-confirm-dialog {
	left: 50% !important;
	width: min(460px, calc(100vw - 24px)) !important;
	height: auto !important;
	min-height: 0 !important;
	max-width: calc(100vw - 24px) !important;
	max-height: calc(100vh - 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: "";
	display: block;
	width: 16px;
	height: 16px;
	background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center / 16px 16px no-repeat;
}

.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;
	height: auto !important;
	min-height: 0 !important;
	max-height: calc(100vh - 24px) !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: 18px !important;
	font-weight: 500;
	line-height: 1.3;
}

.ui-dialog:has(.dle-confirm) .ui-dialog-title::before {
	content: none;
}

.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;
}

/* Compact account card opened from the nickname in the site header. */
.c400-profile-modal .modal-dialog {
	width: min(420px, calc(100vw - 20px));
}

.c400-profile-modal .modal-body:has(.c400-account-card) {
	padding: 0;
	overflow: hidden;
	border-radius: 0 0 10px 10px;
	background: #fff;
}

.c400-account-card {
	min-width: 0;
	background: #fff;
	color: #303740;
	font-family: "Gotham Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.c400-account-cover {
	position: relative;
	height: 86px;
	margin-bottom: 50px;
	background: #eef2f6;
}

.c400-account-avatar {
	position: absolute;
	right: 50%;
	bottom: -48px;
	display: block;
	width: 96px;
	height: 96px;
	padding: 5px;
	transform: translateX(50%);
	border: 1px solid #dce2e8;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 5px 16px rgba(48, 53, 59, .16);
	transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.c400-account-avatar:hover,
.c400-account-avatar:focus {
	transform: translateX(50%) translateY(-2px);
	border-color: #8eb9dc;
	box-shadow: 0 7px 20px rgba(48, 53, 59, .22);
	outline: 0;
}

.c400-account-avatar img {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
}

.c400-account-content {
	padding: 0 28px 22px;
	text-align: center;
}

.c400-account-name {
	display: block;
	margin-bottom: 7px;
	color: #337ab7;
	font-size: 17px;
	font-weight: 500;
	line-height: 1.3;
	text-decoration: none;
	overflow-wrap: anywhere;
}

.c400-account-name:hover,
.c400-account-name:focus {
	color: #23527c;
	text-decoration: none;
}

.c400-account-card .c400-login-group {
	justify-content: center;
	margin-bottom: 6px;
}

.c400-account-admin {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 2px;
	color: #337ab7;
	font-size: 13px;
	text-decoration: none;
}

.c400-account-admin:hover,
.c400-account-admin:focus {
	color: #23527c;
	text-decoration: underline;
}

.c400-account-links {
	margin-top: 19px;
	border-top: 1px solid #e3e7eb;
	text-align: left;
}

.c400-account-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 53px;
	padding: 12px 0;
	border-bottom: 1px solid #e3e7eb;
	color: #303740;
	font-size: 13px;
	line-height: 1.35;
	text-decoration: none;
}

.c400-account-row:hover,
.c400-account-row:focus {
	color: #337ab7;
	text-decoration: none;
}

.c400-account-row__value {
	flex: 0 0 auto;
	color: #697683;
	font-weight: 400;
	white-space: nowrap;
}

.c400-account-row__value strong {
	color: #434a54;
	font-weight: 600;
}

.c400-account-row__arrow {
	flex: 0 0 auto;
	color: #929ba5;
	font-size: 16px;
}

.c400-account-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding-top: 20px;
}

.c400-account-action {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 30px;
	color: #337ab7;
	font-size: 13px;
	line-height: 20px;
	text-decoration: none;
}

.c400-account-action:hover,
.c400-account-action:focus {
	color: #23527c;
	text-decoration: none;
}

.c400-account-action--add .fa {
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border: 2px solid currentColor;
	border-radius: 50%;
	font-size: 13px;
}

.c400-account-action--logout { margin-left: auto; }

@media (max-width: 420px) {
	.c400-account-content { padding-right: 20px; padding-left: 20px; }
	.c400-account-actions { gap: 12px; }
}

.ui-dialog:has(.dle-confirm) .ui-dialog-titlebar-close::before {
	content: "";
	display: block;
	width: 16px;
	height: 16px;
	background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center / 16px 16px no-repeat;
}

.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 {
	position: relative;
	height: auto !important;
	min-height: 0 !important;
	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 !important;
	background: #b74747 !important;
	color: #fff !important;
}

.c400-confirm-dialog .ui-dialog-buttonpane .c400-confirm-primary {
	order: 2;
	border-color: #337ab7 !important;
	background: #337ab7 !important;
	color: #fff !important;
}

.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 !important;
	background: #9f3d3d !important;
}

.c400-confirm-dialog .ui-dialog-buttonpane .c400-confirm-primary:hover,
.c400-confirm-dialog .ui-dialog-buttonpane .c400-confirm-primary:focus {
	border-color: #286090 !important;
	background: #286090 !important;
}

.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 .card-body.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-profile-modal .c400-login-overview {
	padding: 14px;
	border: 1px solid #e1e5e9;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 3px 12px rgba(48, 53, 59, .06);
}

.c400-profile-modal .c400-login-avatar img {
	border: 3px solid #fff;
	box-shadow: 0 0 0 1px #dce1e6, 0 5px 14px rgba(48, 53, 59, .14);
}

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

.c400-login-group {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	line-height: 1;
}

.c400-login-group__label {
	color: #7f8790;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .035em;
	text-transform: uppercase;
}

.c400-login-group__value {
	display: inline-flex;
	align-items: center;
	min-height: 24px;
	padding: 3px 8px;
	border: 1px solid #cbd2d9;
	border-radius: 999px;
	background: #f1f3f5;
	color: #53606c;
	font-size: 12px;
	font-weight: 600;
	line-height: 16px;
}

.c400-login-group__value * {
	color: inherit !important;
	font: inherit !important;
}

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

.c400-login-stat {
	display: block;
	min-width: 0;
	min-height: 54px;
	padding: 7px 10px;
	border: 1px solid #cbd2d9;
	border-radius: 6px;
	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: 2px;
	color: #7f8790;
	font-size: 10px;
	font-weight: 600;
	line-height: 1.25;
	text-transform: uppercase;
}

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

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

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

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

.c400-profile-action-button,
.c400-profile-menu__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 34px;
	min-height: 34px;
	padding: 6px 10px;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 400;
	line-height: 20px;
}

.c400-profile-action-button {
	border-color: #aeb7c1;
	background: #fff;
	color: #3f4750;
	box-shadow: 0 1px 2px rgba(48, 53, 59, .04);
}

.c400-profile-action-button:hover,
.c400-profile-action-button:focus {
	border-color: #9da8b2;
	background: #f2f4f6;
	color: #30353b;
}

.c400-profile-menu__toggle,
.c400-profile-menu__toggle:hover,
.c400-profile-menu__toggle:focus,
.c400-profile-menu__toggle.show {
	border-color: #98a3ae;
	background: #fff;
	color: #333;
}

.c400-profile-menu__toggle:hover,
.c400-profile-menu__toggle:focus,
.c400-profile-menu__toggle.show {
	border-color: #7f8b97;
	background: #e6e6e6;
}

.c400-profile-menu__toggle::after {
	margin-left: auto;
	transition: transform .18s ease;
}

.c400-profile-menu__toggle.show::after { transform: rotate(180deg); }

.c400-profile-menu__toggle .fa {
	width: 16px;
	text-align: center;
}

.c400-profile-dropdown {
	top: calc(100% + 6px) !important;
	right: 0 !important;
	bottom: auto !important;
	left: auto !important;
	min-width: 248px;
	margin: 0;
	padding: 5px;
	border: 1px solid #9faab5;
	border-radius: 4px;
	background: #fff;
	box-shadow: 0 8px 20px rgba(48, 53, 59, .22);
	transform: none !important;
	z-index: 12040;
}

.c400-profile-dropdown::before {
	content: "";
	position: absolute;
	top: -6px;
	right: 17px;
	width: 11px;
	height: 11px;
	border-top: 1px solid #9faab5;
	border-left: 1px solid #9faab5;
	background: #fff;
	transform: rotate(45deg);
}

.c400-profile-dropdown .dropdown-item {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 34px;
	padding: 7px 10px;
	border-radius: 3px;
	color: #434a54;
	font-size: 13px;
	font-weight: 400;
}

.c400-profile-dropdown .dropdown-item:hover,
.c400-profile-dropdown .dropdown-item:focus {
	background: #edf1f4;
	color: #30353b;
}

.c400-profile-dropdown .dropdown-item .fa {
	width: 17px;
	color: #7a858f;
	text-align: center;
}

.c400-profile-dropdown .dropdown-divider {
	margin: 6px 3px;
	border-color: #e3e7eb;
}

.c400-profile-dropdown .c400-profile-dropdown__logout,
.c400-profile-dropdown .c400-profile-dropdown__logout .fa { color: #a43f3f; }

.c400-profile-dropdown .c400-profile-dropdown__logout:hover,
.c400-profile-dropdown .c400-profile-dropdown__logout:focus {
	background: #fbefef;
	color: #8f3333;
}

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

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

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

.c400-stats-page .c400-stats-panel > .card-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 > .card-header {
	padding: 18px 20px;
	border-color: #dfe3e8;
	background: #3f4054;
	color: #fff;
}

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

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

.c400-tags-page > .card-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 {
	width: calc(100% + 30px);
	max-width: none;
	margin: 18px -15px 24px;
	overflow: hidden;
	border-color: #434a54;
	border-radius: 0 0 5px 5px;
	box-shadow: 0 3px 10px rgba(48, 53, 59, .14);
}

.c400-footer-panel > .card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 11px 16px;
	background: #434a54;
	border-color: #434a54;
	color: #ddd;
	font-family: Arial, "Segoe UI", sans-serif;
	font-size: 13px;
	font-style: normal;
	font-weight: 400;
}

.c400-footer-heading-text {
	overflow: hidden;
	min-width: 0;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.c400-footer-feedback {
	color: #ddd;
	font: inherit;
	text-decoration: none;
}

.c400-footer-feedback:hover,
.c400-footer-feedback:focus {
	color: #fff;
	text-decoration: underline;
}

.c400-footer-stats {
	flex: 0 0 auto;
	margin-left: auto;
	color: #ddd;
	font: inherit;
	text-decoration: none;
	white-space: nowrap;
}

.c400-footer-stats:hover,
.c400-footer-stats:focus {
	color: #fff;
	text-decoration: underline;
}

.c400-footer-panel > .card-body {
	min-height: 92px;
	padding: 15px 18px 17px;
	background: #525963;
	color: #ddd;
}

.c400-footer-content {
	display: flex;
	align-items: flex-start;
	gap: clamp(24px, 5vw, 80px);
	width: 100%;
	min-height: 59px;
}

.c400-footer-logo {
	flex: 0 0 auto;
	margin: 0;
	font-family: Arial, "Segoe UI", sans-serif;
	font-weight: 700;
	letter-spacing: -2px;
	line-height: 1;
	text-shadow: 0 2px 4px rgba(0, 0, 0, .28);
	white-space: nowrap;
}

.c400-footer-copy {
	padding-top: 7px;
	font-size: 14px;
	line-height: 1.55;
}

@media (min-width: 992px) {
	.c400-main-column { width: 80%; }
	.c400-sidebar { width: 20%; }
	.shortstory > .c400-story-heading .short-title,
	.fullstory > .c400-story-heading .c400-full-title {
		font-size: clamp(12px, calc(.9vw - 2px), 16px);
	}
}

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

@media (max-width: 1199px) {
	.cont-page { width: calc(100% - 24px); }
	.c400-navbar .nav-link { 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; }
	.c400-hero-carousel .c400-carousel-item img { height: 240px; }
}

@media (max-width: 767px) {
	.c400-profile-trigger { max-width: 100%; }
	#c400-navbar-user { max-width: calc(100vw - 80px); }

	.ui-dialog {
		max-width: calc(100vw - 16px) !important;
	}
	.ui-dialog .ui-dialog-titlebar,
	.ui-draggable .ui-dialog-titlebar,
	.ui-dialog:has(.dle-confirm) .ui-dialog-titlebar,
	.c400-site-modal .c400-modal-header {
		min-height: 48px;
		padding: 12px 48px 11px 14px !important;
	}
	.ui-dialog .ui-dialog-title,
	.c400-site-modal .modal-title {
		font-size: 16px;
		line-height: 25px;
	}
	.c400-profile-modal .c400-modal-header {
		min-height: 42px;
		padding: 9px 44px 8px 13px !important;
	}
	.c400-profile-modal .c400-modal-header .modal-title {
		font-size: 16px;
		line-height: 24px;
	}
	.ui-dialog:has(.dle-confirm) .ui-dialog-title::before { font-size: 16px; }
	.ui-dialog .ui-dialog-titlebar-close,
	.ui-dialog:has(.dle-confirm) .ui-dialog-titlebar-close,
		.c400-site-modal .c400-modal-header .btn-close {
		right: 7px !important;
	}
	.ui-dialog .ui-dialog-content { padding: 14px !important; }
	.ui-dialog .ui-dialog-buttonpane { padding: 10px 12px 12px !important; }
	.ui-dialog .ui-dialog-buttonset { gap: 6px; }
	.ui-dialog .ui-dialog-buttonpane button { min-height: 38px; }
	.c400-site-modal .modal-body { padding: 14px; }
	.c400-site-modal .modal-footer { padding: 10px 12px 12px; }

	.c400-tags-page > .card-header { padding: 14px 15px; }
	.c400-tags-page > .card-header h1 { font-size: 18px; }
	.c400-tags-page > .card-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;
	}

	.c400-navbar {
		margin-right: -10px !important;
		margin-left: -10px !important;
	}
	.c400-navbar.bg-dark {
		border-color: #30353b;
		background-color: #30353b;
	}
	.navbar-toggler { min-width: 44px; min-height: 44px; }
	.c400-navbar .dropdown-menu.show .dropdown-item { white-space: normal; }
	.c400-hero-carousel .c400-carousel-item img { height: 180px; }
	.c400-carousel-button { width: 32px; height: 40px; font-size: 28px; }

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

	.c400-story-body { display: flex; }
	.shortstory > .c400-story-heading,
	.fullstory > .c400-story-heading {
		padding: 8px 12px;
		margin: 0;
		border-top: 1px solid #c1c8d0;
		border-bottom: 1px solid #d9dde2;
		background: #f5f6f7;
		box-shadow: 0 -5px 13px rgba(48, 53, 59, .2), inset 0 1px 0 rgba(255, 255, 255, .8);
		color: #6f7780;
	}
	.shortstory > .c400-story-heading .short-title,
	.fullstory > .c400-story-heading .c400-full-title {
		padding: 0;
		margin: 0;
		background: transparent;
		color: #6f7780;
	}
	.shortstory > .c400-story-heading .short-title {
		font-size: 13px;
		font-weight: 700;
		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: #6f7780; }
	.shortstory > .c400-story-heading .badge {
		margin-bottom: 2px;
	}
	.fullstory > .c400-story-heading .c400-full-title {
		font-size: 13px;
		font-weight: 700;
		line-height: 1.35;
		letter-spacing: 0;
	}
	.fullstory > .c400-story-heading .c400-full-title .badge {
		margin-bottom: 2px;
	}
	.fullstory .c400-full-meta {
		margin: 0;
		padding: 7px 12px;
		border-top: 1px solid #d9dde2;
		border-bottom: 0;
		background: #f5f6f7;
	}
	.c400-story-navigation {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 8px;
		margin: 14px 0;
		padding: 9px;
	}
	.c400-story-navigation-prev {
		grid-row: 1;
		grid-column: 1;
		justify-self: stretch;
	}
	.c400-story-navigation-next {
		grid-row: 1;
		grid-column: 2;
		justify-self: stretch;
	}
	.c400-comment-notifications {
		grid-row: 2;
		grid-column: 1 / -1;
		justify-self: stretch;
	}
	.c400-story-navigation-prev .btn,
	.c400-story-navigation-next .btn,
	.c400-comment-notifications-toggle { width: 100%; }
	.c400-story-navigation .btn {
		min-height: 38px;
		padding: 7px 9px;
		font-size: 12px;
	}
	.c400-comment-notifications-menu {
		right: 0;
		left: 0;
		width: 100%;
		min-width: 0;
		transform: none;
	}
	.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;
	}

	.c400-story-image { margin-bottom: 12px; }
	.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;
		flex: 0 0 34px;
		align-items: center;
		justify-content: center;
		width: 34px;
		height: 24px;
		min-width: 34px;
		min-height: 24px;
		padding: 0;
		font-size: 15px;
		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: 205px;
		max-width: calc(100vw - 24px);
		padding: 6px;
		border: 1px solid #d9dde2;
		border-radius: 4px;
		background: #fff;
		box-shadow: 0 6px 18px rgba(48, 53, 59, .16);
	}
	.c400-story-secondary-list.show { display: block; }
	.c400-story-secondary-list .dropdown-item { white-space: normal; }
	.c400-rating {
		order: 1;
		flex: 0 0 auto;
		width: auto;
		justify-content: flex-start;
		margin-right: 0;
		margin-left: 0;
	}
	.shortstory > .c400-story-meta,
	.fullstory > .c400-story-meta {
		align-items: flex-start;
		gap: 6px;
		padding: 7px 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;
		min-height: 42px;
		padding: 6px 9px;
	}
	.c400-login-stat__title,
	.c400-login-stat__value { margin: 0; }

	.card-body { padding: 12px; }
	.card-footer { padding: 10px 12px; }
	.short-title { font-size: 13px; }
	.c400-full-title { font-size: 13px; }
	.short-text { font-size: 14px; }
	.full-content { font-size: 14px; line-height: 1.5; }
	.c400-form-grid { grid-template-columns: 1fr; }
	.c400-form-grid .c400-form-field--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; }
	.mass_comments_action {
		justify-content: flex-start;
	}
	.mass_comments_action select {
		flex: 1 1 220px;
		min-width: 0;
		max-width: 100%;
	}
	.mass_comments_action .bbcodes {
		flex: 0 0 auto;
	}
	.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 .badge {
		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 {
		width: calc(100% + 20px);
		margin: 16px -10px 18px;
	}
	.c400-footer-panel > .card-header {
		gap: 8px;
		padding: 10px 13px;
		font-size: 12px;
	}
	.c400-footer-panel > .card-body {
		min-height: 0;
		padding: 13px 14px 14px;
	}
	.c400-footer-content {
		align-items: flex-start;
		flex-wrap: wrap;
		gap: 12px;
		min-height: 0;
	}
	.c400-footer-logo { font-size: 42px; }
	.c400-footer-copy {
		order: 3;
		flex: 1 0 100%;
		padding-top: 0;
		font-size: 12px;
	}
}

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

}

/* One visual standard for Bootstrap and DLE/jQuery UI popup headers. */
.c400-site-modal .c400-modal-header,
.c400-site-modal.c400-profile-modal .c400-modal-header,
.ui-dialog .ui-dialog-titlebar,
.ui-draggable .ui-dialog-titlebar,
.c400-confirm-dialog .ui-dialog-titlebar,
.ui-dialog:has(.dle-confirm) .ui-dialog-titlebar {
	box-sizing: border-box;
	min-height: 40px;
	padding: 9px 44px 8px 14px !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: #434a54 !important;
	color: #fff !important;
}

.c400-site-modal .modal-title,
.c400-site-modal.c400-profile-modal .c400-modal-header .modal-title,
.ui-dialog .ui-dialog-title,
.c400-confirm-dialog .ui-dialog-title,
.ui-dialog:has(.dle-confirm) .ui-dialog-title {
	margin: 0 !important;
	color: #fff !important;
	font-family: "Gotham Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 14px !important;
	font-weight: 400;
	line-height: 23px;
	text-shadow: none !important;
}

.c400-site-modal .c400-modal-header .btn-close,
.c400-site-modal.c400-profile-modal .c400-modal-header .btn-close,
.ui-dialog .ui-dialog-titlebar-close,
.c400-confirm-dialog .ui-dialog-titlebar-close,
.ui-dialog:has(.dle-confirm) .ui-dialog-titlebar-close {
	top: 50% !important;
	right: 6px !important;
	width: 30px !important;
	height: 30px !important;
	margin: -15px 0 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 4px !important;
	background-color: transparent !important;
	box-shadow: none !important;
	opacity: .82;
}
