.tij-md {
	--tij-md-bg: #fbfbfc;
	--tij-md-card: #ffffff;
	--tij-md-ink: #111936;
	--tij-md-muted: #687185;
	--tij-md-line: #e6e8ef;
	--tij-md-soft: #f6f7fa;
	--tij-md-red: #a4142a;
	--tij-md-red-soft: #fff3f5;
	--tij-md-green: #16834a;
	--tij-md-amber: #a15c00;
	--tij-md-shadow: 0 18px 48px rgba(17, 25, 54, .06);
	max-width: 1240px;
	margin: 0 auto;
	padding: 24px 14px;
	color: var(--tij-md-ink);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 15px;
	line-height: 1.55;
}

.tij-md *,
.tij-md *::before,
.tij-md *::after { box-sizing: border-box; }

.tij-md a {
	color: var(--tij-md-red);
	text-decoration: none;
}

.tij-md a:hover { text-decoration: none; }

.tij-md-sitebar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 20px;
	padding: 14px 16px;
	background: rgba(255, 255, 255, .94);
	border: 1px solid var(--tij-md-line);
	border-radius: 20px;
	box-shadow: 0 12px 34px rgba(17, 25, 54, .055);
	backdrop-filter: blur(14px);
}

.tij-md-brand {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	min-width: 0;
	color: var(--tij-md-ink) !important;
}

.tij-md-brand img {
	display: block;
	width: auto;
	max-width: 178px;
	max-height: 44px;
	object-fit: contain;
}

.tij-md-brand-mark {
	display: inline-grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 13px;
	background: linear-gradient(135deg, #121833, var(--tij-md-red));
	color: #fff;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 17px;
	font-weight: 700;
	letter-spacing: .02em;
}

.tij-md-brand-text {
	overflow: hidden;
	color: var(--tij-md-ink);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 20px;
	font-weight: 650;
	line-height: 1.1;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tij-md-topnav,
.tij-md-sitebar-actions,
.tij-md-footer nav {
	display: flex;
	align-items: center;
	gap: 8px;
}

.tij-md-topnav a,
.tij-md-home-button,
.tij-md-icon-button,
.tij-md-footer a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 8px 12px;
	border-radius: 999px;
	color: var(--tij-md-muted) !important;
	font-size: 13px;
	font-weight: 650;
	line-height: 1;
	transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.tij-md-topnav a:hover,
.tij-md-home-button:hover,
.tij-md-icon-button:hover,
.tij-md-footer a:hover {
	background: var(--tij-md-soft);
	color: var(--tij-md-ink) !important;
}

.tij-md-icon-button,
.tij-md-home-button {
	border: 1px solid var(--tij-md-line);
	background: #fff;
	cursor: pointer;
	font-family: inherit;
}

.tij-md-home-button {
	background: var(--tij-md-ink);
	border-color: var(--tij-md-ink);
	color: #fff !important;
}

.tij-md-home-button:hover {
	background: var(--tij-md-red);
	border-color: var(--tij-md-red);
	color: #fff !important;
}

.tij-md-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin-top: 22px;
	padding: 18px 6px 4px;
	color: var(--tij-md-muted);
	font-size: 13px;
}

.tij-md-footer p {
	margin: 0;
}

.tij-md-app {
	display: grid;
	grid-template-columns: 278px minmax(0, 1fr);
	gap: 22px;
	align-items: start;
}

.tij-md-sidebar,
.tij-md-screen,
.tij-md-guest-card,
.tij-md-summary-card,
.tij-md-quick-card {
	background: var(--tij-md-card);
	border: 1px solid var(--tij-md-line);
	border-radius: 20px;
	box-shadow: var(--tij-md-shadow);
}

.tij-md-sidebar {
	position: sticky;
	top: 22px;
	padding: 18px;
	box-shadow: 0 10px 34px rgba(17, 25, 54, .045);
}

.tij-md-user-mini {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--tij-md-line);
}

.tij-md-user-mini strong,
.tij-md-security-item strong {
	display: block;
	color: var(--tij-md-ink);
	font-size: 14px;
	font-weight: 720;
	line-height: 1.25;
}

.tij-md-user-mini span,
.tij-md-security-item span,
.tij-md-muted {
	color: var(--tij-md-muted);
	font-size: 13px;
	line-height: 1.55;
}

