/* ==========================================================================
   The Tech List — "Industry" dark design system, v4
   Standalone (no theme underneath any more): one token block, then
   components. Square corners, hairlines, the "+" registration marks on
   framed objects, and the logo's three-dot plate on buttons.
   ========================================================================== */

:root {
	/* Palette */
	--bg: #111214;
	--surface: #17191c;
	--surface-2: #1e2125;
	--surface-3: #262a2f;
	--ink: #f2f3f5;
	--ink-soft: color-mix(in srgb, var(--ink) 74%, transparent);
	--ink-faint: color-mix(in srgb, var(--ink) 52%, transparent);
	--line: color-mix(in srgb, var(--ink) 14%, transparent);
	--line-soft: color-mix(in srgb, var(--ink) 8%, transparent);
	--line-strong: color-mix(in srgb, var(--ink) 26%, transparent);

	--accent: #94bbe3;
	--accent-hover: #b0cdec;
	--accent-press: #7aa8d8;
	--accent-ink: #111214;
	--accent-soft: color-mix(in srgb, var(--accent) 13%, transparent);
	--accent-line: color-mix(in srgb, var(--accent) 45%, transparent);

	/* Status (moderation only) */
	--pending: #e3b56a;
	--live: var(--accent);
	--danger: #e58a7f;
	--danger-soft: color-mix(in srgb, var(--danger) 14%, transparent);
	--ok: #8fd19e;
	--imdb: #f5c518;

	/* Type */
	/* "Industrial" pairing, with IBM Plex Mono for body text too (3.5). Barlow Condensed and JetBrains Mono are the fallbacks until the server has fetched the fonts. */
	--font-heading: 'Oswald', 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
	/* 3.22: paragraphs in IBM Plex Sans (Plex Mono's proportional sister); mono stays for labels, buttons, kit names and numbers. */
	--font-body: 'IBM Plex Sans', 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--font-display: 'Oswald', 'Barlow Condensed', system-ui, sans-serif;
	--font-mono: 'IBM Plex Mono', 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

	/* Type scale (3.22): ten steps, nothing in between. */
	--fs-label: 12px; --fs-btn: 13px; --fs-small: 14px; --fs-body: 16px; --fs-h4: 18px; --fs-h3: 22px;
	--fs-lead: clamp(17px, 1.6vw, 20px);
	--fs-h2: clamp(28px, 3.4vw, 40px);
	--fs-h1: clamp(36px, 5vw, 60px);
	--fs-display: clamp(44px, 6.4vw, 88px);
	--font-nav: 'Oswald', 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;

	/* Space & shape */
	--gutter: clamp(16px, 4vw, 32px);
	--max: 1120px;
	--narrow: 720px;
	--radius: 0;
	--shadow: 0 18px 48px rgba(0, 0, 0, .45);

	/* "+" registration marks */
	--mark: color-mix(in srgb, var(--ink) 50%, transparent);
	--marks:
		linear-gradient(var(--mark), var(--mark)), linear-gradient(var(--mark), var(--mark)),
		linear-gradient(var(--mark), var(--mark)), linear-gradient(var(--mark), var(--mark)),
		linear-gradient(var(--mark), var(--mark)), linear-gradient(var(--mark), var(--mark)),
		linear-gradient(var(--mark), var(--mark)), linear-gradient(var(--mark), var(--mark));
	--marks-size: 11px 1px, 1px 11px, 11px 1px, 1px 11px, 11px 1px, 1px 11px, 11px 1px, 1px 11px;
	--marks-pos:
		left 0 top 5px, left 5px top 0, right 0 top 5px, right 5px top 0,
		left 0 bottom 5px, left 5px bottom 0, right 0 bottom 5px, right 5px bottom 0;

	color-scheme: dark;
}

/* --------------------------------------------------------------- Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 400 18px/1.55 var(--font-body);
	-webkit-font-smoothing: antialiased;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}
main { flex: 1 0 auto; }
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 {
	font-family: var(--font-heading);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .005em;
	line-height: 1.08;
	color: var(--ink);
	margin: 0 0 .5em;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: 22px; }
h4 { font-size: 18px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent); color: var(--accent-ink); }
[hidden] { display: none !important; }
.tl-icon { display: inline-block; vertical-align: -.15em; flex: 0 0 auto; }

.tl-skip {
	position: absolute; left: -9999px; top: 8px; z-index: 100;
	background: var(--accent); color: var(--accent-ink); padding: 8px 14px; text-decoration: none;
}
.tl-skip:focus { left: 8px; }

.tl-wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.tl-narrow { max-width: var(--narrow); margin-left: auto; margin-right: auto; }
.tl-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Small technical caption: mono, tracked, uppercase */
.tl-eyebrow, .tl-label, .tl-meta {
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .1em;
	text-transform: uppercase;
}
.tl-eyebrow { color: var(--accent); margin: 0 0 14px; display: block; }
.tl-meta { color: var(--ink-faint); }
.tl-muted { color: var(--ink-soft); }
.tl-faint { color: var(--ink-faint); }
.tl-lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--ink-soft); max-width: 60ch; }

/* --------------------------------------------------------------- Wordmark */
.tl-wordmark {
	display: inline-flex; align-items: center; gap: 10px;
	font-family: var(--font-display); font-weight: 700; font-size: 22px;
	letter-spacing: 0; text-transform: uppercase; line-height: 1; color: var(--ink);
	white-space: nowrap;
}
.tl-wm-plate {
	display: inline-flex; align-items: center; gap: 8px;
	background: var(--accent); color: var(--bg); padding: .24em .55em;
}
.tl-wm-dots { display: inline-flex; flex-direction: column; gap: 3px; }
.tl-wm-dots i { display: block; width: 4px; height: 4px; background: var(--bg); }

/* --------------------------------------------------------------- Header */
.tl-header {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--bg) 92%, transparent);
	backdrop-filter: saturate(140%) blur(8px);
	border-bottom: 1px solid var(--line);
}
.tl-header .tl-wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.tl-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.tl-brand:hover { color: var(--ink); }
.tl-brand-tag { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.tl-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.tl-nav a:not(.tl-btn), .tl-nav button.tl-linkbtn {
	font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
	color: var(--ink-soft); text-decoration: none; padding: 10px 12px; border: 0; background: none; cursor: pointer;
	display: inline-flex; align-items: center; gap: 6px;
}
.tl-nav a:not(.tl-btn):hover, .tl-nav button.tl-linkbtn:hover { color: var(--ink); }
.tl-nav a[aria-current="page"] { color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }
.tl-nav a.tl-btn { margin-left: 10px; }
.tl-nav form { margin: 0; display: inline; }
.tl-nav-count {
	font-family: var(--font-mono); font-size: 12px; min-width: 20px; height: 20px; padding: 0 6px;
	display: inline-grid; place-items: center; background: var(--pending); color: #1a1407;
}
.tl-menu { margin-left: auto; position: relative; display: none; }
.tl-menu > summary {
	list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
	font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
	color: var(--ink); padding: 10px 12px; border: 1px solid var(--line);
}
.tl-menu > summary::-webkit-details-marker { display: none; }
.tl-menu[open] > summary { border-color: var(--accent); }
.tl-menu-panel {
	position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px;
	background: var(--surface-2); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px;
	display: flex; flex-direction: column;
}
.tl-menu-panel a, .tl-menu-panel button.tl-linkbtn {
	text-align: left; padding: 12px; color: var(--ink); text-decoration: none; font: inherit; background: none; border: 0; cursor: pointer; width: 100%;
	font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
}
.tl-menu-panel a:hover, .tl-menu-panel button.tl-linkbtn:hover { background: var(--surface-3); }
.tl-menu-panel form { margin: 0; }
.tl-header .tl-header-join { display: none; }
@media (max-width: 860px) {
	.tl-nav { display: none; }
	.tl-menu { display: block; }
	.tl-brand-tag { display: none; }
	.tl-header .tl-header-join { display: inline-flex; margin-left: auto; }
	.tl-header-join + .tl-menu { margin-left: 0; }
}
@media (max-width: 440px) {
	.tl-header .tl-wrap { gap: 10px; }
	.tl-header-join ~ .tl-menu .tl-menu-word { display: none; }
}

/* --------------------------------------------------------------- Footer */
.tl-footer { border-top: 1px solid var(--line); margin-top: 96px; padding: 40px 0 48px; color: var(--ink-faint); }
.tl-footer .tl-wrap { display: grid; gap: 24px; grid-template-columns: 1fr; }
.tl-footer .tl-wordmark { font-size: 16px; }
.tl-footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.tl-footer-links a { color: var(--ink-soft); text-decoration: none; font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.tl-footer-links a:hover { color: var(--ink); }
.tl-footer small { font-size: 14px; }
@media (min-width: 760px) {
	.tl-footer .tl-wrap { grid-template-columns: auto 1fr auto; align-items: center; }
	.tl-footer-links { justify-content: center; }
}

/* --------------------------------------------------------------- Buttons */
/* "Plate" (3.5): square plates, small IBM Plex Mono labels, no ornaments. */
.tl-btn {
	position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	box-sizing: border-box; min-height: 44px; padding: 0 20px;
	font: 500 13px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase;
	color: var(--ink); background: var(--surface-2); border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
	text-decoration: none; cursor: pointer; white-space: nowrap;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
	-webkit-appearance: none; appearance: none;
}
.tl-btn:hover { color: var(--accent-hover); border-color: var(--accent); background: var(--surface-2); }
.tl-btn:active { background: var(--surface-3); }
.tl-btn .tl-icon { flex: none; }
.tl-btn .tl-icon-arrow-right { transition: transform .15s ease; }
.tl-btn:hover .tl-icon-arrow-right { transform: translateX(3px); }
.tl-btn-primary, .tl-btn-approve { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tl-btn-primary:hover, .tl-btn-approve:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }
.tl-btn-primary:active, .tl-btn-approve:active { background: var(--accent-press); border-color: var(--accent-press); }
.tl-btn-danger { background: transparent; border-color: color-mix(in srgb, var(--danger) 60%, transparent); color: var(--danger); }
.tl-btn-danger:hover { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); }
.tl-btn-imdb { background: var(--imdb); border-color: var(--imdb); color: #111; }
.tl-btn-imdb:hover { background: #ffd43b; border-color: #ffd43b; color: #111; }
.tl-btn-sm { min-height: 36px; padding: 0 14px; font-size: 12px; gap: 8px; }
.tl-btn-lg { min-height: 52px; padding: 0 30px; font-size: 14px; }
.tl-btn-block { display: flex; width: 100%; }
.tl-btn[disabled] { opacity: .38; cursor: not-allowed; }
/* Plain: a quiet underlined label for the least important action. */
.tl-btn-plain { background: transparent; border-color: transparent; padding: 0 6px; color: color-mix(in srgb, var(--ink) 85%, transparent); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; text-decoration-color: color-mix(in srgb, var(--ink) 35%, transparent); }
.tl-btn-plain:hover { background: transparent; border-color: transparent; color: var(--accent-hover); text-decoration-color: var(--accent); }
.tl-btn-plain:active { background: transparent; }
.tl-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.tl-linkbtn { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* --------------------------------------------------------------- Frames & cards */
.tl-framed { position: relative; }
.tl-framed::before {
	content: ""; position: absolute; inset: -6px; pointer-events: none;
	background-repeat: no-repeat; background-image: var(--marks);
	background-size: var(--marks-size); background-position: var(--marks-pos);
}
.tl-card {
	background: var(--surface);
	border: 1px solid var(--line);
	padding: clamp(20px, 4vw, 36px);
}
.tl-card + .tl-card { margin-top: 28px; }
.tl-two > .tl-card + .tl-card, .tl-two > * > .tl-card:first-child { margin-top: 0; }
.tl-card-title { font-size: 22px; margin-bottom: 6px; }
.tl-section { padding: clamp(40px, 7vw, 80px) 0; }
.tl-page-head { padding: clamp(32px, 6vw, 64px) 0 clamp(20px, 3vw, 32px); }
.tl-page-head h1 { margin-bottom: 10px; }
.tl-page-head p { color: var(--ink-soft); max-width: 62ch; margin: 0; }

/* --------------------------------------------------------------- Notices */
.tl-flash { margin: 20px auto 0; }
.tl-notice {
	display: flex; gap: 12px; align-items: flex-start;
	padding: 14px 16px; border: 1px solid var(--line); border-left: 3px solid var(--accent);
	background: var(--surface-2); color: var(--ink); margin: 0 0 16px;
}
.tl-notice p:last-child { margin-bottom: 0; }
.tl-notice-success { border-left-color: var(--accent); }
.tl-notice-error { border-left-color: var(--danger); background: color-mix(in srgb, var(--danger) 8%, var(--surface-2)); }
.tl-notice-warn { border-left-color: var(--pending); }
.tl-notice strong { font-weight: 600; }

/* --------------------------------------------------------------- Forms */
.tl-form { display: grid; gap: 22px; }
.tl-field { display: grid; gap: 8px; min-width: 0; }
.tl-label { color: var(--accent); display: block; }
.tl-label .tl-opt { color: var(--ink-faint); text-transform: none; letter-spacing: 0; font-family: var(--font-body); font-size: 13px; margin-left: 6px; }
.tl-help { color: var(--ink-soft); font-size: 16px; margin: 0; line-height: 1.5; }
.tl-field-error { color: var(--danger); font-size: 16px; margin: 0; }
.tl-input, .tl-select, .tl-textarea {
	width: 100%; min-height: 48px; padding: 11px 14px;
	font: 400 16px/1.4 var(--font-body); color: var(--ink);
	background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius);
	caret-color: var(--accent); transition: border-color .15s ease;
	-webkit-appearance: none; appearance: none;
}
.tl-input:hover, .tl-select:hover, .tl-textarea:hover { border-color: var(--ink-faint); }
.tl-input:focus, .tl-select:focus, .tl-textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.tl-input::placeholder, .tl-textarea::placeholder { color: var(--ink-faint); }
.tl-input[aria-invalid="true"], .tl-textarea[aria-invalid="true"] { border-color: var(--danger); }
.tl-textarea { min-height: 120px; resize: vertical; }
.tl-select {
	padding-right: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23b7b7ba' stroke-width='2'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 14px center;
}
.tl-row { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .tl-row-2 { grid-template-columns: 1fr 1fr; } }
.tl-check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; line-height: 1.45; }
.tl-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: 0 0 auto; }
.tl-imdb-later { margin-top: 12px; font-size: 14px; color: var(--ink-soft); }
.tl-input:disabled { opacity: .45; cursor: not-allowed; }
.tl-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.tl-form-foot { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.tl-fieldset { display: grid; gap: 22px; margin: 0; }
.tl-fs-title { margin: 0 0 -6px; font: 600 22px/1.1 var(--font-heading); text-transform: uppercase; }

/* Segmented control (two radios styled as one switch) */
.tl-segmented { display: flex; border: 1px solid var(--line-strong); }
.tl-segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tl-segmented label {
	flex: 1 1 0; display: flex; align-items: center; justify-content: center; text-align: center;
	min-height: 46px; padding: 0 10px; cursor: pointer; color: var(--ink-soft);
	font: 500 14px/1.1 var(--font-body); letter-spacing: .04em; text-transform: uppercase;
}
.tl-segmented label + input + label, .tl-segmented input + label ~ input + label { border-left: 1px solid var(--line-strong); }
.tl-segmented label:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink); }
.tl-segmented input:checked + label { background: var(--accent); color: var(--accent-ink); }
.tl-segmented input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: -3px; }

/* Checkbox chips (affiliations) */
.tl-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tl-chip-check { position: relative; }
.tl-chip-check input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.tl-chip-check span {
	display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px;
	border: 1px solid var(--line-strong); color: var(--ink-soft); font-size: 16px; cursor: pointer;
}
.tl-chip-check span::before { content: ""; width: 10px; height: 10px; border: 1px solid var(--ink-faint); }
.tl-chip-check input:checked + span { border-color: var(--accent); color: var(--ink); background: var(--accent-soft); }
.tl-chip-check input:checked + span::before { background: var(--accent); border-color: var(--accent); }
.tl-chip-check input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* --------------------------------------------------------------- Tags */
.tl-tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.tl-tag {
	display: inline-flex; align-items: center; min-height: 30px; padding: 0 11px;
	background: var(--surface-2); color: var(--ink-soft); font-size: 16px; border: 1px solid transparent;
}
.tl-tag-match { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-hover); }
.tl-tag-more { background: none; color: var(--ink-faint); padding: 0 4px; }

/* Status badges (moderation) */
.tl-status {
	display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
	font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft);
}
.tl-status::before { content: ""; width: 8px; height: 8px; background: var(--ink-faint); }
.tl-status-pending { color: var(--pending); }
.tl-status-pending::before { background: var(--pending); }
.tl-status-live { color: var(--accent); }
.tl-status-live::before { background: var(--accent); }
.tl-status-rejected { color: var(--danger); }
.tl-status-rejected::before { background: var(--danger); }
.tl-status-hidden::before { background: transparent; border: 1px solid var(--ink-faint); }
.tl-status-ok { color: var(--ok); }
.tl-status-ok::before { background: var(--ok); }

/* --------------------------------------------------------------- Home */
.tl-hero { padding: clamp(48px, 9vw, 120px) 0 clamp(40px, 7vw, 88px); border-bottom: 1px solid var(--line); }
.tl-hero h1 { font-size: var(--fs-display); line-height: .98; max-width: 14ch; margin-bottom: 26px; }
.tl-hero .tl-lead { margin-bottom: 32px; }
.tl-hero .tl-lead p { margin: 0 0 .8em; }
.tl-hero-meta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.tl-progress { display: grid; gap: 10px; max-width: 420px; margin-top: 36px; }
.tl-progress-bar { display: flex; gap: 3px; height: 8px; }
.tl-progress-bar i { flex: 1 1 0; background: var(--surface-3); }
.tl-progress-bar i.on { background: var(--accent); }

.tl-principles { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 8px; }
.tl-principle { background: var(--bg); padding: 24px; }
.tl-principle h3 { font-size: 22px; margin-bottom: 8px; }
.tl-principle p { color: var(--ink-soft); margin: 0; font-size: 16px; }
@media (min-width: 760px) { .tl-principles { grid-template-columns: repeat(3, 1fr); } }

.tl-tour-row { display: grid; gap: 28px; align-items: center; padding: clamp(32px, 5vw, 56px) 0; border-bottom: 1px solid var(--line-soft); }
.tl-tour-row:last-child { border-bottom: 0; }
.tl-shot { margin: 0; background: var(--surface); border: 1px solid var(--line); padding: 10px; }
.tl-shot img { display: block; width: 100%; height: auto; }
.tl-tour-copy h3 { font-size: var(--fs-h3); margin-bottom: 12px; }
.tl-tour-copy p { color: var(--ink-soft); font-size: 18px; margin: 0; max-width: 46ch; }
.tl-step { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; color: var(--accent); display: block; margin-bottom: 12px; }
@media (min-width: 900px) {
	.tl-tour-row { grid-template-columns: 1.2fr 1fr; gap: 64px; }
	.tl-tour-row:nth-child(even) { grid-template-columns: 1fr 1.2fr; }
	.tl-tour-row:nth-child(even) .tl-shot { order: 2; }
}
.tl-cta-band { text-align: center; padding: clamp(48px, 8vw, 96px) 0; border-top: 1px solid var(--line); }
.tl-cta-band h2 { max-width: 22ch; margin: 0 auto 26px; }

/* --------------------------------------------------------------- Search */
.tl-search-shell { max-width: 860px; margin: 0 auto; }
.tl-tabs { display: flex; border: 1px solid var(--line-strong); margin-bottom: 26px; }
.tl-tab {
	flex: 1 1 0; min-height: 48px; background: none; border: 0; cursor: pointer; color: var(--ink-soft);
	font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
	text-decoration: none; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.tl-tab + .tl-tab { border-left: 1px solid var(--line-strong); }
.tl-tab:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, transparent); }
.tl-tab[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }
.tl-panel[hidden] { display: none; }
.tl-search-grid { display: grid; gap: 22px; }
@media (min-width: 760px) { .tl-search-grid { grid-template-columns: 1.4fr 1fr; align-items: end; } }
.tl-submit-row { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.tl-submit-row .tl-help { flex: 1 1 260px; }
.tl-count-badge { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.tl-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }

/* Gear type-ahead */
.tl-gta { position: relative; }
.tl-gta-control {
	display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 48px; padding: 6px 8px;
	background: var(--bg); border: 1px solid var(--line-strong); cursor: text;
}
.tl-gta.open .tl-gta-control, .tl-gta-control:focus-within { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.tl-gta-chips { display: contents; list-style: none; margin: 0; padding: 0; }
.tl-gta-chip {
	display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 0 4px 0 10px;
	background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent-hover); font-size: 16px;
}
.tl-gta-chip button { background: none; border: 0; color: inherit; cursor: pointer; font-size: 18px; line-height: 1; padding: 2px 6px; }
.tl-gta-chip button:hover { color: var(--ink); }
.tl-gta-input { flex: 1 1 140px; min-width: 120px; border: 0; background: none; color: var(--ink); font: 16px var(--font-body); padding: 6px 4px; min-height: 34px; }
.tl-gta-input:focus { outline: none; }
.tl-gta-input::placeholder { color: var(--ink-faint); font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.tl-gta-panel {
	position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 40;
	background: var(--surface-2); border: 1px solid var(--line); box-shadow: var(--shadow);
	max-height: 360px; overflow-y: auto; padding: 8px;
}
.tl-gta-group + .tl-gta-group { margin-top: 6px; }
.tl-gta-group-label { display: block; padding: 10px 10px 4px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.tl-gta-list { list-style: none; margin: 0; padding: 0; }
.tl-gta-item label { display: flex; align-items: center; gap: 10px; padding: 9px 10px; cursor: pointer; color: var(--ink); }
.tl-gta-item label:hover, .tl-gta-item.is-active label { background: var(--surface-3); }
.tl-gta-item label.is-checked { background: var(--accent-soft); }
.tl-gta-item input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; flex: 0 0 auto; }
.tl-gta-name { flex: 1 1 auto; }
.tl-gta-count { font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); }
.tl-gta-empty { padding: 12px 10px; color: var(--ink-faint); margin: 0; }
.tl-gta-done {
	position: sticky; bottom: -8px; margin: 8px -8px -8px; padding: 10px 12px;
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	background: var(--surface-2); border-top: 1px solid var(--line);
}

/* Date range trigger + popover calendar */
.tl-daterange { position: relative; }
.tl-date-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tl-date-btn {
	display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%;
	min-height: 48px; padding: 0 14px; background: var(--bg); border: 1px solid var(--line-strong);
	color: var(--ink); font: 16px var(--font-body); cursor: pointer; text-align: left;
}
.tl-date-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-date-btn .tl-icon { color: var(--ink-faint); }
.tl-date-btn:hover { border-color: var(--ink-faint); }
.tl-daterange.open .tl-date-btn { border-color: var(--accent); }
.tl-pop {
	position: absolute; left: 0; top: calc(100% + 8px); z-index: 40; width: min(330px, calc(100vw - 32px));
	background: var(--surface-2); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 16px;
}
.tl-pop-head { display: grid; gap: 2px; margin-bottom: 12px; }
.tl-pop-range { font: 600 22px/1.2 var(--font-heading); text-transform: uppercase; color: var(--accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.tl-cal-nav button { width: 34px; height: 34px; background: none; border: 1px solid var(--line); color: var(--ink); cursor: pointer; font-size: 18px; }
.tl-cal-nav button:hover { border-color: var(--accent); color: var(--accent); }
.tl-cal-title { font: 600 16px var(--font-heading); text-transform: uppercase; letter-spacing: .04em; }
.tl-cal-weekdays, .tl-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.tl-cal-weekdays span { text-align: center; font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; color: var(--ink-faint); padding-bottom: 4px; }
.tl-day {
	aspect-ratio: 1; display: grid; place-items: center; padding: 0;
	background: var(--bg); border: 1px solid var(--line); color: var(--ink); font: 16px var(--font-body); cursor: pointer;
	-webkit-user-select: none; user-select: none; touch-action: none; -webkit-touch-callout: none;
}
.tl-day:hover:not(:disabled) { border-color: var(--accent); }
.tl-day.is-blank { visibility: hidden; }
.tl-day:disabled { color: var(--ink-faint); background: transparent; border-color: var(--line-soft); cursor: default; }
.tl-day.is-on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.tl-day.is-today { box-shadow: inset 0 0 0 1px var(--ink-soft); }
.tl-legend { display: flex; gap: 16px; margin-top: 12px; }
.tl-legend span { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.tl-legend i { width: 10px; height: 10px; background: var(--accent); }
.tl-legend i.free { background: var(--bg); border: 1px solid var(--line); }

/* Results */
.tl-results { margin-top: 34px; }
.tl-results-bar { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.tl-results-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.tl-results-meta strong { color: var(--ink); font-weight: 500; }
.tl-result-list { list-style: none; margin: 0; padding: 0; }
.tl-result { border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr; align-items: center; transition: background-color .15s ease; }
.tl-result:hover { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.tl-result-main { display: grid; gap: 10px 24px; grid-template-columns: 1fr; padding: 18px 8px; color: inherit; text-decoration: none; }
.tl-result-main:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.tl-result-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 8px 18px; }
.tl-result-actions .tl-btn { min-width: 76px; justify-content: center; }
/* Result rows lay out by the width of the results box, not the screen, so the narrow homepage demo stacks properly. */
.tl-results { container: results / inline-size; }
/* Contact, pencil and save sit under the details until there's room for one line (3.6). */
@container results (min-width: 700px) {
	.tl-result-main { padding-bottom: 12px; }
}
@container results (min-width: 1080px) {
	.tl-result { grid-template-columns: minmax(0, 1fr) auto; }
	.tl-result-main { padding-bottom: 18px; }
	.tl-result-actions { padding: 18px 8px; flex-wrap: nowrap; }
}
.tl-result-name { font: 600 22px/1.1 var(--font-heading); text-transform: uppercase; color: var(--ink); display: block; }
.tl-result-sub { display: block; color: var(--ink-soft); font-size: 16px; margin-top: 4px; }
.tl-avail { display: grid; gap: 6px; min-width: 130px; }
.tl-avail-text { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
.tl-avail-bar { display: flex; gap: 2px; height: 6px; }
.tl-avail-bar i { flex: 1 1 0; background: var(--accent); min-width: 2px; }
@container results (min-width: 700px) { .tl-result-main { grid-template-columns: minmax(150px, 1fr) minmax(0, 1.3fr) auto; align-items: center; } }
.tl-results-foot { margin: 14px 0 0; font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; color: var(--ink-faint); }
.tl-empty { padding: 28px 0; color: var(--ink-soft); }
.tl-empty strong { display: block; color: var(--ink); font: 600 22px var(--font-heading); text-transform: uppercase; margin-bottom: 6px; }

/* --------------------------------------------------------------- Public profile */
.tl-profile { display: grid; gap: 28px; margin-top: 8px; }
@media (min-width: 900px) { .tl-profile { grid-template-columns: 1fr 360px; align-items: start; } }
.tl-profile-head { padding-bottom: 24px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.tl-profile-head h1 { font-size: var(--fs-h1); margin-bottom: 12px; }
.tl-section-label { margin: 0 0 12px; color: var(--ink-faint); }
.tl-gear-group + .tl-gear-group { margin-top: 18px; }
.tl-gear-group .tl-meta { display: block; margin-bottom: 8px; }
.tl-block + .tl-block { margin-top: 36px; }
.tl-booked { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 24px; }
.tl-booked li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); break-inside: avoid; }
.tl-booked li::before { content: ""; width: 8px; height: 8px; background: var(--surface-3); border: 1px solid var(--ink-faint); flex: 0 0 auto; }
.tl-contact { position: static; }
@media (min-width: 900px) { .tl-profile > .tl-contact { position: sticky; top: 88px; } }
@media (min-width: 900px) { .tl-profile > .tl-contact { margin-top: clamp(32px, 6vw, 64px); } }
.tl-contact-list { list-style: none; margin: 0 0 20px; padding: 0; }
.tl-contact-list li { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.tl-contact-list a { color: var(--ink); text-decoration: none; font-size: 18px; word-break: break-word; }
.tl-contact-list a:hover { color: var(--accent); }
.tl-contact-actions { display: grid; gap: 10px; }
.tl-preview-banner { background: var(--surface-2); border: 1px dashed var(--line-strong); padding: 12px 16px; margin: 20px 0 0; font-size: 16px; color: var(--ink-soft); }
.tl-report { margin-top: 48px; }
.tl-report summary { cursor: pointer; color: var(--ink-faint); font-size: 14px; display: inline-flex; gap: 8px; align-items: center; }
.tl-report summary:hover { color: var(--ink-soft); }
.tl-report[open] summary { margin-bottom: 18px; }

/* --------------------------------------------------------------- Profile editor */
.tl-editor { display: grid; gap: 28px; }
@media (min-width: 1000px) { .tl-editor { grid-template-columns: 1fr 300px; align-items: start; } }
.tl-side { display: grid; gap: 20px; }
@media (min-width: 1000px) { .tl-side { position: sticky; top: 88px; } }
.tl-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tl-checklist li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-soft); font-size: 16px; }
.tl-checklist li::before { content: ""; width: 14px; height: 14px; border: 1px solid var(--ink-faint); margin-top: 3px; flex: 0 0 auto; }
.tl-checklist li.done { color: var(--ink); }
.tl-checklist li.done::before { background: var(--accent); border-color: var(--accent); }
.tl-gear-pick .tl-gta-panel { position: static; box-shadow: none; max-height: 420px; margin-top: 8px; }
.tl-avail-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.tl-avail-tools .tl-field { flex: 1 1 150px; }
.tl-cal-months { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.tl-cal-months .tl-cal-title { display: block; margin-bottom: 8px; }
.tl-cal-more { margin-top: 14px; }
.tl-sticky-save {
	position: sticky; bottom: 0; z-index: 20; margin-top: 8px;
	background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(6px);
	border-top: 1px solid var(--line); padding: 14px 0;
}

/* --------------------------------------------------------------- Auth pages */
.tl-auth { max-width: 520px; margin: clamp(32px, 7vw, 72px) auto 0; }
.tl-auth h1 { font-size: var(--fs-h2); }
.tl-auth .tl-card { margin-top: 24px; }
.tl-auth-alt { margin-top: 22px; color: var(--ink-soft); text-align: center; }

/* --------------------------------------------------------------- Moderation */
.tl-mod { display: grid; gap: 28px; padding-top: 28px; }
@media (min-width: 1000px) { .tl-mod { grid-template-columns: 220px 1fr; align-items: start; } }
.tl-mod-nav { display: flex; gap: 1px; overflow-x: auto; border: 1px solid var(--line); background: var(--line); }
.tl-mod-nav a {
	display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; white-space: nowrap;
	background: var(--bg); color: var(--ink-soft); text-decoration: none;
	font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
}
.tl-mod-nav a:hover { color: var(--ink); background: var(--surface); }
.tl-mod-nav a[aria-current="page"] { color: var(--accent); background: var(--surface); box-shadow: inset 3px 0 0 var(--accent); }
.tl-mod-nav .tl-sep { display: none; }
@media (min-width: 1000px) {
	.tl-mod-nav { flex-direction: column; position: sticky; top: 88px; }
	.tl-mod-nav .tl-sep { display: block; background: var(--bg); padding: 16px 14px 6px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
}
.tl-mod-main { min-width: 0; }
.tl-mod-head { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: end; justify-content: space-between; margin-bottom: 22px; }
.tl-mod-head h1 { font-size: var(--fs-h2); margin: 0; }
.tl-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 28px; }
@media (min-width: 760px) { .tl-kpis { grid-template-columns: repeat(4, 1fr); } }
.tl-kpi { background: var(--bg); padding: 16px 18px; text-decoration: none; color: inherit; display: block; }
a.tl-kpi:hover { background: var(--surface); }
.tl-kpi b { display: block; font: 600 var(--fs-h3)/1 var(--font-heading); color: var(--ink); margin-bottom: 6px; }
.tl-kpi span { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.tl-kpi.is-alert b { color: var(--pending); }

.tl-queue { display: grid; gap: 14px; }
.tl-app {
	display: grid; gap: 16px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--pending);
}
@media (min-width: 900px) { .tl-app { grid-template-columns: 1fr auto; align-items: center; } }
.tl-app h3 { font-size: 22px; margin: 0 0 4px; }
.tl-app h3 a { color: var(--ink); text-decoration: none; }
.tl-app h3 a:hover { color: var(--accent); }
.tl-app-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 16px; color: var(--ink-soft); }
.tl-app-facts .tl-status { font-size: 12px; }
.tl-app-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tl-app-actions form { margin: 0; }
.tl-reject { position: relative; }
.tl-reject > summary { list-style: none; }
.tl-reject > summary::-webkit-details-marker { display: none; }
.tl-reject-panel { margin-top: 12px; display: grid; gap: 12px; padding: 16px; background: var(--surface-2); border: 1px solid var(--line); min-width: min(360px, 80vw); }
@media (min-width: 900px) { .tl-reject-panel { position: absolute; right: 0; top: 100%; z-index: 30; box-shadow: var(--shadow); } }
.tl-done-state { padding: 36px 24px; text-align: center; border: 1px dashed var(--line-strong); color: var(--ink-soft); }
.tl-done-state strong { display: block; font: 600 22px var(--font-heading); text-transform: uppercase; color: var(--ink); margin-bottom: 6px; }

.tl-table-wrap { overflow-x: auto; border: 1px solid var(--line); position: relative; }
.tl-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.tl-table th { text-align: left; font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); font-weight: 500; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--surface); white-space: nowrap; }
.tl-table td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.tl-table tr:last-child td { border-bottom: 0; }
.tl-table tbody tr:hover td { background: color-mix(in srgb, var(--ink) 3%, transparent); }
.tl-table td a { color: var(--ink); text-decoration: none; }
.tl-table td a:hover { color: var(--accent); }
.tl-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.tl-table input.tl-input, .tl-table select.tl-select { min-height: 40px; padding-top: 8px; padding-bottom: 8px; font-size: 16px; }

.tl-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.tl-filters form { display: flex; gap: 8px; flex: 1 1 260px; max-width: 420px; }
.tl-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.tl-pill { padding: 8px 12px; border: 1px solid var(--line); color: var(--ink-soft); text-decoration: none; font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.tl-pill:hover { color: var(--ink); border-color: var(--ink-faint); }
.tl-pill[aria-current="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.tl-timeline { list-style: none; margin: 0; padding: 0; }
.tl-timeline li { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: 16px; }
.tl-timeline time { color: var(--ink-faint); font-family: var(--font-mono); font-size: 12px; white-space: nowrap; }
.tl-timeline .tl-detail { grid-column: 1 / -1; color: var(--ink-soft); font-size: 14px; }

.tl-two { display: grid; gap: 28px; }
@media (min-width: 1100px) { .tl-two { grid-template-columns: 1fr 340px; align-items: start; } }
.tl-panel-title { font-size: 22px; margin-bottom: 14px; }
.tl-kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; font-size: 16px; }
.tl-kv dt { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); padding-top: 3px; }
.tl-kv dd { margin: 0; word-break: break-word; }

.tl-chart { width: 100%; height: auto; display: block; }
.tl-chart text { font-family: var(--font-mono); font-size: 12px; fill: var(--ink-faint); }
.tl-chart .bar { fill: var(--accent); }
.tl-chart .bar-2 { fill: var(--surface-3); }
.tl-chart .grid { stroke: var(--line-soft); }
.tl-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tl-bars li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 16px; }
.tl-bars meter { grid-column: 1 / -1; width: 100%; height: 6px; }
meter { -webkit-appearance: none; appearance: none; background: var(--surface-3); border: 0; }
meter::-webkit-meter-bar { background: var(--surface-3); border: 0; border-radius: 0; height: 6px; }
meter::-webkit-meter-optimum-value, meter::-webkit-meter-suboptimum-value { background: var(--accent); border-radius: 0; }
meter::-moz-meter-bar { background: var(--accent); }

.tl-danger-zone { border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.tl-danger-zone .tl-card-title { color: var(--danger); }
.tl-code { font-family: var(--font-mono); font-size: 12px; background: var(--bg); border: 1px solid var(--line); padding: 12px; white-space: pre-wrap; max-height: 240px; overflow: auto; color: var(--ink-soft); }

/* --------------------------------------------------------------- Prose (privacy) */
.tl-prose { max-width: 70ch; }
.tl-prose h2 { font-size: 28px; margin-top: 40px; }
.tl-prose p, .tl-prose li { color: var(--ink-soft); }
.tl-prose ul { padding-left: 20px; }

/* --------------------------------------------------------------- Install prompt */
.tl-install { position: fixed; right: 16px; bottom: 16px; z-index: 60; background: var(--surface-2); box-shadow: var(--shadow); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
@media print {
	.tl-header, .tl-footer, .tl-report, .tl-contact-actions { display: none; }
	body { background: #fff; color: #000; }
}

/* --------------------------------------------------------------- Utilities */
.tl-mt-s { margin-top: 12px; }
.tl-mt { margin-top: 24px; }
.tl-mt-l { margin-top: 40px; }
.tl-mb-0 { margin-bottom: 0; }
.tl-center { text-align: center; }
code { font-family: var(--font-mono); font-size: .88em; background: var(--surface-2); border: 1px solid var(--line); padding: 1px 6px; }
/* Availability editor: allow vertical scrolling over the calendar on phones;
   taps and sideways drags still mark days. */
.tl-cal-months .tl-day { touch-action: pan-y; }

/* --------------------------------------------------------------- Pre-launch demo */
.tl-demo { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 4%, var(--bg)), var(--bg) 60%); }
.tl-demo-head { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; }
.tl-demo-head .tl-lead { margin: 0; }
.tl-demo-badge {
	display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px dashed var(--accent-line);
	font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
}
.tl-demo-badge::before { content: ""; width: 7px; height: 7px; background: var(--accent); }
.tl-steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.tl-steps li { background: var(--bg); padding: 26px 24px; }
.tl-steps h3 { font-size: 22px; margin-bottom: 8px; }
.tl-steps p { color: var(--ink-soft); margin: 0; }
@media (min-width: 860px) { .tl-steps { grid-template-columns: repeat(3, 1fr); } }
.tl-demo-cal { display: grid; gap: 24px; align-items: start; }
.tl-demo-cal h3 { font-size: 22px; }
.tl-demo-cal-form .tl-cal-months { grid-template-columns: minmax(0, 420px); }
@media (min-width: 860px) { .tl-demo-cal { grid-template-columns: 1fr 1fr; } }
.tl-faq details { border-bottom: 1px solid var(--line); }
.tl-faq details:first-child { border-top: 1px solid var(--line); }
.tl-faq summary {
	cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative;
	font: 600 22px/1.2 var(--font-heading); text-transform: uppercase; letter-spacing: 0;
}
.tl-faq summary::-webkit-details-marker { display: none; }
.tl-faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font: 400 28px/1 var(--font-mono); color: var(--accent); }
.tl-faq details[open] summary::after { content: "–"; }
.tl-faq details p { color: var(--ink-soft); margin: 0 0 20px; max-width: 62ch; }
.tl-actions-center { justify-content: center; }
.tl-center-block { margin-left: auto; margin-right: auto; text-align: center; }

/* Dialog (demo profile) */
.tl-dialog {
	width: min(920px, calc(100vw - 24px)); max-height: calc(100vh - 48px); padding: 0;
	background: var(--bg); color: var(--ink); border: 1px solid var(--line-strong); box-shadow: var(--shadow);
}
.tl-dialog::backdrop { background: rgba(5, 6, 8, .72); backdrop-filter: blur(3px); }
.tl-dialog-bar { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
[data-demo-profile] { padding: 8px clamp(18px, 4vw, 36px) 32px; }
/* 5.0.13: Now book the kit — the houses to ring once crew is booked (job panel, booking page, and a one-off pop-up) */
.tl-kitcall-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tl-kitcall-house { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px 16px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); }
.tl-kitcall-who { display: grid; gap: 3px; min-width: 0; }
.tl-kitcall-who b { font-size: 1.05rem; }
.tl-kitcall-who span { color: var(--ink-soft); font-size: .9rem; overflow-wrap: anywhere; }
.tl-kitcall-btn { flex: none; font-variant-numeric: tabular-nums; }
.tl-kitcall-none { font-size: .85rem; }
.tl-kitcall-pop { width: min(480px, calc(100vw - 24px)); }
.tl-kitcall-body { padding: 26px clamp(18px, 5vw, 30px) 22px; }
.tl-kitcall-body h2 { margin: 4px 0 8px; }
.tl-kitcall-body .tl-help { margin-bottom: 18px; }
.tl-kitcall-foot { display: flex; justify-content: flex-end; margin-top: 18px; }
.tl-bk-kit { margin-top: 16px; }
@media (max-width: 480px) { .tl-kitcall-house { flex-direction: column; align-items: stretch; } .tl-kitcall-btn { justify-content: center; } }
[data-demo-profile] .tl-profile-head { margin-bottom: 22px; padding-top: 18px; }
[data-demo-profile] h2 { font-size: var(--fs-h2); margin-bottom: 8px; }
.tl-dialog-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .tl-dialog-grid { grid-template-columns: 1fr 300px; align-items: start; } }
.tl-dialog .tl-booked { columns: 1; }
@media (min-width: 560px) { .tl-dialog .tl-booked { columns: 2; } }

