.accesshub-public {
	--ah-primary: #4f46e5;
	--ah-primary-dark: #3730a3;
	--ah-success: #10b981;
	--ah-warning: #f59e0b;
	--ah-danger: #ef4444;
	--ah-ink: #111827;
	--ah-muted: #6b7280;
	--ah-line: #e5e7eb;
	--ah-soft: #f8fafc;
	--ah-surface: #ffffff;
	color: var(--ah-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.accesshub-public *,
.accesshub-public *::before,
.accesshub-public *::after {
	box-sizing: border-box;
}

.ah-auth {
	min-height: 60vh;
	display: grid;
	place-items: center;
	padding: 32px 16px;
	background: var(--ah-soft);
}

.ah-auth-card,
.ah-panel,
.ah-stat-card,
.ah-item-card,
.ah-notice,
.ah-empty {
	background: var(--ah-surface);
	border: 1px solid var(--ah-line);
	border-radius: 8px;
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

.ah-auth-card {
	width: min(420px, 100%);
	padding: 28px;
	display: grid;
	gap: 16px;
}

.ah-auth-card h2,
.ah-panel h3,
.ah-section-header h3,
.ah-item-card h4 {
	margin: 0;
	line-height: 1.2;
}

.ah-form,
.ah-form-grid {
	display: grid;
	gap: 14px;
}

.ah-form-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.accesshub-public label,
.accesshub-public fieldset {
	display: grid;
	gap: 6px;
	font-weight: 650;
}

.accesshub-public input,
.accesshub-public select {
	width: 100%;
	min-height: 42px;
	border: 1px solid var(--ah-line);
	border-radius: 8px;
	padding: 8px 10px;
	font: inherit;
	background: #fff;
	color: var(--ah-ink);
}

.accesshub-public input:focus,
.accesshub-public select:focus {
	outline: 2px solid rgba(79, 70, 229, 0.22);
	border-color: var(--ah-primary);
}

.ah-checkbox,
.accesshub-public fieldset label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 500;
}

.ah-checkbox input,
.accesshub-public fieldset input[type="radio"] {
	width: auto;
	min-height: auto;
}

.ah-button,
.ah-link-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	border-radius: 8px;
	border: 1px solid var(--ah-line);
	padding: 8px 14px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	background: #fff;
	color: var(--ah-ink);
}

.ah-button--primary {
	border-color: var(--ah-primary);
	background: var(--ah-primary);
	color: #fff;
}

.ah-button--primary:hover {
	background: var(--ah-primary-dark);
	color: #fff;
}

.ah-link-button {
	min-height: auto;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--ah-primary);
}

.accesshub-dashboard {
	max-width: 1180px;
	margin: 0 auto;
	padding: 24px 16px 48px;
}

.ah-welcome {
	margin-bottom: 18px;
	padding: 18px;
	background: var(--ah-soft);
	border-radius: 8px;
}

.ah-welcome h2,
.ah-welcome p {
	margin: 0;
}

.ah-welcome p {
	color: var(--ah-muted);
	margin-top: 6px;
}

.ah-dashboard-nav {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding: 8px;
	margin-bottom: 18px;
	background: var(--ah-soft);
	border-radius: 8px;
}

.ah-dashboard-nav a {
	white-space: nowrap;
	border-radius: 8px;
	padding: 10px 14px;
	color: var(--ah-muted);
	text-decoration: none;
	font-weight: 700;
}

.ah-dashboard-nav a.is-active {
	background: #fff;
	color: var(--ah-primary);
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.ah-section {
	display: grid;
	gap: 18px;
}

.ah-section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.ah-card-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

.ah-stat-card,
.ah-panel,
.ah-empty,
.ah-notice {
	padding: 18px;
}

.ah-stat-card strong {
	display: block;
	font-size: 26px;
	line-height: 1.15;
}

.ah-stat-card span {
	color: var(--ah-muted);
	display: block;
	margin-top: 6px;
}

.ah-summary-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
}

.ah-summary-grid span {
	display: grid;
	gap: 4px;
	padding: 12px;
	background: var(--ah-soft);
	border-radius: 8px;
	color: var(--ah-muted);
}

.ah-summary-grid strong {
	color: var(--ah-ink);
}

.ah-table {
	width: 100%;
	border-collapse: collapse;
}

.ah-table th,
.ah-table td {
	text-align: left;
	padding: 12px;
	border-bottom: 1px solid var(--ah-line);
	vertical-align: middle;
}

.ah-table th {
	font-weight: 800;
	background: var(--ah-soft);
}

.ah-table td:last-child {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.ah-item-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.ah-item-card {
	display: grid;
	gap: 10px;
	padding: 14px;
}

.ah-item-card img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 8px;
	background: var(--ah-soft);
}

.ah-item-card span {
	color: var(--ah-muted);
}

.ah-profile-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ah-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(15, 23, 42, 0.42);
	backdrop-filter: blur(6px);
}

.ah-modal.is-open {
	display: flex;
}

.ah-modal__panel {
	position: relative;
	width: min(860px, 96vw);
	max-height: 90vh;
	overflow: auto;
	background: #fff;
	border-radius: 8px;
	padding: 24px;
	box-shadow: 0 20px 80px rgba(15, 23, 42, 0.22);
}

.ah-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 8px;
	background: #f3f4f6;
	cursor: pointer;
	font-size: 22px;
	line-height: 1;
}

.accesshub-public fieldset {
	border: 1px solid var(--ah-line);
	border-radius: 8px;
	padding: 14px;
}

.accesshub-public select[multiple] {
	min-height: 112px;
}

.ah-search {
	max-width: 260px;
}

.ah-toast {
	position: fixed;
	top: 24px;
	right: 24px;
	z-index: 100000;
	max-width: 340px;
	padding: 12px 14px;
	border-radius: 8px;
	background: #111827;
	color: #fff;
	box-shadow: 0 12px 36px rgba(15, 23, 42, 0.22);
	opacity: 0;
	transform: translateY(-8px);
	transition: opacity 160ms ease, transform 160ms ease;
}

.ah-toast.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.ah-toast--error {
	background: #b91c1c;
}

.ah-ajax-form.is-loading {
	opacity: 0.65;
	pointer-events: none;
}

@media (max-width: 900px) {
	.ah-card-grid,
	.ah-summary-grid,
	.ah-item-grid,
	.ah-profile-grid,
	.ah-form-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.ah-card-grid,
	.ah-summary-grid,
	.ah-item-grid,
	.ah-profile-grid,
	.ah-form-grid {
		grid-template-columns: 1fr;
	}

	.ah-section-header {
		align-items: stretch;
		flex-direction: column;
	}

	.ah-table {
		display: block;
		overflow-x: auto;
	}
}
