/* AryaTech Portal: the client's own screens on the website's theme (decision 221; the designer's «portal-auth-v1», read-only
   source: Arya Website/brand/generated/mockups/portal-auth-v1). This is NOT the 500 KB website stylesheet: it holds only the rules
   these screens use (the navy bar, the buttons, the fields, the WhatsApp | email switch, the card, the LineDot heading, the wide
   two-column page) and the model's own pa-* rules, every class named pa-* so nothing meets the portal's app.css (the personal-details
   page loads both). Colours come from brand-tokens.css; the few values the portal's tokens do not have are named once below.
   Fonts: the portal's own files in ../fonts (Alexandria, Noto Kufi Arabic, Montserrat). No external font, image or script (CSP). */

@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-latin-400.e7198b2dcb57.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-latin-500.f96e8aab37e8.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-latin-600.9e606da1cbeb.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-latin-700.1c0792ac34ef.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Noto Kufi Arabic"; src: url("../fonts/noto-kufi-arabic-400.20fb38d522c0.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0020, U+00A0, U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Noto Kufi Arabic"; src: url("../fonts/noto-kufi-arabic-700.bd18b7a9da0a.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap;
  unicode-range: U+0020, U+00A0, U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Alexandria"; src: url("../fonts/alexandria-arabic-500.68f6691d1e43.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap;
  unicode-range: U+0020, U+00A0, U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Alexandria"; src: url("../fonts/alexandria-arabic-600.ca6a94b049eb.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap;
  unicode-range: U+0020, U+00A0, U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Alexandria"; src: url("../fonts/alexandria-arabic-700.281446647726.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap;
  unicode-range: U+0020, U+00A0, U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }

:root {
  /* only what brand-tokens.css has no name for (the website's own values) */
  --pa-cta-hover: #115E51;     /* the main button on hover */
  --pa-cta-off: #8FB8B0;       /* the main button while it cannot be pressed */
  --pa-hint: #8C95A8;          /* placeholders and an empty list */
  --pa-seg: #E9EDF3;           /* the track of the WhatsApp | email switch */
  --pa-wa: #128C4B;            /* the WhatsApp mark */
}

