/*
 * MA-ZAL Group — the frame of every page: header (desktop bar / phone app bar), language switch, side menu,
 * phone dock, footer, account side menu. Reads tokens.css only.
 */

/* ---------- header ---------- */
.mzs-header {
	position: sticky;
	top: 0;
	z-index: var(--z-sticky);
	padding-top: var(--safe-top);
	background: var(--c-surface);
	border-bottom: var(--b-1);
}

.mzs-header__bar {
	display: flex;
	align-items: center;
	gap: var(--s-5);
	min-height: 5.25rem;
}

.mzs-brand {
	display: inline-flex;
	align-items: center;
	gap: var(--s-3);
	color: var(--c-ink);
	text-decoration: none;
	min-width: 0;
}

.mzs-brand:hover { color: var(--c-ink); }
.mzs-brand__logo { width: 2.75rem; height: 2.75rem; flex: 0 0 auto; }

.mzs-brand__name {
	font-size: 1.375rem;
	font-weight: var(--fw-bold);
	letter-spacing: 0.01em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	direction: ltr;
}

.mzs-nav {
	display: flex;
	align-items: center;
	gap: var(--s-6);
	margin-inline: auto;
}

.mzs-nav a {
	position: relative;
	padding-block: var(--s-2);
	color: var(--c-ink);
	font-size: var(--fs-body);
	font-weight: var(--fw-medium);
}

.mzs-nav a.is-current::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	height: 2px;
	border-radius: var(--r-pill);
	background: var(--c-gold);
}

.mzs-header__tools {
	display: flex;
	align-items: center;
	gap: var(--s-3);
}

.mzs-menu-btn {
	display: none; /* owner 11/11: never shown — the menu is «More» in the bottom bar on phones, the top menu on computers */
}

/* ---------- language switch (flags and names from demo-ui-languages.json) ---------- */
.mzs-lang { position: relative; }

.mzs-lang__current {
	display: inline-flex;
	align-items: center;
	gap: var(--s-2);
	min-height: var(--h-control-sm);
	padding: 0 var(--s-3);
	border: var(--b-1);
	border-radius: var(--r-pill);
	background: transparent;
	color: var(--c-ink);
	font: var(--fw-semi) var(--fs-small)/1 var(--f-text);
	cursor: pointer;
}

.mzs-flag {
	width: 1.25rem;
	height: 1.25rem;
	border-radius: 50%;
	object-fit: cover;
	flex: 0 0 auto;
}

.mzs-lang__list {
	position: absolute;
	inset-inline-end: 0;
	top: calc(100% + var(--s-2));
	z-index: var(--z-drawer);
	display: grid;
	min-width: 11rem;
	margin: 0;
	padding: var(--s-2);
	list-style: none;
	background: var(--c-surface);
	border: var(--b-1);
	border-radius: var(--r-md);
	box-shadow: var(--shadow-1);
}

.mzs-lang__list button {
	display: flex;
	align-items: center;
	gap: var(--s-3);
	width: 100%;
	min-height: var(--tap);
	padding: 0 var(--s-3);
	border: 0;
	border-radius: var(--r-sm);
	background: transparent;
	color: var(--c-ink);
	font: var(--fw-medium) var(--fs-small)/1 var(--f-text);
	text-align: start;
	cursor: pointer;
}

.mzs-lang__list button:hover,
.mzs-lang__list button.is-active { background: var(--c-gold-soft); }

/* ---------- side menu (phones and tablets) ---------- */
.mzs-drawer {
	position: fixed;
	inset-block: 0;
	inset-inline-start: 0;
	z-index: var(--z-drawer);
	display: flex;
	flex-direction: column;
	gap: var(--s-5);
	width: min(86vw, 22rem);
	box-sizing: border-box;
	padding: calc(var(--s-5) + var(--safe-top)) var(--s-5) calc(var(--s-5) + var(--safe-bottom));
	overflow-y: auto;
	background: var(--c-surface);
	box-shadow: var(--shadow-1);
}