/* ---------------------------------------------------------- Two-step login */
.tl-input-code { font-family: var(--font-mono); font-size: 22px; letter-spacing: .12em; max-width: 14ch; }
.tl-field-end { align-self: end; }
.tl-setup-steps { list-style: none; counter-reset: s; padding: 0; margin: 16px 0 0; display: grid; gap: 24px; }
.tl-setup-steps > li { counter-increment: s; position: relative; padding-left: 44px; }
.tl-setup-steps > li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 2px; font-family: var(--font-mono); font-size: 12px; color: var(--accent); border: 1px solid var(--line-strong, var(--line)); padding: 2px 6px; }
.tl-setup-steps h3 { margin: 0 0 4px; font-size: 16px; }
.tl-qr-row { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; margin-top: 12px; }
.tl-qr-box { line-height: 0; width: max-content; }
.tl-qr-box svg { width: 200px; height: 200px; display: block; }
.tl-secret code { font-size: 16px; letter-spacing: .08em; word-break: break-all; }
.tl-recovery { list-style: none; padding: 0; margin: 12px 0 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.tl-recovery code { display: block; text-align: center; font-size: 16px; padding: 6px 8px; }
details.tl-auth-alt summary { cursor: pointer; color: var(--ink-soft); }
details.tl-auth-alt[open] summary { margin-bottom: 8px; }
.tl-mono { font-family: var(--font-mono); font-size: 13px; }
.tl-card-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------------------------------------------------------- System */
.tl-checks { list-style: none; padding: 0; margin: 12px 0 0; }
.tl-checks li { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: 16px; align-items: baseline; }
.tl-check-mark { font-weight: 700; }
.tl-checks .is-ok .tl-check-mark { color: var(--ok); }
.tl-checks .is-bad { color: var(--danger); }
.tl-checks .tl-faint { font-family: var(--font-mono); font-size: 12px; }
/* Team page: "Staying anonymous" — longer explanations sit under each check. */
.tl-anon > summary { cursor: pointer; }
.tl-anon > summary .tl-card-title { display: inline; margin: 0; }
.tl-anon > summary .tl-status { margin-left: 8px; vertical-align: middle; }
.tl-anon .tl-checks li { grid-template-columns: 22px minmax(0, 1fr); row-gap: 2px; }
.tl-anon .tl-checks .tl-faint { grid-column: 2; font-family: inherit; font-size: 14px; color: var(--ink-soft); }
.tl-anon .tl-checks .is-bad { color: inherit; }
.tl-anon .tl-checks .is-bad .tl-check-mark, .tl-anon .tl-checks .is-bad > span:nth-child(2) { color: var(--danger); }
@media (max-width: 600px) { .tl-checks li { grid-template-columns: 22px 1fr; } .tl-checks .tl-faint { grid-column: 2; } }

/* ---------------------------------------------------------- Get the app */
.tl-install-now { margin: 8px 0 24px; }
.tl-install-now .tl-help { margin-top: 8px; }
.tl-platforms { display: grid; gap: 12px; }
/* Guides page */
.tl-guides { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.tl-guide { display: flex; flex-direction: column; gap: 10px; }
.tl-guide h2 { margin: 0; font-size: 1.15rem; }
.tl-guide p { margin: 0; flex: 1; }
.tl-guide .tl-btn { align-self: flex-start; }
.tl-platform { padding: 0; }
.tl-platform summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; font-family: var(--font-heading); font-weight: 600; font-size: 22px; text-transform: uppercase; letter-spacing: 0; }
.tl-platform summary::-webkit-details-marker { display: none; }
.tl-platform summary::after { content: "+"; font-family: var(--font-mono); color: var(--accent); margin-left: auto; }
.tl-platform[open] summary::after { content: "–"; }
.tl-platform .tl-meta { margin-left: auto; color: var(--accent); }
.tl-platform-name { display: inline-flex; align-items: center; gap: 10px; }
.tl-platform > :not(summary) { margin: 0 20px 18px; }
.tl-install-steps { padding-left: 22px; display: grid; gap: 8px; }
.tl-install-steps .tl-icon { vertical-align: -2px; color: var(--accent); }
.tl-section-sm { margin-top: 40px; }
.tl-h3 { font-family: var(--font-heading); font-weight: 600; text-transform: uppercase; font-size: 22px; letter-spacing: 0; margin: 0 0 12px; }
.tl-ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.tl-ticks li { position: relative; padding-left: 26px; color: var(--ink-soft); }
.tl-ticks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 10px; height: 10px; background: var(--accent); }
.tl-app-recheck { margin: 4px 0 6px; font-size: 14px; color: var(--ink-soft); }
.tl-copy-fields { margin-top: 16px; border-top: 1px solid var(--line-soft); padding-top: 12px; }
.tl-copy-fields summary { cursor: pointer; font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); padding: 6px 0; }
.tl-copy-fields[open] summary { margin-bottom: 12px; }
.tl-copy-fields .tl-field + .tl-field { margin-top: 14px; }

/* ---------------------------------------------------------- Pre-launch: hero card, tour, closing */
.tl-hero-card { border-bottom: 0; padding-bottom: clamp(24px, 5vw, 56px); }
.tl-hero-box { max-width: 760px; margin: 0 auto; text-align: center; border: 1px solid var(--line-strong); padding: clamp(28px, 6vw, 56px) clamp(20px, 6vw, 60px); }
.tl-hero-card h1 { font-size: var(--fs-h1); line-height: 1.04; max-width: none; margin: 0 auto 26px; text-wrap: balance; }
.tl-hero-card .tl-lead { margin: 0 auto 16px; max-width: 54ch; }
.tl-hero-card .tl-lead a { color: var(--accent); text-underline-offset: 3px; }
.tl-counter { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0; color: var(--ink-faint); margin: 8px 0 0; }
.tl-hero-card .tl-actions { margin-top: 28px; }

.tl-tour { padding: clamp(32px, 6vw, 72px) 0 clamp(24px, 4vw, 48px); }
.tl-tour-intro { text-align: center; color: var(--ink-soft); font-size: clamp(22px, 3vw, 30px); letter-spacing: .04em; margin: 0 0 12px; }
.tl-tour-note { text-align: center; color: var(--ink-faint); font-size: 14px; margin: 0 0 clamp(36px, 6vw, 64px); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; }
.tl-tour-note .tl-demo-badge { padding: 5px 10px; }
.tl-tour-row { display: grid; gap: clamp(20px, 3vw, 28px); align-items: start; padding: clamp(28px, 5vw, 56px) 0; border-top: 1px solid var(--line-soft); }
.tl-tour-row:first-of-type { border-top: 0; padding-top: 0; }
@media (min-width: 900px) {
	.tl-tour-row { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; }
	.tl-tour-row.is-flipped { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
	.tl-tour-row.is-flipped .tl-tour-copy { order: 2; }
	.tl-tour-copy { position: sticky; top: 96px; }
}
.tl-tour-num { display: block; font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; color: var(--accent); margin-bottom: 12px; }
.tl-tour-copy h3 { font-size: var(--fs-h3); line-height: 1.08; margin: 0 0 14px; text-wrap: balance; }
.tl-tour-copy p { color: var(--ink-soft); font-size: 18px; line-height: 1.65; margin: 0; max-width: 46ch; }
.tl-tour-widget { min-width: 0; }
.tl-search-single .tl-panel { margin-top: 0; }

/* Shuffle example */
.tl-shuffle-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.tl-shuffle-list { list-style: none; margin: 0 0 12px; padding: 0; counter-reset: r; }
.tl-shuffle-list li { counter-increment: r; border-top: 1px solid var(--line-soft); }
.tl-shuffle-list li:last-child { border-bottom: 1px solid var(--line-soft); }
.tl-shuffle-item { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; padding: 12px 4px; }
.tl-shuffle-item::before { content: counter(r, decimal-leading-zero); font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); }
.tl-shuffle-item:hover .tl-shuffle-name, .tl-shuffle-item:focus-visible .tl-shuffle-name { color: var(--accent); }
.tl-shuffle-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tl-shuffle-name { font-weight: 600; font-size: 16px; }
.tl-shuffle-list.is-shuffled li { animation: tl-shuffle-in .35s ease both; }
.tl-shuffle-list.is-shuffled li:nth-child(2) { animation-delay: .04s; }
.tl-shuffle-list.is-shuffled li:nth-child(3) { animation-delay: .08s; }
.tl-shuffle-list.is-shuffled li:nth-child(4) { animation-delay: .12s; }
.tl-shuffle-list.is-shuffled li:nth-child(5) { animation-delay: .16s; }
@keyframes tl-shuffle-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tl-shuffle-list.is-shuffled li { animation: none; } }

/* Calendar example sits in a narrower column here */
.tl-tour-widget .tl-demo-cal { grid-template-columns: 1fr; }

/* Sign-up peek */
.tl-peek-list { margin: 12px 0 22px; display: grid; gap: 0; }
.tl-peek-list > div { display: grid; grid-template-columns: 120px 1fr; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.tl-peek-list dt { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.tl-peek-list dd { margin: 0; color: var(--ink-faint); }

.tl-closing { padding: clamp(32px, 6vw, 72px) 0 clamp(56px, 9vw, 110px); text-align: center; border-top: 1px solid var(--line); }
.tl-closing-line { font: 600 var(--fs-h3)/1.25 var(--font-heading); text-transform: uppercase; letter-spacing: 0; max-width: 26ch; margin: 0 auto 28px; text-wrap: balance; }
.tl-peek-profile { margin-top: 0; } .tl-peek-profile dd { color: var(--ink-soft); }
.tl-inline-form { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.tl-input-sm { padding: 6px 8px; font-size: 14px; max-width: 160px; min-height: 0; }
.tl-filter-row { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.tl-filter-row .tl-select { max-width: 280px; }

/* ---------------------------------------------------------- Pre-launch: click-through presentation */
.tl-deck-wrap { padding: clamp(28px, 6vw, 72px) 0 clamp(16px, 3vw, 32px); }
.tl-deck { border: 1px solid var(--line-strong); background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 70%, transparent), transparent); padding: clamp(24px, 5vw, 56px); outline: none; }
.tl-slide { display: grid; gap: clamp(24px, 4vw, 48px); align-items: center; }
.tl-slide + .tl-slide { border-top: 1px solid var(--line-soft); margin-top: 32px; padding-top: 32px; }
.tl-deck.is-ready .tl-slide + .tl-slide { border-top: 0; margin-top: 0; padding-top: 0; }
.tl-deck.is-ready .tl-slide[hidden] { display: none; }
.tl-deck.is-ready .tl-slide.is-active { animation: tl-slide-in .35s ease both; }
@keyframes tl-slide-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@media (min-width: 900px) {
	.tl-slide { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
	.tl-deck.is-ready .tl-deck-slides { min-height: 340px; display: grid; align-items: center; }
}
.tl-slide-num { display: block; font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; color: var(--accent); margin-bottom: 18px; }
.tl-slide-num i { font-style: normal; color: var(--ink-faint); padding: 0 4px; }
.tl-slide h1, .tl-slide h2 { font-size: var(--fs-h1); line-height: 1; margin: 0 0 20px; max-width: 16ch; text-wrap: balance; }
.tl-slide .tl-lead { margin: 0; max-width: 46ch; }
.tl-slide .tl-lead a { color: var(--accent); text-underline-offset: 3px; }
.tl-slide .tl-actions { margin-top: 28px; }
.tl-slide .tl-counter { margin-top: 16px; }
.tl-deck-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: clamp(24px, 4vw, 40px); padding-top: 18px; border-top: 1px solid var(--line-soft); }
.tl-deck-nav [disabled] { opacity: .35; pointer-events: none; }
.tl-deck-nav .is-done { visibility: hidden; }
.tl-deck-dots { display: flex; gap: 8px; }
.tl-deck-dot { width: 28px; height: 6px; border: 0; padding: 0; background: var(--line-strong); cursor: pointer; transition: background .2s, width .2s; }
.tl-deck-dot.is-active { background: var(--accent); width: 44px; }
.tl-deck-dot:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* slide pictures */
.tl-slide-art { display: flex; justify-content: center; }
.tl-art-brand { display: grid; gap: 14px; justify-items: center; }
.tl-art-brand .tl-wordmark { font-size: clamp(30px, 4.4vw, 48px); gap: .4em; }
.tl-art-brand .tl-wm-dots { gap: .14em; }
.tl-art-brand .tl-wm-dots i { width: .18em; height: .18em; }
.tl-art-tag { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.tl-art-search, .tl-art-check, .tl-art-goal { border: 1px solid var(--line); background: var(--bg); padding: 22px 24px; width: 100%; max-width: 380px; }
.tl-art-search { display: grid; gap: 10px; }
.tl-art-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.tl-art-result { display: flex; align-items: center; gap: 8px; margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--line-soft); color: var(--accent); font-weight: 600; }
.tl-art-shuffle { list-style: none; margin: 0; padding: 0; width: 100%; max-width: 360px; display: grid; gap: 8px; counter-reset: s; }
.tl-art-shuffle li { counter-increment: s; display: flex; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); background: var(--bg); font-weight: 600; }
.tl-art-shuffle li::before { content: counter(s, decimal-leading-zero); font-family: var(--font-mono); font-size: 12px; color: var(--accent); }
/* positions stay put; the names swap places */
.tl-art-shuffle li { height: 52px; box-sizing: border-box; }
.tl-art-shuffle li span { display: block; }
.tl-slide.is-active .tl-art-shuffle li:nth-child(1) span { animation: tl-shuf-a 2.6s ease-in-out .4s both; }
.tl-slide.is-active .tl-art-shuffle li:nth-child(3) span { animation: tl-shuf-b 2.6s ease-in-out .4s both; }
@keyframes tl-shuf-a { 0%, 30% { transform: none; } 55%, 100% { transform: translateY(120px); } }
@keyframes tl-shuf-b { 0%, 30% { transform: none; } 55%, 100% { transform: translateY(-120px); } }
@media (prefers-reduced-motion: reduce) { .tl-slide.is-active .tl-art-shuffle li span, .tl-deck.is-ready .tl-slide.is-active { animation: none; } }
.tl-art-check { display: flex; align-items: center; gap: 16px; font-family: var(--font-heading); font-size: 22px; text-transform: uppercase; letter-spacing: 0; }
.tl-art-tick { display: grid; place-items: center; width: 52px; height: 52px; flex: none; background: var(--accent); color: var(--accent-ink); }
.tl-art-goal { display: grid; gap: 8px; justify-items: start; }
.tl-art-big { font-family: var(--font-heading); font-weight: 600; font-size: clamp(64px, 9vw, 112px); line-height: .9; color: var(--accent); }
.tl-art-big i { font-style: normal; color: var(--ink-faint); font-size: .5em; }
@media (max-width: 899px) { .tl-slide-art { justify-content: flex-start; } .tl-art-brand { justify-items: start; } }
/* Phones: a stories-style bar on top (back · progress · next), slides at their natural height, decorative art dropped. */
@media (max-width: 599px) {
	.tl-deck-wrap { padding-top: 16px; }
	.tl-deck { padding: 18px 16px 22px; }
	.tl-deck.is-ready { display: flex; flex-direction: column; }
	.tl-deck.is-ready .tl-deck-nav { order: -1; flex-wrap: nowrap; gap: 10px; margin: 0 0 22px; padding: 0 0 14px; border-top: 0; border-bottom: 1px solid var(--line-soft); }
	.tl-deck-nav .tl-btn { min-height: 40px; padding: 0 14px; flex: none; }
	.tl-deck-nav [disabled] { visibility: hidden; }
	.tl-deck-btn-text { display: none; }
	.tl-deck-dots { flex: 1 1 auto; gap: 4px; justify-content: stretch; }
	.tl-deck-dot, .tl-deck-dot.is-active { flex: 1 1 0; width: auto; height: 24px; background: linear-gradient(var(--line-strong), var(--line-strong)) center / 100% 3px no-repeat; }
	.tl-deck-dot.is-active { background-image: linear-gradient(var(--accent), var(--accent)); }
	.tl-deck.is-ready .tl-slide-num { display: none; }
	.tl-deck.is-ready .tl-slide.is-active { animation-name: tl-slide-fade; }
	.tl-slide { gap: 22px; }
	.tl-slide h1, .tl-slide h2 { font-size: var(--fs-h3); margin-bottom: 14px; }
	.tl-slide .tl-lead { font-size: 16px; }
	.tl-slide-art.is-decor { display: none; }
	.tl-art-search { padding: 16px; gap: 8px; max-width: none; }
	.tl-art-search .tl-tag { font-size: 12px; min-height: 26px; padding: 0 8px; }
	.tl-art-chips { margin-bottom: 2px; }
	.tl-art-result { padding-top: 10px; font-size: 14px; }
	.tl-art-shuffle { max-width: none; gap: 6px; }
	.tl-art-shuffle li { height: 44px; padding: 0 14px; }
	.tl-slide .tl-actions { margin-top: 22px; display: grid; gap: 10px; }
	.tl-slide .tl-actions .tl-btn { width: 100%; }
}
@keyframes tl-slide-fade { from { opacity: 0; } to { opacity: 1; } }

/* --------------------------------------------------------------- Free to use (3.5) */
.tl-free { padding: clamp(48px, 8vw, 96px) 0; border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); }
.tl-free.is-compact { padding: clamp(36px, 6vw, 64px) 0; margin-top: clamp(24px, 4vw, 48px); }
.tl-free-grid { display: grid; gap: clamp(28px, 4vw, 48px); align-items: center; }
@media (min-width: 900px) { .tl-free-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; } }
.tl-free-copy h2 { font-size: var(--fs-h2); text-wrap: balance; margin-bottom: 18px; }
.tl-free-copy p { color: var(--ink-soft); font-size: 18px; line-height: 1.7; max-width: 58ch; text-wrap: pretty; }
.tl-free-copy p:last-of-type { margin-bottom: 0; }
.tl-free-copy .tl-actions { margin-top: 26px; }
.tl-free-card { background: var(--surface-2); border: 1px solid var(--line); padding: clamp(24px, 3vw, 36px); }
.tl-free-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.tl-free-amount { font: 600 clamp(60px, 8vw, 88px)/.9 var(--font-display); color: var(--accent); letter-spacing: -.01em; }
.tl-free-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.tl-free-points li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 16px; line-height: 1.45; }
.tl-free-points .tl-icon { color: var(--accent); margin-top: 3px; }

/* --------------------------------------------------------------- 3.5: quick picks, sharing, type */
.tl-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tl-quick button {
	min-height: 34px; padding: 0 10px; cursor: pointer;
	background: transparent; border: 1px solid var(--line); color: var(--ink-soft);
	font: 500 12px/1 var(--font-mono); letter-spacing: 0; text-transform: uppercase;
	transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.tl-quick button:hover { border-color: var(--accent-line); color: var(--ink); }
.tl-quick button[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-hover); }
.tl-quick button[data-avail-quick="clear"] { margin-left: auto; color: var(--ink-faint); }
#availability .tl-quick { margin: 14px 0 18px; }
.tl-search-grid { align-items: start; }
@media (min-width: 760px) { .tl-search-grid { align-items: start; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); } }
.tl-pop-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.tl-results-tools { display: flex; flex-wrap: wrap; gap: 8px; }

/* Body text in IBM Plex Mono: monospace runs wide, so sizes step down a notch and lines get more air. */
body { font-size: 16px; line-height: 1.7; font-kerning: normal; text-rendering: optimizeLegibility; }
.tl-input, .tl-select, .tl-textarea, .tl-date-btn, .tl-gta-input { font-size: 16px; }
.tl-help, .tl-field-error { font-size: 13px; line-height: 1.6; }
.tl-day { font-size: 13px; }
.tl-tag { font-size: 13px; }
.tl-label .tl-opt { font-size: 12px; }
.tl-empty { font-size: 14px; }
p, li, dd { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
:root { --ink-soft: color-mix(in srgb, var(--ink) 78%, transparent); }
.tl-lead { font-size: var(--fs-lead); line-height: 1.7; letter-spacing: -.01em; }
p strong, .tl-lead strong, .tl-help strong { color: var(--ink); font-weight: 600; }
.tl-meta, .tl-results-meta, .tl-counter, .tl-count-badge { font-variant-numeric: tabular-nums; }
.tl-tour-copy p { font-size: 16px; line-height: 1.75; max-width: 52ch; }
.tl-free-copy p { font-size: 16px; line-height: 1.75; max-width: 62ch; }
.tl-free-points li { font-size: 14px; }
.tl-slide .tl-lead { max-width: 44ch; }
/* The homepage demo widgets are narrower than the real search page: stack the date and match fields. */
.tl-tour-widget .tl-search-grid { grid-template-columns: minmax(0, 1fr); }
.tl-segmented label { white-space: nowrap; }

/* 3.18: body text is IBM Plex Mono in normal sentence case — easier to read and
   calmer than the all-capitals of 3.5. Capitals are kept for the short things
   that label and act: labels, eyebrows, buttons, tabs, tags, statuses, menus,
   table headings and meta lines. Headings stay as they are (Oswald). */
body { text-transform: none; letter-spacing: 0; font-size: 16px; line-height: 1.7; }
.tl-lead { font-size: var(--fs-lead); line-height: 1.65; letter-spacing: 0; }
.tl-tour-copy p, .tl-free-copy p { font-size: 16px; line-height: 1.7; }
.tl-slide .tl-lead { font-size: var(--fs-lead); }
.tl-label, .tl-eyebrow, .tl-section-label, .tl-btn, .tl-tab, .tl-tabs, .tl-tag, .tl-status, .tl-pill,
.tl-meta, .tl-opt, .tl-crumbs, .tl-back, .tl-chip-link, .tl-segmented label, .tl-seg a, .tl-date-btn, .tl-quick button,
.tl-count-badge, .tl-demo-badge, .tl-nav-count, .tl-tab-count, .tl-slide-num, .tl-tour-num, .tl-hero-meta,
.tl-results-meta, .tl-results-foot, .tl-kpi span, .tl-legend, .tl-legend-item, .tl-key, .tl-cal-weekdays,
.tl-gta-chip, .tl-gta-group-label, .tl-kit-chips a, .tl-inhouse-badge, .tl-shuffle-item, .tl-suggest-kind,
.tl-idea-kind-tag, .tl-lookalike, .tl-footer-links, .tl-nav, .tl-menu > summary, .tl-mod-nav a,
.tl-table th, .tl-goal-num, .tl-bk-date span, .tl-art-offer-meta, .tl-art-offer-from, .tl-art-result,
.tl-art-tag, .tl-check-mark, .tl-board thead th, table thead th, .tl-dm-appnav, .tl-dm-count, .tl-agenda-when { text-transform: uppercase; }
input, textarea, select, option, .tl-input, .tl-textarea, .tl-select, .tl-gta-input,
code, pre, .tl-mono, [data-keep-case], .tl-flash a { text-transform: none; letter-spacing: normal; }
::placeholder { text-transform: none; letter-spacing: normal; }
/* Email problems, shown to admins in the moderation menu (3.5.3). */
.tl-mod-nav .tl-nav-alert { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; padding: 10px 12px; border: 1px solid color-mix(in srgb, var(--pending) 55%, transparent); background: color-mix(in srgb, var(--pending) 10%, transparent); color: var(--pending); font-size: 12px; letter-spacing: .08em; text-decoration: none; }
.tl-mod-nav .tl-nav-alert:hover { color: var(--pending); border-color: var(--pending); }
.tl-nav-count.tl-nav-warn { background: var(--pending); color: #1a1407; }

/* --------------------------------------------------------------- Bookings (3.6) */
.tl-tab[aria-current="page"] { background: var(--accent); color: var(--accent-ink); }
.tl-tab-count { font-size: 12px; opacity: .7; }
.tl-account-tabs { margin-bottom: 28px; }
.tl-head-row { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: flex-end; justify-content: space-between; }
.tl-head-row > div:first-child { min-width: 0; flex: 1 1 420px; }
.tl-back { margin: 24px 0 -8px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; }
.tl-back a { color: var(--ink-faint); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.tl-back a:hover { color: var(--accent); }
.tl-plain-fieldset { border: 0; padding: 0; margin: 0; }
.tl-plain-fieldset legend { padding: 0; margin-bottom: 8px; }
.tl-pre { white-space: pre-line; }

/* A list of bookings */
.tl-bk-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.tl-bk { border-bottom: 1px solid var(--line); }
.tl-bk-main { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 6px 18px; align-items: center; padding: 16px 8px; color: inherit; text-decoration: none; transition: background-color .15s ease; }
.tl-bk-main:hover { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.tl-bk-main:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.tl-bk-main > .tl-status { grid-column: 2; justify-self: start; }
.tl-bk-date { grid-row: span 2; display: grid; place-items: center; align-content: center; gap: 4px; height: 64px; border: 1px solid var(--line-strong); background: var(--surface); }
.tl-bk-date b { font: 600 22px/1 var(--font-heading); color: var(--ink); white-space: nowrap; }
.tl-bk-date span { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; color: var(--accent); }
.tl-bk-body { display: grid; gap: 3px; min-width: 0; }
.tl-bk-title { font: 600 22px/1.15 var(--font-heading); text-transform: uppercase; color: var(--ink); overflow-wrap: anywhere; }
.tl-bk-sub { color: var(--ink-soft); font-size: 14px; }
.tl-bk-meta { color: var(--ink-faint); font-size: 13px; }
.tl-bk.is-past .tl-bk-date { border-color: var(--line); background: transparent; }
.tl-bk.is-past .tl-bk-date span { color: var(--ink-faint); }
.tl-bk-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 8px 16px 90px; }
@media (min-width: 700px) {
	.tl-bk-main { grid-template-columns: 72px minmax(0, 1fr) auto; }
	.tl-bk-main > .tl-status { grid-column: 3; grid-row: 1 / span 2; justify-self: end; }
	.tl-bk-date { height: 72px; }
	.tl-bk-actions { padding-left: 98px; margin-top: -6px; }
}
@media (max-width: 420px) { .tl-bk-actions { padding-left: 8px; } }
.tl-bk-section { margin-bottom: 36px; }
.tl-bk-waiting .tl-bk-list { border-top-color: var(--pending); }
.tl-bk-waiting .tl-section-label { color: var(--pending); }
.tl-bk-tabs { margin-bottom: 0; border-bottom: 0; }
.tl-bk-tabs + .tl-bk-list, .tl-bk-tabs + .tl-empty { border-top: 1px solid var(--line-strong); }
.tl-bk-tabs + .tl-empty { padding-left: 8px; }

/* One booking */
.tl-bk-head h1 { overflow-wrap: anywhere; }
.tl-bk-when { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.tl-bk-layout { display: grid; gap: 28px; }
@media (min-width: 900px) { .tl-bk-layout { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } .tl-bk-side { position: sticky; top: 88px; } }
.tl-bk-maincol { display: grid; gap: 28px; min-width: 0; }
.tl-bk-maincol > .tl-card + .tl-card { margin-top: 0; }
.tl-bk-reply { border-color: var(--accent-line); }
.tl-bk-reply .tl-notice { margin: 14px 0 0; }
.tl-bk-state { margin: 0; }
.tl-clash { margin: 6px 0 0; padding-left: 18px; }
.tl-clash a { color: var(--ink); }
.tl-bk-kv { margin-bottom: 22px; }
.tl-bk-timeline { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--line-soft); display: grid; gap: 6px; font-size: 13px; color: var(--ink-soft); }
.tl-bk-timeline span { color: var(--ink-faint); margin-right: 8px; }
.tl-bk-change { margin-top: 0; }
.tl-bk-person { margin: 0 0 6px; font-size: 18px; }
.tl-bk-person a { color: var(--ink); }
.tl-bk-side .tl-contact { position: static; }
.tl-bk-tools { display: grid; gap: 10px; margin-top: 16px; }
.tl-bk-fixed { margin: 0; min-height: 48px; display: flex; align-items: center; padding: 0 14px; border: 1px dashed var(--line-strong); color: var(--ink); }

/* The pencil / booking form */
.tl-book { display: grid; gap: 28px; }
@media (min-width: 960px) { .tl-book { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } .tl-book-side { position: sticky; top: 88px; } }
.tl-kind label { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.tl-avail-check { margin: -10px 0 0; font-size: 14px; color: var(--ink-soft); display: flex; gap: 10px; align-items: center; min-height: 1.4em; }
.tl-avail-check:empty { display: none; }
.tl-avail-check::before { content: ""; width: 10px; height: 10px; flex: none; background: var(--ink-faint); }
.tl-avail-check.is-free { color: var(--ok); }
.tl-avail-check.is-free::before { background: var(--ok); }
.tl-avail-check.is-part, .tl-avail-check.is-none { color: var(--pending); }
.tl-avail-check.is-part::before, .tl-avail-check.is-none::before { background: var(--pending); }
.tl-book-steps { list-style: none; counter-reset: s; margin: 20px 0 0; padding: 0; display: grid; gap: 14px; font-size: 14px; color: var(--ink-soft); }
.tl-book-steps li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; gap: 4px 10px; }
.tl-book-steps li::before { content: "0" counter(s); font-family: var(--font-mono); font-size: 12px; color: var(--accent); padding-top: 2px; }
.tl-book-steps strong { color: var(--ink); font-weight: 600; }
.tl-book-side .tl-tags { margin-top: 12px; }

/* Pencil + save on a profile */
.tl-book-cta { display: grid; gap: 10px; padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.tl-save .tl-icon { transition: fill .15s ease; }
.tl-save.is-saved, .tl-save[aria-pressed="true"] { border-color: var(--accent-line); color: var(--accent); }
.tl-save.is-saved .tl-icon, .tl-save[aria-pressed="true"] .tl-icon { fill: currentColor; }

/* Calendar feed */
.tl-feed { display: grid; gap: 16px; }
.tl-feed .tl-card-title { display: flex; gap: 10px; align-items: center; }
.tl-feed-url .tl-input { font-size: 13px; text-transform: none; }

/* My techs */
.tl-crew-check { display: grid; gap: 18px; }
@media (min-width: 900px) { .tl-crew-check { grid-template-columns: 220px minmax(0, 1fr) auto; align-items: end; } .tl-crew-check .tl-daterange { margin: 0; } }
.tl-crew { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.tl-crew-item { display: grid; gap: 12px 24px; padding: 18px 8px 18px 22px; border-bottom: 1px solid var(--line); position: relative; }
.tl-crew-item::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 4px; background: var(--line-strong); }
.tl-crew-item.is-free::before { background: var(--ok); }
.tl-crew-item.is-part::before { background: var(--pending); }
.tl-crew-compact .tl-crew-item::before { display: none; }
.tl-crew-compact .tl-crew-item { padding-left: 8px; }
@media (min-width: 820px) { .tl-crew-item { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }
.tl-crew-main { display: grid; gap: 4px; min-width: 0; }
.tl-crew-name { font: 600 22px/1.1 var(--font-heading); text-transform: uppercase; color: var(--ink); text-decoration: none; }
.tl-crew-name:hover { color: var(--accent); }
.tl-crew-gear { font-size: 13px; color: var(--ink-faint); }
.tl-crew-free { font-size: 14px; color: var(--ink-soft); }
.tl-crew-item.is-free .tl-crew-free { color: var(--ok); }
.tl-crew-item.is-part .tl-crew-free { color: var(--pending); }
.tl-crew-note { display: flex; gap: 8px; align-items: center; margin-top: 8px; max-width: 520px; }
.tl-crew-note .tl-input { min-height: 38px; padding: 6px 10px; font-size: 14px; }
.tl-crew-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* Rental house board */
.tl-board-card { padding: clamp(16px, 3vw, 28px); }
.tl-board-bar { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin-bottom: 16px; }
.tl-board-bar .tl-card-title { margin: 0 auto 0 0; }
.tl-board-filter .tl-select { min-height: 36px; padding-top: 6px; padding-bottom: 6px; font-size: 14px; max-width: 240px; }
.tl-board-nav { display: flex; gap: 6px; }
.tl-board-nav [aria-current="page"] { border-color: var(--accent); color: var(--accent); }
.tl-board-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 12px; color: var(--ink-faint); margin: 0 0 12px; }
.tl-board-legend .tl-cell { width: 18px; height: 18px; font-size: 12px; margin-right: -6px; }
.tl-board-wrap { border-color: var(--line-soft); }
.tl-board { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13px; }
.tl-board th, .tl-board td { padding: 3px; text-align: center; border-bottom: 1px solid var(--line-soft); }
.tl-board thead th { font-family: var(--font-mono); font-weight: 500; color: var(--ink-faint); padding: 8px 3px; background: var(--surface); }
.tl-board thead th span { display: block; font-size: 12px; letter-spacing: .1em; }
.tl-board thead th b { display: block; font: 600 18px/1.1 var(--font-heading); color: var(--ink-soft); }
.tl-board thead th.is-today b { color: var(--accent); }
.tl-board thead th.is-today { box-shadow: inset 0 -2px 0 var(--accent); }
.tl-board .is-weekend { background: color-mix(in srgb, var(--ink) 3%, transparent); }
.tl-board thead th.is-weekend { background: color-mix(in srgb, var(--ink) 3%, var(--surface)); }
.tl-board-name { position: sticky; left: 0; z-index: 1; text-align: left !important; background: var(--surface); min-width: 150px; max-width: 220px; padding: 8px 12px 8px 4px !important; border-right: 1px solid var(--line); }
.tl-board tbody .tl-board-name a { display: block; font: 600 16px/1.15 var(--font-heading); text-transform: uppercase; color: var(--ink); text-decoration: none; }
.tl-board tbody .tl-board-name a:hover { color: var(--accent); }
.tl-board tbody .tl-board-name span { display: block; font-weight: 400; font-size: 12px; color: var(--ink-faint); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-cell { display: grid; place-items: center; width: 100%; min-width: 34px; height: 36px; font: 600 12px/1 var(--font-mono); text-decoration: none; color: var(--accent-ink); }
.tl-cell.is-free { background: color-mix(in srgb, var(--ok) 30%, transparent); border: 1px solid color-mix(in srgb, var(--ok) 55%, transparent); }
a.tl-cell.is-free:hover { background: var(--ok); }
a.tl-cell.is-free:focus-visible, a.tl-cell:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.tl-cell.is-free.is-past { opacity: .35; }
.tl-cell.is-off { background: repeating-linear-gradient(135deg, transparent 0 5px, var(--line-soft) 5px 6px); }
.tl-cell.is-confirmed { background: var(--accent); }
.tl-cell.is-pencilled { background: var(--accent-soft); border: 1px solid var(--accent); color: var(--accent); }
.tl-cell.is-requested { border: 1px dashed var(--accent); color: var(--accent); }
/* Booked through someone else: a different colour from the house's own bookings. */
.tl-cell.is-elsewhere { background: color-mix(in srgb, var(--pending) 70%, transparent); color: #1d1a12; font-weight: 700; }
a.tl-cell.is-confirmed:hover, a.tl-cell.is-pencilled:hover, a.tl-cell.is-requested:hover { background: var(--accent-hover); color: var(--accent-ink); }

/* Admin: house accounts */
.tl-house-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 6px; }
.tl-house-row .tl-select, .tl-house-row .tl-input { width: auto; min-height: 38px; padding-top: 6px; padding-bottom: 6px; font-size: 14px; }

/* Search results: pencil + star */
.tl-result-actions .tl-result-star { min-width: 0; }
.tl-result-star[aria-pressed="true"] { color: var(--accent); border-color: var(--accent-line); }
.tl-result-star[aria-pressed="true"] .tl-icon { fill: currentColor; }
.tl-warn-text { color: var(--pending); }
.tl-crew-coming { margin-bottom: 8px; }
.tl-crew-coming .tl-head-row { align-items: center; margin-bottom: 8px; }
.tl-crew-coming .tl-section-label { margin: 0; }
.tl-avail-booked { margin: 0; font-size: 14px; }
.tl-avail-booked a { color: var(--ink); }
.tl-crew-up { margin-top: 18px; }
.tl-crew-item.is-yours::before { background: var(--accent); }
.tl-crew-item.is-yours .tl-crew-free a { color: var(--accent); }
.tl-notice-stack { display: block; }
.tl-notice-stack form { margin-top: 12px; }
.tl-notice-stack .tl-clash { margin-top: 8px; }
.tl-bookers-band { display: grid; gap: 20px; align-items: center; }
.tl-bookers-band h2 { margin: 0 0 10px; }
@media (min-width: 860px) { .tl-bookers-band { grid-template-columns: minmax(0, 1fr) auto; gap: 40px; } }

/* Pre-launch: the job-offer slide and demo (3.6) */
.tl-art-offer { display: grid; gap: 8px; width: min(100%, 340px); padding: 22px; background: var(--bg); border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.tl-art-offer .tl-label { display: inline-flex; gap: 8px; align-items: center; color: var(--pending); }
.tl-art-offer strong { font: 600 28px/1.05 var(--font-heading); text-transform: uppercase; color: var(--ink); }
.tl-art-offer-meta { font-size: 13px; color: var(--ink-soft); }
.tl-art-offer-from { font-size: 12px; color: var(--ink-faint); }
.tl-art-offer-btns { display: flex; gap: 8px; margin-top: 8px; }
.tl-art-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; font: 500 12px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; border: 1px solid var(--line-strong); color: var(--ink); }
.tl-art-btn.is-yes { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tl-offer-demo { display: grid; gap: 16px; }
.tl-offer-mail { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; background: var(--bg); border: 1px solid var(--line); }
.tl-offer-mail .tl-icon { color: var(--pending); margin-top: 2px; flex: none; }
.tl-offer-mail span { display: grid; gap: 4px; }
.tl-offer-mail strong { font-weight: 500; font-size: 14px; color: var(--ink); }
.tl-offer-mail .tl-meta { font-size: 12px; }
.tl-offer-top { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; align-items: center; }
.tl-offer-top .tl-eyebrow { margin: 0; }
.tl-offer-title { font: 600 28px/1.05 var(--font-heading); text-transform: uppercase; margin: 10px 0 0; }
.tl-offer-demo .tl-peek-list dd { color: var(--ink); }
.tl-offer-result p { margin: 0 0 8px; color: var(--ink); }
.tl-offer-bookers { margin: 14px 0 0; }

/* --------------------------------------------------------------- Calendar, By job (3.7) */
.tl-view-tabs { display: flex; flex-wrap: wrap; gap: 4px 26px; border-bottom: 1px solid var(--line); margin: -6px 0 28px; }
.tl-view-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 12px 0; margin-bottom: -1px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); text-decoration: none; border-bottom: 2px solid transparent; }
.tl-view-tabs a:hover { color: var(--ink); }
.tl-view-tabs a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }
.tl-month-bar { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.tl-month-bar .tl-card-title { margin: 0; }
.tl-key { display: inline-block; width: 14px; height: 14px; margin-right: -4px; vertical-align: -2px; }
.tl-key.is-free { background: color-mix(in srgb, var(--ok) 22%, transparent); border: 1px solid color-mix(in srgb, var(--ok) 50%, transparent); }
.tl-key.is-offer, .tl-key.is-made-offer { border: 1px dashed var(--pending); }
.tl-key.is-pencil { border: 1px solid var(--accent); background: var(--accent-soft); }
.tl-key.is-booked { background: var(--accent); }
.tl-key.is-own { background: var(--surface-3); border: 1px solid var(--line-strong); }
.tl-month { border: 1px solid var(--line); background: var(--surface); }
.tl-month-head, .tl-month-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.tl-month-head span { padding: 10px 8px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); border-bottom: 1px solid var(--line); }
.tl-mday { min-height: 112px; padding: 6px; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tl-month-row .tl-mday:last-child { border-right: 0; }
.tl-month-row:last-child .tl-mday { border-bottom: 0; }
.tl-mday.is-free { background: color-mix(in srgb, var(--ok) 9%, transparent); }
.tl-mday.is-out { opacity: .42; }
.tl-mday.is-past { background-image: linear-gradient(color-mix(in srgb, var(--bg) 30%, transparent), color-mix(in srgb, var(--bg) 30%, transparent)); }
.tl-mday-num { font-family: var(--font-mono); font-size: 12px; color: var(--ink-soft); align-self: flex-start; padding: 2px 6px; }
.tl-mday.is-today .tl-mday-num { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); font-weight: 700; }
.tl-mitem { display: block; padding: 4px 6px; font: 500 12px/1.2 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); border: 1px solid var(--line-strong); }
.tl-mitem:hover { border-color: var(--accent); color: var(--accent-hover); }
.tl-mitem.is-booked, .tl-mitem.is-made-booked { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tl-mitem.is-booked:hover, .tl-mitem.is-made-booked:hover { background: var(--accent-hover); color: var(--accent-ink); }
.tl-mitem.is-pencil, .tl-mitem.is-made-pencil { background: var(--accent-soft); border-color: var(--accent); }
.tl-mitem.is-offer { border: 1px dashed var(--pending); color: var(--pending); }
.tl-mitem.is-made-offer { border: 1px dashed var(--pending); }
.tl-mitem.is-own { background: var(--surface-3); }
.tl-mmore { font-size: 12px; color: var(--ink-faint); padding: 0 6px; }
@media (max-width: 640px) {
	.tl-month-head span { padding: 8px 2px; text-align: center; font-size: 12px; letter-spacing: .04em; }
	.tl-mday { min-height: 58px; padding: 3px; gap: 3px; }
	.tl-mday-num { padding: 1px 4px; font-size: 12px; }
	.tl-mitem { font-size: 0; height: 6px; padding: 0; border-width: 1px; }
	.tl-mmore { display: none; }
}
.tl-agenda { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.tl-agenda li { border-bottom: 1px solid var(--line); position: relative; }
.tl-agenda li::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 4px; background: var(--line-strong); }
.tl-agenda li.is-booked::before, .tl-agenda li.is-made-booked::before { background: var(--accent); }
.tl-agenda li.is-pencil::before, .tl-agenda li.is-made-pencil::before { background: var(--accent-line); }
.tl-agenda li.is-offer::before, .tl-agenda li.is-made-offer::before { background: var(--pending); }
.tl-agenda a { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 6px 18px; align-items: center; padding: 14px 8px 14px 20px; color: inherit; text-decoration: none; }
.tl-agenda a:hover { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.tl-agenda-when { font-family: var(--font-mono); font-size: 13px; color: var(--ink-soft); }
.tl-agenda-what { display: grid; gap: 2px; min-width: 0; }
.tl-agenda-what strong { font: 600 18px/1.15 var(--font-heading); text-transform: uppercase; color: var(--ink); }
.tl-agenda-what span { font-size: 13px; color: var(--ink-faint); }
.tl-agenda-tag { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
@media (max-width: 560px) { .tl-agenda a { grid-template-columns: minmax(0, 1fr) auto; } .tl-agenda-when { grid-column: 1 / -1; } }
.tl-jobs { display: grid; gap: 16px; }
.tl-job { border: 1px solid var(--line); background: var(--surface); }
.tl-job > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; justify-content: space-between; padding: 18px 20px; }
.tl-job > summary::-webkit-details-marker { display: none; }
.tl-job > summary:hover .tl-job-name { color: var(--accent); }
.tl-job-name { font: 600 22px/1.1 var(--font-heading); text-transform: uppercase; color: var(--ink); }
.tl-job-meta { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; color: var(--ink-faint); }
.tl-job .tl-table-wrap { border-left: 0; border-right: 0; }
.tl-job-actions { padding: 14px 20px 18px; }
.tl-board-need { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--ink-faint); }
.tl-board-need .tl-input { width: auto; min-height: 36px; padding: 4px 8px; font-size: 14px; }
.tl-board-need-result { margin: 0 0 14px; }
.tl-board-need-result a { color: var(--ink); }
.tl-board-saved { display: inline-block; margin-left: 8px; padding: 1px 6px; font: normal 500 12px/1.5 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--accent-line); vertical-align: 2px; }
.tl-house-days { margin: -16px 0 28px; }
.tl-tags > li { list-style: none; }
a.tl-tag-link { display: inline-flex; text-decoration: none; color: inherit; }
a.tl-tag-link:hover { border-color: var(--accent); color: var(--accent-hover); }
/* Kit pages (SEO, 3.7) */
.tl-crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 -16px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.tl-crumbs a { color: var(--ink-faint); text-decoration: none; }
.tl-crumbs a:hover { color: var(--accent); }
.tl-kit-group { margin-bottom: 28px; }
.tl-kit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); grid-template-columns: 1fr; }
@media (min-width: 640px) { .tl-kit-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .tl-kit-list { grid-template-columns: repeat(3, 1fr); } }
.tl-kit-list a { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 14px 16px; background: var(--bg); color: var(--ink); text-decoration: none; height: 100%; }
.tl-kit-list a:hover { background: var(--surface); color: var(--accent-hover); }
.tl-kit-list b { font: 600 22px/1 var(--font-heading); color: var(--accent); }
.tl-kit-cta { display: grid; gap: 18px; align-items: center; margin-top: 12px; }
@media (min-width: 860px) { .tl-kit-cta { grid-template-columns: minmax(0, 1fr) auto; } }
.tl-kit-cta .tl-card-title { margin: 0 0 6px; }
.tl-kit-layout { display: grid; gap: 28px; }
@media (min-width: 900px) { .tl-kit-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } .tl-kit-aside { position: sticky; top: 88px; } }
.tl-kit-techs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.tl-kit-techs li { display: grid; gap: 4px; padding: 16px 8px; border-bottom: 1px solid var(--line); }
.tl-kit-techs a { font: 600 22px/1.1 var(--font-heading); text-transform: uppercase; color: var(--ink); text-decoration: none; }
.tl-kit-techs a:hover { color: var(--accent); }
.tl-kit-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tl-kit-chips a { display: inline-flex; gap: 8px; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid var(--line-strong); color: var(--ink-soft); text-decoration: none; font-size: 14px; }
.tl-kit-chips a:hover { border-color: var(--accent); color: var(--accent-hover); }
.tl-kit-chips b { color: var(--accent); font-weight: 600; }
.tl-kit-home .tl-head-row { align-items: center; margin-bottom: 14px; }
.tl-kit-home .tl-section-label { margin: 0; }
@media (min-width: 900px) { .tl-kit-layout.is-single { grid-template-columns: minmax(0, 560px); } .tl-kit-layout.is-single .tl-kit-aside { position: relative; top: auto; } }
.tl-kit-layout.is-single > div:empty { display: none; }

