/* RGST Coach (S10i): the athlete app's sea-glass design language (portal.css: the same tokens, spacing, radii, glass
   cards, buttons, chips, segmented tabs, fields and banners), always in its LIGHT scheme (ground #EAF1F4), the opposite of
   the athlete app's dark default. Mobile first, one-handed, big tap targets; every colour is a variable. Text and buttons
   meet WCAG AA on these surfaces (body text #0a1628 on white about 17:1, secondary text 8:1, labels 5:1, white on the
   sea-glass accent #0b7f99 4.8:1, white on the attendance state colours 5.6:1 or more). */

@font-face {
	font-family: "Figtree";
	src: url("/assets/sailing_team_management/portal/fonts/Figtree-Variable.woff2") format("woff2");
	font-weight: 300 900;
	font-display: swap; /* offline before it was ever fetched: the system font below */
}

:root {
	color-scheme: light;
	/* the portal's light tokens */
	--ground: #eaf1f4;
	--blob-a: rgba(0, 194, 224, 0.28);
	--blob-b: rgba(124, 150, 255, 0.22);
	--text: #0a1628;
	--text-2: #3f4f63;
	--text-3: #4a5a6e;
	--label: #5a6a7d;
	--card-bg: linear-gradient(150deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.5) 55%, rgba(255, 255, 255, 0.62) 100%);
	--card-filter: blur(26px) saturate(1.8);
	--card-border: 1px solid rgba(255, 255, 255, 0.95);
	--card-shadow: 0 10px 32px rgba(10, 22, 40, 0.08), 0 1px 2px rgba(10, 22, 40, 0.04), inset 0 1.5px 0 rgba(255, 255, 255, 1),
		inset 0 -1px 0 rgba(255, 255, 255, 0.45), inset 0 0 18px rgba(255, 255, 255, 0.35);
	--nav-bg: linear-gradient(150deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.58));
	--nav-filter: blur(28px) saturate(1.9);
	--nav-border: 1px solid rgba(255, 255, 255, 0.95);
	--nav-shadow: 0 12px 34px rgba(10, 22, 40, 0.14), inset 0 1.5px 0 rgba(255, 255, 255, 1), inset 0 -1px 0 rgba(255, 255, 255, 0.45),
		inset 0 0 18px rgba(255, 255, 255, 0.35);
	--btn-bg: #f6fafb;
	--btn-border: rgba(10, 22, 40, 0.12);
	--btn-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 1px 2px rgba(10, 22, 40, 0.05);
	--btn-text: #0a1628;
	--sel-bg: #0b7f99;
	--sel-border: #09708a;
	--sel-text: #ffffff;
	--sel-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 3px 8px rgba(11, 127, 153, 0.22);
	--chip-sel-bg: #cff0f6;
	--chip-sel-border: rgba(11, 127, 153, 0.6);
	--chip-sel-text: #0a5a6e;
	--tint: rgba(214, 243, 249, 0.72);
	--amber-bg: rgba(255, 176, 32, 0.26);
	--amber-text: #6b3f00;
	--seg: rgba(10, 22, 40, 0.1);
	--focus: #0b7f99;
	--danger: #b42318;
	--danger-bg: rgba(180, 35, 24, 0.12);
	--ok-bg: rgba(17, 103, 43, 0.12);
	--ok-text: #11672b;
	--tab-track: rgba(10, 22, 40, 0.06);
	--tab-sel: #ffffff;
	--tab-sel-shadow: 0 1px 3px rgba(10, 22, 40, 0.12);
	/* attendance states (filled when chosen; white text on each is AA) */
	--present: #11672b;
	--late: #8a5a00;
	--absent: #a1261b;
	--excused: #3d4a7a;
	--tap: 48px;
}

* {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	min-height: 100%;
	background: var(--ground);
	color: var(--text);
	font-family: Figtree, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 17px;
	line-height: 1.45;
	overflow-x: hidden;
	-webkit-text-size-adjust: 100%;
	-webkit-font-smoothing: antialiased;
}

body {
	padding: env(safe-area-inset-top) env(safe-area-inset-right) 0 env(safe-area-inset-left);
}

/* the two fixed blurred blobs behind the glass (the portal's .blob-a / .blob-b, here without extra markup) */
body::before,
body::after {
	content: "";
	position: fixed;
	z-index: 0;
	border-radius: 50%;
	pointer-events: none;
}

