/* ==========================================================================
   Tutor Student Dashboard
   Premium • Medical • Modern • Minimal
   ========================================================================== */

.tsd-app {
	--tsd-primary: #0A314F;
	--tsd-accent: #E2B23A;
	--tsd-bg: #F6F8FA;
	--tsd-surface: #FFFFFF;
	--tsd-text: #102536;
	--tsd-muted: #71808D;
	--tsd-border: #E4E9EE;
	--tsd-primary-soft: color-mix(in srgb, var(--tsd-primary) 7%, #fff);
	--tsd-primary-hover: color-mix(in srgb, var(--tsd-primary) 88%, #000);
	--tsd-accent-soft: color-mix(in srgb, var(--tsd-accent) 16%, #fff);
	--tsd-success: #1E7F5C;
	--tsd-success-soft: #E8F5EF;
	--tsd-danger: #B4412F;
	--tsd-danger-soft: #FBECE9;
	--tsd-radius: 14px;
	--tsd-radius-sm: 10px;
	--tsd-shadow: 0 1px 2px rgba(16, 37, 54, 0.04), 0 4px 16px rgba(16, 37, 54, 0.04);
	--tsd-shadow-hover: 0 2px 4px rgba(16, 37, 54, 0.05), 0 10px 28px rgba(16, 37, 54, 0.08);
	--tsd-sidebar-w: 268px;
	--tsd-top: 0px;

	position: relative;
	display: grid;
	grid-template-columns: var(--tsd-sidebar-w) minmax(0, 1fr);
	min-height: 100vh;
	background: var(--tsd-bg);
	color: var(--tsd-text);
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 15px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	text-align: left;
}

.tsd-app *,
.tsd-app *::before,
.tsd-app *::after {
	box-sizing: border-box;
}

.tsd-app :where(h1, h2, h3, p) {
	margin: 0;
	padding: 0;
	color: inherit;
	font-family: inherit;
	letter-spacing: normal;
	text-transform: none;
}

.tsd-app :where(a) {
	color: inherit;
	text-decoration: none;
	box-shadow: none;
}

.tsd-app img {
	max-width: 100%;
	height: auto;
	border: 0;
	box-shadow: none;
}

.tsd-app [hidden] {
	display: none !important;
}

.tsd-app :focus-visible {
	outline: 2px solid var(--tsd-accent);
	outline-offset: 2px;
}

.tsd-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* Page level (full-screen template) ------------------------------------- */

body.tsd-fullscreen {
	margin: 0;
	background: #F6F8FA;
}

body.tsd-fullscreen .tsd-app {
	min-height: 100vh;
}

body.admin-bar .tsd-app {
	--tsd-top: 32px;
	min-height: calc(100vh - 32px);
}

@media (max-width: 782px) {
	body.admin-bar .tsd-app {
		--tsd-top: 46px;
		min-height: calc(100vh - 46px);
	}
}

/* Message card (sign in / instructor) ------------------------------------ */

.tsd-app--message {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 60vh;
	padding: 48px 16px;
}

body.tsd-fullscreen .tsd-app--message {
	min-height: 100vh;
}

.tsd-message {
	max-width: 440px;
	width: 100%;
	text-align: center;
	background: var(--tsd-surface);
	border: 1px solid var(--tsd-border);
	border-radius: var(--tsd-radius);
	box-shadow: var(--tsd-shadow);
	padding: 40px 32px;
}

.tsd-message__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--tsd-primary-soft);
	color: var(--tsd-primary);
	margin-bottom: 18px;
}

.tsd-message h2 {
	font-size: 20px;
	font-weight: 600;
	margin-bottom: 8px;
}

.tsd-message p {
	color: var(--tsd-muted);
	margin-bottom: 24px;
}

.tsd-app--notice {
	display: block;
	min-height: 0;
	padding: 20px;
	border-radius: var(--tsd-radius);
}

/* Sidebar ----------------------------------------------------------------- */

.tsd-sidebar {
	position: sticky;
	top: var(--tsd-top);
	align-self: start;
	height: calc(100vh - var(--tsd-top));
	display: flex;
	flex-direction: column;
	background: var(--tsd-surface);
	border-right: 1px solid var(--tsd-border);
	padding: 28px 18px 20px;
	z-index: 30;
	overflow-y: auto;
}

.tsd-sidebar__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 10px 28px;
}

