/*
 * The TesseraLMS clients dashboard.
 *
 * A tessera is one tile of a mosaic, and here each client's site is a tile.
 * In place, a tile is teal. One that needs a look turns amber and sits askew,
 * as the one in the logo does. Corners are a tile's corners throughout.
 *
 *   1  colours and type      5  every client          9  what happened
 *   2  the frame             6  one client           10  reports, and print
 *   3  pieces used all over  7  forms                11  the sign-in page
 *   4  the mosaic            8  charts               12  small screens
 */

/* --- 1  Colours and type ----------------------------------------------------- */

@font-face {
	font-family: "Plus Jakarta Sans";
	src: url("fonts/plus-jakarta-sans-latin.woff2") format("woff2");
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
}

:root {
	color-scheme: light;
	--teal: #0D7C78;
	--navy: #0B1F2A;
	--amber: #F4A21C;
	--tint: #D6EDEB;
	--teal-light: #5CC8C2;

	--bg: #F2F6F6;
	--surface: #FFFFFF;
	--surface-2: #F4F8F8;
	--field: #F7FAFA;
	--ink: #0B1F2A;
	--ink-2: #3E535D;
	--ink-3: #687C85;
	--line: #DAE5E5;
	--line-2: #E8EFEF;

	--accent: #0D7C78;
	--accent-ink: #0A6360;
	--accent-soft: #E2F3F1;
	--btn: #0D7C78;
	--btn-over: #0A6360;
	--btn-ink: #FFFFFF;

	--warn: #9A5B00;
	--warn-soft: #FDF0D6;
	--bad: #B42F23;
	--bad-soft: #FBE6E3;
	--off: #55666F;
	--off-soft: #E6ECEE;

	--shadow: 0 1px 2px rgba(11, 31, 42, .05), 0 10px 26px -14px rgba(11, 31, 42, .16);
	--shadow-lift: 0 2px 4px rgba(11, 31, 42, .06), 0 22px 44px -18px rgba(11, 31, 42, .28);
	--radius: 18px;
	--font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--tiles: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Crect x='4' y='4' width='36' height='36' rx='9' fill='%23fff' fill-opacity='.035'/%3E%3C/svg%3E");
}

