.fstx-tool {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	color: #1C2230;
}

.fstx-grid {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 32px;
	align-items: start;
}

@media (max-width: 720px) {
	.fstx-grid { grid-template-columns: 1fr; }
}

/* Inputs */
.fstx-field { margin-bottom: 22px; }

.fstx-field-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
	gap: 10px;
}

.fstx-field-head label {
	font-size: 14px;
	font-weight: 500;
	color: #5B6472;
}

.fstx-field-input {
	display: flex;
	align-items: center;
	border: 1px solid #E4E1D8;
	border-radius: 8px;
	padding: 6px 10px;
	background: #FBFAF7;
	min-width: 118px;
}

.fstx-affix {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 13px;
	color: #5B6472;
	margin: 0 2px;
}

.fstx-number {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 14.5px;
	font-weight: 600;
	color: #10192E;
	border: none;
	background: transparent;
	outline: none;
	width: 100%;
	text-align: right;
}

/* Remove number input spinners for a cleaner look */
.fstx-number::-webkit-outer-spin-button,
.fstx-number::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.fstx-number[type=number] { -moz-appearance: textfield; }

.fstx-range {
	width: 100%;
	accent-color: #0B6E4F;
	cursor: pointer;
}

/* Results panel */
.fstx-results {
	background: #FFFFFF;
	border: 1px solid #E4E1D8;
	border-radius: 14px;
	padding: 22px;
}

.fstx-result-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 0;
	border-bottom: 1px dashed #E4E1D8;
	font-size: 14px;
	color: #5B6472;
}

.fstx-result-row:last-of-type { border-bottom: none; }

.fstx-result-row strong {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 16px;
	color: #10192E;
	font-weight: 600;
}

.fstx-result-total {
	margin-top: 6px;
	padding-top: 14px;
	border-top: 1px solid #E4E1D8;
	border-bottom: none;
}

.fstx-result-total strong {
	color: #0B6E4F;
	font-size: 19px;
}

/* Invested vs returns bar */
.fstx-bar {
	display: flex;
	width: 100%;
	height: 10px;
	border-radius: 999px;
	overflow: hidden;
	margin: 16px 0 10px;
	background: #E4E1D8;
}

.fstx-bar-invested { background: #10192E; height: 100%; }
.fstx-bar-returns { background: #C89B3C; height: 100%; }

.fstx-legend {
	display: flex;
	gap: 18px;
	font-size: 12.5px;
	color: #5B6472;
}

.fstx-dot {
	display: inline-block;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	margin-right: 5px;
}

.fstx-dot-invested { background: #10192E; }
.fstx-dot-returns { background: #C89B3C; }

.fstx-note {
	font-size: 12.5px;
	color: #5B6472;
	margin-top: 14px;
	line-height: 1.5;
}

/* Stock average table */
.fstx-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 12px;
}

.fstx-table th {
	text-align: left;
	font-size: 12.5px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #5B6472;
	padding: 8px 10px;
	border-bottom: 1px solid #E4E1D8;
}

.fstx-table td {
	padding: 6px 10px;
	border-bottom: 1px solid #E4E1D8;
}

.fstx-table input {
	width: 100%;
	border: 1px solid #E4E1D8;
	border-radius: 6px;
	padding: 8px 10px;
	font-family: 'IBM Plex Mono', monospace;
	font-size: 14px;
}

.fstx-row-remove {
	background: none;
	border: none;
	color: #B23A3A;
	font-size: 18px;
	cursor: pointer;
	line-height: 1;
	padding: 4px 8px;
}

.fstx-add-row {
	background: none;
	border: 1px dashed #0B6E4F;
	color: #0B6E4F;
	font-size: 13.5px;
	font-weight: 600;
	padding: 8px 14px;
	border-radius: 8px;
	cursor: pointer;
}

.fstx-add-row:hover { background: rgba(11,110,79,0.06); }

@media (max-width: 480px) {
	.fstx-field-input { min-width: 100px; }
}

/* -------------------- Tax-tool specific additions -------------------- */

.fstx-toggle {
	display: inline-flex;
	border: 1px solid #E4E1D8;
	border-radius: 999px;
	padding: 3px;
	margin-bottom: 20px;
	background: #FBFAF7;
}

.fstx-toggle button {
	border: none;
	background: transparent;
	padding: 8px 18px;
	border-radius: 999px;
	font-size: 13.5px;
	font-weight: 600;
	color: #5B6472;
	cursor: pointer;
	font-family: 'Inter', sans-serif;
}

.fstx-toggle button.is-active {
	background: #0B6E4F;
	color: #fff;
}

.fstx-compare {
	width: 100%;
	border-collapse: collapse;
	margin-top: 8px;
}

.fstx-compare th, .fstx-compare td {
	padding: 12px 14px;
	text-align: left;
	border-bottom: 1px solid #E4E1D8;
	font-size: 14px;
}

.fstx-compare th {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #5B6472;
}

.fstx-compare td strong {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 15px;
}

.fstx-compare tr.fstx-winner td {
	background: rgba(11,110,79,0.06);
}

.fstx-badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	background: #0B6E4F;
	color: #fff;
	padding: 2px 8px;
	border-radius: 999px;
	margin-left: 8px;
}

.fstx-installment-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 12px;
}

.fstx-installment-table th, .fstx-installment-table td {
	padding: 10px 12px;
	border-bottom: 1px solid #E4E1D8;
	font-size: 13.5px;
	text-align: left;
}

.fstx-installment-table th {
	font-size: 11.5px;
	text-transform: uppercase;
	color: #5B6472;
	letter-spacing: 0.03em;
}

.fstx-installment-table td.fstx-mono {
	font-family: 'IBM Plex Mono', monospace;
	font-weight: 600;
}

.fstx-inline-radio {
	display: flex;
	gap: 16px;
	margin-bottom: 18px;
}

.fstx-inline-radio label {
	font-size: 13.5px;
	font-weight: 500;
	color: #1C2230;
	display: flex;
	align-items: center;
	gap: 6px;
}
