.ph-calculator-nav > a {
	border-color: #22d8ff !important;
}

.ph-calc-page [hidden] {
	display: none !important;
}

.ph-calc-page {
	--ph-cyan: #16e6f2;
	--ph-blue: #178cff;
	--ph-purple: #8e3cff;
	--ph-pink: #ff3dbb;
	--ph-panel: rgba(5, 10, 31, .9);
	--ph-line: rgba(37, 215, 255, .44);
	color: #f6f8ff;
	margin: 22px auto 36px;
	max-width: 1450px;
}

.ph-calc-heading {
	margin-bottom: 18px;
	text-align: center;
}

.ph-calc-heading h1 {
	background: linear-gradient(90deg, #f7f9ff 15%, #a86cff 48%, #16e6f2 82%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	font-size: clamp(30px, 4vw, 50px);
	font-weight: 800;
	letter-spacing: -.035em;
	margin: 2px 0 6px;
}

.ph-calc-heading > p:last-child {
	color: #b8c5df;
	font-size: 15px;
	margin: 0;
}

.ph-calc-kicker {
	color: var(--ph-cyan);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .16em;
	margin: 0;
	text-transform: uppercase;
}

.ph-calc-notice {
	align-items: center;
	background: linear-gradient(90deg, rgba(16, 99, 154, .3), rgba(94, 22, 128, .28));
	border: 1px solid rgba(37, 215, 255, .36);
	border-radius: 12px;
	box-sizing: border-box;
	color: #d6e5fa;
	display: flex;
	font-size: 13px;
	gap: 10px;
	justify-content: center;
	margin: 0 auto 18px;
	max-width: none;
	padding: 12px 16px;
	text-align: center;
	width: calc(100% - 50px);
}

.ph-calc-notice .icon {
	color: var(--ph-cyan);
	font-size: 17px;
}

.ph-calc-shell {
	background:
		radial-gradient(circle at 10% 0%, rgba(24, 99, 255, .13), transparent 36%),
		radial-gradient(circle at 100% 100%, rgba(255, 38, 190, .1), transparent 36%),
		rgba(3, 7, 25, .94);
	border: 1px solid transparent;
	border-radius: 18px;
	box-sizing: border-box;
	box-shadow: 0 22px 65px rgba(0, 0, 0, .42), 0 0 32px rgba(20, 211, 255, .09);
	display: grid;
	gap: 0;
	grid-template-columns: minmax(275px, .75fr) minmax(480px, 1.7fr);
	overflow: hidden;
	position: relative;
	margin-left: auto;
	margin-right: auto;
	width: calc(100% - 50px);
}

.ph-calc-shell::before {
	background: linear-gradient(110deg, var(--ph-cyan), var(--ph-purple) 48%, var(--ph-pink));
	border-radius: inherit;
	content: "";
	inset: 0;
	mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	mask-composite: exclude;
	padding: 1px;
	pointer-events: none;
	position: absolute;
}

.ph-calc-input-panel,
.ph-calc-result-panel {
	padding: clamp(24px, 3vw, 38px);
}

.ph-calc-input-panel {
	background: rgba(5, 10, 30, .72);
	border-right: 1px solid rgba(60, 162, 255, .2);
}

.ph-calc-input-panel h2 {
	color: #fff;
	font-size: 20px;
	margin: 0 0 22px;
}

.ph-calc-field {
	display: block;
	margin: 0 0 18px;
}

.ph-calc-field > span:first-child,
.ph-calc-field > label,
.ph-device-choice legend {
	color: #b9c7e3;
	display: block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .025em;
	margin-bottom: 7px;
}

.ph-calc-input-wrap {
	align-items: center;
	background: rgba(2, 7, 24, .88);
	border: 1px solid rgba(44, 209, 255, .48);
	border-radius: 10px;
	display: flex;
	overflow: hidden;
	transition: border-color .18s, box-shadow .18s;
}

.ph-calc-input-wrap:focus-within,
.ph-calc-dose-row select:focus {
	border-color: var(--ph-cyan);
	box-shadow: 0 0 0 3px rgba(22, 230, 242, .12);
	outline: none;
}

.ph-calc-input-wrap input {
	appearance: textfield;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	color: #fff !important;
	font-size: 22px;
	font-weight: 800;
	height: 48px;
	min-width: 0;
	padding: 8px 12px !important;
	width: 100%;
}

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

.ph-calc-input-wrap b {
	color: var(--ph-cyan);
	font-size: 12px;
	padding: 0 12px 0 4px;
	white-space: nowrap;
}

.ph-calc-dose-row {
	display: grid !important;
	gap: 8px;
	grid-template-columns: 1fr 84px;
	margin: 0 !important;
}

.ph-calc-dose-row select {
	background: #080f2c;
	border: 1px solid rgba(255, 61, 187, .55);
	border-radius: 10px;
	color: #fff;
	font-size: 14px;
	font-weight: 800;
	padding: 0 10px;
}

.ph-device-choice {
	border: 0;
	margin: 23px 0 18px;
	padding: 0;
}

.ph-device-buttons {
	display: grid;
	gap: 8px;
	grid-template-columns: 1fr 1fr;
}

.ph-device-buttons input {
	height: 1px;
	opacity: 0;
	position: absolute;
	width: 1px;
}

.ph-device-buttons span {
	align-items: center;
	background: rgba(8, 14, 42, .86);
	border: 1px solid rgba(151, 80, 255, .55);
	border-radius: 10px;
	color: #c8d2eb;
	cursor: pointer;
	display: flex;
	font-size: 11px;
	font-weight: 800;
	gap: 6px;
	justify-content: center;
	min-height: 47px;
	padding: 8px;
	text-align: center;
}

.ph-device-buttons input:checked + span {
	background: linear-gradient(120deg, rgba(6, 163, 212, .32), rgba(52, 91, 229, .34));
	border-color: var(--ph-cyan);
	box-shadow: 0 0 18px rgba(22, 230, 242, .14);
	color: #fff;
}

.ph-device-buttons input:focus-visible + span {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.ph-pen-calibration small {
	color: #8f9dbb;
	display: block;
	font-size: 10px;
	line-height: 1.5;
	margin-top: 7px;
}

.ph-calc-result-panel {
	min-width: 0;
	position: relative;
}

.ph-result-label {
	color: var(--ph-cyan);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .14em;
	margin: 0 0 8px;
	text-transform: uppercase;
}

.ph-calc-result-panel h2 {
	color: #f7f9ff;
	font-size: clamp(18px, 2.1vw, 29px);
	font-weight: 700;
	line-height: 1.28;
	margin: 0 auto 16px;
	max-width: 820px;
	text-align: center;
}

.ph-calc-result-panel h2 strong {
	color: var(--ph-cyan);
	font-size: 1.18em;
	text-shadow: 0 0 18px rgba(22, 230, 242, .44);
}

.ph-syringe-scroll {
	margin: 0 auto;
	max-width: 900px;
	overflow-x: auto;
	padding: 3px 0;
}

.ph-syringe {
	display: block;
	height: auto;
	min-width: 680px;
	width: 100%;
}

.ph-reading-note {
	align-items: center;
	color: #a9b7d0;
	display: flex;
	font-size: 11px;
	gap: 8px;
	justify-content: center;
	margin: -2px auto 20px;
	text-align: center;
}

.ph-reading-note > span {
	background: #090b12;
	border: 1px solid #5d6470;
	border-radius: 2px;
	display: inline-block;
	height: 13px;
	width: 13px;
}

.ph-calc-facts {
	border-top: 1px solid rgba(75, 150, 241, .22);
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(3, 1fr);
	margin-top: 12px;
	padding-top: 18px;
}

.ph-calc-facts div {
	background: rgba(8, 15, 42, .67);
	border: 1px solid rgba(78, 122, 217, .2);
	border-radius: 10px;
	padding: 12px;
	text-align: center;
}

.ph-calc-facts span {
	color: #8796b6;
	display: block;
	font-size: 9px;
	letter-spacing: .08em;
	margin-bottom: 4px;
	text-transform: uppercase;
}

.ph-calc-facts strong {
	color: #fff;
	font-size: 13px;
}

.ph-calc-error {
	background: rgba(151, 32, 80, .23);
	border: 1px solid rgba(255, 77, 147, .58);
	border-radius: 10px;
	color: #ffd6e6;
	font-size: 13px;
	margin-bottom: 18px;
	padding: 12px 14px;
}

.ph-pen-stage {
	display: grid;
	height: 324px;
	place-items: center;
}

.ph-pen {
	filter: drop-shadow(0 16px 22px rgba(0, 0, 0, .46)) drop-shadow(0 0 16px rgba(22, 144, 255, .18));
	height: 292px;
	position: relative;
	width: 80px;
}

.ph-pen-dial {
	background: repeating-linear-gradient(90deg, #11131d 0 3px, #3c4250 3px 5px);
	border: 2px solid #565d6b;
	border-radius: 13px 13px 6px 6px;
	height: 34px;
	left: 12px;
	position: absolute;
	top: 0;
	width: 56px;
}

.ph-pen-upper,
.ph-pen-lower {
	background:
		linear-gradient(90deg, #071b53 0, #105ac3 17%, #268dff 40%, #1059bd 62%, #061a50 100%);
	border: 1px solid #269eff;
	left: 8px;
	position: absolute;
	width: 64px;
}

.ph-pen-upper {
	border-radius: 10px 10px 3px 3px;
	height: 103px;
	top: 31px;
}

.ph-pen-window {
	align-items: center;
	background: linear-gradient(180deg, #05070e, #1c2230);
	border: 1px solid #687384;
	border-radius: 4px 4px 15px 15px;
	display: flex;
	height: 60px;
	justify-content: center;
	left: 17px;
	position: absolute;
	top: 12px;
	width: 30px;
}

.ph-pen-window span {
	background: #f0f3ee;
	border-radius: 2px;
	color: #111;
	font: 800 14px/1 Arial, sans-serif;
	display: block;
	max-width: 27px;
	overflow: hidden;
	padding: 4px 2px;
	text-align: center;
	white-space: nowrap;
}

.ph-pen-window span.ph-pen-value-long {
	font-size: 11px;
	letter-spacing: -.4px;
}

.ph-pen-ring {
	background: linear-gradient(90deg, #565a64, #f3f3f5 42%, #777c87 70%, #e2e3e6);
	border: 1px solid #fff;
	height: 18px;
	left: 7px;
	position: absolute;
	top: 130px;
	width: 66px;
	z-index: 2;
}

.ph-pen-lower {
	border-radius: 3px 3px 8px 8px;
	height: 129px;
	top: 146px;
}

.ph-pen-button {
	background: linear-gradient(90deg, #071a4e, #176fd3 50%, #061949);
	border: 1px solid #299dff;
	border-radius: 3px 3px 9px 9px;
	bottom: 0;
	height: 20px;
	left: 16px;
	position: absolute;
	width: 48px;
}

.ph-pen-note {
	margin-top: -6px;
}

.ph-calc-explainer {
	background: linear-gradient(120deg, rgba(11, 23, 59, .84), rgba(30, 10, 59, .78));
	border: 1px solid rgba(144, 70, 255, .34);
	border-radius: 14px;
	box-sizing: border-box;
	margin: 18px auto 0;
	padding: 22px clamp(20px, 3vw, 34px);
	width: calc(100% - 50px);
}

.ph-calc-explainer h2 {
	color: #fff;
	font-size: 18px;
	margin: 0 0 10px;
}

.ph-calc-explainer p {
	color: #b5c2dc;
	font-size: 12px;
	line-height: 1.65;
	margin: 5px 0;
}

.ph-calc-explainer strong {
	color: var(--ph-cyan);
}

.ph-example {
	border-left: 2px solid var(--ph-pink);
	margin-top: 10px !important;
	padding-left: 12px;
}

@media (max-width: 950px) {
	.ph-calc-shell {
		grid-template-columns: 1fr;
	}

	.ph-calc-input-panel {
		border-bottom: 1px solid rgba(60, 162, 255, .2);
		border-right: 0;
	}
}

@media (max-width: 600px) {
	.ph-calc-page {
		margin-top: 14px;
	}

	.ph-calc-notice {
		align-items: flex-start;
	}

	.ph-calc-input-panel,
	.ph-calc-result-panel {
		padding: 22px 15px;
	}

	.ph-device-buttons,
	.ph-calc-facts {
		grid-template-columns: 1fr;
	}

	.ph-syringe-scroll {
		margin-left: -5px;
		margin-right: -5px;
	}

	.ph-reading-note {
		align-items: flex-start;
	}
}