html[data-theme="dark"] {
	color-scheme: dark;
	--bg: #06141C;
	--surface: #0D222E;
	--surface-2: #112A37;
	--field: #0A1C26;
	--ink: #EAF3F2;
	--ink-2: #AABDC3;
	--ink-3: #7F959D;
	--line: #1D3846;
	--line-2: #172F3C;

	--accent: #5CC8C2;
	--accent-ink: #7BD6D0;
	--accent-soft: rgba(92, 200, 194, .13);
	--btn: #5CC8C2;
	--btn-over: #7BD6D0;
	--btn-ink: #06141C;

	--warn: #F7BA57;
	--warn-soft: rgba(244, 162, 28, .15);
	--bad: #FF8E80;
	--bad-soft: rgba(216, 72, 59, .2);
	--off: #9FB2B9;
	--off-soft: rgba(159, 178, 185, .14);

	--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 30px -16px rgba(0, 0, 0, .7);
	--shadow-lift: 0 2px 4px rgba(0, 0, 0, .3), 0 24px 48px -18px rgba(0, 0, 0, .8);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
	margin: 0;
	font: 500 15px/1.55 var(--font);
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { letter-spacing: -.015em; line-height: 1.2; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
small { font-size: 12.5px; }
b, strong { font-weight: 700; }

:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.tl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.tl-ico { flex: none; }
.tl-muted { color: var(--ink-3); font-size: 13.5px; }
.tl-on-dark { display: none !important; }
html[data-theme="dark"] .tl-on-dark { display: inline-flex !important; }
html[data-theme="dark"] .tl-on-light { display: none !important; }
img.tl-on-light, img.tl-on-dark { height: auto; }

/* --- 2  The frame ------------------------------------------------------------ */

.tl-skip { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 14px; border-radius: 10px; background: var(--btn); color: var(--btn-ink); font-weight: 700; }
.tl-skip:focus { top: 12px; }

.tl-top {
	position: sticky;
	top: 0;
	z-index: 20;
	background: color-mix(in srgb, var(--bg) 82%, transparent);
	-webkit-backdrop-filter: saturate(1.4) blur(14px);
	backdrop-filter: saturate(1.4) blur(14px);
	border-bottom: 1px solid var(--line);
}
.tl-top-in { display: flex; align-items: center; gap: 28px; max-width: 1280px; margin: 0 auto; padding: 0 24px; height: 66px; }
.tl-brand { display: inline-flex; flex: none; }
.tl-brand img { width: 158px; }

.tl-nav { display: flex; gap: 4px; }
.tl-nav a {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border-radius: 11px;
	color: var(--ink-2);
	font-weight: 600;
	text-decoration: none;
	transition: background .15s, color .15s;
}
.tl-nav a:hover { background: var(--surface); color: var(--ink); }
.tl-nav a[aria-current] { background: var(--surface); color: var(--accent-ink); box-shadow: var(--shadow); }
/* The amber tile marks where you are. */
.tl-nav a[aria-current]::after { content: ""; position: absolute; top: -3px; right: -3px; width: 9px; height: 9px; border-radius: 3px; background: var(--amber); transform: rotate(14deg); }

.tl-top-end { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.tl-round, .tl-bell {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--surface);
	color: var(--ink-2);
	cursor: pointer;
	text-decoration: none;
	transition: border-color .15s, color .15s, transform .15s;
}
.tl-round:hover, .tl-bell:hover { border-color: var(--accent); color: var(--accent-ink); }
.tl-round:active { transform: scale(.94); }
.tl-round span { display: inline-flex; }
.tl-bell { color: var(--warn); border-color: transparent; background: var(--warn-soft); }
.tl-bell b { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 7px; background: var(--amber); color: var(--navy); font-size: 11.5px; line-height: 20px; text-align: center; transform: rotate(8deg); }

.tl-me { position: relative; }
.tl-me summary { list-style: none; cursor: pointer; border-radius: 12px; }
.tl-me summary::-webkit-details-marker { display: none; }
.tl-menu {
	position: absolute;
	right: 0;
	top: calc(100% + 10px);
	width: 250px;
	padding: 8px;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: var(--surface);
	box-shadow: var(--shadow-lift);
	animation: tl-drop .18s ease-out;
}
.tl-menu-who { padding: 8px 10px 10px; margin-bottom: 6px; border-bottom: 1px solid var(--line-2); color: var(--ink-3); font-size: 12.5px; }
.tl-menu-who strong { color: var(--ink); font-size: 14.5px; }
.tl-menu a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; }
.tl-menu a:hover { background: var(--surface-2); color: var(--accent-ink); }
.tl-menu a .tl-ico { color: var(--ink-3); }

.tl-main { max-width: 1280px; margin: 0 auto; padding: 26px 24px 60px; }

.tl-foot { max-width: 1280px; margin: 0 auto; padding: 0 24px 40px; color: var(--ink-3); font-size: 12.5px; text-align: center; }
.tl-foot-tiles { display: inline-flex; gap: 3px; vertical-align: -1px; margin-right: 6px; }
.tl-foot-tiles i { width: 9px; height: 9px; border-radius: 3px; background: var(--accent); }
.tl-foot-tiles i:nth-child(2) { background: var(--tint); }
html[data-theme="dark"] .tl-foot-tiles i:nth-child(2) { background: var(--line); }
.tl-foot-tiles i:nth-child(3) { background: var(--amber); transform: rotate(14deg); }

/* --- 3  Pieces used all over --------------------------------------------------- */

.tl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 9px 15px;
	border: 1px solid var(--line);
	border-radius: 11px;
	background: var(--surface);
	color: var(--ink);
	font: 600 14px/1.3 var(--font);
	text-decoration: none;
	cursor: pointer;
	transition: background .15s, border-color .15s, color .15s, transform .12s, box-shadow .15s;
}
.tl-btn:hover { border-color: var(--accent); color: var(--accent-ink); }
.tl-btn:active { transform: translateY(1px) scale(.99); }
.tl-btn .tl-ico { width: 17px; height: 17px; }
.tl-btn-primary { border-color: var(--btn); background: var(--btn); color: var(--btn-ink); box-shadow: 0 6px 16px -8px var(--btn); }
.tl-btn-primary:hover { border-color: var(--btn-over); background: var(--btn-over); color: var(--btn-ink); }
.tl-btn-danger { border-color: currentColor; background: transparent; color: var(--bad); }
.tl-btn-danger:hover { border-color: currentColor; background: var(--bad-soft); color: var(--bad); }
.tl-btn-small { padding: 6px 11px; border-radius: 9px; font-size: 13px; }
.tl-btn-small .tl-ico { width: 14px; height: 14px; }
.tl-btn-wide { width: 100%; padding: 14px; border-radius: 13px; font-size: 15.5px; font-weight: 700; }
.tl-btn-glass { border-color: rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .09); color: #fff; }
.tl-btn-glass:hover { border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .17); color: #fff; }
.tl-link { padding: 0; border: 0; background: none; color: var(--accent-ink); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.tl-inline { display: inline; }

.tl-card {
	margin-top: 20px;
	padding: 22px 24px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: var(--shadow);
}
.tl-card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px; margin-bottom: 12px; }
.tl-card h2 { font-size: 17px; font-weight: 700; }
.tl-card > p + p, .tl-card > p + form { margin-top: 12px; }
.tl-count { display: inline-block; min-width: 24px; padding: 1px 7px; margin-left: 4px; border-radius: 7px; background: var(--amber); color: var(--navy); font-size: 13px; text-align: center; transform: rotate(6deg); }

.tl-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .01em; white-space: nowrap; vertical-align: middle; }
.tl-pill.is-active { background: var(--accent-soft); color: var(--accent-ink); }
.tl-pill.is-notice { background: var(--warn-soft); color: var(--warn); }
.tl-pill.is-suspended { background: var(--off-soft); color: var(--off); }
.tl-pill.is-new { padding: 2px 9px; border: 1.5px dashed var(--accent); color: var(--accent-ink); }

