/* card */
.tb-card {
	text-align: left;
	background: var(--tb-surface);
	border: 1px solid var(--tb-border);
	border-radius: var(--tb-radius-lg);
	box-shadow: var(--tb-shadow);
	padding: 18px;
	margin-bottom: 20px;
	color: var(--tb-text);
}

.tb-card--flat {
	background: var(--tb-surface-alt);
	box-shadow: none;
}

/* small uppercase grey caption above a field / section */
.tb-label {
	display: block;
	margin-bottom: 6px;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--tb-muted);
}

.tb-label i {
	margin-right: 4px;
}

.tb-label-row {
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.tb-label-row .premium-badge-icon {
	margin-top: -4px;
}

/* section heading (icon + title, like "Zoznam balíkov" in student /class) */
.tb-heading {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
	font-size: 1.25rem;
	font-weight: 800;
	color: var(--tb-text);
}

/* tile with an accent bar */
.tb-tile {
	--tb-accent: var(--tb-green);
	border-radius: 12px;
	padding: 12px 14px;
	background: var(--tb-surface-alt);
	border-left: 4px solid var(--tb-accent);
}

.tb-tile .tb-label i {
	color: var(--tb-accent);
}

.tb-tile--red {
	--tb-accent: var(--tb-red);
}

.tb-tile--blue {
	--tb-accent: var(--tb-blue);
}

.tb-tile--brand {
	--tb-accent: var(--tb-brand);
}

/* big action buttons
   <div class="tb-actions">
     <div class="tb-action tb-action--green">
        <span class="tb-action-icon"><i class="far fa-keyboard"></i></span>
        <span class="tb-action-label">Text <span class="tb-action-sub">optional subtitle</span></span>
        <span class="tb-action-end"></span>
     </div>
   A row offering a choice = .tb-action-panel (not clickable) + <span class="tb-action-options"> with .tb-pill buttons */
.tb-actions {
	display: flex;
	flex-direction: column;
	gap: var(--tb-gap);
}

.tb-action {
	--tb-c: var(--tb-grey);
	display: grid; /* no Bootstrap display class - its !important beats inline display:none */
	grid-template-columns: 1fr auto 1fr; /* equal sides = label centred in the whole row */
	align-items: center;
	column-gap: 12px;
	width: 100%;
	min-height: var(--tb-action-h);
	padding: 8px 16px;
	border: 0;
	border-radius: var(--tb-radius);
	background: var(--tb-c);
	color: #fff !important;
	font-size: 1.15rem;
	line-height: 1.3;
	text-align: center;
	text-decoration: none !important;
	cursor: pointer;
	box-shadow: var(--tb-shadow-btn);
	transition:
		filter var(--tb-transition),
		transform var(--tb-transition),
		box-shadow var(--tb-transition);
	user-select: none;
}

.tb-action:hover {
	filter: brightness(1.07);
	transform: translateY(-1px);
	box-shadow: var(--tb-shadow-hover);
}

.tb-action:focus {
	outline: none;
	box-shadow: var(--tb-focus-ring);
}

.tb-action--green {
	--tb-c: var(--tb-green);
}

.tb-action--blue {
	--tb-c: var(--tb-blue);
}

.tb-action--teal {
	--tb-c: var(--tb-teal);
}

.tb-action--orange {
	--tb-c: var(--tb-orange);
}

.tb-action--dark {
	--tb-c: var(--tb-dark);
}

.tb-action--excel {
	--tb-c: var(--tb-excel);
}

.tb-action--red {
	--tb-c: var(--tb-red);
}

.tb-action--brand {
	--tb-c: var(--tb-brand);
}

.tb-action--grey {
	--tb-c: var(--tb-grey);
}

.tb-action--purple {
	--tb-c: var(--tb-purple);
}

/* rarely used (e.g. archive): faded, dark text */
.tb-action--muted {
	--tb-c: #c9ced3;
	color: var(--tb-text-soft) !important;
}

/* quiet action on a light background (e.g. logout) */
.tb-action--ghost {
	background: var(--tb-surface);
	color: var(--tb-text-soft) !important;
	border: 1px solid var(--tb-border-cool);
	box-shadow: none;
}

.tb-action--ghost:hover {
	filter: none;
	background: var(--tb-surface-alt);
}

/* logout: quiet at rest, a red hint when pointed at */
.tb-action--exit:hover,
.tb-action--exit:focus {
	color: var(--tb-red) !important;
	border-color: rgba(220, 53, 69, 0.45);
	background: rgba(220, 53, 69, 0.06);
}

.tb-action--sm {
	min-height: 44px;
	font-size: 1rem;
}

/* content-width tile: icon and label sit together, centred as a pair */
.tb-action.w-auto {
	display: inline-flex;
	justify-content: center;
	gap: 10px;
}

.tb-action.w-auto .tb-action-icon {
	width: auto;
}

.tb-action.w-auto .tb-action-end:empty {
	display: none;
}

/* tiles side by side (2 columns from 768px), e.g. the tools on a dashboard */
.tb-actions--grid {
	display: grid;
	grid-template-columns: 1fr;
}

.tb-actions--grid .tb-action {
	font-size: 1.05rem;
}

@media (min-width: 768px) {
	.tb-actions--grid {
		grid-template-columns: 1fr 1fr;
	}
	.tb-actions--grid > .tb-action--wide {
		grid-column: 1 / -1;
	}
	/* an odd last tile (or a single one) takes the whole row instead of half of it */
	.tb-actions--grid > .tb-action:last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}
}

.tb-action-icon {
	justify-self: start;
	width: 30px;
	text-align: center;
	font-size: 1.35rem;
}

.tb-action-end {
	justify-self: end;
	font-size: 1.35rem;
}

/* an icon in the end slot sits at the right edge */
.tb-action-label {
	min-width: 0;
}

.tb-action-sub {
	display: block;
	margin-top: 3px;
	font-size: 0.72rem;
	opacity: 0.95;
}