.mzs-drawer[hidden] { display: none; }

.mzs-drawer__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.mzs-drawer__nav {
	display: grid;
	gap: var(--s-1);
}

.mzs-drawer__nav a {
	display: flex;
	align-items: center;
	gap: var(--s-3);
	min-height: var(--tap);
	padding: 0 var(--s-3);
	border-radius: var(--r-sm);
	color: var(--c-ink);
	font-weight: var(--fw-medium);
}

.mzs-drawer__nav a.is-current { background: var(--c-gold-soft); }
.mzs-drawer__label { font-size: var(--fs-micro); font-weight: var(--fw-semi); color: var(--c-ink-2); padding-inline: var(--s-3); }

.mzs-drawer__langs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--s-2);
}

.mzs-drawer__langs button {
	display: flex;
	align-items: center;
	gap: var(--s-2);
	min-height: var(--tap);
	padding: 0 var(--s-3);
	border: var(--b-1);
	border-radius: var(--r-sm);
	background: transparent;
	color: var(--c-ink);
	font: var(--fw-medium) var(--fs-small)/1 var(--f-text);
	cursor: pointer;
}

.mzs-drawer__langs button.is-active { border-color: var(--c-gold); background: var(--c-gold-soft); }

.mzs-drawer-scrim {
	position: fixed;
	inset: 0;
	z-index: calc(var(--z-drawer) - 1);
	background: var(--c-scrim);
}

.mzs-drawer-scrim[hidden] { display: none; }

/* T434 (owner approved t434-faces 10/11): the Work face of the app — a gold strip on every page, a dark header */
.mzs-workstrip { display: flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: 1.75rem; padding: 2px var(--s-3); background: var(--c-night); color: var(--c-gold-night); font: var(--fw-bold, 800) 0.78rem/1.3 var(--f-text); letter-spacing: .02em; text-align: center; }
.mzs-workstrip__dot { flex: none; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.mzs-face-work .mzs-header { background: var(--c-night-2); border-bottom-color: var(--c-night-line); }
.mzs-face-work .mzs-brand,
.mzs-face-work .mzs-brand:hover,
.mzs-face-work .mzs-header__tools { color: var(--c-on-night); }

/* ---------- dock (phones) ---------- */
.mzs-dock {
	display: none;
}

/* ---------- footer ---------- */
.mzs-footer {
	background: var(--c-night);
	color: var(--c-on-night-2);
	font-size: var(--fs-small);
}

.mzs-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(10rem, 1fr));
	gap: var(--s-6);
	padding-block: var(--s-8) var(--s-6);
}

.mzs-footer__brand { display: grid; gap: var(--s-3); align-content: start; max-width: 22rem; }
.mzs-footer .mzs-brand { color: var(--c-on-night); }
.mzs-footer .mzs-brand:hover { color: var(--c-on-night); }
.mzs-footer__title { color: var(--c-on-night); font-size: var(--fs-small); font-weight: var(--fw-semi); margin-block-end: var(--s-3); }
.mzs-footer__links { display: grid; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.mzs-footer a { color: var(--c-on-night-2); }
.mzs-footer a:hover { color: var(--c-gold-night); }

.mzs-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: var(--s-3);
	padding-block: var(--s-5);
	border-top: 1px solid var(--c-night-line);
	color: var(--c-on-night-3);
	font-size: var(--fs-tiny);
}

/* ---------- account frame (layout.php: side menu + page) ---------- */
.mzs-account {
	display: grid;
	grid-template-columns: 16rem minmax(0, 1fr);
	gap: var(--s-6);
	align-items: start;
}

.mzs-account__body { min-width: 0; }

.mzs-side {
	min-width: 0;
	position: sticky;
	top: calc(5.25rem + var(--s-5));
	display: grid;
	gap: var(--s-4);
	padding: var(--s-4);
	background: var(--c-surface);
	border: var(--b-1);
	border-radius: var(--r-md);
}

