:root {
	--tmm-navy: #263e66;
	--tmm-purple: #4c3480;
	--tmm-wine: #6b2e43;
	--tmm-gold: #e9cc6d;
	--tmm-cream: #faf7f1;
	--tmm-line: #ded6e5;
	--tmm-text: #273b5e;
}

.tmm-access-shell,
.tmm-member-dashboard,
.tmm-personal-area {
	max-width: 1180px;
	margin: 0 auto;
	color: var(--tmm-text);
}

.tmm-access-heading,
.tmm-section-heading {
	margin: 0 0 32px;
}

.tmm-access-heading > span,
.tmm-section-heading > span {
	display: block;
	margin-bottom: 10px;
	color: var(--tmm-purple);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .14em;
}

.tmm-access-heading h2,
.tmm-section-heading h2 {
	margin: 0 0 12px;
	color: var(--tmm-wine);
	font-size: clamp(32px, 5vw, 54px);
	line-height: 1.08;
}

.tmm-access-heading p,
.tmm-section-heading p {
	max-width: 760px;
	font-size: 18px;
	line-height: 1.65;
}

.tmm-first-login,
.tmm-portal-card,
.tmm-content-card,
.tmm-media-card,
.tmm-empty-state {
	border: 1px solid var(--tmm-line);
	border-radius: 24px;
	background: #fff;
	box-shadow: 0 18px 48px rgba(38, 62, 102, .08);
}

.tmm-first-login {
	overflow: hidden;
}

.tmm-first-login summary {
	padding: 20px 24px;
	cursor: pointer;
	color: var(--tmm-navy);
	font-weight: 800;
}

.tmm-first-login[open] summary {
	border-bottom: 1px solid var(--tmm-line);
}

.tmm-access-form {
	display: grid;
	gap: 18px;
	padding: 26px;
}

.tmm-access-form label {
	display: grid;
	gap: 7px;
	font-weight: 700;
}

.tmm-access-form input {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid #bdb4c8;
	border-radius: 12px;
	padding: 14px 16px;
	font: inherit;
}

.tmm-access-form input:focus {
	border-color: var(--tmm-purple);
	box-shadow: 0 0 0 3px rgba(76, 52, 128, .12);
	outline: 0;
}

.tmm-primary-button,
.tmm-secondary-button,
.tmm-content-card a,
.tmm-account-actions a,
.tmm-download-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	box-sizing: border-box;
	border: 0;
	border-radius: 999px;
	padding: 10px 22px;
	background: var(--tmm-navy);
	color: #fff !important;
	font: inherit;
	font-weight: 800;
	line-height: 1.2;
	text-decoration: none !important;
	cursor: pointer;
}

.tmm-primary-button:hover,
.tmm-content-card a:hover,
.tmm-account-actions a:hover {
	background: var(--tmm-purple);
	color: #fff;
}

.tmm-secondary-button {
	border: 1px solid var(--tmm-navy);
	background: #fff;
	color: var(--tmm-navy) !important;
}

.tmm-form-help {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
}

.tmm-notice {
	margin: 0 0 22px;
	border-left: 5px solid var(--tmm-navy);
	border-radius: 10px;
	padding: 16px 18px;
	background: #eef3fa;
}

.tmm-notice--warning {
	border-color: #b78100;
	background: #fff8de;
}

.tmm-notice--error {
	border-color: #a52b38;
	background: #fff0f1;
}

.tmm-portal-grid,
.tmm-content-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px;
}

.tmm-portal-card,
.tmm-content-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 30px;
}

.tmm-portal-card h3,
.tmm-content-card h3,
.tmm-media-card h3 {
	margin: 0 0 12px;
	color: var(--tmm-wine);
	font-size: 26px;
}

.tmm-portal-card p,
.tmm-content-card p {
	flex: 1;
	line-height: 1.65;
}

