/* مِرقاة — app styles */
:root {
	--ink: #142321;
	--ink-2: #3e4b48;
	--muted: #6b7471;
	--line: #e3ded2;
	--bg: #f5f2eb;
	--paper: #ffffff;
	--teal: #0f3d3e;
	--teal-2: #175355;
	--teal-soft: #e3eeec;
	--gold: #c9a227;
	--gold-soft: #f6efd6;
	--ok: #1f7a4d;
	--ok-soft: #e2f3ea;
	--warn: #a15c07;
	--warn-soft: #fbefdc;
	--err: #b42318;
	--err-soft: #fde8e6;
	--radius: 14px;
	--shadow: 0 1px 2px rgba(15, 61, 62, .06), 0 8px 24px rgba(15, 61, 62, .06);
	--font: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.mq-body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.7;
	direction: rtl;
	text-align: right;
}
.mq-body a { color: var(--teal-2); }
.mq-body img { max-width: 100%; }
.mq-body h1, .mq-body h2, .mq-body h3 { line-height: 1.3; margin: 0 0 .5rem; font-weight: 700; color: var(--ink); }
.mq-body h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.mq-body h2 { font-size: 1.3rem; }
.mq-body h3 { font-size: 1.08rem; }
.mq-body p { margin: 0 0 .75rem; }