/* ── the page ── */
body.pa { margin: 0; min-height: 100vh; background: var(--surface); color: var(--ink); font-family: var(--font-body); font-size: 15px; line-height: 26px;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.pa *, body.pa *::before, body.pa *::after, .pa-card *, .pa-card *::before, .pa-card *::after { box-sizing: border-box; }
/* The resets carry NO specificity (:where): a class such as .pa-btn-primary or .pa-link must win over them. As `body.pa a` and `body.pa button`
   (0,1,1 and 0,1,2) they beat every single-class rule below, so a button lost its green and a link its colour. */
:where(body.pa) :where(h1, h2, p, ul) { margin: 0; }
:where(body.pa) :where(a) { color: inherit; text-decoration: none; }
:where(body.pa) :where(button) { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
body.pa svg { display: block; }
body.pa :focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 8px; }
body.pa [hidden] { display: none !important; }                 /* a component's display never overrides `hidden` (the two eye icons) */
.pa-ico { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pa-wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 16px; }
.pa-demo { background: var(--mint-soft); color: var(--navy); font-size: 14px; line-height: 22px; text-align: center; padding: 2px 16px; }
.pa-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.pa-js-only { display: none; }
.pa-js .pa-js-only { display: inline-flex; }

/* ── the bar: the website's navy bar; the logo goes back to the website ── */
.pa-top { position: sticky; top: 0; z-index: 30; background: var(--surface-navy); border-bottom: 1px solid var(--surface-navy); }
.pa-topin { display: flex; align-items: center; gap: 6px; height: 56px; }
.pa-brand { display: block; }
.pa-brand img { display: block; width: auto; height: 36px; }
.pa-spacer { flex: 1; }
.pa-langform { margin: 0; display: flex; }
.pa-lang { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; padding: 0 8px; border-radius: 12px;
  font: 700 13px/21px var(--font-heading); color: #fff; text-decoration: none; }
.pa-lang:hover { background: rgba(255, 255, 255, .12); }
.pa-pill { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 13px; border-radius: var(--radius-md); white-space: nowrap;
  background: rgba(255, 255, 255, .12); color: #fff; font: 600 13px/21px var(--font-heading); }
.pa-pill:hover { background: rgba(255, 255, 255, .2); }
.pa-pill .pa-ico { width: 18px; height: 18px; color: var(--mint); }
.pa-top :focus-visible { outline-color: #fff; }

/* ── page ── */
.pa-main { padding-block: 20px 32px; }
.pa-form { max-width: 480px; margin-inline: auto; }
.pa-info { display: none; }
.pa-t { margin: 0; font-family: var(--font-heading); font-size: 24px; line-height: 34px; font-weight: 700; color: var(--ink); }
.pa-s { margin: 4px 0 16px; font-size: 13px; line-height: 21px; color: var(--ink-muted); }

/* the card: the site's white card, 24 corners, the one shadow */
.pa-card { display: grid; gap: 14px; padding: 16px; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card); margin: 0; }
.pa-f { display: grid; gap: 6px; min-width: 0; }
.pa-f[hidden] { display: none; }
.pa-l { font-family: var(--font-heading); font-size: 14px; line-height: 22px; font-weight: 700; color: var(--navy); }
.pa-h { margin: 0; font-size: 13px; line-height: 21px; color: var(--ink-muted); }
.pa-fe { display: flex; align-items: flex-start; gap: 6px; margin: 0; font-size: 13px; line-height: 21px; font-weight: 600; color: var(--danger); }
.pa-fe .pa-ico { width: 18px; height: 18px; margin-top: 1px; }
.pa-alert { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--danger-soft);
  border: 1px solid var(--danger-line); font-size: 14px; line-height: 22px; font-weight: 600; color: var(--danger); }
.pa-alert .pa-ico { width: 20px; height: 20px; margin-top: 1px; }
.pa-alert a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* the site's field: 16 corners, a 1.5 border, the mint ring on focus; 16px so the phone does not zoom */
.pa-card .pa-in { display: block; width: 100%; min-height: 50px; margin: 0; padding: 10px 14px; border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-md); background: var(--surface-raised); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.4; }
.pa-card .pa-in:focus, .pa-phone:focus-within { outline: 0; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(84, 186, 167, .35); }
.pa-card .pa-in::placeholder { color: var(--pa-hint); font-weight: 400; opacity: 1; }
.pa-card .pa-in[aria-invalid="true"], .pa-phone.has-err { border-color: var(--danger); }

/* +965 and eight digits, in the site's field */
.pa-phone { display: flex; min-height: 50px; border: 1.5px solid var(--border-strong); border-radius: var(--radius-md); background: var(--surface-raised); overflow: hidden; }
.pa-cc { display: grid; place-items: center; padding: 0 14px; background: var(--surface); border-right: 1.5px solid var(--border-strong);
  font: 600 16px var(--font-latin); color: var(--navy); }
.pa-card .pa-phone input { flex: 1; min-width: 0; width: auto; height: auto; min-height: 0; border: 0; border-radius: 0; outline: 0; box-shadow: none;
  padding: 0 14px; background: none; font: 600 16px var(--font-latin); color: var(--ink); letter-spacing: .04em; }
.pa-card .pa-phone input:focus { box-shadow: none; }
.pa-pw { position: relative; }
.pa-card .pa-pw .pa-in { padding-inline-end: 52px; }
.pa-eye { display: none; position: absolute; top: 50%; inset-inline-end: 3px; transform: translateY(-50%); width: 44px; height: 44px; place-items: center;
  border: 0; background: none; color: var(--ink-muted); cursor: pointer; }
.pa-js .pa-eye { display: grid; }

/* WhatsApp | email: the site's switch, two links with an icon in each half */
.pa-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--pa-seg); border-radius: 12px; padding: 3px; gap: 3px; margin: 0; }
.pa-seg a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; border-radius: 10px; font-family: var(--font-heading);
  font-size: 14px; font-weight: 600; color: var(--ink-muted); }
