/* BCU University Management System
   Palette taken from the BCUC crest: deep green field, candle gold, seal red. */
:root {
	--green-900: #0a3f25;
	--green-800: #0d5131;
	--green-700: #12703f;
	--green-600: #188a4d;
	--green-100: #dcefe3;
	--green-50: #eef7f1;
	--gold: #e0a823;
	--gold-soft: #fff4d6;
	--red: #b3261e;
	--red-soft: #fdecea;
	--amber: #8a5a00;
	--blue: #1f5f99;
	--blue-soft: #e8f1fa;
	--ink: #17201c;
	--ink-2: #4b5852;
	--ink-3: #6f7b75;
	--line: #d9e0dc;
	--line-soft: #e9eeeb;
	--paper: #f4f6f4;
	--white: #ffffff;
	--radius: 6px;
	--radius-lg: 10px;
	--sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
	--serif: "Source Serif 4", Georgia, "Times New Roman", serif;
	--side-w: 248px;
	--focus: 0 0 0 3px rgba(224, 168, 35, .55);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.ums {
	margin: 0;
	font-family: var(--sans);
	font-size: 15px;
	line-height: 1.5;
	color: var(--ink);
	background: var(--paper);
}
.ums a { color: var(--green-700); }
.ums a:hover { color: var(--green-900); }
.ums :focus-visible { outline: none; box-shadow: var(--focus); border-radius: 3px; }
.ums-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ums-skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 100; }
.ums-skip:focus { left: 8px; }
.ums-muted { color: var(--ink-3); }
.ums h1, .ums h2, .ums h3 { line-height: 1.25; margin: 0; }

