@charset "UTF-8";
/* css/portal-modern.css -- the refreshed student portal look: header.php (top bar, main nav, mobile
   drawer) and the home page (index.php). Same idea as apply/css/apply-modern.css for the public forms.

   How it fits with the rest of the portal css:
   - Loaded AFTER css/style.css + css/adaptive.css and BEFORE the student's colour theme
     (css/theme-*.css, see _inc/portal-theme.php).
   - Everything is opt-in through pm- classes, so pages that haven't been converted yet are untouched.
     The only shared markup is the header, which every portal page includes.
   - All colour comes from the --pm-* variables below, and each one is var(--ps-*, <default look>) --
     the same trick actions/my_info.php uses. With the default theme the --ps-* variables don't exist, so
     the fallback applies; with either high-contrast theme they resolve to that theme's palette with no
     extra work. So a new pm- component is themed automatically as long as it only uses these variables.
     Don't hardcode hex colours in pm- rules -- add a variable instead. The few things a variable can't
     express (soft shadows -> solid rings, links the themes force-underline) live in the small
     "portal-modern" block at the end of each theme file.
   - The school's dark_bg setting re-points the --pm-header-* variables (see header.php).
   - No inline background colours in pm- markup: the dark theme repaints any element with an inline
     style="background:#..." (see the bottom of theme-contrast-dark.css). */

