.psa-settings,
.psa-panel,
.psa-panel * { box-sizing: border-box; }

.psa-settings {
	position: fixed;
	right: 0;
	top: 52%;
	z-index: 10020;
	width: 16px;
	height: 42px;
	padding: 0;
	border: 1px solid rgba(76, 99, 94, .34);
	border-right: 0;
	border-radius: 11px 0 0 11px;
	background: rgba(246, 244, 238, .94);
	box-shadow: 0 8px 30px rgba(26, 38, 36, .12);
	color: transparent;
	cursor: pointer;
	font-size: 0;
	opacity: .68;
	transition: width .18s ease, opacity .18s ease;
}

.psa-settings::before {
	content: "";
	position: absolute;
	left: 4px;
	top: 13px;
	width: 8px;
	height: 14px;
	border: 1px solid #315b53;
	border-radius: 7px 7px 5px 5px;
}

.psa-settings:hover,
.psa-settings:focus-visible { width: 34px; opacity: 1; outline: 2px solid #207568; outline-offset: 2px; }

.psa-backdrop {
	position: fixed;
	inset: 0;
	z-index: 10030;
	display: grid;
	place-items: center;
	padding: 20px;
	background: rgba(15, 23, 25, .46);
	backdrop-filter: blur(7px);
}

.psa-backdrop[hidden] { display: none; }

.psa-panel {
	width: min(620px, 100%);
	max-height: min(720px, calc(100vh - 40px));
	overflow: auto;
	padding: 30px;
	border: 1px solid rgba(56, 82, 76, .2);
	border-radius: 22px;
	background: #fbfaf6;
	box-shadow: 0 28px 90px rgba(10, 24, 22, .26);
	color: #172320;
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	line-height: 1.58;
}

.psa-kicker { margin: 0 0 8px; color: #47756c; font-size: 12px; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.psa-panel h2 { margin: 0 0 12px; color: #11231f; font: 650 clamp(25px, 4vw, 36px)/1.14 Georgia, serif; }
.psa-panel p { margin: 0 0 13px; color: #4c5a56; font-size: 14px; }
.psa-panel a { color: #176e61; font-weight: 650; }
.psa-status { padding: 10px 12px; border-radius: 10px; background: #edf4f1; color: #315b53 !important; }
.psa-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.psa-actions button {
	min-height: 42px;
	padding: 9px 17px;
	border: 1px solid #b8c8c3;
	border-radius: 999px;
	background: transparent;
	color: #243a35;
	cursor: pointer;
	font: 700 13px/1.2 Inter, ui-sans-serif, system-ui, sans-serif;
}
.psa-actions button[data-accept] { border-color: #173f37; background: #173f37; color: #fff; }
.psa-actions button:hover { transform: translateY(-1px); }
.psa-actions button:focus-visible { outline: 3px solid rgba(32, 117, 104, .28); outline-offset: 2px; }
.psa-close { margin-right: auto; }

@media (max-width: 560px) {
	.psa-panel { padding: 23px 20px; border-radius: 17px; }
	.psa-actions { display: grid; grid-template-columns: 1fr; }
	.psa-actions button { width: 100%; }
	.psa-close { order: 3; }
}

@media (prefers-reduced-motion: reduce) {
	.psa-settings { transition: none; }
	.psa-actions button:hover { transform: none; }
}