.pa-seg a .pa-ico { width: 18px; height: 18px; }
.pa-seg a[aria-current="true"] { background: var(--surface-raised); color: var(--navy); box-shadow: 0 1px 3px rgba(31, 42, 75, .15); }
.pa-seg a[aria-current="true"] .pa-ico { color: var(--mint-ink); }

/* buttons: the main one is the website's dark green with white words; the second is outlined */
.pa-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; padding: 0 22px; border: 0;
  border-radius: var(--radius-md); font: 500 16px/22px var(--font-heading); text-decoration: none; cursor: pointer; transition: transform .15s, background .15s; }
.pa-btn:active { transform: scale(.98); }
.pa-btn .pa-ico { width: 20px; height: 20px; }
.pa-btn-primary { background: var(--mint-ink); color: var(--pa-on-cta, #fff); }
.pa-btn-primary:hover { background: var(--pa-cta-hover); }
.pa-btn-primary:disabled, .pa-btn-primary[aria-disabled="true"] { background: var(--pa-cta-off); cursor: not-allowed; }
.pa-btn-ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.pa-btn-ghost:hover { background: var(--surface-raised); }
.pa-btn-sm { min-height: 44px; padding: 0 16px; font-size: 14px; }
.pa-codebtn .pa-ico { color: var(--mint-ink); }
/* «Continue with Google»: a white plate, Google's own four-colour G (inline, coloured by classes), the words in the ink colour */
.pa-btn-google { background: var(--surface-raised); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--border-strong); }
.pa-btn-google:hover { background: var(--surface); }
.g-mark { width: 20px; height: 20px; flex: none; }
.g-r { fill: var(--google-red); }
.g-b { fill: var(--google-blue); }
.g-y { fill: var(--google-yellow); }
.g-g { fill: var(--google-green); }
.pa-or { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-muted); }
.pa-or::before, .pa-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* links carry an arrow (owner, 12 Oct) */
.pa-link { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; font-family: var(--font-heading); font-size: 14px;
  line-height: 22px; font-weight: 700; color: var(--mint-ink); text-decoration: none; cursor: pointer; }
.pa-go { width: 16px; height: 16px; }
html[dir="ltr"] .pa-go { transform: scaleX(-1); }       /* forward, back, exit: drawn for a right-to-left page, so an English page mirrors them */
html[dir="rtl"] .pa-flip { transform: scaleX(-1); }      /* send: drawn for a left-to-right page, so an Arabic or Urdu page mirrors it */
.pa-forgot { justify-self: start; min-height: 32px; margin-top: -6px; }
.pa-alt { margin: 16px 0 0; text-align: center; font-size: 14px; line-height: 22px; color: var(--ink-muted); }
.pa-alt a { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-heading); font-weight: 700; color: var(--mint-ink); }

/* steps: «Step 1 of 2» and thin bars */
.pa-steps { display: flex; align-items: center; justify-content: space-between; margin: 0 0 10px; font-family: var(--font-heading); font-size: 13px; font-weight: 600; color: var(--ink-muted); }
.pa-bar { display: flex; gap: 4px; }
.pa-bar i { width: 28px; height: 4px; border-radius: 2px; background: var(--line); }
.pa-bar i.on { background: var(--mint); }

/* a calm note on mint-soft */
.pa-note { display: flex; align-items: flex-start; gap: 8px; margin: -4px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--mint-soft); font-size: 13px; line-height: 21px; color: var(--ink); }
.pa-note .pa-ico { width: 18px; height: 18px; margin-top: 2px; color: var(--mint-ink); }

/* ── «complete your details»: day / month / year and governorate / area ── */
.pa-dob { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1.1fr); gap: 8px; }
.pa-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pa-card select.pa-in { padding-block: 0; padding-inline: 12px 30px; -webkit-appearance: none; appearance: none; cursor: pointer;
  background: var(--surface-raised) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234F5A73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat left 10px center / 16px; }