.mq-container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.mq-narrow { max-width: 720px; }
.mq-section { padding: 32px 16px; }
.mq-center { text-align: center; }
.mq-muted { color: var(--muted); }
.mq-hint { color: var(--muted); font-size: .88rem; margin-top: .4rem; }
.mq-warn { color: var(--warn); font-weight: 600; }
.mq-eyebrow { color: var(--gold); font-weight: 600; font-size: .85rem; letter-spacing: .02em; margin-bottom: .3rem; }
.mq-hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* Header / footer */
.mq-switchbar { background: var(--gold); color: var(--ink); text-align: center; padding: 8px 16px; font-size: .92rem; }
.mq-switchbar a { color: var(--ink); font-weight: 700; margin-inline-start: 10px; }
.mq-header { background: var(--teal); color: #fff; position: sticky; top: 0; z-index: 20; }
.mq-header__in { display: flex; align-items: center; justify-content: space-between; min-height: 62px; gap: 12px; }
.mq-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff !important; text-decoration: none; font-weight: 700; font-size: 1.35rem; }
.mq-mark { color: #fff; flex: none; }
.mq-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.mq-nav a { color: #d8e6e3; text-decoration: none; padding: 6px 10px; border-radius: 8px; font-size: .95rem; }
.mq-nav a:hover, .mq-nav a.is-active { color: #fff; background: rgba(255, 255, 255, .1); }
.mq-nav .mq-btn { color: var(--ink); }
.mq-main { min-height: 70vh; }
.mq-footer { border-top: 1px solid var(--line); margin-top: 40px; color: var(--muted); font-size: .88rem; }
.mq-footer__in { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 18px 16px; }

/* Buttons */
.mq-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	background: var(--teal); color: #fff !important; border: 0; border-radius: 10px;
	padding: 11px 20px; font: 600 .98rem/1.2 var(--font); cursor: pointer; text-decoration: none;
	transition: background .2s ease, transform .1s ease;
}
.mq-btn:hover { background: var(--teal-2); }
.mq-btn:active { transform: translateY(1px); }
.mq-btn--gold { background: var(--gold); color: var(--ink) !important; }
.mq-btn--gold:hover { background: #b8931d; }
.mq-btn--ghost { background: transparent; color: var(--teal) !important; box-shadow: inset 0 0 0 1.5px var(--teal); }
.mq-btn--ghost:hover { background: var(--teal-soft); }
.mq-btn--sm { padding: 7px 12px; font-size: .88rem; border-radius: 8px; }
.mq-btn--block { width: 100%; }
.mq-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* Cards & layout */
.mq-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 16px; }
.mq-empty { text-align: center; color: var(--muted); padding: 36px 20px; }
.mq-grid { display: grid; gap: 16px; }
.mq-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mq-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mq-grid .mq-card { margin-bottom: 0; }
@media (max-width: 860px) { .mq-grid--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .mq-grid--2, .mq-grid--3 { grid-template-columns: 1fr; } }

/* Alerts */
.mq-alert { border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; font-size: .95rem; }
.mq-alert ul { margin: 0; padding-inline-start: 18px; }
.mq-alert--ok { background: var(--ok-soft); color: var(--ok); }
.mq-alert--err { background: var(--err-soft); color: var(--err); }
.mq-alert--info { background: var(--teal-soft); color: var(--teal); }

/* Hero */
.mq-hero { background: var(--teal); color: #fff; padding: 56px 0 64px; overflow: hidden; }
.mq-hero__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; }
.mq-hero h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -.01em; margin-bottom: 1rem; }
.mq-hero .mq-lead { color: #d3e3e0; font-size: 1.1rem; max-width: 34em; }
.mq-hero .mq-lead strong { color: var(--gold); }
.mq-hero .mq-btn--ghost { color: #fff !important; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); }
.mq-hero .mq-btn--ghost:hover { background: rgba(255, 255, 255, .08); }
.mq-hero__steps { display: flex; align-items: flex-end; gap: 10px; height: 260px; }
.mq-step { flex: 1; border-radius: 12px 12px 4px 4px; padding: 14px 12px; font-weight: 600; font-size: .92rem; display: flex; flex-direction: column; justify-content: flex-start; }
.mq-step span { font-size: 1.6rem; line-height: 1; margin-bottom: 6px; }
.mq-step--1 { height: 40%; background: rgba(255, 255, 255, .1); }
.mq-step--2 { height: 68%; background: rgba(255, 255, 255, .18); }
.mq-step--3 { height: 100%; background: var(--gold); color: var(--ink); }
@media (max-width: 760px) {
	.mq-hero { padding: 36px 0 40px; }
	.mq-hero__grid { grid-template-columns: 1fr; }
	.mq-hero__steps { height: 150px; }
}
.mq-h2 { font-size: 1.45rem !important; margin-bottom: 1rem !important; }
.mq-how { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: how; }
.mq-how li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; counter-increment: how; display: flex; flex-direction: column; gap: 4px; }
.mq-how li::before { content: counter(how, arabic-indic); color: var(--gold); font-weight: 700; font-size: 1.4rem; }
.mq-how li span { color: var(--muted); font-size: .93rem; }
@media (max-width: 860px) { .mq-how { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .mq-how { grid-template-columns: 1fr; } }
.mq-proj__head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.mq-proj__head img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; }
.mq-proj__head h3 { margin: 0; }
.mq-proj__head span { font-size: .86rem; }
.mq-note ul { margin: 0; padding-inline-start: 18px; }

/* Facts */
.mq-facts { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 10px 0 14px; }
.mq-facts div { display: flex; flex-direction: column; }
.mq-facts dt { color: var(--muted); font-size: .8rem; }
.mq-facts dd { margin: 0; font-weight: 600; }

/* Forms */
.mq-pagehead { margin-bottom: 20px; }
.mq-form fieldset { border: 0; border-top: 1px solid var(--line); padding: 18px 0 4px; margin: 0; }
.mq-form fieldset:first-of-type { border-top: 0; padding-top: 0; }
.mq-form legend { font-weight: 700; padding: 0; margin-bottom: 10px; float: right; width: 100%; }
.mq-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; font-weight: 500; font-size: .95rem; clear: both; }
.mq-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 600px) { .mq-row { grid-template-columns: 1fr; } }
.mq-body input[type=text], .mq-body input[type=email], .mq-body input[type=tel], .mq-body input[type=url],
.mq-body input[type=number], .mq-body input[type=search], .mq-body input[type=password], .mq-body select, .mq-body textarea {
	width: 100%; font: 400 1rem/1.5 var(--font); color: var(--ink); background: #fff;
	border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; min-height: 46px;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.mq-body input:focus, .mq-body select:focus, .mq-body textarea:focus { outline: none; border-color: var(--teal-2); box-shadow: 0 0 0 3px rgba(23, 83, 85, .15); }
.mq-body input[dir=ltr] { text-align: left; }
.mq-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.mq-choices--stack { flex-direction: column; margin-bottom: 10px; }
.mq-choice { position: relative; cursor: pointer; }
.mq-choice input { position: absolute; opacity: 0; inset: 0; }
.mq-choice span { display: block; padding: 10px 16px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font-weight: 500; transition: all .15s ease; }
.mq-choice input:checked + span { border-color: var(--teal); background: var(--teal-soft); color: var(--teal); }
.mq-choice input:focus-visible + span { box-shadow: 0 0 0 3px rgba(23, 83, 85, .2); }
.mq-check { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 18px; font-size: .95rem; }
.mq-check input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--teal); flex: none; }
.mq-upload { display: flex; align-items: center; gap: 14px; border: 1.5px dashed #cfc7b4; border-radius: 12px; padding: 14px; background: #fcfbf7; cursor: pointer; position: relative; }
.mq-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.mq-upload__img { width: 72px; height: 72px; border-radius: 50%; background: var(--teal-soft) center/cover no-repeat; flex: none; display: grid; place-items: center; }
.mq-upload__img:empty::before { content: ""; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--teal-2); opacity: .4; }
.mq-upload.has-file .mq-upload__img::before { display: none; }
.mq-upload__txt small { color: var(--muted); }
.mq-form--inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mq-form--inline input[type=text], .mq-form--inline select { width: auto; min-height: 38px; padding: 6px 10px; flex: 1 1 140px; }
.mq-login { max-width: 440px; margin: 0 auto; }
.mq-login form p { margin-bottom: 14px; }
.mq-login form label { display: block; margin-bottom: 6px; font-weight: 500; }
.mq-login .login-remember label { display: flex; gap: 8px; align-items: center; }
.mq-login .login-submit input { width: 100%; background: var(--teal); color: #fff; border: 0; border-radius: 10px; padding: 12px; font: 600 1rem var(--font); cursor: pointer; }
.mq-success-icon, .mq-fail-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; font-size: 1.9rem; font-weight: 700; }
.mq-success-icon { background: var(--ok-soft); color: var(--ok); }
.mq-fail-icon { background: var(--err-soft); color: var(--err); }