/* --------------------------------------------------------------- Rental house stats & links (3.8) */
.tl-house-tabs { margin-top: 4px; }
.tl-seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line); margin: 0 0 22px; }
.tl-seg a { padding: 9px 16px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); text-decoration: none; }
.tl-seg a + a { border-left: 1px solid var(--line); }
.tl-seg a:hover { color: var(--ink); background: var(--surface); }
.tl-seg a[aria-current] { background: var(--accent); color: var(--accent-ink); }
.tl-kpis-stats { margin-bottom: 14px; }
.tl-kpi-sub { display: block; margin-top: 8px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.tl-stats-grid { display: grid; gap: 20px; margin-top: 24px; }
.tl-stats-grid .tl-card { margin: 0; min-width: 0; }
.tl-stats-grid { grid-template-columns: minmax(0, 1fr); }
.tl-hchart { margin: 14px 0 0; }
.tl-hchart-wrap { overflow-x: auto; position: relative; }
.tl-hchart svg { display: block; width: 100%; min-width: 460px; height: auto; }
.tl-hchart-grid { stroke: var(--line); stroke-width: 1; shape-rendering: crispEdges; }
.tl-hchart-tick, .tl-hchart-value { font-family: var(--font-mono); font-size: 12px; fill: var(--ink-faint); }
.tl-hchart-value { fill: var(--ink-soft); }
.tl-hchart-bar { fill: var(--accent); }
.tl-hchart-hit { fill: transparent; }
.tl-hchart-slot { outline: none; cursor: default; }
.tl-hchart-slot:hover .tl-hchart-bar, .tl-hchart-slot:focus-visible .tl-hchart-bar { fill: var(--accent-hover); }
.tl-hchart-slot:hover .tl-hchart-hit, .tl-hchart-slot:focus-visible .tl-hchart-hit { fill: var(--line-soft); }
.tl-hchart-table { margin-top: 10px; }
.tl-hchart-table summary { cursor: pointer; font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.tl-hchart-table .tl-table { margin-top: 10px; font-size: 14px; }
.tl-tip { position: absolute; z-index: 5; pointer-events: none; background: var(--surface-3); color: var(--ink); border: 1px solid var(--line-strong); padding: 6px 10px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; white-space: nowrap; box-shadow: var(--shadow); transform: translate(-50%, -100%); }
.tl-stats-table { font-size: 14px; }
.tl-stats-table th, .tl-stats-table td { padding: 12px 12px; vertical-align: top; }
.tl-stats-table thead th { white-space: normal; vertical-align: bottom; line-height: 1.35; }
.tl-stats-table .is-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tl-stats-table thead th.is-num { min-width: 84px; }
.tl-stats-table tbody th { min-width: 210px; }
.tl-stats-table th.is-num a { color: inherit; text-decoration: none; }
.tl-stats-table th.is-num a:hover, .tl-stats-table th.is-num a[aria-current] { color: var(--accent); }
.tl-stats-table tbody th { font-weight: 500; text-transform: none; letter-spacing: 0; font-family: inherit; font-size: 16px; color: var(--ink); background: none; white-space: normal; }
.tl-stats-kit { display: block; margin-top: 3px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.tl-tag-muted { font-style: normal; font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); border: 1px solid var(--line); padding: 1px 6px; margin-left: 6px; }
.tl-chip-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tl-chip-list li { border: 1px solid var(--line); padding: 6px 10px; font-size: 14px; }
.tl-chip-list b { color: var(--accent); font-weight: 500; margin-left: 6px; font-family: var(--font-mono); font-size: 12px; }
.tl-hfeed { margin: 0 0 20px; }
.tl-hfeed.is-fresh { border-color: var(--accent-line); }
.tl-hfeed-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.tl-hfeed-head form { margin: 0; }
.tl-hfeed-list { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--line-soft); }
.tl-hfeed-list li { display: grid; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.tl-hfeed-list strong { display: block; font-weight: 500; }
.tl-hfeed-list span { display: block; color: var(--ink-faint); font-size: 13px; margin-top: 3px; }
.tl-hfeed-url { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tl-hfeed-url code { flex: 1 1 280px; min-width: 0; overflow-wrap: anywhere; font-size: 12px; background: var(--surface-2); border: 1px solid var(--line); padding: 8px 10px; }
.tl-howto { margin: 0; }
.tl-howto dt { font-weight: 500; margin-top: 14px; }
.tl-howto dt:first-child { margin-top: 0; }
.tl-howto dd { margin: 4px 0 0; color: var(--ink-soft); font-size: 14px; line-height: 1.5; }
.tl-howto em, .tl-hfeed-list em { font-style: normal; color: var(--ink); }

/* --------------------------------------------------------------- Calendar sync card (3.8.1) */
.tl-calsync .tl-help { margin-bottom: 14px; }
.tl-calsync-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.tl-side .tl-calsync-buttons .tl-btn { flex: 1 1 100%; }
.tl-calsync-more { margin-top: 14px; border-top: 1px solid var(--line-soft); padding-top: 10px; }
.tl-calsync-more summary { cursor: pointer; font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.tl-calsync-more .tl-help { margin: 10px 0; }
.tl-calsync-more form { margin-top: 10px; }

/* --------------------------------------------------------------- Suggestions (3.9.0) */
.tl-suggest-link { margin: 12px 0 0; }
.tl-suggest-forms { display: grid; gap: 20px; }
.tl-suggest-forms .tl-card-title { margin-bottom: 4px; }
.tl-suggest-list { list-style: none; margin: 0; padding: 0; }
.tl-suggest-list li { display: grid; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); min-width: 0; }
.tl-suggest-list li:first-child { padding-top: 0; }
.tl-suggest-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.tl-suggest-list strong { font-weight: 500; overflow-wrap: anywhere; }
.tl-suggest-list .tl-help { margin: 0; }
.tl-suggest-kind { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.tl-suggest-list .tl-status { font-size: 12px; white-space: normal; align-items: baseline; }
.tl-suggest-list .tl-status::before { flex: none; }
.tl-editor > * { min-width: 0; }
.tl-sugg-head .tl-tag-muted { margin-left: 0; }
.tl-sugg-head .tl-card-title { margin: 8px 0 4px; overflow-wrap: anywhere; }
.tl-sugg-note { margin: 8px 0 0; color: var(--ink-soft); font-size: 14px; border-left: 2px solid var(--line); padding-left: 10px; overflow-wrap: anywhere; }
.tl-sugg-close { margin: 10px 0 0; font-size: 14px; color: var(--accent-hover); display: flex; gap: 6px; align-items: center; }
.tl-sugg-actions { display: grid; gap: 18px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.tl-sugg-actions form { display: grid; gap: 10px; align-content: start; min-width: 0; }
.tl-sugg-actions .tl-field { margin: 0; }
.tl-sugg-actions .tl-btn { justify-self: start; }
@media (min-width: 900px) { .tl-sugg-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tl-sugg-note { text-transform: none; letter-spacing: normal; }

/* --------------------------------------------------------------- In-house technicians (3.10.0) */
.tl-inhouse-badge { display: block; width: fit-content; max-width: 100%; margin: 8px 0 0; padding: 4px 9px; border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--accent-hover); font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; line-height: 1.35; overflow-wrap: anywhere; }
.tl-profile-head .tl-inhouse-badge { margin: 12px 0 4px; font-size: 12px; }
.tl-result-name + .tl-inhouse-badge { margin: 7px 0 2px; }
.tl-kit-techs .tl-inhouse-badge, .tl-board-name .tl-inhouse-badge, .tl-crew-name + .tl-inhouse-badge { margin: 4px 0 0; font-size: 12px; padding: 2px 7px; }
.tl-inhouse { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft); display: grid; gap: 12px; }
.tl-inhouse .tl-field { margin: 0; max-width: 420px; }

/* --------------------------------------------------------------- Availability: hold-and-drag on phones (3.10.2) */
.tl-cal-months.is-painting .tl-day:not(:disabled) { transition: none; }
.tl-cal-months.is-painting { cursor: crosshair; }

/* --------------------------------------------------------------- Sweep fixes (3.10.2) */
.tl-form > * { min-width: 0; }
.tl-mod .tl-table td .tl-input:not([type=number]) { min-width: 180px; }
.tl-mod .tl-table td .tl-select { min-width: 150px; }
.tl-mod .tl-table td .tl-input[type=number] { min-width: 76px; }
.tl-notice { flex-wrap: wrap; }
.tl-notice > p { flex: 1 1 240px; min-width: 0; }
.tl-notice > form { flex: 0 0 auto; margin-top: 0; }

/* --------------------------------------------------------------- Linked calendars (3.12.0) */
.tl-day.is-busy, .tl-day.is-busy:disabled { color: var(--ink-soft); border-color: var(--line); background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--ink) 12%, transparent) 0 6px, transparent 6px 12px); cursor: not-allowed; }
.tl-calbusy-note { display: flex; gap: 10px; align-items: center; margin: 0 0 10px; }
.tl-calbusy-key { flex: none; width: 18px; height: 18px; border: 1px solid var(--line); background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--ink) 12%, transparent) 0 4px, transparent 4px 8px); }
.tl-calimport .tl-help { margin-bottom: 12px; }
.tl-calimport .tl-help em { font-style: normal; color: var(--ink); }
.tl-calimport-form { gap: 14px; }
.tl-calimport-status { display: grid; gap: 6px; margin: 0 0 12px; }
.tl-calimport-status .tl-help { margin: 0; overflow-wrap: anywhere; }
.tl-calimport .tl-field { margin: 0; }
.tl-confirm-by { display: block; margin: 10px 0 0; font-size: 14px; line-height: 1.5; color: var(--pending); }
.tl-confirm-by > .tl-icon { vertical-align: -2px; margin-right: 6px; }
.tl-confirm-by strong { font-weight: 600; }

/* --------------------------------------------------------------- Freshness & replies (3.12.0) */
.tl-result-signals { display: block; margin-top: 6px; font-family: var(--font-body); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.tl-result-signals::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; background: var(--ok); vertical-align: 1px; }
.tl-result-signals.is-stale { color: var(--pending); }
.tl-result-signals.is-stale::before { background: var(--pending); }
.tl-result-signals.is-synced::before { background: var(--accent); }
.tl-profile-signals { margin: 6px 0 0; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.tl-profile-signals.is-stale { color: var(--pending); }
.tl-still-free { font-family: var(--font-heading); font-size: clamp(24px, 4vw, 34px); text-transform: uppercase; color: var(--accent); margin: 10px 0 0; }
.tl-paused { border-left: 3px solid var(--pending); padding-left: 12px; }

/* ------------------------------------------------------------------ Demos (3.13): /demo, /demo/bookers, /demo/houses */
.tl-dm-pick { display: grid; gap: 18px; grid-template-columns: 1fr; margin-bottom: 40px; }
@media (min-width: 760px) { .tl-dm-pick { grid-template-columns: 1fr 1fr; } }
.tl-dm-pick-card { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; color: inherit; text-decoration: none; padding: clamp(22px, 3vw, 34px); }
.tl-dm-pick-card strong { font: 600 var(--fs-h2)/1 var(--font-heading); text-transform: uppercase; }
.tl-dm-pick-card .tl-btn { margin-top: 8px; }
.tl-dm-pick-card:hover { border-color: var(--accent-line); }
.tl-dm-pick > .tl-card { margin-top: 0; }

.tl-page-head .tl-dm-note-line, .tl-dm-note-line { display: flex; flex-wrap: nowrap; gap: 8px 12px; align-items: center; margin: 16px 0 0; font-size: 13px; color: var(--ink-faint); }
.tl-dm-note-line .tl-demo-badge { padding: 5px 10px; flex: none; }
.tl-dm-benefits { list-style: none; margin: 0 0 44px; padding: 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .tl-dm-benefits { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .tl-dm-benefits { grid-template-columns: repeat(4, 1fr); } }
.tl-dm-benefits > li.tl-card { margin: 0; padding: 22px 22px 20px; }
.tl-dm-body .tl-card + .tl-card { margin-top: 0; }
.tl-dm-side-btns .tl-btn { white-space: normal; justify-content: center; text-align: center; min-width: 0; height: auto; padding-top: 10px; padding-bottom: 10px; }
.tl-dm-benefits h2 { font: 600 22px/1.05 var(--font-heading); text-transform: uppercase; margin: 14px 0 8px; }
.tl-dm-benefits p { margin: 0; font-size: 13px; line-height: 1.7; color: var(--ink-soft); }
.tl-dm-benefit-ic { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--accent-line); color: var(--accent); background: var(--accent-soft); }

.tl-dm { scroll-margin-top: 80px; }
.tl-dm-grid { display: grid; gap: 22px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1000px) { .tl-dm-grid { grid-template-columns: 330px minmax(0, 1fr); } .tl-dm-coach { position: sticky; top: 88px; } }
.tl-dm-steps { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 2px; }
.tl-dm-steps button { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: center; width: 100%; padding: 8px 10px; background: none; border: 1px solid transparent; color: var(--ink-faint); font: inherit; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; text-align: left; cursor: pointer; }
.tl-dm-steps button:hover { color: var(--ink); }
.tl-dm-steps button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.tl-dm-num { display: inline-grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--line-strong); font-size: 12px; }
.tl-dm-steps .is-done button { color: var(--ink-soft); }
.tl-dm-steps .is-done .tl-dm-num { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
.tl-dm-steps .is-current button { color: var(--ink); border-color: var(--line); background: var(--surface); }
.tl-dm-steps .is-current .tl-dm-num { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tl-dm-now { padding: 22px 22px 20px; }
.tl-dm-count { font-size: 12px; letter-spacing: .12em; color: var(--accent); }
.tl-dm-now h3 { font: 600 28px/1.05 var(--font-heading); text-transform: uppercase; margin: 8px 0 10px; }
.tl-dm-do { margin: 0; color: var(--ink); font-size: 14px; line-height: 1.65; }
.tl-dm-why { margin: 10px 0 0; color: var(--ink-faint); font-size: 12px; line-height: 1.7; }
.tl-dm-ctrl { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tl-dm-ctrl[hidden] { display: none; }
@media (max-width: 999px) {
	.tl-dm-steps { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
	.tl-dm-steps li { flex: none; }
	.tl-dm-steps button { grid-template-columns: 26px; padding: 4px; }
	.tl-dm-steps button > span:last-child { display: none; }
	.tl-dm-now { position: sticky; top: 72px; z-index: 6; padding: 14px 16px; box-shadow: var(--shadow); }
	.tl-dm-now h3 { font-size: 22px; margin: 4px 0 6px; }
	.tl-dm-why { display: none; }
	.tl-dm-ctrl { margin-top: 10px; }
}

.tl-dm-window { position: relative; border: 1px solid var(--line-strong); background: var(--bg); box-shadow: var(--shadow); min-width: 0; }
.tl-dm-chrome { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: var(--surface); border-bottom: 1px solid var(--line); font-size: 12px; letter-spacing: .08em; color: var(--ink-faint); text-transform: none; }
.tl-dm-chrome i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.tl-dm-chrome span { margin-left: 10px; padding: 4px 10px; background: var(--bg); border: 1px solid var(--line-soft); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-dm-appbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.tl-dm-appbar .tl-wordmark { font-size: 16px; }
.tl-dm-appnav { display: flex; gap: 16px; font-size: 12px; letter-spacing: .12em; color: var(--ink-faint); }
.tl-dm-appnav .is-on { color: var(--accent); }
@media (max-width: 599px) { .tl-dm-appnav { display: none; } }
.tl-dm-body { padding: clamp(14px, 2.4vw, 26px); min-height: 520px; }
.tl-dm-body .tl-card-title { font-size: 22px; }
.tl-dm-body h3 { font: 600 var(--fs-h2)/1 var(--font-heading); text-transform: uppercase; margin: 6px 0 10px; }
.tl-dm-body h4 { margin: 0; }
.tl-dm-panel { padding: clamp(16px, 2.4vw, 24px); }
.tl-dm-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px; }
.tl-dm-row { display: grid; gap: 0 18px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .tl-dm-row { grid-template-columns: 1fr 1fr; align-items: end; } }
.tl-dm-fixed { display: flex; align-items: center; gap: 8px; margin: 0; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); color: var(--ink); font-size: 13px; }
.tl-dm-body .tl-results { margin-top: 18px; }
.tl-dm-form { max-width: 640px; }
.tl-dm-formhead { margin-bottom: 14px; }
.tl-dm-formhead h3 { margin-bottom: 4px; }
.tl-dm-bkhead { margin-bottom: 16px; }
.tl-dm-bkhead p { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin: 0; }
.tl-dm-split { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .tl-dm-split { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
.tl-dm-split .tl-notice { margin: 0 0 14px; }
.tl-dm-reply { margin: 0 0 14px; }
.tl-dm-job { padding: 18px 20px; }
.tl-dm-dl { margin: 10px 0 0; display: grid; gap: 8px; }
.tl-dm-dl div { display: grid; grid-template-columns: 92px 1fr; gap: 10px; }
.tl-dm-dl dt { font-size: 12px; letter-spacing: .12em; color: var(--ink-faint); }
.tl-dm-dl dd { margin: 0; font-size: 13px; }
.tl-dm-log { list-style: none; margin: 16px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line-soft); display: grid; gap: 6px; font-size: 12px; }
.tl-dm-log span { color: var(--ink-faint); margin-right: 8px; }
.tl-dm-contact { display: grid; gap: 4px; padding: 18px 20px; }
.tl-dm-contact .tl-label { margin-top: 8px; }
.tl-dm-contact .tl-label:first-child { margin-top: 0; }
.tl-dm-contact strong { font: 600 22px/1.1 var(--font-heading); text-transform: uppercase; }
.tl-dm-side-btns { display: grid; gap: 8px; margin-top: 10px; }
.tl-dm-tabs { margin-top: 0; }
.tl-dm-tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 12px 0; margin-bottom: -1px; background: none; border: 0; border-bottom: 2px solid transparent; font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); cursor: pointer; }
.tl-dm-tabs button:hover { color: var(--ink); }
.tl-dm-tabs button[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }
.tl-dm-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tl-dm-jobcard { padding: 20px 22px; }
.tl-dm-jobcard h4 { font: 600 28px/1 var(--font-heading); text-transform: uppercase; margin: 6px 0 12px; }
.tl-dm-crew { list-style: none; margin: 0 0 14px; padding: 0; border-top: 1px solid var(--line-soft); }
.tl-dm-crew li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.tl-dm-check { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; padding: 14px 18px; margin-bottom: 12px; }
.tl-dm-check strong { font: 600 22px/1 var(--font-heading); text-transform: uppercase; }
.tl-dm-saved { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tl-dm-saved li { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 16px; margin: 0; }
.tl-dm-saved strong { display: block; font: 600 22px/1.1 var(--font-heading); text-transform: uppercase; }
.tl-dm-saved .tl-meta { display: block; margin-top: 3px; }
.tl-dm-note { display: block; margin-top: 6px; font-size: 12px; color: var(--ink-faint); font-style: italic; }
.tl-dm-househead { margin-bottom: 12px; }
.tl-dm-boardcard { margin-bottom: 18px; }
.tl-dm-body .tl-board-name { min-width: 128px; max-width: 170px; }
.tl-dm-boardcard .tl-board-need { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tl-dm-boardcard .tl-board-need .tl-input { min-height: 36px; padding: 4px 8px; font-size: 13px; width: auto; }
button.tl-cell { cursor: pointer; padding: 0; }
button.tl-cell.is-free:hover, button.tl-cell.is-free:focus-visible { outline: 2px solid var(--ok); outline-offset: -2px; }
.tl-dm-link { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; text-transform: inherit; letter-spacing: inherit; }
.tl-dm-through { margin-top: 8px; }

/* Pointing at the next thing to tap */
.tl-dm-hint { position: relative; outline: 2px solid var(--pending) !important; outline-offset: 3px; animation: tl-dm-pulse 1.4s ease-in-out infinite; }
@keyframes tl-dm-pulse { 0%, 100% { outline-color: var(--pending); } 50% { outline-color: color-mix(in srgb, var(--pending) 25%, transparent); } }
@media (prefers-reduced-motion: reduce) { .tl-dm-hint { animation: none; } }

/* "Email" arriving */
.tl-dm-toast { position: absolute; top: 56px; right: 14px; left: 14px; z-index: 5; display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; max-width: 440px; margin-left: auto; padding: 12px 14px; background: var(--surface-2, var(--surface)); border: 1px solid var(--line-strong); border-left: 3px solid var(--accent); box-shadow: var(--shadow); font-size: 12px; line-height: 1.5; animation: tl-dm-in .25s ease-out; }
.tl-dm-toast[hidden] { display: none; }
.tl-dm-toast.is-mail { border-left-color: var(--pending); }
.tl-dm-toast strong { display: block; color: var(--ink); }
.tl-dm-toast span span { color: var(--ink-soft); }
.tl-dm-toast-ic { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); color: var(--accent); }
.tl-dm-toast.is-mail .tl-dm-toast-ic { color: var(--pending); }
@keyframes tl-dm-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tl-dm-toast { animation: none; } }

.tl-dm-fair { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tl-dm-fair li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; font-size: 13px; line-height: 1.7; color: var(--ink-soft); }
.tl-dm-fair svg { color: var(--accent); margin-top: 4px; }
.tl-dm-fair strong { color: var(--ink); font-weight: 400; }
.tl-dm-faq { display: grid; gap: 0 28px; grid-template-columns: 1fr; margin: 0; }
@media (min-width: 760px) { .tl-dm-faq { grid-template-columns: 1fr 1fr; } }
.tl-dm-faq div { padding: 16px 0; border-top: 1px solid var(--line); }
.tl-dm-faq dt { color: var(--ink); margin-bottom: 6px; }
.tl-dm-faq dd { margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.7; }
.tl-dm-cta { display: grid; gap: 18px; padding: clamp(22px, 3vw, 34px); margin-bottom: 30px; }
@media (min-width: 900px) { .tl-dm-cta { grid-template-columns: 1fr auto; align-items: center; } }
.tl-dm-cta h2 { font: 600 var(--fs-h2)/1 var(--font-heading); text-transform: uppercase; margin: 8px 0 10px; }
.tl-dm-cta p { margin: 0; color: var(--ink-soft); max-width: 640px; line-height: 1.7; }

/* ------------------------------------------------------------------ Ideas & feedback (3.14) */
.tl-idea-kinds { display: grid; gap: 8px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .tl-idea-kinds { grid-template-columns: repeat(3, 1fr); } }
.tl-idea-kind { position: relative; display: block; }
.tl-idea-kind input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.tl-idea-kind span { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 14px; border: 1px solid var(--line-strong); color: var(--ink-soft); font-size: 13px; letter-spacing: .08em; line-height: 1.35; }
.tl-idea-kind span svg { flex: none; }
.tl-idea-kind input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.tl-idea-kind input:checked + span svg { color: var(--accent); }
.tl-idea-kind input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.tl-idea-kind:hover span { color: var(--ink); }
.tl-idea-reply { display: block; margin-top: 6px; padding: 8px 10px; border-left: 2px solid var(--accent); background: var(--surface-2); font-size: 13px; line-height: 1.6; color: var(--ink); }
.tl-idea-reply .tl-meta { display: block; margin-bottom: 2px; }
.tl-idea-cta { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; }
.tl-idea-cta > div { flex: 1 1 320px; }
.tl-idea { padding: 20px 22px; }
.tl-idea-head { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.tl-idea-kind-tag { font-size: 12px; letter-spacing: .12em; padding: 5px 9px; border: 1px solid var(--accent-line); color: var(--accent); }
.tl-idea-kind-tag.is-dont { border-color: color-mix(in srgb, var(--pending) 55%, transparent); color: var(--pending); }
.tl-idea-kind-tag.is-fix { border-color: color-mix(in srgb, var(--danger) 55%, transparent); color: var(--danger); }
.tl-idea-body { margin: 12px 0 8px; font-size: 16px; line-height: 1.65; color: var(--ink); text-transform: none; letter-spacing: normal; white-space: pre-line; }
.tl-idea-act { margin-top: 10px; }
.tl-idea-act:empty { display: none; }
.tl-idea-more { margin-top: 10px; }
.tl-idea-more summary { cursor: pointer; font-size: 12px; letter-spacing: .12em; color: var(--ink-soft); }
.tl-chip-link { display: inline-block; padding: 5px 10px; border: 1px solid var(--line); color: var(--ink-soft); font-size: 12px; letter-spacing: .1em; text-decoration: none; }
.tl-chip-link:hover { color: var(--ink); border-color: var(--line-strong); }
.tl-chip-link.is-on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.tl-seg a[aria-current] .tl-faint { color: inherit; opacity: .7; }
.tl-idea-form fieldset { border: 0; padding: 0; margin: 0 0 4px; min-width: 0; } .tl-idea-form legend { padding: 0; margin-bottom: 8px; }
.tl-idea-status { max-width: 320px; } .tl-mb { margin-bottom: 18px; }

/* Demos, round 2 (3.14.1): clearer for first-timers */
.tl-dm-tip { margin: 0 0 12px; padding: 10px 12px; border: 1px dashed color-mix(in srgb, var(--pending) 60%, transparent); color: var(--ink); font-size: 13px; line-height: 1.55; }
.tl-dm-tip strong { font-weight: 400; color: var(--pending); }
.tl-dm-why { font-size: 13px; color: var(--ink-soft); }
.tl-dm-appnav { pointer-events: none; opacity: .65; }
.tl-segmented label.is-off { opacity: .4; cursor: not-allowed; }
.tl-legend-item { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.tl-board-legend .tl-legend-item .tl-cell { margin-right: 0; }
.tl-dm-swipe { display: none; margin: 0 0 6px; font-size: 12px; color: var(--ink-faint); }
.tl-dm-body .tl-hchart svg { min-width: 0; }
.tl-result-actions .tl-result-star { gap: 6px; }
@media (max-width: 700px) { .tl-dm-swipe { display: block; } }
@media (max-width: 999px) {
	.tl-dm-coach { display: contents; }
	.tl-dm-tip { margin: 0; }
	.tl-dm-now { position: sticky; top: 64px; z-index: 6; }
	.tl-dm-why { display: block; font-size: 12px; line-height: 1.5; margin-top: 6px; }
}
@media (max-width: 599px) {
	.tl-dm-benefits { grid-template-columns: 1fr 1fr; gap: 8px; }
	.tl-dm-benefits > li.tl-card { padding: 14px; }
	.tl-dm-benefits h2 { font-size: 18px; margin: 10px 0 0; }
	.tl-dm-benefits p { display: none; }
	.tl-dm-benefit-ic { width: 34px; height: 34px; }
}
.tl-dm-boardcard .tl-board-filter { flex: 1 1 220px; } .tl-dm-boardcard .tl-board-filter .tl-select { max-width: none; width: 100%; }

/* --------------------------------------------------------------- Private diaries (3.15.0)
   Who's free is only for people booking crew; everyone else gets this instead. */
.tl-locked { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px dashed var(--line-strong); background: var(--surface-2); }
.tl-locked p { margin: 0 0 10px; color: var(--ink-soft); }
.tl-locked p:last-child { margin-bottom: 0; }
.tl-locked strong { color: var(--ink); font-weight: inherit; }
.tl-locked-icon { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--accent); }
.tl-locked-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tl-locked.is-compact { padding: 12px 14px; }
.tl-locked.is-compact p { font-size: .92em; }
.tl-search-grid.is-undated { align-items: start; }
.tl-auth .tl-help svg { vertical-align: -2px; color: var(--accent); }
.tl-lookalike { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 3px 8px; border: 1px solid color-mix(in srgb, var(--pending) 55%, transparent); background: color-mix(in srgb, var(--pending) 12%, transparent); color: var(--pending); font-size: 12px; letter-spacing: .08em; }
.tl-lookalike a { color: inherit; }
@media (min-width: 1000px) { .tl-dm-pick.is-three { grid-template-columns: repeat(3, 1fr); } }
.tl-dm-pick.is-three .tl-dm-pick-card strong { font-size: var(--fs-h3); }
.tl-dm-pick-card .tl-btn { margin-top: auto; }

/* --------------------------------------------------------------- Pre-launch front page: sign-up count (3.16) */
.tl-goal-hero { padding: clamp(28px, 6vw, 72px) 0 0; }
.tl-goal { display: grid; gap: clamp(28px, 4vw, 56px); border: 1px solid var(--line-strong); background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 70%, transparent), transparent); padding: clamp(24px, 5vw, 56px); }
@media (min-width: 900px) { .tl-goal { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; } }
.tl-goal-copy h1 { font-size: var(--fs-display); line-height: .98; margin: 14px 0 22px; max-width: 13ch; }
.tl-goal-copy .tl-lead { margin-bottom: 28px; max-width: 52ch; }
.tl-goal-copy .tl-help { margin: 18px 0 0; }
.tl-goal-meter { border: 1px solid var(--line); background: var(--bg); padding: clamp(20px, 3vw, 32px); display: grid; gap: 12px; }
.tl-goal-num { margin: 0; font-family: var(--font-heading); font-weight: 600; line-height: .85; display: flex; align-items: baseline; gap: 12px; }
.tl-goal-num b { font-weight: 600; font-size: clamp(88px, 12vw, 148px); color: var(--accent); font-variant-numeric: tabular-nums; }
.tl-goal-num span { font-size: clamp(32px, 4vw, 52px); color: var(--ink-faint); }
.tl-goal-cells { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; margin: 6px 0 4px; }
.tl-goal-cells.is-dense { grid-template-columns: repeat(25, 1fr); gap: 3px; }
.tl-goal-cells i { aspect-ratio: 1; border: 1px solid var(--line); background: color-mix(in srgb, var(--ink) 4%, transparent); }
.tl-goal-cells i.is-on { background: var(--accent); border-color: var(--accent); }
.tl-goal-left { margin: 0; color: var(--ink-soft); }
.tl-goal-left strong { color: var(--ink); font-weight: inherit; }
.tl-goal-meter .tl-meta { margin: 0; }
.tl-goal-hero + .tl-deck-wrap { padding-top: clamp(20px, 3vw, 32px); }
/* Phones: the count comes straight after the headline, before the text and buttons. */
@media (max-width: 899px) {
	.tl-goal { gap: 18px; }
	.tl-goal-copy { display: contents; }
	.tl-goal-copy > .tl-eyebrow { order: 1; }
	.tl-goal-copy > h1 { order: 2; margin: 0; }
	.tl-goal-meter { order: 3; }
	.tl-goal-copy > .tl-lead { order: 4; margin: 0; }
	.tl-goal-copy > .tl-actions { order: 5; }
	.tl-goal-copy > .tl-help { order: 6; margin: 0; }
	.tl-goal-num b { font-size: 84px; }
	.tl-goal-cells { gap: 4px; }
}

/* --------------------------------------------------------------- Rental house links (3.17) */
/* Result cards: the name is the profile link, stretched over the card; house links sit on top. */
.tl-result-main { position: relative; }
a.tl-result-name { color: var(--ink); text-decoration: none; }
a.tl-result-name::after { content: ""; position: absolute; inset: 0; }
a.tl-result-name:focus-visible { outline: none; }
a.tl-result-name:focus-visible::after { outline: 2px solid var(--accent); outline-offset: -2px; }
.tl-result-main .tl-house-link { position: relative; z-index: 1; }
.tl-house-link { color: inherit; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.tl-house-link:hover { color: var(--accent); text-decoration-color: currentColor; }

/* =============================================================== 3.18 — calmer, more professional
   One solid-blue action per area; selections are a pale tint. Corner marks only on the
   one thing that matters on a page. Steadier spacing, clearer colours (green = free). */
html { scroll-padding-top: 88px; }
.tl-results { scroll-margin-top: 88px; }

/* Corner marks: off by default, kept for the front-page hero and the sign-up / log-in forms. */
.tl-framed::before { display: none; }
.tl-goal.tl-framed::before, .tl-auth > .tl-form.tl-framed::before { display: block; }

/* Selected tabs and options: tinted, not filled */
.tl-tab[aria-selected="true"], .tl-tab[aria-current="page"],
.tl-segmented input:checked + label,
.tl-seg a[aria-current] { background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent-line); }

/* Checkboxes that look like checkboxes */
.tl-check input[type="checkbox"], .tl-chip-check input[type="checkbox"] {
	appearance: none; -webkit-appearance: none; width: 20px; height: 20px; margin: 2px 0 0; flex: 0 0 auto;
	border: 1px solid var(--line-strong); background: var(--bg); display: inline-grid; place-content: center; cursor: pointer;
}
.tl-check input[type="checkbox"]::after, .tl-chip-check input[type="checkbox"]::after {
	content: ""; width: 11px; height: 6px; border: solid var(--accent-ink); border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px); opacity: 0;
}
.tl-check input[type="checkbox"]:checked, .tl-chip-check input[type="checkbox"]:checked { background: var(--accent); border-color: var(--accent); }
.tl-check input[type="checkbox"]:checked::after, .tl-chip-check input[type="checkbox"]:checked::after { opacity: 1; }
.tl-check input[type="checkbox"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Spacing: sections and footer no longer stack into big empty bands */
.tl-section { padding: clamp(32px, 5vw, 56px) 0; }
.tl-footer { margin-top: 56px; }
@media (min-width: 760px) { .tl-footer-links { justify-content: flex-start; } }

/* Small fixes */
.tl-gta-input::placeholder { text-transform: none; letter-spacing: normal; font-size: 13px; }
.tl-btn-plain { padding-inline: 0; }
.tl-count-badge { white-space: nowrap; }
.tl-label-row { flex-wrap: wrap; }
.tl-help code, .tl-prose code, p code { white-space: nowrap; }
.tl-kit-techs li > a:not(.tl-house-link) { font: 600 22px/1.1 var(--font-heading); text-transform: uppercase; color: var(--ink); text-decoration: none; }
.tl-kit-techs a.tl-house-link { font: inherit; text-transform: none; color: inherit; }
.tl-card.tl-empty { padding: clamp(20px, 4vw, 36px); }
.tl-bk-tools { grid-template-columns: minmax(0, 1fr); }
.tl-bk-tools .tl-btn { white-space: normal; text-align: center; }
.tl-contact-list li:last-child { border-bottom: 0; }
.tl-avail-tools .tl-field, .tl-avail-tools .tl-input { min-width: 0; }
.tl-side { position: static; }
@media (min-width: 1000px) { .tl-side { position: static; } }

/* Kit index: tidy grid without grey filler blocks; empty kit is quiet, not a blue dash */
.tl-kit-list { gap: 0; background: none; border: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.tl-kit-list li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tl-kit-list b.is-zero { color: var(--ink-faint); font-weight: 400; }

/* The private-diary note: quieter box, and its button is secondary so "Find technicians" stays the main action */
.tl-locked { border: 1px solid var(--line); background: color-mix(in srgb, var(--surface-2) 70%, transparent); }

/* IMDb: a calm outline with a small yellow mark, not a big yellow block */
.tl-btn-imdb { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.tl-btn-imdb::before { content: "IMDb"; font: 700 12px/1 var(--font-body); letter-spacing: 0; background: var(--imdb); color: #111; padding: 3px 4px; margin-right: 2px; }
.tl-btn-imdb:hover { background: transparent; border-color: var(--imdb); color: var(--ink); }

/* Booked-out list: solid markers, not empty checkboxes */
.tl-booked li::before { background: var(--ink-faint); border: 0; }

/* Colours: free days are green everywhere (they already are on the house board) */
.tl-day.is-on { background: color-mix(in srgb, var(--ok) 30%, transparent); border-color: color-mix(in srgb, var(--ok) 65%, transparent); color: var(--ink); }
.tl-mday.is-free { background: color-mix(in srgb, var(--ok) 18%, transparent); }
.tl-avail-bar i { background: var(--ok); }
.tl-avail-text { color: var(--ok); }
.tl-status-pencil { color: var(--accent); }
.tl-status-pencil::before { background: transparent; border: 1.5px solid var(--accent); width: 7px; height: 7px; }
.tl-status-done { color: var(--ink-soft); }
.tl-status-done::before { background: var(--ink-soft); }

/* Result cards: details in one column, actions on the right when there's room */
@container results (min-width: 700px) {
	.tl-result-main { grid-template-columns: minmax(0, 1fr); align-items: start; }
	.tl-result { grid-template-columns: minmax(0, 1fr) auto; }
	.tl-result-main { padding-bottom: 18px; }
	.tl-result-actions { padding: 18px 8px; flex-wrap: nowrap; align-self: center; }
}
.tl-result-main .tl-tags { margin-top: 2px; }
@container results (max-width: 699px) {
	.tl-result-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
	.tl-result-actions .tl-btn { width: 100%; }
}
.tl-btn-accent { border-color: var(--accent-line); color: var(--accent); }
.tl-btn-accent:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-hover); }
.tl-results-note { margin: 0 0 12px; font-size: 14px; color: var(--ink-soft); }

/* House stats charts fit a phone instead of being cut off */
@media (max-width: 600px) {
	.tl-hchart svg { min-width: 0; }
	.tl-hchart-tick, .tl-hchart-value { font-size: 22px; }
}

/* Moderation menu on phones: wraps into a grid instead of a strip that hides most of it */
@media (max-width: 999px) {
	.tl-mod-nav { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); overflow: visible; }
	.tl-mod-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }
}