.tl-chip { display: inline-block; padding: 2px 8px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--ink-2); font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tl-chip.is-flag { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.is-flag, .tl-flag { color: var(--bad); font-weight: 700; }

/* A client's own tile: its initials. */
.tl-mono {
	position: relative;
	display: inline-grid;
	place-items: center;
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 13px;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: .02em;
}
.tl-mono-0 { background: #0D7C78; color: #FFFFFF; }
.tl-mono-1 { background: #0B1F2A; color: #5CC8C2; }
.tl-mono-2 { background: #F4A21C; color: #0B1F2A; }
.tl-mono-3 { background: #D6EDEB; color: #0A6360; }
.tl-mono-4 { background: #5CC8C2; color: #0B1F2A; }
html[data-theme="dark"] .tl-mono-1 { background: #17384A; }
.tl-mono.is-round { width: 40px; height: 40px; border-radius: 12px; font-size: 13.5px; }
.tl-mono.is-big { width: 68px; height: 68px; border-radius: 20px; font-size: 24px; }

/* How its tile is laid, said beside the initials. */
.is-ok { --state: var(--teal-light); --r: 0deg; }
.is-warn { --state: var(--amber); --r: 14deg; }
.is-bad { --state: #E5564A; --r: -12deg; }
.is-new { --state: var(--surface); --r: 0deg; }
.is-off { --state: #7A8A92; --r: 0deg; }
.tl-client > header .tl-mono::after, .tl-head > .tl-mono::after {
	content: "";
	position: absolute;
	right: -5px;
	bottom: -5px;
	width: 15px;
	height: 15px;
	border: 2.5px solid var(--surface);
	border-radius: 5px;
	background: var(--state, var(--teal-light));
	transform: rotate(var(--r, 0deg));
}
.tl-head > .tl-mono::after { right: -6px; bottom: -6px; width: 20px; height: 20px; border-radius: 7px; border-color: var(--bg); }
.is-new > header .tl-mono::after, .tl-head.is-new > .tl-mono::after { box-shadow: inset 0 0 0 2px var(--accent); }

.tl-toast {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 18px;
	padding: 12px 16px;
	border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
	border-radius: 14px;
	background: var(--accent-soft);
	color: var(--accent-ink);
	font-weight: 600;
	animation: tl-drop .35s cubic-bezier(.2, .9, .3, 1.2);
}
.tl-toast.is-wrong { border-color: color-mix(in srgb, var(--warn) 40%, transparent); background: var(--warn-soft); color: var(--warn); }
.tl-toast span { flex: 1; }
.tl-toast button { border: 0; background: none; color: inherit; font-size: 22px; line-height: 1; cursor: pointer; opacity: .7; }
.tl-toast.is-going { opacity: 0; transform: translateY(-8px); transition: opacity .3s, transform .3s; }

.tl-empty { padding: 46px 24px; text-align: center; }
.tl-empty h1, .tl-empty h2 { font-size: 22px; font-weight: 800; }
.tl-empty p { max-width: 46em; margin: 10px auto 0; color: var(--ink-2); }
.tl-empty-tiles { display: inline-grid; grid-template-columns: repeat(2, 22px); gap: 5px; margin-bottom: 18px; }
.tl-empty-tiles i { height: 22px; border-radius: 7px; background: var(--line); }
.tl-empty-tiles i:nth-child(1) { background: var(--accent); }
.tl-empty-tiles i:nth-child(4) { background: var(--amber); transform: rotate(14deg); animation: tl-nudge 3s ease-in-out infinite; }

.tl-scroll { overflow-x: auto; }
.tl-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tl-table th { padding: 8px 10px; border-bottom: 1px solid var(--line); color: var(--ink-3); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.tl-table td { padding: 11px 10px; border-bottom: 1px solid var(--line-2); }
.tl-table tbody tr:last-child td { border-bottom: 0; }
.tl-table tfoot th { border-top: 2px solid var(--line); border-bottom: 0; color: var(--ink); font-size: 14px; letter-spacing: 0; text-transform: none; }
.tl-table .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tl-table small { color: var(--ink-3); }
.tl-bar { display: inline-block; width: 96px; height: 8px; border-radius: 4px; background: var(--line-2); overflow: hidden; vertical-align: middle; }
.tl-bar i { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
.tl-bar-n { margin-left: 8px; font-variant-numeric: tabular-nums; white-space: nowrap; }

@keyframes tl-drop { from { opacity: 0; transform: translateY(-10px); } }
@keyframes tl-rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes tl-nudge { 0%, 100% { transform: rotate(14deg); } 50% { transform: rotate(4deg) translateY(-2px); } }
@keyframes tl-lay { from { opacity: 0; transform: scale(.3) rotate(-30deg); } }
@keyframes tl-beat { 0%, 100% { box-shadow: 0 0 0 0 rgba(229, 86, 74, .55); } 60% { box-shadow: 0 0 0 9px rgba(229, 86, 74, 0); } }

/* --- 4  The mosaic ------------------------------------------------------------- */

.tl-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
	align-items: center;
	gap: 28px 48px;
	padding: 38px 42px;
	border-radius: 26px;
	background:
		radial-gradient(60% 120% at 100% 0%, rgba(92, 200, 194, .26), transparent 60%),
		radial-gradient(40% 80% at 0% 100%, rgba(244, 162, 28, .13), transparent 60%),
		var(--tiles),
		#0B1F2A;
	color: #fff;
	box-shadow: var(--shadow-lift);
}
html[data-theme="dark"] .tl-hero { background-color: #0C2533; box-shadow: inset 0 0 0 1px var(--line), var(--shadow-lift); }
.tl-eyebrow { color: var(--teal-light); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.tl-hero h1 { margin-top: 8px; font-size: clamp(28px, 3.5vw, 44px); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; }
.tl-hero-sum { margin-top: 10px; color: rgba(255, 255, 255, .78); font-size: 18px; }
.tl-hero-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.tl-fleet-wall { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; }
.tl-tile {
	position: relative;
	aspect-ratio: 1;
	border-radius: 26%;
	background: rgba(255, 255, 255, .07);
	transform: rotate(var(--r, 0deg));
	animation: tl-lay .5s cubic-bezier(.2, .9, .3, 1.3) both;
	animation-delay: calc(var(--i) * 14ms);
}
a.tl-tile { background: var(--state); animation-delay: calc(360ms + var(--i) * 70ms); transition: transform .18s cubic-bezier(.2, .9, .3, 1.6), filter .18s; z-index: 1; }
a.tl-tile:hover, a.tl-tile:focus-visible { transform: rotate(var(--r, 0deg)) scale(1.3); filter: brightness(1.12); z-index: 3; }
a.tl-tile.is-bad { animation: tl-lay .5s cubic-bezier(.2, .9, .3, 1.3) both, tl-beat 2.2s 1.4s infinite; animation-delay: calc(360ms + var(--i) * 70ms), 1.4s; }
a.tl-tile.is-new { background: transparent; box-shadow: inset 0 0 0 2px #fff; }
a.tl-tile.is-off { background: repeating-linear-gradient(45deg, #5B6D76 0 3px, #3B4D57 3px 6px); }
a.tl-tile::after {
	content: attr(data-tip);
	position: absolute;
	left: 50%;
	bottom: calc(100% + 9px);
	padding: 5px 10px;
	border-radius: 9px;
	background: #fff;
	color: #0B1F2A;
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
	box-shadow: 0 8px 22px -8px rgba(0, 0, 0, .5);
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, 4px) rotate(calc(var(--r, 0deg) * -1)) scale(.77);
	transition: opacity .15s, transform .15s;
}
a.tl-tile:hover::after, a.tl-tile:focus-visible::after { opacity: 1; transform: translate(-50%, 0) rotate(calc(var(--r, 0deg) * -1)) scale(.77); }

.tl-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; color: rgba(255, 255, 255, .72); font-size: 12.5px; font-weight: 600; }
.tl-legend li { display: inline-flex; align-items: center; gap: 7px; }
.tl-legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--state); transform: rotate(var(--r, 0deg)); }
.tl-legend .is-new i { background: transparent; box-shadow: inset 0 0 0 1.5px #fff; }

/* --- 5  Every client ----------------------------------------------------------- */

.tl-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.tl-stats.is-six { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 0; }
.tl-stat {
	position: relative;
	display: grid;
	gap: 2px;
	padding: 18px 20px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: var(--shadow);
}
.tl-stat b { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tl-stat-l { font-size: 13.5px; font-weight: 700; }
.tl-stat-d { color: var(--ink-3); font-size: 12.5px; }
.tl-stat-ico { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-ink); }
.tl-stat.is-warn b { color: var(--warn); }
.tl-stat.is-warn .tl-stat-ico { background: var(--amber); color: var(--navy); transform: rotate(14deg); }

.tl-alerts { display: grid; gap: 8px; }
.tl-alerts.is-by-client { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 10px; }
.tl-alerts.is-by-client li { flex-direction: column; gap: 4px; padding: 12px 14px; }
.tl-alerts.is-by-client li > a { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-size: 15px; text-decoration: none; }
.tl-alerts.is-by-client li > a:hover { text-decoration: underline; }
.tl-alerts.is-by-client p { display: flex; gap: 8px; color: var(--ink-2); font-size: 13.5px; line-height: 1.45; }
.tl-alerts.is-by-client p .tl-ico { width: 16px; height: 16px; margin-top: 2px; }
.tl-alerts.is-by-client p.is-bad .tl-ico { color: var(--bad); }
.tl-alerts.is-by-client p.is-warn .tl-ico { color: var(--warn); }
.tl-alerts li { display: flex; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--warn-soft); font-size: 14px; }
.tl-alerts li .tl-ico { margin-top: 1px; color: var(--warn); }
.tl-alerts li.is-bad { background: var(--bad-soft); }
.tl-alerts li.is-bad .tl-ico { color: var(--bad); }
.tl-alerts a { color: var(--ink); font-weight: 700; }
.tl-attention form { margin-top: 14px; }

.tl-calm { display: flex; align-items: center; gap: 18px; }
.tl-calm p { margin-top: 4px; color: var(--ink-2); }
.tl-calm-mark { display: grid; grid-template-columns: repeat(3, 14px); gap: 4px; flex: none; }
.tl-calm-mark i { height: 14px; border-radius: 4px; background: var(--accent-soft); }
.tl-calm-mark i:nth-child(1), .tl-calm-mark i:nth-child(2), .tl-calm-mark i:nth-child(5), .tl-calm-mark i:nth-child(8) { background: var(--accent); }
/* The amber one, for once, sits straight. */
.tl-calm-mark i:nth-child(3) { background: var(--amber); }

.tl-clients { margin-top: 30px; }
.tl-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-bottom: 16px; }
.tl-toolbar h2 { margin-right: 4px; font-size: 22px; font-weight: 800; }
.tl-search { position: relative; display: flex; align-items: center; flex: 1 1 220px; max-width: 320px; }
.tl-search .tl-ico { position: absolute; left: 12px; color: var(--ink-3); pointer-events: none; }
.tl-search input { width: 100%; padding: 9px 38px 9px 40px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--ink); font: inherit; }
.tl-search input:focus { outline: 2.5px solid var(--accent); outline-offset: 1px; }
.tl-search kbd { position: absolute; right: 10px; padding: 1px 7px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2); color: var(--ink-3); font: 600 12px var(--font); pointer-events: none; }
.tl-search input:focus ~ kbd { display: none; }

.tl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tl-chips button { padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2); font: 600 13px var(--font); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.tl-chips button:hover { border-color: var(--accent); color: var(--accent-ink); }
.tl-chips button b { margin-left: 3px; color: var(--ink-3); font-weight: 700; }
.tl-chips button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.tl-chips button[aria-pressed="true"] b { color: inherit; opacity: .7; }
.tl-chips.is-small button { padding: 5px 10px; font-size: 12.5px; }
.tl-sort { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; color: var(--ink-3); font-size: 13px; font-weight: 600; }
.tl-sort select { padding: 8px 10px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--ink); font: 600 13px var(--font); }

.tl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(318px, 1fr)); gap: 18px; }
.tl-client {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 18px 18px 14px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: var(--shadow);
	transition: transform .2s cubic-bezier(.2, .9, .3, 1.2), box-shadow .2s, border-color .2s;
	animation: tl-rise .45s both;
}
.tl-client:hover, .tl-client:focus-within { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.tl-client.is-off { background: var(--surface-2); }
.tl-client > header { display: flex; align-items: flex-start; gap: 12px; }
.tl-client-name { flex: 1; min-width: 0; }
.tl-client h3 { font-size: 16.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-client h3 a { color: var(--ink); text-decoration: none; }
/* The whole card opens the client. */
.tl-client h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.tl-client-name p { color: var(--ink-3); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-client-pills { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }

.tl-client-nums { display: flex; align-items: flex-end; gap: 22px; }
.tl-client-nums div { display: grid; }
.tl-client-nums b { font-size: 23px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.tl-client-nums span { color: var(--ink-3); font-size: 12px; white-space: nowrap; }
.tl-spark { flex: 0 1 132px; min-width: 0; height: auto; margin-left: auto; color: var(--accent); }
.tl-spark-line { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tl-spark-fill { fill: currentColor; opacity: .12; }
.tl-spark-dot { fill: var(--amber); stroke: var(--surface); stroke-width: 2; }
.tl-client.is-off .tl-spark { color: var(--off); }

.tl-client-alert { display: flex; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--warn-soft); color: var(--ink); font-size: 12.5px; line-height: 1.45; }
.tl-client-alert .tl-ico { width: 16px; height: 16px; margin-top: 1px; color: var(--warn); }
.tl-client-alert.is-bad { background: var(--bad-soft); }
.tl-client-alert.is-bad .tl-ico { color: var(--bad); }
.tl-client-alert span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.tl-client-alert em { color: var(--ink-3); font-style: normal; font-weight: 700; white-space: nowrap; }

.tl-client-addons { display: flex; align-items: center; gap: 9px; margin-top: auto; color: var(--ink-3); font-size: 12.5px; }
.tl-minis { display: inline-grid; grid-auto-flow: column; gap: 3px; }
.tl-minis i { width: 11px; height: 11px; border-radius: 3.5px; background: var(--line); }
.tl-minis i.is-on { background: var(--accent); }
.tl-minis i.is-none { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.tl-client-paid { margin-left: auto; }

.tl-client > footer { display: flex; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.tl-client-seen { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-3); font-size: 12.5px; }
.tl-client-seen .tl-ico { width: 14px; height: 14px; }
.tl-client-in { position: relative; z-index: 1; margin-left: auto; }
.tl-none { margin-top: 26px; color: var(--ink-2); text-align: center; }

/* --- 6  One client ------------------------------------------------------------- */

.tl-crumb { margin-bottom: 14px; }
.tl-crumb a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 14px; font-weight: 600; text-decoration: none; }
.tl-crumb a:hover { color: var(--accent-ink); }
.tl-crumb .tl-ico { width: 17px; height: 17px; transition: transform .15s; }
.tl-crumb a:hover .tl-ico { transform: translateX(-3px); }

.tl-head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin-bottom: 4px; }
.tl-head-text { flex: 1 1 320px; min-width: 0; }
.tl-head h1 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -.03em; }
.tl-head h1 .tl-pill { margin-left: 6px; font-size: 12px; letter-spacing: 0; }
.tl-head-text p { margin-top: 4px; color: var(--ink-2); font-size: 14px; }
.tl-head-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.tl-head.is-plain { margin-bottom: 0; }

.tl-cols { display: grid; grid-template-columns: minmax(0, 1fr) 372px; align-items: start; gap: 22px; margin-top: 20px; }
.tl-col-main > :first-child, .tl-col-side > :first-child { margin-top: 0; }

.tl-months { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 8px; margin-bottom: 12px; }
.tl-months a { display: grid; justify-items: center; padding: 11px 6px 9px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-2); color: var(--ink); font-weight: 800; text-decoration: none; transition: transform .15s, background .15s, border-color .15s; }
.tl-months a:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-2px) rotate(-2deg); }
.tl-months small { color: var(--ink-3); font-weight: 600; }

.tl-health { display: grid; gap: 2px; }
.tl-health li { display: flex; gap: 10px; padding: 7px 0; font-size: 14px; }
.tl-health li + li { border-top: 1px solid var(--line-2); }
.tl-health .tl-ico { width: 18px; height: 18px; margin-top: 2px; color: var(--accent); }
.tl-health .is-warn .tl-ico { color: var(--warn); }
.tl-health .is-bad .tl-ico { color: var(--bad); }
.tl-health span { color: var(--ink-2); }
.tl-health strong { color: var(--ink); font-weight: 700; }

.tl-danger { border-style: dashed; background: transparent; box-shadow: none; }

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

.tl-field { display: grid; gap: 6px; margin-top: 14px; }
.tl-field label { font-size: 13.5px; font-weight: 700; }
.tl-field small { color: var(--ink-3); }
.tl-field input, .tl-field textarea, .tl-field select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--line);
	border-radius: 11px;
	background: var(--field);
	color: var(--ink);
	font: 500 14.5px/1.4 var(--font);
	transition: border-color .15s, box-shadow .15s;
}
.tl-field textarea { resize: vertical; }
.tl-field input:focus, .tl-field textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.tl-field.is-short input { width: 110px; }
.tl-with-unit { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 14px; }
.tl-form-end { margin-top: 16px; }

.tl-choices { display: grid; gap: 8px; }
.tl-choice { display: flex; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.tl-choice input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--btn); }
.tl-choice span { display: grid; gap: 2px; }
.tl-choice small { color: var(--ink-2); line-height: 1.45; }
.tl-choice:hover { border-color: var(--ink-3); }
.tl-choice.is-active:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.tl-choice.is-notice:has(input:checked) { border-color: var(--amber); background: var(--warn-soft); }
.tl-choice.is-suspended:has(input:checked) { border-color: var(--off); background: var(--off-soft); }
.tl-choice.is-notice input { accent-color: var(--amber); }
.tl-choice.is-suspended input { accent-color: #6B7C85; }

/* A switch is a tile that slides. */
.tl-switch {
	-webkit-appearance: none;
	appearance: none;
	position: relative;
	flex: none;
	width: 44px;
	height: 26px;
	margin: 0;
	border-radius: 8px;
	background: var(--line);
	cursor: pointer;
	transition: background .18s;
}
.tl-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 6px; background: #fff; box-shadow: 0 1px 3px rgba(11, 31, 42, .3); transition: transform .2s cubic-bezier(.3, 1.4, .5, 1); }
.tl-switch:checked { background: var(--btn); }
.tl-switch:checked::after { transform: translateX(18px); }
.tl-switch:disabled { cursor: not-allowed; opacity: .5; }
.tl-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; }
.tl-switch-row span { display: grid; gap: 2px; }
.tl-switch-row small { color: var(--ink-3); }

.tl-addons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.tl-addon { display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 12px; padding: 14px; border: 1.5px solid var(--line); border-radius: 16px; cursor: pointer; transition: border-color .15s, background .15s; }
.tl-addon:hover { border-color: var(--ink-3); }
.tl-addon-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--surface-2); color: var(--ink-3); transition: background .15s, color .15s, transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.tl-addon-text { display: grid; gap: 3px; }
.tl-addon-text small { color: var(--ink-2); line-height: 1.45; }
.tl-addon-text em { color: var(--warn); font-size: 12.5px; font-style: normal; font-weight: 600; }
.tl-addon:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.tl-addon:has(input:checked) .tl-addon-ico { background: var(--btn); color: var(--btn-ink); transform: rotate(-6deg); }
.tl-addon.is-none { cursor: not-allowed; }
/* A choice within an add-on: how it works for this company. */
.tl-addon-opt { display: grid; gap: 3px; margin-top: 6px; cursor: default; }
.tl-addon-opt > span { color: var(--ink-2); font-size: 12px; font-weight: 700; }
.tl-addon-opt select { width: 100%; padding: 7px 9px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); font: 500 13px/1.3 var(--font); }
.tl-addon:not(:has(input:checked)) .tl-addon-opt { display: none; }
.tl-addon.is-none strong, .tl-addon.is-none small { opacity: .6; }

