/*
 * Alavi UI kit (alavi-core 0.3.0) — the one visual language of «پیشخوان امور شرعی» and every service plugin.
 * Source: the owner-approved design board (2026-11-18). Everything is scoped to .ac-portal and prefixed ac- so the theme
 * (Hello Elementor reset, site kit) cannot repaint it and it cannot leak into the theme.
 * Specificity rule for buttons (01 REQ-20261118-0530): Hello's reset paints `button:hover`, `[type=submit]:hover` (0,2,0)
 * pink; every state below is (0,3,0) or more, so the kit always wins whatever the load order.
 * Mobile = max-width 640px. Documented in docs/UI-KIT.md (class list + PHP/JS helpers).
 */

.ac-portal {
	--ac-bg: #f2eadf;
	--ac-card: #fff;
	--ac-line: #e6dbcb;
	--ac-line2: #efe3cf;
	--ac-gold: #cc9952;
	--ac-primary: #9c6b2e;
	--ac-primary-d: #86592a;
	--ac-link: #7a5222;
	--ac-title: #2b2a28;
	--ac-body: #53524f;
	--ac-muted: #6e685e;
	--ac-soft: #f6ebdb;
	--ac-cream: #fbf7f1;
	--ac-red: #b3261e;
	--ac-red-d: #8c1d18;
	/* 0.3.14 (01 REQ-20261120-0001, owner: «گردی دورشون مثل دکمه‌ها … یک‌دست»): one radius / height for buttons and fields. */
	--ac-ctl-r: 12px;
	--ac-ctl-h: 46px;
	--ac-ctl-line: #d9ccb8;
	/* 0.3.6 (owner: «در نسخه دسکتاب … عرض بدنه با عرض منو و عرض هدر یکی باشد»): bar and body as wide as the site header. */
	--ac-page-w: 996px;
	/* 0.3.16 (owner's visual identity board): «ابر» everywhere. kit's PHP (AC_UI::font_css) declares the faces and sets
	   --ac-font per language (Persian: the Persian-digit cut) and --ac-font-ltr (full cut, Latin digits) after this file. */
	--ac-font: "AC Abar", "Abar Low", Tahoma, sans-serif;
	--ac-font-ltr: "AC Abar", "Abar Low", Tahoma, sans-serif;
	margin: 0 auto;
	padding: 0 0 48px;
	color: var(--ac-body);
	font-size: 15px;
	line-height: 1.9;
	-webkit-tap-highlight-color: transparent;
}
/* div.ac-portal (0,1,1) also wins over a theme's «.is-layout-constrained > *» width rule (0,1,0). */
div.ac-portal { max-width: var(--ac-page-w); }
.ac-portal *,
.ac-portal *::before,
.ac-portal *::after { box-sizing: border-box; }
.ac-portal svg { flex: none; }
.ac-portal [hidden] { display: none !important; }

/* Text — 0.3.16: one face for every element (no theme / IranSans font). «!important» because the site kit sets
   «div, span, p { font-family: … !important }»; ours (0,1,0) wins over that (0,0,1). Code / icon fonts are left alone. */
