/* ------------------------------------------------------------------
 * Pitch Booking Manager — front end
 * Booking System developed by Top IT Host
 * ------------------------------------------------------------------ */

.pbm-app,
.pbm-login-wrap,
.pbm-mybookings,
.pbm-account,
.pbm-guide-standalone {
	--pbm-primary: #0f766e;
	--pbm-primary-contrast: #ffffff;
	--pbm-accent: #f59e0b;
	--pbm-radius: 10px;
	--pbm-pad: 10px;
	--pbm-slot-height: 56px;
	--pbm-border: #e2e8f0;
	--pbm-border-strong: #cbd5e1;
	--pbm-muted: #64748b;
	--pbm-surface: #ffffff;
	--pbm-surface-alt: #f8fafc;
	--pbm-text: #0f172a;
	--pbm-tap: 40px;
	box-sizing: border-box;
	color: var(--pbm-text);
	font-size: 15px;
	line-height: 1.45;
}

.pbm-app *,
.pbm-app *::before,
.pbm-app *::after,
.pbm-login-wrap *,
.pbm-mybookings *,
.pbm-account *,
.pbm-guide-standalone * {
	box-sizing: border-box;
}

/* --- Buttons ------------------------------------------------------- */

.pbm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: var(--pbm-tap);
	padding: 8px 14px;
	border: 1px solid var(--pbm-border-strong);
	border-radius: var(--pbm-radius);
	background: var(--pbm-surface);
	color: var(--pbm-text);
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	text-decoration: none;
	white-space: nowrap;
	transition: background .15s ease, border-color .15s ease, transform .05s ease;
}

.pbm-btn:hover { background: var(--pbm-surface-alt); }
.pbm-btn:active { transform: translateY(1px); }
.pbm-btn:focus-visible { outline: 2px solid var(--pbm-primary); outline-offset: 2px; }
.pbm-btn[disabled] { opacity: .55; cursor: not-allowed; }

.pbm-btn-primary {
	background: var(--pbm-primary);
	border-color: var(--pbm-primary);
	color: var(--pbm-primary-contrast);
}
.pbm-btn-primary:hover { filter: brightness(1.07); background: var(--pbm-primary); }

