/* vendor/fonts/fonts.css */
/* Self-hosted Google Fonts (latin, latin-ext, arabic subsets).
   Vendored so no page loads a third-party stylesheet or font; the
   card pages run under a script-src 'self' CSP. Regenerate from:
   https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&family=Inter:wght@400;500;600;700;800&family=Tajawal:wght@400;500;700;800&display=swap */
/* arabic */
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../vendor/fonts/Cairo-400-arabic.4d90a59cb181.woff2") format('woff2');
  unicode-range: 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, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* latin-ext */
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../vendor/fonts/Cairo-400-latin-ext.2ef88f3a969d.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../vendor/fonts/Cairo-400-latin.3c9597566d23.woff2") format('woff2');
  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;
}
/* arabic */
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../vendor/fonts/Cairo-500-arabic.4d90a59cb181.woff2") format('woff2');
  unicode-range: 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, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* latin-ext */
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../vendor/fonts/Cairo-500-latin-ext.2ef88f3a969d.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../vendor/fonts/Cairo-500-latin.3c9597566d23.woff2") format('woff2');
  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;
}
/* arabic */
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../vendor/fonts/Cairo-600-arabic.4d90a59cb181.woff2") format('woff2');
  unicode-range: 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, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* latin-ext */
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../vendor/fonts/Cairo-600-latin-ext.2ef88f3a969d.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../vendor/fonts/Cairo-600-latin.3c9597566d23.woff2") format('woff2');
  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;
}
/* arabic */
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../vendor/fonts/Cairo-700-arabic.4d90a59cb181.woff2") format('woff2');
  unicode-range: 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, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* latin-ext */
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../vendor/fonts/Cairo-700-latin-ext.2ef88f3a969d.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../vendor/fonts/Cairo-700-latin.3c9597566d23.woff2") format('woff2');
  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;
}
/* arabic */
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../vendor/fonts/Cairo-800-arabic.4d90a59cb181.woff2") format('woff2');
  unicode-range: 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, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* latin-ext */
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../vendor/fonts/Cairo-800-latin-ext.2ef88f3a969d.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../vendor/fonts/Cairo-800-latin.3c9597566d23.woff2") format('woff2');
  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;
}
/* arabic */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../vendor/fonts/IBMPlexSansArabic-400-arabic.4fa3d81d41ab.woff2") format('woff2');
  unicode-range: 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, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../vendor/fonts/IBMPlexSansArabic-400-latin-ext.8f47bcb71f45.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../vendor/fonts/IBMPlexSansArabic-400-latin.4767e1197706.woff2") format('woff2');
  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;
}
/* arabic */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../vendor/fonts/IBMPlexSansArabic-500-arabic.106892212ea7.woff2") format('woff2');
  unicode-range: 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, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../vendor/fonts/IBMPlexSansArabic-500-latin-ext.71f4c6840dd1.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../vendor/fonts/IBMPlexSansArabic-500-latin.80ebc672c915.woff2") format('woff2');
  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;
}
/* arabic */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../vendor/fonts/IBMPlexSansArabic-600-arabic.64891a810259.woff2") format('woff2');
  unicode-range: 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, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../vendor/fonts/IBMPlexSansArabic-600-latin-ext.73f6208660e9.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../vendor/fonts/IBMPlexSansArabic-600-latin.f417eeb0d15e.woff2") format('woff2');
  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;
}
/* arabic */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../vendor/fonts/IBMPlexSansArabic-700-arabic.a4390abc98c2.woff2") format('woff2');
  unicode-range: 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, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../vendor/fonts/IBMPlexSansArabic-700-latin-ext.8f4b1a9530f1.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../vendor/fonts/IBMPlexSansArabic-700-latin.8d04403cf599.woff2") format('woff2');
  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;
}
/* All ten Inter blocks below point at the SAME two files on purpose.

   Inter on Google Fonts is a variable font: the css2 endpoint returns one file
   per subset that already carries every weight from 100 to 900. The vendoring
   run saved that one file five times, once per weight, under five names -
   md5-identical, 48 KB each. Five URLs meant five cache entries, so an English
   page fetched the same 48 KB five times.

   Keeping the five @font-face blocks (rather than one block with a weight
   range) means the browser still matches weights exactly as before, with no
   variable-font support floor. Only the src changed.

   Re-vendoring from the URL at the top of this file will bring the duplicates
   back. If you do that, re-point the src lines or delete the extra files. */
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../vendor/fonts/Inter-400-latin-ext.1ad231aac0a8.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../vendor/fonts/Inter-400-latin.260c81a4759b.woff2") format('woff2');
  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;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../vendor/fonts/Inter-400-latin-ext.1ad231aac0a8.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../vendor/fonts/Inter-400-latin.260c81a4759b.woff2") format('woff2');
  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;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../vendor/fonts/Inter-400-latin-ext.1ad231aac0a8.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../vendor/fonts/Inter-400-latin.260c81a4759b.woff2") format('woff2');
  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;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../vendor/fonts/Inter-400-latin-ext.1ad231aac0a8.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../vendor/fonts/Inter-400-latin.260c81a4759b.woff2") format('woff2');
  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;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../vendor/fonts/Inter-400-latin-ext.1ad231aac0a8.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../vendor/fonts/Inter-400-latin.260c81a4759b.woff2") format('woff2');
  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;
}
/* arabic */
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../vendor/fonts/Tajawal-400-arabic.d595af28c13f.woff2") format('woff2');
  unicode-range: 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, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* latin */
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../vendor/fonts/Tajawal-400-latin.f18eb7346bae.woff2") format('woff2');
  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;
}
/* arabic */
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../vendor/fonts/Tajawal-500-arabic.899cfbe65444.woff2") format('woff2');
  unicode-range: 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, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* latin */
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../vendor/fonts/Tajawal-500-latin.7256be463352.woff2") format('woff2');
  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;
}
/* arabic */
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../vendor/fonts/Tajawal-700-arabic.10367de774c9.woff2") format('woff2');
  unicode-range: 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, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* latin */
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../vendor/fonts/Tajawal-700-latin.e9c38c1110be.woff2") format('woff2');
  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;
}
/* arabic */
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../vendor/fonts/Tajawal-800-arabic.93993923a466.woff2") format('woff2');
  unicode-range: 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, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* latin */
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../vendor/fonts/Tajawal-800-latin.316fa1995ea5.woff2") format('woff2');
  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;
}

/* css/base-layer.css */
/* The floor the product stands on, and the header's layout.

   Bootstrap used to supply both. Its components went a while back, and its JS
   before that -- what was left were two jobs: Reboot's element defaults, which
   everything inherits, and the flex rules that lay out the site header. Those
   are here now, and bootstrap.min.css is gone: 22.7 KB Brotli, 43% of what a
   visitor downloaded before the first paint.

   The class names in the header block are Bootstrap's, deliberately. Renaming
   them would touch base.html, menu.js and the RTL overrides in app.css at the
   same time as replacing the rules, and then nothing would be provable. They
   are ordinary project class names now, defined here.

   Every rule below was checked against a snapshot of 30,396 elements across 72
   page renders taken while Bootstrap was still loaded. Nothing here is a guess
   about what Reboot did; it is what the diff demanded. */