body::before {
	top: -80px;
	right: -80px;
	width: 300px;
	height: 300px;
	background: var(--blob-a);
	filter: blur(60px);
}

body::after {
	top: 40%;
	left: -110px;
	width: 320px;
	height: 320px;
	background: var(--blob-b);
	filter: blur(70px);
}

#app {
	position: relative;
	z-index: 1;
	max-width: 720px;
	margin: 0 auto;
	padding: 12px 16px 96px;
	/* QA4, the same bottom-space rule as the portal: the measured height of the fixed save bar (app.js
	   syncBottomSpace) plus a margin; the save bar's own padding holds the safe area */
	padding-bottom: calc(var(--bar-space, 96px) + 16px + env(safe-area-inset-bottom));
}

a {
	color: inherit;
}

:focus-visible {
	outline: 3px solid var(--focus);
	outline-offset: 2px;
	border-radius: 10px;
}

/* ---- type --------------------------------------------------------------------------------------------------- */

h1 {
	margin: 0;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.15;
}

h2 {
	margin: 22px 0 10px;
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -0.01em;
	overflow-wrap: anywhere;
}

h3 {
	margin: 18px 0 8px;
	font-size: 17px;
	font-weight: 650;
}

h4 {
	margin: 12px 0 4px;
	font-size: 15px;
	font-weight: 650;
}

p {
	overflow-wrap: anywhere;
}

.muted {
	color: var(--text-3);
}

.error {
	color: var(--danger);
	font-weight: 600;
}

.notice {
	color: var(--ok-text);
	font-weight: 600;
}

hr {
	border: none;
	border-top: 1px solid var(--seg);
	margin: 24px 0;
}

/* ---- glass surfaces ------------------------------------------------------------------------------------------ */

.top,
.panel,
.row,
.list,
.result,
.auth {
	background: var(--card-bg);
	-webkit-backdrop-filter: var(--card-filter);
	backdrop-filter: var(--card-filter);
	border: var(--card-border);
	box-shadow: var(--card-shadow);
}

/* the header: a floating glass bar with the title and the segmented screen tabs */
.top {
	position: sticky;
	top: calc(8px + env(safe-area-inset-top));
	z-index: 2;
	padding: 12px 12px 10px;
	border-radius: 22px;
	background: var(--nav-bg);
	-webkit-backdrop-filter: var(--nav-filter);
	backdrop-filter: var(--nav-filter);
	border: var(--nav-border);
	box-shadow: var(--nav-shadow);
}

.top h1 {
	padding: 2px 6px 0;
}

/* ---- buttons ------------------------------------------------------------------------------------------------- */

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

button {
	min-height: var(--tap);
	padding: 10px 18px;
	border-radius: 16px;
	border: 1px solid var(--btn-border);
	background: var(--btn-bg);
	color: var(--btn-text);
	box-shadow: var(--btn-shadow);
	font-weight: 600;
	cursor: pointer;
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
}

button:disabled {
	opacity: 0.5;
	cursor: default;
}

.primary,
button[aria-pressed="true"] {
	background: var(--sel-bg);
	border-color: var(--sel-border);
	color: var(--sel-text);
	box-shadow: var(--sel-shadow);
	font-weight: 700;
}

.secondary {
	background: var(--btn-bg);
	border-color: var(--btn-border);
	color: var(--btn-text);
}

.danger {
	color: var(--danger);
	border-color: rgba(180, 35, 24, 0.35);
}

.wide {
	width: 100%;
	margin: 8px 0;
}

.link {
	min-height: 44px;
	border: none;
	background: none;
	box-shadow: none;
	text-decoration: underline;
	font-weight: 700;
	padding: 4px 6px;
	color: var(--chip-sel-text);
}

.mini {
	min-height: 44px; /* L1c: the chips and small buttons are real tap targets */
	padding: 6px 12px;
	border-radius: 12px;
	font-size: 15px;
}

.mini.on {
	background: var(--chip-sel-bg);
	border-color: var(--chip-sel-border);
	color: var(--chip-sel-text);
	font-weight: 700;
}

.buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 10px 0;
}