/* JS toggles .disabled (e.g. "submit" until a rating is picked) */
.tb-action.disabled,
.tb-action:disabled,
.tb-action:disabled:hover,
.tb-action.disabled:hover {
	opacity: 0.5;
	cursor: default;
	filter: none;
	transform: none;
	box-shadow: var(--tb-shadow-btn);
}

.tb-action-panel,
.tb-action-panel:hover {
	cursor: default;
	filter: none;
	transform: none;
	box-shadow: var(--tb-shadow-btn);
}

.tb-action-options {
	justify-self: end;
	display: flex;
	gap: 6px;
}

/* pills
   .tb-pill        translucent, for coloured backgrounds (inside .tb-action)
   .tb-pill--light white with coloured text, for light backgrounds */
.tb-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 7.8em;
	padding: 6px 12px;
	border: 1px solid rgba(255, 255, 255, 0.75);
	border-radius: var(--tb-radius-pill);
	background: rgba(255, 255, 255, 0.16);
	color: #fff !important;
	font-size: 0.85rem;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
	text-decoration: none !important;
	cursor: pointer;
	transition:
		background var(--tb-transition),
		color var(--tb-transition),
		transform var(--tb-transition);
}

.tb-pill:hover,
.tb-pill:focus {
	background: #fff;
	color: var(--tb-c, var(--tb-blue)) !important;
	transform: translateY(-1px);
	outline: none;
}

.tb-pill--lg {
	min-width: 0;
	padding: 10px 24px;
	font-size: 1rem;
}

.tb-pill--light {
	border-color: var(--tb-border-cool);
	background: var(--tb-surface);
	color: var(--tb-text-soft) !important;
}

.tb-pill--light:hover,
.tb-pill--light:focus {
	background: var(--tb-surface-alt);
	color: var(--tb-text) !important;
}

.tb-pill.disabled,
.tb-pill:disabled {
	opacity: 0.45;
	pointer-events: none;
}

/* JS toggles .disabled / disabled */

/* segmented filter (e.g. "To do / Done / All") */
.tb-seg {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tb-seg-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 6px 12px;
	border: 1px solid var(--tb-border-cool);
	border-radius: var(--tb-radius-pill);
	background: var(--tb-surface);
	color: var(--tb-text-soft);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	cursor: pointer;
}

.tb-seg-btn:not(.active):hover {
	background: var(--tb-surface-alt);
}

.tb-seg-btn.active {
	background: var(--tb-brand);
	border-color: var(--tb-brand);
	color: #fff;
}

.tb-seg-btn.active:hover {
	background: var(--tb-brand-dark);
	border-color: var(--tb-brand-dark);
}

.tb-seg-btn:disabled {
	opacity: 0.45;
	cursor: default;
}

/* form fields */
.tb-field .form-control,
.tb-field .input-group-text {
	border-color: var(--tb-border-cool);
}

.tb-field .form-control {
	border-radius: var(--tb-radius-sm);
	font-weight: 600;
}

.tb-field .form-control:focus {
	border-color: var(--tb-brand);
	box-shadow: var(--tb-focus-ring);
}

.tb-field .input-group > .form-control {
	border-radius: 0 var(--tb-radius-sm) var(--tb-radius-sm) 0;
}

.tb-field .input-group-text {
	background: var(--tb-surface);
	color: var(--tb-grey);
	border-radius: var(--tb-radius-sm) 0 0 var(--tb-radius-sm);
}

.tb-field .form-control[readonly].datepicker {
	background-color: var(--tb-surface) !important;
	cursor: pointer;
	text-align: center;
}

/* notices (messages, requests, results)
   <div class="alert tb-notice tb-notice--info">            .alert only where Bootstrap's data-dismiss="alert" must work
     <a href="#" class="close tb-notice-close" data-dismiss="alert">&times;</a>
     <span class="tb-notice-icon"><i class="fas fa-bullhorn"></i></span>
     <div class="tb-notice-body"><div class="tb-notice-title">Title</div><div class="tb-notice-text">...</div>
       <div class="tb-notice-actions"><span class="tb-pill tb-pill--solid tb-pill--green">OK</span></div></div>
   </div> */
.tb-notice {
	--tb-n: var(--tb-blue);
	--tb-n-soft: rgba(0, 123, 255, 0.12);
	position: relative;
	display: flex;
	align-items: center; /* short texts sit in the middle of the icon */
	gap: 12px;
	margin: 0 0 16px;
	padding: 14px 16px;
	text-align: left;
	background: linear-gradient(135deg, var(--tb-n-soft) 0%, transparent 65%), var(--tb-surface); /* tinted by type */
	border: 1px solid var(--tb-border);
	border-left: 5px solid var(--tb-n);
	border-radius: var(--tb-radius-lg);
	box-shadow: var(--tb-shadow);
	color: var(--tb-text);
}

.tb-notice--info {
	--tb-n: var(--tb-blue);
	--tb-n-soft: rgba(0, 123, 255, 0.12);
}

.tb-notice--success {
	--tb-n: var(--tb-green);
	--tb-n-soft: rgba(40, 167, 69, 0.13);
}

.tb-notice--warning {
	--tb-n: var(--tb-orange);
	--tb-n-soft: rgba(227, 154, 28, 0.16);
}

/* LangBee: brand orange; ToolBee: honey (blue is not a warning) */
.tb-notice--brand {
	--tb-n: var(--tb-brand);
	--tb-n-soft: rgba(var(--tb-brand-rgb), 0.14);
}

/* ToolBee: a tip / highlight in the brand colour */
.tb-notice--danger {
	--tb-n: var(--tb-red);
	--tb-n-soft: rgba(220, 53, 69, 0.12);
}

.tb-notice:not(:has(> .tb-notice-icon)) {
	display: block;
}