:root {
	--pm-accent: var(--ps-primary, #0C73D2);          /* portal blue, same as .buttonBlue in style.css */
	--pm-accent-hover: var(--ps-primary-hover, #0a5fae);
	--pm-accent-ink: var(--ps-inverse, #ffffff);      /* text on the accent */
	--pm-accent-text: var(--ps-link, #0b63b6);        /* accent used as text on white */
	--pm-accent-soft: var(--ps-surface-alt, rgba(12,115,210,.09));
	--pm-accent-ring: var(--ps-focus-ring, rgba(12,115,210,.32));

	--pm-surface: var(--ps-surface, #ffffff);         /* cards */
	--pm-surface-alt: var(--ps-surface-alt, #f5f7fa); /* sub panels, hover rows, page wash */
	--pm-text: var(--ps-text, #1f2933);
	--pm-text-soft: var(--ps-text-soft, #5b6775);     /* 5.7:1 on white -- AA, so no opacity tricks needed */
	--pm-line: var(--ps-border-soft, #e3e8ee);
	--pm-line-strong: var(--ps-border, #cfd6de);
	--pm-shadow: 0 1px 2px rgba(16,24,40,.05), 0 4px 14px -6px rgba(16,24,40,.12);
	--pm-shadow-hover: 0 2px 4px rgba(16,24,40,.06), 0 10px 24px -10px rgba(16,24,40,.25);

	--pm-header-bg: var(--ps-surface, #ffffff);
	--pm-header-text: var(--ps-text, #1f2933);
	--pm-header-soft: var(--ps-text-soft, #5b6775);
	--pm-header-line: var(--ps-border-soft, #e3e8ee);
	--pm-header-fill: var(--ps-surface-alt, #f1f4f8); /* hover behind header buttons / tabs */

	--pm-danger: var(--ps-danger, #b42318);     --pm-danger-bg: var(--ps-alarm, #fef3f2);          --pm-danger-line: var(--ps-danger, #fecdca);
	--pm-warn: var(--ps-warn-text, #93370d);    --pm-warn-bg: var(--ps-attention2, #fffaeb);       --pm-warn-line: var(--ps-warn-text, #fedf89);
	--pm-success: var(--ps-success, #067647);   --pm-success-bg: var(--ps-surface-alt, #ecfdf3);   --pm-success-line: var(--ps-success, #abefc6);
	--pm-info: var(--pm-accent-text);           --pm-info-bg: var(--pm-accent-soft);               --pm-info-line: var(--ps-border-soft, rgba(12,115,210,.25));

	--pm-radius: 14px;
	--pm-radius-sm: 10px;
	--pm-focus: 0 0 0 3px var(--pm-accent-ring);
}

/* Material Icons glyph used by pm_icon() */
.pm-mi { font-size: 20px; line-height: 1; vertical-align: middle; flex: 0 0 auto; -webkit-user-select: none; user-select: none; }

/* =====================================================================================================
   HEADER  (header.php)
   ===================================================================================================== */

#header.pm-header {
	height: auto; min-width: 0; padding: 0; margin: 0;
	background: var(--pm-header-bg); color: var(--pm-header-text);
	border-bottom: 1px solid var(--pm-header-line);
	font-family: 'Open Sans', sans-serif;
}
.pm-topbar { display: flex; align-items: center; gap: 14px; padding: 12px 20px; min-height: 56px; }
.pm-header #logo { position: static; float: none; margin: 0; z-index: auto; flex: 0 0 auto; overflow: visible; }
.pm-header #logo img { display: block; height: auto; max-height: 56px; max-width: 240px; width: auto; }
.pm-topbar-spacer { flex: 1 1 auto; }

/* greeting chip: opens My Info (account + display/theme settings) */
.pm-user {
	display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 5px 12px 5px 5px;
	border: 1px solid var(--pm-header-line); border-radius: 999px; background: transparent;
	color: var(--pm-header-text); font: inherit; text-align: left; cursor: pointer;
	transition: background .15s ease, border-color .15s ease;
}
.pm-user:hover { background: var(--pm-header-fill); }
.pm-user:focus-visible { outline: none; box-shadow: var(--pm-focus); }
.pm-avatar {
	flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--pm-accent-soft); color: var(--pm-accent-text);
	box-shadow: inset 0 0 0 1px var(--pm-accent-ring);
}
.pm-user .pm-avatar .pm-mi, .pm-drawer-head .pm-avatar .pm-mi { font-size: 24px; color: inherit; }
.pm-user-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.pm-user-name { font-size: 15px; font-weight: 600; white-space: nowrap; }
.pm-user-sub { font-size: 12px; color: var(--pm-header-soft); white-space: nowrap; }
.pm-user .pm-mi { font-size: 18px; color: var(--pm-header-soft); }

/* help / log out */
.pm-hactions { display: flex; align-items: center; gap: 4px; }
.pm-hbtn, a.pm-hbtn:link, a.pm-hbtn:visited {
	display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 9px;
	color: var(--pm-header-soft); font-size: 14px; font-weight: 600; text-decoration: none;
	transition: background .15s ease, color .15s ease;
}
.pm-hbtn:hover, a.pm-hbtn:hover { background: var(--pm-header-fill); color: var(--pm-header-text); text-decoration: none; }
a.pm-hbtn-out:hover { color: var(--pm-danger); }
.pm-hbtn:focus-visible { outline: none; box-shadow: var(--pm-focus); }

/* dual-enrolment student ID switcher */
.pm-swap { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--pm-header-soft); }
.pm-swap select.field {
	max-width: 260px; margin: 0; padding: 6px 8px; font-size: 13px; font-family: inherit;
	border: 1px solid var(--pm-header-line); border-radius: 8px; background: var(--pm-surface); color: var(--pm-text);
}

/* hamburger, phones / tablets only */
.pm-burger {
	display: none; align-items: center; justify-content: center; flex: 0 0 auto;
	width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 11px;
	background: var(--pm-accent); color: var(--pm-accent-ink); cursor: pointer;
}
.pm-burger .pm-mi { font-size: 28px; }
.pm-burger:focus-visible { outline: none; box-shadow: var(--pm-focus); }

/* main nav: a solid accent bar under the white top bar (the inverse of it), ONE row only.
   Tabs that don't fit move into the "More" dropdown at the end -- pmNavFit() in header.php measures and
   moves them, so schools with every section switched on still get a single clean row on a laptop /
   Chromebook. The current page's tab is never moved. */
.pm-nav {
	display: flex; align-items: stretch; min-height: 46px; padding: 0 10px;
	background: var(--pm-nav-bg, var(--pm-accent)); color: var(--pm-nav-ink, var(--pm-accent-ink));
}
.pm-tabs { display: flex; flex: 1 1 auto; min-width: 0; flex-wrap: nowrap; overflow: hidden; margin: 0; padding: 0; list-style: none; }
.pm-tabs > li, .pm-more-menu > li { margin: 0; padding: 0; list-style: none; flex: 0 0 auto; }
a.pm-tab, a.pm-tab:link, a.pm-tab:visited {
	position: relative; display: flex; align-items: center; gap: 7px; height: 100%; box-sizing: border-box; padding: 0 13px;
	color: var(--pm-nav-ink, var(--pm-accent-ink)); font-family: 'Lato', 'Open Sans', sans-serif; font-size: 14px; font-weight: 600;
	text-decoration: none; white-space: nowrap; transition: background .15s ease;
}
a.pm-tab .pm-mi { font-size: 19px; opacity: .9; }
a.pm-tab:hover { background: rgba(0,0,0,.14); color: var(--pm-nav-ink, var(--pm-accent-ink)); text-decoration: none; }
/* current page: darker plate + a bar along the bottom in the bar's own text colour */
a.pm-tab.pm-tab-on, a.pm-tab.pm-tab-on:hover { background: rgba(0,0,0,.24); }
a.pm-tab.pm-tab-on::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: currentColor; }
a.pm-tab:focus-visible { outline: 2px solid currentColor; outline-offset: -4px; box-shadow: none; }

/* "More" overflow menu */
.pm-more { position: relative; flex: 0 0 auto; display: flex; }
.pm-more[hidden] { display: none; }
.pm-more-btn {
	display: flex; align-items: center; gap: 4px; margin: 0; padding: 0 12px; border: 0; background: transparent;
	color: var(--pm-nav-ink, var(--pm-accent-ink)); font-family: 'Lato', 'Open Sans', sans-serif; font-size: 14px; font-weight: 600; cursor: pointer;
}
.pm-more-btn:hover, .pm-more-btn[aria-expanded="true"] { background: rgba(0,0,0,.14); }
.pm-more-btn:focus-visible { outline: 2px solid currentColor; outline-offset: -4px; }
.pm-more-menu {
	position: absolute; right: 0; top: 100%; z-index: 800; min-width: 230px; margin: 4px 0 0 0; padding: 6px;
	background: var(--pm-surface); border: 1px solid var(--pm-line); border-radius: 12px; box-shadow: 0 14px 34px -10px rgba(16,24,40,.35);
}
.pm-more-menu[hidden] { display: none; }
.pm-more-menu a.pm-tab, .pm-more-menu a.pm-tab:link, .pm-more-menu a.pm-tab:visited {
	height: auto; padding: 10px 12px; border-radius: 8px; color: var(--pm-text); font-size: 15px;
}
.pm-more-menu a.pm-tab .pm-mi { color: var(--pm-text-soft); opacity: 1; }
.pm-more-menu a.pm-tab:hover { background: var(--pm-surface-alt); color: var(--pm-text); }

/* mobile drawer -- keeps .mobile-menu / .mobile-menu-button because showMobileMenu() and logClick()
   in js/poliPORTAL.js slide it by animating left between -305px and 0 */
.mobile-menu.pm-drawer {
	position: fixed; top: 0; bottom: 0; left: -305px; z-index: 900 !important;
	box-sizing: border-box; width: 300px; padding: 0 0 20px 0; overflow-y: auto;
	background: var(--pm-surface) !important; box-shadow: 0 0 40px rgba(0,0,0,.25);
}
.pm-drawer-head {
	display: flex; align-items: center; gap: 10px; padding: 14px 14px 14px 16px;
	border-bottom: 1px solid var(--pm-line); color: var(--pm-text);
}
.pm-drawer-head .pm-user-text { flex: 1 1 auto; }
.pm-drawer-head .pm-user-sub { color: var(--pm-text-soft); }
.pm-drawer-close {
	display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
	margin: 0; padding: 0; border: 0; border-radius: 9px; background: transparent; color: var(--pm-text-soft); cursor: pointer;
}
.pm-drawer-close:hover { background: var(--pm-surface-alt); color: var(--pm-text); }
.pm-drawer-close:focus-visible { outline: none; box-shadow: var(--pm-focus); }
.pm-drawer-list { padding: 8px; }
.pm-drawer-sep { height: 1px; margin: 8px 6px; background: var(--pm-line); }
.pm-drawer a.mobile-menu-button, .pm-drawer a.mobile-menu-button:link, .pm-drawer a.mobile-menu-button:visited {
	display: flex; align-items: center; gap: 12px; box-sizing: border-box; width: 100%;
	margin: 0 0 2px 0; padding: 11px 12px; border: 0; border-radius: 10px;
	background: transparent; color: var(--pm-text); font-size: 16px; font-weight: 600; text-decoration: none;
	transition: background .15s ease;
}
.pm-drawer a.mobile-menu-button .pm-mi { font-size: 22px; color: var(--pm-text-soft); }
.pm-drawer a.mobile-menu-button:hover { background: var(--pm-surface-alt); padding-left: 12px; }
.pm-drawer a.mobile-menu-button.pm-tab-on { background: var(--pm-accent-soft); color: var(--pm-accent-text); }
.pm-drawer a.mobile-menu-button.pm-tab-on .pm-mi { color: var(--pm-accent-text); }
.pm-drawer a.pm-drawer-out:hover, .pm-drawer a.pm-drawer-out:hover .pm-mi { color: var(--pm-danger); }

@media screen and (max-width: 1000px) {
	.pm-burger { display: inline-flex; }
	.pm-nav, .pm-hactions { display: none; }
	.pm-topbar { padding: 10px 12px; gap: 10px; flex-wrap: wrap; }
	.pm-header #logo img { max-height: 44px; max-width: 170px; }
	/* adaptive.css pushes #padder down 35px to clear the old absolutely-positioned header */
	#header.pm-header + #padder { margin-top: 0; padding-top: 10px; }
	.pm-swap { order: 10; flex: 1 1 100%; }
	.pm-swap select.field { flex: 1 1 auto; max-width: none; }
}
@media screen and (max-width: 560px) {
	.pm-user { padding: 3px; border: 0; }
	.pm-user .pm-user-text, .pm-user > .pm-mi { display: none; }
}

/* =====================================================================================================
   HOME PAGE  (index.php)
   ===================================================================================================== */

#content.pm-content { padding: 18px 20px 10px 20px; color: var(--pm-text); line-height: 1.5; }
.pm-content h1, .pm-content h2, .pm-content h3 { margin: 0; color: var(--pm-text); }

/* welcome strip */
.pm-hero {
	display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px;
	margin: 0 0 18px 0; padding: 20px 24px; border-radius: var(--pm-radius);
	background: linear-gradient(120deg, var(--pm-accent-soft), var(--pm-surface-alt) 70%);
	border: 1px solid var(--pm-line);
}
.pm-content h1.pm-hero-title { font-size: 24px; font-weight: 600; line-height: 1.25; }
.pm-hero-sub { margin: 2px 0 0 0; color: var(--pm-text-soft); font-size: 14px; }
.pm-hero-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pm-pill {
	display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
	background: var(--pm-surface); border: 1px solid var(--pm-line); color: var(--pm-text);
	font-size: 13px; font-weight: 600; white-space: nowrap;
}
.pm-pill .pm-mi { font-size: 17px; color: var(--pm-accent-text); }
.pm-pill-strong { font-size: 15px; }

/* page grid: optional side column + main column */
.pm-home { display: grid; grid-template-columns: 320px minmax(0,1fr); gap: 20px; align-items: start; }
.pm-home.pm-home-single { grid-template-columns: minmax(0,1fr); }
.pm-side, .pm-main { min-width: 0; display: flex; flex-direction: column; gap: 18px; }

/* cards */
.pm-card {
	box-sizing: border-box; padding: 20px 22px; border-radius: var(--pm-radius);
	background: var(--pm-surface); border: 1px solid var(--pm-line); box-shadow: var(--pm-shadow);
}
.pm-card-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 14px; margin: 0 0 14px 0; }
.pm-content h2.pm-card-title { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; line-height: 1.3; }
.pm-card-title .pm-title-icon {
	display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px;
	background: var(--pm-accent-soft); color: var(--pm-accent-text);
}
.pm-card-title .pm-title-icon .pm-mi { font-size: 20px; }
.pm-count {
	display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 7px;
	border-radius: 999px; box-sizing: border-box; background: var(--pm-surface-alt); border: 1px solid var(--pm-line);
	color: var(--pm-text-soft); font-size: 12px; font-weight: 700;
}
.pm-note { display: flex; align-items: center; gap: 8px; margin: 12px 0 0 0; color: var(--pm-text-soft); font-size: 13px; }
.pm-note .pm-mi { font-size: 17px; }

/* alerts */
.pm-alerts { display: flex; flex-direction: column; gap: 10px; margin: 0 0 18px 0; }
.pm-alerts:empty { display: none; }
.pm-alert {
	display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 12px;
	background: var(--pm-surface-alt); border: 1px solid var(--pm-line); border-left-width: 4px; color: var(--pm-text);
	font-size: 15px; line-height: 1.5;
}
.pm-alert > .pm-mi { font-size: 22px; margin-top: 1px; }
.pm-alert-body { flex: 1 1 auto; min-width: 0; }
.pm-alert-title { display: block; font-weight: 700; margin: 0 0 2px 0; }
.pm-alert-action { flex: 0 0 auto; align-self: center; }
.pm-alert-info    { background: var(--pm-info-bg);    border-color: var(--pm-info-line);    border-left-color: var(--pm-info); }
.pm-alert-info > .pm-mi, .pm-alert-info .pm-alert-title { color: var(--pm-info); }
.pm-alert-warn    { background: var(--pm-warn-bg);    border-color: var(--pm-warn-line);    border-left-color: var(--pm-warn); }
.pm-alert-warn > .pm-mi, .pm-alert-warn .pm-alert-title { color: var(--pm-warn); }
.pm-alert-error   { background: var(--pm-danger-bg);  border-color: var(--pm-danger-line);  border-left-color: var(--pm-danger); }
.pm-alert-error > .pm-mi, .pm-alert-error .pm-alert-title { color: var(--pm-danger); }
.pm-alert-success { background: var(--pm-success-bg); border-color: var(--pm-success-line); border-left-color: var(--pm-success); }
.pm-alert-success > .pm-mi, .pm-alert-success .pm-alert-title { color: var(--pm-success); }

/* buttons */
.pm-btn, a.pm-btn:link, a.pm-btn:visited {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; box-sizing: border-box;
	margin: 0; padding: 9px 16px; border: 1px solid transparent; border-radius: 10px;
	background: var(--pm-accent); color: var(--pm-accent-ink); font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.2;
	text-decoration: none; white-space: nowrap; cursor: pointer; -webkit-appearance: none; appearance: none;
	transition: background .15s ease, box-shadow .15s ease, transform .08s ease;
}
.pm-btn:hover, a.pm-btn:hover { background: var(--pm-accent-hover); color: var(--pm-accent-ink); text-decoration: none; box-shadow: 0 4px 12px -4px var(--pm-accent-ring); }
.pm-btn:active { transform: scale(.98); }
.pm-btn:focus-visible { outline: none; box-shadow: var(--pm-focus); }
.pm-btn[disabled] { opacity: .65; cursor: progress; }
.pm-btn-lg { width: 100%; padding: 14px 18px; font-size: 16px; }
.pm-btn-lg .pm-mi { font-size: 22px; }
.pm-btn-danger, a.pm-btn-danger:link, a.pm-btn-danger:visited { background: var(--pm-danger); }
.pm-btn-danger:hover, a.pm-btn-danger:hover { background: var(--pm-danger); filter: brightness(.9); box-shadow: none; }

/* side column: online courses + certificates */
.pm-lms-text { margin: 0 0 14px 0; color: var(--pm-text-soft); font-size: 14px; }
.pm-cert { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--pm-line); }
.pm-cert:first-child { border-top: 0; padding-top: 0; }
.pm-cert-icon {
	flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px;
	background: var(--pm-warn-bg); color: var(--pm-warn);
}
.pm-cert-body { flex: 1 1 auto; min-width: 0; }
.pm-cert-name { display: block; font-weight: 600; font-size: 14px; line-height: 1.35; }
.pm-cert-date { display: block; font-size: 12px; color: var(--pm-text-soft); }

/* cohort / school messages */
.pm-msg { padding: 14px 0; border-top: 1px solid var(--pm-line); }
.pm-msg:first-child { border-top: 0; padding-top: 0; }
.pm-msg-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 8px 0; }
.pm-msg-when { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--pm-text-soft); }
.pm-msg-when .pm-mi { font-size: 15px; }
.pm-msg-body { padding: 12px 14px; border-radius: var(--pm-radius-sm); background: var(--pm-surface-alt); color: var(--pm-text); font-size: 14px; overflow-wrap: anywhere; }
.pm-msg-body p:first-child { margin-top: 0; }
.pm-msg-body p:last-child { margin-bottom: 0; }

/* small label */
.pm-tag {
	display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 6px;
	background: var(--pm-surface-alt); border: 1px solid var(--pm-line); color: var(--pm-text-soft);
	font-size: 12px; font-weight: 600; line-height: 1.5; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
}
.pm-tag-accent { background: var(--pm-accent-soft); border-color: transparent; color: var(--pm-accent-text); }

/* resources card: two panes -- a grouped browse list (categories / courses / my documents) on the left,
   the files for the current choice on the right. Narrow screens swap the list for one grouped <select>. */
.pm-browse-wrap { display: grid; grid-template-columns: 230px minmax(0,1fr); gap: 0; border: 1px solid var(--pm-line); border-radius: 12px; overflow: hidden; }
.pm-browse { padding: 12px 10px; background: var(--pm-surface-alt); border-right: 1px solid var(--pm-line); }
.pm-browse-group + .pm-browse-group { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--pm-line); }
.pm-browse-h {
	display: flex; align-items: center; gap: 6px; margin: 0 0 6px 0; padding: 0 8px;
	font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--pm-text-soft);
}
.pm-browse-h .pm-mi { font-size: 15px; }
.pm-browse-list { margin: 0; padding: 0; list-style: none; }
.pm-browse-list > li { margin: 0; padding: 0; list-style: none; }
a.pm-browse-item, a.pm-browse-item:link, a.pm-browse-item:visited {
	display: flex; align-items: center; gap: 9px; margin: 0 0 1px 0; padding: 8px 10px; border-radius: 8px;
	color: var(--pm-text); font-size: 14px; font-weight: 500; line-height: 1.3; text-decoration: none;
	transition: background .15s ease, color .15s ease;
}
a.pm-browse-item .pm-mi { font-size: 19px; color: var(--pm-text-soft); }
a.pm-browse-item span { min-width: 0; overflow-wrap: anywhere; }
a.pm-browse-item:hover { background: var(--pm-surface); color: var(--pm-text); text-decoration: none; }
a.pm-browse-item.pm-on, a.pm-browse-item.pm-on:hover {
	background: var(--pm-surface); color: var(--pm-accent-text); font-weight: 700;
	box-shadow: inset 3px 0 0 var(--pm-accent), 0 1px 3px rgba(16,24,40,.08);
}
a.pm-browse-item.pm-on .pm-mi { color: var(--pm-accent-text); }
a.pm-browse-item:focus-visible { outline: none; box-shadow: var(--pm-focus); }

.pm-browse-select { display: none; }
.pm-browse-main { min-width: 0; padding: 16px 18px 18px 18px; background: var(--pm-surface); }
.pm-browse-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 14px; margin: 0 0 12px 0; }
.pm-content h3.pm-browse-current { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 17px; font-weight: 600; line-height: 1.3; }
.pm-browse-current .pm-mi { font-size: 22px; color: var(--pm-accent-text); }

/* filter-as-you-type box */
.pm-search { position: relative; flex: 0 1 260px; min-width: 180px; }
.pm-search .pm-mi { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: 18px; color: var(--pm-text-soft); pointer-events: none; }
.pm-search input.pm-search-input {
	box-sizing: border-box; width: 100%; max-width: none; margin: 0; padding: 8px 12px 8px 34px;
	border: 1px solid var(--pm-line-strong); border-radius: 10px; background: var(--pm-surface); color: var(--pm-text);
	font-family: inherit; font-size: 14px; transition: border-color .15s ease, box-shadow .15s ease;
}
.pm-search input.pm-search-input:focus { outline: none; border-color: var(--pm-accent); box-shadow: var(--pm-focus); }

.pm-popup-note {
	display: flex; align-items: center; gap: 8px; margin: 0 0 12px 0; padding: 8px 12px; border-radius: 9px;
	background: var(--pm-surface-alt); color: var(--pm-text-soft); font-size: 12px;
}
.pm-popup-note .pm-mi { font-size: 16px; }

/* resource rows */
.pm-res-list { display: flex; flex-direction: column; gap: 8px; }
.pm-res {
	display: flex; flex-wrap: wrap; align-items: center; column-gap: 14px; row-gap: 0;
	padding: 12px 14px; border-radius: 12px; background: var(--pm-surface); border: 1px solid var(--pm-line);
	transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.pm-res:hover { border-color: var(--pm-line-strong); box-shadow: var(--pm-shadow-hover); }
.pm-res-icon {
	flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border-radius: 11px; background: var(--pm-accent-soft); color: var(--pm-accent-text);
}
.pm-res-icon .pm-mi { font-size: 24px; }
.pm-res-body { flex: 1 1 200px; min-width: 0; }
.pm-res-title { font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--pm-text); overflow-wrap: anywhere; }
.pm-res-title p { margin: 0; }
.pm-res-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 5px; font-size: 12px; color: var(--pm-text-soft); }
.pm-res-actions { flex: 0 0 auto; display: flex; gap: 6px; }

/* soft per-type tints for the file icon */
.pm-k-red    { background: rgba(217,45,32,.09);  color: #b42318; }
.pm-k-blue   { background: rgba(21,112,239,.09); color: #175cd3; }
.pm-k-green  { background: rgba(3,152,85,.10);   color: #067647; }
.pm-k-orange { background: rgba(247,144,9,.12);  color: #b54708; }
.pm-k-purple { background: rgba(122,90,248,.10); color: #6941c6; }
.pm-k-grey   { background: var(--pm-surface-alt); color: var(--pm-text-soft); }

/* row action buttons (download / open link / watch) */
.pm-act {
	display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 8px 14px;
	border: 1px solid transparent; border-radius: 9px; background: var(--pm-accent-soft); color: var(--pm-accent-text);
	font-family: inherit; font-size: 13px; font-weight: 700; line-height: 1.2; white-space: nowrap; cursor: pointer;
	-webkit-appearance: none; appearance: none; transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.pm-act .pm-mi { font-size: 18px; }
.pm-act:hover { background: var(--pm-accent); color: var(--pm-accent-ink); }
.pm-act:focus-visible { outline: none; box-shadow: var(--pm-focus); }
a.pm-act:link, a.pm-act:visited, a.pm-act:hover { text-decoration: none; }
a.pm-act:link, a.pm-act:visited { color: var(--pm-accent-text); }
a.pm-act:hover { color: var(--pm-accent-ink); }
/* loadVid() in poliPORTAL.js toggles .buttonRed on the open video's button (style.css paints it red) */
.pm-act .pm-open { display: none; }
.pm-act.buttonRed { color: #fff; }
.pm-act.buttonRed .pm-open { display: inline; }
.pm-act.buttonRed .pm-closed { display: none; }

/* expanding video / slides player under a row (height animated by loadVid) */
.pm-res .videoCon { flex: 1 1 100%; position: relative; height: 0; overflow: hidden; padding: 0; }
.pm-video-in { position: absolute; top: 12px; left: 0; right: 0; bottom: 0; border-radius: var(--pm-radius-sm); overflow: hidden; background: #000; }
.pm-video-in .videoContainer { position: absolute; top: 0; left: 0; right: 0; bottom: 0; }
.pm-video-in .videoContainer iframe, .pm-video-in .videoContainer object, .pm-video-in .videoContainer embed {
	position: absolute; top: 0; left: 0; width: 100%; height: 100%;
}
.pm-video-in .videoContainer video { display: block; width: 100%; height: 100%; }

/* empty states */
.pm-empty { padding: 30px 16px; text-align: center; color: var(--pm-text-soft); border: 1px dashed var(--pm-line-strong); border-radius: 12px; }
.pm-empty .pm-mi { display: block; margin: 0 auto 6px auto; font-size: 38px; color: var(--pm-line-strong); }
.pm-empty-t { display: block; font-weight: 600; color: var(--pm-text); font-size: 15px; }
.pm-nomatch { display: none; }

@media screen and (max-width: 1000px) {
	#content.pm-content { margin: 0; padding: 12px 12px 10px 12px; }
	.pm-home, .pm-home.pm-home-single { grid-template-columns: minmax(0,1fr); }
	.pm-hero { padding: 16px 18px; }
}
@media screen and (max-width: 1150px) {
	.pm-browse-wrap { grid-template-columns: minmax(0,1fr); }
	.pm-browse { display: none; }
	.pm-browse-select { display: block; padding: 12px 14px; background: var(--pm-surface-alt); border-bottom: 1px solid var(--pm-line); }
	.pm-browse-select .pm-browse-h { padding: 0; }
	.pm-browse-select select.field {
		display: block; box-sizing: border-box; width: 100%; max-width: none; margin: 0; padding: 9px 10px;
		border: 1px solid var(--pm-line-strong); border-radius: 9px; background: var(--pm-surface); color: var(--pm-text); font-family: inherit; font-size: 15px;
	}
}
@media screen and (max-width: 600px) {
	.pm-content h1.pm-hero-title { font-size: 20px; }
	.pm-card { padding: 16px; border-radius: 12px; }
	.pm-alert { flex-wrap: wrap; }
	.pm-alert-action { flex: 1 1 100%; }
	.pm-alert-action .pm-btn { width: 100%; }
	.pm-search { flex: 1 1 100%; }
	.pm-browse-main { padding: 12px; }
	.pm-res { padding: 12px; column-gap: 12px; }
	.pm-res-icon { width: 38px; height: 38px; }
	.pm-res-actions { flex: 1 1 100%; margin-top: 10px; }
	.pm-res-actions .pm-act { flex: 1 1 auto; justify-content: center; }
	.pm-res .videoCon { order: 5; }
}

/* honour the OS "reduce motion" setting for every pm- hover lift / slide */
@media (prefers-reduced-motion: reduce) {
	[class^="pm-"], [class*=" pm-"], .pm-drawer a.mobile-menu-button { transition: none !important; }
	.pm-btn:active { transform: none; }
}

/* =====================================================================================================
   SECTION PAGES  (my-grades, my-attendance, my-courses, my-payments, my-uploads, my-referrals, my-bookings)
   Each section is a shell page (index.php: page head + tips card + the main card) and usually an iframe'd
   stand-alone document (layouts/student-details.php) whose <body class="pm-embed pm-content"> reuses the
   same components. Same rule as above: colours only via --pm-* variables, no inline backgrounds.
   ===================================================================================================== */

.pm-page-head { display: flex; align-items: center; gap: 14px; margin: 0 0 18px 0; }
.pm-page-icon {
	flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 13px;
	background: var(--pm-accent); color: var(--pm-accent-ink); box-shadow: 0 6px 16px -8px var(--pm-accent-ring);
}
.pm-page-icon .pm-mi { font-size: 26px; }
.pm-content h1.pm-page-title { font-size: 24px; font-weight: 600; line-height: 1.2; }
.pm-page-sub { margin: 2px 0 0 0; font-size: 14px; color: var(--pm-text-soft); }

/* tips side card */
.pm-tips { margin: 0; padding: 0; list-style: none; }
.pm-tips li { display: flex; gap: 10px; margin: 0 0 12px 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.45; color: var(--pm-text); }
.pm-tips li:last-child { margin-bottom: 0; }
.pm-tips li > .pm-mi { font-size: 19px; color: var(--pm-accent-text); margin-top: 1px; }

/* main card that holds a section's iframe */
.pm-frame-card { padding: 0; overflow: hidden; }
.pm-frame-card > iframe { display: block; width: 100%; border: 0; background: transparent; }

/* stand-alone iframe / overlay documents */
body.pm-embed { margin: 0; padding: 16px 18px 24px 18px; background: transparent; color: var(--pm-text); font-family: 'Open Sans', sans-serif; font-size: 14px; line-height: 1.5; }
body.pm-embed.pm-embed-tight { padding: 0; }
/* plain text links only: :where() keeps this at the lowest specificity, so any styled link (pm-btn, pm-act,
   pm-chip, bk-book ...) keeps its own colour, including on hover */
.pm-embed :where(a:not([class])):link, .pm-embed :where(a:not([class])):visited { color: var(--pm-accent-text); }
/* an alert used as a link (e.g. the 1098-T consent notice) keeps alert colours */
a.pm-alert, a.pm-alert:link, a.pm-alert:visited, a.pm-alert:hover { color: var(--pm-text); text-decoration: none; }
.pm-stack { display: flex; flex-direction: column; gap: 18px; }
.pm-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; align-items: start; }

/* headline numbers */
.pm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.pm-stat { box-sizing: border-box; padding: 14px 16px; border-radius: 12px; background: var(--pm-surface); border: 1px solid var(--pm-line); box-shadow: var(--pm-shadow); }
.pm-stat-l { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--pm-text-soft); }
.pm-stat-l .pm-mi { font-size: 17px; }
.pm-stat-v { display: block; margin: 4px 0 0 0; font-size: 26px; font-weight: 700; line-height: 1.15; color: var(--pm-text); font-variant-numeric: tabular-nums; }
.pm-stat-s { display: block; margin: 2px 0 0 0; font-size: 12px; color: var(--pm-text-soft); }
.pm-stat-good { border-left: 4px solid var(--pm-success); }
.pm-stat-good .pm-stat-v { color: var(--pm-success); }
.pm-stat-bad { border-left: 4px solid var(--pm-danger); }
.pm-stat-bad .pm-stat-v { color: var(--pm-danger); }
.pm-stat-accent { border-left: 4px solid var(--pm-accent); }

/* filter row: label + select + Go */
.pm-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 14px 0; }
.pm-toolbar-l { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--pm-text-soft); }
.pm-toolbar-l .pm-mi { font-size: 18px; }
.pm-content select.field, .pm-content input.field[type="text"], .pm-content input.field[type="email"], .pm-content input.field[type="tel"],
.pm-content input.field[type="number"], .pm-content input.field[type="date"], .pm-content input.field:not([type]), .pm-content textarea.field {
	box-sizing: border-box; max-width: 100%; min-height: 38px; margin: 0; padding: 7px 10px; font-family: inherit; font-size: 14px; color: var(--pm-text);
	background: var(--pm-surface); border: 1px solid var(--pm-line-strong); border-radius: 9px; transition: border-color .15s ease, box-shadow .15s ease;
}
.pm-content textarea.field { min-height: 90px; line-height: 1.45; }
.pm-content .field:focus { outline: none; border-color: var(--pm-accent); box-shadow: var(--pm-focus); }
.pm-btn-sm, a.pm-btn-sm:link, a.pm-btn-sm:visited { padding: 7px 12px; font-size: 13px; border-radius: 8px; }
.pm-btn-ghost, a.pm-btn-ghost:link, a.pm-btn-ghost:visited { background: var(--pm-surface); color: var(--pm-text); border-color: var(--pm-line-strong); }
.pm-btn-ghost:hover, a.pm-btn-ghost:hover { background: var(--pm-surface-alt); color: var(--pm-text); box-shadow: none; }
.pm-btn-success, a.pm-btn-success:link, a.pm-btn-success:visited { background: var(--pm-success); }
.pm-btn-success:hover, a.pm-btn-success:hover { background: var(--pm-success); filter: brightness(.92); box-shadow: none; }

/* data tables */
.pm-table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--pm-line); border-radius: 12px; background: var(--pm-surface); }
.pm-table { width: 100%; border-collapse: collapse; border-spacing: 0; font-size: 14px; color: var(--pm-text); }
.pm-table th, .pm-table > thead > tr > td, .pm-table tr.pm-th > td {
	padding: 10px 12px; background: var(--pm-surface-alt); border-bottom: 1px solid var(--pm-line-strong);
	font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--pm-text-soft); text-align: left; white-space: nowrap;
}
.pm-table td { padding: 10px 12px; border-bottom: 1px solid var(--pm-line); vertical-align: middle; }
.pm-table tbody tr:last-child > td, .pm-table tr:last-child > td { border-bottom: 0; }
.pm-table tbody tr:hover > td { background: var(--pm-surface-alt); }
.pm-table .pm-c { text-align: center; }
.pm-table .pm-r { text-align: right; }
.pm-table .pm-num { font-variant-numeric: tabular-nums; font-weight: 600; }
.pm-table tr.pm-row-warn > td { background: var(--pm-warn-bg); }
.pm-table tr.pm-row-bad > td { background: var(--pm-danger-bg); }
.pm-table tr.pm-row-faded > td, .pm-row-faded { opacity: .45; }
.pm-table-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 18px; padding: 10px 12px; border-top: 1px solid var(--pm-line); background: var(--pm-surface-alt); font-size: 13px; color: var(--pm-text-soft); }
.pm-table-foot strong { color: var(--pm-text); }
.pm-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0 0 0; font-size: 12px; color: var(--pm-text-soft); }
.pm-legend > span { display: inline-flex; align-items: center; gap: 5px; }
.pm-legend .pm-mi { font-size: 16px; }

/* status words */
.pm-badge {
	display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--pm-line);
	background: var(--pm-surface-alt); color: var(--pm-text-soft); font-size: 12px; font-weight: 700; line-height: 1.5; white-space: nowrap;
}
.pm-badge .pm-mi { font-size: 14px; }
.pm-badge-ok   { background: var(--pm-success-bg); border-color: var(--pm-success-line); color: var(--pm-success); }
.pm-badge-warn { background: var(--pm-warn-bg);    border-color: var(--pm-warn-line);    color: var(--pm-warn); }
.pm-badge-bad  { background: var(--pm-danger-bg);  border-color: var(--pm-danger-line);  color: var(--pm-danger); }
.pm-badge-info { background: var(--pm-accent-soft); border-color: var(--pm-info-line);   color: var(--pm-accent-text); }
.pm-good { color: var(--pm-success); font-weight: 700; }
.pm-bad  { color: var(--pm-danger); font-weight: 700; }
.pm-soft { color: var(--pm-text-soft); }

/* paging */
.pm-pager { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px; margin: 12px 0 0 0; }
.pm-pager .pm-pager-info { margin-right: auto; font-size: 12px; color: var(--pm-text-soft); }

/* staff notes that used to be hover-only: tap / click to open, works on phones */
details.pm-reveal { display: inline-block; text-align: left; }
details.pm-reveal > summary {
	display: inline-flex; align-items: center; gap: 4px; cursor: pointer; list-style: none;
	color: var(--pm-accent-text); font-size: 13px; font-weight: 700;
}
details.pm-reveal > summary::-webkit-details-marker { display: none; }
details.pm-reveal > summary .pm-mi { font-size: 17px; }
details.pm-reveal[open] > summary { margin-bottom: 6px; }
.pm-reveal-body { max-width: 340px; padding: 8px 10px; border-radius: 8px; background: var(--pm-surface-alt); border: 1px solid var(--pm-line); color: var(--pm-text); font-size: 13px; font-weight: 400; line-height: 1.45; white-space: normal; }

/* a section heading inside a card / embedded document */
.pm-sec-title { display: flex; align-items: center; gap: 8px; margin: 0 0 12px 0; font-size: 16px; font-weight: 600; color: var(--pm-text); }
.pm-sec-title .pm-mi { font-size: 20px; color: var(--pm-accent-text); }

@media screen and (max-width: 1000px) {
	.pm-grid-2 { grid-template-columns: minmax(0,1fr); }
}
@media screen and (max-width: 600px) {
	body.pm-embed { padding: 10px 8px 18px 8px; }
	.pm-content h1.pm-page-title { font-size: 20px; }
	.pm-page-icon { width: 40px; height: 40px; }
	.pm-stat-v { font-size: 22px; }
	.pm-table th, .pm-table td, .pm-table tr.pm-th > td { padding: 8px; }
}

/* "Updating..." overlay shown by the old ray.ajax() helpers while a filter reloads the page */
.pm-loading {
	position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 999; display: flex; align-items: center; justify-content: center; gap: 10px;
	background: rgba(255,255,255,.7); color: var(--pm-text); font-size: 15px; font-weight: 600;
}
.pm-spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--pm-line-strong); border-top-color: var(--pm-accent); animation: pm-spin .8s linear infinite; }
@keyframes pm-spin { to { transform: rotate(360deg); } }

/* a card that's an ACTION rather than a list (e.g. "Register in a New Course" under the registrations
   list): accent frame, tinted background, coloured top bar. Rows inside stay on the plain surface. */
.pm-card.pm-card-feature {
	position: relative; overflow: hidden;
	background: linear-gradient(180deg, var(--pm-accent-soft), var(--pm-surface-alt) 120px, var(--pm-surface-alt));
	border: 2px solid var(--pm-accent);
	box-shadow: 0 10px 28px -14px var(--pm-accent-ring), var(--pm-shadow);
}
.pm-card.pm-card-feature::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--pm-accent); }
.pm-card.pm-card-feature .pm-title-icon { background: var(--pm-accent); color: var(--pm-accent-ink); }