.tsd-brand {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
}

.tsd-brand img {
	display: block;
	max-height: 40px;
	max-width: 170px;
	width: auto;
}

.tsd-brand__text {
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--tsd-primary);
}

.tsd-sidebar .tsd-sidebar__close {
	display: none;
}

.tsd-nav {
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 1;
}

.tsd-nav__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 14px;
	border-radius: var(--tsd-radius-sm);
	color: var(--tsd-muted);
	font-size: 14.5px;
	font-weight: 500;
	transition: background-color 0.18s ease, color 0.18s ease;
	position: relative;
}

.tsd-nav__item .tsd-icon {
	flex: none;
}

.tsd-nav__item:hover {
	background: var(--tsd-primary-soft);
	color: var(--tsd-primary);
}

.tsd-nav__item.is-active {
	background: var(--tsd-primary-soft);
	color: var(--tsd-primary);
	font-weight: 600;
}

.tsd-nav__item.is-active::before {
	content: "";
	position: absolute;
	left: -18px;
	top: 10px;
	bottom: 10px;
	width: 3px;
	border-radius: 0 3px 3px 0;
	background: var(--tsd-accent);
}

.tsd-sidebar__foot {
	border-top: 1px solid var(--tsd-border);
	padding-top: 14px;
	margin-top: 14px;
}

.tsd-nav__item--logout:hover {
	background: var(--tsd-danger-soft);
	color: var(--tsd-danger);
}

/* Navy sidebar variant */
.tsd-sidebar--navy .tsd-sidebar {
	background: var(--tsd-primary);
	border-right-color: transparent;
}

.tsd-sidebar--navy .tsd-brand__text {
	color: #fff;
}

.tsd-sidebar--navy .tsd-nav__item {
	color: rgba(255, 255, 255, 0.72);
}

.tsd-sidebar--navy .tsd-nav__item:hover,
.tsd-sidebar--navy .tsd-nav__item.is-active {
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
}

.tsd-sidebar--navy .tsd-sidebar__foot {
	border-top-color: rgba(255, 255, 255, 0.12);
}

.tsd-sidebar--navy .tsd-nav__item--logout:hover {
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
}

.tsd-sidebar--navy .tsd-iconbtn {
	color: #fff;
}

/* Main ---------------------------------------------------------------------- */

.tsd-main {
	min-width: 0;
	position: relative;
}

.tsd-topbar {
	display: none;
}

.tsd-content {
	max-width: 1120px;
	margin: 0 auto;
	padding: 48px 48px 72px;
	outline: none;
}

.tsd-panel {
	animation: tsd-fade 0.25s ease both;
}