.pbm-btn-danger { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.pbm-btn-danger:hover { background: #fee2e2; }

.pbm-btn-ghost { background: transparent; }

.pbm-btn-icon { padding: 8px 14px; font-size: 20px; line-height: 1; min-width: var(--pbm-tap); }

.pbm-btn-block { width: 100%; }

.pbm-btn-help::before { content: "?"; display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; border-radius: 50%; background: var(--pbm-primary); color: var(--pbm-primary-contrast); font-size: 12px; font-weight: 800; }

.pbm-linkbtn {
	background: none;
	border: 0;
	padding: 4px 0;
	color: var(--pbm-primary);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	text-decoration: underline;
}

/* --- Notices ------------------------------------------------------- */

.pbm-notice {
	padding: 10px 14px;
	border-radius: var(--pbm-radius);
	border: 1px solid var(--pbm-border);
	background: var(--pbm-surface-alt);
	margin: 0 0 12px;
	font-size: .95em;
}
.pbm-notice-error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.pbm-notice-success { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.pbm-notice-warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.pbm-notice-info { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }

.pbm-muted { color: var(--pbm-muted); font-size: .9em; }

/* --- Cards & forms ------------------------------------------------- */

.pbm-card {
	background: var(--pbm-surface);
	border: 1px solid var(--pbm-border);
	border-radius: calc(var(--pbm-radius) + 4px);
	padding: 22px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
}

.pbm-login-wrap { display: flex; justify-content: center; }
.pbm-login { width: 100%; max-width: 380px; }
.pbm-login-title { margin: 0 0 6px; font-size: 1.25em; }
.pbm-login-intro { margin: 0 0 16px; color: var(--pbm-muted); font-size: .92em; }

.pbm-field { margin-bottom: 14px; }
.pbm-field label {
	display: block;
	margin-bottom: 5px;
	font-weight: 600;
	font-size: .88em;
	color: #334155;
}

.pbm-field input[type="text"],
.pbm-field input[type="password"],
.pbm-field input[type="email"],
.pbm-field input[type="date"],
.pbm-field input[type="number"],
.pbm-field select,
.pbm-field textarea,
.pbm-input {
	width: 100%;
	min-height: var(--pbm-tap);
	padding: 9px 11px;
	border: 1px solid var(--pbm-border-strong);
	border-radius: var(--pbm-radius);
	background: var(--pbm-surface);
	font: inherit;
	font-size: 16px; /* stops iOS zooming on focus */
	color: var(--pbm-text);
}

.pbm-input:focus,
.pbm-field input:focus,
.pbm-field select:focus,
.pbm-field textarea:focus {
	outline: none;
	border-color: var(--pbm-primary);
	box-shadow: 0 0 0 3px rgba(15, 118, 110, .18);
}

.pbm-input-small { max-width: 140px; }

.pbm-check,
.pbm-field label.pbm-check { display: flex; align-items: center; gap: 8px; margin-bottom: 0; font-weight: 600; font-size: .95em; cursor: pointer; min-height: var(--pbm-tap); }
.pbm-check input { width: 20px; height: 20px; margin: 0; flex: none; }

/* --- Training / Game picker ---------------------------------------- */

.pbm-sessionpick { display: flex; gap: 8px; flex-wrap: wrap; }

/* `.pbm-field label` also matches these, so keep the specificity above it. */
.pbm-field label.pbm-sessionopt,
.pbm-sessionpick .pbm-sessionopt {
	flex: 1 1 130px;
	display: flex;
	align-items: center;
	gap: 9px;
	margin-bottom: 0;
	min-height: 48px;
	padding: 8px 12px;
	border: 2px solid var(--pbm-border-strong);
	border-radius: var(--pbm-radius);
	background: var(--pbm-surface);
	font-size: 1em;
	font-weight: 600;
	color: var(--pbm-text);
	cursor: pointer;
	transition: border-color .15s ease, background .15s ease;
}
.pbm-sessionopt input { width: 20px; height: 20px; margin: 0; accent-color: var(--pbm-session, var(--pbm-primary)); flex: none; }
/* Must out-specify `.pbm-field label.pbm-sessionopt` above, or the selected
   state never shows. */
.pbm-field label.pbm-sessionopt.is-on,
.pbm-sessionpick .pbm-sessionopt.is-on {
	border-color: var(--pbm-session, var(--pbm-primary));
	background: color-mix(in srgb, var(--pbm-session, #0f766e) 10%, white);
}
.pbm-sessiondot { display: inline-block; width: 13px; height: 13px; border-radius: 3px; flex: none; }

/* --- Public / view-only -------------------------------------------- */

.pbm-public-intro {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	padding: 10px 14px;
	margin-bottom: 12px;
	border: 1px solid var(--pbm-border);
	border-left: 4px solid var(--pbm-primary);
	border-radius: var(--pbm-radius);
	background: var(--pbm-surface-alt);
	font-size: .92em;
}
.pbm-pill-view {
	font-size: .78em;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .05em;
	padding: 3px 9px;
	border-radius: 999px;
	background: var(--pbm-primary);
	color: var(--pbm-primary-contrast);
}

.pbm-viewonly .pbm-lane { cursor: default; }

/* --- Guide --------------------------------------------------------- */

.pbm-guide {
	border: 1px solid var(--pbm-border);
	border-radius: calc(var(--pbm-radius) + 2px);
	background: var(--pbm-surface-alt);
	padding: 16px 18px;
	margin-bottom: 14px;
}
.pbm-guide-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pbm-guide-title { margin: 0 0 4px; font-size: 1.08em; }
.pbm-guide-intro { margin: 0 0 12px; color: var(--pbm-muted); font-size: .92em; }

.pbm-guide-steps {
	list-style: none;
	counter-reset: pbmstep;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
}
.pbm-guide-step {
	counter-increment: pbmstep;
	position: relative;
	padding: 10px 12px 10px 46px;
	background: var(--pbm-surface);
	border: 1px solid var(--pbm-border);
	border-radius: var(--pbm-radius);
}
.pbm-guide-step::before {
	content: counter(pbmstep);
	position: absolute;
	left: 12px;
	top: 10px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--pbm-primary);
	color: var(--pbm-primary-contrast);
	font-size: .8em;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
}
.pbm-guide-step strong { display: block; margin-bottom: 2px; }
.pbm-guide-step span { display: block; color: var(--pbm-muted); font-size: .92em; }

.pbm-guide-done { margin-top: 12px; }
.pbm-guide-standalone { padding: 0; border: 0; background: none; }
.pbm-guide-standalone .pbm-guide-done { display: none; }

/* --- Toolbar ------------------------------------------------------- */

.pbm-app { display: block; }

.pbm-toolbar {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 12px;
}

.pbm-nav { display: flex; align-items: center; gap: 6px; }
.pbm-primary-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pbm-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.pbm-range-title {
	font-weight: 700;
	font-size: 1.05em;
	margin: 0 auto 0 6px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.pbm-controls .pbm-input { width: auto; min-width: 132px; flex: 0 1 auto; font-size: .95em; }
.pbm-datepick { min-width: 150px; }

.pbm-viewswitch {
	display: inline-flex;
	border: 1px solid var(--pbm-border-strong);
	border-radius: var(--pbm-radius);
	overflow: hidden;
	background: var(--pbm-surface);
}
.pbm-viewbtn {
	border: 0;
	background: transparent;
	min-height: var(--pbm-tap);
	padding: 8px 14px;
	font: inherit;
	font-weight: 600;
	font-size: .9em;
	cursor: pointer;
	color: var(--pbm-muted);
}
.pbm-viewbtn.is-active { background: var(--pbm-primary); color: var(--pbm-primary-contrast); }

.pbm-account-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: var(--pbm-tap);
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--pbm-surface-alt);
	border: 1px solid var(--pbm-border);
	font-size: .85em;
	margin-left: auto;
}
.pbm-account-name { font-weight: 700; }

.pbm-btn-login { margin-left: auto; }

/* --- Day strip ------------------------------------------------------ */

.pbm-daystrip {
	display: flex;
	gap: 6px;
	overflow-x: auto;
	padding-bottom: 6px;
	margin-bottom: 10px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}
.pbm-daychip {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1px;
	min-width: 52px;
	min-height: 52px;
	padding: 6px 8px;
	border: 1px solid var(--pbm-border-strong);
	border-radius: var(--pbm-radius);
	background: var(--pbm-surface);
	font: inherit;
	cursor: pointer;
}
.pbm-daychip-dow { font-size: .72em; text-transform: uppercase; letter-spacing: .04em; color: var(--pbm-muted); font-weight: 700; }
.pbm-daychip-num { font-size: 1.05em; font-weight: 700; }
.pbm-daychip.is-today { border-color: var(--pbm-accent); }
.pbm-daychip.is-active { background: var(--pbm-primary); border-color: var(--pbm-primary); color: var(--pbm-primary-contrast); }
.pbm-daychip.is-active .pbm-daychip-dow { color: inherit; opacity: .85; }

/* --- Legend -------------------------------------------------------- */

.pbm-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	margin-bottom: 12px;
	font-size: .82em;
	color: var(--pbm-muted);
}
.pbm-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.pbm-legend-dot { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }

/* --- Pitch banner --------------------------------------------------- */

.pbm-pitch-banner {
	border-left: 4px solid var(--pbm-primary);
	background: var(--pbm-surface-alt);
	padding: 10px 14px;
	border-radius: var(--pbm-radius);
	margin-bottom: 10px;
}
.pbm-pitch-banner-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pbm-pitch-banner-desc { margin: 4px 0 0; font-size: .88em; color: var(--pbm-muted); }
.pbm-tag {
	font-size: .74em;
	text-transform: uppercase;
	letter-spacing: .04em;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--pbm-surface);
	border: 1px solid var(--pbm-border);
	color: var(--pbm-muted);
	font-weight: 700;
}

/* --- Grid ---------------------------------------------------------- */

.pbm-grid-wrap {
	border: 1px solid var(--pbm-border);
	border-radius: calc(var(--pbm-radius) + 2px);
	overflow: hidden;
	background: var(--pbm-surface);
}

.pbm-grid { --pbm-col-count: 7; --pbm-gutter-w: 58px; --pbm-col-min: 112px; }

.pbm-grid-scroll {
	overflow: auto;
	max-height: 74vh;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-x: contain;
}

.pbm-grid-head,
.pbm-grid-inner {
	display: grid;
	grid-template-columns: var(--pbm-gutter-w) repeat(var(--pbm-col-count), minmax(var(--pbm-col-min), 1fr));
	min-width: min-content;
}

.pbm-grid-head {
	position: sticky;
	top: 0;
	z-index: 5;
	background: var(--pbm-surface);
	border-bottom: 1px solid var(--pbm-border-strong);
}

.pbm-gutter-head {
	position: sticky;
	left: 0;
	z-index: 6;
	background: var(--pbm-surface);
	border-right: 1px solid var(--pbm-border);
}

.pbm-col-head {
	padding: 8px 6px 0;
	border-left: 1px solid var(--pbm-border);
	text-align: center;
}
.pbm-col-head.is-today { background: rgba(15, 118, 110, .08); }

.pbm-col-title { display: flex; flex-direction: column; line-height: 1.2; }
.pbm-col-main { font-weight: 700; font-size: .92em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pbm-col-sub { font-size: .78em; color: var(--pbm-muted); }

.pbm-lane-head { display: flex; margin-top: 6px; }
.pbm-lane-label {
	flex: 1;
	min-width: 0;
	font-size: .66em;
	text-transform: uppercase;
	letter-spacing: .03em;
	color: var(--pbm-muted);
	padding: 3px 2px;
	border-top: 1px solid var(--pbm-border);
	border-left: 1px solid var(--pbm-border);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.pbm-lane-label:first-child { border-left: 0; }

.pbm-gutter {
	position: sticky;
	left: 0;
	z-index: 4;
	background: var(--pbm-surface);
	border-right: 1px solid var(--pbm-border);
}

.pbm-gutter-mark {
	position: absolute;
	right: 6px;
	transform: translateY(-50%);
	font-size: .72em;
	color: var(--pbm-muted);
	white-space: nowrap;
}

.pbm-col {
	position: relative;
	border-left: 1px solid var(--pbm-border);
	min-width: var(--pbm-col-min);
}
.pbm-col.is-today { background: rgba(15, 118, 110, .04); }

.pbm-hourline {
	position: absolute;
	left: 0;
	right: 0;
	border-top: 1px solid var(--pbm-border);
	pointer-events: none;
}

.pbm-closed {
	position: absolute;
	left: 0;
	right: 0;
	background: repeating-linear-gradient(45deg, #f1f5f9, #f1f5f9 6px, #e9eef5 6px, #e9eef5 12px);
	color: var(--pbm-muted);
	font-size: .72em;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1;
}

/* Games-only period: tinted in the Game colour with a clear top rule. */
.pbm-gamesband {
	position: absolute;
	left: 0;
	right: 0;
	z-index: 1;
	background: color-mix(in srgb, var(--pbm-game, #16a34a) 11%, transparent);
	border-top: 2px dashed var(--pbm-game, #16a34a);
	pointer-events: none;
}
.pbm-gamesband-label {
	position: absolute;
	top: 3px;
	left: 4px;
	right: 4px;
	font-size: .66em;
	font-weight: 800;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--pbm-game, #16a34a);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.pbm-gamesband.is-full { border-top: 0; }

.pbm-col-gamestag {
	display: block;
	margin: 4px auto 0;
	max-width: 100%;
	padding: 1px 7px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--pbm-game, #16a34a) 15%, white);
	border: 1px solid color-mix(in srgb, var(--pbm-game, #16a34a) 45%, white);
	color: var(--pbm-game, #16a34a);
	font-size: .64em;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .03em;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.pbm-legend-dot-games {
	background: color-mix(in srgb, var(--pbm-game, #16a34a) 20%, transparent);
	border: 2px dashed var(--pbm-game, #16a34a);
	border-radius: 3px;
	width: 14px;
	height: 14px;
}

.pbm-gamesnote {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 6px 0 0;
	font-size: .84em;
	font-weight: 600;
	color: var(--pbm-muted);
}
.pbm-gamesnote-dot {
	width: 13px;
	height: 13px;
	flex: none;
	border-radius: 3px;
	background: color-mix(in srgb, var(--pbm-game, #16a34a) 20%, transparent);
	border: 2px dashed var(--pbm-game, #16a34a);
}

.pbm-gameshint {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-top: 10px;
	padding: 9px 12px;
	border-radius: var(--pbm-radius);
	border: 1px solid color-mix(in srgb, var(--pbm-game, #16a34a) 35%, white);
	border-left: 4px solid var(--pbm-game, #16a34a);
	background: color-mix(in srgb, var(--pbm-game, #16a34a) 8%, white);
	font-size: .86em;
	line-height: 1.4;
	color: #334155;
}
.pbm-gameshint.is-ok { font-weight: 600; }

.pbm-lanes { position: absolute; inset: 0; display: flex; z-index: 2; }
.pbm-lane { flex: 1 1 0; border-left: 1px dashed #eef2f7; }
.pbm-lane:first-child { border-left: 0; }
.pbm-lane.is-bookable { cursor: pointer; }
.pbm-lane.is-bookable:hover { background: rgba(15, 118, 110, .06); }

.pbm-block {
	position: absolute;
	z-index: 3;
	border: 0;
	border-radius: calc(var(--pbm-radius) - 3px);
	padding: 4px 6px;
	text-align: left;
	font: inherit;
	font-size: .78em;
	line-height: 1.25;
	overflow: hidden;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	gap: 1px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, .18);
}
.pbm-block:hover { filter: brightness(1.08); }
.pbm-block:focus-visible { outline: 2px solid #0f172a; outline-offset: 1px; }

.pbm-block-title { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pbm-block-time,
.pbm-block-meta { opacity: .88; font-size: .92em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pbm-block-badge {
	align-self: flex-start;
	background: rgba(255, 255, 255, .28);
	border-radius: 999px;
	padding: 0 6px;
	font-size: .82em;
	font-weight: 700;
}

.pbm-block.is-pending { background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.22), rgba(255,255,255,.22) 5px, transparent 5px, transparent 10px); }
.pbm-block.pbm-type-league { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35), 0 1px 2px rgba(15,23,42,.2); }

.pbm-session-badge {
	font-size: .72em;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .04em;
	padding: 2px 8px;
	border-radius: 999px;
}

/* --- List view ----------------------------------------------------- */

.pbm-list { display: grid; gap: 12px; }
.pbm-list-day {
	border: 1px solid var(--pbm-border);
	border-radius: var(--pbm-radius);
	padding: 12px 14px;
	background: var(--pbm-surface);
}
.pbm-list-day.is-today { border-color: var(--pbm-primary); }
.pbm-list-daytitle { margin: 0 0 8px; font-size: .95em; }
.pbm-list-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pbm-list-item { display: flex; align-items: center; gap: 10px; }
.pbm-list-dot { width: 10px; align-self: stretch; min-height: 32px; border-radius: 4px; flex: none; }
.pbm-list-main { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.pbm-list-titlerow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* --- Modal --------------------------------------------------------- */

body.pbm-modal-open { overflow: hidden; }

.pbm-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, .55);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	z-index: 99999;
}

.pbm-modal {
	background: #fff;
	color: #0f172a;
	width: 100%;
	max-width: 460px;
	max-height: 92vh;
	overflow: auto;
	border-radius: calc(var(--pbm-radius, 10px) + 6px);
	box-shadow: 0 20px 50px rgba(15, 23, 42, .3);
	font-size: 15px;
	line-height: 1.45;
	--pbm-tap: 40px;
	--pbm-primary: #0f766e;
	--pbm-primary-contrast: #ffffff;
	--pbm-border: #e2e8f0;
	--pbm-border-strong: #cbd5e1;
	--pbm-muted: #64748b;
	--pbm-surface: #ffffff;
	--pbm-surface-alt: #f8fafc;
	--pbm-text: #0f172a;
	--pbm-radius: 10px;
}

.pbm-modal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 18px;
	border-bottom: 1px solid #e2e8f0;
	position: sticky;
	top: 0;
	background: #fff;
	z-index: 2;
}
.pbm-modal-head h3 { margin: 0; font-size: 1.05em; }
.pbm-modal-close {
	border: 0;
	background: none;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: #64748b;
	padding: 0 6px;
	min-width: 40px;
	min-height: 40px;
}

.pbm-modal-body { padding: 18px; }

.pbm-modal-actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid #e2e8f0;
}

.pbm-detail-head {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 3px;
	padding: 12px 14px;
	border-radius: var(--pbm-radius, 10px);
	margin-bottom: 14px;
}
.pbm-detail-badge {
	background: rgba(255, 255, 255, .3);
	border-radius: 999px;
	padding: 1px 9px;
	font-size: .78em;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .04em;
}
.pbm-detail-rows { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; }
.pbm-detail-rows dt { font-weight: 700; font-size: .84em; color: #475569; }
.pbm-detail-rows dd { margin: 0; font-size: .92em; word-break: break-word; }
.pbm-detail-rows dd a { color: #0f766e; }

.pbm-contactbox {
	margin-top: 14px;
	padding: 12px 14px;
	border: 1px solid #e2e8f0;
	border-radius: var(--pbm-radius, 10px);
	background: #f8fafc;
}
.pbm-contact-title {
	margin: 0 0 8px;
	font-size: .78em;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: #475569;
}

/* Locked "part of pitch" when a game takes the whole pitch. */
.pbm-fieldnote {
	margin: 6px 0 0;
	font-size: .84em;
	line-height: 1.4;
	color: #15803d;
}
.pbm-field.is-locked select { background: #f1f5f9; color: #475569; cursor: not-allowed; }

/* Repeating booking panel */

.pbm-seriesbox {
	margin-top: 14px;
	padding: 12px 14px;
	border: 1px solid #e2e8f0;
	border-left: 4px solid var(--pbm-primary, #0f766e);
	border-radius: var(--pbm-radius, 10px);
	background: #f8fafc;
}
.pbm-series-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pbm-series-head .pbm-contact-title { margin: 0; }
.pbm-series-summary { margin: 6px 0 0; font-size: .86em; color: #475569; }

.pbm-series-list {
	list-style: none;
	margin: 10px 0 0;
	padding: 0;
	max-height: 260px;
	overflow-y: auto;
	border-top: 1px solid #e2e8f0;
}
.pbm-series-item {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	padding: 9px 2px;
	border-bottom: 1px solid #eef2f7;
	font-size: .9em;
	min-height: 44px;
}
.pbm-series-item:last-child { border-bottom: 0; }
.pbm-series-main { display: flex; flex-direction: column; flex: 1 1 150px; min-width: 0; }
.pbm-series-main .pbm-muted { font-size: .86em; }
.pbm-series-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.pbm-series-cancel { flex: none; color: #b91c1c; }

.pbm-series-item.is-current { background: #ecfeff; border-radius: 6px; padding-left: 8px; padding-right: 8px; }
.pbm-series-item.is-cancelled .pbm-series-main strong { text-decoration: line-through; opacity: .6; }
.pbm-series-item.is-past { opacity: .62; }

.pbm-tag-mini {
	font-size: .7em;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .04em;
	padding: 2px 7px;
	border-radius: 999px;
	background: #e2e8f0;
	color: #475569;
}
.pbm-tag-mini.is-current { background: var(--pbm-primary, #0f766e); color: #fff; }
.pbm-tag-mini.is-off { background: #fee2e2; color: #991b1b; }

.pbm-series-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.pbm-series-actions .pbm-btn { flex: 1 1 auto; }
.pbm-btn-small { min-height: 38px; padding: 6px 12px; font-size: .86em; }

.pbm-repeat {
	border: 1px dashed var(--pbm-border-strong, #cbd5e1);
	border-radius: var(--pbm-radius, 10px);
	padding: 10px 12px;
	margin-bottom: 14px;
}

/* --- My bookings --------------------------------------------------- */

.pbm-booking-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pbm-booking-item {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	padding: 10px 12px;
	border: 1px solid var(--pbm-border);
	border-left: 5px solid var(--pbm-item, var(--pbm-primary));
	border-radius: var(--pbm-radius);
	background: var(--pbm-surface);
}
.pbm-booking-date { font-weight: 700; font-size: .85em; min-width: 74px; }
.pbm-booking-main { flex: 1 1 200px; font-size: .9em; }

.pbm-badge {
	font-size: .74em;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 999px;
	background: #fffbeb;
	border: 1px solid #fde68a;
	color: #92400e;
}

.pbm-loading { padding: 28px; text-align: center; color: var(--pbm-muted); }

.pbm-inline-notice { margin-bottom: 12px; }

/* --- Footer credit -------------------------------------------------- */

.pbm-footer {
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid var(--pbm-border);
	text-align: center;
}
.pbm-credit {
	font-size: .8em;
	color: var(--pbm-muted);
	text-decoration: none;
}
a.pbm-credit:hover { color: var(--pbm-primary); text-decoration: underline; }

/* --- Responsive ---------------------------------------------------- */

@media (max-width: 900px) {
	.pbm-grid { --pbm-col-min: 104px; }
}

@media (max-width: 782px) {
	.pbm-app,
	.pbm-login-wrap,
	.pbm-mybookings,
	.pbm-account { --pbm-tap: 44px; }

	.pbm-nav { width: 100%; }
	.pbm-range-title { font-size: 1em; text-align: center; margin: 0 auto; }

	.pbm-controls {
		display: flex;
		flex-wrap: nowrap;
		overflow-x: auto;
		padding-bottom: 6px;
		gap: 8px;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: thin;
	}
	.pbm-controls > * { flex: 0 0 auto; }
	.pbm-controls .pbm-input { min-width: 128px; }

	/* The view switcher, help and account stay put — only filters scroll. */
	.pbm-primary-actions { width: 100%; flex-wrap: wrap; }
	.pbm-primary-actions .pbm-viewswitch { flex: 1 1 180px; }
	.pbm-account-chip,
	.pbm-btn-login { margin-left: auto; }

	.pbm-grid { --pbm-gutter-w: 44px; --pbm-col-min: 104px; }
	.pbm-grid-scroll { max-height: 66vh; }
	.pbm-block { font-size: .74em; padding: 3px 4px; }
	.pbm-block-time, .pbm-block-meta { font-size: .95em; }

	.pbm-guide { padding: 14px; }
	.pbm-guide-title { font-size: 1em; }
	.pbm-guide-steps { gap: 8px; }
	.pbm-guide-step { padding: 9px 10px 9px 42px; }
	.pbm-guide-step::before { top: 9px; left: 10px; width: 22px; height: 22px; }
	.pbm-guide-step span { font-size: .88em; }
	.pbm-guide-done { width: 100%; }

	.pbm-legend { font-size: .78em; gap: 6px 12px; }

	.pbm-list-item { align-items: flex-start; }
}

@media (max-width: 560px) {
	.pbm-modal-overlay { padding: 0; align-items: flex-end; }
	.pbm-modal {
		max-width: 100%;
		max-height: 94vh;
		border-radius: 18px 18px 0 0;
		animation: pbm-sheet-up .18s ease-out;
	}
	.pbm-modal-body { padding: 16px 16px 20px; }
	.pbm-modal-actions {
		position: sticky;
		bottom: 0;
		background: #fff;
		margin: 16px -16px -20px;
		padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
		box-shadow: 0 -4px 12px rgba(15, 23, 42, .06);
	}
	.pbm-modal-actions .pbm-btn { flex: 1 1 auto; }

	.pbm-viewswitch { flex: 1 1 auto; }
	.pbm-viewbtn { flex: 1; padding: 8px 10px; }

	.pbm-sessionopt { flex: 1 1 100%; }

	.pbm-detail-rows { grid-template-columns: 1fr; gap: 2px; }
	.pbm-detail-rows dd { margin-bottom: 8px; }

	.pbm-booking-item { gap: 8px; }
	.pbm-booking-date { min-width: 100%; }
}

@keyframes pbm-sheet-up {
	from { transform: translateY(24px); opacity: .6; }
	to { transform: translateY(0); opacity: 1; }
}

@media (hover: none) {
	.pbm-lane.is-bookable:hover { background: transparent; }
	.pbm-block:hover { filter: none; }
}

@media print {
	.pbm-toolbar, .pbm-modal-overlay, .pbm-daystrip, .pbm-guide { display: none !important; }
	.pbm-grid-scroll { max-height: none; overflow: visible; }
}