/* text-only notice (text + <b> ...) - flex would split it into columns */
.tb-notice-icon {
	flex: 0 0 38px;
	height: 38px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--tb-surface);
	box-shadow: 0 0 0 3px var(--tb-n-soft);
	color: var(--tb-n);
	font-size: 1.1rem;
}

.tb-notice-body {
	flex: 1 1 auto;
	min-width: 0;
}

.tb-notice-title {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 4px;
	padding-right: 30px;
	font-weight: 800;
}

.tb-notice-text {
	font-size: 0.95rem;
	line-height: 1.5;
	overflow-wrap: anywhere;
}

.tb-notice-text img {
	max-width: 100%;
	height: auto;
}

.tb-notice-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.tb-notice-close,
.tb-notice-close.close {
	/* beats Bootstrap's .close (float, opacity, text-shadow) */
	position: absolute;
	top: 10px;
	right: 10px;
	float: none;
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border-radius: 50%;
	background: var(--tb-surface-alt);
	color: var(--tb-muted);
	opacity: 1;
	text-shadow: none;
	font-size: 1.2rem;
	font-weight: 400;
	line-height: 1;
	text-decoration: none;
}

.tb-notice-close:hover {
	color: var(--tb-text);
	background: var(--tb-border);
	text-decoration: none;
}

/* solid pills for actions on light surfaces (approve / reject ...) */
.tb-pill--solid {
	--tb-c: var(--tb-blue);
	background: var(--tb-c);
	border-color: var(--tb-c);
	color: #fff !important;
	min-width: 0;
}

.tb-pill--solid:hover,
.tb-pill--solid:focus {
	background: var(--tb-c);
	color: #fff !important;
	filter: brightness(1.08);
}

.tb-pill--green {
	--tb-c: var(--tb-green);
}

.tb-pill--red {
	--tb-c: var(--tb-red);
}

/* list item card (a class, a file, ...)
   <a class="tb-item" href="...">                       <div class="tb-item"> when not clickable
     <img class="tb-item-flag" src="flags/en.svg">      or <span class="tb-item-icon"><i ...></i></span>
     <span class="tb-item-body"><span class="tb-item-title">Name</span><span class="tb-item-sub">...</span></span>
     <span class="tb-item-end"><i class="fas fa-chevron-right"></i></span>   or pills
   </a>
   .tb-item--muted = inactive (archive, not valid yet) */
.tb-items {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.tb-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 13px 16px;
	background: var(--tb-surface);
	border: 1px solid var(--tb-border);
	border-radius: var(--tb-radius-lg);
	box-shadow: var(--tb-shadow);
	color: var(--tb-text) !important;
	text-align: left;
	text-decoration: none !important;
	transition:
		box-shadow var(--tb-transition),
		transform var(--tb-transition);
}

a.tb-item:hover {
	box-shadow: var(--tb-shadow-hover);
	transform: translateY(-1px);
}

.tb-item-flag {
	flex: 0 0 auto;
	width: 30px;
	height: auto;
	border-radius: 3px;
	box-shadow: var(--tb-shadow-btn);
}

.tb-item-icon {
	flex: 0 0 30px;
	text-align: center;
	font-size: 1.3rem;
	color: var(--tb-muted);
}

.tb-item-body {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.tb-item-title {
	font-weight: 700;
	font-size: 1.05em;
	overflow-wrap: break-word;
}

.tb-item-sub {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	font-size: 0.8rem;
	color: var(--tb-muted);
}

.tb-item-end {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--tb-muted);
	font-size: 1.1rem;
}

a.tb-item:hover .tb-item-end {
	color: var(--tb-brand-text);
}

.tb-item--muted {
	background: var(--tb-surface-alt);
	box-shadow: none;
}

.tb-item--muted .tb-item-flag {
	filter: grayscale(0.6);
	opacity: 0.8;
}

/* small info chip (dates, counts) - inside .tb-item-sub, cards ... */
.tb-chip {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 2px 9px;
	border-radius: var(--tb-radius-pill);
	background: var(--tb-surface-alt);
	border: 1px solid var(--tb-border);
	font-size: 0.78rem;
	color: var(--tb-text-soft);
	white-space: nowrap;
}

/* table (inside a .tb-card)
   <table class="table tb-table"> - works with Bootstrap .table / .table-striped and DataTables */
.tb-table {
	width: 100%;
	margin: 0;
	color: var(--tb-text);
	background: transparent;
	border-collapse: separate;
	border-spacing: 0;
}

.tb-table thead,
.tb-table thead tr {
	background: transparent !important;
}

.tb-table tr {
	background-color: transparent;
}

.tb-table thead th,
.tb-table > thead > tr > th {
	padding: 6px 8px 8px;
	border-top: 0;
	border-bottom: 1px solid var(--tb-border) !important;
	background: transparent;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--tb-muted);
	white-space: nowrap;
	vertical-align: bottom;
}

.tb-table td {
	padding: 10px 8px;
	border-top: 1px solid var(--tb-border);
	vertical-align: middle;
	background: transparent;
}

.tb-table tbody tr:first-child td {
	border-top: 0;
}

.tb-table.table-striped tbody tr:nth-of-type(odd),
.tb-table tbody tr.odd,
.tb-table tbody tr.even {
	background: transparent;
}

.tb-table tbody tr:hover td {
	background: var(--tb-surface-alt);
}

/* Bootstrap 5 tables: no white cells on a card (the table itself is transparent), no line under every cell (only between the rows) */
.tb-table {
	--bs-table-bg: transparent;
	--bs-table-color: var(--tb-text);
	--bs-table-hover-bg: var(--tb-surface-alt);
}
.tb-table > :not(caption) > * > * {
	border-bottom-width: 0;
	box-shadow: none;
}

