/* Marsys Academy: the learner's screens (landing and sign-in, dashboard, and the slim bar on lesson pages).
   Compact on purpose: small type, thin lines, gold used sparingly. Light or dark follows the learner's device. */
:root {
	--m-bg: #fbf8f0; --m-raised: #ffffff; --m-sunk: #f6f1e6; --m-line: #e2d9c5; --m-line-strong: #c9bea4;
	--m-text: #1a1a1a; --m-muted: #5a5140; --m-faint: #6f6650; --m-accent: #8a5e12;
	--m-button: #b98a2c; --m-button-hover: #a87c2a; --m-on-button: #1a1a1a; --m-track: #e8e0cd; --m-done: #3e7c4b; --m-done-text: #2f6a3c;
	--m-now-bg: #fbf3dc; --m-heading: #3a2a08; --m-ring: #b98a2c; --m-danger: #b5474c;
}
[data-theme="dark"] {
	--m-bg: #0a0806; --m-raised: #110e09; --m-sunk: #0d0b07; --m-line: #231c10; --m-line-strong: #3d321c;
	--m-text: #ece6d6; --m-muted: #a99f86; --m-faint: #9a9078; --m-accent: #d2a23c;
	--m-button: #d2a23c; --m-button-hover: #e0b24c; --m-on-button: #0a0806; --m-track: #2a2113; --m-done: #3e7c4b; --m-done-text: #8fd49b;
	--m-now-bg: #17120a; --m-heading: #f3eee2; --m-ring: #d2a23c; --m-danger: #e59599;
}
.m-page, #marsys-bar, .m-top { font-family: Inter, system-ui, "Noto Sans Oriya", "Kalinga", "Nirmala UI", sans-serif; font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
.m-page *, .m-page *::before, .m-page *::after { box-sizing: border-box; }
body.m-page { margin: 0; background: var(--m-bg); color: var(--m-text); }
.m-disp { font-family: "Cormorant Garamond", Georgia, serif; }
html[lang="or"] .m-disp { font-family: "Noto Sans Oriya", "Kalinga", "Nirmala UI", sans-serif; font-weight: 600; letter-spacing: 0; }

/* ---- the top bar (dashboard and lesson pages) ---- */
#marsys-bar, .m-top { height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 0 20px; background: var(--m-bg); color: var(--m-text); border-bottom: 1px solid var(--m-line); }
#marsys-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 60; }
.m-brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.m-brand img { width: 26px; height: 26px; }
.m-brand b { font-family: "Cormorant Garamond", Georgia, serif; font-size: 17px; letter-spacing: .16em; color: var(--m-accent); font-weight: 700; }
.m-tools { display: flex; align-items: center; gap: 14px; }
.m-home { display: inline-flex; align-items: center; gap: 6px; color: var(--m-text); text-decoration: none; font-weight: 500; font-size: 13px;
	border: 1px solid var(--m-line-strong); border-radius: 7px; padding: 5px 11px; }