.mzs-side__group { display: grid; gap: var(--s-1); }
.mzs-side__label { font-size: var(--fs-micro); font-weight: var(--fw-semi); color: var(--c-ink-2); padding-inline: var(--s-3); }

.mzs-side a {
	display: flex;
	align-items: center;
	gap: var(--s-3);
	min-height: var(--tap);
	padding: 0 var(--s-3);
	border-radius: var(--r-sm);
	color: var(--c-ink);
	font-size: var(--fs-small);
	font-weight: var(--fw-medium);
}

.mzs-side a.is-current { background: var(--c-gold-soft); }

.mzs-side__user {
	display: flex;
	align-items: center;
	gap: var(--s-3);
	padding: var(--s-2) var(--s-3) var(--s-4);
	border-bottom: var(--b-1);
}

.mzs-side__who { display: grid; min-width: 0; }

.mzs-side__email {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--c-ink-2);
	font-size: var(--fs-micro);
}

.mzs-avatar {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	background: var(--c-gold-soft);
	color: var(--c-gold-text);
	font-weight: var(--fw-bold);
}

/* ---------- phones and tablets ---------- */
@media (max-width: 63.99rem) {
	.mzs-header__bar { min-height: var(--bar-h); gap: var(--s-2); }
	.mzs-nav,
	.mzs-header__tools .mzs-lang,
	.mzs-header__tools .mzs-btn { display: none; } /* owner 11/11: on the phone no buttons at the top — the menu is only «More» in the bottom bar (languages + account there) */
	.mzs-brand__logo { width: 2rem; height: 2rem; }
	.mzs-brand__name { font-size: 1.125rem; }
	.mzs-header__tools { margin-inline-start: auto; }

	/* REQ-20261102-05: attached to the bottom edge, full width, never floating; the iPhone home bar stays clear */
	.mzs-dock {
		position: fixed;
		inset-inline: 0;
		bottom: 0;
		z-index: var(--z-dock);
		display: grid;
		grid-auto-flow: column;
		grid-auto-columns: minmax(0, 1fr);
		align-items: center;
		height: calc(var(--dock-h) + var(--safe-bottom));
		padding: 0 var(--s-1) var(--safe-bottom);
		background: #fff;
		border-top: var(--b-1);
		box-shadow: 0 -2px 10px rgba(43, 35, 22, .06);
	}

	.mzs-dock a,
	.mzs-dock button {
		display: grid;
		justify-items: center;
		gap: 3px;
		min-height: var(--tap);
		padding: var(--s-1) 0;
		border: 0;
		background: transparent;
		color: var(--c-ink-2);
		font: var(--fw-semi) 0.71875rem/1.2 var(--f-text);
		text-align: center;
		cursor: pointer;
	}

	.mzs-dock svg { box-sizing: content-box; padding: 4px 16px; border-radius: 15px; transition: background-color .18s, stroke-width .18s; }
	.mzs-dock .is-current { color: var(--c-gold-text); font-weight: var(--fw-bold, 800); }
	.mzs-dock .is-current svg { background: rgba(168, 130, 47, .16); stroke-width: 2.3; }

	body.mzs { padding-bottom: calc(var(--dock-h) + var(--s-4) + var(--safe-bottom)); }
	.mzs-account { grid-template-columns: 1fr; }
	.mzs-side { display: none; }
	.mzs-footer__grid { grid-template-columns: 1fr 1fr; }
	.mzs-footer__brand { grid-column: 1 / -1; }
}

/* preview frame (REQ-20261102-29): the design only — no bottom padding for a bar that is not there; app prompts hidden;
   a locked link answers with a short shake */
body.mzs.mzs-frame {
	padding-bottom: 0;
}

