.tenfish-dg {
	display: inline-flex;
}

.tenfish-dg__modal[hidden] {
	display: none !important;
}

.tenfish-dg__modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: max(1.25rem, env(safe-area-inset-top)) 1.25rem max(1.25rem, env(safe-area-inset-bottom));
	box-sizing: border-box;
	overflow: auto;
}

.tenfish-dg__backdrop {
	position: absolute;
	inset: 0;
	background: color-mix(in srgb, #061316 72%, transparent);
	backdrop-filter: blur(4px);
}

.tenfish-dg__dialog {
	position: relative;
	z-index: 1;
	width: min(100%, 28rem);
	max-height: min(90vh, 40rem);
	overflow: auto;
	margin: auto;
	padding: 1.75rem 1.5rem 1.5rem;
	border-radius: 4px;
	background: #f4f7f8;
	color: #0b1c22;
	box-shadow: 0 24px 64px rgba(6, 19, 22, 0.35);
}

.tenfish-dg__close {
	position: absolute;
	top: 0.5rem;
	right: 0.65rem;
	border: 0;
	background: transparent;
	color: #4a5f66;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
}

.tenfish-dg__title {
	margin: 0 0 0.5rem;
	font-family: "Syne", sans-serif;
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: -0.03em;
	color: #0b1c22;
}

.tenfish-dg__lede {
	margin: 0 0 1.25rem;
	color: #4a5f66;
	line-height: 1.5;
	font-size: 0.95rem;
}

.tenfish-dg__label {
	display: block;
	margin-bottom: 0.4rem;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #1f7a8c;
}

.tenfish-dg__input {
	width: 100%;
	box-sizing: border-box;
	margin-bottom: 1rem;
	padding: 0.8rem 0.9rem;
	border: 1px solid color-mix(in srgb, #0b1c22 18%, transparent);
	border-radius: 2px;
	background: #fff;
	font: inherit;
	color: #0b1c22;
}

.tenfish-dg__input:focus {
	outline: 2px solid #3ddc97;
	outline-offset: 1px;
}

.tenfish-dg__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.tenfish-dg__message {
	margin: 0 0 0.85rem;
	font-size: 0.92rem;
	line-height: 1.4;
}

.tenfish-dg__message.is-error {
	color: #b42318;
}

.tenfish-dg__message.is-success {
	color: #0e2f38;
}

.tenfish-dg__submit {
	width: 100%;
	justify-content: center;
}

.tenfish-dg__submit:disabled {
	opacity: 0.65;
	cursor: wait;
}

/* Match theme ghost/signal buttons if theme CSS not loaded yet */
.tenfish-dg .tenfish-btn {
	border-radius: 2px;
	font-weight: 600;
	letter-spacing: 0.02em;
	cursor: pointer;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.9rem 1.4rem;
	border: 1px solid transparent;
	font-size: 0.875rem;
}

.tenfish-dg .tenfish-btn--ghost {
	background: transparent;
	color: #f4f7f8;
	border-color: color-mix(in srgb, #f4f7f8 45%, transparent);
}

.tenfish-dg .tenfish-btn--signal {
	background: #3ddc97;
	color: #061316;
	border-color: #3ddc97;
}