/* tile menu
   <div class="tb-menu-title">Section</div>
   <div class="tb-menu">
     <a class="tb-menu-item tb-menu-item--green" href="...">
        <span class="tb-menu-tag"><i class="fa-solid fa-star"></i>AI</span>      optional corner tag
        <i class="fas fa-boxes-stacked"></i>
        <span class="tb-menu-label">Packages <span class="tb-menu-badge">12</span></span>
     </a>
   Pastel tile = the action colour mixed into the surface, so dark mode works by itself. */
.tb-menu-title {
	margin: 14px 0 6px 2px;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--tb-muted);
	text-align: left;
}

.tb-menu-title:first-child {
	margin-top: 0;
}

/* columns follow the width of the box (not the window): wrap title + grid in .tb-menu-box */
.tb-menu-box {
	container-type: inline-size;
}

.tb-menu {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 6px;
}

@container (min-width: 380px) {
	.tb-menu {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@container (min-width: 600px) {
	.tb-menu {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.tb-menu-item {
	--tb-c: var(--tb-grey);
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-height: 54px;
	padding: 6px 8px;
	border: 1px solid color-mix(in srgb, var(--tb-c) 28%, transparent);
	border-radius: var(--tb-radius);
	background: color-mix(in srgb, var(--tb-c) 11%, var(--tb-surface));
	color: var(--tb-text) !important;
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.15;
	text-align: center;
	text-decoration: none !important;
	cursor: pointer;
	transition:
		transform var(--tb-transition),
		box-shadow var(--tb-transition),
		background var(--tb-transition);
}

.tb-menu-item:hover,
.tb-menu-item:focus {
	transform: translateY(-1px);
	box-shadow: var(--tb-shadow-btn);
	background: color-mix(in srgb, var(--tb-c) 17%, var(--tb-surface));
	outline: none;
}

.tb-menu-item > i {
	flex: 0 0 auto;
	font-size: 1.15rem;
	color: var(--tb-c);
}

.tb-menu-label {
	min-width: 0;
	overflow-wrap: break-word;
}

.tb-menu-badge {
	display: inline-block;
	min-width: 18px;
	padding: 0 5px;
	border-radius: var(--tb-radius-pill);
	background: color-mix(in srgb, var(--tb-c) 22%, transparent);
	font-size: 0.7rem;
	font-weight: 700;
	line-height: 17px;
	white-space: nowrap;
	vertical-align: 1px;
}

.tb-menu-tag {
	position: absolute;
	top: -1px;
	left: -1px;
	padding: 1px 6px;
	border-radius: var(--tb-radius) 0 var(--tb-radius) 0;
	background: var(--tb-green);
	color: #fff;
	font-size: 0.62rem;
	font-weight: 700;
	line-height: 14px;
	letter-spacing: 0.05em;
	pointer-events: none;
}

.tb-menu-tag i {
	font-size: 0.55rem;
	margin-right: 3px;
	vertical-align: 1px;
}

.tb-menu-item.disabled {
	opacity: 0.45;
	pointer-events: none;
}

.tb-menu-item--green {
	--tb-c: var(--tb-green);
}

.tb-menu-item--blue {
	--tb-c: var(--tb-blue);
}

.tb-menu-item--teal {
	--tb-c: var(--tb-teal);
}

.tb-menu-item--orange {
	--tb-c: var(--tb-orange);
}

.tb-menu-item--red {
	--tb-c: var(--tb-red);
}

.tb-menu-item--brand {
	--tb-c: var(--tb-brand);
}

.tb-menu-item--dark {
	--tb-c: var(--tb-dark);
}

.tb-menu-item--grey {
	--tb-c: var(--tb-grey);
}

.tb-menu-item--purple {
	--tb-c: var(--tb-purple);
}

@media (max-width: 575px) {
	.tb-menu-item {
		min-height: 50px;
		font-size: 0.82rem;
		gap: 5px;
		padding: 5px 6px;
	}
	.tb-menu-item > i {
		font-size: 1.05rem;
	}
}

/* hero tile = the main action of a screen + related sub-links
   <div class="tb-hero tb-hero--green">
     <a class="tb-hero-main" href="..."><i class="fas fa-boxes-stacked"></i><span class="tb-hero-label">Packages <span class="tb-menu-badge">4</span>
        <span class="tb-hero-sub">optional subtitle</span></span><i class="fas fa-chevron-right tb-hero-go"></i></a>
     <div class="tb-hero-links"><a class="tb-pill tb-pill--light" href="...">...</a> ...</div>
   </div> */
.tb-hero {
	--tb-c: var(--tb-green);
	padding: 12px 14px;
	border: 1px solid color-mix(in srgb, var(--tb-c) 30%, transparent);
	border-radius: var(--tb-radius-lg);
	background: color-mix(in srgb, var(--tb-c) 10%, var(--tb-surface));
	text-align: left;
}

.tb-hero--green {
	--tb-c: var(--tb-green);
}

.tb-hero-main {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--tb-text) !important;
	text-decoration: none !important;
}

.tb-hero-main > i:first-child {
	flex: 0 0 46px;
	height: 46px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	background: var(--tb-c);
	color: #fff;
	font-size: 1.35rem;
	box-shadow: var(--tb-shadow-btn);
	transition: transform var(--tb-transition);
}

.tb-hero-main:hover > i:first-child {
	transform: translateY(-1px) scale(1.03);
}

.tb-hero-label {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 1.2rem;
	font-weight: 800;
	line-height: 1.2;
}

.tb-hero-sub {
	display: block;
	margin-top: 2px;
	font-size: 0.78rem;
	font-weight: 500;
	color: var(--tb-muted);
}

.tb-hero-go {
	flex: 0 0 auto;
	color: var(--tb-c);
	font-size: 1.1rem;
	transition: transform var(--tb-transition);
}

.tb-hero-main:hover .tb-hero-go {
	transform: translateX(3px);
}

.tb-hero-links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 10px;
	padding-left: 58px;
}

.tb-hero-links .tb-pill {
	min-width: 0;
	padding: 5px 11px;
	font-size: 0.8rem;
}

.tb-hero-links .tb-pill > i {
	color: var(--tb-c);
}

.tb-hero-links .tb-pill.disabled {
	opacity: 0.45;
	pointer-events: none;
}

@media (max-width: 575px) {
	.tb-hero-links {
		padding-left: 0;
	}
}

/* a quiet row of small extra links ("Bonus: ...") */
.tb-extras {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin-top: 10px;
	text-align: left;
}

.tb-extras .tb-menu-title {
	flex-basis: 100%;
	margin: 0 0 0 2px;
}

/* section title on its own line, like the other sections */
.tb-extras .tb-pill {
	min-width: 0;
	padding: 5px 11px;
	font-size: 0.8rem;
}

.tb-bar {
	display: block;
	height: 6px;
	border-radius: var(--tb-radius-pill);
	background: var(--tb-surface-alt);
	border: 1px solid var(--tb-border);
	overflow: hidden;
}

.tb-bar-fill {
	display: block;
	height: 100%;
	border-radius: var(--tb-radius-pill);
	background: var(--tb-green);
}

.tb-bar-fill--low {
	background: var(--tb-orange);
}

/* in progress (LangBee: brand orange) */
.tb-round-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--tb-surface);
	border: 1px solid var(--tb-border-cool);
	color: var(--tb-grey) !important;
	font-size: 0.9rem;
	text-decoration: none !important;
	transition:
		transform var(--tb-transition),
		color var(--tb-transition),
		border-color var(--tb-transition);
}