/* owner 3/11 (T197): the preview's title inside its own design, to match it with its card */
.mzs-pv-own {
	margin: var(--s-3) auto 0;
	max-width: 720px;
	padding: var(--s-2) var(--s-4);
	border-radius: var(--r-pill);
	background: var(--c-gold-soft);
	color: var(--c-gold-text);
	font-size: var(--fs-tiny);
	font-weight: var(--fw-bold);
	text-align: center;
}

body.mzs-frame .mzs-push,
body.mzs-frame .mzpk-offer {
	display: none;
}

.mzs-frame-tap {
	animation: mzs-frame-tap 0.3s;
}

@keyframes mzs-frame-tap {
	25% { transform: translateX(-3px); }
	75% { transform: translateX(3px); }
}

/* T264 (owner 4/11): the notifications bell on the top bar of the app, a gold dot with the unread count */
.mzs-hbell { position: relative; color: var(--c-ink); }
.mzs-hbell__dot { position: absolute; inset-block-start: 2px; inset-inline-end: 2px; min-width: 1.1rem; padding: 0 4px; border-radius: var(--r-pill); background: var(--c-gold); color: var(--c-on-gold); font-size: var(--fs-micro); font-weight: var(--fw-bold); line-height: 1.1rem; text-align: center; }
.mzs-face-work .mzs-hbell { color: var(--c-on-night); } /* T434: the bell on the dark header of the Work face */
/* T1261 (owner 14/11): the app top bar = the approved app design (.mzapp .hd): the page colour, no line, the name in gold
   letters, the bell in a round card; the same for every face */
body.mzs-app .mzs-header, body.mzs-app.mzs-face-work .mzs-header { background: var(--c-paper); border-bottom: 0; box-shadow: none; }
/* 15/11 (owner): the MA-ZAL logo in the app top bar — the logo is the wordmark, so the written name is hidden */
body.mzs-app .mzs-brand__logo { display: block; width: auto; height: 40px; aspect-ratio: 1 / 1; object-fit: contain; }
body.mzs-app .mzs-brand__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.mzs-app .mzs-brand__name, body.mzs-app.mzs-face-work .mzs-brand__name { color: var(--c-gold); font-weight: 800; letter-spacing: .06em; }
body.mzs-app .mzs-hbell, body.mzs-app.mzs-face-work .mzs-hbell { width: 38px; height: 38px; border-radius: 50%; background: var(--c-surface); border: 1px solid var(--c-line); color: var(--c-ink); display: grid; place-items: center; }
body.mzs-app .mzs-hbell__dot { inset-block-start: -2px; inset-inline-end: -2px; min-width: 17px; line-height: 17px; background: var(--c-bad); color: var(--c-on-gold); }
body.mzs-app .mzs-hcart { position: relative; width: 40px; height: 40px; border-radius: 50%; background: none; border: 1px solid var(--c-line); color: var(--c-ink); display: grid; place-items: center; } /* REQ-05 */
body.mzs-app .mzs-hcart__n { position: absolute; inset-block-start: -3px; inset-inline-end: -3px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--c-gold); color: var(--c-on-gold); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
body.mzs-app .mzs-main > .mzs-container { padding-inline: 0; }
body.mzs-app .mzs-inner { padding-block: 0; }
body.mzs-app .mzs-brand__name { font-size: 1rem; }
body.mzs-app .mzs-header__bar { min-height: 0; padding: 6px 18px 10px; }
/* T1261: on a laptop the app is the same phone column (max 560px, as .mzapp .body): only the name and the bell on top, the bar at the bottom */
body.mzs-app .mzs-header__bar { max-width: 560px; margin-inline: auto; }
body.mzs-app .mzs-nav, body.mzs-app .mzs-header__tools > :not(.mzs-hbell) { display: none; }
body.mzs-app .mzs-dock--app { display: grid; position: fixed; inset-inline: 0; bottom: 0; z-index: var(--z-dock); max-width: 560px; margin-inline: auto; }
body.mzs-app.mzs { padding-bottom: calc(92px + var(--safe-bottom)); }
body.mzs-app .mzs-hback { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--c-surface); border: 1px solid var(--c-line); color: var(--c-ink); display: grid; place-items: center; }
body.mzs-app .mzs-htitle { margin: 0; font-size: 20px; font-weight: 800; line-height: 1.2; color: var(--c-ink); }
body.mzs-app .mzapp label { font-weight: 400; } /* the theme base (label weight, field height and shadow) does not reach the design pages */
body.mzs-app .mzapp input, body.mzs-app .mzapp select, body.mzs-app .mzapp textarea { min-height: 0; box-shadow: none; }
body.mzs-app .mzapp { line-height: normal; } /* the design runs on the browser defaults: normal line height, small = smaller */
body.mzs-app .mzapp small { font-size: smaller; }
body.mzs-app .mzs-workstrip { display: none; } /* the approved app design has no Work strip: the Work face shows by its own bar and home */
/* T1261 (owner 14/11): the app bar = the approved app design (.mzapp .dock): five buttons, the dark round Scan raised
   in the middle, the current tab marked by a short gold line above it; one light bar for every face */