/* L1c: a button label never wraps (a row of buttons wraps onto the next line instead); ellipsis only as a last resort */
.buttons > button {
	flex: 1 1 auto;
	min-width: 0;
	max-width: 100%;
	padding-left: 14px;
	padding-right: 14px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ---- banners and statuses ------------------------------------------------------------------------------------ */

.banners {
	margin-top: 10px;
}

.banner {
	margin: 8px 0;
	padding: 10px 14px;
	border-radius: 14px;
	background: var(--tint);
	font-weight: 500;
	overflow-wrap: anywhere;
}

.banner.warn,
.banner.pending {
	background: var(--amber-bg);
	color: var(--amber-text);
}

.banner.danger {
	background: var(--danger-bg);
	color: var(--danger);
	border: 0;
}

.banner.info {
	background: var(--tint);
}

.banner.muted {
	background: var(--tab-track);
	color: var(--text-2);
}

.status {
	padding: 10px 14px;
	border-radius: 14px;
	font-weight: 600;
}

.status.server {
	background: var(--ok-bg);
	color: var(--ok-text);
}

.status.phone,
.status.draft {
	background: var(--amber-bg);
	color: var(--amber-text);
}

.status.failed {
	background: var(--danger-bg);
	color: var(--danger);
}

/* ---- chips and counts ---------------------------------------------------------------------------------------- */

.chip,
.count {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	padding: 4px 12px;
	border-radius: 999px;
	border: 1px solid transparent;
	font-size: 13px;
	font-weight: 600;
	background: var(--tab-track);
	color: var(--text-2);
}

.chip.ok {
	background: var(--ok-bg);
	color: var(--ok-text);
}

.chip.warn {
	background: var(--amber-bg);
	color: var(--amber-text);
}

.chip.new {
	background: var(--chip-sel-bg);
	border-color: var(--chip-sel-border);
	color: var(--chip-sel-text);
}

.summary {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 12px 0;
}

.count {
	font-size: 14px;
	background: rgba(255, 255, 255, 0.7);
	border-color: var(--btn-border);
}

.count.present {
	color: var(--present);
}

.count.late {
	color: var(--late);
}

.count.absent {
	color: var(--absent);
}

.count.excused {
	color: var(--excused);
}

/* ---- fields -------------------------------------------------------------------------------------------------- */

.field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 14px 0;
}

.field > span {
	font-size: 14px;
	font-weight: 600;
	color: var(--text-2);
}

input,
select,
textarea {
	width: 100%;
	min-height: var(--tap);
	padding: 10px 14px;
	border-radius: 14px;
	border: 1px solid var(--btn-border);
	background: var(--btn-bg);
	box-shadow: var(--btn-shadow);
	color: var(--text);
	font-size: 17px; /* 16px or more: no zoom on focus in iOS */
}

textarea {
	min-height: 96px;
}

input[type="checkbox"],
input[type="radio"] {
	accent-color: var(--sel-bg);
	box-shadow: none;
}

.check {
	display: flex;
	gap: 12px;
	align-items: center;
	margin: 12px 0;
	min-height: var(--tap);
}

/* L1c: the checkbox is a 44px tap target (its drawn box stays 26px) */
.check input {
	-webkit-appearance: none;
	appearance: none;
	position: relative;
	width: 44px;
	min-height: 44px;
	height: 44px;
	flex: none;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
}

.check input::before {
	content: "";
	position: absolute;
	inset: 9px;
	border-radius: 8px;
	border: 2px solid rgba(10, 22, 40, 0.45);
	background: #ffffff;
}

.check input:checked::before {
	background: var(--sel-bg);
	border-color: var(--sel-border);
}

.check input:checked::after {
	content: "";
	position: absolute;
	left: 17px;
	top: 11px;
	width: 9px;
	height: 16px;
	border: solid #ffffff;
	border-width: 0 3px 3px 0;
	transform: rotate(45deg);
}

.check.disabled {
	opacity: 0.5;
}

/* ---- cards: panels, attendance rows, lists ------------------------------------------------------------------- */

.panel {
	margin: 12px 0;
	padding: 16px;
	border-radius: 22px;
}

.panel.warn {
	background: var(--amber-bg);
	color: var(--amber-text);
}

.rows,
.list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.row {
	margin: 12px 0;
	padding: 14px 14px 12px;
	border-radius: 22px;
}

.row.marked {
	opacity: 0.92;
}

.row-head {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin-bottom: 10px;
}

.name {
	font-weight: 700;
	overflow-wrap: anywhere;
}