.tb-round-btn i {
	color: inherit !important;
}

.tb-round-btn:hover {
	transform: translateY(-1px);
	color: var(--tb-blue) !important;
	border-color: var(--tb-blue);
}

.tb-round-btn--green {
	color: var(--tb-green) !important;
}

.tb-round-btn--green:hover {
	color: var(--tb-green) !important;
	border-color: var(--tb-green);
}

/* "show the detail": light blue with a magnifier */
.tb-round-btn--detail {
	background: #e8f1fd;
	border-color: #cfe0f8;
	color: #1d6fd6 !important;
	font-size: 0.8rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.tb-round-btn--detail:hover,
.tb-round-btn--detail:focus {
	background: var(--tb-blue);
	border-color: var(--tb-blue);
	color: #fff !important;
}

/* badges / counters */
.tb-badge {
	display: inline-flex;
	align-items: center;
	padding: 1px 7px;
	border-radius: var(--tb-radius-pill);
	background: rgba(0, 0, 0, 0.08);
	font-size: 0.75rem;
	font-weight: 700;
}

/* solid status label: green = active, grey = anything else */
.tb-badge--status {
	padding: 4px 12px;
	background: var(--tb-grey);
	color: #fff;
}

.tb-badge--status.tb-badge--green {
	background: var(--tb-green);
}

.tb-dash {
	padding-top: 12px;
}

.tb-dash-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 6px;
}

.tb-dash-top .tb-pill {
	min-width: 0;
}

.tb-dash-inbox {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--tb-surface);
	border: 1px solid var(--tb-border-cool);
	color: var(--tb-text-soft);
	font-size: 1.15rem;
	box-shadow: var(--tb-shadow-btn);
	transition: transform var(--tb-transition);
}

.tb-dash-inbox:hover {
	color: var(--tb-blue);
	transform: translateY(-1px);
	text-decoration: none;
}

.tb-dash-logo {
	display: block;
	margin: 0 auto 14px;
	max-width: 100%;
	cursor: pointer;
}

.tb-dash-section {
	margin: 22px 0;
}

.tb-dash-section > .tb-heading {
	justify-content: flex-start;
}

.tb-dash-section > .tb-heading i {
	color: var(--tb-brand-text);
}

.tb-dash-account {
	margin-top: 22px;
}

.tb-dash-footer {
	padding-top: 25px;
	color: var(--tb-muted);
}

/* responsive */
@media (max-width: 767px) {
	.tb-card {
		padding: 14px 12px;
	}
	/* a row with a choice: the pills go under the label, sharing the width */
	.tb-action-panel {
		grid-template-columns: 30px 1fr 30px;
		row-gap: 8px;
	}
	.tb-action-panel .tb-action-options {
		grid-column: 1 / -1;
		justify-self: stretch;
	}
	.tb-action-panel .tb-pill {
		flex: 1 1 0;
		min-width: 0;
	}
}

@media (max-width: 575px) {
	.tb-action {
		grid-template-columns: 24px 1fr 24px;
		font-size: 1rem;
		padding: 8px 12px;
		column-gap: 8px;
	}
	.tb-action-icon {
		width: 24px;
		font-size: 1.15rem;
	}
	.tb-action-end {
		font-size: 1.15rem;
	}
	.tb-action-sub {
		font-size: 0.7rem;
	}
}

/* honeycomb icons (progress steps, legends) - inline SVG, see "Honeycomb icons" in the doc */
.tb-hex-row {
	display: inline-flex;
	gap: 2px;
	vertical-align: middle;
}

.tb-hex {
	display: inline-block;
	vertical-align: middle;
}

.tb-chip .tb-hex {
	width: 14px;
	height: 15px;
}

/* DataTables paging as honeycombs, centred - the hexagon is a clip-path, so the button background is the
   outline and ::before the fill (previous / next are chevron icons, see the pages' language.paginate) */
.dataTables_wrapper .dataTables_paginate {
	float: none;
	text-align: center;
	padding-top: 10px;
}

