.psc-calculator,
.psc-calculator * {
	box-sizing: border-box;
}

.psc-calculator {
	position: relative;
	width: 100%;
	max-width: 100%;
	margin-inline: auto;
	font-family: inherit;
}

.psc-shell {
	overflow: hidden;
	background: #fff;
	border: 1px solid #ffedd5;
	border-radius: 28px;
	box-shadow: 0 24px 70px rgba(15, 23, 42, .08);
}

.psc-grid {
	display: grid;
	grid-template-columns: 52% minmax(0, 1fr);
	align-items: stretch;
}

.psc-form-panel,
.psc-results-panel {
	min-width: 0;
	padding: 28px;
}

.psc-form-panel {
	background: #fff;
	border-left: 1px solid #f1f5f9;
}

.psc-results-panel {
	background: #020617;
	color: #fff;
}

.psc-header,
.psc-result-header,
.psc-main-result-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.psc-header {
	flex-wrap: wrap;
	margin-bottom: 24px;
}

.psc-heading-wrap,
.psc-selected-wrap {
	min-width: 0;
}

.psc-kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
	padding: 5px 12px;
	border-radius: 999px;
	background: #fff7ed;
	color: #ea580c;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.5;
}

.psc-icon {
	display: block;
	width: 1em;
	height: 1em;
	flex: 0 0 auto;
}

.psc-kicker .psc-icon,
.psc-reset .psc-icon,
.psc-stat-label-icon .psc-icon {
	width: 16px;
	height: 16px;
}

.psc-title,
.psc-result-title,
.psc-form-note,
.psc-formula {
	margin: 0;
}

.psc-title {
	color: #0f172a;
	font-size: 24px;
	font-weight: 900;
	line-height: 1.45;
}

.psc-reset {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 36px;
	padding: 8px 12px;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	background: #fff;
	color: #475569;
	font-family: inherit;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	transition: .2s ease;
}

.psc-reset:hover {
	filter: brightness(.98);
	transform: translateY(-1px);
}

.psc-reset:focus-visible,
.psc-symbol-trigger:focus-visible,
.psc-input:focus-visible,
.psc-symbol-item:focus-visible,
.psc-search-input:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.psc-symbol-field {
	margin-bottom: 16px;
}

.psc-symbol-label,
.psc-field-label {
	display: block;
	margin-bottom: 8px;
	color: #475569;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.5;
}

.psc-symbol-trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	min-height: 56px;
	padding: 8px 16px;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
	font-family: inherit;
	text-align: right;
	cursor: pointer;
	transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.psc-symbol-trigger:hover {
	border-color: #fed7aa;
}

.psc-symbol-trigger[aria-expanded="true"] {
	border-color: #fb923c;
	box-shadow: 0 0 0 1px #fb923c;
}

.psc-selected-wrap {
	display: block;
	flex: 1 1 auto;
}

.psc-selected-symbol {
	display: block;
	color: #0f172a;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 16px;
	font-weight: 900;
	line-height: 1.4;
	text-align: left;
}