@keyframes tsd-fade {
	from {
		opacity: 0;
		transform: translateY(4px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

/* Typography -------------------------------------------------------------- */

.tsd-h1 {
	font-size: 28px;
	line-height: 1.2;
	font-weight: 650;
	letter-spacing: -0.02em;
	color: var(--tsd-primary);
}

.tsd-h2 {
	font-size: 18px;
	line-height: 1.3;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.tsd-sub {
	color: var(--tsd-muted);
	margin-top: 6px;
	font-size: 15px;
}

.tsd-pagehead {
	margin-bottom: 28px;
}

.tsd-hero {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 32px;
}

.tsd-meta {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: var(--tsd-text);
}

.tsd-meta .tsd-icon {
	flex: none;
	opacity: 0.7;
}

.tsd-meta--muted {
	color: var(--tsd-muted);
}

.tsd-small {
	font-size: 12.5px;
	margin-left: 6px;
}

.tsd-link {
	color: var(--tsd-primary);
	font-weight: 600;
	font-size: 14px;
	border-bottom: 1px solid transparent;
	transition: border-color 0.18s ease;
}

.tsd-link:hover {
	border-bottom-color: var(--tsd-accent);
}

/* Avatar ------------------------------------------------------------------ */

.tsd-avatar {
	display: block;
	border-radius: 50%;
	object-fit: cover;
	background: var(--tsd-primary-soft);
	border: 1px solid var(--tsd-border);
	flex: none;
}

.tsd-avatar--sm {
	width: 36px;
	height: 36px;
}

.tsd-avatar--lg {
	width: 72px;
	height: 72px;
	border: 3px solid #fff;
	box-shadow: 0 0 0 1px var(--tsd-border), var(--tsd-shadow);
}

.tsd-avatar--xl {
	width: 96px;
	height: 96px;
}

/* Cards & grid ----------------------------------------------------------- */

.tsd-card {
	background: var(--tsd-surface);
	border: 1px solid var(--tsd-border);
	border-radius: var(--tsd-radius);
	box-shadow: var(--tsd-shadow);
}

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

.tsd-block {
	margin-top: 40px;
}

.tsd-block__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 18px;
}

/* Stats --------------------------------------------------------------------- */

.tsd-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}

.tsd-stat {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 20px;
	background: var(--tsd-surface);
	border: 1px solid var(--tsd-border);
	border-radius: var(--tsd-radius);
	box-shadow: var(--tsd-shadow);
}

.tsd-stat__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	flex: none;
	border-radius: 12px;
	background: var(--tsd-primary-soft);
	color: var(--tsd-primary);
}

.tsd-stat__value {
	font-size: 26px;
	font-weight: 650;
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: var(--tsd-text);
}

.tsd-stat__label {
	margin-top: 4px;
	font-size: 13px;
	color: var(--tsd-muted);
}

/* Course card -------------------------------------------------------------- */

.tsd-course-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.tsd-course-card:hover {
	box-shadow: var(--tsd-shadow-hover);
	transform: translateY(-2px);
	border-color: color-mix(in srgb, var(--tsd-primary) 18%, var(--tsd-border));
}

.tsd-thumb {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	background: var(--tsd-primary-soft);
	overflow: hidden;
}

.tsd-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.tsd-thumb__ph {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: color-mix(in srgb, var(--tsd-primary) 45%, #fff);
}

.tsd-course-card__body {
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex: 1;
	padding: 18px 20px 20px;
}

.tsd-course-card__title {
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: -0.01em;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.tsd-course-card__title a:hover {
	color: var(--tsd-primary);
}

.tsd-course-card .tsd-btn {
	margin-top: auto;
}

.tsd-excerpt {
	font-size: 13.5px;
	color: var(--tsd-muted);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Progress ------------------------------------------------------------------ */

.tsd-progress-row {
	display: flex;
	align-items: center;
	gap: 12px;
}

.tsd-progress {
	flex: 1;
	height: 6px;
	background: #EAEFF3;
	border-radius: 999px;
	overflow: hidden;
}

.tsd-progress__bar {
	display: block;
	height: 100%;
	background: var(--tsd-primary);
	border-radius: 999px;
	transition: width 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.tsd-progress-row__pct {
	font-size: 13px;
	font-weight: 600;
	color: var(--tsd-text);
	min-width: 38px;
	text-align: right;
}

/* Badges --------------------------------------------------------------------- */

.tsd-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	background: rgba(255, 255, 255, 0.94);
	color: var(--tsd-text);
	border: 1px solid var(--tsd-border);
	backdrop-filter: blur(4px);
}

.tsd-badge--inline {
	position: static;
	display: inline-block;
	white-space: nowrap;
	backdrop-filter: none;
}

.tsd-badge--completed,
.tsd-badge--pass {
	background: var(--tsd-success-soft);
	color: var(--tsd-success);
	border-color: transparent;
}

.tsd-badge--in_progress {
	background: var(--tsd-accent-soft);
	color: color-mix(in srgb, var(--tsd-accent) 45%, #000);
	border-color: transparent;
}

.tsd-badge--not_started,
.tsd-badge--pending {
	background: #EEF2F5;
	color: var(--tsd-muted);
	border-color: transparent;
}

.tsd-badge--fail {
	background: var(--tsd-danger-soft);
	color: var(--tsd-danger);
	border-color: transparent;
}

/* Buttons ---------------------------------------------------------------------- */

.tsd-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 20px;
	min-height: 44px;
	border-radius: var(--tsd-radius-sm);
	border: 1px solid transparent;
	font-family: inherit;
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	text-align: center;
	transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
	-webkit-appearance: none;
	appearance: none;
}

.tsd-btn--block {
	width: 100%;
}

.tsd-btn--sm {
	min-height: 38px;
	padding: 8px 14px;
	font-size: 13.5px;
}

.tsd-btn--primary {
	background: var(--tsd-primary);
	color: #fff !important;
}

.tsd-btn--primary:hover {
	background: var(--tsd-primary-hover);
	box-shadow: 0 4px 14px color-mix(in srgb, var(--tsd-primary) 25%, transparent);
}

.tsd-btn--outline {
	background: #fff;
	border-color: var(--tsd-border);
	color: var(--tsd-primary) !important;
}

.tsd-btn--outline:hover {
	border-color: var(--tsd-primary);
	background: var(--tsd-primary-soft);
}

.tsd-btn--ghost {
	background: transparent;
	color: var(--tsd-muted) !important;
}

.tsd-btn--ghost:hover {
	color: var(--tsd-danger) !important;
	background: var(--tsd-danger-soft);
}

.tsd-btn[disabled],
.tsd-btn.is-loading {
	opacity: 0.7;
	pointer-events: none;
}

.tsd-btn.is-loading::after {
	content: "";
	width: 14px;
	height: 14px;
	border-radius: 50%;
	border: 2px solid currentColor;
	border-right-color: transparent;
	animation: tsd-spin 0.7s linear infinite;
}

@keyframes tsd-spin {
	to {
		transform: rotate(360deg);
	}
}

.tsd-iconbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: var(--tsd-radius-sm);
	background: transparent;
	color: var(--tsd-primary);
	cursor: pointer;
	padding: 0;
	transition: background-color 0.18s ease;
}

.tsd-iconbtn:hover {
	background: var(--tsd-primary-soft);
}

/* Tabs ---------------------------------------------------------------------------- */

.tsd-tabs {
	display: inline-flex;
	gap: 4px;
	padding: 4px;
	background: #EDF1F4;
	border-radius: 12px;
	margin-bottom: 28px;
	max-width: 100%;
	overflow-x: auto;
}

.tsd-tab {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 16px;
	min-height: 40px;
	border: 0;
	border-radius: 9px;
	background: transparent;
	color: var(--tsd-muted);
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.tsd-tab:hover {
	color: var(--tsd-primary);
}

.tsd-tab.is-active {
	background: #fff;
	color: var(--tsd-primary);
	box-shadow: 0 1px 3px rgba(16, 37, 54, 0.1);
}

.tsd-tab__count {
	font-size: 12px;
	padding: 1px 7px;
	border-radius: 999px;
	background: rgba(16, 37, 54, 0.06);
}

.tsd-tab.is-active .tsd-tab__count {
	background: var(--tsd-accent-soft);
}

.tsd-filter-result {
	transition: opacity 0.18s ease;
}

.tsd-filter-result.is-loading {
	opacity: 0.45;
	pointer-events: none;
}

/* Lists & tables ---------------------------------------------------------------- */

.tsd-list__row {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(160px, 1.2fr) auto;
	align-items: center;
	gap: 24px;
	padding: 20px 24px;
}

.tsd-list__row + .tsd-list__row {
	border-top: 1px solid var(--tsd-border);
}

.tsd-list__title {
	font-weight: 600;
	font-size: 15.5px;
	letter-spacing: -0.01em;
}

.tsd-list__title:hover {
	color: var(--tsd-primary);
}

.tsd-tablewrap {
	overflow-x: auto;
}

.tsd-table {
	width: 100%;
	border-collapse: collapse;
	border: 0;
	margin: 0;
	background: transparent;
}

.tsd-table th,
.tsd-table td {
	padding: 16px 20px;
	text-align: left;
	border: 0;
	border-bottom: 1px solid var(--tsd-border);
	vertical-align: middle;
	font-size: 14px;
	background: transparent;
}

.tsd-table thead th {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--tsd-muted);
	background: #FAFBFC;
	white-space: nowrap;
}

.tsd-table tbody tr:last-child td {
	border-bottom: 0;
}

.tsd-table tbody tr:hover td {
	background: #FAFBFC;
}

.tsd-score {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
}

.tsd-table .tsd-num {
	text-align: center;
}

/* Certificates --------------------------------------------------------------------- */

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

.tsd-cert {
	padding: 28px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	border-top: 3px solid var(--tsd-accent);
}

.tsd-cert__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: var(--tsd-accent-soft);
	color: color-mix(in srgb, var(--tsd-accent) 40%, #000);
	margin-bottom: 10px;
}

.tsd-cert__title {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--tsd-muted);
}

.tsd-cert__course {
	font-size: 18px;
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.35;
}

.tsd-cert__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 16px;
}

/* Forms ----------------------------------------------------------------------------- */

.tsd-form-card {
	padding: 32px;
}

.tsd-form-card--narrow {
	max-width: 560px;
}

.tsd-form-card .tsd-h2 {
	margin-bottom: 4px;
}

.tsd-photo {
	display: flex;
	align-items: center;
	gap: 24px;
	padding-bottom: 28px;
	margin-bottom: 28px;
	border-bottom: 1px solid var(--tsd-border);
}

.tsd-photo__body h3 {
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 2px;
}

.tsd-photo__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
}