.dataTables_wrapper .dataTables_paginate > span {
	display: inline-flex;
	gap: 3px;
	vertical-align: middle;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
	position: relative;
	isolation: isolate;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 46px;
	min-width: 0;
	margin: 0 1px;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: var(--tb-border-cool) !important;
	color: var(--tb-text) !important;
	box-shadow: none !important;
	font-weight: 700;
	vertical-align: middle;
	clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.dataTables_wrapper .dataTables_paginate .paginate_button::before {
	content: '';
	position: absolute;
	inset: 1.5px;
	z-index: -1;
	background: var(--tb-surface);
	clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.dataTables_wrapper .dataTables_paginate .paginate_button:not(.disabled):not(.current):hover {
	background: var(--tb-brand) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
	background: var(--tb-brand) !important;
	color: #fff !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current::before {
	background: var(--tb-brand);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
	color: var(--tb-muted) !important;
	opacity: 0.55;
	cursor: default;
}

.dataTables_wrapper .dataTables_paginate .ellipsis {
	padding: 0 4px;
}

@media (max-width: 575px) {
	.dataTables_wrapper .dataTables_paginate .paginate_button {
		width: 34px;
		height: 39px;
		font-size: 14px;
	}
}

/* disabled hero tile */
.tb-hero-main:where(div) {
	cursor: default;
}

/* more colours of the shared components */
.tb-hero--brand {
	--tb-c: var(--tb-brand);
}

.tb-hero--blue {
	--tb-c: var(--tb-blue);
}

.tb-hero--teal {
	--tb-c: var(--tb-teal);
}

.tb-chip--green {
	background: color-mix(in srgb, var(--tb-green) 12%, var(--tb-surface));
	border-color: color-mix(in srgb, var(--tb-green) 35%, transparent);
	color: var(--tb-text);
}

.tb-chip--green i {
	color: var(--tb-green);
}

.tb-chip--red {
	background: color-mix(in srgb, var(--tb-red) 10%, var(--tb-surface));
	border-color: color-mix(in srgb, var(--tb-red) 35%, transparent);
	color: var(--tb-red);
	font-weight: 700;
}

.tb-chip--brand {
	background: color-mix(in srgb, var(--tb-brand) 12%, var(--tb-surface));
	border-color: color-mix(in srgb, var(--tb-brand) 40%, transparent);
	color: var(--tb-text);
}

.tb-chip--brand i {
	color: var(--tb-brand-text);
}

.tb-item .tb-bar {
	width: 100%;
}

.tb-round-btn--danger:hover,
.tb-round-btn--danger:focus {
	color: var(--tb-red) !important;
	border-color: var(--tb-red);
}

/* more colours of ToolBee */
.tb-hero--slate {
	--tb-c: var(--tb-slate);
}

.tb-hero--disabled {
	opacity: 0.6;
}

.tb-action--slate,
.tb-menu-item--slate {
	--tb-c: var(--tb-slate);
}

.tb-menu-item--excel {
	--tb-c: var(--tb-excel);
}

/* =====================================================================================
   Bootstrap 5
   ===================================================================================== */

/* Bootstrap primary = the brand */

/* the close button of a notice (Bootstrap 5 .btn-close = an svg background, .tb-notice-close would paint over it) */
.tb-notice-close.btn-close,
.tb-notice-close.btn-close:hover {
	padding: 0;
	opacity: 0.65;
	box-shadow: none;
	background: var(--tb-surface-alt)
		url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%238A8272'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e")
		center / 10px auto no-repeat;
}

.tb-notice-close.btn-close:hover {
	background-color: var(--tb-border);
	opacity: 1;
}

.tb-notice-close.btn-close:focus {
	box-shadow: var(--tb-focus-ring);
}

/* selects like the inputs of .tb-field */
.tb-field .form-select {
	border-color: var(--tb-border-cool);
	border-radius: var(--tb-radius-sm);
	font-weight: 600;
}

.tb-field .form-select:focus {
	border-color: var(--tb-brand);
	box-shadow: var(--tb-focus-ring);
}

/* toggles: <div class="form-check form-switch"><input class="form-check-input" role="switch">
   put .tb-toggles on any wrapper: off = quiet grey (not red), on = green, white round knob */
.tb-toggles .form-switch {
	padding-left: 0;
	min-height: 0;
	margin: 0;
}

.tb-toggles .form-switch .form-check-input {
	width: 48px;
	height: 28px;
	margin: 0;
	float: none;
	cursor: pointer;
	border: 0;
	border-radius: var(--tb-radius-pill);
	background-color: #c9ced3;
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3.1' fill='%23fff'/%3e%3c/svg%3e");
	background-position: left center;
	background-size: auto 100%;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12);
	transition:
		background-position var(--tb-transition),
		background-color var(--tb-transition);
}

.tb-toggles .form-switch .form-check-input:checked {
	background-color: var(--tb-green);
	background-position: right center;
}

.tb-toggles .form-switch .form-check-input:focus {
	box-shadow: var(--tb-focus-ring);
}

/* tabs as segmented buttons
   <ul class="nav nav-tabs tb-tabs"><li class="nav-item"><button class="nav-link active" data-bs-toggle="tab" data-bs-target="#x"> */
.tb-tabs.nav-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 14px;
	border: 0;
}

.tb-tabs.nav-tabs > .nav-item {
	flex: 1 1 auto;
	display: flex;
}

.tb-tabs.nav-tabs .nav-link {
	flex: 1 1 auto;
	width: 100%;
	min-height: 42px;
	margin: 0;
	padding: 7px 12px;
	border: 1px solid var(--tb-border-cool) !important;
	border-radius: var(--tb-radius-pill) !important;
	background: var(--tb-surface) !important;
	color: var(--tb-text-soft) !important;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none !important;
}

.tb-tabs.nav-tabs .nav-link:hover {
	background: var(--tb-surface-alt) !important;
}

.tb-tabs.nav-tabs .nav-link.active {
	background: var(--tb-brand) !important;
	border-color: var(--tb-brand) !important;
	color: #fff !important;
}

.tb-tabs.nav-tabs .nav-link:focus-visible {
	box-shadow: var(--tb-focus-ring);
}

@media (max-width: 575px) {
	.tb-tabs.nav-tabs {
		flex-direction: column;
	}
}