.tmm-card--master {
	background: linear-gradient(145deg, #fffdf4, #f5efff);
}

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

.tmm-account-actions a:last-child {
	background: #fff;
	color: var(--tmm-navy) !important;
	border: 1px solid var(--tmm-navy);
}

.tmm-setup-finish {
	margin-top: 22px;
}

.tmm-v3-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	margin: 0 auto 34px;
	padding: 14px;
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: 22px;
	background: linear-gradient(110deg, var(--tmm-navy), var(--tmm-purple));
	box-shadow: 0 14px 34px rgba(38, 62, 102, .18);
}

.tmm-v3-nav a,
.tmm-v3-nav button {
	border: 1px solid rgba(255, 255, 255, .28);
	border-radius: 999px;
	padding: 10px 15px;
	background: transparent;
	color: #fff !important;
	font: inherit;
	font-size: 14px;
	font-weight: 750;
	text-decoration: none;
	cursor: pointer;
}

.tmm-v3-nav a:hover,
.tmm-v3-nav button:hover,
.tmm-v3-nav__master {
	border-color: var(--tmm-gold) !important;
	background: var(--tmm-gold) !important;
	color: #2f2946 !important;
}

/* Paslepiama senojo TMM modulio navigacija, nes ją pakeičia platesnis v3 meniu. */
.tmm-student-nav {
	display: none !important;
}

.tmm-content-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tmm-content-card {
	min-height: 220px;
}

.tmm-content-card a {
	min-height: 40px;
	padding: 9px 18px;
}

.tmm-dashboard-announcements {
	margin-top: 42px;
}

.tmm-media-list {
	display: grid;
	gap: 24px;
}

.tmm-media-card,
.tmm-empty-state {
	padding: clamp(22px, 4vw, 38px);
}

.tmm-media-copy {
	line-height: 1.7;
}

.tmm-responsive-embed {
	position: relative;
	width: 100%;
	padding-top: 56.25%;
	overflow: hidden;
	border-radius: 16px;
	background: #10141d;
}

.tmm-responsive-embed iframe,
.tmm-responsive-embed video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.tmm-audio-row,
.tmm-video-row,
.tmm-file-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-top: 18px;
	padding: 16px;
	border-radius: 16px;
	background: var(--tmm-cream);
}

.tmm-audio-row audio {
	flex: 1 1 320px;
}

.tmm-video-row video {
	width: 100%;
	max-height: 720px;
	border-radius: 12px;
	background: #111;
}

.tmm-download-link {
	min-height: 36px;
	padding: 7px 14px;
	background: var(--tmm-purple);
	font-size: 14px;
}

.tmm-master-video-library {
	display: grid;
	gap: 30px;
	max-width: 1180px;
	margin: 0 auto;
	color: var(--tmm-text);
}

.tmm-master-video-toolbar {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	border: 1px solid rgba(233, 204, 109, .55);
	border-radius: 24px;
	padding: clamp(24px, 4vw, 38px);
	background: linear-gradient(135deg, #fffdf7, #f5efff);
	box-shadow: 0 18px 48px rgba(38, 62, 102, .08);
}

.tmm-master-video-toolbar h2,
.tmm-master-selected-video h2 {
	margin: 7px 0 12px;
	color: var(--tmm-wine);
	font-size: clamp(28px, 4vw, 44px);
	line-height: 1.12;
}

.tmm-master-video-toolbar p,
.tmm-master-selected-video__body p {
	margin: 0;
	line-height: 1.65;
}

.tmm-eyebrow {
	display: block;
	color: var(--tmm-purple);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .14em;
}

.tmm-master-video-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}

.tmm-master-video-card[hidden] {
	display: none !important;
}

.tmm-master-video-card {
	display: flex;
	min-width: 0;
	overflow: hidden;
	flex-direction: column;
	border: 1px solid var(--tmm-line);
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 14px 34px rgba(38, 62, 102, .08);
}

.tmm-master-video-card__media {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #111622;
}

.tmm-master-video-card__media a {
	display: block;
	width: 100%;
	height: 100%;
}

.tmm-master-video-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .25s ease;
}

.tmm-master-video-card:hover .tmm-master-video-card__media img {
	transform: scale(1.025);
}