.tij-md-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 54px;
	height: 54px;
	border-radius: 999px;
	object-fit: cover;
	background: #eef0f5;
	border: 1px solid #e5e7ee;
}

.tij-md-avatar-fallback {
	background: linear-gradient(135deg, #141a35 0%, #a4142a 100%);
	color: #fff;
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.tij-md-avatar-large {
	width: 96px;
	height: 96px;
	font-size: 22px;
}

.tij-md-avatar-xl {
	width: 92px;
	height: 92px;
	font-size: 21px;
}

.tij-md-nav {
	display: grid;
	gap: 5px;
	margin-top: 14px;
}

.tij-md-nav a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 40px;
	padding: 10px 12px;
	border-radius: 12px;
	color: #313a50;
	font-size: 14px;
	font-weight: 650;
	letter-spacing: -.01em;
	transition: background .16s ease, color .16s ease, transform .16s ease;
}

.tij-md-nav a:hover,
.tij-md-nav a.is-active {
	background: var(--tij-md-red-soft);
	color: var(--tij-md-red);
}

.tij-md-nav-logout {
	margin-top: 12px;
	border-top: 1px solid var(--tij-md-line);
	color: var(--tij-md-red) !important;
}

.tij-md-main {
	display: grid;
	gap: 18px;
}

.tij-md-screen {
	display: none;
	padding: clamp(20px, 2.4vw, 30px);
	scroll-margin-top: 24px;
}

.tij-md-screen.is-active {
	display: grid;
	gap: 20px;
}

.tij-md-hero {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: clamp(22px, 3vw, 34px);
	border: 1px solid #ead4d8;
	border-radius: 22px;
	background:
		linear-gradient(135deg, rgba(164, 20, 42, .06), rgba(255,255,255,.8) 55%),
		#fff;
}

.tij-md-kicker,
.tij-md-soft-label {
	display: block;
	margin: 0 0 7px;
	color: var(--tij-md-red);
	font-size: 11px;
	font-weight: 750;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.tij-md-hero h1,
.tij-md-guest-card h1 {
	margin: 0;
	color: var(--tij-md-ink);
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(34px, 4vw, 50px);
	font-weight: 600;
	line-height: 1.02;
	letter-spacing: -.045em;
}

.tij-md-hero p,
.tij-md-guest-card p,
.tij-md-panel-head p,
.tij-md-summary-card p,
.tij-md-quick-card small,
.tij-md-empty p {
	margin: 8px 0 0;
	color: var(--tij-md-muted);
	font-size: 14px;
	line-height: 1.6;
}

.tij-md-overview-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.tij-md-summary-card {
	display: grid;
	align-content: start;
	gap: 14px;
	min-height: 238px;
	padding: 20px;
	box-shadow: 0 12px 30px rgba(17, 25, 54, .045);
}

.tij-md-profile-card {
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
}

.tij-md-profile-card .tij-md-button {
	grid-column: 1 / -1;
	justify-self: start;
}

.tij-md-summary-card h2,
.tij-md-panel-head h2,
.tij-md-section-title {
	margin: 0;
	color: var(--tij-md-ink);
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(24px, 2.4vw, 32px);
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -.035em;
}

.tij-md-summary-card small {
	display: block;
	margin-top: 6px;
	color: var(--tij-md-muted);
	font-size: 13px;
}

.tij-md-count-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.tij-md-count-row div {
	padding: 13px;
	border: 1px solid var(--tij-md-line);
	border-radius: 15px;
	background: var(--tij-md-soft);
}

.tij-md-count-row strong {
	display: block;
	color: var(--tij-md-red);
	font-size: 30px;
	font-weight: 680;
	line-height: 1;
}

.tij-md-count-row span {
	display: block;
	margin-top: 5px;
	color: var(--tij-md-muted);
	font-size: 13px;
}

.tij-md-check-list,
.tij-md-activity-list {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tij-md-check-list li,
.tij-md-activity-list li {
	position: relative;
	padding-left: 22px;
	color: #3d4659;
	font-size: 14px;
}

.tij-md-check-list li::before,
.tij-md-activity-list li::before {
	position: absolute;
	left: 0;
	top: 1px;
	content: "•";
	color: var(--tij-md-muted);
	font-size: 18px;
	line-height: 1;
}

.tij-md-check-list li.is-ok::before { color: var(--tij-md-green); content: "✓"; }
.tij-md-check-list li.is-warn::before { color: var(--tij-md-amber); content: "!"; }

.tij-md-section-title {
	font-size: 25px;
}

.tij-md-quick-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.tij-md-quick-card {
	display: grid;
	grid-template-columns: 42px minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	min-height: 86px;
	padding: 14px;
	color: var(--tij-md-ink) !important;
	box-shadow: 0 10px 28px rgba(17, 25, 54, .035);
	transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.tij-md-quick-card:hover {
	transform: translateY(-1px);
	border-color: #d9bcc1;
	box-shadow: 0 16px 34px rgba(17, 25, 54, .07);
}

.tij-md-quick-card strong {
	display: block;
	font-size: 15px;
	font-weight: 720;
}

.tij-md-quick-card small {
	display: block;
	margin-top: 2px;
	font-size: 13px;
}

.tij-md-card-dot {
	width: 40px;
	height: 40px;
	border-radius: 14px;
	background: linear-gradient(135deg, #fff2f4, #f5f7fb);
	border: 1px solid #f0d5da;
}

.tij-md-quick-card i {
	color: var(--tij-md-muted);
	font-style: normal;
	font-size: 24px;
	line-height: 1;
}

.tij-md-panel-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--tij-md-line);
}

.tij-md-back-link {
	flex: 0 0 auto;
	color: var(--tij-md-muted) !important;
	font-size: 13px;
	font-weight: 650;
}

.tij-md-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 11px 17px;
	border: 1px solid transparent;
	border-radius: 999px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 720;
	line-height: 1;
	letter-spacing: -.01em;
	transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.tij-md-button:hover {
	transform: translateY(-1px);
	text-decoration: none;
}

.tij-md-button-primary {
	background: var(--tij-md-red);
	color: #fff !important;
	box-shadow: 0 10px 22px rgba(164, 20, 42, .18);
}

.tij-md-button-secondary {
	background: #fff;
	color: #27324a !important;
	border-color: var(--tij-md-line);
}

.tij-md-alert {
	padding: 13px 15px;
	border: 1px solid var(--tij-md-line);
	border-radius: 15px;
	font-size: 14px;
	font-weight: 650;
}

.tij-md-alert-success { color: var(--tij-md-green); background: #effaf3; border-color: #bfe8cf; }
.tij-md-alert-error { color: var(--tij-md-red); background: #fff4f4; border-color: #ffd0d0; }

.tij-md-form {
	display: grid;
	gap: 16px;
	margin: 0;
}

.tij-md-form-card {
	max-width: 760px;
}

.tij-md-form-compact { gap: 14px; }

.tij-md-field-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.tij-md-form label {
	display: grid;
	gap: 7px;
	margin: 0;
	color: #344054;
	font-size: 13px;
	font-weight: 680;
}

.tij-md-form input[type="text"],
.tij-md-form input[type="email"],
.tij-md-form input[type="tel"],
.tij-md-form input[type="password"],
.tij-md-form input[type="file"],
.tij-md-form select,
.tij-md-form textarea {
	width: 100%;
	min-height: 44px;
	padding: 11px 12px;
	border: 1px solid #d5dae4;
	border-radius: 12px;
	background: #fff;
	color: var(--tij-md-ink);
	font: inherit;
	font-weight: 500;
	outline: none;
}

.tij-md-form input:focus,
.tij-md-form select:focus,
.tij-md-form textarea:focus {
	border-color: var(--tij-md-red);
	box-shadow: 0 0 0 4px rgba(164, 20, 42, .08);
}

.tij-md-form textarea {
	resize: vertical;
	line-height: 1.65;
}

.tij-md-form small {
	color: var(--tij-md-muted);
	font-size: 12px;
	font-weight: 560;
}

.tij-md-avatar-row {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 15px;
	border: 1px solid var(--tij-md-line);
	border-radius: 17px;
	background: var(--tij-md-soft);
}

.tij-md-security-list,
.tij-md-toggle-list {
	display: grid;
	gap: 10px;
	max-width: 760px;
	margin: 0 0 18px;
}

.tij-md-security-item,
.tij-md-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 14px;
	border: 1px solid var(--tij-md-line);
	border-radius: 15px;
	background: var(--tij-md-soft);
}

.tij-md-inline-form { margin: 0; }

.tij-md-toggle {
	justify-content: flex-start;
	cursor: pointer;
	font-weight: 650;
}

.tij-md-toggle input {
	width: 18px;
	height: 18px;
	accent-color: var(--tij-md-red);
}

.tij-md-status {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 7px 10px;
	border-radius: 999px;
	background: #eef2ff;
	color: #3538cd;
	font-size: 12px;
	font-weight: 760;
	white-space: nowrap;
}

.tij-md-status-pending { background: #fff8e6; color: var(--tij-md-amber); }
.tij-md-status-publish { background: #effaf3; color: var(--tij-md-green); }
.tij-md-status-draft { background: #eef2f7; color: #4b5563; }
.tij-md-status-future { background: #eef4ff; color: #175cd3; }
.tij-md-status-private { background: #f4efff; color: #6941c6; }

.tij-md-empty {
	max-width: 760px;
	padding: 20px;
	border: 1px dashed #cfd5df;
	border-radius: 16px;
	background: var(--tij-md-soft);
}

.tij-md-table-wrap {
	overflow-x: auto;
	border: 1px solid var(--tij-md-line);
	border-radius: 16px;
}

.tij-md-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	font-size: 14px;
}

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

.tij-md-table th {
	color: #475467;
	background: #f9fafb;
	font-size: 12px;
	font-weight: 760;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.tij-md-table tr:last-child td { border-bottom: 0; }

.tij-md-activity-list {
	max-width: 760px;
	padding: 6px 0 0;
}

.tij-md-activity-list li {
	display: grid;
	gap: 2px;
	padding: 14px 14px 14px 36px;
	border: 1px solid var(--tij-md-line);
	border-radius: 15px;
	background: var(--tij-md-soft);
}

.tij-md-activity-list li::before {
	top: 17px;
	left: 16px;
	content: "•";
	color: var(--tij-md-red);
}

.tij-md-activity-list span {
	color: var(--tij-md-muted);
	font-size: 13px;
}

.tij-md-guest {
	display: grid;
	min-height: 460px;
	place-items: center;
}

.tij-md-guest-card {
	width: min(680px, 100%);
	padding: clamp(30px, 5vw, 56px);
	text-align: center;
}

.tij-md-actions {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 24px;
}

@media (max-width: 980px) {
	.tij-md-sitebar {
		align-items: flex-start;
		flex-direction: column;
	}
	.tij-md-topnav {
		width: 100%;
		overflow-x: auto;
		padding-bottom: 3px;
	}
	.tij-md-sitebar-actions {
		width: 100%;
		justify-content: space-between;
	}
	.tij-md-footer {
		align-items: flex-start;
		flex-direction: column;
	}
	.tij-md-app { grid-template-columns: 1fr; }
	.tij-md-sidebar { position: static; }
	.tij-md-nav {
		grid-template-columns: repeat(4, minmax(170px, 1fr));
		overflow-x: auto;
		padding-bottom: 4px;
	}
	.tij-md-overview-grid,
	.tij-md-quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
	.tij-md { padding-inline: 10px; }
	.tij-md-sitebar { border-radius: 18px; }
	.tij-md-brand-text { font-size: 18px; }
	.tij-md-brand img { max-width: 148px; }
	.tij-md-topnav a,
	.tij-md-home-button,
	.tij-md-icon-button { min-height: 36px; padding-inline: 11px; }
	.tij-md-footer nav {
		align-items: flex-start;
		flex-wrap: wrap;
	}
	.tij-md-app { gap: 14px; }
	.tij-md-sidebar,
	.tij-md-screen { border-radius: 18px; }
	.tij-md-sidebar { padding: 14px; }
	.tij-md-nav {
		grid-template-columns: repeat(2, minmax(150px, 1fr));
	}
	.tij-md-hero,
	.tij-md-panel-head,
	.tij-md-avatar-row,
	.tij-md-security-item {
		align-items: flex-start;
		flex-direction: column;
	}
	.tij-md-overview-grid,
	.tij-md-quick-grid,
	.tij-md-field-grid,
	.tij-md-count-row { grid-template-columns: 1fr; }
	.tij-md-profile-card { grid-template-columns: 1fr; }
	.tij-md-button { width: 100%; }
}