.tsd-photo__actions label {
	cursor: pointer;
}

.tsd-form {
	margin-top: 20px;
}

.tsd-photo + .tsd-form {
	margin-top: 0;
}

.tsd-form__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px 24px;
}

.tsd-form__stack {
	display: grid;
	gap: 20px;
}

.tsd-field--full {
	grid-column: 1 / -1;
}

.tsd-field label {
	display: block;
	margin-bottom: 7px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--tsd-text);
}

.tsd-field input,
.tsd-field textarea {
	display: block;
	width: 100%;
	min-height: 46px;
	padding: 11px 14px;
	border: 1px solid #D6DDE4;
	border-radius: var(--tsd-radius-sm);
	background: #fff;
	color: var(--tsd-text);
	font-family: inherit;
	font-size: 15px;
	line-height: 1.4;
	box-shadow: none;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
	-webkit-appearance: none;
	appearance: none;
}

.tsd-field textarea {
	resize: vertical;
	min-height: 110px;
}

.tsd-field input:hover,
.tsd-field textarea:hover {
	border-color: #B9C4CE;
}

.tsd-field input:focus,
.tsd-field textarea:focus {
	outline: none;
	border-color: var(--tsd-primary);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--tsd-primary) 14%, transparent);
}

.tsd-field input[disabled] {
	background: #F3F5F7;
	color: var(--tsd-muted);
	cursor: not-allowed;
}