html[dir="ltr"] .pa-card select.pa-in { background-position: right 10px center; }
.pa-card select.pa-in:invalid { color: var(--pa-hint); }
.pa-card select.pa-in option { color: var(--ink); }
.pa-opt { font-family: var(--font-body); font-size: 13px; font-weight: 400; color: var(--ink-muted); }

/* ── the code: six boxes, always left to right; one wide field when there is no script ── */
.pa-to { display: flex; align-items: center; gap: 8px; margin: 0; font: 600 16px var(--font-latin); color: var(--navy); }
.pa-to .pa-ico { width: 20px; height: 20px; color: var(--pa-wa); }
.pa-to .pa-ico.mail { color: var(--mint-ink); }
.pa-to .pa-link { margin-inline-start: auto; }
.pa-digits { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.pa-digits.one { grid-template-columns: minmax(0, 1fr); }
.pa-card .pa-d, .pa-card .pa-code1 { width: 100%; height: 58px; min-width: 0; padding: 0; text-align: center; border: 1.5px solid var(--border-strong); border-radius: var(--radius-md);
  background: var(--surface-raised); font: 700 24px var(--font-latin); color: var(--navy); outline: 0; }
.pa-card .pa-code1 { letter-spacing: .5em; padding-inline-start: .5em; }
.pa-card .pa-d.on { border-color: var(--navy); }
.pa-card .pa-d:focus, .pa-card .pa-code1:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(84, 186, 167, .35); }
.is-err .pa-d, .is-err .pa-code1 { border-color: var(--danger); background: var(--danger-soft); color: var(--danger); }
.pa-msg { display: flex; align-items: center; gap: 6px; min-height: 22px; margin: -4px 0 0; font-size: 13px; line-height: 21px; color: var(--ink-muted); }
.pa-msg .pa-ico { width: 18px; height: 18px; }
.is-err .pa-msg { color: var(--danger); font-weight: 600; }
.pa-wait, .pa-resend { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; margin: 0; }
.pa-wait { font-size: 13px; line-height: 21px; color: var(--ink-muted); }
.pa-wait .pa-ico, .pa-resend .pa-ico { width: 18px; height: 18px; }
.pa-wait[hidden], .pa-resend[hidden] { display: none; }
.pa-resendform { margin: 0; display: grid; }
.pa-num { font-family: var(--font-latin); font-weight: 700; font-variant-numeric: tabular-nums; }

/* «Didn't get the code?» under the code page, and the line under the one-time-code button */
.pa-help { margin: 12px 0 0; text-align: center; font-size: 13px; line-height: 21px; color: var(--ink-muted); }
.pa-help .pa-link { margin-inline-start: 4px; }
.pa-center { text-align: center; }

/* reset: the office stays one line away */
.pa-office { margin-top: 20px; text-align: center; }
.pa-office p { margin: 0 0 8px; font-size: 13px; line-height: 21px; color: var(--ink-muted); }
.pa-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pa-two .pa-btn { width: 100%; }
.pa-two .pa-ico { color: var(--mint-ink); }
.pa-rules { display: grid; gap: 6px; margin: -4px 0 0; padding: 0; list-style: none; }
.pa-rules li { display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 21px; color: var(--ink-muted); }
.pa-rules .pa-ico { width: 18px; height: 18px; }
.pa-rules li.ok { color: var(--mint-ink); font-weight: 600; }

/* the sign-in methods of «My account»: one row each, a state badge and a link */
.pa-ways { gap: 0; padding-block: 4px; }
.pa-way { display: flex; align-items: center; gap: 10px; min-height: 68px; border-bottom: 1px solid var(--line); }
.pa-way:last-child { border-bottom: 0; }
.pa-wic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--mint-soft); color: var(--mint-ink); }
.pa-wic.wa { color: var(--pa-wa); }
.pa-wm { flex: 1; min-width: 0; display: grid; }
.pa-wm b { font-family: var(--font-heading); font-size: 15px; line-height: 24px; font-weight: 700; color: var(--navy); }
.pa-wm small { font-size: 13px; line-height: 21px; color: var(--ink-muted); overflow-wrap: anywhere; }
.pa-st { padding: 0 8px; border-radius: 8px; font-style: normal; font-size: 13px; line-height: 22px; font-weight: 600; white-space: nowrap; }
.pa-st.ok { background: var(--mint-soft); color: var(--mint-ink); }
.pa-st.warn { background: var(--warning-soft); color: var(--warning); }
.pa-wf { margin: 0; display: flex; }
.pa-way .pa-link { flex: none; }

