/* =========================================================
   PassTheBar.ca — Bar Study Schedule
   Royal blue + white, geometric sans, soft shadows.
   ========================================================= */

.bsp-root {
	/* Strict PassTheBar.ca palette */
	--bsp-primary:        #073990;   /* main brand blue */
	--bsp-primary-dark:   #00348c;   /* darkest navy — hover/active */
	--bsp-primary-mid:    #244bb2;   /* mid-tone royal */
	--bsp-accent:         #027afe;   /* bright blue — highlights, focus */
	--bsp-primary-soft:   #e7eef9;   /* light blue tint, derived */
	--bsp-primary-tint:   #f1f5fc;   /* paler blue tint, derived */
	--bsp-ink:            #00348c;   /* dark text uses brand navy */
	--bsp-ink-soft:       #073990;
	--bsp-muted:          #6b7a92;   /* neutral gray */
	--bsp-muted-2:        #94a1b8;
	--bsp-bg:             #fafafc;   /* off-white background */
	--bsp-bg-soft:        #f1f5fc;
	--bsp-line:           #dde6f2;
	--bsp-line-strong:    #c0cde0;
	--bsp-neutral-text:   #0a1f3d;   /* near-black with blue lean */
	--bsp-delete:         #6b7a92;   /* delete buttons — gray, not red */

	--bsp-font-display: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--bsp-font-body:    'Inter', 'Poppins', system-ui, -apple-system, sans-serif;
	--bsp-font-mono:    'JetBrains Mono', ui-monospace, 'Menlo', monospace;

	--bsp-radius-sm: 8px;
	--bsp-radius:    14px;
	--bsp-radius-lg: 22px;
	--bsp-radius-pill: 999px;

	--bsp-shadow-1: 0 1px 2px rgba(10, 31, 61, 0.05), 0 4px 16px -6px rgba(7, 57, 144, 0.10);
	--bsp-shadow-2: 0 14px 40px -18px rgba(7, 57, 144, 0.40);
	--bsp-shadow-blue: 0 8px 18px -8px rgba(7, 57, 144, 0.55);

	font-family: var(--bsp-font-body);
	color: var(--bsp-ink);
	background: var(--bsp-bg);
	padding: clamp(20px, 4vw, 44px);
	border-radius: var(--bsp-radius-lg);
	border: 1px solid var(--bsp-line);
	box-shadow: var(--bsp-shadow-1);
	line-height: 1.55;
	max-width: 1200px;
	margin: 0 auto;
	position: relative;
	overflow: hidden;
}

/* Soft blue glow accent in the background */
.bsp-root::before {
	content: '';
	position: absolute;
	inset: -200px -100px auto auto;
	width: 480px;
	height: 480px;
	background: radial-gradient(circle, rgba(7, 57, 144, 0.08), transparent 70%);
	pointer-events: none;
	z-index: 0;
}

.bsp-root > * { position: relative; z-index: 1; }

.bsp-root *, .bsp-root *::before, .bsp-root *::after { box-sizing: border-box; }

.bsp-root h1, .bsp-root h2, .bsp-root h3 {
	font-family: var(--bsp-font-display);
	font-weight: 700;
	letter-spacing: -0.02em;
	margin: 0 0 0.25em;
	color: var(--bsp-ink);
	line-height: 1.15;
}

.bsp-root p { margin: 0 0 0.6em; }

/* =========================== HEADER =========================== */
.bsp-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	padding-bottom: 22px;
	border-bottom: 1px solid var(--bsp-line);
	margin-bottom: 28px;
}

.bsp-header__brand {
	display: flex;
	gap: 16px;
	align-items: center;
}

.bsp-header__logo {
	display: inline-flex;
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	align-items: center;
	justify-content: center;
}

.bsp-header__logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.bsp-header__titles { display: flex; flex-direction: column; gap: 2px; }

.bsp-header__eyebrow {
	font-family: var(--bsp-font-display);
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 0.04em;
	color: var(--bsp-primary);
	text-transform: none;
	margin: 0;
}

.bsp-header__title {
	font-size: clamp(26px, 3.6vw, 36px);
	font-weight: 800;
	letter-spacing: -0.025em;
	color: var(--bsp-ink);
	margin: 0;
}

