/* MedNova HMIS — portal application styles */

.mn-hmis-body,
.mn-hmis-login-body {
	--h-rail: #0a1f35;
	--h-rail-2: #113052;
	--h-rail-ink: #a9c0d3;
	--h-canvas: #edf2f7;
	--h-card: #ffffff;
	--h-ink: #0f2438;
	--h-ink-2: #3d5570;
	--h-muted: #6a7f93;
	--h-line: #dbe4ec;
	--h-line-soft: #eaf0f5;
	--h-blue: #1f6feb;
	--h-teal: #12897f;
	--h-amber: #b07310;
	--h-coral: #c3384a;
	--h-radius: 14px;
	--h-radius-sm: 9px;
	--h-shadow: 0 1px 2px rgba(15, 36, 56, .06), 0 12px 32px rgba(15, 36, 56, .07);
	--h-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--h-display: "Manrope", "Inter", system-ui, sans-serif;
	--h-mono: ui-monospace, "SFMono-Regular", "Roboto Mono", Menlo, monospace;

	margin: 0;
	padding: 0;
	background: var(--h-canvas);
	color: var(--h-ink-2);
	font-family: var(--h-sans);
	font-size: 15px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

.mn-hmis-body *,
.mn-hmis-login-body *,
.mn-hmis-body *::before,
.mn-hmis-login-body *::before,
.mn-hmis-body *::after,
.mn-hmis-login-body *::after { box-sizing: border-box; }

.mn-hmis-body h1, .mn-hmis-body h2, .mn-hmis-body h3, .mn-hmis-body h4,
.mn-hmis-login-body h1, .mn-hmis-login-body h2, .mn-hmis-login-body h3 {
	font-family: var(--h-display);
	color: var(--h-ink);
	letter-spacing: -.02em;
	margin: 0;
	line-height: 1.2;
}

.mn-hmis-body a { color: var(--h-blue); text-decoration: none; }
.mn-hmis-body button, .mn-hmis-login-body button { font: inherit; cursor: pointer; }
.mn-hmis-body :focus-visible,
.mn-hmis-login-body :focus-visible { outline: 2px solid var(--h-blue); outline-offset: 2px; }

/* ------------------------------------------------------------------ shell */

.mn-hmis-app {
	display: grid;
	grid-template-columns: 266px minmax(0, 1fr);
	min-height: 100vh;
}

.mn-hmis-rail {
	background: var(--h-rail);
	color: var(--h-rail-ink);
	display: flex;
	flex-direction: column;
	position: sticky;
	top: 0;
	height: 100vh;
	overflow-y: auto;
	scrollbar-width: thin;
}

.mn-hmis-rail__head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 22px 20px 18px;
}

.mn-hmis-rail__brand {
	display: flex;
	align-items: center;
	gap: 11px;
	color: #fff;
	text-decoration: none;
	font-family: var(--h-display);
	font-weight: 800;
	font-size: 15px;
	line-height: 1.25;
}