.m-home:hover { border-color: var(--m-accent); color: var(--m-accent); }
.m-lang { display: flex; border: 1px solid var(--m-line-strong); border-radius: 999px; overflow: hidden; }
.m-lang button { font: inherit; font-size: 12.5px; font-weight: 500; border: 0; background: transparent; color: var(--m-muted); padding: 4px 12px; cursor: pointer; }
.m-lang button[lang="or"] { font-family: "Noto Sans Oriya", "Kalinga", "Nirmala UI", sans-serif; }
.m-lang button[aria-pressed="true"] { background: var(--m-button); color: var(--m-on-button); font-weight: 600; }
.m-who { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--m-text); }
.m-dot { width: 24px; height: 24px; border-radius: 50%; background: #1f4a3d; color: #f3eee2; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 12px; }
.m-out { font: inherit; font-size: 13px; color: var(--m-muted); background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 0; }
.m-out:hover { color: var(--m-accent); }
.m-top button:focus-visible, #marsys-bar button:focus-visible, .m-top a:focus-visible, #marsys-bar a:focus-visible,
.m-go:focus-visible, .m-btn2:focus-visible, .m-row:focus-visible, .l-btn:focus-visible, .l-input:focus-visible { outline: 2px solid var(--m-button); outline-offset: 2px; }

/* ---- lesson pages for learners: Frappe Learning's own menus are hidden, our bar is shown ---- */
html.marsys-learner #app > div.h-dvh > div.bg-surface-sidebar,
html.marsys-learner #main-content header.header-frame,
html.marsys-learner #marsys-lang { display: none !important; }
/* the test page: no course outline, notes, previous/next buttons or author; just the test */
html.marsys-learner #main-content aside,
html.marsys-learner #main-content div.mt-10.pb-20.border-t,
html.marsys-learner #main-content .px-5 > div:first-child > div.gap-x-2,
html.marsys-learner #main-content .px-5 > div.flex.items-center.mt-4 { display: none !important; }
html.marsys-learner #main-content div.grid { grid-template-columns: minmax(0, 980px) !important; justify-content: center; height: auto !important; }
html.marsys-learner #app > div.h-dvh { height: calc(100dvh - 48px); margin: 48px 264px 0 216px; width: auto !important; }
html.marsys-learner #main-content iframe { height: calc(100dvh - 48px) !important; }
html.marsys-learner #marsys-left { position: fixed; left: 0; top: 0; bottom: 0; width: 216px; z-index: 60; height: auto; }
html.marsys-learner #marsys-hdr { position: fixed; top: 0; left: 216px; right: 264px; z-index: 55; }
html.marsys-learner #marsys-right { position: fixed; right: 0; top: 0; bottom: 0; width: 264px; z-index: 55; height: auto; }
@media (max-width: 1180px) {
	html.marsys-learner #marsys-right { display: none; }
	html.marsys-learner #marsys-hdr { right: 0; }
	html.marsys-learner #app > div.h-dvh { margin-right: 0; }
}

/* ---- dashboard ---- */
.m-wrap { max-width: 1080px; margin: 0; padding: 28px 28px 56px; }
.m-hello { font-size: 30px; line-height: 1.15; font-weight: 700; color: var(--m-heading); margin: 0 0 2px; }
html[lang="or"] .m-hello { font-size: 22px; line-height: 1.4; }
.m-sub { color: var(--m-muted); margin: 0 0 20px; font-size: 14px; }
.m-top2 { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.m-card { background: var(--m-raised); border: 1px solid var(--m-line); border-radius: 12px; padding: 20px 22px; }
.m-next { border-color: var(--m-ring); display: flex; flex-direction: column; }
.m-next .m-go { margin-top: auto; align-self: flex-start; }
.m-tag { font-size: 11px; font-weight: 600; letter-spacing: .14em; color: var(--m-accent); text-transform: uppercase; }
.m-next h2 { font-size: 26px; line-height: 1.2; margin: 6px 0 4px; font-weight: 700; color: var(--m-heading); }
html[lang="or"] .m-next h2 { font-size: 19px; line-height: 1.4; }
.m-next p { margin: 0 0 16px; color: var(--m-muted); font-size: 13.5px; }
.m-go { display: inline-flex; align-items: center; gap: 8px; background: var(--m-button); color: var(--m-on-button); font-weight: 600; font-size: 14px; padding: 9px 18px; border-radius: 8px; text-decoration: none; }
.m-go:hover { background: var(--m-button-hover); }
.m-go svg { width: 16px; height: 16px; }
.m-test h3 { font-size: 20px; line-height: 1.25; margin: 6px 0 8px; font-weight: 700; color: var(--m-heading); }
html[lang="or"] .m-test h3 { font-size: 16px; line-height: 1.45; }
.m-test ul { margin: 0 0 12px; padding: 0; list-style: none; color: var(--m-muted); font-size: 13px; }
.m-test li { padding: 1px 0; }
.m-last { background: var(--m-sunk); border: 1px solid var(--m-line); border-radius: 8px; padding: 7px 11px; margin-bottom: 12px; font-size: 12.5px; color: var(--m-muted); }
.m-last.pass { border-color: var(--m-done); color: var(--m-done-text); font-weight: 600; }
.m-btn2 { display: flex; align-items: center; justify-content: center; border: 1px solid var(--m-ring); color: var(--m-accent); font-weight: 600; font-size: 13.5px; padding: 8px; border-radius: 8px; text-decoration: none; }
.m-btn2:hover { background: var(--m-button); color: var(--m-on-button); }
.m-strip { margin: 16px 0 4px; display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--m-muted); }
.m-strip b { color: var(--m-text); font-weight: 600; }
.m-bar { flex: 1; height: 6px; background: var(--m-track); border-radius: 99px; overflow: hidden; }
.m-bar i { display: block; height: 100%; background: var(--m-ring); border-radius: 99px; }
.m-h3 { font-size: 20px; font-weight: 700; color: var(--m-heading); margin: 20px 0 8px; }
html[lang="or"] .m-h3 { font-size: 16px; }
.m-list { background: var(--m-raised); border: 1px solid var(--m-line); border-radius: 12px; padding: 6px; }
.m-row { position: relative; display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 8px; min-height: 50px; color: inherit; text-decoration: none; }
.m-row:hover { background: var(--m-sunk); }
.m-row::before, .m-row::after { content: ""; position: absolute; left: 25px; width: 2px; background: var(--m-track); }
.m-row::before { top: -8px; bottom: 50%; }
.m-row::after { top: 50%; bottom: -8px; }
.m-row:first-child::before, .m-row:last-child::after { display: none; }
.m-row.done::before, .m-row.done::after, .m-row.done + .m-row::before { background: var(--m-ring); }
.m-mark { position: relative; z-index: 1; flex: none; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 12.5px; border: 2px solid var(--m-line-strong); color: var(--m-muted); background: var(--m-raised); }
.m-mark svg { width: 14px; height: 14px; }
.m-row.done .m-mark { background: var(--m-ring); border-color: var(--m-ring); color: var(--m-on-button); }
.m-row.now .m-mark { border-color: var(--m-ring); color: var(--m-accent); background: var(--m-bg); box-shadow: 0 0 0 3px rgba(185, 138, 44, .22); }
.m-row.now { background: var(--m-now-bg); }
.m-rt { flex: 1; min-width: 0; }
.m-rtitle { display: block; font-size: 14.5px; font-weight: 600; color: var(--m-text); }
.m-rmeta { display: block; font-size: 12px; color: var(--m-faint); }
.m-stat { flex: none; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--m-line-strong); color: var(--m-muted); }
.m-row.done .m-stat { border-color: var(--m-done); color: var(--m-done-text); }
.m-row.now .m-stat { background: var(--m-button); border-color: var(--m-button); color: var(--m-on-button); }
.m-help { margin-top: 16px; color: var(--m-faint); font-size: 12.5px; }