.mzs-dock--app { height: calc(92px + var(--safe-bottom)); padding: 8px 6px calc(26px + var(--safe-bottom)); align-items: start; background: color-mix(in srgb, var(--c-surface) 94%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--c-line); box-shadow: none; grid-auto-flow: unset; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.mzs-dock--app a { display: grid; justify-items: center; text-align: center; text-decoration: none; border: 0; background: transparent; position: relative; gap: 3px; min-height: 0; padding: 0; color: var(--c-ink-2); font-size: 11px; font-weight: 500; }
.mzs-dock--app svg { width: 23px; height: 23px; padding: 0; border-radius: 0; background: none; transition: none; }
.mzs-dock--app .is-current { color: var(--c-ink); font-weight: 700; }
.mzs-dock--app .is-current svg { background: none; stroke-width: 1.8; }
.mzs-dock--app .is-current::before { content: ""; position: absolute; top: -8px; width: 26px; height: 3px; border-radius: 2px; background: var(--c-gold); }
.mzs-dock--app a.mzs-dock__scan { justify-self: center; display: grid; place-items: center; width: 56px; height: 56px; margin-top: -22px; border-radius: 50%; background: var(--c-night); color: var(--c-on-night); box-shadow: 0 8px 20px rgba(0, 0, 0, .25); }
.mzs-dock--app a.mzs-dock__scan svg { width: 26px; height: 26px; }
span.mzs-brand { cursor: default; }

/* T337: the page came from the phone's copy (no connection / very slow network) — owner 11/11: a short message above the bottom bar */
.mzs-queue { position: fixed; inset-inline: var(--s-3); bottom: calc(var(--dock-h) + var(--s-3) + env(safe-area-inset-bottom, 0px)); z-index: var(--z-dock); max-width: 26rem; margin: 0 auto; padding: var(--s-2) var(--s-4); border-radius: var(--r-pill); background: var(--c-night); color: var(--c-on-night); font-size: var(--fs-small); text-align: center; box-shadow: 0 6px 16px var(--c-shadow); } /* T1121: the action queue, above the bottom bar */
.mzs-saved-copy.is-out { opacity: 0; }
.mzs-saved-copy { position: fixed; inset-inline: var(--s-3); bottom: calc(var(--dock-h) + var(--s-3) + env(safe-area-inset-bottom, 0px)); transition: opacity .3s; /* owner 11/11: above the bottom bar, then it goes */ z-index: var(--z-dock); max-width: 26rem; margin: 0 auto; padding: var(--s-2) var(--s-4); border-radius: var(--r-pill); background: var(--c-night); color: var(--c-on-night); font-size: var(--fs-small); text-align: center; box-shadow: 0 6px 16px var(--c-shadow); }

/* T118 (REQ-20261102-28, owner 2/11): on a short page the iPhone (installed app) lifted the fixed bottom bar because the
   page was shorter than the screen. The page now always fills the screen, so the bar stays on the bottom edge. */
html { min-height: 100%; min-height: -webkit-fill-available; }
body { min-height: 100vh; min-height: -webkit-fill-available; min-height: 100dvh; }
/* T1294 (owner 15/11): an app page never bounces nor shows an empty band when pulled; the space behind it is the app paper */
html:has(> body.mzs-app), body.mzs-app { overscroll-behavior: none; background: var(--c-paper); }

/* T655: workshop test of the app screens in a browser — a quiet chip above the dock, one tap leaves the test */
.mzs-apptry { position: fixed; inset-inline-start: var(--s-3); bottom: calc(var(--dock-h) + var(--s-3) + env(safe-area-inset-bottom, 0px)); z-index: var(--z-dock); padding: var(--s-1) var(--s-3); border: 1px solid var(--c-line); border-radius: var(--r-pill); background: var(--c-surface); color: var(--c-ink-2); font: inherit; font-size: var(--fs-micro); cursor: pointer; box-shadow: 0 4px 12px var(--c-shadow); }

/* owner 11/11: a PDF in the app is made ready inside the screen (the Tareeq al-Janna way) — Share / Download / Back */
.mzs-pdfready { position: fixed; inset: 0; z-index: var(--z-sheet); display: grid; align-items: end; justify-items: center; background: var(--c-scrim); }
.mzs-pdfready[hidden] { display: none; }
.mzs-pdfready-on, .mzs-pdfready-on body { overflow: hidden; }
.mzs-pdfready__panel { display: grid; gap: var(--s-3); width: 100%; max-width: 30rem; padding: var(--s-5) var(--s-4) calc(var(--s-4) + env(safe-area-inset-bottom, 0px)); border-radius: var(--r-lg) var(--r-lg) 0 0; background: var(--c-surface); color: var(--c-ink); text-align: center; box-shadow: var(--shadow-1); }
.mzs-pdfready__busy, .mzs-pdfready__done, .mzs-pdfready__bad { display: grid; gap: var(--s-3); justify-items: center; }
.mzs-pdfready__busy[hidden], .mzs-pdfready__done[hidden], .mzs-pdfready__bad[hidden] { display: none; }
.mzs-pdfready__busy p, .mzs-pdfready__bad p, .mzs-pdfready__note { margin: 0; color: var(--c-ink-2); font-size: var(--fs-small); }
.mzs-pdfready__spin { width: 2.5rem; height: 2.5rem; border: 3px solid var(--c-line); border-top-color: var(--c-gold); border-radius: 50%; animation: mzs-pdfready-spin 0.9s linear infinite; }
@keyframes mzs-pdfready-spin { to { transform: rotate(360deg); } }
.mzs-pdfready__ok { width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--c-ok-bg); box-shadow: inset 0 0 0 0.9rem var(--c-ok-bg), inset 0 0 0 2rem var(--c-ok); }
.mzs-pdfready__title { margin: 0; font-size: var(--fs-lead); }
.mzs-pdfready__file { margin: 0; max-width: 100%; padding: var(--s-2) var(--s-3); border-radius: var(--r-md); background: var(--c-gold-soft); color: var(--c-gold-text); font-weight: var(--fw-semi); overflow-wrap: anywhere; }
.mzs-pdfready__two { display: flex; gap: var(--s-2); justify-self: stretch; }
.mzs-pdfready__two > .mzs-btn { flex: 1 1 0; }
.mzs-pdfready__two > [hidden] { display: none; }
.mzs-pdfready__back { justify-self: stretch; }
@media (prefers-reduced-motion: reduce) { .mzs-pdfready__spin { animation-duration: 3s; } }