/* back button: <a class="tb-back" href="../"><i class="fa-solid fa-chevron-left"></i> Back</a> */
.tb-back {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 9px 22px;
	border: 1px solid var(--tb-brand);
	border-radius: var(--tb-radius);
	background: var(--tb-brand-soft);
	color: var(--tb-brand-ink) !important;
	font-size: 16px;
	font-weight: 700;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
	text-decoration: none !important;
	cursor: pointer;
	transition:
		background var(--tb-transition),
		box-shadow var(--tb-transition);
}

.tb-back:hover,
.tb-back:focus {
	background: var(--tb-brand-soft-2);
	border-color: var(--tb-brand-dark);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
	outline: none;
}

.tb-back:focus-visible {
	box-shadow: var(--tb-focus-ring);
}

/* settings rows (.tb-card > .tb-set-list > .tb-set-row) */
.tb-set-list {
	margin-top: 14px;
	border-top: 1px solid var(--tb-border);
}

.tb-set-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 2px;
	border-bottom: 1px solid var(--tb-border);
	text-align: left;
}

.tb-set-list > .tb-set-row:last-child {
	border-bottom: 0;
}

.tb-set-label {
	margin: 0;
	font-weight: 600;
	color: var(--tb-text);
}

.tb-set-label i {
	width: 22px;
	margin-right: 6px;
	text-align: center;
	color: var(--tb-muted);
}

.tb-set-hint {
	color: var(--tb-muted);
	font-size: 0.82rem;
}

/* steps of a wizard (ol.tb-steps > li.tb-steps-item[--done|--current]) */
.tb-steps {
	display: flex;
	justify-content: space-between;
	margin: 6px 0 16px;
	padding: 0;
	list-style: none;
}

.tb-steps-item {
	position: relative;
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--tb-muted);
}

.tb-steps-item:not(:first-child)::before {
	/* the line from the previous step */
	content: '';
	position: absolute;
	top: 14px;
	right: 50%;
	width: 100%;
	height: 2px;
	background: var(--tb-border);
	z-index: 0;
}

.tb-steps-item--done:not(:first-child)::before,
.tb-steps-item--current:not(:first-child)::before {
	background: var(--tb-green);
}

.tb-steps-dot {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: 2px solid var(--tb-border);
	background: var(--tb-surface);
	font-size: 0.85rem;
}

.tb-steps-item--done .tb-steps-dot {
	border-color: var(--tb-green);
	background: var(--tb-green);
	color: #fff;
}

.tb-steps-item--current {
	color: var(--tb-text);
}

.tb-steps-item--current .tb-steps-dot {
	border-color: var(--tb-brand);
	background: var(--tb-brand);
	color: #fff;
	box-shadow: 0 0 0 4px rgba(var(--tb-brand-rgb), 0.2);
}

.tb-steps-label {
	line-height: 1.2;
	text-align: center;
}

/* "play" screens of the tools (.tb-play on the main container) */
.tb-play .btn {
	border-radius: var(--tb-radius-lg);
	box-shadow: var(--tb-shadow-btn);
	font-weight: 600;
	transition:
		transform var(--tb-transition),
		box-shadow var(--tb-transition),
		filter var(--tb-transition);
}

.tb-play .btn-lg {
	min-height: 54px;
	padding: 12px 16px;
	font-size: 1.2rem;
	line-height: 1.3;
}

.tb-play .btn:not([disabled]):not(.disabled):hover {
	transform: translateY(-1px);
	box-shadow: var(--tb-shadow-hover);
}

.tb-play .btn:focus-visible {
	box-shadow: var(--tb-shadow-btn), var(--tb-focus-ring);
}

.tb-play-main {
	min-height: 64px;
	font-size: 1.4rem;
	font-weight: 700;
	letter-spacing: 0.01em;
}

/* the question / the result: the hero of the screen */
.tb-play-task {
	margin: 4px 0 14px;
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--tb-text);
}

.tb-play-task i {
	color: var(--tb-brand-text);
	margin-right: 4px;
}

.tb-play input.form-control:not([type='checkbox']) {
	height: 56px;
	border: 2px solid var(--tb-border-cool);
	border-radius: var(--tb-radius-lg);
	background-color: var(--tb-surface);
	color: var(--tb-text);
	font-size: 1.35rem;
	font-weight: 600;
	text-align: center;
	box-shadow: none;
}

.tb-play input.form-control:focus {
	border-color: var(--tb-brand);
	box-shadow: var(--tb-focus-ring);
}

.tb-play .progress {
	height: 16px;
	border-radius: var(--tb-radius-pill);
	background: var(--tb-surface-alt);
	border: 1px solid var(--tb-border);
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
	font-weight: 700;
}

.tb-play .progress-bar {
	border-radius: var(--tb-radius-pill);
	background-color: var(--tb-green);
}

.tb-play .alert {
	border: 1px solid var(--tb-border);
	border-radius: var(--tb-radius-lg);
	box-shadow: var(--tb-shadow);
}

.tb-play img {
	border-radius: var(--tb-radius-lg);
}

.tb-play-timer {
	font-size: clamp(4rem, 18vw, 12rem);
	font-weight: 800;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
	.tb-action,
	.tb-item,
	.tb-menu-item,
	.tb-pill,
	.tb-hero-main > i:first-child,
	.tb-hero-go,
	.tb-play .btn {
		transition: none;
	}
	.tb-action:hover,
	a.tb-item:hover,
	.tb-menu-item:hover,
	.tb-pill:hover,
	.tb-play .btn:hover {
		transform: none;
	}
}