.bsp-header__subtitle {
	color: var(--bsp-muted);
	margin: 4px 0 0;
	font-size: 14px;
}

.bsp-auth-slot {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	flex-wrap: wrap;
}

.bsp-auth-slot__avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--bsp-primary);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	overflow: hidden;
	font-size: 13px;
	letter-spacing: 0.04em;
	box-shadow: var(--bsp-shadow-blue);
}

.bsp-auth-slot__avatar img { width: 100%; height: 100%; object-fit: cover; }

.bsp-auth-slot__name {
	font-weight: 600;
	color: var(--bsp-ink-soft);
}

/* =========================== STEPS =========================== */
.bsp-steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
	background: transparent;
	margin-bottom: 28px;
}

.bsp-steps__item {
	all: unset;
	cursor: pointer;
	background: var(--bsp-bg-soft);
	padding: 14px 18px;
	border: 1px solid var(--bsp-line);
	border-radius: var(--bsp-radius);
	font-family: var(--bsp-font-display);
	font-weight: 600;
	font-size: 14px;
	color: var(--bsp-ink-soft);
	display: flex;
	gap: 10px;
	align-items: center;
	transition: all 0.18s ease;
}

.bsp-steps__item span {
	font-family: var(--bsp-font-mono);
	font-size: 11px;
	color: var(--bsp-muted);
	letter-spacing: 0.1em;
	background: #fff;
	padding: 3px 7px;
	border-radius: 6px;
	border: 1px solid var(--bsp-line);
}

.bsp-steps__item:hover {
	background: var(--bsp-primary-soft);
	border-color: var(--bsp-primary);
	color: var(--bsp-primary);
}

.bsp-steps__item.is-active {
	background: var(--bsp-primary);
	border-color: var(--bsp-primary);
	color: #fff;
	box-shadow: var(--bsp-shadow-blue);
}

.bsp-steps__item.is-active span {
	background: rgba(255,255,255,0.18);
	border-color: transparent;
	color: #fff;
}

.bsp-steps__item.is-done {
	background: #fff;
	border-color: var(--bsp-primary-soft);
	color: var(--bsp-primary);
}

.bsp-steps__item.is-done span::after {
	content: ' ✓';
	color: var(--bsp-accent);
}

/* =========================== PANELS =========================== */
.bsp-panel {
	background: #fff;
	border: 1px solid var(--bsp-line);
	border-radius: var(--bsp-radius);
	padding: clamp(22px, 3vw, 36px);
	margin-bottom: 24px;
}

.bsp-panel__intro { margin-bottom: 24px; }

.bsp-panel__intro h2 {
	font-size: clamp(24px, 3vw, 30px);
	font-weight: 800;
	color: var(--bsp-ink);
}

.bsp-panel__intro p {
	color: var(--bsp-muted);
	margin: 0;
}

.bsp-panel__intro--with-actions {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 18px;
	flex-wrap: wrap;
}

.bsp-panel__nav {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid var(--bsp-line);
}

/* =========================== GRID & FIELDS =========================== */
.bsp-grid { display: grid; gap: 18px 24px; }
.bsp-grid--2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.bsp-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 14px;
}

.bsp-field__label {
	font-weight: 600;
	color: var(--bsp-ink);
	display: flex;
	gap: 8px;
	align-items: center;
}

.bsp-field__label em {
	font-style: normal;
	font-weight: 700;
	color: var(--bsp-primary);
}

.bsp-field__hint {
	color: var(--bsp-muted);
	font-size: 12.5px;
}