.tmm-master-play-mark {
	position: absolute;
	top: 50%;
	left: 50%;
	display: grid;
	width: 54px;
	height: 54px;
	place-items: center;
	border: 2px solid rgba(255, 255, 255, .78);
	border-radius: 50%;
	background: rgba(38, 62, 102, .86);
	color: #fff;
	font-size: 20px;
	line-height: 1;
	transform: translate(-50%, -50%);
}

.tmm-master-video-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 20px;
}

.tmm-master-video-card__body h3 {
	margin: 0 0 10px;
	color: var(--tmm-wine);
	font-size: 20px;
	line-height: 1.3;
}

.tmm-master-video-card__body p {
	display: -webkit-box;
	overflow: hidden;
	flex: 1;
	margin: 0;
	color: #52617b;
	font-size: 14px;
	line-height: 1.55;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.tmm-master-video-card__actions {
	margin-top: 16px;
}

.tmm-master-video-card__actions a {
	color: var(--tmm-purple);
	font-weight: 800;
	text-decoration: none;
}

.tmm-master-video-card__actions a:hover {
	color: var(--tmm-wine);
	text-decoration: underline;
}

.tmm-master-selected-video {
	overflow: hidden;
	padding: 0;
	scroll-margin-top: 24px;
}

.tmm-master-selected-video__player {
	position: relative;
	width: 100%;
	padding-top: 56.25%;
	overflow: hidden;
	background: #10141d;
}

.tmm-master-selected-video__player iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.tmm-master-selected-video__body {
	padding: clamp(22px, 4vw, 38px);
}

.tmm-master-selected-video__body .tmm-secondary-button {
	margin-top: 22px;
}

.tmm-master-video-more {
	display: flex;
	justify-content: center;
}

.tmm-private-gallery {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin-top: 18px;
}

.tmm-private-gallery img {
	display: block;
	width: 100%;
	height: 240px;
	border-radius: 14px;
	object-fit: cover;
}

.tmm-access-modal[hidden] {
	display: none;
}

.tmm-access-modal {
	position: fixed;
	z-index: 999999;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 20px;
}

.tmm-access-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(23, 29, 45, .72);
	backdrop-filter: blur(4px);
}

.tmm-access-modal__dialog {
	position: relative;
	width: min(520px, 100%);
	border-radius: 24px;
	padding: 34px;
	background: #fff;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .28);
}

.tmm-access-modal__dialog h2 {
	margin: 0 0 14px;
	color: var(--tmm-wine);
}

.tmm-access-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: #f1edf5;
	font-size: 24px;
	cursor: pointer;
}