.tsd-field.has-error input,
.tsd-field.has-error textarea {
	border-color: var(--tsd-danger);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--tsd-danger) 12%, transparent);
}

.tsd-hint {
	margin-top: 6px;
	font-size: 12.5px;
	color: var(--tsd-muted);
}

.tsd-form__foot {
	margin-top: 28px;
	display: flex;
	justify-content: flex-start;
}

/* Empty & skeleton -------------------------------------------------------------------- */

.tsd-empty {
	text-align: center;
	padding: 64px 24px;
	background: var(--tsd-surface);
	border: 1px dashed #D3DBE2;
	border-radius: var(--tsd-radius);
}

.tsd-empty__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--tsd-primary-soft);
	color: var(--tsd-primary);
	margin-bottom: 16px;
}

.tsd-empty h3 {
	font-size: 17px;
	font-weight: 600;
	margin-bottom: 6px;
}

.tsd-empty p {
	color: var(--tsd-muted);
	max-width: 360px;
	margin: 0 auto;
}

.tsd-error {
	text-align: center;
	padding: 56px 24px;
	background: var(--tsd-surface);
	border: 1px solid var(--tsd-border);
	border-radius: var(--tsd-radius);
}

.tsd-error p {
	color: var(--tsd-muted);
	margin-bottom: 18px;
}