.list {
	margin: 8px 0 14px;
	padding: 2px 16px;
	border-radius: 22px;
}

.list li {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	padding: 12px 0;
	border-bottom: 1px solid var(--seg);
}

.list li:last-child {
	border-bottom: 0;
}

.results {
	display: grid;
	gap: 8px;
	margin: 10px 0;
}

.result {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	width: 100%;
	text-align: left;
	border-radius: 18px;
	color: var(--text);
}

/* attendance state buttons: outlined, filled with the state's colour when chosen */
.states {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 6px;
}

.state {
	padding: 6px 2px;
	border-radius: 14px;
	font-size: 15px;
	font-weight: 600;
	overflow-wrap: anywhere;
}

.state.present.on,
.state.late.on,
.state.absent.on,
.state.excused.on {
	color: #ffffff;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 3px 8px rgba(10, 22, 40, 0.18);
}

.state.present.on {
	background: var(--present);
	border-color: var(--present);
}

.state.late.on {
	background: var(--late);
	border-color: var(--late);
}

.state.absent.on {
	background: var(--absent);
	border-color: var(--absent);
}

.state.excused.on {
	background: var(--excused);
	border-color: var(--excused);
}

.billing {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 6px;
	margin-top: 10px;
}

.row-tools {
	display: flex;
	gap: 8px;
	margin-top: 10px;
}

.row-tools .note {
	flex: 1;
	min-width: 0;
}

/* ---- save bar: a floating glass bar like the portal's bottom nav ---------------------------------------------- */

.savebar {
	position: fixed;
	z-index: 3;
	left: calc(12px + env(safe-area-inset-left));
	right: calc(12px + env(safe-area-inset-right));
	bottom: calc(94px + env(safe-area-inset-bottom)); /* L1: above the floating bottom bar */
	max-width: 696px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 8px;
	padding: 8px;
	border-radius: 26px;
	background: var(--nav-bg);
	-webkit-backdrop-filter: var(--nav-filter);
	backdrop-filter: var(--nav-filter);
	border: var(--nav-border);
	box-shadow: var(--nav-shadow);
}

/* ---- S9d: debrief form ---------------------------------------------------------------------------------------- */

.panel.debrief h3 {
	margin: 0 0 10px;
}

.factor {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 12px 0;
}

.factor small {
	font-size: 0.8em;
	color: var(--text-3);
}

.scores {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.scores .mini {
	min-width: 44px;
}

/* ---- the "Planned" summary (who's coming) --------------------------------------------------------------------- */

.planned {
	margin: 10px 0;
}

.planned-group ul {
	margin: 0;
	padding-left: 18px;
}

.planned-group li {
	margin: 4px 0;
}

.planned-group .chip {
	margin-left: 6px;
}

/* ---- R1: receipts (capture flow and queue) -------------------------------------------------------------------- */

.hidden-input {
	display: none;
}

.thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 10px 0;
	padding: 0;
	list-style: none;
}

.thumbs li {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
}

.thumbs img {
	width: 88px;
	height: 88px;
	object-fit: cover;
	border-radius: 14px;
	border: var(--card-border);
	box-shadow: var(--card-shadow);
}

.picker {
	margin: 8px 0;
}

.receipts textarea,
.receipts input[type="search"] {
	width: 100%;
}

/* ---- S10s: the app's own sign-in and wrong-account screens (app.js renderGate) -------------------------------- */

.auth {
	max-width: 420px;
	margin: max(24px, 8vh) auto 24px;
	padding: 28px 22px 22px;
	border-radius: 22px;
}

.auth-brand {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
}

.auth-brand img {
	width: 64px;
	height: 64px;
	border-radius: 16px;
	box-shadow: 0 3px 10px rgba(10, 22, 40, 0.12);
}

.auth-brand h1 {
	font-size: 24px;
}