/* a page of one sentence (the «Share my location» link): an icon, a title, the sentence */
.pa-state { justify-items: center; gap: 8px; padding: 26px 16px; text-align: center; }
.pa-state .pa-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--mint-soft); color: var(--mint-ink); }
.pa-state .pa-ic .pa-ico { width: 26px; height: 26px; }
.pa-state h1 { font: 700 20px/30px var(--font-heading); color: var(--navy); }
.pa-state p { font-size: 14px; line-height: 22px; color: var(--ink-muted); }

/* the same card inside the client portal's own frame (the details page, «My settings») */
.pa-inportal { max-width: 480px; margin-inline: auto; }
.pa-inportal .pa-s { margin-top: 0; }
.pa-inportal h2 { margin: 0 0 8px; font: 700 18px/28px var(--font-heading); color: var(--ink); }
.pa-solo { max-width: 520px; margin-inline: auto; }
.pa-pill.pa-who { cursor: default; }
.pa-pill.pa-who:hover { background: rgba(255, 255, 255, .12); }

/* ── a wide screen: the form beside the portal's own words, as the website's contact page ── */
@media (min-width: 900px) {
  .pa-topin { height: 64px; gap: 10px; }
  .pa-brand img { height: 48px; }
  .pa-lang { min-width: 44px; min-height: 44px; padding: 0 10px; }
  .pa-pill { height: 38px; }
  .pa-main { padding-block: 32px 48px; }
  .pa-split { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: 80px; align-items: start; }
  .pa-form { margin: 0; }
  .pa-card { padding: 24px; }
  .pa-t { font-size: 32px; line-height: 42px; }
  .pa-s { font-size: 16px; line-height: 28px; margin-bottom: 20px; }
  .pa-l { font-size: 15px; line-height: 24px; }
  .pa-signup .pa-card { gap: 12px; padding-block: 20px; }
  .pa-signup .pa-card .pa-in, .pa-signup .pa-phone { min-height: 48px; }
  .pa-signup .pa-s { margin-bottom: 14px; }
  .pa-info { display: grid; align-content: start; padding-top: 56px; }
  .pa-it { margin: 0; font-family: var(--font-heading); font-size: 48px; line-height: 60px; font-weight: 700; color: var(--navy); }
  .pa-it em { font-style: normal; color: var(--mint); }
  .pa-is { margin: 8px 0 28px; font-size: 16px; line-height: 28px; color: var(--ink-muted); }
  .pa-info ul { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
  .pa-info li { display: flex; align-items: center; gap: 14px; font-family: var(--font-heading); font-size: 16px; font-weight: 600; color: var(--navy); }
  .pa-ic { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--mint); color: #fff; }
  .pa-art { width: 236px; height: auto; margin-top: 28px; }
}

/* ── decision 233: the ONE centred sign-in card of the three portals (client, technician, office), light and dark ──────────────────
   Everything below is scoped to body.pa-c (the shell's default layout), so the pages of the client frame that load this same file
   (the details page, «My account», the technician's pages) are untouched. The dark scheme follows the person's device (the brand
   tokens already redefine the surface, the ink and the mint for it); only the few values this file names itself are redefined. */
body.pa-c { --pa-on-cta: #FFFFFF; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body.pa-c { --pa-seg: #0F1527; --pa-cta-hover: #5CC2AE; --pa-cta-off: #2F5C54; --pa-hint: #7D88A8; --pa-on-cta: #0F1527; --pa-wa: #4ADE80; }
}
:root[data-theme="dark"] body.pa-c { --pa-seg: #0F1527; --pa-cta-hover: #5CC2AE; --pa-cta-off: #2F5C54; --pa-hint: #7D88A8; --pa-on-cta: #0F1527; --pa-wa: #4ADE80; }
.pa-c .pa-demo { position: sticky; top: 0; z-index: 5; }
/* the strip under the phone's status bar is the bar's own colour on every page, the sign-in cards included (rules sheet §1, audit م7) */
body.pa-c.no-bar::before { content: ""; position: fixed; inset: 0 0 auto 0; height: env(safe-area-inset-top, 0px); background: var(--bar); z-index: 60; pointer-events: none; }
.pa-cmain { min-height: 100vh; display: flex; justify-content: center; align-items: flex-start; padding: 28px 16px 40px; }
.pa-cwrap { width: 100%; max-width: 456px; display: grid; gap: 22px; justify-items: center; align-content: start; }
.pa-clogo { display: block; padding-top: 4px; }
.pa-clogo img { display: block; width: auto; height: 44px; max-width: 100%; }
.pa-sheet { position: relative; width: 100%; padding: 28px 22px 22px; background: var(--surface-raised); border: 1px solid var(--line); border-radius: 24px;
  box-shadow: var(--shadow-card); }
.pa-c .pa-t { text-align: center; font-size: 24px; line-height: 34px; }
.pa-c .pa-s { margin: 6px 0 22px; text-align: center; font-size: 15px; line-height: 24px; }
.pa-c .pa-card { gap: 16px; padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.pa-c .pa-seg { padding: 4px; gap: 4px; border-radius: 16px; }
.pa-c .pa-seg a { min-height: 48px; border-radius: 12px; font-size: 15px; }
.pa-c .pa-seg a[aria-current="true"] { box-shadow: 0 1px 4px rgba(31, 42, 75, .16); }
.pa-c .pa-seg a:focus-visible { outline-offset: -2px; }
.pa-c .pa-alt { margin: 22px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.pa-c .pa-alt a { min-height: 44px; min-width: 44px; justify-content: center; }
.pa-c .pa-forgot { min-height: 44px; margin-top: -10px; }
.pa-clogo img { border-radius: 14px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pa-clogo img { padding: 8px 14px; background: var(--logo-plate); }       /* navy-on-transparent logo files sit on the white plate in the dark scheme, never recoloured */
}
:root[data-theme="dark"] .pa-clogo img { padding: 8px 14px; background: var(--logo-plate); }
.pa-c .pa-sheet > .pa-two { margin-top: 14px; }
.pa-hintrow { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-size: 13px; line-height: 21px; color: var(--ink-muted); }
.pa-hintrow .pa-ico { width: 20px; height: 20px; margin-top: 1px; }
.pa-pk { display: grid; gap: 14px; }
.pa-pk .pa-msg { margin: 0; min-height: 0; justify-content: center; text-align: center; }
.pa-pk .pa-msg.is-bad { color: var(--danger); font-weight: 600; }
.pa-pkbtn .pa-ico { color: var(--mint-ink); width: 24px; height: 24px; }
.pa-c .pa-pin { text-align: center; font: 700 22px var(--font-latin); letter-spacing: .5em; padding-inline-start: .5em; }
.pa-check { display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 22px; color: var(--ink); }
.pa-check input { width: 20px; height: 20px; accent-color: var(--mint-ink); }
.pa-cback { margin: -8px 0 6px; min-height: 44px; }
.pa-cfoot { width: 100%; display: grid; gap: 12px; justify-items: center; }
.pa-clang { display: flex; gap: 4px; margin: 0; }
.pa-clang button { min-height: 44px; padding: 0 16px; border-radius: 12px; font: 600 13px var(--font-heading); color: var(--ink-muted); }
.pa-clang button:hover { background: var(--surface-raised); }
.pa-clang button[aria-pressed="true"] { background: var(--surface-raised); color: var(--navy); box-shadow: inset 0 0 0 1px var(--line); }
.pa-cline { margin: 0; font-size: 13px; line-height: 21px; color: var(--ink-muted); }
.pa-cperks { display: none; margin: 0; padding: 0; list-style: none; }
.pa-cperks li { display: flex; align-items: center; gap: 10px; font: 600 14px/22px var(--font-heading); color: var(--ink-muted); }
.pa-cperks .pa-ico { width: 20px; height: 20px; color: var(--mint-ink); }
@media (min-width: 900px) {
  .pa-cmain { padding-top: 48px; }
  .pa-cwrap { max-width: 480px; }
  .pa-sheet { padding: 32px 32px 26px; }
  .pa-c .pa-t { font-size: 28px; line-height: 38px; }
  .pa-c .pa-card .pa-in, .pa-c .pa-phone { min-height: 52px; }
  .pa-cperks { display: grid; grid-template-columns: repeat(2, auto); gap: 10px 32px; justify-content: center; margin-top: 4px; }
}

/* the passkey list and the add box (client and technician frame, «My account»): rows like the sign-in methods */
.pa-pkadd { display: grid; gap: 12px; }
.pa-inportal .pa-card + .pa-card { margin-top: 12px; }
.pa-pkadd .pa-msg { margin: 0; min-height: 0; }
.pa-pkadd .pa-msg.is-bad { color: var(--danger); font-weight: 600; }
.pa-pkdel { margin: 0; display: flex; }
.pa-pkdel .pa-link { color: var(--danger); }
.pa-pkempty { margin: 0; padding: 14px 0; font-size: 14px; line-height: 22px; color: var(--ink-muted); }

/* the «confirm your identity» step */
.pa-verify .pa-card { gap: 14px; }
.pa-verify .pa-two { grid-template-columns: minmax(0, 1fr); }

.pa-offline { position: fixed; inset: auto 12px 12px 12px; z-index: 70; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px;
  background: var(--warning-soft); border: 1px solid var(--warning-line); color: var(--warning); font-size: 14px; line-height: 22px; font-weight: 600; }
.pa-toast { position: fixed; inset: auto 16px 24px 16px; z-index: 80; margin-inline: auto; max-width: 420px; padding: 0 16px; border-radius: 12px;
  background: var(--surface-navy); color: var(--on-navy); font-size: 14px; line-height: 22px; text-align: center; opacity: 0; pointer-events: none; transition: opacity .2s; }
.pa-toast.is-on { opacity: 1; padding: 12px 16px; }
.pa-csite { min-height: 44px; }

/* ── The colour-scheme button (templates/portal/_theme_btn.html): one icon shows the scheme now ───────────────────────────────── */
.theme-menu { position: relative; display: inline-flex; }
.theme-menu > summary { list-style: none; cursor: pointer; }
.theme-menu > summary::-webkit-details-marker { display: none; }
.theme-menu > form { position: absolute; z-index: 60; top: calc(100% + 6px); inset-inline-end: 0; min-width: 160px; margin: 0;
  display: flex; flex-direction: column; gap: 2px; padding: 6px; background: var(--surface-raised); color: var(--ink);
  border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-card); }
.theme-opt { display: flex; align-items: center; gap: 10px; min-height: 44px; width: 100%; padding: 0 12px; border: 2px solid transparent; border-radius: 12px;
  background: transparent; color: inherit; font: inherit; font-size: 15px; text-align: start; cursor: pointer; }
.theme-opt svg { width: 20px; height: 20px; flex: none; }
.theme-opt:hover { background: var(--surface); }
.theme-opt:focus-visible { outline: 3px solid var(--focus, var(--mint)); outline-offset: 1px; }
.theme-opt[aria-pressed="true"] { color: var(--mint-ink); font-weight: 600; border-color: var(--mint); }
.theme-btn .t-auto, .theme-btn .t-light, .theme-btn .t-dark { display: none; }
.theme-btn[data-mode="auto"] .t-auto, .theme-btn[data-mode="light"] .t-light, .theme-btn[data-mode="dark"] .t-dark { display: block; }
.pa-ctools { width: 100%; display: flex; justify-content: flex-end; }
.pa-ctools .pa-ibtn { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px; background: none; color: var(--ink-muted); cursor: pointer; }
.pa-ctools .pa-ibtn:hover { background: var(--mint-soft); color: var(--ink); }
.pa-ctools { margin-block-end: -14px; }