.mn-hmis-rail__mark {
	width: 30px;
	height: 30px;
	flex: none;
	border-radius: 9px;
	background: linear-gradient(150deg, #1f6feb, #12897f);
	position: relative;
}

.mn-hmis-rail__mark::before,
.mn-hmis-rail__mark::after {
	content: "";
	position: absolute;
	background: #fff;
	border-radius: 2px;
}

.mn-hmis-rail__mark::before { left: 13px; top: 7px; width: 4px; height: 16px; }
.mn-hmis-rail__mark::after { left: 7px; top: 13px; width: 16px; height: 4px; }

.mn-hmis-rail__close { display: none; background: none; border: 0; color: #fff; font-size: 26px; line-height: 1; }

.mn-hmis-nav { padding: 6px 12px 20px; flex: 1; }

.mn-hmis-nav__group {
	margin: 18px 0 7px;
	padding: 0 10px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .06em;
	color: #6d879e;
}

.mn-hmis-nav a {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 9px 11px;
	border-radius: var(--h-radius-sm);
	color: var(--h-rail-ink);
	font-size: 14.5px;
	font-weight: 500;
	text-decoration: none;
	transition: background 140ms ease, color 140ms ease;
}

.mn-hmis-nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }

.mn-hmis-nav a.is-active {
	background: var(--h-rail-2);
	color: #fff;
	font-weight: 650;
	box-shadow: inset 3px 0 0 var(--h-teal);
}

.mn-hmis-nav__icon { width: 18px; height: 18px; flex: none; opacity: .9; }
.mn-hmis-nav__count { margin-left: auto; font-size: 12px; color: #7f9ab0; font-variant-numeric: tabular-nums; }

.mn-hmis-rail__foot { padding: 16px 20px 22px; border-top: 1px solid rgba(255, 255, 255, .08); }

.mn-hmis-rail__emergency { display: grid; gap: 2px; margin: 0 0 12px; }
.mn-hmis-rail__emergency span { font-size: 11px; color: #7f9ab0; }
.mn-hmis-rail__emergency strong { font-family: var(--h-display); font-size: 21px; color: #ff8f9b; }
.mn-hmis-rail__exit { color: #8fa8bd; font-size: 13px; }

.mn-hmis-main { display: flex; flex-direction: column; min-width: 0; }

/* ----------------------------------------------------------------- topbar */

.mn-hmis-topbar {
	position: sticky;
	top: 0;
	z-index: 30;
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 14px 26px;
	background: rgba(255, 255, 255, .92);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--h-line);
}

.mn-hmis-topbar__title { min-width: 0; margin-right: auto; }
.mn-hmis-topbar__title h1 { font-size: 20px; }
.mn-hmis-topbar__title p { margin: 2px 0 0; font-size: 12.5px; color: var(--h-muted); }

.mn-hmis-search { position: relative; }

.mn-hmis-search input {
	width: 250px;
	max-width: 34vw;
	height: 40px;
	padding: 0 14px;
	border: 1px solid var(--h-line);
	border-radius: 10px;
	background: #f7fafc;
	font: inherit;
	font-size: 14px;
	color: var(--h-ink);
}

.mn-hmis-search input:focus { background: #fff; border-color: var(--h-blue); outline: none; box-shadow: 0 0 0 3px rgba(31, 111, 235, .14); }

.mn-hmis-newbtn {
	height: 40px;
	padding: 0 17px;
	border: 0;
	border-radius: 10px;
	background: var(--h-ink);
	color: #fff;
	font-weight: 650;
	font-size: 14px;
}

.mn-hmis-newbtn:hover { background: #16344f; }

.mn-hmis-account { display: flex; align-items: center; gap: 10px; }
.mn-hmis-account img { border-radius: 50%; }
.mn-hmis-account span { display: grid; line-height: 1.25; }
.mn-hmis-account strong { font-size: 13.5px; color: var(--h-ink); }
.mn-hmis-account em { font-style: normal; font-size: 11.5px; color: var(--h-muted); }
.mn-hmis-account__out { font-size: 12.5px; margin-left: 6px; }

.mn-hmis-burger { display: none; background: none; border: 0; padding: 8px; }
.mn-hmis-burger span { display: block; width: 20px; height: 2px; background: var(--h-ink); margin: 4px 0; border-radius: 2px; }

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

.mn-hmis-view { padding: 24px 26px 60px; }
.mn-hmis-loading { padding: 60px 0; text-align: center; color: var(--h-muted); }

/* Statline: hairline-divided, not a row of identical cards. */
.mn-hmis-statline {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
	background: var(--h-card);
	border: 1px solid var(--h-line);
	border-radius: var(--h-radius);
	overflow: hidden;
	margin-bottom: 20px;
}

.mn-hmis-stat { padding: 16px 20px; border-right: 1px solid var(--h-line-soft); }
.mn-hmis-stat:last-child { border-right: 0; }
.mn-hmis-stat dt { font-size: 12.5px; color: var(--h-muted); margin-bottom: 6px; }

.mn-hmis-stat dd {
	margin: 0;
	font-family: var(--h-display);
	font-size: 27px;
	font-weight: 800;
	color: var(--h-ink);
	font-variant-numeric: tabular-nums;
	letter-spacing: -.03em;
}

.mn-hmis-stat small { display: block; margin-top: 4px; font-size: 12px; color: var(--h-muted); }
.mn-hmis-stat small.up { color: var(--h-teal); }
.mn-hmis-stat small.down { color: var(--h-coral); }

.mn-hmis-grid { display: grid; gap: 20px; }
.mn-hmis-grid--split { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.mn-hmis-grid--half { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.mn-hmis-panel {
	background: var(--h-card);
	border: 1px solid var(--h-line);
	border-radius: var(--h-radius);
	box-shadow: var(--h-shadow);
	overflow: hidden;
}

.mn-hmis-panel__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 20px;
	border-bottom: 1px solid var(--h-line-soft);
}

.mn-hmis-panel__head h2 { font-size: 15.5px; }
.mn-hmis-panel__head p { margin: 2px 0 0; font-size: 12.5px; color: var(--h-muted); }
.mn-hmis-panel__body { padding: 18px 20px; }
.mn-hmis-panel__body--flush { padding: 0; }

/* Ward board — the signature element of the overview. */
.mn-hmis-ward { padding: 16px 20px 20px; border-bottom: 1px solid var(--h-line-soft); }
.mn-hmis-ward:last-child { border-bottom: 0; }

.mn-hmis-ward__head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.mn-hmis-ward__head h3 { font-size: 14px; }
.mn-hmis-ward__head span { font-size: 12px; color: var(--h-muted); }
.mn-hmis-ward__head strong { margin-left: auto; font-size: 12.5px; color: var(--h-ink); font-variant-numeric: tabular-nums; }

.mn-hmis-beds { display: flex; flex-wrap: wrap; gap: 6px; }

.mn-hmis-bed {
	width: 46px;
	height: 38px;
	border-radius: 7px;
	border: 1px solid var(--h-line);
	background: #f5f9fb;
	display: grid;
	place-items: center;
	font-family: var(--h-mono);
	font-size: 10.5px;
	color: var(--h-muted);
}

.mn-hmis-bed[data-status="Occupied"] { background: #113052; border-color: #113052; color: #cfe0ee; }
.mn-hmis-bed[data-status="Vacant"] { background: #e8f6f2; border-color: #c3e6dd; color: #0e6f66; }
.mn-hmis-bed[data-status="Cleaning"] { background: #fdf3e2; border-color: #f0ddb9; color: #96620c; }
.mn-hmis-bed[data-status="Maintenance"] { background: #fdecee; border-color: #f4ccd2; color: #a52c3d; }

.mn-hmis-legend { display: flex; flex-wrap: wrap; gap: 14px; padding: 14px 20px; border-top: 1px solid var(--h-line-soft); font-size: 12.5px; color: var(--h-muted); }
.mn-hmis-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: 6px; vertical-align: -1px; }

/* Queue list */
.mn-hmis-queue { list-style: none; margin: 0; padding: 0; }

.mn-hmis-queue li {
	display: grid;
	grid-template-columns: 58px minmax(0, 1fr) auto;
	gap: 12px;
	align-items: center;
	padding: 12px 20px;
	border-bottom: 1px solid var(--h-line-soft);
}

.mn-hmis-queue li:last-child { border-bottom: 0; }
.mn-hmis-queue time { font-family: var(--h-mono); font-size: 12.5px; color: var(--h-ink); }
.mn-hmis-queue strong { display: block; font-size: 14px; color: var(--h-ink); font-weight: 600; }
.mn-hmis-queue span { font-size: 12.5px; color: var(--h-muted); }

/* Chart */
.mn-hmis-chart { width: 100%; height: 190px; display: block; }
.mn-hmis-chart .grid { stroke: var(--h-line-soft); stroke-width: 1; }
.mn-hmis-chart .area { fill: rgba(31, 111, 235, .10); }
.mn-hmis-chart .line { fill: none; stroke: var(--h-blue); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.mn-hmis-chart .line--alt { stroke: var(--h-teal); stroke-dasharray: 4 4; stroke-width: 2; }
.mn-hmis-chart .dot { fill: var(--h-blue); }
.mn-hmis-chart text { font-family: var(--h-sans); font-size: 10px; fill: var(--h-muted); }

.mn-hmis-bars { display: grid; gap: 11px; }
.mn-hmis-bars div { display: grid; grid-template-columns: 130px minmax(0, 1fr) 44px; gap: 10px; align-items: center; font-size: 13px; }
.mn-hmis-bars i { display: block; height: 8px; border-radius: 4px; background: var(--h-blue); opacity: .85; }
.mn-hmis-bars b { text-align: right; font-variant-numeric: tabular-nums; color: var(--h-ink); font-weight: 600; }

/* Alerts + activity */
.mn-hmis-alerts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

.mn-hmis-alerts li {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	padding: 12px 14px;
	border-radius: var(--h-radius-sm);
	border: 1px solid var(--h-line);
	background: #f9fbfc;
	font-size: 13.5px;
}

.mn-hmis-alerts li[data-tone="warn"] { border-color: #f0ddb9; background: #fdf8ef; }
.mn-hmis-alerts li[data-tone="bad"] { border-color: #f4ccd2; background: #fdf2f3; }
.mn-hmis-alerts li[data-tone="info"] { border-color: #cfe0f7; background: #f4f8fe; }
.mn-hmis-alerts button { background: none; border: 0; color: var(--h-blue); padding: 0; margin-left: auto; font-size: 13px; white-space: nowrap; }

.mn-hmis-feed { list-style: none; margin: 0; padding: 0; }
.mn-hmis-feed li { padding: 10px 0; border-bottom: 1px dashed var(--h-line-soft); font-size: 13.5px; }
.mn-hmis-feed li:last-child { border-bottom: 0; }
.mn-hmis-feed span { display: block; font-size: 12px; color: var(--h-muted); margin-top: 2px; }

/* ----------------------------------------------------------------- tables */

.mn-hmis-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	padding: 14px 20px;
	border-bottom: 1px solid var(--h-line-soft);
}

.mn-hmis-chip {
	border: 1px solid var(--h-line);
	background: #fff;
	color: var(--h-ink-2);
	border-radius: 999px;
	padding: 6px 13px;
	font-size: 13px;
}

.mn-hmis-chip.is-on { background: var(--h-ink); border-color: var(--h-ink); color: #fff; }
.mn-hmis-toolbar__count { margin-left: auto; font-size: 12.5px; color: var(--h-muted); }

.mn-hmis-tablewrap { overflow-x: auto; }
.mn-hmis-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }

.mn-hmis-table th {
	text-align: left;
	font-weight: 600;
	font-size: 12px;
	color: var(--h-muted);
	padding: 11px 16px;
	border-bottom: 1px solid var(--h-line);
	white-space: nowrap;
	background: #fafcfd;
}

.mn-hmis-table td { padding: 12px 16px; border-bottom: 1px solid var(--h-line-soft); color: var(--h-ink-2); vertical-align: top; }
.mn-hmis-table tbody tr:hover { background: #f6fafc; }
.mn-hmis-table td.mono { font-family: var(--h-mono); font-size: 12.5px; color: var(--h-ink); white-space: nowrap; }
.mn-hmis-table td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mn-hmis-table td.title { color: var(--h-ink); font-weight: 600; }
.mn-hmis-table td.actions { text-align: right; white-space: nowrap; }

.mn-hmis-rowbtn { background: none; border: 0; color: var(--h-blue); font-size: 13px; padding: 2px 6px; }
.mn-hmis-rowbtn--danger { color: var(--h-coral); }

.mn-hmis-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 9px 3px 7px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	background: #eef2f6;
	color: #43596e;
	white-space: nowrap;
}

.mn-hmis-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.mn-hmis-badge[data-tone="good"] { background: #e8f6f2; color: #0e6f66; }
.mn-hmis-badge[data-tone="warn"] { background: #fdf3e2; color: #8f5d0b; }
.mn-hmis-badge[data-tone="bad"] { background: #fdecee; color: #a52c3d; }
.mn-hmis-badge[data-tone="info"] { background: #eaf2fe; color: #1a56b8; }
.mn-hmis-badge[data-tone="muted"] { background: #eef2f6; color: #5b7086; }

.mn-hmis-flag { color: var(--h-coral); font-weight: 600; font-size: 12.5px; }

.mn-hmis-pager { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--h-line-soft); font-size: 13px; color: var(--h-muted); }
.mn-hmis-pager button { border: 1px solid var(--h-line); background: #fff; border-radius: 8px; padding: 6px 12px; font-size: 13px; color: var(--h-ink); }
.mn-hmis-pager button[disabled] { opacity: .45; cursor: default; }

.mn-hmis-empty { padding: 56px 24px; text-align: center; }
.mn-hmis-empty h3 { font-size: 16px; margin-bottom: 6px; }
.mn-hmis-empty p { margin: 0 auto 16px; max-width: 46ch; color: var(--h-muted); font-size: 13.5px; }

/* ----------------------------------------------------------------- drawer */

.mn-hmis-drawer { position: fixed; inset: 0; z-index: 60; background: rgba(10, 31, 53, .42); display: flex; justify-content: flex-end; }

.mn-hmis-drawer__panel {
	width: min(560px, 100%);
	background: #fff;
	height: 100%;
	overflow-y: auto;
	box-shadow: -20px 0 60px rgba(10, 31, 53, .2);
	animation: mnHmisSlide 220ms cubic-bezier(.2, .7, .2, 1);
}

@keyframes mnHmisSlide { from { transform: translateX(24px); opacity: .6; } to { transform: none; opacity: 1; } }

.mn-hmis-drawer__panel > header {
	position: sticky;
	top: 0;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 20px 24px 14px;
	border-bottom: 1px solid var(--h-line-soft);
}

.mn-hmis-drawer__panel > header h2 { font-size: 17px; }
.mn-hmis-drawer__panel > header button { background: none; border: 0; font-size: 26px; line-height: 1; color: var(--h-muted); }

#mn-hmis-form { padding: 20px 24px 32px; display: grid; gap: 15px; }
#mn-hmis-form .row { display: grid; gap: 6px; }
#mn-hmis-form .row--two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
#mn-hmis-form label { font-size: 13px; font-weight: 600; color: var(--h-ink); }
#mn-hmis-form .hint { font-size: 12px; color: var(--h-muted); }

#mn-hmis-form input,
#mn-hmis-form select,
#mn-hmis-form textarea {
	width: 100%;
	border: 1px solid var(--h-line);
	border-radius: 10px;
	padding: 10px 12px;
	font: inherit;
	font-size: 14px;
	color: var(--h-ink);
	background: #fff;
}

#mn-hmis-form textarea { min-height: 88px; resize: vertical; }
#mn-hmis-form input:focus, #mn-hmis-form select:focus, #mn-hmis-form textarea:focus { border-color: var(--h-blue); outline: none; box-shadow: 0 0 0 3px rgba(31, 111, 235, .14); }

.mn-hmis-formactions { display: flex; gap: 10px; margin-top: 6px; }

.mn-hmis-formactions button {
	height: 44px;
	padding: 0 20px;
	border-radius: 10px;
	border: 1px solid var(--h-line);
	background: #fff;
	color: var(--h-ink);
	font-weight: 600;
}

.mn-hmis-formactions button[type="submit"] { background: var(--h-blue); border-color: var(--h-blue); color: #fff; margin-right: auto; }
.mn-hmis-formerror { color: var(--h-coral); font-size: 13px; }

/* ------------------------------------------------------------------ toast */

.mn-hmis-toast {
	position: fixed;
	left: 50%;
	bottom: 28px;
	transform: translateX(-50%);
	z-index: 80;
	background: var(--h-ink);
	color: #fff;
	padding: 11px 18px;
	border-radius: 10px;
	font-size: 13.5px;
	box-shadow: 0 14px 40px rgba(10, 31, 53, .3);
}

.mn-hmis-toast[data-tone="bad"] { background: var(--h-coral); }

.mn-hmis-scrim { position: fixed; inset: 0; background: rgba(10, 31, 53, .45); z-index: 40; }

/* ------------------------------------------------------------- login page */

.mn-hmis-login { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); min-height: 100vh; }

.mn-hmis-login__aside {
	background: linear-gradient(160deg, #0a1f35 0%, #113052 62%, #0d3f47 100%);
	color: #b6cbdc;
	padding: clamp(32px, 5vw, 60px);
	display: flex;
	flex-direction: column;
	gap: 26px;
	position: relative;
	overflow: hidden;
}

.mn-hmis-login__brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; font-family: var(--h-display); font-weight: 800; font-size: 17px; text-decoration: none; }
.mn-hmis-login__mark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(150deg, #1f6feb, #12897f); position: relative; flex: none; }
.mn-hmis-login__mark::before, .mn-hmis-login__mark::after { content: ""; position: absolute; background: #fff; border-radius: 2px; }
.mn-hmis-login__mark::before { left: 15px; top: 8px; width: 4px; height: 18px; }
.mn-hmis-login__mark::after { left: 8px; top: 15px; width: 18px; height: 4px; }

.mn-hmis-login__pitch { margin-top: auto; max-width: 30ch; }
.mn-hmis-login__pitch h1 { color: #fff; font-size: clamp(2.1rem, 3.4vw, 3.3rem); line-height: 1.04; letter-spacing: -.04em; }
.mn-hmis-login__pitch p { max-width: 46ch; margin: 18px 0 0; color: #a7c0d3; font-size: 15px; line-height: 1.7; }

.mn-hmis-trace { width: 100%; height: 90px; opacity: .55; }
.mn-hmis-trace path { fill: none; stroke: #4fd6c2; stroke-width: 2; stroke-linejoin: round; stroke-dasharray: 1500; stroke-dashoffset: 1500; animation: mnHmisTrace 7s linear infinite; }

@keyframes mnHmisTrace { to { stroke-dashoffset: 0; } }

.mn-hmis-login__facts { display: flex; flex-wrap: wrap; gap: 34px; margin: 0; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); }
.mn-hmis-login__facts dt { font-size: 12px; color: #85a2ba; }
.mn-hmis-login__facts dd { margin: 4px 0 0; color: #fff; font-family: var(--h-display); font-size: 18px; font-weight: 700; }

.mn-hmis-login__panel { display: grid; place-items: center; padding: clamp(28px, 5vw, 60px); background: #fff; }
.mn-hmis-login__card { width: min(400px, 100%); }
.mn-hmis-login__card h2 { font-size: 27px; }
.mn-hmis-login__sub { margin: 8px 0 24px; color: var(--h-muted); font-size: 14px; }
.mn-hmis-login__links { display: flex; justify-content: space-between; gap: 14px; margin-top: 18px; font-size: 13.5px; }
.mn-hmis-login__links a { color: var(--h-blue); }

/* Shared form styling for both login screens and the homepage band. */
.mn-hmis-form { display: grid; gap: 15px; }
.mn-hmis-field { display: grid; gap: 6px; }
.mn-hmis-field span { font-size: 13px; font-weight: 600; color: var(--h-ink); }

.mn-hmis-field input {
	height: 48px;
	border: 1px solid var(--h-line);
	border-radius: 10px;
	padding: 0 14px;
	font: inherit;
	font-size: 15px;
	color: var(--h-ink);
	background: #fff;
	width: 100%;
}

.mn-hmis-field input:focus { border-color: var(--h-blue); outline: none; box-shadow: 0 0 0 3px rgba(31, 111, 235, .14); }
.mn-hmis-check { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--h-ink-2); }

.mn-hmis-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 50px;
	width: 100%;
	border: 0;
	border-radius: 10px;
	background: var(--h-blue);
	color: #fff;
	font-weight: 700;
	font-size: 15px;
	text-decoration: none;
	transition: background 160ms ease;
}

.mn-hmis-submit:hover { background: #1a5fd0; color: #fff; }

.mn-hmis-alert {
	margin: 0 0 16px;
	padding: 12px 14px;
	border-radius: 10px;
	background: #fdecee;
	border: 1px solid #f4ccd2;
	color: #98283a;
	font-size: 13.5px;
}

/* -------------------------------------------------------------- responsive */

@media (max-width: 1180px) {
	.mn-hmis-grid--split { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 1024px) {
	.mn-hmis-app { grid-template-columns: minmax(0, 1fr); }

	.mn-hmis-rail {
		position: fixed;
		z-index: 50;
		left: 0;
		top: 0;
		width: 274px;
		transform: translateX(-100%);
		transition: transform 220ms cubic-bezier(.2, .7, .2, 1);
	}

	.mn-hmis-rail.is-open { transform: none; }
	.mn-hmis-rail__close { display: block; margin-left: auto; }
	.mn-hmis-burger { display: block; }
	.mn-hmis-login { grid-template-columns: minmax(0, 1fr); }
	.mn-hmis-login__aside { min-height: 320px; }
}

@media (max-width: 780px) {
	.mn-hmis-topbar { flex-wrap: wrap; padding: 12px 16px; }
	.mn-hmis-search { order: 5; width: 100%; }
	.mn-hmis-search input { width: 100%; max-width: none; }
	.mn-hmis-account span, .mn-hmis-account__out { display: none; }
	.mn-hmis-view { padding: 18px 16px 60px; }
	.mn-hmis-grid--half { grid-template-columns: minmax(0, 1fr); }
	.mn-hmis-queue li { grid-template-columns: 52px minmax(0, 1fr); }
	.mn-hmis-queue li > :last-child { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
	.mn-hmis-trace path { animation: none; stroke-dashoffset: 0; }
	.mn-hmis-drawer__panel { animation: none; }
	.mn-hmis-rail { transition: none; }
}

/* [hidden] must beat the class-level display rules above */
.mn-hmis-drawer[hidden],
.mn-hmis-scrim[hidden],
.mn-hmis-toast[hidden],
.mn-hmis-newbtn[hidden] { display: none !important; }
