html.mobile-share-panel-open,
body.mobile-share-panel-open {
	overflow: hidden;
}

.mobile-share-panel[hidden] {
	display: none;
}

.mobile-share-panel {
	position: fixed;
	inset: 0;
	z-index: 1260;
	display: grid;
	grid-template-rows: auto auto auto minmax(0, 1fr);
	background: #f6faf7;
	color: #17211c;
	overflow: auto;
}

.mobile-share-panel__header {
	position: sticky;
	top: 0;
	z-index: 2;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 12px;
	align-items: center;
	padding: max(12px, env(safe-area-inset-top)) 14px 11px;
	border-bottom: 1px solid rgba(223, 232, 226, 0.95);
	background: rgba(255, 255, 255, 0.98);
	box-shadow: 0 8px 22px rgba(18, 55, 42, 0.08);
}

.mobile-share-panel__back,
.mobile-share-form .mobile-back-button {
	appearance: none;
	min-height: 40px;
	padding: 10px 14px;
	border: 1px solid rgba(18, 55, 42, 0.16);
	border-radius: 999px;
	background: #12372a;
	color: #ffffff;
	font: inherit;
	font-size: 0.82rem;
	font-weight: 900;
	line-height: 1;
	cursor: pointer;
}

.mobile-share-panel__title {
	min-width: 0;
	display: grid;
	gap: 2px;
}

.mobile-share-panel__title span {
	color: #66736c;
	font-size: 0.68rem;
	font-weight: 900;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.mobile-share-panel__title strong {
	min-width: 0;
	color: #12372a;
	font-size: 1rem;
	font-weight: 950;
	line-height: 1.12;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mobile-share-panel__state,
.mobile-share-panel__error {
	margin: 12px 14px 0;
	padding: 13px 14px;
	border-radius: 16px;
	font-size: 0.9rem;
	font-weight: 850;
	line-height: 1.35;
}

.mobile-share-panel__state {
	border: 1px solid rgba(18, 55, 42, 0.14);
	background: #e6f3ec;
	color: #12372a;
}

.mobile-share-panel__error {
	border: 1px solid rgba(132, 32, 41, 0.18);
	background: #f8d7da;
	color: #842029;
}

.mobile-share-form,
.mobile-share-success {
	display: grid;
	gap: 14px;
	padding: 14px 14px calc(20px + env(safe-area-inset-bottom));
}

.mobile-share-summary,
.mobile-share-success__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.mobile-share-summary div,
.mobile-share-success__grid div {
	min-width: 0;
	padding: 12px;
	border: 1px solid rgba(223, 232, 226, 0.95);
	border-radius: 16px;
	background: #ffffff;
	box-shadow: 0 8px 18px rgba(18, 55, 42, 0.06);
}

.mobile-share-summary span,
.mobile-share-success__grid span,
.mobile-share-field span {
	display: block;
	color: #66736c;
	font-size: 0.72rem;
	font-weight: 900;
	letter-spacing: 0.04em;
	line-height: 1.2;
	text-transform: uppercase;
}

.mobile-share-summary strong,
.mobile-share-success__grid strong {
	display: block;
	min-width: 0;
	margin-top: 4px;
	color: #12372a;
	font-size: 0.96rem;
	font-weight: 950;
	line-height: 1.2;
	overflow-wrap: anywhere;
}

.mobile-share-field {
	display: grid;
	gap: 7px;
}

.mobile-share-field em {
	color: #8a948f;
	font-style: normal;
	font-weight: 800;
	letter-spacing: 0;
	text-transform: none;
}

.mobile-share-field input,
.mobile-share-field textarea {
	width: 100%;
	min-height: 46px;
	padding: 12px 13px;
	border: 1px solid rgba(18, 55, 42, 0.16);
	border-radius: 15px;
	background: #ffffff;
	color: #17211c;
	font: inherit;
	font-size: 0.95rem;
	line-height: 1.35;
	box-shadow: 0 8px 18px rgba(18, 55, 42, 0.05);
}

.mobile-share-field textarea {
	min-height: 138px;
	resize: vertical;
}

.mobile-share-field small,
.mobile-share-print,
.mobile-share-guidance {
	color: #66736c;
	font-size: 0.8rem;
	font-weight: 750;
	line-height: 1.35;
}

.mobile-share-print,
.mobile-share-guidance {
	padding: 12px 13px;
	border: 1px solid rgba(18, 55, 42, 0.12);
	border-radius: 16px;
	background: #ffffff;
	box-shadow: 0 8px 18px rgba(18, 55, 42, 0.05);
}

.mobile-share-actions {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
	align-items: center;
	padding-bottom: 8px;
}

.mobile-share-actions .mobile-action-button,
.mobile-share-actions .mobile-back-button,
.mobile-share-success .mobile-action-button {
	width: 100%;
	min-height: 48px;
}

.mobile-share-actions button:disabled {
	opacity: 0.58;
	cursor: wait;
}

.mobile-share-success {
	align-content: start;
	padding-bottom: calc(84px + env(safe-area-inset-bottom));
}

.mobile-share-result-card {
	display: grid;
	gap: 12px;
	padding: 16px;
	border: 1px solid rgba(223, 232, 226, 0.95);
	border-radius: 18px;
	background: #ffffff;
	box-shadow: 0 12px 28px rgba(18, 55, 42, 0.08);
}

.mobile-share-success h2 {
	margin: 0;
	color: #12372a;
	font-size: 1.25rem;
	font-weight: 950;
	line-height: 1.15;
}

.mobile-share-success p {
	margin: 0;
	color: #66736c;
	font-size: 0.92rem;
	line-height: 1.45;
}

.mobile-share-result-actions {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
	margin-top: 4px;
}

.mobile-share-result-actions .mobile-action-button,
.mobile-share-result-actions .mobile-back-button {
	width: 100%;
	min-height: 48px;
}

.mobile-share-panel button:focus-visible,
.mobile-share-panel input:focus-visible,
.mobile-share-panel textarea:focus-visible {
	outline: 3px solid rgba(18, 55, 42, 0.18);
	outline-offset: 2px;
}

@media (min-width: 640px) {
	.mobile-share-actions {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mobile-share-actions .mobile-action-button {
		grid-column: 1 / -1;
	}

	.mobile-share-result-actions {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 520px) {
	.mobile-share-summary,
	.mobile-share-success__grid {
		grid-template-columns: 1fr;
	}

	.mobile-share-panel__header,
	.mobile-share-form,
	.mobile-share-success {
		padding-left: 12px;
		padding-right: 12px;
	}
}