/* ── Reboot: the parts everything inherits ───────────────────────────── */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-sans, system-ui, -apple-system, "Segoe UI", sans-serif);
    font-size: 1rem;
    font-weight: 400;
    /* 1.5 is the number the whole vertical rhythm was built against. Dropping
       it shortened almost every text node by a pixel, which is invisible per
       element and moves an entire page. */
    line-height: 1.5;
    color: var(--color-text, #0f172a);
    background-color: var(--color-bg, #f6f8f7);
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

hr {
    margin: 1rem 0;
    color: inherit;
    border: 0;
    border-top: 1px solid;
    opacity: 0.25;
}

.h1, .h2, .h3, .h4, .h5, .h6,
h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 500;
    line-height: 1.2;
}

.h1, h1 { font-size: calc(1.375rem + 1.5vw); }
.h2, h2 { font-size: calc(1.325rem + 0.9vw); }
.h3, h3 { font-size: calc(1.3rem + 0.6vw); }
.h4, h4 { font-size: calc(1.275rem + 0.3vw); }
.h5, h5 { font-size: 1.25rem; }
.h6, h6 { font-size: 1rem; }

@media (min-width: 1200px) {
    .h1, h1 { font-size: 2.5rem; }
    .h2, h2 { font-size: 2rem; }
    .h3, h3 { font-size: 1.75rem; }
    .h4, h4 { font-size: 1.5rem; }
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

ol, ul {
    padding-left: 2rem;
}

ol, ul, dl {
    margin-top: 0;
    margin-bottom: 1rem;
}

ol ol, ul ul, ol ul, ul ol {
    margin-bottom: 0;
}

b, strong { font-weight: bolder; }

small { font-size: 0.875em; }

a {
    /* The product overrides this almost everywhere; what matters is that a bare
       <a> keeps the colour the pages were built against, which was Bootstrap's
       link blue resolved through --bs-link-color-rgb. */
    color: #0d6efd;
    text-decoration: underline;
}

a:not([href]):not([class]),
a:not([href]):not([class]):hover {
    color: inherit;
    text-decoration: none;
}

img, svg { vertical-align: middle; }

table {
    caption-side: bottom;
    border-collapse: collapse;
}

th { text-align: inherit; text-align: -webkit-match-parent; }

thead, tbody, tfoot, tr, td, th {
    border-color: inherit;
    border-style: solid;
    border-width: 0;
}

label { display: inline-block; }

/* Form controls do not inherit type from the page on their own. */
button, input, optgroup, select, textarea {
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

button, select { text-transform: none; }

button,
[type="button"],
[type="reset"],
[type="submit"] {
    -webkit-appearance: button;
}

button:not(:disabled),
[type="button"]:not(:disabled),
[type="reset"]:not(:disabled),
[type="submit"]:not(:disabled) {
    cursor: pointer;
}

::-moz-focus-inner { padding: 0; border-style: none; }

textarea { resize: vertical; }

fieldset {
    min-width: 0;
    padding: 0;
    margin: 0;
    border: 0;
}

legend {
    float: left;
    width: 100%;
    padding: 0;
    margin-bottom: 0.5rem;
    font-size: calc(1.275rem + 0.3vw);
    line-height: inherit;
}

@media (min-width: 1200px) {
    legend { font-size: 1.5rem; }
}

legend + * { clear: left; }

::-webkit-datetime-edit-fields-wrapper,
::-webkit-datetime-edit-text,
::-webkit-datetime-edit-minute,
::-webkit-datetime-edit-hour-field,
::-webkit-datetime-edit-day-field,
::-webkit-datetime-edit-month-field,
::-webkit-datetime-edit-year-field {
    padding: 0;
}

::-webkit-inner-spin-button { height: auto; }

[type="search"] {
    -webkit-appearance: textfield;
    outline-offset: -2px;
}

::-webkit-search-decoration { -webkit-appearance: none; }

::-webkit-color-swatch-wrapper { padding: 0; }

::file-selector-button {
    font: inherit;
    -webkit-appearance: button;
}

summary {
    display: list-item;
    cursor: pointer;
}

[hidden] { display: none !important; }

/* ── The site header's layout ────────────────────────────────────────── */

.container-fluid {
    width: 100%;
    padding-inline: 0.75rem;
    margin-inline: auto;
}

.navbar {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding-block: 0.5rem;
}

/* The row inside the bar. Without this the header stops being a flex row and
   grows 34px on every page. */
.navbar > .container-fluid {
    display: flex;
    flex-wrap: inherit;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    padding-block: 0.3125rem;
    margin-inline-end: 1rem;
    font-size: 1.25rem;
    color: rgb(0, 0, 0);
    text-decoration: none;
    white-space: nowrap;
}

.navbar-nav {
    display: flex;
    flex-direction: column;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

.navbar-collapse {
    flex-basis: 100%;
    flex-grow: 1;
    align-items: center;
}

.collapse:not(.show) { display: none; }

/* The panel is inert -- nothing opens it, and above 992px this rule is what
   keeps it open anyway. It is the header's desktop row. */
@media (min-width: 992px) {
    .navbar-expand-lg {
        flex-wrap: nowrap;
        justify-content: flex-start;
    }
    .navbar-expand-lg .navbar-nav { flex-direction: row; }
    .navbar-expand-lg .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
    }
}

/* ── The account menu ────────────────────────────────────────────────── */
/* menu.js toggles .show, matching what Bootstrap did. */

.dropdown { position: relative; }

.dropdown-toggle { white-space: nowrap; }

.dropdown-menu {
    position: absolute;
    z-index: 1000;
    display: none;
    min-width: 10rem;
    padding: 0.5rem 0;
    margin: 0;
    top: 100%;
    left: 0;
    /* Physically left, not `start`: this is what the panel's contents were laid
       out against, and app.css already handles the RTL side separately. */
    text-align: left;
    list-style: none;
    background-clip: padding-box;
}

.dropdown-menu.show { display: block; }

.dropdown-menu-end { right: 0; left: auto; }

/* ── The two spacing utilities the header still uses ─────────────────── */

.me-0 { margin-inline-end: 0 !important; }
.px-0 { padding-inline: 0 !important; }


/* ── The three utilities the product leans on outside the header ─────── */
/* app.css styles .btn heavily but never set these: the base sat in Bootstrap,
   so without them 1,476 button labels stopped being centred. */

.btn {
    display: inline-block;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent;
    transition: color .15s ease-in-out, background-color .15s ease-in-out,
                border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
}

.small { font-size: 0.875em; }

/* app.css paints .badge but never set its line-height, so without this every
   pill grew 4.6px and pushed the tables it sits in. */
.badge {
    display: inline-block;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
}

/* Screen-reader-only text. Every value carries !important because it has to
   beat whatever the element would otherwise be. */
.visually-hidden:not(caption) { position: absolute !important; }

.visually-hidden {
    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;
}

/* vendor/bootstrap-icons/bootstrap-icons.min.css */
/*!
 * Bootstrap Icons v1.11.3 (https://icons.getbootstrap.com/)
 * Copyright 2019-2024 The Bootstrap Authors
 * Licensed under MIT (https://github.com/twbs/icons/blob/main/LICENSE)
 */@font-face{font-display:block;font-family:bootstrap-icons;src:url("../vendor/bootstrap-icons/fonts/bootstrap-icons.52bbd4517dee.woff2?52bbd4517dee33e4677e81f81e2188bc") format("woff2"),url("../vendor/bootstrap-icons/fonts/bootstrap-icons.a8131840bbed.woff?52bbd4517dee33e4677e81f81e2188bc") format("woff")}.bi::before,[class*=" bi-"]::before,[class^=bi-]::before{display:inline-block;font-family:bootstrap-icons!important;font-style:normal;font-weight:400!important;font-variant:normal;text-transform:none;line-height:1;vertical-align:-.125em;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.bi-123::before{content:"\f67f"}.bi-archive::before{content:"\f10d"}.bi-arrow-bar-left::before{content:"\f113"}.bi-arrow-clockwise::before{content:"\f116"}.bi-arrow-counterclockwise::before{content:"\f117"}.bi-arrow-down-right-circle::before{content:"\f120"}.bi-arrow-down-up::before{content:"\f127"}.bi-arrow-left-right::before{content:"\f12b"}.bi-arrow-left::before{content:"\f12f"}.bi-arrow-repeat::before{content:"\f130"}.bi-arrow-return-left::before{content:"\f131"}.bi-arrow-right-circle-fill::before{content:"\f133"}.bi-arrow-right::before{content:"\f138"}.bi-arrow-up-left-circle::before{content:"\f13c"}.bi-arrow-up-right::before{content:"\f144"}.bi-arrow-up::before{content:"\f148"}.bi-arrows-fullscreen::before{content:"\f14d"}.bi-at::before{content:"\f152"}.bi-award-fill::before{content:"\f153"}.bi-award::before{content:"\f154"}.bi-bar-chart::before{content:"\f17e"}.bi-bell::before{content:"\f18a"}.bi-bookmark-check-fill::before{content:"\f195"}.bi-bookmark-fill::before{content:"\f199"}.bi-bookmark-heart-fill::before{content:"\f19a"}.bi-bookmark::before{content:"\f1a2"}.bi-bootstrap::before{content:"\f1a8"}.bi-box-arrow-in-right::before{content:"\f1be"}.bi-box-arrow-right::before{content:"\f1c3"}.bi-box-arrow-up-right::before{content:"\f1c5"}.bi-box::before{content:"\f1c8"}.bi-bricks::before{content:"\f1ca"}.bi-briefcase::before{content:"\f1cc"}.bi-broadcast::before{content:"\f1d6"}.bi-bucket::before{content:"\f1da"}.bi-building::before{content:"\f1dd"}.bi-calendar-check::before{content:"\f1e2"}.bi-calendar-event::before{content:"\f1e8"}.bi-calendar-range::before{content:"\f1f1"}.bi-calendar-x::before{content:"\f1f5"}.bi-calendar2-event::before{content:"\f1fe"}.bi-calendar3::before{content:"\f214"}.bi-camera::before{content:"\f220"}.bi-card-text::before{content:"\f228"}.bi-cash::before{content:"\f247"}.bi-chat-dots-fill::before{content:"\f249"}.bi-chat-dots::before{content:"\f24a"}.bi-chat-square-dots::before{content:"\f25f"}.bi-chat-square-quote-fill::before{content:"\f261"}.bi-chat-text::before{content:"\f267"}.bi-chat::before{content:"\f268"}.bi-check-circle-fill::before{content:"\f26a"}.bi-check-circle::before{content:"\f26b"}.bi-check::before{content:"\f26e"}.bi-check2-all::before{content:"\f26f"}.bi-check2-circle::before{content:"\f270"}.bi-check2::before{content:"\f272"}.bi-chevron-double-left::before{content:"\f27f"}.bi-chevron-down::before{content:"\f282"}.bi-chevron-left::before{content:"\f284"}.bi-chevron-right::before{content:"\f285"}.bi-circle::before{content:"\f28a"}.bi-clipboard-check::before{content:"\f28b"}.bi-clipboard::before{content:"\f290"}.bi-clock-history::before{content:"\f292"}.bi-clock::before{content:"\f293"}.bi-cloud-arrow-up::before{content:"\f297"}.bi-cloud-upload-fill::before{content:"\f2bf"}.bi-code::before{content:"\f2c8"}.bi-credit-card-2-front::before{content:"\f2da"}.bi-credit-card-fill::before{content:"\f2db"}.bi-credit-card::before{content:"\f2dc"}.bi-dash-circle::before{content:"\f2e6"}.bi-dash::before{content:"\f2ea"}.bi-diagram-3::before{content:"\f2ee"}.bi-dot::before{content:"\f309"}.bi-download::before{content:"\f30a"}.bi-envelope::before{content:"\f32f"}.bi-exclamation-circle-fill::before{content:"\f332"}.bi-exclamation-circle::before{content:"\f333"}.bi-exclamation-octagon::before{content:"\f337"}.bi-exclamation-triangle-fill::before{content:"\f33a"}.bi-exclamation-triangle::before{content:"\f33b"}.bi-eye-fill::before{content:"\f33e"}.bi-eye-slash-fill::before{content:"\f33f"}.bi-eye-slash::before{content:"\f340"}.bi-eye::before{content:"\f341"}.bi-file-earmark-check::before{content:"\f360"}.bi-file-earmark-image::before{content:"\f36d"}.bi-file-earmark-plus::before{content:"\f37d"}.bi-file-earmark-text::before{content:"\f38b"}.bi-file-earmark::before{content:"\f392"}.bi-file::before{content:"\f3c0"}.bi-files::before{content:"\f3c2"}.bi-filter::before{content:"\f3ca"}.bi-flag-fill::before{content:"\f3cb"}.bi-flag::before{content:"\f3cc"}.bi-folder::before{content:"\f3d7"}.bi-folder2-open::before{content:"\f3d8"}.bi-folder2::before{content:"\f3d9"}.bi-fonts::before{content:"\f3da"}.bi-funnel::before{content:"\f3e1"}.bi-gear::before{content:"\f3e5"}.bi-geo-alt::before{content:"\f3e8"}.bi-gift-fill::before{content:"\f3eb"}.bi-gift::before{content:"\f3ec"}.bi-globe::before{content:"\f3ee"}.bi-globe2::before{content:"\f3ef"}.bi-graph-up::before{content:"\f3f2"}.bi-grid-1x2::before{content:"\f3f4"}.bi-grid-3x3-gap::before{content:"\f3f9"}.bi-grid::before{content:"\f3fc"}.bi-hammer::before{content:"\f3ff"}.bi-hand-thumbs-down::before{content:"\f405"}.bi-hand-thumbs-up-fill::before{content:"\f406"}.bi-hand-thumbs-up::before{content:"\f407"}.bi-hash::before{content:"\f40a"}.bi-headset::before{content:"\f414"}.bi-hourglass::before{content:"\f421"}.bi-house-door::before{content:"\f423"}.bi-house::before{content:"\f425"}.bi-hr::before{content:"\f426"}.bi-image::before{content:"\f42a"}.bi-images::before{content:"\f42b"}.bi-inboxes-fill::before{content:"\f42e"}.bi-inboxes::before{content:"\f42f"}.bi-info-circle-fill::before{content:"\f430"}.bi-info-circle::before{content:"\f431"}.bi-info::before{content:"\f434"}.bi-kanban::before{content:"\f44d"}.bi-key::before{content:"\f44f"}.bi-laptop::before{content:"\f456"}.bi-life-preserver::before{content:"\f467"}.bi-lightbulb-fill::before{content:"\f468"}.bi-lightning-charge-fill::before{content:"\f46c"}.bi-link-45deg::before{content:"\f470"}.bi-link::before{content:"\f471"}.bi-list-ul::before{content:"\f478"}.bi-list::before{content:"\f479"}.bi-lock-fill::before{content:"\f47a"}.bi-lock::before{content:"\f47b"}.bi-megaphone::before{content:"\f484"}.bi-option::before{content:"\f4ad"}.bi-paperclip::before{content:"\f4b3"}.bi-patch-check-fill::before{content:"\f4b5"}.bi-patch-check::before{content:"\f4b6"}.bi-pause-circle::before{content:"\f4c2"}.bi-pencil-fill::before{content:"\f4c9"}.bi-pencil-square::before{content:"\f4ca"}.bi-pencil::before{content:"\f4cb"}.bi-people::before{content:"\f4d0"}.bi-percent::before{content:"\f4d1"}.bi-person-badge::before{content:"\f4d3"}.bi-person-check::before{content:"\f4d6"}.bi-person-fill::before{content:"\f4da"}.bi-person-lines-fill::before{content:"\f4db"}.bi-person-plus::before{content:"\f4dd"}.bi-person::before{content:"\f4e1"}.bi-phone::before{content:"\f4e7"}.bi-plus-circle::before{content:"\f4fa"}.bi-plus::before{content:"\f4fe"}.bi-printer::before{content:"\f501"}.bi-receipt-cutoff::before{content:"\f50e"}.bi-receipt::before{content:"\f50f"}.bi-reply-fill::before{content:"\f51f"}.bi-reply::before{content:"\f520"}.bi-save::before{content:"\f525"}.bi-search::before{content:"\f52a"}.bi-share::before{content:"\f52e"}.bi-shield-check::before{content:"\f52f"}.bi-shield-exclamation::before{content:"\f530"}.bi-shield-lock-fill::before{content:"\f537"}.bi-shield-lock::before{content:"\f538"}.bi-slash-circle::before{content:"\f567"}.bi-sliders::before{content:"\f56b"}.bi-speedometer2::before{content:"\f580"}.bi-star-fill::before{content:"\f586"}.bi-star::before{content:"\f588"}.bi-stars::before{content:"\f589"}.bi-stopwatch::before{content:"\f597"}.bi-tag-fill::before{content:"\f5af"}.bi-tag::before{content:"\f5b0"}.bi-tags::before{content:"\f5b2"}.bi-telephone::before{content:"\f5c1"}.bi-textarea::before{content:"\f5cc"}.bi-three-dots-vertical::before{content:"\f5d3"}.bi-toggle-off::before{content:"\f5d5"}.bi-tools::before{content:"\f5db"}.bi-trophy::before{content:"\f5e7"}.bi-truck::before{content:"\f5ea"}.bi-type::before{content:"\f5f7"}.bi-upload::before{content:"\f603"}.bi-wallet2::before{content:"\f615"}.bi-whatsapp::before{content:"\f618"}.bi-x-circle-fill::before{content:"\f622"}.bi-x-circle::before{content:"\f623"}.bi-x-octagon-fill::before{content:"\f626"}.bi-x-octagon::before{content:"\f627"}.bi-x::before{content:"\f62a"}.bi-zoom-in::before{content:"\f62c"}.bi-bank::before{content:"\f62e"}.bi-cash-coin::before{content:"\f632"}.bi-check-lg::before{content:"\f633"}.bi-dash-lg::before{content:"\f63b"}.bi-file-earmark-pdf-fill::before{content:"\f63d"}.bi-file-earmark-pdf::before{content:"\f63e"}.bi-plus-lg::before{content:"\f64d"}.bi-translate::before{content:"\f658"}.bi-x-lg::before{content:"\f659"}.bi-line::before{content:"\f660"}.bi-medium::before{content:"\f661"}.bi-activity::before{content:"\f66b"}.bi-graph-up-arrow::before{content:"\f673"}.bi-envelope-check::before{content:"\f68c"}.bi-envelope-exclamation::before{content:"\f692"}.bi-infinity::before{content:"\f69e"}.bi-meta::before{content:"\f6a1"}.bi-send-check::before{content:"\f6b3"}.bi-send::before{content:"\f6c0"}.bi-ticket-perforated::before{content:"\f6ca"}.bi-ticket::before{content:"\f6cb"}.bi-envelope-paper::before{content:"\f73d"}.bi-trash3-fill::before{content:"\f78a"}.bi-trash3::before{content:"\f78b"}.bi-airplane::before{content:"\f7cd"}.bi-building-add::before{content:"\f867"}.bi-building-check::before{content:"\f868"}.bi-buildings::before{content:"\f87d"}.bi-person-gear::before{content:"\f8a7"}.bi-person-slash::before{content:"\f8a9"}.bi-person-vcard::before{content:"\f8c9"}.bi-arrows-expand-vertical::before{content:"\f695"}.bi-copy::before{content:"\f759"}.bi-threads::before{content:"\f8d9"}.bi-transparency::before{content:"\f8da"}.bi-highlights::before{content:"\f8ee"}
/* css/app.css */
:root {
    /* Categorical chart slots, fixed order, never cycled. Validated with the
       dataviz palette checker on the light surface: lightness band, chroma,
       CVD (worst adjacent protan 8.4) and normal-vision separation all pass;
       slot 2 is under 3:1 against the surface, which is why every chart that
       uses it prints its numbers in a visible table beside the marks. */
    --chart-1: #0D9B6E;
    --chart-2: #D08A12;
    --chart-3: #3B6FD8;
    --chart-4: #C0467A;
    --chart-5: #7A5BD0;
    --chart-6: #E0592A;

    color-scheme: light;

    /* --- Shared page-title size (single source of truth across all pages) --- */
    --page-title-size: clamp(1.6rem, 2.6vw, 2rem);

    /* --- Color primitives: green ramp --- */
    --green-50:  #f0faf5;
    --green-100: #d8f1e4;
    --green-200: #b7e4cb;
    --green-300: #79d0a9;
    --green-400: #27c08a;
    --green-500: #0d9b6e;
    /* The brand green taken down until small text on our own grounds clears
       WCAG AA. 500 reads 3.32 against the page and 600 only 4.08, so neither
       can carry an 11px heading; 700 clears it at 6.53 but is a duller green
       and would change the character of every section heading on the site. */
    --green-550: #0a7d59;
    --green-600: #0b8a61;
    --green-700: #146644;
    --green-800: #0e5e49;
    --green-900: #0c4a39;

    /* --- Color primitives: ink/neutral ramp --- */
    --ink-50:  #f6f8f7;
    --ink-100: #edf3ef;
    --ink-200: #e6ebe9;
    --ink-300: #cbd5d1;
    --ink-400: #94a3a0;
    --ink-500: #64748b;
    --ink-600: #475569;
    --ink-700: #334155;
    --ink-800: #1e293b;
    --ink-900: #0f172a;

    /* --- Color primitives: gold (membership accent only) --- */
    --gold-100: #fff4d8;
    --gold-300: #ffd98a;
    --gold-500: #e8a72d;
    --gold-700: #b07816;
    --gold-800: #855b10;   /* text-safe gold: 4.9:1 on white for small labels */

    /* --- Semantic colors --- */
    --color-primary:        var(--green-500);
    --color-primary-hover:  var(--green-600);
    /* Brand green for TEXT. --color-primary is for fills and large type; at
       small sizes it fails AA on every background this app paints. Deliberately
       not an alias of --color-primary-hover: tuning a hover shade would then
       silently move a contrast floor. */
    --color-primary-text:   var(--green-550);

    /* The primary fill. Written out 32 times across 17 files before this, so a
       contrast fix meant 32 edits and missing one was silent. It starts at 550
       rather than 500 because white sits on it: the old light stop measured
       3.54 against white and WCAG judges a gradient at its worst point. */
    --grad-primary: linear-gradient(135deg, var(--green-550), var(--green-700));
    --color-secondary:      var(--green-700);
    --color-accent-gold:    var(--gold-500);

    --color-bg:           var(--ink-50);
    --color-bg-muted:     var(--ink-100);
    --color-surface:      rgba(255, 255, 255, 0.98);
    /* The same white with nothing showing through: for a bar that content scrolls under. */
    --color-surface-solid: #fff;
    --color-surface-flat: #ffffff;
    --color-surface-strong: #ffffff;

    --fg-1: var(--ink-900);
    --fg-2: var(--ink-500);
    --fg-3: var(--ink-400);
    --fg-on-primary: #ffffff;

    --color-text:   var(--ink-900);
    --color-text-muted: var(--ink-500);
    --color-tertiary: var(--ink-900);

    --color-border:        rgba(15, 23, 42, 0.08);
    /* A rule that repeats 20 times in one screen (a data-table row separator)
       reads as a ladder at full strength. Same hue, less weight. */
    --color-border-soft:   rgba(15, 23, 42, 0.05);
    --color-border-strong: rgba(15, 23, 42, 0.12);
    --color-border-brand:  rgba(13, 155, 110, 0.12);

    --color-danger:         #dc2626;
    --color-danger-soft:    rgba(254, 242, 242, 0.95);
    --color-danger-border:  rgba(220, 38, 38, 0.16);
    --color-success-soft:   rgba(234, 247, 242, 0.95);
    --color-success-border: rgba(13, 155, 110, 0.18);

    /* --- Elevation --- */
    --shadow-soft:  0 1px 3px rgba(15, 23, 42, 0.04);
    --shadow-pop:   0 10px 24px rgba(15, 23, 42, 0.06);
    --shadow-cta:   0 3px 8px rgba(13, 155, 110, 0.10);
    /* Scrims. A modal backdrop and the caption plate over a photo are the two
       places the UI needs a wash over arbitrary content rather than a surface
       colour, so neither can come from the ink ramp. */
    --scrim-modal:  rgba(15, 23, 42, 0.55);
    --scrim-media:  rgba(15, 23, 42, 0.45);
    --shadow-sheet: 0 24px 60px rgba(15, 23, 42, 0.18);

    /* --- Radii --- */
    --radius-xs:   8px;
    --radius-sm:   12px;
    --radius-md:   14px;
    --radius-card: 16px;  /* the card family: 40 rules across the sheets use it */
    --radius-lg:   18px;
    --radius-xl:   22px;
    --radius-2xl:  24px;
    --radius-pill: 999px;

    /* --- Spacing (4px base) --- */
    --space-1:  4px;
    --space-2:  8px;
    --space-3:  12px;
    --space-4:  14px;
    --space-5:  18px;
    --space-6:  22px;
    --space-7:  28px;
    --space-8:  32px;
    --space-9:  40px;
    --space-10: 56px;

    /* --- Semantic layout padding (single source of truth) ---
       Page  = outer padding of a full-bleed page / standalone pane.
       Card  = inner padding of a card or panel. Use these everywhere so
       spacing stays consistent across the app. *-sm are the compact
       (small-screen) variants. */
    --pad-page-block:     var(--space-9);   /* 40px */
    --pad-page-inline:    var(--space-10);  /* 56px */
    --pad-page-block-sm:  var(--space-7);   /* 28px */
    --pad-page-inline-sm: var(--space-6);   /* 22px */
    --pad-card:           var(--space-9);   /* 40px (block = inline) */
    --pad-card-sm:        var(--space-7);   /* 28px */
    --pad-card-phone:     14px;             /* a card's sides on a phone */

    /* --- Typography: families --- */
    --font-latin:      "Inter", "Segoe UI", Arial, sans-serif;
    --font-arabic:     "Tajawal", "IBM Plex Sans Arabic", "Cairo", "Segoe UI", Arial, sans-serif;
    --font-display-ar: "Tajawal", "Cairo", "Segoe UI", Arial, sans-serif;
    --font-mono:       ui-monospace, "SF Mono", "JetBrains Mono", monospace;

    /* --- Typography: scale --- */
    --text-xs:      0.74rem;
    --text-sm:      0.84rem;
    --text-base:    0.94rem;
    --text-md:      1rem;
    --text-lg:      1.08rem;
    --text-xl:      1.22rem;
    --text-2xl:     1.5rem;
    --text-3xl:     1.8rem;
    --text-display: clamp(2.55rem, 5.2vw, 4rem);
    --text-display-md: clamp(1.9rem, 4vw, 2.7rem);

    /* --- Typography: tracking, leading, weight --- */
    --tracking-tight:  -0.05em;
    --tracking-snug:   -0.025em;
    --tracking-normal:  0;
    --tracking-wide:    0.02em;
    --tracking-kicker:  0.16em;
    --tracking-stamp:   0.18em;

    --leading-tight:   1.2;
    --leading-snug:    1.35;
    --leading-normal:  1.6;
    --leading-relaxed: 1.75;
    --leading-loose:   1.85;

    --fw-regular: 400;
    --fw-medium:  500;
    --fw-semi:    600;
    --fw-bold:    700;
    --fw-heavy:   800;

    /* --- Motion --- */
    --ease-out:  cubic-bezier(0.22, 0.61, 0.36, 1);
    --ease-snap: cubic-bezier(0.4, 0, 0.2, 1);
    --dur-quick: 120ms;
    --dur-base:  180ms;
    --dur-soft:  220ms;

    /* --- Layout --- */
    --shell-max:    1240px;
    --shell-gutter: 16px;

    /* --- Backward-compatible aliases (keep existing pages working) --- */
    --bg:             var(--color-bg);
    --bg-2:           var(--color-bg-muted);
    --surface:        var(--color-surface);
    --surface-strong: var(--color-surface-strong);
    --ink:            var(--fg-1);
    --muted:          var(--fg-2);
    --accent:         var(--color-primary);
    --accent-2:       var(--color-secondary);
    --line:           var(--color-border);
    --shadow:         var(--shadow-soft);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Reserve the scrollbar track on every page. Without it a short page has no
       scrollbar and a long one does, so the whole layout (rail included) jumps
       ~15px sideways on each navigation. */
    scrollbar-gutter: stable;
}

/* The page ground is a gradient on <body>. Without a colour of its own on
   <html>, any canvas past the root box (a window taller than the page, an
   overscroll, browser zoom) repeats that gradient from its green top, a band
   of a different colour under the footer. The root holds the gradient's end. */
html {
    background: var(--bg);
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: var(--font-latin);
    background: linear-gradient(180deg, var(--bg-2), var(--bg));
}

html[dir="rtl"] body {
    font-family: var(--font-arabic);
}

/* An icon alone in a fixed-size box is centred by the icon font's own metrics,
   never the page font's. The glyph sat on the baseline of the font the <i>
   inherited, and Tajawal's two metric tables disagree (hhea 643/357, win
   1016/375, no USE_TYPO_METRICS): phones read one, Windows the other, so in
   Arabic these glyphs rode up, about 5px on an iPhone and a Galaxy, while
   English (Inter, whose tables agree) stayed centred. bootstrap-icons sets
   USE_TYPO_METRICS with typo 300/0, so every platform measures it alike. As a
   grid or flex item the <i> is centred by its box and the vendor's -.125em on
   the glyph no longer applies; the same -.125em on the <i> keeps an icon that
   one of these classes puts in a line of text (a chat attachment's .ic, the
   Settings eye) exactly where it was. Only boxes whose size the icon does not
   set, so nothing around them moves. (owner, 2026-10-25) */
:is(.sl-tab-fab, .sl-tab-ic, .ic, .ic-btn, .sl-drawer-ic, .sl-drawer-ava, .sl-drawer-x,
    .sl-burger, .pg-head-ic, .pd-stat-ic, .rc-ic, .rc-pick, .br-save-btn, .auth-password-rule-icon,
    .pw-toggle, .dir-sheet-x) > .bi {
    display: inline-flex; font-family: bootstrap-icons; line-height: 1; vertical-align: -.125em;
}

a {
    color: inherit;
}

.shell {
    width: min(1240px, calc(100% - 32px));
    margin: 16px auto 32px;
}

/* A short page left the footer floating mid-screen with bare ground under
   it. The shell takes the leftover height, so the footer always sits at the
   bottom of the viewport or below the content, whichever is lower.
   Workspace pages only: as a flex item the shell stops collapsing its last
   child's bottom margin, which lengthened every public page by 10 to 48px. */
body.has-rail:has(> .shell) {
    display: flex;
    flex-direction: column;
}
body.has-rail > .shell {
    flex: 1 0 auto;
}

.site-header-corporate {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.site-header-inner {
    padding: 0;
}

.site-header-frame {
    width: 100%;
    margin: 0;
}

.topbar {
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
}

.topbar-corporate {
    padding: 12px var(--space-7);
    border: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
}

.topbar .navbar {
    padding: 0;
}

.topbar .navbar-collapse {
    gap: 14px;
}

/* The nav sits between the brand and the account actions, with the free space
   split evenly on both sides rather than all of it dumped after the logo.
   `start: auto` alone put the two public doors 414px from the brand and 14px
   from the sign-in buttons, so they read as part of the account cluster.
   Auto on BOTH sides is self-correcting: a wide nav (the signed-in dashboards
   and the workspace tabs) leaves almost no free space, so it barely moves,
   while a two-item public nav centres. */
.topbar-corporate .navbar-nav {
    margin-inline: auto !important;
}

.topbar-corporate .topbar-actions {
    margin-inline-start: 0;
}

/* No-tabs pages (e.g. complete-profile): no nav to push actions over, so the
   actions themselves take the spacer and sit at the end of the row. */
.no-primary-nav .topbar-corporate .topbar-actions {
    margin-inline-start: auto;
}

.mobile-topbar-tools {
    display: none;
    align-items: center;
    gap: 10px;
    margin-inline-start: auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

/* The lockup carries the wordmark in both scripts, so the header has no brand
   text of its own to translate or let drift. Height-locked, width follows. */
.brand-lockup {
    display: block;
    height: 44px;
    width: auto;
    flex: 0 0 auto;
}
.nav {
    gap: 8px;
}

.nav a {
    text-decoration: none;
    font-size: 0.92rem;
    color: var(--muted);
    padding: 9px 12px;
    border-radius: 12px;
    transition: 180ms ease;
}

.nav a:hover {
    color: var(--ink);
    background: rgba(13, 155, 110, 0.08);
}

.nav a.is-active {
    color: var(--green-700);
    background: rgba(13, 155, 110, 0.10);
    font-weight: 600;
}

.topbar-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-inline-start: auto;
}

.guest-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.account-menu {
    position: relative;
}

.account-menu .dropdown-toggle::after {
    display: none;
}

/* ── Account dropdown — compact refined list (mockup "B") ───────────── */
.account-dropdown.dm-pop {
    width: 300px;
    min-width: 300px;
    padding: 8px;
    margin-top: 12px;
    border: 0.8px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 26px 60px -22px rgba(15, 23, 42, 0.4);
    overflow: visible;
}

/* RTL: the account button sits at the left edge, so Bootstrap's LTR
   `dropdown-menu-end` (right:0) pushes the menu off-screen to the left.
   Align it under the button and let it open inward instead. */
[dir="rtl"] .account-dropdown.dropdown-menu-end {
    right: auto;
    left: 0;
}

/* Little arrow pointing up at the account button (near the inline-end edge). */
.dm-caret {
    position: absolute;
    top: -7px;
    inset-inline-end: 24px;
    width: 14px;
    height: 14px;
    background: #fff;
    border-top: 0.8px solid rgba(15, 23, 42, 0.08);
    border-inline-start: 0.8px solid rgba(15, 23, 42, 0.08);
    transform: rotate(45deg);
    border-radius: 3px 0 0 0;
}

/* Identity header */
.dm-id.compact {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 13px;
}

.dm-ava.sm {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--green-500, #0d9b6e);
    color: #fff;
    font-size: 1rem;
}

.dm-ava.sm .bi {
    font-size: 1.05rem;
}

/* Provider account button: the company avatar (logo/initial) instead of a
   generic building glyph. pv-avatar clips a future logo to this circle. */
.dm-acct-ava {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--green-500, #0d9b6e);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1;
}

.dm-id-tx {
    min-width: 0;
}

.dm-id-name {
    margin: 0;
    font-size: 0.94rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--fg-1, #0f172a);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dm-id-mail {
    margin: 2px 0 0;
    font-size: 0.78rem;
    font-weight: 400;
    line-height: 1.3;
    color: var(--ink-500, #64748b);
}

/* Thin divider */
.dm-div.thin {
    height: 1px;
    margin: 4px 10px;
    background: rgba(15, 23, 42, 0.08);
}

/* Row group */
.dm-group {
    display: grid;
    gap: 2px;
    padding: 4px 0;
}

/* Shared row */
.account-dropdown .dm-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 11px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: var(--fg-1, #0f172a);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: start;
    text-decoration: none;
    cursor: pointer;
}

.account-dropdown .dm-row:hover,
.account-dropdown .dm-row:focus-visible {
    background: rgba(13, 155, 110, 0.08);
    outline: none;
}

.dm-row-ic.plain {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    color: var(--ink-500, #64748b);
    font-size: 1.15rem;
}

.dm-row-lbl {
    flex: 1 1 auto;
    min-width: 0;
}

.dm-row.out {
    color: var(--color-danger, #dc2626);
}

.dm-row.out .dm-row-ic {
    color: var(--color-danger, #dc2626);
}

.dm-row.out:hover {
    background: rgba(220, 38, 38, 0.08);
}

/* Logout controls are <button> (POST + CSRF) — keep them looking like the old links. */
button.dm-row, button.out {
    width: 100%;
    text-align: inherit;
    background: none;
    border: 0;
    font: inherit;
    cursor: pointer;
}

/* Language row with inline segmented toggle (matches the mobile drawer) */
.dm-langrow {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 11px;
}

.dm-langrow .dm-row-lbl {
    flex: 1 1 auto;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--fg-1, #0f172a);
}

.dm-lang {
    display: inline-flex;
    flex: 0 0 auto;
    padding: 3px;
    border-radius: var(--radius-pill, 999px);
    background: var(--ink-100, #edf3ef);
}

.dm-lang-opt {
    padding: 4px 12px;
    border-radius: var(--radius-pill, 999px);
    color: var(--ink-500, #64748b);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
}

.dm-lang-opt.on {
    background: #fff;
    color: var(--green-700, #146644);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

.dm-lang-opt:not(.on):hover {
    color: var(--green-600, #0b8a61);
}

.notification-link {
    position: relative;
}

/* Header icon buttons (chats / bell / account) share one hover: a clear
   green tint + brand icon color, instead of the old barely-visible wash. */
.notification-link,
.dm-acct {
    transition: background 140ms var(--ease-out), border-color 140ms var(--ease-out), color 140ms var(--ease-out), transform 140ms var(--ease-out);
}

.notification-link.is-open,
.notification-link:hover,
.dm-acct:hover,
.dm-acct[aria-expanded="true"] {
    background: rgba(13, 155, 110, 0.12);
    border-color: transparent;
    color: var(--green-700, #146644);
}

.notification-count {
    position: absolute;
    top: -7px;
    inset-inline-end: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--green-500);
    color: white;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
}

/* Unread-count pill on a top-nav item (e.g. Chats). Sits inline after the
   label; matches the red drawer badge so the Chats count reads the same on
   desktop and mobile. */
.nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    margin-inline-start: 6px;
    border-radius: 999px;
    background: var(--color-danger);
    color: white;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1;
    vertical-align: middle;
}

/* Browser autofill: keep our input styling instead of Chrome's pale-blue fill.
   Global version of the auth.css fix, so every form in the app is covered. */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-text-fill-color: var(--fg-1);
    box-shadow: 0 0 0 1000px #fff inset;
    transition: background-color 9999s ease-in-out 0s;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 12px;
    text-decoration: none;
    border: 1px solid transparent;
    font-weight: 700;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
    gap: 8px;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    color: white;
    background: var(--grad-primary);
    box-shadow: var(--shadow-cta);
    /* Neutralise Bootstrap's blue hover/focus border + bg vars (same class names). */
    --bs-btn-border-color: transparent;
    --bs-btn-hover-border-color: transparent;
    --bs-btn-active-border-color: transparent;
    --bs-btn-hover-bg: transparent;
    --bs-btn-active-bg: transparent;
    --bs-btn-hover-color: #fff;
    --bs-btn-active-color: #fff;
    --bs-btn-focus-shadow-rgb: 13, 155, 110;
}

.btn-secondary {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(15, 23, 42, 0.08);
    --bs-btn-border-color: rgba(15, 23, 42, 0.08);
    --bs-btn-hover-border-color: rgba(15, 23, 42, 0.16);
    --bs-btn-active-border-color: rgba(15, 23, 42, 0.16);
    --bs-btn-hover-bg: transparent;
    --bs-btn-active-bg: transparent;
    --bs-btn-hover-color: var(--ink);
    --bs-btn-active-color: var(--ink);
    --bs-btn-focus-shadow-rgb: 13, 155, 110;
}

.btn-register {
    color: white;
    background: linear-gradient(135deg, #1a8f68, #0d9b6e);
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(13, 155, 110, 0.14);
}

.btn-icon {
    width: 44px;
    min-width: 44px;
    padding: 0;
}

/* Header utility icons (bell / chats / account avatar) read cleaner borderless:
   no box at rest, only a soft green tint on hover / when the menu is open. Placed
   after .btn-secondary so it wins the resting box; the :hover rule (higher
   specificity) still paints the tint. */
.notification-link,
.dm-acct {
    background: transparent;
    border-color: transparent;
    --bs-btn-border-color: transparent;
    --bs-btn-hover-border-color: transparent;
}

.content {
    margin-top: 22px;
}

.messages {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.message {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
    box-shadow: var(--shadow);
}

.message.success {
    border-color: rgba(13, 155, 110, 0.18);
    background: rgba(234, 247, 242, 0.95);
}

.message.error {
    border-color: rgba(220, 38, 38, 0.16);
    background: rgba(254, 242, 242, 0.95);
}

.form-error-summary {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(254, 242, 242, 0.95);
    border: 1px solid rgba(220, 38, 38, 0.16);
    color: #991b1b;
    display: grid;
    gap: 4px;
}

.form-required {
    color: #dc2626;
    margin-inline-start: 4px;
    font-weight: 800;
}

.form-field-errors {
    display: grid;
    gap: 4px;
}

.form-field-error {
    font-size: 0.88rem;
    line-height: 1.5;
    color: #b91c1c;
}

/* Full width by structure, not by 100vw: the footer is a direct child of
   <body>, outside .shell, so it already spans the page (beside the rail when
   there is one). 100vw counted the scrollbar and ignored the rail, which put
   it 120px past the edge for anyone signed in, and the page scrolled sideways. */
.footer {
    position: relative;
    display: block;
    margin-top: 40px;
    padding: 0;
    border: 0;
    background:
        linear-gradient(180deg, rgba(24, 51, 44, 0.98), rgba(12, 29, 24, 0.98)),
        linear-gradient(135deg, rgba(13, 155, 110, 0.08), transparent 55%);
    color: rgba(226, 232, 240, 0.78);
    font-size: 0.92rem;
    box-shadow: 0 -6px 24px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.footer::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(13, 155, 110, 0), rgba(13, 155, 110, 0.95), rgba(13, 155, 110, 0));
}

.footer-main {
    display: grid;
    /* Brand, then a column per audience: clients, providers, legal, contact.
       minmax(0, 1fr) rather than 1fr so a long link wraps inside its column
       instead of pushing the grid wider than the frame. */
    grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr));
    gap: 22px;
    min-width: 0;
}

.footer-frame {
    width: 100%;
    max-width: var(--shell-max);
    margin-inline: auto;
    box-sizing: border-box;
    padding: var(--space-8) var(--space-7) 20px;
}

.footer-block {
    display: grid;
    gap: 10px;
    align-content: start;
    min-width: 0;
}

.footer-title,
.footer-heading {
    color: #f8fafc;
    font-weight: 800;
}

.footer-title {
    font-size: 1.05rem;
    letter-spacing: 0.02em;
}

.footer-text {
    margin: 0;
    line-height: 1.9;
    color: rgba(226, 232, 240, 0.72);
    overflow-wrap: anywhere;
}

.footer-copy {
    font-weight: 600;
    color: rgba(226, 232, 240, 0.68);
}

.footer-links {
    display: grid;
    /* The gap lives on the links now (below), so each row is a 44px
       target. Same rhythm on screen, a much bigger box to hit. */
    gap: 0;
    min-width: 0;
}

.footer-links a {
    padding-block: 11px;
    color: rgba(226, 232, 240, 0.74);
    text-decoration: none;
    overflow-wrap: anywhere;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-contact-list span {
    color: rgba(226, 232, 240, 0.72);
    overflow-wrap: anywhere;
}

/* 44px is the accessible minimum for a finger (WCAG 2.5.8). */
.footer-contact-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    width: fit-content;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-decoration: none;
    font-weight: 700;
}

.footer-contact-pill:hover {
    background: rgba(255, 255, 255, 0.12);
}

.footer-bottom-row {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    /* Copyright at the start, the operator line at the end, one row. */
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 24px;
}
.footer-bottom-row .footer-identity { text-align: start; padding-top: 0; }

/* =====================================================================
   Design system primitives — surfaces, cards, badges, layout, type
   (from ui_kits/kit-system.css — adapted for production)
   ===================================================================== */

.surface {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--color-border-brand);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
}
.surface-section { padding: var(--space-7); }

.card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    display: grid;
    gap: 10px;
}

/* — typography — */
.lead {
    margin: 0;
    color: var(--fg-2);
    line-height: 1.75;
    max-width: 62ch;
}
.t-meta {
    font-size: var(--text-sm);
    font-weight: var(--fw-medium);
    line-height: var(--leading-normal);
    color: var(--fg-2);
}
.t-muted {
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: var(--fg-2);
}

/* — kicker pill — */
.kicker {
    display: inline-flex;
    align-items: center;
    padding: 6px 11px;
    border-radius: var(--radius-pill);
    background: rgba(13, 155, 110, 0.08);
    color: var(--green-700);
    font-size: 0.76rem;
    font-weight: 700;
}

/* — badges — */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}
/* On a phone a long one («Reapplying after rejection» in a 132px column at
   320) wraps inside its pill instead of leaving the screen. Phones only: on a
   desktop table a short one («Used up») would wrap where its column squeezes. */
@media (max-width: 480px) {
    .badge { max-width: 100%; white-space: normal; line-height: 1.3; }
}
.badge-member   { background: rgba(232, 167, 45, 0.14); color: var(--gold-700); }
.badge-review   { background: rgba(232, 167, 45, 0.14); color: var(--gold-700); }
.badge-draft    { background: var(--ink-100);            color: var(--ink-700); }
.badge-active   { background: rgba(13, 155, 110, 0.10); color: var(--green-700); }

/* — honeypot — */
/* A form's trap field (accounts.forms.RegistrationForm.referral_note and
   support.forms.TicketForm). Clipped rather than display:none, because some
   scripts skip a field that is display:none and this one is only useful if it
   looks fillable. Paired in the template with aria-hidden and tabindex="-1",
   which is what keeps it away from a screen reader and a Tab key: this rule
   hides it from eyes only.

   NOT left:-9999px, which is where this started. On an RTL page the inline
   start is the right edge, so a box parked 9999px to the left lands inside the
   scrollable region rather than outside it: every page carrying the honeypot
   measured 10374px wide and really did scroll sideways, taking the nav with
   it. Clipping at the static position takes up no space in either direction. */
.hp-trap {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    pointer-events: none;
}

/* — chip — */
.chip {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: var(--radius-sm);
    background: var(--ink-100);
    color: var(--fg-1);
    font-size: 0.84rem;
    font-weight: 600;
}

/* — button extensions — */
.btn-ghost           { color: var(--green-700); background: transparent; border-color: transparent; }
.btn-ghost:hover     { background: rgba(13, 155, 110, 0.08); }
.btn-sm              { min-height: 36px; padding: 0 12px; font-size: 0.86rem; border-radius: 10px; }

/* — stat tile — */
.stat {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 16px var(--space-5);
    box-shadow: var(--shadow-soft);
}
.stat .v { display: block; font-size: 1.5rem; font-weight: 800; color: var(--fg-1); line-height: 1.1; }
.stat .k { display: block; font-size: 0.84rem; color: var(--fg-2); margin-top: 4px; }
/* A stat tile that IS a link (admin dashboard): same skin, hover affordance. */
a.stat { display: block; text-decoration: none; color: inherit; }
a.stat:hover { border-color: var(--green-500); text-decoration: none; }

/* — flex utilities — */
.row         { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.col         { display: grid; gap: 10px; }

/* — request card (old panel style, kept for other views) — */
.request-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 16px var(--space-5);
    display: grid;
    gap: 10px;
}

/* =====================================================================
   Client dashboard v3 — greeting + shortcuts + request rows
   ===================================================================== */

/* — profile verification banner — */
.verify-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px var(--space-5);
    margin-bottom: 20px;
    background: color-mix(in srgb, #E97127 8%, var(--surface));
    border: 1px solid color-mix(in srgb, #E97127 30%, transparent);
    border-radius: 12px;
}
.vb-ic { flex-shrink: 0; font-size: 1.4rem; color: #E97127; line-height: 1; }
.vb-body { flex: 1; min-width: 0; }
.vb-body strong { display: block; font-size: 0.92rem; font-weight: 700; color: var(--fg-1); margin-bottom: 2px; }
.vb-body p { margin: 0; font-size: 0.84rem; color: var(--fg-2); line-height: 1.4; }
.vb-cta {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #E97127;
    color: #fff;
    font-size: 0.86rem;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s;
}
.vb-cta:hover { background: #d4621e; color: #fff; }
/* On a phone the button takes its own row under the text, as the provider
   activation strip does at the same width: beside it, the text was squeezed
   into a column (53px wide in English at 320). */
@media (max-width: 640px) {
    .verify-banner { flex-wrap: wrap; }
    .vb-ic { align-self: flex-start; }
    .vb-cta { flex-basis: 100%; justify-content: center; }
}

/* — greeting — */
.greeting-small           { display: grid; gap: 2px; margin-bottom: 18px; }
.greeting-small h1        { margin: 0; font-size: var(--page-title-size); font-weight: 800; letter-spacing: -0.015em; overflow-wrap: anywhere; }
.greeting-small p         { margin: 0; color: var(--fg-2); font-size: 0.92rem; }

/* — shortcut tiles — */
.shortcuts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 0 0 20px;
}
.shortcut {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 18px;
    padding: var(--space-6) 20px 20px;
    text-decoration: none;
    color: inherit;
    display: grid;
    gap: 8px;
    transition: border-color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
    position: relative;
}
.shortcut:hover { border-color: rgba(13, 155, 110, 0.30); transform: translateY(-1px); }
.shortcut .ic {
    width: 44px; height: 44px;
    border-radius: 14px;
    display: grid; place-items: center;
    font-size: 1.25rem;
    background: rgba(13, 155, 110, 0.10);
    color: var(--green-700);
}
.shortcut.primary .ic {
    background: var(--grad-primary);
    color: white;
}
.shortcut .lbl { font-size: 1rem; font-weight: 800; color: var(--fg-1); }
.shortcut .sub { font-size: 0.86rem; color: var(--fg-2); line-height: 1.4; }
.shortcut .count {
    position: absolute; top: 16px; inset-inline-end: 16px;
    min-width: 22px; height: 22px; padding: 0 7px;
    border-radius: var(--radius-pill);
    background: var(--green-500); color: white;
    font-size: 0.74rem; font-weight: 800;
    display: inline-flex; align-items: center; justify-content: center;
    line-height: 1;
}
.shortcut .count.zero { background: var(--ink-300); }

/* — section title bar — */
.section-bar {
    display: flex; align-items: baseline; justify-content: space-between;
    margin: 0 0 12px;
}
.section-bar h3 {
    margin: 0;
    font-size: 0.78rem; font-weight: 800;
    letter-spacing: 0.10em; text-transform: uppercase;
    color: var(--fg-2);
}
.section-bar a { font-size: 0.84rem; color: var(--green-700); font-weight: 600; text-decoration: none; }
.section-bar a:hover { text-decoration: underline; }

/* Dashboard request rows replaced by the shared request-card widget
   (components/request_card.html + request-card.css). */

/* ── Dropdown visibility (Bootstrap JS toggles .show; CSS must hide by default) ── */
.dropdown-menu { display: none; }
.dropdown-menu.show { display: block; }

/* ── Client workspace layout (legacy sidebar, kept for reference) ── */

@media (max-width: 980px) {
    /* Burger sits at the start, brand fills the middle, bell at the end —
       matching the mobile mockup. `display:contents` lets the burger and
       bell become direct flex children of the navbar row so `order` can
       split them around the brand. */
    .mobile-topbar-tools {
        display: contents;
    }
    .topbar-corporate .container-fluid {
        gap: 12px;
        /* The row is sized by its tallest child, so shrinking the logo shrank
           the whole bar to 42px and squeezed the 40px triggers. Pin the height
           the bar already had. */
        min-height: 54px;
    }
    .sl-burger {
        order: -1;
    }
    .brand {
        flex: 1;
        min-width: 0;
        /* The wordmark below is 32px; this is the link around it, and a link is
           tapped. Height only -- the logo keeps its own size. */
        min-height: 44px;
    }
    /* 44px filled most of the 54px bar and dwarfed the 40px triggers beside it.
       32px leaves the wordmark legible and the bar balanced. */
    .brand-lockup {
        height: 32px;
    }
    .sl-mobile-bell {
        margin-inline-start: auto;
    }

    .topbar-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .nav {
        padding-top: 8px;
        flex-direction: column;
        align-items: stretch;
    }

    .nav a {
        width: 100%;
    }

    .guest-actions {
        width: 100%;
        flex-direction: column;
    }

    .guest-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .shortcuts {
        grid-template-columns: 1fr;
    }}

/* ── Legacy mobile-drawer helpers — kept hidden everywhere ────────────
   These nodes still live inside the desktop #mainHeaderNav collapse but
   are only meaningful in the old layout. The new `.sl-drawer` below
   replaces them, so they stay display:none at every width. */
.nav-side-head,
.nav-side-label,
.nav-side-only,
.nav-backdrop {
    display: none;
}

/* =====================================================================
   Mobile side drawer — burger-triggered off-canvas panel (shown ≤980px).
   Green hero · header_nav-driven nav · pinned footer (lang + actions).
   Slides in from the end side (right in RTL, left in LTR).
   ===================================================================== */

/* Topbar trigger buttons (burger + notification bell) */
.sl-burger,
.sl-mobile-bell {
    width: 44px;
    height: 44px;
    flex: none;
    /* Borderless on purpose: three boxed pills on a 54px bar read as chrome
       competing with the logo. The box itself is the tap target, so it is the
       platform minimum -- 40 was four short, and the bar is 54 either way. */
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: var(--ink);
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    cursor: pointer;
    position: relative;
    text-decoration: none;
    padding: 0;
    box-shadow: none;
}
.sl-mobile-dot {
    position: absolute;
    top: 8px;
    inset-inline-end: 9px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-danger);
    border: 1.5px solid #fff;
}

.sl-drawer-scrim {
    position: fixed;
    inset: 0;
    z-index: 1040;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}
/* The panel arrives from the side its trigger is on. Two controls open it and
   they never appear together -- the template conditions are exact complements:
   the bottom bar's More tab (inline end) on pages that have the bar, the topbar
   burger (inline start) on the ones that do not, which is the admin workspace,
   an open chat, and every signed-out page.

   Anchored to the end by default; :has(.sl-burger) moves it to the start. That
   reads the control actually on the page rather than a role or a template flag,
   so it cannot drift away from the condition that renders it.

   translateX is physical while the anchor is logical, so the offset and the
   shadow direction are carried as variables and each of the four cases sets
   them. Anchored right -> slide out to +100% and cast the shadow left. */
.sl-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    inset-inline: auto 0;
    --drawer-away: 100%;
    --drawer-shadow-x: -18px;
    z-index: 1041;
    width: min(300px, 86vw);
    background: #fff;
    display: flex;
    flex-direction: column;
    box-shadow: var(--drawer-shadow-x) 0 44px -16px rgba(15, 23, 42, 0.4);
    transform: translateX(var(--drawer-away));
    /* Hidden once the slide-out ends: parked off-screen, its shadow still
       reached into the viewport as a grey band at the edge, and its links
       took Tab focus while closed. */
    visibility: hidden;
    transition: transform .28s cubic-bezier(.22, .61, .36, 1), visibility 0s linear .28s;
}
[dir="rtl"] .sl-drawer {
    --drawer-away: -100%;
    --drawer-shadow-x: 18px;
}
body:has(.sl-burger) .sl-drawer {
    inset-inline: 0 auto;
    --drawer-away: -100%;
    --drawer-shadow-x: 18px;
}
[dir="rtl"] body:has(.sl-burger) .sl-drawer {
    --drawer-away: 100%;
    --drawer-shadow-x: -18px;
}

body.drawer-open .sl-drawer-scrim { opacity: 1; visibility: visible; }
body.drawer-open .sl-drawer { transform: translateX(0); visibility: visible; transition-delay: 0s; }
body.drawer-open { overflow: hidden; }

/* Hero: avatar / brand + identity + close */
.sl-drawer-hero {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(160deg, var(--green-500), var(--green-800));
    color: #fff;
    padding: 16px;
    padding-top: max(16px, env(safe-area-inset-top));
}
.sl-drawer-ava {
    width: 48px;
    height: 48px;
    flex: none;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .22);
}
.sl-drawer-mark {
    width: 48px;
    height: 48px;
    flex: none;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.18);
    display: grid;
    place-items: center;
}
.sl-drawer-mark img { width: 100%; height: 100%; object-fit: cover; }
.sl-drawer-id { flex: 1; min-width: 0; }
.sl-drawer-name {
    margin: 0;
    font-weight: 800;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sl-drawer-sub {
    margin: 2px 0 0;
    font-size: 0.76rem;
    color: rgba(255, 255, 255, .85);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sl-drawer-x {
    /* The only way out of the drawer, and it was the smallest control on the
       phone at 36. */
    width: 44px;
    height: 44px;
    flex: none;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, .18);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 1.05rem;
    cursor: pointer;
}
.sl-drawer-x:hover { background: rgba(255, 255, 255, .28); }

.sl-drawer-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 14px;
    overflow-y: auto;
}

/* nav + footer rows share the same look */
.sl-drawer-nav { display: grid; gap: 3px; }
.sl-drawer-nav a,
.sl-drawer-foot a,
.sl-drawer-foot button {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px;
    border-radius: 12px;
    width: 100%;
    color: var(--fg-2);
    text-decoration: none;
    text-align: start;
    font-size: 0.92rem;
    font-weight: 700;
    background: none;
    border: 0;
    font-family: inherit;
    cursor: pointer;
}
.sl-drawer-nav a:hover,
.sl-drawer-foot a:hover,
.sl-drawer-foot button:hover { background: var(--ink-100); color: var(--fg-1); }
.sl-drawer-ic {
    width: 36px;
    height: 36px;
    flex: none;
    border-radius: 10px;
    background: var(--green-50);
    color: var(--green-600);
    display: grid;
    place-items: center;
    font-size: 1.05rem;
}
.sl-drawer-nav a.active { background: var(--green-50); color: var(--green-700); }
.sl-drawer-nav a.active .sl-drawer-ic { background: var(--green-100); }
.sl-drawer-lbl { min-width: 0; }
.sl-drawer-badge {
    margin-inline-start: auto;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: var(--radius-pill);
    background: var(--color-danger);
    color: #fff;
    font-size: 0.66rem;
    font-weight: 800;
    display: grid;
    place-items: center;
}

/* pinned footer */
.sl-drawer-foot {
    margin-top: auto;
    display: grid;
    gap: 4px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}
.sl-drawer-lang {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
    background: var(--ink-100);
    border-radius: 12px;
    padding: 3px;
    margin-bottom: 8px;
}
.sl-lang-opt {
    border-radius: 9px;
    padding: 10px;
    text-align: center;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.82rem;
    color: var(--fg-2);
}
.sl-lang-opt.on {
    background: #fff;
    color: var(--green-700);
    box-shadow: 0 2px 6px -2px rgba(15, 23, 42, .18);
}
.sl-drawer-foot a .sl-drawer-ic,
.sl-drawer-foot button .sl-drawer-ic {
    width: 30px;
    height: 30px;
    background: transparent;
    color: inherit;
    border-radius: 0;
    font-size: 1.15rem;
}
.sl-drawer-foot a.out,
.sl-drawer-foot button.out { color: var(--color-danger); }
.sl-drawer-foot a.out:hover,
.sl-drawer-foot button.out:hover { background: rgba(220, 38, 38, 0.08); color: var(--color-danger); }

/* Desktop never shows the burger, so the drawer is unreachable there —
   force it out of the layout to avoid any stray interaction. */
@media (min-width: 981px) {
    .sl-drawer,
    .sl-drawer-scrim { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .sl-drawer-scrim,
    .sl-drawer { transition: none; }
}

/* Five columns run out of room well before the phone breakpoint, and a
   two-word heading over a one-word link is not a column. Pair them up first;
   the 720px block below then drops to a single column. Ordered before it on
   purpose, so the narrower query is the one that wins on a phone. */
@media (max-width: 1080px) {
    .footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Brand across the top, then the groups in pairs: beside the groups it
       left a hole next to a lone one at 768. */
    .footer-brand-block {
        grid-column: 1 / -1;
        margin-bottom: 8px;
    }
}

@media (max-width: 720px) {
    .shell {
        width: min(1240px, calc(100% - 20px));
        margin-top: 10px;
    }

    /* On a phone the side space is counted once: the shell's 10px is the
       page's gutter and the card adds one value (owner, 2026-11-05). A page
       wrapper's own gutter on top of it left a field 49px from the edge.
       Under .shell because the page sheets load after this one and set the
       same properties at the same weight. */
    .shell .reg-shell,
    .shell .sp-shell,
    .shell .sp-page,
    .shell .nr-page { padding-inline: 0; }
    /* The settings page has no shell gutter (it is full-bleed for the rail). */
    .shell .set-rail,
    .shell .set-detail { padding-inline: 10px; }
    .shell .surface-section,
    .shell .adm-summary,
    .shell .reg-form-card,
    .shell .nr-card,
    .shell .co-card,
    .shell .sp-card,
    .shell .sp-form-card,
    .shell .sp-req-pane,
    .shell .sp-tip-card,
    .shell .sp-foot,
    .shell .cp-form-pane,
    .shell .cp-ctx,
    .shell .set-card,
    .shell .bl-card,
    .shell .reg-state-card,
    .shell .bp-card,
    .shell .bp-welcome,
    .shell .bp-common,
    .shell .bp-trust,
    .shell .sl-lapsed,
    .shell .shortcut { padding-inline: var(--pad-card-phone); }

    .topbar {
        border-radius: 18px;
    }

    .topbar-corporate {
        padding: 10px 16px;
    }

    /* Still two columns (from the 1080 block): one column made the footer
       the longest thing on the phone. Only the gap tightens. */
    .footer-main {
        gap: 8px 18px;
    }

    /* Legal and contact across the width: in half a 320px phone the email
       broke inside the address and the policy names and headings wrapped.
       The policies then run as a row that wraps between whole names. */
    .footer-legal-block,
    .footer-contact-block {
        grid-column: 1 / -1;
    }

    .footer-legal-block .footer-links {
        display: flex;
        flex-wrap: wrap;
        column-gap: 22px;
    }

    .footer-bottom-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer {
        margin-top: 32px;
    }

    .footer-frame {
        padding: 24px var(--space-5) 16px;
    }
}

@media (max-width: 420px) {
    .footer-frame {
        padding: var(--space-6) 14px 16px;
    }
}

/* ── Saudi Riyal symbol ───────────────────────────────────────────────────── */
.riyal-amount {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.riyal-sym {
    display: inline-block;
    height: 1em;
    width: auto;
    vertical-align: -0.12em;
    flex-shrink: 0;
    object-fit: contain;
}

/* ── Provider activation strip (base.html — shown on every page) ── */
.provider-activation-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 20px;
  font-size: .82rem; font-weight: 600;
}
.provider-activation-strip.strip-amber {
  background: linear-gradient(90deg, #fffbeb, #fef3c7);
  border-bottom: 1px solid rgba(245,158,11,.25);
  color: #92400e;
}
.provider-activation-strip.strip-blue {
  background: linear-gradient(90deg, #eff6ff, #dbeafe);
  border-bottom: 1px solid rgba(59,130,246,.20);
  color: #1e40af;
}
.provider-activation-strip.strip-red {
  background: linear-gradient(90deg, #fff1f2, #fce7e7);
  border-bottom: 1px solid rgba(220,38,38,.20);
  color: #991b1b;
}
.provider-activation-strip.strip-slate {
  background: rgba(15,23,42,.04);
  border-bottom: 1px solid rgba(15,23,42,.08);
  color: var(--fg-2, #64748b);
}
.provider-activation-strip .strip-left { display: flex; align-items: center; gap: 8px; }
.provider-activation-strip .strip-cta {
  white-space: nowrap; font-size: .78rem; font-weight: 700;
  padding: 4px 13px; border-radius: 999px;
  text-decoration: none; border: 1.5px solid currentColor;
  opacity: .8; transition: opacity .15s;
  position: relative;
}
/* The pill stays 29px; the tap area is 43. */
.provider-activation-strip .strip-cta::after { content: ""; position: absolute; inset: -7px -2px; }
.provider-activation-strip .strip-cta:hover { opacity: 1; }
@media (max-width: 640px) {
  .provider-activation-strip { flex-direction: column; gap: 6px; text-align: center; }
}

/* ============================================================
   SHARED WIDGETS  (sl- prefix = Ghudoon global)
   These are included via templates/components/*.html
   ============================================================ */

/* ── Rating stars ── */
.sl-star-fill  { color: var(--gold-500, #E8A72D); }
.sl-star-empty { color: var(--ink-300, #cbd5e1); }

/* ── Provider badges ── */
.sl-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
  border: 1px solid transparent;
}
.sl-badge-sm { padding: 3px 8px; font-size: 0.70rem; gap: 4px; }

.sl-badge-gold {
  background: linear-gradient(180deg, #fff6df, #ffeec6);
  color: var(--gold-700, #b07a10);
  border-color: rgba(232, 167, 45, 0.40);
}
.sl-badge-verified {
  background: rgba(13, 155, 110, 0.10);
  color: var(--green-700, #146644);
  border-color: rgba(13, 155, 110, 0.25);
}

/* ── Status chips / pills ── */
.sl-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  border: 1px solid transparent;
  white-space: nowrap;
}
.sl-chip-green  { background: rgba(13,155,110,.10); color: var(--green-700,#146644); border-color: rgba(13,155,110,.22); }
.sl-chip-gold   { background: linear-gradient(180deg,#fff6df,#ffeec6); color: var(--gold-700,#b07a10); border-color: rgba(232,167,45,.35); }
.sl-chip-gray   { background: var(--ink-100,#f1f5f9); color: var(--fg-2,#64748b); border-color: var(--color-border); }

/* ── Canonical status chip — SINGLE SOURCE OF TRUTH ──────────────────────────
   Rendered only by {% status_chip obj %} (core/templatetags/status_chip.py).
   Lives in app.css so every page (list card, detail header, …) paints the same
   pill. Do NOT fork these classes per page. Two sizes: sm (default, inline) and
   --lg (detail-header banner). Variants use the brand palette only. */
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.4;
  border: 1px solid transparent;
  white-space: nowrap;
}
.status-chip .pulse { width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
.status-chip .bi { font-size: 0.9em; }

/* Large banner variant — same colours, bigger metrics (detail headers). */
.status-chip--lg { gap: 8px; padding: 8px 14px; font-size: 0.86rem; font-weight: 700; }
.status-chip--lg .pulse { width: 8px; height: 8px; }

.status-chip.st-green   { background: rgba(13,155,110,0.10); color: var(--green-700); border-color: rgba(13,155,110,0.25); }
.status-chip.st-green   .pulse { background: var(--green-500); box-shadow: 0 0 0 3px rgba(13,155,110,0.18); }
.status-chip.st-orange  { background: rgba(233,113,39,0.10); color: #b85913; border-color: rgba(233,113,39,0.25); }
.status-chip.st-orange  .pulse { background: #E97127; box-shadow: 0 0 0 3px rgba(233,113,39,0.18); }
.status-chip.st-gold    { background: rgba(232,167,45,0.14); color: var(--gold-700); border-color: rgba(232,167,45,0.32); }
.status-chip.st-gold    .pulse { background: var(--gold-500); box-shadow: 0 0 0 3px rgba(232,167,45,0.20); }
.status-chip.st-neutral { background: var(--ink-100); color: var(--fg-2); border-color: var(--color-border); }
.status-chip.st-neutral .pulse { background: var(--ink-400); }

/* ── Shared machine-identifier chip — SINGLE SOURCE OF TRUTH ─────────────────
   Rendered by components/ref_chip.html. Plain coloured text, no fill: an
   identifier is a label, not a decision signal, and a filled pill made it
   compete with the status chip beside it. green-700 because the reference is
   platform-issued (gold is reserved for membership, orange is a status colour).
   Recipe lifted from .br-ref in browse_requests.css, which is the version that
   was proven on the RTL browse cards. */
.ref-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--green-700);
  font-size: 0.8rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  white-space: nowrap;
  /* A Latin identifier (REQ-2026-0003) inside an RTL line: without the
     isolation the hyphenated groups reorder and it reads REQ-0003-2026. */
  direction: ltr;
  unicode-bidi: isolate;
}
.ref-chip i { font-size: 0.74rem; opacity: 0.65; }
/* Clipped variant, for third-party ids long enough to blow out a table column.
   The text node keeps the whole value; only the paint is cut (on a desktop: a
   phone wraps it, below). */
.ref-chip--clip { max-inline-size: 18ch; }
.ref-chip--clip .ref-chip-v { min-inline-size: 0; overflow: hidden; text-overflow: ellipsis; }
/* On a phone the column is the whole row, so the id wraps whole rather than lose its end. */
@media (max-width: 480px) {
  .ref-chip--clip { max-inline-size: 100%; }
  .ref-chip--clip .ref-chip-v { white-space: normal; overflow-wrap: anywhere; }
}

/* ── Shared provider avatar — content only (logo / initial / icon) ───────────
   Rendered by {% provider_avatar %}. Deliberately sets NO size/colour/radius —
   each call site keeps its own container class (.proposal-avatar, .rp-avatar,
   .pp-logo, …). This only makes an uploaded logo cover the box. */
.pv-avatar { overflow: hidden; }
.pv-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Back / breadcrumb link ── */
.sl-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--fg-2, #64748b);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 14px;
}
.sl-back-link:hover { color: var(--green-700, #146644); }

/* ============================================================
   CONFIRM DIALOGS  (.cdlg-*)
   Shared across close-request, close-chat, accept-proposal
   ============================================================ */
.cdlg-overlay {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  /* Over the phone tab bar (1030), which otherwise covered the bottom of
     every dialog and stayed tappable behind it; under the drawer (1040). */
  z-index: 1035;
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.cdlg-overlay.open { display: flex; }
.cdlg {
  background: white;
  border-radius: 22px;
  padding: var(--space-7) 30px;
  max-width: 400px; width: 100%;
  /* A short viewport (a landscape phone, a split screen) scrolls the card instead of cutting its top and bottom. */
  max-height: 100%; overflow-y: auto;
  box-shadow: 0 32px 72px -16px rgba(15, 23, 42, 0.28), 0 0 0 1px rgba(15, 23, 42, 0.06);
  display: grid; gap: 16px;
  animation: cdlg-in 180ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes cdlg-in {
  from { opacity: 0; transform: scale(0.92) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.cdlg-ic {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center; font-size: 1.3rem;
}
.cdlg-ic.go     { background: rgba(13, 155, 110, 0.10); color: var(--green-600); }
.cdlg-ic.warn   { background: rgba(232, 167, 45, 0.12); color: var(--gold-700);  }
.cdlg-ic.danger { background: rgba(220, 38, 38, 0.08);  color: #dc2626; }
.cdlg h4 {
  margin: 0; font-size: 1.08rem; font-weight: 800;
  color: var(--fg-1); letter-spacing: -0.01em;
}
.cdlg p  { margin: 6px 0 0; font-size: 0.91rem; color: var(--fg-2); line-height: 1.6; }
/* Row-specific facts under the body: what THIS action does to THIS record.
   Gold, not red: it is a consequence to weigh, not the admin doing wrong. */
.cdlg p.cdlg-note { color: var(--gold-700); background: rgba(232, 167, 45, 0.08);
  border-radius: var(--radius-sm); padding: var(--space-2) var(--space-3); }
/* A line a page script fills while the dialog is open (the grant's new end date). */
.cdlg p.cdlg-live { color: var(--fg-1); font-weight: 600; }
.cdlg p.cdlg-live:empty { display: none; }
.cdlg-acts {
  display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap;
}
/* An <a> too: the legal popup's "Full page" is a link, styled as the same button. */
.cdlg-acts :is(button, a) {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  padding: 11px 20px; border-radius: 11px;
  font-weight: 700; font-size: 0.91rem; cursor: pointer; font-family: inherit;
  border: 0;
}
/* On a phone the card is 212-267px inside (320-375), so a pair wrapped and the long red
   confirm sat alone under Cancel at its own width. Stack both full width, the
   action on top, as the publish-terms dialog (.pcm-actions) and the card
   confirm (.sdlg-pay) already do. Inside .cdlg only: the legal popup reuses
   .cdlg-acts and keeps its own equal row (terms-modal.css). */
@media (max-width: 480px) {
  .cdlg .cdlg-acts { flex-direction: column-reverse; }
  .cdlg .cdlg-acts :is(button, a) { justify-content: center; }
}
.cdlg-cancel {
  background: white !important; color: var(--fg-1) !important;
  border: 1.5px solid var(--color-border) !important;
}
.cdlg-cancel:hover { background: var(--ink-50) !important; }
.cdlg-go-green {
  /* 550, not 500: white on the brand green reads 3.54. */
  background: var(--green-550); color: white;
  box-shadow: 0 6px 16px -6px rgba(13, 155, 110, 0.40);
}
.cdlg-go-green:hover { background: var(--green-700); }
.cdlg-go-gold {
  /* Dark ink, not white. Gold is a light colour by definition -- white on it
     measured 2.10, the worst pairing in the product -- and darkening it far
     enough to carry white stops it looking gold at all, which matters because
     gold is what says "the other party's condition" here. Ink on the same gold
     reads 8.5 and the colour keeps its meaning. */
  background: var(--gold-500); color: var(--fg-1);
  box-shadow: 0 6px 16px -6px rgba(232, 167, 45, 0.40);
}
.cdlg-go-gold:hover { background: var(--gold-700); color: var(--fg-1); }
.cdlg-go-danger {
  background: #dc2626; color: white;
  box-shadow: 0 6px 16px -6px rgba(220, 38, 38, 0.45);
}
.cdlg-go-danger:hover { background: #b91c1c; }

/* ============================================================
   TOAST RACK  (.sl-toast)
   ============================================================ */
.toast-rack {
  position: fixed;
  bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 1036; /* still over an open dialog, as at 600 over its 500 */
  display: flex; flex-direction: column-reverse; align-items: center; gap: 10px;
  pointer-events: none;
  width: max-content; max-width: calc(100vw - 32px);
}
.sl-toast {
  display: flex; align-items: center; gap: 12px;
  background: white;
  border-radius: 14px;
  padding: 14px var(--space-5);
  box-shadow: 0 8px 32px -8px rgba(15, 23, 42, 0.20), 0 0 0 1px rgba(15, 23, 42, 0.08);
  pointer-events: auto;
  width: 360px; max-width: calc(100vw - 32px);
  animation: toast-in 260ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.sl-toast.is-hiding { animation: toast-out 200ms ease forwards; }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(14px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toast-out {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(6px) scale(0.95); }
}
/* Phone and tablet (the tab bar's width): toasts drop in under the sticky
   header instead of rising from the bottom, where an error sat over the
   very Save it was about (the breach notice) and over the tab bar. --toast-top
   is the header's bottom, set by showToast in base.html. Owner, 2026-10-23. */
@media (max-width: 980px) {
  .toast-rack {
    top: calc(max(var(--toast-top, 0px), env(safe-area-inset-top, 0px)) + 12px);
    bottom: auto; flex-direction: column;
  }
  .sl-toast { animation-name: toast-drop; }
  .sl-toast.is-hiding { animation-name: toast-lift; }
}
@keyframes toast-drop {
  from { opacity: 0; transform: translateY(-14px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toast-lift {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(-6px) scale(0.95); }
}
.sl-toast .t-ic {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 1rem;
}
.sl-toast.ok      .t-ic { background: rgba(13, 155, 110, 0.10); color: var(--green-600); }
.sl-toast.neutral .t-ic { background: var(--ink-100); color: var(--fg-2); }
/* base.html maps Django's message levels to these four; each takes the tint the
   confirm dialog's icon uses for the same meaning (info as notifications.css does). */
.sl-toast.success .t-ic,
.sl-toast.info    .t-ic { background: rgba(13, 155, 110, 0.10); color: var(--green-700); }
.sl-toast.warning .t-ic { background: rgba(232, 167, 45, 0.12); color: var(--gold-700); }
.sl-toast.danger  .t-ic { background: rgba(220, 38, 38, 0.08);  color: #dc2626; }
.sl-toast .t-body { flex: 1; display: grid; gap: 2px; min-width: 0; }
.sl-toast .t-title { font-size: 0.87rem; font-weight: 700; color: var(--fg-1); }
.sl-toast .t-sub   { font-size: 0.80rem; color: var(--fg-2); }
.sl-toast .t-close {
  margin-inline-start: auto; flex-shrink: 0;
  background: none; border: none; cursor: pointer;
  color: var(--fg-3); padding: 2px; font-size: 1rem;
  display: grid; place-items: center;
  min-width: 40px; min-height: 40px; margin-block: -6px;
}
.sl-toast .t-view {
  font-size: 0.82rem; font-weight: 700; color: var(--green-600);
  text-decoration: none; flex-shrink: 0; white-space: nowrap;
  margin-inline-start: 4px;
}

/* ============================================================
   LAPSED-SUBSCRIPTION BANNER  (.sl-lapsed)
   Shared by the provider dashboard and the browse-requests page.
   ============================================================ */
.sl-lapsed {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5);
  margin-bottom: var(--space-5);
  border-radius: var(--radius-md, 14px);
  background: linear-gradient(180deg, var(--gold-100), var(--color-surface-flat, #fff));
  border: 1.5px solid rgba(232, 167, 45, 0.42);
}
.sl-lapsed-ic {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(232, 167, 45, 0.18);
  color: var(--gold-800);
  font-size: 1.1rem;
}
.sl-lapsed-tx p { margin: 0; }
.sl-lapsed-title { font-weight: 800; font-size: 0.95rem; color: var(--fg-1); }
.sl-lapsed-body  { font-size: 0.85rem; line-height: 1.5; color: var(--fg-2); }
.sl-lapsed-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px var(--space-5);
  border-radius: 10px;
  background: var(--gold-500);
  color: #fff;
  font-weight: 800; font-size: 0.88rem;
  text-decoration: none;
  white-space: nowrap;
}
.sl-lapsed-cta:hover { background: var(--gold-700); color: #fff; }

@media (max-width: 640px) {
  .sl-lapsed { grid-template-columns: auto minmax(0, 1fr); }
  .sl-lapsed-cta { grid-column: 1 / -1; justify-content: center; }
}

/* ═══════════════════════════════════════════════════════════════════════
   Provider workspace rail — persistent left nav (desktop ≥981px).
   Mirrors header_nav; below 981px the existing .sl-drawer takes over.
   Uses logical properties throughout so it mirrors to the right in RTL.
   ═══════════════════════════════════════════════════════════════════════ */
body.has-rail { --sl-rail-w: 240px; }
html.rail-collapsed body.has-rail { --sl-rail-w: 74px; }

.sl-rail { display: none; }

@media (min-width: 981px) {
  body.has-rail { padding-inline-start: var(--sl-rail-w); }
  /* The rail replaces the horizontal primary tabs on provider pages. */
  body.has-rail .navbar-nav { display: none; }
  /* Brand lives in the rail now, so drop the duplicate top-bar brand on desktop. */
  body.has-rail .brand.navbar-brand { display: none; }
  /* Tabs and brand are both hidden, so nothing pushes the utilities across —
     give the actions the spacer so the bell + account sit at the END of the bar. */
  body.has-rail .topbar-actions { margin-inline-start: auto; }
  /* Settings as an EXTENDED PANEL flush against the workspace rail (one unit,
     not two floating sidebars). The settings page fills the whole content area
     so its sub-nav column butts against the rail's inner edge with a single
     divider between them. :has() scopes this to the settings page only. */
  body.has-rail:has(.set-shell) .shell { width: 100%; max-width: none; margin: 0; }
  body.has-rail:has(.set-shell) .content { margin-top: 0; }
  /* Admin workspace goes full-bleed the same way: at 1920 the queue table was
     capped at the marketing shell's 1240px. Long prose keeps a readable
     measure (same idea as .bp-form's 560px cap). Unlike .set-shell below, this
     is not meant to sit flush against the rail — it just stopped being capped
     at 1240px — so it keeps its own gutter instead of touching either edge. */
  body.has-rail:has(.admin-content) .shell {
    width: 100%;
    max-width: none;
    margin: 0;
    /* The gutter has to be the LARGEST step on the page, not the smallest: a
       flat 22px beside a 28px card padding is what made the admin screens read
       cramped at the edges and loose in the middle (22px on a 1665px canvas is
       a 1.3% margin). It now grows with the canvas instead. */
    padding-inline: clamp(var(--space-6), 3vw, var(--space-10));
    padding-block-end: var(--space-8);
  }
  /* Page head to first card: one step above the block gap inside .admin-content. */
  body.has-rail:has(.admin-content) .pg-head { margin-bottom: var(--space-7); }
  .admin-content .lead { max-width: 35rem; }
  body.has-rail .set-shell {
    width: 100%;
    max-width: none;
    margin-inline: 0;
    margin-block-start: 0;
  }
  /* The sub-nav butts flush against the rail (no gap, shared white surface),
     sitting just under the header — a continuous two-column sidebar unit. */
  body.has-rail .set-rail { background: var(--color-surface-flat); }

  body.has-rail .sl-rail {
    display: flex;
    position: fixed;
    inset-block: 0;
    inset-inline-start: 0;
    width: var(--sl-rail-w);
    z-index: 28;
    flex-direction: column;
    gap: 4px;
    padding: 16px 12px;
    background: var(--color-surface-flat);
    border-inline-end: 1px solid var(--line);
    /* The rail itself does not scroll: the brand stays put and only the menu
       below it scrolls (.sl-rail-nav), or a long admin menu took the logo
       away with it. */
    overflow: hidden;
  }
}

/* Brand sits at the top of the rail (the side sheet owns the logo, not the top bar). */
.sl-rail-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 8px 14px; margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
  text-decoration: none; color: inherit; min-width: 0;
}
/* Expanded shows the lockup, which already contains the mark. Collapsed swaps to
   the square icon, so the mark is never drawn twice. */
.sl-rail-mark {
  width: 36px; height: 36px; flex: 0 0 auto;
  border-radius: 10px; overflow: hidden; display: none; place-items: center;
}
.sl-rail-mark img { width: 100%; height: 100%; object-fit: contain; }
.sl-rail-lockup { display: block; height: 34px; width: auto; min-width: 0; }

/* Client's primary action, pinned above the nav — the rail twin of the bar's + tab. */
.sl-rail-cta {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 11px; margin-bottom: var(--space-2); border-radius: var(--radius-sm);
  background: var(--green-500); color: var(--fg-on-primary);
  text-decoration: none; font-weight: 700; font-size: .92rem;
  white-space: nowrap; position: relative;
  transition: background .15s;
}
.sl-rail-cta:hover { background: var(--green-700); color: var(--fg-on-primary); }
.sl-rail-cta .sl-rail-ic { color: inherit; }

.sl-rail-nav {
  display: flex; flex-direction: column; gap: 3px;
  flex: 1 1 auto; min-height: 0;
  overflow-x: hidden; overflow-y: auto;
  scrollbar-width: thin;
}
/* Section headings in the admin rail (core.context_processors groups it). */
.sl-rail-group,
.sl-drawer-group {
  margin: 14px 12px 4px;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--ink-600);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
[dir="rtl"] .sl-rail-group,
[dir="rtl"] .sl-drawer-group { letter-spacing: 0; font-size: 0.8rem; }
/* Collapsed to icons: a thin rule keeps the grouping without the words. */
html.rail-collapsed body.has-rail .sl-rail-group {
  font-size: 0; margin: 8px 14px; height: 1px; background: var(--color-border);
}
.sl-rail-foot {
  margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 3px;
}

.sl-rail-i,
.sl-rail-collapse {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 11px; border-radius: var(--radius-sm);
  color: var(--fg-1); text-decoration: none; font-weight: 600; font-size: .92rem;
  border: 1px solid transparent; background: transparent; cursor: pointer;
  width: 100%; font-family: inherit; white-space: nowrap; position: relative;
  transition: background .15s, color .15s;
}
/* A long label takes a second line instead of an ellipsis: at 1280 and 1440
   "Conversation monitoring" and "Invoices and payments" were cut. Here, not in
   admin.css: Settings and the other staff pages on base.html do not load it. */
.sl-rail-i { white-space: normal; }
.sl-rail-i:hover,
.sl-rail-collapse:hover { background: var(--green-50); color: var(--green-700); }
.sl-rail-i.is-active {
  background: var(--green-50); color: var(--green-700);
  border-color: rgba(13, 155, 110, .24); font-weight: 700;
}
.sl-rail-ic { flex: 0 0 24px; display: grid; place-items: center; font-size: 1.15rem; color: var(--fg-2); }
.sl-rail-i.is-active .sl-rail-ic { color: var(--green-500); }
.sl-rail-lbl { min-width: 0; line-height: 1.25; overflow-wrap: anywhere; }
.sl-rail-badge {
  margin-inline-start: auto; background: var(--green-500); color: #fff;
  font-size: .68rem; font-weight: 800; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: var(--radius-pill); display: grid; place-items: center;
}
.sl-rail-collapse { color: var(--fg-2); font-weight: 600; margin-top: 2px; }

/* Collapsed: icon rail only. Remove the label from flow (display:none, not
   width:0) so the leftover gap doesn't push the icon off-centre. */
html.rail-collapsed body.has-rail .sl-rail-lbl,
html.rail-collapsed body.has-rail .sl-rail-lockup { display: none; }
html.rail-collapsed body.has-rail .sl-rail-mark { display: grid; }
html.rail-collapsed body.has-rail .sl-rail-i,
html.rail-collapsed body.has-rail .sl-rail-collapse,
html.rail-collapsed body.has-rail .sl-rail-cta,
html.rail-collapsed body.has-rail .sl-rail-brand { justify-content: center; gap: 0; padding-inline: 0; }
html.rail-collapsed body.has-rail .sl-rail-i,
html.rail-collapsed body.has-rail .sl-rail-collapse { padding-block: 10px; }
html.rail-collapsed body.has-rail .sl-rail-badge {
  position: absolute; top: 3px; inset-inline-end: 12px; margin: 0;
  min-width: 16px; height: 16px; padding: 0 4px; font-size: .58rem;
}
/* Chevron points inward to collapse, outward to expand; mirrored in RTL. */
html.rail-collapsed body.has-rail .sl-rail-collapse .sl-rail-ic { transform: rotate(180deg); }
[dir="rtl"] .sl-rail-collapse .sl-rail-ic { transform: scaleX(-1); }
[dir="rtl"] html.rail-collapsed body.has-rail .sl-rail-collapse .sl-rail-ic { transform: scaleX(-1) rotate(180deg); }

/* Collapsed-rail label: one element on <body>, placed by the rail script in
   base.html. It lives outside the rail because the menu scrolls, and a scroll
   box clips anything drawn past its edge. */
.sl-rail-tip {
  position: fixed; z-index: 1100; transform: translateY(-50%);
  background: var(--green-700); color: #fff; padding: 4px 9px; border-radius: 6px;
  font-size: .78rem; font-weight: 600; white-space: nowrap; pointer-events: none;
  box-shadow: 0 6px 18px -8px rgba(20, 102, 68, .5);
}
.sl-rail-tip[hidden] { display: none; }

/* ═══ Mobile bottom tab bar (≤980px, providers + clients) ══════════════════
   Fixed bar; the More tab opens the same drawer the burger used to. RTL comes
   free: flex order follows document order, all offsets are logical. */
.sl-tabbar { display: none; }
@media (max-width: 980px) {
  .sl-tabbar {
    position: fixed; bottom: 0; inset-inline: 0; z-index: 1030;
    display: flex; align-items: stretch;
    background: var(--surface); border-top: 1px solid var(--line);
    padding: var(--space-1) 0 max(var(--space-1), env(safe-area-inset-bottom));
  }
  /* Keep page content clear of the fixed bar: its measured height, one
     number for the rules below and account_settings.css's .savebar (60 left
     the footer's last line under it). */
  body.has-tabbar { --tabbar-h: 66px; padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
  .sl-tab {
    flex: 1 1 0; min-width: 0;
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: var(--space-2) 2px; border: 0; background: none;
    font-size: .68rem; font-weight: 600; color: var(--fg-2); text-decoration: none;
  }
  /* 22px: the plus's raised circle shows 22px above its label (48 - 26), so every
     label starts on one line. Sized by its icon, this box measured 22.2 on
     Windows and more on a phone, and the plus's label sat higher than the rest. */
  .sl-tab-ic { position: relative; display: grid; place-items: center; height: 22px; font-size: 1.3rem; line-height: 1; }
  .sl-tab.is-active { color: var(--green-700); }
  .sl-tab.is-active .sl-tab-ic { color: var(--green-500); }
  .sl-tab-lbl { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sl-tab-badge {
    position: absolute; top: -5px; inset-inline-end: -10px;
    background: var(--green-500); color: #fff;
    font-size: .58rem; font-weight: 800; min-width: 16px; height: 16px; padding: 0 4px;
    border-radius: var(--radius-pill); display: grid; place-items: center;
  }
  /* Raised center "new request" button (clients). */
  .sl-tab-plus { color: var(--green-700); }
  .sl-tab-fab {
    width: 48px; height: 48px; margin-top: -26px; border-radius: 50%;
    background: var(--green-500); color: var(--fg-on-primary);
    display: grid; place-items: center; font-size: 1.35rem;
    border: 3px solid var(--surface);
    box-shadow: 0 4px 12px -2px rgba(13, 155, 110, .45);
  }
}

/* ═══ Smooth page-to-page navigation ═══════════════════════════════════════
   Cross-document View Transitions keep the old page on screen and cross-fade to
   the next one (Chromium 126+), removing the white flash of a full reload.
   Non-supporting browsers simply navigate as before. */
@view-transition { navigation: auto; }

/* Persistent chrome shouldn't fade with the content — name it so it stays put
   (and morphs smoothly if its size changes, e.g. the rail collapsing). */
.site-header-corporate { view-transition-name: sl-header; }
body.has-rail .sl-rail { view-transition-name: sl-rail; }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) { animation: none !important; }
}

/* Top loading bar (nav-progress.js) — the activity cue during the wait. */
.sl-nav-progress {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  height: 3px;
  transform-origin: 0 50%;
  transform: scaleX(0);
  opacity: 0;
  background: linear-gradient(90deg, var(--green-500), var(--gold-500));
  box-shadow: 0 0 8px rgba(13, 155, 110, .5);
  z-index: 9999;
  pointer-events: none;
  view-transition-name: sl-nav-progress;
}
[dir="rtl"] .sl-nav-progress { transform-origin: 100% 50%; }

/* ═══════════════════════════════════════════════════════════════════════════
   Shared icon button — one box for every icon-only control that sits in a card
   action row. Replaces .prj-icbtn (36px squircle) and .prop-wd (38px circle),
   which put the same kind of control in two different boxes on two provider
   pages; 40px is the box the topbar burger, the bell, the rail triggers and the
   bookmark toggle already use. Page CSS must not restyle it — add a variant here.
   Variants: .pri (primary green), .is-on (state is on), .warn (reversible but
   consequential), .danger (destructive). Every instance needs BOTH title= and
   aria-label=, because an icon has no accessible name of its own.
   ═══════════════════════════════════════════════════════════════════════════ */
/* 44px, not 40: in a workspace toolbar and a table action column this is the
   only control there is, so it was the last thing under the floor. */
.ic-btn {
  width: 44px; height: 44px; flex: none;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: white;
  color: var(--fg-2);
  display: grid;
  place-items: center;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: color .15s, border-color .15s, background .15s;
}
.ic-btn:hover { border-color: rgba(13,155,110,.35); color: var(--green-700); }
.ic-btn:focus-visible { outline: 2px solid var(--green-700); outline-offset: 2px; }
.ic-btn.pri {
  background: var(--grad-primary);
  border-color: transparent; color: white;
}
.ic-btn.pri:hover { opacity: .92; color: white; }
.ic-btn.is-on {
  color: var(--green-700);
  border-color: rgba(13,155,110,.35);
  background: var(--green-50, rgba(13,155,110,.08));
}
/* Gold, not red: withdrawing is a deliberate step back, not the provider's own
   error, and the confirm dialog it opens is gold too. */
.ic-btn.warn:hover {
  color: var(--gold-700, #b07a10);
  border-color: rgba(176,122,16,.45);
  background: rgba(176,122,16,.07);
}
.ic-btn.danger { color: var(--red-600, #c0392b); border-color: rgba(192,57,43,.28); }
.ic-btn.danger:hover {
  background: rgba(192,57,43,.06);
  border-color: rgba(192,57,43,.45);
  color: var(--red-600, #c0392b);
}
/* A "take it back" arrow has to point the way back in the reading direction. */
[dir="rtl"] .ic-btn .bi-arrow-bar-left { transform: scaleX(-1); }

/* ═══════════════════════════════════════════════════════════════════════════
   Shared page head — components/page_head.html
   The single page-title block for every app page. Replaces the seven per-page
   copies (.br-pg-head / .pg-head ×2 / .page-head ×2 / .sp-page-head / .bp-pg-head)
   that had drifted apart; page CSS must not restyle it.
   ═══════════════════════════════════════════════════════════════════════════ */
.pg-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px;
  margin-bottom: 22px;
}
.pg-head h1 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: var(--page-title-size);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--fg-1);
}
.pg-head-ic {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 12px;
  background: var(--grad-primary);
  color: white;
  font-size: 1.05rem;
}
.pg-head-sub {
  margin: 4px 0 0;
  color: var(--fg-2);
  font-size: 0.94rem;
  line-height: 1.5;
}
.pg-head-sub strong { color: var(--fg-1); font-weight: 800; }
/* Back link above the title — the static up-link leaf pages use. */
.pg-head-crumb {
  display: inline-flex;
  align-items: center;
  /* One line of 0.82rem text stands 20px tall, which is half a thumb. The
     box is 44 whatever the font metrics do, and the negative top margin puts
     the text back on the line it was on, so none of the eight detail pages
     that pass a crumb move a pixel. A real box, not a stretched ::after: an
     overlay satisfies a measuring script without giving a finger anything
     more to land on. 44px is the platform touch minimum, not a scale step. */
  min-height: 44px;
  margin-block: calc(var(--space-3) * -1) 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--fg-2);
  text-decoration: none;
}
.pg-head-crumb:hover { color: var(--fg-1); }
/* The admin trail: Dashboard > section (> parent). Same size and ink as the
   single back link it replaces, every step a link, each one 44px tall. */
.pg-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--space-2); margin-block: calc(var(--space-3) * -1) 0; font-size: 0.82rem; font-weight: 600; }
.pg-crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--fg-2); text-decoration: none; position: relative; }
/* «الدعم» is 32px wide: the tap reaches 6px past each side, into the gap and the separator. */
.pg-crumbs a::after { content: ""; position: absolute; inset: 0 -6px; }
.pg-crumbs a:hover { color: var(--fg-1); }
.pg-crumbs-sep { color: var(--fg-3, var(--fg-2)); font-size: 0.7rem; }
[dir="ltr"] .pg-crumbs-sep { transform: scaleX(-1); }
.pg-head-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px var(--space-5);
  border-radius: 12px;
  background: var(--grad-primary);
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(13, 155, 110, 0.22);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.pg-head-cta:hover {
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(13, 155, 110, 0.28);
}
/* Slot for pages that need something other than a single CTA in the head. */
.pg-head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ── Head metric ───────────────────────────────────────────────────────────────
   One number that has no other home on the page (a win rate, a score), shown in
   the head's action slot.

   Deliberately typographic — no fill, no border, no trophy. A tinted pill reads
   as an award, and this number can be BAD: a 20% win rate inside a gold badge
   reads as sarcasm. The value carries the weight, the label under it carries the
   meaning, and the whole thing stays quieter than the tab badges, which is the
   correct hierarchy — the tabs are what you act on.

   Only for a number that appears nowhere else: a figure a tab badge or a card
   already carries must not be repeated here. */
.pg-head-metric {
  display: grid;
  gap: 2px;
  justify-items: end;
  text-align: end;
  white-space: nowrap;
}
.pg-head-metric .v {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--fg-1);
  font-variant-numeric: tabular-nums;   /* 88% and 100% keep the same width */
}
.pg-head-metric .k {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.pg-head-metric .k i { font-size: 0.8rem; color: var(--ink-400); }

@media (max-width: 720px) {
  /* The head stacks here, so the metric starts at the row start under the title
     instead of hanging off the far edge. Value and label step down together —
     shrinking only the number makes the label look bolted on. */
  .pg-head-metric { justify-self: start; justify-items: start; text-align: start; }
  .pg-head-metric .v { font-size: 1.35rem; }
  .pg-head-metric .k { font-size: 0.68rem; }
}

/* Centered variant — wrap the include in .pg-head-center. Used by the billing
   plans pages, where the head reads as a hero above the plan grid. The wrapper
   (not .pg-head itself) carries the width cap so the header keeps stretching
   inside it instead of shrink-wrapping to its text. */
.pg-head-center { max-width: 640px; margin-inline: auto; }
.pg-head-center .pg-head {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  text-align: center;
  margin-bottom: 0;
}
/* .pg-head h1 and .pg-head-actions are flex containers (they carry an optional
   icon beside the text). text-align does not move a flex container's items, so
   the centered variant has to say so in flex terms — without this the title sat
   at the start of a full-width box while the subtitle under it was centred. */
.pg-head-center .pg-head h1,
.pg-head-center .pg-head-actions { justify-content: center; }

@media (max-width: 720px) {
  .pg-head { grid-template-columns: 1fr; align-items: start; gap: 12px; }
  .pg-head-cta { width: 100%; justify-content: center; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Shared pager — components/pager.html
   Numbered pills with an elided range: ‹ 1 … 4 5 6 … 12 ›. One implementation
   for every paginated list; page CSS must not restyle it.
   ═══════════════════════════════════════════════════════════════════════════ */
.pgr {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: var(--space-5);
  flex-wrap: wrap;
}
/* 44px is the accessible minimum for a finger (WCAG 2.5.8). */
.pgr-btn {
  min-width: 44px; min-height: 44px;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  border: 1px solid var(--color-border);
  background: var(--color-surface, #fff);
  color: var(--fg-1);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: border-color 160ms ease, color 160ms ease;
}
.pgr-btn:hover:not(.is-current) { border-color: rgba(13, 155, 110, 0.30); color: var(--fg-1); }
.pgr-btn.is-current {
  background: var(--grad-primary);
  border-color: transparent;
  color: white;
  cursor: default;
}
.pgr-btn.is-disabled { opacity: 0.4; cursor: default; pointer-events: none; }
.pgr-gap {
  min-width: 24px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-2);
  font-weight: 700;
}
/* Chevrons point the reading direction — flip them in RTL. */
[dir="rtl"] .pgr-btn i { transform: scaleX(-1); }

@media (max-width: 720px) {
  /* Narrow screens: shrink the pills rather than wrap the row to two lines. */
  .pgr { gap: 4px; }
  /* The narrow breakpoint shrank the pager to 36. That is the one control
     a phone user taps repeatedly to move through a list, so it is the last
     place to take pixels from. */
  .pgr-btn { min-width: 44px; height: 44px; padding: 0 8px; font-size: 0.85rem; }
  .pgr-gap { min-width: 18px; height: 36px; }
}

/* ── Win-back offers (admin) ─────────────────────────────────────────────── */
/* One row, one action. The preview is a <details> so the list stays scannable
   and the full message is still one click away before anything is sent. */
.wb-actions { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.wb-code {
  font-family: ui-monospace, "Cascadia Mono", monospace; font-size: 0.82rem;
  color: var(--fg-1); background: var(--ink-50); border: 1px solid var(--color-border);
  border-radius: var(--radius-xs); padding: var(--space-1) var(--space-2);
  direction: ltr; unicode-bidi: embed; white-space: nowrap;
}
.wb-preview { margin-top: var(--space-2); }
.wb-preview summary { font-size: 0.8rem; color: var(--fg-2); cursor: pointer; }
.wb-sent { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.wb-sent li { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
/* The on/off card: what the switch says on one side, the control on the other; stacked on a phone. */
.wb-switch { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
.wb-switch .adm-h { display: flex; align-items: center; gap: var(--space-2); }
.wb-switch p { margin: 0; }
.wb-days { width: 6rem; }
.wb-actions + .wb-stop-filter { margin-top: var(--space-4); }

/* Ask about this row: one quiet link, on seven pages that each hold something a
   ticket can be about. Deliberately not a button. It sits beside real actions
   (accept, share, print) and must never compete with them for the eye, so it
   reads as a sentence and only colours on hover. The 44px floor still applies:
   a finger has to land on it. */
.sup-ask {
  display: inline-flex; align-items: center; min-height: 44px;
  /* Its own width on every caller. A grid parent (the billing card, the
     request header, the provider profile) stretched it across the whole row,
     so the hover underline and the hit area ran edge to edge, while in block
     layout (the proposal pages) it was this small link. */
  width: fit-content; max-width: 100%;
  color: var(--fg-2); font-size: var(--text-sm); text-decoration: none;
  border-bottom: 1px solid transparent;
}
.sup-ask:hover, .sup-ask:focus-visible { color: var(--green-700); border-bottom-color: currentColor; }

/* ── Legal footer ───────────────────────────────────────────────────────
 * Three links to the three documents, on every page in both shells. Quiet by
 * design: it has to be reachable, not prominent, so it takes the smallest
 * type and the muted foreground and sits below everything else.
 *
 * Each link is its own 44px target rather than three words sharing a line,
 * because on a phone these sit close together and a mis-tap opens the wrong
 * document. The row wraps instead of scrolling. */
.site-legal { padding: var(--space-6, 24px) var(--pad-page-x, 20px); border-top: 1px solid var(--color-border); }
.site-legal nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 var(--space-2, 8px); }
.site-legal a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px;
  color: var(--fg-3, var(--fg-2)); font-size: var(--text-sm); text-decoration: none;
}
.site-legal a:hover, .site-legal a:focus-visible { color: var(--green-700); text-decoration: underline; }
/* On a phone the five links wrapped into three ragged rows. Centred in a grid
   they still did not line up, each a different width in its cell (owner,
   2026-10-24: «مهي مرتبه»): two columns from the start edge, and the operator
   line under a rule, on the same edge. */
@media (max-width: 720px) {
  .site-legal nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--space-4, 16px); }
  .site-legal nav a { padding: 0; }
  .site-legal nav a:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .site-legal .footer-identity { text-align: start; margin-top: 8px; border-top: 1px solid var(--color-border); }
}
@media (max-width: 420px) {
  .site-legal { padding-inline: 16px; }
}

/* The operator identity line, in both footers. Quietest thing on the page:
 * it has to be there, and nobody is looking for it. */
.footer-identity { display: block; color: var(--fg-3, var(--fg-2)); font-size: var(--text-xs, 0.78rem); line-height: 1.7; text-align: center; padding-top: 6px; }
.site-legal .footer-identity { padding-top: 10px; }
/* Name, register, city: a narrow screen breaks the line between them, after
   the dot, never inside the register number or with a dot opening a line. */
.footer-identity > span { display: inline-block; }

/* css/form-kit.css */
/* =====================================================================
   form-kit.css — Shared form component kit (fk-*)
   ---------------------------------------------------------------------
   Single source of truth for reusable form controls: field wrappers,
   labels, inputs, choice cards, rows, toggles, comboboxes, multi-select,
   file uploads, notes and dividers. Loaded globally so every page that
   builds a form gets the same look and a one-place style change.

   Depends on the CSS variables defined in app.css :root.
   Page-specific "chrome" (wizard stepper, cards, footers, outcome
   screens, etc.) stays in its own per-page stylesheet.
   ===================================================================== */

/* ── Field ─────────────────────────────────────────────────────────── */
.fk-field {
  margin-bottom: 18px;
}

/* min-height keeps a one-line and a two-line label on the same baseline, so the
   two inputs of a `.fk-row.cols-2` still start at the same y when one label
   wraps at a narrow width. */
.fk-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 6px;
  min-height: 21px;
}

.fk-label-row label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fg-1);
}

.fk-req { color: var(--color-danger); margin-left: 2px; }

.fk-counter {
  font-size: 0.75rem;
  color: var(--fg-3);
}

.fk-hint {
  display: block;
  font-size: 0.78rem;
  color: var(--fg-2);
  margin-top: 5px;
  line-height: 1.5;
}

.fk-hint.danger { color: var(--color-danger); }
/* A condition the CLIENT set is not an error the provider made. Red stays
   reserved for "you did something wrong"; gold means "this was asked of you". */
.fk-hint.req { color: var(--gold-700, #b07816); font-weight: 600; }

.fk-err {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--color-danger);
  margin-top: 5px;
  font-weight: 500;
}

/* ── Input wrap ────────────────────────────────────────────────────── */
/* 44px: the height came only from the input's 10px padding, so every field
   wrapper in the product measured 41-43 against the floor its buttons keep.
   Screens were patching it one at a time (the support forms did, twice); this
   is the one place all of them route through. */
.fk-iw {
  display: flex;
  align-items: center;
  min-height: 44px;
  border: 1.5px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  overflow: visible;
  position: relative;
}

.fk-iw:focus-within {
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(13,155,110,.10);
}

.fk-field.is-invalid .fk-iw {
  border-color: var(--color-danger);
}

.fk-iw input,
.fk-iw select,
.fk-iw textarea {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  padding: 10px 12px;
  font-size: 0.9rem;
  color: var(--fg-1);
  font-family: inherit;
  line-height: 1.45;
}

.fk-iw input::placeholder,
.fk-iw textarea::placeholder { color: var(--fg-3); }

.fk-iw .fk-lead {
  padding: 0 0 0 12px;
  color: var(--fg-3);
  font-size: 1rem;
  flex-shrink: 0;
}

.fk-iw .fk-prefix,
.fk-iw .fk-suffix {
  padding: 10px 11px;
  font-size: 0.85rem;
  color: var(--fg-2);
  background: var(--ink-50);
  border-right: 1.5px solid var(--color-border-strong);
  flex-shrink: 0;
  font-weight: 500;
}

.fk-iw .fk-suffix {
  border-right: none;
  border-left: 1.5px solid var(--color-border-strong);
}

/* The prefix/suffix sits ON the wrap's rounded edge, so its own square corners
   spill past the border (most visible behind the riyal symbol). `.fk-iw` cannot
   clip them — it needs `overflow: visible` for the combobox menu — so the child
   rounds itself. 8.5px = the wrap's radius minus its 1.5px border. */
.fk-iw .fk-prefix {
  border-start-start-radius: 8.5px;
  border-end-start-radius: 8.5px;
}

.fk-iw .fk-suffix {
  border-start-end-radius: 8.5px;
  border-end-end-radius: 8.5px;
}

/* A native date input paints its own placeholder from the OS locale. Inside an
   RTL container those segments get reordered into gibberish ("موي/رهش/yyyy"),
   and the text is browser-owned so it can be neither translated nor restyled.
   Forcing LTR on the field itself is the only thing that fixes the order. */
.fk-iw input[type="date"] {
  direction: ltr;
  text-align: start;
}

.fk-iw.textarea-iw { align-items: flex-start; }
.fk-iw.textarea-iw textarea {
  min-height: 110px;
  resize: vertical;
  padding-top: 10px;
}

/* ── Choice grid ───────────────────────────────────────────────────── */
.fk-grid {
  display: grid;
  gap: 10px;
}
.fk-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.fk-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.fk-choice {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding: 13px 13px 11px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.14s, background 0.14s, box-shadow 0.14s;
  width: 100%;
}

.fk-choice:hover {
  border-color: var(--green-300);
  background: var(--green-50);
}

.fk-choice.is-selected {
  border-color: var(--green-500);
  background: var(--green-50);
  box-shadow: 0 0 0 3px rgba(13,155,110,.10);
}

.fk-choice .fk-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green-500);
  color: #fff;
  font-size: 0.6rem;
  display: none;
  align-items: center;
  justify-content: center;
}

.fk-choice.is-selected .fk-check { display: flex; }

.fk-choice .fk-choice-ic {
  font-size: 1.2rem;
  color: var(--fg-2);
}

.fk-choice.is-selected .fk-choice-ic { color: var(--green-600); }

.fk-choice strong {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--fg-1);
  display: block;
  line-height: 1.3;
}

/* Compact choice (for budget/schedule — horizontal row) */
.fk-choice.compact {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
}

.fk-choice.compact strong { font-size: 0.85rem; font-weight: 700; }

/* ── Field row ─────────────────────────────────────────────────────── */
.fk-row {
  display: grid;
  gap: 14px;
}

/* minmax(0, …), not a bare fr: a grid item defaults to min-width:auto, so a
   column refuses to shrink below its own content and spills out of the card
   instead. It showed up on the checkout card form, whose column got narrow
   once the page went two-up on desktop while this row's stacking breakpoint
   still watched the VIEWPORT, not the container. Purely permissive: it only
   allows shrinking, and changes nothing wherever the content already fits. */
.fk-row.cols-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.fk-row.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fk-row.lead-2 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }

/* ── Divider ───────────────────────────────────────────────────────── */
.fk-div {
  height: 1px;
  background: var(--color-border);
  margin: 22px 0;
}

/* ── Note / info box ───────────────────────────────────────────────── */
.fk-note {
  display: flex;
  gap: 10px;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  background: var(--ink-50);
  border: 1px solid var(--color-border);
  margin-bottom: 18px;
}

.fk-note.green {
  background: var(--green-50);
  border-color: rgba(13,155,110,.2);
}

.fk-note.amber {
  background: #fffaeb;
  border-color: rgba(232,167,45,.25);
}

.fk-note.danger {
  background: var(--color-danger-soft, #fef2f2);
  border-color: rgba(220,38,38,.18);
}

.fk-note .fk-note-ic {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--fg-2);
}

.fk-note.green  .fk-note-ic { color: var(--green-600); }
.fk-note.amber  .fk-note-ic { color: #b07816; }
.fk-note.danger .fk-note-ic { color: var(--color-danger); }

.fk-note p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--fg-2);
  line-height: 1.5;
}

.fk-note.danger p { color: var(--color-danger); font-weight: 600; }

/* ── Toggle row + switch ───────────────────────────────────────────── */
.fk-toggle-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 15px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  user-select: none;
  background: var(--ink-50);
}

.fk-toggle-row.is-on {
  border-color: rgba(13,155,110,.3);
  background: var(--green-50);
}

.fk-toggle-row .fk-toggle-ic {
  font-size: 1.2rem;
  color: var(--fg-2);
  flex-shrink: 0;
}

.fk-toggle-row.is-on .fk-toggle-ic { color: var(--green-600); }

.fk-toggle-row .fk-toggle-body { flex: 1; min-width: 0; }

.fk-toggle-row .fk-toggle-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fg-1);
}

.fk-toggle-row .fk-toggle-desc {
  font-size: 0.78rem;
  color: var(--fg-2);
  margin-top: 2px;
}

.fk-switch {
  flex-shrink: 0;
  width: 40px;
  height: 22px;
  border-radius: 11px;
  background: var(--ink-300);
  border: none;
  cursor: pointer;
  position: relative;
  transition: background 0.2s;
  pointer-events: none;
}

.fk-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.18);
}

.fk-toggle-row.is-on .fk-switch { background: var(--green-500); }
.fk-toggle-row.is-on .fk-switch::after { transform: translateX(18px); }

/* ── JS-free variant ───────────────────────────────────────────────────
   Same switch, driven by a real checkbox instead of a per-page onclick that
   flips a hidden input (five pages each wrote their own). Use it as:

     <label class="fk-toggle-row">
       <input type="checkbox" name="…" class="fk-toggle-input">
       <span class="fk-toggle-ic">…</span>
       <div class="fk-toggle-body">…</div>
       <span class="fk-switch"></span>
     </label>

   The checkbox stays in the DOM and keeps its native keyboard behaviour and
   focus ring; only its box is hidden. Works unchanged after a live swap,
   because there is nothing to re-bind. */
.fk-toggle-input {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
label.fk-toggle-row:has(.fk-toggle-input:checked) {
  border-color: rgba(13,155,110,.3);
  background: var(--green-50);
}
label.fk-toggle-row:has(.fk-toggle-input:checked) .fk-toggle-ic { color: var(--green-600); }
label.fk-toggle-row:has(.fk-toggle-input:checked) .fk-switch { background: var(--green-500); }
/* Same physical direction as the .is-on variant above — the knob's start edge is
   `left: 3px` in both writing modes, so overriding this for RTL would push it off
   the track and make this toggle disagree with the five already in the product. */
label.fk-toggle-row:has(.fk-toggle-input:checked) .fk-switch::after { transform: translateX(18px); }
label.fk-toggle-row:has(.fk-toggle-input:focus-visible) {
  outline: 2px solid var(--green-500);
  outline-offset: 2px;
}

/* ── Combobox (single-select w/ search) ────────────────────────────── */
.fk-combo {
  position: relative;
}

.fk-combo-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1.5px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-pop);
  z-index: 200;
  max-height: 260px;
  overflow-y: auto;
}

.fk-combo-menu.is-open { display: block; }

.fk-combo-head {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--fg-3);
  padding: 7px 13px 4px;
  border-bottom: 1px solid var(--color-border);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fk-combo-opt {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  background: none;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  font-size: 0.875rem;
  color: var(--fg-1);
  font-family: inherit;
  transition: background 0.1s;
}

.fk-combo-opt:hover { background: var(--green-50); }
.fk-combo-opt.is-active { background: var(--green-50); color: var(--green-700); font-weight: 600; }

.fk-combo-opt .fk-combo-check {
  font-size: 0.8rem;
  color: transparent;
  flex-shrink: 0;
  width: 16px;
}

.fk-combo-opt.is-active .fk-combo-check { color: var(--green-500); }

.fk-combo-opt .fk-combo-sub {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--fg-3);
  flex-shrink: 0;
}

.fk-combo-sep {
  height: 1px;
  background: var(--color-border);
  margin: 3px 0;
}

/* ── Menu select (no search) ────────────────────────────────────────────
   `<select data-fk-menu>` upgraded (form-kit.js → buildSelectMenu) into the
   .fk-combo-menu dropdown above, minus the search box and checkmark. The host
   styles the pill around .fk-menu; the trigger itself is transparent so it
   inherits the pill. */
.fk-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* form-kit.js loads at the end of the body, so the raw <select> paints first and
   the user sees an unstyled native dropdown flash before the pill replaces it.
   visibility (not display) so the box still reserves its space and nothing
   shifts when the trigger arrives. Scoped to html.js: with JS off the class is
   never added and the native select stays visible as the working fallback. */
html.js select[data-fk-menu]:not([data-fk-menu-ready]) { visibility: hidden; }

/* The raw <select> before form-kit replaces it, and for ever with scripting
   off: a long option (a company name and a job title) makes the native control
   as wide as its widest row, which is past the edge of a 375px phone. */
select[data-fk-select],
select[data-fk-menu] { max-width: 100%; }

/* 44px is the accessible minimum for a finger (WCAG 2.5.8). */
.fk-menu-trigger {
  min-height: 44px;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 700;
  color: var(--fg-1);
  cursor: pointer;
  outline: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 2px;
  white-space: nowrap;
}

.fk-menu-chev {
  color: var(--fg-2);
  font-size: 0.8rem;
  transition: transform 160ms var(--ease-out);
}
.fk-menu-trigger[aria-expanded="true"] .fk-menu-chev { transform: rotate(180deg); }

/* The shared .fk-combo-menu stretches left:0/right:0; a menu-select is a short
   fixed list, so size it to content and anchor to the end edge (RTL-safe). */
.fk-menu-list {
  left: auto;
  right: auto;
  inset-inline-end: 0;
  min-width: 100%;
  width: max-content;
}

/* When a menu-select sits inside a form-kit input box (.fk-iw) — e.g. the
   request-form unit pickers — fill the box like a native <select>: value on the
   leading edge, chevron on the trailing edge, matching input padding/weight. */
.fk-iw > .fk-menu { flex: 1; min-width: 0; }
.fk-iw > .fk-menu .fk-menu-trigger {
  flex: 1;
  /* A long value shrinks to an ellipsis instead of pushing the chevron out of the box. */
  min-width: 0;
  justify-content: space-between;
  padding: 10px 12px;
  font-weight: 400;
  font-size: 0.9rem;
}
.fk-iw > .fk-menu .fk-menu-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.fk-iw > .fk-menu .fk-menu-list { min-width: 100%; }

/* ── Search field ───────────────────────────────────────────────────────
   Shared white search pill (icon + input + optional clear button). Replaces
   the per-page .vr-search / .dir-search-input / .sp-search / .br-search
   copies. Clear button auto-wires via form-kit.js (buildSearchClear) when it
   carries [data-fk-clear]. */
.fk-search {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  min-width: 0;
  cursor: text;
  transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}
.fk-search:focus-within {
  border-color: rgba(13, 155, 110, 0.45);
  box-shadow: 0 0 0 3px rgba(13, 155, 110, 0.12);
}
.fk-search > i {
  color: var(--fg-2);
  font-size: 1rem;
  flex-shrink: 0;
}
.fk-search input {
  flex: 1;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.95rem;   /* 15.2px — see the narrow-screen bump at the end of this file */
  color: var(--fg-1);
  outline: none;
  min-width: 0;
}
.fk-search input::placeholder { color: var(--ink-400); }

.fk-search-clear {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--ink-100);
  color: var(--fg-2);
  font-size: 0.72rem;
  cursor: pointer;
  transition: background 160ms var(--ease-out), color 160ms var(--ease-out);
}
.fk-search-clear:hover { background: var(--ink-200); color: var(--fg-1); }
/* Drawn 24x24, tapped 44x44 (the icon-button box): the hit area grows 10px each way, no further than the 10px gap, so the input's text stays the input's. */
.fk-search-clear::before { content: ""; position: absolute; inset: -10px; }
.fk-search-clear.is-hidden { display: none; }

/* ── Multi-select ──────────────────────────────────────────────────────
   Progressive-enhancement component. Markup is a native
   <select multiple data-fk-multi> (so it works without JS and submits
   natively); form-kit.js builds the chip control + checkable menu on top.
   ----------------------------------------------------------------------- */
.fk-multi {
  position: relative;
}

/* Hide the native select once the JS control has been mounted. */
.fk-multi select[multiple] { display: none; }

.fk-combo-chev {
  /* Symmetric so the open-state 180deg rotation keeps the same edge gap. */
  padding-inline: 11px;
  color: var(--fg-3);
  font-size: .82rem;
  transform-origin: center;
}

/* The clickable control — reuses .fk-iw look via .fk-multi-control. */
.fk-multi-control {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 44px;
  padding: 6px 14px;
  border: 1.5px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: text;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.fk-multi.is-open .fk-multi-control,
.fk-multi-control:focus-within {
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(13,155,110,.10);
}

.fk-field.is-invalid .fk-multi-control {
  border-color: var(--color-danger);
}

.fk-multi-placeholder {
  color: var(--fg-3);
  font-size: 0.9rem;
  padding: 4px 2px;
}

.fk-multi-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px 4px 10px;
  background: var(--green-50);
  border: 1px solid rgba(13,155,110,.25);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green-700);
  max-width: 100%;
}

.fk-multi-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fk-multi-chip .fk-multi-chip-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border: none;
  border-radius: 50%;
  background: rgba(13,155,110,.16);
  color: var(--green-700);
  font-size: 0.6rem;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  position: relative;
}
/* The circle stays 16px; the tap is 40 wide and 32 tall. Chip rows sit about 35px apart and a 40px-tall
   area took the next row's x; the end side reaches 10px, so in English (6px padding there) it stops
   inside the 6px gap instead of in the next chip or the search field. */
.fk-multi-chip .fk-multi-chip-x::after { content: ""; position: absolute; inset-block: -8px; inset-inline: -14px -10px; }
/* A finger gets 44x44, with the chip and the circle as drawn. A 29px chip needs the 16px row gap for that:
   rows 45 apart keep each area off the next row's x. The end side stops at the next chip (6 padding, 1 border,
   6 gap) and the start side takes the 15 left. Chrome pulls a nearby finger onto the x, so on a short chip
   like «جدة» most of the name removes it, as it did at 40 wide; the far end of the name opens the menu.
   A mouse keeps the tighter rows above. */
@media (pointer: coarse) {
  .fk-multi-control { row-gap: 16px; }
  .fk-multi-chip .fk-multi-chip-x::after { inset-block: -14px; inset-inline: -15px -13px; }
}

.fk-multi-chip .fk-multi-chip-x:hover { background: var(--green-500); color: #fff; }

.fk-multi-search {
  flex: 1;
  min-width: 60px;
  border: none;
  outline: none;
  background: transparent;
  padding: 4px 2px;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--fg-1);
}

.fk-multi-search::placeholder { color: var(--fg-3); }

.fk-multi-chev {
  flex-shrink: 0;
  color: var(--fg-3);
  font-size: 0.82rem;
  margin-inline-start: auto;
  padding: 0 4px;
  transition: transform 0.18s;
}

.fk-multi.is-open .fk-multi-chev { transform: rotate(180deg); }

.fk-multi-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1.5px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-pop);
  z-index: 200;
  max-height: 260px;
  overflow-y: auto;
  padding: 5px;
}

.fk-multi.is-open .fk-multi-menu { display: block; }

.fk-multi-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  background: none;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  font-size: 0.875rem;
  color: var(--fg-1);
  font-family: inherit;
  border-radius: var(--radius-sm);
  transition: background 0.1s;
}

.fk-multi-opt:hover,
.fk-multi-opt.is-active { background: var(--green-50); }

.fk-multi-opt .fk-multi-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--color-border-strong);
  border-radius: 5px;
  color: #fff;
  font-size: 0.62rem;
  flex-shrink: 0;
  transition: background 0.12s, border-color 0.12s;
}

.fk-multi-opt .fk-multi-box i { opacity: 0; }

.fk-multi-opt.is-selected .fk-multi-box {
  background: var(--green-500);
  border-color: var(--green-500);
}

.fk-multi-opt.is-selected .fk-multi-box i { opacity: 1; }

.fk-multi-opt.is-selected { font-weight: 600; }

.fk-multi-empty {
  padding: 12px 13px;
  font-size: 0.82rem;
  color: var(--fg-3);
  text-align: center;
}

/* ── File drop ─────────────────────────────────────────────────────── */
/* Wrapper built by form-kit.js around a `<input type=file data-fk-files>`
   (drop zone + accumulating file list). */
/* Same reason as the data-fk-menu guard above: form-kit.js is deferred, so the
   raw native picker ("Choose Files", no drop zone) can paint before buildFileInput
   replaces it. visibility, not display, so the box keeps its space and nothing
   shifts when the drop zone arrives. Scoped to html.js: with JS off the class is
   never added and the native input stays visible as the working fallback. */
html.js input[type="file"][data-fk-files]:not([data-fk-files-ready]) { visibility: hidden; }

.fk-file { display: block; }

.fk-file-drop {
  border: 2px dashed var(--color-border-strong);
  border-radius: var(--radius-md);
  padding: var(--space-7) 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  background: var(--ink-50);
  position: relative;
}

.fk-file-drop:hover,
.fk-file-drop.drag-over {
  border-color: var(--green-400);
  background: var(--green-50);
}

.fk-file-drop input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.fk-file-drop .fk-file-ic {
  font-size: 1.8rem;
  color: var(--green-500);
}

.fk-file-drop h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--fg-1);
  margin: 0;
}

.fk-file-drop p {
  font-size: 0.78rem;
  color: var(--fg-2);
  margin: 0;
}

.fk-file-list {
  margin-top: 10px;
  display: grid;
  gap: 7px;
}

.fk-file-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
}

.fk-file-item .fk-fi-ico { font-size: 1.2rem; color: var(--fg-2); flex-shrink: 0; }
.fk-file-item .fk-fi-name { font-size: 0.85rem; font-weight: 500; color: var(--fg-1); }
.fk-file-item .fk-fi-size { margin-left: auto; font-size: 0.75rem; color: var(--fg-2); flex-shrink: 0; }
.fk-file-item .fk-fi-rm {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--fg-3);
  font-size: 0.8rem;
  padding: 2px 5px;
  border-radius: 4px;
  flex-shrink: 0;
}
.fk-file-item .fk-fi-rm:hover { background: var(--ink-100); color: var(--color-danger); }

/* ── Thumbnail tiles (opt in with data-fk-preview) ─────────────────────
   For image uploads, where a filename row tells you nothing: each staged file
   is a tile with its own remove button, matching the grid the already-saved
   images render in. */
.fk-file-list.fk-file-tiles {
  grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
  gap: var(--space-2);
}
.fk-file-tile {
  position: relative;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
  aspect-ratio: 1;
}
.fk-file-tile .fk-file-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.fk-file-tile .fk-file-thumb.is-doc {
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  color: var(--fg-3);
  background: var(--ink-50);
}
.fk-file-tile-cap {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 2px 6px;
  font-size: 0.62rem;
  font-weight: 700;
  color: #fff;
  background: rgba(15, 23, 42, 0.55);
  text-align: center;
}
.fk-file-tile-rm {
  position: absolute;
  top: 4px;
  inset-inline-end: 4px;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border: none;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.6);
  color: #fff;
  font-size: 0.62rem;
  cursor: pointer;
  transition: background 0.15s;
}
.fk-file-tile-rm:hover { background: var(--color-danger, #dc2626); }
/* The error line spans the grid rather than sitting in a 74px column. */
.fk-file-list.fk-file-tiles .fk-err { grid-column: 1 / -1; }

/* ── RTL tweaks ────────────────────────────────────────────────────── */
[dir="rtl"] .fk-iw .fk-lead { padding: 0 12px 0 0; }
[dir="rtl"] .fk-iw .fk-prefix { border-right: none; border-left: 1.5px solid var(--color-border-strong); }
[dir="rtl"] .fk-iw .fk-suffix { border-left: none; border-right: 1.5px solid var(--color-border-strong); }
[dir="rtl"] .fk-choice .fk-check { right: auto; left: 8px; }
[dir="rtl"] .fk-combo-opt .fk-combo-sub { margin-left: 0; margin-right: auto; }
[dir="rtl"] .fk-toggle-row .fk-switch { margin-left: 0; margin-right: auto; }
[dir="rtl"] .fk-file-item .fk-fi-size { margin-left: 0; margin-right: auto; }
[dir="rtl"] .fk-multi-chip { padding: 4px 10px 4px 6px; }

/* ── Boxed input wrap (.input-wrap) ────────────────────────────────────
   Icon + field "box" used by the account-settings forms (and any page that
   doesn't ship its own auth.css). Auth pages load auth.css after this file,
   so their own `.input-wrap` rules still win there. */
.input-wrap {
  display: flex; align-items: center;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border-strong);
  border-radius: 12px;
  transition: border-color 160ms, box-shadow 160ms;
}
.input-wrap:focus-within { border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(13,155,110,.10); }
.input-wrap.is-invalid { border-color: #dc2626; }
.input-wrap.is-locked { background: var(--ink-100, #edf3ef); border-color: var(--color-border); }
.input-wrap.is-locked:focus-within { border-color: var(--color-border); box-shadow: none; }
.input-wrap.is-locked input { color: var(--fg-2); cursor: default; }
.input-wrap > i.lead { color: var(--fg-2); font-size: 1rem; padding-inline-start: 13px; }
.input-wrap > i.trail { color: var(--fg-2); font-size: 0.9rem; padding-inline-end: 13px; }
.input-wrap input, .input-wrap select {
  flex: 1; border: 0; background: transparent;
  padding: 11px 14px; font: inherit; font-size: 0.93rem;
  color: var(--fg-1); outline: none; min-width: 0;
}
.input-wrap select { appearance: none; cursor: pointer; }
/* A touch screen: 16px. iOS Safari zooms the page in when a field under 16px
   takes focus and leaves it zoomed, so the page reads as wider than the phone
   and slides sideways (owner, on her phone, 2026-10-25). Not maximum-scale or
   user-scalable=no: those take pinch-zoom away from the people who need it.
   A mouse keeps 0.9-0.93rem. The same for the form-kit box and the chip search. */
@media (pointer: coarse) {
  .input-wrap input, .input-wrap select,
  .fk-iw input, .fk-iw select, .fk-iw textarea, .fk-multi-search { font-size: 1rem; }
}
.input-wrap input::placeholder { color: var(--fg-3, #9ca3af); }
.input-wrap .pw-toggle { padding: 10px 12px; border: 0; background: transparent; color: var(--fg-2); cursor: pointer; font-size: 1rem; }
/* Force logical-start text alignment on LTR-numeric fields (phone inputs
   carry dir="ltr"); used by complete_profile + account settings. */
.input-start { text-align: start; }

/* ── Mobile / small-screen layout ──────────────────────────────────── */
@media (max-width: 600px) {
  /* Choice cards: 4-up / 3-up grids become 2-up so cards stay tappable. */
  .fk-grid.cols-4,
  .fk-grid.cols-3 { grid-template-columns: 1fr 1fr; }

  /* Multi-field rows stack vertically. */
  .fk-row.cols-2,
  .fk-row.cols-3,
  .fk-row.lead-2 { grid-template-columns: minmax(0, 1fr); }   /* a bare 1fr took its widest field */
}

/* ── Star rating ────────────────────────────────────────────────────────
   Interactive input built by form-kit.js from [data-fk-stars]. The read-only
   display variant is the SSR partial components/stars.html (same gold/ink
   look). Sizes: fk-stars--sm | --md | --lg. Optional label via data-labels. */
.fk-stars { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.fk-stars-row { display: inline-flex; gap: 8px; line-height: 1; }
.fk-stars-row i { color: var(--ink-200); transition: transform 0.12s var(--ease-out), color 0.12s; }
.fk-stars-row i.on { color: var(--gold-500); }
.fk-stars:not([data-readonly]) .fk-stars-row i { cursor: pointer; }
.fk-stars:not([data-readonly]) .fk-stars-row i:hover { transform: scale(1.12); }

.fk-stars--sm .fk-stars-row { gap: 5px; }
.fk-stars--sm .fk-stars-row i { font-size: 1.05rem; }
.fk-stars--lg .fk-stars-row { gap: 14px; }
.fk-stars--lg .fk-stars-row i { font-size: 2.7rem; }

.fk-stars-label { font-size: 1.15rem; font-weight: 800; color: var(--fg-1); }
.fk-stars-label.empty { color: var(--ink-400); font-weight: 700; font-size: 1rem; }

/* ── Filter tabs ────────────────────────────────────────────────────────
   Shared segmented filter bar: a scrollable pill row of tabs. Each tab is an
   <a> (server-filter link) or <button> (JS filter). Supports an optional
   leading .dot (colour via [data-state]), an icon, and a trailing .badge
   count. Active tab = .is-active. Used by requests / notifications / saved. */
/* components/date_select.html: day, month, year side by side. */
.fk-date { display: grid; grid-template-columns: minmax(4.5rem, 1fr) minmax(7rem, 1.6fr) minmax(5.5rem, 1.1fr); gap: var(--space-2); width: 100%; }
.fk-date .fk-date-part { min-width: 0; }
/* The three parts need about 288px side by side; on the smallest phones the
   month takes its own row above the day and the year, instead of pushing the
   page sideways (the send-offer form, the admin date fields, at 320). */
@media (max-width: 400px) {
  .fk-date { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .fk-date .fk-date-month { grid-column: 1 / -1; order: -1; }
  .fk-stars--lg .fk-stars-row { gap: 8px; }
  .fk-stars--lg .fk-stars-row i { font-size: 2rem; }
}
.fk-tabs {
  display: flex; gap: 4px; padding: 5px;
  background: #fff; border: 1px solid var(--color-border); border-radius: 14px;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.fk-tabs::-webkit-scrollbar { display: none; }
/* A strip whose every tab has to stay in sight folds onto a second line on a
   narrow screen instead of scrolling: sideways, the last tabs sat cut off and
   nothing said there were more. */
.fk-tabs.is-wrap { flex-wrap: wrap; overflow-x: visible; }
/* A tab longer than the whole strip breaks its own words rather than the
   page: "The mail provider stopped delivering" was 314px in a 262px strip
   at 320 and scrolled the win-back screen sideways. A tab that fits keeps
   its one line, since a wrapping row moves it down before it shrinks it. */
.fk-tabs.is-wrap .fk-tab { flex-shrink: 1; min-width: 0; white-space: normal; }
.fk-tab {
  display: inline-flex; align-items: center; gap: 9px;
  /* 44px is the accessible minimum for a finger. The padding alone made these
     42 -- close enough to look right and two pixels short to BE right, on the
     tab strip a phone user taps most. min-height rather than more padding, so
     the desktop proportions do not change. */
  padding: 10px 14px; min-height: 44px; border-radius: 10px;
  background: transparent; border: 0; color: var(--fg-2);
  font: inherit; font-size: 0.9rem; font-weight: 700;
  cursor: pointer; white-space: nowrap; flex: 0 0 auto; text-decoration: none;
  transition: background 160ms var(--ease-out), color 160ms var(--ease-out);
}
.fk-tab:hover { background: var(--ink-50); color: var(--fg-1); }
.fk-tab .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--ink-300); flex: 0 0 auto; }
.fk-tab[data-state="green"]  .dot { background: var(--green-500); }
.fk-tab[data-state="orange"] .dot { background: #e97127; }
.fk-tab[data-state="amber"]  .dot { background: var(--gold-500); }
.fk-tab[data-state="grey"]   .dot { background: var(--ink-400); }
.fk-tab .badge {
  min-width: 20px; height: 20px; padding: 0 7px; border-radius: 999px;
  background: var(--ink-100); color: var(--fg-2);
  font-size: 0.72rem; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; line-height: 1;
}
.fk-tab.is-active {
  background: rgba(13, 155, 110, 0.10); color: var(--green-700);
  box-shadow: inset 0 0 0 1px rgba(13, 155, 110, 0.18);
}
.fk-tab.is-active .badge { background: var(--green-500); color: #fff; }


/* ── iOS zoom-on-focus ──────────────────────────────────────────────────────
   The one PUBLIC page this sheet reaches is the provider directory, whose
   search box is a text input at 0.95rem = 15.2px. iOS Safari zooms the viewport
   on focus for any text input under 16px, and it does not zoom back out: the
   visitor is left on a scaled, side-scrolling directory having done nothing but
   tap the search field.

   Narrow screens only, and that is deliberate rather than timid. This file is
   shared with every signed-in form in the product, the 0.95rem proportions are
   right on a desktop where no such zoom exists, and the defect only exists on
   the device the media query selects. */
@media (max-width: 600px) {
  .fk-search input {
    font-size: 1rem;
  }
}

/* css/empty-states.css */
/* ── Empty State Component ────────────────────────────────────────────
   Usage variants:
     .es           — card style (white bg, border, rounded)
     .es.es-open   — open style (no card, transparent, centered)
   ──────────────────────────────────────────────────────────────────── */

.es {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 36px var(--space-7) var(--space-8);
  background: white;
  border: 1px solid var(--color-border, #E2EEE8);
  border-radius: 22px;
  gap: 18px;
}

.es.es-open {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: var(--space-7) 16px 24px;
}

/* Illustration */
.es .art {
  width: 220px;
  height: 160px;
  display: block;
}

/* Glow halo behind the illustration (open variant) */
.es.es-open .es-glow {
  position: relative;
  display: grid;
  place-items: center;
}

.es.es-open .es-glow::before {
  content: "";
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13,155,110,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.es.es-open .es-glow.glow-amber::before {
  background: radial-gradient(circle, rgba(232,167,45,0.14) 0%, transparent 70%);
}

.es.es-open .es-glow.glow-muted::before {
  background: radial-gradient(circle, rgba(100,116,139,0.10) 0%, transparent 70%);
}

/* Headings.

   `.es .es-title`, not `.es h3`: the component's heading level is a parameter
   now (es_level), so a selector written against the TAG styles one of the three
   and abandons the other two. Two classes also outrank `.pp-card h2` in
   provider_profile.css, which was capturing this heading on the reviews page
   and giving it a section-header's margins. */
.es .es-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--fg-1, #0F172A);
  letter-spacing: -0.01em;
}

.es p {
  margin: -6px 0 0;
  color: var(--fg-2, #475569);
  font-size: 0.94rem;
  line-height: 1.55;
  max-width: 36ch;
}

/* CTA — solid green gradient (card variant default) */
.es .es-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px var(--space-5);
  border-radius: 12px;
  background: linear-gradient(135deg, var(--green-500, #27C08A), var(--green-700, #146644));
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.94rem;
  box-shadow: 0 4px 14px rgba(13,155,110,0.28);
  margin-top: 2px;
  justify-self: center;
  transition: opacity 0.15s;
}

.es .es-cta:hover { opacity: 0.88; }
.es .es-cta i { font-size: 1.05rem; }

/* CTA — ghost green (open variant) */
.es.es-open .es-cta {
  background: transparent;
  color: var(--green-700, #146644);
  border: 1.5px solid rgba(13,155,110,0.30);
  box-shadow: none;
}

.es.es-open .es-cta:hover {
  background: rgba(13,155,110,0.06);
  opacity: 1;
}

/* CTA — ghost muted (secondary action) */
.es .es-cta-muted {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 12px;
  background: transparent;
  color: var(--fg-2, #475569);
  border: 1.5px solid rgba(100,116,139,0.22);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  justify-self: center;
  transition: background 0.15s;
}

.es .es-cta-muted:hover { background: rgba(100,116,139,0.06); }

/* Fallback icon (when SVG/Lottie fails) — hidden by default, shown via
   inline style by the <img onerror> handler in empty_state.html. */
.es .es-icon-fallback {
  display: none;
  font-size: 2.6rem;
  color: var(--green-500, #27C08A);
  opacity: 0.6;
}

/* css/notifications.css */
/* ============================================================
   CLIENT · NOTIFICATION CENTER
   ============================================================ */

/* Page head: shared widget — .pg-head / .pg-head-actions in app.css. */

/* "Mark all as read" button — the page-specific action inside .pg-head-actions. */
/* 44px is the accessible minimum for a finger (WCAG 2.5.8). */
.btn-mark {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px var(--space-5);
  border-radius: 12px;
  background: white;
  color: var(--green-700);
  border: 1.5px solid rgba(13, 155, 110, 0.30);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 160ms ease;
}
.btn-mark:hover {
  background: rgba(13, 155, 110, 0.04);
}
.mark-read-form { display: contents; }

/* ----- Filter bar ----- */
.filter-bar {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
  /* min-width:0, the same as view-requests.css and for the same reason: a grid
     item defaults to min-width:auto, so the search input's intrinsic width
     stretched this row to 1080px inside a 355px column and took the whole
     page's horizontal scrollbar with it at phone width. */
  min-width: 0;
}
.find-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
}
/* Search field + clear button are the shared form-kit components
   (.fk-search / .fk-search-clear, form-kit.css). */

/* ----- Tabs ----- */
.tabs-row {
  position: relative;
  /* So the scrollable tab strip scrolls INSIDE its own box. */
  min-width: 0;
}
/* Tab pills are the shared form-kit widget (.fk-tabs / .fk-tab, form-kit.css). */

/* ----- Time-group divider ----- */
.time-group {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--fg-2);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
.time-group::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-border);
}
.time-group:first-of-type {
  margin-top: 4px;
}

/* ----- Notification list ----- */
.notif-list {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.notif {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: start;
  gap: 16px;
  padding: 16px 20px;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
  position: relative;
}
.notif:hover {
  border-color: rgba(13, 155, 110, 0.30);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px -8px rgba(13, 155, 110, 0.18);
}

/* Unread — gradient bg + left accent bar */
.notif.is-unread {
  background: linear-gradient(180deg, rgba(13, 155, 110, 0.05), white 40%);
  border-color: rgba(13, 155, 110, 0.22);
}
.notif.is-unread::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 18px;
  bottom: 18px;
  width: 3px;
  border-radius: 0 999px 999px 0;
  background: var(--green-500);
}
[dir="rtl"] .notif.is-unread::before {
  border-radius: 999px 0 0 999px;
}

/* Icon block — tone classes match notifications.models */
.notif .ic {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  flex: 0 0 auto;
  margin-top: 2px;
}
.notif .ic.info    { background: rgba(13, 155, 110, 0.10); color: var(--green-700); }
.notif .ic.accent  { background: rgba(233, 113, 39, 0.10); color: #b85913; }
.notif .ic.success { background: var(--grad-primary); color: white; }
.notif .ic.warning { background: rgba(232, 167, 45, 0.18); color: #92650a; }
.notif .ic.danger  { background: rgba(220, 38, 38, 0.10); color: #991b1b; }
.notif .ic.neutral { background: var(--ink-100); color: var(--fg-2); }

/* Body */
.notif .body {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.notif .title {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--fg-1);
  line-height: 1.3;
  letter-spacing: -0.005em;
}
.notif:not(.is-unread) .title {
  font-weight: 700;
}
.notif .desc {
  font-size: 0.88rem;
  color: var(--fg-2);
  line-height: 1.5;
}
.notif .meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--fg-2);
  font-weight: 600;
}
.notif .meta .chip {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--ink-50);
  border: 1px solid var(--color-border);
  color: var(--fg-2);
  font-weight: 700;
  font-size: 0.72rem;
}
.notif .meta .dot-sep {
  color: var(--ink-300);
}

/* When timestamp */
.notif .when {
  font-size: 0.82rem;
  color: var(--fg-2);
  font-weight: 600;
  white-space: nowrap;
  margin-top: 4px;
}

/* Arrow icon */
.notif .arr {
  font-size: 1rem;
  margin-top: 6px;
}
.notif.is-unread .arr { color: var(--green-700); }
.notif:not(.is-unread) .arr { color: var(--ink-400); }
[dir="rtl"] .notif .arr {
  transform: scaleX(-1);
}

/* ----- End-of-list state ----- */
.end-state {
  margin-top: 26px;
  text-align: center;
  color: var(--fg-2);
  padding: 16px;
  font-size: 0.86rem;
  border-top: 1px dashed var(--color-border);
}
.end-state .pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--color-border);
  color: var(--fg-2);
  font-weight: 700;
  margin-top: 12px;
  font-size: 0.82rem;
}
.end-state .pill i {
  color: var(--green-700);
}

/* Pager: shared widget — .pgr in app.css (components/pager.html). */

/* ----- Empty state ----- */
.empty-card {
  margin-top: 22px;
  /* No card chrome: the empty state sits directly on the page, matching the
     shared .es empty-state component (no white box, no border, no radius). */
  padding: var(--space-10) var(--space-7) 52px;
  text-align: center;
  display: grid;
  place-items: center;
  gap: 14px;
}
.empty-card .art {
  display: grid;
  place-items: center;
  margin: 0 auto 4px;
}
/* The two illustrated empty states (filtered / zero-ever) now render through
   the shared components/empty_state.html (.es-*); this file only still styles
   the hand-rolled error card, which has no image and needs no onerror toggle. */
.empty-card .art-fallback {
  width: 80px;
  height: 80px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: var(--ink-400);
}
/* Error state — red medal, matching the 500 page */
.empty-card .art-fallback.is-error {
  background: #fee2e2;
  color: #dc2626;
}
.empty-card h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--fg-1);
  letter-spacing: -0.01em;
}
.empty-card p {
  margin: 0;
  color: var(--fg-2);
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: 36ch;
}
.empty-card .empty-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: white;
  color: var(--fg-2);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: border-color 160ms ease, color 160ms ease;
}
.empty-card .empty-cta:hover {
  border-color: rgba(13, 155, 110, 0.30);
  color: var(--fg-1);
}

/* ----- Responsive ----- */
/* Tablet & small: stack the head, reflow each card so the timestamp drops
   under the body and the chevron is dropped (the whole row is tappable). */
@media (max-width: 720px) {
  .btn-mark {
    padding: 10px 14px;
    font-size: 0.86rem;
  }

  .find-row {
    grid-template-columns: 1fr;
  }

  .notif {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px 14px;
    padding: 14px 16px;
  }
  .notif .when {
    grid-column: 2 / -1;
    order: 3;
    margin-top: 2px;
  }
  .notif .arr {
    display: none;
  }

  .empty-card {
    padding: var(--space-8) var(--space-5) 40px;
    border-radius: 18px;
  }
}

/* Phones: tighten the cards, give the mark-all button a full-width tap target. */
@media (max-width: 480px) {
  .notif {
    padding: 13px 14px;
    gap: 10px 12px;
  }
  .notif .ic {
    width: 36px;
    height: 36px;
    font-size: 0.98rem;
  }
  .notif .title {
    font-size: 0.94rem;
  }
  .notif .desc {
    font-size: 0.85rem;
  }

  /* Full-width, comfortable tap target for "mark all as read" */
  .btn-mark {
    width: 100%;
    justify-content: center;
  }
}