.psc-selected-description {
	display: block;
	overflow: hidden;
	color: #64748b;
	font-size: 12px;
	line-height: 1.5;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.psc-symbol-arrow {
	color: #94a3b8;
	transition: transform .2s ease;
}

.psc-symbol-arrow .psc-icon {
	width: 18px;
	height: 18px;
}

.psc-symbol-trigger[aria-expanded="true"] .psc-symbol-arrow {
	transform: rotate(180deg);
}

.psc-fields,
.psc-stats-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.psc-field,
.psc-currency-field {
	display: block;
	min-width: 0;
}

.psc-field-wrap {
	display: flex;
	height: 48px;
	overflow: hidden;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
	transition: border-color .2s ease, box-shadow .2s ease;
}

.psc-field-wrap:focus-within,
.psc-currency-input:focus {
	border-color: #fb923c;
	box-shadow: 0 0 0 1px #fb923c;
}

.psc-input {
	width: 100%;
	min-width: 0;
	height: 100%;
	padding: 0 16px;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: #0f172a;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 16px;
	line-height: 1;
	text-align: left;
	outline: 0;
	appearance: textfield;
}

.psc-input::-webkit-outer-spin-button,
.psc-input::-webkit-inner-spin-button {
	margin: 0;
	appearance: none;
}

.psc-field-suffix {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 64px;
	padding: 0 12px;
	border-right: 1px solid #f1f5f9;
	background: #f8fafc;
	color: #64748b;
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
}

.psc-currency-field {
	margin-top: 16px;
}

.psc-currency-input {
	height: 48px;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
	text-transform: uppercase;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.psc-form-note {
	margin-top: 16px;
	padding: 12px 16px;
	border-radius: 16px;
	background: #fff7ed;
	color: #c2410c;
	font-size: 12px;
	line-height: 2;
}

.psc-result-header {
	margin-bottom: 24px;
}

.psc-result-eyebrow {
	color: #fdba74;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.5;
}

.psc-result-title {
	margin-top: 8px;
	color: #fff;
	font-size: 20px;
	font-weight: 900;
	line-height: 1.5;
}

.psc-result-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border: 1px solid rgba(253, 186, 116, .20);
	border-radius: 16px;
	background: rgba(251, 146, 60, .15);
	color: #fdba74;
}

.psc-result-icon .psc-icon {
	width: 24px;
	height: 24px;
}

.psc-main-result {
	padding: 20px;
	border: 1px solid rgba(255, 255, 255, .10);
	border-radius: 16px;
	background: rgba(255, 255, 255, .08);
}

.psc-main-result-inner {
	align-items: flex-end;
}

.psc-main-caption {
	color: #cbd5e1;
	font-size: 14px;
	line-height: 1.5;
}

.psc-lot-value {
	margin-top: 8px;
	color: #fff;
	font-size: 40px;
	font-weight: 900;
	line-height: 1.1;
}

.psc-risk-badge {
	flex: 0 0 auto;
	padding: 5px 12px;
	border: 1px solid rgba(110, 231, 183, .20);
	border-radius: 999px;
	background: rgba(52, 211, 153, .10);
	color: #6ee7b7;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.5;
}

.psc-stats-grid {
	gap: 12px;
	margin-top: 16px;
}

.psc-stat-card {
	min-width: 0;
	padding: 16px;
	border: 1px solid rgba(255, 255, 255, .10);
	border-radius: 16px;
	background: rgba(255, 255, 255, .08);
}

.psc-stat-label {
	color: #cbd5e1;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.5;
}

.psc-stat-label-icon {
	display: flex;
	align-items: center;
	gap: 8px;
}

.psc-risk-card .psc-icon {
	color: #fdba74;
}

.psc-units-card .psc-icon {
	color: #6ee7b7;
}

.psc-stat-value {
	margin-top: 8px;
	color: #fff;
	font-size: 22px;
	font-weight: 900;
	line-height: 1.25;
	word-break: break-word;
}

.psc-formula {
	margin-top: 20px;
	color: #94a3b8;
	font-size: 12px;
	line-height: 2;
}

.psc-dropdown {
	position: absolute;
	z-index: 9999;
	max-height: 320px;
	overflow: hidden;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 18px 50px rgba(15, 23, 42, .16);
	direction: ltr;
}

.psc-dropdown[hidden] {
	display: none !important;
}

.psc-search-area {
	padding: 12px;
	border-bottom: 1px solid #f1f5f9;
}

.psc-search-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	background: #f8fafc;
}

.psc-search-icon {
	width: 16px;
	height: 16px;
	color: #94a3b8;
	flex: 0 0 auto;
}

.psc-search-input {
	width: 100%;
	height: 100%;
	min-width: 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	color: #334155;
	font-family: inherit;
	font-size: 14px;
	outline: none;
}

.psc-symbol-list {
	max-height: 240px;
	overflow-y: auto;
	padding: 8px;
}

.psc-symbol-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	padding: 10px 12px;
	border: 0;
	border-radius: 12px;
	background: transparent;
	font-family: inherit;
	text-align: left;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease;
}

.psc-symbol-item:hover,
.psc-symbol-item.is-selected {
	background: #fff7ed;
}

.psc-symbol-item-content {
	min-width: 0;
}

.psc-symbol-item-main {
	display: block;
	color: #334155;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 14px;
	font-weight: 900;
	line-height: 1.5;
}

.psc-symbol-item.is-selected .psc-symbol-item-main {
	color: #c2410c;
}

.psc-symbol-item-description {
	display: block;
	overflow: hidden;
	color: #64748b;
	font-size: 12px;
	line-height: 1.5;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.psc-symbol-group {
	flex: 0 0 auto;
	padding: 4px 8px;
	border-radius: 999px;
	background: #f1f5f9;
	color: #64748b;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.4;
}

.psc-no-results {
	padding: 24px 12px;
	color: #64748b;
	font-size: 14px;
	text-align: center;
}

@media (max-width: 1024px) {
	.psc-grid {
		grid-template-columns: 1fr !important;
	}

	.psc-form-panel {
		border-bottom: 1px solid #f1f5f9;
		border-left: 0;
	}
}

@media (max-width: 640px) {
	.psc-form-panel,
	.psc-results-panel {
		padding: 20px;
	}

	.psc-fields,
	.psc-stats-grid {
		grid-template-columns: 1fr;
	}

	.psc-title {
		font-size: 21px;
	}

	.psc-main-result-inner {
		align-items: flex-start;
		flex-direction: column;
	}

	.psc-lot-value {
		font-size: 34px;
	}

	.psc-dropdown {
		max-width: calc(100vw - 24px);
	}
}