.tmm-card--admin {
	border: 1px solid rgba(232, 199, 102, .7);
	background: linear-gradient(145deg, #fffdf7, #f5efff);
}

.tmm-v3-nav__admin {
	background: #ead071 !important;
	color: #2b2344 !important;
}

.tmm-owner-admin {
	width: min(1180px, calc(100% - 32px));
	margin: 34px auto 70px;
}

.tmm-owner-stats {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 16px;
	margin: 26px 0;
}

.tmm-owner-access-group {
	margin: 30px 0;
	padding: clamp(18px, 3vw, 28px);
	border: 1px solid rgba(48, 63, 100, .12);
	border-radius: 24px;
	background: linear-gradient(145deg, #f8f9fc, #f3f0f8);
}

.tmm-owner-access-group--masters {
	border-color: rgba(181, 139, 41, .28);
	background: linear-gradient(145deg, #fffdf7, #f7f1e5);
}

.tmm-owner-section-heading {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin-bottom: 20px;
}

.tmm-owner-section-heading > span {
	display: grid;
	flex: 0 0 38px;
	width: 38px;
	height: 38px;
	place-items: center;
	border-radius: 50%;
	background: var(--tmm-purple);
	color: #fff;
	font-weight: 800;
}

.tmm-owner-access-group--masters .tmm-owner-section-heading > span {
	background: #a77824;
}

.tmm-owner-section-heading h3 {
	margin: 0 0 5px;
	color: var(--tmm-wine);
	font-size: clamp(22px, 3vw, 30px);
}

.tmm-owner-section-heading p {
	max-width: 820px;
	margin: 0;
	color: #596175;
}

.tmm-owner-access-group .tmm-owner-columns {
	margin-bottom: 0;
}

.tmm-owner-stats article,
.tmm-owner-panel {
	border: 1px solid rgba(48, 63, 100, .12);
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 14px 38px rgba(33, 43, 72, .08);
}

.tmm-owner-stats article {
	display: flex;
	flex-direction: column;
	gap: 5px;
	padding: 22px;
}

.tmm-owner-stats strong {
	color: var(--tmm-wine);
	font-size: clamp(28px, 4vw, 42px);
	line-height: 1;
}

.tmm-owner-stats span {
	color: #5d6474;
	font-size: 14px;
}

.tmm-owner-columns {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	margin-bottom: 24px;
}

.tmm-owner-panel {
	padding: clamp(20px, 3vw, 30px);
}

.tmm-owner-panel h3 {
	margin: 0 0 10px;
	color: var(--tmm-wine);
}

.tmm-owner-form,
.tmm-owner-inline-form {
	display: grid;
	gap: 14px;
}

.tmm-owner-form-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.tmm-owner-form label,
.tmm-owner-inline-form label {
	display: grid;
	gap: 6px;
	color: #303b59;
	font-size: 14px;
	font-weight: 650;
}

.tmm-owner-form input,
.tmm-owner-form select,
.tmm-owner-inline-form input {
	width: 100%;
	min-height: 44px;
	box-sizing: border-box;
	border: 1px solid #ccd2df;
	border-radius: 11px;
	padding: 9px 11px;
	background: #fff;
	font: inherit;
}

.tmm-owner-form input[type="file"] {
	padding: 9px;
}

.tmm-owner-members {
	margin-top: 24px;
}

.tmm-owner-panel-heading {
	display: flex;
	align-items: start;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 18px;
}

.tmm-owner-panel-heading p {
	margin: 0;
}

.tmm-owner-panel-heading > span {
	border-radius: 999px;
	padding: 7px 12px;
	background: #f1edf8;
	color: var(--tmm-purple);
	font-size: 13px;
	white-space: nowrap;
}

.tmm-owner-table-wrap {
	overflow-x: auto;
}

.tmm-owner-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.tmm-owner-table th,
.tmm-owner-table td {
	padding: 14px 12px;
	border-bottom: 1px solid #e7e9ef;
	text-align: left;
	vertical-align: top;
}

.tmm-owner-table th {
	color: #60687a;
	font-size: 12px;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.tmm-owner-table td > small {
	display: block;
	margin-top: 3px;
	color: #737b8e;
}

.tmm-owner-badge,
.tmm-owner-status {
	display: inline-flex;
	align-items: center;
	border-radius: 999px;
	padding: 5px 9px;
	background: #e9f5ee;
	color: #24663e;
	font-size: 12px;
	font-weight: 700;
}

.tmm-owner-badge + .tmm-owner-badge {
	margin-left: 5px;
}

.tmm-owner-badge--master {
	background: #f4e8fb;
	color: #61317b;
}

.tmm-owner-status--pending {
	background: #fff1c9;
	color: #7b5811;
}

.tmm-owner-status--used {
	background: #e6f5ec;
	color: #25613c;
}

.tmm-owner-status--expired,
.tmm-owner-status--revoked,
.tmm-owner-status--none,
.tmm-owner-status--neutral {
	background: #f0f1f4;
	color: #666d7d;
}

.tmm-owner-master-list {
	border-color: rgba(181, 139, 41, .25);
}

.tmm-owner-actions {
	display: grid;
	gap: 7px;
	min-width: 150px;
}

.tmm-owner-actions form {
	margin: 0;
}

.tmm-owner-master-table {
	min-width: 1060px;
}

.tmm-master-access-form {
	display: grid;
	grid-template-columns: repeat(2, minmax(118px, 1fr));
	gap: 8px;
	min-width: 270px;
}

.tmm-master-access-form label {
	display: grid;
	gap: 4px;
	color: #60687a;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
}

.tmm-master-access-form input {
	width: 100%;
	min-height: 38px;
	box-sizing: border-box;
	border: 1px solid #ccd2df;
	border-radius: 9px;
	padding: 6px 8px;
	background: #fff;
	font: inherit;
}

.tmm-master-access-form button {
	grid-column: 1 / -1;
}

.tmm-owner-actions .tmm-secondary-button,
.tmm-owner-link-button {
	width: 100%;
	min-height: 34px;
	border: 1px solid #cbd1df;
	border-radius: 9px;
	padding: 6px 10px;
	background: #fff;
	color: #303b59;
	font-size: 12px;
	cursor: pointer;
}

.tmm-owner-link-button {
	border-color: #ead6d6;
	color: #8c3434;
}

.tmm-owner-actions details {
	border-top: 1px dashed #d9dce5;
	padding-top: 7px;
}

.tmm-owner-actions summary {
	color: var(--tmm-purple);
	font-size: 12px;
	cursor: pointer;
}

.tmm-owner-inline-form {
	margin-top: 10px !important;
	padding: 12px;
	border-radius: 12px;
	background: #f7f6fa;
}

.tmm-owner-inline-form label:has(input[type="checkbox"]) {
	display: flex;
	align-items: center;
	gap: 7px;
}

.tmm-owner-inline-form input[type="checkbox"] {
	width: auto;
	min-height: 0;
}

@media (max-width: 900px) {
	.tmm-content-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.tmm-master-video-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.tmm-private-gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.tmm-owner-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.tmm-owner-columns {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.tmm-portal-grid,
	.tmm-content-grid {
		grid-template-columns: 1fr;
	}
	.tmm-v3-nav {
		flex-wrap: nowrap;
		overflow-x: auto;
		border-radius: 16px;
	}
	.tmm-v3-nav a,
	.tmm-v3-nav button {
		flex: 0 0 auto;
	}
	.tmm-private-gallery {
		grid-template-columns: 1fr;
	}
	.tmm-private-gallery img {
		height: auto;
		aspect-ratio: 4 / 3;
	}
	.tmm-master-video-library {
		gap: 20px;
	}
	.tmm-master-video-toolbar {
		border-radius: 18px;
		padding: 22px 18px;
	}
	.tmm-master-video-toolbar h2,
	.tmm-master-selected-video h2 {
		font-size: 28px;
	}
	.tmm-master-video-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}
	.tmm-master-video-card {
		border-radius: 16px;
	}
	.tmm-master-video-card__body {
		padding: 17px;
	}
	.tmm-master-video-card__body h3 {
		font-size: 18px;
	}
	.tmm-master-selected-video {
		width: calc(100vw - 24px);
		margin-right: 0;
		margin-left: calc(50% - 50vw + 12px);
		border-radius: 0;
	}
	.tmm-master-selected-video__body {
		padding: 22px 18px 26px;
	}
	.tmm-owner-admin {
		width: min(100% - 18px, 1180px);
		margin-top: 18px;
	}
	.tmm-owner-stats,
	.tmm-owner-form-row {
		grid-template-columns: 1fr;
	}
	.tmm-owner-panel-heading {
		align-items: flex-start;
		flex-direction: column;
	}
	.tmm-owner-access-group {
		padding: 14px;
		border-radius: 18px;
	}
}


.tmm-device-choice{display:flex!important;gap:12px;align-items:flex-start;padding:14px 16px;border:1px solid rgba(38,63,103,.18);border-radius:12px;background:#fff}
.tmm-device-choice input{width:auto!important;margin-top:5px}
.tmm-device-choice span{display:flex;flex-direction:column;gap:3px}
.tmm-device-choice small{color:#667085}
.tmm-resend-form{margin-top:14px;padding-top:14px;border-top:1px solid rgba(38,63,103,.12)}