/* Booking lists on small phones keep their buttons lined up with the text */
@media (max-width: 420px) { .tl-bk-actions { padding-left: 90px; } }

/* Profiles on phones: name, then how to book or contact them, then kit and dates; reporting last. */
@media (max-width: 899px) {
	.tl-profile { gap: 0; }
	.tl-profile > article { display: contents; }
	.tl-profile > article > .tl-profile-head { order: 1; }
	.tl-profile > .tl-contact { order: 2; margin-bottom: 28px; }
	.tl-profile > article > .tl-block { order: 3; }
	.tl-profile > article > .tl-report { order: 4; }
}
.tl-contact-list a { color: var(--accent); }
.tl-kit-head { align-items: baseline; margin-bottom: 10px; } .tl-kit-head .tl-section-label { margin-bottom: 0; }
/* Launched homepage: a shorter hero so the search starts above the fold, lined up with it */
.tl-hero-compact { padding: clamp(32px, 5vw, 64px) 0 clamp(20px, 3vw, 32px); border-bottom: 0; }
.tl-hero-compact h1 { font-size: var(--fs-h1); margin-bottom: 18px; }
.tl-hero-compact .tl-lead { margin-bottom: 18px; }
.tl-hero-compact + .tl-section { padding-top: 8px; }
.tl-hero-compact + .tl-section .tl-search-shell { margin-left: 0; }
/* Front page on phones: headline, text and the sign-up buttons first, then the count */
@media (max-width: 899px) {
	.tl-goal-copy > .tl-lead { order: 3; }
	.tl-goal-copy > .tl-actions { order: 4; }
	.tl-goal-meter { order: 5; }
	.tl-goal-copy > .tl-help { order: 6; }
}
.tl-dm-pick-card .tl-eyebrow { margin: 0; }
.tl-closing-line { max-width: 22ch; margin-left: auto; margin-right: auto; }
/* Demos: badge line wraps instead of squeezing; hint outline doesn't run into labels; tidy CTA */
.tl-page-head .tl-dm-note-line, .tl-dm-note-line { flex-wrap: wrap; }
.tl-dm-hint { outline-offset: 0; }
.tl-dm-cta .tl-actions { flex-direction: column; align-items: flex-start; gap: 12px; }
@media (max-width: 600px) { .tl-dm-cta .tl-btn { width: 100%; white-space: normal; } .tl-dm-cta .tl-btn-plain { width: auto; } }
.tl-signup-cta { display: grid; gap: 10px; justify-items: start; }
.tl-signup-cta-title { font: 600 var(--fs-h3)/1 var(--font-heading); text-transform: uppercase; }
.tl-demo-cal-copy .tl-help { margin: 0 0 6px; }
.tl-demo-cal-copy { display: grid; gap: 4px; }
@media (max-width: 480px) {
	.tl-shuffle-item { grid-template-columns: 28px 1fr; row-gap: 6px; }
	.tl-shuffle-item .tl-tag { grid-column: 2; justify-self: start; }
	.tl-peek-list > div { grid-template-columns: 1fr; gap: 2px; }
}
/* A job offer on a phone: see the job before answering it */
.tl-bk-maincol { display: flex; flex-direction: column; gap: 28px; }
.tl-bk-maincol > .tl-card + .tl-card { margin-top: 0; }
@media (max-width: 899px) { .tl-bk-maincol.is-offer > .tl-bk-details { order: -1; } }
.tl-bk-reply .tl-actions .tl-btn { flex: 1 1 200px; justify-content: center; }
@media (min-width: 900px) { .tl-bk-side { position: static; } }
/* Profile editor: legend for the calendar; status first on phones; a slimmer save bar */
.tl-cal-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 12px; font-size: 13px; color: var(--ink-soft); }
.tl-legend-item { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.tl-legend-item .tl-key { margin-right: 0; }
.tl-key.is-blank { border: 1px solid var(--line-strong); background: var(--bg); }
.tl-key.is-busy { border: 1px solid var(--line); background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--ink) 18%, transparent) 0 3px, transparent 3px 6px); }
.tl-side > .tl-card.is-complete .tl-checklist { display: none; }
@media (max-width: 999px) {
	.tl-profile-editor > .tl-side { display: contents; }
	.tl-profile-editor > .tl-side > * { order: 1; }
	.tl-profile-editor > .tl-side > :first-child { order: -1; }
	.tl-sticky-save { padding: 10px 0; }
	.tl-sticky-save .tl-help { display: none; }
	.tl-sticky-save .tl-btn { width: 100%; justify-content: center; }
}
.tl-avail-tools .tl-btn { min-height: 48px; }
.tl-wrap.tl-account { max-width: var(--max); margin-left: auto; margin-right: auto; }
.tl-account > * { max-width: 760px; }
/* House board on phones: a narrower name column so more days fit */
@media (max-width: 600px) {
	.tl-board-name { min-width: 110px; max-width: 130px; }
	.tl-board tbody .tl-board-name span { display: none; }
	.tl-board tbody .tl-board-name a { font-size: 14px; }
}
/* Jobs table: steady columns; dates don't wrap */
.tl-job-table { table-layout: fixed; width: 100%; }
.tl-job-table td:nth-child(2), .tl-job-table th:nth-child(2) { white-space: nowrap; }
.tl-job-table th:nth-child(1) { width: 30%; } .tl-job-table th:nth-child(2) { width: 22%; } .tl-job-table th:nth-child(3) { width: 26%; } .tl-job-table th:nth-child(4) { width: 22%; }
@media (max-width: 600px) { .tl-job-table { table-layout: auto; } .tl-job-table th:nth-child(3), .tl-job-table td:nth-child(3) { display: none; } }
/* House board: "booked elsewhere" is plain grey — amber is kept for things waiting on a reply */
.tl-cell.is-elsewhere { background: color-mix(in srgb, var(--ink) 22%, transparent); color: var(--ink); }
@media (max-width: 999px) {
	.tl-mod-nav .tl-nav-alert { grid-column: 1 / -1; margin-bottom: 0; }
	.tl-mod-nav .tl-nav-divider, .tl-mod-nav .tl-nav-group { grid-column: 1 / -1; }
}
@media (max-width: 999px) { .tl-mod-nav .tl-sep { display: block; grid-column: 1 / -1; padding: 8px 14px 4px; background: var(--bg); font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); } }
@media (max-width: 899px) { .tl-reject[open] { flex-basis: 100%; } .tl-reject-panel { min-width: 0; } }
.tl-kpis + .tl-house-days, .tl-house-days { margin-top: 14px; }

/* =============================================================== The wordmark plate (3.19)
   The light theme that lived here was removed in 4.0: the site is dark only. */
:root { --brand: #94bbe3; --brand-ink: #111214; }
.tl-wm-plate { background: var(--brand); color: var(--brand-ink); }
.tl-wm-dots i { background: var(--brand-ink); }

/* The few things that weren't tokens yet */
.tl-nav-count, .tl-nav-count.tl-nav-warn { color: var(--count-ink, #1a1407); }


.tl-select { background-image: var(--select-arrow, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23b7b7ba' stroke-width='2'/%3E%3C/svg%3E")); }
.tl-dialog::backdrop { background: var(--backdrop, rgba(5, 6, 8, .72)); }
.tl-cell.is-elsewhere { color: var(--ink); }

/* Phone moderation menu: hairlines on the links themselves, so an empty grid cell never shows as a grey block */
@media (max-width: 999px) {
	.tl-mod-nav { gap: 0; background: var(--surface); }
	.tl-mod-nav a, .tl-mod-nav .tl-nav-alert { box-shadow: inset -1px -1px 0 var(--line); }
	.tl-mod-nav a[aria-current="page"] { box-shadow: inset -1px -1px 0 var(--line), inset 0 -2px 0 var(--accent); }
}

/* ===================================================== 3.20: usability pass */
/* Free-days editor: locked and pencilled days, the tip, quick fill */
.tl-day.is-booked, .tl-day.is-booked:disabled { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); opacity: .85; cursor: not-allowed; }
.tl-day.is-job, .tl-day.is-job:disabled { background: var(--surface-3); border-color: var(--line-strong); color: var(--ink-soft); cursor: not-allowed; }
.tl-day.is-held { box-shadow: inset 0 0 0 2px var(--accent); }
.tl-day.is-held.is-today { box-shadow: inset 0 0 0 2px var(--accent), inset 0 0 0 3px var(--ink-soft); }
.tl-hint { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; padding: 8px 12px; background: var(--surface-2); border-left: 2px solid var(--accent); color: var(--ink-soft); font-size: 14px; line-height: 1.5; }
.tl-hint .tl-icon { flex: none; margin-top: 3px; color: var(--accent); }
.tl-quick-label { align-self: center; margin-right: 4px; }
.tl-avail-range { margin-top: 10px; }
.tl-avail-range > summary { cursor: pointer; color: var(--accent); font-size: 14px; padding: 4px 0; }
.tl-avail-range[open] > summary { margin-bottom: 8px; }
.tl-avail-range .tl-help { margin-top: 8px; font-size: 14px; }
.tl-range-msg:empty { display: none; }
.tl-range-msg { margin-top: 8px; color: var(--ok); }
/* Two-tap buttons, quick notes, floating message */
.tl-btn.is-armed { background: var(--pending); border-color: var(--pending); color: #fff; }
.tl-btn-primary.is-armed { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.tl-note-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tl-chip-btn { font: 500 13px/1.3 var(--font-mono); padding: 6px 10px; background: var(--surface-2); color: var(--ink-soft); border: 1px solid var(--line); cursor: pointer; }
.tl-chip-btn:hover { color: var(--ink); border-color: var(--accent); }
.tl-bk-ask { margin: 4px 0 10px; color: var(--ink-soft); }
.tl-bk-ask strong { color: var(--ink); }
.tl-opt.tl-block { display: block; margin-top: 2px; }
.tl-show-houses .tl-segmented { margin-top: 6px; }
.tl-owner-only { display: flex; gap: 6px; align-items: baseline; margin: 0 0 10px; padding: 8px 12px; border-radius: 8px; background: var(--accent-soft); border: 1px solid var(--accent-line); font-size: 14px; }
.tl-found-line { margin: 8px 0 0; font-size: 14px; display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.tl-found-list li.is-busy { border-left: 3px solid var(--pending); padding-left: 8px; }
.tl-heavy-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.tl-heavy-list .tl-help { display: block; }
.tl-typo-hint.is-stop { font-weight: 600; }
.tl-flash.is-toast { position: fixed; z-index: 60; left: 16px; right: 16px; top: 76px; max-width: 640px; margin: 0 auto; padding-right: 40px; box-shadow: 0 8px 28px rgba(0, 0, 0, .35); }
.tl-toast-close { display: none; }
.tl-flash.is-toast .tl-toast-close { display: block; position: absolute; top: 6px; right: 8px; background: transparent; border: 0; color: inherit; font-size: 22px; line-height: 1; cursor: pointer; padding: 4px 8px; }
.tl-bk-report { margin-top: 18px; }
.tl-head-actions { flex-wrap: wrap; }
.tl-sync-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .tl-sync-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.tl-share-box { padding: 14px 16px; border: 1px solid var(--line); background: var(--surface-2); }
.tl-share-cols { display: grid; gap: 14px; margin-top: 12px; }
@media (min-width: 700px) { .tl-share-cols { grid-template-columns: 1fr 1fr; } }
.tl-ticks { margin: 6px 0 0; padding-left: 18px; color: var(--ink-soft); font-size: 14px; line-height: 1.5; }
.tl-ticks li + li { margin-top: 4px; }
.tl-checklist-wrap { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.tl-checklist-wrap .tl-label { display: block; margin: 0 0 6px; font-size: 12px; }
.tl-bk-clash { display: flex; gap: 6px; align-items: center; margin: 0; padding: 0 16px 8px; color: var(--pending); font-size: 13px; }
.tl-hchart-bar.is-future { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.5; }
.tl-chart-key { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; margin-top: 8px; }
.tl-chart-key .tl-key { margin-right: 0; }
.tl-kpis-stats { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
/* Search: role on each card, already on this job, and techs who run it but aren't free every day */
.tl-role-tag { display: inline-block; margin-left: 10px; font: 600 12px/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-faint); vertical-align: 2px; }
.tl-onjob-tag { display: block; margin-top: 4px; font-size: 13px; color: var(--accent); font-weight: 600; }
.tl-result.is-on-job { border-left: 3px solid var(--accent); }
.tl-nearly { margin-top: 28px; }
.tl-nearly-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.tl-nearly-row { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--surface); border: 1px dashed var(--line-strong); }
.tl-nearly-who { display: grid; gap: 2px; min-width: 0; }
.tl-nearly-who .tl-result-name { font-size: 18px; }
.tl-nearly-who .tl-role-tag { margin-left: 0; }
.tl-result-main .tl-role-tag { display: block; margin: 4px 0 0; }
.tl-nearly-row { position: relative; }
.tl-nearly-row .tl-result-actions { position: relative; z-index: 1; }
.tl-gta-group-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-right: 8px; }
.tl-gta-anygroup { margin-top: 6px; padding: 4px 10px; font: 600 12px/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line, var(--accent)); cursor: pointer; }
.tl-gta-anygroup:hover { background: var(--accent); color: var(--accent-ink); }
/* Needs you */
.tl-needs { margin: 0 0 24px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--pending); }
.tl-needs.is-calm { border-left-color: var(--ok); padding: 10px 18px; }
.tl-needs-title { display: flex; gap: 8px; align-items: center; margin: 0 0 8px; }
.tl-needs.is-calm .tl-needs-title { margin: 0; }
.tl-needs-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tl-needs-list li { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--line-soft); }
.tl-needs-list li:first-child { border-top: 0; padding-top: 2px; }
.tl-needs-list li > span { flex: 1 1 280px; color: var(--ink); }
.tl-needs-list li.is-declined > span::before { content: "Declined · "; color: var(--danger); font-weight: 600; }
.tl-needs-next { margin: 10px 0 0; color: var(--ink-soft); font-size: 14px; }
.tl-needs.is-calm .tl-needs-next { margin-top: 4px; }
/* House board: slim stat line, three weeks on wide screens */
.tl-statline { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0 0 18px; font-size: 14px; color: var(--ink-soft); }
.tl-statline b { color: var(--ink); font-size: 18px; margin-right: 4px; }
.tl-statline a { color: var(--ink-soft); text-decoration: none; }
.tl-statline a:hover { color: var(--accent); }
.tl-statline a.is-alert b { color: var(--pending); }
@media (max-width: 1099px) { .tl-board .is-extra { display: none; } }
/* Booking form summary */
.tl-book-summary { margin: 4px 0 12px; padding: 10px 12px; background: var(--surface-2); border-left: 2px solid var(--accent); font-size: 14px; color: var(--ink); }
.tl-book-summary:empty { display: none; }
/* Read-only free-days calendar on profiles */
.tl-freecal { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); margin-top: 8px; }
.tl-freecal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; margin-top: 6px; }
.tl-freecal-wd { font: 600 12px/1 var(--font-mono); color: var(--ink-faint); text-align: center; padding-bottom: 2px; }
.tl-freecal-day { display: grid; place-items: center; height: 26px; font: 500 12px/1 var(--font-mono); color: var(--ink-faint); border: 1px solid var(--line-soft); }
.tl-freecal-day.is-free { background: color-mix(in srgb, var(--ok) 30%, transparent); border-color: color-mix(in srgb, var(--ok) 65%, transparent); color: var(--ink); font-weight: 600; }
.tl-freecal-day.is-past { opacity: .35; }
.tl-freecal-day.is-today { box-shadow: inset 0 0 0 1px var(--ink-soft); }
.tl-away { margin-top: 12px; }
.tl-away > summary { cursor: pointer; color: var(--accent); font-size: 14px; }
.tl-who { padding: 8px 0 40px; }
.tl-who-card { max-width: 760px; padding: 18px 22px; border: 1px solid var(--line); background: var(--surface); }
.tl-who-list { font-size: 16px; }
.tl-ask { max-width: 640px; margin: 0 auto; }
.tl-q-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 12px; }
.tl-q-list li { padding: 10px 0; border-top: 1px solid var(--line-soft); }
.tl-q-list li.is-new p:first-child { color: var(--ink); font-weight: 500; }
/* Before launch: "You're #21 of 40" */
.tl-nudge { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; margin: 0 0 24px; padding: 16px 20px; background: var(--accent-soft); border: 1px solid var(--accent-line, var(--accent)); }
.tl-nudge-title { margin: 0 0 4px; font: 600 22px/1.15 var(--font-heading); text-transform: uppercase; letter-spacing: 0; }
.tl-nudge .tl-help { max-width: 560px; }
.tl-daybar { display: flex; gap: 2px; max-width: 260px; margin: 6px 0 2px; }
.tl-daybar i { flex: 1 1 0; height: 8px; min-width: 4px; background: var(--surface-3); }
.tl-daybar i.is-free { background: var(--ok); }
.tl-daybar-text { display: block; }
@media (min-width: 1100px) {
	.tl-board th, .tl-board td { padding: 2px; }
	.tl-board .tl-cell { min-width: 28px; height: 32px; }
	.tl-board-name { min-width: 140px; max-width: 170px; }
	.tl-board thead th b { font-size: 16px; }
}
/* Footer: the line under the links gets its own row, so the links never squeeze */
@media (min-width: 760px) {
	.tl-footer .tl-wrap { grid-template-columns: auto 1fr; }
	.tl-footer small { grid-column: 1 / -1; }
}
.tl-footer small a { color: var(--ink-soft); }
.tl-nearly-facts { font: 500 12px/1.5 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.tl-board-stale { display: block; margin-top: 2px; font: 500 12px/1.3 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--pending); }
.tl-board .tl-cell.is-pencilled { font-size: 12px; }
/* Own jobs and time off: hatched, so they never look like a plain "not free" day */
.tl-day.is-job, .tl-day.is-job:disabled { background: repeating-linear-gradient(135deg, var(--surface-3) 0 5px, var(--surface-2) 5px 10px); border-color: var(--line-strong); color: var(--ink); }
.tl-key.is-own { background: repeating-linear-gradient(135deg, var(--surface-3) 0 3px, var(--surface-2) 3px 6px); }
.tl-mitem.is-own { background: repeating-linear-gradient(135deg, var(--surface-3) 0 4px, var(--surface-2) 4px 8px); }
@media (max-width: 640px) {
	.tl-mitem { height: 15px; display: grid; place-items: center; }
	.tl-mitem::before { content: attr(data-l); font: 700 12px/1 var(--font-mono); letter-spacing: 0; }
}
.tl-next-steps { margin: 10px 0 0; padding-left: 20px; font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
.tl-next-steps li + li { margin-top: 4px; }
.tl-ask-who .tl-who-card { max-width: 640px; margin: 0 auto; }
.tl-typo-hint { margin-top: 6px; color: var(--pending); }
.tl-linkbtn { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; font: inherit; cursor: pointer; }
.tl-pw-count.is-ok { color: var(--ok); }
/* Who's found you */
.tl-found-list { list-style: none; margin: 6px 0 10px; padding: 0; }
.tl-found-list li { display: grid; gap: 1px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.tl-found-list li:last-child { border-bottom: 0; }
.tl-found-report > summary { cursor: pointer; font-size: 13px; color: var(--ink-faint); }
.tl-found-report .tl-form { margin-top: 6px; gap: 6px; }
.tl-result-where, .tl-profile-where { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-soft); }
.tl-profile-where { display: flex; gap: 6px; align-items: center; }
/* Crewing a job by role */
.tl-crew-on { margin-top: 6px; font-size: 14px; }
.tl-crew-next { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.tl-job-roles { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.tl-job-roles li.is-needed strong { color: var(--pending); }
.tl-role-pick label { font-size: 13px; }

/* 3.21 round 4 */
.tl-results-kit { display: inline; }
.tl-results-kit summary { cursor: pointer; display: inline; text-decoration: underline; text-underline-offset: 3px; }
.tl-results-kit[open] span { display: block; margin-top: 4px; }
.tl-crew-strip { margin: 0 0 10px; padding: 8px 12px; border-radius: 8px; background: var(--accent-soft); border: 1px solid var(--accent-line); font-size: 14px; }
.tl-mitem.is-off { background: repeating-linear-gradient(45deg, var(--surface-3) 0 4px, transparent 4px 8px); border-style: dotted; color: var(--ink-soft); }
.tl-key.is-off { background: repeating-linear-gradient(45deg, var(--surface-3) 0 3px, transparent 3px 6px); border-style: dotted; }
@media (max-width: 640px) {
	/* Phone month view: a few letters of the name, not just B or P. */
	.tl-mitem::before { content: attr(data-s); font: 700 12px/1 var(--font-mono); letter-spacing: 0; overflow: hidden; white-space: nowrap; max-width: 100%; text-transform: none; }
}
/* A big monitor gets five weeks on the house board; smaller screens three, phones two. */
.tl-board .is-wide { display: none; }
@media (min-width: 1500px) {
	.tl-house-wrap { max-width: min(1680px, 100%); }
	.tl-board .is-wide { display: table-cell; }
}
.tl-btn.is-armed { white-space: normal; text-align: center; line-height: 1.25; height: auto; padding-top: 6px; padding-bottom: 6px; }
.tl-btn-lg.is-armed { min-height: 52px; }
.tl-bk-clash.is-hard { color: var(--danger); font-weight: 600; }
.tl-clash li.is-booked { color: var(--danger); }
.tl-show-houses { min-width: 0; }
.tl-show-houses .tl-segmented { display: flex; flex-wrap: wrap; max-width: 100%; }
.tl-show-houses .tl-segmented label { flex: 1 1 auto; text-align: center; }
.tl-needs-list li.is-late > span::before { content: "2nd pencil · "; color: var(--pending); font-weight: 600; }
.tl-share-more { margin-top: 8px; }
.tl-share-more summary { cursor: pointer; font-size: 14px; color: var(--accent); }
.tl-share-more[open] summary { margin-bottom: 8px; }
.tl-found-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.tl-cell.is-declined { border: 1px dashed var(--danger); color: var(--danger); font-weight: 700; text-decoration: none; display: grid; place-items: center; }
.tl-board-partial { margin: 6px 0 0; }
@media (min-width: 1500px) {
	body:has(.tl-house-wrap) .tl-header .tl-wrap, body:has(.tl-house-wrap) .tl-footer .tl-wrap { max-width: min(1680px, 100%); }
}
.tl-gta-quick { margin: 6px 0 0; font-size: 13px; color: var(--ink-soft); }
.tl-gta-hint { margin: 8px 10px; }
.tl-day-detail { margin-top: 10px; padding: 10px 12px; border: 1px solid var(--line-strong); background: var(--surface); }
.tl-day-detail-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.tl-day-detail-list a { text-decoration: none; color: var(--ink); }
.tl-mday.is-picked { box-shadow: inset 0 0 0 2px var(--accent); }
@media (max-width: 640px) { .tl-mday { cursor: pointer; } }
@keyframes tl-nudge { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.tl-btn.is-nudge { animation: tl-nudge .25s ease-in-out 2; }
@media (prefers-reduced-motion: reduce) { .tl-btn.is-nudge { animation: none; outline: 2px solid var(--accent); } }
.tl-calsync-buttons [data-copy] { min-width: 8.5em; }
.tl-row > .tl-field { align-self: start; align-content: start; }
.tl-avail-how { margin: 0 0 10px; }
.tl-avail-how summary { cursor: pointer; font-size: 14px; color: var(--accent); }
.tl-bk-crew { margin: 0 0 10px; font-size: 14px; }
.tl-bk-crew ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 4px; }
.tl-board-ask { display: inline; margin-left: 6px; font-size: 12px; } .tl-board-ask .tl-linkbtn { font-size: 12px; }

/* =============================================================== 3.22 — design audit (5 Nov 2026)
   Paragraphs in IBM Plex Sans; Plex Mono kept for labels, buttons, kit names and numbers.
   The blue is spent on one thing per view (the main action, the plate, a selection).
   Ten-step type scale (tokens in :root), 44px targets on touch, no side-stripe boxes. */

/* Base type */
body { font-size: var(--fs-body); line-height: 1.6; letter-spacing: 0; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
.tl-lead { font-size: var(--fs-lead); line-height: 1.6; letter-spacing: 0; max-width: 60ch; }
.tl-slide .tl-lead { font-size: var(--fs-lead); }
.tl-help, .tl-field-error { font-size: var(--fs-small); line-height: 1.55; }
.tl-tour-copy p, .tl-free-copy p { font-size: var(--fs-body); line-height: 1.65; }
.tl-input, .tl-select, .tl-textarea, .tl-gta-input, .tl-date-btn { font-size: 16px; } /* 16px stops iPhones zooming in */
.tl-brand-tag { font-size: var(--fs-label); letter-spacing: .1em; white-space: nowrap; }
.tl-header.has-long-nav .tl-brand-tag { display: none; }

/* One accent per view: eyebrows, form labels and text links in ink */
.tl-eyebrow { color: var(--ink-faint); }
.tl-label { color: var(--ink); }
.tl-label .tl-opt { color: var(--ink-faint); }
a { color: var(--ink); text-decoration-color: var(--line-strong); }
a:hover { color: var(--ink); text-decoration-color: currentColor; }
.tl-hero-card .tl-lead a { color: var(--ink); }
.tl-bk-date span { color: var(--ink-faint); }
.tl-kit-chips b { color: var(--ink-faint); font-weight: 500; font-variant-numeric: tabular-nums; }
.tl-nav a[aria-current="page"] { color: var(--ink); }

/* Kit names in their own spelling (Technocrane, MovieBird), not capitals */
.tl-tag, .tl-gta-chip, .tl-kit-chips a, .tl-art-tag {
	font-family: var(--font-mono); font-weight: 500; font-size: var(--fs-btn); letter-spacing: 0; text-transform: none;
}
.tl-tag-more { font-family: var(--font-body); }
.tl-kit-chips a {
	min-height: 44px; padding: 0 14px; border-color: var(--line); background: var(--surface); color: var(--ink); font-size: var(--fs-small);
	transition: background-color .15s ease, border-color .15s ease;
}
.tl-kit-chips a:hover { border-color: var(--line-strong); background: var(--surface-2); color: var(--ink); }

/* Sentences read as sentences: freshness and reply lines under a result */
.tl-result-signals { font-family: var(--font-body); font-size: var(--fs-small); letter-spacing: 0; text-transform: none; }

/* Header: the menu in Oswald, like the wordmark (5 Nov) */
.tl-nav a:not(.tl-btn), .tl-nav button.tl-linkbtn {
	font-family: var(--font-nav); font-size: var(--fs-h4); font-weight: 500; letter-spacing: .04em;
	min-height: 44px; padding: 0 12px;
}
.tl-nav .tl-nav-count { font-family: var(--font-mono); letter-spacing: 0; }
.tl-nav a:not(.tl-btn), .tl-nav button.tl-linkbtn { white-space: nowrap; }
@media (max-width: 1240px) { .tl-header.has-long-nav .tl-brand-tag { display: none; } .tl-header.has-long-nav .tl-nav a:not(.tl-btn), .tl-header.has-long-nav .tl-nav button.tl-linkbtn { padding: 0 9px; font-size: var(--fs-body); } }
/* Oswald runs wider than the old mono, so the menu folds into Menu below 1080px, before it can wrap or spill */
@media (max-width: 1080px) {
	.tl-nav { display: none; }
	.tl-menu { display: block; }
	.tl-brand-tag { display: none; }
	.tl-header .tl-header-join { display: inline-flex; margin-left: auto; }
}
.tl-menu-panel a, .tl-menu-panel button.tl-linkbtn { font-family: var(--font-nav); font-size: var(--fs-h4); font-weight: 500; letter-spacing: .04em; min-height: 48px; }

.tl-menu > summary { min-height: 44px; }

/* The wordmark plate follows the accent in light mode: one blue, not two */

/* Two-tap buttons: dark text on amber (white was 3.5:1 in dark mode) */
.tl-btn.is-armed { color: var(--pending-ink, #111214); }

/* Light-mode contrast fixes found by the audit */
.tl-mitem.is-offer { color: var(--ink); }
.tl-lookalike { color: var(--ink); }
.tl-lookalike .tl-icon, .tl-mod-nav .tl-nav-alert .tl-icon { color: var(--pending); }
.tl-mod-nav .tl-nav-alert, .tl-mod-nav .tl-nav-alert:hover { color: var(--ink); }

/* "Needs you": a plain box with an amber bell, not a side stripe */
.tl-needs { border: 1px solid var(--line-strong); padding: 16px 20px; }
.tl-needs .tl-needs-title { color: var(--ink); }
.tl-needs:not(.is-calm) .tl-needs-title .tl-icon { color: var(--pending); }
.tl-needs.is-calm .tl-needs-title .tl-icon { color: var(--ok); }

/* Touch: every small button is a full 44px target on phones and tablets */
@media (pointer: coarse) {
	.tl-btn-sm { min-height: 44px; }
	.tl-tab, .tl-seg a, .tl-segmented label { min-height: 44px; }
}

/* Links that read as "more of this" */
.tl-more {
	display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
	font: 500 var(--fs-btn)/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase;
	color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 5px;
}
.tl-more:hover { color: var(--ink); text-decoration-color: currentColor; }
.tl-more .tl-icon { transition: transform .15s ease; }
.tl-more:hover .tl-icon { transform: translateX(3px); }
.tl-section-rule { border-top: 1px solid var(--line); }
.tl-section-head { margin-bottom: clamp(24px, 3.5vw, 44px); }
.tl-section-head .tl-eyebrow { margin-bottom: 12px; }
.tl-section-head h2, .tl-head-row > div > h2, .tl-kit-home .tl-head-row h2 { margin: 0; }
.tl-kit-home .tl-head-row { margin-bottom: clamp(20px, 3vw, 32px); align-items: flex-end; }

/* ---- Front page (pre-launch) */
.tl-front { border-bottom: 1px solid var(--line); }
.tl-front-grid {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(32px, 5vw, 80px);
	align-items: center; padding-top: clamp(36px, 6vw, 88px); padding-bottom: clamp(36px, 6vw, 88px);
}
.tl-front-grid > * { min-width: 0; }
.tl-front .tl-eyebrow { margin: 0 0 20px; }
.tl-front .tl-goal-copy h1 { font-size: var(--fs-display); line-height: .96; margin: 0 0 22px; max-width: 13ch; }
.tl-front .tl-lead { max-width: 34em; margin: 0; }
.tl-front-actions { margin-top: 32px; }
.tl-front-actions .tl-btn { flex: 1 1 220px; }
.tl-front .tl-goal-copy .tl-help { margin: 20px 0 0; }

/* The count: ink, not blue — the Join button is the blue thing here */
.tl-goal-meter { background: var(--surface); gap: 14px; }
.tl-front .tl-goal-meter { padding: clamp(24px, 3vw, 40px); }
.tl-goal-num b { font-size: clamp(80px, 9vw, 128px); color: var(--ink); }
.tl-goal-num span { font-size: clamp(28px, 2.8vw, 40px); }
.tl-goal-cells { grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 4px; margin: 6px 0; }
.tl-goal-cells.is-dense { grid-template-columns: repeat(25, minmax(0, 1fr)); gap: 3px; }
.tl-goal-cells i { border: 0; background: var(--surface-3); }
.tl-goal-cells i.is-on { background: var(--ink); border: 0; }
.tl-goal-meter .tl-label { color: var(--ink-faint); order: -1; }
.tl-goal-left { color: var(--ink); font-size: var(--fs-h4); }
.tl-goal-left strong { font-weight: 600; }

/* Trust strip */
.tl-trust { background: var(--surface); border-bottom: 1px solid var(--line); }
.tl-trust-list {
	list-style: none; margin: 0; padding: clamp(28px, 4vw, 48px) 0;
	display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: clamp(20px, 3vw, 40px);
}
.tl-trust-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 14px; row-gap: 6px; align-content: start; }
.tl-trust-list .tl-icon { grid-row: span 2; margin-top: 1px; color: var(--ink); }
.tl-trust-list h3 { margin: 0; font: 600 var(--fs-body)/1.4 var(--font-body); text-transform: none; letter-spacing: 0; }
.tl-trust-list p { margin: 0; font-size: var(--fs-small); line-height: 1.55; color: var(--ink-soft); }

/* How it works */
.tl-how-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.tl-how-step { display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--surface); min-width: 0; }
.tl-how-art { min-height: 176px; padding: 24px; display: flex; flex-direction: column; justify-content: center; gap: 14px; background: var(--bg); border-bottom: 1px solid var(--line-soft); }
.tl-how-copy { padding: 24px; }
.tl-how-num { display: block; margin-bottom: 10px; font: 500 var(--fs-label)/1.4 var(--font-mono); letter-spacing: .1em; color: var(--ink-faint); }
.tl-how-copy h3 { margin: 0; font-size: var(--fs-h3); line-height: 1.15; }
.tl-how-copy p { margin: 10px 0 0; color: var(--ink-soft); }
.tl-how-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tl-how-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); font: 500 var(--fs-btn)/1.2 var(--font-mono); color: var(--ink-soft); }
.tl-how-chip.is-on { border-color: var(--ink); color: var(--ink); }
.tl-how-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.tl-how-week > span { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 0 10px; border: 1px solid var(--line); color: var(--ink-faint); }
.tl-how-week small { font: 500 var(--fs-label)/1.2 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; }
.tl-how-week b { font: 600 18px/1 var(--font-heading); font-variant-numeric: tabular-nums; }
.tl-how-week .is-free, .tl-how-key i.is-free { background: color-mix(in srgb, var(--ok) 18%, transparent); border-color: var(--ok); color: var(--ink); }
.tl-how-week .is-booked, .tl-how-key i.is-booked { background: var(--surface-3); border-color: var(--line-strong); color: var(--ink); }
.tl-how-key { display: flex; flex-wrap: wrap; gap: 6px 16px; font: 500 var(--fs-label)/1.4 var(--font-mono); color: var(--ink-soft); }
.tl-how-key span { display: inline-flex; align-items: center; gap: 6px; }
.tl-how-key i { width: 10px; height: 10px; border: 1px solid var(--line-strong); }
.tl-how-offer { border: 1px solid var(--line-strong); background: var(--surface); padding: 16px; display: grid; gap: 4px; }
.tl-how-offer-label { font: 500 var(--fs-label)/1.4 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.tl-how-offer strong { font: 600 18px/1.2 var(--font-heading); text-transform: uppercase; }
.tl-how-offer-meta { font: 500 var(--fs-btn)/1.4 var(--font-mono); color: var(--ink-soft); }
.tl-how-offer-btns { display: flex; gap: 8px; margin-top: 8px; }
.tl-how-offer-btns > span { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; font: 500 var(--fs-label)/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; border: 1px solid var(--line-strong); color: var(--ink-soft); }
.tl-how-offer-btns > .is-yes { border-color: var(--ink); color: var(--ink); }

/* Demo cards: whole-card links, no row of blue buttons */
.tl-dm-pick { margin-bottom: 0; gap: 16px; }
@media (min-width: 760px) { .tl-dm-pick.is-three { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); } }
.tl-dm-pick-card { padding: 24px; gap: 8px; border: 1px solid var(--line); background: var(--surface); transition: background-color .15s ease, border-color .15s ease; }
.tl-dm-pick-card:hover { border-color: var(--line-strong); background: var(--surface-2); }
.tl-dm-pick.is-three .tl-dm-pick-card strong { font-size: var(--fs-h3); line-height: 1.15; }
.tl-dm-pick-card .tl-help { color: var(--ink-soft); margin: 0; }
.tl-dm-pick-go { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 8px; font: 500 var(--fs-btn)/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.tl-dm-pick-go .tl-icon { transition: transform .15s ease; }
.tl-dm-pick-card:hover .tl-dm-pick-go .tl-icon { transform: translateX(3px); }

/* Who runs it + how it's paid for */
.tl-about { background: var(--surface); border-top: 1px solid var(--line); }
.tl-about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(40px, 6vw, 96px); padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(40px, 5vw, 72px); }
.tl-about-grid > * { min-width: 0; }
.tl-about .tl-eyebrow { margin: 0 0 12px; }
.tl-about h2 { margin: 0 0 24px; }
.tl-about .tl-who-list { margin: 0; padding: 0; gap: 14px; }
.tl-about .tl-who-list li { padding-left: 26px; font-size: var(--fs-body); line-height: 1.6; color: var(--ink); }
.tl-about .tl-who-list li + li { margin-top: 0; }
.tl-about .tl-who-list li::before { top: .62em; width: 8px; height: 8px; background: var(--ink-faint); }
.tl-about-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; margin: 0 0 20px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tl-about-price b { font: 600 64px/1 var(--font-display); }
.tl-about-price .tl-label { color: var(--ink-faint); }
.tl-about-free p:not(.tl-about-price) { color: var(--ink-soft); }

/* Closing line */
.tl-closing { text-align: left; border-top: 1px solid var(--line); padding: clamp(40px, 5vw, 72px) 0; }
.tl-closing-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.tl-closing .tl-closing-line { margin: 0; max-width: 18em; font: 600 var(--fs-h2)/1.05 var(--font-heading); text-transform: uppercase; letter-spacing: .005em; text-wrap: balance; }
.tl-closing-row .tl-btn { flex: 0 1 280px; }
.is-prelaunch .tl-footer { margin-top: 0; }

/* Footer: three labelled columns, full-height rows */
.tl-footer { padding: 48px 0 32px; color: var(--ink-soft); }
.tl-footer .tl-wrap.tl-footer-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 32px 24px; align-items: start; }
.tl-footer-brand p { margin: 14px 0 0; font-size: var(--fs-small); max-width: 28ch; color: var(--ink-soft); }
.tl-footer-links { display: flex; flex-direction: column; flex-wrap: nowrap; gap: 0; justify-content: flex-start; }
.tl-footer-links .tl-label { color: var(--ink-faint); margin-bottom: 4px; }
.tl-footer-links a { display: flex; align-items: center; min-height: 44px; font-family: var(--font-body); font-size: var(--fs-small); letter-spacing: 0; text-transform: none; color: var(--ink-soft); text-decoration: none; }
.tl-footer-links a:hover { color: var(--ink); }
.tl-footer-small { display: block; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line-soft); font-size: var(--fs-btn); color: var(--ink-faint); }
@media (max-width: 760px) { .tl-footer-links { justify-content: flex-start; } }