/* Bootstrap modals in the new look (opt out with .tb-modal-keep) */
.modal:where(:not(.tb-modal-keep)) .modal-content {
	border: 1px solid var(--tb-border);
	border-radius: var(--tb-radius-lg);
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
	color: var(--tb-text);
}
.modal:where(:not(.tb-modal-keep)) .modal-header {
	align-items: center;
	border-bottom: 1px solid var(--tb-border);
}
.modal:where(:not(.tb-modal-keep)) .modal-title {
	font-weight: 700;
}
.modal:where(:not(.tb-modal-keep)) .modal-title > i:first-child {
	margin-right: 6px;
	color: var(--tb-brand-text);
}
.modal:where(:not(.tb-modal-keep)) .modal-header .btn-close {
	width: 32px;
	height: 32px;
	margin: -4px -6px -4px auto;
	padding: 0;
	border-radius: 50%;
	background-size: 12px;
	opacity: 0.55;
	transition:
		background-color var(--tb-transition),
		opacity var(--tb-transition);
}
.modal:where(:not(.tb-modal-keep)) .modal-header .btn-close:hover {
	opacity: 1;
	background-color: var(--tb-surface-alt);
}
.modal:where(:not(.tb-modal-keep)) .modal-header .btn-close:focus {
	box-shadow: var(--tb-focus-ring);
}
.modal:where(:not(.tb-modal-keep)) .modal-footer {
	gap: 8px;
	border-top: 1px solid var(--tb-border);
}
.modal:where(:not(.tb-modal-keep)) .modal-footer > * {
	margin: 0;
}

/* buttons: pills (full-width ones keep the rounded rectangle), a grey / light "close" = light pill */
.modal:where(:not(.tb-modal-keep)) .btn {
	border-radius: var(--tb-radius-pill);
	font-weight: 700;
	box-shadow: none;
}
.modal:where(:not(.tb-modal-keep)) .btn:where(:not(.btn-lg)) {
	padding: 7px 16px;
	font-size: 0.9rem;
}
.modal:where(:not(.tb-modal-keep)) .btn.w-100 {
	border-radius: var(--tb-radius);
	padding: 10px 16px;
	font-size: 1rem;
}
.modal:where(:not(.tb-modal-keep)) .btn.btn-lg {
	border-radius: var(--tb-radius);
	font-size: 1.25rem;
}
.modal:where(:not(.tb-modal-keep)) .btn.btn-sm {
	padding: 4px 11px;
	font-size: 0.8rem;
}
.modal:where(:not(.tb-modal-keep))
	:is(.btn-secondary, .btn-light, .btn-warning, .tb-pill--light)[data-bs-dismiss='modal'] {
	min-width: 0;
	padding: 7px 16px;
	font-size: 0.9rem;
	border-radius: var(--tb-radius-pill);
	background: var(--tb-surface);
	border: 1px solid var(--tb-border-cool);
	color: var(--tb-text-soft);
	filter: none;
}
.modal:where(:not(.tb-modal-keep))
	:is(.btn-secondary, .btn-light, .btn-warning, .tb-pill--light)[data-bs-dismiss='modal']:hover,
.modal:where(:not(.tb-modal-keep))
	:is(.btn-secondary, .btn-light, .btn-warning, .tb-pill--light)[data-bs-dismiss='modal']:focus {
	background: var(--tb-surface-alt);
	color: var(--tb-text);
}
.modal:where(:not(.tb-modal-keep)) .btn:focus-visible {
	box-shadow: var(--tb-focus-ring);
}

/* alerts inside a modal = .tb-notice look */
.modal:where(:not(.tb-modal-keep)) .alert {
	--tb-n: var(--tb-blue);
	--tb-n-soft: rgba(0, 123, 255, 0.12);
	border: 1px solid var(--tb-border);
	border-left: 5px solid var(--tb-n);
	border-radius: var(--tb-radius-lg);
	background: linear-gradient(135deg, var(--tb-n-soft) 0%, transparent 65%), var(--tb-surface);
	color: var(--tb-text);
	text-align: left;
}
.modal:where(:not(.tb-modal-keep)) .alert-success {
	--tb-n: var(--tb-green);
	--tb-n-soft: rgba(40, 167, 69, 0.13);
}
.modal:where(:not(.tb-modal-keep)) .alert-warning {
	--tb-n: var(--tb-orange);
	--tb-n-soft: rgba(227, 154, 28, 0.16);
}
.modal:where(:not(.tb-modal-keep)) .alert-danger {
	--tb-n: var(--tb-red);
	--tb-n-soft: rgba(220, 53, 69, 0.12);
}

/* tables + inputs inside a modal */
.modal:where(:not(.tb-modal-keep)) .table {
	color: inherit;
	--bs-table-bg: transparent;
}
.modal:where(:not(.tb-modal-keep)) .table th,
.modal:where(:not(.tb-modal-keep)) .table td {
	border-color: var(--tb-border);
	vertical-align: middle;
}
.modal:where(:not(.tb-modal-keep)) .table:where(:not(.tb-table)) thead th {
	color: var(--tb-muted);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}
.modal:where(:not(.tb-modal-keep)) .form-control,
.modal:where(:not(.tb-modal-keep)) .form-select {
	border-color: var(--tb-border-cool);
	border-radius: var(--tb-radius-sm);
}
.modal:where(:not(.tb-modal-keep)) .form-control:focus,
.modal:where(:not(.tb-modal-keep)) .form-select:focus {
	border-color: var(--tb-brand);
	box-shadow: var(--tb-focus-ring);
}

/* narrow centred column for sign-up style pages: logo on top, then a .tb-card */
.tb-auth {
	max-width: 460px;
	margin: 0 auto;
	padding: 28px 0 8px;
}

.tb-auth-logo {
	display: block;
	width: 180px;
	max-width: 70%;
	margin: 0 auto 18px;
}

/* icon-only pill (table row actions) */
.tb-pill--icon {
	min-width: 0;
	padding: 6px 10px;
}

.tb-badge--status.tb-badge--red {
	background: var(--tb-red);
}

.tb-badge--status.tb-badge--orange {
	background: var(--tb-orange);
}

/* admin index: one tile per row */
.tb-menu--list {
	grid-template-columns: 1fr;
}

.tb-menu--list .tb-menu-item {
	border-color: var(--tb-border);
	background: var(--tb-surface);
}