/* App */
.mq-app { padding-top: 22px; }
.mq-apphead { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.mq-apphead__who { display: flex; align-items: center; gap: 14px; }
.mq-apphead h1 { font-size: 1.35rem; margin: 0; }
.mq-projswitch label { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.mq-projswitch select { min-width: 190px; }
.mq-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; background: var(--teal-soft); }
.mq-avatar--lg { width: 56px; height: 56px; }
.mq-avatar--xl { width: 112px; height: 112px; margin: 6px auto 12px; display: block; font-size: 2rem !important; }
.mq-avatar--initials { display: inline-grid; place-items: center; color: var(--teal); font-weight: 700; font-size: .95rem; }
.mq-avatar--lg.mq-avatar--initials { font-size: 1.25rem; }
.mq-avatar--xl.mq-avatar--initials { display: grid; }

.mq-tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 18px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.mq-tabs::-webkit-scrollbar { display: none; }
.mq-tabs a { white-space: nowrap; padding: 10px 14px; color: var(--muted); text-decoration: none; font-weight: 500; border-bottom: 2.5px solid transparent; margin-bottom: -1px; }
.mq-tabs a:hover { color: var(--ink); }
.mq-tabs a.is-active { color: var(--teal); border-bottom-color: var(--gold); font-weight: 700; }

.mq-progress-card__top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.mq-progress-card h2 { font-size: 1.8rem; margin: 0; }
.mq-progress-card h2 small { font-size: 1rem; font-weight: 500; }
.mq-progress-card__note { margin: 10px 0 0; color: var(--ink-2); }
.mq-rankbadge { background: var(--teal); color: #fff; border-radius: 12px; padding: 10px 16px; text-align: center; display: flex; flex-direction: column; line-height: 1.2; min-width: 84px; }
.mq-rankbadge strong { font-size: 2rem; color: var(--gold); }
.mq-rankbadge span { font-size: .8rem; opacity: .85; }
.mq-bar { display: block; height: 12px; border-radius: 99px; background: #ece7db; overflow: hidden; margin-top: 14px; }
.mq-bar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--gold), #e0bf51); }
.mq-bar--thin { height: 6px; margin-top: 6px; }
.mq-bar--thin span { background: var(--teal-2); }
.is-lead .mq-bar--thin span, .mq-board--reached .mq-bar--thin span { background: var(--gold); }

.mq-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.mq-stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; }
.mq-stat span { color: var(--muted); font-size: .85rem; }
.mq-stat strong { font-size: 1.25rem; }
@media (max-width: 760px) { .mq-stats { grid-template-columns: 1fr 1fr; } }
.mq-quick { text-decoration: none; color: var(--ink) !important; display: flex; flex-direction: column; gap: 4px; transition: border-color .2s ease; }
.mq-quick:hover { border-color: var(--teal-2); }
.mq-quick span { color: var(--muted); font-size: .92rem; }
.mq-list { list-style: none; margin: 0 0 10px; padding: 0; }
.mq-list li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }

.mq-tag { display: inline-block; font-size: .78rem; font-weight: 600; padding: 2px 10px; border-radius: 99px; background: #efebe1; color: var(--ink-2); white-space: nowrap; }
.mq-tag--approved, .mq-tag--house { background: var(--ok-soft); color: var(--ok); }
.mq-tag--pending, .mq-tag--due { background: var(--gold-soft); color: #7a5d00; }
.mq-tag--warn, .mq-tag--expired { background: var(--warn-soft); color: var(--warn); }
.mq-tag--rejected { background: var(--err-soft); color: var(--err); }

/* Search */
.mq-search { display: grid; grid-template-columns: 2fr 1.2fr auto; gap: 10px; margin-top: 10px; }
@media (max-width: 640px) { .mq-search { grid-template-columns: 1fr; } }
.mq-result { border-radius: var(--radius); padding: 22px; margin-bottom: 16px; border: 1.5px solid; }
.mq-result strong { font-size: 1.5rem; display: block; margin-bottom: 4px; }
.mq-result--ok { background: var(--ok-soft); border-color: #a9d9be; color: #134d31; }
.mq-result--taken { background: var(--err-soft); border-color: #f4b4ad; color: #7a1a12; }
.mq-result--similar { background: var(--warn-soft); border-color: #eccb97; color: #6b3d05; }
.mq-result--mine { background: var(--teal-soft); border-color: #a9c9c4; color: var(--teal); }

/* Clients */
.mq-client header { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mq-client h3 { margin: 0; }
.mq-client__tags { display: flex; gap: 6px; align-items: flex-start; flex-wrap: wrap; }
.mq-details summary { cursor: pointer; color: var(--teal-2); font-weight: 600; padding: 4px 0; }
.mq-details[open] summary { margin-bottom: 10px; }

/* Ranking */
.mq-rankhead { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.mq-rankhead select { width: auto; }
.mq-board { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.mq-board--reached { border: 2px solid var(--gold); }
.mq-board__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); background: #fcfbf7; }
.mq-board--reached .mq-board__head { background: var(--gold-soft); }
.mq-board__head h3 { margin: 0; }
.mq-board__empty { padding: 18px; color: var(--muted); margin: 0; }
.mq-ranklist { list-style: none; margin: 0; padding: 0; }
.mq-ranklist li { display: grid; grid-template-columns: 32px 40px 1fr auto; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.mq-ranklist li:last-child { border-bottom: 0; }
.mq-ranklist li.is-me { background: var(--teal-soft); }
.mq-ranklist li.is-lead { background: linear-gradient(90deg, #fff 0%, var(--gold-soft) 100%); }
.mq-ranklist__n { font-weight: 700; font-size: 1.15rem; color: var(--muted); text-align: center; }
.is-lead .mq-ranklist__n { color: var(--gold); font-size: 1.4rem; }
.mq-ranklist__who { display: flex; flex-direction: column; min-width: 0; font-size: .9rem; }
.mq-ranklist__who strong { font-size: 1rem; }
.mq-ranklist__amt { font-weight: 700; text-align: left; display: flex; flex-direction: column; align-items: flex-end; white-space: nowrap; }
.mq-ranklist__amt small { color: var(--muted); font-weight: 400; font-size: .8rem; }
.mq-crown { color: #7a5d00; font-weight: 700; font-size: .85rem; }
.mq-crown::before { content: "★ "; color: var(--gold); }
.mq-minline { display: flex; align-items: center; gap: 10px; margin: 14px 0; color: var(--warn); font-size: .85rem; font-weight: 600; }
.mq-minline::before, .mq-minline::after { content: ""; flex: 1; border-top: 2px dashed #e4c98a; }
@media (max-width: 520px) {
	.mq-ranklist li { grid-template-columns: 26px 36px 1fr; padding: 12px; }
	.mq-ranklist__amt { grid-column: 3; align-items: flex-start; flex-direction: row; gap: 8px; }
}

/* Tables */
.mq-tablewrap { overflow-x: auto; }
.mq-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.mq-table th { text-align: right; color: var(--muted); font-weight: 600; font-size: .82rem; padding: 10px; border-bottom: 1.5px solid var(--line); white-space: nowrap; }
.mq-table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.mq-table--compact td { padding: 7px 10px; }
.mq-inline-user { display: inline-flex; align-items: center; gap: 8px; }
.mq-inline-user .mq-avatar { width: 30px; height: 30px; font-size: .78rem; }
@media (max-width: 640px) {
	.mq-table:not(.mq-table--compact) thead { display: none; }
	.mq-table:not(.mq-table--compact) tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
	.mq-table:not(.mq-table--compact) td { display: flex; justify-content: space-between; gap: 10px; border: 0; padding: 4px 0; }
	.mq-table:not(.mq-table--compact) td::before { content: attr(data-l); color: var(--muted); font-size: .82rem; }
}

/* Library */
.mq-libhead { display: flex; gap: 16px; align-items: center; }
.mq-libhead img { width: 72px; height: 72px; border-radius: 16px; object-fit: cover; }
.mq-files { margin: 0; padding-inline-start: 18px; }
.mq-terms__body h3 { margin-top: 1rem; }
.mq-terms__body ul { padding-inline-start: 20px; }
.mq-terms__body { font-size: .95rem; }
.mq-terms .mq-terms__body { max-height: 360px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 4px 16px 10px; margin: 14px 0; background: #fcfbf7; }
.mq-pbadge { display: inline-flex; align-items: center; gap: 6px; background: var(--teal-soft); color: var(--teal); padding: 4px 12px; border-radius: 99px; font-weight: 600; font-size: .9rem; margin: 3px; }
.mq-pbadge img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.mq-verify h1 { margin-bottom: 2px; }

/* ===== Business card ===== */
.mq-bizcard-wrap { display: flex; justify-content: center; padding: 10px 0 18px; }
.mq-bizcard {
	width: 560px; height: 342px; flex: none; position: relative; overflow: hidden;
	background: var(--teal); color: #fff; border-radius: 18px; padding: 22px 26px;
	display: flex; flex-direction: column; justify-content: space-between;
	box-shadow: 0 20px 50px rgba(15, 61, 62, .28);
	font-family: var(--font); direction: rtl; transform-origin: top center;
}
.mq-bizcard::before {
	content: ""; position: absolute; left: -40px; bottom: -40px; width: 220px; height: 220px;
	background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .05) 0 14px, transparent 14px 28px);
	border-radius: 50%;
}
.mq-bizcard::after { content: ""; position: absolute; top: 0; right: 0; width: 6px; height: 100%; background: var(--gold); }
.mq-bizcard__brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.05rem; position: relative; }
.mq-bizcard__brand small { font-weight: 400; color: #b9d1cd; font-size: .78rem; margin-inline-start: 4px; }
.mq-bizcard__main { display: flex; gap: 20px; align-items: center; position: relative; }
.mq-bizcard__photo { width: 112px; height: 112px; border-radius: 50%; overflow: hidden; flex: none; border: 3px solid var(--gold); background: var(--teal-2); display: grid; place-items: center; }
.mq-bizcard__photo img { width: 100%; height: 100%; object-fit: cover; }
.mq-bizcard__photo span { font-size: 2.4rem; font-weight: 700; color: var(--gold); }
.mq-bizcard__info { min-width: 0; }
.mq-bizcard__info h2 { color: #fff !important; font-size: 1.55rem; margin: 0; line-height: 1.25; }
.mq-bizcard__title { color: var(--gold); font-weight: 600; margin: 2px 0 8px; font-size: .98rem; }
.mq-bizcard__projects { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .8rem; color: #b9d1cd; }
.mq-bizcard__projects em { font-style: normal; display: inline-flex; align-items: center; gap: 5px; background: rgba(255, 255, 255, .12); color: #fff; padding: 2px 10px 2px 4px; border-radius: 99px; font-weight: 600; }
.mq-bizcard__projects em img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; background: #fff; }
.mq-bizcard__contact { list-style: none; margin: 8px 0 0; padding: 0; font-size: .85rem; color: #d8e6e3; display: flex; flex-wrap: wrap; gap: 2px 16px; }
.mq-bizcard__contact li { text-align: right; }
.mq-bizcard__foot { display: flex; align-items: center; gap: 12px; position: relative; }
.mq-bizcard__qr { background: #fff; padding: 5px; border-radius: 8px; width: 74px; height: 74px; flex: none; }
.mq-bizcard__qr img, .mq-bizcard__qr canvas { width: 64px !important; height: 64px !important; display: block; }
.mq-bizcard__foot div:last-child { display: flex; flex-direction: column; font-size: .78rem; color: #b9d1cd; }
.mq-bizcard__foot strong { color: #fff; font-size: .95rem; letter-spacing: .06em; direction: ltr; text-align: right; }
.mq-cardactions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }

/* Print: only the card, at business-card size (90mm wide). */
@media print {
	@page { size: A4; margin: 15mm; }
	body.mq-body { background: #fff; }
	.mq-header, .mq-footer, .mq-switchbar, .mq-cardactions, .mq-hint, #wpadminbar { display: none !important; }
	.mq-bizcard-wrap { display: block; padding: 0; }
	.mq-bizcard { transform: scale(.607) !important; transform-origin: top right; box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	.mq-main { min-height: 0; }
}