/* Sign-up: one line about privacy, the detail one tap away */
.tl-privacy-line { margin: 16px 0 0; }
.tl-privacy-line summary { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-size: var(--fs-small); color: var(--ink); list-style: none; }
.tl-privacy-line summary::-webkit-details-marker { display: none; }
.tl-privacy-line summary span { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.tl-privacy-line summary:hover span { text-decoration-color: currentColor; }
.tl-privacy-line .tl-help { margin: 4px 0 0; max-width: 60ch; }

/* Profile kit list: a bounded, scrollable list under the filter, not 60 rows down the page */
.tl-gta.is-inline .tl-gta-panel { max-height: min(460px, 60vh); overflow-y: auto; overscroll-behavior: contain; border-top: 1px solid var(--line-soft); }

/* No side stripes (an audit finding): notices and queue cards get a full hairline in their tone */
.tl-notice { border: 1px solid var(--line-strong); }
.tl-notice-success { border-color: var(--accent-line); }
.tl-notice-error { border-color: color-mix(in srgb, var(--danger) 60%, transparent); }
.tl-notice-warn { border-color: color-mix(in srgb, var(--pending) 60%, transparent); }
.tl-app { border: 1px solid var(--line); }
.tl-paused { border-left: 0; padding-left: 0; }

/* Keys and legends are read as words, so they're in sentence case */
.tl-legend, .tl-legend span, .tl-legend-item, .tl-cal-legend, .tl-board-legend {
	font-family: var(--font-body); font-size: var(--fs-btn); letter-spacing: 0; text-transform: none;
}

/* Wordmark links are full-height targets */
.tl-brand, .tl-footer-brand > a { display: inline-flex; align-items: center; min-height: 44px; }

/* Phones and small tablets: headline, buttons, then the count; tighter step cards */
@media (max-width: 899px) {
	.tl-front .tl-goal-copy { display: block; }
	.tl-front .tl-goal-copy > * { order: 0; }
	.tl-front .tl-goal-copy > h1 { margin: 0 0 18px; }
	.tl-front .tl-goal-copy > .tl-lead { margin: 0; }
	.tl-front .tl-goal-copy > .tl-help { margin: 20px 0 0; }
	.tl-front-meter .tl-goal-meter { order: 0; }
}
@media (max-width: 600px) {
	.tl-front-grid { gap: 28px; }
	.tl-goal-num b { font-size: 72px; }
	.tl-trust-list { gap: 18px; }
	.tl-about-grid { gap: 40px; }
	.tl-dm-pick-card .tl-help { display: none; }
	.tl-how-art { display: none; } /* the demo link right above shows the real thing */
	.tl-how-copy { padding: 20px; }
	.is-prelaunch .tl-kit-chips li:nth-child(n+7) { display: none; }
	.tl-dm-pick-card { padding: 20px; }
	.tl-closing-row .tl-btn { flex: 1 1 100%; }
	.tl-footer .tl-wrap.tl-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tl-footer-brand { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
	.tl-more .tl-icon, .tl-dm-pick-go .tl-icon, .tl-dm-pick-card, .tl-kit-chips a { transition: none; }
}

/* =====================================================================================
   4.0 — "Crew index", the app (5 Nov 2026)
   Dark only (5 Nov). Rounded cards, the original steel blue for the one thing to do, mint for free,
   amber for "needs you". Oswald capitals for headings and big numbers, IBM Plex
   Mono capitals for labels and buttons (kept from 3.x — the recognisable bits),
   Manrope for everything you read. Signed-in pages sit in an app shell: a
   sidebar on wide screens, tabs along the bottom on phones. Motion is small
   and quick, and off entirely for anyone who's asked for less.
   This layer sits on top of the 3.x rules above and wins where they overlap.
   ===================================================================================== */

:root {
	--bg: #09090d;
	--panel: #0d0d13;
	--surface: #14141c;
	--surface-2: #1b1b25;
	--surface-3: #262633;
	--ink: #f3f3f8;
	--ink-soft: #b4b4c6;
	--ink-faint: #8c8ca1;
	--line: rgba(255, 255, 255, .075);
	--line-soft: rgba(255, 255, 255, .045);
	--line-strong: rgba(255, 255, 255, .16);

	/* Steel blue (the 3.x brand colour): --accent is for text, lines and focus; --fill is for solid buttons and booked days. */
	--accent: #a9c9ec;
	--accent-hover: #c9ddf3;
	--accent-press: #7aa8d8;
	--accent-ink: #0b0b10;
	--accent-soft: rgba(148, 187, 227, .15);
	--accent-line: rgba(169, 201, 236, .42);
	--accent-glow: rgba(148, 187, 227, .11);
	--fill: #94bbe3;
	--fill-hover: #b0cdec;
	--fill-press: #7aa8d8;
	--fill-ink: #0b0b10;

	--ok: #66fdb1;
	--ok-soft: rgba(102, 253, 177, .09);
	--ok-line: rgba(102, 253, 177, .36);
	--ok-text: #9bffd0;
	--ok-fill: #66fdb1;
	--ok-fill-ink: #04130b;
	--pending: #ffc46b;
	--pending-soft: rgba(255, 196, 107, .1);
	--pending-line: rgba(255, 196, 107, .55);
	--pending-ink: #1a1203;
	--danger: #ff7a90;
	--danger-soft: rgba(255, 122, 144, .12);
	--live: var(--ok);

	--brand: #94bbe3;
	--brand-ink: #0b0b10;
	--count-ink: #1a1203;

	--font-body: 'Manrope', 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

	--r-card: 14px;
	--r-btn: 10px;
	--r-chip: 6px;
	--radius: 10px;
	--shadow: 0 24px 64px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .05);
	--ease: cubic-bezier(.2, .7, .2, 1);
	--side-w: 256px;
	--max: 1180px;
	--backdrop: rgba(4, 4, 8, .72);
	color-scheme: dark;
}

/* ------------------------------------------------------------------ Base */
body { font-family: var(--font-body); font-weight: 450; font-size: 16px; line-height: 1.6; background: var(--bg); }
strong, b { font-weight: 700; }
::selection { background: var(--fill); color: var(--fill-ink); }
.tl-skip { background: var(--fill); color: var(--fill-ink); border-radius: var(--r-btn); }
.tl-eyebrow { color: var(--ink-faint); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* The wordmark: the steel-blue plate, square dots kept */
.tl-wm-plate { background: var(--brand); color: var(--brand-ink); border-radius: 3px; }
.tl-wm-dots i { background: var(--brand-ink); }

/* No more "+" registration marks (5 Nov): the cards' rounded edges do that job now. */
.tl-framed::before { content: none; display: none; }

/* ------------------------------------------------------------------ Shape: cards, panels, boxes */
.tl-card, .tl-needs, .tl-nudge, .tl-app, .tl-how-step, .tl-dm-pick-card, .tl-job, .tl-month, .tl-table-wrap,
.tl-hero-box, .tl-goal-meter, .tl-shot, .tl-art-offer, .tl-offer-mail, .tl-how-offer, .tl-preview-banner,
.tl-done-state, .tl-nearly-row, .tl-who-card, .tl-day-detail, .tl-share-box, .tl-deck, .tl-art-search, .tl-art-check,
.tl-art-goal, .tl-art-shuffle li, .tl-dialog, .tl-reject-panel, .tl-pop, .tl-gta-panel, .tl-menu-panel, .tl-bk-fixed,
.tl-crew-strip, .tl-owner-only, .tl-book-summary, .tl-hint, .tl-code {
	border-radius: var(--r-card);
}
.tl-card { background: var(--surface); border: 1px solid var(--line); padding: clamp(20px, 3vw, 28px); }
.tl-card + .tl-card { margin-top: 20px; }
.tl-hint, .tl-book-summary, .tl-crew-strip, .tl-owner-only, .tl-code, .tl-bk-fixed { border-radius: var(--r-btn); }
.tl-hint, .tl-book-summary { border-left: 0; border: 1px solid var(--line); }
.tl-gta-panel, .tl-pop, .tl-menu-panel, .tl-reject-panel { background: var(--surface-2); border-color: var(--line-strong); box-shadow: var(--shadow); }
.tl-table-wrap { background: var(--surface); }
.tl-table th { background: var(--surface); }
.tl-dialog { overflow: hidden; }
.tl-dialog-bar { background: var(--surface); }

/* Grids that used 1px gaps as hairlines become separate cards */
.tl-kpis, .tl-principles, .tl-steps, .tl-kit-list { gap: 12px; background: none; border: 0; }
.tl-kpi, .tl-principle, .tl-steps li, .tl-kit-list a { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.tl-kpi { padding: 18px 20px; transition: border-color .2s ease, transform .2s var(--ease); }
a.tl-kpi:hover { background: var(--surface); border-color: var(--line-strong); }
.tl-kpi b { font-size: 34px; font-variant-numeric: tabular-nums; }
.tl-kit-list a { padding: 16px 18px; transition: border-color .2s ease, background-color .2s ease; }
.tl-kit-list a:hover { background: var(--surface-2); border-color: var(--line-strong); color: var(--ink); }
.tl-kit-list b { color: var(--ink); }

/* ------------------------------------------------------------------ Buttons */
.tl-btn {
	border-radius: var(--r-btn); background: transparent; border: 1px solid var(--line-strong); color: var(--ink);
	font-weight: 600; transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s var(--ease), box-shadow .2s ease;
}
.tl-btn:hover { color: var(--ink); border-color: color-mix(in srgb, var(--ink) 34%, transparent); background: color-mix(in srgb, var(--ink) 5%, transparent); }
.tl-btn:active { transform: scale(.98); background: color-mix(in srgb, var(--ink) 8%, transparent); }
.tl-btn-primary, .tl-btn-approve, .tl-btn-primary.is-armed {
	background: var(--fill); border-color: var(--fill); color: var(--fill-ink);
	box-shadow: 0 1px 0 rgba(255, 255, 255, .14) inset, 0 6px 18px -8px var(--fill);
}
.tl-btn-primary:hover, .tl-btn-approve:hover { background: var(--fill-hover); border-color: var(--fill-hover); color: var(--fill-ink); }
.tl-btn-primary:active, .tl-btn-approve:active { background: var(--fill-press); border-color: var(--fill-press); color: var(--fill-ink); }
.tl-btn-go { background: var(--ok-fill); border-color: var(--ok-fill); color: var(--ok-fill-ink); }
.tl-btn-go:hover { background: color-mix(in srgb, var(--ok-fill) 88%, #fff); border-color: var(--ok-fill); color: var(--ok-fill-ink); }
.tl-btn-go:active { background: var(--ok-fill); color: var(--ok-fill-ink); }
.tl-btn-danger { border-color: color-mix(in srgb, var(--danger) 55%, transparent); color: var(--danger); }
.tl-btn-danger:hover { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); }
.tl-btn-plain, .tl-btn-plain:hover, .tl-btn-plain:active { background: transparent; border-color: transparent; box-shadow: none; }
.tl-btn.is-armed { background: var(--pending); border-color: var(--pending); color: var(--pending-ink); }
.tl-btn-primary.is-armed { box-shadow: 0 0 0 3px var(--accent-soft); }
.tl-linkbtn, .tl-linkbtn:hover { color: var(--accent); }

/* ------------------------------------------------------------------ Forms */
.tl-input, .tl-select, .tl-textarea, .tl-gta-control, .tl-date-btn {
	border-radius: var(--r-btn); background: var(--bg); border-color: var(--line-strong); font-family: var(--font-body);
}
.tl-card .tl-input, .tl-card .tl-select, .tl-card .tl-textarea, .tl-card .tl-gta-control, .tl-card .tl-date-btn { background: color-mix(in srgb, var(--bg) 70%, var(--surface)); }
.tl-input:focus, .tl-select:focus, .tl-textarea:focus, .tl-gta.open .tl-gta-control, .tl-gta-control:focus-within, .tl-daterange.open .tl-date-btn {
	border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.tl-input, .tl-select, .tl-textarea { transition: border-color .15s ease, box-shadow .15s ease; }
.tl-check input[type="checkbox"], .tl-chip-check input[type="checkbox"] { border-radius: 5px; }
.tl-check input[type="checkbox"]:checked, .tl-chip-check input[type="checkbox"]:checked { background-color: var(--fill); border-color: var(--fill); }
.tl-check input, .tl-gta-item input { accent-color: var(--fill); }

/* Segmented controls, tabs, pills: the chosen one lifts out (a raised chip), it isn't flooded with colour */
.tl-segmented, .tl-tabs { border-radius: var(--r-btn); padding: 3px; gap: 3px; background: var(--bg); border: 1px solid var(--line-strong); }
.tl-segmented label, .tl-tab { border-radius: 7px; border: 0 !important; font: 500 12px/1.1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; transition: background-color .15s ease, color .15s ease; }
.tl-segmented input:checked + label, .tl-tab[aria-selected="true"], .tl-tab[aria-current="page"] {
	background: var(--surface-3); color: var(--ink); box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 1px 3px rgba(0, 0, 0, .3);
}
.tl-pill, .tl-seg a { border-radius: 999px; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.tl-pill[aria-current="true"], .tl-seg a[aria-current] { background: var(--surface-3); border-color: var(--line-strong); color: var(--ink); }
.tl-view-tabs { gap: 4px 6px; border-bottom: 0; margin: -6px 0 24px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; width: fit-content; max-width: 100%; }
.tl-view-tabs a { padding: 0 14px; min-height: 40px; border-bottom: 0; border-radius: 8px; margin: 0; transition: background-color .15s ease, color .15s ease; }
.tl-view-tabs a:hover { background: var(--surface-2); }
.tl-view-tabs a[aria-current="page"] { background: var(--surface-3); color: var(--ink); }

/* ------------------------------------------------------------------ Chips & tags */
.tl-tag, .tl-gta-chip, .tl-chip-check span, .tl-chip-btn, .tl-kit-chips a, .tl-how-chip, .tl-demo-badge, .tl-board-saved, .tl-gta-anygroup, .tl-art-btn {
	border-radius: var(--r-chip);
}
.tl-tag { background: var(--surface-2); }
.tl-tag-match, .tl-gta-chip { background: var(--accent-soft); border-color: transparent; color: var(--accent-hover); }

.tl-chip-check span { transition: background-color .15s ease, border-color .15s ease; }
.tl-chip-check input:checked + span { background: var(--accent-soft); border-color: var(--accent-line); }
.tl-chip-check input:checked + span::before { background: var(--fill); border-color: var(--fill); }
.tl-chip-check span::before { border-radius: 3px; }
.tl-nav-count { border-radius: 999px; background: var(--pending); color: var(--count-ink); font-weight: 600; }

/* Status words with a dot */
.tl-status::before { border-radius: 999px; }
.tl-status-live { color: var(--ok-text); }
.tl-status-live::before { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }

/* ------------------------------------------------------------------ Notices */
.tl-notice { border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface-2); padding: 14px 18px; }
.tl-notice-success { border-color: var(--ok-line); background: color-mix(in srgb, var(--ok) 7%, var(--surface)); }
.tl-notice-error { border-color: color-mix(in srgb, var(--danger) 55%, transparent); background: color-mix(in srgb, var(--danger) 8%, var(--surface)); }
.tl-notice-warn { border-color: var(--pending-line); background: color-mix(in srgb, var(--pending) 7%, var(--surface)); }
.tl-needs { border-radius: var(--r-card); border: 1px solid var(--pending-line); background: linear-gradient(180deg, color-mix(in srgb, var(--pending) 6%, var(--surface)), var(--surface)); }
.tl-needs.is-calm { border-color: var(--line); background: var(--surface); }
.tl-nudge { border-color: var(--accent-line); background: radial-gradient(120% 140% at 0% 0%, var(--accent-glow), transparent 60%), var(--surface); }
.tl-flash.is-toast { border-radius: 12px; }

/* ------------------------------------------------------------------ Calendars */
.tl-day { border-radius: 8px; transition: background-color .12s ease, border-color .12s ease, transform .12s var(--ease); }
.tl-day:active:not(:disabled) { transform: scale(.94); }
.tl-day.is-on { background: color-mix(in srgb, var(--ok) 16%, transparent); border-color: var(--ok-line); color: var(--ink); font-weight: 700; }

.tl-day.is-booked, .tl-day.is-booked:disabled { background: var(--fill); border-color: var(--fill); color: var(--fill-ink); opacity: 1; }
.tl-day.is-held { box-shadow: inset 0 0 0 2px var(--accent); }
.tl-day.is-today { box-shadow: inset 0 0 0 1.5px var(--ink-soft); }
.tl-cal-nav button { border-radius: 8px; }
.tl-legend i { background: color-mix(in srgb, var(--ok) 16%, transparent); border: 1px solid var(--ok-line); border-radius: 3px; }
.tl-legend i.free { background: var(--bg); border: 1px solid var(--line); }
.tl-freecal-day { border-radius: 5px; }
.tl-freecal-day.is-free { background: color-mix(in srgb, var(--ok) 15%, transparent); border-color: var(--ok-line); }
.tl-key { border-radius: 3px; }
.tl-key.is-booked { background: var(--fill); }
.tl-key.is-free { background: color-mix(in srgb, var(--ok) 15%, transparent); border-color: var(--ok-line); }
.tl-month { overflow: hidden; }
.tl-mday.is-free { background: color-mix(in srgb, var(--ok) 6%, transparent); }
.tl-mday-num { border-radius: 6px; }
.tl-mday.is-today .tl-mday-num { box-shadow: none; background: var(--fill); color: var(--fill-ink); }
.tl-mitem { border-radius: 5px; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; text-transform: none; font-size: 12px; transition: border-color .15s ease, background-color .15s ease; }
.tl-mitem.is-booked, .tl-mitem.is-made-booked { background: var(--fill); border-color: var(--fill); color: var(--fill-ink); }
.tl-mitem.is-booked:hover, .tl-mitem.is-made-booked:hover { background: var(--fill-hover); color: var(--fill-ink); }
.tl-mitem.is-pencil, .tl-mitem.is-made-pencil { background: var(--accent-soft); border-color: var(--accent-line); color: var(--ink); }
.tl-mitem.is-offer, .tl-mitem.is-made-offer { border: 1px dashed var(--pending-line); background: var(--pending-soft); color: var(--ink); }
.tl-agenda li::before { border-radius: 4px; }
.tl-agenda li.is-booked::before, .tl-agenda li.is-made-booked::before { background: var(--fill); }
.tl-goal-cells i, .tl-progress-bar i, .tl-daybar i, .tl-avail-bar i { border-radius: 2px; }
.tl-avail-bar i, .tl-daybar i.is-free { background: var(--ok); }
.tl-avail-text { color: var(--ok-text); }
.tl-progress-bar i.on, .tl-goal-cells i.is-on { background: var(--fill); }
.tl-checklist li::before { border-radius: 4px; }
.tl-checklist li.done::before { background: var(--ok); border-color: var(--ok); }
.tl-ticks li::before { border-radius: 3px; background: var(--fill); }
.tl-deck-dot { border-radius: 999px; }
.tl-deck-dot.is-active { background: var(--fill); }
.tl-art-tick, .tl-art-btn.is-yes { background: var(--ok-fill); border-color: var(--ok-fill); color: var(--ok-fill-ink); border-radius: 12px; }
.tl-demo-badge::before { background: var(--fill); border-radius: 2px; }
.tl-dm-steps .is-current .tl-dm-num { background: var(--fill); border-color: var(--fill); color: var(--fill-ink); }
meter::-webkit-meter-optimum-value, meter::-webkit-meter-suboptimum-value { background: var(--fill); border-radius: 3px; }
meter::-moz-meter-bar { background: var(--fill); }
meter::-webkit-meter-bar { border-radius: 3px; }
.tl-bk-date { border-radius: 10px; background: var(--surface-2); border-color: var(--line); }
.tl-bk-date span { color: var(--ink-faint); }

/* House board cells */
.tl-cell { border-radius: 5px; transition: background-color .12s ease, transform .12s var(--ease); }
.tl-cell.is-free { background: color-mix(in srgb, var(--ok) 18%, transparent); border: 1px solid var(--ok-line); color: var(--ink); }
a.tl-cell.is-free:hover { background: var(--ok); color: var(--ok-fill-ink); }
.tl-cell.is-confirmed { background: var(--fill); color: var(--fill-ink); }
.tl-cell.is-pencilled { background: var(--accent-soft); border-color: var(--accent-line); color: var(--ink); }
.tl-cell.is-requested { border-color: var(--pending-line); color: var(--ink); }
a.tl-cell.is-confirmed:hover, a.tl-cell.is-pencilled:hover, a.tl-cell.is-requested:hover { background: var(--fill-hover); color: var(--fill-ink); }
.tl-board thead th { background: var(--surface); }
.tl-board-name { background: var(--surface); }
.tl-board thead th.is-today { box-shadow: inset 0 -2px 0 var(--fill); }
.tl-board thead th.is-today b { color: var(--ink); }

/* Lists of people and bookings: rows lift on hover */
.tl-result, .tl-bk-main, .tl-agenda a, .tl-crew-item { transition: background-color .15s ease; }
.tl-result:hover, .tl-bk-main:hover, .tl-agenda a:hover { background: color-mix(in srgb, var(--ink) 3.5%, transparent); }
.tl-result-star[aria-pressed="true"], .tl-save.is-saved, .tl-save[aria-pressed="true"] { color: var(--pending); border-color: var(--pending-line); }
.tl-crew-item::before { border-radius: 4px; }
.tl-crew-item.is-yours::before { background: var(--fill); }
.tl-result.is-on-job { border-left: 0; box-shadow: inset 3px 0 0 var(--fill); }
.tl-nearly-row { border-radius: 12px; }

/* ------------------------------------------------------------------ Visitors' header and footer */
.tl-header { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(150%) blur(12px); -webkit-backdrop-filter: saturate(150%) blur(12px); border-bottom-color: var(--line); }
.tl-nav a:not(.tl-btn), .tl-nav button.tl-linkbtn { border-radius: 8px; transition: background-color .15s ease, color .15s ease; }
.tl-nav a:not(.tl-btn):hover, .tl-nav button.tl-linkbtn:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.tl-nav a[aria-current="page"] { box-shadow: none; background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink); }
.tl-menu > summary { border-radius: var(--r-btn); }
.tl-menu-panel { padding: 6px; }
.tl-menu-panel a, .tl-menu-panel button.tl-linkbtn { border-radius: 8px; }
.tl-footer { background: var(--panel); border-top-color: var(--line); }

/* =====================================================================================
   The app shell (signed in)
   ===================================================================================== */
.has-app { display: block; }
.tl-shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.tl-sidebar {
	position: sticky; top: 0; height: 100vh; height: 100dvh; overflow-y: auto; overscroll-behavior: contain;
	display: flex; flex-direction: column; gap: 22px; padding: 22px 14px 18px;
	background: var(--panel); border-right: 1px solid var(--line);
	view-transition-name: tl-sidebar; scrollbar-width: thin;
}
.tl-side-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 4px 10px; text-decoration: none; color: var(--ink); }
.tl-side-brand:hover { color: var(--ink); }
.tl-side-brand .tl-wordmark { font-size: 21px; }
.tl-side-nav { display: flex; flex-direction: column; gap: 2px; }
.tl-side-label { display: block; padding: 0 12px 6px; font: 500 12px/1.4 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.tl-side-nav a {
	position: relative; display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 12px; border-radius: 10px;
	color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 14px;
	transition: background-color .15s ease, color .15s ease;
}
.tl-side-nav a .tl-icon { color: var(--ink-faint); transition: color .15s ease; }
.tl-side-nav a > span:not(.tl-nav-count) { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-side-nav a:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); color: var(--ink); }
.tl-side-nav a:hover .tl-icon { color: var(--ink-soft); }
.tl-side-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--ink); }
.tl-side-nav a[aria-current="page"] .tl-icon { color: var(--accent); }
.tl-side-nav a[aria-current="page"]::before { content: ""; position: absolute; left: -14px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--fill); }
.tl-side-nav .tl-nav-count { min-width: 22px; height: 22px; font-size: 12px; }
.tl-side-nav + .tl-side-nav { margin-top: -6px; }
.tl-side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.tl-side-card { display: grid; gap: 6px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink-soft); transition: border-color .15s ease; }
.tl-side-card:hover { border-color: var(--line-strong); color: var(--ink); }
.tl-side-card .tl-side-label { padding: 0; }
.tl-side-sync { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.tl-live { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 999px; background: var(--ink-faint); }
.tl-live.is-ok, .is-ok > .tl-live { background: var(--ok); }
.tl-live.is-warn, .is-warn > .tl-live { background: var(--pending); }
.tl-live.is-off { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink-faint); }
.tl-side-user { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 10px; border-radius: 10px; text-decoration: none; color: var(--ink); transition: background-color .15s ease; }
.tl-side-user:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); color: var(--ink); }
.tl-avatar { flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--accent-soft); color: var(--accent-hover); font: 600 14px/1 var(--font-heading); letter-spacing: .02em; text-transform: uppercase; }