.tl-tick { display: flex; gap: 10px; margin-top: 12px; font-size: 14px; cursor: pointer; }
.tl-tick input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: #D8483B; }

/* --- 8  Charts --------------------------------------------------------------- */

.tl-chart { position: relative; }
.tl-chart-svg { display: block; width: 100%; height: auto; touch-action: pan-y; }
.tl-chart-grid { stroke: var(--line); stroke-dasharray: 3 6; }
.tl-chart-scale { fill: var(--ink-3); font: 600 11px var(--font); }
.tl-chart-line { fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.tl-chart-stop-a { stop-color: var(--accent); stop-opacity: .3; }
.tl-chart-stop-b { stop-color: var(--accent); stop-opacity: 0; }
.tl-chart-dot { fill: var(--amber); stroke: var(--surface); stroke-width: 3; }
.tl-chart-at line { stroke: var(--ink-3); stroke-dasharray: 2 4; }
.tl-chart-at circle { fill: var(--surface); stroke: var(--accent); stroke-width: 3; }
.tl-chart-tip { position: absolute; z-index: 2; padding: 5px 10px; border-radius: 9px; background: var(--ink); color: var(--bg); font-size: 12.5px; font-weight: 700; white-space: nowrap; pointer-events: none; transform: translate(-50%, calc(-100% - 14px)); }
.tl-chart-none { padding: 30px 0; color: var(--ink-3); text-align: center; }

/* --- 9  What happened ---------------------------------------------------------- */

.tl-day { margin: 22px 0 10px; color: var(--ink-3); font-size: 12px !important; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.tl-day:first-child { margin-top: 0; }
.tl-timeline { position: relative; display: grid; gap: 2px; }
.tl-timeline::before { content: ""; position: absolute; left: 4px; top: 10px; bottom: 10px; width: 2px; border-radius: 2px; background: var(--line-2); }
.tl-timeline li { position: relative; display: grid; grid-template-columns: 132px 1fr; gap: 12px; padding: 6px 0 6px 24px; font-size: 14px; }
.tl-day + .tl-timeline li { grid-template-columns: 52px 1fr; }
.tl-timeline li::before { content: ""; position: absolute; left: 0; top: 11px; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); box-shadow: 0 0 0 3px var(--surface); }
.tl-timeline li.is-standing::before, .tl-timeline li.is-addons::before { background: var(--amber); transform: rotate(14deg); }
.tl-timeline li.is-forgotten::before { background: #D8483B; transform: rotate(-12deg); }
.tl-timeline li.is-support::before { background: var(--ink); }
.tl-timeline li.is-asked::before, .tl-timeline li.is-saved::before { background: var(--line); }
.tl-timeline time { color: var(--ink-3); font-size: 12.5px; font-variant-numeric: tabular-nums; padding-top: 1px; }
.tl-timeline p { color: var(--ink-2); }
.tl-timeline a, .tl-timeline strong { color: var(--ink); font-weight: 700; }

/* --- 10  Reports, and print ------------------------------------------------------ */

.tl-report-bar { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 18px; }
.tl-report-bar .tl-btn-primary { margin-left: auto; }

/* A sheet of paper, whatever the theme: it is what the client is sent. */
.tl-sheet {
	--surface: #FFFFFF; --surface-2: #F4F8F8; --ink: #0B1F2A; --ink-2: #3E535D; --ink-3: #687C85; --line: #DAE5E5; --line-2: #E8EFEF;
	--accent: #0D7C78; --accent-ink: #0A6360; --accent-soft: #E2F3F1; --bad: #B42F23;
	max-width: 940px;
	margin: 0 auto;
	padding: 44px 50px 36px;
	border-top: 7px solid #0D7C78;
	border-radius: 6px 6px 18px 18px;
	background: #fff;
	color: var(--ink);
	box-shadow: var(--shadow-lift);
	overflow-x: auto;
}
.tl-sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 8px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.tl-sheet .tl-eyebrow { color: var(--accent); }
.tl-sheet h1 { margin-top: 6px; font-size: 32px; font-weight: 800; letter-spacing: -.03em; }
.tl-sub { margin-top: 4px; color: var(--ink-2); }
.tl-by { color: var(--ink-3); font-size: 12px; text-align: right; }
.tl-by img { display: block; width: 150px; height: auto; margin-top: 6px; }
.tl-sheet h2 { margin: 28px 0 10px; font-size: 16px; font-weight: 800; }
.tl-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tl-fig { display: grid; gap: 2px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); break-inside: avoid; }
.tl-fig-n { font-size: 28px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.tl-fig-l { font-size: 13.5px; font-weight: 700; }
.tl-fig-d { color: var(--ink-3); font-size: 12.5px; }
.tl-lead { color: var(--ink-2); }
.tl-small { margin-top: 8px; color: var(--ink-3); font-size: 12.5px; }
.tl-sheet .tl-table tr { break-inside: avoid; }
.tl-group td { font-weight: 700; }
.tl-sheet-foot { margin-top: 30px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 12px; }

@media print {
	@page { margin: 14mm; }
	html, body { background: #fff !important; }
	.tl-top, .tl-foot, .tl-noprint, .tl-toast, .tl-skip { display: none !important; }
	.tl-main { max-width: none; padding: 0; }
	.tl-sheet { max-width: none; padding: 0; border: 0; border-top: 5px solid #0D7C78; border-radius: 0; box-shadow: none; overflow: visible; padding-top: 22px; }
	.tl-fig { background: #fff; }
	a { color: inherit; text-decoration: none; }
}

/* --- 11  The sign-in page ---------------------------------------------------------- */

.tl-gate {
	min-height: 100vh;
	min-height: 100dvh;
	background:
		radial-gradient(70% 90% at 85% 10%, rgba(13, 124, 120, .5), transparent 65%),
		radial-gradient(50% 70% at 0% 100%, rgba(244, 162, 28, .12), transparent 60%),
		var(--tiles),
		#0B1F2A;
	color: #fff;
}
/* Once the wall is drawn tile by tile, the printed pattern behind it is not needed. */
.tl-gate.has-mosaic { background: radial-gradient(70% 90% at 85% 10%, rgba(13, 124, 120, .42), transparent 65%), radial-gradient(50% 70% at 0% 100%, rgba(244, 162, 28, .1), transparent 60%), #0B1F2A; }
.tl-mosaic { position: fixed; inset: 0; display: block; width: 100%; height: 100%; }
.tl-gate-shade { position: fixed; inset: 0; background: linear-gradient(100deg, rgba(11, 31, 42, .78) 0%, rgba(11, 31, 42, .3) 48%, rgba(11, 31, 42, .55) 100%); pointer-events: none; }

.tl-gate-main {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 430px);
	align-items: center;
	gap: 7vw;
	min-height: 100vh;
	min-height: 100dvh;
	max-width: 1200px;
	margin: 0 auto;
	padding: 48px 34px;
}
.tl-gate-hero { animation: tl-rise .7s cubic-bezier(.2, .8, .2, 1) both; }
.tl-gate-wordmark { display: block; width: 220px; height: auto; }
.tl-gate-line { margin-top: 44px; font-size: clamp(44px, 6.4vw, 84px); font-weight: 800; letter-spacing: -.045em; line-height: .98; }
.tl-gate-line span { color: var(--teal-light); }
.tl-gate-lead { max-width: 30em; margin-top: 24px; color: rgba(255, 255, 255, .76); font-size: 18px; line-height: 1.6; }
.tl-gate-points { display: grid; gap: 12px; margin-top: 30px; color: rgba(255, 255, 255, .9); font-weight: 600; }
.tl-gate-points li { display: flex; align-items: center; gap: 13px; }
.tl-gate-points i { flex: none; width: 13px; height: 13px; border-radius: 4px; background: var(--teal-light); }
.tl-gate-points li:nth-child(2) i { background: var(--tint); }
.tl-gate-points li:nth-child(3) i { background: var(--amber); transform: rotate(14deg); }

.tl-gate-side { animation: tl-rise .7s .12s cubic-bezier(.2, .8, .2, 1) both; }
.tl-gate-card { position: relative; padding: 38px 34px 26px; border-radius: 26px; background: #fff; color: #0B1F2A; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .08); }
/* The logo's amber tile, dropping into its place on the card's corner. */
.tl-gate-amber { position: absolute; top: -16px; right: 30px; width: 38px; height: 38px; border-radius: 10px; background: #F4A21C; box-shadow: 0 12px 24px -8px rgba(244, 162, 28, .7); transform: rotate(14deg); animation: tl-amber 1s .5s cubic-bezier(.3, 1.45, .5, 1) both; }
@keyframes tl-amber { from { opacity: 0; transform: translateY(-160px) rotate(-50deg); } 30% { opacity: 1; } }
.tl-gate-logo { display: block; width: 170px; height: auto; }
.tl-gate-card h1 { margin-top: 26px; font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.tl-gate-sub { margin-top: 6px; color: #3E535D; }
.tl-gate-card > p + p { margin-top: 22px; }
.tl-gate-said { margin-top: 18px; padding: 11px 14px; border-radius: 12px; background: #E2F3F1; color: #0A6360; font-size: 14px; font-weight: 600; }
.tl-gate-said.is-wrong { background: #FBE6E3; color: #A1281D; animation: tl-shake .4s; }
@keyframes tl-shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

.tl-gate-form { display: grid; margin-top: 22px; }
.tl-gate-form label { font-size: 13.5px; font-weight: 700; }
.tl-gate-form input[type="text"], .tl-gate-form input[type="password"] {
	width: 100%;
	height: 50px;
	margin: 7px 0 16px;
	padding: 0 14px;
	border: 1.5px solid #D3DFDF;
	border-radius: 13px;
	background: #F7FAFA;
	color: #0B1F2A;
	font: 500 16px var(--font);
	transition: border-color .15s, box-shadow .15s, background .15s;
}
.tl-gate-form input:focus { outline: 0; border-color: #0D7C78; background: #fff; box-shadow: 0 0 0 4px rgba(13, 124, 120, .16); }
.tl-gate-pass { position: relative; }
.tl-gate-pass input { padding-right: 70px !important; }
.tl-gate-pass button { position: absolute; top: 15px; right: 8px; padding: 7px 10px; border: 0; border-radius: 9px; background: none; color: #0A6360; font: 700 13px var(--font); cursor: pointer; }
.tl-gate-pass button:hover { background: #E2F3F1; }
.tl-gate-keep { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; font-weight: 500 !important; cursor: pointer; }
.tl-gate-keep input { width: 18px; height: 18px; margin: 0; accent-color: #0D7C78; }
.tl-gate .tl-btn-primary { border-color: #0D7C78; background: #0D7C78; color: #fff; box-shadow: 0 12px 24px -12px #0D7C78; }
.tl-gate .tl-btn-primary:hover { border-color: #0A6360; background: #0A6360; }
.tl-gate-foot { margin-top: 18px; font-size: 14px; text-align: center; }
.tl-gate-foot a { color: #0A6360; font-weight: 600; }
.tl-gate-note { max-width: 34em; margin: 20px auto 0; color: rgba(255, 255, 255, .6); font-size: 12.5px; text-align: center; }

/* --- 12  Small screens ----------------------------------------------------------- */

@media (max-width: 1080px) {
	.tl-cols { grid-template-columns: minmax(0, 1fr); }
	.tl-hero { grid-template-columns: minmax(0, 1fr); padding: 30px 28px; }
	.tl-fleet { max-width: 460px; }
}

@media (max-width: 860px) {
	/* No blur behind the bar here: a blurred bar would hold the pages' links inside itself. */
	.tl-top { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); }
	.tl-top-in { gap: 12px; padding: 0 16px; height: 58px; }
	.tl-brand img { width: 136px; }
	.tl-main { padding: 18px 16px 110px; }
	.tl-foot { padding: 0 16px 100px; }
	/* The pages move to the bottom of the screen, under a thumb. */
	.tl-nav {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 30;
		justify-content: space-around;
		gap: 0;
		padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
		border-top: 1px solid var(--line);
		background: color-mix(in srgb, var(--surface) 92%, transparent);
		-webkit-backdrop-filter: blur(14px);
		backdrop-filter: blur(14px);
	}
	.tl-nav a { flex: 1; flex-direction: column; gap: 2px; padding: 6px 4px; font-size: 11.5px; }
	.tl-nav a[aria-current] { background: none; box-shadow: none; }
	.tl-nav a[aria-current]::after { top: 2px; right: calc(50% - 20px); }
	.tl-stats, .tl-stats.is-six { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.tl-stat { padding: 14px 16px; }
	.tl-stat b { font-size: 23px; }
	.tl-stat-ico { display: none; }
	.tl-client-nums { gap: 16px; }
	.tl-card { padding: 18px 16px; }
	.tl-hero { padding: 26px 20px; border-radius: 22px; }
	.tl-addons, .tl-alerts.is-by-client { grid-template-columns: minmax(0, 1fr); }
	.tl-sort { margin-left: 0; }
	.tl-search { max-width: none; flex-basis: 100%; }
	.tl-search kbd { display: none; }
	.tl-grid { grid-template-columns: minmax(0, 1fr); }
	.tl-head-acts { width: 100%; }
	.tl-head-acts .tl-btn, .tl-head-acts form { flex: 1; }
	.tl-head-acts form .tl-btn { width: 100%; }
	.tl-timeline li { grid-template-columns: 1fr; gap: 0; }
	.tl-day + .tl-timeline li { grid-template-columns: 52px 1fr; gap: 12px; }
	.tl-sheet { padding: 26px 18px; }
	.tl-sheet-head { flex-direction: column; gap: 14px; }
	.tl-by { text-align: left; }
	.tl-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tl-report-bar .tl-btn-primary { margin-left: 0; }

	.tl-gate-main { grid-template-columns: minmax(0, 1fr); align-content: center; gap: 30px; padding: 30px 18px; }
	.tl-gate-wordmark { width: 170px; }
	.tl-gate-line { margin-top: 26px; font-size: clamp(38px, 11vw, 56px); }
	.tl-gate-lead, .tl-gate-points { display: none; }
	.tl-gate-card { padding: 32px 22px 22px; border-radius: 22px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