.auth-form {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.auth-form h2 {
	margin: 4px 0 6px;
	font-size: 26px;
	letter-spacing: -0.02em;
}

.auth-form .primary {
	min-height: 50px;
}

.auth-password {
	display: flex;
	gap: 8px;
}

.auth-password input {
	flex: 1;
	min-width: 0;
}

.auth-password button {
	flex: none;
	min-width: 84px;
}

/* EM4: "Forgot password?" and its form under the sign-in form */
.auth-link {
	align-self: center;
}

.auth-forgot {
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px solid var(--seg);
}

.auth-forgot h2 {
	font-size: 20px;
}

.auth-sent {
	margin: 0;
	font-weight: 600;
}

.sign-out .error {
	margin-bottom: 8px;
}

.auth-lang {
	justify-content: center;
	margin-top: 18px;
}

.auth-lang > button {
	flex: 0 1 140px;
}

/* ---- M1: Programs, Athletes and More (admin.js): list + detail ------------------------------------------------- */

.adm > input[type="search"] {
	margin: 4px 0 10px;
}

.adm-chips {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding: 2px 2px 10px;
	scrollbar-width: none;
}

.adm-chip {
	flex: none;
	border-radius: 999px;
	white-space: nowrap;
}

.adm-list {
	padding: 4px 8px;
}

.adm-list li {
	padding: 4px 0;
}

.adm-item {
	gap: 4px;
	padding: 12px 10px;
	border: 0;
	background: transparent;
	box-shadow: none;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

.adm-item .chip {
	margin-top: 2px;
}

.adm-empty {
	margin: 18px 4px;
}

.adm-saved {
	font-size: 14px;
}

.adm-back {
	margin: 8px 0 0;
	padding-left: 0;
	text-decoration: none;
}

.adm-fields {
	display: grid;
	gap: 10px;
}

.adm-field {
	display: grid;
	grid-template-columns: minmax(110px, 38%) 1fr;
	gap: 10px;
	align-items: baseline;
}

.adm-label {
	font-size: 14px;
	font-weight: 600;
	color: var(--label);
}

/* ---- M2: forms (forms.js), drafts, actions ------------------------------------------------------------------------ */

.adm-new {
	margin: 4px 0 12px;
}

.adm-action {
	flex: 1 1 160px;
}

.fm .field {
	margin: 12px 0;
}

.fm-error {
	font-size: 14px;
}

.fm-picked {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	min-height: var(--tap);
	padding: 6px 12px;
	border-radius: 14px;
	border: 1px solid var(--btn-border);
	background: var(--btn-bg);
}

.fm-picked .name,
.fm-picked .muted {
	flex: 1 1 140px;
}

.fm-row {
	padding: 10px 12px;
	border-radius: 18px;
}

.fm-row .field {
	margin: 4px 0 8px;
}

.fm-bar {
	grid-template-columns: 1fr 2fr;
}

.fm-bar-main {
	display: flex;
	gap: 8px;
}

.fm-bar-main > button {
	flex: 1 1 0;
	min-width: 0;
}

.drf-item {
	flex-direction: column;
	align-items: stretch !important;
}

.drf-item .buttons {
	margin: 4px 0 0;
}

.drf-item .buttons > button {
	flex: 1 1 80px;
}

/* ---- larger screens ------------------------------------------------------------------------------------------- */

@media (min-width: 768px) {
	#app {
		max-width: 760px;
		padding-left: 24px;
		padding-right: 24px;
	}

	.top {
		top: 16px;
		padding: 14px 16px 12px;
	}

	h1 {
		font-size: 24px;
	}

	.savebar {
		max-width: 712px;
	}
}

@media (min-width: 1024px) {
	#app {
		max-width: 860px;
	}

	.savebar {
		max-width: 812px;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		scroll-behavior: auto !important;
		transition: none !important;
		animation: none !important;
	}
}

/* M3b: a stay's nights grid (people rows by night columns; scrolls sideways on a phone, the names stay put) */
.st-grid {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin: 8px 0 12px;
	border-radius: 14px;
	background: var(--card-bg);
	border: var(--card-border);
}

.st-grid table {
	border-collapse: collapse;
	font-size: 0.9rem;
}

.st-grid th,
.st-grid td {
	padding: 4px;
	text-align: center;
	border-bottom: 1px solid var(--seg);
	white-space: nowrap;
}

.st-grid th:first-child {
	position: sticky;
	left: 0;
	z-index: 1;
	text-align: left;
	background: var(--ground);
}

.st-grid .st-person .mini {
	margin-left: 4px;
}

.st-cell {
	min-width: 40px;
	min-height: 40px;
	font-size: 1.05rem;
}

.st-cell.st-here {
	background: var(--sel-bg);
	border-color: var(--sel-border);
	color: var(--sel-text);
}

.st-cell.st-open {
	background: var(--amber-bg);
	color: var(--amber-text);
}