.tl-avatar.is-sm { width: 30px; height: 30px; border-radius: 8px; font-size: 13px; }
.tl-avatar.is-more { background: var(--surface-2); color: var(--ink-soft); font-family: var(--font-mono); font-size: 12px; }
.tl-side-who { display: grid; min-width: 0; line-height: 1.3; }
.tl-side-who b { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-side-who span { font-size: 12px; color: var(--ink-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-side-tools { display: flex; align-items: center; gap: 8px; padding: 0 4px; }
.tl-side-tools form { margin: 0; flex: 1; }

.tl-side-logout { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 44px; padding: 0 12px; border-radius: var(--r-btn); border: 1px solid var(--line); background: transparent; color: var(--ink-soft); cursor: pointer; font: 500 12px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; transition: color .15s ease, border-color .15s ease, background-color .15s ease; }
.tl-side-logout:hover { color: var(--ink); border-color: var(--line-strong); background: color-mix(in srgb, var(--ink) 4%, transparent); }

.tl-appmain { min-width: 0; display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.tl-appmain > main { flex: 1 0 auto; padding-bottom: 56px; }
.tl-topbar {
	position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px clamp(16px, 3vw, 32px);
	background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(150%) blur(12px); -webkit-backdrop-filter: saturate(150%) blur(12px);
	border-bottom: 1px solid var(--line); view-transition-name: tl-topbar;
}
.tl-topbar-brand { display: none; text-decoration: none; color: var(--ink); min-height: 44px; align-items: center; }
.tl-topbar-brand .tl-wordmark { font-size: 17px; }
.tl-topbar-search {
	flex: 0 1 420px; display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 12px 0 14px; border-radius: var(--r-btn);
	background: var(--surface); border: 1px solid var(--line); color: var(--ink-faint); text-decoration: none; font-size: 14px;
	transition: border-color .15s ease, color .15s ease;
}
.tl-topbar-search span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-topbar-search:hover { border-color: var(--line-strong); color: var(--ink-soft); }
.tl-topbar-search kbd { font: 500 12px/1 var(--font-mono); padding: 3px 7px; border-radius: 5px; border: 1px solid var(--line-strong); color: var(--ink-faint); }
.tl-topbar-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.tl-today {
	display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: 999px; text-decoration: none;
	font: 500 12px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--line-strong); color: var(--ink-soft);
}
.tl-today.is-free { background: var(--ok-soft); border-color: var(--ok-line); color: var(--ok-text); }
.tl-today.is-free .tl-live { background: var(--ok); }
.tl-today.is-booked { background: var(--accent-soft); border-color: var(--accent-line); color: var(--ink); }
.tl-today.is-booked .tl-live { background: var(--fill); }
.tl-today:hover { filter: brightness(1.1); }
.tl-bell { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-btn); border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); transition: color .15s ease, border-color .15s ease; }
.tl-bell:hover { color: var(--ink); border-color: var(--line-strong); }
.tl-bell-dot { position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; display: grid; place-items: center; background: var(--pending); color: var(--count-ink); font: 600 11px/1 var(--font-mono); box-shadow: 0 0 0 2px var(--bg); }
.tl-appfoot { border-top: 1px solid var(--line); padding: 18px 0 24px; color: var(--ink-faint); font-size: 13px; }
.tl-appfoot .tl-wrap { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; justify-content: space-between; }
.tl-appfoot nav { display: flex; flex-wrap: wrap; gap: 0 16px; }
.tl-appfoot a { color: var(--ink-faint); text-decoration: none; display: inline-flex; align-items: center; min-height: 36px; }
.tl-appfoot a:hover { color: var(--ink); }

/* Visitors' header on narrower screens: Join sits right next to Menu */
@media (max-width: 1080px) { .tl-header-join + .tl-menu { margin-left: 0; } }

/* Content width inside the app */
.tl-shell .tl-wrap { max-width: var(--max); padding: 0 clamp(16px, 3vw, 32px); }
.tl-shell .tl-house-wrap { max-width: min(1680px, 100%); }
.tl-shell .tl-flash { margin-top: 20px; }
.tl-shell .tl-flash.is-toast { top: 76px; }
.tl-shell .tl-page-head { padding: 28px 0 20px; }
.tl-shell .tl-page-head h1, .tl-shell .tl-mod-head h1 { font-size: clamp(30px, 3vw, 40px); }
.tl-shell .tl-side { top: 84px; }
@media (min-width: 900px) { .tl-shell .tl-profile > .tl-contact, .tl-shell .tl-bk-side, .tl-shell .tl-book-side, .tl-shell .tl-kit-aside { top: 84px; } }

/* Moderation's own menu becomes a row of sub-tabs inside the app */
.tl-shell .tl-mod { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 24px; }
.tl-shell .tl-mod-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; border: 0; background: none; overflow: visible; }
.tl-shell .tl-mod-nav a, .tl-shell .tl-mod-nav .tl-nav-alert { min-height: 38px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: none; }
.tl-shell .tl-mod-nav a:hover { background: var(--surface-2); color: var(--ink); }
.tl-shell .tl-mod-nav a[aria-current="page"] { background: var(--surface-3); border-color: var(--line-strong); color: var(--ink); box-shadow: none; }
.tl-shell .tl-mod-nav .tl-sep { display: flex; align-items: center; padding: 0 4px 0 10px; background: none; }
.tl-shell .tl-mod-nav .tl-nav-alert { border-color: var(--pending-line); }

/* Phones and tablets: top bar with the wordmark, tabs along the bottom */
.tl-tabbar { display: none; }
@media (max-width: 1023px) {
	.tl-shell { grid-template-columns: minmax(0, 1fr); }
	.tl-sidebar { display: none; }
	.tl-topbar-brand { display: inline-flex; }
	.tl-topbar-search { display: none; }
	.tl-today { display: none; }
	.tl-appmain > main { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
	.tl-appfoot { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
	.tl-tabbar {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
		padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
		background: color-mix(in srgb, var(--panel) 88%, transparent); backdrop-filter: saturate(150%) blur(14px); -webkit-backdrop-filter: saturate(150%) blur(14px);
		border-top: 1px solid var(--line); view-transition-name: tl-tabbar;
	}
	.tl-tabbar > a, .tl-more-sheet > summary {
		display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 54px; border-radius: 12px;
		color: var(--ink-faint); text-decoration: none; cursor: pointer; list-style: none;
		font: 600 11px/1.1 var(--font-body); letter-spacing: .01em; transition: color .15s ease, background-color .15s ease;
	}
	.tl-more-sheet > summary::-webkit-details-marker { display: none; }
	.tl-tabbar > a[aria-current="page"], .tl-more-sheet > summary[aria-current="page"], .tl-more-sheet[open] > summary { color: var(--ink); }
	.tl-tabbar > a[aria-current="page"] .tl-tab-icon { background: var(--accent-soft); color: var(--accent); }
	.tl-tab-icon { position: relative; display: grid; place-items: center; width: 52px; height: 30px; border-radius: 999px; transition: background-color .2s ease, color .2s ease; }
	.tl-tab-badge { position: absolute; top: -3px; right: 6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; display: grid; place-items: center; background: var(--pending); color: var(--count-ink); font: 600 11px/1 var(--font-mono); box-shadow: 0 0 0 2px var(--panel); }
	.tl-more-sheet { display: contents; }
	.tl-sheet {
		position: fixed; left: 8px; right: 8px; bottom: calc(74px + env(safe-area-inset-bottom)); z-index: 56; max-height: calc(100dvh - 140px); overflow-y: auto;
		display: grid; gap: 8px; padding: 12px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line-strong); box-shadow: var(--shadow);
	}
	.tl-more-sheet[open] .tl-sheet { animation: tl-sheet-in .24s var(--ease) both; }
	.tl-sheet-user { display: flex; align-items: center; gap: 10px; padding: 4px 4px 10px; border-bottom: 1px solid var(--line); }
	.tl-sheet-user .tl-side-who { flex: 1; }
	.tl-sheet-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px; }
	.tl-sheet-links a { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; }
	.tl-sheet-links a .tl-icon { color: var(--ink-faint); }
	.tl-sheet-links a > span:not(.tl-nav-count) { flex: 1; }
	.tl-sheet-links a:hover, .tl-sheet-links a[aria-current="page"] { background: color-mix(in srgb, var(--ink) 6%, transparent); }
	.tl-sheet form { margin: 0; }
	.tl-shell .tl-flash.is-toast { top: 72px; }
}
@media (max-width: 1023px) and (min-width: 600px) { .tl-topbar-search { display: flex; } }
@keyframes tl-sheet-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

/* =====================================================================================
   Dashboards
   ===================================================================================== */
.tl-dash { display: grid; gap: 20px; padding-top: 28px; }
.tl-dash > * { min-width: 0; }
.tl-dash-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; }
.tl-dash-head .tl-eyebrow { margin: 0 0 10px; }
.tl-dash-head h1 { margin: 0; font-size: clamp(32px, 3.6vw, 44px); line-height: 1; }
.tl-dash-sub { margin: 10px 0 0; color: var(--ink-soft); }
.tl-dash-label { display: inline-flex; align-items: center; gap: 8px; margin: 0; font: 500 12px/1.4 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.tl-dash-label.is-warn { color: var(--pending); }
.tl-dash-label.is-warn .tl-live { background: var(--pending); }
.tl-dash-label.is-ok { color: var(--ok-text); }
.tl-dash-label.is-ok .tl-live { background: var(--ok); }
.tl-dash-title { margin: 0; font-size: 22px; line-height: 1.1; }
.tl-dash-cardhead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 14px; }
.tl-dash-cardhead .tl-more { min-height: 32px; }
.tl-dash .tl-card + .tl-card { margin-top: 0; }
.tl-dash-row { display: grid; gap: 20px; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: stretch; }
.tl-dash-row-even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tl-dash-status { display: grid; gap: 8px; border-color: var(--pending-line); }
.tl-dash-status p { margin: 0; color: var(--ink-soft); }
.tl-dash-status form { margin-top: 4px; }

/* Needs you */
.tl-dash-needs.is-waiting { border-color: color-mix(in srgb, var(--pending) 40%, transparent); background: linear-gradient(180deg, color-mix(in srgb, var(--pending) 5%, var(--surface)), var(--surface) 55%); }
.tl-offer { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: flex-start; }
.tl-offer-main { flex: 1 1 300px; min-width: 0; }
.tl-offer-name { margin: 0; font: 600 clamp(26px, 2.6vw, 32px)/1.05 var(--font-heading); text-transform: uppercase; overflow-wrap: anywhere; }
.tl-offer-from { margin: 6px 0 0; color: var(--ink-soft); }
.tl-offer-chips { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tl-offer-chips li { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: var(--r-chip); background: var(--surface-2); color: var(--ink-soft); font-size: 13px; font-weight: 600; }
.tl-offer-chips .is-kind { background: var(--accent-soft); color: var(--accent-hover); font: 500 12px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }

.tl-offer-chips .is-kit { font: 500 13px/1 var(--font-mono); }
.tl-offer-note { margin: 12px 0 0; color: var(--ink-faint); font-size: 14px; }
.tl-offer-days { flex: 0 1 280px; min-width: 0; }
.tl-offer-strip { list-style: none; margin: 10px 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tl-offer-strip li { flex: 0 0 64px; min-height: 60px; border-radius: 9px; border: 1px dashed var(--pending-line); background: var(--pending-soft); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.tl-offer-strip li span { font: 500 11px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); }
.tl-offer-strip li b { font: 600 22px/1 var(--font-heading); font-variant-numeric: tabular-nums; }
.tl-offer-strip li.is-notfree { border-style: solid; border-color: var(--line-strong); background: transparent; }
.tl-offer-strip li.is-notfree b { color: var(--ink-faint); }
.tl-offer-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 20px 0 8px; }
.tl-offer-acts .tl-more { margin-left: 4px; }
.tl-offer-more { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--line); }
.tl-calm { display: grid; gap: 10px; justify-items: start; }
.tl-calm-big { margin: 4px 0 0; font: 600 26px/1.05 var(--font-heading); text-transform: uppercase; }
.tl-calm .tl-help { max-width: 52ch; }
.tl-calm .tl-actions { margin-top: 6px; }
.tl-calm-line { display: flex; align-items: center; gap: 8px; color: var(--ink-faint); margin: 12px 0; }
.tl-needs-rows { list-style: none; margin: 0; padding: 0; display: grid; }
.tl-needs-rows li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.tl-needs-rows li:first-child { border-top: 0; padding-top: 0; }
.tl-needs-rows li > span { flex: 1 1 260px; }
.tl-needs-rows li.is-declined > span::before { content: "Declined · "; color: var(--danger); font-weight: 700; }
.tl-needs-rows li.is-late > span::before { content: "2nd pencil · "; color: var(--pending); font-weight: 700; }
.tl-dash-find { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 8px; justify-items: start; }