.bsp-input {
	font: inherit;
	font-family: var(--bsp-font-body);
	font-size: 15px;
	padding: 11px 14px;
	background: #fff;
	border: 1.5px solid var(--bsp-line-strong);
	border-radius: var(--bsp-radius-sm);
	color: var(--bsp-ink);
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.bsp-input:focus {
	outline: none;
	border-color: var(--bsp-primary);
	box-shadow: 0 0 0 3px rgba(7, 57, 144, 0.16);
}

.bsp-input[type="number"] { max-width: 160px; }

.bsp-field input[type="checkbox"] {
	width: 18px;
	height: 18px;
	accent-color: var(--bsp-primary);
}

/* Grouped checkbox row — used for "I want to take a day off…" cluster */
.bsp-field--span2 { grid-column: 1 / -1; }

.bsp-checkbox-row {
	display: flex;
	gap: 28px;
	flex-wrap: wrap;
	padding: 14px 16px;
	background: var(--bsp-bg-soft);
	border: 1px solid var(--bsp-line);
	border-radius: var(--bsp-radius-sm);
	margin-top: 2px;
}

.bsp-check {
	display: flex;
	gap: 10px;
	align-items: center;
	font-weight: 500;
	color: var(--bsp-ink);
	cursor: pointer;
	user-select: none;
}

.bsp-check input[type="checkbox"] {
	width: 18px;
	height: 18px;
	accent-color: var(--bsp-primary);
	cursor: pointer;
}

.bsp-check em {
	font-style: normal;
	font-weight: 700;
	color: var(--bsp-primary);
}

/* =========================== BUTTONS =========================== */
.bsp-btn {
	all: unset;
	cursor: pointer;
	font: inherit;
	font-family: var(--bsp-font-display);
	font-weight: 600;
	font-size: 14px;
	padding: 11px 22px;
	border-radius: var(--bsp-radius-pill);
	border: 1.5px solid transparent;
	transition: transform 0.12s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
}

.bsp-btn:active { transform: translateY(1px); }

.bsp-btn--primary {
	background: var(--bsp-primary);
	color: #fff;
	box-shadow: var(--bsp-shadow-blue);
}

.bsp-btn--primary:hover {
	background: var(--bsp-primary-dark);
	box-shadow: 0 10px 24px -10px rgba(7, 57, 144, 0.65);
}

.bsp-btn--ghost {
	background: #fff;
	color: var(--bsp-primary);
	border-color: var(--bsp-line-strong);
}

.bsp-btn--ghost:hover {
	background: var(--bsp-primary-soft);
	border-color: var(--bsp-primary);
}

.bsp-btn--danger {
	background: transparent;
	color: var(--bsp-delete);
	border-color: var(--bsp-line-strong);
}

.bsp-btn--danger:hover {
	background: var(--bsp-bg-soft);
	color: var(--bsp-primary-dark);
	border-color: var(--bsp-primary);
}

.bsp-btn--icon {
	padding: 7px 12px;
	font-size: 13px;
	border-radius: var(--bsp-radius-pill);
}

/* =========================== MATERIALS =========================== */
.bsp-materials-section { margin-bottom: 28px; }

.bsp-materials-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--bsp-line);
}

.bsp-materials-header h3 {
	font-size: 20px;
	font-weight: 700;
	color: var(--bsp-primary);
}

.bsp-materials-header__actions {
	display: inline-flex;
	gap: 6px;
	align-items: center;
	flex-wrap: wrap;
}

.bsp-materials-table { display: grid; gap: 8px; }

.bsp-material-row {
	display: grid;
	grid-template-columns: 1fr 110px auto;
	gap: 10px;
	align-items: center;
	padding: 8px 10px;
	background: var(--bsp-bg-soft);
	border-radius: var(--bsp-radius-sm);
	border: 1px solid transparent;
	transition: border-color 0.15s ease;
}

.bsp-material-row:hover { border-color: var(--bsp-line); }