/* ---- the shell: left panel, header strip, right panel ---- */
.m-shell { display: grid; grid-template-columns: 216px minmax(0, 1fr); min-height: 100vh; }
.m-shell.m-has-right { grid-template-columns: 216px minmax(0, 1fr) 264px; }
.m-sl { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; border-right: 1px solid var(--m-line); background: var(--m-sunk); padding: 12px 10px; overflow-y: auto; }
.m-sl .m-brand { padding: 4px 8px 14px; white-space: nowrap; }
.m-sl .m-brand b { font-size: 14px; letter-spacing: .12em; }
.m-sl .m-brand img { width: 24px; height: 24px; }
.m-nav { display: flex; flex-direction: column; gap: 2px; }
.m-nav-i { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 7px; color: var(--m-muted); text-decoration: none; font-size: 13.5px; font-weight: 500; }
.m-nav-i svg { width: 16px; height: 16px; flex: none; }
.m-nav-i:hover { background: var(--m-line); color: var(--m-text); }
.m-nav-i.on { background: var(--m-raised); color: var(--m-text); box-shadow: inset 0 0 0 1px var(--m-line-strong); }
.m-nav-i.on svg { color: var(--m-accent); }
.m-badge { margin-left: auto; background: var(--m-button); color: var(--m-on-button); font-style: normal; font-size: 11px; font-weight: 600; border-radius: 99px; padding: 0 6px; }
.m-col { min-width: 0; }
.m-hdr, #marsys-hdr { height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 24px; border-bottom: 1px solid var(--m-line); background: var(--m-bg); color: var(--m-text); font-family: Inter, system-ui, "Noto Sans Oriya", sans-serif; font-size: 13px; }
.m-hdr { position: sticky; top: 0; z-index: 5; }
.m-crumb { display: flex; gap: 8px; color: var(--m-muted); font-size: 13px; align-items: center; min-width: 0; }
.m-crumb a { color: inherit; text-decoration: none; } .m-crumb a:hover { color: var(--m-accent); }
.m-crumb b { color: var(--m-text); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-sr { position: sticky; top: 0; height: 100vh; border-left: 1px solid var(--m-line); background: var(--m-sunk); padding: 14px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.m-rcard { background: var(--m-raised); border: 1px solid var(--m-line); border-radius: 10px; padding: 14px; }
.m-rcard h4 { margin: 0 0 10px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--m-accent); font-weight: 600; }
.m-ringrow { display: flex; gap: 12px; align-items: center; }
.m-big { font-size: 22px; font-weight: 700; line-height: 1.1; color: var(--m-text); }
.m-cap { color: var(--m-muted); font-size: 12.5px; line-height: 1.4; }
.m-outline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.m-outline a { display: flex; gap: 8px; align-items: flex-start; padding: 5px 6px; border-radius: 6px; color: var(--m-muted); text-decoration: none; font-size: 12.5px; line-height: 1.35; }
.m-outline a:hover { background: var(--m-sunk); color: var(--m-text); }
.m-outline a.on { background: var(--m-now-bg); color: var(--m-text); font-weight: 600; }
.m-outline a.done { color: var(--m-text); }
.m-outline i { flex: none; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--m-line-strong); font-style: normal; font-size: 9px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.m-outline a.done i { background: var(--m-ring); border-color: var(--m-ring); color: var(--m-on-button); }
.m-outline a.on i { border-color: var(--m-ring); color: var(--m-accent); }
.m-contact { display: flex; flex-direction: column; gap: 1px; font-size: 13px; background: var(--m-sunk); border: 1px solid var(--m-line); border-radius: 8px; padding: 9px 11px; }
.m-contact b { color: var(--m-text); font-weight: 600; }
.m-contact span { color: var(--m-muted); font-size: 12px; margin-bottom: 3px; }
.m-contact a { color: var(--m-accent); text-decoration: none; word-break: break-all; }
.m-contact a:hover { text-decoration: underline; }
.m-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.m-ccard { background: var(--m-raised); border: 1px solid var(--m-line); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.m-ccard h3 { font-size: 22px; margin: 2px 0; color: var(--m-heading); line-height: 1.2; }
html[lang="or"] .m-ccard h3 { font-size: 17px; line-height: 1.45; }
.m-cabout { margin: 0 0 6px; color: var(--m-muted); font-size: 13px; }
.m-ccard.soon { opacity: .6; border-style: dashed; }
.m-cmeta { margin: 2px 0 8px; font-size: 12.5px; color: var(--m-faint); }
.m-ccard .m-bar { flex: none; margin-top: 4px; }
.m-ccard .m-go { align-self: flex-start; margin-top: auto; }
.m-chip { display: inline-block; font-style: normal; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 99px; border: 1px solid var(--m-line-strong); color: var(--m-muted); width: fit-content; }
.m-chip.ok { border-color: var(--m-done); color: var(--m-done-text); } .m-chip.no { border-color: var(--m-danger); color: var(--m-danger); }
.m-table { background: var(--m-raised); border: 1px solid var(--m-line); border-radius: 12px; overflow: hidden; }
.m-tr { display: grid; grid-template-columns: 1.2fr 1.6fr .8fr 1fr; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--m-line); align-items: center; font-size: 13.5px; }
.m-tr:first-child { border-top: 0; }
.m-th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--m-faint); font-weight: 600; background: var(--m-sunk); }
.m-msg { grid-template-columns: 1fr auto; } .m-msg.new span:first-child { font-weight: 600; }
.m-hit { grid-template-columns: 1fr auto; color: inherit; text-decoration: none; } .m-hit:hover { background: var(--m-sunk); }
.m-search { max-width: 420px; margin: 4px 0 14px; }
.m-empty { color: var(--m-muted); font-size: 14px; padding: 16px 0; }
.m-cards1 { display: flex; flex-direction: column; gap: 12px; }
.m-testrow { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.m-testrow h3 { margin: 4px 0 2px; font-size: 20px; color: var(--m-heading); }
.m-testact { display: flex; align-items: center; gap: 12px; }
.m-hdr .m-back, #marsys-hdr .m-back { display: inline-flex; align-items: center; gap: 6px; color: var(--m-text); text-decoration: none; font-size: 13px; font-weight: 500; border: 1px solid var(--m-line-strong); border-radius: 7px; padding: 4px 10px; }
#marsys-left, #marsys-right { background: var(--m-sunk); }
#marsys-right { border-left: 1px solid var(--m-line); padding: 14px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; font-family: Inter, system-ui, "Noto Sans Oriya", sans-serif; font-size: 14px; }
#marsys-left { border-right: 1px solid var(--m-line); }

/* ---- landing and sign-in ---- */
.l-grid { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.l-brand { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 56px 64px; background: #0a0806; color: #ece6d6; overflow: hidden; }
.l-brand::before { content: ""; position: absolute; inset: 0; background: radial-gradient(900px 500px at 15% 20%, rgba(210, 162, 60, .16), transparent 60%), radial-gradient(700px 500px at 90% 100%, rgba(31, 74, 61, .35), transparent 60%); }
.l-brand > * { position: relative; }
.l-brand img { width: 64px; height: 64px; margin-bottom: 22px; }
.l-brand .l-name { font-family: "Cormorant Garamond", Georgia, serif; font-size: 15px; letter-spacing: .3em; color: #d2a23c; font-weight: 700; margin-bottom: 14px; }
.l-brand h1 { font-family: "Cormorant Garamond", Georgia, serif; font-size: 44px; line-height: 1.1; font-weight: 700; margin: 0 0 14px; color: #f3eee2; max-width: 460px; }
html[lang="or"] .l-brand h1 { font-family: "Noto Sans Oriya", "Kalinga", sans-serif; font-size: 30px; line-height: 1.4; font-weight: 600; }
.l-brand p { color: #b9ae93; font-size: 15px; max-width: 420px; margin: 0 0 26px; }
.l-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: #cfc5ad; font-size: 13.5px; }
.l-points li { display: flex; gap: 10px; align-items: center; }
.l-points i { width: 6px; height: 6px; border-radius: 50%; background: #d2a23c; flex: none; }
.l-side { display: flex; flex-direction: column; background: var(--m-bg); }
.l-side .l-top { display: flex; justify-content: flex-end; padding: 16px 24px; }
.l-form-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 0 24px 56px; }
.l-form { width: 100%; max-width: 340px; }
.l-form h2 { font-size: 24px; font-weight: 700; margin: 0 0 4px; color: var(--m-heading); }
html[lang="or"] .l-form h2 { font-size: 19px; }
.l-form .l-sub { color: var(--m-muted); margin: 0 0 22px; font-size: 13.5px; }
.l-label { display: block; font-size: 12.5px; font-weight: 600; color: var(--m-muted); margin: 0 0 5px; }
.l-input { width: 100%; height: 40px; border: 1px solid var(--m-line-strong); border-radius: 8px; background: var(--m-raised); color: var(--m-text); font: inherit; font-size: 14px; padding: 0 12px; margin-bottom: 14px; }
.l-input::placeholder { color: var(--m-faint); }
.l-btn { width: 100%; height: 40px; border: 0; border-radius: 8px; background: var(--m-button); color: var(--m-on-button); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; margin-top: 4px; }
.l-btn:hover { background: var(--m-button-hover); }
.l-btn[disabled] { opacity: .6; cursor: default; }
.l-ms { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 40px; border: 1px solid var(--m-line-strong); border-radius: 8px; color: var(--m-text); text-decoration: none; font-weight: 500; margin-bottom: 14px; }
.l-or { text-align: center; color: var(--m-faint); font-size: 12px; margin: 2px 0 14px; }
.l-err { min-height: 18px; color: var(--m-danger); font-size: 13px; margin: 0 0 6px; }
.l-note { margin: 18px 0 0; color: var(--m-faint); font-size: 12.5px; }
.en, .od { display: none; }
html:not([lang="or"]) .en { display: inline; }
html[lang="or"] .od { display: inline; }

@media (max-width: 1100px) {
	.m-shell.m-has-right { grid-template-columns: 216px minmax(0, 1fr); }
	.m-sr { display: none; }
}
@media (max-width: 980px) {
	.m-top2 { grid-template-columns: 1fr; }
	#marsys-bar, .m-top { padding: 0 12px; }
	.m-brand b { display: none; }
	.m-wrap { padding: 20px 14px 48px; }
	.l-grid { grid-template-columns: 1fr; }
	.l-brand { padding: 28px 24px; }
	.l-brand h1 { font-size: 28px; }
	.l-points { display: none; }
}

.l-or { display: flex; align-items: center; gap: 10px; color: var(--m-faint); font-size: 12px; margin: 16px 0 12px; }
.l-or::before, .l-or::after { content: ""; flex: 1; height: 1px; background: var(--m-line, rgba(255,255,255,.14)); }
.l-ms { width: 100%; height: 40px; border-radius: 8px; border: 1px solid var(--m-line, rgba(255,255,255,.2)); background: transparent; color: var(--m-text, inherit); font: inherit; font-size: 14px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 10px; }
.l-ms[disabled] { opacity: .55; cursor: not-allowed; }
.l-soon { margin-top: 10px; }
a.l-ms { text-decoration: none; cursor: pointer; }
a.l-ms:hover { border-color: var(--m-button); }

/* Left panel footer: language, who is signed in, sign out */
.m-sl-foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; padding: 14px 4px 2px; border-top: 1px solid var(--m-line); }
.m-foot-lang { display: flex; flex-direction: column; gap: 6px; }
.m-foot-l { font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--m-faint); padding-left: 2px; }
.m-sl-foot .m-lang { width: 100%; padding: 3px; gap: 3px; border-radius: 10px; background: var(--m-sunk); border: 1px solid var(--m-line-strong); }
.m-sl-foot .m-lang button { flex: 1; padding: 6px 0; border-radius: 7px; font-size: 13px; text-align: center; }
.m-sl-foot .m-lang button:not([aria-pressed="true"]):hover { color: var(--m-text); background: var(--m-line); }
.m-sl-foot .m-who { gap: 10px; padding: 9px 10px; border-radius: 10px; background: var(--m-raised); border: 1px solid var(--m-line); min-width: 0; }
.m-sl-foot .m-dot { width: 32px; height: 32px; flex: none; font-size: 14px; background: #1f4a3d; box-shadow: 0 0 0 1.5px var(--m-ring); }
.m-who-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.m-who-n { font-weight: 600; font-size: 13.5px; color: var(--m-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-who-t small { font-size: 11.5px; color: var(--m-faint); }
.m-sl-foot .m-out { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 36px; border-radius: 9px; border: 1px solid var(--m-line-strong); background: transparent; color: var(--m-muted); text-decoration: none; font-size: 13px; font-weight: 500; padding: 0; }
.m-sl-foot .m-out svg { width: 15px; height: 15px; }
.m-sl-foot .m-out:hover { color: var(--m-accent); border-color: var(--m-accent); background: var(--m-sunk); }

/* ---- personal dashboard, learning path, courses library, certificates (20 Nov 2026) ---- */
.d-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; }
.d-c4 { grid-column: span 4; } .d-c5 { grid-column: span 5; } .d-c7 { grid-column: span 7; } .d-c8 { grid-column: span 8; } .d-c12 { grid-column: span 12; }
@media (max-width: 1100px) { .d-c4, .d-c5, .d-c7, .d-c8 { grid-column: span 12; } }
.d-hero { border-color: var(--m-ring); display: flex; flex-direction: column; gap: 2px; }
.d-hero h2 { font-size: 26px; line-height: 1.2; margin: 4px 0 0; color: var(--m-heading); }
.d-hero .m-go { align-self: flex-start; margin-top: 12px; }
.d-mut { color: var(--m-muted); font-size: 13px; margin: 2px 0; }
.d-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.d-steps { display: flex; gap: 6px; margin: 4px 0 8px; flex-wrap: wrap; }
.m-chip.now { background: var(--m-button); color: var(--m-on-button); border-color: var(--m-button); }
.d-glance { display: grid; grid-template-columns: repeat(4, 1fr); padding: 14px 8px; }
.d-glance div { padding: 2px 16px; border-left: 1px solid var(--m-line); display: flex; flex-direction: column; }
.d-glance div:first-child { border-left: 0; }
.d-glance b { font: 700 28px/1.1 "Cormorant Garamond", Georgia, serif; color: var(--m-heading); font-variant-numeric: lining-nums; }
.d-glance b small { font: 500 14px Inter, sans-serif; color: var(--m-muted); }
.d-glance span { color: var(--m-muted); font-size: 12.5px; }
@media (max-width: 700px) { .d-glance { grid-template-columns: 1fr 1fr; row-gap: 10px; } }
.m-card h4 { margin: 0 0 8px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--m-accent); font-weight: 600; }
.d-res { grid-template-columns: 1fr auto auto; padding: 8px 0; }
.d-notice { display: flex; gap: 10px; padding: 7px 0; border-top: 1px solid var(--m-line); } .d-notice:first-of-type { border-top: 0; }
.d-notice i { width: 8px; height: 8px; border-radius: 50%; background: var(--m-line-strong); margin-top: 7px; flex: none; } .d-notice i.new { background: var(--m-button); }
.d-notice small { display: block; color: var(--m-faint); font-size: 12px; }
.d-link { color: var(--m-accent); font-size: 13px; text-decoration: none; display: inline-block; margin-top: 8px; } .d-link:hover { text-decoration: underline; }
.d-certcard { display: flex; gap: 18px; align-items: center; }
.d-minicert { width: 150px; flex: none; border: 1px solid #b8913a; background: #fbf6e8; color: #2b2216; text-align: center; padding: 10px 8px; box-shadow: inset 0 0 0 3px #fbf6e8, inset 0 0 0 4px #d8c391; display: flex; flex-direction: column; gap: 3px; }
.d-minicert small { font-size: 7px; letter-spacing: .12em; color: #8a5e12; } .d-minicert b { font: 700 15px "Cormorant Garamond", Georgia, serif; } .d-minicert span { font-size: 9px; }
.d-btns { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
/* learning path */
.p-sum { margin-bottom: 16px; } .p-sumbar .m-bar { margin: 8px 0 6px; }
.p-list { display: grid; gap: 12px; }
.p-step { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; position: relative; }
.p-step::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: -12px; width: 2px; background: var(--m-line-strong); } .p-step:last-child::before { display: none; }
.p-dot { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--m-line-strong); display: grid; place-items: center; font: 700 18px "Cormorant Garamond", Georgia, serif; color: var(--m-muted); background: var(--m-bg); position: relative; z-index: 1; font-variant-numeric: lining-nums; }
.p-dot.done { background: var(--m-button); border-color: var(--m-button); color: var(--m-on-button); } .p-dot.now { border-color: var(--m-button); color: var(--m-accent); box-shadow: 0 0 0 4px var(--m-now-bg); } .p-dot.locked { border-style: dashed; }
.p-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; } .p-card.now { border-color: var(--m-button); background: var(--m-now-bg); } .p-card.locked { opacity: .8; }
.p-card h3 { margin: 3px 0 2px; font-size: 21px; color: var(--m-heading); }
.p-meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--m-muted); font-size: 12.5px; } .p-meta .late { color: var(--m-danger); font-weight: 600; }
.p-act { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
/* courses library */
.m-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.m-fchip { font: inherit; font-size: 12.5px; border: 1px solid var(--m-line-strong); border-radius: 99px; padding: 4px 12px; background: var(--m-raised); color: var(--m-muted); cursor: pointer; } .m-fchip.on { background: var(--m-button); color: var(--m-on-button); border-color: var(--m-button); font-weight: 600; }
.m-ccard.lock { border-style: dashed; background: var(--m-sunk); } .m-ccard.lock h3, .m-ccard.lock .m-cabout { opacity: .8; }
.m-lockic { width: 16px; height: 16px; vertical-align: -2px; color: var(--m-faint); }
.m-testrow.lockrow { border-style: dashed; opacity: .8; }
/* certificate view and check page */
.mc-wrap { width: 100%; max-width: 1123px; overflow: hidden; border-radius: 4px; box-shadow: 0 8px 28px rgba(0,0,0,.35); }
.mc-wrap .mc { transform-origin: 0 0; }
.m-verify .v-wrap { max-width: 560px; margin: 0 auto; padding: 36px 20px; }
.v-form { display: flex; gap: 8px; margin: 14px 0 18px; } .v-form .l-input { flex: 1; } .v-form .l-btn { width: auto; padding: 0 22px; margin: 0; }
.v-ok { border-color: var(--m-done); } .v-ok h2 { margin: 4px 0; font-size: 28px; color: var(--m-heading); }

/* retake rule: the test button waits until the course is gone through again */
.m-go.off, .m-btn2.off { opacity: .55; cursor: default; pointer-events: none; background: transparent; border: 1px dashed var(--m-line-strong); color: var(--m-muted); }
.m-note { color: var(--m-accent); font-size: 14px; margin: 6px 0 0; max-width: 60ch; }

/* profile and forms */
.m-dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
.m-dl dt { color: var(--m-muted); } .m-dl dd { margin: 0; }
.m-form { display: grid; gap: 6px; }
.m-form label { font-size: 13px; color: var(--m-muted); margin-top: 8px; }
.m-form input { font: inherit; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--m-line-strong); background: var(--m-sunk); color: var(--m-text); letter-spacing: 3px; max-width: 240px; }
.m-form input:focus-visible { outline: 2px solid var(--m-ring); outline-offset: 2px; }
.m-form .m-go { justify-self: start; margin-top: 12px; border: 0; cursor: pointer; }
a.m-who { text-decoration: none; color: inherit; }

/* admin */
.a-sub { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--m-line); margin: 10px 0 16px; }
.a-sub a { padding: 9px 14px; color: var(--m-muted); text-decoration: none; border-bottom: 2px solid transparent; }
.a-sub a[aria-current="page"] { color: var(--m-text); border-color: var(--m-button); }
.a-root { max-width: 1040px; }
.a-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.a-tile { background: var(--m-raised); border: 1px solid var(--m-line); border-radius: 10px; padding: 12px 14px; }
.a-tile b { display: block; font-size: 28px; font-family: "Cormorant Garamond", Georgia, serif; font-variant-numeric: tabular-nums; }
.a-tile span, .a-root .m-cap { color: var(--m-muted); font-size: 13px; }
.a-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.a-link { display: grid; gap: 2px; text-decoration: none; color: inherit; background: var(--m-raised); border: 1px solid var(--m-line); border-radius: 10px; padding: 14px 16px; }
.a-link:hover, .a-link:focus-visible { border-color: var(--m-button); }
.a-link span { color: var(--m-muted); font-size: 13px; }
.a-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.a-filters input, .a-filters select, .a-form input, .a-form select, .a-card input, .a-card select { font: inherit; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--m-line-strong); background: var(--m-sunk); color: var(--m-text); min-width: 0; letter-spacing: 0; }
.a-filters input[type=search] { flex: 1 1 220px; }
.a-scroll { overflow-x: auto; }
.a-table { border-collapse: collapse; width: 100%; min-width: 720px; font-size: 14px; }
.a-table th, .a-table td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--m-line); }
.a-table th { font-size: 12px; letter-spacing: .5px; text-transform: uppercase; color: var(--m-muted); }
.a-table tr.off td { opacity: .55; }
.a-table a { color: var(--m-accent); }
.a-chip { display: inline-block; font-size: 12px; padding: 1px 9px; border-radius: 99px; border: 1px solid var(--m-line-strong); color: var(--m-muted); margin-right: 4px; }
.a-chip.admin { color: var(--m-accent); border-color: var(--m-accent); } .a-chip.late { color: var(--m-danger); border-color: var(--m-danger); }
.a-chip.done { color: var(--m-done-text); border-color: var(--m-done); }
.a-tabs { display: flex; gap: 4px; margin-bottom: 14px; }
.a-tab { font: inherit; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--m-line-strong); background: transparent; color: var(--m-muted); cursor: pointer; }
.a-tab.on { background: var(--m-now-bg); color: var(--m-heading); border-color: var(--m-button); }
.a-form { display: grid; gap: 10px; max-width: 480px; }
.a-f { display: grid; gap: 3px; } .a-f label { font-size: 13px; color: var(--m-muted); } .a-f small { color: var(--m-faint); }
.a-check { display: flex; gap: 6px; align-items: center; font-size: 14px; }
.a-btn { font: inherit; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--m-line-strong); background: var(--m-raised); color: var(--m-text); cursor: pointer; text-decoration: none; display: inline-block; }
.a-btn.danger { border-color: var(--m-danger); color: var(--m-danger); }
.a-btn:focus-visible, .a-tab:focus-visible { outline: 2px solid var(--m-ring); outline-offset: 2px; }
.a-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin: 8px 0; }
.a-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; margin-bottom: 8px; }
.a-card { background: var(--m-raised); border: 1px solid var(--m-line); border-radius: 12px; padding: 14px 16px; margin: 12px 0; }
.a-card h3 { margin: 0 0 8px; font-size: 16px; }
.a-msg { margin: 6px 0; font-size: 14px; } .a-msg.ok { color: var(--m-done-text); } .a-msg.bad, .a-warn { color: var(--m-danger); }
.a-steps { margin: 6px 0 10px; padding-left: 20px; } .a-steps li { margin: 5px 0; }
.a-slip { background: #fff; color: #1a1a1a; border: 2px dashed #8a5e12; border-radius: 12px; padding: 16px 20px; max-width: 520px; margin: 12px 0; }
.a-slip .m-dl dt { color: #5a5140; } .a-slip .m-cap { color: #5a5140; }
.a-pin { font-size: 28px; letter-spacing: 6px; font-variant-numeric: tabular-nums; }
.a-text { color: var(--m-text); white-space: pre-wrap; background: var(--m-sunk); border-radius: 8px; padding: 10px; font-size: 13px; max-width: 520px; }
.a-cell { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--m-line-strong); white-space: nowrap; }
.a-cell.done { background: var(--m-done); color: #fff; border-color: var(--m-done); } .a-cell.progress, .a-cell.now { border-color: var(--m-button); color: var(--m-accent); }
.a-cell.late, .a-cell.failed { border-color: var(--m-danger); color: var(--m-danger); } .a-cell.locked, .a-cell.none { color: var(--m-faint); }
.a-legend { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
@media print { body * { visibility: hidden; } .a-slip, .a-slip * { visibility: visible; } .a-slip { border-color: #000; break-inside: avoid; } .a-slips, .a-slip:only-child { position: absolute; left: 0; top: 0; } .a-slips .a-slip { position: static; margin: 0 0 12px; } .a-noprint { display: none !important; } }
.a-slips { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.a-slips .a-slip { margin: 0; }

/* ---- phone: the left panel is a drawer, the right panel and the course outline stay out of the way ---- */
.m-burger { display: none; align-items: center; justify-content: center; width: 40px; height: 36px; margin-right: 8px; border-radius: 8px; border: 1px solid var(--m-line-strong); background: var(--m-raised); color: var(--m-text); cursor: pointer; flex: none; }
.m-burger:focus-visible { outline: 2px solid var(--m-ring); outline-offset: 2px; }
.m-backdrop { display: none; }
@media (max-width: 800px) {
	.m-burger { display: inline-flex; }
	.m-shell, .m-shell.m-has-right { grid-template-columns: minmax(0, 1fr); }
	.m-sl, html.marsys-learner #marsys-left { position: fixed; left: 0; top: 0; bottom: 0; width: min(290px, 86vw); height: 100vh; transform: translateX(-104%); transition: transform .2s ease; z-index: 90; box-shadow: 4px 0 24px rgba(0, 0, 0, .45); }
	html.m-menu-open .m-sl, html.m-menu-open.marsys-learner #marsys-left { transform: none; }
	html.m-menu-open .m-backdrop { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 80; }
	html.marsys-learner #marsys-hdr { left: 0; right: 0; padding: 0 12px; }
	html.marsys-learner #app > div.h-dvh { margin: 48px 0 0 0; }
	.m-hdr { padding: 0 12px; }
	.m-wrap { padding: 16px 14px 40px; }
	.d-glance { grid-template-columns: 1fr 1fr; }
	.m-testrow { flex-direction: column; align-items: flex-start; gap: 10px; }
	.m-testact { width: 100%; flex-wrap: wrap; }
	.a-sub a { padding: 8px 10px; }
	.m-dl { grid-template-columns: 1fr; gap: 2px; }
}
/* phone: Frappe Learning's own bottom tab bar and floating Chapters button are not ours; the Academy menu replaces them */
html.marsys-learner #app div.h-dvh > div.shrink-0 > nav,
html.marsys-learner #scrollContainer .sticky.bottom-4 { display: none !important; }

/* admin: bulk bar, row actions, Microsoft picker, danger */
.a-bulk { background: var(--m-now-bg); border: 1px solid var(--m-line-strong); border-radius: 10px; padding: 8px 12px; align-items: center; }
.a-act { white-space: nowrap; } .a-link2 { font: inherit; font-size: 13px; background: none; border: 0; color: var(--m-accent); cursor: pointer; padding: 2px 6px; text-decoration: underline; }
.a-link2.danger { color: var(--m-danger); }
.a-danger { border-color: var(--m-danger); }
.a-ms { max-height: 52vh; overflow-y: auto; border: 1px solid var(--m-line); border-radius: 10px; background: var(--m-raised); }
.a-msrow { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--m-line); cursor: pointer; }
.a-msrow.in { opacity: .6; cursor: default; } .a-msrow:last-child { border-bottom: 0; }
.a-msname { display: grid; min-width: 0; flex: 1; } .a-msname small { color: var(--m-muted); overflow-wrap: anywhere; }
.a-root [hidden] { display: none !important; }

/* the final test (Frappe Learning's quiz) in the Academy's colours: gold buttons, clearer rows */
html.marsys-learner #app button.bg-surface-gray-10 { background: var(--m-button); color: var(--m-on-button); font-weight: 600; font-size: 14px; height: 38px; padding: 0 18px; border-radius: 9px; border: 0; }
html.marsys-learner #app button.bg-surface-gray-10:hover { background: var(--m-button-hover); }
html.marsys-learner #app button.bg-surface-gray-10:focus-visible { outline: 2px solid var(--m-ring); outline-offset: 2px; }
html.marsys-learner #app button.bg-surface-gray-10:disabled { opacity: .5; }

/* Accessibility: a skip link, a visible focus ring everywhere, and no motion for people who ask for none */
.m-skip { position: absolute; left: 8px; top: -48px; z-index: 100; background: var(--m-button); color: var(--m-on-button); padding: 10px 14px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.m-skip:focus { top: 8px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--m-ring); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } }
