/* ==========================================================================
   noxtools-v2 · nxl-amember.css (foundation) — the compat layer for markup that aMember itself generates.
   Loaded after base.css (+ auth.css) on every page. aMember's amember.css / reset.css are NOT loaded (Theme.php),
   so this file (1) maps aMember's form, grid, receipt and message markup to the prototype look (components.html)
   using only the base.css tokens, and (2) re-implements the few functional rules amember.css provided
   (#am-flash, .am-popup, uploader, password indicator, datepicker).
   Compat look uses :where() (zero specificity) so a template that adds prototype classes (.input, .btn …) wins.
   ========================================================================== */

/* ---------- shell support ---------- */
/* CLS guard: the header is drawn by shell.js; reserve its height until then */
.main-wrap:not(:has(> .topbar))::before { content: ""; display: block; height: var(--topbar-h, 64px); }
/* server fallback menu (JS off, or shell.js failed → html.nxl-shell-failed) */
.nxl-fallback-nav { position: relative; z-index: 46; margin: 0; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--sidebar-bg); }
.nxl-fallback-nav .nxl-fb-brand { display: inline-block; margin: 0 16px 8px 0; font-size: 17px; font-weight: 700; color: var(--text); }
.nxl-fallback-nav ul { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.nxl-fallback-nav a { color: var(--accent-text); font-weight: 500; font-size: 14px; line-height: 28px; }
.nxl-fallback-nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* phones and touch screens: every menu link is a 44 px tap target (an inline link was only its 17 px text tall) */
@media (max-width: 767.98px), (pointer: coarse) {
  .nxl-fallback-nav ul { row-gap: 0; }
  .nxl-fallback-nav li > a { display: inline-flex; align-items: center; min-height: 44px; }
}
html.nxl-shell-failed #nxl-fallback-nav { display: block !important; }
html.nxl-shell-failed .main-wrap { margin-left: 0; }
html.nxl-shell-failed .main-wrap::before { display: none; }
/* footer links (FAQs + Help Desk of the app footer, the guest footer and the plain no-JS footer): 44 px tap targets on
   phones and touch screens (they were 31 x 19 / 61 x 19 px). Nothing moves: the padding is taken back by a negative
   margin, as the tool page's help links do (pages/tool.css); 9 px a side = half of the 18 px gap, so the two targets
   meet without overlapping. Not in base.css: that file is the prototype's verbatim copy. */
@media (max-width: 767.98px), (pointer: coarse) {
  .footer-links a, .auth-foot-links a { padding: 13px 9px; margin: -13px -9px; }
}

/* generic frame for stock aMember pages (no prototype template yet): .page-head + one card */
.nxl-stock-head { margin-bottom: 20px; }
.nxl-stock-card > .card-body { overflow-x: auto; }
.nxl-stock-card > .card-body > :first-child { margin-top: 0; }
.am-body-content { font-size: 14px; line-height: 1.55; color: var(--text); }
:where(.am-body-content) :where(h1, h2, h3) { margin: 18px 0 10px; font-weight: 600; letter-spacing: -.01em; color: var(--text); }
:where(.am-body-content) :where(h1) { font-size: 20px; line-height: 28px; }
:where(.am-body-content) :where(h2) { font-size: 16px; line-height: 24px; }
:where(.am-body-content) :where(h3) { font-size: 14.5px; line-height: 22px; }
:where(.am-body-content) :where(p) { margin: 0 0 10px; }
:where(.am-body-content) :where(a:not(.btn):not(.nav-item):not(.menu-item)) { color: var(--accent-text); font-weight: 500; }
:where(.am-body-content) :where(a:not(.btn):not(.nav-item):not(.menu-item)):hover { text-decoration: underline; text-underline-offset: 3px; }
:where(.am-body-content) :where(ul:not([class])) { padding-left: 18px; list-style: disc; }
:where(.am-body-content) :where(ol:not([class])) { padding-left: 18px; list-style: decimal; }

/* stock two-column dashboard body (until the launcher dashboard exists) */
.am-layout-two-coll { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.am-layout-two-coll-top, .am-layout-two-coll-bottom { display: none; }
@container main (max-width: 860px) { .am-layout-two-coll { grid-template-columns: minmax(0, 1fr); } }
.am-widget { min-width: 0; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-xs); }
.am-widget + .am-widget { margin-top: 18px; }
.am-widget > h2 { margin: 0 0 10px; font-size: 14.5px; font-weight: 600; }
.am-block { font-size: 13.5px; color: var(--text-2); }
.am-block ul { display: flex; flex-direction: column; gap: 6px; }

/* ---------- messages ---------- */
/* .am-errors → .alert.red · .am-info → .alert.violet (always visible: nox hid it) */
.am-errors, .am-info, .am-success {
  display: block; margin: 0 0 16px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 13.5px; line-height: 1.5; color: var(--text); list-style: none; box-shadow: none;
}
.am-errors { background: linear-gradient(var(--red-soft), var(--red-soft)), var(--surface); border-color: var(--red-border); color: var(--red-text); }
.am-errors li + li { margin-top: 4px; }
.am-info { background: linear-gradient(var(--violet-soft), var(--violet-soft)), var(--surface); border-color: var(--violet-border); }
.am-success { background: linear-gradient(var(--green-soft), var(--green-soft)), var(--surface); border-color: var(--green-border); }
.am-errors a, .am-info a, .am-success a { color: var(--accent-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- QuickForm (L/Form/Theme/Default.php: .am-form > form > .am-row > .am-element-title + .am-element) ---------- */
.am-form { min-width: 0; }
.am-form > form, form.am-form { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
:where(.am-form) .am-row, :where(.am-form) .row { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; padding: 0; }
:where(.am-form) .am-row[style*="display: none"], :where(.am-form) .am-row[style*="display:none"] { display: none; }
.am-element-title { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.am-element-title label, :where(.am-form) .am-row > label { display: inline; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--text); }
.am-element-title .required, :where(.am-form) .required { color: var(--red-text); font-weight: 600; }
.am-element-title .comment, .am-element .comment, :where(.am-form) .reqnote { font-size: 12.5px; line-height: 1.45; font-weight: 400; color: var(--muted); }
.am-element { position: relative; min-width: 0; font-size: 14px; color: var(--text); }
.am-element.group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
:where(.am-element.group) > :where(input[type=text], input[type=email], input[type=number], input[type=tel], input:not([type]), select) { flex: 1 1 180px; width: auto; }
:where(.am-element.group) > :where(span.am-error, label.am-error, .comment) { flex-basis: 100%; }
:where(.am-element, .am-form, .nxl-qf-control) :where(input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel],
  input[type=url], input[type=date], input[type=search], input:not([type]), select, textarea) {
  display: block; width: 100%; max-width: 100%; min-width: 0; height: 40px; margin: 0; padding: 0 12px;
  border: 1px solid var(--border-strong); border-radius: 9px; background-color: var(--surface); color: var(--text);
  font: 400 14px/1.4 var(--font); box-shadow: var(--shadow-xs); -webkit-appearance: none; appearance: none;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
:where(.am-element, .am-form, .nxl-qf-control) :where(textarea) { height: auto; min-height: 120px; padding: 10px 12px; line-height: 1.55; resize: vertical; }
:where(.am-element, .am-form, .nxl-qf-control) :where(select) {
  padding-right: 38px; cursor: pointer; background-image: var(--select-chev); background-repeat: no-repeat;
  background-position: right 12px center; background-size: 16px 16px;
}
:where(.am-element, .am-form, .nxl-qf-control) :where(select[multiple]) { height: auto; min-height: 96px; padding: 6px 8px; background-image: none; }
:where(.am-element, .am-form, .nxl-qf-control) :where(input, select, textarea)::placeholder { color: var(--muted); opacity: 1; }
:where(.am-element, .am-form, .nxl-qf-control) :where(input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel],
  input[type=url], input[type=date], input[type=search], input:not([type]), select, textarea):focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring);
}
:where(.am-element, .am-form, .nxl-qf-control) :where(input, select, textarea):disabled,
:where(.am-element, .am-form, .nxl-qf-control) :where(input[readonly]) { background-color: var(--surface-2); color: var(--text-2); box-shadow: none; }
:where(.am-element, .am-form, .nxl-qf-control) :where(input[type=checkbox], input[type=radio]) { width: 18px; height: 18px; margin: 0 6px 0 0; accent-color: var(--accent); vertical-align: -3px; cursor: pointer; }
:where(.am-element, .nxl-qf-control) :where(label) { display: inline-flex; align-items: flex-start; gap: 8px; margin: 0 14px 6px 0; font-size: 14px; line-height: 20px; color: var(--text); cursor: pointer; }
:where(.am-element, .nxl-qf-control) :where(label) :where(input[type=checkbox], input[type=radio]) { margin: 1px 0 0; flex: none; }
:where(.am-element) br + :where(label), :where(.am-element) :where(label) + br { display: block; }
.am-element input.el-short, .am-element select.el-short { width: auto; }
/* errors: the control turns red (server: .am-element.am-error wrapper; jQuery Validate: input.am-error);
   span.am-error looks like .field-error (nxl-amember.js moves it to the end of a prototype .field) */
.am-element.am-error :where(input, select, textarea), .am-element.error :where(input, select, textarea),
:where(input, select, textarea).am-error, .field.is-invalid .nxl-qf-control :where(input, select, textarea) { border-color: var(--red-solid); }
.am-element.am-error :where(input, select, textarea):focus, :where(input, select, textarea).am-error:focus { box-shadow: 0 0 0 4px var(--red-ring); }
span.am-error, label.am-error {
  display: flex; align-items: flex-start; gap: 6px; margin-top: 6px; font-size: 12.5px; line-height: 1.45; font-weight: 500; color: var(--red-text);
}
span.am-error::before, label.am-error::before {
  content: ""; flex: none; width: 14px; height: 14px; margin-top: 2px; background: currentColor;
  -webkit-mask: var(--nxl-alert) center / 14px 14px no-repeat; mask: var(--nxl-alert) center / 14px 14px no-repeat;
}
.am-element.am-error, .am-element.error { display: block; margin: 0; padding: 0; border: 0; background: none; font-size: inherit; color: inherit; }
span.am-error:empty, span.am-error[style*="display: none"] { display: none; }
.field > span.am-error { margin-top: 0; }
/* fieldsets */
:where(.am-form) fieldset { min-width: 0; margin: 0; padding: 16px 18px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
:where(.am-form) fieldset > legend { padding: 0 6px; margin-left: -6px; font-size: 13px; font-weight: 600; color: var(--text); }
:where(.am-form) fieldset > .fieldset { display: flex; flex-direction: column; gap: 16px; }
/* buttons rendered by aMember → .btn.btn-primary / .btn-outline */
:where(.am-form, .am-element, .am-body-content, .am-helpdesk, .am-cart, .auth-main) :where(input[type=submit], button[type=submit], input[type=button]):not(.btn),
.am-cta-signup, .am-cta-pay, .am-cta-login, .am-cta-save, [class^="am-cta-"]:not(.btn) {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; margin: 0;
  border: 1px solid var(--accent); border-radius: 10px; background: var(--accent); color: var(--on-accent);
  font: 600 14px/1 var(--font); cursor: pointer; box-shadow: 0 1px 2px rgba(20, 20, 32, .12); transition: background-color .15s, box-shadow .15s;
  -webkit-appearance: none; appearance: none; width: auto; max-width: 100%; white-space: nowrap;
}
:where(.am-form, .am-element, .am-body-content, .am-helpdesk, .am-cart, .auth-main) :where(input[type=submit], button[type=submit], input[type=button]):not(.btn):hover,
[class^="am-cta-"]:not(.btn):hover { background: var(--accent-hover); border-color: var(--accent-hover); }
:where(.am-form, .am-element, .am-body-content, .am-helpdesk, .am-cart, .auth-main) :where(input[type=submit], button[type=submit], input[type=button]):not(.btn):disabled { opacity: .6; cursor: not-allowed; }
:where(.am-form, .am-element, .am-body-content) :where(input[type=button][name*=cancel], input[type=submit][name*=back], button[name*=back]):not(.btn) {
  background: var(--surface); color: var(--text); border-color: var(--border-strong); box-shadow: var(--shadow-xs);
}
/* the generic field renderer (_qf-field.phtml) */
.nxl-qf-control { min-width: 0; }
.nxl-qf .field-error:empty { display: none !important; }
/* phones and touch screens: aMember's own text fields and selects are 44 px tall, like the theme's .input / .select
   (base.css), and on phones their text is 16 px like theirs (iOS Safari zooms into a smaller one). They were 40 px with
   14 px text, e.g. "Your account" and the address on the guest affiliate join form (/secure/aff/signup), next to the
   theme's 44 px payout field (24 Nov 2026) */
@media (max-width: 767.98px), (pointer: coarse) {
  :where(.am-element, .am-form, .nxl-qf-control) :where(input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel],
    input[type=url], input[type=date], input[type=search], input:not([type]), select) { height: 44px; }
  .select2-container .select2-selection--single { height: 44px; }
  .am-element > .am-switch-reveal, .nxl-qf-control > .am-switch-reveal { top: 22px; }
}
@media (max-width: 767.98px) {
  :where(.am-element, .am-form, .nxl-qf-control) :where(input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel],
    input[type=url], input[type=date], input[type=search], input:not([type]), select, textarea) { font-size: 16px; }
  .select2-container .select2-selection--single { font-size: 16px; }
}

/* ---------- grids (help desk list, affiliate tables, stock widgets) ---------- */
.am-grid-container { min-width: 0; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-xs); }
.nxl-stock-card .am-grid-container { border: 0; border-radius: 0; box-shadow: none; }
.am-grid-title-text { font-size: 14.5px; font-weight: 600; }
.am-grid-total, .am-grid-title-desc { font-size: 12.5px; color: var(--muted); }
.am-grid, table.am-grid { width: 100%; border-collapse: collapse; font-size: 13.5px; color: var(--text); }
.am-grid th {
  padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); text-align: left;
  font-size: 12px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); white-space: nowrap;
}
.am-grid th a { color: inherit; }
.am-grid th a.sorted-asc, .am-grid th a.sorted-desc { color: var(--text); }
.am-grid th a.sorted-asc::after { content: " ↑"; }
.am-grid th a.sorted-desc::after { content: " ↓"; }
.am-grid tr.am-grid-row > td, .am-grid td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.am-grid tr.am-grid-row:last-child > td { border-bottom: 0; }
.am-grid tr.am-grid-row:hover > td { background: var(--surface-hover); }
.am-grid tr.am-grid-row.emphase > td { font-weight: 600; }
.am-grid tr.am-grid-row > td.actions { white-space: nowrap; text-align: right; }
.am-grid a { color: var(--accent-text); font-weight: 500; }
.am-grid-back-wrapper { margin-bottom: 12px; }
.am-grid-back { color: var(--accent-text); font-weight: 500; }
.am-filter-wrap, .am-grid-filter, .filter-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 14px; }
.am-filter-wrap :where(input[type=text], input[type=search], select), .am-grid-filter :where(input[type=text], select) {
  height: 36px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: 9px; background: var(--surface); color: var(--text); font: 400 13.5px/1 var(--font);
}
.am-filters-clear { font-size: 13px; color: var(--muted); }
.am-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 14px 0 0; padding: 0 14px 14px; }
.am-pagination a, .am-pagination span {
  display: inline-grid; place-items: center; min-width: 32px; height: 32px; padding: 0 9px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-size: 13px; font-weight: 500;
}
.am-pagination a:hover { border-color: var(--border-strong); color: var(--text); }
.am-pagination .am-pagination-current { background: var(--accent-soft); border-color: var(--accent-border); color: var(--accent-text); font-weight: 600; }

/* ---------- receipt / invoice summary (thanks, pay, cart) ---------- */
.am-receipt { min-width: 0; overflow-x: auto; }
.am-receipt-table, .am-invoice-summary { width: 100%; border-collapse: collapse; font-size: 13.5px; color: var(--text); }
.am-receipt-table th, .am-receipt-table td, .am-invoice-summary td { padding: 9px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.am-receipt-table th { background: var(--surface-2); font-size: 12px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
.am-receipt-price, .am-receipt-total, .am-receipt-unit-price, .am-receipt-qty, .am-receipt-discounted-price { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.am-receipt-row-total td, .am-receipt-total { font-weight: 700; }
.am-receipt-indent { padding-left: 24px !important; }
.am-receipt-row-terms td { color: var(--muted); font-size: 12.5px; }

/* ---------- functional rules that amember.css used to provide ---------- */
/* #am-flash: user.js fills .am-flash-content (message / error / lock) and fades #am-flash in */
#am-flash, .am-flash { display: none; }
.am-flash-mask { position: fixed; inset: 0; z-index: 500; background: var(--scrim); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.am-flash-content {
  position: fixed; z-index: 501; top: 22%; left: 50%; transform: translateX(-50%); width: min(380px, calc(100vw - 32px));
  padding: 12px 16px; border-radius: 12px; background: #18181D; color: #F4F4F6; border: 1px solid #2A2A33;
  box-shadow: var(--shadow-lg); font: 500 13.5px/1.45 var(--font); text-align: left;
}
html[data-theme="dark"] .am-flash-content { background: #26262F; border-color: var(--border-strong); }   /* like the dark toast (dark-lines-build, 23 Nov 2026) */
.am-flash-content-message { border-color: var(--violet-border); }
.am-flash-content-error { background: var(--red-solid) !important; border-color: var(--red-solid) !important; color: #fff; }
.am-flash-content-lock { position: fixed; padding-left: 44px; }
.am-flash-content-lock::before {
  content: ""; position: absolute; left: 16px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .25); border-top-color: #fff; animation: nxl-spin .8s linear infinite;
}
@keyframes nxl-spin { to { transform: rotate(360deg); } }

/* .am-popup (user.js amPopup) + its #mask overlay */
#mask { position: fixed; inset: 0; z-index: 100000; background: var(--scrim); }
.am-popup {
  position: absolute; z-index: 100001; display: none; min-width: min(320px, calc(100vw - 32px)); max-width: calc(100vw - 32px); margin: 0 auto;
  padding: 0 20px 20px; overflow: hidden; text-align: left; background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); box-sizing: border-box;
}
.am-popup .am-popup-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 -20px 16px; padding: 14px 20px; border-bottom: 1px solid var(--border); background: var(--surface-2); font-size: 14.5px; font-weight: 600; }
.am-popup .am-popup-close-icon { order: 2; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: var(--muted); }
.am-popup .am-popup-close-icon::after { content: "\2715"; font-size: 14px; }
.am-popup .am-popup-close-icon:hover { background: var(--surface-3); color: var(--text); }
.am-popup .am-popup-content { font-size: 14px; line-height: 1.55; }

/* file uploader (Am_Form upload element) */
.upload-control { display: inline-flex; align-items: center; gap: 0; }
.upload-control .upload-control-upload, .upload-control .upload-control-browse {
  display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text-2); font: 500 13px/1 var(--font); text-shadow: none; cursor: pointer;
}
.upload-control .upload-control-upload { border-radius: 9px 0 0 9px; }
.upload-control .upload-control-upload.upload-control-reupload, .upload-control .upload-control-upload.upload-control-upload-single { border-radius: 9px; }
.upload-control .upload-control-browse { border-left: 0; border-radius: 0 9px 9px 0; }
.upload-control .upload-control-upload.hover, .upload-control .upload-control-browse.hover { background: var(--accent-soft); border-color: var(--accent-border); color: var(--accent-text); }
.upload-control span.uploading { padding-left: 4px; color: var(--muted); }

/* password strength bar (user.js) + show/hide switch */
.am-pass-indicator-wrap { position: relative; display: block; max-width: 100%; }
/* the strength bar lies on the field's lower edge: a tap or click there goes to the field (it took 6 px of its height) */
.am-pass-indicator-bar { position: absolute; left: 4px; right: 4px; bottom: 3px; height: 3px; border-radius: 999px; overflow: hidden; background: var(--surface-3); pointer-events: none; }
.am-pass-indicator-bar_bar { height: 3px; width: 0%; transition: width .6s, background-color .3s; }
.am-pass-indicator-bar_bar-weak { background: var(--red); }
.am-pass-indicator-bar_bar-good { background: var(--amber); }
.am-pass-indicator-bar_bar-strong { background: var(--green); }
.am-switch-reveal {
  display: inline-block; width: 18px; height: 18px; margin-left: -28px; cursor: pointer; vertical-align: middle; opacity: .65;
  background: var(--muted); -webkit-mask: var(--nxl-eye) center / 18px 18px no-repeat; mask: var(--nxl-eye) center / 18px 18px no-repeat;
}
.am-switch-reveal-on { opacity: 1; background: var(--accent-text); }
.am-element:has(> .am-switch-reveal), .nxl-qf-control:has(> .am-switch-reveal) { position: relative; }
.am-element > .am-switch-reveal, .nxl-qf-control > .am-switch-reveal { position: absolute; right: 11px; top: 20px; margin: 0; transform: translateY(-50%); }
:where(.am-element, .nxl-qf-control) > input.am-pass-reveal { padding-right: 40px; }
:root { --nxl-alert: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' x2='12' y1='8' y2='12'/%3E%3Cline x1='12' x2='12.01' y1='16' y2='16'/%3E%3C/svg%3E"); }
:root { --nxl-eye: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.06 12.35a1 1 0 0 1 0-.7 10.75 10.75 0 0 1 19.88 0 1 1 0 0 1 0 .7 10.75 10.75 0 0 1-19.88 0'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); }

/* jQuery UI datepicker (jquery.ui.css still loads; these follow the tokens) */
.ui-datepicker { z-index: 200 !important; padding: 8px; border: 1px solid var(--border) !important; border-radius: 12px; background: var(--surface) !important; color: var(--text) !important; box-shadow: var(--shadow-lg); font: 400 13px/1.4 var(--font) !important; }
.ui-datepicker .ui-widget-header, .ui-datepicker .ui-datepicker-header { border: 0 !important; background: none !important; color: var(--text) !important; font-weight: 600; }
.ui-datepicker .ui-state-default { border: 1px solid transparent !important; border-radius: 7px; background: none !important; color: var(--text-2) !important; text-align: center; }
.ui-datepicker .ui-state-hover { background: var(--surface-3) !important; color: var(--text) !important; }
.ui-datepicker .ui-state-highlight { border-color: var(--accent-border) !important; color: var(--accent-text) !important; }
.ui-datepicker .ui-state-active { background: var(--accent) !important; border-color: var(--accent) !important; color: #fff !important; }

/* select2 (in vendors-user.js; its stylesheet lives in the unloaded amember.css), e.g. the Mobile brick's area-code
   picker on sign-up forms: the original <select> hidden, the picker drawn like the other selects, the list themed */
.select2-hidden-accessible { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; border: 0 !important; }
.select2-container { position: relative; display: inline-block; box-sizing: border-box; margin: 0; vertical-align: middle; }
.select2-container .select2-selection--single {
  display: flex; align-items: center; height: 40px; padding: 0 32px 0 12px; border: 1px solid var(--border-strong); border-radius: 9px;
  background: var(--surface) var(--select-chev) no-repeat right 10px center / 16px 16px; color: var(--text); font: 400 14px/1.4 var(--font);
  box-shadow: var(--shadow-xs); cursor: pointer; user-select: none;
}
.select2-container .select2-selection__rendered { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.select2-container .select2-selection__arrow, .select2-container .select2-selection__clear { display: none; }
.select2-container .select2-selection--single:focus, .select2-container--open .select2-selection--single { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }
.select2-dropdown { position: absolute; left: -100000px; z-index: 1051; display: block; box-sizing: border-box; width: 100%; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); overflow: hidden; }
.select2-container--open .select2-dropdown { left: 0; }
.select2-container--open .select2-dropdown--below { margin-top: 4px; }
.select2-container--open .select2-dropdown--above { margin-top: -4px; }
.select2-search--dropdown { display: block; padding: 6px; }
.select2-search--dropdown .select2-search__field { box-sizing: border-box; width: 100%; height: 34px; padding: 0 10px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); color: var(--text); font: 400 13.5px var(--font); }
.select2-search--dropdown .select2-search__field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.select2-results > .select2-results__options { max-height: 240px; margin: 0; padding: 4px; overflow-y: auto; list-style: none; }
.select2-results__option { padding: 7px 10px; border-radius: 7px; font-size: 13.5px; line-height: 1.35; cursor: pointer; user-select: none; }
.select2-results__option[aria-selected="true"] { font-weight: 600; color: var(--accent-text); }
.select2-results__option--highlighted[aria-selected] { background: var(--accent-soft); color: var(--accent-text); }
.select2-results__message { cursor: default; color: var(--muted); }
/* the Mobile brick's picker (select2 sets 80 px): room for the longest codes (+880, +1-684); "Code" until one is chosen;
   no empty first row in the list; red like the other fields when jQuery Validate marks the hidden select */
#am-mobile-area + .select2-container { min-width: 104px; }
#am-mobile-area + .select2-container .select2-selection__rendered:empty::before { content: "Code"; color: var(--muted); }
#select2-am-mobile-area-results > .select2-results__option:empty { display: none; }
.select2-hidden-accessible.am-error + .select2-container .select2-selection--single { border-color: var(--red-solid); }
.select2-hidden-accessible.am-error + .select2-container .select2-selection--single:focus { box-shadow: 0 0 0 4px var(--red-ring); }

/* ---------- CMS pages (owner HTML inside .am-content-page, written against nox's Tailwind preflight) ---------- */
/* a scoped subset of that preflight at zero specificity, so every rule the page brings still wins */
:where(.am-content-page) :where(*, ::before, ::after) { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid; }
:where(.am-content-page) :where(h1, h2, h3, h4, h5, h6) { font-size: inherit; font-weight: inherit; }
:where(.am-content-page) :where(a) { color: inherit; text-decoration: inherit; }
:where(.am-content-page) :where(b, strong) { font-weight: bolder; }
:where(.am-content-page) :where(ol, ul, menu) { list-style: none; }
:where(.am-content-page) :where(table) { text-indent: 0; border-color: inherit; border-collapse: collapse; }
:where(.am-content-page) :where(img, svg, video, canvas, audio, iframe, embed, object) { display: block; vertical-align: middle; }
:where(.am-content-page) :where(button, input, select, optgroup, textarea) { font: inherit; color: inherit; letter-spacing: inherit; background-color: transparent; border-radius: 0; opacity: 1; }
:where(.am-content-page) :where(hr) { height: 0; color: inherit; border-top-width: 1px; }
.am-content-page { min-width: 0; overflow-wrap: anywhere; }
.am-content-page img { max-width: 100%; height: auto; }
.am-content-page video, .am-content-page iframe { max-width: 100%; }

/* ---------- small helpers for area templates ---------- */
.nxl-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