/* Owner 12/11 (task 2, T1207, approved preview t1207-nav-layers): the side menu in layers — laptop sidebar, phone and app drawer */
.mzs-snav { display: grid; gap: var(--s-1); }
.mzs-snav__search { display: flex; align-items: center; gap: var(--s-2); margin-block-end: var(--s-2); padding: var(--s-1) var(--s-3); border: 1px solid var(--c-line); border-radius: var(--r-pill); background: var(--c-surface); color: var(--c-ink-3); }
.mzs-snav__search input { flex: 1; min-inline-size: 0; padding: var(--s-1) 0; border: 0; background: transparent; color: var(--c-ink); font: inherit; font-size: var(--fs-small); outline: 0; }
.mzs-snav__cap { margin: var(--s-3) 0 var(--s-1); padding-inline: var(--s-3); color: var(--c-ink-3); font-size: var(--fs-micro); font-weight: var(--fw-bold); letter-spacing: .04em; text-transform: uppercase; }
.mzs-snav__flat { display: grid; gap: 2px; }
.mzs-snav__label { padding-inline: var(--s-3); color: var(--c-ink-2); font-size: var(--fs-micro); font-weight: var(--fw-semi); }
.mzs-snav__g { border-radius: var(--r-md); }
.mzs-snav__g[open] { background: var(--c-surface); }
.mzs-snav summary { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-2) var(--s-3); border-radius: var(--r-md); color: var(--c-ink); cursor: pointer; list-style: none; }
.mzs-snav summary::-webkit-details-marker { display: none; }
.mzs-snav summary > span { flex: 1; min-inline-size: 0; }
.mzs-snav__g > summary { font-weight: var(--fw-semi); }
.mzs-snav__g > summary svg { flex: none; color: var(--c-ink-2); }
.mzs-snav__g[open] > summary > svg { color: var(--c-gold-text); }
.mzs-snav__chev { display: inline-grid; color: var(--c-ink-3); transition: transform .2s; }
[dir="rtl"] .mzs-snav__chev { transform: scaleX(-1); }
.mzs-snav details[open] > summary .mzs-snav__chev { transform: rotate(90deg); }
.mzs-snav__b { display: grid; gap: 2px; padding: 0 var(--s-2) var(--s-2); padding-inline-start: calc(var(--s-3) + 18px + var(--s-2)); }
.mzs-snav a.mzs-snav__p { display: flex; align-items: center; gap: var(--s-2); padding: 7px var(--s-3); border-radius: var(--r-md); background: none; color: var(--c-ink-2); font-size: var(--fs-small); text-decoration: none; }
.mzs-snav a.mzs-snav__p > span { flex: 1; min-inline-size: 0; }
.mzs-snav a.mzs-snav__p:hover { background: var(--c-paper); color: var(--c-ink); }
.mzs-snav a.mzs-snav__p.is-current { background: var(--c-gold-soft); color: var(--c-gold-text); font-weight: var(--fw-semi); }
.mzs-snav__p--3 { margin-inline-start: var(--s-3); }
.mzs-snav__s > summary { padding-block: 7px; font-size: var(--fs-small); font-weight: var(--fw-semi); }
.mzs-snav__s > summary small { color: var(--c-ink-3); font-size: var(--fs-tiny); }
.mzs-snav__n { min-inline-size: 22px; padding: 1px 7px; border-radius: var(--r-pill); background: var(--c-gold); color: var(--c-on-gold); font-size: var(--fs-tiny); text-align: center; }
.mzs-snav a.mzs-snav__p[hidden], .mzs-snav [data-mzs-snav-group][hidden] { display: none; }
.mzs-snav a.mzs-snav__solo { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-2) var(--s-3); border-radius: var(--r-md); background: none; color: var(--c-ink); font-weight: var(--fw-semi); text-decoration: none; }
.mzs-snav a.mzs-snav__solo > span { flex: 1; min-inline-size: 0; }
.mzs-snav a.mzs-snav__solo svg { flex: none; color: var(--c-ink-2); }
.mzs-snav a.mzs-snav__solo:hover { background: var(--c-surface); }
.mzs-snav a.mzs-snav__solo.is-current { background: var(--c-gold-soft); color: var(--c-gold-text); }