.ac-portal,
.ac-portal *:not(code, kbd, pre, samp, [class*="dashicons"], [class*="eicon"], .fa, .fas, .far) { font-family: var(--ac-font) !important; }
.ac-portal :is(.ac-ltr, .ac-mask, bdi, [dir="ltr"], .ac-otp-boxes),
.ac-portal :is(.ac-ltr, .ac-mask, bdi, [dir="ltr"], .ac-otp-boxes) * { font-family: var(--ac-font-ltr) !important; }
.ac-portal h1,
.ac-portal h2,
.ac-portal h3 { letter-spacing: 0; text-transform: none; }
.ac-portal .ac-ls { display: none; }
.ac-portal[dir="ltr"] .ac-fw svg { transform: scaleX(-1); }
.ac-portal .ac-fw { display: inline-flex; }
.ac-portal .ac-h2 { margin: 0 0 6px; font-size: 18px; font-weight: 700; color: var(--ac-title); line-height: 1.6; }
.ac-portal .ac-h3 { margin: 0 0 4px; font-size: 16px; font-weight: 700; color: var(--ac-title); line-height: 1.6; }
.ac-portal .ac-muted { color: var(--ac-muted); font-size: 14px; margin: 0; }
.ac-portal .ac-small { font-size: 13px; color: var(--ac-muted); }
.ac-portal .ac-lab { margin: 0 0 8px; font-size: 12px; font-weight: 700; color: #8a8276; }
.ac-portal .ac-v { font-weight: 700; color: var(--ac-title); }
.ac-portal .ac-num { font-weight: 700; color: var(--ac-title); font-feature-settings: "tnum"; }
.ac-portal .ac-ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.ac-portal .ac-tag { font-size: 12px; font-weight: 700; color: var(--ac-link); background: var(--ac-soft); border-radius: 6px; padding: 2px 8px; }
.ac-portal a { color: var(--ac-link); }

/* Layout */
.ac-portal .ac-stack { display: flex; flex-direction: column; gap: 16px; }
.ac-portal .ac-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
/* 0.3.12 (01 REQ-20261119-1435): a centred column — a button and its small line under it, in every direction. */
.ac-portal .ac-center { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.ac-portal .ac-sp { flex: 1; min-width: 0; }
.ac-portal .ac-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.ac-portal .ac-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ac-portal .ac-card {
	background: var(--ac-card);
	border: 1px solid var(--ac-line);
	border-radius: 16px;
	box-shadow: 0 1px 2px rgba(60, 40, 10, .05), 0 8px 24px rgba(60, 40, 10, .05);
	padding: 24px;
}
.ac-portal .ac-card.ac-strip { padding: 0; display: flex; overflow: hidden; }
.ac-portal .ac-card.ac-strip > .ac-edge { width: 5px; flex: none; background: var(--ac-line); }
.ac-portal .ac-card.ac-strip > .ac-in-card { flex: 1; min-width: 0; padding: 16px 20px; }

/* Buttons — theme-proof (see header). Variants: p primary, s secondary, g ghost, d disabled look, dn danger outline, dr danger. */
.ac-portal .ac-btn,
.ac-portal button.ac-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	margin: 0;
	padding: 0 22px;
	border: 1px solid transparent;
	border-radius: 12px;
	background: var(--ac-card);
	color: var(--ac-link);
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	cursor: pointer;
	box-shadow: none;
	transition: background-color .15s, border-color .15s, color .15s;
}
.ac-portal .ac-btn.ac-p { background: var(--ac-primary); border-color: var(--ac-primary); color: #fff; }
.ac-portal .ac-btn.ac-p:hover,
.ac-portal .ac-btn.ac-p:focus,
.ac-portal .ac-btn.ac-p:active { background: var(--ac-primary-d); border-color: var(--ac-primary-d); color: #fff; }
.ac-portal .ac-btn.ac-s { background: var(--ac-card); border-color: var(--ac-gold); color: var(--ac-link); }
.ac-portal .ac-btn.ac-s:hover,
.ac-portal .ac-btn.ac-s:focus,
.ac-portal .ac-btn.ac-s:active { background: var(--ac-cream); border-color: var(--ac-primary); color: var(--ac-link); }
.ac-portal .ac-btn.ac-g { background: transparent; border-color: transparent; color: var(--ac-link); }
.ac-portal .ac-btn.ac-g:hover,
.ac-portal .ac-btn.ac-g:focus,
.ac-portal .ac-btn.ac-g:active { background: var(--ac-soft); border-color: transparent; color: var(--ac-link); }
.ac-portal .ac-btn.ac-dn { background: var(--ac-card); border-color: #e9b9b5; color: var(--ac-red-d); }
.ac-portal .ac-btn.ac-dn:hover,
.ac-portal .ac-btn.ac-dn:focus,
.ac-portal .ac-btn.ac-dn:active { background: #fdf1f0; border-color: var(--ac-red); color: var(--ac-red-d); }
.ac-portal .ac-btn.ac-dr { background: var(--ac-red); border-color: var(--ac-red); color: #fff; }
.ac-portal .ac-btn.ac-dr:hover,
.ac-portal .ac-btn.ac-dr:focus,
.ac-portal .ac-btn.ac-dr:active { background: var(--ac-red-d); border-color: var(--ac-red-d); color: #fff; }
.ac-portal .ac-btn:disabled,
.ac-portal .ac-btn.ac-d,
.ac-portal .ac-btn[aria-disabled="true"] { background: #ede6db; border-color: #ede6db; color: #9a948a; cursor: not-allowed; }
.ac-portal .ac-btn.ac-p[aria-busy="true"] { background: var(--ac-primary); border-color: var(--ac-primary); color: #fff; cursor: progress; }
.ac-portal .ac-btn.ac-s[aria-busy="true"] { background: var(--ac-card); border-color: var(--ac-gold); color: var(--ac-link); cursor: progress; }
.ac-portal .ac-btn:focus-visible { outline: 2px solid var(--ac-gold); outline-offset: 2px; }
.ac-portal .ac-btn.ac-w { width: 100%; }
.ac-portal .ac-btn.ac-icon-btn { width: 46px; padding: 0; flex: none; }
.ac-portal .ac-btn.ac-sm { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.ac-portal .ac-link-btn { background: none; border: 0; padding: 0; color: var(--ac-link); font: inherit; text-decoration: underline; cursor: pointer; }
.ac-portal .ac-link-btn:hover,
.ac-portal .ac-link-btn:focus { background: none; color: var(--ac-primary); }

/* Fields */
.ac-portal .ac-fld { display: flex; flex-direction: column; gap: 6px; }
.ac-portal .ac-fld > label { font-weight: 700; font-size: 14px; color: var(--ac-title); }
.ac-portal .ac-fld .ac-opt { font-weight: 400; color: var(--ac-muted); }
.ac-portal .ac-in,
.ac-portal input.ac-in,
.ac-portal select.ac-in,
.ac-portal textarea.ac-in {
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 10px 14px;
	border: 1px solid #d9ccb8;
	border-radius: 12px;
	background: #fff;
	color: var(--ac-title);
	font: inherit;
	box-shadow: none;
}
.ac-portal textarea.ac-in { min-height: 180px; line-height: 2; resize: vertical; }
.ac-portal .ac-in:focus { outline: 0; border-color: var(--ac-primary); box-shadow: 0 0 0 3px rgba(204, 153, 82, .25); }
.ac-portal .ac-in[aria-invalid="true"] { border-color: var(--ac-red); background: #fff8f7; }
.ac-portal .ac-in[dir="ltr"] { text-align: left; }
/* 0.3.12 (01 REQ-20261119-1500, owner): room at the input's end for the browser's own autofill / contact / key icon
   (Edge, Chrome, Safari), so it never sits on the border or over the text; the end follows the input's own direction. */
.ac-portal input.ac-in:is([type="text"], [type="email"], [type="tel"], [type="password"], [type="search"], :not([type])) { padding-inline-end: 40px; }
.ac-portal .ac-hint { font-size: 13px; color: var(--ac-muted); }
.ac-portal .ac-err { font-size: 13px; color: var(--ac-red); font-weight: 500; margin: 0; }

/* One-time code: six boxes (one digit each); kit.js joins them, spreads a pasted code and moves the focus. */
.ac-portal .ac-otp-boxes { display: flex; gap: 8px; justify-content: center; direction: ltr; }
.ac-portal .ac-otp-boxes .ac-in { width: 48px; height: 56px; padding: 0; text-align: center; font-size: 22px; font-weight: 700; }
.ac-portal .ac-otp-boxes input.ac-in[type] { padding: 0; } /* 0.3.12: no icon room in the code boxes. */
.ac-portal .ac-otp-boxes[aria-invalid="true"] .ac-in { border-color: var(--ac-red); background: #fff8f7; }

/* 0.3.13 (owner REQ-20261119-1500 items 2, 3, 8, 9): one width rule — every card is the full content width; a single-step
   form (sign-in, code, success, error, expired link, lookup) sits in a centred inner block of at most 520 px, heading and
   help text centred inside it. */
.ac-portal .ac-inner { width: 100%; max-width: 520px; margin-inline: auto; display: flex; flex-direction: column; gap: 16px; }
.ac-portal .ac-inner > .ac-h2, .ac-portal .ac-inner > .ac-muted, .ac-portal .ac-inner > .ac-center-t { text-align: center; }
/* OTP timer line (alaviCore.otpTimer): digits isolated, red when the code expired. */
.ac-portal .ac-otp-exp { margin: 0; text-align: center; font-size: 13px; color: var(--ac-muted); }
.ac-portal .ac-otp-exp bdi { unicode-bidi: isolate; direction: ltr; font-feature-settings: "tnum"; }
.ac-portal .ac-otp-exp.is-dead { color: var(--ac-red); font-weight: 500; }
.ac-portal .ac-otp-boxes input:disabled { background: #f4f1ec; color: var(--ac-muted); }
.ac-portal .ac-mask, .ac-portal bdi.ac-ltr { unicode-bidi: isolate; direction: ltr; }
/* Soft button (cream fill, dark brown text): «ثبت استفتاء دیگر» and other secondary «start again» actions. */
.ac-portal .ac-btn.ac-soft { background: #efe6da; border-color: #efe6da; color: #4a3420; }
.ac-portal .ac-btn.ac-soft:hover, .ac-portal .ac-btn.ac-soft:focus-visible { background: #e7dccc; border-color: #e7dccc; color: #3b2a19; }
/* Toast (alaviCore.toast): top of the content, success colours, ✓ and ×; full width with 16 px gutters on phones. */
.ac-portal .ac-toast { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; padding: 12px 16px; border: 1px solid #bfddc4;
	border-radius: 12px; background: #eef7ef; color: #1f5a2c; font-size: 14px; font-weight: 500; box-shadow: 0 4px 14px rgba(31, 90, 44, .12); }
.ac-portal .ac-toast-i { display: inline-flex; flex: none; }
.ac-portal .ac-toast-t { flex: 1; min-width: 0; }
.ac-portal .ac-toast-x { flex: none; width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: inherit; font-size: 20px;
	line-height: 1; cursor: pointer; }
.ac-portal .ac-toast-x:hover, .ac-portal .ac-toast-x:focus-visible { background: rgba(31, 90, 44, .1); }

/* Status chips */
.ac-portal .ac-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 28px;
	padding: 0 12px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
}
.ac-portal .ac-chip.ac-sm { height: 24px; font-size: 12px; padding: 0 10px; }
.ac-portal .ac-c-new { background: #e8eef6; color: #2c4a6e; }
.ac-portal .ac-c-rev { background: #fbebc8; color: #6b4a07; }
.ac-portal .ac-c-ans { background: #dff0e2; color: #1f5a2c; }
.ac-portal .ac-c-info { background: #fce3d3; color: #8a3b0e; }
.ac-portal .ac-c-off { background: #ece8e2; color: #5e5850; }
.ac-portal .ac-c-no { background: #f7e1df; color: #8c1d18; }
.ac-portal .ac-c-soon { background: #f3eee6; color: var(--ac-muted); border: 1px dashed #cdbfa9; height: 22px; font-size: 11px; padding: 0 8px; }

/* Alerts */
.ac-portal .ac-al { display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 14px 16px; border: 1px solid; border-radius: 12px; font-size: 14px; }
.ac-portal .ac-al b { color: inherit; }
.ac-portal .ac-a-i { background: #fbf4e8; border-color: #ead3ae; color: #5e4416; }
.ac-portal .ac-a-s { background: #eef7ef; border-color: #bfddc4; color: #1f5a2c; }
.ac-portal .ac-a-e { background: #fdf1f0; border-color: #f0c6c2; color: #8c1d18; }
.ac-portal .ac-a-w { background: #fff6e5; border-color: #f0d49a; color: #6b4a07; }

/* Timeline */
.ac-portal .ac-tl { display: flex; flex-direction: column; }
.ac-portal .ac-st { position: relative; display: flex; gap: 14px; align-items: flex-start; padding-bottom: 18px; }
.ac-portal .ac-st .ac-lnv { position: absolute; inset-inline-start: 13px; top: 28px; bottom: 0; width: 2px; background: var(--ac-line); }
.ac-portal .ac-st:last-child .ac-lnv { display: none; }
.ac-portal .ac-dot {
	z-index: 1;
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	font-size: 13px;
	font-weight: 700;
}
.ac-portal .ac-dot.ac-done { background: var(--ac-primary); color: #fff; }
.ac-portal .ac-dot.ac-now { background: #fff; border: 2px solid var(--ac-primary); color: var(--ac-link); }
.ac-portal .ac-dot.ac-todo { background: #efe8dd; color: #9a948a; }
.ac-portal .ac-dot.ac-stop { background: #fff; border: 2px solid var(--ac-red-d); color: var(--ac-red-d); }

/* Reading blocks */
.ac-portal .ac-q { border-inline-start: 3px solid var(--ac-line); padding: 4px 14px; color: var(--ac-body); white-space: pre-line; }
.ac-portal .ac-ans {
	background: var(--ac-cream);
	border: 1px solid var(--ac-line2);
	border-radius: 12px;
	padding: 18px 20px;
	line-height: 2.2;
	color: var(--ac-title);
}
.ac-portal .ac-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 30px 16px; text-align: center; color: var(--ac-muted); }
.ac-portal .ac-eic {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #f3eee6;
	color: #a99a80;
}
.ac-portal .ac-round { display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 50%; }

/* Equal tiles: two (ask / track) or three («پروندهٔ من»: استفتائات من / وجوهات من / اطلاعات کاربری), and underline tabs */
.ac-portal .ac-tt { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 20px; }
.ac-portal .ac-tt a {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 56px;
	padding: 10px 14px;
	border: 1px solid var(--ac-line);
	border-radius: 14px;
	background: #fff;
	color: var(--ac-body);
	font-weight: 600;
	text-decoration: none;
	box-shadow: 0 1px 2px rgba(60, 40, 10, .05);
}
.ac-portal .ac-tt a .ac-ti {
	flex: none; /* 0.3.3: never squeezed. */
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: var(--ac-soft);
	color: var(--ac-primary);
}
.ac-portal .ac-tt a.is-on { border-color: var(--ac-primary); color: var(--ac-title); font-weight: 700; box-shadow: inset 0 -3px 0 var(--ac-gold); }
.ac-portal .ac-tt a.is-on .ac-ti { background: var(--ac-primary); color: #fff; }
.ac-portal .ac-tt.ac-tt-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ac-portal .ac-tt.ac-tt-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ac-portal .ac-tabs2 { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 18px; border-bottom: 1px solid var(--ac-line); }
.ac-portal .ac-tabs2 a {
	display: flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	margin-bottom: -1px;
	padding: 10px 14px;
	border-bottom: 2px solid transparent;
	color: var(--ac-muted);
	font-weight: 500;
	text-decoration: none;
}
.ac-portal .ac-tabs2 a.is-on { color: var(--ac-title); font-weight: 700; border-color: var(--ac-primary); }

/* Section tiles of the staff panel, filters with counts, pagination, action bar */
.ac-portal .ac-ptl { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 14px; margin: 0 0 22px; }
.ac-portal .ac-ptl a {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	padding: 16px 18px;
	border: 1px solid var(--ac-line);
	border-radius: 16px;
	background: #fff;
	color: inherit;
	text-decoration: none;
	box-shadow: 0 1px 2px rgba(60, 40, 10, .05);
}
.ac-portal .ac-ptl a .ac-ic {
	flex: none; /* 0.3.3: a long tile text never squeezes the icon box. */
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 14px;
	background: var(--ac-soft);
	color: var(--ac-primary);
}
.ac-portal .ac-ptl a.is-on { border-color: var(--ac-primary); box-shadow: inset 0 -3px 0 var(--ac-gold); }
.ac-portal .ac-ptl a.is-on .ac-ic { background: var(--ac-primary); color: #fff; }
.ac-portal .ac-fl { display: flex; gap: 8px; margin: 0 0 14px; }
.ac-portal .ac-fl a,
.ac-portal .ac-fl button {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	min-width: 0;
	min-height: 58px;
	margin: 0;
	padding: 6px 4px;
	border: 1px solid var(--ac-line);
	border-radius: 14px;
	background: #fff;
	color: var(--ac-body);
	font: inherit;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.5;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}
.ac-portal .ac-fl .ac-n {
	padding: 0 8px;
	border-radius: 99px;
	background: var(--ac-soft);
	color: var(--ac-link);
	font-size: 12px;
	font-weight: 700;
	line-height: 20px;
}
.ac-portal .ac-fl .ac-n.is-zero { background: transparent; color: #b5a991; font-weight: 500; }
.ac-portal .ac-fl .is-on,
.ac-portal .ac-fl .is-on:hover,
.ac-portal .ac-fl .is-on:focus { background: var(--ac-primary); border-color: var(--ac-primary); color: #fff; }
.ac-portal .ac-fl .is-on .ac-n { background: rgba(255, 255, 255, .22); color: #fff; }
.ac-portal .ac-fl a:hover,
.ac-portal .ac-fl button:hover,
.ac-portal .ac-fl button:focus { background: var(--ac-cream); color: var(--ac-body); }
.ac-portal .ac-pg { display: flex; gap: 6px; justify-content: center; align-items: center; margin-top: 18px; }
.ac-portal .ac-pg a,
.ac-portal .ac-pg button {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	margin: 0;
	padding: 0 6px;
	border: 1px solid var(--ac-line);
	border-radius: 10px;
	background: #fff;
	color: var(--ac-body);
	font: inherit;
	font-size: 14px;
	text-decoration: none;
	cursor: pointer;
}
.ac-portal .ac-pg .is-on,
.ac-portal .ac-pg .is-on:hover { background: var(--ac-primary); border-color: var(--ac-primary); color: #fff; font-weight: 700; }
.ac-portal .ac-actbar {
	display: flex;
	flex-wrap: nowrap;
	gap: 10px;
	align-items: center;
	margin: 24px -24px -24px;
	padding: 16px 20px;
	border-top: 1px solid var(--ac-line2);
	border-radius: 0 0 16px 16px;
	background: var(--ac-cream);
}
.ac-portal .ac-actbar .ac-btn { flex: 1 1 0; min-width: 0; padding: 0 8px; font-size: 14px; white-space: nowrap; }
.ac-portal .ac-actbar .ac-btn.ac-p { flex-grow: 1.35; }
.ac-portal .ac-mt { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 13px; color: var(--ac-muted); }
.ac-portal .ac-mt b { color: var(--ac-title); font-weight: 500; }

/* Wait indicator (01 REQ-20261118-1200; look and timing from the vojuhat board): inline in a button, or a block over an area. */
.ac-portal .ac-wt { display: inline-flex; align-items: center; gap: 10px; }
.ac-portal .ac-wd { display: inline-flex; gap: 6px; }
.ac-portal .ac-wd i { width: 8px; height: 8px; border-radius: 50%; background: var(--ac-gold); animation: ac-dot 1.2s ease-in-out infinite; }
.ac-portal .ac-wd i:nth-child(2) { animation-delay: .15s; }
.ac-portal .ac-wd i:nth-child(3) { animation-delay: .3s; }
.ac-portal .ac-wd.ac-lg { gap: 10px; }
.ac-portal .ac-wd.ac-lg i { width: 14px; height: 14px; }
.ac-portal .ac-btn.ac-p .ac-wd i,
.ac-portal .ac-btn.ac-dr .ac-wd i { background: #fff; }
/* 0.3.29 — owner-approved board section 10: no second box, no cream veil. The old block (.ac-wb > .ac-ov > .ac-wc) shows the same. */
.ac-portal .ac-wb { position: relative; min-height: 200px; border-radius: 16px; }
.ac-portal .ac-wb .ac-ov { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; background: none; }
.ac-portal .ac-wc,
.ac-wa,
.ac-wp {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	color: #53524f;
	font-weight: 600;
	text-align: center;
}
.ac-portal .ac-wc { padding: 0; border: 0; background: none; box-shadow: none; }
.ac-wa-host { position: relative !important; }
.ac-wa-host > :not(.ac-wa) { opacity: .28; pointer-events: none; transition: opacity .15s; }
.ac-wa { position: absolute; inset: 0; z-index: 5; padding: 16px; }
.ac-wp { position: fixed; inset: 0; z-index: 2147482000; padding: 16px; background: rgba(255, 255, 255, .88); }
.ac-wp b { font-size: 18px; color: #2b2a28; }
.ac-wp span { font-size: 14px; font-weight: 400; color: #6e685e; }
html.ac-wp-on { overflow: hidden; }
div.ac-portal.ac-wa,
div.ac-portal.ac-wp { max-width: none; margin: 0; padding: 16px; line-height: 1.7; }
.ac-wa .ac-wd,
.ac-wp .ac-wd { display: inline-flex; gap: 10px; }
.ac-wa .ac-wd i,
.ac-wp .ac-wd i { width: 14px; height: 14px; border-radius: 50%; background: #cc9952; animation: ac-dot 1.2s ease-in-out infinite; }
.ac-wa .ac-wd i:nth-child(2),
.ac-wp .ac-wd i:nth-child(2) { animation-delay: .15s; }
.ac-wa .ac-wd i:nth-child(3),
.ac-wp .ac-wd i:nth-child(3) { animation-delay: .3s; }
@keyframes ac-dot {
	0%, 80%, 100% { transform: scale(.5); opacity: .35; }
	40% { transform: scale(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
	.ac-portal .ac-wd i,
	.ac-wa .ac-wd i,
	.ac-wp .ac-wd i { animation: none; opacity: .8; }
	.ac-portal .ac-wd i:nth-child(2),
	.ac-wa .ac-wd i:nth-child(2),
	.ac-wp .ac-wd i:nth-child(2) { opacity: .55; }
	.ac-portal .ac-wd i:nth-child(3),
	.ac-wa .ac-wd i:nth-child(3),
	.ac-wp .ac-wd i:nth-child(3) { opacity: .3; }
}

/* Mobile */
@media (max-width: 640px) {
	.ac-portal .ac-card { padding: 18px; border-radius: 14px; }
	.ac-portal .ac-card.ac-strip > .ac-in-card { padding: 14px 16px; }
	.ac-portal .ac-grid2,
	.ac-portal .ac-grid3 { grid-template-columns: minmax(0, 1fr); }
	.ac-portal .ac-otp-boxes .ac-in { width: 42px; height: 52px; }
	.ac-portal .ac-toast { margin-inline: 0; }
	.ac-portal .ac-tt { gap: 10px; }
	.ac-portal .ac-tt a { padding: 10px 8px; gap: 8px; font-size: 15px; }
	.ac-portal .ac-tt.ac-tt-3 a,
	.ac-portal .ac-tt.ac-tt-4 a { flex-direction: column; gap: 4px; padding: 10px 4px; font-size: 13px; text-align: center; }
	.ac-portal .ac-tabs2 { flex-wrap: nowrap; gap: 0; }
	.ac-portal .ac-tabs2 a { flex: 1 1 0; min-width: 0; justify-content: center; padding: 10px 4px; font-size: 14px; line-height: 1.5; text-align: center; }
	.ac-portal .ac-ptl { gap: 10px; }
	.ac-portal .ac-ptl a { flex-direction: column; gap: 8px; padding: 14px; text-align: center; }
	.ac-portal .ac-fl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ac-portal .ac-fl > :last-child:nth-child(odd):not(:first-child) { grid-column: 1 / -1; min-height: 44px; flex-direction: row; gap: 8px; }
	.ac-portal .ac-mt { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
	.ac-portal .ac-actbar { flex-direction: column; align-items: stretch; margin: 20px -18px -18px; padding: 14px 18px; }
	.ac-portal .ac-m-w { width: 100%; }
	.ac-portal .ac-lf { display: none; }
	.ac-portal .ac-ls { display: inline; }
}

/* ── 0.3.14: one shared field style (01 REQ-20261120-0001 + 0145, owner) ─────────────────────────────────────────────────
   Every text-like field, textarea and select inside a portal container — with or without .ac-in, readonly / masked ones
   too — gets the button radius and height, one border, one focus ring. «:not(#ac-x)» (no element has that id) lifts the
   specificity above any class rule, so a theme / Elementor kit rule such as «.elementor-kit-N input:not([type=button])»
   cannot square the corners again; outside .ac-portal nothing changes. Selects: own chevron at the inline end, 15 px from the
   border, text never under it. Documented in docs/UI-KIT.md («Fields»). */
.ac-portal :is(input, select, textarea):not([type="checkbox"], [type="radio"], [type="hidden"], [type="submit"], [type="button"],
	[type="range"], [type="file"]):not(#ac-x) {
	border: 1px solid var(--ac-ctl-line);
	border-radius: var(--ac-ctl-r);
	background-color: #fff;
	font-family: inherit;
	box-shadow: none;
}
.ac-portal :is(input, select, textarea):not([type="checkbox"], [type="radio"], [type="hidden"], [type="submit"], [type="button"],
	[type="range"], [type="file"]):not(#ac-x):focus {
	outline: 0; border-color: var(--ac-primary); box-shadow: 0 0 0 3px rgba(204, 153, 82, .25);
}
.ac-portal :is(input, select, textarea):not([type="checkbox"], [type="radio"], [type="hidden"], [type="submit"], [type="button"],
	[type="range"], [type="file"]):not(#ac-x):is([readonly], :disabled) {
	background-color: var(--ac-cream); color: var(--ac-muted); cursor: default;
}
.ac-portal :is(input, select, textarea):not([type="checkbox"], [type="radio"], [type="hidden"], [type="submit"], [type="button"],
	[type="range"], [type="file"]):not(#ac-x)[aria-invalid="true"] {
	border-color: var(--ac-red); background-color: #fff8f7;
}
.ac-portal :is(input, select):not([type="checkbox"], [type="radio"], [type="hidden"], [type="submit"], [type="button"],
	[type="range"], [type="file"]):not(#ac-x) {
	min-height: var(--ac-ctl-h);
}
/* Select: no native arrow (also old Edge), own chevron. */
.ac-portal select:not([multiple], [size]):not(#ac-x) {
	-webkit-appearance: none; -moz-appearance: none; appearance: none;
	--ac-chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' \
stroke='%237a5222' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-image: var(--ac-chev);
	background-repeat: no-repeat;
	background-size: 14px 14px;
	background-position: right 15px center;
	padding-right: 42px; padding-left: 14px;
	padding-block: 0;
	line-height: calc(var(--ac-ctl-h) - 2px);
	cursor: pointer;
}
[dir="rtl"] .ac-portal select:not([multiple], [size]):not(#ac-x),
.ac-portal[dir="rtl"] select:not([multiple], [size]):not(#ac-x),
.ac-portal [dir="rtl"] select:not([multiple], [size]):not(#ac-x) { background-position: left 15px center; padding-left: 42px; padding-right: 14px; }
/* The control's own direction wins where the browser knows :dir() (an English panel inside an RTL page, and the reverse). */
.ac-portal select:not([multiple], [size]):not(#ac-x):dir(ltr) { background-position: right 15px center; padding-right: 42px; padding-left: 14px; }
.ac-portal select:not([multiple], [size]):not(#ac-x):dir(rtl) { background-position: left 15px center; padding-left: 42px; padding-right: 14px; }
.ac-portal select::-ms-expand { display: none; }
.ac-portal select:disabled { cursor: not-allowed; opacity: .7; }

/* ── 0.3.16 «وسطِ وسط» (owner's visual identity board, 01 REQ-20261120-1330) ─────────────────────────────────────────────
   «ابر» draws its ink a little above the middle of the line box. Labels in buttons and chips get a small top padding so
   the ink is centred (measured at 390 and 1280: top gap = bottom gap ±1px); one-digit code boxes get .35em on top with
   line-height 1. «:not(#ac-x)» lifts these over every size / variant rule above and over a box without a `type`
   (that one used to keep the 40px icon room and clip the digit). Icon-only buttons stay as they are. */
.ac-portal .ac-btn:not(.ac-icon-btn):not(#ac-x) { padding-top: .23em; padding-bottom: 0; }
.ac-portal .ac-chip:not(#ac-x) { padding-top: .3em; padding-bottom: 0; }
/* Persian / Arabic letters and digits sit higher than Latin ones in «ابر»: measured, they need a little more. */
.ac-portal:not([dir="ltr"]) .ac-btn:not(.ac-icon-btn):not(#ac-x) { padding-top: .3em; }
.ac-portal:not([dir="ltr"]) .ac-chip:not(#ac-x) { padding-top: .35em; }
.ac-portal .ac-otp-boxes input.ac-in:not(#ac-x) { padding: .35em 0 0; line-height: 1; }
/* Latin digits (English pages) are taller than Persian / Arabic ones: a little less top room keeps them centred. */
.ac-portal[dir="ltr"] .ac-otp-boxes input.ac-in:not(#ac-x),
[dir="ltr"] .ac-portal .ac-otp-boxes input.ac-in:not(#ac-x) { padding-top: .25em; }