.st-cell.st-other {
	background: var(--tint);
	color: var(--text-3);
}

/* ---- L1: Home, workspaces, bottom bar, quick actions, Account (nav.js) ----------------------------------------- */

.nv-home-top,
.nv-ws-top {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.nv-home-top {
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
}

.nv-brand {
	display: flex;
	align-items: center;
	gap: 10px;
}

.nv-rg {
	display: inline-grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 12px;
	background: var(--sel-bg);
	color: var(--sel-text);
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 0.02em;
}

.nv-avatar {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	min-height: 44px;
	padding: 0;
	border-radius: 999px;
	border: 1px solid rgba(10, 22, 40, 0.18);
	background: #ffffff;
	color: var(--text);
	font-size: 15px;
	font-weight: 800;
}

.nv-avatar.big {
	width: 56px;
	height: 56px;
	font-size: 20px;
}

.nv-ws-row {
	display: flex;
	align-items: center;
	gap: 8px;
}

.nv-ws-row h1 {
	flex: 1;
	min-width: 0;
	font-size: 20px;
}

.nv-back {
	width: 44px;
	height: 44px;
	min-height: 44px;
	padding: 0;
	border-radius: 14px;
	border: 1px solid rgba(10, 22, 40, 0.18);
	background: #ffffff;
	font-size: 20px;
	font-weight: 700;
}

.nv-action {
	min-height: 44px;
	border-radius: 14px;
}

/* People: the workspace's Add replaces the list's own "new" button (still there, for the same action) */
.nv-people ~ main .adm-new {
	display: none;
}

.nv-tabs {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(0, 1fr);
	gap: 2px;
	padding: 3px;
	border-radius: 16px;
	background: var(--tab-track);
}

.nv-tab {
	min-height: 44px; /* the spec's 40px segment, raised to the app's 44px tap target */
	padding: 4px 2px;
	border: 0;
	border-radius: 12px;
	background: transparent;
	box-shadow: none;
	color: var(--text-2);
	font-size: 13px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-weight: 600;
}

.nv-tab.active {
	background: #0a1628;
	color: #ffffff;
	font-weight: 700;
}

.nv-label-sm {
	display: block;
	margin: 16px 2px 8px;
	color: var(--label);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.panel .nv-label-sm {
	margin-top: 0;
}

.nv-greet {
	margin: 18px 2px 6px;
	font-size: 24px;
}

.pill {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--chip-sel-bg);
	color: var(--chip-sel-text);
	font-size: 12px;
	font-weight: 700;
}

.nv-today {
	margin-top: 12px;
	border-radius: 22px;
}

.nv-today-title {
	margin: 0 0 2px;
	font-size: 18px;
	font-weight: 700;
}

.nv-main {
	min-height: 48px;
}

.nv-admin-buttons {
	display: flex;
	flex-wrap: wrap; /* a long French label takes its own row instead of wrapping */
	gap: 8px;
	margin-top: 10px;
}

.nv-admin-buttons > .nv-big {
	flex: 1 1 auto;
}

.nv-big {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	min-height: 48px;
	padding: 8px 12px;
	border-radius: 14px;
	white-space: nowrap;
}

.nv-btn-label {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}

.nv-main {
	white-space: nowrap;
}

.nv-row,
.nv-action {
	white-space: nowrap;
}

.nv-tiles {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nv-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	width: 100%;
	min-height: 112px;
	padding: 14px;
	border-radius: 22px;
	text-align: left;
	background: var(--card-bg);
	-webkit-backdrop-filter: var(--card-filter);
	backdrop-filter: var(--card-filter);
	border: var(--card-border);
	box-shadow: var(--card-shadow);
}

.nv-tile-icon {
	display: inline-grid;
	place-items: center;
	width: 40px;
	height: 40px;
	margin-bottom: 6px;
	border-radius: 12px;
	background: rgba(0, 194, 224, 0.16);
	color: #0a5a6e;
}

.nv-tile-name {
	font-size: 17px;
	font-weight: 700;
}

.nv-tile-sub {
	max-width: 100%;
	color: var(--text-3);
	font-size: 13px;
	white-space: nowrap; /* one line; the ellipsis only as a last resort */
	overflow: hidden;
	text-overflow: ellipsis;
}

.nv-badge {
	display: inline-grid;
	place-items: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--danger);
	color: #ffffff;
	font-size: 12px;
	font-weight: 800;
}