/* T1301 (owner 15/11): inside the app the short messages are in the middle, coloured by kind (ok / bad / info / warn) */
body.mzs-app .mzs-toast, body.mzs-app .mzs-saved-copy, body.mzs-app .mzs-queue { top: 50%; bottom: auto; inset-inline: 24px; max-width: 26rem; margin: 0 auto; transform: translateY(-50%); z-index: calc(var(--z-dock) + 3); justify-content: center; text-align: center; padding: 14px 20px; border-radius: 16px; font-size: 14px; font-weight: 600; line-height: 1.5; color: var(--c-ink); background: var(--c-ok-bg); border: 2px solid var(--c-ok); box-shadow: 0 12px 36px var(--c-shadow); }
body.mzs-app .mzs-toast--bad { background: var(--c-bad-bg); border-color: var(--c-bad); }
body.mzs-app .mzs-toast--info, body.mzs-app .mzs-saved-copy { background: var(--c-info-bg); border-color: var(--c-info); color: var(--c-ink); }
body.mzs-app .mzs-queue { background: var(--c-warn-bg); border-color: var(--c-warn); }
body.mzs-app .mzs-toast::before { display: none; }

/* T1296 (owner 15/11): a phone held sideways sees only «turn the phone upright» (iPhone cannot lock web apps) */
#mz-rotate { display: none; }
@media (orientation: landscape) and (max-height: 540px) and (hover: none) {
	body.mzs-app #mz-rotate { display: grid; place-items: center; position: fixed; inset: 0; z-index: calc(var(--z-dock) + 10); background: var(--c-paper); color: var(--c-ink); text-align: center; padding: 24px; }
	body.mzs-app #mz-rotate b { display: block; font-size: 18px; margin-bottom: 6px; }
	body.mzs-app #mz-rotate small { color: var(--c-ink-2); font-size: 14px; }
	body.mzs-app { overflow: hidden; }
}

