/* montserrat-cyrillic-ext-400-normal */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/montserrat-cyrillic-ext-400-normal-Xqov12YL.woff2) format('woff2'), url(/assets/montserrat-cyrillic-ext-400-normal-DRPPeomZ.woff) format('woff');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* montserrat-cyrillic-400-normal */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/montserrat-cyrillic-400-normal-BPq32Q8K.woff2) format('woff2'), url(/assets/montserrat-cyrillic-400-normal-jEs4Tk-Z.woff) format('woff');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* montserrat-vietnamese-400-normal */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/montserrat-vietnamese-400-normal-D4oHqQTd.woff2) format('woff2'), url(/assets/montserrat-vietnamese-400-normal-BeEscFYY.woff) format('woff');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* montserrat-latin-ext-400-normal */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/montserrat-latin-ext-400-normal-B8bwfy6Y.woff2) format('woff2'), url(/assets/montserrat-latin-ext-400-normal-BffdBkAA.woff) format('woff');
  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;
}

/* montserrat-latin-400-normal */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/montserrat-latin-400-normal-BLhwKU8k.woff2) format('woff2'), url(/assets/montserrat-latin-400-normal-xItZbAXg.woff) format('woff');
  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;
}/* montserrat-cyrillic-ext-500-normal */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/assets/montserrat-cyrillic-ext-500-normal-11xBT7e1.woff2) format('woff2'), url(/assets/montserrat-cyrillic-ext-500-normal-DOzfAZ45.woff) format('woff');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* montserrat-cyrillic-500-normal */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/assets/montserrat-cyrillic-500-normal-T0SG181k.woff2) format('woff2'), url(/assets/montserrat-cyrillic-500-normal-CyGtXmN9.woff) format('woff');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* montserrat-vietnamese-500-normal */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/assets/montserrat-vietnamese-500-normal-NT-t8RG1.woff2) format('woff2'), url(/assets/montserrat-vietnamese-500-normal-DpeZlV_K.woff) format('woff');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* montserrat-latin-ext-500-normal */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/assets/montserrat-latin-ext-500-normal-BKtbrd6n.woff2) format('woff2'), url(/assets/montserrat-latin-ext-500-normal-DWPqqZgs.woff) format('woff');
  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;
}

/* montserrat-latin-500-normal */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/assets/montserrat-latin-500-normal-DRFEGfly.woff2) format('woff2'), url(/assets/montserrat-latin-500-normal-Dok2oTci.woff) format('woff');
  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;
}/* montserrat-cyrillic-ext-600-normal */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/assets/montserrat-cyrillic-ext-600-normal-BtBW-rpm.woff2) format('woff2'), url(/assets/montserrat-cyrillic-ext-600-normal-wReYPmz2.woff) format('woff');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* montserrat-cyrillic-600-normal */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/assets/montserrat-cyrillic-600-normal-CQEPC0hM.woff2) format('woff2'), url(/assets/montserrat-cyrillic-600-normal-DUglwBrH.woff) format('woff');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* montserrat-vietnamese-600-normal */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/assets/montserrat-vietnamese-600-normal-DKe6qT_E.woff2) format('woff2'), url(/assets/montserrat-vietnamese-600-normal-SJ-HTWuM.woff) format('woff');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* montserrat-latin-ext-600-normal */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/assets/montserrat-latin-ext-600-normal-DSkTqI9L.woff2) format('woff2'), url(/assets/montserrat-latin-ext-600-normal-CSDhkhgS.woff) format('woff');
  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;
}

/* montserrat-latin-600-normal */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/assets/montserrat-latin-600-normal-UVxSCcoG.woff2) format('woff2'), url(/assets/montserrat-latin-600-normal-CdhFl4lI.woff) format('woff');
  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;
}/* montserrat-cyrillic-ext-700-normal */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(/assets/montserrat-cyrillic-ext-700-normal-MyDreaeu.woff2) format('woff2'), url(/assets/montserrat-cyrillic-ext-700-normal-D-Mk2xRJ.woff) format('woff');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* montserrat-cyrillic-700-normal */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(/assets/montserrat-cyrillic-700-normal-D-Pqjtdp.woff2) format('woff2'), url(/assets/montserrat-cyrillic-700-normal-BvLYcGP1.woff) format('woff');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* montserrat-vietnamese-700-normal */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(/assets/montserrat-vietnamese-700-normal-C0x1De3p.woff2) format('woff2'), url(/assets/montserrat-vietnamese-700-normal-DnwGT2D9.woff) format('woff');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* montserrat-latin-ext-700-normal */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(/assets/montserrat-latin-ext-700-normal-BOP2Nhf0.woff2) format('woff2'), url(/assets/montserrat-latin-ext-700-normal-DdDFr05Z.woff) format('woff');
  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;
}

/* montserrat-latin-700-normal */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(/assets/montserrat-latin-700-normal-BdjcYUrC.woff2) format('woff2'), url(/assets/montserrat-latin-700-normal-BWkrl476.woff) format('woff');
  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;
}/* montserrat-cyrillic-ext-800-normal */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-display: swap;
  font-weight: 800;
  src: url(/assets/montserrat-cyrillic-ext-800-normal-GOAQXnVZ.woff2) format('woff2'), url(/assets/montserrat-cyrillic-ext-800-normal-mB3PmEeV.woff) format('woff');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* montserrat-cyrillic-800-normal */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-display: swap;
  font-weight: 800;
  src: url(/assets/montserrat-cyrillic-800-normal-DDmpGQGC.woff2) format('woff2'), url(/assets/montserrat-cyrillic-800-normal-B_mUCQ9O.woff) format('woff');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* montserrat-vietnamese-800-normal */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-display: swap;
  font-weight: 800;
  src: url(/assets/montserrat-vietnamese-800-normal-BDwqwvSG.woff2) format('woff2'), url(/assets/montserrat-vietnamese-800-normal-Chy8GRiB.woff) format('woff');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* montserrat-latin-ext-800-normal */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-display: swap;
  font-weight: 800;
  src: url(/assets/montserrat-latin-ext-800-normal-BBvmbyWk.woff2) format('woff2'), url(/assets/montserrat-latin-ext-800-normal-Wjq_OapB.woff) format('woff');
  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;
}

/* montserrat-latin-800-normal */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-display: swap;
  font-weight: 800;
  src: url(/assets/montserrat-latin-800-normal-axpkC1rd.woff2) format('woff2'), url(/assets/montserrat-latin-800-normal-C3dfDxXV.woff) format('woff');
  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;
}/* montserrat-cyrillic-ext-600-italic */
@font-face {
  font-family: 'Montserrat';
  font-style: italic;
  font-display: swap;
  font-weight: 600;
  src: url(/assets/montserrat-cyrillic-ext-600-italic-sey_Ut6Y.woff2) format('woff2'), url(/assets/montserrat-cyrillic-ext-600-italic-CxHflz5Q.woff) format('woff');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* montserrat-cyrillic-600-italic */
@font-face {
  font-family: 'Montserrat';
  font-style: italic;
  font-display: swap;
  font-weight: 600;
  src: url(/assets/montserrat-cyrillic-600-italic-B9B35QAp.woff2) format('woff2'), url(/assets/montserrat-cyrillic-600-italic-DrmJ7yio.woff) format('woff');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* montserrat-vietnamese-600-italic */
@font-face {
  font-family: 'Montserrat';
  font-style: italic;
  font-display: swap;
  font-weight: 600;
  src: url(/assets/montserrat-vietnamese-600-italic-C4_N8D4m.woff2) format('woff2'), url(/assets/montserrat-vietnamese-600-italic-B2QTLTN8.woff) format('woff');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* montserrat-latin-ext-600-italic */
@font-face {
  font-family: 'Montserrat';
  font-style: italic;
  font-display: swap;
  font-weight: 600;
  src: url(/assets/montserrat-latin-ext-600-italic-CR5pESEa.woff2) format('woff2'), url(/assets/montserrat-latin-ext-600-italic-8JEKcygo.woff) format('woff');
  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;
}

/* montserrat-latin-600-italic */
@font-face {
  font-family: 'Montserrat';
  font-style: italic;
  font-display: swap;
  font-weight: 600;
  src: url(/assets/montserrat-latin-600-italic-Dgc2MWzZ.woff2) format('woff2'), url(/assets/montserrat-latin-600-italic-CVRjT2rc.woff) format('woff');
  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;
}/* montserrat-cyrillic-ext-800-italic */
@font-face {
  font-family: 'Montserrat';
  font-style: italic;
  font-display: swap;
  font-weight: 800;
  src: url(/assets/montserrat-cyrillic-ext-800-italic-t3M4Y8O1.woff2) format('woff2'), url(/assets/montserrat-cyrillic-ext-800-italic-ISwQCQvJ.woff) format('woff');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* montserrat-cyrillic-800-italic */
@font-face {
  font-family: 'Montserrat';
  font-style: italic;
  font-display: swap;
  font-weight: 800;
  src: url(/assets/montserrat-cyrillic-800-italic-Dt2y25yO.woff2) format('woff2'), url(/assets/montserrat-cyrillic-800-italic-Cpx5dx0S.woff) format('woff');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* montserrat-vietnamese-800-italic */
@font-face {
  font-family: 'Montserrat';
  font-style: italic;
  font-display: swap;
  font-weight: 800;
  src: url(/assets/montserrat-vietnamese-800-italic-BC8uifLA.woff2) format('woff2'), url(/assets/montserrat-vietnamese-800-italic-BdG6-4mc.woff) format('woff');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* montserrat-latin-ext-800-italic */
@font-face {
  font-family: 'Montserrat';
  font-style: italic;
  font-display: swap;
  font-weight: 800;
  src: url(/assets/montserrat-latin-ext-800-italic-PmsBoPC7.woff2) format('woff2'), url(/assets/montserrat-latin-ext-800-italic--289PRiq.woff) format('woff');
  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;
}

/* montserrat-latin-800-italic */
@font-face {
  font-family: 'Montserrat';
  font-style: italic;
  font-display: swap;
  font-weight: 800;
  src: url(/assets/montserrat-latin-800-italic-DyMN9dWi.woff2) format('woff2'), url(/assets/montserrat-latin-800-italic-9p4-1b3s.woff) format('woff');
  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;
}/* ATURRR design tokens. Every colour, radius, shadow and font in the web
   portals comes from here. Swap the script font by changing --font-script.
   Prompt 2 aliases (--surface-*, --text-muted, semantic status, chart-*, etc.)
   sit alongside the legacy names used by app.css — do not remove the latter. */
:root {
  /* Brand */
  --navy: #0B1B3F;
  --navy-2: #102552;
  --navy-3: #1A3470;
  --navy-deep: #060F26;
  --navy-gradient: linear-gradient(180deg, #0B1B3F 0%, #081533 60%, #060F26 100%);
  --topbar-gradient: linear-gradient(90deg, #0B1B3F 0%, #102552 100%);
  --gold: #D4A23A;
  --gold-light: #F1CF7A;
  --gold-soft: #FBF1DA;
  /* Gold for text on light surfaces (4.9:1 on white). --gold is decoration / on-navy only. */
  --gold-ink: #8A6512;
  --primary: #1E5EFF;
  --primary-hover: #164BD6;
  --primary-soft: #E8EFFF;
  --on-primary: #FFFFFF;

  /* Secondary = brand navy (trustworthy property/finance) */
  --secondary: #0B1B3F;
  --secondary-hover: #102552;
  --secondary-soft: #E8ECF8;
  --on-secondary: #FFFFFF;

  /* Status (legacy names kept for app.css) */
  --green: #15803D; /* AA on white + on --green-soft */
  --green-soft: #DCFCE7;
  --amber: #F59E0B;
  --amber-ink: #B45309;
  --amber-soft: #FEF3C7;
  --red: #E11D48;
  --red-soft: #FFE4E6;
  --blue: #2563EB;
  --blue-soft: #DBEAFE;
  --purple: #7C3AED;
  --purple-soft: #EDE9FE;
  --teal: #0D9488;
  --teal-soft: #CCFBF1;
  --pink: #DB2777;
  --pink-soft: #FCE7F3;
  --grey: #64748B;
  --grey-soft: #EEF2F7;

  /* Semantic status aliases (solid bg ≥4.5:1 with on-*) */
  --success: #15803D;
  --success-soft: #DCFCE7;
  --on-success: #FFFFFF;
  --warning: #B45309;
  --warning-soft: #FEF3C7;
  --on-warning: #FFFFFF;
  --danger: #E11D48;
  --danger-soft: #FFE4E6;
  --on-danger: #FFFFFF;
  --info: #2563EB;
  --info-soft: #DBEAFE;
  --on-info: #FFFFFF;

  /* Surfaces & text */
  --page: #F4F7FC;
  --card: #FFFFFF;
  --card-alt: #F8FAFE;
  --surface-1: var(--page);
  --surface-2: var(--card);
  --surface-3: var(--card-alt);
  --border: #E3E9F3;
  --border-strong: #CBD5E4;
  --text: #0F1B3D;
  --text-2: #4A5878;
  --text-3: #5F6B85; /* 5.2:1 on white, 4.8:1 on --page */
  --text-muted: var(--text-3);
  --on-navy: #E6ECFA;
  --on-navy-2: #9FB0D6;

  /* Shape — legacy + Prompt 2 named radii */
  --radius: 14px;
  --radius-sm: 10px;
  --radius-xs: 7px;
  --radius-pill: 999px;
  --radius-8: 8px;
  --radius-12: 12px;
  --radius-16: 16px;
  --radius-24: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 27, 61, 0.05);
  --shadow: 0 2px 10px rgba(15, 27, 61, 0.06), 0 1px 2px rgba(15, 27, 61, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 27, 61, 0.10), 0 2px 6px rgba(15, 27, 61, 0.05);
  --shadow-lg: 0 18px 50px rgba(11, 27, 63, 0.18);
  --shadow-focus: 0 0 0 3px color-mix(in srgb, var(--primary) 35%, transparent);

  /* Spacing — legacy gaps + 4/8 scale */
  --gap: 18px;
  --gap-sm: 12px;
  --gap-lg: 24px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --sidebar-w: 248px;
  --sidebar-w-collapsed: 76px;
  --topbar-h: 64px;

  /* Type — Inter for EN + BM */
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-script: 'Great Vibes', 'Brush Script MT', cursive;
  --text-xs: 0.75rem;    /* 12 */
  --text-sm: 0.875rem;   /* 14 */
  --text-md: 1rem;       /* 16 */
  --text-lg: 1.125rem;   /* 18 */
  --text-xl: 1.25rem;    /* 20 */
  --text-2xl: 1.5rem;    /* 24 */
  --text-3xl: 1.875rem;  /* 30 */
  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.65;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* Chart palette (categorical) — legacy + Prompt 2 */
  --c1: #1E5EFF;
  --c2: #16A34A;
  --c3: #F59E0B;
  --c4: #EC4899;
  --c5: #7C3AED;
  --c6: #0EA5E9;
  --c7: #64748B;
  --chart-1: #1E5EFF;
  --chart-2: #F59E0B;
  --chart-3: #7C3AED;
  --chart-4: #16A34A;
  --chart-5: #EC4899;
  --chart-6: #0EA5E9;

  /* Motion */
  --duration-fast: 120ms;
  --duration-normal: 200ms;
  --duration-slow: 320ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

  /* Breakpoints (for JS / container queries; media queries still use literals) */
  --bp-sm: 640px;
  --bp-md: 768px;
  --bp-lg: 1024px;
  --bp-xl: 1280px;

  /* Z-index scale */
  --z-base: 0;
  --z-sticky: 20;
  --z-dropdown: 50;
  --z-overlay: 80;
  --z-modal: 100;
  --z-toast: 120;
  --z-command: 140;

  /* Touch */
  --touch-min: 44px;

  color-scheme: light;
}

:root[data-theme='dark'] {
  --page: #0A1328;
  --card: #111D3A;
  --card-alt: #0E1932;
  --surface-1: var(--page);
  --surface-2: var(--card);
  --surface-3: var(--card-alt);
  --border: #22335C;
  --border-strong: #2E4273;
  --text: #E8EEFB;
  --text-2: #AFBCDA;
  --text-3: #9AABD0;
  --text-muted: var(--text-3);
  --primary-soft: #16295A;
  --secondary-soft: #162447;
  --grey-soft: #1A2749;
  --green-soft: #0F3A26;
  --amber-soft: #3F2E0B;
  --red-soft: #45101F;
  --blue-soft: #132C5E;
  --purple-soft: #2A1C52;
  --teal-soft: #0D3532;
  --pink-soft: #43122C;
  --gold-soft: #3A2E12;
  --success-soft: #0F3A26;
  --warning-soft: #3F2E0B;
  --danger-soft: #45101F;
  --info-soft: #132C5E;
  --success: #22C55E;
  --on-success: #052E16;
  --warning: #FBBF24;
  --on-warning: #422006;
  --danger: #FB7185;
  --on-danger: #4C0519;
  --info: #60A5FA;
  --on-info: #082F49;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.35), 0 1px 2px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-fast: 0ms;
    --duration-normal: 0ms;
    --duration-slow: 0ms;
  }
}
/* Base + component styles. Components reference these class names; tokens
   live in tokens.css. */
*,
*::before,
*::after { box-sizing: border-box; }

html, body, #root { height: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; color: var(--text); }
h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: 17px; font-weight: 700; }
h3 { font-size: 15px; font-weight: 700; }
p { margin: 0; }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: 14px; color: var(--text); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- utility ---------- */
.row { display: flex; align-items: center; gap: var(--gap-sm); }
.row-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap-sm); }
.col { display: flex; flex-direction: column; gap: var(--gap-sm); }
.spacer { flex: 1; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); font-size: 15px; }
.small { font-size: 15px; }
.strong { font-weight: 700; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.script { font-family: var(--font-script); color: var(--gold); font-weight: 400; }
.grid { display: grid; gap: var(--gap); }
.grid-2 { display: grid; gap: var(--gap); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { display: grid; gap: var(--gap); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { display: grid; gap: var(--gap); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
.split-wide { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr) 380px; align-items: start; }
@media (max-width: 1180px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .split-wide { grid-template-columns: minmax(0, 1fr); }
}
.mt { margin-top: var(--gap); }
.mt-sm { margin-top: var(--gap-sm); }
.mb { margin-bottom: var(--gap); }
.divider { height: 1px; background: var(--border); margin: 12px 0; border: 0; }
.internal-label {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; letter-spacing: .02em;
  color: var(--red); background: var(--red-soft); border-radius: var(--radius-pill); padding: 3px 10px;
}

/* ---------- card ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  min-width: 0;
}
.card.flush { padding: 0; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.card-head h2, .card-head h3 { flex: 1; }
.card-head .sub { color: var(--text-2); font-size: 12.5px; font-weight: 400; }
.card.flush .card-head { padding: 16px 18px 0; }

/* ---------- layout ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w);
  background: var(--navy-gradient); color: var(--on-navy);
  display: flex; flex-direction: column; z-index: 30;
  transition: width .18s ease;
}
.sidebar.collapsed { width: var(--sidebar-w-collapsed); }
.sidebar-logo { padding: 16px 18px 10px; display: flex; align-items: center; gap: 10px; min-height: 72px; }
.sidebar-nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 6px 10px 12px; scrollbar-width: thin; scrollbar-color: #24396e transparent; }
.nav-item {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 9px 12px; border-radius: 10px; border: 0; background: transparent;
  color: var(--on-navy); font-size: 14px; font-weight: 500; cursor: pointer; text-align: left;
  text-decoration: none;
}
.nav-item:hover { background: rgba(255, 255, 255, 0.07); text-decoration: none; }
.nav-item.active { background: var(--primary); color: #fff; }
.nav-item .nav-label { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-item .chev { opacity: .7; transition: transform .15s; }
.nav-item .chev.open { transform: rotate(90deg); }
.nav-children { margin: 2px 0 6px 22px; padding-left: 12px; border-left: 1px solid rgba(255,255,255,.14); }
.nav-child {
  display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px;
  color: var(--on-navy-2); font-size: 13px; text-decoration: none;
}
.nav-child:hover { color: #fff; background: rgba(255,255,255,.06); text-decoration: none; }
.nav-child.active { color: #fff; background: rgba(30, 94, 255, .85); }
.nav-sep { height: 1px; background: rgba(255,255,255,.1); margin: 8px 6px; }
.nav-badge {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
  background: var(--red); color: #fff; font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.sidebar.collapsed .nav-label, .sidebar.collapsed .chev, .sidebar.collapsed .nav-children,
.sidebar.collapsed .skyline-card, .sidebar.collapsed .wordmark { display: none; }
.sidebar.collapsed .nav-item { justify-content: center; }
.sidebar-foot { padding: 0 12px 14px; flex: 0 0 auto; }
.collapse-btn { flex: 0 0 auto; }
.sidebar-logo { flex: 0 0 auto; }
.collapse-btn {
  margin: 0 12px 10px; background: rgba(255,255,255,.06); border: 0; color: var(--on-navy-2);
  border-radius: 8px; padding: 6px; cursor: pointer; display: flex; justify-content: center;
}
.main { flex: 1; margin-left: var(--sidebar-w); min-width: 0; display: flex; flex-direction: column; transition: margin .18s ease; }
.main.wide { margin-left: var(--sidebar-w-collapsed); }
.content { padding: 22px 26px 40px; flex: 1; min-width: 0; }

/* skyline card */
.skyline-card {
  position: relative; border-radius: 14px; overflow: hidden; height: 150px;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, #0f2250 0%, #0a1839 55%, #060f26 100%);
  border: 1px solid rgba(212,162,58,.25);
}
.skyline-card svg.skyline { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 84px; }
.skyline-card.art-only { height: 96px; }
.skyline-card .slogan {
  position: relative; z-index: 1; padding: 12px 12px 0 14px; max-height: 58px; overflow: hidden;
  font-family: var(--font-script); color: var(--gold-light); font-size: 23px; line-height: 1.1;
  text-shadow: 0 2px 10px rgba(0,0,0,.4);
}

/* topbar */
.topbar {
  position: sticky; top: 0; z-index: 20; height: var(--topbar-h);
  display: flex; align-items: center; gap: 16px; padding: 0 22px;
}
.topbar.navy { background: var(--topbar-gradient); color: var(--on-navy); }
.topbar.light { background: var(--card); border-bottom: 1px solid var(--border); color: var(--text); height: 76px; }
.topbar .search {
  flex: 1; min-width: 240px; max-width: 560px; display: flex; align-items: center; gap: 10px;
  padding: 0 14px; height: 40px; border-radius: 10px;
}
.topbar.navy .search { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); }
.topbar.light .search { background: var(--page); border: 1px solid var(--border); }
.topbar .search input { flex: 1; background: transparent; border: 0; outline: none; color: inherit; }
.topbar.navy .search input::placeholder { color: var(--on-navy-2); }
.topbar .kbd { font-size: 11px; border: 1px solid rgba(255,255,255,.25); border-radius: 5px; padding: 1px 6px; opacity: .8; }
.topbar .icon-btn { position: relative; background: transparent; border: 0; color: inherit; cursor: pointer; padding: 6px; border-radius: 8px; }
.topbar .icon-btn:hover { background: rgba(127,127,127,.12); }
.topbar .icon-btn .dot {
  position: absolute; top: -2px; right: -4px; min-width: 18px; height: 18px; border-radius: 9px;
  background: var(--red); color: #fff; font-size: 10.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.topbar .user { display: flex; align-items: center; gap: 10px; cursor: pointer; background: transparent; border: 0; color: inherit; padding: 4px 6px; border-radius: 10px; text-align: left; }
.topbar .user:hover { background: rgba(127,127,127,.1); }
.topbar .user .name { font-weight: 700; font-size: 13.5px; }
.topbar .user .role { font-size: 12px; opacity: .75; }
.topbar .slogan { font-family: var(--font-script); color: var(--gold); font-size: 19px; line-height: 1.05; max-width: 220px; text-align: right; }
.topbar .quote { font-style: italic; color: var(--text-2); font-size: 14px; max-width: 280px; text-align: center; }
.topbar .title-block h1 { font-size: 24px; }
.topbar .title-block p { color: var(--text-2); font-size: 13.5px; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); background: var(--card); color: var(--text); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); min-width: 220px; padding: 6px; z-index: 50; }
.menu button, .menu a { display: flex; width: 100%; gap: 10px; align-items: center; padding: 9px 10px; background: none; border: 0; border-radius: 8px; color: var(--text); cursor: pointer; font-size: 13.5px; text-align: left; }
.menu button:hover, .menu a:hover { background: var(--page); text-decoration: none; }
.menu .menu-head { padding: 8px 10px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.popover { position: relative; }
.popover-panel { position: absolute; right: 0; top: calc(100% + 8px); width: 360px; max-height: 440px; overflow: auto; background: var(--card); color: var(--text); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); z-index: 60; }
.popover-panel .pp-head { display: flex; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--border); font-weight: 700; }
.popover-panel .pp-item { display: block; padding: 10px 14px; border-bottom: 1px solid var(--border); color: var(--text); font-size: 13px; }
.popover-panel .pp-item:hover { background: var(--page); text-decoration: none; }
.popover-panel .pp-item.unread { background: var(--primary-soft); }

.banner-warn { background: var(--amber-soft); color: var(--amber-ink); border-bottom: 1px solid #f7d58a; padding: 8px 22px; font-size: 13px; display: flex; gap: 8px; align-items: center; }
.banner-info { background: var(--primary-soft); color: var(--primary); border-radius: 10px; padding: 10px 14px; font-size: 13px; display: flex; gap: 10px; align-items: flex-start; }
.banner-danger { background: var(--red-soft); color: var(--red); border-radius: 10px; padding: 10px 14px; font-size: 13px; display: flex; gap: 10px; align-items: flex-start; }
.banner-success { background: var(--green-soft); color: var(--green); border-radius: 10px; padding: 10px 14px; font-size: 13px; display: flex; gap: 10px; align-items: flex-start; }
.banner-amber { background: var(--amber-soft); color: var(--amber-ink); border-radius: 10px; padding: 10px 14px; font-size: 13px; display: flex; gap: 10px; align-items: flex-start; }

@media (max-width: 1100px) {
  .topbar .slogan, .topbar .quote { display: none; }
}

/* ---------- page header ---------- */
.page-header { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-header .ph-text { flex: 1; min-width: 260px; }
.page-header .ph-sub { color: var(--text-2); margin-top: 4px; font-size: 14.5px; }
.page-header .ph-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.breadcrumb { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--text-2); margin-bottom: 6px; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-2); }
.breadcrumb .current { color: var(--text); font-weight: 700; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent;
  font-size: 16px; font-weight: 600; cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background .12s, border-color .12s, box-shadow .12s;
}
.btn:hover { text-decoration: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--primary-hover); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover:not(:disabled) { background: var(--navy-3); }
.btn-outline { background: var(--card); color: var(--primary); border-color: #b9ccff; }
.btn-outline:hover:not(:disabled) { background: var(--primary-soft); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover:not(:disabled) { background: var(--grey-soft); color: var(--text); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover:not(:disabled) { filter: brightness(.95); }
.btn-danger-soft { background: var(--red-soft); color: var(--red); }
.btn-success { background: var(--green); color: #fff; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-sm { height: 40px; padding: 0 12px; font-size: 15px; border-radius: 8px; }
.btn-xs { height: 36px; padding: 0 10px; font-size: 14px; border-radius: 7px; gap: 5px; }
.btn-icon { width: 34px; padding: 0; height: 34px; }
.btn-block { width: 100%; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .field-label { font-size: 16px; font-weight: 600; color: var(--text); }
.hint, .field .hint { font-size: 15px; color: var(--text-3); margin: 0; }
.field .err { font-size: 15px; color: var(--red); }
.input, .select, .textarea {
  width: 100%; height: 44px; padding: 0 12px; border-radius: 10px; font-size: 16px;
  border: 1px solid var(--border-strong); background: var(--card); outline: none;
}
.select { appearance: none; padding-right: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234A5878' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; }
.textarea { height: auto; min-height: 88px; padding: 10px 12px; resize: vertical; line-height: 1.45; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(30,94,255,.12); }
.input:disabled, .select:disabled, .textarea:disabled { background: var(--grey-soft); color: var(--text-2); }
.input-sm { height: 40px; font-size: 15px; }
.input-group { display: flex; align-items: stretch; }
.input-group .addon { display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--border-strong); border-right: 0; border-radius: 10px 0 0 10px; background: var(--grey-soft); color: var(--text-2); }
.input-group .input { border-radius: 0 10px 10px 0; }
.form-grid { display: grid; gap: 14px 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
.checkbox { display: inline-flex; align-items: flex-start; gap: 8px; cursor: pointer; font-size: 13.5px; }
.checkbox input { margin-top: 2px; accent-color: var(--primary); width: 16px; height: 16px; }
.radio-list { display: flex; flex-direction: column; gap: 8px; }

/* toggle */
.toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle .track { width: 40px; height: 22px; border-radius: 11px; background: var(--border-strong); position: relative; transition: background .15s; flex: 0 0 auto; }
.toggle .track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .15s; }
.toggle input:checked + .track { background: var(--primary); }
.toggle input:checked + .track::after { transform: translateX(18px); }
.toggle input:disabled + .track { opacity: .5; }
.toggle input:focus-visible + .track { outline: 2px solid var(--primary); outline-offset: 2px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.toggle-row:last-child { border-bottom: 0; }
.toggle-row .tr-text { flex: 1; }
.toggle-row .tr-title { font-weight: 600; font-size: 13.5px; }
.toggle-row .tr-sub { font-size: 12px; color: var(--text-3); }

/* ---------- stat card ---------- */
.stats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); margin-bottom: 18px; }
.stat {
  display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--border); min-width: 0;
  text-align: left; color: inherit; font: inherit; width: 100%;
}
button.stat, a.stat { cursor: pointer; text-decoration: none; }
button.stat:hover, a.stat:hover { border-color: var(--primary); }
.stat.tint-blue { background: var(--primary-soft); }
.stat.tint-green { background: var(--green-soft); }
.stat.tint-amber { background: var(--amber-soft); }
.stat.tint-red { background: var(--red-soft); }
.stat.tint-purple { background: var(--purple-soft); }
.stat.tint-teal { background: var(--teal-soft); }
.stat.tint-gold { background: var(--gold-soft); }
.stat.tint-grey { background: var(--grey-soft); }
:root[data-theme='dark'] .stat { background: var(--card) !important; }
.stat .s-body { min-width: 0; flex: 1; }
.stat .s-label { font-size: 15px; font-weight: 600; color: var(--text); }
.stat .s-value { font-size: 23px; font-weight: 800; letter-spacing: -0.02em; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.stat .s-hint { font-size: 15px; color: var(--text-2); }
.stat .faint { color: var(--text-2); }
.delta { font-size: 12.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 2px; }
.delta.up { color: var(--green); }
.delta.down { color: var(--red); }
.delta.flat { color: var(--text-3); }

/* tinted icon circle */
.icircle { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.icircle.solid { color: #fff; }
.tone-blue { --tone: var(--primary); --tone-soft: var(--blue-soft); }
/* --success (not --green) so soft pills meet 4.5:1 on --green-soft */
.tone-green { --tone: var(--success); --tone-soft: var(--green-soft); }
.tone-amber { --tone: var(--amber); --tone-soft: var(--amber-soft); }
.tone-red { --tone: var(--red); --tone-soft: var(--red-soft); }
.tone-purple { --tone: var(--purple); --tone-soft: var(--purple-soft); }
.tone-teal { --tone: var(--teal); --tone-soft: var(--teal-soft); }
.tone-gold { --tone: var(--gold); --tone-soft: var(--gold-soft); }
.tone-grey { --tone: var(--grey); --tone-soft: var(--grey-soft); }
.tone-pink { --tone: var(--pink); --tone-soft: var(--pink-soft); }
.tone-navy { --tone: var(--navy); --tone-soft: var(--grey-soft); }
.icircle.solid { background: var(--tone); }
.icircle.soft { background: var(--tone-soft); color: var(--tone); }

/* ---------- pill / badge ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px;
  border-radius: 7px; font-size: 12px; font-weight: 600; white-space: nowrap;
  background: var(--tone-soft); color: var(--tone);
}
.pill.dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.round { border-radius: var(--radius-pill); }
.pill.upper { text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 700; }
.pill.solid { background: var(--tone); color: #fff; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong); background: var(--card); color: var(--text-2); font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.chip.suggest { border-style: dashed; border-color: var(--purple); color: var(--purple); background: var(--purple-soft); cursor: default; }

/* avatar */
.avatar {
  flex: 0 0 auto; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; overflow: hidden; background: var(--primary);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.blank { background: #fff; border: 1.5px solid var(--border); }
.photo-btn { border: 0; padding: 0; background: transparent; border-radius: 50%; cursor: pointer; line-height: 0; }
.photo-btn:disabled { opacity: 0.6; cursor: progress; }
.photo-view { align-items: center; justify-content: center; background: rgba(6, 15, 38, .72); padding: 24px; }
.photo-view-frame { position: relative; line-height: 0; }
.photo-view-frame img { display: block; max-width: min(920px, calc(100vw - 48px)); max-height: calc(100vh - 80px); width: auto; height: auto; object-fit: contain; border-radius: 12px; background: #fff; }
.photo-view-close { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #fff; color: var(--navy); cursor: pointer; display: grid; place-items: center; }
.user-id { display: flex; flex-direction: column; border: 0; background: transparent; color: inherit; padding: 0; text-align: left; cursor: pointer; font: inherit; }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 14px; overflow-x: auto; scrollbar-width: none; }
.tab {
  background: none; border: 0; padding: 10px 14px; font-size: 14px; font-weight: 600; color: var(--text-2);
  border-bottom: 2.5px solid transparent; cursor: pointer; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab .count { color: inherit; opacity: .8; font-weight: 500; }
.tab .count::before { content: '('; }
.tab .count::after { content: ')'; }
.tabs.pills { border: 0; gap: 8px; }
.tabs.pills .tab { border: 1px solid var(--border); border-radius: 10px; background: var(--card); padding: 9px 16px; }
.tabs.pills .tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- stepper ---------- */
.stepper { display: flex; align-items: flex-start; }
.step { flex: 1; display: flex; flex-direction: column; align-items: center; position: relative; text-align: center; min-width: 0; }
.step::before { content: ''; position: absolute; top: 15px; left: calc(-50% + 18px); right: calc(50% + 18px); height: 3px; background: var(--border); border-radius: 2px; }
.step:first-child::before { display: none; }
.step.done::before, .step.current::before { background: var(--primary); }
.step .dot {
  width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--grey-soft); color: var(--text-3); font-weight: 700; font-size: 13px; z-index: 1; border: 2px solid var(--border);
}
.step.done .dot { background: var(--primary); color: #fff; border-color: var(--primary); }
.step.current .dot { background: var(--primary); color: #fff; border-color: #bcd0ff; box-shadow: 0 0 0 4px #dce6ff; }
.step .s-title { margin-top: 8px; font-size: 15px; font-weight: 600; color: var(--text); }
.step.upcoming .s-title { color: var(--text-3); font-weight: 500; }
.step .s-sub { font-size: 11.5px; color: var(--text-3); }
.stepper.compact .dot { width: 24px; height: 24px; font-size: 11px; }
.stepper.compact .step::before { top: 11px; left: calc(-50% + 14px); right: calc(50% + 14px); }
.stepper.compact .s-title { font-size: 14px; margin-top: 4px; }
/* Labels never run into each other: they wrap inside their own column, and in
   a narrow card (Customer 360, side panels) only the current step is named. */
.stepper { container-type: inline-size; width: 100%; }
.step .s-title { padding: 0 3px; line-height: 1.25; overflow-wrap: normal; word-break: normal; hyphens: manual; }
@container (max-width: 640px) {
  .stepper.compact .s-title { font-size: 12px; }
}
@container (max-width: 520px) {
  .stepper .step:not(.current) .s-title, .stepper .step:not(.current) .s-sub { visibility: hidden; height: 0; margin: 0; }
  .stepper .step.current .s-title { white-space: nowrap; overflow: visible; }
  .stepper .step.current:first-child .s-title { align-self: flex-start; }
  .stepper .step.current:last-child .s-title { align-self: flex-end; }
  .stepper:not(:has(.step.current)) .step:last-child .s-title { visibility: visible; height: auto; margin-top: 4px; white-space: nowrap; align-self: flex-end; }
}

/* ---------- table ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.table th {
  text-align: left; font-size: 12.5px; font-weight: 700; color: var(--text); background: var(--card-alt);
  padding: 11px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; position: sticky; top: 0;
}
.table th.sortable { cursor: pointer; user-select: none; }
.table th.sortable:hover { color: var(--primary); }
.table td { padding: 11px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr.clickable { cursor: pointer; }
.table tbody tr:hover td { background: #f7faff; }
:root[data-theme='dark'] .table tbody tr:hover td { background: #1A2230; }
.table tbody tr.selected td { background: var(--primary-soft); }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table .check { width: 36px; }
.table-foot { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--border); flex-wrap: wrap; font-size: 13px; color: var(--text-2); }
.pager { display: flex; gap: 6px; align-items: center; }
.pager button { min-width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border); background: var(--card); cursor: pointer; font-weight: 600; color: var(--text); }
.pager button.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pager button:disabled { opacity: .4; cursor: default; }
.bulkbar { display: flex; align-items: center; gap: 10px; padding: 8px 14px; background: var(--primary-soft); color: var(--primary); font-weight: 600; font-size: 13px; }
.cell-person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cell-person .cp-name { font-weight: 600; }
.cell-person .cp-sub { font-size: 12px; color: var(--text-3); }

/* skeleton */
.skel { background: linear-gradient(90deg, var(--grey-soft) 25%, #f7f9fd 50%, var(--grey-soft) 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 6px; height: 14px; }
:root[data-theme='dark'] .skel { background: linear-gradient(90deg, #1D2531 25%, #242C38 50%, #1D2531 75%); background-size: 200% 100%; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* filter bar */
.filterbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 14px; }
.filterbar .search-input { position: relative; flex: 1 1 220px; min-width: 200px; }
.filterbar .search-input svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--text-3); }
.filterbar .search-input .input { padding-left: 34px; }
.filterbar .select, .filterbar .input { width: auto; min-width: 140px; height: 38px; font-size: 13px; }

/* date range */
.daterange { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border-strong); border-radius: 10px; padding: 0 10px; height: 38px; background: var(--card); color: var(--text-2); position: relative; }
.daterange input[type='date'] { border: 0; background: transparent; font-size: 13px; color: var(--text); outline: none; width: 122px; }
.daterange .dr-presets { display: flex; gap: 4px; }

/* ---------- drawer / modal ---------- */
.overlay { position: fixed; inset: 0; background: rgba(6, 15, 38, .45); z-index: 90; display: flex; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.drawer { margin-left: auto; height: 100%; width: 460px; max-width: 100vw; background: var(--card); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: slide .18s ease; }
.drawer.wide { width: 640px; }
@keyframes slide { from { transform: translateX(40px); opacity: .6; } to { transform: none; opacity: 1; } }
.drawer-head, .modal-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.drawer-head h2, .modal-head h2 { flex: 1; font-size: 17px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px; }
.drawer-foot, .modal-foot { padding: 14px 18px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.modal { margin: auto; background: var(--card); border-radius: 16px; box-shadow: var(--shadow-lg); width: 560px; max-width: calc(100vw - 32px); max-height: calc(100vh - 48px); display: flex; flex-direction: column; animation: pop .15s ease; }
.modal.lg { width: 820px; }
.modal.sm { width: 420px; }
.modal-body { padding: 18px; overflow-y: auto; }
@keyframes pop { from { transform: scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }

/* toast */
.toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 120; }
.toast { min-width: 280px; max-width: 420px; background: var(--navy); color: #fff; border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow-lg); display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; animation: pop .15s; }
.toast.error { background: #8f1233; }
.toast.success { background: #0f5f33; }

/* empty/error */
.empty { padding: 40px 20px; text-align: center; color: var(--text-2); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty .e-title { font-weight: 700; color: var(--text); font-size: 15px; }
.status-wrap { display: flex; justify-content: center; padding: 12px 0 24px; }
.status-card { width: min(560px, 100%); margin: 24px auto; }
.status-page .empty, .status-card .empty { font-size: 16px; line-height: 1.45; }
.status-page .empty .e-title, .status-card .empty .e-title { font-size: 22px; }
.offline-cover { position: fixed; inset: 0; z-index: 90; overflow: auto; background: var(--page); }


/* key value */
.kv { display: grid; grid-template-columns: minmax(110px, 40%) 1fr; gap: 8px 14px; font-size: 13.5px; }
.kv dt { color: var(--text-2); }
.kv dd { margin: 0; font-weight: 500; min-width: 0; overflow-wrap: anywhere; }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 16px 26px; }
.timeline li::before { content: ''; position: absolute; left: 7px; top: 16px; bottom: 0; width: 2px; background: var(--border); }
.timeline li:last-child::before { display: none; }
.timeline .t-dot { position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--tone-soft); border: 3px solid var(--tone); }
.timeline .t-title { font-weight: 600; font-size: 13.5px; }
.timeline .t-sub { font-size: 12.5px; color: var(--text-2); }
.timeline .t-time { font-size: 11.5px; color: var(--text-3); }

/* file row */
.filerow { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); }
.filerow .f-name { font-weight: 600; font-size: 13.5px; }
.filerow .f-meta { font-size: 12px; color: var(--text-3); }

/* chart card */
.chart-legend { display: flex; flex-direction: column; gap: 8px; font-size: 13px; min-width: 0; }
.chart-legend .lg-row { display: flex; align-items: center; gap: 8px; }
.chart-legend .lg-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }
.chart-legend .lg-label { flex: 1; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chart-legend .lg-val { font-weight: 700; font-variant-numeric: tabular-nums; }
.donut-wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: center; }
.donut-wrap .chart-legend { min-width: 170px; }
.donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.donut-center .dc-value { font-size: 24px; font-weight: 800; }
.donut-center .dc-label { font-size: 12px; color: var(--text-2); }
.funnel-row { display: grid; grid-template-columns: 130px 1fr 56px; align-items: center; gap: 10px; font-size: 13px; padding: 5px 0; }
.funnel-row .bar-bg { height: 14px; background: var(--grey-soft); border-radius: 7px; overflow: hidden; }
.funnel-row .bar { height: 100%; border-radius: 7px; }
.funnel-row a { color: var(--text-2); }
.progress { height: 8px; border-radius: 4px; background: var(--grey-soft); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 4px; background: var(--green); }

/* list rows */
.list { display: flex; flex-direction: column; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); min-width: 0; }
.list-row:last-child { border-bottom: 0; }
a.list-row { color: inherit; }
a.list-row:hover { text-decoration: none; background: var(--card-alt); }

/* kanban */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.kcol { background: var(--card-alt); border: 1px solid var(--border); border-radius: 14px; display: flex; flex-direction: column; min-height: 300px; }
.kcol-head { padding: 12px 14px; border-radius: 14px 14px 0 0; background: var(--tone-soft); border-bottom: 1px solid var(--border); }
.kcol-head .kc-title { font-weight: 700; display: flex; gap: 8px; }
.kcol-head .kc-count { margin-left: auto; color: var(--tone); font-weight: 800; }
.kcol-body { padding: 10px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; max-height: 640px; }
.kcard { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px; box-shadow: var(--shadow-sm); cursor: pointer; display: flex; flex-direction: column; gap: 6px; text-align: left; font: inherit; color: inherit; }
.kcard:hover { border-color: var(--primary); }

/* chat */
.chat { display: flex; flex-direction: column; gap: 12px; }
.bubble { max-width: 76%; padding: 10px 13px; border-radius: 14px; font-size: 13.5px; background: var(--grey-soft); white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble.me { margin-left: auto; background: var(--primary-soft); }
.bubble.note { background: var(--amber-soft); border: 1px dashed var(--amber); margin-left: auto; margin-right: auto; }
.bubble.system { margin: 0 auto; background: transparent; border: 1px solid var(--border); color: var(--text-2); font-size: 12.5px; border-radius: 999px; padding: 6px 14px; }
.bubble .b-meta { font-size: 11.5px; color: var(--text-3); margin-bottom: 3px; font-weight: 600; }

/* phone preview */
.phone { width: 250px; height: 500px; border-radius: 36px; background: #0b1020; padding: 12px; margin: 0 auto; box-shadow: var(--shadow-lg); }
.phone-screen { width: 100%; height: 100%; border-radius: 26px; background: #f4f7fc; overflow: hidden; position: relative; display: flex; flex-direction: column; }
.phone-top { background: var(--navy); color: #fff; padding: 12px 14px 10px; font-weight: 800; letter-spacing: .12em; font-size: 13px; display: flex; align-items: center; gap: 6px; }

/* misc */
.logo-mark { display: inline-flex; }
.wordmark { display: flex; flex-direction: column; line-height: 1; }
.wordmark .wm-name { font-size: 22px; font-weight: 800; letter-spacing: .14em; color: #fff; }
.wordmark .wm-sub { font-size: 9px; letter-spacing: .38em; color: var(--gold-light); margin-top: 4px; }
.welcome {
  position: relative; overflow: hidden; border-radius: var(--radius); padding: 22px 24px; margin-bottom: 18px;
  background: linear-gradient(100deg, #fff 35%, #e7efff 100%); border: 1px solid var(--border); box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
:root[data-theme='dark'] .welcome { background: var(--card); }
.welcome h1 { font-size: 30px; }
.welcome svg.w-sky { position: absolute; right: 0; bottom: 0; height: 100%; opacity: .5; pointer-events: none; }
.count-tile { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--card); color: inherit; }
.count-tile:hover { border-color: var(--primary); text-decoration: none; }
.count-tile .ct-num { font-size: 22px; font-weight: 800; }
.count-tile .ct-label { font-size: 12.5px; color: var(--text-2); }
.qr-box { background: #fff; padding: 10px; border-radius: 12px; border: 1px solid var(--border); display: inline-block; }
.media-card { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--card); display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.media-card .mc-img { height: 140px; background: linear-gradient(135deg, #1a3470, #0b1b3f); position: relative; display: flex; align-items: center; justify-content: center; color: var(--gold-light); }
.media-card .mc-img img { width: 100%; height: 100%; object-fit: cover; }
.media-card .mc-tag { position: absolute; top: 8px; left: 8px; }
.media-card .mc-tag-r { position: absolute; top: 8px; right: 8px; }
.media-card .mc-body { padding: 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.cards-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.center-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--navy-gradient); }
.auth-card { width: 420px; max-width: 100%; background: var(--card); border-radius: 18px; padding: 28px; box-shadow: var(--shadow-lg); }
.auth-brand { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 20px; }
.face-verify-frame {
  position: relative; width: 100%; aspect-ratio: 1; border-radius: 18px; overflow: hidden;
  background: #0b1b3f; border: 1px solid var(--border);
}
.face-verify-media { width: 100%; height: 100%; object-fit: cover; display: block; }
.face-verify-media.mirror { transform: scaleX(-1); }
.face-verify-oval {
  pointer-events: none; position: absolute; inset: 10%;
  border-radius: 50%; border: 2px solid rgba(212, 175, 55, 0.85);
  box-shadow: 0 0 0 999px rgba(11, 27, 63, 0.45);
}
.face-verify-wait {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 1;
}
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--primary); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.full-center { min-height: 60vh; display: flex; align-items: center; justify-content: center; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-left: 1px solid var(--border); border-top: 1px solid var(--border); }
.cal-grid .cal-h { padding: 8px; font-size: 12px; font-weight: 700; color: var(--text-2); background: var(--card-alt); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cal-cell { min-height: 108px; padding: 6px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--card); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-cell.other { background: var(--card-alt); color: var(--text-3); }
.cal-cell.today .cal-day { background: var(--primary); color: #fff; }
.cal-day { font-size: 12px; font-weight: 700; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.cal-ev { font-size: 11.5px; padding: 2px 6px; border-radius: 5px; background: var(--tone-soft); color: var(--tone); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 0; text-align: left; cursor: pointer; }
.perm-table td, .perm-table th { padding: 7px 8px !important; }
.lang-tabs { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.lang-tabs button { border: 0; background: var(--card); padding: 5px 10px; font-size: 12px; font-weight: 700; cursor: pointer; color: var(--text-2); }
.lang-tabs button.active { background: var(--primary); color: #fff; }
.pane3 { display: grid; grid-template-columns: 340px minmax(0, 1fr) 300px; gap: var(--gap); align-items: stretch; }
@media (max-width: 1280px) { .pane3 { grid-template-columns: 300px minmax(0, 1fr); } .pane3 > :nth-child(3) { grid-column: 1 / -1; } }
.thread-item { display: flex; gap: 10px; padding: 12px; border-bottom: 1px solid var(--border); cursor: pointer; background: none; border-left: 3px solid transparent; width: 100%; text-align: left; font: inherit; color: inherit; }
.thread-item.compact { padding: 10px 12px; gap: 8px; }
.thread-item:hover { background: var(--card-alt); }
.thread-item.active { background: var(--primary-soft); border-left-color: var(--primary); }

/* Banker Ping Centre — two panes by default; case panel on demand */
.ping-desk { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.ping-layout { display: grid; grid-template-columns: minmax(260px, 320px) minmax(0, 1fr); gap: 12px; align-items: stretch; min-height: calc(100dvh - 200px); }
.ping-layout.with-details { grid-template-columns: minmax(240px, 280px) minmax(0, 1fr) minmax(240px, 280px); }
.ping-list, .ping-thread, .ping-empty { display: flex; flex-direction: column; min-height: 0; max-height: calc(100dvh - 200px); }
.ping-list-tools { padding: 10px 12px; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.ping-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ping-list-scroll { overflow-y: auto; flex: 1; min-height: 0; }
.ping-thread-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.ping-chat { flex: 1; overflow-y: auto; padding: 12px; min-height: 0; }
.ping-composer { padding: 10px 12px; border-top: 1px solid var(--border); }
.ping-composer-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.ping-composer-actions .link-btn { padding: 0; align-self: flex-start; }
.ping-details { padding: 12px 14px; overflow-y: auto; max-height: calc(100dvh - 200px); }
.ping-empty { justify-content: center; min-height: 360px; }
@media (max-width: 1100px) {
  .ping-layout, .ping-layout.with-details { grid-template-columns: 1fr; }
  .ping-list { max-height: 280px; }
  .ping-details { max-height: none; }
}
.skyline-bg { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 260px; pointer-events: none; }

/* Short screens: the nav matters more than the art. */
@media (max-height: 860px) { .sidebar-foot { display: none; } }

/* Portal sign-in: founder hero beside the card on wide screens (config/brand). */
.login-page { gap: 48px; }
.login-hero { display: block; position: relative; width: 420px; max-width: 42vw; aspect-ratio: 9 / 14; border-radius: 22px; overflow: hidden; }
.login-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.login-hero-text { position: absolute; inset: auto 0 0 0; padding: 22px; display: flex; flex-direction: column; gap: 8px; background: linear-gradient(180deg, transparent, rgba(11, 27, 63, .92) 45%); }
.link-btn { background: none; border: 0; padding: 4px; color: var(--primary); cursor: pointer; text-decoration: underline; align-self: center; }
.link-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

/* Team: 7 role cards, one row on wide screens, 2-4 per row below. */
.role-cards { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
@media (min-width: 1500px) { .role-cards { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.role-cards .stat { text-align: left; }

/* ---------- phones & small tablets: off-canvas navigation ---------- */
.menu-btn { display: none; }
.sidebar-scrim { display: none; }
@media (max-width: 900px) {
  .menu-btn { display: inline-flex; }
  .sidebar { width: min(300px, 86vw); transform: translateX(-105%); transition: transform .2s ease; box-shadow: var(--shadow-lg); }
  .sidebar.collapsed { width: min(300px, 86vw); }
  .sidebar.collapsed .nav-label, .sidebar.collapsed .chev, .sidebar.collapsed .skyline-card, .sidebar.collapsed .wordmark { display: initial; }
  .sidebar.mobile-open { transform: none; }
  .sidebar .collapse-btn { display: none; }
  .sidebar-scrim { display: block; position: fixed; inset: 0; background: rgba(7, 18, 48, .45); z-index: 29; }
  .main, .main.wide { margin-left: 0; }
  .topbar { padding: 0 12px; gap: 8px; }
  .topbar .search { min-width: 0; flex: 1; }
  .topbar .user .name, .topbar .user .role, .topbar .kbd, .topbar .pp-id { display: none; }
  .content { padding: 16px 12px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2, .grid-3, .grid-4, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .page-header .ph-text { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) { .sidebar { transition: none; } }
@media (max-width: 900px) {
  .topbar .search { min-width: 0; }
  .card-head { flex-wrap: wrap; }
  .card-head > :last-child:not(:first-child) { margin-left: auto; }
}
@media (max-width: 600px) {
  /* Search lives on each list page; on phones the bar keeps menu, ID, bell and avatar only. */
  .topbar .search { display: none; }
  .topbar .spacer { flex: 1; }
  .card-head > :last-child:not(:first-child) { flex-basis: 100%; margin-left: 0; }
}

.topbar .kbd { white-space: nowrap; }
@media (max-width: 1180px) { .topbar .kbd { display: none; } }

/* Long IDs (AT-2026-00005) never wrap. */
.mono-id, td.col-id, .col-id { white-space: nowrap; font-variant-numeric: tabular-nums; }
.topbar.light .slogan, .card .script, .page .script { color: var(--gold-ink); }
/* KPI tiles: labels on one line so baselines line up; currency never splits. */
.stat { align-items: flex-start; }
@media (min-width: 901px) { .stat .s-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } }
.stat .s-value { white-space: nowrap; }
.delta.flat { color: var(--text-3); }
.delta-vs { font-weight: 500; color: var(--text-3); margin-left: 3px; }
@media (max-width: 1500px) { .delta-vs { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

/* Page header on phones: title above actions, never squeezed beside them. */
.page-header h1 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 1.85rem); line-height: 1.15; }
@media (max-width: 640px) {
  .page-header { flex-direction: column; align-items: stretch; gap: 10px; }
  .page-header .ph-actions { width: 100%; }
  .page-header .ph-actions > .btn { flex: 1 1 auto; justify-content: center; }
}

/* Tabs scroll sideways on narrow screens with an edge fade as the hint. */
@media (max-width: 900px) {
  .tabs { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 24px; }
  .tabs .tab { flex: 0 0 auto; white-space: nowrap; }
}

/* Tables become stacked cards on phones (labels from the column headers). */
@media (max-width: 640px) {
  .table-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table-stack, .table-stack tbody, .table-stack tr, .table-stack td { display: block; width: 100%; }
  .table-stack tr { border: 1px solid var(--border); border-radius: 12px; margin: 0 0 10px; padding: 8px 12px; background: var(--card); }
  .table-stack td { border: 0 !important; padding: 5px 0 !important; text-align: left !important; display: flex; gap: 12px; justify-content: space-between; align-items: baseline; }
  .table-stack td[data-label]::before { content: attr(data-label); color: var(--text-3); font-size: 12px; font-weight: 600; flex: 0 0 40%; }
  .table-stack td.check { display: none; }
  .table-stack td[colspan] { display: block; }
  .table-wrap { overflow: visible; }
}

/* Admin dashboard: design 15 density on desktop. */
@media (min-width: 1280px) {
  .dash .welcome h1 { font-size: 26px; }
  .dash .stats { gap: 12px; margin-bottom: 14px; }
  .dash .stat { padding: 12px; }
  .dash .stat .s-value { font-size: 21px; }
  .dash .stat .s-label { font-size: 12.5px; }
  .dash .card { padding: 14px 16px; }
  .dash .card .table th, .dash .card .table td { font-size: 12.5px; padding: 8px 10px; }
  .dash .grid { gap: 14px; margin-bottom: 14px !important; }
  .dash .list-row { font-size: 13px; }
}
.dash .quick-tile .s-body .strong { font-size: 14px; }
.dash .quick-tile .s-body .faint { font-size: 12px; }
@media (max-width: 1100px) {
  .dash .grid { grid-template-columns: minmax(0, 1fr) !important; }
}
.more-filters { position: relative; }
.more-filters-pop {
  position: absolute; z-index: 25; top: calc(100% + 6px); left: 0; width: min(360px, 90vw);
  background: var(--card); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg);
  padding: 14px; display: grid; gap: 10px;
}
.more-filters-pop .select { width: 100%; }
.pc-ids { display: grid; grid-template-columns: auto auto; column-gap: 12px; row-gap: 6px; margin: 0; align-items: center; font-size: 13px; }
.pc-ids dt { color: var(--text-3); font-weight: 600; }
.pc-ids dd { margin: 0; display: flex; align-items: center; gap: 8px; }
/* Focus on inputs: a solid 2px ring (#1E5EFF is 4.9:1 on white), not just a faint glow. */
.input:focus-visible, .select:focus-visible, .textarea:focus-visible, .search-input .input:focus-visible {
  outline: 2px solid var(--primary); outline-offset: 1px; box-shadow: 0 0 0 4px rgba(30,94,255,.15);
}
.dash .table .pill { white-space: nowrap; }
@media (max-width: 1599px) { .dash .wide-only { display: none; } }
.landing-tile { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); color: var(--text); text-decoration: none; min-width: 0; }
.landing-tile:hover { border-color: var(--primary); text-decoration: none; }
.landing-tile .strong { color: var(--primary); overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- public legal pages */
.legal-page { min-height: 100vh; background: var(--page); color: var(--text); }
.legal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 24px; background: var(--navy); }
.legal-head-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.legal-langs { display: flex; gap: 6px; flex-wrap: wrap; }
.legal-langs button { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; min-height: 32px; }
.legal-langs button.active { background: #fff; color: var(--navy); }
.legal-langs button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.legal-print {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; min-height: 32px;
}
.legal-layout {
  display: grid; grid-template-columns: minmax(160px, 220px) minmax(0, 760px); gap: 28px;
  max-width: 1040px; margin: 0 auto; padding: 28px 20px 64px; align-items: start;
}
.legal-toc {
  position: sticky; top: 16px;
  padding: 14px 16px; border-radius: var(--radius-12);
  background: var(--card); border: 1px solid var(--border);
}
.legal-toc-label { margin: 0 0 8px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.legal-toc ol { margin: 0; padding-left: 18px; }
.legal-toc a { color: var(--text-2); text-decoration: none; font-size: 13.5px; line-height: 1.45; }
.legal-toc a:hover { color: var(--primary); }
.legal-main { max-width: 760px; margin: 0; padding: 0; line-height: 1.65; color: var(--text); }
.legal-main h1 { font-size: 28px; margin: 0 0 8px; color: var(--text); }
.legal-main h2 { font-size: 20px; margin: 28px 0 4px; color: var(--text); scroll-margin-top: 24px; }
.legal-main h3 { font-size: 16px; margin: 18px 0 4px; color: var(--text); }
.legal-main p { margin: 8px 0; }
.legal-list { margin: 6px 0 10px; padding-left: 22px; }
.legal-section {
  background: var(--card); border-radius: 12px; padding: 4px 20px 16px; margin-top: 18px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
}
.legal-links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; font-size: 14px; }
.legal-main a { color: var(--primary); }
@media (max-width: 860px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
}
@media (max-width: 640px) { .legal-main h1 { font-size: 23px; } .legal-section { padding: 2px 14px 12px; } }
@media print {
  .legal-head, .legal-toc, .legal-print, .legal-links { display: none !important; }
  .legal-layout { display: block; padding: 0; }
  .legal-section { box-shadow: none; border: 0; break-inside: avoid; }
}

/* Work Inbox lists */
.inbox-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.inbox-list li + li { border-top: 1px solid var(--line, #E5E9F2); }
.inbox-list a { display: flex; gap: 10px; align-items: baseline; justify-content: space-between; padding: 9px 2px; color: inherit; text-decoration: none; min-height: 44px; }
.inbox-list a:hover, .inbox-list a:focus-visible { background: var(--surface-2, #F5F7FB); }
.text-danger { color: var(--danger, #B91C1C); }

/* Password strength meter */
.pw-meter { display: flex; flex-direction: column; gap: 8px; margin: -6px 0 0; }
.pw-meter-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pw-meter-seg { height: 6px; border-radius: 999px; background: var(--border); }
.pw-meter-seg.on[data-score="1"] { background: #B91C1C; }
.pw-meter-seg.on[data-score="2"] { background: #B45309; }
.pw-meter-seg.on[data-score="3"],
.pw-meter-seg.on[data-score="4"] { background: #15803D; }
.pw-meter-bar { display: none; }

/* Coming-soon card (agent portal) */
.soon-card { border: 1px dashed var(--gold-ink, #8A6512); background: linear-gradient(180deg, #FFFBF0, #fff); }
.soon-icon { font-size: 24px; line-height: 1; }

/* Guided two-step verification */
.tfa-card { width: 520px; max-width: calc(100vw - 32px); }
.tfa-head { background: var(--navy); margin: -28px -28px 20px; padding: 20px; border-radius: inherit; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.tfa-card { overflow: hidden; }
.tfa-steps { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.tfa-step { display: flex; gap: 12px; }
.tfa-num { flex: 0 0 28px; height: 28px; border-radius: 50%; background: var(--navy, #0B1F4B); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.tfa-step.done .tfa-num { background: #15803D; }
.tfa-body { flex: 1; min-width: 0; }
.tfa-title { font-size: 15px; margin: 3px 0 6px; }
.tfa-apps { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.tfa-apps li { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tfa-manual summary { cursor: pointer; color: var(--blue, #1E5EFF); min-height: 32px; display: flex; align-items: center; }
.legal-draft { background: #FFF7E6; border-left: 3px solid #B45309; padding: 8px 12px; border-radius: 6px; color: #7A3E00; font-size: 14px; }
.onboard-steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.onboard-steps li { padding-left: 4px; }
.onboard-steps li > span { display: block; }


/* Document photo guide. Flat panels, brand colours, no drop shadows. */
.photo-guide { border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); padding: 16px 18px; }
.photo-guide h2 { font-size: 18px; font-weight: 700; }
.photo-guide > p { margin: 6px 0 12px; color: var(--text-2); }
.photo-guide ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.photo-guide li { display: flex; gap: 10px; align-items: flex-start; }
.photo-guide strong { display: block; font-size: 16px; }
.photo-guide span { display: block; color: var(--text-2); font-size: 15px; }
.photo-mark { width: 72px; height: 56px; flex: none; }

@media (max-width: 900px) {
  .login-page { flex-direction: column; }
  .login-hero { width: min(420px, 100%); max-width: none; max-height: 420px; }
}

/* Customer sign-up: photo on the left, form on a light page. */
.web-login { height: 100dvh; min-height: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 28px; padding: 20px 32px; background: var(--page); }
.web-login-photo.login-hero { align-self: center; flex: none; width: auto; max-width: none; height: min(calc(100dvh - 48px), 680px); aspect-ratio: 720 / 1280; margin: 0; border-radius: 22px; }
.web-login-photo.login-hero img { width: 100%; height: 100%; object-fit: contain; object-position: center center; background: #070d18; }
.web-login .checkbox { display: flex; align-items: center; gap: 10px; width: 100%; font-size: 16px; line-height: 1.4; }
.web-login .checkbox input { width: 18px; height: 18px; margin: 0; flex: none; }
.web-login-main { display: contents; }
.web-login-form { flex: 0 1 380px; min-width: 260px; max-width: 400px; }
.web-login .photo-guide { flex: 1 1 260px; min-width: 220px; max-width: 340px; }
.web-login-form h1 { font-size: 24px; }
.web-login-form .muted { margin-top: 4px; }
.web-login-phone { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 10px; align-items: start; }
.web-login .photo-guide { padding: 12px 14px; }
.web-login .photo-guide h2 { font-size: 16px; }
.web-login .photo-guide > p { margin: 4px 0 8px; font-size: 14px; }
.web-login .photo-guide ol { grid-template-columns: 1fr; gap: 8px; }
.web-login .photo-guide strong { font-size: 15px; }
.web-login .photo-guide span { font-size: 14px; line-height: 1.35; }
.web-login .photo-mark { width: 44px; height: 34px; }
@media (max-width: 980px) {
  .web-login { height: auto; min-height: 100dvh; overflow: visible; flex-direction: column; justify-content: flex-start; gap: 20px; padding: 16px; }
  .web-login-photo.login-hero { width: min(100% - 32px, 320px); max-width: none; height: auto; max-height: 46vh; margin: 0 auto; }
  .web-login-main { display: flex; flex-direction: column; gap: 20px; width: min(100%, 460px); }
  .web-login-form, .web-login .photo-guide { flex: none; max-width: none; width: 100%; }
}

/* Customer website: top bar and page, not the staff sidebar. */
.site { min-height: 100vh; background: var(--page); display: flex; flex-direction: column; }
.site-bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 8px 20px; background: #fff; border-bottom: 1px solid var(--border); }
.site-logo { text-decoration: none; flex: none; }
.site-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.site-nav a, .site-nav .site-drop > button { color: var(--text); text-decoration: none; font-weight: 600; font-size: 14px; padding: 6px 10px; border-radius: 8px; border: 0; background: transparent; cursor: pointer; font-family: inherit; }
.site-nav a.active, .site-nav .site-drop > button.active { background: var(--primary-soft); color: var(--primary-hover); }
.site-nav a:hover, .site-nav .site-drop > button:hover { text-decoration: none; background: var(--page); }
.site-drop { position: relative; }
.site-drop .menu { left: 0; right: auto; min-width: 200px; }
.site-account { margin-left: auto; display: flex; align-items: center; gap: 8px; color: var(--text); }
.site-bar.role { flex-wrap: wrap; background: var(--card); color: var(--text); }
.site-bar.role .site-nav { flex: 1 0 100%; order: 3; padding-top: 4px; }
.site-nav-menu a { font-size: 15px; font-weight: 600; }
.role-site .site-main { width: auto; max-width: none; margin: 0; padding: 22px 26px 40px; }
.role-site .site-foot, .site-bar.role .site-menu { background: var(--card); color: var(--text); }

.site-count { margin-left: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.site-search { display: flex; align-items: center; gap: 6px; flex: 1 1 180px; min-width: 140px; max-width: 320px; padding: 7px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--page); }
.site-search input { flex: 1; min-width: 0; width: 100%; border: 0; outline: none; background: transparent; color: var(--text); font: inherit; font-size: 14px; }
.site-account .pp-id { padding: 4px 10px; border-radius: 10px; background: var(--page); border: 1px solid var(--border); }
.site-account .pp-id .pp-id-main { font-size: 13px; letter-spacing: 0.01em; }
.site-account .pp-id .pp-id-sub { font-size: 11px; }
.site-account .icon-btn { position: relative; background: transparent; border: 0; color: inherit; cursor: pointer; padding: 6px; border-radius: 8px; }
.site-account .icon-btn:hover { background: rgba(127,127,127,.12); }
.site-account .icon-btn .dot { position: absolute; top: -2px; right: -4px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--red); color: #fff; font-size: 10.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.site-account .user { display: flex; align-items: center; gap: 10px; cursor: pointer; background: transparent; border: 0; color: inherit; padding: 4px 6px; border-radius: 10px; text-align: left; }
.site-account .user .name { font-weight: 700; font-size: 15px; }
.site-account .user .role { font-size: 13px; opacity: .75; }
.site-menu { display: none; }
.site-main { width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 28px 0 48px; flex: 1; }
.profile-sheet { width: min(640px, 100%); margin: 0 auto; }
.enquiry-sheet { width: min(640px, 100%); margin: 16px auto 0; display: flex; flex-direction: column; gap: 20px; }
.session-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.session-row p { margin-top: 4px; color: var(--text-2); font-size: 15px; line-height: 1.45; }
.session-row .btn { flex: 0 0 auto; }
.site-foot { padding: 28px 28px 22px; border-top: 1px solid var(--border); color: var(--text-2); font-size: 15px; background: #fff; }
.site-foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 24px; }
.site-foot-cols h2 { margin: 0 0 10px; font-size: 18px; color: var(--navy); }
.site-foot-cols a, .site-foot-cols p { display: block; margin: 0 0 8px; }
.site-foot-cols p span { display: block; margin-top: 2px; }
.site-foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--border); }
.site-foot .script { color: var(--gold-ink); }
:root[data-theme='dark'] .site-foot .script { color: var(--gold-light); }
.site-foot-base a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
:root[data-theme='dark'] .site-foot-base a { color: var(--gold-light); }
.site-services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.site-service { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; min-height: 96px; padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: #fff; color: var(--navy); text-decoration: none; }
.site-service:hover { text-decoration: none; border-color: var(--primary); }
.site-service span { color: var(--primary); font-weight: 600; font-size: 15px; }
@media (max-width: 1100px) {
  .site-bar { flex-wrap: wrap; padding: 10px 16px; }
  .site-foot { padding: 22px 16px; }
  .site-foot-cols { grid-template-columns: 1fr 1fr; }
  .site-menu { display: inline-flex; margin-left: auto; height: 40px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--border); background: #fff; font: inherit; font-weight: 600; cursor: pointer; }
  .site-account { margin-left: 0; min-width: 0; }
  .site-nav { display: none; width: 100%; order: 3; }
  .site-nav.open { display: flex; flex-direction: column; align-items: stretch; padding-bottom: 8px; }
  .site-nav.open .site-drop .menu { position: static; width: 100%; box-shadow: none; }
  .site-main { width: min(1120px, calc(100% - 32px)); }
  .role-site .site-main { width: auto; padding: 16px 16px 32px; }
  .site-services { grid-template-columns: 1fr 1fr; }
  .login-page { flex-direction: column; }
  .login-hero { width: min(420px, 100%); max-width: none; max-height: 360px; }
}
@media (max-width: 640px) {
  .site-services { grid-template-columns: 1fr; }
  .site-foot-cols { grid-template-columns: 1fr; }
  .site-main { width: min(1120px, calc(100% - 24px)); padding-top: 18px; }
  .role-site .site-main { width: auto; padding: 16px 12px 32px; }
  .site-logo .wm-name { font-size: 16px; letter-spacing: .08em; }
  .site-logo .wm-sub { display: none; }
  .site-account .user .name { max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .profile-sheet { width: 100%; }
  .enquiry-sheet { width: 100%; margin-top: 12px; }
  .session-row { flex-direction: column; align-items: stretch; }
  .session-row .btn { width: 100%; }
  .popover-panel { width: min(360px, calc(100vw - 20px)); }
  .menu { max-width: calc(100vw - 20px); }
  .auth-card { padding: 22px 16px; }
  .center-page { padding: 16px; }
  .content { padding: 16px 12px 32px; }
  .stats { grid-template-columns: 1fr; }
  .site-main img, .legal-main img, .content img { max-width: 100%; height: auto; }
}

.learn-list { display: flex; flex-direction: column; gap: 10px; }
.learn-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); color: inherit; text-decoration: none; }
.learn-row:hover { border-color: #b9ccff; background: var(--primary-soft); }
.learn-row-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.learn-row-title { font-size: 16px; font-weight: 700; color: var(--text); }
.learn-row-sub { font-size: 14px; line-height: 1.4; color: var(--text-2); }
.learn-row > svg { flex: 0 0 auto; color: var(--text-3); }
.learn-article { display: flex; flex-direction: column; gap: 14px; }
.learn-article p, .learn-article li { font-size: 16px; line-height: 1.55; }
.learn-lead { color: var(--text-2); }
.learn-article ol { margin: 0; padding-left: 1.25em; display: flex; flex-direction: column; gap: 8px; }

.face-review-list { display: flex; flex-direction: column; gap: 12px; }
.face-review-row { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.face-review-row:last-child { border-bottom: 0; }
.face-review-thumb { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; background: var(--card-alt); flex: none; display: flex; align-items: center; justify-content: center; font-size: 12px; }

/* —— Public marketing homepage (/) + /verify —— */
.mkt {
  --mkt-max: 1080px;
  --mkt-pad: clamp(18px, 4vw, 40px);
  min-height: 100dvh;
  background: var(--page);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
}
.mkt ::selection { background: color-mix(in srgb, var(--gold) 45%, transparent); color: var(--navy); }
.mkt-bar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--mkt-pad);
  background: color-mix(in srgb, var(--page) 86%, transparent);
  backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid var(--border);
}
.mkt-logo { text-decoration: none; color: inherit; flex: none; }
.mkt-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: 14px; font-weight: 600; }
.mkt-nav a { color: var(--text-2); text-decoration: none; }
.mkt-nav a:hover { color: var(--text); }
.mkt-nav a[aria-current="page"] { color: var(--navy); }
:root[data-theme='dark'] .mkt-nav a[aria-current="page"] { color: var(--gold-light); }
.mkt-nav a.btn-navy,
.mkt-nav a.btn-primary {
  background: var(--navy); color: #fff; border-color: transparent;
}
.mkt-nav a.btn-navy:hover,
.mkt-nav a.btn-primary:hover { background: var(--navy-3); color: #fff; }
.mkt-theme {
  width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--card); color: var(--text);
  display: grid; place-items: center; cursor: pointer;
}
.mkt-theme:hover { border-color: var(--border-strong); }
.mkt-theme:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Hero: full-bleed media plane + brand-first copy */
.mkt-hero-bleed {
  position: relative;
  min-height: min(88vh, 760px);
  display: flex; align-items: flex-end;
  color: var(--on-navy);
  overflow: hidden;
  background: var(--navy-deep);
}
.mkt-hero-plane { position: absolute; inset: 0; }
.mkt-hero-plane img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 18%;
  display: block;
  animation: mkt-rise .9s cubic-bezier(.16,1,.3,1) both;
}
.mkt-hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 15, 38, 0.35) 0%, rgba(6, 15, 38, 0.72) 48%, rgba(6, 15, 38, 0.92) 100%),
    linear-gradient(90deg, rgba(6, 15, 38, 0.55) 0%, transparent 55%);
}
.mkt-hero-copy {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(40px, 8vw, 88px) var(--mkt-pad) clamp(36px, 6vw, 64px);
  max-width: 40rem;
  width: 100%;
}
.mkt-brand {
  margin: 0 0 6px;
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  color: #fff;
  animation: mkt-rise .7s cubic-bezier(.16,1,.3,1) both;
}
.mkt-script { color: var(--gold-light); font-size: clamp(26px, 3vw, 34px); margin: 0 0 14px; line-height: 1.1; animation: mkt-rise .7s .06s cubic-bezier(.16,1,.3,1) both; }
.mkt-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
  font-weight: 650;
  color: #fff;
  text-wrap: balance;
  animation: mkt-rise .7s .1s cubic-bezier(.16,1,.3,1) both;
}
.mkt-lead { margin: 0 0 22px; font-size: 1.05rem; line-height: 1.55; color: var(--on-navy-2); max-width: 36em; }
.mkt-hero .mkt-lead { color: color-mix(in srgb, #fff 78%, var(--on-navy-2)); animation: mkt-rise .7s .16s cubic-bezier(.16,1,.3,1) both; }
.mkt-cta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.mkt-hero .mkt-cta { animation: mkt-rise .7s .22s cubic-bezier(.16,1,.3,1) both; }
.mkt-hero .btn-navy,
.mkt-hero .btn-primary {
  background: #ffffff; color: #0B1B3F; border-color: transparent;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}
.mkt-hero .btn-navy:hover,
.mkt-hero .btn-primary:hover { background: var(--gold-light); color: #0B1B3F; }
.mkt-hero .btn-outline {
  background: transparent; color: #fff; border-color: color-mix(in srgb, #fff 35%, transparent);
}
.mkt-hero .btn-outline:hover { background: color-mix(in srgb, #fff 10%, transparent); }
.mkt-credit { margin: 18px 0 0; font-size: 13px; color: var(--on-navy-2); letter-spacing: .02em; }
.mkt-disclaimer {
  margin: 0; padding: 14px var(--mkt-pad);
  text-align: center; font-size: 13.5px; color: var(--text-3);
  border-bottom: 1px solid var(--border); background: var(--card);
}

.mkt-section { padding: clamp(48px, 8vw, 88px) var(--mkt-pad); max-width: var(--mkt-max); margin: 0 auto; }
.mkt-section-head { margin-bottom: 28px; max-width: 36rem; }
.mkt-section-head h2,
.mkt-section > h2 {
  margin: 0 0 8px;
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  letter-spacing: -0.025em;
  font-weight: 750;
  color: var(--text);
}
.mkt-section-head p,
.mkt-section > p { margin: 0; color: var(--text-2); font-size: 1.02rem; }

/* Services as hairline list — not card grid */
.mkt-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.mkt-list li {
  display: grid; grid-template-columns: 1fr auto; gap: 16px 24px; align-items: baseline;
  padding: 22px 0; border-bottom: 1px solid var(--border);
}
.mkt-list h3 { margin: 0 0 6px; font-size: 1.1rem; letter-spacing: -0.01em; }
.mkt-list p { margin: 0; color: var(--text-2); font-size: .98rem; max-width: 48rem; }
.mkt-list a { font-weight: 700; font-size: 14px; color: var(--navy); text-decoration: none; white-space: nowrap; }
:root[data-theme='dark'] .mkt-list a { color: var(--gold-light); }
.mkt-list a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* How-it-works horizontal stepper */
.mkt-stepper {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px;
}
.mkt-stepper li {
  position: relative;
  padding-top: 8px;
  border-top: 2px solid var(--border);
}
.mkt-stepper-i {
  position: absolute; top: -17px; left: 0;
  width: 32px; height: 32px; border-radius: 999px;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 800;
  background: var(--navy); color: #fff;
  box-shadow: 0 0 0 4px var(--page);
}
:root[data-theme='dark'] .mkt-stepper-i { background: var(--gold); color: var(--navy); }
.mkt-stepper h3 { margin: 22px 0 6px; font-size: 1.05rem; }
.mkt-stepper p { margin: 0; color: var(--text-2); font-size: .95rem; }

.mkt-teaser-row {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;
}
.mkt-teaser {
  display: flex; flex-direction: column; gap: 8px;
  padding: 22px 22px 24px;
  border-radius: var(--radius-16);
  border: 1px solid var(--border);
  background:
    radial-gradient(120% 80% at 100% 0%, color-mix(in srgb, var(--gold) 18%, transparent), transparent 55%),
    var(--card);
  text-decoration: none; color: inherit;
  transition: transform var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal) var(--ease-out);
}
.mkt-teaser:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); text-decoration: none; }
.mkt-teaser-kicker {
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink);
}
:root[data-theme='dark'] .mkt-teaser-kicker { color: var(--gold-light); }
.mkt-teaser strong { font-size: 1.15rem; letter-spacing: -0.01em; }
.mkt-teaser span:last-child { color: var(--text-2); font-size: .95rem; }

.mkt-trust-list {
  list-style: none; margin: 0 0 18px; padding: 0;
  display: grid; gap: 0; border-top: 1px solid var(--border);
}
.mkt-trust-list li { padding: 18px 0; border-bottom: 1px solid var(--border); max-width: 40rem; }
.mkt-trust-list h3 { margin: 0 0 6px; font-size: 1.05rem; }
.mkt-trust-list p { margin: 0; color: var(--text-2); }

.mkt-text-link { font-weight: 700; color: var(--navy); text-decoration: none; }
:root[data-theme='dark'] .mkt-text-link { color: var(--gold-light); }
.mkt-text-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.mkt-faq { display: flex; flex-direction: column; border-top: 1px solid var(--border); max-width: 720px; }
.mkt-faq-item { border-bottom: 1px solid var(--border); }
.mkt-faq-q {
  width: 100%; text-align: left; padding: 16px 0;
  background: transparent; border: 0; font: inherit; font-weight: 700;
  color: var(--text); cursor: pointer;
  display: flex; justify-content: space-between; gap: 16px; align-items: baseline;
}
.mkt-faq-q:hover { color: var(--navy); }
:root[data-theme='dark'] .mkt-faq-q:hover { color: var(--gold-light); }
.mkt-faq-mark { font-size: 1.25rem; font-weight: 500; color: var(--text-3); line-height: 1; }
.mkt-faq-a { margin: 0 0 16px; padding: 0; color: var(--text-2); font-size: .98rem; line-height: 1.55; max-width: 58ch; }

.mkt-contact { text-align: left; }
.mkt-contact .mkt-cta { margin-top: 18px; }
.mkt-hours { margin: 14px 0 0; font-size: 13px; color: var(--text-3); }

.mkt-foot {
  border-top: 1px solid var(--border);
  padding: 40px var(--mkt-pad) 56px;
  background: var(--card);
}
.mkt-foot-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 28px;
  max-width: var(--mkt-max); margin: 0 auto;
}
.mkt-foot h2 {
  font-size: 11px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--text-3); margin: 0 0 12px; font-weight: 700;
}
.mkt-foot a { display: block; color: var(--text-2); text-decoration: none; font-size: 14px; margin-bottom: 8px; }
.mkt-foot a:hover { color: var(--text); }
.mkt-foot p { margin: 4px 0; font-size: 14px; color: var(--text-3); line-height: 1.45; }
.mkt-foot .script { color: var(--gold-ink); }
:root[data-theme='dark'] .mkt-foot .script { color: var(--gold-light); }

.mkt-verify-main { padding: clamp(36px, 6vw, 64px) var(--mkt-pad) 72px; max-width: 560px; margin: 0 auto; }
.mkt-verify-main h1 { font-size: clamp(1.6rem, 3vw, 2rem); letter-spacing: -0.02em; margin: 0 0 10px; }
.mkt-verify-main .mkt-lead { color: var(--text-2); }
.mkt-verify-tips { margin: 18px 0 28px; padding-left: 1.15em; color: var(--text-2); font-size: 14.5px; line-height: 1.55; }
.mkt-verify-tips code {
  font-size: 13px; background: var(--card-alt); border: 1px solid var(--border);
  padding: 1px 6px; border-radius: 4px;
}
.mkt-verify-form { display: flex; flex-direction: column; gap: 12px; max-width: 420px; }
.mkt-back { margin-top: 28px; font-size: 14px; }
.mkt-back a { color: var(--text-2); }

@keyframes mkt-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mkt-hero-plane img, .mkt-brand, .mkt-script, .mkt-hero h1, .mkt-hero .mkt-lead, .mkt-hero .mkt-cta, .mkt-teaser { animation: none; transition: none; }
}

@media (max-width: 900px) {
  .mkt-hero-bleed { min-height: min(78vh, 640px); }
  .mkt-stepper { grid-template-columns: 1fr 1fr; }
  .mkt-teaser-row { grid-template-columns: 1fr; }
  .mkt-foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .mkt-nav a:not(.btn) { display: none; }
  .mkt-list li { grid-template-columns: 1fr; gap: 10px; }
  .mkt-stepper { grid-template-columns: 1fr; }
  .mkt-foot-grid { grid-template-columns: 1fr; }
}

/* Auth chrome — centered card */
.auth-center { position: relative; overflow: hidden; }
.auth-atmos {
  position: absolute; inset: 0; pointer-events: none;
  opacity: 0.18; filter: saturate(0.85);
}
.auth-atmos img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.auth-card-lift { position: relative; z-index: 1; animation: mkt-rise .55s var(--ease-out) both; }
.auth-brand-pad {
  background: var(--navy); margin: -28px -28px 20px; padding: 22px 20px;
  border-radius: 18px 18px 0 0;
}
.auth-title { font-size: 22px; margin: 0 0 6px; letter-spacing: -0.02em; }
.auth-lead { margin: 8px 0 18px; }
.auth-meta { margin-bottom: 14px; }
.auth-stack { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 16px; width: min(100%, 420px); }
.auth-steps {
  list-style: none; display: flex; gap: 8px; margin: 0 0 16px; padding: 0; flex-wrap: wrap;
}
.auth-steps li {
  flex: 1; min-width: 72px; text-align: center;
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--text-3); padding: 8px 6px; border-radius: 999px; background: var(--card-alt); border: 1px solid var(--border);
}
.auth-steps li.active { color: var(--navy); border-color: var(--primary); background: var(--primary-soft); }
.auth-steps li.done { color: var(--success); border-color: color-mix(in srgb, var(--success) 35%, var(--border)); }
:root[data-theme='dark'] .auth-steps li.active { color: var(--gold-light); }
.face-guide { margin: 0 0 12px; padding-left: 1.1em; color: var(--text-2); font-size: 13.5px; line-height: 1.45; }
.mkt-verify-steps { max-width: 360px; }
.web-login-phone { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 10px; align-items: start; }

/* Customer shell bottom nav */
.site-shell { padding-bottom: 0; }
.site-bottom {
  display: none;
  position: fixed; inset: auto 0 0 0; z-index: 40;
  background: var(--card); border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom, 0);
  box-shadow: 0 -6px 24px rgba(11, 27, 63, 0.06);
}
.site-bottom a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; min-height: 58px; padding: 6px 2px;
  color: var(--text-3); text-decoration: none; font-size: 10px; font-weight: 600;
}
.site-bottom a.active { color: var(--primary); }
@media (max-width: 860px) {
  .site-bottom { display: flex; }
  .site-shell .site-main { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  .site-shell .site-foot { display: none; }
}

.case-next {
  padding: 12px 14px; border-radius: var(--radius-12);
  background: var(--primary-soft); border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--border));
}
.case-next-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); margin-bottom: 4px; }
.case-next p { margin: 0 0 8px; color: var(--text); }
.case-timeline { max-width: 520px; }

.calc-sync { display: flex; flex-direction: column; gap: 8px; }
.calc-sync input[type="range"] {
  width: 100%; accent-color: var(--primary); height: 28px;
}
.calc-sync-input { display: flex; align-items: center; gap: 8px; }
.calc-sync-input .input, .calc-sync-input input { flex: 1; }

.ask-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.ask-chip {
  border: 1px solid var(--border); background: var(--card-alt); color: var(--text-2);
  border-radius: var(--radius-pill); padding: 8px 12px; font: inherit; font-size: 13px; cursor: pointer;
}
.ask-chip:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.ask-chip:disabled { opacity: 0.6; cursor: not-allowed; }
.ask-bubble {
  padding: 14px 16px; border-radius: 16px; border: 1px solid var(--border); background: var(--card);
}
.ask-bubble-user { background: var(--primary-soft); border-color: color-mix(in srgb, var(--primary) 20%, var(--border)); }
.ask-bubble-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
.ask-bubble strong { display: block; margin-bottom: 6px; }
.ask-bubble p { margin: 0; color: var(--text-2); }

.checklist-item {
  padding: 14px; border-radius: var(--radius-12); border: 1px solid var(--border); background: var(--card);
}
.file-drop-zone {
  margin-top: 12px; width: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 18px 14px; border-radius: var(--radius-12);
  border: 1.5px dashed var(--border-strong); background: var(--card-alt);
  color: var(--text-2); cursor: pointer; font: inherit; text-align: center;
}
.file-drop-zone:hover:not(:disabled), .file-drop-zone:focus-visible {
  border-color: var(--primary); background: var(--primary-soft); outline: none;
}
.file-drop-zone.busy { opacity: 0.7; cursor: wait; }
.file-drop-title { font-weight: 700; color: var(--text); font-size: 14px; }
.file-drop-hint { font-size: 12.5px; color: var(--text-3); }

.status-wrap-full { min-height: 70vh; align-items: center; }
.status-branded { text-align: center; }
.status-brand { display: flex; justify-content: center; margin-bottom: 12px; }
.status-slogan { margin-top: 18px; color: var(--gold-ink); font-size: 22px; }
:root[data-theme='dark'] .status-slogan { color: var(--gold-light); }

.changelog-page { min-height: 100dvh; background: var(--page); color: var(--text); }
.changelog-head {
  padding: 28px 20px 8px; max-width: 720px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.changelog-script { margin: 0; color: var(--gold-ink); font-size: 22px; }
:root[data-theme='dark'] .changelog-script { color: var(--gold-light); }
.changelog-main { max-width: 720px; margin: 0 auto; padding: 12px 20px 64px; }
.changelog-main h1 { margin: 12px 0 8px; letter-spacing: -0.02em; }
.changelog-entry {
  margin-top: 28px; padding: 18px 20px; border-radius: var(--radius-16);
  background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.changelog-entry h2 { margin: 0 0 10px; font-size: 1.05rem; }
.changelog-entry ul { margin: 0; padding-left: 1.15em; color: var(--text-2); }
.changelog-links { margin-top: 28px; }

.pw-wrap { position: relative; display: block; width: 100%; }
.pw-wrap .input { padding-right: 46px; width: 100%; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--text-3); cursor: pointer; }
.pw-eye:hover { color: var(--text); background: rgba(127,127,127,.1); }
.pw-eye:focus-visible { outline: 2px solid var(--gold, #F2B64A); outline-offset: 1px; }

/* Page error card (2 Nov 2026) */
.pe-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--page, #F6F8FC); }
.pe-card { width: 440px; max-width: 100%; background: var(--card, #fff); border: 1px solid var(--line, #E3E8F2); border-radius: 20px; padding: 32px 28px 28px; box-shadow: 0 24px 48px -32px rgba(1, 42, 104, .35); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; font-family: Montserrat, system-ui, sans-serif; }
.pe-card .pe-logo { margin-bottom: 4px; }
.pe-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: color-mix(in srgb, #EA983A 14%, transparent); color: #C26A12; }
.pe-card h1 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink, #012A68); line-height: 1.25; }
.pe-card p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--muted, #4A5B78); max-width: 32ch; }
.pe-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
[data-theme='dark'] .pe-wrap { background: #0F141B; }
[data-theme='dark'] .pe-card { background: #171E28; border-color: #242C38; }
[data-theme='dark'] .pe-card h1 { color: #F1F5FB; }
[data-theme='dark'] .pe-card p { color: #A9B7CE; }
[data-theme='dark'] .pe-icon { color: #D9B05C; }

/* Date range: one segmented control with a clear selected state (2 Nov 2026) */
.drp { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.drp-seg { display: inline-flex; align-items: center; gap: 2px; padding: 3px; height: 38px; border-radius: 12px; background: var(--card); border: 1px solid var(--border-strong); }
.drp-seg button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: var(--text-2); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.drp-seg button:hover { background: var(--primary-soft); color: var(--primary); }
.drp-seg button[aria-pressed='true'] { background: #003C87; color: #FFFFFF; box-shadow: 0 2px 6px -2px rgba(1, 42, 104, .45); }
.drp-seg button:focus-visible { outline: 2px solid #0059B8; outline-offset: 1px; }
.drp-custom { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px; border-radius: 12px; background: var(--card); border: 1px solid var(--border-strong); color: var(--text-2); }
.drp-custom label { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.drp-custom label span { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.drp-custom input[type='date'] { border: 0; background: transparent; font: inherit; font-size: 13px; color: var(--text); outline: none; width: 118px; color-scheme: light; }
.drp-arrow { color: var(--text-3); font-size: 13px; }
[data-theme='dark'] .drp-seg button[aria-pressed='true'] { background: #0059B8; }
[data-theme='dark'] .drp-custom input[type='date'] { color-scheme: dark; }
@media (prefers-reduced-motion: reduce) { .drp-seg button { transition: none; } }
@media (max-width: 640px) {
  .drp, .drp-seg { width: 100%; }
  .drp-seg { overflow-x: auto; scrollbar-width: none; }
  .drp-seg button { flex: 1 0 auto; padding: 0 10px; }
  .drp-custom { width: 100%; justify-content: space-between; }
  .drp-custom input[type='date'] { width: 104px; }
}

/* Phones: pin dropdown panels (notifications, language, account) to the screen
   edges so they never spill off the left side, whatever button opened them. */
@media (max-width: 640px) {
  .popover-panel { position: fixed; left: 10px; right: 10px; top: 64px; width: auto; max-width: none; max-height: calc(100dvh - 84px); }
}
/* ATURRR public surfaces (homepage + customer sign-in).
   Editorial direction: warm ivory paper, deep navy ink, restrained gold,
   a classic serif for display, Inter for everything you read or tap.
   Scoped under .lx so the portals keep their own chrome. */

:root {
  /* Palette sampled from the ATURRR team banner */
  --lx-paper: #F6F9FE;
  --lx-paper-2: #EAF2FC;
  --lx-card: #FFFFFF;
  --lx-ink: #012A68;
  --lx-ink-2: #2E4672;
  --lx-ink-3: #5A6C90;
  --lx-line: #DCE6F3;
  --lx-line-strong: #BCCDE4;
  --lx-gold: #F2B64A;
  --lx-gold-ink: #A9580A;
  --lx-gold-soft: #FDF1D8;
  --lx-navy: #003C87;
  --lx-navy-2: #0059B8;
  --lx-on-navy: #EAF2FC;
  --lx-on-navy-2: #B9CCE8;
  --lx-royal: #003C87;
  --lx-royal-2: #0059B8;
  --lx-sky: #86CCFC;
  --lx-grad: linear-gradient(90deg, #F5C758 0%, #EA983A 45%, #E2151A 100%);
  --lx-band-bg: linear-gradient(135deg, #002B58 0%, #003C87 55%, #0059B8 100%);
  --lx-serif: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --lx-sans: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --lx-wrap: 1180px;
  --lx-radius: 18px;
  --lx-band: #003C87;
  --lx-band-ink: #FFFFFF;
  --lx-band-ink-2: #C5D6EE;
  --lx-band-gold: #F5C758;
}
.lx {
  background: var(--lx-paper);
  color: var(--lx-ink);
  font-family: var(--lx-sans);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

:root[data-theme='dark'] {
  /* Same palette, night: deep banner navy ground, white ink, gold accents */
  --lx-paper: #031634;
  --lx-paper-2: #062049;
  --lx-card: #0A2856;
  --lx-ink: #F4F8FF;
  --lx-ink-2: #C3D3EC;
  --lx-ink-3: #8EA4C8;
  --lx-line: #143566;
  --lx-line-strong: #234B85;
  --lx-gold: #F5C758;
  --lx-gold-ink: #F5C758;
  --lx-gold-soft: #2B2410;
  --lx-navy: #001F49;
  --lx-navy-2: #F4F8FF;
  --lx-band: #001A3F;
  --lx-band-bg: linear-gradient(135deg, #00142F 0%, #002B58 60%, #003C87 100%);
  --lx-band-ink: #FFFFFF;
  --lx-band-ink-2: #B9CCE8;
  --lx-band-gold: #F5C758;
}

:where(.lx) a { color: inherit; }
.lx *:focus-visible { outline: 2px solid var(--lx-gold); outline-offset: 3px; border-radius: 6px; }

.lx-wrap { width: 100%; max-width: var(--lx-wrap); margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .lx-wrap { padding: 0 20px; } }

.lx-serif { font-family: var(--lx-serif); font-weight: 800; letter-spacing: -0.01em; }
.lx-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--lx-gold-ink);
}
.lx-kicker::before { content: ''; width: 28px; height: 1px; background: currentColor; opacity: .7; }

/* ---------- buttons ---------- */
.lx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 26px; border-radius: 10px;
  font: 600 15px/1 var(--lx-sans); letter-spacing: .01em;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.lx-btn:active { transform: translateY(1px); }
.lx-btn[disabled] { cursor: not-allowed; opacity: .45; }
:where(.lx, .lx-bar) .lx-btn-ink, .lx-btn-ink { background: var(--lx-royal); color: #FFFFFF; }
.lx-btn-ink:hover:not([disabled]) { background: var(--lx-royal-2); }
:root[data-theme='dark'] .lx-btn-ink { background: #0059B8; color: #FFFFFF; }
:root[data-theme='dark'] .lx-btn-ink:hover:not([disabled]) { background: #1A6FD0; }
.lx-btn-gold { background: #F5C758; color: #012A68; }
.lx-btn-gold:hover { background: #FAD57A; }
.lx-btn-line { background: transparent; color: var(--lx-ink); border-color: var(--lx-line-strong); }
.lx-btn-line:hover { border-color: var(--lx-ink); }
.lx-btn-ghost-light { background: transparent; color: #F4EEE2; border-color: rgba(244, 238, 226, .38); }
.lx-btn-ghost-light:hover { border-color: #F4EEE2; }
.lx-btn-sm { height: 40px; padding: 0 18px; font-size: 14px; border-radius: 9px; }
.lx-btn-block { width: 100%; }
.lx-btn .spinner { border-color: currentColor; border-right-color: transparent; }

.lx-link { color: var(--lx-gold-ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid transparent; }
.lx-link:hover { border-bottom-color: currentColor; }

/* ---------- top bar ---------- */
.lx-bar {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--lx-paper) 97%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--lx-line);
}
.lx-bar-in { display: flex; align-items: center; gap: 28px; height: 76px; }
.lx-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.lx-logo-name { font: 700 17px/1 var(--lx-sans); letter-spacing: .22em; color: var(--lx-ink); }
.lx-logo-sub { display: block; margin-top: 5px; font: 600 9.5px/1 var(--lx-sans); letter-spacing: .34em; color: var(--lx-gold-ink); }
.lx-nav { display: flex; align-items: center; gap: 30px; margin: 0 auto; }
.lx-nav a { font-size: 14.5px; color: var(--lx-ink-2); text-decoration: none; }
.lx-nav a:hover, .lx-nav a[aria-current='page'] { color: var(--lx-ink); }
.lx-bar-end { display: flex; align-items: center; gap: 14px; }
.lx-bar-end .lx-signin { font-size: 14.5px; font-weight: 500; text-decoration: none; color: var(--lx-ink); }
.lx-icon-btn {
  width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 999px;
  background: transparent; border: 1px solid var(--lx-line); color: var(--lx-ink); cursor: pointer;
}
.lx-icon-btn:hover { border-color: var(--lx-line-strong); }
.lx-menu-btn { display: none; }
.lx-drawer {
  position: fixed; inset: 64px 0 0 0; z-index: 29; overflow-y: auto;
  background: var(--lx-paper); border-top: 1px solid var(--lx-line);
  padding: 12px 20px 32px; display: flex; flex-direction: column; gap: 28px;
  animation: lx-drop .22s ease both;
}
.lx-drawer nav { display: flex; flex-direction: column; }
.lx-drawer nav a {
  font-family: var(--lx-serif); font-size: 30px; font-weight: 500; line-height: 1.1;
  color: var(--lx-ink); text-decoration: none; padding: 16px 0; border-bottom: 1px solid var(--lx-line);
}
.lx-drawer-cta { display: grid; gap: 12px; }
.lx-drawer-staff { text-align: center; font-size: 14.5px; color: var(--lx-ink-2); text-decoration: none; padding: 8px; }
@keyframes lx-drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (min-width: 761px) { .lx-drawer { inset: 76px 0 0 0; } }
@media (max-width: 1080px) {
  .lx-nav { gap: 22px; }
  .lx-nav a { font-size: 14px; }
}
/* Use compact navigation before tablet-width links crowd the wordmark. */
@media (max-width: 1100px) {
  .lx-nav, .lx-bar-end .lx-signin { display: none; }
  .lx-bar-end { margin-left: auto; gap: 10px; }
  .lx-menu-btn { display: inline-grid; }
}
@media (max-width: 760px) {
  .lx-bar-in { height: 64px; gap: 12px; }
  .lx-logo-name { font-size: 15px; letter-spacing: .2em; }
  .lx-logo-sub { font-size: 8.5px; }
  .lx-logo svg { width: 28px; height: 28px; }
}
@media (max-width: 420px) {
  .lx-bar-cta { display: none; }
}

/* ---------- hero: banner-style royal band ---------- */
.lx-hero { padding: 72px 0 0; }
.lx-hero-brand { position: relative; overflow: hidden; background: var(--lx-band-bg); color: #FFFFFF; }
.lx-hero-brand::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: var(--lx-paper); }
.lx-stripes { position: absolute; inset: 0; pointer-events: none; }
.lx-stripes::before, .lx-stripes::after { content: ''; position: absolute; transform: rotate(35deg); background: linear-gradient(180deg, #F5C758, #E5AA43); border-radius: 2px; }
/* corner accents only, like the banner's top-left and right edge */
.lx-stripes::before { width: 34px; height: 300px; left: 26px; top: -150px; }
.lx-stripes::after { width: 26px; height: 360px; right: 40px; bottom: 60px; opacity: .9; }
.lx-hero-brand .lx-wrap { position: relative; z-index: 1; }
.lx-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: end; }
.lx-hero-brand .lx-kicker { color: #F5C758; }
.lx-hero h1 {
  font-family: var(--lx-serif); font-weight: 800; color: #FFFFFF;
  font-size: clamp(38px, 5.2vw, 70px); line-height: 1.04; letter-spacing: -0.03em;
  margin: 22px 0 0;
}
.lx-hero h1 em { font-style: italic; background: var(--lx-grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.lx-hero-lead { font-size: 18px; line-height: 1.65; color: #D6E3F5; max-width: 34em; margin: 0; }
.lx-hero-side { padding-bottom: 8px; }
.lx-hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.lx-team { position: relative; z-index: 1; margin: 52px 0 0; padding: 8px; border-radius: 24px; background: linear-gradient(135deg, #F5C758, #EA983A 50%, #F5C758); box-shadow: 0 40px 80px -40px rgba(0, 28, 72, .6); }
.lx-team img { display: block; width: 100%; height: auto; aspect-ratio: 2400 / 1256; border-radius: 17px; }
.lx-hero-note { margin: 22px 0 0; font-size: 13.5px; color: var(--lx-ink-3); display: flex; align-items: center; gap: 10px; position: relative; z-index: 1; }
.lx-hero-note::before { content: ''; width: 6px; height: 6px; border-radius: 99px; background: var(--lx-gold); }
@media (max-width: 960px) {
  .lx-hero { padding-top: 44px; }
  .lx-hero-grid { grid-template-columns: 1fr; gap: 18px; }
  .lx-team { margin-top: 36px; }
  .lx-hero-brand::after { height: 70px; }
  .lx-stripes::before { left: -10px; top: -190px; }
  .lx-stripes::after { bottom: auto; top: -200px; right: -10px; }
}
@media (max-width: 640px) {
  .lx-team { padding: 5px; border-radius: 16px; }
  .lx-team img { border-radius: 12px; }
  .lx-stripes::after { display: none; }
}
@media (max-width: 1240px) { .lx-portrait-deco { display: none; } }

/* ---------- fact strip ---------- */
.lx-facts { border-top: 1px solid var(--lx-line); border-bottom: 1px solid var(--lx-line); }
.lx-facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.lx-facts li { padding: 30px 32px; border-left: 1px solid var(--lx-line); }
.lx-facts li:first-child { border-left: 0; padding-left: 0; }
.lx-facts strong { display: block; font-family: var(--lx-serif); font-size: 24px; font-weight: 700; line-height: 1.15; }
.lx-facts span { display: block; margin-top: 6px; font-size: 14.5px; line-height: 1.55; color: var(--lx-ink-2); }
@media (max-width: 800px) {
  .lx-facts ul { grid-template-columns: 1fr; }
  .lx-facts li { border-left: 0; border-top: 1px solid var(--lx-line); padding: 22px 0; }
  .lx-facts li:first-child { border-top: 0; }
}

/* ---------- sections ---------- */
.lx-section { padding: 112px 0; }
.lx-section-alt { background: var(--lx-paper-2); }
.lx-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 56px; }
.lx-head h2 { font-family: var(--lx-serif); font-weight: 800; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.04; letter-spacing: -0.025em; margin: 16px 0 0; }
.lx-head p { font-size: 17px; line-height: 1.65; color: var(--lx-ink-2); margin: 0; max-width: 30em; }
@media (max-width: 800px) {
  .lx-section { padding: 76px 0; }
  .lx-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 36px; }
}

/* services: numbered editorial rows */
.lx-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--lx-line-strong); }
.lx-rows li { border-bottom: 1px solid var(--lx-line); }
.lx-row {
  display: grid; grid-template-columns: 80px 1fr 1.25fr 40px; gap: 32px; align-items: baseline;
  padding: 34px 0; text-decoration: none; color: inherit;
}
.lx-row-n { font-family: var(--lx-serif); font-size: 20px; color: var(--lx-gold-ink); }
.lx-row h3 { font-family: var(--lx-serif); font-weight: 800; font-size: 32px; line-height: 1.1; margin: 0; }
.lx-row p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--lx-ink-2); }
.lx-row-go { justify-self: end; color: var(--lx-ink-3); transition: transform .2s ease, color .2s ease; }
.lx-row:hover .lx-row-go { transform: translateX(4px); color: var(--lx-gold-ink); }
.lx-row:hover h3 { color: var(--lx-gold-ink); }
@media (max-width: 800px) {
  .lx-row { grid-template-columns: 44px 1fr 24px; gap: 14px 16px; padding: 26px 0; }
  .lx-row p { grid-column: 2 / 3; }
  .lx-row h3 { font-size: 26px; }
  .lx-row-go { grid-row: 1; grid-column: 3; }
}

/* steps */
.lx-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; }
.lx-steps li { padding: 0 28px 0 0; border-top: 1px solid var(--lx-line-strong); padding-top: 28px; }
.lx-steps li + li { padding-left: 28px; border-left: 1px solid var(--lx-line); }
.lx-steps .n { font-family: var(--lx-serif); font-size: 54px; line-height: 1; color: var(--lx-gold); font-weight: 500; }
.lx-steps h3 { margin: 18px 0 10px; font-size: 18px; font-weight: 600; }
.lx-steps p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--lx-ink-2); }
@media (max-width: 900px) {
  .lx-steps { grid-template-columns: 1fr 1fr; gap: 36px 0; }
  .lx-steps li:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 560px) {
  .lx-steps { grid-template-columns: 1fr; gap: 28px; }
  .lx-steps li + li { padding-left: 0; border-left: 0; }
}

/* tools */
.lx-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.lx-tool {
  display: flex; flex-direction: column; gap: 12px; padding: 36px; border-radius: var(--lx-radius);
  background: var(--lx-card); border: 1px solid var(--lx-line); text-decoration: none; color: inherit;
  transition: border-color .2s ease, transform .2s ease;
}
.lx-tool:hover { border-color: var(--lx-gold); transform: translateY(-2px); }
.lx-tool strong { font-family: var(--lx-serif); font-size: 30px; font-weight: 500; line-height: 1.1; }
.lx-tool span { font-size: 15.5px; line-height: 1.6; color: var(--lx-ink-2); }
.lx-tool em { margin-top: auto; padding-top: 14px; font-style: normal; font-weight: 600; font-size: 14px; color: var(--lx-gold-ink); }
@media (max-width: 760px) { .lx-tools { grid-template-columns: 1fr; } .lx-tool { padding: 28px; } }

/* navy trust band */
.lx-band { background: var(--lx-band-bg); color: var(--lx-band-ink); padding: 104px 0; position: relative; overflow: hidden; }
.lx-band::after {
  content: ''; position: absolute; right: 30px; top: -110px; width: 30px; height: 280px; transform: rotate(35deg);
  background: linear-gradient(180deg, #F5C758, #E5AA43);
}
.lx-band-grid { position: relative; z-index: 1; display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; }
.lx-band .lx-kicker { color: #E2C27A; }
.lx-band h2 { font-family: var(--lx-serif); font-weight: 800; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.05; margin: 16px 0 20px; color: #FFFFFF; }
.lx-band p { color: var(--lx-on-navy-2); font-size: 17px; line-height: 1.65; margin: 0 0 30px; }
.lx-band ul { list-style: none; margin: 0; padding: 0; }
.lx-band li { padding: 26px 0; border-top: 1px solid rgba(237, 231, 218, .14); display: grid; grid-template-columns: 34px 1fr; gap: 18px; }
.lx-band li:last-child { border-bottom: 1px solid rgba(237, 231, 218, .14); }
.lx-band li svg { color: #E2C27A; margin-top: 3px; }
.lx-band li strong { display: block; font-size: 17px; color: #FFFFFF; font-weight: 600; }
.lx-band li span { display: block; margin-top: 6px; font-size: 15px; line-height: 1.6; color: var(--lx-on-navy-2); }
@media (max-width: 900px) { .lx-band { padding: 76px 0; } .lx-band-grid { grid-template-columns: 1fr; gap: 32px; } }

/* FAQ */
.lx-faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; }
.lx-faq-grid h2 { font-family: var(--lx-serif); font-weight: 800; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.04; margin: 16px 0 18px; }
.lx-faq-grid > div > p { color: var(--lx-ink-2); font-size: 16.5px; line-height: 1.65; margin: 0; }
.lx-faq { border-top: 1px solid var(--lx-line-strong); }
.lx-faq-item { border-bottom: 1px solid var(--lx-line); }
.lx-faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 26px 0; background: none; border: 0; cursor: pointer; text-align: left;
  font: 500 19px/1.4 var(--lx-sans); color: var(--lx-ink);
}
.lx-faq-mark {
  flex: none; width: 34px; height: 34px; border-radius: 99px; display: grid; place-items: center;
  border: 1px solid var(--lx-line-strong); color: var(--lx-ink-2); transition: transform .25s ease, background .2s ease;
}
.lx-faq-q[aria-expanded='true'] .lx-faq-mark { transform: rotate(45deg); background: var(--lx-ink); color: var(--lx-paper); border-color: var(--lx-ink); }
.lx-faq-a { margin: -6px 0 0; padding: 0 56px 28px 0; font-size: 16px; line-height: 1.7; color: var(--lx-ink-2); }
@media (max-width: 900px) { .lx-faq-grid { grid-template-columns: 1fr; gap: 28px; } .lx-faq-a { padding-right: 0; } }

/* contact CTA */
.lx-cta { text-align: center; padding: 120px 0; }
.lx-cta h2 { font-family: var(--lx-serif); font-weight: 800; font-size: clamp(34px, 4.6vw, 58px); line-height: 1.02; margin: 18px auto 18px; max-width: 13em; }
.lx-cta p { color: var(--lx-ink-2); font-size: 17px; line-height: 1.65; margin: 0 auto; max-width: 34em; }
.lx-cta .lx-hero-cta { justify-content: center; }
.lx-cta-meta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: center; font-size: 14.5px; color: var(--lx-ink-3); }
.lx-cta-meta a { text-decoration: none; color: var(--lx-ink-2); }
.lx-cta-meta a:hover { color: var(--lx-ink); }

/* footer */
.lx-foot { background: #001F49; color: var(--lx-band-ink-2); padding: 80px 0 36px; }
.lx-foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; }
.lx-foot .lx-logo-name { color: #F7F1E4; }
.lx-foot .lx-logo-sub { color: #E2C27A; }
.lx-foot p { margin: 8px 0 0; font-size: 14px; line-height: 1.6; }
.lx-foot .script { color: #E2C27A; font-size: 24px; margin-top: 22px; }
.lx-foot h2 { font: 600 12px/1 var(--lx-sans); letter-spacing: .18em; text-transform: uppercase; color: #E2C27A; margin: 0 0 18px; }
.lx-foot nav a { display: block; text-decoration: none; color: var(--lx-on-navy); font-size: 14.5px; padding: 6px 0; }
.lx-foot nav a:hover { color: #fff; }
.lx-foot-base { margin-top: 64px; padding-top: 24px; border-top: 1px solid rgba(237, 231, 218, .12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; }
@media (max-width: 800px) { .lx-foot-grid { grid-template-columns: 1fr 1fr; } .lx-foot-grid > div:first-child { grid-column: 1 / -1; } }

/* hero rise */
@media (prefers-reduced-motion: no-preference) {
  .lx-rise { animation: lx-rise .8s cubic-bezier(.2, .7, .2, 1) both; }
  .lx-rise-2 { animation-delay: .12s; }
  .lx-rise-3 { animation-delay: .24s; }
  @keyframes lx-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* ======================= sign-in ======================= */
.lx-auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }
.lx-auth-art { position: relative; background: var(--lx-band-bg); color: #FFFFFF; overflow: hidden; }
.lx-auth-art-in { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: 56px 56px 52px; gap: 40px; }
.lx-auth-mark { display: flex; flex-direction: column; gap: 14px; }
.lx-wm { font-family: var(--lx-sans); font-weight: 800; font-size: clamp(44px, 5vw, 72px); letter-spacing: -0.02em; line-height: 1; color: #FFFFFF; }
.lx-wm b { font-weight: 800; background: var(--lx-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lx-wm-tag { font-style: italic; font-weight: 600; font-size: 16px; color: #D6E3F5; }
.lx-wm-tag i { color: #F5C758; }
.lx-auth-quote { max-width: 30em; }
.lx-auth-line { margin: 0; font-family: var(--lx-sans); font-weight: 800; font-size: 32px; line-height: 1.15; letter-spacing: -0.02em; color: #FFFFFF; }
.lx-auth-quote ul { list-style: none; margin: 28px 0 0; padding: 22px 0 0; border-top: 1px solid rgba(255, 255, 255, .2); display: grid; gap: 12px; }
.lx-auth-quote li { display: flex; gap: 12px; font-size: 15px; line-height: 1.5; color: #D6E3F5; }
.lx-auth-quote li svg { flex: none; color: #F5C758; margin-top: 2px; }

.lx-auth-main { display: flex; flex-direction: column; padding: 32px 56px; background: var(--lx-paper); }
.lx-auth-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.lx-auth-top a { font-size: 14px; text-decoration: none; color: var(--lx-ink-2); display: inline-flex; align-items: center; gap: 8px; }
.lx-auth-top a:hover { color: var(--lx-ink); }
.lx-auth-mobile-logo { display: none; }
.lx-auth-form { width: 100%; max-width: 420px; margin: auto; padding: 40px 0; }
.lx-auth-form h1 { font-family: var(--lx-serif); font-weight: 800; font-size: 40px; line-height: 1.04; letter-spacing: -0.025em; margin: 16px 0 12px; }
.lx-auth-form .lx-sub { font-size: 16px; line-height: 1.6; color: var(--lx-ink-2); margin: 0 0 32px; }
.lx-auth-form form { display: flex; flex-direction: column; gap: 18px; }

.lx-label { display: block; font-size: 13.5px; font-weight: 600; color: var(--lx-ink); margin-bottom: 8px; }
.lx-phone {
  display: flex; align-items: stretch; height: 56px; border-radius: 12px; background: var(--lx-card);
  border: 1px solid var(--lx-line-strong); overflow: hidden; transition: border-color .15s ease, box-shadow .15s ease;
}
.lx-phone:focus-within { border-color: var(--lx-ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lx-gold) 22%, transparent); }
.lx-phone label { display: flex; align-items: center; gap: 2px; padding: 0 4px 0 16px; border-right: 1px solid var(--lx-line); font-size: 16px; font-weight: 600; color: var(--lx-ink-2); }
.lx-phone input:focus-visible { outline: none; }
.lx-phone input {
  border: 0; outline: 0; background: transparent; color: var(--lx-ink); font: 500 17px/1 var(--lx-sans); min-width: 0;
}
.lx-phone input.dial { width: 46px; padding: 0 6px 0 0; }
.lx-phone input.num { flex: 1; padding: 0 16px; letter-spacing: .02em; }
.lx-phone input::placeholder { color: var(--lx-ink-3); opacity: .7; }
.lx-hint { margin: 8px 0 0; font-size: 13px; color: var(--lx-ink-3); }

.lx-check { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.5; color: var(--lx-ink-2); cursor: pointer; }
.lx-check input { appearance: none; flex: none; width: 20px; height: 20px; margin: 1px 0 0; border: 1.5px solid var(--lx-line-strong); border-radius: 6px; background: var(--lx-card); cursor: pointer; display: grid; place-items: center; }
.lx-check input:checked { background: var(--lx-ink); border-color: var(--lx-ink); }
.lx-check input:checked::after { content: ''; width: 5px; height: 10px; border: solid var(--lx-paper); border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.lx-check a { color: var(--lx-ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--lx-gold); text-underline-offset: 3px; }

.lx-error { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: #FDECEE; color: #9F1239; font-size: 14px; line-height: 1.5; }
:root[data-theme='dark'] .lx-error { background: #3A1420; color: #FDA4B4; }
.lx-info { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 10px; background: var(--lx-gold-soft); color: var(--lx-gold-ink); font-size: 14px; }

.lx-or { display: flex; align-items: center; gap: 14px; margin: 8px 0 0; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--lx-ink-3); }
.lx-or::before, .lx-or::after { content: ''; flex: 1; height: 1px; background: var(--lx-line); }
.lx-alt { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lx-alt a { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--lx-line); text-decoration: none; background: var(--lx-card); }
.lx-alt a:hover { border-color: var(--lx-line-strong); }
.lx-alt strong { font-size: 14px; font-weight: 600; color: var(--lx-ink); }
.lx-alt span { font-size: 12.5px; color: var(--lx-ink-3); }

.lx-fine { font-size: 12.5px; line-height: 1.6; color: var(--lx-ink-3); margin: 0; }
.lx-fine a { color: var(--lx-ink-2); }
.lx-auth-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12.5px; color: var(--lx-ink-3); }
.lx-auth-foot a { color: var(--lx-ink-3); text-decoration: none; }
.lx-auth-foot a:hover { color: var(--lx-ink); }

/* invisible reCAPTCHA: attribution is shown in text, so hide the floating badge */
.lx-auth ~ .grecaptcha-badge, body:has(.lx-auth) .grecaptcha-badge { visibility: hidden; }

@media (max-width: 960px) {
  .lx-auth { grid-template-columns: minmax(0, 1fr); }
  .lx-auth-art { min-height: 0; }
  .lx-auth-art-in { padding: 28px 22px; gap: 0; }
  .lx-auth-quote { display: none; }
  .lx-wm { font-size: 40px; }
  .lx-wm-tag { font-size: 13.5px; }
  .lx-auth-main { padding: 24px 20px 28px; }
  .lx-auth-form { padding: 28px 0 32px; }
  .lx-auth-form h1 { font-size: 40px; }
}
@media (max-width: 420px) { .lx-alt { grid-template-columns: 1fr; } }

/* OTP boxes line up with their label */
.lx-auth-form [class*='otp'], .lx-auth-form [role='group'][aria-label$='code'] { justify-content: flex-start !important; margin-left: 0 !important; }

/* touch: no hover-lift on touch screens, bigger hit areas */
@media (hover: none) {
  .lx-tool:hover { transform: none; }
  .lx-row:hover .lx-row-go { transform: none; }
}
@media (max-width: 640px) {
  .lx-section { padding: 64px 0; }
  .lx-hero h1 { font-size: 36px; }
  .lx-hero-lead { font-size: 17px; }
  .lx-band { padding: 64px 0; }
  .lx-cta { padding: 76px 0; }
  .lx-foot { padding: 56px 0 28px; }
  .lx-foot-base { flex-direction: column; }
  .lx-faq-q { font-size: 17px; padding: 22px 0; }
  .lx-steps .n { font-size: 42px; }
  .lx-auth-form h1 { font-size: 36px; }
}

.lx section[id] { scroll-margin-top: 84px; }
@media (max-width: 760px) { .lx section[id] { scroll-margin-top: 72px; } }
.lx-phone input.num { width: 100%; }

/* dark: bands sit a step deeper than the page, separated by a hairline, like light's navy bands */
:root[data-theme='dark'] .lx-band, :root[data-theme='dark'] .lx-teamband, :root[data-theme='dark'] .lx-foot { border-top: 1px solid var(--lx-line); }
:root[data-theme='dark'] .lx-portrait-frame, :root[data-theme='dark'] .lx-team { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); }
:root[data-theme='dark'] .lx-faq-q[aria-expanded='true'] .lx-faq-mark { background: var(--lx-ink); color: var(--lx-paper); border-color: var(--lx-ink); }
:root[data-theme='dark'] .lx-check input:checked { background: var(--lx-ink); border-color: var(--lx-ink); }
:root[data-theme='dark'] .lx-check input:checked::after { border-color: #0A1120; }

/* Wordmark like the banner: ATU in ink, RRR in the gold-to-red gradient */
.lx-logo-name { font-weight: 800; letter-spacing: .14em; }
.lx-logo-name b { font-weight: 800; background: var(--lx-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lx-logo-sub { color: var(--lx-ink-3); }
.lx-foot .lx-logo-name { color: #FFFFFF; }
.lx-foot .lx-logo-sub { color: #B9CCE8; }
.lx-kicker { font-weight: 700; }
.lx-steps .n, .lx-row-n { font-weight: 800; background: var(--lx-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lx-row h3 { font-size: 24px; }
.lx-tool strong { font-size: 22px; }
.lx-facts strong { font-size: 18px; }
.lx-drawer nav a { font-size: 24px; font-weight: 800; }
.lx-faq-q { font-weight: 600; }

@media (max-width: 640px) {
  .lx-stripes::before { display: none; }
  .lx-stripes::after { display: block; width: 18px; height: 200px; top: -110px; right: -14px; bottom: auto; }
  .lx-hero-cta .lx-btn { width: 100%; }
  .lx-auth-art .lx-stripes::after { top: -120px; right: -10px; }
}

/* ======== Light mode = the banner's bright sky; dark mode keeps deep navy ======== */
:root {
  --lx-hero-bg: linear-gradient(180deg, #FFFFFF 0%, #EEF6FF 45%, #D7EBFD 100%);
  --lx-hero-ink: #012A68;
  --lx-hero-ink-2: #2E4672;
  --lx-hero-kicker: #A9580A;
  --lx-hero-grad: linear-gradient(90deg, #E39B0E 0%, #E2701F 50%, #D3121A 100%);
  --lx-hero-sky: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 260' preserveAspectRatio='none'><g fill='%2386CCFC' fill-opacity='.22'><rect x='20' y='120' width='60' height='140'/><rect x='95' y='70' width='48' height='190'/><rect x='160' y='140' width='70' height='120'/><rect x='980' y='60' width='56' height='200'/><rect x='1050' y='110' width='64' height='150'/><rect x='1125' y='30' width='60' height='230'/></g></svg>");
}
:root[data-theme='dark'] {
  --lx-hero-bg: var(--lx-band-bg);
  --lx-hero-ink: #FFFFFF;
  --lx-hero-ink-2: #D6E3F5;
  --lx-hero-kicker: #F5C758;
  --lx-hero-grad: var(--lx-grad);
  --lx-hero-sky: none;
}
.lx-hero-brand { background: var(--lx-hero-sky) bottom 120px center / 100% 260px no-repeat, var(--lx-hero-bg); color: var(--lx-hero-ink); }
.lx-hero-brand .lx-kicker { color: var(--lx-hero-kicker); }
.lx-hero h1 { color: var(--lx-hero-ink); }
.lx-hero h1 em { background: var(--lx-hero-grad); -webkit-background-clip: text; background-clip: text; }
.lx-hero-lead { color: var(--lx-hero-ink-2); }
/* light hero buttons: royal primary + navy outline (like the rest of light mode) */
:root:not([data-theme='dark']) .lx-hero-brand .lx-btn-gold { background: #003C87; color: #FFFFFF; }
:root:not([data-theme='dark']) .lx-hero-brand .lx-btn-gold:hover { background: #0059B8; }
:root:not([data-theme='dark']) .lx-hero-brand .lx-btn-ghost-light { color: #012A68; border-color: #BCCDE4; background: rgba(255,255,255,.6); }
:root:not([data-theme='dark']) .lx-hero-brand .lx-btn-ghost-light:hover { border-color: #012A68; }
:root:not([data-theme='dark']) .lx-team { box-shadow: 0 40px 80px -44px rgba(1, 42, 104, .45); }

/* sign-in brand panel follows the same rule */
.lx-auth-art { background: var(--lx-hero-sky) bottom right / 160% 220px no-repeat, var(--lx-hero-bg); color: var(--lx-hero-ink); }
.lx-wm { color: var(--lx-hero-ink); }
.lx-wm b { background: var(--lx-hero-grad); -webkit-background-clip: text; background-clip: text; }
.lx-wm-tag, .lx-auth-quote li { color: var(--lx-hero-ink-2); }
.lx-wm-tag i { color: var(--lx-hero-kicker); }
.lx-auth-line { color: var(--lx-hero-ink); }
.lx-auth-quote ul { border-top-color: color-mix(in srgb, var(--lx-hero-ink) 18%, transparent); }
.lx-auth-quote li svg { color: var(--lx-hero-kicker); }
:root:not([data-theme='dark']) .lx-auth-art { border-right: 1px solid var(--lx-line); }

/* ======== Tighter rhythm: no large empty gaps anywhere ======== */
.lx-section { padding: 72px 0; }
.lx-head { margin-bottom: 36px; }
.lx-band { padding: 72px 0; }
.lx-cta { padding: 80px 0; }
.lx-foot { padding: 56px 0 28px; }
.lx-foot-base { margin-top: 40px; }
.lx-facts li { padding: 24px 28px; }
.lx-hero { padding-top: 56px; }
.lx-team { margin-top: 40px; }
.lx-hero-brand::after { height: 96px; }
.lx-hero-note { margin-top: 16px; }
@media (max-width: 960px) { .lx-hero { padding-top: 36px; } .lx-team { margin-top: 28px; } .lx-hero-brand::after { height: 56px; } }
@media (max-width: 800px) { .lx-section { padding: 52px 0; } .lx-head { margin-bottom: 28px; } .lx-band { padding: 52px 0; } .lx-cta { padding: 56px 0; } }
@media (max-width: 640px) { .lx-section { padding: 44px 0; } .lx-band { padding: 44px 0; } .lx-cta { padding: 48px 0; } .lx-foot { padding: 44px 0 24px; } .lx-foot-base { margin-top: 28px; } .lx-steps { gap: 22px; } .lx-row { padding: 20px 0; } }

/* sign-in: form sits near the top, not floating in the middle of empty space */
.lx-auth-main { justify-content: flex-start; padding-top: 28px; }
.lx-auth-form { margin: 0 auto; padding: 8vh 0 32px; }
.lx-auth-foot { margin-top: auto; padding-top: 24px; }
@media (max-width: 960px) { .lx-auth-form { padding: 24px 0 28px; } }

.lx-section { padding: 56px 0; }
.lx-band { padding: 60px 0; }
.lx-cta { padding: 64px 0; }
@media (max-width: 800px) { .lx-section { padding: 44px 0; } .lx-band { padding: 44px 0; } .lx-cta { padding: 48px 0; } }
@media (max-width: 640px) { .lx-section { padding: 36px 0; } .lx-band { padding: 36px 0; } .lx-cta { padding: 40px 0; } }
/* sign-in brand panel: content stacked from the top, no hollow middle */
.lx-auth-art-in { justify-content: flex-start; gap: 56px; padding-top: 72px; }

/* document guidelines card inside the sign-in brand panel */
.lx-auth-art-in { gap: 40px; }
.lx-auth-guide { max-width: 34em; }
.lx-guide { margin: 0; padding: 24px; border-radius: 18px; background: color-mix(in srgb, var(--lx-card) 82%, transparent); border: 1px solid var(--lx-line); backdrop-filter: blur(6px); box-shadow: 0 20px 40px -32px rgba(1, 42, 104, .35); }
.lx-guide h2 { margin: 0; font-family: var(--lx-sans); font-weight: 800; font-size: 18px; letter-spacing: -0.01em; color: var(--lx-ink); }
.lx-guide > p { margin: 6px 0 16px; font-size: 13.5px; line-height: 1.5; color: var(--lx-ink-3); }
.lx-guide ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.lx-guide li { display: flex; gap: 12px; align-items: flex-start; }
.lx-guide .photo-mark { flex: none; width: 52px; height: 40px; }
.lx-guide strong { display: block; font-size: 14px; font-weight: 700; color: var(--lx-ink); }
.lx-guide span { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.45; color: var(--lx-ink-2); }
:root[data-theme='dark'] .lx-guide { background: rgba(10, 40, 86, .7); border-color: rgba(255, 255, 255, .12); }
:root[data-theme='dark'] .lx-guide .photo-mark rect[fill='#fff'] { fill: #EAF2FC; }
@media (max-width: 1100px) { .lx-guide ol { grid-template-columns: 1fr; } }
@media (max-width: 960px) { .lx-auth-guide { display: none; } }

/* ======== Hero restack: headline full width, lead + buttons in one row (no hollow column) ======== */
.lx-hero h1 { max-width: 16ch; font-size: clamp(36px, 5vw, 64px); margin-top: 18px; }
@media (min-width: 1100px) { .lx-hero h1 { max-width: none; } }
.lx-hero-row { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; margin-top: 22px; }
.lx-hero-row .lx-hero-lead { flex: 1 1 380px; max-width: 40em; }
.lx-hero-row .lx-hero-cta { margin-top: 0; flex: none; }
@media (max-width: 760px) { .lx-hero-row { flex-direction: column; align-items: stretch; gap: 20px; } .lx-hero-row .lx-hero-lead { flex: none; } }
/* section heads: top-aligned so the shorter column never leaves a gap above it */
.lx-head, .lx-band-grid, .lx-faq-grid { align-items: start; }
.lx-head p { margin-top: 30px; }
@media (max-width: 800px) { .lx-head p { margin-top: 0; } }

.lx-hero { padding-top: 40px; }
@media (max-width: 960px) { .lx-hero { padding-top: 28px; } }
@media (max-width: 800px) { .lx-facts li { padding: 20px 0; } }

/* ===================== Sections v2: compact cards, no hollow space, motion ===================== */
.wa-ic { flex: none; display: block; }
.lx-btn-wa { background: #25D366; color: #06331A; }
.lx-btn-wa:hover { background: #3BE07A; }
:root:not([data-theme='dark']) .lx-hero-brand .lx-btn-wa-outline { border-color: #9BE3B6; }
.lx-btn-wa-outline:hover { border-color: #25D366 !important; }

/* reveal on scroll */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
  [data-reveal].is-in { opacity: 1; transform: none; }
  [data-reveal] .lx-trust-grid li, [data-reveal] .lx-tool, [data-reveal] .lx-faq-item, [data-reveal] .lx-ctile, [data-reveal] .lx-steps li, [data-reveal] .lx-rows li {
    opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
  }
  [data-reveal].is-in .lx-trust-grid li, [data-reveal].is-in .lx-tool, [data-reveal].is-in .lx-faq-item, [data-reveal].is-in .lx-ctile, [data-reveal].is-in .lx-steps li, [data-reveal].is-in .lx-rows li { opacity: 1; transform: none; }
  [data-reveal].is-in .lx-trust-grid li:nth-child(2), [data-reveal].is-in .lx-tool:nth-child(2), [data-reveal].is-in .lx-faq-item:nth-child(2), [data-reveal].is-in .lx-ctile:nth-child(2), [data-reveal].is-in .lx-steps li:nth-child(2), [data-reveal].is-in .lx-rows li:nth-child(2) { transition-delay: .08s; }
  [data-reveal].is-in .lx-trust-grid li:nth-child(3), [data-reveal].is-in .lx-faq-item:nth-child(3), [data-reveal].is-in .lx-ctile:nth-child(3), [data-reveal].is-in .lx-steps li:nth-child(3), [data-reveal].is-in .lx-rows li:nth-child(3) { transition-delay: .16s; }
  [data-reveal].is-in .lx-trust-grid li:nth-child(4), [data-reveal].is-in .lx-faq-item:nth-child(4), [data-reveal].is-in .lx-ctile:nth-child(4), [data-reveal].is-in .lx-steps li:nth-child(4), [data-reveal].is-in .lx-rows li:nth-child(4) { transition-delay: .24s; }
  [data-reveal].is-in .lx-faq-item:nth-child(5) { transition-delay: .32s; }
}

.lx-section-tight { padding: 44px 0; }
.lx-head-inline { margin-bottom: 24px; align-items: end; }
.lx-head-inline p { margin-top: 0; }

/* Plan first: compact horizontal cards */
.lx-tools { grid-template-columns: 1fr 1fr; gap: 16px; }
.lx-tool { flex-direction: row; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 16px; }
.lx-tool:hover { box-shadow: 0 14px 30px -20px rgba(1, 42, 104, .35); }
.lx-tool-ic { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--lx-paper-2); color: var(--lx-royal); }
:root[data-theme='dark'] .lx-tool-ic { color: #D9B05C; }
.lx-tool-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.lx-tool-body strong { font-size: 16px; font-weight: 700; line-height: 1.3; }
.lx-tool-body > span { font-size: 13.5px; line-height: 1.45; color: var(--lx-ink-3); }
.lx-tool-go { flex: none; color: var(--lx-ink-3); transition: transform .2s ease, color .2s ease; }
.lx-tool:hover .lx-tool-go { transform: translateX(4px); color: var(--lx-gold-ink); }
@media (max-width: 760px) { .lx-tools { grid-template-columns: 1fr; } }

/* Why ATURRR: heading row + 4 compact cards */
.lx-trust { padding: 56px 0; }
.lx-trust::after { right: 18px; top: -150px; height: 260px; }
.lx-trust-top { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px 48px; align-items: end; margin-bottom: 28px; }
.lx-trust-top h2 { margin: 12px 0 0; font-size: clamp(26px, 3vw, 38px); }
.lx-trust-side p { margin: 0 0 16px; font-size: 15.5px; line-height: 1.6; color: var(--lx-band-ink-2); }
.lx-trust-grid { position: relative; z-index: 1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.lx-trust-grid li { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: 16px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-top: 0 !important; backdrop-filter: blur(4px); }
.lx-trust-grid li:hover { background: rgba(255,255,255,.11); border-color: rgba(245,199,88,.45); }
.lx-trust-grid strong { font-size: 15px; font-weight: 700; color: #FFFFFF; line-height: 1.3; }
.lx-trust-grid li > span:last-child { font-size: 13.5px; line-height: 1.5; color: var(--lx-band-ink-2); }
.lx-trust-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(245,199,88,.16); color: #F5C758; }
.lx-trust-warn { background: rgba(226,21,26,.18); color: #FF8A7A; }
.lx-band li svg { margin: 0; }
@media (max-width: 1000px) { .lx-trust-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .lx-trust-top { grid-template-columns: 1fr; } .lx-trust { padding: 40px 0; } }
@media (max-width: 480px) { .lx-trust-grid { grid-template-columns: 1fr; } }

/* FAQ: sticky side with help card, compact numbered cards */
.lx-faq-grid { grid-template-columns: .75fr 1.25fr; gap: 40px; align-items: start; }
.lx-faq-side { position: sticky; top: 100px; }
.lx-faq-side h2 { margin: 12px 0 10px; font-size: clamp(26px, 3vw, 38px); }
.lx-faq-side > p { margin: 0 0 20px; color: var(--lx-ink-2); font-size: 15.5px; line-height: 1.6; }
.lx-help-card { display: grid; grid-template-columns: auto 1fr; gap: 12px 14px; align-items: center; padding: 18px; border-radius: 16px; background: var(--lx-card); border: 1px solid var(--lx-line); box-shadow: 0 16px 34px -26px rgba(1,42,104,.35); }
.lx-help-card strong { display: block; font-size: 15px; font-weight: 700; }
.lx-help-card span span, .lx-help-card div > span { display: block; font-size: 13.5px; line-height: 1.45; color: var(--lx-ink-3); }
.lx-help-card .lx-btn { grid-column: 1 / -1; width: 100%; }
.lx-wa-badge { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #E7F9EE; }
:root[data-theme='dark'] .lx-wa-badge { background: rgba(37,211,102,.14); }
.lx-faq { border-top: 0; display: grid; gap: 10px; }
.lx-faq-item { border: 1px solid var(--lx-line); border-radius: 14px; background: var(--lx-card); overflow: hidden; }
.lx-faq-item.is-open { border-color: var(--lx-line-strong); box-shadow: 0 14px 30px -24px rgba(1,42,104,.35); }
.lx-faq-q { padding: 16px 18px; gap: 14px; font-size: 15.5px; font-weight: 600; }
.lx-faq-n { flex: none; font-weight: 800; font-size: 13px; background: var(--lx-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lx-faq-t { flex: 1; }
.lx-faq-mark { width: 28px; height: 28px; }
.lx-faq-a { padding: 0 18px 16px 50px; margin: 0; }
.lx-faq-a p { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--lx-ink-2); }
@media (prefers-reduced-motion: no-preference) { .lx-faq-item.is-open .lx-faq-a { animation: lx-drop .25s ease both; } }
@media (max-width: 900px) { .lx-faq-grid { grid-template-columns: 1fr; gap: 20px; } .lx-faq-side { position: static; } .lx-faq-a { padding-left: 18px; } }

/* Contact: compact brand panel with tiles */
.lx-contact { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 1.05fr; gap: 28px 40px; align-items: center; padding: 36px 40px; border-radius: 24px; background: var(--lx-band-bg); color: #FFFFFF; box-shadow: 0 30px 60px -40px rgba(1,42,104,.6); }
.lx-contact .lx-stripes::before { left: auto; right: 34%; top: -170px; }
.lx-contact .lx-stripes::after { display: none; }
.lx-contact-copy, .lx-contact-tiles { position: relative; z-index: 1; }
.lx-contact .lx-kicker { color: #F5C758; }
.lx-contact h2 { margin: 12px 0 10px; font-family: var(--lx-sans); font-weight: 800; letter-spacing: -0.025em; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.08; color: #FFFFFF; }
.lx-contact p { margin: 0 0 20px; font-size: 15.5px; line-height: 1.6; color: #C5D6EE; max-width: 32em; }
.lx-contact-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lx-ctile { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #FFFFFF; text-decoration: none; min-width: 0; }
a.lx-ctile:hover { background: rgba(255,255,255,.14); border-color: rgba(245,199,88,.5); transform: translateY(-2px); }
.lx-ctile > span:last-child { min-width: 0; display: flex; flex-direction: column; }
.lx-ctile strong { font-size: 14.5px; font-weight: 700; color: #FFFFFF; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lx-ctile > span:last-child > span { font-size: 12.5px; color: #B9CCE8; }
.lx-ctile-ic { flex: none; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(245,199,88,.16); color: #F5C758; }
.lx-ctile-wa { background: rgba(37,211,102,.14); border-color: rgba(37,211,102,.45); }
.lx-ctile-wa .lx-ctile-ic { background: #FFFFFF; }
@media (max-width: 900px) { .lx-contact { grid-template-columns: 1fr; padding: 28px 22px; } }
@media (max-width: 480px) { .lx-contact-tiles { grid-template-columns: 1fr; } }
.lx-cta { display: none; }

.lx-trust-grid .lx-trust-ic { display: grid; place-items: center; margin: 0; width: 38px; height: 38px; }
.lx-trust-grid .lx-trust-ic svg { margin: 0; }
.lx-trust-grid li > span:last-child { margin-top: 0; }
.lx-btn-wa { background: #1FB855; color: #FFFFFF; }
.lx-btn-wa:hover { background: #18A24A; }
#faq { padding-bottom: 28px; }
#contact { padding-top: 12px; }
.lx-contact::after { content: ''; position: absolute; right: -40px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(closest-side, rgba(245,199,88,.22), transparent); pointer-events: none; }

@media (max-width: 760px) {
  .lx-band::after { display: none; }
  .lx-trust-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .lx-trust-grid li { padding: 14px; gap: 6px; }
  .lx-trust-grid .lx-trust-ic { width: 32px; height: 32px; }
  .lx-trust-grid strong { font-size: 14px; }
  .lx-trust-grid li > span:last-child { font-size: 12.5px; }
  .lx-contact-tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .lx-ctile { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; }
  .lx-ctile-ic { width: 34px; height: 34px; }
  .lx-ctile strong { font-size: 13px; white-space: normal; word-break: break-word; }
  .lx-contact .lx-btn { width: 100%; }
  .lx-faq-q { padding: 14px; font-size: 14.5px; }
  .lx-faq-a { padding: 0 14px 14px; }
  .lx-help-card { padding: 14px; }
}
@media (max-width: 360px) { .lx-trust-grid, .lx-contact-tiles { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .lx-ctile[href^='mailto:'] { grid-column: 1 / -1; flex-direction: row; align-items: center; } .lx-ctile[href^='mailto:'] strong { white-space: nowrap; } }

/* sign-in method switch */
.lx-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 0 0 22px; border-radius: 12px; background: var(--lx-paper-2); border: 1px solid var(--lx-line); }
.lx-seg button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; border: 0; border-radius: 9px; background: transparent; color: var(--lx-ink-2); font: 600 14.5px/1 var(--lx-sans); cursor: pointer; transition: background .2s ease, color .2s ease, box-shadow .2s ease; }
.lx-seg button.on { background: var(--lx-card); color: var(--lx-ink); box-shadow: 0 6px 16px -10px rgba(1,42,104,.4); }
.lx-email-panel { display: flex; flex-direction: column; gap: 18px; }
.lx-btn-google { background: var(--lx-card); color: var(--lx-ink); border-color: var(--lx-line-strong); }
.lx-btn-google:hover:not([disabled]) { border-color: var(--lx-ink); }
@media (prefers-reduced-motion: no-preference) { .lx-email-panel, .lx-auth-form form { animation: lx-drop .25s ease both; } }

.lx-btn-apple { background: #000000; color: #FFFFFF; }
.lx-btn-apple:hover:not([disabled]) { background: #1F1F1F; }
:root[data-theme='dark'] .lx-btn-apple { background: #FFFFFF; color: #000000; }

/* ======== Hero v3: centred stack, no empty side at any width; stripes removed ======== */
.lx-hero-brand .lx-stripes, .lx-band::after { display: none !important; }
.lx-hero-brand .lx-wrap { text-align: center; }
.lx-hero-brand .lx-kicker { justify-content: center; }
.lx-hero-brand .lx-kicker::after { content: ''; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.lx-hero h1 { max-width: 18ch; margin-left: auto; margin-right: auto; }
@media (min-width: 1100px) { .lx-hero h1 { max-width: 22ch; } }
.lx-hero-row { flex-direction: column; align-items: center; justify-content: center; gap: 22px; margin-top: 20px; }
.lx-hero-row .lx-hero-lead { flex: none; max-width: 40em; text-align: center; }
.lx-hero-row .lx-hero-cta { justify-content: center; }
.lx-hero-note { justify-content: center; }
/* soft animated brand glow behind the headline, instead of empty space */
.lx-hero-brand::before { content: ''; position: absolute; left: 50%; top: -120px; width: min(900px, 120vw); height: 520px; transform: translateX(-50%); background: radial-gradient(closest-side, color-mix(in srgb, #86CCFC 38%, transparent), transparent 70%); pointer-events: none; z-index: 0; }
:root[data-theme='dark'] .lx-hero-brand::before { background: radial-gradient(closest-side, rgba(0, 89, 184, .45), transparent 70%); }
@media (prefers-reduced-motion: no-preference) { .lx-hero-brand::before { animation: lx-glow 9s ease-in-out infinite alternate; } }
@keyframes lx-glow { from { transform: translateX(-56%) scale(1); opacity: .85; } to { transform: translateX(-44%) scale(1.08); opacity: 1; } }
@media (max-width: 760px) { .lx-hero-row .lx-hero-cta { width: 100%; } }
@media (max-width: 760px) { .lx-hero-brand .lx-kicker::before, .lx-hero-brand .lx-kicker::after { display: none; } .lx-hero-brand .lx-kicker { letter-spacing: .14em; } }
.lx-trust-top { align-items: center; }
@media (max-width: 1000px) { .lx-trust-top { grid-template-columns: 1fr; gap: 14px; } }

/* service icons on the homepage rows */
.lx-row { align-items: center; }
.lx-row-ico { position: relative; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--lx-paper-2); color: var(--lx-royal-2); border: 1px solid var(--lx-line); }
.lx-row-ico small { position: absolute; right: -8px; top: -8px; min-width: 24px; height: 24px; padding: 0 5px; border-radius: 12px; display: grid; place-items: center; background: var(--lx-card); border: 1px solid var(--lx-line); font: 800 10.5px/1 var(--lx-sans); color: var(--lx-gold-ink); }
:root[data-theme='dark'] .lx-row-ico { background: #1A2638; color: #D9B05C; }
.lx-row:hover .lx-row-ico { border-color: var(--lx-gold); }
@media (max-width: 800px) { .lx-row-ico { width: 44px; height: 44px; border-radius: 12px; } .lx-row-ico svg { width: 18px; height: 18px; } }

/* customer Log in is always visible, also on phones */
.lx-bar-end .lx-signin {
  display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--lx-line-strong); font-weight: 600; white-space: nowrap;
}
.lx-bar-end .lx-signin:hover { border-color: var(--lx-ink); }
@media (max-width: 900px) { .lx-bar-end .lx-signin { display: inline-flex; } }
@media (max-width: 560px) { .lx-bar-cta { display: none; } .lx-bar-end .lx-signin { height: 38px; padding: 0 14px; } }

/* sign-in brand panel: content centred in the panel, no skyline or stripe
   artwork filling an empty lower half (2 Nov 2026). */
.lx-auth { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.lx-auth-art { background: var(--lx-hero-bg); }
.lx-auth-art .lx-stripes { display: none; }
.lx-auth-art-in { justify-content: center; gap: 36px; padding: 48px 56px; }
@media (max-width: 900px) { .lx-auth { grid-template-columns: minmax(0, 1fr); } .lx-auth-art-in { padding: 28px 22px; } }

/* Company promo inside the sign-in brand panel (pages without the document guide) */
.lx-promo { max-width: 34em; display: grid; gap: 14px; }
.lx-promo-kicker { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--lx-hero-kicker); }
.lx-promo-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.lx-promo-grid li { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; background: color-mix(in srgb, var(--lx-card) 82%, transparent); border: 1px solid var(--lx-line); backdrop-filter: blur(6px); }
.lx-promo-grid b { display: block; font-size: 14px; font-weight: 700; color: var(--lx-ink); line-height: 1.3; }
.lx-promo-grid small { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.45; color: var(--lx-hero-ink-2); }
.lx-promo-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #FFFFFF; background: linear-gradient(135deg, #003C87, #0059B8); }
.lx-promo-verify { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--lx-ink); text-decoration: none; padding: 10px 14px; border-radius: 12px; border: 1px dashed color-mix(in srgb, #EA983A 55%, transparent); background: color-mix(in srgb, #F5C758 10%, transparent); }
.lx-promo-verify svg:first-child { color: var(--lx-hero-kicker); flex: none; }
.lx-promo-verify:hover { background: color-mix(in srgb, #F5C758 18%, transparent); }
@media (max-width: 1100px) { .lx-promo-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) { .lx-promo { display: none; } }

/* Desktop: the form sits in the vertical middle of its column (2 Nov 2026).
   Tall forms still start at the top because auto margins collapse to 0. */
@media (min-width: 961px) { .lx-auth-form { margin: auto; padding: 32px 0; } }

/* Contact tiles: never cut the email/phone (2 Nov 2026). Text wraps instead
   of an ellipsis, and between 900–1180px the tiles stack in one column. */
.lx-ctile strong { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; line-height: 1.3; }
@media (min-width: 901px) and (max-width: 1180px) { .lx-contact-tiles { grid-template-columns: 1fr; } }

/* ===== Verify staff / agent (redesign, 2 Nov 2026) ===== */
.vf { min-height: 100vh; background: var(--lx-paper); color: var(--lx-ink); }
.vf-main { padding-top: 48px; padding-bottom: 72px; }
.vf-head { max-width: 760px; margin-bottom: 28px; }
.vf-head h1 { margin: 14px 0 10px; font-weight: 800; letter-spacing: -0.025em; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; color: var(--lx-ink); }
.vf-head p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--lx-ink-2); }
.vf-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.vf-card, .vf-tips { border-radius: 22px; border: 1px solid var(--lx-line); background: var(--lx-card); box-shadow: 0 18px 40px -34px rgba(1, 42, 104, .35); }
.vf-card { position: relative; overflow: hidden; padding: 26px; }
.vf-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--lx-grad); }
.vf-card-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.vf-card-head h2 { margin: 0; font-size: 20px; font-weight: 800; color: var(--lx-ink); }
.vf-card-head p { margin: 4px 0 0; font-size: 14px; color: var(--lx-ink-3); }
.vf-ic { flex: none; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: #E8F0FA; color: #003C87; }
.vf-label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 700; color: var(--lx-ink); }
.vf-input { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 16px; border-radius: 14px; border: 1px solid var(--lx-line-strong); background: var(--lx-paper); color: var(--lx-ink-3); transition: border-color .15s, box-shadow .15s; }
.vf-input:focus-within { border-color: #0059B8; box-shadow: 0 0 0 3px rgba(0, 89, 184, .14); }
.vf-input input { flex: 1; min-width: 0; height: 44px; border: 0; outline: 0; background: transparent; font: 500 16px var(--lx-sans); color: var(--lx-ink); }
.vf-input input::placeholder { color: var(--lx-ink-3); }
.vf-btn { flex: none; height: 44px; padding: 0 22px; border: 0; border-radius: 10px; background: #003C87; color: #FFFFFF; font: 700 15px var(--lx-sans); cursor: pointer; }
.vf-btn:hover:not(:disabled) { background: #0059B8; }
.vf-btn:disabled { opacity: .5; cursor: default; }
.vf-btn:focus-visible { outline: 2px solid var(--lx-gold); outline-offset: 2px; }
.vf-hint { margin: 8px 0 0; font-size: 13px; color: var(--lx-ink-3); }
.vf-result { display: flex; gap: 14px; align-items: flex-start; margin-top: 18px; padding: 16px; border-radius: 16px; border: 1px solid; }
.vf-result strong { display: block; font-size: 17px; font-weight: 800; color: var(--lx-ink); }
.vf-result p { margin: 6px 0 0; font-size: 14px; line-height: 1.55; color: var(--lx-ink-2); }
.vf-result a { color: inherit; font-weight: 700; }
.vf-res-ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; }
.vf-res-kicker { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 2px; }
.vf-result.ok { background: #EEF9F1; border-color: #BFE6CB; }
.vf-result.ok .vf-res-ic { background: #D7F2DF; color: #15803D; }
.vf-result.ok .vf-res-kicker { color: #15803D; }
.vf-result.warn { background: #FFF8EB; border-color: #F2D9A6; }
.vf-result.warn .vf-res-ic { background: #FCEBC7; color: #A15C07; }
.vf-result.bad { background: #FDF0F2; border-color: #F3C4CC; }
.vf-result.bad .vf-res-ic { background: #FADCE2; color: #B4233A; }
.vf-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.vf-tags span { padding: 3px 10px; border-radius: 999px; background: var(--lx-card); border: 1px solid var(--lx-line); font-size: 12.5px; font-weight: 600; color: var(--lx-ink-2); }
.vf-tips { padding: 24px; }
.vf-tips h2 { margin: 0 0 14px; font-size: 18px; font-weight: 800; color: var(--lx-ink); }
.vf-tips ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.vf-tips li { display: flex; gap: 12px; align-items: flex-start; }
.vf-tips li strong { display: block; font-size: 15px; font-weight: 700; color: var(--lx-ink); }
.vf-tips li p { margin: 3px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--lx-ink-2); }
.vf-tip-ic { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--lx-gold-soft); color: var(--lx-gold-ink); }
.vf-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--lx-line); font-size: 14px; font-weight: 600; }
.vf-links a { color: var(--lx-royal-2, #0059B8); text-decoration: none; }
.vf-links a:hover { text-decoration: underline; }
:root[data-theme='dark'] .vf-card, :root[data-theme='dark'] .vf-tips { box-shadow: none; }
:root[data-theme='dark'] .vf-ic { background: #1A2638; color: #9DB9E3; }
:root[data-theme='dark'] .vf-btn { background: #3569B8; }
:root[data-theme='dark'] .vf-btn:hover:not(:disabled) { background: #4277C6; }
:root[data-theme='dark'] .vf-input:focus-within { border-color: #5F8CCF; box-shadow: 0 0 0 3px rgba(95, 140, 207, .18); }
:root[data-theme='dark'] .vf-result.ok { background: #13241B; border-color: #24452F; }
:root[data-theme='dark'] .vf-result.ok .vf-res-ic { background: #1B3526; color: #6BC48B; }
:root[data-theme='dark'] .vf-result.ok .vf-res-kicker { color: #6BC48B; }
:root[data-theme='dark'] .vf-result.warn { background: #2A2215; border-color: #4A3B1E; }
:root[data-theme='dark'] .vf-result.warn .vf-res-ic { background: #3A2E17; color: #D9A85A; }
:root[data-theme='dark'] .vf-result.bad { background: #2A1519; border-color: #4A2329; }
:root[data-theme='dark'] .vf-result.bad .vf-res-ic { background: #3A1C22; color: #E07A8B; }
@media (max-width: 900px) { .vf-grid { grid-template-columns: 1fr; } .vf-main { padding-top: 28px; } }
@media (max-width: 520px) { .vf-input { flex-wrap: wrap; padding: 10px; } .vf-input input { flex-basis: calc(100% - 30px); } .vf-btn { width: 100%; } .vf-card, .vf-tips { padding: 20px; } }
@media (prefers-reduced-motion: reduce) { .vf-input { transition: none; } }

/* ===== Legal pages (redesign, 2 Nov 2026) ===== */
.lg { min-height: 100vh; background: var(--lx-paper); color: var(--lx-ink); }
.lg-main { padding-top: 40px; padding-bottom: 72px; }
.lg-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; margin-bottom: 28px; }
.lg-head-copy { max-width: 720px; }
.lg-head h1 { margin: 12px 0 8px; font-weight: 800; letter-spacing: -0.025em; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.06; color: var(--lx-ink); }
.lg-head-copy > p:last-child { margin: 0; font-size: 16px; line-height: 1.6; color: var(--lx-ink-2); }
.lg-back { margin: 0 0 10px; font-size: 14px; } .lg-back a { color: var(--lx-royal-2, #0059B8); text-decoration: none; font-weight: 600; }
.lg-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lg-langs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; border: 1px solid var(--lx-line-strong); background: var(--lx-card); }
.lg-langs button { height: 32px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: var(--lx-ink-2); font: 600 13px var(--lx-sans); cursor: pointer; white-space: nowrap; }
.lg-langs button:hover { color: var(--lx-ink); }
.lg-langs button[aria-pressed='true'] { background: #003C87; color: #FFFFFF; }
.lg-print { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--lx-line-strong); background: var(--lx-card); color: var(--lx-ink); font: 600 13px var(--lx-sans); cursor: pointer; }
.lg-print:hover { border-color: var(--lx-ink-3); }
.lg-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; align-items: start; }
.lg-toc { position: sticky; top: 96px; padding: 18px; border-radius: 18px; border: 1px solid var(--lx-line); background: var(--lx-card); }
.lg-toc p { margin: 0 0 10px; font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--lx-ink-3); }
.lg-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: lg; }
.lg-toc li { counter-increment: lg; }
.lg-toc a { display: flex; gap: 10px; padding: 8px 10px; border-radius: 10px; font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--lx-ink-2); text-decoration: none; }
.lg-toc a::before { content: counter(lg, decimal-leading-zero); flex: none; font-size: 12px; font-weight: 800; color: var(--lx-gold-ink); padding-top: 1px; }
.lg-toc a:hover { background: var(--lx-paper-2); color: var(--lx-ink); }
.lg-toc a.on { background: #EEF4FB; color: #012A68; }
.lg-content { display: grid; gap: 18px; min-width: 0; }
.lg-card { position: relative; padding: 30px 34px; border-radius: 22px; border: 1px solid var(--lx-line); background: var(--lx-card); scroll-margin-top: 96px; box-shadow: 0 18px 40px -36px rgba(1, 42, 104, .3); }
.lg-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.lg-card-head h2 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -0.015em; color: var(--lx-ink); }
.lg-chip { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--lx-gold-soft); color: var(--lx-gold-ink); font-size: 12px; font-weight: 700; }
.lg-body { max-width: 72ch; font-size: 16px; line-height: 1.75; color: var(--lx-ink-2); }
.lg-body h3 { margin: 26px 0 6px; font-size: 17.5px; font-weight: 800; color: var(--lx-ink); }
.lg-body h3:first-child { margin-top: 10px; }
.lg-body p { margin: 8px 0; }
.lg-body .legal-list { margin: 6px 0 12px; padding-left: 0; list-style: none; display: grid; gap: 6px; }
.lg-body .legal-list li { position: relative; padding-left: 20px; }
.lg-body .legal-list li::before { content: ''; position: absolute; left: 4px; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--lx-gold-ink); }
.lg-contact h2 { margin: 0 0 16px; font-size: 20px; font-weight: 800; color: var(--lx-ink); }
.lg-contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lg-ci { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; border: 1px solid var(--lx-line); background: var(--lx-paper); color: var(--lx-gold-ink); }
.lg-ci > svg { flex: none; margin-top: 2px; }
.lg-ci span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.lg-ci b { font-size: 14.5px; color: var(--lx-ink); overflow-wrap: anywhere; }
.lg-ci small { font-size: 13.5px; color: var(--lx-ink-2); overflow-wrap: anywhere; }
.lg-ci a { color: var(--lx-royal-2, #0059B8); font-weight: 600; text-decoration: none; }
.lg-more { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 6px; }
.lg-more span { margin-right: 4px; font-size: 13px; font-weight: 700; color: var(--lx-ink-3); }
.lg-more a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--lx-line-strong); background: var(--lx-card); color: var(--lx-ink); font-size: 13.5px; font-weight: 600; text-decoration: none; }
.lg-more a:hover { border-color: var(--lx-ink-3); }
.lg-more a[aria-current='page'] { background: #003C87; border-color: #003C87; color: #FFFFFF; }
.lg-loading { display: grid; gap: 12px; }
.lg-loading span { height: 14px; border-radius: 7px; background: var(--lx-paper-2); }
.lg-loading span:first-child { width: 40%; height: 22px; } .lg-loading span:last-child { width: 70%; }
:root[data-theme='dark'] .lg-card, :root[data-theme='dark'] .lg-toc { box-shadow: none; }
:root[data-theme='dark'] .lg-langs button[aria-pressed='true'], :root[data-theme='dark'] .lg-more a[aria-current='page'] { background: #3569B8; border-color: #3569B8; color: #F3F6FA; }
:root[data-theme='dark'] .lg-toc a.on { background: #1A2638; color: #E3E7ED; }
@media (max-width: 960px) { .lg-layout { grid-template-columns: 1fr; } .lg-toc { position: static; } }
@media (max-width: 640px) { .lg-card { padding: 22px 18px; } .lg-contact-grid { grid-template-columns: 1fr; } .lg-head { align-items: flex-start; } }
@media print { .lx-bar, .lg-tools, .lg-toc, .lg-more { display: none !important; } .lg-layout { display: block; } .lg-card { box-shadow: none; border: 0; padding: 0; } }
.vf-input input, .vf-input input:focus, .vf-input input:focus-visible { outline: none !important; box-shadow: none !important; border: 0 !important; background: transparent !important; padding: 0 !important; }

/* ===== Language switch ===== */
.lsw { position: relative; flex: none; }
.lsw-btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--lx-line, var(--border)); background: transparent; color: var(--lx-ink, var(--text)); font: 600 13px var(--lx-sans, inherit); cursor: pointer; white-space: nowrap; }
.lsw-btn:hover { border-color: var(--lx-line-strong, var(--border-strong)); }
.lsw-btn:focus-visible { outline: 2px solid #0059B8; outline-offset: 2px; }
.lsw-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 120; min-width: 180px; padding: 6px; border-radius: 14px; border: 1px solid var(--lx-line, var(--border)); background: var(--lx-card, var(--card)); box-shadow: 0 18px 40px -18px rgba(1, 42, 104, .35); display: grid; gap: 2px; }
.lsw-menu button { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 0; border-radius: 10px; background: transparent; color: var(--lx-ink, var(--text)); font: 600 14px var(--lx-sans, inherit); text-align: left; cursor: pointer; }
.lsw-menu button:hover { background: var(--lx-paper-2, var(--grey-soft)); }
.lsw-menu button[aria-checked='true'] { color: #003C87; }
:root[data-theme='dark'] .lsw-menu button[aria-checked='true'] { color: #9DB9E3; }
:root[data-theme='dark'] .lsw-menu { box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .6); }
@media (max-width: 640px) { .lsw-btn span { display: none; } .lsw-btn { width: 40px; padding: 0; justify-content: center; } }
/* Longer words in BM / Tamil: keep top-bar items on one line */
.lx-nav a, .lx-bar-cta, .lx-signin, .cx-bar-cta { white-space: nowrap; }
.lx-nav { gap: clamp(14px, 2vw, 28px); }
@media (max-width: 1240px) { :root[lang='ta'] .lx-nav a, :root[lang='ms'] .lx-nav a { font-size: 13.5px; } }

/* ---- Gallery (2 Nov 2026) ---- */
.gl-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.gl-grid > li { min-width: 0; }
.gl-tile { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 1px solid var(--lx-line); border-radius: 14px; overflow: hidden; background: var(--lx-soft, #EEF3FA); cursor: zoom-in; }
.gl-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.gl-tile:hover img { transform: scale(1.03); }
.gl-tile:focus-visible { outline: 3px solid var(--lx-gold, #F5C758); outline-offset: 2px; }
.gl-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 10px; font-size: 13px; font-weight: 600; color: #fff; text-align: left; background: linear-gradient(transparent, rgba(1, 20, 50, .78)); }
.gl-about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 36px; align-items: center; }
.gl-about-text h2 { margin: 8px 0 12px; }
.gl-about-text p { color: var(--lx-ink-2); line-height: 1.6; }
.gl-about-addr { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.gl-about .gl-grid { grid-template-columns: repeat(3, 1fr); }
.gl-about .gl-grid > li:first-child { grid-column: span 2; grid-row: span 2; }
.gl-about .gl-grid > li:first-child .gl-tile { aspect-ratio: auto; height: 100%; min-height: 220px; }
.gl-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.gl-sec-head h2 { margin: 8px 0 0; }
.gl-page { padding: 40px 0 64px; }
.gl-head { margin-bottom: 22px; }
.gl-head h1 { margin: 8px 0 6px; font-size: clamp(28px, 4vw, 40px); }
.gl-head p { color: var(--lx-ink-2); }
.gl-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.gl-tabs button { border: 1px solid var(--lx-line); background: var(--lx-card, #fff); color: var(--lx-ink); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.gl-tabs button span { opacity: .6; margin-left: 4px; font-weight: 500; }
.gl-tabs button.on { background: var(--lx-navy, #012A68); border-color: var(--lx-navy, #012A68); color: #fff; }
.gl-empty { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 48px 16px; border: 1px dashed var(--lx-line); border-radius: 16px; color: var(--lx-ink-2); }
.gl-empty strong { color: var(--lx-ink); font-size: 17px; }
.gl-empty-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--lx-soft, #EEF3FA); color: var(--lx-navy, #012A68); margin-bottom: 6px; }
.gl-back { margin-top: 28px; }
.gl-view { position: fixed; inset: 0; z-index: 400; background: rgba(4, 10, 22, .92); display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.gl-view figure { grid-column: 2; margin: 0; display: grid; gap: 10px; justify-items: center; max-height: 100dvh; padding: 56px 0 20px; }
.gl-view img { max-width: 100%; max-height: calc(100dvh - 120px); object-fit: contain; border-radius: 8px; }
.gl-view figcaption { width: 100%; display: flex; justify-content: space-between; gap: 12px; color: #E8EDF5; font-size: 14px; }
.gl-count { opacity: .7; white-space: nowrap; }
.gl-x, .gl-nav { display: grid; place-items: center; border: 0; background: rgba(255, 255, 255, .12); color: #fff; border-radius: 50%; cursor: pointer; }
.gl-x { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; }
.gl-nav { width: 48px; height: 48px; justify-self: center; }
.gl-prev { grid-column: 1; grid-row: 1; } .gl-next { grid-column: 3; grid-row: 1; }
.gl-x:hover, .gl-nav:hover { background: rgba(255, 255, 255, .22); }
.gl-tile.skel { cursor: default; }
:root[data-theme='dark'] .gl-tile { border-color: rgba(255, 255, 255, .08); background: #161C26; }
:root[data-theme='dark'] .gl-tabs button { background: #161C26; border-color: rgba(255, 255, 255, .1); color: #E6EAF0; }
:root[data-theme='dark'] .gl-tabs button.on { background: #D9B45A; border-color: #D9B45A; color: #10151D; }
:root[data-theme='dark'] .gl-empty-ic { background: #1C2430; color: #D9B45A; }
@media (max-width: 900px) {
  .gl-about { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 640px) {
  .gl-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .gl-about .gl-grid { grid-template-columns: repeat(2, 1fr); }
  .gl-about .gl-grid > li:first-child { grid-row: auto; }
  .gl-about .gl-grid > li:first-child .gl-tile { aspect-ratio: 16 / 9; min-height: 0; }
  .gl-cap { font-size: 12px; padding: 18px 8px 6px; }
  .gl-view { grid-template-columns: 0 1fr 0; }
  .gl-view figure { padding: 60px 8px 76px; }
  .gl-nav { position: fixed; bottom: 16px; }
  .gl-prev { left: calc(50% - 60px); } .gl-next { right: calc(50% - 60px); }
}
@media (prefers-reduced-motion: reduce) { .gl-tile img { transition: none; } .gl-tile:hover img { transform: none; } }
.gl-about-text h2, .gl-sec-head h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.12; letter-spacing: -0.02em; color: var(--lx-navy, #012A68); }
:root[data-theme='dark'] .gl-about-text h2, :root[data-theme='dark'] .gl-sec-head h2 { color: #EEF2F7; }
.gl-about .gl-grid:has(> li:only-child) { grid-template-columns: 1fr; }
.gl-about .gl-grid > li:only-child .gl-tile { aspect-ratio: 16 / 9; min-height: 0; height: auto; }
/* Office photos + address inside Why ATURRR */
.gl-trust { margin-top: 28px; display: grid; gap: 14px; }
.gl-trust-head { display: flex; align-items: center; justify-content: space-between; gap: 10px 20px; flex-wrap: wrap; }
.gl-trust-head > strong { font-size: 18px; color: var(--lx-ink); }
.gl-trust-addr { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--lx-ink-2); text-decoration: none; }
.gl-trust-addr:hover span:not(.gl-trust-dir) { text-decoration: underline; }
.gl-trust-dir { font-weight: 700; color: var(--lx-royal, #0059B8); white-space: nowrap; }
.gl-trust .gl-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.gl-trust .gl-grid > li:first-child { grid-column: auto; grid-row: auto; }
.gl-trust .gl-tile, .gl-trust .gl-grid > li:first-child .gl-tile { aspect-ratio: 3 / 4; height: auto; min-height: 0; }
:root[data-theme='dark'] .gl-trust-head > strong { color: #EEF2F7; }
:root[data-theme='dark'] .gl-trust-addr { color: #B9C2CF; }
:root[data-theme='dark'] .gl-trust-dir { color: #D9B45A; }
@media (max-width: 640px) {
  .gl-trust .gl-grid { grid-template-columns: repeat(2, 1fr); }
}
/* The Why ATURRR band styles every li/span; reset them for the photo grid. */
.lx-band .gl-grid > li { display: block; padding: 0; border: 0; grid-template-columns: none; }
.lx-band .gl-grid > li:last-child { border: 0; }
.lx-band .gl-grid .gl-cap { display: block; margin: 0; font-size: 13px; line-height: 1.3; color: #fff; }
.lx-band .gl-trust-addr span { display: inline; margin: 0; font-size: 14px; line-height: 1.4; color: inherit; }
.lx-band .gl-trust-addr .gl-trust-dir { color: var(--lx-royal, #0059B8); }
:root[data-theme='dark'] .lx-band .gl-trust-addr .gl-trust-dir { color: #D9B45A; }
.lx-ctile-addr { grid-column: 1 / -1; }
/* Office map (Google Maps embed) */
.gl-map { position: relative; height: 340px; border-radius: 16px; overflow: hidden; border: 1px solid var(--lx-line); background: #E8EEF6; }
.gl-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.gl-map-btn { position: absolute; right: 14px; top: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 12px; background: var(--lx-navy, #012A68); color: #fff !important; font-weight: 700; font-size: 14px; text-decoration: none; box-shadow: 0 10px 24px -10px rgba(1, 42, 104, .55); }
.gl-map-btn:hover { background: #003C87; }
.lx-band .gl-map-btn { color: #fff; }
:root[data-theme='dark'] .gl-map { border-color: rgba(255, 255, 255, .1); background: #161C26; }
:root[data-theme='dark'] .gl-map iframe { filter: brightness(.86) contrast(1.05) saturate(.9); }
:root[data-theme='dark'] .gl-map-btn { background: #D9B45A; color: #10151D !important; }
@media (max-width: 640px) {
  .gl-map { height: auto; overflow: visible; border: 0; background: none; display: grid; gap: 10px; }
  .gl-map iframe { height: 260px; border-radius: 16px; border: 1px solid var(--lx-line); }
  .gl-map-btn { position: static; justify-content: center; }
}

/* ---- What changed (2 Nov 2026) ---- */
.cl-page { padding: 40px 0 72px; }
.cl-wrap { max-width: 920px; }
.cl-hero { margin-bottom: 30px; }
.cl-hero h1 { margin: 8px 0 6px; font-size: clamp(30px, 4.4vw, 44px); color: var(--lx-navy, #012A68); letter-spacing: -0.02em; }
.cl-hero p { color: var(--lx-ink-2); font-size: 16px; }
.cl-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; position: relative; }
.cl-entry { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 22px; position: relative; }
.cl-entry::before { content: ''; position: absolute; left: 170px; margin-left: 11px; top: 30px; bottom: -26px; width: 2px; background: var(--lx-line); }
.cl-entry:last-child::before { bottom: 0; }
.cl-date { display: grid; align-content: start; gap: 8px; padding-top: 22px; text-align: right; }
.cl-date time { font-weight: 700; color: var(--lx-ink); font-size: 15px; }
.cl-latest { justify-self: end; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; color: #7A4A00; background: linear-gradient(90deg, #F5C758, #EA983A); }
.cl-card { background: var(--lx-card, #fff); border: 1px solid var(--lx-line); border-radius: 18px; padding: 22px 24px; position: relative; overflow: hidden; }
.cl-entry:first-child .cl-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, #F5C758, #EA983A, #E2151A); }
.cl-card h2 { margin: 0 0 14px; font-size: 20px; color: var(--lx-navy, #012A68); }
.cl-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.cl-items > li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--lx-line); }
.cl-items > li:first-child { border-top: 0; padding-top: 2px; }
.cl-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #EEF3FA; color: var(--lx-navy, #012A68); }
.cl-item-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cl-item-head strong { font-size: 15px; color: var(--lx-ink); }
.cl-items p { margin: 3px 0 0; color: var(--lx-ink-2); font-size: 14.5px; line-height: 1.55; }
.cl-tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.cl-tag-new { background: #E6F4EA; color: #1E6B35; }
.cl-tag-improved { background: #E7F0FD; color: #0B4FA8; }
.cl-tag-changed { background: #FDF1DD; color: #8A5300; }
.cl-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 30px; }
.cl-links a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--lx-line); background: var(--lx-card, #fff); color: var(--lx-ink); font-size: 14px; font-weight: 600; text-decoration: none; }
.cl-links a:hover { border-color: var(--lx-royal, #0059B8); }
:root[data-theme='dark'] .cl-hero h1, :root[data-theme='dark'] .cl-card h2 { color: #EEF2F7; }
:root[data-theme='dark'] .cl-card, :root[data-theme='dark'] .cl-links a { background: #141A23; border-color: rgba(255, 255, 255, .08); }
:root[data-theme='dark'] .cl-items > li { border-color: rgba(255, 255, 255, .07); }
:root[data-theme='dark'] .cl-entry::before { background: rgba(255, 255, 255, .1); }
:root[data-theme='dark'] .cl-ic { background: #1C2430; color: #D9B45A; }
:root[data-theme='dark'] .cl-date time, :root[data-theme='dark'] .cl-item-head strong, :root[data-theme='dark'] .cl-links a { color: #E6EAF0; }
:root[data-theme='dark'] .cl-items p, :root[data-theme='dark'] .cl-hero p { color: #A9B3C1; }
:root[data-theme='dark'] .cl-tag-new { background: rgba(76, 175, 110, .16); color: #8EDBA6; }
:root[data-theme='dark'] .cl-tag-improved { background: rgba(90, 150, 240, .16); color: #9CC2F6; }
:root[data-theme='dark'] .cl-tag-changed { background: rgba(217, 180, 90, .16); color: #E6C67A; }
@media (max-width: 720px) {
  .cl-entry { grid-template-columns: 1fr; gap: 10px; }
  .cl-entry::before { display: none; }
  .cl-date { text-align: left; padding-top: 0; grid-auto-flow: column; justify-content: start; align-items: center; }
  .cl-latest { justify-self: start; }
  .cl-card { padding: 18px 16px; }
}
/* Theme menu (System / Light / Dark) reuses the language menu look. */
.tsw .lsw-menu { min-width: 160px; }
.tsw-opt { display: inline-flex; align-items: center; gap: 10px; }
.gl-trust-head .gl-book { margin-right: auto; }
@media (max-width: 640px) { .gl-trust-head .gl-book { order: 3; width: 100%; justify-content: center; } }
/* Hero "not a lender" note (2 Nov 2026): a tidy pill under the team photo */
.lx-hero .lx-hero-note { display: flex; width: fit-content; max-width: 100%; margin: 18px auto 0; padding: 8px 16px 8px 8px; gap: 10px; align-items: center; border-radius: 999px; background: var(--lx-card); border: 1px solid var(--lx-line); color: var(--lx-ink-2); font-size: 13.5px; line-height: 1.4; box-shadow: 0 6px 18px -14px rgba(1, 42, 104, .35); }
.lx-hero .lx-hero-note::before { display: none; }
.lx-hero-note-ic { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: color-mix(in srgb, var(--lx-gold) 18%, transparent); color: var(--lx-gold-ink); flex: none; }
:root[data-theme='dark'] .lx-hero .lx-hero-note { background: #141A21; border-color: #222A34; color: #AEB7C4; box-shadow: none; }
@media (max-width: 640px) { .lx-hero .lx-hero-note { border-radius: 14px; font-size: 12.5px; padding: 8px 12px 8px 8px; } }

/* ---- "At a glance" band under the hero (2 Nov 2026) ---- */
.lx-glance { padding: 28px 0 8px; }
.lx-glance ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lx-glance li { display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px; border-radius: 16px; background: var(--lx-card); border: 1px solid var(--lx-line); }
.lx-glance-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; flex: none; background: color-mix(in srgb, var(--lx-gold) 16%, transparent); color: var(--lx-gold-ink); }
.lx-glance-txt { display: grid; gap: 4px; min-width: 0; }
.lx-glance-txt strong { font-size: 16px; font-weight: 700; color: #012A68; line-height: 1.3; }
.lx-glance-txt span { font-size: 14px; line-height: 1.5; color: var(--lx-ink-2); }
:root[data-theme='dark'] .lx-glance li { background: #141A21; border-color: #222A34; }
:root[data-theme='dark'] .lx-glance-txt strong { color: #E3E7ED; }
:root[data-theme='dark'] .lx-glance-ic { background: rgba(217, 176, 92, .12); color: #D9B05C; }
@media (max-width: 900px) { .lx-glance ul { grid-template-columns: 1fr; gap: 10px; } .lx-glance li { padding: 14px 16px; } }

/* Social links (footer) */
.social-links { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.social-links a { width: 38px; height: 38px; border-radius: 999px; display: grid; place-items: center; color: #012A68; background: #fff; border: 1px solid rgba(1, 42, 104, .14); transition: background .15s, color .15s, border-color .15s; }
.social-links a:hover, .social-links a:focus-visible { background: #012A68; color: #F5C758; border-color: #012A68; }
.lx-foot .social-links a { color: #EAF2FC; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); }
.lx-foot .social-links a:hover, .lx-foot .social-links a:focus-visible { background: #F5C758; color: #012A68; border-color: #F5C758; }
@media (prefers-reduced-motion: reduce) { .social-links a { transition: none; } }
.lx-btn-facebook { background: #1877F2; color: #fff; border-color: #1877F2; }
.lx-btn-facebook:hover:not([disabled]) { background: #166FE5; border-color: #166FE5; }
.lx-btn-facebook svg circle { fill: #fff; } .lx-btn-facebook svg path { fill: #1877F2; }

/* Ad slot: inline, quiet, reserved height so nothing shifts. */
.ad-slot {
  max-width: 970px;
  margin: 8px auto;
  padding: 0 16px;
  min-height: 118px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.ad-slot .adsbygoogle { width: 100%; min-height: 90px; }
.ad-slot-label {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.55;
}
.ad-slot ins[data-ad-status='unfilled'] { display: none !important; }
/* Site-wide editorial theme (Nov 2026 redesign).
   Loaded after tokens.css + app.css so every portal, inner page and src/ui
   module picks up the same ivory / navy / gold palette and serif headings
   as the homepage and sign-in. Status colours (success/warning/danger/info)
   are deliberately left alone so case states stay readable. */

:root {
  /* Banner palette + Montserrat everywhere */
  --font-sans: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-script: 'Montserrat', system-ui, sans-serif;

  --navy: #012A68;
  --navy-2: #003C87;
  --navy-3: #0059B8;
  --navy-deep: #001F49;
  --navy-gradient: linear-gradient(135deg, #002B58 0%, #003C87 55%, #0059B8 100%);
  --topbar-gradient: linear-gradient(90deg, #002B58 0%, #003C87 100%);
  --gold: #F2B64A;
  --gold-light: #F5C758;
  --gold-ink: #A9580A;

  --primary: #003C87;
  --primary-hover: #0059B8;
  --primary-soft: #E3EEFB;
  --on-primary: #FFFFFF;
  --secondary: #012A68;
  --secondary-soft: #E8EFF9;

  --page: #F6F9FE;
  --card: #FFFFFF;
  --card-alt: #F3F7FD;
  --surface-1: var(--page);
  --surface-2: var(--card);
  --surface-3: var(--card-alt);
  --border: #DCE6F3;
  --border-strong: #BCCDE4;
  --text: #012A68;
  --text-2: #2E4672;
  --text-3: #5A6C90;
  --text-muted: var(--text-3);
  --grey-soft: #EAF0F8;
  --gold-soft: #FDF1D8;

  --shadow-sm: 0 1px 2px rgba(1, 42, 104, 0.06);
  --shadow: 0 1px 2px rgba(1, 42, 104, 0.05), 0 8px 20px -12px rgba(1, 42, 104, 0.18);
  --shadow-md: 0 14px 34px -18px rgba(1, 42, 104, 0.30);
  --shadow-focus: 0 0 0 3px color-mix(in srgb, #F2B64A 40%, transparent);

  --c1: #003C87;
  --c2: #F2B64A;
  --c3: #E2151A;
  --c6: #86CCFC;
  --chart-1: #003C87;
  --chart-2: #F2B64A;
  --chart-3: #E2151A;
  --chart-6: #86CCFC;
}

:root[data-theme='dark'] {
  --primary: #0059B8;
  --primary-hover: #1A6FD0;
  --primary-soft: #0E2E5C;
  --on-primary: #FFFFFF;
  --secondary-soft: #0A2856;
  --page: #031634;
  --card: #0A2856;
  --card-alt: #062049;
  --border: #143566;
  --border-strong: #234B85;
  --text: #F4F8FF;
  --text-2: #C3D3EC;
  --text-3: #8EA4C8;
  --grey-soft: #0E2E5C;
  --gold-soft: #2B2410;
  --gold-ink: #F5C758;
  --c1: #4E9BEA;
  --chart-1: #4E9BEA;
  --c2: #F5C758;
  --chart-2: #F5C758;
}

body { background: var(--page); color: var(--text); }

/* ---------- headings: serif display, like the homepage ---------- */
.page-header h1,
.topbar .title-block h1,
.auth-card h1,
.auth-title,
.legal h1,
[class*='titleBlock'] h1,
[class*='PageHeader'] h1,
[class*='pageHeader'] h1 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
}
.page-header h1, [class*='PageHeader'] h1, [class*='pageHeader'] h1 { font-size: clamp(26px, 2.6vw, 34px); }
.topbar .title-block h1, [class*='titleBlock'] h1 { font-size: 24px; }
.card-head h2, .card > h2 { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }

/* ---------- buttons ---------- */
.btn { border-radius: 10px; font-weight: 600; letter-spacing: .005em; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover:not(:disabled) { background: var(--primary-hover); }
.btn-navy { background: #003C87; color: #FFFFFF; }
.btn-navy:hover:not(:disabled) { background: #0059B8; }
:root[data-theme='dark'] .btn-navy { background: var(--primary); color: var(--on-primary); }
:root[data-theme='dark'] .btn-gold { background: #D9B05C; color: #012A68; }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-outline:hover:not(:disabled) { background: var(--card); border-color: var(--text); }
.btn-gold { background: #F5C758; color: #012A68; }
.btn:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.learn-row:hover { border-color: var(--border-strong); }

/* ---------- cards & surfaces ---------- */
.card { border: 1px solid var(--border); box-shadow: none; border-radius: 16px; }

/* ---------- side navigation: deep navy with gold accent ---------- */
.sidebar { background: linear-gradient(180deg, #002B58 0%, #012A68 100%); }
:root[data-theme='dark'] .sidebar { background: #070D1D; border-right: 1px solid var(--border); }
.nav-child.active { background: rgba(245, 199, 88, .16); color: #F5C758; }
.nav-item.active { box-shadow: inset 3px 0 0 #F5C758; }

.topbar.navy { background: var(--topbar-gradient); }
.topbar.light { background: color-mix(in srgb, var(--page) 90%, transparent); backdrop-filter: blur(10px); }

/* ---------- inputs: warm surface, navy focus with gold ring ---------- */
input:not([type='checkbox']):not([type='radio']):not([type='color']):not([type='range']),
select, textarea { background-color: var(--card); }

/* ---------- full-screen status pages (password change, 2FA, errors) ---------- */
.center-page { background: var(--page); }
.center-page .auth-card { border: 1px solid var(--border); box-shadow: 0 30px 60px -36px rgba(11, 27, 63, .35); border-radius: 20px; padding: 36px; }
.center-page .auth-brand { background: transparent; }
.center-page .auth-brand .wm-name { color: var(--text); }
.center-page .auth-brand .wm-sub { color: var(--gold-ink); }
.center-page .auth-brand .script { color: var(--gold-ink) !important; }
:root[data-theme='dark'] .center-page .auth-brand .wm-sub,
:root[data-theme='dark'] .center-page .auth-brand .script { color: var(--gold-light) !important; }

/* Legacy marketing chrome used by /verify, legal and landing pages */
.mkt-bar { background: color-mix(in srgb, var(--page) 90%, transparent); border-bottom: 1px solid var(--border); }
.mkt { background: var(--page); }
.mkt h1, .mkt h2 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.025em; }

/* ---------- forms inside the editorial sign-in shell ---------- */
.lx-auth-form h1 { color: var(--lx-ink); }
.lx-auth-form .col > div > h1 { margin-top: 16px; }
.lx-auth-form form.col { gap: 18px !important; }
.lx-auth-form .btn { height: 50px; font-size: 15px; }
.lx-auth-form .btn-primary { background: #003C87; color: #FFFFFF; }
:root[data-theme='dark'] .lx-auth-form .btn-primary { background: #0059B8; color: #FFFFFF; }
.lx-auth-form .field label, .lx-auth-form label.label { font-weight: 600; color: var(--lx-ink); }
.lx-auth-form input:not([type='checkbox']) { height: 52px; border-radius: 12px; border-color: var(--lx-line-strong); font-size: 16px; }
.lx-auth-form .link-btn { color: var(--lx-gold-ink); font-weight: 600; }
.lx-auth-form .lx-sub { margin-bottom: 8px; }

/* ---------- legal pages ---------- */
.legal-head { background: color-mix(in srgb, var(--page) 92%, transparent) !important; border-bottom: 1px solid var(--border); color: var(--text) !important; backdrop-filter: blur(10px); }
.legal-head .wm-name { color: var(--text) !important; }
.legal-head .wm-sub { color: var(--gold-ink) !important; }
:root[data-theme='dark'] .legal-head .wm-sub { color: var(--gold-light) !important; }
.legal-langs button, .legal-print { color: var(--text-2) !important; border-color: var(--border) !important; background: transparent !important; }
.legal-langs button.active { background: var(--primary) !important; color: var(--on-primary) !important; border-color: var(--primary) !important; }
.legal-main > h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(32px, 3.8vw, 46px); letter-spacing: -0.015em; line-height: 1.04; }
.legal-section h2, .legal-section > h1 { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.005em; }
.legal-toc { background: transparent !important; border: 0 !important; border-left: 1px solid var(--border) !important; border-radius: 0 !important; }
.legal-section { border-radius: 18px; }

/* ---------- status pages (404, offline, errors) ---------- */
.site-bar, .site-foot { background: var(--page) !important; }
.status-card h1, .status-card h2, .status-branded h1 { font-family: var(--font-display); font-weight: 800; font-size: 28px; letter-spacing: -0.02em; }
.status-card { border-radius: 20px; }
.status-card [class*='title'], .status-card h3 { font-family: var(--font-display); font-weight: 800; font-size: 26px; letter-spacing: -0.02em; }

/* legal header on phones: one scrollable row of language pills */
@media (max-width: 640px) {
  .legal-head-actions { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; max-width: 100%; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .legal-head-actions::-webkit-scrollbar { display: none; }
  .legal-langs { flex-wrap: nowrap !important; }
  .legal-langs button, .legal-print { flex: none; white-space: nowrap; }
}

/* Slogan: the banner's italic sans, not a script face */
.script, .slogan, .wm-name + .wm-sub ~ .script { font-family: var(--font-script) !important; font-style: italic; font-weight: 600; letter-spacing: 0; }
body, button, input, select, textarea { font-family: var(--font-sans); }
.wm-name { font-family: var(--font-sans); font-weight: 800; letter-spacing: .06em; }

/* status pages (404 etc): content-height layout, compact card */
.site.status-page { min-height: 0; }
.status-page .site-main { padding: 24px 20px 24px; }
.status-card { margin: 8px auto; }
.status-card [class*='wrap'] { padding-top: 28px !important; padding-bottom: 28px !important; gap: 12px !important; }

/* Google / Apple customers: add-a-mobile card */
.phone-link { margin: 0 0 18px; padding: 18px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--border)); background: color-mix(in srgb, var(--gold-soft) 55%, var(--card)); }
.phone-link-head { display: flex; gap: 14px; align-items: flex-start; }
.phone-link-ic { flex: none; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--primary); color: var(--on-primary); }
.phone-link h2 { margin: 0; font-size: 17px; font-weight: 800; }
.phone-link-head p { margin: 4px 0 0; font-size: 14px; color: var(--text-2); line-height: 1.5; }
.phone-link-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.phone-link-dial { display: inline-flex; align-items: center; gap: 2px; height: 44px; padding: 0 10px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--card); font-weight: 600; }
.phone-link-dial input { width: 38px; border: 0; outline: 0; background: transparent; font: inherit; color: var(--text); }
.phone-link-num { flex: 1 1 180px; height: 44px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--card); color: var(--text); font: inherit; }
.phone-link-otp { flex: 1 1 260px; }
.phone-link-note { margin: 8px 0 0; font-size: 13px; color: var(--text-3); }
.phone-link-err { margin: 8px 0 0; font-size: 13.5px; color: var(--danger); }

.version-toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 200; display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 18px; border-radius: 14px; background: var(--card); color: var(--text); border: 1px solid var(--border-strong); box-shadow: var(--shadow-md); font-size: 14px; font-weight: 600; }
@media (max-width: 640px) { .version-toast { bottom: 84px; width: calc(100% - 24px); justify-content: space-between; } }

/* ===== ATURRR logo ===== */
:root { --logo-ink: #062A6B; }
:root[data-theme='dark'] { --logo-ink: #FFFFFF; }
.aturrr-logo { display: block; flex: none; overflow: visible; }
.brand-lockup { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 5px; line-height: 1; text-decoration: none; }
.brand-sub { font: 700 9.5px/1 var(--font-sans); letter-spacing: .34em; color: var(--lx-ink-3, #5A6C90); padding-left: 2px; }
.lx-foot .brand-sub, .cx-foot .brand-sub { color: #B9CCE8; }
.lx-wm { display: block; max-width: 100%; }
.lx-wm .aturrr-logo { height: clamp(48px, 5vw, 72px); width: auto; max-width: 100%; }
@media (max-width: 560px) { .cx .brand-sub, .lx-bar .brand-sub { display: none; } }
/* Customer website (signed in). Same editorial language as the homepage and
   sign-in: paper ground, navy ink, gold accent, Montserrat, rounded cards.
   Everything is scoped under .cx so staff portals keep their own chrome. */

.cx { display: flex; flex-direction: column; min-height: 100vh; }
.cx-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 32px; }

/* Map the shared app tokens onto the landing palette inside the customer site */
.cx {
  --page: var(--lx-paper);
  --card: var(--lx-card);
  --text: var(--lx-ink);
  --text-2: var(--lx-ink-2);
  --text-3: var(--lx-ink-3);
  --border: var(--lx-line);
  --border-strong: var(--lx-line-strong);
  --navy: var(--lx-ink);
}

/* ---------- top bar ---------- */
.cx-bar {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--lx-paper) 94%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--lx-line);
}
.cx-bar-in { display: flex; align-items: center; gap: 24px; height: 72px; }
.cx-nav { display: flex; align-items: center; gap: 4px; margin: 0 auto; }
.cx-nav > a, .cx-drop > button {
  white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; height: 38px; padding: 0 14px; border-radius: 999px;
  font: 600 14px/1 var(--lx-sans); color: var(--lx-ink-2); text-decoration: none;
  background: transparent; border: 0; cursor: pointer;
}
.cx-nav > a:hover, .cx-drop > button:hover { color: var(--lx-ink); background: var(--lx-paper-2); text-decoration: none; }
.cx-nav > a.active, .cx-drop > button.active { color: var(--lx-ink); background: var(--lx-paper-2); box-shadow: inset 0 0 0 1px var(--lx-line); }
.cx-drop { position: relative; }
.cx-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 220px; z-index: 40; padding: 8px;
  background: var(--lx-card); border: 1px solid var(--lx-line); border-radius: 14px; box-shadow: 0 18px 40px rgba(1, 42, 104, .12);
}
.cx-menu a { display: block; padding: 10px 12px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--lx-ink); text-decoration: none; }
.cx-menu a:hover { background: var(--lx-paper-2); text-decoration: none; }
.cx-bar-end { display: flex; align-items: center; gap: 10px; margin-left: 0; }
.cx-bar-end .icon-btn {
  width: 40px; height: 40px; padding: 0; display: inline-grid; place-items: center; border-radius: 999px;
  border: 1px solid var(--lx-line); background: transparent; color: var(--lx-ink);
}
.cx-bar-end .icon-btn:hover { border-color: var(--lx-line-strong); background: transparent; }
.cx-bar-end .user { padding: 3px 10px 3px 3px; border-radius: 999px; border: 1px solid var(--lx-line); }
.cx-bar-end .user:hover { border-color: var(--lx-line-strong); }
.cx-bar-end .user .name { font-size: 14px; font-weight: 700; color: var(--lx-ink); }
.cx-bar-end .user .role { font-size: 11.5px; color: var(--lx-ink-3); opacity: 1; }
.cx-bar-end .avatar { background: var(--lx-band-bg) !important; color: #fff; }

/* ---------- main ---------- */
.cx .cx-main { width: 100%; max-width: 1180px; margin: 0 auto; padding: 36px 32px 72px; flex: 1; }
.cx h1, .cx h2, .cx h3 { color: var(--lx-ink); font-family: var(--lx-sans); }

/* Shared page header on every inner page */
.cx .page-header { margin-bottom: 28px; align-items: flex-end; }
.cx .page-header h1 { font-size: clamp(30px, 3.4vw, 42px); font-weight: 800; letter-spacing: -.02em; line-height: 1.08; }
.cx .page-header .ph-sub { font-size: 16px; color: var(--lx-ink-2); margin-top: 10px; max-width: 640px; line-height: 1.55; }
.cx .breadcrumb { font-size: 12.5px; letter-spacing: .04em; color: var(--lx-ink-3); margin-bottom: 10px; }
.cx .breadcrumb a { color: var(--lx-gold-ink); }

/* Cards, forms, buttons inherit the editorial shape */
.cx .card { background: var(--lx-card); border: 1px solid var(--lx-line); border-radius: var(--lx-radius); box-shadow: 0 1px 2px rgba(1, 42, 104, .04); padding: 22px; }
.cx .card-head h2, .cx .card-head h3 { font-size: 17px; font-weight: 700; }
.cx .btn { border-radius: 11px; font-family: var(--lx-sans); font-weight: 600; }
.cx .btn-primary { background: var(--lx-royal); color: #fff; }
.cx .btn-primary:hover:not(:disabled) { background: var(--lx-royal-2); }
.cx .btn-outline { background: transparent; color: var(--lx-ink); border-color: var(--lx-line-strong); }
.cx .btn-outline:hover:not(:disabled) { border-color: var(--lx-ink); background: transparent; }
.cx .input, .cx input.input, .cx select, .cx textarea { border-radius: 11px; border-color: var(--lx-line-strong); background: var(--lx-card); color: var(--lx-ink); font-family: var(--lx-sans); }
.cx .input:focus, .cx select:focus, .cx textarea:focus { border-color: var(--lx-royal-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lx-gold) 22%, transparent); }
.cx .field-label { color: var(--lx-ink); font-weight: 600; }
.cx .empty { border: 1px dashed var(--lx-line-strong); border-radius: var(--lx-radius); background: var(--lx-card); padding: 40px 24px; }

/* ---------- home: hero ---------- */
.cx-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr); gap: 28px; align-items: stretch; }
.cx-hero-text { padding: 8px 0; display: flex; flex-direction: column; justify-content: center; }
.cx-hero-text .lx-kicker { color: var(--lx-gold-ink); }
.cx-hero-text h1 { margin: 14px 0 0; font-size: clamp(40px, 5vw, 60px); font-weight: 800; letter-spacing: -.03em; line-height: 1.02; }
.cx-hero-text p { margin: 16px 0 0; font-size: 17px; line-height: 1.6; color: var(--lx-ink-2); max-width: 520px; }
.cx-stats { margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 520px; border: 1px solid var(--lx-line); border-radius: 16px; background: var(--lx-card); overflow: hidden; }
.cx-stats > div { padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.cx-stats > div + div { border-left: 1px solid var(--lx-line); }
.cx-stats strong { font-size: 28px; font-weight: 800; line-height: 1; color: var(--lx-ink); }
.cx-stats span { font-size: 12.5px; color: var(--lx-ink-3); font-weight: 500; }
.cx-stats .warn strong { color: #C2410C; }
:root[data-theme='dark'] .cx-stats .warn strong { color: #D9B05C; }

.cx-next {
  position: relative; overflow: hidden; border-radius: 22px; padding: 26px;
  background: var(--lx-band-bg); color: #EAF2FC; display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 24px 48px -24px rgba(1, 42, 104, .55);
}
.cx-next::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--lx-grad); }
.cx-next-kicker { font: 700 11.5px/1 var(--lx-sans); letter-spacing: .2em; text-transform: uppercase; color: #F5C758; }
.cx-next h2 { margin: 2px 0 0; font-size: 24px; font-weight: 800; line-height: 1.2; color: #fff !important; }
.cx-next p { margin: 0; font-size: 15px; line-height: 1.55; color: #C5D6EE; }
.cx-next-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: #B9CCE8; font-weight: 600; letter-spacing: .02em; }
.cx-next .lx-btn { margin-top: auto; }
.cx-next .cx-steps-bar span { background: rgba(255, 255, 255, .18); }
.cx-next .cx-steps-bar span.done { background: #86CCFC; }
.cx-next .cx-steps-bar span.now { background: #F5C758; }
.cx-next .cx-steps-label, .cx-next .cx-steps-note { color: #C5D6EE; }
.cx-next .cx-steps-label strong { color: #fff; }

/* progress */
.cx-steps { display: flex; flex-direction: column; gap: 8px; }
.cx-steps-bar { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.cx-steps-bar span { height: 6px; border-radius: 3px; background: var(--lx-line); }
.cx-steps-bar span.done { background: var(--lx-royal-2); }
.cx-steps-bar span.now { background: var(--lx-gold); }
.cx-steps-label, .cx-steps-note { font-size: 13px; color: var(--lx-ink-3); }
.cx-steps-label strong { color: var(--lx-ink); font-weight: 700; }

/* ---------- home: sections ---------- */
.cx-section { margin-top: 56px; }
.cx-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.cx-section-head .lx-kicker { color: var(--lx-gold-ink); }
.cx-section-head h2 { margin: 10px 0 0; font-size: clamp(24px, 2.6vw, 30px); font-weight: 800; letter-spacing: -.02em; }
.cx-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14.5px; color: var(--lx-royal-2); text-decoration: none; }
:root[data-theme='dark'] .cx-link { color: #D9B05C; }
.cx-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.cx-services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cx-service {
  position: relative; display: flex; flex-direction: row; align-items: flex-start; gap: 14px; padding: 18px 44px 18px 18px;
  border: 1px solid var(--lx-line); border-radius: var(--lx-radius); background: var(--lx-card); color: var(--lx-ink); text-decoration: none;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.cx-service:hover { text-decoration: none; border-color: var(--lx-line-strong); box-shadow: 0 14px 30px -18px rgba(1, 42, 104, .35); transform: translateY(-1px); }
.cx-service-ico { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--lx-paper-2); color: var(--lx-royal-2); }
.cx-service-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
:root[data-theme='dark'] .cx-service-ico { background: #1A2638; color: #D9B05C; }
.cx-service strong { font-size: 16px; font-weight: 700; line-height: 1.3; }
.cx-service-desc { font-size: 13.5px; line-height: 1.5; color: var(--lx-ink-3); }
.cx-service-go { position: absolute; right: 16px; top: 50%; margin-top: -8px; color: var(--lx-ink-3); transition: transform .15s ease, color .15s ease; }
.cx-service:hover .cx-service-go { transform: translateX(3px); color: var(--lx-gold-ink); }

.cx-case-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cx-case { display: flex; flex-direction: column; gap: 14px; padding: 20px; border: 1px solid var(--lx-line); border-radius: var(--lx-radius); background: var(--lx-card); color: var(--lx-ink); text-decoration: none; }
.cx-case:hover { text-decoration: none; border-color: var(--lx-line-strong); }
.cx-case-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.cx-case-top strong { display: block; font-size: 16px; font-weight: 700; }
.cx-case-top span { font-size: 12.5px; color: var(--lx-ink-3); font-weight: 600; letter-spacing: .02em; }
.cx-owed { align-self: flex-start; font-size: 12.5px; font-weight: 700; color: #B42318; background: #FDECEA; padding: 4px 10px; border-radius: 999px; }
:root[data-theme='dark'] .cx-owed { color: #FFB4A9; background: #3A1414; }

/* photo guide inside customer site */
.cx .photo-guide { border-radius: var(--lx-radius); border-color: var(--lx-line); background: var(--lx-card); padding: 24px; }
.cx .photo-guide ol { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 560px) { .cx .photo-guide ol { grid-template-columns: 1fr !important; } }

/* ---------- footer ---------- */
.cx-foot { margin-top: auto; }
.cx-foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.cx-foot .lx-foot-base a { color: #F5C758; text-decoration: none; }
.cx-foot nav p { margin: 0; }
.cx .cx-foot h2 { color: #F5C758; }
.cx .cx-foot p { color: #C5D6EE; }

/* ---------- mobile bottom nav ---------- */
.cx-bottom { background: var(--lx-card); border-top-color: var(--lx-line); }
.cx-bottom a { color: var(--lx-ink-3); font-family: var(--lx-sans); }
.cx-bottom a.active { color: var(--lx-ink); }
.cx-bottom a.active svg { color: var(--lx-gold-ink); }
:root[data-theme='dark'] .cx-bottom a.active svg { color: #D9B05C; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .cx-bar-cta { display: none; }
  .cx-bar-end .user .name, .cx-bar-end .user .role { display: none; }
  .cx-bar-end .user { padding: 3px; }
  .cx-bar-end .user svg { display: none; }
}
@media (max-width: 960px) {
  .cx-hero { grid-template-columns: 1fr; }
  .cx-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cx-foot-grid { grid-template-columns: 1fr 1fr; }
  .cx .photo-guide ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .cx-foot { display: none; }
  .cx-nav { display: none; }
  .cx-bar-end { margin-left: auto; }
  .cx .cx-main { padding: 24px 20px calc(88px + env(safe-area-inset-bottom, 0px)); }
  .cx-wrap { padding: 0 20px; }
  .cx-bar-in { height: 64px; }
  .cx-case-list { grid-template-columns: 1fr; }
  .cx-section { margin-top: 44px; }
}
@media (max-width: 560px) {
  .cx-services { grid-template-columns: 1fr; gap: 8px; }
  .cx-service { padding: 12px 40px 12px 12px; align-items: center; gap: 12px; }
  .cx-service strong { font-size: 14.5px; }
  .cx-service-desc { display: none; }
  .cx-service-ico { width: 36px; height: 36px; border-radius: 10px; }
  .cx-stats strong { font-size: 24px; }
  .cx-stats > div { padding: 14px 12px; }
  .cx-next { padding: 22px; }
  .cx .lx-logo-sub { display: none; }
  .cx .cx-main { padding-left: 16px; padding-right: 16px; }
  .cx-wrap { padding: 0 16px; }
  .cx-bar-end { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .cx-service, .cx-service-go { transition: none; }
  .cx-service:hover { transform: none; }
}

/* case cards (My cases + Home) */
.cx-case-next { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--lx-ink-2); }
.cx-case-next span { display: block; margin-bottom: 4px; font: 700 11px/1 var(--lx-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--lx-gold-ink); }
.cx-case-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.cx-case-go { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--lx-royal-2); }
:root[data-theme='dark'] .cx-case-go { color: #D9B05C; }
.cx-case:hover .cx-case-go svg { transform: translateX(3px); }
.cx-case-go svg { transition: transform .15s ease; }
.cx-case.is-closed { opacity: .85; }
.cx .case-next { border-radius: 14px; }

/* properties + learn */
.cx-prop-grid > .card { display: flex; flex-direction: column; }
.cx-prop-grid .cx-prop-view { margin-top: auto; align-self: flex-start; }
.cx-prop-grid .strong { font-size: 18px; font-weight: 800; color: var(--lx-ink); margin: 2px 0 16px; }
.cx .learn-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cx .learn-row { border: 1px solid var(--lx-line); border-radius: 16px; background: var(--lx-card); margin: 0; }
.cx .learn-row:hover { border-color: var(--lx-line-strong); }
@media (max-width: 760px) { .cx .learn-list { grid-template-columns: 1fr; } }


/* ===== page hero (inner pages) ===== */
.cx-phero { margin-bottom: 28px; }
.cx-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-bottom: 14px; font-size: 13px; font-weight: 600; color: var(--lx-ink-3); }
.cx-crumbs > span { display: inline-flex; align-items: center; gap: 4px; }
.cx-crumbs a { color: var(--lx-gold-ink); text-decoration: none; }
.cx-crumbs a:hover { text-decoration: underline; }
.cx-phero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cx-phero-text { min-width: 0; flex: 1 1 420px; }
.cx-phero-text .lx-kicker { color: var(--lx-gold-ink); }
.cx-phero-text h1 { margin: 12px 0 0; font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; letter-spacing: -.025em; line-height: 1.06; }
.cx-phero-text p { margin: 12px 0 0; font-size: 16px; line-height: 1.6; color: var(--lx-ink-2); max-width: 620px; }
.cx-phero-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ===== split layout ===== */
.cx-split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.cx-split-side { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 14px; }
.cx-profile .cx-split { grid-template-columns: 280px minmax(0, 1fr); }
.cx-block-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.cx-block-head h2 { margin: 0; font-size: 20px; font-weight: 800; }
.cx-foot-note { margin: 14px 0 0; font-size: 13.5px; color: var(--lx-ink-3); }
.cx-foot-note a { color: var(--lx-royal-2); font-weight: 600; }
:root[data-theme='dark'] .cx-foot-note a { color: #D9B05C; }
.cx-side-note { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--lx-paper-2); color: var(--lx-ink-2); border: 1px solid var(--lx-line); }
.cx-side-note svg { flex: none; margin-top: 2px; color: var(--lx-gold-ink); }
.cx-side-note p { margin: 0; font-size: 13.5px; line-height: 1.55; }

/* ===== photo tips ===== */
.cx-tips { padding: 18px; border-radius: var(--lx-radius); background: var(--lx-card); border: 1px solid var(--lx-line); }
.cx-tips-head { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.cx-tips-head strong { font-size: 15px; font-weight: 800; color: var(--lx-ink); }
.cx-tips-head span { font-size: 12.5px; color: var(--lx-ink-3); }
.cx-tips ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cx-tips li { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--lx-ink-2); }
.cx-tips li b { display: block; color: var(--lx-ink); font-weight: 700; font-size: 13.5px; }
.cx-tip-ico { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--lx-gold-soft); color: var(--lx-gold-ink); }
.cx-tips.inline ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ===== case detail ===== */
.cx-case-summary { margin-top: 22px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 18px 22px; border-radius: var(--lx-radius); background: var(--lx-card); border: 1px solid var(--lx-line); }
.cx-case-summary-stats { display: flex; gap: 0; }
.cx-case-summary-stats > div { padding: 0 20px; display: flex; flex-direction: column; gap: 4px; }
.cx-case-summary-stats > div + div { border-left: 1px solid var(--lx-line); }
.cx-case-summary-stats strong { font-size: 24px; font-weight: 800; line-height: 1; color: var(--lx-ink); }
.cx-case-summary-stats strong small { font-size: 14px; color: var(--lx-ink-3); font-weight: 700; }
.cx-case-summary-stats span { font-size: 12px; color: var(--lx-ink-3); font-weight: 600; }
.cx-case-summary-stats .warn strong { color: #C2410C; }
:root[data-theme='dark'] .cx-case-summary-stats .warn strong { color: #D9B05C; }

.cx-checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.cx-check { position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; border-radius: 16px; background: var(--lx-card); border: 1px solid var(--lx-line); }
.cx-check-dot { flex: none; margin-top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--lx-line-strong); }
.cx-check.is-accepted .cx-check-dot { background: #16A34A; }
.cx-check.is-needed .cx-check-dot { background: var(--lx-gold); }
.cx-check.is-replace { border-color: #F3B4AC; }
:root[data-theme='dark'] .cx-check.is-replace { border-color: #6B2420; }
.cx-check.is-replace .cx-check-dot { background: #DC2626; }
.cx-check.is-uploaded .cx-check-dot, .cx-check.is-checking .cx-check-dot { background: var(--lx-royal-2); }
.cx-check-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.cx-check-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cx-check-top strong { font-size: 15.5px; font-weight: 700; color: var(--lx-ink); }
.cx-check-hint { margin: 0; font-size: 13px; color: var(--lx-ink-3); }
.cx-check-reason { color: #B42318; font-weight: 600; }
:root[data-theme='dark'] .cx-check-reason { color: #FFB4A9; }
.cx-files { display: flex; flex-wrap: wrap; gap: 6px; }
.cx-file { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--lx-line); background: var(--lx-paper); color: var(--lx-ink-2); font: 500 12.5px/1.4 var(--lx-sans); cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-file:hover { border-color: var(--lx-line-strong); color: var(--lx-ink); }
.cx-check-btn { flex: none; gap: 6px; align-self: center; }

/* ===== forms ===== */
.cx-form-card { padding: 26px; border-radius: var(--lx-radius); background: var(--lx-card); border: 1px solid var(--lx-line); display: flex; flex-direction: column; gap: 22px; }
.cx-form-card fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.cx-form-card fieldset + fieldset { padding-top: 22px; border-top: 1px solid var(--lx-line); }
.cx-form-card legend { float: left; width: 100%; padding: 0; margin-bottom: 0; font: 700 11.5px/1 var(--lx-sans); letter-spacing: .18em; text-transform: uppercase; color: var(--lx-gold-ink); }
.cx-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.cx-grid-13 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.cx-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; border-top: 1px solid var(--lx-line); font-size: 13px; color: var(--lx-ink-3); }

/* ===== profile ===== */
.cx-id { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 24px 20px; border-radius: var(--lx-radius); background: var(--lx-band-bg); color: #EAF2FC; position: relative; overflow: hidden; }
.cx-id::after { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--lx-grad); }
.cx-id .avatar { background: rgba(255, 255, 255, .14) !important; color: #fff; margin-bottom: 6px; box-shadow: 0 0 0 3px rgba(245, 199, 88, .6); }
.cx-id strong { font-size: 17px; font-weight: 800; color: #fff; }
.cx-id > span { font-size: 13px; color: #B9CCE8; }
.cx-id-meter { width: 100%; margin-top: 12px; }
.cx-id-meter > div { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.cx-id-meter > div span { display: block; height: 100%; background: #F5C758; border-radius: 3px; }
.cx-id-meter small { display: block; margin-top: 8px; font-size: 12px; color: #C5D6EE; }
.cx-id-nav { display: flex; flex-direction: column; padding: 8px; border-radius: 16px; background: var(--lx-card); border: 1px solid var(--lx-line); }
.cx-id-nav a { padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--lx-ink-2); text-decoration: none; }
.cx-id-nav a:hover { background: var(--lx-paper-2); color: var(--lx-ink); }

/* ===== learn ===== */
.cx-search { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px; min-width: 260px; border-radius: 999px; border: 1px solid var(--lx-line-strong); background: var(--lx-card); color: var(--lx-ink-3); }
.cx-search:focus-within { border-color: var(--lx-royal-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lx-gold) 22%, transparent); }
.cx-search input { flex: 1; border: 0; outline: 0; background: transparent; color: var(--lx-ink); font: 500 14.5px var(--lx-sans); min-width: 0; }
.cx-guides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cx-guide { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: var(--lx-radius); background: var(--lx-card); border: 1px solid var(--lx-line); color: var(--lx-ink); text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease; }
.cx-guide:hover { text-decoration: none; border-color: var(--lx-line-strong); box-shadow: 0 14px 30px -18px rgba(1, 42, 104, .35); }
.cx-guide-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--lx-gold-soft); color: var(--lx-gold-ink); margin-bottom: 4px; }
.cx-guide strong { font-size: 16px; font-weight: 700; line-height: 1.3; }
.cx-guide-sub { font-size: 13.5px; line-height: 1.5; color: var(--lx-ink-3); }
.cx-guide-foot { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--lx-ink-3); font-weight: 600; }
.cx-guide-go { display: inline-flex; align-items: center; gap: 4px; color: var(--lx-royal-2); font-weight: 700; }
:root[data-theme='dark'] .cx-guide-go { color: #D9B05C; }
.cx .learn-article { max-width: 760px; padding: 28px; font-size: 16px; line-height: 1.7; color: var(--lx-ink-2); }
.cx-steps-list { list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 10px; }
.cx-steps-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; color: var(--lx-ink); }
.cx-steps-list li span { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--lx-royal); color: #fff; font-size: 13px; font-weight: 800; }
.cx-faq { border-top: 1px solid var(--lx-line); padding: 14px 0; }
.cx-faq summary { cursor: pointer; font-weight: 700; color: var(--lx-ink); }
.cx-faq p { margin: 8px 0 0; }

/* ===== properties ===== */
.cx-props { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.cx-prop { display: flex; flex-direction: column; border-radius: var(--lx-radius); overflow: hidden; background: var(--lx-card); border: 1px solid var(--lx-line); color: var(--lx-ink); text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.cx-prop:hover { text-decoration: none; border-color: var(--lx-line-strong); box-shadow: 0 18px 36px -20px rgba(1, 42, 104, .45); transform: translateY(-2px); }
.cx-prop-art { position: relative; height: 128px; background: var(--lx-band-bg); overflow: hidden; }
.cx-prop-art::after { content: ''; position: absolute; inset: auto 0 0 0; height: 3px; background: var(--lx-grad); }
.cx-prop-skyline { position: absolute; left: -4%; right: -4%; bottom: 0; width: 108%; height: 86%; }
.cx-prop-type { position: absolute; top: 12px; left: 12px; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; backdrop-filter: blur(4px); }
.cx-prop-body { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; }
.cx-prop-body strong { font-size: 17px; font-weight: 800; }
.cx-prop-where { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--lx-ink-3); }
.cx-prop-foot { margin-top: auto; padding-top: 14px; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.cx-prop-price { display: flex; flex-direction: column; font-size: 19px; font-weight: 800; color: var(--lx-ink); }
.cx-prop-price small { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--lx-gold-ink); }
.cx-prop-go { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700; color: var(--lx-royal-2); }
:root[data-theme='dark'] .cx-prop-go { color: #D9B05C; }

/* ===== files ===== */
.cx-seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--lx-paper-2); border: 1px solid var(--lx-line); }
.cx-seg button { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--lx-ink-2); font: 600 14px var(--lx-sans); cursor: pointer; }
.cx-seg button[aria-selected='true'] { background: var(--lx-card); color: var(--lx-ink); box-shadow: 0 1px 3px rgba(1, 42, 104, .14); }
.cx-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.cx-chips button { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--lx-line); background: var(--lx-card); color: var(--lx-ink-2); font: 600 13.5px var(--lx-sans); cursor: pointer; }
.cx-chips button span { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: inline-grid; place-items: center; background: var(--lx-paper-2); font-size: 11.5px; }
.cx-chips button.on { background: var(--lx-royal); border-color: var(--lx-royal); color: #fff; }
.cx-chips button.on span { background: rgba(255, 255, 255, .2); color: #fff; }
.cx-filelist { list-style: none; margin: 0; padding: 6px; border-radius: var(--lx-radius); background: var(--lx-card); border: 1px solid var(--lx-line); }
.cx-filelist li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto 84px; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; }
.cx-filelist li + li { border-top: 1px solid var(--lx-line); }
.cx-filelist li:hover { background: var(--lx-paper); }
.cx-filelist-ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--lx-paper-2); color: var(--lx-royal-2); }
.cx-filelist-ico.cat-identity { background: #E8F1FE; color: #0059B8; }
.cx-filelist-ico.cat-income { background: #E7F7EE; color: #15803D; }
.cx-filelist-ico.cat-property { background: #FDF1D8; color: #A9580A; }
.cx-filelist-ico.cat-commitments { background: #F1EBFE; color: #6D28D9; }
:root[data-theme='dark'] .cx-filelist-ico { background: #1A2638 !important; color: #D9B05C !important; }
.cx-filelist-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cx-filelist-main strong { font-size: 14.5px; font-weight: 700; color: var(--lx-ink); }
.cx-filelist-main > span { font-size: 12.5px; color: var(--lx-ink-3); }
.cx-filelist-act { display: flex; gap: 6px; justify-content: flex-end; }
.cx-filelist-act .lx-icon-btn { width: 34px; height: 34px; }
.cx-filelist-act .lx-icon-btn.danger:hover { color: #DC2626; border-color: #F3B4AC; }
.cx-cat-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.cx-cat { height: 46px; border-radius: 12px; border: 1px solid var(--lx-line-strong); background: var(--lx-card); color: var(--lx-ink); font: 600 14px var(--lx-sans); cursor: pointer; }
.cx-cat.on { background: var(--lx-royal); border-color: var(--lx-royal); color: #fff; }
.cx-dropzone { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 36px 20px; border-radius: 16px; border: 2px dashed var(--lx-line-strong); background: var(--lx-paper); color: var(--lx-ink-3); font: 500 13px var(--lx-sans); cursor: pointer; }
.cx-dropzone:hover { border-color: var(--lx-royal-2); }
.cx-dropzone strong { font-size: 16px; color: var(--lx-ink); font-weight: 700; }
.cx-dropzone-ico { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--lx-paper-2); color: var(--lx-royal-2); }

/* ===== enquiry wizard ===== */
.cx-wizard { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; }
.cx-wizard-steps { position: sticky; top: 92px; padding: 20px; border-radius: var(--lx-radius); background: var(--lx-card); border: 1px solid var(--lx-line); }
.cx-wizard-steps ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.cx-wizard-steps li { position: relative; display: flex; gap: 12px; padding: 10px 0; }
.cx-wizard-steps li:not(:last-child)::after { content: ''; position: absolute; left: 14px; top: 42px; bottom: -6px; width: 2px; background: var(--lx-line); }
.cx-wizard-steps li.done:not(:last-child)::after { background: var(--lx-royal-2); }
.cx-wizard-num { flex: none; position: relative; z-index: 1; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; background: var(--lx-paper-2); color: var(--lx-ink-3); border: 1px solid var(--lx-line); }
.cx-wizard-steps li.done .cx-wizard-num { background: var(--lx-royal-2); color: #fff; border-color: transparent; }
.cx-wizard-steps li.now .cx-wizard-num { background: var(--lx-gold); color: #012A68; border-color: transparent; box-shadow: 0 0 0 4px color-mix(in srgb, var(--lx-gold) 25%, transparent); }
.cx-wizard-steps b { display: block; font-size: 14px; font-weight: 700; color: var(--lx-ink-2); }
.cx-wizard-steps li.now b { color: var(--lx-ink); }
.cx-wizard-steps small { display: block; margin-top: 2px; font-size: 12px; color: var(--lx-ink-3); }
.cx-wizard-note { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--lx-line); font-size: 12px; line-height: 1.5; color: var(--lx-ink-3); }
.cx-wizard-main > .card, .cx-wizard-main > .col { padding: 26px; }
.cx-wizard-main > .col { border-radius: var(--lx-radius); background: var(--lx-card); border: 1px solid var(--lx-line); }
.cx-wizard-main .col > .card { box-shadow: none; border-radius: 14px; }
.cx-step-head h2 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.cx-step-head p { margin: 6px 0 4px; font-size: 14.5px; color: var(--lx-ink-3); }
.cx-step-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; margin-top: 4px; border-top: 1px solid var(--lx-line); }
.cx-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cx-pick-item { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: 14px; border: 1px solid var(--lx-line); background: var(--lx-card); cursor: pointer; transition: border-color .12s ease, box-shadow .12s ease; }
.cx-pick-item:hover { border-color: var(--lx-line-strong); }
.cx-pick-item input { position: absolute; opacity: 0; pointer-events: none; }
.cx-pick-item.on { border-color: var(--lx-royal-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lx-royal-2) 18%, transparent); }
.cx-pick-item:focus-within { outline: 2px solid var(--lx-gold); outline-offset: 2px; }
.cx-pick-item .cx-service-ico { width: 38px; height: 38px; }
.cx-pick-item.on .cx-service-ico { background: var(--lx-royal); color: #fff; }
.cx-pick-text b { display: block; font-size: 14.5px; font-weight: 700; color: var(--lx-ink); }
.cx-pick-text small { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.45; color: var(--lx-ink-3); }
.cx-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }

/* ===== responsive for new pieces ===== */
@media (max-width: 1100px) {
  .cx-guides { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cx-tips.inline ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .cx-split, .cx-profile .cx-split, .cx-wizard { grid-template-columns: 1fr; }
  .cx-split-side, .cx-wizard-steps { position: static; }
  .cx-wizard-steps ol { flex-direction: row; overflow-x: auto; gap: 8px; }
  .cx-wizard-steps li { flex: 1 0 auto; padding: 0; }
  .cx-wizard-steps li::after { display: none; }
  .cx-wizard-steps small, .cx-wizard-note { display: none; }
  .cx-id-nav { display: none; }
  .cx-case-summary { grid-template-columns: 1fr; }
  .cx-case-summary-stats > div:first-child { padding-left: 0; }
  .cx-cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .cx-grid2, .cx-grid-13, .cx-pick, .cx-checks, .cx-guides { grid-template-columns: 1fr; }
  .cx-search { min-width: 0; width: 100%; }
  .cx-phero-actions { width: 100%; }
  .cx-filelist li { grid-template-columns: auto minmax(0, 1fr); }
  .cx-filelist li > .pill, .cx-filelist li > [class*='status'] { grid-column: 2; justify-self: start; }
  .cx-filelist-act { grid-column: 2; justify-content: flex-start; }
  .cx-check { flex-wrap: wrap; padding: 14px; }
  .cx-check-body { flex: 1 1 calc(100% - 30px); }
  .cx-check-btn { margin-left: 24px; width: calc(100% - 24px); justify-content: center; }
  .cx-file { max-width: 100%; }
  .cx-form-card, .cx-wizard-main > .card, .cx-wizard-main > .col { padding: 18px; }
  .cx-wizard-steps b { font-size: 12.5px; }
  .cx-wizard-steps { padding: 12px; }
  .cx-wizard-steps li span:last-child { display: none; }
  .cx-wizard-steps li.now span:last-child { display: block; }
  .cx-tips.inline ul { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .cx-prop, .cx-guide, .cx-pick-item { transition: none; }
  .cx-prop:hover { transform: none; }
}

.cx-bar-cta { white-space: nowrap; }
.cx-bar-end .user .name, .cx-bar-end .user .role { white-space: nowrap; }
@media (max-width: 1280px) {
  .cx-bar-end .user .name, .cx-bar-end .user .role, .cx-bar-end .user svg { display: none; }
  .cx-bar-end .user { padding: 3px; }
}

/* ===== refer ===== */
.cx-share { position: relative; overflow: hidden; padding: 26px; border-radius: 22px; background: var(--lx-band-bg); color: #EAF2FC; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 24px 48px -24px rgba(1, 42, 104, .55); }
.cx-share::after { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--lx-grad); }
.cx-share-field { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 18px; border-radius: 14px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); }
.cx-share-url { flex: 1; min-width: 0; font-size: 18px; font-weight: 700; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-share-field .lx-btn { gap: 6px; flex: none; }
.cx-share-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cx-share-code { font-size: 13.5px; color: #B9CCE8; letter-spacing: .04em; }
.cx-share-code b { color: #F5C758; font-weight: 800; letter-spacing: .12em; }
.cx-share .lx-btn-ghost-light { gap: 6px; text-decoration: none; }
.cx-how { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cx-how li { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: var(--lx-radius); background: var(--lx-card); border: 1px solid var(--lx-line); font-size: 13.5px; line-height: 1.5; color: var(--lx-ink-3); }
.cx-how b { font-size: 15px; color: var(--lx-ink); }
.cx-how-num { position: absolute; top: 16px; right: 18px; font-size: 28px; font-weight: 800; color: var(--lx-line-strong); line-height: 1; }
.cx-how-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--lx-gold-soft); color: var(--lx-gold-ink); margin-bottom: 6px; }
.cx-side-note a { color: var(--lx-royal-2); font-weight: 600; }
:root[data-theme='dark'] .cx-side-note a { color: #D9B05C; }

/* ===== ask (chat) ===== */
.cx-chat { display: flex; flex-direction: column; min-height: 520px; border-radius: var(--lx-radius); background: var(--lx-card); border: 1px solid var(--lx-line); overflow: hidden; }
.cx-chat-log { flex: 1; padding: 24px; display: flex; flex-direction: column; gap: 14px; background: var(--lx-paper); }
.cx-chat-empty { margin: auto; max-width: 560px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cx-chat-empty strong { font-size: 20px; font-weight: 800; color: var(--lx-ink); }
.cx-chat-empty p { margin: 0 0 8px; color: var(--lx-ink-3); font-size: 14.5px; }
.cx-chat-avatar { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--lx-band-bg); color: #F5C758; flex: none; }
.cx-chat-avatar.sm { width: 30px; height: 30px; border-radius: 10px; }
.cx-chat-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.cx-chat-chips button { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--lx-line-strong); background: var(--lx-card); color: var(--lx-ink); font: 500 13.5px/1.3 var(--lx-sans); cursor: pointer; text-align: left; }
.cx-chat-chips button:hover { border-color: var(--lx-royal-2); }
.cx-msg { display: flex; gap: 10px; max-width: 86%; }
.cx-msg p { margin: 0; font-size: 14.5px; line-height: 1.6; }
.cx-msg.me { align-self: flex-end; padding: 12px 16px; border-radius: 18px 18px 4px 18px; background: var(--lx-royal); color: #fff; }
.cx-msg.bot > div { padding: 14px 16px; border-radius: 18px 18px 18px 4px; background: var(--lx-card); border: 1px solid var(--lx-line); color: var(--lx-ink-2); display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.cx-msg.bot strong { color: var(--lx-ink); font-size: 14.5px; }
.cx-msg .lx-btn { gap: 6px; margin-top: 4px; }
.cx-chat-compose { padding: 14px 16px 12px; border-top: 1px solid var(--lx-line); display: flex; flex-direction: column; gap: 8px; }
.cx-chat-input { display: flex; align-items: flex-end; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 16px; border: 1px solid var(--lx-line-strong); background: var(--lx-card); }
.cx-chat-input:focus-within { border-color: var(--lx-royal-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lx-gold) 22%, transparent); }
.cx-chat-input textarea { flex: 1; min-height: 44px; max-height: 160px; resize: vertical; border: 0; outline: 0; background: transparent; color: var(--lx-ink); font: 500 15px/1.5 var(--lx-sans); padding: 6px 0; }
.cx-chat-input .lx-btn { gap: 6px; flex: none; }
.cx-chat-hint { font-size: 12px; color: var(--lx-ink-3); }
.cx-split-side .cx-tips .lx-btn { gap: 6px; margin-top: 4px; }
.cx-side-link { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--lx-card); border: 1px solid var(--lx-line); color: var(--lx-gold-ink); text-decoration: none; }
.cx-side-link:hover { border-color: var(--lx-line-strong); text-decoration: none; }
.cx-side-link span { display: flex; flex-direction: column; font-size: 12.5px; color: var(--lx-ink-3); }
.cx-side-link b { font-size: 14.5px; color: var(--lx-ink); }

/* ===== calculator ===== */
.cx-calc { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.cx .calc-sync { display: flex; flex-direction: column; gap: 10px; }
.cx .calc-sync-input { display: flex; align-items: center; gap: 8px; }
.cx .calc-sync-input .faint { min-width: 24px; font-weight: 600; color: var(--lx-ink-3); }
.cx input[type='range'] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 3px; background: var(--lx-line); outline: none; accent-color: var(--lx-royal-2); }
.cx input[type='range']::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--lx-gold); border: 3px solid var(--lx-card); box-shadow: 0 0 0 1px var(--lx-line-strong), 0 2px 6px rgba(1, 42, 104, .25); cursor: pointer; }
.cx input[type='range']::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--lx-gold); border: 3px solid var(--lx-card); cursor: pointer; }
.cx input[type='range']:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px color-mix(in srgb, var(--lx-gold) 35%, transparent); }
.cx-calc-result { position: sticky; top: 92px; overflow: hidden; padding: 26px; border-radius: 22px; background: var(--lx-band-bg); color: #EAF2FC; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 24px 48px -24px rgba(1, 42, 104, .55); }
.cx-calc-result::after { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--lx-grad); }
.cx-calc-big { font-size: clamp(36px, 4vw, 46px); font-weight: 800; letter-spacing: -.02em; line-height: 1; color: #fff; }
.cx-calc-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cx-calc-rows > div { padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .08); display: flex; flex-direction: column; gap: 4px; }
.cx-calc-rows span { font-size: 12px; color: #B9CCE8; font-weight: 600; }
.cx-calc-rows b { font-size: 16px; color: #fff; }
.cx-calc-bar { height: 10px; border-radius: 5px; background: #F5C758; overflow: hidden; }
.cx-calc-bar span { display: block; height: 100%; background: #86CCFC; }
.cx-calc-legend { margin-top: 8px; display: flex; gap: 16px; font-size: 12.5px; color: #C5D6EE; }
.cx-calc-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.cx-calc-legend i.p { background: #86CCFC; }
.cx-calc-legend i.i { background: #F5C758; }
.cx-dsr { padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .08); display: flex; flex-direction: column; gap: 8px; }
.cx-dsr-top { display: flex; justify-content: space-between; font-size: 13px; color: #C5D6EE; font-weight: 600; }
.cx-dsr-top b { color: #fff; font-size: 16px; }
.cx-dsr-bar { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.cx-dsr-bar span { display: block; height: 100%; background: #B9CCE8; border-radius: 4px; }
.cx-dsr.good .cx-dsr-bar span { background: #4ADE80; }
.cx-dsr.mid .cx-dsr-bar span { background: #F5C758; }
.cx-dsr.high .cx-dsr-bar span { background: #F87171; }
.cx-dsr small { font-size: 12.5px; color: #C5D6EE; }
.cx-calc-result .lx-btn { gap: 6px; }

@media (max-width: 960px) {
  .cx-calc { grid-template-columns: 1fr; }
  .cx-calc-result { position: static; }
  .cx-how { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cx-share-url { font-size: 15px; }
  .cx-chat { min-height: 440px; }
  .cx-msg { max-width: 100%; }
  .cx-chat-log { padding: 16px; }
}

/* upload meta + forms */
.cx-meta-input { position: relative; display: flex; align-items: center; }
.cx-meta-input > svg { position: absolute; left: 12px; color: var(--lx-ink-3); pointer-events: none; }
.cx-meta-input .input, .cx-meta-input input { padding-left: 36px; width: 100%; }
.cx-form-dl { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; border: 1px dashed var(--lx-gold-ink); background: var(--lx-gold-soft); color: var(--lx-gold-ink); font: 700 13px var(--lx-sans); cursor: pointer; }
.cx-form-dl:hover { border-style: solid; }
.cx-meta-row { margin: 10px 0 6px; }
.cx-file-pick { gap: 6px; align-self: flex-start; cursor: pointer; margin-top: 6px; }
.cx-file-pick.is-disabled { opacity: .6; cursor: not-allowed; }
.cx-file b { color: var(--lx-ink); font-weight: 700; }

/* upload month picker (compact) */
.um { display: flex; flex-direction: column; gap: 12px; }
.um-q { font-size: 15px; font-weight: 700; color: var(--text); }
.um-months { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.um-months button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border-radius: 12px; border: 1px solid var(--border-strong, #BCCDE4); background: var(--card); color: var(--text); font-family: inherit; cursor: pointer; }
.um-months button b { font-size: 15px; font-weight: 700; }
.um-months button small { font-size: 11.5px; color: var(--text-3); }
.um-months button:hover { border-color: var(--primary); }
.um-months button.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.um-months button.on small { color: rgba(255, 255, 255, .8); }
.um-link { align-self: flex-start; border: 0; background: none; padding: 0; font: 600 13px var(--font-sans, inherit); color: var(--primary-hover); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.um-lock { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 12px; border: 1px solid var(--border); }
.um-lock.on { border-color: var(--gold, #F2B64A); }
.um-lock-toggle { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--text); cursor: pointer; }
.um-lock-toggle input { width: 18px; height: 18px; accent-color: var(--primary); }
.um-lock-toggle svg { color: var(--text-3); }
:root[data-theme='dark'] .um-link { color: #D9B05C; }

/* compact checklist (case detail) */
.cx-cl-group + .cx-cl-group { margin-top: 22px; }
.cx-cl-head { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font: 700 11.5px/1 var(--lx-sans); letter-spacing: .18em; text-transform: uppercase; color: var(--lx-gold-ink); }
.cx-cl-head small { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: inline-grid; place-items: center; background: var(--lx-paper-2); color: var(--lx-ink-2); font-size: 11px; letter-spacing: 0; }
.cx-cl { list-style: none; margin: 0; padding: 0; border-radius: var(--lx-radius); background: var(--lx-card); border: 1px solid var(--lx-line); overflow: hidden; }
.cx-cl-row { display: flex; align-items: center; gap: 14px; padding: 14px 18px; }
.cx-cl-row + .cx-cl-row { border-top: 1px solid var(--lx-line); }
.cx-cl-row.is-replace { background: color-mix(in srgb, #DC2626 4%, var(--lx-card)); }
.cx-cl-ico { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--lx-paper-2); color: var(--lx-ink-3); }
.cx-cl-row.is-accepted .cx-cl-ico { background: #E7F7EE; color: #15803D; }
.cx-cl-row.is-needed .cx-cl-ico { background: var(--lx-gold-soft); color: var(--lx-gold-ink); }
.cx-cl-row.is-replace .cx-cl-ico { background: #FDECEA; color: #B42318; }
.cx-cl-row.is-uploaded .cx-cl-ico, .cx-cl-row.is-checking .cx-cl-ico { background: #E8F1FE; color: #0059B8; }
:root[data-theme='dark'] .cx-cl-ico { background: #1A2638 !important; }
:root[data-theme='dark'] .cx-cl-row.is-accepted .cx-cl-ico { color: #4ADE80; }
:root[data-theme='dark'] .cx-cl-row.is-needed .cx-cl-ico { color: #D9B05C; }
:root[data-theme='dark'] .cx-cl-row.is-replace .cx-cl-ico { color: #FFB4A9; }
:root[data-theme='dark'] .cx-cl-row.is-uploaded .cx-cl-ico { color: #86CCFC; }
.cx-cl-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cx-cl-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cx-cl-title strong { font-size: 15px; font-weight: 700; color: var(--lx-ink); }
.cx-cl-title .pill, .cx-cl-title [class*='pill'] { transform: scale(.92); transform-origin: left center; }
.cx-cl-meta { font-size: 12.5px; color: var(--lx-ink-3); }
.cx-cl-reason { font-size: 13px; font-weight: 600; color: #B42318; line-height: 1.45; }
:root[data-theme='dark'] .cx-cl-reason { color: #FFB4A9; }
.cx-cl-files { margin-top: 2px; }
.cx-cl-files summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; }
.cx-cl-toggle { font-size: 12.5px; font-weight: 600; color: var(--lx-royal-2); }
.cx-cl-files[open] .cx-cl-toggle { font-size: 0; }
.cx-cl-files[open] .cx-cl-toggle::before { content: 'Hide'; font-size: 12.5px; }
.cx-cl-files summary::-webkit-details-marker { display: none; }
.cx-cl-toggle::after { content: ' ▾'; font-size: 10px; }
.cx-cl-files[open] .cx-cl-toggle::after { content: ' ▴'; font-size: 10px; }
:root[data-theme='dark'] .cx-cl-toggle { color: #D9B05C; }
.cx-cl-files ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cx-cl-files li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 10px; border-radius: 8px; background: var(--lx-paper); }
.cx-cl-files li button { display: inline-flex; align-items: center; gap: 6px; min-width: 0; border: 0; background: none; padding: 0; font: 500 13px var(--lx-sans); color: var(--lx-ink); cursor: pointer; }
.cx-cl-files li button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-cl-files li small { flex: none; font-size: 11.5px; color: var(--lx-ink-3); }
.cx-cl .cx-form-dl { margin-top: 4px; padding: 5px 10px; font-size: 12.5px; }
.cx-cl .cx-check-btn { align-self: center; }
@media (max-width: 640px) {
  .cx-cl-row { flex-wrap: nowrap; align-items: flex-start; padding: 12px; gap: 10px; }
  .cx-cl-ico { width: 28px; height: 28px; border-radius: 8px; }
  .cx-cl-title strong { font-size: 14px; }
  .cx .cx-cl .cx-check-btn { margin: 0; width: auto; height: 34px; padding: 0 10px; font-size: 13px; align-self: flex-start; }
  .cx-cl-files li { flex-direction: column; align-items: flex-start; gap: 2px; }
}
.cx-cl-toggle { white-space: nowrap; flex: none; } .cx-cl-files summary { flex-wrap: wrap; row-gap: 2px; }

/* inner page headers stay left-aligned on phones */
@media (max-width: 640px) {
  .cx .page-header { flex-direction: column; align-items: flex-start; }
  .cx .page-header .ph-text { min-width: 0; width: 100%; }
}
/* centred utility cards (name step, errors) match the editorial cards */
.center-page .auth-card { border-radius: 22px; border: 1px solid var(--lx-line); background: var(--lx-card); box-shadow: 0 24px 48px -32px rgba(1, 42, 104, .35); }
.center-page .auth-brand { gap: 14px; margin-bottom: 18px; }
.center-page .auth-brand h2 { font-size: 22px; font-weight: 800; color: var(--lx-ink); }

/* ===== case messages (customer ↔ consultant) ===== */
.cx-case-chat { min-height: 0; margin-top: 22px; }
.cx-case-chat-head { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-bottom: 1px solid var(--lx-line); color: var(--lx-royal-2); }
.cx-case-chat-head h2 { margin: 0; font-size: 18px; font-weight: 800; color: var(--lx-ink); }
.cx-case-chat-head p { margin: 2px 0 0; font-size: 13.5px; color: var(--lx-ink-3); }
.cx-case-chat .cx-chat-log { max-height: 420px; overflow-y: auto; padding: 18px; }
.cx-case-chat-empty { margin: 6px 0; color: var(--lx-ink-3); font-size: 14px; }
.cx-case-chat-closed { margin: 0; padding: 14px 18px; border-top: 1px solid var(--lx-line); color: var(--lx-ink-3); font-size: 14px; }
.cx-case-chat .cx-msg.me { flex-direction: column; gap: 4px; }
.cx-case-chat .cx-msg small { font-size: 11.5px; opacity: .75; }
:root[data-theme='dark'] .cx-case-chat-head { color: #D9B05C; }

/* ===== ask (chat) — redesign, both themes (2 Nov 2026) ===== */
.cx-chat { min-height: 0; border-radius: 22px; box-shadow: 0 18px 40px -34px rgba(1, 42, 104, .35); }
.cx-chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--lx-line); background: var(--lx-card); }
.cx-chat-head div { display: flex; flex-direction: column; min-width: 0; }
.cx-chat-head strong { font-size: 15px; font-weight: 800; color: var(--lx-ink); }
.cx-chat-head span { font-size: 12.5px; color: var(--lx-ink-3); }
.cx-chat-head .cx-chat-avatar { width: 38px; height: 38px; border-radius: 12px; }
.cx-chat-log { padding: 22px; min-height: 340px; }
.cx-chat-empty { margin: 0; max-width: none; text-align: left; align-items: stretch; gap: 4px; }
.cx-chat-empty strong { font-size: 20px; }
.cx-chat-empty p { margin: 0 0 14px; }
.cx-chat-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cx-chat-chips button {
  display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px;
  border: 1px solid var(--lx-line); background: var(--lx-card); color: var(--lx-ink);
  font: 600 14px/1.35 var(--lx-sans); text-align: left; cursor: pointer;
  transition: border-color .15s, background .15s, transform .15s;
}
.cx-chat-chips button:hover:not(:disabled) { border-color: var(--lx-line-strong); background: var(--lx-paper-2); transform: translateY(-1px); }
.cx-chat-chips button:disabled { opacity: .6; cursor: default; }
.cx-chip-ic { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--lx-gold-soft); color: var(--lx-gold-ink); }
.cx-chip-q { flex: 1; min-width: 0; }
.cx-chip-go { flex: none; color: var(--lx-ink-3); }
.cx-chat-chips button:hover .cx-chip-go { color: var(--lx-ink); }
.cx-chat-compose { padding: 12px 16px 12px; background: var(--lx-card); }
.cx-chat-input { align-items: center; padding: 6px 6px 6px 16px; border-radius: 999px; }
.cx-chat-input textarea { min-height: 24px; max-height: 120px; resize: none; padding: 8px 0; font-size: 15px; }
.cx-send { flex: none; width: 42px; height: 42px; border-radius: 999px; border: 0; display: grid; place-items: center; cursor: pointer; background: #003C87; color: #FFFFFF; transition: background .15s, opacity .15s; }
.cx-send:hover:not(:disabled) { background: #0059B8; }
.cx-send:disabled { opacity: .45; cursor: default; }
.cx-send:focus-visible { outline: 2px solid var(--lx-gold); outline-offset: 2px; }
.cx-chat-hint { padding-left: 16px; font-size: 11.5px; }
:root[data-theme='dark'] .cx-chat { box-shadow: none; }
:root[data-theme='dark'] .cx-send { background: #3569B8; }
:root[data-theme='dark'] .cx-send:hover:not(:disabled) { background: #4277C6; }
:root[data-theme='dark'] .cx-chip-ic { background: #2A2519; color: #D9B05C; }
@media (max-width: 640px) { .cx-chat-chips { grid-template-columns: 1fr; } .cx-chat-log { padding: 16px; } }
@media (prefers-reduced-motion: reduce) { .cx-chat-chips button, .cx-send { transition: none; } .cx-chat-chips button:hover:not(:disabled) { transform: none; } }
.cx-case-chat .cx-chat-log { min-height: 0; }

/* ---- Office visit booking (2 Nov 2026) ---- */
.vt { display: grid; gap: 18px; }
.vt-card { background: var(--lx-card, #fff); border: 1px solid var(--lx-line); border-radius: 18px; padding: 20px 22px; }
.vt-card h2, .vt-h2 { margin: 0 0 12px; font-size: 18px; color: var(--lx-navy, #012A68); }
.vt-h2 { margin-top: 20px; }
.vt-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.vt-list > li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--lx-line); border-radius: 14px; }
.vt-past .vt-list > li { grid-template-columns: minmax(0, 1fr) auto; }
.vt-main { display: grid; gap: 2px; min-width: 0; }
.vt-main strong { color: var(--lx-ink); font-size: 15px; }
.vt-main span { color: var(--lx-ink-2); font-size: 13.5px; }
.vt-staffnote { font-style: italic; }
.vt-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; }
.vt-pill { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.vt-amber { background: #FDF1DD; color: #8A5300; } .vt-green { background: #E6F4EA; color: #1E6B35; }
.vt-grey { background: #EEF1F5; color: #5A6578; } .vt-blue { background: #E7F0FD; color: #0B4FA8; } .vt-red { background: #FDE8E8; color: #A3262A; }
.vt-cancel { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--lx-line); background: transparent; color: var(--lx-ink-2); border-radius: 10px; padding: 7px 10px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.vt-cancel:hover { border-color: #E2151A; color: #C0352B; }
.vt-days { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(74px, 1fr); gap: 8px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x mandatory; }
.vt-days button { scroll-snap-align: start; display: grid; justify-items: center; gap: 2px; padding: 10px 6px; border-radius: 14px; border: 1px solid var(--lx-line); background: var(--lx-card, #fff); color: var(--lx-ink-2); font: inherit; font-size: 12.5px; cursor: pointer; }
.vt-days button strong { font-size: 20px; color: var(--lx-ink); line-height: 1.1; }
.vt-days button.on { background: var(--lx-navy, #012A68); border-color: var(--lx-navy, #012A68); color: #DCE6F5; }
.vt-days button.on strong { color: #fff; }
.vt-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.vt-slots button { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 8px; border-radius: 12px; border: 1px solid var(--lx-line); background: var(--lx-card, #fff); color: var(--lx-ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.vt-slots button.on { background: var(--lx-navy, #012A68); border-color: var(--lx-navy, #012A68); color: #fff; }
.vt-slots button:disabled { cursor: not-allowed; opacity: .45; background: transparent; }
.vt-slots button.taken { text-decoration: line-through; }
.vt-slots small { position: absolute; top: -8px; right: 8px; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 999px; background: #EEF1F5; color: #5A6578; text-decoration: none; }
.vt-hint { margin: 10px 0 0; font-size: 13px; color: var(--lx-ink-2); }
.vt-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin-top: 18px; }
.vt-field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--lx-ink); }
.vt-wide { grid-column: 1 / -1; }
.vt-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--lx-line); }
.vt-summary { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--lx-ink); }
.vt-where { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; color: var(--lx-ink-2); }
.vt-where div { display: grid; gap: 2px; } .vt-where strong { color: var(--lx-ink); }
.vt-back { margin: 0; font-size: 14px; }
.vt-promo { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--lx-line); background: var(--lx-card, #fff); text-decoration: none; margin: 4px 0 8px; }
.vt-promo:hover { border-color: var(--lx-royal, #0059B8); text-decoration: none; }
.vt-promo-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #FFF5DD; color: #9A6200; }
.vt-promo-text { display: grid; gap: 2px; } .vt-promo-text strong { color: var(--lx-ink); } .vt-promo-text span { color: var(--lx-ink-2); font-size: 14px; }
.vt-promo-go { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--lx-royal, #0059B8); white-space: nowrap; }
:root[data-theme='dark'] :is(.vt-card, .vt-days button, .vt-slots button, .vt-promo) { background: #141A23; border-color: rgba(255, 255, 255, .08); }
:root[data-theme='dark'] .vt-list > li, :root[data-theme='dark'] .vt-cancel, :root[data-theme='dark'] .vt-foot { border-color: rgba(255, 255, 255, .08); }
:root[data-theme='dark'] :is(.vt-card h2, .vt-h2) { color: #EEF2F7; }
:root[data-theme='dark'] :is(.vt-main strong, .vt-days button strong, .vt-slots button, .vt-summary, .vt-field, .vt-where strong, .vt-promo-text strong) { color: #E6EAF0; }
:root[data-theme='dark'] :is(.vt-main span, .vt-hint, .vt-days button, .vt-where, .vt-promo-text span, .vt-cancel) { color: #A9B3C1; }
:root[data-theme='dark'] :is(.vt-days button.on, .vt-slots button.on) { background: #D9B45A; border-color: #D9B45A; color: #10151D; }
:root[data-theme='dark'] .vt-days button.on strong { color: #10151D; }
:root[data-theme='dark'] .vt-slots button:disabled { background: transparent; }
:root[data-theme='dark'] .vt-amber { background: rgba(217, 180, 90, .16); color: #E6C67A; } :root[data-theme='dark'] .vt-green { background: rgba(76, 175, 110, .16); color: #8EDBA6; }
:root[data-theme='dark'] .vt-grey { background: rgba(255, 255, 255, .07); color: #A9B3C1; } :root[data-theme='dark'] .vt-blue { background: rgba(90, 150, 240, .16); color: #9CC2F6; }
:root[data-theme='dark'] .vt-red { background: rgba(226, 21, 26, .16); color: #F2A0A0; }
:root[data-theme='dark'] .vt-promo-ic { background: rgba(217, 180, 90, .14); color: #D9B45A; } :root[data-theme='dark'] .vt-promo-go { color: #D9B45A; }
:root[data-theme='dark'] .vt-slots small { background: rgba(255, 255, 255, .08); color: #A9B3C1; }
@media (max-width: 640px) {
  .vt-card { padding: 16px; }
  .vt-form { grid-template-columns: 1fr; }
  .vt-list > li { grid-template-columns: auto minmax(0, 1fr); }
  .vt-list > li .vt-pill { grid-column: 2; justify-self: start; }
  .vt-list > li .vt-cancel { grid-column: 1 / -1; justify-content: center; }
  .vt-cancel span { display: inline; }
  .vt-slots { grid-template-columns: repeat(3, 1fr); }
  .vt-foot .lx-btn { width: 100%; justify-content: center; }
  .vt-where { grid-template-columns: auto minmax(0, 1fr); } .vt-where .lx-btn { grid-column: 1 / -1; justify-content: center; }
  .vt-promo { grid-template-columns: auto minmax(0, 1fr); } .vt-promo-go { grid-column: 2; }
}

/* ---- Customer redesign, round 3 (2 Nov 2026) ---- */
/* Home: smaller, calmer hero */
.cx-home .cx-hero { gap: 24px; }
.cx-home .cx-hero h1 { font-size: clamp(30px, 3.4vw, 42px); letter-spacing: -.02em; margin: 6px 0 8px; }
.cx-home .cx-hero-text > p { font-size: 15px; line-height: 1.55; max-width: 520px; }
.cx-home .cx-stats { margin-top: 18px; }
.cx-home .cx-stats > div { padding: 14px 16px; }
.cx-home .cx-stats strong { font-size: 24px; }
.cx-home .cx-stats span { font-size: 13px; }
.cx-home .cx-next { padding: 22px 24px; }
.cx-home .cx-next h2 { font-size: 21px; margin: 6px 0 6px; }
.cx-home .cx-next p { font-size: 14px; }
.cx-home .cx-next .lx-btn { margin-top: 14px; }
.vt-promo { margin: 22px 0 10px; padding: 14px 18px; }
.vt-promo-text strong { font-size: 15px; } .vt-promo-text span { font-size: 13.5px; }
/* Header account chip: long names end with … */
.user-id .name { display: block; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Footer text readable in light mode */
:root:not([data-theme='dark']) .cx .cx-foot p { color: var(--lx-ink-2); }
:root:not([data-theme='dark']) .cx .cx-foot h2 { color: #9A6200; }
:root:not([data-theme='dark']) .cx-foot .lx-foot-base a { color: #9A6200; }

/* Learn guide page */
.lg-topic { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.lg-main { display: grid; gap: 16px; }
.lg-sec { background: var(--lx-card, #fff); border: 1px solid var(--lx-line); border-radius: 18px; padding: 22px 24px; }
.lg-sec h2 { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--lx-gold-ink, #9A6200); }
.lg-lead { margin: 0; font-size: 16px; line-height: 1.7; color: var(--lx-ink); white-space: pre-wrap; }
.lg-video { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 700; color: var(--lx-royal, #0059B8); }
.lg-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.lg-steps li { display: grid; gap: 8px; padding: 14px; border-radius: 14px; background: var(--lx-paper-2, #F2F5FA); }
.lg-steps li span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; font-size: 13px; font-weight: 700; background: color-mix(in srgb, var(--lx-gold, #F5C758) 22%, transparent); color: var(--lx-gold-ink, #9A6200); }
.lg-steps li strong { font-size: 14px; font-weight: 600; color: var(--lx-ink); line-height: 1.35; }
.lg-faq { display: grid; }
.lg-faq details { border-top: 1px solid var(--lx-line); }
.lg-faq details:first-child { border-top: 0; }
.lg-faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; cursor: pointer; font-size: 15px; font-weight: 600; color: var(--lx-ink); }
.lg-faq summary::-webkit-details-marker { display: none; }
.lg-faq summary svg { flex: none; color: var(--lx-ink-3); transition: transform .15s; }
.lg-faq details[open] summary svg { transform: rotate(180deg); }
.lg-faq details p { margin: 0 0 14px; font-size: 14.5px; line-height: 1.6; color: var(--lx-ink-2); }
.lg-side { display: grid; gap: 14px; position: sticky; top: 96px; }
.lg-cta { display: grid; gap: 10px; padding: 20px; border-radius: 18px; background: var(--lx-card, #fff); border: 1px solid var(--lx-line); }
.lg-cta strong { font-size: 16px; color: var(--lx-ink); } .lg-cta p { margin: 0 0 4px; font-size: 14px; color: var(--lx-ink-2); line-height: 1.5; }
.lg-more { display: grid; padding: 16px 18px; border-radius: 18px; background: var(--lx-card, #fff); border: 1px solid var(--lx-line); }
.lg-more > strong { font-size: 14px; margin-bottom: 6px; color: var(--lx-ink); }
.lg-more a { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--lx-line); color: var(--lx-ink); text-decoration: none; font-size: 14px; }
.lg-more a:first-of-type { border-top: 0; }
.lg-more a span { flex: 1; } .lg-more a svg:first-child { color: var(--lx-gold-ink, #9A6200); } .lg-more a svg:last-child { color: var(--lx-ink-3); }
.lg-more a:hover { color: var(--lx-royal, #0059B8); text-decoration: none; }
:root[data-theme='dark'] :is(.lg-sec, .lg-cta, .lg-more) { background: #141A21; border-color: #222A34; }
:root[data-theme='dark'] .lg-steps li { background: #10151B; }
:root[data-theme='dark'] .lg-sec h2 { color: #D9B05C; }
@media (max-width: 960px) { .lg-topic { grid-template-columns: 1fr; } .lg-side { position: static; } }

/* Rich empty state (Properties) */
.cx-empty-rich { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 40px 20px; border-radius: 18px; border: 1px dashed var(--lx-line-strong); background: var(--lx-card, #fff); }
.cx-empty-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; margin-bottom: 4px; background: color-mix(in srgb, var(--lx-gold, #F5C758) 18%, transparent); color: var(--lx-gold-ink, #9A6200); }
.cx-empty-rich strong { font-size: 18px; color: var(--lx-ink); }
.cx-empty-rich p { margin: 0; max-width: 460px; font-size: 14.5px; line-height: 1.55; color: var(--lx-ink-2); }
.cx-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; }
:root[data-theme='dark'] .cx-empty-rich { background: #141A21; border-color: #2B333E; }
/* "Other guides": plain list rows, not pill links */
.cx .lg-more a, .lg-more nav a, .cx nav.lg-more a { display: flex; align-items: center; gap: 12px; height: auto; min-height: 0; padding: 11px 4px; margin: 0; border: 0; border-top: 1px solid var(--lx-line); border-radius: 0; background: none; box-shadow: none; font-size: 14px; font-weight: 500; color: var(--lx-ink); }
.cx .lg-more a:first-of-type { border-top: 0; }
.cx .lg-more a:hover { background: none; color: var(--lx-royal, #0059B8); }
:root[data-theme='dark'] .cx .lg-more a { color: #D3D9E1; border-top-color: #222A34; }
:root[data-theme='dark'] .cx .lg-more a:hover { color: #D9B05C; }

/* ---- Customer colours unified (2 Nov 2026): no office blue on customer pages ----
   Light: navy primary buttons and active chips. Dark: soft gold, like the home CTA. */
.cx .btn-primary { background: #012A68; color: #fff; border-color: #012A68; }
.cx .btn-primary:hover:not(:disabled) { background: #003C87; }
.cx .btn-primary:disabled { background: #8FA3C2; border-color: #8FA3C2; color: #fff; opacity: 1; }
:root[data-theme='dark'] .cx .btn-primary { background: #D9B05C; border-color: #D9B05C; color: #12171F; }
:root[data-theme='dark'] .cx .btn-primary:hover:not(:disabled) { background: #E4BF72; }
:root[data-theme='dark'] .cx .btn-primary:disabled { background: #3A3427; border-color: #3A3427; color: #8C8270; }
.cx .phone-link-ic { background: color-mix(in srgb, #F5C758 22%, transparent) !important; color: #9A6200 !important; }
:root[data-theme='dark'] .cx .phone-link-ic { background: rgba(217, 176, 92, .14) !important; color: #D9B05C !important; }
.cx .cx-chips button[aria-pressed='true'], .cx .cx-chips .on { background: #012A68; border-color: #012A68; color: #fff; }
.cx .cx-chips button[aria-pressed='true'] span, .cx .cx-chips .on span { background: rgba(255, 255, 255, .18); color: #fff; }
:root[data-theme='dark'] .cx .cx-chips button[aria-pressed='true'], :root[data-theme='dark'] .cx .cx-chips .on { background: rgba(217, 176, 92, .16); border-color: rgba(217, 176, 92, .45); color: #E7C77F; }
:root[data-theme='dark'] .cx .cx-chips button[aria-pressed='true'] span, :root[data-theme='dark'] .cx .cx-chips .on span { background: rgba(217, 176, 92, .18); color: #E7C77F; }
.cx .empty .icircle, .cx .empty .icircle.soft { background: color-mix(in srgb, #F5C758 18%, transparent) !important; color: #9A6200 !important; }
:root[data-theme='dark'] .cx .empty .icircle { background: rgba(217, 176, 92, .12) !important; color: #D9B05C !important; }
:root[data-theme='dark'] .cx .cx-bar-cta, :root[data-theme='dark'] .cx .lx-btn-ink { background: #D9B05C; border-color: #D9B05C; color: #12171F; }
:root[data-theme='dark'] .cx .cx-bar-cta:hover, :root[data-theme='dark'] .cx .lx-btn-ink:hover { background: #E4BF72; }
.lg-topic > .lg-main, .lg-topic > .lg-side { margin-top: 0; }
.lg-main > .lg-sec:first-child { margin-top: 0; }
/* Staff portals (admin, agent, banker) inside the AppShell (.sx).
   Same editorial language as the customer site: paper ground, white cards,
   navy ink, gold accents, Montserrat. Status colours stay as they are. */

.sx {
  --card: var(--lx-card);
  --page: var(--lx-paper);
  --text: var(--lx-ink);
  --text-2: var(--lx-ink-2);
  --text-3: var(--lx-ink-3);
  --border: var(--lx-line);
  --border-strong: var(--lx-line-strong);
}
.sx.admin-shell { background: var(--lx-paper); }

/* ----- top bar controls coming from Layout.tsx ----- */
.sx-actions .popover { position: relative; }
.sx-actions .icon-btn {
  position: relative; width: 40px; height: 40px; padding: 0; display: inline-grid; place-items: center;
  border-radius: 999px; border: 1px solid var(--lx-line); background: transparent; color: var(--lx-ink); cursor: pointer;
}
.sx-actions .icon-btn:hover { border-color: var(--lx-line-strong); background: transparent; }
.sx-actions .icon-btn .dot { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: #E2151A; color: #fff; font-size: 10px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--lx-paper); }
.sx-actions .user { display: flex; align-items: center; gap: 8px; padding: 3px 12px 3px 3px; border: 1px solid var(--lx-line); border-radius: 999px; background: var(--lx-card); }
.sx-actions .user:hover { border-color: var(--lx-line-strong); }
.sx-actions .user .avatar { background: var(--lx-band-bg) !important; color: #fff; }
.sx-actions .user-id { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }
.sx-actions .user .name { font-size: 13.5px; font-weight: 700; color: var(--lx-ink); white-space: nowrap; max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.sx-actions .user .role { font-size: 11.5px; color: var(--lx-ink-3); opacity: 1; white-space: nowrap; }
.sx-actions .menu { right: 0; left: auto; top: calc(100% + 8px); border-radius: 14px; border: 1px solid var(--lx-line); box-shadow: 0 18px 40px rgba(1, 42, 104, .14); }
@media (max-width: 1280px) { .sx-actions .user-id { display: none; } .sx-actions .user { padding: 3px; } }

/* ----- page headers ----- */
.sx .page-header { margin-bottom: 24px; align-items: flex-end; }
.sx .page-header h1 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; color: var(--lx-ink); }
.sx .page-header .ph-sub { font-size: 15px; color: var(--lx-ink-2); margin-top: 8px; max-width: 720px; line-height: 1.55; }
.sx .breadcrumb { font-size: 12.5px; color: var(--lx-ink-3); margin-bottom: 8px; }
.sx .breadcrumb a { color: var(--lx-gold-ink); }

/* ----- cards ----- */
.sx .card { background: var(--lx-card); border: 1px solid var(--lx-line); border-radius: 18px; box-shadow: none; padding: 20px 22px; }
.sx .card.flush { padding: 0; }
.sx .card-head { margin-bottom: 14px; }
.sx .card-head h2, .sx .card-head h3 { font-size: 16.5px; font-weight: 800; letter-spacing: -.005em; color: var(--lx-ink); }
.sx .card-head .sub { color: var(--lx-ink-3); }
.sx .card a.small, .sx .card-head a { color: var(--lx-royal-2); font-weight: 600; }
:root[data-theme='dark'] .sx .card a.small, :root[data-theme='dark'] .sx .card-head a { color: #D9B05C; }

/* ----- stat tiles: white cards, coloured icon only ----- */
.sx .stat { background: var(--lx-card) !important; border: 1px solid var(--lx-line); border-radius: 18px; padding: 18px; gap: 14px; box-shadow: none; }
.sx a.stat:hover { border-color: var(--lx-line-strong); box-shadow: 0 14px 30px -20px rgba(1, 42, 104, .35); }
.sx .stat .s-label { font-size: 13px; font-weight: 600; color: var(--lx-ink-3); }
.sx .stat .s-value { font-size: 28px; color: var(--lx-ink); }
.sx .stat .s-hint, .sx .stat .faint { font-size: 12.5px; color: var(--lx-ink-3); }
.sx .stat.tint-blue { box-shadow: inset 3px 0 0 #0059B8; }
.sx .stat.tint-green { box-shadow: inset 3px 0 0 #16A34A; }
.sx .stat.tint-amber { box-shadow: inset 3px 0 0 #F2B64A; }
.sx .stat.tint-red { box-shadow: inset 3px 0 0 #DC2626; }
.sx .stat.tint-purple { box-shadow: inset 3px 0 0 #7C3AED; }
.sx .stat.tint-teal { box-shadow: inset 3px 0 0 #0D9488; }
.sx .stat.tint-gold { box-shadow: inset 3px 0 0 #F2B64A; }

/* ----- dashboard welcome band ----- */
.sx .welcome { border-radius: 22px; border: 1px solid var(--lx-line); background: var(--lx-card); box-shadow: none; overflow: hidden; }
.sx .welcome::after { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--lx-grad); }
.sx .welcome h1 { font-weight: 800; letter-spacing: -.02em; color: var(--lx-ink); }
.sx .welcome .eyebrow { color: var(--lx-gold-ink) !important; letter-spacing: .2em !important; }
.sx .welcome svg.w-sky { display: none; }

/* ----- tables ----- */
.sx .table th { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--lx-ink-3); background: transparent; border-bottom: 1px solid var(--lx-line); }
.sx .table td { border-bottom: 1px solid var(--lx-line); color: var(--lx-ink); }
.sx .table tr.clickable:hover td, .sx .table tbody tr:hover td { background: var(--lx-paper); }
.sx .table-wrap { border-radius: 0 0 18px 18px; }

/* ----- buttons, inputs, tabs ----- */
.sx .btn { border-radius: 11px; font-family: var(--lx-sans); font-weight: 600; }
.sx .btn-primary { background: var(--lx-royal); color: #fff; }
.sx .btn-primary:hover:not(:disabled) { background: var(--lx-royal-2); }
.sx .btn-outline { background: transparent; color: var(--lx-ink); border-color: var(--lx-line-strong); }
.sx .btn-outline:hover:not(:disabled) { border-color: var(--lx-ink); background: transparent; }
.sx .input, .sx .select, .sx textarea.input { border-radius: 11px; border-color: var(--lx-line-strong); background: var(--lx-card); color: var(--lx-ink); }
.sx .input:focus, .sx .select:focus { border-color: var(--lx-royal-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lx-gold) 22%, transparent); }
.sx .tabs, .sx [role='tablist'] { gap: 4px; }
.sx .empty { border: 1px dashed var(--lx-line-strong); border-radius: 18px; background: var(--lx-card); }
.sx .list-row { border-color: var(--lx-line); }
.sx .kcard { border-radius: 14px; border-color: var(--lx-line); background: var(--lx-card); }
.sx .admin-shell .inbox-list a, .sx .inbox-list a { border-radius: 14px; background: var(--lx-card); border-color: var(--lx-line); }
.sx .inbox-list a:hover { border-color: var(--lx-line-strong); background: var(--lx-paper); }

/* ----- phones: compact stats, two per row ----- */
@media (max-width: 640px) {
  .sx :is(div, section):has(> .stat) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
  .sx .stat { padding: 12px; gap: 10px; flex-direction: column; border-radius: 14px; }
  .sx .stat .icircle, .sx .stat > span:first-child { width: 34px !important; height: 34px !important; }
  .sx .stat .s-label { font-size: 12px; }
  .sx .stat .s-value { font-size: 22px; }
  .sx .stat .s-hint, .sx .stat .faint { font-size: 11.5px; }
  .sx .card { padding: 16px; border-radius: 16px; }
  .sx-actions .icon-btn { width: 36px; height: 36px; }
}

/* ----- dashboard welcome: no skyline, clean three-part row ----- */
.sx .welcome { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 26px 28px; }
.sx .welcome > div:first-of-type { flex: 1 1 360px; min-width: 0; }
.sx .welcome h1 { font-size: clamp(24px, 2.4vw, 32px); }
.sx .welcome .card { border-radius: 14px; }

/* ----- banker ping centre: two-pane chat ----- */
.sx .ping-layout { gap: 16px; min-height: calc(100dvh - 210px); }
.sx .ping-list, .sx .ping-thread, .sx .ping-empty, .sx .ping-details { border-radius: 18px; overflow: hidden; }
.sx .ping-list-tools { padding: 14px; gap: 10px; background: var(--lx-card); }
.sx .ping-list-tools .input { border-radius: 999px; }
.sx .ping-filters .select, .sx .ping-filters select { border-radius: 10px; height: 36px; font-size: 13px; }
.sx .thread-item { padding: 12px 14px; border-bottom: 1px solid var(--lx-line); border-left: 3px solid transparent; }
.sx .thread-item:hover { background: var(--lx-paper); }
.sx .thread-item.active { background: var(--lx-paper-2); border-left-color: var(--lx-gold); }
.sx .thread-item .strong { font-size: 14px; color: var(--lx-ink); }
.sx .ping-thread-head { padding: 14px 18px; gap: 12px; background: var(--lx-card); }
.sx .ping-thread-head .select, .sx .ping-thread-head select { width: auto !important; min-width: 170px; height: 36px; border-radius: 999px; font-size: 13px; }
.sx .ping-chat { padding: 20px 22px; background: var(--lx-paper); gap: 10px; }
.sx .bubble { max-width: 70%; padding: 12px 15px; border-radius: 18px 18px 18px 4px; background: var(--lx-card); border: 1px solid var(--lx-line); color: var(--lx-ink-2); font-size: 14px; line-height: 1.55; }
.sx .bubble.me { border-radius: 18px 18px 4px 18px; background: var(--lx-royal); border-color: var(--lx-royal); color: #fff; }
.sx .bubble.me .b-meta { color: rgba(255, 255, 255, .75); }
.sx .bubble.note { border-radius: 14px; background: var(--lx-gold-soft); border: 1px dashed var(--lx-gold-ink); color: var(--lx-ink); }
.sx .bubble.system { border-radius: 999px; background: transparent; border: 1px solid var(--lx-line); color: var(--lx-ink-3); font-size: 12px; }
.sx .bubble .b-meta { font-size: 11.5px; font-weight: 700; color: var(--lx-ink-3); }
.sx .ping-composer { padding: 14px 16px; background: var(--lx-card); }
.sx .ping-composer textarea, .sx .ping-composer .input { border-radius: 14px; min-height: 48px; }
.sx .ping-composer .btn-primary { border-radius: 12px; height: 46px; }
.sx .ping-composer-actions { gap: 8px; margin-top: 10px; }
.sx .ping-composer-actions .link-btn { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--lx-line); color: var(--lx-ink-2); text-decoration: none; font-weight: 600; font-size: 12.5px; }
.sx .ping-composer-actions .link-btn:hover { border-color: var(--lx-line-strong); color: var(--lx-ink); }
.sx .ping-details { padding: 18px; }
@media (max-width: 1100px) {
  .sx .ping-layout, .sx .ping-layout.with-details { grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); }
  .sx .ping-layout.with-details .ping-details { grid-column: 1 / -1; max-height: none; }
}
@media (max-width: 760px) {
  .sx .ping-layout, .sx .ping-layout.with-details { grid-template-columns: 1fr; }
  .sx .ping-list { max-height: 260px; }
  .sx .bubble { max-width: 88%; }
}

/* ----- stat rows wrap instead of squeezing ----- */
.sx .stats { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.sx .stat .s-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) { .sx .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* agent promo banners: gradient script text, no skyline */
.sx .pp-banner, .sx [class*='pp-hero'] { border-radius: 20px; overflow: hidden; position: relative; }
.sx .pp-banner .script, .sx [class*='pp-hero'] .script { background: var(--lx-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ----- phones: welcome stacks, stepper shows only the current label ----- */
@media (max-width: 760px) {
  .sx .welcome { flex-direction: column; align-items: stretch; padding: 20px; gap: 14px; }
  .sx .welcome > div:first-of-type { flex: none; }
  .sx .welcome h1 { font-size: 24px; }
  .sx .welcome > .row { flex-wrap: wrap; }
  .sx .welcome > .row .btn { flex: 1 1 140px; }
}
@media (max-width: 640px) {
  .stepper .step:not(.active):not(.current) .s-title, .stepper .step:not(.active):not(.current) .s-sub { display: none; }
  .stepper .step .s-title { font-size: 12.5px; white-space: nowrap; }
}

/* ----- pipeline board: calm columns, colour only as a thin top bar + dot ----- */
.sx .kanban { gap: 14px; }
.sx .kcol { background: var(--lx-paper-2); border: 1px solid var(--lx-line); border-radius: 18px; }
.sx .kcol-head { background: var(--lx-card); border-radius: 18px 18px 0 0; border-bottom: 1px solid var(--lx-line); box-shadow: inset 0 3px 0 var(--tone, var(--lx-royal-2)); padding: 14px 16px 12px; }
.sx .kcol-head .kc-title { font-size: 14px; font-weight: 800; color: var(--lx-ink); align-items: center; }
.sx .kcol-head .kc-title::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--tone, var(--lx-royal-2)); flex: none; }
.sx .kcol-head .kc-count { min-width: 24px; height: 22px; padding: 0 7px; border-radius: 11px; display: inline-grid; place-items: center; background: var(--lx-paper-2); color: var(--lx-ink-2); font-size: 12px; }
.sx .kcol-head .faint { font-size: 12px; color: var(--lx-ink-3); margin-top: 2px; }
.sx .kcol-body { padding: 12px; gap: 10px; }
.sx .kcard { box-shadow: 0 1px 2px rgba(1, 42, 104, .05); }

/* stat labels wrap to two lines instead of being cut off */
.sx .stat .s-label { white-space: normal; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.3; }
/* six-card rows stay on one line on wide screens */
@media (min-width: 1280px) { .sx .stats:has(> :nth-child(6):last-child) { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* Other languages (2 Nov 2026): labels can be longer (Tamil, BM) or must not
   break inside words (Chinese). Let labels wrap instead of cutting them off. */
:root:not([lang='en']) .sx .stat .s-label { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.3; }
:root:not([lang='en']) .nav-label, :root:not([lang='en']) .sx .nav a { overflow-wrap: anywhere; }
:root[lang='zh'] :is(.table th, .table td, .sx .stat .s-label, .chip, .btn) { word-break: keep-all; }
:root[lang='zh'] .table td { min-width: 3.5em; }
:root[lang='ta'] .sx .stat .s-label { font-size: 12.5px; }

/* ---- Content → Gallery (2 Nov 2026) ---- */
.gla-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.gla-filters button { border: 1px solid var(--border); background: var(--card); color: var(--text); border-radius: 999px; padding: 7px 13px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.gla-filters button span { opacity: .6; margin-left: 3px; }
.gla-filters button.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.gla-live { margin-left: auto; font-size: 13px; font-weight: 600; }
.gla-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.gla-card { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--card); display: flex; flex-direction: column; }
.gla-card.off .gla-img img { opacity: .55; filter: grayscale(.4); }
.gla-img { aspect-ratio: 4 / 3; background: var(--page); }
.gla-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gla-body { padding: 10px 12px 12px; display: grid; gap: 8px; }
.gla-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.gla-cap { margin: 0; font-size: 13px; line-height: 1.4; min-height: 18px; }
.gla-actions { display: flex; gap: 0; flex-wrap: nowrap; align-items: center; margin: 0 -8px -4px; }
.gla-actions .btn { padding-inline: 7px; }
.gla-actions .btn:last-child { margin-left: auto; color: var(--danger, #C0352B); }
.gla-drop { border: 2px dashed var(--border); border-radius: 14px; padding: 22px; display: grid; gap: 4px; justify-items: center; text-align: center; cursor: pointer; color: var(--text-2, var(--muted)); }
.gla-drop:hover, .gla-drop:focus-visible { border-color: var(--primary); }
.gla-drop strong { color: var(--text); }
.gla-thumbs { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.gla-thumbs img { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; }
.gla-edit-img { width: 100%; max-height: 260px; object-fit: contain; border-radius: 10px; background: var(--page); }

/* ---- Office Visits (2 Nov 2026) ---- */
.ap-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.ap-stat { border: 1px solid var(--border); background: var(--card); border-radius: 14px; padding: 14px 16px; display: grid; gap: 4px; }
.ap-stat span { font-size: 13px; color: var(--muted); } .ap-stat strong { font-size: 24px; color: var(--text); }
.ap-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.ap-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 16px; padding: 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--card); }
.ap-row.focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.ap-when { display: grid; align-content: start; gap: 2px; }
.ap-when strong { font-size: 18px; color: var(--text); } .ap-when span { font-size: 13px; color: var(--muted); }
.ap-when em { font-style: normal; font-size: 11px; font-weight: 700; justify-self: start; padding: 2px 8px; border-radius: 999px; background: #FFF1D6; color: #8A5300; }
.ap-who { display: grid; gap: 3px; min-width: 0; } .ap-who strong { color: var(--text); font-size: 15px; } .ap-who > span { font-size: 13px; color: var(--muted); }
.ap-note, .ap-snote { margin: 4px 0 0; font-size: 13px; color: var(--text); background: var(--page); border-radius: 8px; padding: 6px 10px; }
.ap-side { display: grid; justify-items: end; align-content: start; gap: 10px; }
.ap-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; max-width: 340px; }
:root[data-theme='dark'] .ap-when em { background: rgba(217, 180, 90, .16); color: #E6C67A; }
@media (max-width: 720px) {
  .ap-stats { grid-template-columns: 1fr 1fr 1fr; gap: 8px; } .ap-stat { padding: 10px; } .ap-stat strong { font-size: 20px; }
  .ap-row { grid-template-columns: 1fr; gap: 10px; }
  .ap-when { grid-auto-flow: column; justify-content: start; align-items: baseline; gap: 8px; }
  .ap-side { justify-items: start; } .ap-actions { justify-content: flex-start; max-width: none; }
}
/* Softer dark mode (2 Nov 2026). The earlier dark theme used saturated
   banner navy (#031634 / #0A2856), pure-white text and neon gold, which is
   tiring on the eyes. This layer keeps the brand hue but lowers saturation
   and contrast: near-neutral ink-blue grounds, off-white text, muted gold.
   Loaded last so it wins over tokens/app/landing/editorial/customer/staff. */
:root[data-theme='dark'] {
  /* public + customer (landing.css tokens) */
  --lx-paper: #0F141B;
  --lx-paper-2: #131922;
  --lx-card: #171E28;
  --lx-ink: #E3E7ED;
  --lx-ink-2: #B4BCC8;
  --lx-ink-3: #8A94A3;
  --lx-line: #242C38;
  --lx-line-strong: #323C4B;
  --lx-gold: #D9B05C;
  --lx-gold-ink: #D9B05C;
  --lx-gold-soft: #2A2519;
  --lx-navy: #141B26;
  --lx-navy-2: #E3E7ED;
  --lx-band: #121924;
  --lx-band-bg: linear-gradient(135deg, #111720 0%, #142033 60%, #182A45 100%);
  --lx-band-ink: #ECEFF3;
  --lx-band-ink-2: #AEB8C6;
  --lx-band-gold: #D9B05C;
  --lx-hero-ink: #ECEFF3;
  --lx-hero-ink-2: #B4BCC8;
  --lx-hero-kicker: #D9B05C;
  --lx-royal: #2F62B0;
  --lx-royal-2: #7FA6E0;
  /* portals (tokens.css / editorial.css) */
  --page: #0F141B;
  --card: #171E28;
  --card-alt: #131922;
  --surface-1: var(--page);
  --surface-2: var(--card);
  --surface-3: var(--card-alt);
  --border: #242C38;
  --border-strong: #323C4B;
  --text: #E3E7ED;
  --text-2: #B4BCC8;
  --text-3: #8F99A8;
  --text-muted: var(--text-3);
  --primary: #3569B8;
  --primary-hover: #4277C6;
  --primary-soft: #1A2638;
  --secondary-soft: #1A2230;
  --grey-soft: #1D2531;
  --blue-soft: #1A2740;
  --gold-soft: #2A2519;
  --gold-ink: #D9B05C;
  --c1: #6E9BDB;
  --chart-1: #6E9BDB;
  --c2: #D9B05C;
  --chart-2: #D9B05C;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 8px 22px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.42);
}
/* Primary buttons: calm blue instead of bright royal; gold CTAs a touch muted. */
:root[data-theme='dark'] .btn-primary, :root[data-theme='dark'] .lx-btn-ink { background: #3569B8; color: #F3F6FA; }
:root[data-theme='dark'] .btn-primary:hover:not(:disabled), :root[data-theme='dark'] .lx-btn-ink:hover { background: #4277C6; }
:root[data-theme='dark'] .lx-btn-gold { background: #D9B05C; color: #1A1408; }
:root[data-theme='dark'] .lx-btn-gold:hover { background: #E3BD6E; }
/* Large headings: off-white rather than pure white. */
:root[data-theme='dark'] h1, :root[data-theme='dark'] h2 { color: var(--lx-ink); }

/* Status / icon tones: same hues, less glare. */
:root[data-theme='dark'] {
  --success: #4FA673;
  --amber: #D29A3C;
  --warning: #D29A3C;
  --red: #CC5A6E;
  --danger: #E07A8B;
  --purple: #8B73CF;
  --teal: #45A096;
  --pink: #C6648E;
  --gold: #D9B05C;
  --info: #7FA6E0;
  --c1: #6E9BDB; --c2: #5FB07F; --c3: #D9A85A; --c4: #D17FA8; --c5: #9B86D6; --c6: #5FAFD3; --c7: #6B7685;
  --chart-1: #6E9BDB; --chart-2: #D9A85A; --chart-3: #9B86D6; --chart-4: #5FB07F; --chart-5: #D17FA8; --chart-6: #5FAFD3;
}
:root[data-theme='dark'] .icircle.solid { filter: saturate(.85); }

/* footer: soft charcoal, not saturated navy */
:root[data-theme='dark'] .lx-foot { background: #0C1016; color: #A3ADBB; }
:root[data-theme='dark'] .lx-foot nav a { color: #C4CBD5; }
:root[data-theme='dark'] .lx-foot nav a:hover { color: #E3E7ED; }
:root[data-theme='dark'] .lx-foot :is(h2, .script) { color: #D9B05C; }
:root[data-theme='dark'] .lx-foot .brand-sub, :root[data-theme='dark'] .lx-foot .lx-logo-sub { color: #A3ADBB; }
:root[data-theme='dark'] .lx-foot-base { border-top-color: #242C38; }
:root[data-theme='dark'] .cx-foot .lx-foot-base a { color: #D9B05C; }
/* Avatars: the near-black band gradient vanished on the dark page; use a soft navy disc with gold initials */
:root[data-theme='dark'] :is(.sx-actions .user .avatar, .cx-bar-end .avatar, .sx .card .avatar, .partner-shell .avatar) {
  background: #24365A !important; color: #F1DFAF !important; box-shadow: inset 0 0 0 1px rgba(217, 176, 92, .35);
}
/* Light mode: no big saturated navy→blue panels (2 Nov 2026).
   Cards that used --lx-band-bg (profile, next step, share link, calculator
   result, homepage band, contact block, agent banner…) become a light
   surface with navy text; the gold→red top strip stays as the brand accent.
   Dark mode is untouched (dark-soft.css). Loaded after dark-soft.css. */
:root:not([data-theme='dark']) {
  --lx-band-bg: linear-gradient(135deg, #FFFFFF 0%, #F2F7FD 100%);
  --lx-band-ink: #012A68;
  --lx-band-ink-2: #4A5B78;
  --lx-band-gold: #A7731C;
  --lx-on-navy-2: #4A5B78;
  --navy-gradient: linear-gradient(180deg, #F6F9FD 0%, #EEF4FB 100%);
}
:root:not([data-theme='dark']) :is(.cx-next, .cx-id, .cx-share, .cx-calc-result, .lx-contact, .lx-band, .pp-hero) {
  background: var(--lx-band-bg); color: #012A68; border: 1px solid #DCE6F2;
  box-shadow: 0 18px 40px -32px rgba(1, 42, 104, .35);
}
:root:not([data-theme='dark']) .lx-band { border-width: 1px 0; box-shadow: none; }

/* text inside those panels */
:root:not([data-theme='dark']) :is(.cx-next h2, .cx-id strong, .cx-share-url, .cx-calc-big, .cx-calc-rows b, .cx-dsr-top b, .lx-band h2, .lx-band li strong, .lx-contact h2, .pp-hero h2, .cx-next .cx-steps-label strong) { color: #012A68 !important; }
:root:not([data-theme='dark']) :is(.cx-next p, .cx-next-meta, .cx-next .cx-steps-label, .cx-next .cx-steps-note, .cx-id > span, .cx-id-meter small, .cx-share-code, .cx-calc-rows span, .cx-calc-legend, .cx-dsr-top, .cx-dsr small, .lx-band p, .lx-band li span, .lx-contact p, .pp-hero .ph-tag) { color: #4A5B78; }
:root:not([data-theme='dark']) :is(.cx-next-kicker, .lx-band .lx-kicker, .lx-contact .lx-kicker, .cx-share-code b, .lx-band li svg) { color: #A7731C; }
:root:not([data-theme='dark']) .pp-hero h2 span { color: #0059B8; }

/* inner chips / tracks that were white-on-navy */
:root:not([data-theme='dark']) .cx-next .cx-steps-bar span { background: #E1E9F4; }
:root:not([data-theme='dark']) .cx-next .cx-steps-bar span.done { background: #7FB4E6; }
:root:not([data-theme='dark']) .cx-next .cx-steps-bar span.now { background: #E2B04A; }
:root:not([data-theme='dark']) .cx-id .avatar { background: #E8F0FA !important; color: #012A68; box-shadow: 0 0 0 3px #E8C77A; }
:root:not([data-theme='dark']) .cx-id-meter > div, :root:not([data-theme='dark']) .cx-dsr-bar { background: #E1E9F4; }
:root:not([data-theme='dark']) .cx-id-meter > div span { background: #E2B04A; }
:root:not([data-theme='dark']) .cx-share-field, :root:not([data-theme='dark']) .cx-calc-rows > div, :root:not([data-theme='dark']) .cx-dsr { background: #FFFFFF; border: 1px solid #DCE6F2; }
:root:not([data-theme='dark']) .lx-band li { border-top-color: #DCE6F2; }
:root:not([data-theme='dark']) .lx-band li:last-child { border-bottom-color: #DCE6F2; }
:root:not([data-theme='dark']) :is(.lx-contact, .lx-band, .pp-hero)::after { display: none; }
:root:not([data-theme='dark']) .pp-hero svg.pp-sky { opacity: .12; }

/* small brand marks on light: soft tile instead of a dark square */
:root:not([data-theme='dark']) .cx-chat-avatar { background: #E8F0FA; color: #A7731C; }
:root:not([data-theme='dark']) .cx-prop-art { background: linear-gradient(135deg, #EEF4FB 0%, #DDE9F7 100%); }
:root:not([data-theme='dark']) .lx-promo-ic { background: #E8F0FA; color: #003C87; }

/* contact tiles and ghost buttons that sat on navy */
:root:not([data-theme='dark']) .lx-ctile { background: #FFFFFF; border-color: #DCE6F2; color: #012A68; }
:root:not([data-theme='dark']) a.lx-ctile:hover { background: #F5F9FE; border-color: #E8C77A; }
:root:not([data-theme='dark']) .lx-ctile strong { color: #012A68; }
:root:not([data-theme='dark']) .lx-ctile > span:last-child > span { color: #4A5B78; }
:root:not([data-theme='dark']) .lx-ctile-ic { background: #FBF3E1; color: #A7731C; }
:root:not([data-theme='dark']) .lx-ctile-wa { background: #F1FBF4; border-color: #BFE8CC; }
:root:not([data-theme='dark']) .lx-ctile-wa .lx-ctile-ic { background: #E3F6E9; }
:root:not([data-theme='dark']) .lx-btn-ghost-light { color: #012A68; border-color: #BCCDE4; background: #FFFFFF; }
:root:not([data-theme='dark']) .lx-btn-ghost-light:hover { border-color: #012A68; }

/* avatars keep their navy tile (they used --lx-band-bg, now a light panel) */
:root:not([data-theme='dark']) :is(.cx-bar-end .avatar, .sx-actions .user .avatar) { background: #0B3B7A !important; color: #FFFFFF; }

/* footer: light surface in light mode instead of a full navy block */
:root:not([data-theme='dark']) .lx-foot { background: #F2F6FB; color: #4A5B78; border-top: 1px solid #DCE6F2; }
:root:not([data-theme='dark']) .lx-foot :is(h2, .script, .lx-logo-sub) { color: #A7731C; }
:root:not([data-theme='dark']) .lx-foot .brand-sub { color: #4A5B78; }
:root:not([data-theme='dark']) .lx-foot nav a { color: #23395E; }
:root:not([data-theme='dark']) .lx-foot nav a:hover { color: #012A68; }
:root:not([data-theme='dark']) .lx-foot-base { border-top-color: #DCE6F2; }
:root:not([data-theme='dark']) .cx-foot .lx-foot-base a { color: #A7731C; }
.lx-foot-legal { color: #012A68; }
:root[data-theme='dark'] .lx-foot-legal { color: #E3E7ED; }
/* Photo captions sit on a dark gradient: always white. */
:root .lx-band .gl-grid .gl-cap, :root .gl-grid .gl-cap { color: #FFFFFF !important; }
:root:not([data-theme='dark']) .lx-foot .social-links a { color: #012A68; background: #FFFFFF; border-color: #DCE6F2; }
:root:not([data-theme='dark']) .lx-foot .social-links a:hover, :root:not([data-theme='dark']) .lx-foot .social-links a:focus-visible { background: #012A68; color: #F5C758; border-color: #012A68; }
/* Office panel redesign (2 Nov 2026): calmer and less crowded.
   Loaded last, scoped to the staff shell (.sx: admin, agent, banker).
   - Smaller, lighter type (fewer bold words), consistent 14px base.
   - Compact controls (38px buttons/inputs) so rows don't wrap.
   - Dark mode: low-glare charcoal, off-white text, muted blue and gold,
     desaturated icon circles and avatars. Light mode mirrors the spacing. */

/* ---------- type scale ---------- */
.sx { font-size: 14px; }
.sx .page-header { margin-bottom: 20px; gap: 14px; }
.sx .page-header h1 { font-size: clamp(22px, 1.9vw, 27px); font-weight: 700; letter-spacing: -.015em; }
.sx .page-header .ph-sub { font-size: 14px; line-height: 1.5; margin-top: 6px; }
.sx .breadcrumb { font-size: 12.5px; margin-bottom: 6px; }
.sx .breadcrumb .current { font-weight: 600; }
.sx h1 { font-weight: 700; }
.sx h2, .sx h3 { font-weight: 650; }
.sx .strong, .sx strong { font-weight: 600; }
.sx .muted { color: var(--lx-ink-2); }

/* ---------- cards ---------- */
.sx .card { padding: 18px 20px; border-radius: 14px; }
.sx .card-head { margin-bottom: 12px; }
.sx .card-head h2, .sx .card-head h3 { font-size: 15px; font-weight: 650; letter-spacing: 0; }
.sx .card-head .sub { font-size: 12.5px; }
.sx .grid { gap: 16px; }

/* ---------- stat cards: one line label, compact value ---------- */
.sx .stats { gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
@media (min-width: 1280px) { .sx .stats:has(> :nth-child(6):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1680px) { .sx .stats:has(> :nth-child(6):last-child) { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.sx .stat { padding: 14px 16px; border-radius: 14px; gap: 12px; align-items: center; }
.sx .stat .icircle { width: 36px !important; height: 36px !important; }
.sx .stat .icircle svg { width: 17px; height: 17px; }
.sx .stat .s-label { font-size: 12.5px; font-weight: 500; color: var(--lx-ink-2); display: block; -webkit-line-clamp: unset; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.35; }
:root:not([lang='en']) .sx .stat .s-label { white-space: normal; }
.sx .stat .s-value { font-size: 22px; font-weight: 700; line-height: 1.2; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.sx .stat .s-hint, .sx .stat .faint { font-size: 12px; margin-top: 2px; }
.sx .stat.tint-blue, .sx .stat.tint-green, .sx .stat.tint-amber, .sx .stat.tint-red, .sx .stat.tint-purple, .sx .stat.tint-teal, .sx .stat.tint-gold { box-shadow: none; }

/* ---------- controls ---------- */
.sx .btn { height: 38px; padding: 0 14px; font-size: 14px; font-weight: 600; border-radius: 10px; gap: 7px; }
.sx .btn-sm { height: 34px; padding: 0 12px; font-size: 13.5px; border-radius: 9px; }
.sx .btn-xs { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }
.sx .btn-icon { width: 34px; height: 34px; }
.sx .btn svg { width: 16px; height: 16px; }
.sx .input, .sx .select { height: 38px; font-size: 14px; border-radius: 10px; }
.sx .textarea { font-size: 14px; }
.sx .input-sm { height: 34px; font-size: 13.5px; }
.sx .field { gap: 5px; }
.sx .field > label, .sx .field-label { font-size: 13.5px; font-weight: 600; }
.sx .hint, .sx .field .hint, .sx .field .err { font-size: 12.5px; }

/* ---------- tabs: one line, scroll instead of cutting off ---------- */
.sx .tabs { gap: 2px; margin-bottom: 14px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
.sx .tabs::-webkit-scrollbar { display: none; }
.sx .tab { font-size: 13.5px; font-weight: 600; padding: 10px 12px; flex: none; }
.sx .tab svg { width: 15px; height: 15px; }

/* ---------- tables ---------- */
.sx .table th { font-size: 11px; font-weight: 600; letter-spacing: .07em; padding: 10px 12px; white-space: nowrap; }
.sx .table td { font-size: 13.5px; padding: 12px; line-height: 1.4; }
.sx .table td .faint, .sx .table td .small { font-size: 12.5px; }

/* ---------- filter bars: search grows, Reset stays on the row ---------- */
.sx .filter-bar, .sx .filters { gap: 10px; align-items: center; }

/* ---------- badges / pills ---------- */
.sx .badge { font-size: 12px; font-weight: 600; padding: 3px 9px; }

/* ---------- case page ---------- */
.sx .content > .grid > .card.row h1, .sx .content .card.row h1 { font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
.sx .card.row .avatar { width: 56px !important; height: 56px !important; font-size: 20px !important; }
.sx .stepper { font-size: 13.5px; }
.sx .stepper .current, .sx .stepper strong { font-weight: 600; }
.sx .kv dt, .sx .kv .k { font-size: 13px; }
.sx .kv dd, .sx .kv .v { font-size: 13.5px; }

/* ---------- dark mode: low glare ---------- */
:root[data-theme='dark'] .sx {
  --lx-paper: #0E1217;
  --lx-paper-2: #131820;
  --lx-card: #141A21;
  --lx-line: #1F262F;
  --lx-line-strong: #2B333E;
  --lx-ink: #D3D9E1;
  --lx-ink-2: #9AA4B2;
  --lx-ink-3: #7B8595;
  --lx-royal: #355A90;
  --lx-royal-2: #8FAEDA;
  --lx-gold: #C6A55E;
  --lx-gold-ink: #C6A55E;
  --primary: #355A90;
  --primary-hover: #3E659D;
  --primary-soft: #18222F;
  --grey-soft: #1A2029;
  color: var(--lx-ink);
}
:root[data-theme='dark'] .sx :is(h1, h2, h3) { color: #E1E6EC; }
:root[data-theme='dark'] .sx .btn-primary { background: var(--lx-royal); color: #EEF2F7; }
:root[data-theme='dark'] .sx .btn-primary:hover:not(:disabled) { background: #3E659D; }
:root[data-theme='dark'] .sx .btn-outline { border-color: var(--lx-line-strong); color: var(--lx-ink); }
:root[data-theme='dark'] .sx :is(.icircle.solid, .avatar:not(.blank):not(:has(img))) { filter: saturate(.6) brightness(.85); }
:root[data-theme='dark'] .sx .icircle.soft { filter: saturate(.75); }
:root[data-theme='dark'] .sx .badge { filter: saturate(.7) brightness(.95); }
:root[data-theme='dark'] .sx .breadcrumb a { color: #B39556; }
:root[data-theme='dark'] .sx .card a.small, :root[data-theme='dark'] .sx .card-head a { color: #C6A55E; }
:root[data-theme='dark'] .sx .tab.active { color: #A9C2E6; border-bottom-color: #4A73AE; }
:root[data-theme='dark'] .sx .table tbody tr:hover td { background: #171D25; }
:root[data-theme='dark'] .sx .stepper { filter: saturate(.75); }
:root[data-theme='dark'] .sx-actions .icon-btn, :root[data-theme='dark'] .sx-actions .user { border-color: var(--lx-line); }

/* ---------- light mode: same spacing, softer active states ---------- */
:root:not([data-theme='dark']) .sx .tabs:not(.pills) .tab.active { color: #0B4FA8; }

/* ---------- small screens ---------- */
@media (max-width: 720px) {
  .sx .card { padding: 16px; }
  .sx .page-header h1 { font-size: 22px; }
  .sx .stat { padding: 12px; flex-direction: row; align-items: center; }
  .sx .stat .s-value { font-size: 19px; }
  .sx .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

/* ---------- dashboard welcome ---------- */
.sx .welcome { border-radius: 16px; padding: 20px 24px; }
.sx .welcome h1, .sx .dash .welcome h1 { font-size: 24px; font-weight: 700; letter-spacing: -.015em; }
.sx .welcome .muted { font-size: 14px; }

/* ---------- filter bar: one row on desktop ---------- */
.sx .filterbar { gap: 10px; padding: 12px 14px; flex-wrap: wrap; }
.sx .filterbar .search-input { flex: 1 1 240px; min-width: 200px; }
.sx .filterbar .select, .sx .filterbar .input:not(.search-input .input) { flex: 0 1 190px; min-width: 130px; height: 36px; font-size: 13.5px; }
.sx .filterbar .search-input .input { height: 36px; font-size: 13.5px; }
.sx .filterbar .btn { height: 36px; flex: none; }

/* ---------- tables: keep short cells on one line, scroll if needed ---------- */
.sx .table td { white-space: nowrap; }
.sx .table td :is(p, .wrap, .desc, .note) { white-space: normal; }

/* ---------- progress steps ---------- */
.sx .step .dot { width: 26px; height: 26px; font-size: 12px; font-weight: 600; }
.sx .step::before { top: 12px; height: 2px; left: calc(-50% + 16px); right: calc(50% + 16px); }
.sx .step .s-title { font-size: 13.5px; font-weight: 600; margin-top: 6px; }
.sx .step.upcoming .s-title { font-weight: 500; }
.sx .step .s-sub { font-size: 11.5px; }
.sx .step.current .dot { box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent); border-color: transparent; }
:root[data-theme='dark'] .sx .step .dot { background: #1A2029; border-color: #2B333E; color: #7B8595; }
:root[data-theme='dark'] .sx .step.done .dot, :root[data-theme='dark'] .sx .step.current .dot { background: #355A90; color: #EEF2F7; border-color: transparent; }
:root[data-theme='dark'] .sx .step.done::before, :root[data-theme='dark'] .sx .step.current::before { background: #355A90; }

/* ---------- gold links calmer in dark ---------- */
:root[data-theme='dark'] .sx a[style*='gold'], :root[data-theme='dark'] .sx .link-gold { color: #C6A55E !important; }

/* ---------- segmented switches (Tabs variant="pills") ---------- */
.sx .tabs.pills { display: inline-flex; gap: 2px; padding: 4px; border-radius: 12px; background: var(--lx-paper-2); border: 1px solid var(--lx-line); max-width: 100%; -webkit-mask-image: none; mask-image: none; }
.sx .tabs.pills .tab { border: 0; border-radius: 9px; background: transparent; color: var(--lx-ink-2); padding: 7px 14px; font-size: 13.5px; font-weight: 600; box-shadow: none; }
.sx .tabs.pills .tab:hover { color: var(--lx-ink); }
.sx .tabs.pills .tab.active { background: var(--lx-card); color: var(--lx-ink); border: 0; box-shadow: 0 1px 2px rgba(1, 20, 50, .08), 0 0 0 1px var(--lx-line); }
.sx .tabs.pills .tab.active svg { color: var(--lx-gold-ink); }
:root[data-theme='dark'] .sx .tabs.pills { background: #0F141A; }
:root[data-theme='dark'] .sx .tabs.pills .tab.active { background: #1C232D; color: #E6EAF0; box-shadow: 0 0 0 1px #2B333E; }

/* ---------- banners readable in both themes ---------- */
.sx :is(.banner-amber, .banner-warn, .banner-info, .banner-danger, .banner-success) { border-radius: 12px; padding: 12px 14px; font-size: 13.5px; line-height: 1.55; border: 1px solid transparent; }
.sx :is(.banner-amber, .banner-warn) { background: #FFF6E5; color: #6B4600; border-color: #F3DDA8; }
.sx .banner-info { background: #EEF4FC; color: #123B73; border-color: #D3E2F6; }
.sx .banner-danger { background: #FDEEEE; color: #8A1F24; border-color: #F5CFD1; }
.sx .banner-success { background: #ECF7F0; color: #1C5A33; border-color: #CBE9D5; }
.sx :is(.banner-amber, .banner-warn, .banner-info, .banner-danger, .banner-success) a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
:root[data-theme='dark'] .sx :is(.banner-amber, .banner-warn) { background: rgba(214, 168, 82, .09); color: #E3CC9C; border-color: rgba(214, 168, 82, .24); }
:root[data-theme='dark'] .sx .banner-info { background: rgba(110, 155, 219, .09); color: #B8CDEB; border-color: rgba(110, 155, 219, .22); }
:root[data-theme='dark'] .sx .banner-danger { background: rgba(224, 122, 139, .09); color: #EDB7C0; border-color: rgba(224, 122, 139, .24); }
:root[data-theme='dark'] .sx .banner-success { background: rgba(95, 176, 127, .09); color: #B3DEC3; border-color: rgba(95, 176, 127, .22); }
:root[data-theme='dark'] .sx :is(.banner-amber, .banner-warn, .banner-info, .banner-danger, .banner-success) svg { opacity: .85; }

/* ---------- clickable list rows (buttons) never get the browser's grey ---------- */
.sx button.list-row { appearance: none; background: transparent; border: 0; border-bottom: 1px solid var(--lx-line); border-radius: 0; color: var(--lx-ink); font: inherit; cursor: pointer; padding: 12px 10px; margin: 0; width: 100%; text-align: left; }
.sx button.list-row:last-child { border-bottom: 0; }
.sx button.list-row:hover { background: var(--lx-paper-2); }
.sx button.list-row .faint { color: var(--lx-ink-3); }
.sx .list-row.nav-child { border-radius: 10px; border-bottom: 0; padding: 9px 12px; margin: 1px 0; color: var(--lx-ink-2) !important; }
.sx .list-row.nav-child.active { background: var(--lx-paper-2); color: var(--lx-ink) !important; font-weight: 600; box-shadow: inset 3px 0 0 var(--lx-gold); }
.sx .list-row.nav-child span:last-child { color: var(--lx-ink-3); font-size: 12.5px; }

/* ---------- media cards (Learn, Properties…) ---------- */
.sx .cards-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.sx .media-card { border-radius: 14px; overflow: hidden; border: 1px solid var(--lx-line); background: var(--lx-card); }
.sx .media-card:hover { border-color: var(--lx-line-strong); }
.sx .media-card .mc-img { height: 92px !important; }
.sx .media-card .mc-img svg { width: 28px; height: 28px; }
.sx .media-card .mc-body { padding: 12px 14px; gap: 6px; }
.sx .media-card .mc-body .strong { font-size: 14px; }
.sx .media-card .badge { font-size: 10.5px; padding: 2px 6px; }
:root[data-theme='dark'] .sx .media-card .mc-img { filter: saturate(.7) brightness(.85); }

/* ---------- donut centre fits inside the ring ---------- */
.sx .donut-center .dc-value { font-size: 22px; font-weight: 700; }
.sx .donut-center .dc-label { font-size: 11px; max-width: 64%; text-align: center; line-height: 1.25; }

/* ---------- Work Inbox (2 Nov 2026) ---------- */
.wi-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.wi-chips a { display: inline-flex; align-items: baseline; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--lx-line); background: var(--lx-card); color: var(--lx-ink-2); text-decoration: none; font-size: 13.5px; }
.wi-chips a strong { font-size: 15px; color: var(--lx-ink-3); }
.wi-chips a.on strong { color: var(--lx-gold-ink); }
.wi-chips a.on { color: var(--lx-ink); }
.wi-chips a:hover { border-color: var(--lx-line-strong); text-decoration: none; }
.wi-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 16px; align-items: start; }
.wi-side { display: grid; gap: 16px; }
.wi-panel { padding: 16px 18px; }
.wi-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.wi-head h2 { margin: 0; font-size: 15px; font-weight: 650; }
.wi-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--lx-paper-2); color: var(--lx-gold-ink); flex: none; }
.wi-count { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--lx-paper-2); color: var(--lx-ink-3); }
.wi-count.on { background: color-mix(in srgb, var(--lx-gold) 18%, transparent); color: var(--lx-gold-ink); }
.wi-link { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 600; color: var(--lx-ink-2); text-decoration: none; white-space: nowrap; }
.wi-link:hover { color: var(--lx-ink); text-decoration: none; }
.wi-note { margin: 0 0 10px; font-size: 12.5px; color: var(--lx-ink-3); }
.wi-clear { display: flex; align-items: center; gap: 8px; margin: 2px 0 0; padding: 12px; border-radius: 10px; background: var(--lx-paper-2); color: var(--lx-ink-3); font-size: 13px; }
.wi-clear svg { color: #4FA673; flex: none; }
.wi-enq, .wi-list { list-style: none; margin: 0; padding: 0; display: grid; }
.wi-enq li + li, .wi-list li + li { border-top: 1px solid var(--lx-line); }
.wi-enq a { display: grid; grid-template-columns: 36px minmax(0, 1.3fr) minmax(0, 1.2fr) auto auto 16px; gap: 12px; align-items: center; padding: 11px 6px; color: var(--lx-ink); text-decoration: none; border-radius: 10px; }
.wi-enq a:hover, .wi-list a:hover { background: var(--lx-paper-2); text-decoration: none; }
.wi-who { display: grid; min-width: 0; } .wi-who strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .wi-who .mono { font-size: 12px; color: var(--lx-ink-3); }
.wi-svc { font-size: 13px; color: var(--lx-ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wi-amt { font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.wi-time { font-size: 12.5px; color: var(--lx-ink-3); white-space: nowrap; }
.wi-enq a > svg { color: var(--lx-ink-3); }
.wi-list a { display: grid; gap: 2px; padding: 10px 6px; color: var(--lx-ink); text-decoration: none; border-radius: 10px; }
.wi-list strong { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wi-list span { font-size: 12.5px; color: var(--lx-ink-3); }
.wi-list .wi-late { color: #D9666E; }
@media (max-width: 1100px) { .wi-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .wi-enq a { grid-template-columns: 32px minmax(0, 1fr) auto; grid-template-areas: 'av who amt' 'av svc time'; row-gap: 2px; }
  .wi-enq a > :nth-child(1) { grid-area: av; } .wi-who { grid-area: who; } .wi-svc { grid-area: svc; } .wi-amt { grid-area: amt; text-align: right; } .wi-time { grid-area: time; text-align: right; }
  .wi-enq a > svg { display: none; }
}

/* ---------- Case Pipeline (2 Nov 2026) ---------- */
.pl-summary { display: flex; flex-wrap: wrap; gap: 0; margin-bottom: 16px; border: 1px solid var(--lx-line); border-radius: 14px; background: var(--lx-card); overflow: hidden; }
.pl-summary > div { flex: 1 1 150px; display: grid; gap: 2px; padding: 14px 18px; border-right: 1px solid var(--lx-line); }
.pl-summary > div:last-child { border-right: 0; }
.pl-summary strong { font-size: 20px; font-weight: 700; color: var(--lx-ink); }
.pl-summary span { font-size: 12.5px; color: var(--lx-ink-3); }
.pl-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 6px; align-items: start; }
.pl-col { --pl: #6E9BDB; border: 1px solid var(--lx-line); border-radius: 14px; background: var(--lx-paper-2); min-width: 0; }
.pl-green { --pl: #5FB07F; } .pl-amber { --pl: #D9A85A; } .pl-gold { --pl: #C6A55E; } .pl-purple { --pl: #9B86D6; }
.pl-col-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--lx-line); box-shadow: inset 0 3px 0 var(--pl); border-radius: 14px 14px 0 0; }
.pl-step { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; font-size: 11px; font-weight: 700; background: color-mix(in srgb, var(--pl) 20%, transparent); color: var(--pl); flex: none; }
.pl-col-head strong { font-size: 13.5px; font-weight: 650; color: var(--lx-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-n { font-size: 12px; font-weight: 700; color: var(--lx-ink-3); background: var(--lx-card); border: 1px solid var(--lx-line); border-radius: 999px; padding: 0 7px; }
.pl-sum { margin-left: auto; font-size: 12px; color: var(--lx-ink-3); white-space: nowrap; }
.pl-col-body { display: grid; gap: 8px; padding: 10px; min-height: 64px; }
.pl-empty { display: grid; place-items: center; height: 56px; border: 1px dashed var(--lx-line-strong); border-radius: 10px; font-size: 12.5px; color: var(--lx-ink-3); }
.pl-card { appearance: none; display: grid; gap: 6px; text-align: left; padding: 12px; border-radius: 12px; border: 1px solid var(--lx-line); background: var(--lx-card); color: var(--lx-ink); font: inherit; cursor: pointer; box-shadow: inset 3px 0 0 var(--pl); }
.pl-card:hover { border-color: var(--lx-line-strong); }
.pl-card-top { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--lx-ink-3); }
.pl-card-who { display: flex; align-items: center; gap: 8px; min-width: 0; } .pl-card-who strong { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-card-svc { font-size: 12.5px; color: var(--lx-ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; } .pl-card-foot strong { font-size: 13.5px; }
:root[data-theme='dark'] .pl-col { background: #10151B; }
:root[data-theme='dark'] .pl-col, :root[data-theme='dark'] .pl-card { --pl-dim: 1; }
:root[data-theme='dark'] .pl-col-head, :root[data-theme='dark'] .pl-card { filter: none; }
@media (max-width: 640px) { .pl-summary > div { flex-basis: 45%; border-bottom: 1px solid var(--lx-line); } .pl-board { grid-auto-columns: 82%; } }

/* ---------- case page tabs: one switch, wraps instead of hiding tabs ---------- */
.sx .case-tabs { margin-bottom: 14px; }
.sx .case-tabs .tabs { display: flex; flex-wrap: wrap; gap: 2px; padding: 4px; margin: 0; border: 1px solid var(--lx-line); border-radius: 12px; background: var(--lx-paper-2); overflow: visible; -webkit-mask-image: none; mask-image: none; }
.sx .case-tabs .tab { border: 0; border-radius: 9px; padding: 7px 12px; font-size: 13.5px; font-weight: 600; color: var(--lx-ink-2); gap: 7px; }
.sx .case-tabs .tab svg { width: 15px; height: 15px; opacity: .85; }
.sx .case-tabs .tab:hover { color: var(--lx-ink); background: color-mix(in srgb, var(--lx-card) 60%, transparent); }
.sx .case-tabs .tab.active { background: var(--lx-card); color: var(--lx-ink); border: 0; box-shadow: 0 1px 2px rgba(1, 20, 50, .08), 0 0 0 1px var(--lx-line); }
.sx .case-tabs .tab.active svg { color: var(--lx-gold-ink); opacity: 1; }
.sx .case-tabs .tab .count { display: inline-grid; place-items: center; min-width: 20px; height: 18px; padding: 0 6px; border-radius: 999px; font-size: 11px; font-weight: 700; opacity: 1; background: var(--lx-line); color: var(--lx-ink-2); }
.sx .case-tabs .tab.active .count { background: color-mix(in srgb, var(--lx-gold) 20%, transparent); color: var(--lx-gold-ink); }
:root[data-theme='dark'] .sx .case-tabs .tabs { background: #0F141A; }
:root[data-theme='dark'] .sx .case-tabs .tab.active { background: #1C232D; color: #E6EAF0; box-shadow: 0 0 0 1px #2B333E; }
:root[data-theme='dark'] .sx .case-tabs .tab .count { background: #222A34; color: #9AA4B2; }
:root:not([data-theme='dark']) .sx .case-tabs .tab.active { color: var(--lx-ink); }
.sx .case-tabs .tab .count::before, .sx .case-tabs .tab .count::after { content: none; }

/* ---------- case Overview tab (2 Nov 2026): fewer boxes, empty fields hidden ---------- */
.sx .cd-overview { display: grid; gap: 16px; }
.sx .cd-overview h3 { margin: 0; font-size: 15px; font-weight: 650; }
.sx .cd-docs-top { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.sx .cd-docs-top > div { flex: 1; min-width: 0; }
.sx .cd-docs-top p { margin: 3px 0 0; font-size: 13px; color: var(--lx-ink-2); }
.sx .cd-pct { font-size: 22px; font-weight: 700; color: var(--lx-ink); }
.sx .cd-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.sx .cd-chips span { display: inline-flex; align-items: center; gap: 6px; } .sx .cd-chips b { font-size: 13px; }
.sx .cd-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding: 0; }
.sx .cd-group { padding: 18px 20px; border-left: 1px solid var(--lx-line); min-width: 0; }
.sx .cd-group:first-child { border-left: 0; }
.sx .cd-group h3 { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--lx-ink-3); margin-bottom: 12px; }
.sx .cd-kv { margin: 0; display: grid; gap: 10px; }
.sx .cd-kv > div { display: grid; gap: 1px; min-width: 0; }
.sx .cd-kv dt { font-size: 12px; color: var(--lx-ink-3); }
.sx .cd-kv dd { margin: 0; font-size: 14px; color: var(--lx-ink); overflow-wrap: anywhere; }
.sx .cd-more, .sx .cd-link { appearance: none; border: 0; background: none; padding: 0; margin-top: 12px; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--lx-royal-2, #0059B8); cursor: pointer; }
.sx .cd-link { margin: 0; }
.sx .cd-track { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.sx .cd-track li { position: relative; display: grid; gap: 2px; padding-top: 18px; min-width: 0; }
.sx .cd-track li::before { content: ''; position: absolute; top: 5px; left: 12px; right: -8px; height: 2px; background: var(--lx-line); }
.sx .cd-track li:last-child::before { display: none; }
.sx .cd-track li.done::before { background: color-mix(in srgb, #4FA673 60%, transparent); }
.sx .cd-dot { position: absolute; top: 0; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--lx-paper-2); border: 2px solid var(--lx-line-strong); }
.sx .cd-track li.done .cd-dot { background: #4FA673; border-color: #4FA673; }
.sx .cd-track strong { font-size: 12.5px; font-weight: 600; color: var(--lx-ink); }
.sx .cd-track span:not(.cd-dot) { font-size: 11.5px; color: var(--lx-ink-3); }
.sx .cd-cust-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-bottom: 12px; }
.sx .cd-cust-head h3 { margin-right: auto; }
.sx .cd-next { font-size: 13px; color: var(--lx-ink-2); }

/* ---------- quick actions: tool tiles + one close menu ---------- */
.sx .cd-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sx .cd-tools > .btn { height: auto; min-height: 62px; flex-direction: column; gap: 5px; padding: 10px 6px; font-size: 12.5px; font-weight: 600; white-space: normal; line-height: 1.2; text-align: center; border-color: var(--lx-line); color: var(--lx-ink); }
.sx .cd-tools > .btn svg { width: 17px; height: 17px; color: var(--lx-gold-ink); }
.sx .cd-tools > .btn:hover:not(:disabled) { border-color: var(--lx-line-strong); background: var(--lx-paper-2); }
.sx .cd-close { border: 1px solid var(--lx-line); border-radius: 12px; overflow: hidden; }
.sx .cd-close summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 10px 12px; cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--lx-ink-2); }
.sx .cd-close summary::-webkit-details-marker { display: none; }
.sx .cd-close summary svg:last-child { margin-left: auto; transition: transform .15s; }
.sx .cd-close[open] summary svg:last-child { transform: rotate(180deg); }
.sx .cd-close > div { display: grid; border-top: 1px solid var(--lx-line); }
.sx .cd-close button { appearance: none; border: 0; border-top: 1px solid var(--lx-line); background: none; text-align: left; padding: 10px 14px; font: inherit; font-size: 13.5px; color: var(--lx-ink); cursor: pointer; }
.sx .cd-close button:first-child { border-top: 0; }
.sx .cd-close button:hover { background: var(--lx-paper-2); }
.sx .cd-close button.danger { color: #C0352B; }
:root[data-theme='dark'] .sx .cd-close button.danger { color: #E58A92; }
@media (max-width: 1100px) { .sx .cd-details { grid-template-columns: 1fr; } .sx .cd-group { border-left: 0; border-top: 1px solid var(--lx-line); } .sx .cd-group:first-child { border-top: 0; } }
@media (max-width: 720px) { .sx .cd-track { grid-auto-flow: row; } .sx .cd-track li::before { display: none; } .sx .cd-docs-top { flex-wrap: wrap; } }

/* ---------- status pills readable in dark (light text on a soft tint) ---------- */
:root[data-theme='dark'] .sx .badge { filter: none; }
:root[data-theme='dark'] .sx .tone-blue { --tone: #7FA6E0; }
:root[data-theme='dark'] .sx .tone-navy { --tone: #9DB4DA; }
:root[data-theme='dark'] .sx .pill:not(.solid) { color: color-mix(in srgb, var(--tone) 72%, #FFFFFF); background: color-mix(in srgb, var(--tone) 17%, transparent); }
:root[data-theme='dark'] .sx .pill.solid { background: color-mix(in srgb, var(--tone) 75%, #000); color: #F1F4F8; }

/* ---------- filter bars: search takes the spare room ---------- */
.sx .filterbar .search-input { flex: 2 1 260px; max-width: 520px; }
.sx .filterbar .select, .sx .filterbar .input:not(.search-input .input) { flex: 1 1 150px; max-width: 220px; }
.sx .filterbar .more-filters { margin-left: auto; }

/* ---------- pipeline: all five stages fit on a laptop ---------- */
.pl-board { grid-auto-columns: minmax(196px, 1fr); }

/* ---------- segmented switches wrap instead of cutting off (Settings) ---------- */
.sx .tabs.pills { flex-wrap: wrap; overflow: visible; }

/* ---------- language switch on translatable fields ---------- */
.sx .lang-tabs { border: 1px solid var(--lx-line); border-radius: 8px; background: var(--lx-paper-2); padding: 2px; gap: 1px; }
.sx .lang-tabs button { background: transparent; border-radius: 6px; padding: 3px 8px; font-size: 11px; font-weight: 700; letter-spacing: .03em; color: var(--lx-ink-3); }
.sx .lang-tabs button.active { background: var(--lx-card); color: var(--lx-ink); box-shadow: 0 0 0 1px var(--lx-line); }
:root[data-theme='dark'] .sx .lang-tabs { background: #0F141A; }
:root[data-theme='dark'] .sx .lang-tabs button.active { background: #1C232D; color: #E6EAF0; }
.sx .lf-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; }
.sx .lf-dots { display: inline-flex; gap: 4px; align-items: center; margin-left: 6px; }
.sx .lf-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--lx-line-strong); }
.sx .lf-dots i.on { background: #4FA673; }

/* ---------- tables inside narrow cards ---------- */
.sx .card:not(.flush) .table th, .sx .card:not(.flush) .table td { padding-left: 8px; padding-right: 8px; }
.sx .card .table-wrap { overflow-x: auto; }

/* ---------- list + editor pages (Gov schemes etc.) ---------- */
.sx .split-wide > :last-child { position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 104px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-bottom: 4px; }
@media (max-width: 1180px) { .sx .split-wide > :last-child { position: static; max-height: none; overflow: visible; } }
.sx .split-wide button.list-row { padding: 10px 12px; }
.sx .split-wide button.list-row .strong { font-size: 14px; }
.sx .split-wide button.list-row .faint.small { font-size: 12.5px; }

/* ---------- Audit log (2 Nov 2026) ---------- */
.au-when { display: grid; } .au-when strong { font-size: 13px; font-weight: 600; } .au-when span { font-size: 12px; color: var(--lx-ink-3); }
.au-what { display: grid; gap: 2px; white-space: normal; min-width: 240px; max-width: 520px; } .au-what span { font-size: 13.5px; line-height: 1.4; }
.au-what em, .au-who em { font-style: normal; font-size: 12px; color: var(--lx-ink-3); text-transform: capitalize; }
.au-who { display: grid; } .au-who span { font-size: 13.5px; }
/* Gold / amber pills readable on light backgrounds */
:root:not([data-theme='dark']) .sx .pill.tone-gold:not(.solid), :root:not([data-theme='dark']) .sx .pill.tone-amber:not(.solid) { color: #7A4F00; }

/* Case header (office case page), 3 Nov 2026: one full-width summary card */
.sx .card.chd { margin-bottom: 16px; padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.chd-top { display: flex; align-items: center; gap: 14px; min-width: 0; }
.chd-main { flex: 1; min-width: 0; }
.chd-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.chd-title h1 { margin: 0; font: 700 21px/1.2 var(--lx-sans); letter-spacing: -.01em; color: var(--lx-ink); }
.chd-sub { margin-top: 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font-size: 13px; color: var(--lx-ink-3); }
.chd-sub > * + *::before { content: '·'; margin: 0 8px; color: var(--lx-line-strong); }
.chd-sub strong { color: var(--lx-ink); font-weight: 600; }
.chd-contact { display: flex; flex-wrap: wrap; gap: 8px; }
.chd-contact span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--lx-line); background: var(--lx-paper-2, #F6F8FB); font-size: 13px; color: var(--lx-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chd-contact svg { flex: none; color: var(--lx-ink-3); }
.chd-stats { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--lx-line); padding-top: 12px; }
.chd-stats > div { min-width: 0; padding: 2px 16px; border-left: 1px solid var(--lx-line); }
.chd-stats > div:first-child { padding-left: 0; border-left: 0; }
.chd-stats dt { display: flex; align-items: center; gap: 6px; font: 600 11px/1.2 var(--lx-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--lx-ink-3); }
.chd-stats dd { margin: 4px 0 0; font: 700 15px/1.3 var(--lx-sans); color: var(--lx-ink); overflow-wrap: anywhere; }
.chd-owner { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.chd-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
@media (max-width: 900px) {
  .chd-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 12px; }
  .chd-stats > div:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 560px) {
  .sx .card.chd { padding: 14px; }
  .chd-top { flex-wrap: wrap; }
  .chd-top > .btn, .chd-top > a.btn { width: 100%; justify-content: center; }
  .chd-title h1 { font-size: 18px; }
}
:root[data-theme='dark'] .chd-title h1, :root[data-theme='dark'] .chd-stats dd, :root[data-theme='dark'] .chd-sub strong { color: #E3E7ED; }
:root[data-theme='dark'] :is(.chd-sub, .chd-stats dt, .chd-contact svg) { color: #A3ADBB; }
:root[data-theme='dark'] .chd-contact span { background: #161D27; border-color: #2C3542; color: #D2D8E1; }
:root[data-theme='dark'] :is(.chd-stats, .chd-stats > div) { border-color: #263040; }
.chd-top .avatar { background: #012A68 !important; color: #F5C758 !important; }
:root[data-theme='dark'] .chd-top .avatar { background: #24365A !important; color: #F1DFAF !important; }
@media (max-width: 560px) {
  .chd-top .avatar { display: none !important; }
  .chd-sub { flex-direction: column; align-items: flex-start; gap: 2px; }
  .chd-sub > * + *::before { content: none; }
  .chd-stats dt { letter-spacing: .03em; }
}

/* Phones (all portals), 3 Nov 2026: calmer stacked rows, scrolling tab pills, tidy filters */
@media (max-width: 640px) {
  .sx .tabs.pills { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: 100%; }
  .sx .tabs.pills::-webkit-scrollbar { display: none; }
  .sx .tabs.pills .tab { flex: 0 0 auto; white-space: nowrap; padding: 7px 12px; }
  .sx .filterbar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; }
  .sx .filterbar > * { min-width: 0 !important; width: 100%; }
  .sx .filterbar .search-input { grid-column: 1 / -1; }
  .sx .filterbar .search-input .input { width: 100%; }
  .sx .filterbar .select, .sx .filterbar .input:not(.search-input .input) { flex: none; }
  .sx .filterbar .btn { justify-self: start; width: auto; }
  .sx .table-stack tr { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; padding: 12px 14px; border-radius: 14px; border-color: var(--lx-line); }
  .sx .table-stack td { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 2px; min-width: 0; padding: 0 !important; font-size: 13.5px; overflow-wrap: anywhere; }
  .sx .table-stack td[data-label]::before { flex: none; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--lx-ink-3); }
  .sx .table-stack td:is([data-label*="Message" i], [data-label*="Subject" i], [data-label*="Customer" i], [data-label*="Name" i], [data-label*="Title" i], [data-label*="Document" i], [data-label*="What" i], [data-label*="Details" i]) { grid-column: 1 / -1; }
  .sx .table-stack td[data-empty] { display: none; }
  .sx .table-stack td > * { max-width: 100%; min-width: 0; }
  .sx .table-stack td :is(.ellipsis, .truncate, .faint, .small) { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .sx .table-stack td.check { display: none; }
  .sx .table-stack td[colspan] { grid-column: 1 / -1; }
}

/* Phone summary rows (DataTable mobileRow) */
.table-stack td.mrow { display: none; }
@media (max-width: 640px) {
  .sx .table-stack.has-mrow tr { display: block; padding: 0; margin: 0; border: 0; border-bottom: 1px solid var(--lx-line); border-radius: 0; background: transparent; }
  .sx .table-stack.has-mrow td:not(.mrow):not([colspan]) { display: none; }
  .sx .table-stack.has-mrow td.mrow { display: block; padding: 12px 14px !important; }
  .sx .table-stack.has-mrow td.mrow::before { content: none; }
  .mr { display: flex; gap: 12px; align-items: flex-start; min-width: 0; width: 100%; }
  .mr > :first-child { flex: none; }
  .mr-body { flex: 1; min-width: 0; }
  .mr-top { display: flex; align-items: center; gap: 8px; }
  .mr-title { flex: 1; min-width: 0; font: 600 14px/1.3 var(--lx-sans); color: var(--lx-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mr-dot { flex: none; width: 9px; height: 9px; border-radius: 999px; background: #E2151A; }
  .mr-text { margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--lx-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mr-meta { margin-top: 3px; font-size: 12px; color: var(--lx-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  :root[data-theme='dark'] .mr-title { color: #E3E7ED; }
  :root[data-theme='dark'] .mr-text { color: #C3CAD4; }
  :root[data-theme='dark'] .mr-meta { color: #8F99A8; }
}
.mr-meta::first-letter { text-transform: uppercase; }
._row_mayot_1 {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  flex-wrap: nowrap;
}

._cell_mayot_8 {
  width: clamp(40px, 12vw, 48px);
  height: clamp(48px, 14vw, 56px);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-12);
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  text-align: center;
  letter-spacing: 0;
  caret-color: var(--primary);
  transition: border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
}

._cell_mayot_8:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--shadow-focus);
}

._cell_mayot_8:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (prefers-reduced-motion: reduce) {
  ._cell_mayot_8 { transition: none; }
}