.nv-tile .nv-badge {
	position: absolute;
	top: 10px;
	right: 10px;
}

.nv-big .nv-badge,
.nv-row .nv-badge {
	margin-left: 8px;
}

.nv-status {
	margin: 18px 2px 0;
	text-align: center;
	font-size: 13px;
}

/* the floating glass bottom bar: Home, Sessions, "+", Requests or Receipts, Account */
.nv-bar {
	position: fixed;
	z-index: 4;
	left: calc(14px + env(safe-area-inset-left));
	right: calc(14px + env(safe-area-inset-right));
	bottom: calc(16px + env(safe-area-inset-bottom));
	max-width: 692px;
	height: 68px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-around;
	gap: 2px;
	padding: 0 6px;
	border-radius: 26px;
	background: var(--nav-bg);
	-webkit-backdrop-filter: var(--nav-filter);
	backdrop-filter: var(--nav-filter);
	border: var(--nav-border);
	box-shadow: var(--nav-shadow);
}

.nv-slot {
	position: relative;
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 56px;
	padding: 2px;
	border: 0;
	border-radius: 18px;
	background: transparent;
	box-shadow: none;
	color: var(--text-2);
}

.nv-slot.active {
	color: var(--text);
	background: var(--tint);
}

.nv-icon {
	font-size: 20px;
	line-height: 1;
}

.nv-label {
	font-size: 12px;
	font-weight: 700;
}

.nv-slot .nv-badge {
	position: absolute;
	top: 2px;
	right: calc(50% - 26px);
}

.nv-plus {
	display: inline-grid;
	place-items: center;
	width: 52px;
	height: 52px;
	min-height: 52px;
	flex: 0 0 52px;
	padding: 0;
	border-radius: 999px;
	border: 1px solid var(--sel-border);
	background: var(--sel-bg);
	color: var(--sel-text);
	box-shadow: var(--sel-shadow);
}

.nv-plus .icon {
	transition: transform 160ms ease;
}

.nv-plus.open .icon {
	transform: rotate(45deg); /* the + becomes an x while the menu is open */
}

/* the "+" quick actions: a compact glass popover anchored above the + button (nav.js sets left / bottom and the pointer) */
.nv-pop-backdrop {
	position: fixed;
	z-index: 5;
	inset: 0;
	background: rgba(10, 22, 40, 0.12); /* a light veil, not a dim */
}

.nv-pop {
	position: fixed;
	z-index: 6;
	width: fit-content;
	min-width: 240px;
	max-width: 300px;
	padding: 6px;
	border-radius: 22px;
	background: var(--nav-bg);
	-webkit-backdrop-filter: var(--nav-filter);
	backdrop-filter: var(--nav-filter);
	border: var(--nav-border);
	box-shadow: var(--nav-shadow);
	transform-origin: 50% 100%;
	animation: nv-pop-in 160ms ease-out;
}

.nv-pop-row {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	min-height: 48px;
	padding: 0 14px;
	border: 0;
	border-radius: 16px;
	background: transparent;
	box-shadow: none;
	color: var(--text);
	font-weight: 700;
	text-align: left;
	white-space: nowrap;
}

.nv-pop-row .icon {
	flex: 0 0 auto;
	color: #0a5a6e;
}

.nv-pop-row:hover,
.nv-pop-row:focus-visible {
	background: var(--tint);
}

.nv-pop-pointer {
	position: absolute;
	bottom: -6px;
	left: calc(var(--nv-pointer, 50%) - 7px);
	width: 14px;
	height: 14px;
	transform: rotate(45deg);
	background: rgba(255, 255, 255, 0.82);
	border-right: var(--nav-border);
	border-bottom: var(--nav-border);
}

@keyframes nv-pop-in {
	from {
		opacity: 0;
		transform: scale(0.85);
	}

	to {
		opacity: 1;
		transform: scale(1);
	}
}

/* icons next to text (L1b) */
.icon {
	flex: 0 0 auto;
	vertical-align: middle;
}

.nv-note {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 6px 0;
}

.nv-with-icon,
.nv-status {
	display: flex;
	align-items: center;
	gap: 6px;
}

.nv-status {
	justify-content: center;
}

.nv-search {
	position: relative;
	margin-top: 12px;
}

.nv-search .icon {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--label);
	pointer-events: none;
}