/* ---------- Sidebar ---------- */
.ums-side {
	position: fixed; inset: 0 auto 0 0; width: var(--side-w);
	background: var(--green-900);
	color: #d8e8de;
	display: flex; flex-direction: column;
	overflow-y: auto; z-index: 40;
}
.ums-brand {
	display: flex; gap: 10px; align-items: center;
	padding: 18px 16px 16px;
	text-decoration: none;
	border-bottom: 1px solid rgba(255,255,255,.08);
}
.ums .ums-brand { color: var(--white); }
.ums-brand img { width: 44px; height: 44px; border-radius: 50%; background: var(--white); object-fit: contain; padding: 2px; flex: none; }
.ums-brand-mark { width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: var(--green-900); display: grid; place-items: center; font-weight: 700; flex: none; }
.ums-brand-text { display: flex; flex-direction: column; min-width: 0; }
.ums-brand-text strong { font-family: var(--serif); font-weight: 600; font-size: 15px; line-height: 1.2; }
.ums-brand-text span { font-size: 12.5px; color: #a9c7b4; }
.ums-nav { padding: 10px 0 24px; }
.ums-nav-section { margin-top: 8px; }
.ums-nav-title { margin: 10px 18px 4px; font-size: 12.5px; color: #8fb39c; font-weight: 600; }
.ums-nav ul { list-style: none; margin: 0; padding: 0; }
.ums .ums-nav a {
	display: block; position: relative;
	padding: 7px 18px 7px 22px;
	color: #e3eee7; text-decoration: none; font-size: 14.5px;
}
.ums .ums-nav a:hover { background: rgba(255,255,255,.06); color: var(--white); }
.ums .ums-nav a.is-active { background: rgba(255,255,255,.1); color: var(--white); font-weight: 600; }
/* The candle: the active item carries a gold flame on its left edge. */
.ums-nav a.is-active::before {
	content: ""; position: absolute; left: 8px; top: 9px; bottom: 9px; width: 4px;
	border-radius: 4px 4px 2px 2px; background: var(--gold);
}

/* ---------- Top bar ---------- */
.ums-main { margin-left: var(--side-w); min-height: 100vh; display: flex; flex-direction: column; }
.ums-top {
	position: sticky; top: 0; z-index: 30;
	display: flex; align-items: center; gap: 14px;
	height: 60px; padding: 0 24px;
	background: var(--white); border-bottom: 1px solid var(--line);
}
.ums-menu-btn { display: none; background: none; border: 0; font-size: 22px; padding: 4px 8px; cursor: pointer; color: var(--ink); }
.ums-search { flex: 1; max-width: 460px; }
.ums-search input {
	width: 100%; height: 38px; padding: 0 12px;
	border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
	font: inherit;
}
.ums-search input:focus { background: var(--white); border-color: var(--green-600); outline: none; box-shadow: var(--focus); }
.ums-top-spacer { flex: 1; }
.ums-term {
	margin-left: auto;
	font-size: 13.5px; font-weight: 600; color: var(--green-800);
	background: var(--green-50); border: 1px solid var(--green-100);
	padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.ums-bell { position: relative; color: var(--ink-2); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; }
.ums-bell:hover { background: var(--paper); }
.ums-bell-count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: var(--white); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.ums-user { position: relative; }
.ums-user summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 4px 6px; border-radius: var(--radius); }
.ums-user summary::-webkit-details-marker { display: none; }
.ums-user summary:hover { background: var(--paper); }
.ums-user-name { display: flex; flex-direction: column; font-size: 14px; font-weight: 600; line-height: 1.2; max-width: 180px; }
.ums-user-name small { font-weight: 400; color: var(--ink-3); font-size: 12.5px; }
.ums-user-menu { position: absolute; right: 0; top: calc(100% + 6px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); min-width: 190px; padding: 6px 0; box-shadow: 0 8px 24px rgba(10, 63, 37, .12); }
.ums .ums-user-menu a { display: block; padding: 8px 14px; color: var(--ink); text-decoration: none; }
.ums .ums-user-menu a:hover { background: var(--paper); }

.ums-avatar { display: inline-grid; place-items: center; flex: none; border-radius: 50%; background: var(--green-100); color: var(--green-800); font-weight: 700; overflow: hidden; }
.ums-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ums-avatar-sm { width: 32px; height: 32px; font-size: 12.5px; }
.ums-avatar-md { width: 44px; height: 44px; font-size: 15px; }
.ums-avatar-lg { width: 96px; height: 96px; font-size: 30px; border-radius: 10px; }

/* ---------- Content ---------- */
.ums-content { padding: 24px 28px 48px; max-width: 1320px; width: 100%; }
.ums-content:focus { outline: none; }
.ums-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.ums-page-head h1 { font-family: var(--serif); font-weight: 600; font-size: 26px; letter-spacing: -.01em; }
.ums-sub { margin: 4px 0 0; color: var(--ink-2); }
.ums-back { display: inline-block; font-size: 13.5px; margin-bottom: 4px; text-decoration: none; }
.ums-back::before { content: "‹ "; }
.ums-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Buttons */
.ums-btn {
	display: inline-flex; align-items: center; gap: 6px; justify-content: center;
	height: 36px; padding: 0 14px;
	border: 1px solid var(--line); border-radius: var(--radius);
	background: var(--white); color: var(--ink);
	font: inherit; font-size: 14.5px; font-weight: 600; text-decoration: none;
	cursor: pointer; white-space: nowrap;
}
.ums a.ums-btn { color: var(--ink); }
.ums-btn:hover { border-color: var(--ink-3); }
.ums .ums-btn-primary, .ums a.ums-btn-primary { background: var(--green-700); border-color: var(--green-700); color: var(--white); }
.ums .ums-btn-primary:hover { background: var(--green-800); border-color: var(--green-800); color: var(--white); }
.ums .ums-btn-danger, .ums a.ums-btn-danger { color: var(--red); border-color: #e6b4b0; }
.ums .ums-btn-danger:hover { background: var(--red-soft); }
.ums .ums-btn-ghost { border-color: transparent; background: transparent; }
.ums-btn-sm { height: 30px; padding: 0 10px; font-size: 13.5px; }
.ums-inline-form { display: inline; margin: 0; }

/* Alerts */
.ums-alert { padding: 11px 14px; border-radius: var(--radius); margin-bottom: 16px; border: 1px solid; }
.ums-alert-success { background: var(--green-50); border-color: var(--green-100); color: var(--green-900); }
.ums-alert-error { background: var(--red-soft); border-color: #f2c4c0; color: #7d1a14; }
.ums-alert-info { background: var(--blue-soft); border-color: #c9dcef; color: #17466f; }
.ums-alert-warn { background: var(--gold-soft); border-color: #f0dca3; color: #5c3d00; }

/* Panels */
.ums-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); margin-bottom: 20px; }
.ums-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.ums-panel-head h2 { font-size: 16.5px; font-weight: 700; }
.ums-panel-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ums-panel-body { padding: 16px 18px; }
.ums-panel-body > .ums-table-wrap { margin: -16px -18px; }
.ums-panel-body > .ums-table-wrap:not(:last-child) { margin-bottom: 0; }
.ums-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; align-items: start; }
.ums-cols-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; align-items: start; }
.ums-cols > .ums-panel, .ums-cols-2-1 > * > .ums-panel:last-child { margin-bottom: 0; }

/* Key figures */
.ums-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 20px; }
.ums-stat { background: var(--white); padding: 14px 18px; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
a.ums-stat:hover { background: var(--green-50); }
.ums .ums-stat { color: var(--ink); }
.ums-stat-label { font-size: 13.5px; color: var(--ink-2); }
.ums-stat-value { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; line-height: 1.25; }
.ums-stat-note { font-size: 12.5px; color: var(--ink-3); }
.ums-stat-bad .ums-stat-value { color: var(--red); }
.ums-stat-good .ums-stat-value { color: var(--green-700); }
.ums-stat-warn .ums-stat-value { color: var(--amber); }

/* Tables */
.ums-table-wrap { overflow-x: auto; }
.ums-table { width: 100%; border-collapse: collapse; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.ums-table th { text-align: left; font-weight: 600; color: var(--ink-2); font-size: 13.5px; padding: 9px 12px; border-bottom: 1px solid var(--line); background: #fafbfa; white-space: nowrap; }
.ums-table td { padding: 9px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.ums-table tbody tr:hover td { background: #f8faf9; }
.ums-table tfoot td { font-weight: 700; border-top: 1px solid var(--line); border-bottom: 0; background: #fafbfa; }
.ums-table .is-num { text-align: right; white-space: nowrap; }
.ums-table .is-center { text-align: center; }
.ums-table .is-nowrap { white-space: nowrap; }
.ums-table td:first-child, .ums-table th:first-child { padding-left: 18px; }
.ums-table td:last-child, .ums-table th:last-child { padding-right: 18px; }
.ums-table a { font-weight: 600; text-decoration: none; }
.ums-table a:hover { text-decoration: underline; }
.ums-table-empty { padding: 28px 18px; text-align: center; color: var(--ink-3); }
.ums-person { display: flex; align-items: center; gap: 10px; }
.ums-person small { display: block; color: var(--ink-3); font-weight: 400; font-size: 12.5px; }
.ums-table .ums-cell-actions { white-space: nowrap; text-align: right; }
.ums-table .ums-cell-actions > * + * { margin-left: 4px; }

/* Badges */
.ums-badge { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.ums-tone-good { background: var(--green-50); color: var(--green-800); border-color: var(--green-100); }
.ums-tone-warn { background: var(--gold-soft); color: var(--amber); border-color: #f0dca3; }
.ums-tone-bad { background: var(--red-soft); color: var(--red); border-color: #f2c4c0; }
.ums-tone-mute { background: var(--line-soft); color: var(--ink-2); }
.ums-tone-info { background: var(--blue-soft); color: var(--blue); border-color: #c9dcef; }

/* Filters, tabs, pager */
.ums-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 16px; }
.ums-filter { display: flex; flex-direction: column; gap: 3px; font-size: 13px; color: var(--ink-2); }
.ums-filter select, .ums-filter input { height: 36px; min-width: 150px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); font: inherit; font-size: 14.5px; color: var(--ink); }
.ums-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.ums .ums-tabs a { padding: 9px 14px; color: var(--ink-2); text-decoration: none; font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.ums .ums-tabs a:hover { color: var(--ink); }
.ums .ums-tabs a.is-active { color: var(--green-800); border-bottom-color: var(--green-700); }
.ums-pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 2px; color: var(--ink-2); font-size: 14px; flex-wrap: wrap; }
.ums-pager-links { display: flex; gap: 14px; align-items: center; }

/* Forms */
.ums-form { max-width: 980px; }
.ums-grid { display: grid; gap: 0 18px; }
.ums-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ums-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ums-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ums-field { margin-bottom: 14px; }
.ums-field > label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.ums-req { color: var(--red); }
.ums-field input[type=text], .ums-field input[type=email], .ums-field input[type=number], .ums-field input[type=date],
.ums-field input[type=time], .ums-field input[type=tel], .ums-field input[type=password], .ums-field input[type=url],
.ums-field input[type=search], .ums-field input[type=month], .ums-field select, .ums-field textarea {
	width: 100%; min-height: 38px; padding: 7px 10px;
	border: 1px solid var(--line); border-radius: var(--radius);
	background: var(--white); font: inherit; color: var(--ink);
}
.ums-field select[multiple] { min-height: 120px; }
.ums-field input:focus, .ums-field select:focus, .ums-field textarea:focus { border-color: var(--green-600); outline: none; box-shadow: var(--focus); }
.ums-help { margin: 4px 0 0; font-size: 13px; color: var(--ink-3); }
.ums-check { display: flex; gap: 8px; align-items: center; font-weight: 400; cursor: pointer; }
.ums-check input { width: 17px; height: 17px; accent-color: var(--green-700); }
.ums-form-section { margin: 22px 0 12px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.ums-form-section:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.ums-form-section h3 { font-size: 16px; }
.ums-form-section p { margin: 2px 0 0; color: var(--ink-2); font-size: 14px; }
.ums-form-actions { display: flex; gap: 10px; align-items: center; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-soft); flex-wrap: wrap; }

/* Details list */
.ums-details { display: grid; gap: 12px 24px; margin: 0; }
.ums-details.ums-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ums-details.ums-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ums-details.ums-cols-1 { grid-template-columns: 1fr; }
.ums-details dt { font-size: 13px; color: var(--ink-3); }
.ums-details dd { margin: 1px 0 0; font-weight: 600; overflow-wrap: anywhere; }

/* Profile header */
.ums-profile { display: flex; gap: 18px; align-items: center; margin-bottom: 20px; flex-wrap: wrap; }
.ums-profile h1 { font-family: var(--serif); font-weight: 600; font-size: 26px; }
.ums-profile-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; color: var(--ink-2); font-size: 14.5px; align-items: center; }
.ums-profile-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* Meter */
.ums-meter { display: inline-block; width: 90px; height: 7px; border-radius: 4px; background: var(--line-soft); vertical-align: middle; overflow: hidden; margin-right: 6px; }
.ums-meter > span { display: block; height: 100%; background: var(--green-600); }
.ums-meter.is-low > span { background: var(--red); }

/* Chart */
.ums-chart-bars { display: flex; align-items: flex-end; gap: 8px; padding-top: 20px; }
.ums-chart-col { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; }
.ums-chart-track { position: relative; width: 100%; display: flex; align-items: flex-end; justify-content: center; border-bottom: 1px solid var(--line); }
.ums-chart-bar { position: relative; width: 100%; max-width: 46px; background: var(--green-600); border-radius: 3px 3px 0 0; min-height: 2px; }
.ums-chart-col:hover .ums-chart-bar { background: var(--green-800); }
.ums-chart-val { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); padding-bottom: 3px; font-size: 11.5px; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ums-chart-label { font-size: 11.5px; color: var(--ink-3); margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* Empty state */
.ums-empty { text-align: center; padding: 48px 20px; background: var(--white); border: 1px dashed var(--line); border-radius: var(--radius-lg); }
.ums-empty-title { font-weight: 700; font-size: 17px; margin: 0 0 4px; }
.ums-empty p { margin: 0 0 8px; color: var(--ink-2); }

/* Attendance taking grid */
.ums-att-row td { padding-top: 6px; padding-bottom: 6px; }
.ums-att-choices { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ums-att-choices label { position: relative; cursor: pointer; }
.ums-att-choices input { position: absolute; opacity: 0; inset: 0; }
.ums-att-choices span { display: block; padding: 4px 11px; font-weight: 600; font-size: 13.5px; color: var(--ink-2); border-left: 1px solid var(--line); }
.ums-att-choices label:first-child span { border-left: 0; }
.ums-att-choices input:focus-visible + span { box-shadow: inset var(--focus); }
.ums-att-choices input[value=p]:checked + span { background: var(--green-700); color: var(--white); }
.ums-att-choices input[value=a]:checked + span { background: var(--red); color: var(--white); }
.ums-att-choices input[value=l]:checked + span { background: var(--gold); color: var(--ink); }
.ums-att-choices input[value=e]:checked + span { background: var(--blue); color: var(--white); }

/* Marks entry */
.ums-marks input { width: 76px; min-height: 32px; padding: 3px 6px; text-align: right; border: 1px solid var(--line); border-radius: 4px; font: inherit; font-variant-numeric: tabular-nums; }
.ums-marks input:focus { border-color: var(--green-600); outline: none; box-shadow: var(--focus); }
.ums-marks input.is-invalid { border-color: var(--red); background: var(--red-soft); }
.ums-marks th small { display: block; font-weight: 400; color: var(--ink-3); }

/* Timetable grid */
.ums-tt { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.ums-tt-day h3 { font-size: 14px; color: var(--ink-2); margin-bottom: 6px; }
.ums-tt-slot { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--green-600); border-radius: var(--radius); padding: 8px 10px; margin-bottom: 8px; font-size: 13.5px; }
.ums-tt-slot strong { display: block; font-size: 14px; }
.ums-tt-slot span { color: var(--ink-2); display: block; }

/* Announcements */
.ums-notice { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.ums-notice:last-child { border-bottom: 0; }
.ums-notice h3 { font-size: 15px; }
.ums-notice p { margin: 4px 0 0; color: var(--ink-2); font-size: 14px; }
.ums-notice time { font-size: 12.5px; color: var(--ink-3); }
.ums-list { list-style: none; margin: 0; padding: 0; }
.ums-list li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.ums-list li:last-child { border-bottom: 0; }

/* Mapping table on the import page */
.ums-kbd { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; background: var(--line-soft); padding: 1px 5px; border-radius: 3px; }
.ums-steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.ums-steps > li { counter-increment: s; position: relative; padding: 0 0 18px 40px; }
.ums-steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--green-100); color: var(--green-800); font-weight: 700; display: grid; place-items: center; font-size: 13.5px; }
.ums-steps > li.is-done::before { content: "✓"; background: var(--green-700); color: var(--white); }

/* Public pages */
.ums-bare { background: var(--green-900); min-height: 100vh; }
.ums-bare-main { max-width: 440px; margin: 0 auto; padding: 48px 16px; }
.ums-bare-main.is-wide { max-width: 760px; }
.ums-bare-brand { display: flex; gap: 14px; align-items: center; color: var(--white); margin-bottom: 24px; }
.ums-bare-brand img { width: 64px; height: 64px; border-radius: 50%; background: var(--white); padding: 3px; object-fit: contain; }
.ums-bare-uni { font-family: var(--serif); font-size: 22px; font-weight: 600; margin: 0; line-height: 1.2; }
.ums-bare-place { margin: 2px 0 0; color: #a9c7b4; font-size: 14px; }
.ums-card { background: var(--white); border-radius: var(--radius-lg); padding: 26px; }
.ums-card h1 { font-family: var(--serif); font-weight: 600; font-size: 22px; margin-bottom: 4px; }
.ums-card > p { color: var(--ink-2); margin: 0 0 18px; }
.ums-card .ums-btn-primary { width: 100%; height: 42px; }
.ums-card-foot { text-align: center; margin-top: 16px; color: #cfe0d5; font-size: 14px; }
.ums-bare .ums-card-foot a { color: var(--white); }

/* Responsive */
@media (max-width: 1100px) {
	.ums-cols-2-1 { grid-template-columns: 1fr; }
	.ums-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
	.ums-side { transform: translateX(-100%); transition: transform .2s ease; }
	.ums-nav-open .ums-side { transform: none; }
	.ums-shade { display: none; }
	.ums-nav-open .ums-shade { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 35; }
	.ums-main { margin-left: 0; }
	.ums-menu-btn { display: block; }
	.ums-top { padding: 0 12px; gap: 8px; }
	.ums-user-name, .ums-term { display: none; }
	.ums-content { padding: 18px 16px 40px; }
	.ums-grid-2, .ums-grid-3, .ums-grid-4, .ums-details.ums-cols-2, .ums-details.ums-cols-3 { grid-template-columns: 1fr; }
	.ums-page-head h1, .ums-profile h1 { font-size: 22px; }
	.ums-profile-actions { margin-left: 0; }
	.ums-table.is-stacked thead { display: none; }
	.ums-table.is-stacked tr { display: block; border-bottom: 1px solid var(--line); padding: 6px 0; }
	.ums-table.is-stacked td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 4px 16px; text-align: right; }
	.ums-table.is-stacked td::before { content: attr(data-label); color: var(--ink-3); font-size: 13px; text-align: left; }
	.ums-search { max-width: none; }
	.ums-table:has(.ums-att-row) thead { display: none; }
	.ums-att-row td { display: block; border: 0; padding: 4px 16px; }
	.ums-att-row { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
	.ums-att-row td:last-child { padding-bottom: 6px; }
	.ums-att-choices { display: flex; width: 100%; }
	.ums-att-choices label { flex: 1; text-align: center; }
	.ums-att-choices span { padding: 6px 4px; }
}
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; }
}