/* The free-days ring */
.tl-dash-ring { display: flex; flex-direction: column; align-items: center; text-align: center; background: radial-gradient(120% 80% at 50% 0%, var(--accent-glow), transparent 60%), var(--surface); }
.tl-dash-ring .tl-dash-label { align-self: stretch; text-align: left; }
.tl-ring { position: relative; width: 188px; height: 188px; margin: 14px auto 0; }
.tl-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.tl-ring-track { fill: none; stroke: var(--line); stroke-width: 12; }
.tl-ring-bar { fill: none; stroke: url(#tl-ring-grad); stroke-width: 12; stroke-linecap: round; }
.tl-ring-a { stop-color: var(--fill); }
.tl-ring-b { stop-color: var(--ok); }
.tl-ring-num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.tl-ring-num b { font: 600 60px/1 var(--font-heading); font-variant-numeric: tabular-nums; }
.tl-ring-num span { margin-top: 4px; font: 500 12px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.tl-ring-key { margin: 18px 0 0; align-self: stretch; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tl-ring-key div { display: flex; flex-direction: column-reverse; gap: 2px; }
.tl-ring-key dt { font-size: 13px; color: var(--ink-faint); }
.tl-ring-key dd { margin: 0; font: 600 22px/1 var(--font-heading); color: var(--ink-soft); }
.tl-ring-key .is-ok dd { color: var(--ok); }
.tl-ring-key .is-accent dd { color: var(--accent); }

/* KPI cards */
.tl-dash-kpis { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.tl-kpi4 { display: flex; flex-direction: column; height: 100%; padding: 20px; text-decoration: none; color: var(--ink); transition: border-color .2s ease, transform .2s var(--ease), background-color .2s ease; }
.tl-kpi4:hover { color: var(--ink); border-color: var(--line-strong); transform: translateY(-2px); }
.tl-kpi4 > b { margin-top: 10px; font: 600 38px/1 var(--font-heading); font-variant-numeric: tabular-nums; text-transform: uppercase; }
.tl-kpi4-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.tl-kpi4-note { font-size: 13px; font-weight: 700; color: var(--ink-faint); }
.tl-kpi4.is-ok .tl-kpi4-note { color: var(--ok-text); }
.tl-spark { flex: none; width: 96px; height: 32px; overflow: visible; }
.tl-spark path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.tl-kpi4.is-ok .tl-spark path { stroke: var(--ok); }
.tl-kpi4.is-warn .tl-spark path { stroke: var(--pending); }

/* Month at a glance */
.tl-mini-wd, .tl-mini-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.tl-mini-wd { margin-bottom: 8px; font: 500 12px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); text-align: center; }
.tl-mini-day {
	min-height: 54px; padding: 6px 8px; border-radius: 7px; border: 1px solid var(--line-soft); background: color-mix(in srgb, var(--ink) 2%, transparent);
	display: flex; flex-direction: column; justify-content: space-between; min-width: 0; text-decoration: none; color: var(--ink-faint);
	transition: border-color .15s ease, transform .15s var(--ease);
}
.tl-mini-day b { font: 600 16px/1 var(--font-heading); font-variant-numeric: tabular-nums; }
.tl-mini-day span { font-size: 11px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-mini-day.is-free { background: var(--ok-soft); border-color: var(--ok-line); color: var(--ink); }
.tl-mini-day.is-booked { background: var(--fill); border-color: var(--fill); color: var(--fill-ink); }
.tl-mini-day.is-pencil { background: var(--accent-soft); border-color: var(--accent-line); color: var(--ink); }
.tl-mini-day.is-offer { background: var(--pending-soft); border: 1px dashed var(--pending-line); color: var(--ink); }
.tl-mini-day.is-own, .tl-mini-day.is-off { background: repeating-linear-gradient(135deg, var(--surface-3) 0 5px, var(--surface-2) 5px 10px); border-color: var(--line-strong); color: var(--ink); }
.tl-mini-day.is-out, .tl-mini-day.is-past { opacity: .4; }
.tl-mini-day.is-today { opacity: 1; box-shadow: 0 0 0 1.5px var(--ink-soft); }
a.tl-mini-day:hover { border-color: var(--ink-soft); transform: translateY(-1px); }
.tl-mini-key { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--ink-soft); }
.tl-mini-key li { display: inline-flex; align-items: center; gap: 8px; }
.tl-mini-key i { width: 12px; height: 12px; border-radius: 3px; border: 1px solid var(--line-strong); }
.tl-mini-key .is-free { background: var(--ok-soft); border-color: var(--ok-line); }
.tl-mini-key .is-booked { background: var(--fill); border-color: var(--fill); }
.tl-mini-key .is-pencil { background: var(--accent-soft); border-color: var(--accent-line); }
.tl-mini-key .is-offer { background: var(--pending-soft); border: 1px dashed var(--pending-line); }
.tl-mini-key .is-own { background: repeating-linear-gradient(135deg, var(--surface-3) 0 3px, var(--surface-2) 3px 6px); }

/* Lists in dashboard cards */
.tl-up { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.tl-up a { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px; margin: 0 -10px; border-radius: 10px; color: var(--ink); text-decoration: none; transition: background-color .15s ease; }
.tl-up a:hover { background: color-mix(in srgb, var(--ink) 4%, transparent); color: var(--ink); }
.tl-up-date { height: 56px; border-radius: 9px; border: 1px solid var(--line-strong); background: var(--surface-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
.tl-up-date b { font: 600 17px/1 var(--font-heading); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tl-up-date span { font: 500 11px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.tl-up-body { min-width: 0; display: grid; gap: 4px; }
.tl-up-body strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-up-body > span { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13px; color: var(--ink-faint); }
.tl-pillx { display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; border-radius: 5px; font: 500 11px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; background: var(--surface-3); color: var(--ink-soft); }
.tl-pillx.is-booked { background: var(--fill); color: var(--fill-ink); }
.tl-pillx.is-pencil { background: var(--accent-soft); color: var(--accent-hover); }

.tl-pillx.is-offer { background: var(--pending-soft); color: var(--pending); }
.tl-who-rows { list-style: none; margin: 14px 0; padding: 0; display: grid; gap: 8px; }
.tl-who-rows li { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 10px; background: var(--surface-2); }
.tl-who-rows li.is-busy { box-shadow: inset 0 0 0 1px var(--pending-line); }
.tl-who-body { min-width: 0; display: grid; gap: 2px; flex: 1; }
.tl-who-body b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-who-body span { font-size: 13px; color: var(--ink-faint); }
.tl-activity { list-style: none; margin: 0; padding: 0; }
.tl-activity li { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.tl-activity li:first-child { border-top: 0; padding-top: 0; }
.tl-activity i { width: 9px; height: 9px; border-radius: 3px; background: var(--ink-faint); transform: translateY(-1px); }
.tl-activity .is-offer i { background: var(--pending); }
.tl-activity .is-ok i { background: var(--ok); }
.tl-activity .is-accent i { background: var(--fill); }
.tl-activity a { color: var(--ink-soft); text-decoration: none; }
.tl-activity a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); }
.tl-activity time { font: 500 12px/1 var(--font-mono); color: var(--ink-faint); white-space: nowrap; }
.tl-dash-check { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.tl-meterbar { display: block; width: 100%; height: 6px; }
.tl-meterbar-track { fill: var(--surface-3); }
.tl-meterbar-fill { fill: var(--ok); }
.tl-job-mini { padding: 14px 0; border-top: 1px solid var(--line); }
.tl-job-mini:first-of-type { border-top: 0; padding-top: 0; }
.tl-job-mini-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 10px; margin: 0 0 8px; }
.tl-job-mini ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.tl-job-mini a { display: flex; align-items: center; gap: 10px; padding: 6px 8px; margin: 0 -8px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.tl-job-mini a:hover { background: color-mix(in srgb, var(--ink) 4%, transparent); color: var(--ink); }
.tl-saved-row { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tl-saved-row a { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 14px 6px 6px; border-radius: 12px; background: var(--surface-2); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; transition: background-color .15s ease; }
.tl-saved-row a:hover { background: var(--surface-3); color: var(--ink); }

@media (max-width: 1100px) {
	.tl-dash-row, .tl-dash-row-even { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
	.tl-dash { gap: 16px; padding-top: 20px; }
	.tl-dash-head .tl-actions { width: 100%; }
	.tl-dash-head .tl-actions .tl-btn { flex: 1 1 auto; }
	.tl-dash-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.tl-kpi4 { padding: 16px; }
	.tl-kpi4 > b { font-size: 32px; }
	.tl-kpi4 .tl-dash-label { font-size: 11px; letter-spacing: .08em; }
	.tl-spark { width: 64px; }
	.tl-kpi4-foot { flex-wrap: wrap; }
	.tl-mini-cal, .tl-mini-wd { gap: 4px; }
	.tl-mini-day { min-height: 44px; padding: 4px 5px; }
	.tl-mini-day span { display: none; }
	.tl-offer-acts .tl-btn { flex: 1 1 auto; }
	.tl-offer-acts .tl-more { flex-basis: 100%; margin-left: 0; }
}

/* =====================================================================================
   Motion — short, and only where it says something (a page arriving, a number
   being counted, a ring filling). None of it runs for "reduce motion".
   ===================================================================================== */
@keyframes tl-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes tl-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes tl-pop { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes tl-ring { from { stroke-dashoffset: 490.1; } } /* the ring's whole length (r = 78) */
@keyframes tl-draw { from { stroke-dashoffset: 1; } }
@keyframes tl-grow { from { transform: scaleX(0); } }
@keyframes tl-grow-y { from { transform: scaleY(0); } }
@keyframes tl-pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 0%, transparent); opacity: 1; } 50% { opacity: .45; } }
@keyframes tl-toast { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: no-preference) {
	/* Pages (and the big blocks on them) arrive with a small rise, one after the other */
	.tl-view > .tl-wrap > *, .tl-view > section, .tl-view > .tl-dash > *, .tl-mod-main > *, .tl-view > .tl-front,
	.tl-dash-row > *, .tl-dash-kpis > li { animation: tl-rise .42s var(--ease) both; }
	.tl-view > .tl-wrap > :nth-child(2), .tl-view > section:nth-of-type(2), .tl-view > .tl-dash > :nth-child(2), .tl-mod-main > :nth-child(2) { animation-delay: .04s; }
	.tl-view > .tl-wrap > :nth-child(3), .tl-view > section:nth-of-type(3), .tl-view > .tl-dash > :nth-child(3), .tl-mod-main > :nth-child(3) { animation-delay: .08s; }
	.tl-view > .tl-wrap > :nth-child(4), .tl-view > section:nth-of-type(4), .tl-view > .tl-dash > :nth-child(4), .tl-mod-main > :nth-child(4) { animation-delay: .12s; }
	.tl-view > .tl-wrap > :nth-child(5), .tl-view > .tl-dash > :nth-child(5), .tl-mod-main > :nth-child(5) { animation-delay: .16s; }
	.tl-view > .tl-wrap > :nth-child(n+6), .tl-view > .tl-dash > :nth-child(n+6), .tl-mod-main > :nth-child(n+6) { animation-delay: .2s; }
	.tl-dash-row > :nth-child(2) { animation-delay: .06s; }
	.tl-dash-kpis > li:nth-child(2) { animation-delay: .04s; }
	.tl-dash-kpis > li:nth-child(3) { animation-delay: .08s; }
	.tl-dash-kpis > li:nth-child(4) { animation-delay: .12s; }

	/* Filling and drawing */
	.tl-ring-bar { animation: tl-ring 1.1s var(--ease) .2s both; }
	.tl-spark path { animation: tl-draw 1.1s cubic-bezier(.4, 0, .2, 1) .35s both; }
	.tl-meterbar-fill { transform-origin: left center; transform-box: fill-box; animation: tl-grow .9s var(--ease) .3s both; }
	.tl-avail-bar, .tl-daybar { transform-origin: left center; animation: tl-grow .6s var(--ease) .15s both; }
	.tl-mini-day { animation: tl-pop .32s var(--ease) both; animation-delay: calc(.2s + var(--i, 0) * 8ms); }
	.tl-offer-strip li { animation: tl-pop .32s var(--ease) both; animation-delay: calc(.25s + var(--i, 0) * 50ms); }
	.tl-chart .bar, .tl-hchart-bar { transform-box: fill-box; transform-origin: bottom; animation: tl-grow-y .7s var(--ease) .15s both; }

	/* Things that are live */
	.tl-dash-label .tl-live, .tl-today .tl-live, .tl-side-sync .tl-live.is-ok { animation: tl-pulse 2.4s ease-in-out infinite; }

	/* Messages and sheets */
	.tl-flash .tl-notice { animation: tl-toast .3s var(--ease) both; }
	details[open] > :not(summary) { animation: tl-fade .22s ease both; }
	.tl-more-sheet[open] .tl-sheet { animation: tl-sheet-in .24s var(--ease) both; }
	.tl-pop, .tl-gta-panel:not(.tl-gear-pick .tl-gta-panel) { animation: tl-pop .18s var(--ease) both; transform-origin: top left; }
	.tl-dialog[open] { animation: tl-pop .22s var(--ease) both; }

	/* Moving between pages: the content cross-fades, the sidebar and bars stay put */
	@view-transition { navigation: auto; }
	::view-transition-old(root) { animation: tl-vt-out .14s ease both; }
	::view-transition-new(root) { animation: tl-vt-in .2s ease both; }
	::view-transition-group(tl-sidebar), ::view-transition-group(tl-topbar), ::view-transition-group(tl-tabbar) { animation: none; }
	::view-transition-old(tl-sidebar), ::view-transition-old(tl-topbar), ::view-transition-old(tl-tabbar) { display: none; }
	::view-transition-new(tl-sidebar), ::view-transition-new(tl-topbar), ::view-transition-new(tl-tabbar) { animation: none; }
}
@keyframes tl-vt-out { to { opacity: 0; } }
@keyframes tl-vt-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Print: the app chrome stays off paper */
@media print {
	.tl-sidebar, .tl-topbar, .tl-tabbar, .tl-appfoot { display: none !important; }
	.tl-shell { display: block; }
}
.tl-shell .tl-dash { padding-top: 28px; }
@media (max-width: 600px) { .tl-shell .tl-dash { padding-top: 20px; } }

/* 4.0: the sign-up count — a card with a glow, squares lighting up one by one */
.tl-goal-meter { border: 1px solid var(--line); background: radial-gradient(120% 90% at 100% 0%, var(--accent-glow), transparent 60%), var(--surface); }
.tl-goal-cells i { border-radius: 3px; }
.tl-goal-cells i.is-on { background: linear-gradient(180deg, var(--fill-hover), var(--fill)); }
@media (prefers-reduced-motion: no-preference) {
	.tl-goal-cells i.is-on { animation: tl-pop .3s var(--ease) both; animation-delay: calc(.25s + var(--i, 0) * 28ms); }
}
/* Side columns that are grids already don't need a gap on top of their gap */
.tl-side > .tl-card + .tl-card, .tl-bk-maincol > .tl-card + .tl-card, .tl-sync-grid > .tl-card + .tl-card, .tl-guides > .tl-card + .tl-card, .tl-platforms > .tl-card + .tl-card { margin-top: 0; }

/* 4.0: lists of people and bookings sit in cards — search results one card each,
   bookings, crew and the diary as one rounded panel of rows */
.tl-results-bar { border-bottom: 0; padding-bottom: 12px; }
.tl-result-list { display: grid; gap: 10px; }
.tl-result { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); padding: 0 10px; transition: border-color .2s ease, background-color .2s ease, transform .2s var(--ease); }
.tl-result:hover { background: var(--surface); border-color: var(--line-strong); }
.tl-result.is-on-job { box-shadow: inset 3px 0 0 var(--fill); }
.tl-bk-list, .tl-crew, .tl-agenda, .tl-kit-techs { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); overflow: hidden; }
.tl-bk:last-child, .tl-crew-item:last-child, .tl-agenda li:last-child, .tl-kit-techs li:last-child { border-bottom: 0; }
.tl-bk-main, .tl-agenda a { padding-left: 16px; padding-right: 16px; }
.tl-bk-tabs + .tl-bk-list, .tl-bk-tabs + .tl-empty { border-top: 1px solid var(--line); margin-top: 12px; }
.tl-bk-waiting .tl-bk-list { border-color: var(--pending-line); }
.tl-crew-item { padding-left: 26px; padding-right: 16px; }
.tl-crew-item::before { left: 10px; }
.tl-kit-techs li { padding-left: 16px; padding-right: 16px; }
.tl-empty { padding-left: 4px; }
@media (prefers-reduced-motion: no-preference) {
	.tl-result-list > li { animation: tl-rise .4s var(--ease) both; }
	.tl-result-list > li:nth-child(2) { animation-delay: .04s; }
	.tl-result-list > li:nth-child(3) { animation-delay: .08s; }
	.tl-result-list > li:nth-child(4) { animation-delay: .12s; }
	.tl-result-list > li:nth-child(n+5) { animation-delay: .16s; }
}
/* House stats charts: solid violet bars, booked-ahead ones outlined */
.tl-hchart-bar { fill: var(--fill); }
.tl-hchart-slot:hover .tl-hchart-bar, .tl-hchart-slot:focus-visible .tl-hchart-bar { fill: var(--fill-hover); }
.tl-hchart-bar.is-future { fill: var(--accent-soft); stroke: var(--accent); }
.tl-chart .bar { fill: var(--fill); }
@media (prefers-reduced-motion: no-preference) {
	.tl-hchart-slot:nth-child(2n) .tl-hchart-bar { animation-delay: .2s; }
	.tl-hchart-slot:nth-child(3n) .tl-hchart-bar { animation-delay: .25s; }
}

/* =====================================================================================
   4.1 — a dashboard for everyone
   ===================================================================================== */
/* Find crew on the booker dashboard: the real search, front and centre */
.tl-find { display: grid; gap: 12px; }
.tl-find-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; }
.tl-find-head h2 { margin: 0; font-size: clamp(26px, 2.6vw, 32px); }
.tl-find-head .tl-help { margin: 0; max-width: 70ch; }
.tl-find .tl-search-shell { max-width: none; margin: 0; }
.tl-find .tl-tabs { max-width: 420px; margin-bottom: 12px; }
.tl-find .tl-panel.tl-card { border-color: var(--accent-line); background: radial-gradient(90% 140% at 0% 0%, var(--accent-glow), transparent 55%), var(--surface); }
.tl-find-closed { display: grid; gap: 20px 32px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.tl-find-closed .tl-goal-meter { border: 0; background: none; padding: 0; }
.tl-find-closed-copy p { margin: 0 0 14px; color: var(--ink-soft); }
@media (max-width: 760px) { .tl-find-closed { grid-template-columns: minmax(0, 1fr); } }

/* Free techs per day (house) */
.tl-cap { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 6px; align-items: end; }
.tl-cap li { display: grid; gap: 6px; justify-items: center; min-width: 0; }
.tl-cap-n { font: 600 14px/1 var(--font-heading); font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.tl-cap-bar { display: block; width: 100%; height: 110px; }
.tl-cap-bar svg { width: 100%; height: 100%; display: block; }
.tl-cap-bar rect { fill: var(--ok); opacity: .75; }
.tl-cap .is-weekend .tl-cap-bar rect { opacity: .45; }
.tl-cap .is-tight .tl-cap-bar rect { fill: var(--pending); opacity: 1; }
.tl-cap .is-tight .tl-cap-n { color: var(--pending); }
.tl-cap-day { display: grid; justify-items: center; font: 500 11px/1.2 var(--font-mono); text-transform: uppercase; color: var(--ink-faint); }
.tl-cap-day b { font: 600 14px/1.1 var(--font-heading); color: var(--ink-soft); }
@media (max-width: 600px) { .tl-cap { gap: 3px; } .tl-cap-bar { height: 80px; } .tl-cap-day { font-size: 10px; } }
.tl-chase { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tl-chase li { display: grid; gap: 2px; padding: 10px 14px; border-radius: 10px; background: var(--surface-2); }
.tl-chase b { font-size: 14px; }
.tl-chase span { font-size: 12px; color: var(--pending); }

/* Review queue preview (team) */
.tl-review { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.tl-review a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); color: var(--ink); text-decoration: none; transition: background-color .15s ease; }
.tl-review a:hover { background: var(--surface-3); color: var(--ink); }

/* Sign-ups and approvals, week by week */
.tl-weeks { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; align-items: end; }
.tl-weeks li { display: grid; gap: 6px; justify-items: center; min-width: 0; }
.tl-weeks-bars { display: block; width: 100%; max-width: 44px; height: 120px; }
.tl-weeks-bars svg { width: 100%; height: 100%; display: block; }
.tl-weeks-bars .is-a { fill: var(--fill); }
.tl-weeks-bars .is-b { fill: var(--ok); }
.tl-weeks-n { font: 600 13px/1 var(--font-heading); color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.tl-weeks-day { font: 500 11px/1 var(--font-mono); text-transform: uppercase; color: var(--ink-faint); white-space: nowrap; }
@media (max-width: 600px) { .tl-weeks { gap: 4px; } .tl-weeks-bars { height: 90px; } .tl-weeks-day { font-size: 9px; } }

/* Health lines (admin) */
.tl-health { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.tl-health a { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 44px; padding: 0 10px; margin: 0 -10px; border-radius: 10px; color: var(--ink-soft); text-decoration: none; font-size: 14px; transition: background-color .15s ease; }
.tl-health a:hover { background: color-mix(in srgb, var(--ink) 4%, transparent); color: var(--ink); }
.tl-health i { width: 8px; height: 8px; border-radius: 999px; background: var(--ink-faint); }
.tl-health .is-ok i { background: var(--ok); }
.tl-health .is-warn i { background: var(--pending); }
.tl-health .is-bad i { background: var(--danger); }
.tl-health b { font: 500 12px/1.2 var(--font-mono); letter-spacing: .04em; color: var(--ink); text-align: right; }
.tl-health .is-bad b { color: var(--danger); }
.tl-bars-mini { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.tl-bars-mini li { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 12px; align-items: center; font-size: 14px; }
.tl-bars-mini li > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-soft); }
.tl-bars-mini svg { width: 100%; height: 6px; display: block; }
.tl-bars-mini b { font: 600 14px/1 var(--font-heading); font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: no-preference) {
	.tl-cap-bar rect, .tl-weeks-bars rect { transform-box: fill-box; transform-origin: bottom; animation: tl-grow-y .6s var(--ease) both; animation-delay: calc(.2s + var(--i, 0) * 30ms); }
	.tl-cap li, .tl-weeks li { --i: 0; }
	.tl-bars-mini .tl-meterbar-fill { transform-origin: left center; transform-box: fill-box; animation: tl-grow .8s var(--ease) .3s both; }
	.tl-review li, .tl-health li { animation: tl-rise .35s var(--ease) both; }
	.tl-review li:nth-child(2), .tl-health li:nth-child(2) { animation-delay: .04s; }
	.tl-review li:nth-child(3), .tl-health li:nth-child(3) { animation-delay: .08s; }
	.tl-review li:nth-child(n+4), .tl-health li:nth-child(n+4) { animation-delay: .12s; }
}
.tl-who-rows .tl-who-body span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-who-rows .tl-btn-sm { flex: none; }

/* =====================================================================
   4.2 — house claims, the house desk's calendar and techs, and calmer
   navigation (sidebar sections for the team; flat tab bar on phones).
   ===================================================================== */

/* A house tick is a claim until the house confirms it */
.tl-claim-mark { font: 500 10px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; padding: 4px 6px; border-radius: 4px; color: var(--pending); background: color-mix(in srgb, var(--pending) 12%, transparent); white-space: nowrap; }
.tl-chip-check.is-confirmed .tl-claim-mark { color: var(--ok-text); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.tl-chip-check.is-rejected .tl-claim-mark { color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, transparent); }
.tl-chip-check.is-rejected span { cursor: not-allowed; color: var(--ink-faint); }
.tl-chip-check input:disabled { cursor: not-allowed; }
.tl-claim-mark.is-confirmed { color: var(--ok-text); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.tl-claim-mark.is-rejected { color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, transparent); }

/* Counts: squared, not pills */
.tl-nav-count { border-radius: 4px; }
.tl-nav-count.is-warn { background: var(--danger); color: #1a0509; }

/* ---------- Sidebar: sections for the team, flatter rows ---------- */
.tl-sidebar { gap: 18px; }
.tl-side-scroll { display: flex; flex-direction: column; gap: 18px; }
.tl-side-nav { gap: 1px; }
.tl-side-nav + .tl-side-nav { margin-top: 0; }
.tl-side-label { padding: 0 10px 6px; font-size: 11px; letter-spacing: .14em; }
.tl-side-nav a { min-height: 38px; padding: 0 10px; gap: 11px; border-radius: 6px; }
.tl-side-nav a[aria-current="page"] { background: color-mix(in srgb, var(--fill) 11%, transparent); }
.tl-side-nav a[aria-current="page"]::before { border-radius: 0; top: 8px; bottom: 8px; width: 2px; }
.tl-side-nav .tl-nav-count { min-width: 20px; height: 20px; font-size: 11px; display: inline-grid; place-items: center; padding: 0 5px; }
.tl-side-group > summary { display: flex; align-items: center; gap: 8px; min-height: 30px; padding: 0 10px 4px; cursor: pointer; list-style: none; user-select: none; transition: color .15s ease; }
.tl-side-group > summary::-webkit-details-marker { display: none; }
.tl-side-group > summary > span:first-child { flex: 1; }
.tl-side-group > summary .tl-icon { color: var(--ink-faint); transform: rotate(-90deg); transition: transform .2s var(--ease); }
.tl-side-group[open] > summary .tl-icon { transform: none; }
.tl-side-group > summary:hover { color: var(--ink-soft); }
.tl-side-group > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.tl-side-group > nav { display: flex; flex-direction: column; gap: 1px; }
.tl-side-install { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 40px; border-radius: var(--r-btn); border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--accent); cursor: pointer; font: 500 12px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.tl-side-install:hover { background: color-mix(in srgb, var(--fill) 22%, transparent); color: var(--ink); }
.tl-shell .tl-mod { display: block; padding-top: 24px; }
.tl-shell .tl-mod-head .tl-dash-sub { max-width: 70ch; }

/* ---------- The search box along the top ---------- */
.tl-qf { position: relative; }
.tl-topbar-search.tl-qf { cursor: text; padding: 0 8px 0 12px; }
.tl-qf > .tl-icon { flex: none; color: var(--ink-faint); transition: color .15s ease; }
.tl-qf input { flex: 1; min-width: 0; height: 40px; padding: 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 14px; outline: none; }
.tl-qf input::placeholder { color: var(--ink-faint); opacity: 1; }
.tl-qf input::-webkit-search-cancel-button { filter: invert(.55); cursor: pointer; }
.tl-qf:focus-within { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-glow); }
.tl-qf:focus-within > .tl-icon { color: var(--accent); }
.tl-qf:focus-within kbd { opacity: 0; }
.tl-qf.is-busy > .tl-icon { animation: tl-qf-busy .9s ease-in-out infinite; }
@keyframes tl-qf-busy { 50% { opacity: .35; } }
.tl-qf-pop { position: absolute; top: calc(100% + 6px); left: 0; right: 0; min-width: 340px; z-index: 70; max-height: min(70vh, 480px); overflow-y: auto; overscroll-behavior: contain; padding: 6px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.tl-qf-pop:not([hidden]) { animation: tl-qf-in .16s var(--ease) both; }
@keyframes tl-qf-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.tl-qf-group + .tl-qf-group { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--line); }
.tl-qf-label { margin: 0; padding: 8px 10px 4px; font: 500 10px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
.tl-qf-item { display: grid; gap: 3px; padding: 8px 10px; border-radius: 6px; color: var(--ink); text-decoration: none; }
.tl-qf-item b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-qf-item span { font-size: 12px; color: var(--ink-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-qf-item.is-active { background: color-mix(in srgb, var(--fill) 14%, transparent); }
.tl-qf-item.is-active b { color: var(--ink); }
.tl-qf-empty { margin: 0; padding: 12px 10px; font-size: 13px; color: var(--ink-soft); }

/* ---------- Phones and tablets: a flat tab bar and a proper bottom sheet ---------- */
@media (max-width: 1023px) {
	.tl-appmain > main, .tl-appfoot { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
	.tl-tabbar { padding: 0 0 env(safe-area-inset-bottom); background: var(--panel); backdrop-filter: none; -webkit-backdrop-filter: none; border-top: 1px solid var(--line-strong); }
	.tl-tabbar > a, .tl-more-sheet > summary { position: relative; min-height: 62px; gap: 6px; border-radius: 0; font: 500 10px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; -webkit-tap-highlight-color: transparent; }
	.tl-tabbar > a::before, .tl-more-sheet > summary::before { content: ""; position: absolute; top: -1px; left: 50%; width: 0; height: 2px; background: var(--fill); transform: translateX(-50%); transition: width .28s var(--ease); }
	.tl-tabbar > a[aria-current="page"]::before, .tl-more-sheet > summary[aria-current="page"]::before, .tl-more-sheet[open] > summary::before { width: 32px; }
	.tl-tabbar > a[aria-current="page"], .tl-more-sheet > summary[aria-current="page"], .tl-more-sheet[open] > summary { color: var(--accent); }
	.tl-tabbar > a[aria-current="page"] .tl-tab-icon { background: none; color: var(--accent); }
	.tl-tab-icon { width: auto; height: 24px; border-radius: 0; background: none; transition: transform .15s var(--ease); }
	.tl-tabbar > a:active .tl-tab-icon, .tl-more-sheet > summary:active .tl-tab-icon { transform: scale(.9); }
	.tl-tab-badge { top: -6px; right: -12px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 4px; font-size: 10px; box-shadow: 0 0 0 2px var(--panel); }
	.tl-tab-badge.is-warn { background: var(--danger); color: #1a0509; }

	.tl-sheet-scrim { position: fixed; inset: 0 0 calc(62px + env(safe-area-inset-bottom)); z-index: 54; background: rgba(4, 4, 8, .62); }
	.tl-more-sheet[open] .tl-sheet-scrim { animation: tl-fade-in .2s ease both; }
	.tl-sheet {
		left: 0; right: 0; bottom: calc(62px + env(safe-area-inset-bottom)); max-height: calc(100dvh - 62px - env(safe-area-inset-bottom) - 48px);
		display: flex; flex-direction: column; gap: 0; padding: 8px 0 14px; overflow: hidden;
		border: 0; border-top: 1px solid var(--line-strong); border-radius: 14px 14px 0 0; background: var(--panel); box-shadow: 0 -20px 48px rgba(0, 0, 0, .5);
	}
	.tl-more-sheet[open] .tl-sheet { animation: tl-sheet-up .26s var(--ease) both; }
	.tl-sheet-grip { flex: none; width: 36px; height: 4px; margin: 0 auto 8px; border-radius: 2px; background: var(--line-strong); }
	.tl-sheet-user { flex: none; padding: 6px 16px 12px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
	.tl-sheet-search { flex: none; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 10px; margin: 12px 16px 2px; padding: 0 12px; border-radius: var(--r-btn); border: 1px solid var(--line); background: var(--surface); }
	.tl-sheet-search .tl-qf-pop { position: static; grid-column: 1 / -1; min-width: 0; max-height: 42vh; margin: 0 -12px; padding: 4px 6px 6px; border: 0; border-top: 1px solid var(--line); border-radius: 0 0 var(--r-btn) var(--r-btn); box-shadow: none; background: transparent; }
	.tl-sheet-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
	.tl-sheet-group { padding-top: 14px; }
	.tl-sheet-label { margin: 0; padding: 0 16px 6px; font: 500 11px/1.4 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
	.tl-sheet-links { grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid var(--line); }
	.tl-sheet-links a { min-height: 50px; padding: 0 16px; gap: 12px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 15px; }
	.tl-sheet-links a:hover { background: color-mix(in srgb, var(--ink) 4%, transparent); }
	.tl-sheet-links a[aria-current="page"] { background: color-mix(in srgb, var(--fill) 10%, transparent); box-shadow: inset 2px 0 0 var(--fill); }
	.tl-sheet-links a[aria-current="page"] .tl-icon { color: var(--accent); }
	.tl-sheet-links .tl-nav-count { min-width: 20px; height: 20px; display: inline-grid; place-items: center; padding: 0 5px; font-size: 11px; }
	.tl-sheet-install { display: flex; align-items: center; gap: 12px; width: calc(100% - 32px); min-height: 48px; margin: 14px 16px 0; padding: 0 14px; border-radius: var(--r-btn); border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--ink); font: 600 15px/1.2 var(--font-body); text-align: left; cursor: pointer; }
	.tl-sheet-install .tl-icon { color: var(--accent); }
	.tl-sheet form:not(.tl-qf) { margin: 14px 16px 0; }
	.tl-install { display: none; }
}
@media (max-width: 1023px) and (min-width: 600px) {
	.tl-sheet-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tl-sheet-links a:nth-child(odd) { border-right: 1px solid var(--line); }
	.tl-sheet-search { display: none; }
}
@keyframes tl-sheet-up { from { opacity: .4; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes tl-fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- House desk: shared bits ---------- */
.tl-viewswitch { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--r-btn); overflow: hidden; }
.tl-viewswitch a { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 0 14px; color: var(--ink-soft); text-decoration: none; font: 500 12px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; transition: background-color .15s ease, color .15s ease; }
.tl-viewswitch a + a { border-left: 1px solid var(--line-strong); }
.tl-viewswitch a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 4%, transparent); }
.tl-viewswitch a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
.tl-callout { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; padding: 12px 16px; border-radius: var(--r-card); border: 1px solid var(--pending-line); background: var(--pending-soft); color: var(--ink); text-decoration: none; font-size: 14px; transition: border-color .15s ease; }
.tl-callout > span { flex: 1; }
.tl-callout.is-warn .tl-live { background: var(--pending); }
.tl-callout:hover { border-color: var(--pending); color: var(--ink); }
.tl-stale { font-style: normal; color: var(--pending); }
.tl-names { margin: 0; font-size: 14px; color: var(--ink-soft); }
.tl-inline-form { display: inline-flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.tl-hrows { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.tl-hrow { display: flex; align-items: center; gap: 10px; min-height: 52px; margin: 0 -8px; padding: 6px 8px; border-radius: 8px; color: var(--ink); text-decoration: none; transition: background-color .15s ease; }
a.tl-hrow:hover, li.tl-hrow:hover { background: color-mix(in srgb, var(--ink) 4%, transparent); color: var(--ink); }
.tl-hrow .tl-who-body > span { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-hrow .tl-who-body a { color: inherit; text-decoration: none; }
.tl-hrow .tl-who-body a:hover b { color: var(--accent); }
.tl-hrow-act { display: flex; flex: none; gap: 6px; margin: 0; }
.tl-hrows.is-quiet .tl-who-body b { color: var(--ink-soft); }

/* ---------- House calendar ---------- */
.tl-hcal-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 14px; }
.tl-hcal-nav { display: flex; gap: 6px; }
.tl-hcal-nav .is-disabled { opacity: .35; pointer-events: none; }
.tl-hcal-filter { margin: 0; }
.tl-hcal-filter .tl-select { min-width: 230px; }
.tl-hcal-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 0 auto; font: 500 11px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); }
.tl-hcal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.tl-hcal-legend i { width: 10px; height: 10px; border-radius: 2px; }
.tl-hcal-legend .is-free { background: color-mix(in srgb, var(--ok) 50%, transparent); }
.tl-hcal-legend .is-confirmed { background: var(--fill); }
.tl-hcal-legend .is-pencilled { box-shadow: inset 0 0 0 1.5px var(--fill); }
.tl-hcal-legend .is-requested { background: var(--pending); }
.tl-hcal { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); gap: 16px; align-items: start; }
.tl-hcal-month { padding: 14px; }
.tl-hcal-head, .tl-hcal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.tl-hcal-head { margin: 0 0 6px; }
.tl-hcal-head span { padding: 4px 8px; font: 500 11px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.tl-hcal-grid { list-style: none; margin: 0; padding: 0; }
.tl-hday { min-width: 0; }
.tl-hday a { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; height: 100%; min-height: 94px; padding: 8px 9px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color .15s ease, background-color .2s ease, transform .15s var(--ease); }
.tl-hday a[data-heat="1"] { background: color-mix(in srgb, var(--ok) 6%, var(--surface)); }
.tl-hday a[data-heat="2"] { background: color-mix(in srgb, var(--ok) 11%, var(--surface)); }
.tl-hday a[data-heat="3"] { background: color-mix(in srgb, var(--ok) 16%, var(--surface)); }
.tl-hday a[data-heat="4"] { background: color-mix(in srgb, var(--ok) 22%, var(--surface)); }
.tl-hday a:hover { border-color: var(--line-strong); }
.tl-hday a:active { transform: scale(.98); }
.tl-hday a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tl-hday-num { align-self: flex-start; font: 600 14px/1 var(--font-heading); color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.tl-hday.is-weekend .tl-hday-num { color: var(--ink-faint); }
.tl-hday.is-today .tl-hday-num { padding: 3px 6px; margin: -3px 0 0 -3px; border-radius: 4px; background: var(--fill); color: var(--fill-ink); }
.tl-hday-free { display: flex; align-items: baseline; gap: 4px; font: 500 10px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.tl-hday-free b { font: 600 22px/1 var(--font-heading); letter-spacing: 0; color: var(--ok-text); font-variant-numeric: tabular-nums; }
.tl-hday.is-tight .tl-hday-free b { color: var(--pending); }
.tl-hday-jobs { display: flex; flex-wrap: wrap; gap: 4px; }
.tl-hday-jobs span { display: inline-grid; place-items: center; min-width: 20px; height: 18px; padding: 0 5px; border-radius: 4px; font: 600 11px/1 var(--font-mono); }
.tl-hday-jobs .is-confirmed { background: var(--fill); color: var(--fill-ink); }
.tl-hday-jobs .is-pencilled { box-shadow: inset 0 0 0 1.5px var(--fill); color: var(--accent); }
.tl-hday-jobs .is-requested { background: var(--pending); color: var(--pending-ink); }
.tl-hday.is-out a { opacity: .42; }
.tl-hday.is-past a { background: transparent; opacity: .55; }
.tl-hday.is-sel a { opacity: 1; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 0 5px var(--accent-glow); }
.tl-hcal-day { position: sticky; top: 84px; display: grid; gap: 16px; max-height: calc(100dvh - 100px); overflow-y: auto; overscroll-behavior: contain; padding: 18px; scroll-margin-top: 84px; }
.tl-hcal-dayhead { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.tl-hcal-dayhead h2 { margin: 6px 0 0; font: 600 24px/1.1 var(--font-heading); text-transform: uppercase; }
.tl-hcal-sec { display: grid; gap: 8px; }
.tl-hcal-sechead { display: flex; align-items: center; gap: 8px; margin: 0; font: 500 11px/1.2 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
.tl-hcal-sechead > span { padding: 3px 6px; border-radius: 4px; background: var(--surface-3); color: var(--ink); letter-spacing: 0; }
.tl-hcal-sechead.is-ok { color: var(--ok-text); }
.tl-hcal-sechead.is-ok > span { background: var(--ok-soft); color: var(--ok-text); }
summary.tl-hcal-sechead { min-height: 32px; cursor: pointer; list-style: none; }
summary.tl-hcal-sechead::-webkit-details-marker { display: none; }
summary.tl-hcal-sechead .tl-icon { margin-left: auto; transform: rotate(-90deg); transition: transform .2s var(--ease); }
.tl-hcal-more[open] > summary .tl-icon { transform: none; }
@media (max-width: 1180px) {
	.tl-hcal { grid-template-columns: minmax(0, 1fr); }
	.tl-hcal-day { position: static; max-height: none; overflow: visible; }
}
@media (max-width: 700px) {
	.tl-hcal-month { padding: 8px; }
	.tl-hcal-head, .tl-hcal-grid { gap: 3px; }
	.tl-hcal-head span { padding: 4px 0; text-align: center; font-size: 10px; letter-spacing: .02em; }
	.tl-hday a { min-height: 60px; gap: 3px; padding: 5px; border-radius: 6px; }
	.tl-hday-free > span { display: none; }
	.tl-hday-free b { font-size: 17px; }
	.tl-hday-jobs { gap: 2px; }
	.tl-hday-jobs span { min-width: 0; width: 7px; height: 7px; padding: 0; border-radius: 2px; font-size: 0; }
	.tl-hcal-legend { margin-left: 0; }
	.tl-hcal-filter, .tl-hcal-filter .tl-select { width: 100%; min-width: 0; }
	.tl-hrow { flex-wrap: wrap; }
	.tl-hrow-act { width: 100%; padding-left: 40px; }
	.tl-hrow-act .tl-btn { flex: 1; }
}

/* ---------- Your techs ---------- */
.tl-claims { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.tl-claim { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); scroll-margin-top: 90px; }
.tl-claims.is-quiet .tl-claim { background: transparent; }
.tl-claims-card { margin-bottom: 16px; border-color: var(--pending-line); scroll-margin-top: 84px; }
.tl-claim-body { flex: 1; min-width: 0; }
.tl-claim-name { margin: 0; font-size: 15px; }
.tl-claim-name > a { font-weight: 700; color: var(--ink); text-decoration: none; }
.tl-claim-name > a:hover { color: var(--accent); }
.tl-claim-house { color: var(--ink-soft); }
.tl-claim-house b { color: var(--ink); font-weight: 600; }
.tl-claim-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 4px 0 0; font-size: 12px; color: var(--ink-faint); }
.tl-claim-meta a { color: var(--ink-soft); }
.tl-claim-actions { display: flex; flex: none; gap: 6px; margin: 0; }
.tl-claim-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.tl-claim-list li { display: grid; gap: 6px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.tl-claim-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.tl-claim-list-name { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
@media (max-width: 640px) {
	.tl-claim { flex-wrap: wrap; }
	.tl-claim-actions { width: 100%; }
	.tl-claim-actions .tl-btn { flex: 1; }
}
.tl-roster-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 4px 0 12px; }
.tl-roster-filter { position: relative; flex: 0 1 380px; }
.tl-roster-filter .tl-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-faint); pointer-events: none; }
.tl-roster-filter .tl-input { padding-left: 38px; }
.tl-roster { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 430px), 1fr)); gap: 12px; }
.tl-rost { display: grid; gap: 12px; align-content: start; padding: 16px; scroll-margin-top: 90px; transition: border-color .2s ease, box-shadow .2s ease; }
.tl-rost:target { border-color: var(--accent-line); box-shadow: 0 0 0 4px var(--accent-glow); }
.tl-rost-main { display: flex; align-items: flex-start; gap: 12px; }
.tl-rost-who { flex: 1; min-width: 0; }
.tl-rost-who h2 { margin: 0; font: 600 20px/1.15 var(--font-heading); text-transform: uppercase; }
.tl-rost-who h2 a { color: var(--ink); text-decoration: none; }
.tl-rost-who h2 a:hover { color: var(--accent); }
.tl-rost-kit { margin: 4px 0 0; font-size: 13px; color: var(--ink-faint); }
.tl-rost-today { flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 26px; padding: 0 9px; border-radius: 5px; border: 1px solid var(--line-strong); color: var(--ink-soft); font: 500 11px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.tl-rost-today.is-free { color: var(--ok-text); border-color: var(--ok-line); background: var(--ok-soft); }
.tl-rost-today.is-free .tl-live { background: var(--ok); }
.tl-rost-today.is-busy { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.tl-rost-today.is-busy .tl-live { background: var(--fill); }
.tl-rost-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 0; overflow: hidden; border-radius: 8px; border: 1px solid var(--line); background: var(--line); }
.tl-rost-facts > div { display: grid; gap: 5px; align-content: start; min-width: 0; padding: 9px 10px; background: var(--surface); }
.tl-rost-facts dt { font: 500 10px/1.25 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.tl-rost-facts dd { margin: 0; font-size: 13px; color: var(--ink-soft); }
.tl-rost-facts dd b { font: 600 18px/1 var(--font-heading); color: var(--ink); font-variant-numeric: tabular-nums; }
.tl-rost-next { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 9px 11px; border-radius: 8px; background: var(--surface); color: var(--ink-soft); text-decoration: none; font-size: 13px; transition: background-color .15s ease; }
.tl-rost-next:hover { background: var(--surface-2); color: var(--ink); }
.tl-rost-next > span:nth-child(2) { flex: 1; min-width: 0; }
.tl-rost-next b { color: var(--ink); }
.tl-rost-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.tl-rost-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tl-rost-contact form { margin: 0; }
.tl-rost-note { padding-top: 10px; border-top: 1px solid var(--line); }
.tl-rost-note > summary { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; cursor: pointer; list-style: none; color: var(--ink-soft); font: 500 12px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.tl-rost-note > summary::-webkit-details-marker { display: none; }
.tl-rost-note > summary:hover { color: var(--ink); }
.tl-rost-note > summary .tl-meta { text-transform: none; letter-spacing: 0; font-family: var(--font-body); }
.tl-rost-noteform { display: grid; gap: 8px; margin-top: 8px; }
.tl-rost-noteact { display: flex; justify-content: flex-end; }
.tl-rost-remove { margin: 6px 0 0; }
.tl-rost-remove .tl-btn { padding-inline: 0; color: var(--ink-faint); font-size: 11px; }
.tl-rost-remove .tl-btn:hover { color: var(--danger); }
.tl-turned > summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; }
.tl-turned > summary::-webkit-details-marker { display: none; }
.tl-turned > summary .tl-icon { margin-left: auto; transform: rotate(-90deg); transition: transform .2s var(--ease); }
.tl-turned[open] > summary .tl-icon { transform: none; }
@media (max-width: 520px) { .tl-rost-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tl-rost-main { flex-wrap: wrap; } .tl-rost-today { order: 3; } }


/* The dashboard's 14-day bars open that day on the calendar */
.tl-cap li > a { display: grid; gap: 6px; justify-items: center; width: 100%; padding: 4px 0; border-radius: 6px; color: inherit; text-decoration: none; transition: background-color .15s ease; }
.tl-cap li > a:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }

@media (prefers-reduced-motion: no-preference) {
	.tl-hcal-grid .tl-hday { animation: tl-rise .4s var(--ease) both; animation-delay: calc(var(--i, 0) * 8ms); }
	.tl-hcal-day > * { animation: tl-rise .35s var(--ease) both; }
	.tl-hcal-day > *:nth-child(2) { animation-delay: .04s; }
	.tl-hcal-day > *:nth-child(3) { animation-delay: .08s; }
	.tl-hcal-day > *:nth-child(n+4) { animation-delay: .12s; }
	.tl-roster > li, .tl-claims > li, .tl-pick > li { animation: tl-rise .35s var(--ease) both; }
	.tl-roster > li:nth-child(2), .tl-claims > li:nth-child(2), .tl-pick > li:nth-child(2) { animation-delay: .04s; }
	.tl-roster > li:nth-child(3), .tl-claims > li:nth-child(3), .tl-pick > li:nth-child(3) { animation-delay: .08s; }
	.tl-roster > li:nth-child(n+4), .tl-claims > li:nth-child(n+4), .tl-pick > li:nth-child(n+4) { animation-delay: .12s; }
	.tl-side-group[open] > nav { animation: tl-rise .22s var(--ease) both; }
}
@media (prefers-reduced-motion: reduce) {
	.tl-more-sheet[open] .tl-sheet, .tl-more-sheet[open] .tl-sheet-scrim, .tl-qf-pop:not([hidden]) { animation: none; }
}
.tl-rost-foot { align-items: flex-end; }
.tl-rost-contact { flex: 1; min-width: 0; }
@media (max-width: 1023px) {
	.tl-sheet .tl-sheet-search { margin: 12px 16px 2px; }
	.tl-tabbar:has(.tl-more-sheet[open]) > a[aria-current="page"]::before { width: 0; }
	.tl-tabbar:has(.tl-more-sheet[open]) > a[aria-current="page"], .tl-tabbar:has(.tl-more-sheet[open]) > a[aria-current="page"] .tl-tab-icon { color: var(--ink-faint); }
}
.tl-hday-free { font-size: 11px; color: var(--ink-soft); }
.tl-hday.is-weekend .tl-hday-num { color: var(--ink-soft); }

/* 4.3: houses whose desk is run by a technician */
.tl-techrun { font: 500 10px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; padding: 4px 6px; border-radius: 4px; color: var(--accent); background: var(--accent-soft); white-space: nowrap; }
.tl-techrun-note strong { color: var(--ink); }

/* =====================================================================
   4.4 — rental house logos, instead of the plain name where a house is a
   label. Single-colour, light on the dark app; sized in em from the line
   they sit on, with each mark's own weight evened out (--hs).
   ===================================================================== */
.tl-hlogo { display: inline-block; flex: none; vertical-align: middle; width: auto; max-width: 100%; height: calc(var(--hl, 1.15em) * var(--hs, 1)); }
.tl-hlogo.is-arri-rental { --hs: 1; }
.tl-hlogo.is-camera-revolution { --hs: 1.2; }
.tl-hlogo.is-panavision { --hs: .82; }
.tl-hlogo.is-sunbelt-rentals { --hs: 1.3; }
/* 5.0.7: seven more houses. 5.0.8: the two round badges are cut down to their names
   (straightened out of the circle), which read at this size; the whole badges didn't. */
.tl-hlogo.is-camera-crane-scotland { --hs: 1.15; }
.tl-hlogo.is-independent-grip-company { --hs: 1.4; }
.tl-hlogo.is-dlp-remotes { --hs: .85; }
.tl-hlogo.is-motion-remote, .tl-hlogo.is-tgc { --hs: .95; }
.tl-hlogo.is-real-pro-gear { --hs: 1.4; }
.tl-hlogo.is-scopics { --hs: .72; }
.tl-houses { display: inline-flex; flex-wrap: wrap; align-items: center; row-gap: 8px; vertical-align: middle; }
.tl-hsep { align-self: stretch; width: 1px; min-height: 1em; margin: 0 12px; background: var(--line-strong); }
.tl-houses .tl-house-link { display: inline-flex; align-items: center; text-decoration: none; opacity: .88; transition: opacity .15s ease; }
.tl-houses .tl-house-link:hover { opacity: 1; }
.tl-result-sub .tl-houses { --hl: 1.05em; margin-top: 2px; }
.tl-chip-check .tl-hlogo { --hl: 1.15em; }
.tl-chip-check.is-rejected .tl-hlogo { opacity: .45; }
.tl-chip-check:not(.is-confirmed):not(.is-pending) input:not(:checked) + span .tl-hlogo { opacity: .7; }
.tl-eyebrow-house { display: flex; flex-wrap: wrap; align-items: center; gap: .45em; }
.tl-eyebrow-house .tl-hlogo { --hl: 1.45em; }
.tl-claims-house { display: flex; align-items: center; gap: 8px; }
.tl-claims-house .tl-hlogo { --hl: 1.6em; }
.tl-logo-cell { min-width: 210px; }
.tl-logo-cell .tl-hlogo { --hl: 1.1em; display: block; margin-top: 8px; }

/* =====================================================================
   4.5 — the testing suite. An amber bar along the top of every page while
   you're inside it, so it can never be mistaken for the real site.
   ===================================================================== */
.tl-testing { --tb: 38px; padding-top: var(--tb); }
.tl-testbar { position: fixed; top: 0; left: 0; right: 0; z-index: 90; display: flex; align-items: center; gap: 4px 14px; height: var(--tb); padding: 0 clamp(10px, 2vw, 20px); background: var(--pending); color: var(--pending-ink); font: 500 12px/1 var(--font-mono); letter-spacing: .04em; box-shadow: 0 1px 0 rgba(0, 0, 0, .35); }
.tl-testbar a, .tl-testbar button, .tl-testbar summary { color: inherit; font: inherit; letter-spacing: inherit; }
.tl-testbar-tag { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; text-decoration: none; white-space: nowrap; }
.tl-testbar-who { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-family: var(--font-body); font-size: 13px; letter-spacing: 0; }
.tl-testbar-who b { font-weight: 700; }
.tl-testbar-switch { position: relative; }
.tl-testbar-switch > summary { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 10px; border-radius: 6px; background: rgba(26, 18, 3, .12); cursor: pointer; list-style: none; text-transform: uppercase; letter-spacing: .08em; }
.tl-testbar-switch > summary::-webkit-details-marker { display: none; }
.tl-testbar-switch > summary:hover, .tl-testbar-switch[open] > summary { background: rgba(26, 18, 3, .22); }
.tl-testbar-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 91; width: 270px; display: grid; padding: 6px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface-2); box-shadow: var(--shadow); color: var(--ink); font-family: var(--font-body); font-size: 14px; letter-spacing: 0; }
.tl-testbar-menu form { margin: 0; }
.tl-testbar-menu button, .tl-testbar-menu a { display: block; width: 100%; padding: 9px 10px; border: 0; border-radius: 6px; background: none; color: var(--ink); text-align: left; text-decoration: none; cursor: pointer; font: 500 14px/1.3 var(--font-body); }
.tl-testbar-menu button:hover, .tl-testbar-menu a:hover { background: color-mix(in srgb, var(--fill) 14%, transparent); }
.tl-testbar-menu button[aria-current="true"] { color: var(--accent); background: var(--accent-soft); }
.tl-testbar-menu a { margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 6px 6px; color: var(--ink-soft); }
.tl-testbar-link { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 8px; border-radius: 6px; text-decoration: none; text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.tl-testbar-link:hover { background: rgba(26, 18, 3, .12); }
.tl-testbar-link b { min-width: 18px; height: 18px; display: inline-grid; place-items: center; padding: 0 4px; border-radius: 4px; background: var(--pending-ink); color: var(--pending); font-size: 11px; }
.tl-testbar-leave { margin: 0; }
.tl-testbar-leave button { height: 26px; padding: 0 12px; border: 1px solid rgba(26, 18, 3, .4); border-radius: 6px; background: none; cursor: pointer; text-transform: uppercase; letter-spacing: .08em; }
.tl-testbar-leave button:hover { background: var(--pending-ink); color: var(--pending); }
.tl-testbar :focus-visible { outline: 2px solid var(--pending-ink); outline-offset: 2px; }
/* Everything that sticks to the top of the page sits below the bar. */
.tl-testing .tl-header, .tl-testing .tl-topbar { top: var(--tb); }
.tl-testing .tl-sidebar { top: var(--tb); height: calc(100vh - var(--tb)); height: calc(100dvh - var(--tb)); }
@media (min-width: 1181px) { .tl-testing .tl-hcal-day { top: calc(84px + var(--tb)); max-height: calc(100dvh - 100px - var(--tb)); } }
@media (min-width: 900px) { .tl-testing .tl-profile > .tl-contact, .tl-testing .tl-bk-side, .tl-testing .tl-kit-aside { top: calc(88px + var(--tb)); } }
@media (min-width: 960px) { .tl-testing .tl-book-side { top: calc(88px + var(--tb)); } }
@media (min-width: 1000px) { .tl-testing .tl-side, .tl-testing .tl-dm-coach { top: calc(88px + var(--tb)); } }
.tl-testing .tl-sheet { max-height: calc(100dvh - 62px - env(safe-area-inset-bottom) - 48px - var(--tb)); }
@media (max-width: 640px) {
	.tl-testbar { gap: 8px; }
	.tl-testbar-tag span, .tl-testbar-long, .tl-testbar-name, .tl-testbar-as { display: none; }
	.tl-testbar-menu { position: fixed; top: calc(var(--tb) + 6px); left: 10px; right: 10px; width: auto; }
}

/* The suite's own pages */
.tl-testing-open { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-bottom: 16px; border-color: var(--pending-line); }
.tl-testing-open > div { flex: 1 1 360px; }
.tl-testing-people, .tl-testing-rules { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.tl-testing-people li { display: grid; gap: 2px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.tl-testing-people li:last-child { border-bottom: 0; padding-bottom: 0; }
.tl-testing-people span { font-size: 13px; color: var(--ink-soft); }
.tl-testing-rules li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-soft); }
.tl-testing-rules .tl-icon { flex: none; margin-top: 2px; color: var(--accent); }
.tl-testing-rules b { color: var(--ink); }
.tl-testing-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 12px; }
.tl-testing-card { display: grid; gap: 8px; align-content: start; padding: 18px; }
.tl-testing-card h2 { margin: 0; font: 600 22px/1.1 var(--font-heading); text-transform: uppercase; }
.tl-testing-card .tl-help { margin: 0; min-height: 3.6em; }
.tl-testing-card form { margin-top: 6px; }
.tl-testing-card.is-me { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-glow); }
.tl-segmented > button { flex: 1 1 0; min-height: 40px; padding: 0 12px; border: 0; border-radius: 7px; background: none; color: var(--ink-soft); cursor: pointer; font: 500 12px/1.1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; transition: background-color .15s ease, color .15s ease; }
.tl-segmented > button:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink); }
.tl-segmented > button[aria-pressed="true"] { background: var(--surface-3); color: var(--ink); box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 1px 3px rgba(0, 0, 0, .3); }
.tl-testing-mail { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tl-testing-mail a { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; }
.tl-testing-mail a:hover { border-color: var(--line-strong); background: var(--surface-2); }
.tl-testing-mail-to { font-size: 13px; color: var(--ink-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-testing-mail b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) { .tl-testing-mail a { grid-template-columns: minmax(0, 1fr); gap: 4px; } }
.tl-testing-subject { font-size: clamp(24px, 4vw, 36px); text-transform: none; }
.tl-testing-body { padding: 22px; font-size: 15px; line-height: 1.6; color: var(--ink-soft); overflow-wrap: anywhere; }
.tl-testing-body a { color: var(--accent); }
.tl-testing-card .tl-btn { max-width: 100%; white-space: normal; }
.tl-dash-row > .tl-card + .tl-card { margin-top: 0; }
.tl-testing-open + .tl-dash-row { margin-top: 20px; }

/* ---- 4.5 desk team ---- */
.tl-team { list-style: none; margin: 4px 0 0; padding: 0; display: grid; }
.tl-team-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.tl-team-row:first-child { border-top: 0; }
.tl-team-who { display: grid; gap: 2px; min-width: 0; }
.tl-team-who b { font-weight: 600; }
.tl-team-who .tl-pillx { margin-left: 4px; vertical-align: 1px; }
.tl-team-meta { color: var(--ink-soft); font-size: 13px; overflow-wrap: anywhere; }
.tl-team-wait { color: var(--pending); font-style: normal; }
.tl-team-act { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.tl-team-act form { margin: 0; }
.tl-team-form { display: grid; gap: 14px; margin-top: 8px; }
.tl-team-form .tl-btn { justify-self: start; }
.tl-team-note { margin-top: 14px; font-size: 13px; }
@media (max-width: 640px) {
	.tl-team-row { grid-template-columns: auto minmax(0, 1fr); }
	.tl-team-act { grid-column: 2; justify-content: flex-start; }
}
.tl-team-name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.tl-team-name .tl-pillx { margin: 0; }

/* ---- 4.5 phones: the tab bar becomes a floating dock (7 Nov).
   Plain sentence-case words instead of spaced capitals, the page you're on in a soft pill,
   and the More sheet floating just above it. ---- */
@media (max-width: 1023px) {
	:root { --dock-h: 62px; --dock-gap: 10px; --dock-side: max(10px, calc(50% - 270px)); --dock-top: calc(var(--dock-h) + var(--dock-gap) + env(safe-area-inset-bottom)); }
	.tl-appmain > main, .tl-appfoot { padding-bottom: calc(var(--dock-top) + 28px); }
	.tl-tabbar {
		left: var(--dock-side); right: var(--dock-side); bottom: calc(var(--dock-gap) + env(safe-area-inset-bottom));
		height: var(--dock-h); padding: 5px; gap: 2px; align-items: stretch; border: 0; border-radius: 22px;
		/* No filter on the bar itself: it would become the frame the More sheet is placed in. The glass is its own layer. */
		background: none; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none;
	}
	.tl-tabbar::before {
		content: ""; position: absolute; inset: 0; z-index: 55; pointer-events: none; border-radius: inherit;
		border: 1px solid var(--line-strong); background: color-mix(in srgb, var(--surface-2) 93%, transparent);
		-webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px);
		box-shadow: 0 14px 34px rgba(0, 0, 0, .55), 0 2px 8px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .05);
	}
	.tl-tabbar > a, .tl-more-sheet > summary { z-index: 57; }
	.tl-tabbar > a, .tl-more-sheet > summary {
		min-height: 0; height: 100%; min-width: 0; gap: 5px; padding: 0 2px; border-radius: 17px;
		font: 600 11px/1 var(--font-body); letter-spacing: 0; text-transform: none; color: var(--ink-faint);
		transition: color .15s ease, background-color .2s ease;
	}
	.tl-tabbar > a::before, .tl-more-sheet > summary::before { display: none; }
	.tl-tab-word { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.tl-tabbar > a[aria-current="page"], .tl-more-sheet > summary[aria-current="page"], .tl-more-sheet[open] > summary { color: var(--accent); background: var(--accent-soft); }
	.tl-tabbar > a[aria-current="page"] .tl-tab-icon { color: var(--accent); }
	.tl-tab-icon { height: 22px; }
	.tl-tab-icon .tl-icon { width: 21px; height: 21px; }
	.tl-tab-badge { top: -5px; right: -11px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; font: 700 10px/1 var(--font-body); box-shadow: 0 0 0 2px var(--surface-2); }
	.tl-tabbar:has(.tl-more-sheet[open]) > a[aria-current="page"] { background: none; }

	.tl-sheet-scrim { inset: 0; }
	.tl-sheet {
		left: var(--dock-side); right: var(--dock-side); bottom: calc(var(--dock-top) + 8px);
		max-height: calc(100dvh - var(--dock-top) - 8px - 56px);
		border: 1px solid var(--line-strong); border-radius: 20px; background: var(--surface);
		box-shadow: 0 18px 48px rgba(0, 0, 0, .55);
	}
	.tl-testing .tl-sheet { max-height: calc(100dvh - var(--dock-top) - 8px - 56px - var(--tb)); }
	.tl-sheet-links a:last-child { border-bottom: 0; }
	.tl-sheet-links { border-bottom: 1px solid var(--line); }
}
@media (max-width: 359px) {
	.tl-tabbar > a, .tl-more-sheet > summary { font-size: 10px; }
}

/* ---- 4.5 phones: links that didn't sit right ---- */
/* A line of words with an icon in front: one run of text that wraps, not columns. */
.tl-owner-only, .tl-found-line { display: block; }
.tl-owner-only > .tl-icon, .tl-found-line > .tl-icon { display: inline-block; vertical-align: -2px; margin-right: 6px; }
/* Two or three links in a row: each keeps to itself and the row wraps between them, never inside one. */
.tl-link-row { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 8px 0 0; font-size: 14px; }
.tl-link-row a { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.tl-link-row .tl-icon { color: var(--ink-faint); }
/* Roster card: what's next takes a line of its own rather than squeezing to a word wide. */
.tl-rost-next > span:nth-child(2) { flex: 1 1 14em; }
@media (max-width: 560px) {
	.tl-rost-foot { display: grid; grid-template-columns: minmax(0, 1fr); align-items: stretch; gap: 10px; }
	.tl-rost-foot > .tl-btn-primary, .tl-rost-foot > .tl-pillx { justify-self: stretch; justify-content: center; }
	.tl-rost-contact { gap: 8px 10px; }
}
/* Two-step setup on a small phone: the key wraps instead of pushing the page sideways. */
.tl-setup-steps > li, .tl-qr-row > div { min-width: 0; }
.tl-secret code { white-space: normal; overflow-wrap: anywhere; }
/* Phone month view: the 4.0 restyle had brought the full job names back on top of the short ones. */
@media (max-width: 640px) {
	.tl-mitem { font-size: 0; height: 17px; padding: 0 3px; border-radius: 4px; }
	.tl-mitem::before { font: 600 11px/1 var(--font-body); text-overflow: clip; }
}
/* A house chip with its logo and two tags wraps inside itself rather than running off a phone. */
.tl-chip-check { max-width: 100%; }
.tl-chip-check span { flex-wrap: wrap; max-width: 100%; row-gap: 6px; padding-block: 6px; }
/* 4.5: the “How it’s paid for” box sits on its own now. */
.tl-about-grid { grid-template-columns: minmax(0, 760px); }

/* ======================================================================
   5.0 "Final checks": three tabs, the Me / Desk page, the Inbox.
   ====================================================================== */
/* Three tabs make a narrower dock. */
@media (max-width: 1023px) {
	.tl-tabbar.is-3-tabs { left: max(16px, calc(50% - 160px)); right: max(16px, calc(50% - 160px)); }
	.tl-tabbar.is-2-tabs { left: max(16px, calc(50% - 110px)); right: max(16px, calc(50% - 110px)); }
}
/* Me / Desk */
.tl-me { max-width: 640px; }
.tl-me-head { display: flex; align-items: center; gap: 14px; margin: 28px 0 22px; }
.tl-me-avatar { width: 52px; height: 52px; border-radius: 14px; font-size: 20px; }
.tl-me-who { flex: 1 1 auto; min-width: 0; }
.tl-me-who h1 { margin: 0; font-size: clamp(24px, 6vw, 32px); line-height: 1.05; overflow-wrap: anywhere; }
.tl-me-sub { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; color: var(--ink-soft); font-size: var(--fs-small); }
.tl-me-group { margin-top: 22px; }
.tl-me-label { margin: 0 0 8px; font: 500 11px/1.2 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
.tl-me-rows { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.tl-me-rows li + li { border-top: 1px solid var(--line-soft); }
.tl-me-rows a { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 14px; color: var(--ink); text-decoration: none; }
.tl-me-rows a:hover, .tl-me-rows a:focus-visible { background: var(--accent-soft); }
.tl-me-icon { flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--line-soft); color: var(--ink-soft); }
.tl-me-text { flex: 1 1 auto; min-width: 0; font-weight: 500; }
.tl-me-note { flex: none; max-width: 45%; color: var(--ink-faint); font-size: var(--fs-small); text-align: right; }
.tl-me-note.is-warn { color: var(--pending); }
.tl-me-rows a > svg:last-child { flex: none; color: var(--ink-faint); transform: rotate(-90deg); }
.tl-me-install { margin-top: 22px; }
.tl-me-out { margin: 22px 0 8px; }
/* Inbox: the quiet lines under the cards (free days, who's checked, houses). */
.tl-inbox-lines { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.tl-inbox-lines a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink-soft); text-decoration: none; font-size: var(--fs-small); }
.tl-inbox-lines a:hover, .tl-inbox-lines a:focus-visible { border-color: var(--line-strong); color: var(--ink); }
.tl-inbox-lines a > svg { flex: none; color: var(--ink-faint); }
.tl-inbox-lines a > span:first-of-type { flex: 1 1 auto; min-width: 0; }
.tl-inbox-lines b { color: var(--ink); font-weight: 600; }
.tl-inbox-go { flex: none; font: 500 11px/1.2 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.tl-inbox .tl-dash-check { margin-top: 18px; }
@media (max-width: 479px) {
	.tl-me-head { flex-wrap: wrap; }
	.tl-me-head > .tl-btn { flex-basis: 100%; justify-content: center; }
	.tl-me-who h1 { font-size: 26px; }
}
.tl-plain-value { margin: 8px 0 0; font-weight: 500; }
/* 5.0: long link-row links (Phone calendar) wrap rather than widen the page. */
.tl-link-row a { white-space: normal; min-width: 0; max-width: 100%; }
.tl-link-row a .tl-icon, .tl-link-row a > svg { flex: none; }
/* 5.0: an open date pop-up sits above the cards that follow it (it was painted under the next card
   on the booker's Inbox search and My techs, so its dates couldn't be tapped). */
.tl-card:has(.tl-daterange.open), .tl-panel:has(.tl-daterange.open), .tl-find:has(.tl-daterange.open), .tl-search-shell:has(.tl-daterange.open), .tl-crew-check:has(.tl-daterange.open), section:has(> * .tl-daterange.open) { position: relative; z-index: 45; }
.tl-offer-sep { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }

/* ======================================================================
   5.0: the tech's one calendar (.tl-mo-*). Tap days to pick them; one day opens underneath;
   Mark free / Not free saves just those. The cells keep .tl-mitem bars for the job bars.
   ====================================================================== */
.tl-mo { --mo-free: color-mix(in srgb, var(--ok) 20%, var(--surface)); --mo-free-line: color-mix(in srgb, var(--ok) 55%, transparent); }
.tl-mo-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; margin: 24px 0 14px; }
.tl-mo-title h1 { margin: 0; font-size: clamp(30px, 6vw, 48px); line-height: 1; }
.tl-mo-status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 10px 0 0; color: var(--ink-soft); font-size: var(--fs-small); }
.tl-mo-status b { color: var(--ink); }
.tl-mo-chip { display: inline-flex; align-items: center; padding: 3px 10px; border: 1px solid var(--line-strong); border-radius: 999px; font: 500 12px/1.3 var(--font-mono); letter-spacing: .04em; text-decoration: none; color: var(--ink-soft); }
.tl-mo-chip.is-warn { border-color: color-mix(in srgb, var(--pending) 60%, transparent); color: var(--pending); }
.tl-mo-chip.is-review { border-color: var(--accent-line); color: var(--accent); }
.tl-mo-nav { display: flex; gap: 6px; }
.tl-mo-nav a:first-child svg { transform: rotate(90deg); }
.tl-mo-nav a:last-child svg { transform: rotate(-90deg); }
.tl-mo-start { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 0 0 14px; padding: 14px 16px; border: 1px solid var(--accent-line); background: var(--accent-soft); }
.tl-mo-start p { margin: 0; flex: 1 1 18em; }
.tl-mo-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; }
.tl-mo-hint { color: var(--ink-faint); font-size: 13px; margin-left: auto; }
.tl-mo-menu { position: relative; }
.tl-mo-menu > summary { list-style: none; cursor: pointer; }
.tl-mo-menu > summary::-webkit-details-marker { display: none; }
.tl-mo-menu-list { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; display: grid; gap: 2px; min-width: 240px; padding: 8px; margin: 0; list-style: none; background: var(--surface-2); border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.tl-mo-menu-list button { text-align: left; padding: 10px 10px; background: none; border: 0; color: var(--ink); font: inherit; cursor: pointer; }
.tl-mo-menu-list button:hover, .tl-mo-menu-list button:focus-visible { background: var(--accent-soft); }
.tl-mo-menu-list .tl-help { margin: 6px 4px 2px; font-size: 12px; }
.tl-mo-legend li { display: flex; align-items: center; gap: 10px; padding: 4px 4px; font-size: 13px; color: var(--ink-soft); }
.tl-mo-sw { flex: none; width: 22px; height: 12px; border: 1px solid var(--line-strong); }
.tl-mo-sw.is-free { background: var(--mo-free); border-color: var(--mo-free-line); }
.tl-mo-sw.is-offer { border: 1px dashed var(--pending); }
.tl-mo-sw.is-pencil { border: 1px solid var(--accent); }
.tl-mo-sw.is-booked { background: var(--accent); border-color: var(--accent); }
.tl-mo-sw.is-own { background: var(--surface-3); }
.tl-mo-sw.is-off { background: repeating-linear-gradient(135deg, var(--surface-3) 0 3px, transparent 3px 6px); }

.tl-mo-grid { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 4px; margin: 0 -4px; user-select: none; -webkit-user-select: none; }
.tl-mo-grid th { padding: 0 0 4px; font: 500 11px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); text-align: left; padding-left: 6px; }
.tl-mo-grid td { padding: 0; vertical-align: top; }
.tl-mo-day { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 3px; width: 100%; min-height: 92px; padding: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.tl-mo-day:hover { border-color: var(--line-strong); }
.tl-mo-day:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.tl-mo-day.is-free { background: var(--mo-free); border-color: var(--mo-free-line); }
.tl-mo-day.is-lock[data-lock="job"], .tl-mo-day.is-lock[data-lock="off"], .tl-mo-day.is-lock[data-lock="busy"] { background-image: repeating-linear-gradient(135deg, var(--line-soft) 0 4px, transparent 4px 9px); }
.tl-mo-day.is-out { opacity: .5; }
.tl-mo-day.is-past { opacity: .32; cursor: default; }
.tl-mo-num { font: 600 15px/1 var(--font-mono); color: var(--ink-soft); }
.tl-mo-day.is-today .tl-mo-num { align-self: flex-start; padding: 3px 5px; background: var(--accent); color: var(--accent-ink); }
.tl-mo-day.has-offer::after { content: ""; position: absolute; top: 7px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--pending); }
.tl-mo-day.is-picked { border-color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.tl-mo-day.is-picked::before { content: "✓"; position: absolute; bottom: 5px; right: 6px; font: 700 12px/1 var(--font-body); color: var(--ink); }
.tl-mo-bars { display: grid; gap: 3px; min-width: 0; }
.tl-mo-bars .tl-mitem { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 2px 5px; font: 500 11px/1.25 var(--font-body); border: 1px solid transparent; }
.tl-mo-bars .tl-mitem.is-booked { background: var(--accent); color: var(--accent-ink); }
.tl-mo-bars .tl-mitem.is-pencil { border-color: var(--accent); color: var(--accent); }
.tl-mo-bars .tl-mitem.is-pencil.is-2nd { border-style: dashed; }
.tl-mo-bars .tl-mitem.is-offer { border: 1px dashed var(--pending); color: var(--pending); }
.tl-mo-bars .tl-mitem.is-own { background: var(--surface-3); color: var(--ink-soft); }
.tl-mo-bars .tl-mitem.is-off, .tl-mo-bars .tl-mitem.is-busy { background: repeating-linear-gradient(135deg, var(--surface-3) 0 3px, transparent 3px 6px); color: var(--ink-soft); }
.tl-mo-more { font: 500 11px/1 var(--font-mono); color: var(--ink-faint); }
@media (max-width: 640px) {
	.tl-mo-grid { border-spacing: 3px; margin: 0 -3px; }
	.tl-mo-grid th span { display: none; }
	.tl-mo-day { min-height: 56px; padding: 4px; gap: 3px; }
	.tl-mo-num { font-size: 13px; }
	.tl-mo-bars .tl-mitem { height: 6px; padding: 0; font-size: 0; }
	.tl-mo-bars .tl-mitem.is-offer, .tl-mo-bars .tl-mitem.is-pencil { border-width: 2px; height: 6px; }
	.tl-mo-more { font-size: 9px; }
	.tl-mo-hint { display: none; }
	.tl-mo-day.is-picked::before { bottom: 3px; right: 4px; font-size: 10px; }
}

.tl-mo-panel { margin: 18px 0 0; }
.tl-mo-panel-title { margin: 0 0 8px; font-size: clamp(20px, 3vw, 26px); }
.tl-mo-daystatus { margin: 0 0 12px; color: var(--ink-soft); }
.tl-mo-daystatus.is-free { color: var(--ok); }
.tl-mo-subday { margin: 16px 0 8px; font: 500 12px/1.2 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.tl-mo-item { padding: 14px 16px; border: 1px solid var(--line); background: var(--surface); }
.tl-mo-item + .tl-mo-item { margin-top: 8px; }
.tl-mo-item.is-offer { border-color: color-mix(in srgb, var(--pending) 55%, transparent); }
.tl-mo-item-tag { margin: 0 0 6px; }
.tl-mo-item-title { margin: 0; font-size: 18px; }
.tl-mo-item-title a { color: var(--ink); text-decoration: none; }
.tl-mo-item .tl-meta { margin: 4px 0 0; }
.tl-mo-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 12px 0 0; }

.tl-mo-bar { position: fixed; z-index: 60; left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); bottom: calc(env(safe-area-inset-bottom, 0px) + 12px); display: grid; gap: 8px; padding: 10px 12px; background: var(--surface-2); border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.tl-mo-bar-top { display: flex; align-items: center; gap: 10px; }
.tl-mo-bar-top b { font: 600 15px/1 var(--font-body); }
.tl-mo-x { margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line-strong); background: none; color: var(--ink); font-size: 16px; cursor: pointer; }
.tl-mo-bar-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tl-mo-bar-acts .tl-btn { justify-content: center; }
.tl-mo-bar-acts .tl-btn[disabled] { opacity: .45; }
@media (max-width: 1023px) { body.tl-mo-picking .tl-tabbar { display: none; } }
@media (min-width: 1024px) { .tl-mo-bar { left: calc(var(--side-w) + 24px); right: 24px; max-width: 620px; margin: 0 auto; } }
.tl-mo-sheet { margin: 16px 0 0; display: grid; gap: 14px; }
.tl-mo-sheet .tl-form { display: grid; gap: 10px; }
.tl-mo-more-fields > summary { cursor: pointer; color: var(--ink-soft); font-size: var(--fs-small); }
.tl-mo-toast { position: fixed; z-index: 61; left: 16px; right: 16px; width: fit-content; margin-inline: auto; bottom: calc(env(safe-area-inset-bottom, 0px) + 140px); display: flex; align-items: center; gap: 12px; max-width: min(520px, calc(100vw - 32px)); padding: 10px 14px; background: var(--ink); color: var(--bg); font-size: var(--fs-small); box-shadow: var(--shadow); }
.tl-mo-toast .tl-btn { flex: none; background: var(--bg); color: var(--ink); border-color: var(--bg); }
body.tl-mo-picking .tl-mo { padding-bottom: 150px; }
@media (min-width: 1024px) { .tl-mo-toast { left: calc(var(--side-w) + 24px); right: 24px; bottom: 130px; } }
@media (prefers-reduced-motion: reduce) { .tl-mo * { transition: none !important; } }
.tl-mo-tools .tl-mo-nav { order: 9; margin-left: auto; }
.tl-mo-tools .tl-mo-hint { order: 5; margin-left: 4px; }

/* 5.0: house desk one calendar — job bars in cells, a picked run, tick-and-send. */
.tl-hcal5 .tl-hday-bars { display: grid; gap: 2px; margin-top: auto; min-width: 0; }
.tl-hbar { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 1px 4px; font: 500 10.5px/1.3 var(--font-body); border: 1px solid transparent; }
.tl-hbar.is-confirmed { background: var(--accent); color: var(--accent-ink); }
.tl-hbar.is-pencilled { border-color: var(--accent); color: var(--accent); }
.tl-hbar.is-requested { border: 1px dashed var(--pending); color: var(--pending); }
.tl-hbar-more { font: 500 10px/1 var(--font-mono); color: var(--ink-faint); }
.tl-hcal5 .tl-hday.is-sel > a { box-shadow: inset 0 0 0 2px var(--ink); }
.tl-hcal5 .tl-hday.is-tight .tl-hday-free b { color: var(--pending); }
.tl-hcal5 .tl-hday.is-dragging > a { background: var(--accent-soft); }
.tl-hcal5 .tl-hcal-grid.is-extending .tl-hday:not(.is-past) > a { outline: 1px dashed var(--accent-line); outline-offset: -3px; }
.tl-hcal-hint { margin: 10px 0 0; color: var(--accent); font-size: var(--fs-small); }
.tl-hl-n { font: 600 12px/1 var(--font-mono); color: var(--ok); margin-right: 4px; }
.tl-hrow-tick { flex: none; width: 22px; height: 22px; accent-color: var(--accent); }
.tl-hcal5 .tl-hrow label.tl-who-body { cursor: pointer; }
.tl-hrow-acts { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.tl-hrow-crew { flex-wrap: wrap; }
.tl-hcal-composer { position: sticky; bottom: 12px; display: grid; gap: 10px; margin: 12px 0 0; padding: 14px; background: var(--surface-2); border: 1px solid var(--accent-line); box-shadow: var(--shadow); }
.tl-hcal-roles, .tl-hcal-kind { display: flex; flex-wrap: wrap; gap: 6px; border: 0; padding: 0; margin: 0; }
.tl-hcal-roles legend { width: 100%; margin-bottom: 4px; }
.tl-chip-radio { position: relative; }
.tl-chip-radio input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.tl-chip-radio span { display: inline-block; padding: 7px 12px; border: 1px solid var(--line-strong); font-size: 13px; color: var(--ink-soft); cursor: pointer; }
.tl-chip-radio input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.tl-chip-radio input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 1023px) { .tl-hcal-composer { position: static; box-shadow: none; } .tl-hbar { font-size: 0; height: 5px; padding: 0; } .tl-hbar.is-requested, .tl-hbar.is-pencilled { border-width: 2px; } }
.tl-calswitch { margin: 0 0 12px; } .tl-calswitch a[aria-current="page"] { background: var(--accent); color: var(--accent-ink); }

/* 5.0: a booker's one calendar — the house calendar's month, their jobs as bars, needs-you marked. */
.tl-hbar.is-needs { background: var(--pending-soft); border-color: var(--pending-line); border-left: 3px solid var(--pending); color: var(--ink); }
.tl-hcal-legend .is-needs { background: var(--pending-soft); box-shadow: inset 3px 0 0 var(--pending); }
.tl-hday-due { display: inline-block; width: 6px; height: 6px; margin-left: 4px; border-radius: 50%; background: var(--pending); vertical-align: 2px; }
.tl-hcal-legend i.tl-hday-due { width: 6px; height: 6px; margin: 0; border-radius: 50%; }
.tl-pillx.is-late { background: var(--pending-soft); color: var(--pending); }
.tl-bcal-job { gap: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.tl-bcal-job:first-of-type { padding-top: 0; border-top: 0; }
.tl-bcal-jobhead { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.tl-bcal-jobhead > span:not(.tl-pillx) { display: grid; gap: 2px; min-width: 0; flex: 1; }
.tl-bcal-jobhead b { font: 600 16px/1.2 var(--font-heading); text-transform: uppercase; overflow-wrap: anywhere; }
.tl-bcal-jobhead span span { font-size: var(--fs-small); color: var(--ink-soft); }
.tl-bcal-jobhead:hover b { color: var(--accent); }
.tl-hbar-key { flex: none; width: 4px; align-self: stretch; min-height: 28px; background: var(--accent); }
.tl-hbar-key.is-pencilled { background: transparent; box-shadow: inset 0 0 0 1.5px var(--accent); }
.tl-hbar-key.is-requested { background: var(--pending); }
.tl-hbar-key.is-needs { background: var(--pending); }
.tl-hrow-crew.is-no { opacity: .85; }
.tl-hrow-said { display: block; margin-top: 2px; font-size: var(--fs-small); color: var(--ink-soft); font-style: italic; }
.tl-hrow-warn { display: block; margin-top: 2px; font-size: var(--fs-small); font-style: normal; color: var(--pending); }
.tl-hcal-foot { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.tl-hcal-foot .tl-btn { justify-content: center; }
.tl-hcal-foot .tl-help { margin: 0; }
/* Crew lines (house and booker): name and status on one line, the buttons under them, so neither gets squeezed. */
.tl-hrow-crew .tl-who-body { flex: 1 1 0; min-width: 0; }
.tl-hrow-crew .tl-hrow-acts { flex-basis: 100%; margin-left: 0; padding-left: 40px; }
.tl-hrow-due { display: block; margin-top: 2px; font-size: var(--fs-small); font-style: normal; color: var(--ink-soft); }
.tl-hrow-due.is-soon { color: var(--pending); }
.tl-hday.is-today .tl-hday-num, .tl-hday.is-today.is-weekend .tl-hday-num { color: var(--fill-ink); }
/* 5.0: a Save bar pinned to the bottom sits just above the phone dock, not under it. */
@media (max-width: 1023px) { body:has(.tl-tabbar) .tl-sticky-save { bottom: var(--dock-top); } }

/* 5.0.2 design pass (agents Q and R): house and booker calendars.
   Needs you is the loud mark and Awaiting reply the quiet one; 44px close; calm cells; key under the month. */
.tl-hcal5 .tl-hbar.is-needs { background: var(--pending); border: 1px solid var(--pending); color: var(--pending-ink); }
.tl-hcal-legend .is-needs { background: var(--pending); box-shadow: none; }
.tl-hcal5 .tl-hbar.is-requested { border: 1px dashed var(--ink-faint); color: var(--ink-soft); background: none; }
.tl-hcal-legend .is-requested { background: none; border: 1.5px dashed var(--ink-faint); box-sizing: border-box; }
.tl-hbar-key.is-requested { background: none; border-left: 2px dashed var(--ink-faint); }
@media (max-width: 1023px) { .tl-hcal5 .tl-hbar.is-needs { border-width: 2px; } .tl-hcal5 .tl-hbar.is-requested { border-width: 2px; } }
.tl-hcal-dayhead .tl-actions { flex-wrap: nowrap; gap: 8px; flex: none; }
.tl-hcal-x { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 16px; }
.tl-hcal-x:hover { border-color: var(--ink-faint); }
.tl-hcal-day { grid-template-columns: minmax(0, 1fr); }
.tl-hcal-foot .tl-btn { white-space: normal; text-align: center; }
.tl-hcal5 .tl-hday > a { justify-content: flex-start; }
.tl-hcal5 .tl-hday.is-tight .tl-hday-free b { color: var(--ink-faint); }
.tl-hcal5 .tl-hday.is-past > a { min-height: 0; }
.tl-hcal-month > .tl-hcal-legend { margin: 12px 0 0; font: 500 12px/1.3 var(--font-body); letter-spacing: 0; text-transform: none; color: var(--ink-soft); }
.tl-hcal-step { display: flex; gap: 8px; margin: 10px 0 0; }
.tl-hcal-step a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--ink-soft); text-decoration: none; font-size: var(--fs-small); white-space: nowrap; }
.tl-hcal5 [data-hcal-extend][aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
@media (pointer: coarse) { .tl-hcal-drag { display: none; } }
@media (min-width: 1024px) { .tl-hcal5 .tl-hbar[data-job] { cursor: pointer; } .tl-hcal5 .tl-hbar[data-job]:hover { outline: 1px solid var(--ink); } }
@media (max-width: 700px) {
	.tl-hcal5 .tl-hcal-bar { flex-wrap: nowrap; }
	.tl-hcal5 .tl-hcal-filter { flex: 1 1 auto; width: auto; min-width: 0; }
	.tl-hcal5 .tl-hrow:not(.tl-hrow-crew) { flex-wrap: nowrap; }
	.tl-hcal5 .tl-hrow-act { width: auto; padding-left: 0; }
	.tl-hcal5 .tl-hrow-act .tl-btn { flex: none; }
	.tl-bcal .tl-hday a { min-height: 52px; }
}
/* Crew lines: Confirm and Release side by side; arming one doesn't shove the other. */
.tl-hrow-crew .tl-hrow-acts { flex-wrap: nowrap; gap: 8px; }
.tl-hrow-crew .tl-hrow-acts .tl-btn { flex: 1 1 0; min-width: 0; white-space: normal; line-height: 1.2; text-align: center; justify-content: center; }
.tl-hrow-crew.is-no { opacity: 1; }
.tl-hrow-crew.is-no .tl-who-body > a b { color: var(--ink-soft); }
.tl-flash.is-toast { width: auto; }
/* Booker: month and arrows on one line; a calm note (not a warning) before search opens. */
.tl-bcal-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.tl-bcal-head h1 { margin: 0; font-size: clamp(28px, 3.6vw, 44px); }
.tl-bcal-head .tl-hcal-nav { margin-left: auto; }
.tl-callout.is-info { border-color: var(--line-strong); background: var(--surface); }
.tl-callout.is-info a { color: var(--accent); }

/* 5.0.2 design pass (agent P): the technician's calendar.
   Fill and Key open above the grid (the entrance animation gave each block its own stacking context). */
.tl-mo-tools { position: relative; z-index: 32; }
.tl-mo-count { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: none; border: 0; padding: 0; color: var(--ink); font: 600 15px/1.2 var(--font-body); text-align: left; cursor: pointer; }
.tl-mo-count u { color: var(--pending); text-underline-offset: 3px; }
.tl-mo-bar-top [data-mo-addbtn] { min-height: 44px; }
.tl-mo-panel, .tl-mo-panel > [data-mo-view], .tl-mo-sheet { scroll-margin-top: 112px; }
.tl-mo-off-first { width: 100%; justify-content: center; }
.tl-mo-item .tl-meta { font: 400 15px/1.45 var(--font-body); letter-spacing: 0; text-transform: none; color: var(--ink-soft); }
.tl-mo-key-note { color: var(--ink-soft); padding-top: 6px; border-top: 1px solid var(--line); }
/* The how-to line, on phones too, in the words for the device. */
.tl-mo-tools .tl-mo-hint { display: block; order: 20; flex-basis: 100%; margin: 2px 0 0; font-size: 14px; color: var(--ink-soft); }
@media (hover: hover) and (pointer: fine) { .tl-on-touch { display: none; } }
@media not ((hover: hover) and (pointer: fine)) { .tl-on-mouse { display: none; } }
@media (max-width: 640px) {
	/* Short names you can read instead of slivers of letters; weeks gone by take less room. */
	.tl-mo-bars .tl-mitem, .tl-mo-bars .tl-mitem.is-offer, .tl-mo-bars .tl-mitem.is-pencil { height: 14px; padding: 0 2px; font-size: 0; border-width: 1px; border-radius: 3px; }
	.tl-mo-bars .tl-mitem::before { content: attr(data-s); display: block; font: 600 10px/12px var(--font-body); letter-spacing: 0; text-transform: none; white-space: nowrap; overflow: hidden; }
	.tl-mo-grid tr.is-gone .tl-mo-day { min-height: 30px; }
}
/* Computers: the picked day sits beside the month, not below the fold. */
@media (min-width: 1100px) {
	.tl-mo-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 0 24px; align-items: start; }
	.tl-mo-body .tl-mo-grid { margin: 0; }
	.tl-mo-side { position: sticky; top: 120px; max-height: calc(100vh - 140px); overflow-y: auto; padding-bottom: 140px; }
	.tl-mo-side .tl-mo-panel { margin: 0; }
	.tl-mo-side .tl-agenda a { grid-template-columns: minmax(0, 1fr) auto; }
	.tl-mo-side .tl-agenda-when { grid-column: 1 / -1; }
	.tl-mo-day { min-height: 84px; }
	.tl-mo-bar { left: auto; right: 32px; width: 340px; max-width: none; margin: 0; }
	.tl-mo-toast { right: 388px; }
}

/* =====================================================================================
   5.0.3 (8 Nov): nothing pokes out of its box on a phone.
   A screenshot from a phone: on the front page, the booker card's button set the width of the card's
   only column, so the heading and the button ran past the card's edge. A sweep of every page,
   as every kind of account, at 360 and 390px wide found the same thing in a dozen places.
   Two causes, fixed at the root:
   1. A grid with no columns set grows to fit its widest unbreakable content. Give those
      grids one column that is allowed to shrink: minmax(0, 1fr).
   2. Buttons never wrap their label. On phones they now may (a long label goes onto two
      lines instead of pushing out of its card); short labels look exactly as before. */
.tl-bookers-band, .tl-mo-bar, .tl-rost, .tl-jobs { grid-template-columns: minmax(0, 1fr); }
/* By job: "Crane tech: …" lines sat flush against the card's edge — same inset as the buttons below them. */
.tl-job > .tl-job-roles { margin: 0; padding: 14px 20px 0; }
@media (min-width: 860px) { .tl-bookers-band { grid-template-columns: minmax(0, 1fr) auto; } }
@media (max-width: 640px) {
	.tl-btn { white-space: normal; text-align: center; line-height: 1.25; max-width: 100%; }
	/* Two- and three-way switches (Crane tech · Remote head tech · Other): share the width, wrap a long label. */
	.tl-segmented label { flex: 1 1 auto; min-width: 0; white-space: normal; line-height: 1.2; padding-block: 6px; }
	/* A job's crew table: the status wraps ("Awaiting / reply") rather than hiding off the edge. */
	.tl-job-table .tl-status { white-space: normal; align-items: baseline; }
	.tl-job-table .tl-status::before { flex: none; }
	/* From / To buttons side by side: a little less padding so "Pick a date" and "19 Nov 2026" fit whole. */
	.tl-date-btn { padding: 0 10px; gap: 6px; }
	/* A day's panel (house desk, booker): More days drops under the heading instead of hanging off the card. */
	.tl-hcal-dayhead { flex-wrap: wrap; }
	.tl-hcal-dayhead > div:first-child { flex: 1 1 190px; min-width: 0; }
	.tl-hcal-dayhead .tl-actions { margin-left: auto; }
	/* Long links and addresses in code style (Stats → sign-up links) break instead of widening the page. */
	code, .tl-help code, .tl-prose code, p code { white-space: normal; overflow-wrap: anywhere; }
}
/* The two date buttons (from / to) share the row evenly; a long date shortens with … rather than widening it. */
.tl-date-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tl-date-row > .tl-field { grid-template-columns: minmax(0, 1fr); }
.tl-date-btn span { min-width: 0; }

/* =====================================================================
   5.0.9 — the floating message's ✕. It was placed against the outer
   wrapper, so on phones it landed on the message box's corner, half over
   its border. It now sits inside the box, top right, with a full 44px
   tap target, and the text keeps clear of it.
   ===================================================================== */
.tl-flash.is-toast { padding-right: var(--gutter, 16px); }
.tl-flash.is-toast .tl-notice { position: relative; padding-right: 52px; }
.tl-flash.is-toast .tl-toast-close { display: grid; place-items: center; top: 4px; right: 4px; width: 44px; height: 44px; padding: 0; border-radius: 8px; font-size: 24px; }
.tl-flash.is-toast .tl-toast-close:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.tl-flash.is-toast .tl-toast-close:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

/* 5.0.9 — "Latest on your jobs" on a tech's Inbox: what the booker or house did this week. */
.tl-dash-news { margin-bottom: 16px; }
.tl-news li.is-booked .tl-up-date { border-color: color-mix(in srgb, var(--fill) 60%, var(--line-strong)); }
.tl-news .tl-up-body > span { line-height: 1.45; }
.tl-news .tl-up-body > span > .tl-faint { white-space: nowrap; }
.tl-pillx.is-gone { background: var(--surface-2); color: var(--ink-soft); }
.tl-pillx.is-cancel { background: color-mix(in srgb, var(--danger) 18%, transparent); color: var(--danger); }

/* 5.0.9 — the calendar's "Marked 4 days free · Undo" now looks like every other message on the
   site (rounded, dark, green edge; red when something didn't save). It was a white slab with a
   black button. Its place on screen is unchanged: just above the Mark-free bar. */
.tl-mo-toast { border-radius: 12px; border: 1px solid var(--ok-line); background: color-mix(in srgb, var(--ok) 7%, var(--surface)); color: var(--ink); font-size: inherit; padding: 8px 8px 8px 18px; box-shadow: 0 8px 28px rgba(0, 0, 0, .35); }
.tl-mo-toast.is-error { border-color: color-mix(in srgb, var(--danger) 55%, transparent); background: color-mix(in srgb, var(--danger) 8%, var(--surface-2)); }
.tl-mo-toast .tl-btn { background: transparent; color: var(--ink); border-color: var(--line-strong); min-height: 44px; }
.tl-mo-toast .tl-btn:hover { border-color: var(--ink-faint); }


/* 5.0.10 — the details list (a booking's "The job"; also the mod and system pages). Its label column
   took the width of the longest label, so on a phone "Your note when cancelling" squeezed the answers
   into a sliver and broke words mid-way ("Manch / ester"). Labels now sit above their answers on
   phones, never take more than two fifths of the row on bigger screens, and words only break when
   one is too long for the whole line. */
.tl-kv { grid-template-columns: fit-content(40%) minmax(0, 1fr); }
.tl-kv dd { word-break: normal; overflow-wrap: break-word; min-width: 0; }
@media (max-width: 640px) {
	.tl-kv { grid-template-columns: minmax(0, 1fr); gap: 4px; }
	.tl-kv dt { padding-top: 0; }
	.tl-kv dd + dt { margin-top: 14px; }
}

/* 5.0.11 — turning a sign-up down for now or for good. */
.tl-reject-kind { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.tl-reject-kind .tl-check span { font-size: 14px; color: var(--ink-soft); }
.tl-reject-kind .tl-check b { color: var(--ink); font-weight: 600; }
.tl-before { margin: 10px 0 0; }
.tl-before p { margin: 0; }
.tl-before ul { margin: 6px 0 0; padding-left: 18px; font-size: 14px; color: var(--ink-soft); }
.tl-bans { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.tl-bans li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 10px 0; border-top: 1px solid var(--line-soft); font-size: 14px; color: var(--ink-soft); }
/* 5.0.11 — on a wide screen the Reject… panel opened under the cards below it. Each big block on the
   moderation pages rises in as the page loads, and that gives it its own layer, so a pop-out inside one
   could only sit on top within its own block. The block with an open pop-out now comes forward. */
.tl-mod-main > :has(details[open]) { position: relative; z-index: 40; }

/* 5.0.12 — the admin's Inbox: what people have sent (ideas and feedback, visitors' questions, kit and house suggestions). */
.tl-dash-people { margin-bottom: 20px; }
.tl-dash-people.is-waiting { border-color: var(--pending-line, color-mix(in srgb, var(--pending) 45%, transparent)); }
.tl-people { list-style: none; margin: 4px 0 0; padding: 0; }
.tl-people li + li { border-top: 1px solid var(--line-soft); }
.tl-people a { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 4px 12px; align-items: baseline; padding: 12px 0; color: var(--ink); text-decoration: none; }
.tl-people a:hover .tl-people-text { color: var(--accent-hover); }
.tl-people .tl-pillx { grid-row: span 2; align-self: start; justify-self: start; margin-top: 2px; }
.tl-people-text { min-width: 0; overflow-wrap: break-word; }
.tl-people .tl-faint { grid-column: 2; font-size: 14px; }
.tl-people-more { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 12px 0 0; }
@media (max-width: 640px) {
	.tl-people a { grid-template-columns: minmax(0, 1fr); gap: 6px; }
	.tl-people .tl-pillx { grid-row: auto; justify-self: start; margin: 0; }
	.tl-people .tl-faint { grid-column: 1; }
}

/* 5.0.14 — jobs of their own: made first, then crewed. A job with nobody on it yet is a quiet grey bar;
   a new one is made in the calendar's day panel; the Jobs page is one list. */
.tl-hcal5 .tl-hbar.is-empty { background: color-mix(in srgb, var(--ink) 9%, transparent); border-color: transparent; color: var(--ink-soft); }
.tl-hcal-legend .is-empty { background: color-mix(in srgb, var(--ink) 16%, transparent); }
.tl-hbar-key.is-empty { background: color-mix(in srgb, var(--ink) 18%, transparent); }
.tl-hbar-key.is-done { background: color-mix(in srgb, var(--ink) 28%, transparent); }
.tl-newjob { display: grid; gap: 10px; }
.tl-newjob-form { display: grid; gap: 12px; }
.tl-newjob-form .tl-field { margin: 0; }
.tl-newjob-go { display: grid; gap: 8px; }
.tl-newjob-go .tl-btn { justify-content: center; }
.tl-newjob-go .tl-help { margin: 0; }
.tl-newjob.is-toggle > summary { list-style: none; cursor: pointer; justify-content: center; }
.tl-newjob.is-toggle > summary::-webkit-details-marker { display: none; }
.tl-newjob.is-toggle[open] > summary { display: none; }
.tl-newjob.is-toggle[open] { padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); }
.tl-newjob-empty { margin: 0; }
.tl-jobfoot { gap: 10px; }
.tl-jobfoot-add { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.tl-jobfoot-more { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; font-size: var(--fs-small); }
.tl-jobfoot-more:empty { display: none; }
.tl-jobfoot-more a { display: inline-flex; align-items: center; gap: 6px; }
.tl-bk-jobopen { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: var(--fs-small); }
.tl-job-mini a.tl-job-mini-head { margin: 0 -8px 6px; padding: 4px 8px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 10px; }
.tl-job-mini a.tl-job-mini-head:hover b { color: var(--accent); }
.tl-job-mini-empty { margin: 0; }
.tl-job-mini .tl-job-mini-empty a { display: inline; padding: 0; margin: 0; color: var(--accent); text-decoration: underline; }
.tl-joblist { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 8px; }
.tl-jobrow { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); text-decoration: none; }
.tl-jobrow:hover { border-color: color-mix(in srgb, var(--ink) 30%, transparent); color: var(--ink); }
.tl-jobrow:hover b { color: var(--accent); }
.tl-jobrow .tl-hbar-key { min-height: 44px; }
.tl-jobrow-body { display: grid; gap: 4px; min-width: 0; flex: 1; }
.tl-jobrow-body b { font: 600 18px/1.2 var(--font-heading); text-transform: uppercase; overflow-wrap: anywhere; }
.tl-jobrow-when { font-size: var(--fs-small); color: var(--ink-soft); }
.tl-jobrow-crew { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; }
.tl-jobrow-crew small { font-size: 12px; color: var(--ink-faint); }
.tl-jobrow-crew em { font-style: normal; color: var(--ink-faint); }
.tl-jobrow-why { font-size: 14px; color: var(--pending-text, var(--ink)); }
.tl-jobrow.is-done { background: none; }
.tl-jobrow.is-done b { color: var(--ink-soft); }
.tl-joblist-past > summary { cursor: pointer; margin-bottom: 10px; }
.tl-jobform .tl-framed { display: grid; gap: 14px; }
.tl-jobform .tl-framed .tl-field { margin: 0; }
@media (max-width: 640px) {
	.tl-jobrow { padding: 12px; gap: 10px; align-items: flex-start; }
	.tl-jobrow > .tl-icon { display: none; }
	.tl-jobrow .tl-pillx { align-self: flex-start; }
	.tl-jobfoot-add { grid-template-columns: minmax(0, 1fr); }
}
/* 5.0.14 — the date picker opening near the bottom of a page scrolled its Done button under the phone's tab
   bar (tapping it hit Me and left the form). It now stops clear of the bar. */
@media (max-width: 1023px) { .tl-shell .tl-pop { scroll-margin-bottom: calc(104px + env(safe-area-inset-bottom)); } }
.tl-job-mini-new { margin: 12px 0 0; }
.tl-job-stretch { margin: 0; padding: 8px 10px; border-left: 3px solid var(--pending); background: var(--pending-soft, color-mix(in srgb, var(--pending) 12%, transparent)); color: var(--ink); }
.tl-crew-next .tl-btn.is-current { cursor: default; }
/* On a phone the day's bars are thin strips: a job with no crew yet needs to show up too. */
@media (max-width: 1023px) { .tl-hcal5 .tl-hbar.is-empty { background: color-mix(in srgb, var(--ink) 38%, transparent); border-color: transparent; } }

/* 5.0.15: the pages people land on from Google — hubs, kit families, where a tech is based. */
.tl-kit-where { font-size: 13px; color: var(--ink-soft, var(--ink)); }
.tl-kit-family { margin: 10px 0 0; }
.tl-kit-family a { display: inline-flex; align-items: center; gap: 6px; }
.tl-hub-count { margin-top: 10px; color: var(--ink-faint); }
.tl-hub-count b { font: 600 22px/1 var(--font-heading); color: var(--accent); margin-right: 4px; }
.tl-hub .tl-block + .tl-block { margin-top: 32px; }
.tl-hub-steps { margin: 0 0 12px; padding-left: 22px; display: grid; gap: 10px; }
.tl-hub-steps b { color: var(--ink); }
.tl-hub-links { display: grid; gap: 1px; grid-template-columns: 1fr; margin: 0 0 18px; padding: 0; list-style: none; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
@media (min-width: 640px) { .tl-hub-links { grid-template-columns: repeat(2, 1fr); } }
.tl-hub-links li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tl-hub-links a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px; color: var(--ink); text-decoration: none; font: 600 20px/1.1 var(--font-heading); text-transform: uppercase; }
.tl-hub-links a:hover { background: var(--surface); color: var(--accent-hover); }
.tl-hub-links b { font: 600 22px/1 var(--font-heading); color: var(--accent); }
.tl-contact-reveal { margin: 0 0 8px; }
.tl-google-ask .tl-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
