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

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

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

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

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

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

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

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

.fsrt-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 */
.fsrt-number::-webkit-outer-spin-button,
.fsrt-number::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.fsrt-number[type=number] { -moz-appearance: textfield; }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.fsrt-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;
}

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

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

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

.fsrt-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;
}

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

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