.nv-search input[type="search"] {
	margin-top: 0;
	padding-left: 40px;
}

.nv-big,
.nv-row,
.banner {
	gap: 8px;
}

.banner .icon,
.nv-big .icon,
.nv-row .icon,
.sign-out .icon,
.mini .icon {
	margin-right: 6px;
}

.nv-row-label {
	flex: 1;
	text-align: left;
}

.nv-me {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 12px 2px 16px;
}

.nv-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 48px;
	margin-bottom: 12px;
}

.nv-counts {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 8px;
}

.nv-admins {
	margin-top: 12px;
}

.nv-drafts {
	margin-bottom: 12px;
}

@media (prefers-reduced-motion: reduce) {
	.nv-pop,
	.nv-plus .icon {
		transition: none !important;
		animation: none !important;
	}
}

/* L1c: the neutral loading state of Home before the capabilities are known */
.nv-skel {
	border-radius: 14px;
	background: linear-gradient(90deg, rgba(10, 22, 40, 0.06), rgba(10, 22, 40, 0.12), rgba(10, 22, 40, 0.06));
	background-size: 200% 100%;
	animation: nv-skel 1.4s ease-in-out infinite;
}

.nv-skel-greet {
	width: 60%;
	height: 30px;
	margin: 18px 2px 12px;
}

.nv-skel-card {
	height: 120px;
	border-radius: 22px;
}

@keyframes nv-skel {
	from {
		background-position: 100% 0;
	}

	to {
		background-position: -100% 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nv-skel {
		animation: none !important;
	}
}

/* L2: Team > Staff cards and the Call button (a tel: link, a 44px tap target) */
.nv-staff-list li.nv-staff {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 4px;
}

.nv-staff-who {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
}

.nv-staff-who > span {
	overflow-wrap: anywhere;
}

.nv-call {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	min-width: 44px;
	padding: 0 14px;
	border-radius: 14px;
	border: 1px solid rgba(10, 22, 40, 0.18);
	background: #ffffff;
	color: var(--text);
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.nv-staff-team h3 {
	margin: 14px 2px 6px;
}

.nv-more {
	display: block;
	padding-left: 0;
}

/* SG3: documents to sign (documents.js): the roster warning, the list badge and the athlete's Documents block */
.doc-warn {
	margin-top: 6px;
}

.doc-warn-toggle {
	color: var(--amber-text);
}

.doc-warn-titles {
	margin: 4px 0 0;
	padding-left: 18px;
}

.doc-badge .icon,
.doc-warn-toggle .icon {
	margin-right: 4px;
}

.doc-item {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
}

.doc-send label {
	display: block;
	margin-top: 10px;
}

.doc-guardians {
	margin-top: 10px;
	border: 0;
	padding: 0;
}

/* ---- PN3: notifications on this phone (Account) and the first-sign-in sheet ---------------------------------------- */

.switch-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 44px;
	margin: 8px 0;
}

.switch-label {
	font-weight: 650;
}

.switch {
	position: relative;
	flex: none;
	width: 64px;
	min-width: 64px;
	min-height: 44px;
	padding: 0;
	border-radius: 999px;
	border: 1px solid var(--btn-border);
	background: var(--btn-bg);
	box-shadow: none;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.switch.on {
	background: var(--chip-sel-bg);
	border-color: var(--chip-sel-border);
}

.switch-knob {
	position: absolute;
	top: 8px;
	left: 8px;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--btn-text);
	transition: transform 0.15s ease;
}

.switch.on .switch-knob {
	transform: translateX(20px);
	background: var(--chip-sel-text);
}

.switch:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.push-line {
	margin-top: 8px;
}

/* the sheet: no action on the backdrop (a tap outside does nothing) */
.push-backdrop {
	position: fixed;
	inset: 0;
	z-index: 20;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	background: rgba(10, 22, 40, 0.35);
	padding: 16px;
	padding-bottom: calc(16px + env(safe-area-inset-bottom));
}

.push-sheet {
	width: 100%;
	max-width: 440px;
	margin: 0;
	padding: 20px;
}

.push-sheet-title {
	margin: 0 0 6px;
	font-size: 18px;
}

.push-sheet .buttons {
	margin-top: 12px;
}

@media (prefers-reduced-motion: reduce) {
	.switch-knob {
		transition: none;
	}
}
