:root {
	--pl-bg: #0d100e;
	--pl-panel: #171c19;
	--pl-cream: #f5eddd;
	--pl-green: #65d97c;
	--pl-muted: #b8c0b9;
	--pl-border: rgba(255, 255, 255, 0.11);
}

.polar-shell {
	max-width: 1180px;
	margin: 34px auto;
	padding: 0 20px;
	color: #f7f3e9;
	font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.polar-shell * {
	box-sizing: border-box;
}

/* Typography */
.polar-shell h1,
.polar-shell h2,
.polar-shell h3 {
	font-family: Georgia, "Times New Roman", serif;
	letter-spacing: -0.025em;
}

.polar-shell h1 {
	font-size: clamp(2.1rem, 3vw, 3rem);
	line-height: 1;
	margin: 8px 0 16px;
}

.polar-shell h2 {
	font-size: clamp(1.45rem, 2.1vw, 2rem);
	line-height: 1.08;
	margin: 0 0 12px;
}

.polar-shell h3 {
	font-size: clamp(1.2rem, 1.7vw, 1.6rem);
	line-height: 1.12;
}

/* Main My Polar Local page title */
.polar-page-shell:has(.polar-dashboard) > h1 {
	font-size: clamp(2.2rem, 3vw, 3.2rem) !important;
	line-height: 1 !important;
	letter-spacing: -0.035em !important;
	margin: 26px auto 22px !important;
	max-width: 1180px;
	padding: 0 20px;
}

/* Dashboard page headings */
.polar-dashboard-main > h1 {
	font-size: clamp(2.1rem, 3vw, 3rem) !important;
	line-height: 1 !important;
	letter-spacing: -0.03em !important;
	margin: 8px 0 14px !important;
}

/* Dashboard card headings */
.polar-dashboard-main .polar-panel h2 {
	font-size: clamp(1.4rem, 1.9vw, 1.85rem) !important;
	line-height: 1.08 !important;
	letter-spacing: -0.02em !important;
}

/* Supporting text */
.polar-muted {
	color: var(--pl-muted);
	max-width: 760px;
}

.polar-kicker {
	display: inline-block;
	color: var(--pl-green);
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: 0.78rem;
	font-weight: 900;
}

/* Panels */
.polar-panel {
	background: linear-gradient(180deg, #1b201d, #151916);
	border: 1px solid var(--pl-border);
	border-radius: 22px;
	padding: 26px;
	box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
}

.polar-centre {
	text-align: center;
	max-width: 760px;
	margin: auto;
}

/* Login */
.polar-login-shell {
	display: grid;
	place-items: center;
	min-height: 65vh;
}

.polar-login-card {
	width: min(560px, 100%);
}

/* Forms */
.polar-form {
	display: grid;
	gap: 16px;
}

.polar-form label {
	display: grid;
	gap: 7px;
	font-weight: 800;
}

.polar-form input,
.polar-form textarea,
.polar-form select {
	width: 100%;
	padding: 14px 15px;
	border-radius: 12px;
	border: 1px solid rgba(0, 0, 0, 0.18);
	background: #fff;
	color: #151815;
	font: inherit;
}

.polar-form textarea {
	min-height: 120px;
	resize: vertical;
}

.polar-check {
	display: flex !important;
	align-items: center;
	gap: 10px;
	font-weight: 700 !important;
}

.polar-check input {
	width: auto;
}

/* Buttons */
.polar-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 0 21px;
	border-radius: 12px;
	border: 1px solid transparent;
	font-weight: 900;
	text-decoration: none;
	cursor: pointer;
}

.polar-btn-primary {
	background: linear-gradient(180deg, #65d97c, #2f7f40);
	color: #08120a;
}

.polar-btn-secondary {
	background: rgba(255, 255, 255, 0.03);
	border-color: rgba(255, 255, 255, 0.22);
	color: #fff;
}

.polar-small {
	font-size: 0.9rem;
	color: var(--pl-muted);
}

.polar-small a {
	color: var(--pl-green);
}

/* Alerts */
.polar-alert {
	padding: 14px 16px;
	border-radius: 12px;
	margin: 16px 0;
}

.polar-alert-error {
	background: #4b1f25;
	border: 1px solid #a94d59;
}

.polar-alert-success {
	background: #153b20;
	border: 1px solid rgba(101, 217, 124, 0.42);
	color: #b8f3c4;
}

/* Dashboard layout */
.polar-dashboard {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: 24px;
	align-items: start;
}

.polar-sidebar {
	position: sticky;
	top: 96px;
	background: #0b0e0c;
	border: 1px solid var(--pl-border);
	border-radius: 22px;
	padding: 24px;
}

.polar-sidebar h2 {
	font-size: 1.35rem !important;
	line-height: 1.1;
	margin: 8px 0 0;
}

.polar-dashboard-main {
	min-width: 0;
	overflow: hidden;
}

/* Dashboard navigation */
.polar-dashboard-nav {
	display: grid;
	gap: 8px;
	margin-top: 22px;
}

.polar-dashboard-nav a {
	display: block;
	padding: 12px 13px;
	border-radius: 11px;
	text-decoration: none;
	color: #ccd2cd;
	font-weight: 800;
}

.polar-dashboard-nav a:hover,
.polar-dashboard-nav a.active {
	background: rgba(101, 217, 124, 0.14);
	color: #fff;
}

/* Dashboard figures */
.polar-metric-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 15px;
	margin: 25px 0;
}

.polar-metric {
	padding: 22px;
	border-radius: 18px;
	background: #171c19;
	border: 1px solid var(--pl-border);
}

.polar-metric strong {
	display: block;
	color: var(--pl-green);
	font-size: 2rem;
	line-height: 1;
	margin-bottom: 10px;
}

/* Two-column sections */
.polar-grid-two {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	margin-top: 22px;
}

.polar-actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 24px;
}