/* light-touch stand-alone screens (Stripe / payment actions, overlays): shared font + colours only,
   no padding or sizing changes, so each page's own layout CSS still applies */
body.pm-lite { font-family: 'Open Sans', sans-serif; color: var(--pm-text); }
.pm-lite .pm-lite-card, .pm-lite #container { background: var(--pm-surface); color: var(--pm-text); border: 1px solid var(--pm-line); border-radius: 14px; box-shadow: var(--pm-shadow); }
.pm-lite input[type="submit"].pm-btn, .pm-lite input[type="button"].pm-btn { -webkit-appearance: none; appearance: none; }

/* =====================================================================================================
   BOOKINGS (my-bookings/_inc/week-view.php + month-view.php)
   Same look as the schedules calendar (schedules/layouts/month-cal.php): rounded day cells, round date
   badges, today highlighted, each slot an entry card with a coloured left edge. The slot STATUS colours
   are the booking system's original ones (open = soft green, yours = white / bold green, taken = grey,
   reserved by the school = pinkish, not available = pink, holiday = dark grey, requested = red,
   48hr = blue). Each is a --bk-* variable with the var(--ps-*, original) fallback, so the high-contrast
   themes repaint them automatically. Every state also has an icon / wording: colour is never the only cue.
   ===================================================================================================== */