.bsp-material-row .bsp-input { padding: 9px 12px; background: #fff; }

.bsp-materials-total {
	margin-top: 14px;
	font-size: 14px;
	color: var(--bsp-muted);
	font-family: var(--bsp-font-mono);
	text-align: right;
}

.bsp-materials-total span {
	color: var(--bsp-primary);
	font-weight: 700;
}

/* =========================== SCHEDULE =========================== */
.bsp-schedule-actions {
	display: flex;
	gap: 10px;
	align-items: center;
	flex-wrap: wrap;
}

.bsp-view-toggle {
	display: inline-flex;
	background: var(--bsp-bg-soft);
	border: 1px solid var(--bsp-line);
	border-radius: var(--bsp-radius-pill);
	padding: 3px;
}

.bsp-view-toggle__btn {
	all: unset;
	cursor: pointer;
	padding: 7px 16px;
	font-size: 13px;
	color: var(--bsp-ink-soft);
	font-weight: 600;
	border-radius: var(--bsp-radius-pill);
	font-family: var(--bsp-font-display);
}

.bsp-view-toggle__btn.is-active {
	background: var(--bsp-primary);
	color: #fff;
}

.bsp-export-group { display: inline-flex; gap: 6px; }

.bsp-schedule-summary {
	color: var(--bsp-muted);
	margin: 4px 0 0;
}

.bsp-progress-bar {
	height: 8px;
	background: var(--bsp-bg-soft);
	border-radius: var(--bsp-radius-pill);
	overflow: hidden;
	margin: 18px 0 6px;
	border: 1px solid var(--bsp-line);
}

.bsp-progress-bar__fill {
	height: 100%;
	background: linear-gradient(90deg, var(--bsp-primary), var(--bsp-accent));
	width: 0%;
	transition: width 0.5s ease;
}

.bsp-progress-text {
	font-size: 13px;
	color: var(--bsp-muted);
	font-family: var(--bsp-font-mono);
	margin-bottom: 16px;
}

/* ---------- List view ---------- */
.bsp-schedule-list { display: grid; gap: 6px; }

.bsp-day {
	display: grid;
	grid-template-columns: 110px 1fr auto;
	gap: 16px;
	padding: 14px 18px;
	background: #fff;
	border: 1px solid var(--bsp-line);
	border-radius: var(--bsp-radius-sm);
	align-items: center;
	transition: border-color 0.18s ease, transform 0.12s ease;
}

.bsp-day:hover {
	border-color: var(--bsp-primary);
	transform: translateX(2px);
}

.bsp-day.is-today {
	border-color: var(--bsp-primary);
	background: var(--bsp-primary-soft);
	box-shadow: inset 3px 0 0 var(--bsp-primary);
}

.bsp-day.is-done { opacity: 0.55; }
.bsp-day.is-done .bsp-day__title { text-decoration: line-through; }

.bsp-day.is-exam {
	background: linear-gradient(135deg, var(--bsp-primary), var(--bsp-primary-dark));
	color: #fff;
	border-color: var(--bsp-primary-dark);
	box-shadow: var(--bsp-shadow-blue);
}
.bsp-day.is-exam .bsp-day__date { color: rgba(255,255,255,0.7); }
.bsp-day.is-exam .bsp-day__date strong { color: #fff; }
.bsp-day.is-exam .bsp-day__title {
	color: #fff;
	font-family: var(--bsp-font-display);
	font-weight: 800;
	font-size: 18px;
	letter-spacing: -0.01em;
}
.bsp-day.is-exam .bsp-day__sub { color: rgba(255,255,255,0.85); }

.bsp-day.is-off {
	background: var(--bsp-bg-soft);
	border-style: dashed;
}
.bsp-day.is-off .bsp-day__title { color: var(--bsp-muted); }

.bsp-day.is-rest { background: var(--bsp-bg-soft); }
.bsp-day.is-rest .bsp-day__title { color: var(--bsp-muted); }

.bsp-day.is-practice {
	background: linear-gradient(180deg, #fff, var(--bsp-primary-tint));
	border-color: var(--bsp-primary-soft);
}
.bsp-day.is-practice .bsp-day__title::before {
	content: '✎ ';
	color: var(--bsp-primary);
}

.bsp-day.is-review { background: var(--bsp-primary-tint); }

.bsp-day__date {
	font-family: var(--bsp-font-mono);
	font-size: 11px;
	letter-spacing: 0.04em;
	color: var(--bsp-muted);
	text-transform: uppercase;
}

.bsp-day__date strong {
	display: block;
	font-family: var(--bsp-font-display);
	font-size: 24px;
	color: var(--bsp-primary);
	letter-spacing: -0.02em;
	font-weight: 700;
	line-height: 1;
	margin: 2px 0;
}

.bsp-day__title {
	font-weight: 600;
	font-size: 15px;
	color: var(--bsp-ink);
}

.bsp-day__sub {
	font-size: 13px;
	color: var(--bsp-muted);
	font-family: var(--bsp-font-mono);
	margin-top: 2px;
}

.bsp-day__actions { display: inline-flex; gap: 4px; }

/* ---------- Calendar view ---------- */
.bsp-cal { margin-top: 8px; }

.bsp-cal__month { margin-bottom: 28px; }

.bsp-cal__month-title {
	font-family: var(--bsp-font-display);
	font-weight: 700;
	font-size: 22px;
	color: var(--bsp-primary);
	margin: 0 0 12px;
	display: flex;
	gap: 12px;
	align-items: baseline;
	letter-spacing: -0.02em;
}

.bsp-cal__month-title small {
	font-family: var(--bsp-font-mono);
	font-size: 11px;
	color: var(--bsp-muted);
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.bsp-cal__grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 1px;
	background: var(--bsp-line);
	border: 1px solid var(--bsp-line);
	border-radius: var(--bsp-radius-sm);
	overflow: hidden;
}

.bsp-cal__dow {
	background: var(--bsp-bg-soft);
	padding: 9px 6px;
	font-family: var(--bsp-font-display);
	font-weight: 600;
	font-size: 11px;
	color: var(--bsp-muted);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	text-align: center;
}

.bsp-cal__cell {
	background: #fff;
	min-height: 96px;
	padding: 8px 8px 6px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 12px;
	position: relative;
}

.bsp-cal__cell.is-blank { background: var(--bsp-bg-soft); }
.bsp-cal__cell.is-today { box-shadow: inset 0 0 0 2px var(--bsp-primary); }
.bsp-cal__cell.is-exam {
	background: linear-gradient(135deg, var(--bsp-primary), var(--bsp-primary-dark));
	color: #fff;
}
.bsp-cal__cell.is-exam .bsp-cal__num { color: rgba(255,255,255,0.75); }
.bsp-cal__cell.is-off { background: var(--bsp-bg-soft); }
.bsp-cal__cell.is-rest { background: var(--bsp-bg-soft); }
.bsp-cal__cell.is-practice { background: var(--bsp-primary-tint); }
.bsp-cal__cell.is-review { background: #f9fbfe; }

.bsp-cal__num {
	font-family: var(--bsp-font-mono);
	font-size: 12px;
	color: var(--bsp-muted);
	align-self: flex-end;
	font-weight: 500;
}

.bsp-cal__title {
	font-size: 11.5px;
	line-height: 1.3;
	font-weight: 600;
	color: var(--bsp-ink);
}

.bsp-cal__sub {
	font-size: 10.5px;
	color: var(--bsp-muted);
	font-family: var(--bsp-font-mono);
}

.bsp-cal__cell.is-exam .bsp-cal__sub,
.bsp-cal__cell.is-exam .bsp-cal__title { color: #fff; }

/* Completion checkbox in calendar cells (web-only — not in PDF exports) */
.bsp-cal__check {
	position: absolute;
	bottom: 4px;
	left: 4px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 1;
}

.bsp-cal__check input[type="checkbox"] {
	width: 16px;
	height: 16px;
	accent-color: var(--bsp-primary);
	cursor: pointer;
	margin: 0;
}

.bsp-cal__cell.is-completed {
	background: var(--bsp-primary-soft);
}

.bsp-cal__cell.is-completed .bsp-cal__title {
	color: var(--bsp-primary);
	text-decoration: line-through;
}

.bsp-cal__cell.is-completed::after {
	content: '✓';
	position: absolute;
	top: 6px;
	left: 6px;
	font-size: 11px;
	font-weight: 700;
	color: var(--bsp-accent);
	pointer-events: none;
}

/* =========================== MODAL =========================== */
.bsp-modal {
	position: fixed;
	inset: 0;
	background: rgba(10, 31, 61, 0.45);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 99999;
	padding: 16px;
	backdrop-filter: blur(3px);
}

.bsp-modal__panel {
	background: #fff;
	border-radius: var(--bsp-radius);
	border: 1px solid var(--bsp-line);
	padding: 30px;
	max-width: 480px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: var(--bsp-shadow-2);
}

.bsp-modal__panel h3 {
	margin-bottom: 12px;
	font-size: 22px;
	font-weight: 800;
	color: var(--bsp-ink);
}

.bsp-modal__help {
	font-size: 13px;
	color: var(--bsp-muted);
}

.bsp-modal__actions {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 22px;
}

/* Login prompt (download gate) */
.bsp-login-prompt {
	text-align: center;
	padding: 8px 0 0;
}

.bsp-login-prompt__icon {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--bsp-primary-soft);
	color: var(--bsp-primary);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	margin-bottom: 12px;
}

.bsp-login-prompt p {
	color: var(--bsp-muted);
	margin-bottom: 16px;
}

.bsp-login-prompt__buttons {
	display: flex;
	gap: 10px;
	justify-content: center;
	flex-wrap: wrap;
}

/* =========================== LIBRARY DRAWER =========================== */
.bsp-library {
	position: fixed;
	top: 0;
	right: 0;
	width: min(380px, 100%);
	height: 100vh;
	background: #fff;
	border-left: 1px solid var(--bsp-line);
	box-shadow: var(--bsp-shadow-2);
	z-index: 99998;
	padding: 26px;
	overflow-y: auto;
}

.bsp-library__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 18px;
}

.bsp-library__header h3 {
	font-size: 20px;
	font-weight: 700;
	color: var(--bsp-primary);
}

.bsp-library__close {
	all: unset;
	cursor: pointer;
	font-size: 28px;
	color: var(--bsp-muted);
	padding: 0 6px;
	line-height: 1;
}

.bsp-library__list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 8px;
}

.bsp-library__item {
	background: var(--bsp-bg-soft);
	border: 1px solid var(--bsp-line);
	border-radius: var(--bsp-radius-sm);
	padding: 14px 16px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	transition: border-color 0.15s ease;
}

.bsp-library__item:hover { border-color: var(--bsp-primary); }

.bsp-library__item-name { font-weight: 600; display: block; color: var(--bsp-ink); }

.bsp-library__item-meta {
	font-family: var(--bsp-font-mono);
	font-size: 11px;
	color: var(--bsp-muted);
}

.bsp-library__empty { color: var(--bsp-muted); }

/* =========================== TOAST =========================== */
.bsp-toast {
	position: fixed;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--bsp-ink);
	color: #fff;
	padding: 12px 22px;
	border-radius: var(--bsp-radius-pill);
	font-size: 14px;
	font-weight: 500;
	box-shadow: var(--bsp-shadow-2);
	z-index: 100000;
	animation: bsp-toast-in 0.3s ease;
}

@keyframes bsp-toast-in {
	from { opacity: 0; transform: translate(-50%, 12px); }
	to   { opacity: 1; transform: translate(-50%, 0); }
}

/* =========================== PROGRESS DIALOG INTERNALS =========================== */
.bsp-progress-day {
	display: grid;
	grid-template-columns: 1fr 120px;
	gap: 10px;
	margin-bottom: 10px;
	align-items: center;
	font-size: 14px;
}

.bsp-progress-day__name { color: var(--bsp-ink-soft); font-weight: 500; }
.bsp-progress-day__name small {
	display: block;
	color: var(--bsp-muted);
	font-family: var(--bsp-font-mono);
	font-size: 11px;
	font-weight: 400;
}

/* =========================== UTILITIES =========================== */
.bsp-root [hidden] { display: none !important; }
.bsp-only-pdf { display: none; }

/* Responsive */
@media (max-width: 720px) {
	.bsp-steps__item { font-size: 13px; padding: 12px 10px; }
	.bsp-day { grid-template-columns: 90px 1fr; }
	.bsp-day__actions { grid-column: 1 / -1; justify-content: flex-end; }
	.bsp-cal__cell { min-height: 64px; font-size: 11px; }
	.bsp-cal__title { font-size: 10.5px; }
	.bsp-header__logo { width: 44px; height: 44px; }
}

@media (max-width: 520px) {
	.bsp-steps { grid-template-columns: repeat(2, 1fr); }
	.bsp-cal__cell { min-height: 52px; padding: 4px; }
	.bsp-cal__title { display: none; }
}

/* Print friendly */
@media print {
	.bsp-steps, .bsp-panel__nav, .bsp-header__actions,
	.bsp-schedule-actions, .bsp-view-toggle { display: none !important; }
	.bsp-root { box-shadow: none; border: 0; background: white; }
}
