.kh-shell,
.kh-app {
	--kh-gold: #f0c51a;
	--kh-gold-soft: #fff8dc;
	--kh-ink: #191919;
	--kh-muted: #5a6468;
	--kh-line: #dce6ea;
	--kh-ok: #2e9b22;
	--kh-warn: #c9a227;
	--kh-bad: #b32d2e;
	--kh-info: #0b7c9e;
	color: var(--kh-ink);
	font-family: "Montserrat", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
}

.kh-shell {
	margin: 0 auto;
	max-width: 960px;
}

.kh-app {
	background: var(--kh-card-bg, #fff);
	border: 1px solid var(--kh-line);
	border-radius: var(--kh-radius, 16px);
	box-shadow: 0 10px 30px rgba(30, 27, 22, 0.06);
	margin: 0 auto 32px;
	max-width: 840px;
	padding: 28px;
}

.kh-shell .kh-app {
	margin-top: 16px;
}

.kh-app h2,
.kh-app h3 {
	font-family: "Poppins", sans-serif;
	font-weight: 700;
	letter-spacing: -0.02em;
	margin-top: 0;
}

.kh-app h2 {
	font-size: 1.7rem;
}

.kh-app > h2:first-child {
	text-align: center;
}

.kh-nav {
	align-items: center;
	background: #0b1f28;
	border-radius: 16px;
	color: #fff;
	display: flex;
	flex-wrap: wrap;
	gap: 12px 20px;
	justify-content: space-between;
	margin: 0 auto 8px;
	padding: 14px 18px;
}

.kh-nav-brand {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.kh-nav-mark {
	color: var(--kh-gold);
	font-size: 20px;
}

.kh-nav-list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.kh-nav-list a {
	border-radius: 999px;
	color: #e8f4f8;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	text-decoration: none;
}

.kh-nav-list a:hover,
.kh-nav-list a.is-active {
	background: rgba(11, 124, 158, 0.28);
	color: #fff;
}

.kh-nav .kh-logout {
	margin: 0;
}

.kh-nav .kh-nav-logout {
	background: transparent;
	border: 0;
	border-radius: 999px;
	color: #e8f4f8;
	cursor: pointer;
	font: inherit;
	font-weight: 600;
	padding: 6px 12px;
}

.kh-nav .kh-nav-logout:hover {
	background: rgba(11, 124, 158, 0.28);
	color: #fff;
}

.kh-actions .kh-logout {
	display: inline-flex;
	margin: 0;
}

.kh-nav .kh-status {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}

.kh-notice,
.kh-error {
	border-radius: 10px;
	margin: 0 0 16px;
	padding: 12px 16px;
}

.kh-notice {
	background: #edfaef;
	border-left: 4px solid var(--kh-ok);
}

.kh-error {
	background: #fcf0f1;
	border-left: 4px solid var(--kh-bad);
}

.kh-field {
	margin: 0 0 16px;
}

.kh-field label {
	display: block;
	font-weight: 600;
	margin: 0 0 6px;
}

.kh-field input:not([type="checkbox"]):not([type="radio"]),
.kh-field select,
.kh-field textarea {
	background: #fff;
	border: 1px solid var(--kh-line);
	border-radius: 10px;
	box-sizing: border-box;
	max-width: 100%;
	padding: 10px 12px;
	width: 100%;
}

.kh-field input:not([type="checkbox"]):not([type="radio"]):focus,
.kh-field select:focus,
.kh-field textarea:focus {
	border-color: var(--kh-info);
	box-shadow: 0 0 0 3px rgba(11, 124, 158, 0.2);
	outline: none;
}

.kh-field-check {
	margin: 4px 0 18px;
}

.kh-field-check label {
	align-items: center;
	display: flex;
	font-weight: 500;
	gap: 10px;
	line-height: 1.2;
	margin: 0;
}

.kh-field-check input[type="checkbox"] {
	accent-color: var(--kh-info);
	flex: 0 0 auto;
	height: 18px;
	margin: 0;
	width: 18px;
}

.kh-secret {
	display: block;
	position: relative;
}

.kh-secret input {
	padding-right: 4.75rem;
}

.kh-secret-toggle {
	background: transparent;
	border: 0;
	color: var(--kh-muted);
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	padding: 0 10px;
	position: absolute;
	right: 4px;
	top: 50%;
	transform: translateY(-50%);
}

.kh-secret-toggle:hover,
.kh-secret-toggle:focus {
	color: var(--kh-ink);
	outline: none;
}

.kh-required {
	color: var(--kh-bad);
	font-weight: 700;
	text-decoration: none;
}

.kh-hint {
	color: var(--kh-muted);
	display: block;
	font-size: 13px;
	margin-top: 4px;
}

.kh-field-error {
	color: var(--kh-bad);
	display: block;
	font-size: 13px;
	margin-top: 4px;
}

.kh-form-grid {
	display: grid;
	gap: 0 16px;
	grid-template-columns: 1fr 1fr;
}

.kh-button,
.kh-app .button,
.kh-button-secondary {
	background: var(--kh-info);
	border: 0;
	border-radius: 999px;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: "Montserrat", sans-serif;
	font-weight: 400;
	padding: 10px 16px;
	text-decoration: none;
}

.kh-button:hover,
.kh-app .button:hover {
	background: #086480;
	color: #fff;
}

.kh-button-secondary,
.kh-app a.kh-button-secondary {
	background: var(--kh-gold-soft);
	color: var(--kh-ink);
}

.kh-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 20px;
}

.kh-cta {
	display: grid;
	gap: 16px;
	grid-template-columns: 1fr 1fr;
	margin: 20px 0;
}

.kh-cta-card {
	background: #f4fafc;
	border: 1px solid #c5dce4;
	border-radius: 16px;
	padding: 18px 20px;
}

.kh-cta-card h3 {
	margin: 0 0 8px;
}

.kh-cta-card p {
	color: var(--kh-muted);
	margin: 0 0 14px;
}

.kh-muted {
	color: var(--kh-muted);
}

.kh-steps {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0 0 20px;
	padding: 0;
}

.kh-steps li {
	background: var(--kh-gold-soft);
	border-radius: 999px;
	font-size: 13px;
	padding: 6px 12px;
}

.kh-steps .is-current {
	background: #0b7c9e;
	color: #fff;
}

.kh-dl {
	display: grid;
	gap: 8px 16px;
	grid-template-columns: minmax(140px, 200px) 1fr;
	margin: 0 0 16px;
}

.kh-dl dt {
	color: var(--kh-muted);
	font-size: 13px;
	font-weight: 600;
	margin: 0;
}

.kh-dl dd {
	margin: 0;
}

.kh-stats {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	margin: 0 0 20px;
}

.kh-stat {
	background: var(--kh-gold-soft);
	border-radius: 12px;
	padding: 16px;
}

.kh-stat span {
	color: var(--kh-muted);
	display: block;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.kh-stat strong {
	display: block;
	font-size: 1.25rem;
	margin-top: 4px;
}

.kh-lead {
	color: var(--kh-muted);
	margin: 0 0 20px;
}

.kh-panel {
	background: #faf8f2;
	border-radius: 14px;
	margin: 0 0 20px;
	padding: 16px 18px;
}

.kh-copy {
	background: #faf8f2;
	border: 1px dashed var(--kh-line);
	border-radius: 10px;
	display: block;
	font-size: 14px;
	overflow-wrap: anywhere;
	padding: 12px 14px;
}

.kh-field-hint {
	color: var(--kh-muted);
	display: block;
	font-size: 13px;
	font-weight: 400;
	margin-top: 4px;
}

.kh-table-wrap {
	margin: 16px 0;
	overflow-x: auto;
}

.kh-table {
	border-collapse: collapse;
	margin: 0;
	width: 100%;
}

.kh-table th,
.kh-table td {
	border-bottom: 1px solid var(--kh-line);
	padding: 10px 8px;
	text-align: left;
	vertical-align: middle;
}

.kh-table th {
	color: var(--kh-muted);
	font-size: 12px;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.kh-countdown {
	font-variant-numeric: tabular-nums;
	font-weight: 600;
}

.kh-badge {
	background: #d63638;
	border-radius: 999px;
	color: #fff;
	display: inline-block;
	font-size: 11px;
	line-height: 1;
	min-width: 1.2em;
	padding: 3px 6px;
	text-align: center;
}

.kh-notice-list {
	list-style: none;
	margin: 16px 0 0;
	padding: 0;
}

.kh-notice-list li {
	border: 1px solid var(--kh-line);
	border-radius: 12px;
	margin: 0 0 12px;
	padding: 14px 16px;
}

.kh-notice-list .is-unread {
	background: var(--kh-gold-soft);
	border-left: 4px solid var(--kh-gold);
}

.kh-notice-list h3 {
	margin: 0 0 8px;
	text-align: left;
}

.kh-notice-list .kh-actions {
	margin-top: 8px;
}

.kh-notice-list .kh-actions form {
	display: inline;
}

.kh-notice-list .kh-meta {
	color: var(--kh-muted);
	font-size: 13px;
}

.kh-status {
	background: #f0f0f1;
	border-radius: 999px;
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.03em;
	line-height: 1;
	padding: 5px 8px;
	text-transform: uppercase;
}

.kh-status-active,
.kh-status-completed,
.kh-status-fulfilled,
.kh-status-funded,
.kh-status-approved,
.kh-status-published {
	background: #edfaef;
	color: var(--kh-ok);
}

.kh-status-pending,
.kh-status-selected,
.kh-status-processing,
.kh-status-draft,
.kh-status-created,
.kh-status-fulfilment-due,
.kh-status-refunded {
	background: #fcf9e8;
	color: var(--kh-warn);
}

.kh-status-suspended,
.kh-status-rejected,
.kh-status-expired,
.kh-status-cancelled,
.kh-status-failed,
.kh-status-inactive {
	background: #fcf0f1;
	color: var(--kh-bad);
}

.kh-empty {
	background: #faf8f2;
	border-radius: 12px;
	color: var(--kh-muted);
	padding: 20px;
	text-align: center;
}

@media (max-width: 640px) {
	.kh-app {
		padding: 20px 16px;
	}

	.kh-form-grid,
	.kh-dl,
	.kh-cta {
		grid-template-columns: 1fr;
	}

	.kh-nav {
		align-items: flex-start;
		flex-direction: column;
	}
}

.kh-elementor {
	--kh-card-bg: #fff;
	--kh-radius: 16px;
}

.kh-elementor .kh-button,
.kh-elementor .kh-app .button {
	background: var(--kh-info);
}

.kh-auth-nav {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.kh-auth-btn {
	align-items: center;
	border-radius: 999px;
	display: inline-flex;
	font-size: 13px;
	line-height: 1.2;
	padding: 10px 16px;
	text-decoration: none;
}

.kh-auth-btn-ghost {
	background: transparent;
	border: 1px solid currentColor;
}

.kh-auth-btn-solid,
.kh-auth-nav button.kh-auth-btn-solid {
	background: var(--kh-info, #0b7c9e);
	border: 1px solid var(--kh-info, #0b7c9e);
	color: #fff;
}

.kh-join-cta h2 {
	font-family: "Poppins", sans-serif;
	font-weight: 700;
	margin: 0 0 12px;
}

.kh-join-cta .kh-actions {
	justify-content: inherit;
}
