.homehas-access-message,
.homehas-bot-panel,
.homehas-submit-news,
.homehas-moderation {
	box-sizing: border-box;
	margin: 32px auto;
	max-width: 1180px;
	padding: 0 20px;
	width: 100%;
}

.homehas-access-message {
	background:
		linear-gradient(180deg, rgba(255,247,237,0.96), rgba(255,255,255,0.92)),
		url("../images/homehas-panel-texture.webp") center center / cover no-repeat;
	border: 1px solid #fed7aa;
	border-radius: 8px;
	padding: 28px;
}

.homehas-bot-panel__header {
	align-items: flex-start;
	background:
		linear-gradient(90deg, rgba(16,24,32,0.96), rgba(16,24,32,0.74)),
		url("../images/homehas-panel-texture.webp") center center / cover no-repeat,
		#101820;
	border-radius: 8px;
	color: #fff;
	display: flex;
	gap: 24px;
	justify-content: space-between;
	margin-bottom: 24px;
	padding: 28px;
}

.homehas-bot-panel__header h1 {
	color: inherit;
	font-size: 3rem;
	line-height: 1.05;
	margin: 0 0 12px;
}

.homehas-kicker,
.homehas-bot-type {
	color: #f7b801;
	font-size: 0.76rem;
	font-weight: 800;
	letter-spacing: 0;
	margin: 0 0 8px;
	text-transform: uppercase;
}

.homehas-role-pill {
	background: #f7b801;
	border-radius: 999px;
	color: #101820;
	font-weight: 800;
	padding: 8px 12px;
	white-space: nowrap;
}

.homehas-bot-grid {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	margin-bottom: 22px;
}

.homehas-bot-card,
.homehas-transcription-box,
.homehas-log-box,
.homehas-job,
.homehas-user-panel,
.homehas-submit-news {
	background:
		linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.92)),
		url("../images/homehas-panel-texture.webp") center center / cover no-repeat;
	border: 1px solid rgba(219, 227, 234, 0.9);
	border-radius: 8px;
	box-shadow: 0 10px 30px rgba(16, 24, 32, 0.08);
	padding: 22px;
	position: relative;
}

