.stedif-os-app--operator {
	padding-bottom: calc(5.75rem + env(safe-area-inset-bottom, 0px));
}

.stedif-os-app--operator .stedif-os-main {
	background: transparent;
	border: 0;
	padding: 0;
}

.stedif-os-offline {
	background: #fff7ed;
	color: #9a3412;
	margin: 0.75rem 0;
	padding: 0.75rem;
	border-radius: 10px;
}

.stedif-os-hint {
	margin: 0 0 1rem;
	color: var(--stedif-muted, #50575e);
}

.stedif-os-nav {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
	margin: 1rem 0;
}

.stedif-os-nav a {
	display: flex;
	flex-direction: column;
	justify-content: center;
	background: #fff;
	border: 1px solid var(--stedif-border);
	border-radius: 14px;
	padding: 1rem;
	text-decoration: none;
	color: inherit;
	min-height: 96px;
}

.stedif-os-nav a.is-active,
.stedif-os-nav a.stedif-os-card--primary {
	border-color: var(--stedif-accent);
	box-shadow: 0 0 0 2px #ccfbf1;
}

.stedif-os-nav a.stedif-os-card--primary {
	min-height: 112px;
	font-size: 1.05rem;
}

.stedif-os-preview {
	display: block;
	width: 100%;
	max-height: 42vh;
	object-fit: contain;
	background: #0f172a;
	border-radius: 12px;
	margin: 0.5rem 0 0.75rem;
}

.stedif-os-fields {
	display: grid;
	grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
	gap: 0.35rem 0.75rem;
	margin: 0.75rem 0;
}

.stedif-os-fields dt {
	color: var(--stedif-muted);
	font-size: 0.85rem;
}

.stedif-os-fields dd {
	margin: 0;
	overflow-wrap: anywhere;
}

.stedif-os-field-state {
	display: inline-block;
	margin-left: 0.35rem;
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.stedif-os-field-state[data-state="verified"] {
	color: #047857;
}

.stedif-os-field-state[data-state="suggested"] {
	color: #b45309;
}

.stedif-os-field-state[data-state="conflict"] {
	color: #b91c1c;
}

.stedif-os-field-state[data-state="unknown"] {
	color: var(--stedif-muted);
}

.stedif-os-nav a strong {
	margin: 0 0 0.35rem;
	font-size: 1rem;
}

.stedif-os-screen {
	background: #fff;
	border: 1px solid var(--stedif-border);
	border-radius: 16px;
	padding: 1rem;
	min-width: 0;
}

.stedif-os-screen input,
.stedif-os-screen select,
.stedif-os-screen textarea {
	width: 100%;
	margin: 0.35rem 0 0.75rem;
	padding: 0.65rem;
	border: 1px solid var(--stedif-border);
	border-radius: 10px;
}

.stedif-os-screen label {
	display: block;
	font-weight: 600;
}

.stedif-os-btn-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0.75rem 0;
}

.stedif-os-btn-row .stedif-os-btn {
	flex: 1 1 140px;
}

.stedif-os-video-wrap {
	position: relative;
	background: #000;
	border-radius: 12px;
	overflow: hidden;
	margin-bottom: 0.75rem;
}

.stedif-os-video {
	display: block;
	width: 100%;
	max-height: 52vh;
	min-height: 180px;
	object-fit: cover;
	background: #000;
}

.stedif-os-scan-status {
	position: absolute;
	left: 0.75rem;
	right: 0.75rem;
	bottom: 0.75rem;
	margin: 0;
	padding: 0.45rem 0.65rem;
	border-radius: 8px;
	background: rgba(15, 23, 42, 0.82);
	color: #fff;
	font-size: 0.85rem;
}

.stedif-os-product {
	display: grid;
	gap: 0.75rem;
}

.stedif-os-product__media img {
	width: 100%;
	max-height: 180px;
	object-fit: contain;
	background: #f1f5f9;
	border-radius: 12px;
}

.stedif-os-product dl {
	display: grid;
	grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
	gap: 0.35rem 0.75rem;
	margin: 0;
}

.stedif-os-product dt {
	color: var(--stedif-muted);
	font-size: 0.85rem;
}

.stedif-os-product dd {
	margin: 0;
	overflow-wrap: anywhere;
}

.stedif-os-result-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.stedif-os-result-list li,
.stedif-os-entity {
	border: 1px solid var(--stedif-border);
	border-radius: 12px;
	padding: 0.85rem;
	margin: 0.65rem 0;
	overflow-wrap: anywhere;
}

.stedif-os-tabbar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	background: #fff;
	border-top: 1px solid var(--stedif-border);
	padding: 0.35rem 0.35rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
	gap: 0.2rem;
	z-index: 30;
}