.tsd-skel {
	border-radius: var(--tsd-radius-sm);
	background: linear-gradient(90deg, #EAEFF3 25%, #F3F6F8 37%, #EAEFF3 63%);
	background-size: 400% 100%;
	animation: tsd-shimmer 1.4s ease infinite;
}

.tsd-skel--title {
	height: 30px;
	width: 220px;
	margin-bottom: 12px;
}

.tsd-skel--text {
	height: 16px;
	width: 340px;
	max-width: 80%;
	margin-bottom: 32px;
}

.tsd-skel--card {
	height: 280px;
	border-radius: var(--tsd-radius);
}

@keyframes tsd-shimmer {
	0% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0 50%;
	}
}

/* Toasts -------------------------------------------------------------------------------- */

.tsd-toasts {
	position: fixed;
	top: calc(var(--tsd-top) + 20px);
	right: 20px;
	z-index: 100000;
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: min(380px, calc(100vw - 32px));
	pointer-events: none;
}

.tsd-toast {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 16px;
	background: #fff;
	border: 1px solid var(--tsd-border);
	border-left: 4px solid var(--tsd-success);
	border-radius: var(--tsd-radius-sm);
	box-shadow: 0 10px 30px rgba(16, 37, 54, 0.12);
	font-size: 14px;
	pointer-events: auto;
	animation: tsd-toast-in 0.25s ease both;
}

.tsd-toast--error {
	border-left-color: var(--tsd-danger);
}

.tsd-toast__icon {
	flex: none;
	margin-top: 1px;
	color: var(--tsd-success);
}

.tsd-toast--error .tsd-toast__icon {
	color: var(--tsd-danger);
}

.tsd-toast__msg {
	flex: 1;
}