.homehas-bot-card::before,
.homehas-transcription-box::before,
.homehas-log-box::before,
.homehas-submit-news::before {
	background: linear-gradient(90deg, #f7b801, #0f766e);
	content: "";
	height: 3px;
	left: 0;
	position: absolute;
	right: 0;
	top: 0;
}

.homehas-bot-card__top {
	align-items: flex-start;
	display: flex;
	gap: 16px;
	justify-content: space-between;
}

.homehas-bot-card h2,
.homehas-transcription-box h2,
.homehas-log-box h2 {
	color: #101820;
	margin: 0 0 12px;
}

.homehas-status {
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 800;
	padding: 6px 10px;
	text-transform: uppercase;
}

.homehas-status--running {
	background: #dcfce7;
	color: #166534;
}

.homehas-status--stopped {
	background: #fee2e2;
	color: #991b1b;
}

.homehas-status--idle {
	background: #e0f2fe;
	color: #075985;
}

.homehas-bot-meta {
	display: grid;
	gap: 10px;
	margin: 18px 0;
}

.homehas-bot-meta div {
	border-top: 1px solid #edf2f7;
	padding-top: 10px;
}

.homehas-bot-meta dt {
	color: #64748b;
	font-size: 0.82rem;
	font-weight: 700;
}

.homehas-bot-meta dd {
	margin: 2px 0 0;
}

.homehas-bot-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.homehas-bot-actions button,
.homehas-transcription-box button,
.homehas-button,
.homehas-submit-news__form button {
	background: linear-gradient(135deg, #0f766e, #0b514d);
	border: 0;
	border-radius: 6px;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	font-weight: 800;
	line-height: 1;
	padding: 11px 14px;
	text-decoration: none;
	transition: box-shadow 160ms ease, transform 160ms ease;
}

.homehas-bot-actions button:hover,
.homehas-transcription-box button:hover,
.homehas-button:hover,
.homehas-submit-news__form button:hover {
	box-shadow: 0 12px 24px rgba(16, 24, 32, 0.16);
	transform: translateY(-1px);
}

.homehas-button--dark {
	background: linear-gradient(135deg, #101820, #172330);
}

.homehas-user-panel {
	box-shadow: 0 18px 38px rgba(16, 24, 32, 0.16);
	max-width: calc(100vw - 24px);
	min-width: 0;
	padding: 10px;
	position: fixed;
	right: max(0.5cm, env(safe-area-inset-right));
	top: max(0.5cm, env(safe-area-inset-top));
	width: 286px;
	z-index: 1000;
}

body.admin-bar .homehas-user-panel {
	top: calc(max(0.5cm, env(safe-area-inset-top)) + 32px);
}

@media (min-width: 1181px) {
	.site-actions {
		padding-right: 304px;
	}
}

@media (max-width: 1180px) {
	.menu-toggle {
		margin-right: 304px;
	}
}

.homehas-user-panel__identity {
	align-items: center;
	display: flex;
	gap: 10px;
}

.homehas-user-panel__identity--guest {
	margin-bottom: 8px;
}

.homehas-user-panel__avatar {
	align-items: center;
	background: #101820;
	border-radius: 8px;
	color: #f7b801;
	display: inline-flex;
	font-weight: 900;
	height: 40px;
	justify-content: center;
	text-transform: uppercase;
	width: 40px;
}

.homehas-user-panel__toggle {
	align-items: center;
	background: transparent;
	border: 0;
	border-radius: 7px;
	color: #101820;
	cursor: pointer;
	display: flex;
	gap: 10px;
	min-height: 44px;
	padding: 0;
	text-align: left;
	width: 100%;
}

.homehas-user-panel__toggle:focus-visible,
.homehas-user-panel__actions a:focus-visible,
.homehas-user-panel__menu a:focus-visible {
	outline: 3px solid rgba(247, 184, 1, 0.72);
	outline-offset: 2px;
}

.homehas-user-panel__summary {
	display: grid;
	min-width: 0;
}

.homehas-user-panel__identity strong,
.homehas-user-panel__identity small,
.homehas-user-panel__meta span {
	display: block;
}

.homehas-user-panel__identity small,
.homehas-user-panel__meta,
.homehas-user-panel p {
	color: #64748b;
	font-size: 0.82rem;
}

.homehas-user-panel p {
	margin: 10px 0 0;
}

.homehas-user-panel__meta {
	border-top: 1px solid #e2e8f0;
	margin-bottom: 8px;
	padding-top: 8px;
}

.homehas-user-panel__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-top: 10px;
}

.homehas-user-panel__actions a {
	background: #eef3f6;
	border: 1px solid #dbe3ea;
	border-radius: 999px;
	color: #101820;
	font-size: 0.78rem;
	font-weight: 850;
	padding: 7px 9px;
	text-decoration: none;
}

.homehas-user-panel__actions a:first-child {
	background: #0f766e;
	border-color: #0f766e;
	color: #fff;
}

.homehas-user-panel__menu {
	background:
		linear-gradient(180deg, rgba(255,255,255,0.99), rgba(255,255,255,0.95)),
		url("../images/homehas-panel-texture.webp") center center / cover no-repeat;
	border: 1px solid rgba(219, 227, 234, 0.96);
	border-radius: 8px;
	box-shadow: 0 18px 42px rgba(16, 24, 32, 0.18);
	display: grid;
	gap: 5px;
	margin-top: 8px;
	padding: 10px;
	position: absolute;
	right: 0;
	top: 100%;
	width: min(286px, calc(100vw - 24px));
}

.homehas-user-panel__menu[hidden] {
	display: none;
}

.homehas-user-panel__menu a {
	border-radius: 6px;
	color: #101820;
	font-size: 0.88rem;
	font-weight: 850;
	min-height: 38px;
	padding: 8px 10px;
	text-decoration: none;
}

.homehas-user-panel__menu a:hover {
	background: #eef3f6;
}

.homehas-profile__password-grid {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.homehas-profile__note {
	color: #64748b;
	margin: 0;
}

.homehas-profile__actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.homehas-submit-news {
	padding: 28px;
}

.homehas-submit-news__header h1 {
	color: #101820;
	font-size: 3rem;
	line-height: 1;
	margin: 0 0 12px;
}

.homehas-submit-news__header p:last-child {
	color: #64748b;
	max-width: 720px;
}

.homehas-submit-news__form {
	display: grid;
	gap: 16px;
	margin-top: 22px;
	max-width: 820px;
	width: 100%;
}

.homehas-submit-news__form label {
	display: grid;
	gap: 7px;
}

.homehas-submit-news__form span {
	color: #334155;
	font-weight: 800;
}

.homehas-submit-news__form input,
.homehas-submit-news__form textarea,
.homehas-submit-news__form select {
	background: rgba(255,255,255,0.9);
	border: 1px solid #cbd5e1;
	border-radius: 7px;
	box-sizing: border-box;
	color: #101820;
	font: inherit;
	padding: 11px 12px;
	width: 100%;
}

.homehas-submit-news__form textarea {
	resize: vertical;
}

.homehas-news-images-field small {
	color: #64748b;
	line-height: 1.45;
}

.homehas-news-images-field input[type="file"] {
	cursor: pointer;
}

.homehas-news-slideshow {
	aspect-ratio: 16 / 9;
	background: #101820;
	margin: 0;
	overflow: hidden;
	position: relative;
	width: 100%;
}

.homehas-news-slideshow__viewport {
	height: 100%;
	position: relative;
	width: 100%;
}

.homehas-news-slideshow__slide {
	inset: 0;
	opacity: 0;
	pointer-events: none;
	position: absolute;
	transition: opacity 900ms ease;
}

.homehas-news-slideshow__slide.is-active {
	opacity: 1;
	pointer-events: auto;
	z-index: 1;
}

.single-article__media.homehas-news-slideshow img {
	height: 100%;
	max-height: none;
	object-fit: cover;
	width: 100%;
}

.homehas-news-slideshow__controls {
	align-items: center;
	background: rgba(16, 24, 32, 0.84);
	bottom: 12px;
	color: #fff;
	display: flex;
	gap: 8px;
	padding: 6px;
	position: absolute;
	right: 12px;
	z-index: 3;
}

.homehas-news-slideshow__controls button {
	align-items: center;
	background: transparent;
	border: 1px solid rgba(255,255,255,0.45);
	border-radius: 6px;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	font-size: 1.7rem;
	height: 38px;
	justify-content: center;
	line-height: 1;
	padding: 0;
	width: 38px;
}

.homehas-news-slideshow__controls button:hover,
.homehas-news-slideshow__controls button:focus-visible {
	background: #f7b801;
	border-color: #f7b801;
	color: #101820;
}

.homehas-news-slideshow__controls span {
	font-size: 0.84rem;
	font-weight: 800;
	min-width: 52px;
	text-align: center;
}

@media (prefers-reduced-motion: reduce) {
	.homehas-news-slideshow__slide {
		transition: none;
	}
}

.homehas-submit-news__form button {
	justify-self: start;
}

.homehas-form-notice {
	border-radius: 8px;
	font-weight: 800;
	margin-top: 18px;
	padding: 12px 14px;
}

.homehas-form-notice--success {
	background: #dcfce7;
	color: #166534;
}

.homehas-form-notice--error {
	background: #fee2e2;
	color: #991b1b;
}

.homehas-bot-actions button[value="stop"] {
	background: #b91c1c;
}

.homehas-transcription-box form {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 16px;
}

.homehas-job-list {
	display: grid;
	gap: 12px;
}

.homehas-job {
	box-shadow: none;
	padding: 16px;
}

.homehas-job span {
	color: #64748b;
	display: block;
	font-size: 0.9rem;
	margin-top: 4px;
}

.homehas-job textarea {
	box-sizing: border-box;
	min-height: 120px;
	margin-top: 10px;
	width: 100%;
}

.homehas-log-box {
	margin-top: 22px;
}

.homehas-log-box ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.homehas-log-box li {
	border-top: 1px solid #edf2f7;
	padding: 10px 0;
}

.homehas-log-box time {
	color: #64748b;
	margin-right: 8px;
}

.homehas-moderation__header {
	max-width: 820px;
}

.homehas-moderation__header h1 {
	color: #101820;
	font-size: 2.2rem;
	line-height: 1.08;
	margin: 0 0 10px;
}

.homehas-moderation__header p:last-child {
	color: #64748b;
}

.homehas-moderation__tabs {
	border-bottom: 1px solid #cbd5e1;
	display: flex;
	gap: 4px;
	margin-top: 22px;
	overflow-x: auto;
}

.homehas-moderation__tabs a {
	color: #334155;
	font-weight: 800;
	padding: 10px 14px;
	text-decoration: none;
	white-space: nowrap;
}

.homehas-moderation__tabs a:hover,
.homehas-moderation__tabs a:focus-visible {
	background: #e8eef2;
	color: #101820;
}

.homehas-moderation__section {
	border-top: 1px solid #dbe3ea;
	padding: 28px 0;
	scroll-margin-top: 20px;
}

.homehas-moderation__section-heading {
	align-items: center;
	display: flex;
	gap: 16px;
	justify-content: space-between;
	margin-bottom: 16px;
}

.homehas-moderation__section-heading h2 {
	font-size: 1.35rem;
	margin: 0;
}

.homehas-moderation__section-heading span,
.homehas-moderation__section-heading a {
	color: #64748b;
	font-size: 0.9rem;
}

.homehas-moderation__list {
	display: grid;
	gap: 12px;
}

.homehas-moderation__item {
	align-items: start;
	background: #fff;
	border: 1px solid #dbe3ea;
	border-radius: 8px;
	display: grid;
	gap: 20px;
	grid-template-columns: minmax(0, 1fr) 285px;
	padding: 18px;
}

.homehas-moderation__item h3 {
	font-size: 1.1rem;
	margin: 8px 0;
}

.homehas-moderation__item p {
	color: #475569;
	margin: 0;
}

.homehas-moderation__item-meta,
.homehas-moderation__item-actions form {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}

.homehas-moderation__item-meta {
	align-items: center;
	color: #64748b;
	font-size: 0.82rem;
}

.homehas-status {
	background: #e2e8f0;
	border-radius: 999px;
	color: #334155;
	font-weight: 800;
	padding: 4px 8px;
}

.homehas-status--pending {
	background: #fef3c7;
	color: #92400e;
}

.homehas-status--publish {
	background: #dcfce7;
	color: #166534;
}

.homehas-moderation__item-actions {
	display: grid;
	gap: 8px;
}

.homehas-moderation__item-actions > a {
	justify-content: center;
}

.homehas-moderation button,
.homehas-user-permissions button {
	background: #0f766e;
	border: 0;
	border-radius: 6px;
	color: #fff;
	cursor: pointer;
	font: inherit;
	font-weight: 800;
	padding: 9px 11px;
}

.homehas-moderation button.homehas-button--secondary {
	background: #475569;
}

.homehas-moderation button.homehas-button--danger {
	background: #b91c1c;
}

.homehas-moderation__users {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.homehas-user-permissions {
	background: #fff;
	border: 1px solid #dbe3ea;
	border-radius: 8px;
	display: grid;
	gap: 12px;
	padding: 16px;
}

.homehas-user-permissions__identity {
	display: grid;
	gap: 2px;
}

.homehas-user-permissions__identity span {
	color: #64748b;
	font-size: 0.86rem;
	overflow-wrap: anywhere;
}

.homehas-user-permissions > label,
.homehas-user-permissions__caps {
	display: grid;
	gap: 6px;
}

.homehas-user-permissions select {
	background: #fff;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	font: inherit;
	padding: 9px;
	width: 100%;
}

.homehas-user-permissions details {
	border-top: 1px solid #e2e8f0;
	padding-top: 10px;
}

.homehas-user-permissions summary {
	cursor: pointer;
	font-weight: 800;
}

.homehas-user-permissions__caps {
	font-size: 0.86rem;
	margin-top: 10px;
}

.homehas-user-permissions__blocked {
	color: #991b1b;
}

.homehas-moderation__table-wrap {
	overflow-x: auto;
}

.homehas-moderation__table {
	border-collapse: collapse;
	font-size: 0.88rem;
	min-width: 760px;
	width: 100%;
}

.homehas-moderation__table th,
.homehas-moderation__table td {
	border-bottom: 1px solid #dbe3ea;
	padding: 10px;
	text-align: left;
	vertical-align: top;
}

.homehas-moderation__empty {
	color: #64748b;
}

@media (max-width: 900px) {
	.homehas-bot-panel__header h1,
	.homehas-submit-news__header h1 {
		font-size: 2.35rem;
	}

	.homehas-moderation__item {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 720px) {
	.homehas-moderation__users {
		grid-template-columns: 1fr;
	}

	.homehas-moderation__section-heading {
		align-items: flex-start;
		flex-direction: column;
	}
	.homehas-bot-panel__header {
		display: block;
		padding: 22px;
	}

	.homehas-role-pill {
		display: inline-flex;
		margin-top: 14px;
		white-space: normal;
	}

	.homehas-user-panel {
		min-width: 0;
		width: 224px;
	}

	body.admin-bar .homehas-user-panel {
		top: calc(max(0.5cm, env(safe-area-inset-top)) + 46px);
	}

	.menu-toggle {
		margin-right: 242px;
	}

	.homehas-profile__password-grid {
		grid-template-columns: 1fr;
	}

	.homehas-submit-news {
		padding: 22px;
	}
}

@media (max-width: 480px) {
	.homehas-access-message,
	.homehas-bot-panel,
	.homehas-submit-news {
		margin: 20px auto;
		padding-left: 12px;
		padding-right: 12px;
	}

	.homehas-bot-card,
	.homehas-transcription-box,
	.homehas-log-box,
	.homehas-job,
	.homehas-submit-news {
		padding: 16px;
	}

	.homehas-user-panel {
		padding: 8px;
		right: max(8px, env(safe-area-inset-right));
		top: max(8px, env(safe-area-inset-top));
		width: 176px;
	}

	body.admin-bar .homehas-user-panel {
		top: calc(max(8px, env(safe-area-inset-top)) + 46px);
	}

	.homehas-user-panel__avatar {
		height: 34px;
		width: 34px;
	}

	.homehas-user-panel__guest-note,
	.homehas-user-panel__summary small {
		display: none;
	}

	.homehas-user-panel__identity strong,
	.homehas-user-panel__summary strong {
		font-size: 0.86rem;
	}

	.menu-toggle {
		margin-right: 184px;
	}

	.homehas-bot-panel__header h1,
	.homehas-submit-news__header h1 {
		font-size: 1.9rem;
	}

	.homehas-bot-actions,
	.homehas-user-panel__actions {
		display: grid;
	}

	.homehas-submit-news__form button {
		justify-self: stretch;
		justify-content: center;
	}
}