.stedif-os-tabbar a {
	flex: 1;
	min-width: 0;
	text-align: center;
	padding: 0.55rem 0.15rem;
	text-decoration: none;
	color: var(--stedif-muted);
	font-size: 0.72rem;
	min-height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	overflow-wrap: anywhere;
}

.stedif-os-tabbar a.is-active {
	color: var(--stedif-accent-2);
	background: #ecfdf5;
	font-weight: 700;
}

.stedif-os-dialog {
	border: 1px solid var(--stedif-border);
	border-radius: 16px;
	padding: 1rem;
	background: #fff;
	margin-top: 0.75rem;
	max-width: 100%;
}

@media (min-width: 768px) {
	.stedif-os-nav {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.stedif-os-product {
		grid-template-columns: 160px minmax(0, 1fr);
		align-items: start;
	}
}

@media (min-width: 1024px) {
	.stedif-os-nav {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.stedif-os-app--operator {
		padding-bottom: 1.5rem;
	}

	.stedif-os-tabbar {
		display: none;
	}
}

.stedif-os-cert-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.85rem;
	min-width: 0;
}

.stedif-os-cert-slot {
	border: 1px solid var(--stedif-border);
	border-radius: 14px;
	padding: 0.85rem;
	min-width: 0;
}

.stedif-os-cert-slot h3 {
	margin: 0 0 0.5rem;
	font-size: 1rem;
}

.stedif-os-intake-section {
	margin: 1rem 0;
	min-width: 0;
}

.stedif-os-intake-form label {
	min-width: 0;
}

.stedif-os-check {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 600;
}

.stedif-os-check input {
	width: auto;
	margin: 0;
}

.stedif-os-qr {
	max-width: 180px;
	margin: 0.75rem 0;
}

.stedif-os-qr svg {
	width: 100%;
	height: auto;
}

.stedif-os-mode {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0 0 0.75rem;
}

.stedif-os-video-wrap {
	position: relative;
}

.stedif-os-scan-guide {
	position: absolute;
	inset: 18% 12%;
	border: 2px dashed rgba(255, 255, 255, 0.7);
	border-radius: 12px;
	pointer-events: none;
}

.stedif-os-wh-wrap {
	overflow-x: auto;
	max-width: 100%;
	margin: 0 0 1rem;
	-webkit-overflow-scrolling: touch;
}

.stedif-os-wh-track {
	display: flex;
	gap: 0.75rem;
	min-width: min-content;
	padding-bottom: 0.25rem;
}

.stedif-os-wh-card {
	flex: 0 0 auto;
	width: min(78vw, 220px);
	background: #fff;
	border: 1px solid var(--stedif-border);
	border-radius: 14px;
	padding: 0.85rem;
	text-align: left;
	min-height: 7.5rem;
}

.stedif-os-wh-card.is-active {
	border-color: var(--stedif-accent);
	box-shadow: 0 0 0 2px #ccfbf1;
}

.stedif-os-wh-icon {
	display: block;
	font-size: 1.4rem;
}

.stedif-os-wh-filters {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 0.5rem;
	margin: 0 0 1rem;
}

@media (min-width: 768px) {
	.stedif-os-cert-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.stedif-os-wh-card {
		width: 200px;
	}
}

@media (max-width: 375px) {
	.stedif-os-header {
		flex-direction: column;
		align-items: flex-start;
	}

	.stedif-os-product dl {
		grid-template-columns: 1fr;
	}

	.stedif-os-nav {
		grid-template-columns: 1fr;
	}
}
