.atm-tool {
	--atm-border: #d7dee8;
	--atm-bg: #ffffff;
	--atm-muted: #526070;
	--atm-text: #111827;
	--atm-accent: #166534;
	--atm-accent-dark: #14532d;
	border: 1px solid var(--atm-border);
	background: var(--atm-bg);
	color: var(--atm-text);
	border-radius: 8px;
	padding: 20px;
	max-width: 760px;
}

.atm-tool__fields {
	display: grid;
	gap: 14px;
}

.atm-tool__field {
	display: grid;
	gap: 6px;
}

.atm-tool__field label {
	font-weight: 650;
}

.atm-tool__field input,
.atm-tool__field select,
.atm-tool__field textarea {
	box-sizing: border-box;
	width: 100%;
	border: 1px solid var(--atm-border);
	border-radius: 6px;
	padding: 10px 12px;
	font: inherit;
}

.atm-tool__field textarea {
	min-height: 120px;
	resize: vertical;
}

.atm-tool__field--checkbox label {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	font-weight: 400;
}

.atm-tool__field--checkbox input {
	width: auto;
	margin-top: 4px;
}

.atm-tool__lead {
	display: grid;
	gap: 14px;
	margin-top: 4px;
	border-top: 1px solid var(--atm-border);
	padding-top: 14px;
}

.atm-tool__hp {
	position: absolute;
	left: -10000px;
	opacity: 0;
	pointer-events: none;
}

.atm-tool__button {
	margin-top: 16px;
	border: 0;
	border-radius: 6px;
	background: var(--atm-accent);
	color: #fff;
	cursor: pointer;
	font-weight: 700;
	padding: 11px 16px;
}

.atm-tool__button:hover,
.atm-tool__button:focus {
	background: var(--atm-accent-dark);
}

.atm-tool__button:disabled {
	cursor: wait;
	opacity: 0.65;
}

.atm-tool__status {
	margin-top: 14px;
	color: var(--atm-muted);
}

.atm-tool__status.is-error {
	color: #b42318;
}

.atm-tool__result {
	margin-top: 16px;
	line-height: 1.55;
	overflow-wrap: anywhere;
}

.atm-tool__result p {
	margin: 0 0 0.85em;
}

.atm-tool__result h1,
.atm-tool__result h2,
.atm-tool__result h3,
.atm-tool__result h4,
.atm-tool__result h5,
.atm-tool__result h6 {
	margin: 1.1em 0 0.55em;
	font-size: 1.1em;
	line-height: 1.3;
	font-weight: 800;
}

.atm-tool__result ol,
.atm-tool__result ul {
	margin: 0 0 1em 1.4em;
	padding: 0;
}

.atm-tool__result ol {
	list-style-type: decimal;
}

.atm-tool__result ul {
	list-style-type: disc;
}

.atm-tool__result li {
	margin: 0 0 0.65em;
}

.atm-tool__result li > p {
	margin: 0.25em 0 0.5em;
}

.atm-tool__result li > p:first-child {
	margin-top: 0;
}

.atm-tool__result blockquote {
	margin: 0 0 1em;
	border-left: 3px solid var(--atm-border);
	padding-left: 1em;
	color: var(--atm-muted);
}

.atm-tool__result code {
	border-radius: 4px;
	background: #f3f4f6;
	padding: 0.1em 0.3em;
	font-size: 0.92em;
}

.atm-tool__result pre {
	overflow-x: auto;
	border-radius: 6px;
	background: #f3f4f6;
	padding: 12px;
}

.atm-tool__result pre code {
	background: transparent;
	padding: 0;
}

.atm-tool__result table {
	width: 100%;
	margin: 0 0 1em;
	border-collapse: collapse;
	font-size: 0.95em;
}

.atm-tool__result th,
.atm-tool__result td {
	border: 1px solid var(--atm-border);
	padding: 8px 10px;
	text-align: left;
	vertical-align: top;
}

.atm-tool__result th {
	background: #f9fafb;
	font-weight: 700;
}

.atm-tool__cta,
.atm-tool__share {
	display: inline-flex;
	align-items: center;
	margin-top: 8px;
	margin-right: 8px;
	border: 0;
	border-radius: 6px;
	background: #111827;
	color: #fff;
	cursor: pointer;
	font-weight: 700;
	padding: 10px 14px;
	text-decoration: none;
	font: inherit;
}

.atm-tool__share {
	background: #374151;
}

.atm-tool__cta:hover,
.atm-tool__cta:focus,
.atm-tool__share:hover,
.atm-tool__share:focus {
	background: #374151;
	color: #fff;
}
