.action-button {
	height: 34px;
	border-radius: 7px;
	border: 1px solid #c7cedf;
	background: #ffffff;
	color: #111827;
	font-weight: 700;
	padding: 0 12px;
	display: inline-flex;
	align-items: center;
	white-space: nowrap;
}

.action-button.primary,
.search-button {
	background: var(--primary);
	color: #ffffff;
	border-color: #3735c4;
}

.action-button:disabled,
.search-button:disabled {
	cursor: wait;
	opacity: .68;
}

.addr-xy-workspace {
	padding: 16px 20px;
}

.addr-xy-workspace .page-head,
.addr-xy-workspace .tool-surface {
	width: min(100%, 1080px);
	max-width: 1080px !important;
	margin-left: auto;
	margin-right: auto;
}

.addr-xy-workspace .page-head {
	margin-bottom: 14px;
}

.address-search {
	border: 1px solid var(--line);
	border-radius: 8px;
	background: #ffffff;
	box-shadow: var(--shadow);
	padding: 14px;
}

.field-label {
	display: block;
	margin-bottom: 8px;
	color: #22324a;
	font-size: 13px;
	font-weight: 800;
}

.search-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 8px;
	align-items: center;
}

.address-input {
	width: 100%;
	height: 42px;
	border: 1px solid #cfd7e6;
	border-radius: 7px;
	background: #ffffff;
	color: #102033;
	padding: 0 12px;
	outline: 0;
	font-size: 14px;
	line-height: 42px;
}

.address-input:focus {
	border-color: #7779ee;
	box-shadow: 0 0 0 3px rgba(74, 75, 224, .14);
}

.address-input::placeholder {
	color: #8a94a6;
}

.search-button {
	height: 42px;
	min-width: 96px;
	border: 1px solid #3735c4;
	border-radius: 7px;
	font-weight: 800;
	padding: 0 16px;
}

.search-meta {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	margin-top: 9px;
	min-height: 18px;
}

.meta {
	color: #617086;
	font-size: 12px;
	font-weight: 800;
}

.coordinate-panel {
	margin-top: 10px;
}

.addr-message {
	margin: 0;
	border: 1px solid #d7dcea;
	border-radius: 7px;
	background: #f8fafc;
	color: #344054;
	padding: 11px 12px;
	font-size: 13px;
	line-height: 1.45;
}

.addr-message[hidden] {
	display: none;
}

.addr-message.is-error {
	border-color: #f4b7b0;
	background: #fff5f4;
	color: #b42318;
}

.coordinate-result {
	display: grid;
	gap: 10px;
}

.coordinate-result[hidden] {
	display: none;
}

.coordinate-cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.coordinate-card {
	border: 1px solid #dbe2ed;
	border-radius: 8px;
	background: #ffffff;
	box-shadow: var(--shadow);
	padding: 14px;
}

.coordinate-card span,
.address-details span {
	display: block;
	color: #617086;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.25;
}

.coordinate-card strong {
	display: block;
	margin-top: 7px;
	color: #111827;
	font-family: var(--font-mono);
	font-size: 20px;
	line-height: 1.25;
	overflow-wrap: anywhere;
}

.address-details {
	display: grid;
	border: 1px solid #dbe2ed;
	border-radius: 8px;
	background: #ffffff;
	box-shadow: var(--shadow);
	overflow: hidden;
}

.address-details div {
	display: grid;
	grid-template-columns: 128px minmax(0, 1fr);
	gap: 12px;
	align-items: start;
	padding: 11px 14px;
	border-top: 1px solid #edf1f7;
}

.address-details div:first-child {
	border-top: 0;
}

.address-details strong {
	min-width: 0;
	color: #102033;
	font-size: 13px;
	line-height: 1.45;
	overflow-wrap: anywhere;
}

.result-list {
	overflow: auto;
	border: 1px solid #dbe2ed;
	border-radius: 8px;
	background: #ffffff;
	box-shadow: var(--shadow);
}

.result-list:empty {
	display: none;
}

.result-list table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
	font-size: 13px;
}

.result-list th,
.result-list td {
	border-top: 1px solid #dbe2ed;
	padding: 8px 10px;
	text-align: left;
	vertical-align: top;
	overflow-wrap: anywhere;
}

.result-list tr:first-child th {
	border-top: 0;
}

