/* ==========================================================================
   Amnetix Unified ERP Portal — v3.0.0
   Forest green identity · Calibri Light (EN) · Tajawal Medium (AR)
   ========================================================================== */

:root {
	--forest-950: #031d11;
	--forest-900: #06351f;
	--forest-800: #08472a;
	--forest-700: #0b6b3a;
	--green-500: #17a35a;
	--green-300: #3ddc84;
	--green-100: #dff7ea;
	--blue-500: #2f7df6;
	--blue-300: #8db8ff;
	--black: #000;
	--white: #fff;

	--bg: #f4f7f5;
	--surface: #ffffff;
	--surface-2: #eaf1ed;
	--text: #0d1a14;
	--heading: var(--forest-900);
	--muted: #4d5f57;
	--line: rgba(6, 53, 31, .12);
	--line-strong: rgba(6, 53, 31, .22);
	--accent: var(--forest-700);
	--accent-ink: var(--white);
	--live: var(--green-500);
	--focus: var(--blue-500);
	--danger: #c0392b;
	--danger-bg: #fdecea;
	--warn: #9a6200;
	--warn-bg: #fff4dc;
	--shadow-lg: 0 24px 60px -24px rgba(3, 29, 17, .35);
	--hero-bg: radial-gradient(1200px 600px at 85% 10%, rgba(61, 220, 132, .16), transparent 60%), linear-gradient(180deg, #ffffff 0%, #eef5f1 100%);

	--font-en: "Calibri Light", Calibri, Carlito, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
	--font-ar: "Tajawal", "Segoe UI", Tahoma, sans-serif;
	--font: var(--font-en);
	--w-body: 300;
	--w-strong: 600;

	--r-sm: 8px;
	--r-md: 12px;
	--r-lg: 18px;
	--r-xl: 24px;
	--container: 1240px;
	--header-h: 68px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

html[data-theme="dark"] {
	--bg: #040806;
	--surface: #0b1410;
	--surface-2: #101d17;
	--text: #e5f0ea;
	--heading: #f1fff7;
	--muted: #9bb0a6;
	--line: rgba(140, 255, 190, .10);
	--line-strong: rgba(140, 255, 190, .20);
	--accent: var(--green-300);
	--accent-ink: #022012;
	--live: var(--green-300);
	--focus: var(--blue-300);
	--danger: #ff8a7a;
	--danger-bg: rgba(255, 120, 100, .12);
	--warn: #ffcc66;
	--warn-bg: rgba(255, 200, 90, .10);
	--shadow-lg: 0 30px 80px -30px rgba(0, 0, 0, .8);
	--hero-bg: radial-gradient(1100px 620px at 80% 0%, rgba(61, 220, 132, .14), transparent 60%), radial-gradient(700px 500px at 0% 100%, rgba(47, 125, 246, .10), transparent 60%), #040806;
	color-scheme: dark;
}

html[lang="ar"] {
	--font: var(--font-ar);
	--w-body: 500;
	--w-strong: 700;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body.amx-body {
	margin: 0;
	font-family: var(--font);
	font-weight: var(--w-body);
	font-size: 17px;
	line-height: 1.6;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
	transition: background-color .25s var(--ease), color .25s var(--ease);
}
html[lang="ar"] body.amx-body { font-size: 16px; line-height: 1.75; }
:where(.amx-body) :where(h1, h2, h3) { color: var(--heading); margin: 0; line-height: 1.15; font-weight: var(--w-strong); letter-spacing: -.01em; }
html[lang="ar"] :where(.amx-body) :where(h1, h2, h3) { letter-spacing: 0; line-height: 1.35; }
:where(.amx-body) p { margin: 0; }
:where(.amx-body) a { color: inherit; }
:where(.amx-body) img { max-width: 100%; height: auto; }
:where(.amx-body) button { font: inherit; color: inherit; }
:where(.amx-body) :where(ul, ol) { margin: 0; padding: 0; list-style: none; }
.amx-body :focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.amx-body [hidden] { display: none !important; }
#amx-main:focus { outline: none; }

.amx-container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.amx-icon { width: 1.25em; height: 1.25em; flex: 0 0 auto; display: inline-block; vertical-align: middle; }
html[dir="rtl"] .amx-dir { transform: scaleX(-1); }

.amx-skip { position: fixed; inset-inline-start: 12px; top: -60px; z-index: 1000; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: var(--r-sm); text-decoration: none; transition: top .2s; }
.amx-skip:focus { top: 12px; }

/* Loading screen — never blocks input, gone within ~0.5s */
.amx-loader { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; background: var(--bg); pointer-events: none; animation: amx-loader-out .45s .15s var(--ease) forwards; }
.amx-loader .amx-mark { width: 56px; height: 56px; animation: amx-pop .5s var(--ease); }
@keyframes amx-loader-out { to { opacity: 0; visibility: hidden; } }
@keyframes amx-pop { from { transform: scale(.85); opacity: 0; } }

/* ---------- Brand ---------- */
.amx-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.amx-mark { width: 34px; height: 34px; flex: 0 0 auto; }
.amx-wordmark { font-family: var(--font-en); font-weight: 700; letter-spacing: .22em; font-size: 17px; color: var(--heading); direction: ltr; }
.amx-logo-img { height: 36px; width: auto; display: block; }
.amx-logo.has-dark .amx-logo-dark { display: none; }
html[data-theme="dark"] .amx-logo.has-dark .amx-logo-light { display: none; }
html[data-theme="dark"] .amx-logo.has-dark .amx-logo-dark { display: block; }

/* ---------- Buttons & links ---------- */
.amx-btn {
	--btn-bg: var(--surface); --btn-fg: var(--heading); --btn-line: var(--line-strong);
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 10px 18px; border-radius: var(--r-md);
	border: 1px solid var(--btn-line); background: var(--btn-bg); color: var(--btn-fg);
	font-weight: var(--w-strong); font-size: 15px; line-height: 1.2; text-decoration: none; cursor: pointer;
	transition: background-color .2s, border-color .2s, transform .15s, box-shadow .2s;
	-webkit-tap-highlight-color: transparent;
}
.amx-btn:hover { border-color: var(--accent); }
.amx-btn:active { transform: translateY(1px); }
.amx-btn--primary { --btn-bg: var(--forest-700); --btn-fg: #fff; --btn-line: transparent; box-shadow: 0 10px 24px -12px rgba(11, 107, 58, .8); }
.amx-btn--primary:hover { --btn-bg: var(--forest-800); }
html[data-theme="dark"] .amx-btn--primary { --btn-bg: var(--green-300); --btn-fg: #022012; box-shadow: 0 10px 30px -12px rgba(61, 220, 132, .6); }
html[data-theme="dark"] .amx-btn--primary:hover { --btn-bg: #62e69c; }
.amx-btn--ghost { --btn-bg: transparent; }
.amx-btn--block { width: 100%; }
.amx-btn--sm { min-height: 36px; padding: 6px 12px; font-size: 14px; }
.amx-btn--danger { --btn-fg: var(--danger); }
.amx-btn--danger:hover { border-color: var(--danger); }
.amx-btn[disabled] { opacity: .6; cursor: not-allowed; }
.amx-link { color: var(--accent); font-weight: var(--w-strong); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; }

/* ---------- Header ---------- */
.amx-header { position: sticky; top: 0; z-index: 100; height: var(--header-h); background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, background-color .25s; }
.amx-header.is-scrolled { border-bottom-color: var(--line); }
.amx-header__bar { height: 100%; display: flex; align-items: center; gap: 20px; }
.amx-header__brand { flex: 0 0 auto; text-decoration: none; }
.amx-nav { flex: 1 1 auto; display: flex; justify-content: center; }
.amx-nav ul { display: flex; gap: 2px; }
.amx-nav a { display: block; padding: 8px 12px; border-radius: var(--r-sm); text-decoration: none; font-size: 15px; color: var(--muted); font-weight: var(--w-strong); white-space: nowrap; transition: color .15s, background-color .15s; }
.amx-nav a:hover, .amx-nav a[aria-current="true"] { color: var(--heading); background: var(--surface-2); }
.amx-nav__login { display: none !important; }
.amx-header__tools { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }

.amx-lang { position: relative; display: inline-flex; align-items: center; padding: 3px; padding-inline-start: 30px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); }
.amx-lang__icon { position: absolute; inset-inline-start: 9px; width: 15px; height: 15px; color: var(--muted); }
.amx-lang__opt { position: relative; z-index: 1; border: 0; background: none; min-width: 44px; height: 30px; padding: 0 10px; border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 700; color: var(--muted); transition: color .2s; }
.amx-lang__opt[lang="ar"] { font-family: var(--font-ar); font-size: 14px; }
.amx-lang__opt[aria-pressed="true"] { color: #fff; }
html[data-theme="dark"] .amx-lang__opt[aria-pressed="true"] { color: #022012; }
.amx-lang__thumb { position: absolute; z-index: 0; top: 3px; height: 30px; width: var(--thumb-w, 44px); border-radius: 999px; background: var(--accent); transform: translateX(var(--thumb-x, 0)); transition: transform .3s var(--ease), width .3s var(--ease); inset-inline-start: 0; }

.amx-theme { border: 1px solid var(--line-strong); background: var(--surface); border-radius: 999px; padding: 3px; cursor: pointer; }
.amx-theme__track { position: relative; direction: ltr; display: flex; align-items: center; justify-content: space-between; width: 58px; height: 30px; padding: 0 7px; }
.amx-theme__track .amx-icon { width: 15px; height: 15px; color: var(--muted); position: relative; z-index: 1; transition: color .2s; }
.amx-theme__knob { position: absolute; top: 2px; left: 2px; width: 26px; height: 26px; border-radius: 50%; background: var(--forest-700); transition: transform .3s var(--ease), background-color .3s; }
html:not([data-theme="dark"]) .amx-theme__sun { color: #fff; }
html[data-theme="dark"] .amx-theme__knob { transform: translateX(28px); background: var(--green-300); }
html[data-theme="dark"] .amx-theme__moon { color: #022012; }

.amx-burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); background: var(--surface); border-radius: var(--r-md); align-items: center; justify-content: center; cursor: pointer; }
.amx-burger__close { display: none; }
.amx-burger[aria-expanded="true"] .amx-burger__open { display: none; }
.amx-burger[aria-expanded="true"] .amx-burger__close { display: inline-block; }

@media (max-width: 1140px) {
	.amx-nav a { padding: 8px 9px; font-size: 14px; }
}
@media (max-width: 1020px) {
	.amx-burger { display: inline-flex; }
	.amx-header__login { display: none; }
	.amx-nav { position: fixed; inset: var(--header-h) 0 auto 0; display: block; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: 12px clamp(16px, 4vw, 32px) 20px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s var(--ease), visibility .2s; max-height: calc(100dvh - var(--header-h)); overflow-y: auto; }
	.amx-nav.is-open { opacity: 1; transform: none; visibility: visible; }
	.amx-nav ul { flex-direction: column; gap: 0; }
	.amx-nav a { padding: 14px 8px; font-size: 17px; border-bottom: 1px solid var(--line); border-radius: 0; }
	.amx-nav__login { display: flex !important; margin-top: 16px; width: 100%; }
	.amx-header__tools { margin-inline-start: auto; }
}
@media (max-width: 420px) {
	.amx-wordmark { display: none; }
	.amx-header__tools { gap: 6px; }
}

/* ---------- Hero ---------- */
.amx-hero { position: relative; overflow: hidden; background: var(--hero-bg); padding: clamp(28px, 6vw, 72px) 0 clamp(48px, 7vw, 96px); }
.amx-hero__bg { position: absolute; inset: 0; pointer-events: none; }
.amx-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%); opacity: .6; }
.amx-glow { display: none; }

.amx-hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); grid-template-areas: "copy login"; align-items: center; gap: clamp(24px, 4vw, 56px); }
.amx-hero__copy { grid-area: copy; max-width: 600px; position: relative; z-index: 1; }
.amx-login-wrap { grid-area: login; position: relative; z-index: 1; display: flex; justify-content: center; min-height: 600px; align-items: center; }
/* The login card sits at the hub; industries and capabilities orbit around it. */
.amx-hero__visual { grid-area: login; position: relative; z-index: 0; width: clamp(620px, 58vw, 830px); max-width: none; justify-self: center; align-self: center; pointer-events: none; }

.amx-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: var(--w-strong); color: var(--accent); margin-bottom: 18px; }
.amx-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 4px color-mix(in srgb, var(--live) 22%, transparent); }

.amx-hero__title { display: flex; flex-direction: column; gap: 2px; }
.amx-hero__brand { font-family: var(--font-en); font-weight: 700; font-size: clamp(15px, 1.6vw, 18px); letter-spacing: .5em; color: var(--accent); margin-bottom: 14px; direction: ltr; }
html[dir="rtl"] .amx-hero__brand { align-self: flex-start; }
.amx-hero__line { font-size: clamp(40px, 5.6vw, 76px); line-height: 1.02; font-weight: 300; letter-spacing: -.03em; color: var(--heading); }
.amx-hero__line + .amx-hero__line { font-weight: 700; }
html[lang="ar"] .amx-hero__line { font-weight: 500; letter-spacing: 0; line-height: 1.25; font-size: clamp(38px, 5vw, 66px); }
html[lang="ar"] .amx-hero__line + .amx-hero__line { font-weight: 700; }
.amx-hero__subtitle { margin-top: 30px; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.45; color: var(--heading); max-width: 40ch; font-weight: var(--w-body); }
.amx-hero__support { margin-top: 16px; color: var(--muted); max-width: 56ch; }
.amx-hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 28px; }
.amx-stats { display: flex; gap: clamp(20px, 4vw, 44px); margin: 36px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
.amx-stats div { display: flex; flex-direction: column; }
.amx-stats dt { font-family: var(--font-en); font-size: 30px; font-weight: 700; color: var(--heading); line-height: 1; }
.amx-stats dd { margin: 6px 0 0; font-size: 14px; color: var(--muted); }

/* Network visual — the one orchestrated motion on the page */
.amx-net { width: 100%; height: auto; display: block; overflow: visible; color: var(--forest-700); }
html[data-theme="dark"] .amx-net { color: var(--green-300); }
.amx-net__orbit { fill: none; stroke: var(--line-strong); stroke-dasharray: 2 7; }
.amx-net__ring { transform-origin: 260px 230px; animation: amx-spin 160s linear infinite; }
.amx-net__chip { animation: amx-spin 160s linear infinite reverse; transform-box: fill-box; }
.amx-net__chip circle { fill: var(--surface); stroke: var(--line-strong); }
.amx-net__chip g { color: var(--muted); }
.amx-net__hex { fill: none; stroke: var(--line-strong); stroke-width: 1; }
.amx-net__link { stroke: url(#amxLine); stroke-width: 1.4; fill: none; opacity: .55; stroke-dasharray: 3 6; animation: amx-dash 12s linear infinite; }
.amx-net__pulse { fill: var(--green-300); offset-rotate: 0deg; animation: amx-travel 3.3s var(--ease) infinite; filter: drop-shadow(0 0 4px rgba(61, 220, 132, .9)); }
.amx-net__hub { fill: var(--surface); stroke: var(--forest-700); stroke-width: 1.5; }
html[data-theme="dark"] .amx-net__hub { stroke: var(--green-300); }
.amx-net__halo { animation: amx-breathe 6s ease-in-out infinite; transform-origin: 260px 230px; }
.amx-net__node circle { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1.2; }
.amx-net__node text { fill: var(--muted); font-size: 8.6px; font-family: var(--font); font-weight: var(--w-strong); }
@keyframes amx-spin { to { transform: rotate(360deg); } }
@keyframes amx-dash { to { stroke-dashoffset: -90; } }
@keyframes amx-travel { 0% { offset-distance: 100%; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { offset-distance: 0%; opacity: 0; } }
@keyframes amx-breathe { 50% { transform: scale(1.12); opacity: .7; } }

/* ---------- Login card ---------- */
.amx-login {
	position: relative; z-index: 2; width: 100%; max-width: 400px;
	padding: 28px 28px 22px; border-radius: var(--r-xl);
	background: color-mix(in srgb, var(--surface) 88%, transparent);
	border: 1px solid var(--line-strong);
	box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, .5);
	backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
}
html[data-theme="dark"] .amx-login { box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, .06); }
.amx-login::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(61, 220, 132, .7), transparent 35%, transparent 70%, rgba(47, 125, 246, .5)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.amx-login__head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.amx-login__head .amx-mark { width: 44px; height: 44px; }
.amx-login__head h2 { font-size: 21px; }
.amx-login__head p { font-size: 14px; color: var(--muted); margin-top: 2px; }

.amx-field { margin-bottom: 14px; }
.amx-field label { display: block; font-size: 14px; font-weight: var(--w-strong); color: var(--heading); margin-bottom: 6px; }
.amx-input { position: relative; display: flex; align-items: center; }
.amx-input > .amx-icon { position: absolute; inset-inline-start: 14px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; transition: color .2s; }
.amx-input input, .amx-form input, .amx-form select {
	width: 100%; min-height: 48px; padding: 12px 14px; padding-inline-start: 44px;
	font: inherit; font-size: 16px; font-weight: 400; color: var(--text);
	background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-md);
	transition: border-color .2s, box-shadow .2s;
}
.amx-input input[dir="ltr"] { text-align: left; }
/* Identifier inputs stay LTR; keep the icon gutter on the icon's side in Arabic. */
html[dir="rtl"] .amx-input input[dir="ltr"] { padding-left: 14px; padding-right: 44px; }
html[dir="rtl"] .amx-input input[dir="ltr"]:not(:placeholder-shown) { text-align: left; }
html[dir="rtl"] .amx-input input[dir="ltr"]::placeholder { text-align: right; direction: rtl; }
.amx-input input::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
.amx-input input:focus, .amx-form input:focus, .amx-form select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.amx-input:focus-within > .amx-icon { color: var(--accent); }
.amx-input input[aria-invalid="true"] { border-color: var(--danger); }
#amx-org { text-transform: uppercase; letter-spacing: .08em; }
#amx-org::placeholder { text-transform: none; letter-spacing: 0; }

.amx-login__error { display: flex; gap: 8px; margin: 4px 0 14px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--danger-bg); color: var(--danger); font-size: 14px; line-height: 1.45; }
.amx-login__submit { margin-top: 6px; min-height: 50px; font-size: 16px; position: relative; }
.amx-spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-top-color: transparent; animation: amx-spin .7s linear infinite; }
.amx-login.is-busy .amx-spinner { display: inline-block; }
.amx-login.is-busy .amx-login__submit .amx-icon { display: none; }
.amx-login__next { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.amx-login__next .amx-icon { width: 16px; height: 16px; margin-top: 2px; color: var(--blue-500); }
.amx-login__links { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; font-size: 14px; }
.amx-login__links a { color: var(--accent); text-decoration: none; font-weight: var(--w-strong); }
.amx-login__links a:hover { text-decoration: underline; }
.amx-login__forgot-msg { margin-top: 10px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface-2); font-size: 13px; color: var(--muted); }
.amx-login__foot { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.amx-login__foot .amx-icon { width: 16px; height: 16px; color: var(--live); }

@media (max-width: 960px) {
	/* Mobile/tablet: identity first, login card right after the headline. */
	.amx-hero__inner { display: flex; flex-direction: column; align-items: stretch; gap: 18px; }
	.amx-hero__copy { display: contents; }
	.amx-hero .amx-eyebrow { order: 1; margin-bottom: 0; }
	.amx-hero__title { order: 2; }
	.amx-login-wrap { order: 3; min-height: 0; padding: 6px 0; }
	.amx-hero__subtitle { order: 4; margin-top: 8px; }
	.amx-hero__support { order: 5; margin-top: 0; }
	.amx-hero__ctas { order: 6; margin-top: 0; }
	.amx-stats { order: 7; margin-top: 0; }
	.amx-hero__visual { order: 8; width: 100%; max-width: 520px; align-self: center; justify-self: auto; }
	.amx-net__node text { font-size: 12px; }
	.amx-login { max-width: 480px; margin-inline: auto; }
	.amx-hero__line { font-size: clamp(36px, 9vw, 56px); }
}
@media (max-width: 560px) {
	.amx-hero__visual { display: none; }
	.amx-login { padding: 22px 18px 18px; border-radius: var(--r-lg); }
	.amx-hero__support { display: none; }
	.amx-hero__brand { margin-bottom: 8px; }
	.amx-stats dt { font-size: 24px; }
}

/* ---------- Sections ---------- */
.amx-section { padding: clamp(56px, 8vw, 104px) 0; }
.amx-section--alt { background: var(--surface); border-block: 1px solid var(--line); }
.amx-section__head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.amx-section__head h2 { font-size: clamp(28px, 3.4vw, 42px); }
.amx-section__head p { margin-top: 12px; color: var(--muted); font-size: 18px; max-width: 60ch; }

/* Industries — hairline tile grid */
.amx-search { position: relative; max-width: 380px; margin-bottom: 20px; }
.amx-search .amx-icon { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.amx-search input { width: 100%; min-height: 46px; padding: 10px 14px; padding-inline-start: 42px; font: inherit; font-size: 16px; color: var(--text); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; }
.amx-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.amx-search--sm { margin: 0; max-width: 320px; flex: 1 1 220px; }
.amx-search--sm input { min-height: 40px; }

.amx-ind-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.amx-ind { border-bottom: 1px solid var(--line); border-inline-end: 1px solid var(--line); }
.amx-ind__btn { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; width: 100%; height: 100%; min-height: 184px; padding: 22px 22px 18px; text-align: start; border: 0; background: transparent; cursor: pointer; transition: background-color .2s; }
.amx-ind__btn:hover { background: var(--surface-2); }
.amx-ind__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-md); background: var(--green-100); color: var(--forest-700); margin-bottom: 8px; transition: background-color .2s, color .2s; }
html[data-theme="dark"] .amx-ind__icon { background: rgba(61, 220, 132, .10); color: var(--green-300); }
.amx-ind__btn:hover .amx-ind__icon { background: var(--forest-700); color: #fff; }
html[data-theme="dark"] .amx-ind__btn:hover .amx-ind__icon { background: var(--green-300); color: #022012; }
.amx-ind__icon .amx-icon { width: 22px; height: 22px; }
.amx-ind__name { font-weight: var(--w-strong); color: var(--heading); font-size: 17px; line-height: 1.3; }
.amx-ind__desc { font-size: 14px; color: var(--muted); line-height: 1.5; }
.amx-ind__cta { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 10px; font-size: 14px; font-weight: var(--w-strong); color: var(--accent); }
.amx-ind__cta .amx-icon { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.amx-ind__btn:hover .amx-ind__cta .amx-icon { transform: translateX(3px); }
html[dir="rtl"] .amx-ind__btn:hover .amx-ind__cta .amx-icon { transform: scaleX(-1) translateX(3px); }
.amx-empty { padding: 28px; text-align: center; color: var(--muted); }
@media (max-width: 560px) {
	.amx-ind-grid { grid-template-columns: 1fr 1fr; }
	.amx-ind__btn { min-height: 0; padding: 16px 14px; }
	.amx-ind__desc { display: none; }
	.amx-ind__name { font-size: 15px; }
	.amx-ind__icon { width: 38px; height: 38px; }
}

/* Capabilities */
.amx-cap-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px 28px; }
.amx-cap { display: flex; align-items: flex-start; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.amx-cap__icon { color: var(--accent); padding-top: 2px; }
.amx-cap__icon .amx-icon { width: 20px; height: 20px; }
.amx-cap__text { display: flex; flex-direction: column; }
.amx-cap__text strong { font-weight: var(--w-strong); color: var(--heading); font-size: 16px; line-height: 1.3; }
.amx-cap__text small { font-size: 14px; color: var(--muted); margin-top: 2px; }
@media (max-width: 1020px) { .amx-cap-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .amx-cap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; } }
@media (max-width: 420px) { .amx-cap__text small { display: none; } }

/* Workflow illustration */
.amx-flow { margin-top: clamp(40px, 6vw, 64px); padding: clamp(22px, 3vw, 32px); border-radius: var(--r-xl); background: var(--forest-900); color: #dcefe5; }
html[data-theme="dark"] .amx-flow { background: #07140e; border: 1px solid var(--line); }
.amx-flow h3 { color: #fff; font-size: 20px; margin-bottom: 22px; }
.amx-flow__steps { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.amx-flow__steps::before { content: ""; position: absolute; top: 25px; inset-inline: 7%; height: 2px; background: linear-gradient(90deg, rgba(61, 220, 132, .25), rgba(47, 125, 246, .45)); }
html[dir="rtl"] .amx-flow__steps::before { background: linear-gradient(270deg, rgba(61, 220, 132, .25), rgba(47, 125, 246, .45)); }
.amx-flow__steps::after { content: ""; position: absolute; top: 21px; inset-inline-start: 7%; width: 10px; height: 10px; border-radius: 50%; background: var(--green-300); box-shadow: 0 0 12px var(--green-300); animation: amx-flow-run 7s var(--ease) infinite; }
@keyframes amx-flow-run { from { inset-inline-start: 7%; } to { inset-inline-start: 92%; } }
.amx-flow__step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.amx-flow__icon { position: relative; z-index: 1; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #0a2a1a; border: 1px solid rgba(61, 220, 132, .35); color: var(--green-300); }
.amx-flow__label { font-size: 14px; line-height: 1.35; color: #dcefe5; font-weight: var(--w-strong); }
.amx-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 22px; font-size: 13px; color: #9fc3b1; }
.amx-note .amx-icon { width: 16px; height: 16px; margin-top: 2px; }
@media (max-width: 760px) {
	.amx-flow__steps { grid-template-columns: 1fr; gap: 0; }
	.amx-flow__steps::before { top: 26px; bottom: 26px; inset-inline-start: 25px; inset-inline-end: auto; width: 2px; height: auto; background: linear-gradient(180deg, rgba(61, 220, 132, .3), rgba(47, 125, 246, .5)); }
	.amx-flow__steps::after { display: none; }
	.amx-flow__step { flex-direction: row; text-align: start; padding: 6px 0; gap: 14px; }
}

/* How it works — sequence */
.amx-section--dark { background: var(--forest-950); color: #cfe3d8; }
.amx-section--dark .amx-section__head h2 { color: #fff; }
.amx-section--dark .amx-section__head p { color: #a5c3b4; }
html[data-theme="dark"] .amx-section--dark { background: #020604; border-block: 1px solid var(--line); }
.amx-how { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: rgba(140, 255, 190, .12); border: 1px solid rgba(140, 255, 190, .12); border-radius: var(--r-lg); overflow: hidden; counter-reset: how; }
.amx-how__step { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px 20px 24px; background: var(--forest-950); }
html[data-theme="dark"] .amx-how__step { background: #020604; }
.amx-how__num { font-family: var(--font-en); font-size: 13px; font-weight: 700; color: var(--green-300); }
.amx-how__icon { color: #fff; margin: 6px 0 4px; }
.amx-how__icon .amx-icon { width: 26px; height: 26px; }
.amx-how__step strong { color: #fff; font-size: 17px; line-height: 1.3; font-weight: var(--w-strong); }
.amx-how__step small { color: #a5c3b4; font-size: 14px; }
.amx-how__step:nth-child(4) .amx-how__icon, .amx-how__step:nth-child(5) .amx-how__icon { color: var(--blue-300); }
@media (max-width: 900px) { .amx-how { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .amx-how { grid-template-columns: 1fr; } .amx-how__step { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 12px; padding: 16px; } .amx-how__icon { margin: 0; } .amx-how__step strong { flex: 1 1 60%; } .amx-how__step small { flex-basis: 100%; padding-inline-start: 50px; } }

/* Security */
.amx-sec-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px) clamp(20px, 3vw, 32px); }
.amx-sec__icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--accent); margin-bottom: 14px; }
.amx-sec h3 { font-size: 18px; margin-bottom: 6px; }
.amx-sec p { font-size: 15px; color: var(--muted); }
@media (max-width: 960px) { .amx-sec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .amx-sec-grid { grid-template-columns: 1fr; } }

/* About + assistant */
.amx-split { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.amx-about h2 { font-size: clamp(28px, 3.2vw, 40px); margin-bottom: 14px; }
.amx-about > p:not(.amx-eyebrow) { color: var(--muted); font-size: 18px; max-width: 58ch; }
.amx-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.amx-pills li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--surface-2); color: var(--heading); font-size: 14px; font-weight: var(--w-strong); }
.amx-pills .amx-icon { width: 16px; height: 16px; color: var(--accent); }
.amx-ai { padding: clamp(24px, 3vw, 32px); border-radius: var(--r-xl); border: 1px solid var(--line-strong); background: var(--bg); }
.amx-ai__icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: linear-gradient(140deg, var(--forest-700), var(--blue-500)); color: #fff; margin-bottom: 16px; }
.amx-ai__icon .amx-icon { width: 26px; height: 26px; }
.amx-ai h3 { font-size: 21px; margin-bottom: 8px; }
.amx-ai p { color: var(--muted); margin-bottom: 18px; font-size: 15px; }
@media (max-width: 860px) { .amx-split { grid-template-columns: 1fr; } }

/* Contact */
.amx-contact { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.amx-contact a { display: flex; align-items: center; gap: 14px; height: 100%; padding: 18px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); text-decoration: none; transition: border-color .2s, background-color .2s; }
.amx-contact a:hover { border-color: var(--accent); }
.amx-contact__icon { display: grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; background: var(--green-100); color: var(--forest-700); }
html[data-theme="dark"] .amx-contact__icon { background: rgba(61, 220, 132, .10); color: var(--green-300); }
.amx-contact small { display: block; font-size: 13px; color: var(--muted); }
.amx-contact strong { display: block; font-weight: var(--w-strong); color: var(--heading); font-size: 15px; word-break: break-word; }
html[dir="rtl"] .amx-contact strong { text-align: right; }
@media (max-width: 1020px) { .amx-contact { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .amx-contact { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.amx-footer { background: var(--forest-950); color: #a9c6b7; padding: clamp(44px, 6vw, 72px) 0 24px; }
html[data-theme="dark"] .amx-footer { background: #020604; border-top: 1px solid var(--line); }
.amx-footer .amx-wordmark { color: #fff; }
.amx-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1fr; gap: 32px; }
.amx-footer__msg { color: #fff; font-size: 19px; font-weight: var(--w-strong); margin-top: 18px; }
.amx-footer__sub { margin-top: 4px; font-size: 15px; }
.amx-footer h2 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.amx-footer ul li + li { margin-top: 8px; }
.amx-footer a { text-decoration: none; color: #a9c6b7; font-size: 15px; transition: color .15s; }
.amx-footer a:hover { color: #fff; }
.amx-footer__contact a { display: inline-flex; align-items: center; gap: 8px; }
.amx-footer__contact .amx-icon { width: 16px; height: 16px; color: var(--green-300); }
.amx-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(140, 255, 190, .12); font-size: 14px; }
@media (max-width: 860px) { .amx-footer__grid { grid-template-columns: 1fr 1fr; } .amx-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .amx-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Dialogs ---------- */
.amx-dialog { width: min(720px, calc(100vw - 24px)); max-height: min(86dvh, 860px); padding: 0; border: 0; border-radius: var(--r-xl); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); overflow: hidden; font-family: var(--font); }
.amx-dialog::backdrop { background: rgba(2, 12, 7, .55); backdrop-filter: blur(4px); }
.amx-dialog[open] { animation: amx-dlg .25s var(--ease); }
@keyframes amx-dlg { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.amx-dialog__panel { position: relative; padding: clamp(22px, 4vw, 34px); max-height: inherit; overflow-y: auto; }
.amx-dialog__close { position: absolute; top: 14px; inset-inline-end: 14px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.amx-dialog__head { display: flex; align-items: center; gap: 16px; padding-inline-end: 44px; margin-bottom: 16px; }
.amx-dialog__icon { display: grid; place-items: center; flex: 0 0 auto; width: 56px; height: 56px; border-radius: 16px; background: var(--forest-700); color: #fff; }
html[data-theme="dark"] .amx-dialog__icon { background: var(--green-300); color: #022012; }
.amx-dialog__icon .amx-icon { width: 28px; height: 28px; }
.amx-dialog__kicker { font-size: 14px; color: var(--muted); margin-bottom: 2px; }
.amx-dialog__head h2 { font-size: clamp(22px, 3vw, 28px); }
.amx-dialog__overview { color: var(--muted); margin-bottom: 18px; }
.amx-dialog__foot { margin-top: 22px; display: flex; justify-content: flex-end; }
.amx-capset { margin-top: 18px; }
.amx-capset h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; margin-bottom: 10px; }
.amx-capset h3::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--c, var(--live)); }
.amx-capset--planned { --c: var(--blue-500); }
.amx-capset--integration { --c: #b58a00; }
.amx-capset ul { display: flex; flex-wrap: wrap; gap: 8px; }
.amx-capset li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 14px; }
.amx-callout { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-md); background: var(--surface-2); color: var(--muted); font-size: 15px; }
.amx-callout .amx-icon { color: var(--accent); margin-top: 2px; }
body.amx-dialog-open { overflow: hidden; }

/* ---------- Toast ---------- */
.amx-toast { position: fixed; z-index: 1500; bottom: 20px; left: 50%; transform: translate(-50%, 20px); max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: var(--r-md); background: var(--forest-900); color: #fff; font-size: 15px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transition: opacity .2s, transform .25s var(--ease), visibility .2s; }
.amx-toast.is-on { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.amx-toast.is-error { background: var(--danger); }

/* ==========================================================================
   ERP Connection Management dashboard
   ========================================================================== */
.amx-view-dashboard .amx-nav ul { visibility: visible; }
.amx-dash { padding: clamp(24px, 4vw, 44px) 0 80px; min-height: 70vh; }
.amx-dash__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.amx-dash__title { display: flex; align-items: center; gap: 14px; }
.amx-dash__title .amx-mark { width: 44px; height: 44px; }
.amx-dash__title h1 { font-size: clamp(22px, 3vw, 30px); }
.amx-dash__title p { color: var(--muted); font-size: 15px; }
.amx-dash__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.amx-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.amx-kpi { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px 18px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); text-align: start; cursor: pointer; transition: border-color .2s; }
.amx-kpi:hover { border-color: var(--accent); }
.amx-kpi strong { font-family: var(--font-en); font-size: 28px; line-height: 1; color: var(--heading); font-weight: 700; }
.amx-kpi span { font-size: 14px; color: var(--muted); }
.amx-kpi--active strong { color: var(--green-500); }
.amx-kpi--failed strong { color: var(--danger); }
@media (max-width: 720px) { .amx-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.amx-idp-warn { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; margin-bottom: 18px; border-radius: var(--r-md); background: var(--warn-bg); color: var(--warn); font-size: 15px; }

.amx-dash__panels { border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); overflow: hidden; }
.amx-tabs { display: flex; gap: 2px; padding: 8px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: thin; }
.amx-tab { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; min-height: 40px; padding: 8px 12px; border: 0; border-radius: var(--r-sm); background: none; cursor: pointer; font-size: 14px; font-weight: var(--w-strong); color: var(--muted); white-space: nowrap; }
.amx-tab em { font-style: normal; font-family: var(--font-en); font-size: 12px; min-width: 22px; padding: 1px 6px; border-radius: 999px; background: var(--surface-2); color: var(--muted); text-align: center; }
.amx-tab[aria-selected="true"] { background: var(--surface-2); color: var(--heading); }
.amx-tab[aria-selected="true"] em { background: var(--accent); color: var(--accent-ink); }
.amx-tab--aux { margin-inline-start: auto; }
.amx-tab--aux + .amx-tab--aux { margin-inline-start: 0; }
.amx-tab .amx-icon { width: 16px; height: 16px; }
.amx-dash__toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.amx-dash__view { padding: 0; }

.amx-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.amx-table th { text-align: start; padding: 12px 16px; font-size: 13px; font-weight: var(--w-strong); color: var(--muted); background: var(--bg); border-bottom: 1px solid var(--line); white-space: nowrap; }
.amx-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.amx-table tr:last-child td { border-bottom: 0; }
.amx-table .amx-org-name { font-weight: var(--w-strong); color: var(--heading); }
.amx-table .amx-org-ind { display: block; font-size: 13px; color: var(--muted); }
.amx-code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 13px; padding: 2px 8px; border-radius: 6px; background: var(--surface-2); color: var(--heading); direction: ltr; unicode-bidi: isolate; display: inline-block; }
.amx-url { direction: ltr; unicode-bidi: isolate; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.amx-status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: var(--w-strong); background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.amx-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.amx-status--active { background: rgba(23, 163, 90, .12); color: var(--green-500); }
html[data-theme="dark"] .amx-status--active { color: var(--green-300); }
.amx-status--verified, .amx-status--approved { background: rgba(47, 125, 246, .12); color: var(--blue-500); }
html[data-theme="dark"] .amx-status--verified, html[data-theme="dark"] .amx-status--approved { color: var(--blue-300); }
.amx-status--failed { background: var(--danger-bg); color: var(--danger); }
.amx-status--suspended { background: var(--warn-bg); color: var(--warn); }
.amx-health { font-size: 13px; color: var(--muted); }
.amx-health--healthy { color: var(--green-500); }
.amx-health--unhealthy { color: var(--danger); }
.amx-row-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
@media (max-width: 860px) {
	.amx-table thead { display: none; }
	.amx-table, .amx-table tbody, .amx-table tr, .amx-table td { display: block; width: 100%; }
	.amx-table tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
	.amx-table td { padding: 4px 0; border: 0; display: flex; gap: 10px; justify-content: space-between; align-items: center; }
	.amx-table td::before { content: attr(data-label); font-size: 13px; color: var(--muted); flex: 0 0 auto; }
	.amx-table td.amx-td-org::before { display: none; }
	.amx-row-actions { justify-content: flex-start; padding-top: 8px; }
}

.amx-logtable td { font-size: 14px; }
.amx-logtable .amx-event { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; direction: ltr; unicode-bidi: isolate; }
.amx-kv { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.amx-kv dt, .amx-kv dd { margin: 0; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.amx-kv dt { color: var(--muted); background: var(--bg); }
.amx-kv dd { word-break: break-word; }
.amx-kv dt:last-of-type, .amx-kv dd:last-of-type { border-bottom: 0; }
@media (max-width: 560px) { .amx-kv { grid-template-columns: 1fr; } .amx-kv dt { border-bottom: 0; padding-bottom: 2px; } }
.amx-settings-view { padding: 20px; display: grid; gap: 16px; }

.amx-form { display: grid; gap: 14px; margin-top: 18px; }
.amx-form label { display: grid; gap: 6px; font-size: 14px; font-weight: var(--w-strong); color: var(--heading); }
.amx-form input, .amx-form select { padding-inline-start: 14px; }
.amx-form small { font-weight: 400; color: var(--muted); font-size: 13px; }
.amx-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .amx-form__row { grid-template-columns: 1fr; } }
.amx-form__foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.amx-form__error { padding: 10px 12px; border-radius: var(--r-sm); background: var(--danger-bg); color: var(--danger); font-size: 14px; }
.amx-token { display: flex; gap: 8px; align-items: stretch; margin: 14px 0; }
.amx-token code { flex: 1; padding: 12px 14px; border-radius: var(--r-md); background: var(--bg); border: 1px dashed var(--line-strong); font-size: 14px; word-break: break-all; direction: ltr; }
.amx-diag { display: grid; gap: 6px; margin-top: 12px; }
.amx-diag li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.amx-diag .amx-icon { width: 16px; height: 16px; margin-top: 3px; flex: 0 0 auto; }
.amx-diag .is-ok { color: var(--green-500); }
.amx-diag .is-bad { color: var(--danger); }
.amx-card { padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); }
.amx-card--center { max-width: 560px; margin: 40px auto; text-align: center; display: grid; justify-items: center; gap: 14px; }
.amx-card--center h1 { font-size: 26px; }
.amx-card--center p { color: var(--muted); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
	.amx-net__pulse, .amx-flow__steps::after { display: none; }
}
