.ws-unit-tool {
	direction: rtl;
	box-sizing: border-box;
	width: 100%;
	max-width: 720px;
	margin: 0 auto 24px;
	padding: 14px 12px 16px;
	background: #fff;
	border: 1px solid #ececec;
	border-radius: 14px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}
.ws-unit-tool *,
.ws-unit-tool *::before,
.ws-unit-tool *::after {
	box-sizing: border-box;
}
.ws-unit-tool__modes {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px;
	margin-bottom: 12px;
}
.ws-unit-tool__mode {
	border: 1px solid #e8e8e8;
	background: #f7f7f7;
	color: #555;
	border-radius: 10px;
	padding: 10px 8px;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	font-family: inherit;
	line-height: 1.35;
	min-height: 42px;
}
.ws-unit-tool__mode.is-active {
	background: linear-gradient(135deg, #84b424, #428c27);
	border-color: #428c27;
	color: #fff;
}
.ws-unit-tool__presets {
	display: flex;
	gap: 6px;
	overflow-x: auto;
	padding-bottom: 8px;
	margin-bottom: 10px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}
.ws-unit-tool__preset {
	flex: 0 0 auto;
	border: 1px solid #c8e0a8;
	background: #f4f8ef;
	color: #336e1e;
	border-radius: 999px;
	padding: 7px 11px;
	font-size: 11px;
	font-weight: 700;
	cursor: pointer;
	font-family: inherit;
	white-space: nowrap;
	line-height: 1.3;
}
.ws-unit-tool__preset:hover,
.ws-unit-tool__preset:focus {
	background: linear-gradient(135deg, #84b424, #428c27);
	border-color: #428c27;
	color: #fff;
	outline: none;
}
.ws-unit-tool__search {
	position: relative;
	margin-bottom: 12px;
}
.ws-unit-tool__search-input {
	width: 100%;
	max-width: 100%;
	border: 1px solid #dadce0;
	border-radius: 999px;
	padding: 12px 18px;
	font-size: 16px;
	font-family: inherit;
	font-weight: 700;
	background: #fff;
	color: #202124;
	outline: none;
	min-height: 52px;
	box-shadow: 0 1px 6px rgba(32, 33, 36, 0.15);
	appearance: none;
	-webkit-appearance: none;
}
.ws-unit-tool__search-input::placeholder {
	color: #80868b;
	opacity: 1;
	font-weight: 600;
}
.ws-unit-tool__search-input.is-filled {
	border-color: #5a9e24;
	color: #111;
	background: #f4f8ef;
}
.ws-unit-tool__search-input:focus {
	border-color: transparent;
	background: #fff;
	box-shadow: 0 1px 8px rgba(32, 33, 36, 0.28);
}
.ws-unit-tool__search-results {
	position: absolute;
	z-index: 20;
	top: calc(100% + 6px);
	right: 0;
	left: 0;
	max-height: 240px;
	overflow: auto;
	background: #fff;
	border: 1px solid #eee;
	border-radius: 14px;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}
.ws-unit-tool__search-item {
	display: block;
	width: 100%;
	text-align: right;
	border: 0;
	background: transparent;
	padding: 11px 14px;
	font-size: 14px;
	cursor: pointer;
	font-family: inherit;
}
.ws-unit-tool__search-item:hover,
.ws-unit-tool__search-item.is-active {
	background: #f4f8ef;
	color: #5a9e24;
}
.ws-unit-tool__field input,
.ws-unit-tool__field select {
	width: 100%;
	max-width: 100%;
	border: 1px solid #e2e2e2;
	border-radius: 10px;
	padding: 11px 12px;
	font-size: 16px;
	font-family: inherit;
	background: #fff;
	color: #222;
	outline: none;
	min-height: 44px;
	appearance: none;
	-webkit-appearance: none;
}
.ws-unit-tool__field select {
	background-image: linear-gradient(45deg, transparent 50%, #888 50%),
		linear-gradient(135deg, #888 50%, transparent 50%);
	background-position: left 14px top 50%, left 9px top 50%;
	background-size: 5px 5px, 5px 5px;
	background-repeat: no-repeat;
	padding-left: 28px;
}
.ws-unit-tool__field input:focus,
.ws-unit-tool__field select:focus {
	border-color: #5a9e24;
}
.ws-unit-tool__inputs {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
	margin-bottom: 12px;
}
.ws-unit-tool__field label {
	display: block;
	margin-bottom: 5px;
	font-size: 12px;
	color: #777;
	font-weight: 700;
}
.ws-unit-tool__result {
	background: linear-gradient(135deg, #84b424, #428c27);
	color: #fff;
	border-radius: 14px;
	padding: 14px 12px 12px;
	margin-bottom: 14px;
}
.ws-unit-tool__result-main {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 10px;
}
.ws-unit-tool__result-value {
	font-size: 34px;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.02em;
}
.ws-unit-tool__result-unit {
	font-size: 15px;
	opacity: 0.92;
}
.ws-unit-tool__result-sub {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px;
	margin-bottom: 10px;
}
.ws-unit-tool__result-sub-extra {
	grid-column: 1 / -1;
}
.ws-unit-tool__result-sub > div {
	background: rgba(0, 0, 0, 0.12);
	border-radius: 8px;
	padding: 8px 6px;
	text-align: center;
	min-width: 0;
}
.ws-unit-tool__result-sub span {
	display: block;
	font-size: 10px;
	opacity: 0.85;
	margin-bottom: 3px;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.ws-unit-tool__result-sub strong {
	font-size: 15px;
	display: block;
	line-height: 1.2;
}
.ws-unit-tool__copy {
	width: 100%;
	border: 0;
	border-radius: 10px;
	padding: 11px 12px;
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	font-family: inherit;
	min-height: 44px;
}
.ws-unit-tool__copy:hover {
	background: rgba(255, 255, 255, 0.28);
}
.ws-unit-tool__filters {
	display: flex;
	gap: 6px;
	overflow-x: auto;
	padding-bottom: 8px;
	margin-bottom: 8px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}
.ws-unit-tool__filter {
	flex: 0 0 auto;
	border: 1px solid #ececec;
	background: #f7f7f7;
	color: #666;
	border-radius: 999px;
	padding: 7px 11px;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	font-family: inherit;
	white-space: nowrap;
	min-height: 34px;
}
.ws-unit-tool__filter.is-active {
	background: linear-gradient(135deg, #84b424, #428c27);
	border-color: #428c27;
	color: #fff;
}
.ws-unit-tool__list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 8px;
	max-height: 260px;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
}
.ws-unit-tool__item {
	text-align: right;
	border: 1px solid #ececec;
	background: #fff;
	border-radius: 10px;
	padding: 11px 12px;
	cursor: pointer;
	font-family: inherit;
	font-size: 14px;
	color: #333;
	line-height: 1.4;
	min-width: 0;
}
.ws-unit-tool__item.is-active,
.ws-unit-tool__item:hover {
	border-color: #c8e0a8;
	background: #f4f8ef;
	color: #5a9e24;
}
.ws-unit-tool__item small {
	display: block;
	margin-top: 3px;
	color: #999;
	font-size: 11px;
	line-height: 1.35;
}
.ws-unit-tool__note {
	margin: 12px 0 0;
	font-size: 11px;
	color: #888;
	line-height: 1.7;
	text-align: center;
}

.ws-unit-faq {
	direction: rtl;
	box-sizing: border-box;
	width: 100%;
	max-width: 720px;
	margin: 0 auto 28px;
	padding: 0 2px;
}

.ws-unit-facts {
	direction: rtl;
	box-sizing: border-box;
	width: 100%;
	max-width: 720px;
	margin: 0 auto 24px;
	padding: 16px 14px;
	background: #fafafa;
	border: 1px solid #ececec;
	border-radius: 14px;
}
.ws-unit-facts__title {
	font-size: 18px;
	margin: 0 0 8px;
	color: #1f1f1f;
	line-height: 1.4;
}
.ws-unit-facts__lead {
	margin: 0 0 12px;
	font-size: 13px;
	line-height: 1.7;
	color: #666;
}
.ws-unit-facts__list {
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.ws-unit-facts__row {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 10px;
	align-items: baseline;
	padding: 8px 10px;
	background: #fff;
	border: 1px solid #eee;
	border-radius: 10px;
}
.ws-unit-facts__row dt {
	margin: 0;
	font-size: 13px;
	font-weight: 700;
	color: #222;
	line-height: 1.45;
}
.ws-unit-facts__row dd {
	margin: 0;
	font-size: 13px;
	font-weight: 700;
	color: #5a9e24;
	white-space: nowrap;
	text-align: left;
}
.ws-unit-faq__title {
	font-size: 18px;
	margin: 0 0 12px;
	color: #1f1f1f;
	line-height: 1.4;
}
.ws-unit-faq__list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.ws-unit-faq__item {
	border: 1px solid #ececec;
	border-radius: 10px;
	background: #fff;
	padding: 0 12px;
}
.ws-unit-faq__item summary {
	cursor: pointer;
	font-weight: 700;
	font-size: 13px;
	padding: 12px 0;
	list-style: none;
	color: #222;
	line-height: 1.5;
}
.ws-unit-faq__item summary::-webkit-details-marker {
	display: none;
}
.ws-unit-faq__item summary::after {
	content: '+';
	float: left;
	color: #5a9e24;
	font-weight: 800;
	margin-right: 8px;
}
.ws-unit-faq__item[open] summary::after {
	content: '−';
}
.ws-unit-faq__item p {
	margin: 0 0 12px;
	font-size: 13px;
	line-height: 1.8;
	color: #555;
}

/* Tablet+ : slightly roomier, still compact */
@media (min-width: 600px) {
	.ws-unit-tool {
		padding: 20px 20px 22px;
		border-radius: 16px;
		max-width: 760px;
	}
	.ws-unit-tool__mode {
		font-size: 14px;
		padding: 12px 10px;
	}
	.ws-unit-tool__inputs {
		grid-template-columns: 1fr 1fr;
	}
	.ws-unit-tool__search-trigger {
		min-height: 54px;
	}
	.ws-unit-tool__result {
		padding: 18px 16px 14px;
	}
	.ws-unit-tool__result-value {
		font-size: 44px;
	}
	.ws-unit-tool__result-sub {
		grid-template-columns: 1fr 1fr 1fr;
		gap: 8px;
	}
	.ws-unit-tool__result-sub-extra {
		grid-column: auto;
	}
	.ws-unit-tool__result-sub span {
		font-size: 11px;
		white-space: normal;
	}
	.ws-unit-tool__result-sub strong {
		font-size: 17px;
	}
	.ws-unit-tool__list {
		grid-template-columns: 1fr 1fr;
		max-height: 340px;
		gap: 10px;
	}
	.ws-unit-tool__preset {
		font-size: 12px;
		padding: 8px 12px;
	}
	.ws-unit-faq {
		max-width: 760px;
	}
	.ws-unit-facts {
		max-width: 760px;
		padding: 18px 18px;
	}
	.ws-unit-facts__title {
		font-size: 20px;
	}
	.ws-unit-faq__title {
		font-size: 20px;
	}
	.ws-unit-faq__item summary {
		font-size: 14px;
	}
}

@media (min-width: 900px) {
	.ws-unit-tool {
		max-width: 820px;
		padding: 24px 24px 26px;
	}
	.ws-unit-tool__list {
		max-height: 380px;
	}
	.ws-unit-tool__result-value {
		font-size: 48px;
	}
	.ws-unit-faq {
		max-width: 820px;
	}
	.ws-unit-facts {
		max-width: 820px;
	}
}

/* Very narrow phones */
@media (max-width: 360px) {
	.ws-unit-tool {
		padding: 12px 10px 14px;
	}
	.ws-unit-tool__mode {
		font-size: 12px;
		padding: 9px 6px;
	}
	.ws-unit-tool__result-value {
		font-size: 30px;
	}
}