.tsd-toast.is-leaving {
	opacity: 0;
	transform: translateX(12px);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

@keyframes tsd-toast-in {
	from {
		opacity: 0;
		transform: translateX(12px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

/* Overlay (drawer) -------------------------------------------------------------------------- */

.tsd-overlay {
	position: fixed;
	inset: 0;
	background: rgba(16, 37, 54, 0.4);
	z-index: 40;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.tsd-app.is-menu-open .tsd-overlay {
	opacity: 1;
}

/* Responsive --------------------------------------------------------------------------------- */

@media (max-width: 1180px) {
	.tsd-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.tsd-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.tsd-content {
		padding: 40px 32px 64px;
	}
}

/* Tablet & mobile: collapsible drawer navigation */
@media (max-width: 1024px) {
	.tsd-app {
		grid-template-columns: minmax(0, 1fr);
	}

	.tsd-sidebar {
		position: fixed;
		top: var(--tsd-top);
		left: 0;
		bottom: 0;
		width: min(300px, 86vw);
		height: auto;
		align-self: stretch;
		transform: translateX(-102%);
		transition: transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
		box-shadow: none;
		z-index: 50;
	}

	.tsd-app.is-menu-open .tsd-sidebar {
		transform: none;
		box-shadow: 0 0 60px rgba(16, 37, 54, 0.25);
	}

	.tsd-sidebar .tsd-sidebar__close {
		display: inline-flex;
	}

	.tsd-nav__item.is-active::before {
		left: -18px;
	}

	.tsd-topbar {
		position: sticky;
		top: var(--tsd-top);
		z-index: 5;
		display: flex;
		align-items: center;
		gap: 8px;
		padding: 10px 16px;
		background: rgba(255, 255, 255, 0.92);
		backdrop-filter: blur(8px);
		border-bottom: 1px solid var(--tsd-border);
	}

	.tsd-topbar__title {
		flex: 1;
		font-weight: 600;
		font-size: 16px;
		color: var(--tsd-primary);
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}
}

@media (max-width: 720px) {
	.tsd-app {
		font-size: 15px;
	}

	.tsd-content {
		padding: 24px 16px 56px;
	}

	.tsd-h1 {
		font-size: 24px;
	}

	.tsd-hero {
		flex-direction: row;
		gap: 16px;
		margin-bottom: 24px;
	}

	.tsd-avatar--lg {
		width: 56px;
		height: 56px;
	}

	.tsd-grid,
	.tsd-grid--cert,
	.tsd-stats {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
	}

	.tsd-block {
		margin-top: 32px;
	}

	.tsd-list__row {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
		padding: 18px;
	}

	.tsd-form-card {
		padding: 22px 18px;
	}

	.tsd-photo {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}

	.tsd-form__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.tsd-tabs {
		display: flex;
		width: 100%;
	}

	.tsd-tab {
		flex: 1;
		justify-content: center;
		padding: 9px 10px;
	}

	.tsd-cert__actions .tsd-btn {
		width: 100%;
	}

	.tsd-toasts {
		right: 16px;
		left: 16px;
		width: auto;
	}

	/* Table → stacked cards */
	.tsd-tablewrap {
		background: transparent;
		border: 0;
		box-shadow: none;
		overflow: visible;
	}

	.tsd-table,
	.tsd-table tbody,
	.tsd-table tr,
	.tsd-table td {
		display: block;
		width: 100%;
	}

	.tsd-table thead {
		display: none;
	}

	.tsd-table tr {
		background: var(--tsd-surface);
		border: 1px solid var(--tsd-border);
		border-radius: var(--tsd-radius);
		box-shadow: var(--tsd-shadow);
		margin-bottom: 14px;
		padding: 6px 0;
	}

	.tsd-table td {
		display: flex;
		justify-content: space-between;
		align-items: center;
		gap: 16px;
		padding: 10px 18px;
		border: 0;
		text-align: right !important;
	}

	.tsd-table td::before {
		content: attr(data-label);
		font-size: 12px;
		font-weight: 600;
		letter-spacing: 0.04em;
		text-transform: uppercase;
		color: var(--tsd-muted);
		text-align: left;
	}

	.tsd-table tbody tr:hover td {
		background: transparent;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tsd-app *,
	.tsd-app *::before,
	.tsd-app *::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}

/* Contained mode (shortcode inside a theme layout) */
.tsd-app:not(.tsd-app--full):not(.tsd-app--message):not(.tsd-app--notice) {
	min-height: 0;
	border: 1px solid var(--tsd-border);
	border-radius: 18px;
	overflow: clip;
}

.tsd-app:not(.tsd-app--full):not(.tsd-app--message):not(.tsd-app--notice) .tsd-sidebar {
	top: calc(var(--tsd-top) + 16px);
	height: calc(100vh - var(--tsd-top) - 32px);
}

@media (max-width: 1024px) {
	.tsd-app:not(.tsd-app--full):not(.tsd-app--message):not(.tsd-app--notice) .tsd-sidebar {
		top: var(--tsd-top);
		height: auto;
		align-self: stretch;
	}
}