:root {
	--bk-open-bg: var(--ps-surface, rgba(198,232,186,.6));  --bk-open-edge: var(--ps-success, #4f9a3a);  --bk-open-ink: var(--ps-success, #2f6a1f);
	--bk-mine-bg: var(--ps-surface, #ffffff);               --bk-mine-edge: var(--ps-success, #2e8b2e);  --bk-mine-ink: var(--ps-success, #1f7a1f);
	--bk-taken-bg: var(--ps-surface-alt, #dddddd);          --bk-taken-edge: var(--ps-border-soft, #9a9a9a); --bk-taken-ink: var(--ps-text, #333333);
	--bk-admin-bg: var(--ps-surface-alt, #ECE0E0);          --bk-admin-edge: var(--ps-border-soft, #b58f8f); --bk-admin-ink: var(--ps-text, #444444);
	--bk-max-bg: var(--ps-surface-alt, #f4f4f4);            --bk-max-edge: var(--ps-border-soft, #c4c4c4);   --bk-max-ink: var(--ps-text-soft, #555555);
	--bk-na-bg: var(--ps-alarm, #FFCCCC);                   --bk-na-edge: var(--ps-danger, #c0392b);     --bk-na-ink: var(--ps-danger, #8a1c1c);
	--bk-closed-bg: var(--ps-surface-alt, #dddddd);         --bk-closed-edge: var(--ps-border-soft, #aaaaaa); --bk-closed-ink: var(--ps-text-soft, #777777);
	--bk-blocked-bg: var(--ps-surface-alt, #dddddd);        --bk-blocked-edge: var(--ps-danger, #990000);  --bk-blocked-ink: var(--ps-danger, #990000);
	--bk-holiday-bg: var(--ps-surface-alt, #444444);        --bk-holiday-edge: var(--ps-border, #222222);  --bk-holiday-ink: var(--ps-text, #ffffff);
	--bk-other-bg: var(--ps-surface, #ffffff);              --bk-other-edge: var(--ps-border-soft, #999999); --bk-other-ink: var(--ps-text-soft, #666666);
	--bk-req: var(--ps-danger, #c0392b);
	--bk-hrs: var(--ps-link, #1a5fb4);
	--bk-hrs-open: var(--ps-warn-text, #c46a00);
}

.bk-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.bk-table { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 4px; table-layout: fixed; }
.bk-table td { padding: 0; vertical-align: middle; }
.bk-nav { width: 56px; text-align: center; }
.bk-navbtn { width: 44px; height: 44px; padding: 0; border-radius: 12px; }
.bk-navbtn .pm-mi { font-size: 26px; }

/* day headers: weekday / round date badge / month, like the schedules grid */
.bk-day { padding: 6px 4px 8px 4px !important; text-align: center; background: none; color: var(--pm-text); }
.bk-day .bk-dow { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--pm-text-soft); }
.bk-day .bk-daynum { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin: 3px 0 1px 0; border-radius: 50%; font-size: 15px; font-weight: 700; background: var(--pm-surface-alt); color: var(--pm-text); }
.bk-day .bk-mon { display: block; font-size: 11px; color: var(--pm-text-soft); }
.bk-day.bk-today .bk-daynum { background: var(--pm-accent); color: var(--pm-accent-ink); }
.bk-day.bk-today .bk-dow { color: var(--pm-accent-text); }

/* time labels at both ends of each row */
.bk-time { width: 92px; padding: 4px !important; text-align: center; white-space: nowrap; }
td.bk-time { font-size: 11px; font-weight: 700; color: var(--pm-text-soft); }

/* each day/slot is a rounded day cell (as on the schedules grid) holding an entry card */
.bk-slot { padding: 4px !important; vertical-align: top !important; border-radius: 10px; background: var(--pm-surface); border: 1px solid var(--pm-line); }
.bk-slot.bk-col-today { border: 2px solid var(--pm-accent); }

/* entry cards: one per state, original colours, coloured left edge like the schedule entries */
.bk-cell, a.bk-book {
	box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
	width: 100%; min-height: 50px; padding: 6px 5px; border-radius: 8px;
	border: 1px solid transparent; border-left: 5px solid var(--bk-taken-edge);
	text-align: center; font-size: 11px; line-height: 1.3; overflow-wrap: anywhere;
	background: var(--bk-taken-bg); color: var(--bk-taken-ink);
}
.bk-cell .pm-mi, a.bk-book .pm-mi { font-size: 16px; }
.bk-cell + .bk-cell, .bk-cell + a.bk-book, a.bk-book + .bk-cell, .bk-note + .bk-cell, .bk-note + a.bk-book { margin-top: 4px; }
.slot_div + .slot_div { margin-top: 4px; }
.bk-t { display: block; font-weight: 700; font-size: 11px; }
.bk-note { display: flex; align-items: center; justify-content: center; gap: 4px; margin: 0 0 4px 0; padding: 2px 4px; font-size: 11px; font-weight: 600; color: var(--pm-text-soft); border-bottom: 1px solid var(--pm-line); }
.bk-note .pm-mi { font-size: 14px; }

.bk-taken   { background: var(--bk-taken-bg);   border-left-color: var(--bk-taken-edge);   color: var(--bk-taken-ink); }
.bk-mine    { background: var(--bk-mine-bg);    border-left-color: var(--bk-mine-edge);    color: var(--bk-mine-ink); font-weight: 700; border-top-color: var(--pm-line); border-right-color: var(--pm-line); border-bottom-color: var(--pm-line); }
.bk-admin   { background: var(--bk-admin-bg);   border-left-color: var(--bk-admin-edge);   color: var(--bk-admin-ink); }
.bk-admin-t { font-weight: 700; }
.bk-max     { background: var(--bk-max-bg);     border-left-color: var(--bk-max-edge);     color: var(--bk-max-ink); }
.bk-na      { background: var(--bk-na-bg);      border-left-color: var(--bk-na-edge);      color: var(--bk-na-ink); }
.bk-closed  { background: var(--bk-closed-bg);  border-left-color: var(--bk-closed-edge);  color: var(--bk-closed-ink); }
.bk-blocked { background: var(--bk-blocked-bg); border-left-color: var(--bk-blocked-edge); color: var(--bk-blocked-ink); font-weight: 600; }
.bk-holiday { background: var(--bk-holiday-bg); border-left-color: var(--bk-holiday-edge); color: var(--bk-holiday-ink); font-weight: 600; }
.bk-other   { background: var(--bk-other-bg);   border-left-color: var(--bk-other-edge);   color: var(--bk-other-ink); font-weight: 700; border-top-color: var(--pm-line); border-right-color: var(--pm-line); border-bottom-color: var(--pm-line); }

/* open slot: the original soft green, solid green on hover */
a.bk-book, a.bk-book:link, a.bk-book:visited {
	background: var(--bk-open-bg); border-left-color: var(--bk-open-edge); color: var(--bk-open-ink);
	font-weight: 700; font-size: 12px; text-decoration: none; transition: background .15s ease, color .15s ease;
}
a.bk-book:hover { background: var(--bk-open-edge); color: #fff; text-decoration: none; }
a.bk-book:hover .bk-sub { color: #fff; }
a.bk-book:focus-visible { outline: none; box-shadow: var(--pm-focus); }

/* status words: "requested" red, 48hr hours blue (orange on an open free-booking slot), as before */
.bk-flag-req { display: inline-flex; align-items: center; gap: 2px; margin-top: 2px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--bk-req); }
.bk-flag-req .pm-mi { font-size: 13px; }
.bk-sub { font-size: 10px; font-weight: 700; color: var(--bk-hrs); }
a.bk-book .bk-sub { color: var(--bk-hrs-open); }
a.bk-test { font-size: 11px; font-weight: 700; color: var(--pm-danger); }

.bk-monthbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px 0; }

/* legend: same colours as the cards */
.bk-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 12px 0 0 0; font-size: 12px; color: var(--pm-text-soft); }
.bk-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.bk-legend i { display: inline-block; width: 16px; height: 14px; border-radius: 3px; border: 1px solid var(--pm-line); border-left-width: 4px; }
.bk-legend .bk-k-book { background: var(--bk-open-bg); border-left-color: var(--bk-open-edge); }
.bk-legend .bk-k-mine { background: var(--bk-mine-bg); border-left-color: var(--bk-mine-edge); }
.bk-legend .bk-k-taken { background: var(--bk-taken-bg); border-left-color: var(--bk-taken-edge); }
.bk-legend .bk-k-admin { background: var(--bk-admin-bg); border-left-color: var(--bk-admin-edge); }
.bk-legend .bk-k-na { background: var(--bk-na-bg); border-left-color: var(--bk-na-edge); }
.bk-legend .bk-k-closed { background: var(--bk-closed-bg); border-left-color: var(--bk-closed-edge); }

/* booking page header (my-bookings/index.php) */
.bk-item { display: flex; align-items: center; gap: 12px; min-width: 0; }
.bk-item-group { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--pm-text-soft); }
.bk-item-name { display: block; font-size: 20px; font-weight: 700; color: var(--pm-text); line-height: 1.2; }
.bk-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; }
.bk-toolbar-r { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* legacy booking messages (my-bookings/book.php, book_TEST.php, confirm_arrival.php, cancel.php) */
.pm-content .message, .pm-content .bk-msg {
	display: block; margin: 0 0 14px 0; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--pm-danger-line); border-left: 4px solid var(--pm-danger);
	background: var(--pm-danger-bg); color: var(--pm-text); font-size: 15px; line-height: 1.5; min-height: 0 !important; font-weight: 400;
}
.pm-content .bk-msg-info { border-color: var(--pm-info-line); border-left-color: var(--pm-accent); background: var(--pm-accent-soft); }
.pm-content .message .buttonBlue, .pm-content .message .pm-btn { margin-top: 10px; }
.pm-table tr.pm-row-ok > td { background: var(--pm-success-bg); }
@media screen and (max-width: 1000px) { .pm-home[style*="grid-template-columns"] { grid-template-columns: minmax(0,1fr) !important; } }
.pm-content .bk-toolbar .pm-page-head { margin: 0; }

/* outline variants (payments, bookings) */
.pm-btn-danger-ghost, a.pm-btn-danger-ghost:link, a.pm-btn-danger-ghost:visited { background: var(--pm-surface); color: var(--pm-danger); border-color: var(--pm-danger-line); }
.pm-btn-danger-ghost:hover, a.pm-btn-danger-ghost:hover { background: var(--pm-danger-bg); color: var(--pm-danger); box-shadow: none; }
.pm-btn-success-ghost, a.pm-btn-success-ghost:link, a.pm-btn-success-ghost:visited { background: var(--pm-surface); color: var(--pm-success); border-color: var(--pm-success-line); }
.pm-btn-success-ghost:hover, a.pm-btn-success-ghost:hover { background: var(--pm-success-bg); color: var(--pm-success); box-shadow: none; }

/* filled link-buttons (Make A Payment, Activate Auto ACH, Book, ...) always keep white text, in every state */
html body a.pm-btn:link, html body a.pm-btn:visited, html body a.pm-btn:hover, html body a.pm-btn:active { color: var(--pm-accent-ink); }
html body a.pm-btn-ghost:link, html body a.pm-btn-ghost:visited, html body a.pm-btn-ghost:hover { color: var(--pm-text); }
html body a.pm-btn-danger-ghost:link, html body a.pm-btn-danger-ghost:visited, html body a.pm-btn-danger-ghost:hover { color: var(--pm-danger); }
html body a.pm-btn-success-ghost:link, html body a.pm-btn-success-ghost:visited, html body a.pm-btn-success-ghost:hover { color: var(--pm-success); }

/* booking grid: keep its shape when a week / month has nothing in it (e.g. "not available for your course
   this week"). A td's height acts as a minimum, so filled cells still grow to fit. Empty cells get a
   faint hatch so they read as "nothing bookable here" rather than a broken layout. */
.bk-slot { height: 60px; }
.bk-slot:empty { background: repeating-linear-gradient(135deg, var(--pm-surface), var(--pm-surface) 7px, var(--pm-surface-alt) 7px, var(--pm-surface-alt) 14px); }
td.bk-time { height: 60px; }
.calendar .calendar-day { height: 96px; }
.calendar .calendar-day .slot_div:empty { display: none; }

/* time columns: the table is table-layout:fixed, so column widths come from the FIRST row -- the header,
   where the end cells are the prev / next week buttons. Both end columns get the same explicit width, and
   each time range stacks on two lines so it never spills into Monday. */
.bk-table td.bk-nav, .bk-table td.bk-time { width: 84px; }
td.bk-time { white-space: normal; line-height: 1.25; }
td.bk-time .bk-from { display: block; color: var(--pm-text); }
td.bk-time .bk-to { display: block; font-weight: 600; }
td.bk-time .bk-nextday { display: block; font-size: 10px; font-weight: 600; color: var(--pm-warn); }

/* =====================================================================================================
   TESTS (tests/index.php list + tests/take-test.php). take-test.css is shared with /ot/, so it is NOT
   edited: the rules below sit under #content.pm-testpage (two ids + a class) to win over its #id floats.
   ===================================================================================================== */
.pm-test-list { display: flex; flex-direction: column; gap: 10px; }
.pm-test {
	display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; cursor: pointer;
	background: var(--pm-surface); border: 1px solid var(--pm-line); box-shadow: var(--pm-shadow); color: var(--pm-text);
	transition: border-color .15s ease, box-shadow .15s ease, transform .08s ease;
}
.pm-test:hover { border-color: var(--pm-accent); box-shadow: var(--pm-shadow-hover); }
.pm-test:active { transform: scale(.995); }
.pm-test:focus-visible { outline: none; box-shadow: var(--pm-focus); }
.pm-test-icon { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; background: var(--pm-accent-soft); color: var(--pm-accent-text); }
.pm-test-icon .pm-mi { font-size: 25px; }
.pm-test-body { flex: 1 1 auto; min-width: 0; }
.pm-test-name { display: block; font-size: 17px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.pm-test-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; font-size: 13px; color: var(--pm-text-soft); }
.pm-test-meta > span { display: inline-flex; align-items: center; gap: 4px; }
.pm-test-meta .pm-mi { font-size: 15px; }
.pm-test-note { display: flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--pm-success); }
.pm-test-note .pm-mi { font-size: 16px; }
.pm-test-go { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 10px; background: var(--pm-accent); color: var(--pm-accent-ink); font-size: 14px; font-weight: 700; white-space: nowrap; }
.pm-test-go .pm-mi { font-size: 18px; }
.pm-test-review .pm-test-icon { background: var(--pm-warn-bg); color: var(--pm-warn); }
.pm-test-review .pm-test-go { background: var(--pm-warn); color: #fff; }
.pm-test-done { box-shadow: none; background: var(--pm-surface-alt); }
.pm-test-done .pm-test-icon { background: var(--pm-success-bg); color: var(--pm-success); }
.pm-test-done .pm-test-go { background: transparent; color: var(--pm-text-soft); border: 1px solid var(--pm-line-strong); }
.pm-test-future { cursor: default; box-shadow: none; background: var(--pm-surface-alt); }
.pm-test-future:hover { border-color: var(--pm-line); box-shadow: none; }
@media screen and (max-width: 600px) {
	.pm-test { flex-wrap: wrap; }
	.pm-test-go { flex: 1 1 100%; justify-content: center; }
}

/* ---- taking a test ---- */
#content.pm-testpage, #content.pm-testpage #padder { min-height: 0 !important; }
.pm-test-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 0 0 14px 0; }
.pm-test-head .pm-page-head { margin: 0; }
.pm-progress { flex: 1 1 260px; max-width: 420px; }
.pm-progress-l { display: flex; justify-content: space-between; margin: 0 0 5px 0; font-size: 13px; font-weight: 700; color: var(--pm-text-soft); }
.pm-progress-bar { height: 10px; border-radius: 999px; background: var(--pm-surface-alt); border: 1px solid var(--pm-line); overflow: hidden; }
.pm-progress-bar > span { display: block; height: 100%; border-radius: 999px; background: var(--pm-accent); }

#content.pm-testpage #answered_qs { width: auto; min-height: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--pm-text-soft); }
#content.pm-testpage #answered_qs > div { float: none !important; margin: 0 !important; padding: 0 !important; }
#content.pm-testpage .answered_q {
	display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 6px !important; box-sizing: border-box;
	border-radius: 999px; border: 1px solid var(--pm-success-line); background: var(--pm-success-bg); color: var(--pm-success); font-size: 13px; font-weight: 700; cursor: pointer;
}
#content.pm-testpage .answered_q:hover, #content.pm-testpage .answered_q_active { background: var(--pm-success) !important; color: #fff; border-color: var(--pm-success); }

/* NB: the page wrapper is .pm-testpage, NOT .pm-test -- .pm-test is the clickable card on the test list
   (display:flex), and reusing it on #content turned the whole page into a flex row of columns. */
/* question in the middle at half width; info / answered / saved on the left, timer on the right, a quarter each */
.pm-test-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,2fr) minmax(0,1fr); gap: 18px; align-items: start; }
.pm-test-left { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pm-test-left .pm-progress { max-width: none; }
.pm-test-left-h { margin: 14px 0 6px 0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--pm-text-soft); }
#content.pm-testpage #questions { width: auto; float: none; min-height: 0; margin: 0; padding: 0; background: none; box-shadow: none; border: 0; }
#content.pm-testpage #leftSet { width: auto; float: none; margin: 0; display: flex; flex-direction: column; gap: 14px; }
#content.pm-testpage #saved, #content.pm-testpage #timerCon { width: auto; float: none; margin: 0; height: auto; }
#content.pm-testpage #timer { display: block; height: 200px; border: 0; }

.pm-qcard { position: relative; }
.pm-q-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 14px 0; padding: 0 0 12px 0; border-bottom: 1px solid var(--pm-line); }
.pm-q-num { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--pm-accent-text); }
.pm-q-num .pm-mi { font-size: 20px; }
.pm-q-text { margin: 0 0 16px 0; font-size: 20px; font-weight: 600; line-height: 1.4; color: var(--pm-text); overflow-wrap: anywhere; }
.pm-q-media { float: left; width: 160px; margin: 0 16px 10px 0; padding: 6px; border-radius: 10px; border: 1px solid var(--pm-line); background: var(--pm-surface-alt); text-align: center; font-size: 12px; color: var(--pm-text-soft); }
.pm-q-media img { max-width: 100%; border-radius: 6px; }
.pm-q-media-wide { float: none; width: auto; margin: 0 0 16px 0; }
.pm-q-clear { clear: both; }

/* answers: big tappable cards, the whole row is the label */
.pm-answers { display: flex; flex-direction: column; gap: 8px; }
label.pm-ans {
	height: auto; display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 12px 14px; border-radius: 12px; cursor: pointer;
	border: 2px solid var(--pm-line); background: var(--pm-surface); color: var(--pm-text); font-size: 17px; line-height: 1.4;
	transition: border-color .12s ease, background .12s ease;
}
label.pm-ans:hover { border-color: var(--pm-line-strong); background: var(--pm-surface-alt); }
label.pm-ans input[type=radio] { position: static !important; float: none !important; flex: 0 0 22px; width: 22px !important; height: 22px !important; min-width: 22px; margin: 1px 12px 0 0 !important; accent-color: var(--pm-accent); cursor: pointer; }
label.pm-ans.pm-on, label.pm-ans:has(input:checked) { border-color: var(--pm-accent); background: var(--pm-accent-soft); }
label.pm-ans:focus-within { box-shadow: var(--pm-focus); }
/* the position/size resets beat the tenant register.css 'label > span' floating-label rule (absolute, 100% x 100%) */
label.pm-ans > .pm-ans-t { position: static !important; line-height: inherit !important; font-weight: inherit !important; color: inherit !important; cursor: pointer !important; pointer-events: auto !important; width: auto !important; height: auto !important; border: 0 !important; flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; padding: 0 0 0 4px !important; text-indent: 0; }
label.pm-ans-later { margin-top: 6px; border-style: dashed; color: var(--pm-text-soft); font-size: 15px; }
label.pm-ans-later .pm-mi { font-size: 19px; }
.pm-fill { display: block; width: 100%; box-sizing: border-box; padding: 12px 14px; font-size: 18px; font-family: inherit; color: var(--pm-text); background: var(--pm-surface); border: 2px solid var(--pm-line-strong); border-radius: 12px; }
.pm-fill:focus { outline: none; border-color: var(--pm-accent); box-shadow: var(--pm-focus); }
#content.pm-testpage #submitButton { display: flex; width: 100%; margin: 18px 0 0 0 !important; padding: 15px 18px; font-size: 18px !important; }
#content.pm-testpage .wait { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 50; display: none; align-items: center; justify-content: center; gap: 10px; border-radius: var(--pm-radius); background: rgba(255,255,255,.75); color: var(--pm-text); font-size: 17px; font-weight: 600; }

/* saved-for-later list */
.pm-saved-list { display: flex; flex-direction: column; gap: 6px; }
a.pm-saved, a.pm-saved:link, a.pm-saved:visited { display: flex; gap: 8px; padding: 9px 10px; border-radius: 9px; border: 1px solid var(--pm-line); background: var(--pm-surface); color: var(--pm-text); font-size: 13px; text-decoration: none; }
a.pm-saved:hover { border-color: var(--pm-warn); background: var(--pm-warn-bg); color: var(--pm-text); text-decoration: none; }
a.pm-saved.pm-on { border-color: var(--pm-warn); background: var(--pm-warn-bg); font-weight: 700; }
.pm-saved-n { flex: 0 0 auto; font-weight: 700; color: var(--pm-warn); }

/* "Still there?" (blur / idle checks) */
#still_there_div #still_there { box-sizing: border-box; width: 90% !important; max-width: 420px; margin: 15% auto 0 auto !important; padding: 22px 18px !important; border-radius: 16px; font-size: 22px !important; line-height: 1.35; box-shadow: 0 20px 50px rgba(0,0,0,.4); }

@media screen and (max-width: 1100px) {
	/* tablets: question + timer side by side, the info column drops below */
	.pm-test-grid { grid-template-columns: minmax(0,2fr) minmax(0,1fr); }
	.pm-test-left { grid-column: 1 / -1; order: 3; }
}
@media screen and (max-width: 885px) {
	/* phones: one column -- question, then timer / submit, then progress + saved list */
	.pm-test-grid { grid-template-columns: minmax(0,1fr); }
	#content.pm-testpage #questions { order: 1; }
	#content.pm-testpage #leftSet { order: 2; }
	.pm-test-left { order: 3; }
	.pm-q-text { font-size: 18px; }
	label.pm-ans { font-size: 16px; padding: 14px; }
	.pm-q-media { float: none; width: auto; margin: 0 0 14px 0; }
}
/* test list: small section label, the test NAME is the big, obvious thing on each card */
.pm-test-list-h { display: flex; align-items: center; gap: 6px; margin: 0 0 10px 0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--pm-text-soft); }
.pm-test-list-h .pm-mi { font-size: 16px; }
.pm-test-name { font-size: 21px; font-weight: 700; line-height: 1.25; }
@media screen and (max-width: 600px) { .pm-test-name { font-size: 19px; } }
/* sub_answer() shows .wait with display:block, so centre it for a block box */
#content.pm-testpage .wait { text-align: center; padding-top: 22%; box-sizing: border-box; }
#content.pm-testpage .wait .pm-spinner { display: inline-block; vertical-align: -6px; margin-right: 6px; }
/* the ajax chip list starts with its own "Answered:" label; the left column already has a heading */
#content.pm-testpage #answered_qs > div:not(.answered_q) { display: none; }

/* My Bookings list (my-bookings/mybookings.php): calendar-style cards -- date badge like the week view
   headers, coloured left edge from the same --bk-* status colours (yours = green, requested = red,
   happening now = accent) */
.bk-list { display: flex; flex-direction: column; gap: 10px; }
.bk-li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--pm-line); border-left: 6px solid var(--bk-mine-edge); background: var(--pm-surface); box-shadow: var(--pm-shadow); }
.bk-li.bk-li-req { border-left-color: var(--bk-req); }
.bk-li.bk-li-now { border-left-color: var(--pm-accent); background: var(--pm-accent-soft); }
.bk-li-date { flex: 0 0 56px; text-align: center; }
.bk-li-date .bk-dow { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--pm-text-soft); }
.bk-li-date .bk-daynum { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin: 2px 0; border-radius: 50%; font-size: 16px; font-weight: 700; background: var(--pm-surface-alt); color: var(--pm-text); }
.bk-li-date .bk-mon { display: block; font-size: 11px; color: var(--pm-text-soft); }
.bk-li-date.bk-li-today .bk-daynum { background: var(--pm-accent); color: var(--pm-accent-ink); }
.bk-li-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.bk-li-item { font-size: 16px; font-weight: 700; color: var(--pm-text); overflow-wrap: anywhere; }
.bk-li-time { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; font-size: 13px; color: var(--pm-text-soft); }
.bk-li-time .pm-mi { font-size: 16px; }
.bk-li-flags { display: flex; flex-wrap: wrap; gap: 6px; }
.bk-li-flags:empty { display: none; }
.bk-li-actions { flex: 0 0 auto; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px; max-width: 45%; }
@media screen and (max-width: 600px) {
	.bk-li { flex-wrap: wrap; }
	.bk-li-actions { flex: 1 1 100%; max-width: none; justify-content: flex-start; }
}