/* REQ-20261115-09: the live camera fills the design camera box of the scan screen */
body.mzs-app [data-q-cam] { position: relative; overflow: hidden; }
body.mzs-app [data-q-cam] video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* 15/11 (owner): the cart in the app is the round button above the tab bar (partial cart-fab, shown when the cart has items) — the top-bar cart icon is not shown, so there is one cart only */
body.mzs-app .mzs-hcart { display: none; }
/* 15/11: the round cart never covers an open sheet of the app */
body:has(.mzapp .sheet.on) .mzs-fab, body:has(.mzapp .dim.on) .mzs-fab { display: none; }
/* 15/11 (owner): the cart sheet of the app — «سلتك» and the two buttons stay fixed, only the lines scroll */
body.mzs-app #mzsSheet { display: flex; flex-direction: column; overflow: hidden; }
body.mzs-app #mzsSheet > .mzs-sheet__grab, body.mzs-app #mzsSheet > .mzs-sheet__title, body.mzs-app #mzsSheet > .mzs-cart-actions { flex: none; }
body.mzs-app #mzsSheet > .mzs-rows { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
body.mzs-app #mzsSheet > .mzs-cart-actions { padding-top: var(--s-3); }
/* the round cart is hidden while its own sheet is open */
body:has(#mzsSheet) .mzs-fab { display: none; }
/* 15/11 (owner): no zoom in the app — iPhone zooms the page when a field under 16px gets the focus, so every field of the app is 16px */
body.mzs-app input:not([type=checkbox]):not([type=radio]), body.mzs-app select, body.mzs-app textarea { font-size: 16px !important; }
/* 15/11 (owner): on the pay page the round cart covered the «دفعت» button — not shown there */
body:has(.mzapp[data-screen="pay"]) .mzs-fab { display: none; }