/* Public profile */
.polar-profile-hero {
	padding: 38px;
	border-radius: 24px;
	background:
		radial-gradient(
			circle at 85% 20%,
			rgba(101, 217, 124, 0.18),
			transparent 28%
		),
		linear-gradient(135deg, #17211b, #0c100e);
	border: 1px solid rgba(101, 217, 124, 0.22);
	margin-bottom: 22px;
}

.polar-profile-hero p {
	font-size: 1.1rem;
	color: #d3d9d4;
}

/* Enquiries */
.polar-enquiry-form {
	margin-top: 22px;
}

.polar-enquiry-list {
	display: grid;
	gap: 16px;
	margin-top: 22px;
}

.polar-enquiry {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 18px;
}

.polar-enquiry p {
	grid-column: 1 / -1;
}

.polar-enquiry-meta {
	line-height: 1.8;
}

.polar-badge {
	display: inline-block;
	padding: 6px 9px;
	border-radius: 999px;
	background: rgba(101, 217, 124, 0.12);
	color: var(--pl-green);
	font-size: 0.76rem;
	font-weight: 900;
}

.polar-empty {
	text-align: center;
}

.polar-account-menu a {
	font-weight: 800;
}

/* Tablet */
@media (max-width: 900px) {
	.polar-page-shell:has(.polar-dashboard) > h1 {
		font-size: clamp(2.1rem, 7vw, 3rem) !important;
	}

	.polar-dashboard {
		grid-template-columns: 1fr;
	}

	.polar-sidebar {
		position: static;
	}

	.polar-dashboard-nav {
		grid-template-columns: repeat(2, 1fr);
	}

	.polar-metric-grid,
	.polar-grid-two {
		grid-template-columns: 1fr;
	}

	.polar-enquiry {
		grid-template-columns: 1fr;
	}

	.polar-enquiry p {
		grid-column: auto;
	}
}

/* Mobile */
@media (max-width: 620px) {
	.polar-shell {
		padding: 0 12px;
		margin: 24px auto;
	}

	.polar-page-shell:has(.polar-dashboard) > h1 {
		font-size: 2.1rem !important;
		padding: 0 12px;
		margin-top: 22px !important;
	}

	.polar-dashboard-main > h1 {
		font-size: 2.1rem !important;
	}

	.polar-dashboard-main .polar-panel h2 {
		font-size: 1.45rem !important;
	}

	.polar-panel,
	.polar-profile-hero {
		padding: 21px;
	}

	.polar-dashboard-nav {
		grid-template-columns: 1fr;
	}

	.polar-actions {
		display: grid;
	}

	.polar-btn {
		width: 100%;
	}

	.polar-metric strong {
		font-size: 1.8rem;
	}
}