.result-list th {
	background: #eef3f8;
	color: #22324a;
	font-weight: 800;
}

.roadview-panel {
	border: 1px solid #dbe2ed;
	border-radius: 8px;
	background: #ffffff;
	box-shadow: var(--shadow);
	overflow: hidden;
}

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

.roadview-head {
	min-height: 42px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 0 14px;
	border-bottom: 1px solid #e5eaf3;
}

.roadview-head h2 {
	margin: 0;
	color: #22324a;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.2;
}

.roadview-head span {
	color: #617086;
	font-size: 12px;
	font-weight: 800;
	text-align: right;
}

.roadview-layout {
	display: flex;
	min-height: 360px;
	background: #f8fafc;
}

.map-wrapper {
	width: 50%;
	flex: 0 0 50%;
	min-width: 0;
	transition: width .16s ease;
}

.roadview-panel.map-only .map-wrapper {
	width: 100%;
	flex-basis: 100%;
}

.map-canvas,
.roadview-canvas {
	width: 100%;
	height: 360px;
}

.roadview-canvas {
	flex: 1 1 50%;
	min-width: 0;
}

.roadview-canvas[hidden] {
	display: none !important;
}

.roadview-panel.map-only .roadview-canvas {
	display: none !important;
}

.copy-dialog {
	position: fixed;
	top: 76px;
	right: 22px;
	bottom: auto;
	z-index: 90;
	width: min(360px, calc(100vw - 28px));
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	border: 1px solid #ccd4e5;
	border-left: 4px solid var(--primary);
	border-radius: 8px;
	background: #ffffff;
	box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
	padding: 12px 12px 12px 10px;
	opacity: 0;
	transform: translateY(10px);
	pointer-events: none;
	transition: opacity .16s ease, transform .16s ease;
}

.copy-dialog[hidden] {
	display: none;
}

.copy-dialog.is-visible {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.copy-dialog.is-error {
	border-left-color: #d92d20;
}

.copy-dialog-icon {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #eef0ff;
	position: relative;
}

.copy-dialog-icon::after {
	content: "";
	position: absolute;
	left: 11px;
	top: 8px;
	width: 9px;
	height: 15px;
	border-right: 3px solid var(--primary);
	border-bottom: 3px solid var(--primary);
	transform: rotate(42deg);
}

.copy-dialog.is-error .copy-dialog-icon {
	background: #fff1f0;
}

.copy-dialog.is-error .copy-dialog-icon::before,
.copy-dialog.is-error .copy-dialog-icon::after {
	content: "";
	position: absolute;
	left: 10px;
	top: 15px;
	width: 14px;
	height: 3px;
	border: 0;
	background: #d92d20;
	transform: rotate(45deg);
}

.copy-dialog.is-error .copy-dialog-icon::after {
	transform: rotate(-45deg);
}

.copy-dialog-content {
	min-width: 0;
}

.copy-dialog-content strong {
	display: block;
	color: var(--text);
	font-size: 14px;
	line-height: 1.25;
}

.copy-dialog-content p {
	margin: 3px 0 0;
	color: #475467;
	font-size: 13px;
	line-height: 1.35;
}

.copy-dialog-close {
	height: 30px;
	border: 1px solid #c7cedf;
	border-radius: 7px;
	background: #ffffff;
	color: #22324a;
	font-size: 12px;
	font-weight: 800;
	padding: 0 9px;
}

.clipboard-fallback {
	position: fixed;
	left: -9999px;
	top: 0;
	opacity: 0;
}

@media (max-width: 900px) {
	.addr-xy-workspace {
		padding: 20px 14px;
	}
}

@media (max-width: 560px) {
	.addr-xy-workspace .page-actions {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		width: 100%;
		gap: 8px;
	}

	.action-button {
		width: 100%;
		justify-content: center;
	}

	.search-row,
	.coordinate-cards,
	.address-details div {
		grid-template-columns: 1fr;
	}

	.roadview-layout {
		display: grid;
		min-height: 560px;
	}

	.map-wrapper {
		width: 100% !important;
	}

	.map-canvas,
	.roadview-canvas {
		height: 280px;
	}

	.search-button {
		width: 100%;
	}

	.copy-dialog {
		top: 70px;
		right: auto;
		left: 50%;
		transform: translate(-50%, 10px);
	}

	.copy-dialog.is-visible {
		transform: translate(-50%, 0);
	}
}
