/* ==========================================================================
   PULSE — Employee Experience Platform
   Design system · 5 themes · LTR/RTL
   ========================================================================== */

@font-face { font-family: "Fraunces"; src: url("../assets/fonts/fraunces-latin-opsz-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../assets/fonts/fraunces-latin-opsz-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Readex Pro"; src: url("../assets/fonts/readex-pro-latin-wght-normal.woff2") format("woff2"); font-weight: 160 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Readex Pro"; src: url("../assets/fonts/readex-pro-arabic-wght-normal.woff2") format("woff2"); font-weight: 160 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "El Messiri"; src: url("../assets/fonts/el-messiri-arabic-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "El Messiri"; src: url("../assets/fonts/el-messiri-arabic-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

/* ---------- Theme tokens ---------- */
:root, [data-theme="horizon"] {
  --paper: #F4F2EC;
  --paper-2: #ECE8DE;
  --surface: #FFFFFF;
  --surface-2: #F8F7F3;
  --ink: #0B1B3F;
  --ink-2: #33415F;
  --muted: #6A7389;
  --line: #E3DED2;
  --line-2: #D5CFC0;
  --accent: #2250F4;
  --accent-ink: #FFFFFF;
  --accent-soft: #E3E9FF;
  --accent-2: #FF6A45;
  --accent-2-soft: #FFE6DE;
  --good: #0E9F6E;
  --good-soft: #DAF3E9;
  --warn: #D98A00;
  --warn-soft: #FDF0D6;
  --bad: #D93A3A;
  --bad-soft: #FBE1E1;
  --hero-bg: #0B1B3F;
  --hero-ink: #F4F2EC;
  --hero-accent: #7FA0FF;
  --mesh-1: #2250F4;
  --mesh-2: #FF6A45;
  --mesh-3: #6FD3FF;
  --shadow: 0 1px 0 rgba(11,27,63,.04), 0 10px 30px -12px rgba(11,27,63,.18);
  --shadow-lg: 0 30px 80px -20px rgba(11,27,63,.35);
  --bubble-me: #2250F4;
  --bubble-me-ink: #fff;
  --bubble-bot: #FFFFFF;
  color-scheme: light;
}
[data-theme="nile"] {
  --paper: #F2E8D8;
  --paper-2: #E9DCC6;
  --surface: #FBF6EC;
  --surface-2: #F6EEDF;
  --ink: #2B1D14;
  --ink-2: #4E3A2C;
  --muted: #86705C;
  --line: #E2D3BA;
  --line-2: #D4C09F;
  --accent: #B8492A;
  --accent-ink: #FFF8EE;
  --accent-soft: #F5D9CB;
  --accent-2: #1C6E69;
  --accent-2-soft: #CFE6E1;
  --good: #3B7F3A;
  --good-soft: #DDEBD3;
  --warn: #B87708;
  --warn-soft: #F6E3BD;
  --bad: #B3322B;
  --bad-soft: #F4D4CD;
  --hero-bg: #1C4F4B;
  --hero-ink: #FBF3E4;
  --hero-accent: #F2B27A;
  --mesh-1: #B8492A;
  --mesh-2: #E7A94E;
  --mesh-3: #2B8C84;
  --shadow: 0 1px 0 rgba(43,29,20,.05), 0 10px 30px -12px rgba(80,50,20,.22);
  --shadow-lg: 0 30px 80px -20px rgba(60,35,15,.4);
  --bubble-me: #B8492A;
  --bubble-me-ink: #FFF8EE;
  --bubble-bot: #FBF6EC;
  color-scheme: light;
}
[data-theme="midnight"] {
  --paper: #0B0D12;
  --paper-2: #11141B;
  --surface: #151922;
  --surface-2: #1B202B;
  --ink: #EFEADD;
  --ink-2: #C9C3B4;
  --muted: #8990A0;
  --line: #242A36;
  --line-2: #313849;
  --accent: #E6BC66;
  --accent-ink: #1A1408;
  --accent-soft: #2E2716;
  --accent-2: #42CFA0;
  --accent-2-soft: #12302A;
  --good: #42CFA0;
  --good-soft: #12302A;
  --warn: #F0B54A;
  --warn-soft: #33280F;
  --bad: #F2706A;
  --bad-soft: #3A1B1B;
  --hero-bg: #171B24;
  --hero-ink: #F5EFE0;
  --hero-accent: #E6BC66;
  --mesh-1: #E6BC66;
  --mesh-2: #42CFA0;
  --mesh-3: #6A5CFF;
  --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 12px 30px -14px rgba(0,0,0,.7);
  --shadow-lg: 0 30px 80px -20px rgba(0,0,0,.8);
  --bubble-me: #E6BC66;
  --bubble-me-ink: #1A1408;
  --bubble-bot: #1B202B;
  color-scheme: dark;
}
/* Allianz corporate identity: Allianz Blue #003781 with the CI's sky / light blues (light theme + dark navy theme) */
[data-theme="allianz"] {
  --paper: #F3F6FA;
  --paper-2: #E7EDF4;
  --surface: #FFFFFF;
  --surface-2: #F6F8FB;
  --ink: #001F47;
  --ink-2: #2E4466;
  --muted: #5F6B7A;
  --line: #DCE3EC;
  --line-2: #C8D2DE;
  --accent: #003781;
  --accent-ink: #FFFFFF;
  --accent-soft: #DCE7F5;
  --accent-2: #13A0D3;
  --accent-2-soft: #D5EEF8;
  --good: #1E8927;
  --good-soft: #DCF0DD;
  --warn: #C77C00;
  --warn-soft: #FBEFD6;
  --bad: #D52B1E;
  --bad-soft: #FADEDB;
  --hero-bg: #003781;
  --hero-ink: #FFFFFF;
  --hero-accent: #96DCFA;
  --mesh-1: #006192;
  --mesh-2: #13A0D3;
  --mesh-3: #96DCFA;
  --shadow: 0 1px 0 rgba(0,31,71,.04), 0 10px 30px -12px rgba(0,55,129,.18);
  --shadow-lg: 0 30px 80px -20px rgba(0,31,71,.35);
  --bubble-me: #003781;
  --bubble-me-ink: #FFFFFF;
  --bubble-bot: #FFFFFF;
  color-scheme: light;
}
[data-theme="allianz-night"] {
  --paper: #061A33;
  --paper-2: #0A2140;
  --surface: #0D284B;
  --surface-2: #123259;
  --ink: #EEF4FA;
  --ink-2: #C3D2E3;
  --muted: #8EA3BB;
  --line: #1B3C64;
  --line-2: #26507E;
  --accent: #96DCFA;
  --accent-ink: #00204A;
  --accent-soft: #143E66;
  --accent-2: #13A0D3;
  --accent-2-soft: #0F3A5C;
  --good: #4CC38A;
  --good-soft: #0F3A33;
  --warn: #F2B84B;
  --warn-soft: #3A2E12;
  --bad: #FF7A6E;
  --bad-soft: #3D1D22;
  --hero-bg: #003781;
  --hero-ink: #FFFFFF;
  --hero-accent: #96DCFA;
  --mesh-1: #006192;
  --mesh-2: #13A0D3;
  --mesh-3: #96DCFA;
  --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 12px 30px -14px rgba(0,0,0,.6);
  --shadow-lg: 0 30px 80px -20px rgba(0,0,0,.7);
  --bubble-me: #96DCFA;
  --bubble-me-ink: #00204A;
  --bubble-bot: #123259;
  color-scheme: dark;
}

:root {
  --f-display: "Fraunces", "El Messiri", Georgia, serif;
  --f-body: "Readex Pro", "Segoe UI", Tahoma, sans-serif;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --side-w: 264px;
  --top-h: 72px;
  --bn-h: 74px;
  --ease: cubic-bezier(.2,.8,.2,1);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}
:root[lang="ar"] { --f-display: "El Messiri", "Fraunces", serif; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  transition: background .4s var(--ease), color .4s var(--ease);
  overflow-x: hidden;
}
body::before { /* grain */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
:is([data-theme="midnight"], [data-theme="allianz-night"]) body::before { mix-blend-mode: screen; opacity: .25; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }
.display { font-family: var(--f-display); letter-spacing: -.025em; font-weight: 500; }
:root[lang="ar"] .display { letter-spacing: 0; font-weight: 700; }
.display em { font-style: italic; font-weight: 400; color: var(--accent); }
:root[lang="ar"] .display em { font-style: normal; }
.eyebrow { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
:root[lang="ar"] .eyebrow { letter-spacing: 0; font-size: 13px; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
[dir="rtl"] .flip { transform: scaleX(-1); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.ico { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ico.sm { width: 16px; height: 16px; }
.ico.lg { width: 26px; height: 26px; }

/* ---------- App shell ---------- */
.app { position: relative; z-index: 1; min-height: 100vh; display: grid; grid-template-columns: var(--side-w) 1fr; }
.side {
  position: sticky; top: 0; height: 100vh; padding: 26px 18px 20px; display: flex; flex-direction: column; gap: 6px;
  border-inline-end: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 70%, var(--surface));
}
.brand { display: flex; align-items: center; gap: 12px; padding: 0 10px 24px; }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: var(--paper); display: grid; place-items: center; position: relative; overflow: hidden; }
.brand-mark svg { width: 24px; height: 24px; }
.brand-name { font-family: "Fraunces", serif; font-size: 27px; font-weight: 650; letter-spacing: -.02em; line-height: 1; font-variation-settings: "opsz" 30; }
.brand-name i { color: var(--accent); font-style: italic; font-weight: 400; }
.brand-sub { font-size: 11px; color: var(--muted); letter-spacing: .06em; margin-top: 3px; }
.nav-label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 16px 12px 6px; }
:root[lang="ar"] .nav-label { letter-spacing: 0; font-size: 12px; }
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--ink-2); font-weight: 450;
  transition: background .2s, color .2s; position: relative;
}
.nav-item:hover { background: var(--surface); color: var(--ink); }
.nav-item.active { background: var(--ink); color: var(--paper); }
:is([data-theme="midnight"], [data-theme="allianz-night"]) .nav-item.active { background: var(--accent); color: var(--accent-ink); }
.nav-item .count { margin-inline-start: auto; font-size: 11px; background: var(--accent-2); color: #fff; border-radius: 20px; padding: 1px 7px; font-weight: 600; }
.nav-sub { display: none; flex-direction: column; margin: 2px 0 8px; padding-inline-start: 44px; gap: 1px; }
.nav-item.active + .nav-sub, .nav-sub.open { display: flex; }
.nav-sub a { font-size: 13.5px; padding: 6px 10px; border-radius: 8px; color: var(--muted); }
.nav-sub a:hover { color: var(--ink); }
.nav-sub a.active { color: var(--ink); background: var(--surface); font-weight: 500; }
.side-assist {
  margin-top: auto; border-radius: var(--r); padding: 16px; background: var(--hero-bg); color: var(--hero-ink); position: relative; overflow: hidden;
}
.side-assist::after { content: ""; position: absolute; width: 140px; height: 140px; inset-inline-end: -40px; top: -50px; border-radius: 50%; background: radial-gradient(circle, var(--mesh-1), transparent 70%); opacity: .7; }
.side-assist b { display: block; font-family: var(--f-display); font-size: 18px; font-weight: 500; margin-bottom: 4px; position: relative; z-index: 1; }
.side-assist p { font-size: 12.5px; opacity: .75; position: relative; z-index: 1; margin-bottom: 12px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.top {
  position: sticky; top: 0; z-index: 30; height: var(--top-h); display: flex; align-items: center; gap: 14px; padding: 0 36px;
  background: color-mix(in srgb, var(--paper) 82%, transparent); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.top.scrolled { border-bottom-color: var(--line); }
.top-title { font-weight: 500; font-size: 15px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.top-title b { color: var(--ink); font-weight: 600; }
.top-mobile-brand { display: none; }
.top-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--ink-2); position: relative; transition: background .2s; }
.icon-btn:hover { background: var(--surface); color: var(--ink); }
.icon-btn .dot { position: absolute; top: 9px; inset-inline-end: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 2px var(--paper); }
.lang-btn { height: 38px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line-2); font-weight: 600; font-size: 13px; display: flex; gap: 6px; align-items: center; }
.lang-btn:hover { background: var(--surface); }
.avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 600; font-size: 14px; color: #fff; background: var(--accent); position: relative; overflow: hidden; }
.avatar.sm { width: 32px; height: 32px; font-size: 12px; }
.avatar.xs { width: 26px; height: 26px; font-size: 10px; }
.avatar.lg { width: 76px; height: 76px; font-size: 26px; }
.avatar.xl { width: 104px; height: 104px; font-size: 34px; }
.av-me { background: conic-gradient(from 200deg, var(--mesh-1), var(--mesh-2), var(--mesh-3), var(--mesh-1)); }
.av-me span { position: relative; z-index: 1; }
.av-me::after { content: ""; position: absolute; inset: 2.5px; border-radius: 50%; background: var(--ink); }
:is([data-theme="midnight"], [data-theme="allianz-night"]) .av-me::after { background: var(--surface-2); }
.av-me { color: var(--paper); }
:is([data-theme="midnight"], [data-theme="allianz-night"]) .av-me { color: var(--ink); }

.view { padding: 12px 36px 64px; max-width: 1320px; width: 100%; margin: 0 auto; animation: viewIn .5s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.stagger > * { animation: rise .6s var(--ease) both; }
.stagger > *:nth-child(1) { animation-delay: .02s } .stagger > *:nth-child(2) { animation-delay: .07s } .stagger > *:nth-child(3) { animation-delay: .12s }
.stagger > *:nth-child(4) { animation-delay: .17s } .stagger > *:nth-child(5) { animation-delay: .22s } .stagger > *:nth-child(6) { animation-delay: .27s }
.stagger > *:nth-child(7) { animation-delay: .32s } .stagger > *:nth-child(8) { animation-delay: .37s } .stagger > *:nth-child(n+9) { animation-delay: .42s }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* bottom nav (mobile) */
.bnav { display: none; }
.fab { display: none; }

/* ---------- Page header ---------- */
.page-head { display: flex; align-items: flex-end; gap: 20px; padding: 18px 0 22px; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(34px, 4.2vw, 52px); line-height: 1.02; }
.page-head .lede { color: var(--muted); max-width: 560px; margin-top: 10px; font-size: 15.5px; }
.page-head .actions { margin-inline-start: auto; display: flex; gap: 10px; flex-wrap: wrap; }

.tabs { display: flex; gap: 4px; padding: 4px; background: var(--paper-2); border-radius: 14px; width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; margin-bottom: 24px; }
.tabs::-webkit-scrollbar { display: none; }
.tab { padding: 9px 16px; border-radius: 10px; font-weight: 500; font-size: 14px; color: var(--muted); white-space: nowrap; display: flex; align-items: center; gap: 8px; transition: all .2s; }
.tab:hover { color: var(--ink); }
.tab.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.tab .ico { width: 17px; height: 17px; }

/* ---------- Buttons & form ---------- */
.btn { height: 44px; padding: 0 20px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 550; font-size: 14.5px; transition: transform .15s, background .2s, box-shadow .2s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, var(--ink)); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-ghost { border: 1px solid var(--line-2); background: var(--surface); }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn-soft { background: var(--accent-soft); color: var(--accent); }
:is([data-theme="midnight"], [data-theme="allianz-night"]) .btn-soft { color: var(--accent); }
.btn-sm { height: 34px; padding: 0 13px; font-size: 13px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.link { color: var(--accent); font-weight: 550; font-size: 13.5px; display: inline-flex; align-items: center; gap: 4px; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.input, .select, .textarea { width: 100%; border: 1px solid var(--line-2); background: var(--surface); border-radius: 12px; padding: 11px 14px; outline: none; transition: border-color .2s, box-shadow .2s; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.textarea { min-height: 110px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 99px; font-size: 12.5px; font-weight: 500; background: var(--paper-2); color: var(--ink-2); white-space: nowrap; }
.chip.accent { background: var(--accent-soft); color: var(--accent); }
.chip.good { background: var(--good-soft); color: var(--good); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.bad { background: var(--bad-soft); color: var(--bad); }
.chip.hot { background: var(--accent-2-soft); color: var(--accent-2); }
.chip.outline { background: transparent; border: 1px solid var(--line-2); }
.chip .ico { width: 14px; height: 14px; }
button.chip { transition: all .2s; }
button.chip.on { background: var(--ink); color: var(--paper); }
:is([data-theme="midnight"], [data-theme="allianz-night"]) button.chip.on { background: var(--accent); color: var(--accent-ink); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips.scroll::-webkit-scrollbar { display: none; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow); position: relative; }
.card.flat { box-shadow: none; }
.card.pad-0 { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.card-head h3 { font-size: 16.5px; font-weight: 600; }
.card-head .link { margin-inline-start: auto; }
.card-title-display { font-family: var(--f-display); font-size: 22px; font-weight: 500; letter-spacing: -.01em; }
.grid { display: grid; gap: 20px; }
.g-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.hr { height: 1px; background: var(--line); margin: 16px 0; border: 0; }
.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px dashed var(--line); }
.list-item:last-child { border-bottom: 0; padding-bottom: 0; }
.list-item:first-child { padding-top: 0; }
.li-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--paper-2); color: var(--ink-2); flex: none; }
.li-ico.accent { background: var(--accent-soft); color: var(--accent); }
.li-ico.hot { background: var(--accent-2-soft); color: var(--accent-2); }
.li-ico.good { background: var(--good-soft); color: var(--good); }
.li-ico.warn { background: var(--warn-soft); color: var(--warn); }
.li-body { flex: 1; min-width: 0; }
.li-title { font-weight: 550; font-size: 14.5px; }
.li-sub { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.li-end { margin-inline-start: auto; text-align: end; flex: none; display: flex; align-items: center; gap: 8px; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }

/* ---------- HOME ---------- */
.home-hero {
  position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--hero-bg); color: var(--hero-ink);
  padding: 38px 40px 34px; display: grid; grid-template-columns: 1.35fr 1fr; gap: 30px; min-height: 300px; isolation: isolate;
}
.home-hero .mesh { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.home-hero .mesh i { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.home-hero .mesh i:nth-child(1) { width: 420px; height: 420px; background: var(--mesh-1); inset-inline-end: -120px; top: -160px; }
.home-hero .mesh i:nth-child(2) { width: 300px; height: 300px; background: var(--mesh-2); inset-inline-end: 180px; bottom: -200px; animation-delay: -6s; opacity: .45; }
.home-hero .mesh i:nth-child(3) { width: 220px; height: 220px; background: var(--mesh-3); inset-inline-start: 30%; top: -140px; animation-delay: -12s; opacity: .3; }
@keyframes drift { to { transform: translate(40px, 30px) scale(1.12); } }
.home-hero .pattern { position: absolute; inset: 0; z-index: -1; opacity: .09; background-image: radial-gradient(currentColor 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(to left, #000, transparent 70%); -webkit-mask-image: linear-gradient(to left, #000, transparent 70%); }
[dir="rtl"] .home-hero .pattern { mask-image: linear-gradient(to right, #000, transparent 70%); -webkit-mask-image: linear-gradient(to right, #000, transparent 70%); }
.hero-date { font-size: 13px; opacity: .7; display: flex; align-items: center; gap: 8px; }
.hero-date .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 0 var(--good); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.home-hero h1 { font-size: clamp(38px, 5vw, 66px); line-height: .98; margin: 14px 0 14px; }
.home-hero h1 em { color: var(--hero-accent); }
.home-hero .sub { opacity: .78; max-width: 440px; font-size: 15px; }
.mood { margin-top: 26px; }
.mood-label { font-size: 13px; opacity: .75; margin-bottom: 10px; }
.mood-row { display: flex; gap: 8px; flex-wrap: wrap; }
.mood-btn { height: 46px; padding: 0 14px; border-radius: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); display: flex; align-items: center; gap: 8px; font-size: 13px; color: inherit; transition: all .25s var(--ease); }
.mood-btn span { font-size: 20px; line-height: 1; transition: transform .3s var(--ease); }
.mood-btn:hover { background: rgba(255,255,255,.16); }
.mood-btn:hover span { transform: scale(1.2) rotate(-8deg); }
.mood-btn.on { background: var(--hero-ink); color: var(--hero-bg); border-color: transparent; }
.pulse-wrap { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; position: relative; }
.ring { position: relative; width: 210px; height: 210px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .track { stroke: rgba(255,255,255,.12); }
.ring .bar { stroke: var(--hero-accent); stroke-linecap: round; transition: stroke-dashoffset 1.6s var(--ease); }
.ring .bar2 { stroke: var(--mesh-2); stroke-linecap: round; opacity: .9; transition: stroke-dashoffset 1.8s var(--ease); }
.ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.ring-center b { font-family: "Fraunces", serif; font-size: 58px; font-weight: 500; line-height: 1; letter-spacing: -.04em; }
.ring-center small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; margin-top: 4px; }
:root[lang="ar"] .ring-center small { letter-spacing: 0; font-size: 12px; }
.pulse-legend { display: flex; gap: 16px; font-size: 12px; opacity: .85; }
.pulse-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-inline-end: 6px; }

.quick { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin: 22px 0; }
.qa { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 14px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; text-align: start; }
.qa:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.qa .li-ico { width: 38px; height: 38px; border-radius: 11px; }
.qa b { font-size: 13.5px; font-weight: 550; line-height: 1.25; }

.stat { display: flex; flex-direction: column; gap: 4px; }
.stat .v { font-family: "Fraunces", serif; font-size: 40px; font-weight: 500; letter-spacing: -.02em; line-height: 1.05;  }
.stat .v small { font-family: var(--f-body); font-size: 14px; color: var(--muted); letter-spacing: 0; font-weight: 400; margin-inline-start: 4px; }
.stat .k { font-size: 13px; color: var(--muted); }
.stat-card { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 168px; overflow: hidden; }
.stat-card .top-row { display: flex; align-items: center; justify-content: space-between; }
.meter { height: 6px; background: var(--paper-2); border-radius: 99px; overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 99px; background: var(--accent); transform-origin: left; animation: grow 1.4s var(--ease) both; }
[dir="rtl"] .meter i { transform-origin: right; }
.meter.hot i { background: var(--accent-2); }
.meter.good i { background: var(--good); }
@keyframes grow { from { transform: scaleX(0); } }
.sparkbars { display: flex; align-items: flex-end; gap: 4px; height: 36px; }
.sparkbars i { flex: 1; background: var(--accent-soft); border-radius: 4px 4px 2px 2px; animation: barUp 1s var(--ease) both; transform-origin: bottom; }
.sparkbars i.hi { background: var(--accent); }
@keyframes barUp { from { transform: scaleY(0); } }

.todo { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); transition: all .2s; }
.todo:hover { border-color: var(--line-2); }
.todo .check { width: 22px; height: 22px; border-radius: 7px; border: 1.6px solid var(--line-2); flex: none; margin-top: 1px; display: grid; place-items: center; transition: all .2s; }
.todo.done .check { background: var(--good); border-color: var(--good); color: #fff; }
.todo.done .li-title { text-decoration: line-through; color: var(--muted); }

.news-feature { border-radius: var(--r-lg); overflow: hidden; position: relative; min-height: 250px; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; color: #fff; isolation: isolate; cursor: pointer; }
.news-feature .art { position: absolute; inset: 0; z-index: -2; transition: transform .8s var(--ease); }
.news-feature:hover .art { transform: scale(1.04); }
.news-feature::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(5,10,25,.85), rgba(5,10,25,.05) 70%); }
.news-feature h3 { font-family: var(--f-display); font-size: 25px; font-weight: 500; line-height: 1.12; margin: 10px 0 6px; max-width: 520px; }
.news-feature .chip { background: rgba(255,255,255,.18); color: #fff; backdrop-filter: blur(6px); }

/* generative art thumbnails */
.art { background: var(--a1, #2250F4); position: relative; overflow: hidden; }
.art::before, .art::after { content: ""; position: absolute; border-radius: 50%; }
.art::before { width: 70%; aspect-ratio: 1; background: var(--a2, #FF6A45); inset-inline-end: -15%; top: -25%; opacity: .9; }
.art::after { width: 55%; aspect-ratio: 1; background: var(--a3, #6FD3FF); inset-inline-start: -10%; bottom: -30%; mix-blend-mode: screen; opacity: .8; }
.art.s2::before { border-radius: 30% 70% 60% 40%; transform: rotate(25deg); }
.art.s3::after { border-radius: 0; transform: rotate(45deg); width: 45%; }
.art.s4::before { border-radius: 0 0 50% 50%; top: auto; bottom: -20%; }
.art .glyph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.95); z-index: 1; pointer-events: none; } /* decorative: clicks go to what is underneath / around it (e.g. a popup's close button) */
.art .glyph svg { width: 34%; height: 34%; stroke-width: 1.4; }

.people-row { display: flex; }
.people-row .avatar { box-shadow: 0 0 0 2.5px var(--surface); }
.people-row .avatar + .avatar { margin-inline-start: -9px; }

/* ---------- ME / profile ---------- */
.profile-head { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding: 28px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); position: relative; overflow: hidden; margin-bottom: 24px; }
.profile-head::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 90px; background: linear-gradient(90deg, var(--accent-soft), var(--accent-2-soft)); opacity: .8; }
.profile-head > * { position: relative; }
.profile-head h2 { font-family: var(--f-display); font-size: 32px; font-weight: 500; letter-spacing: -.02em; }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2px 28px; }
.kv > div { padding: 13px 0; border-bottom: 1px dashed var(--line); }
.kv dt { font-size: 12px; color: var(--muted); margin-bottom: 3px; display: flex; align-items: center; gap: 6px; }
.kv dd { margin: 0; font-weight: 500; font-size: 14.5px; }
.doc-card { display: flex; flex-direction: column; gap: 14px; transition: transform .25s var(--ease); }
.doc-card:hover { transform: translateY(-3px); }
.doc-thumb { height: 120px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); position: relative; overflow: hidden; display: grid; place-items: center; }
.doc-thumb .sheet { width: 64px; height: 84px; background: var(--surface); border-radius: 6px; box-shadow: var(--shadow); padding: 10px 8px; display: flex; flex-direction: column; gap: 5px; transform: rotate(-4deg); }
.doc-thumb .sheet i { height: 4px; border-radius: 4px; background: var(--line-2); }
.doc-thumb .sheet i:first-child { width: 60%; background: var(--accent); }
.doc-thumb .ext { position: absolute; top: 10px; inset-inline-start: 10px; }

.payslip { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; }
.net-card { display: flex; flex-direction: column; background: var(--hero-bg); color: var(--hero-ink); border: 0; overflow: hidden; }
.net-card .v { font-family: "Fraunces", serif; font-size: 54px; font-weight: 500; letter-spacing: -.035em; line-height: 1; }
.net-card .muted { color: inherit; opacity: .7; }
.bars { display: flex; align-items: flex-end; gap: 12px; height: 150px; flex: 1; min-height: 150px; margin-top: 24px; }
.bars .b { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.bars .b i { width: 100%; border-radius: 8px 8px 4px 4px; background: rgba(255,255,255,.16); animation: barUp 1s var(--ease) both; transform-origin: bottom; position: relative; }
.bars .b.cur i { background: var(--hero-accent); }
.bars .b small { font-size: 11px; opacity: .7; }
.bars .b i::after { content: attr(data-v); position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-size: 10.5px; opacity: 0; transition: opacity .2s; white-space: nowrap; }
.bars .b:hover i::after { opacity: .9; }
.line-row { display: flex; justify-content: space-between; padding: 10px 0; font-size: 14px; border-bottom: 1px dashed var(--line); }
.line-row:last-child { border: 0; }
.line-row.total { font-weight: 650; font-size: 15px; border-top: 1.5px solid var(--ink); border-bottom: 0; margin-top: 6px; padding-top: 12px; }
.neg { color: var(--bad); }
.benefit { display: flex; flex-direction: column; gap: 14px; }
.benefit .big { font-family: "Fraunces", serif; font-size: 30px; letter-spacing: -.02em; font-weight: 500; }
.leave-dial { display: flex; gap: 20px; align-items: center; }
.mini-ring { width: 86px; height: 86px; position: relative; flex: none; }
.mini-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.mini-ring .t { stroke: var(--paper-2); }
.mini-ring .b { stroke: var(--accent); stroke-linecap: round; }
.mini-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-family: "Fraunces", serif; font-size: 26px; font-weight: 500; }

.timeline { position: relative; padding-inline-start: 26px; }
.timeline::before { content: ""; position: absolute; inset-inline-start: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 20px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; inset-inline-start: -26px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-2); }
.tl-item.now::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.tl-item.next::before { border-style: dashed; border-color: var(--accent); }
.tl-item .li-sub { margin-top: 2px; }
.skill { display: grid; grid-template-columns: 1fr 120px 36px; align-items: center; gap: 12px; padding: 7px 0; font-size: 14px; }

/* ---------- LEARN ---------- */
.courses { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.course { display: flex; flex-direction: column; padding: 0; overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s; cursor: pointer; }
.course:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.course .art { height: 150px; }
.course .body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.course h4 { font-size: 16.5px; font-weight: 600; line-height: 1.3; }
.course .meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: var(--muted); margin-top: auto; }
.course .meta span { display: flex; align-items: center; gap: 5px; }
.course .tag-float { position: absolute; top: 12px; inset-inline-start: 12px; z-index: 2; }
.course .tag-float .chip { background: rgba(255,255,255,.92); color: #0B1B3F; }
.steps { display: flex; flex-direction: column; gap: 0; counter-reset: s; }
.step { display: flex; gap: 14px; position: relative; padding-bottom: 18px; }
.step:last-child { padding-bottom: 0; }
.step::before { counter-increment: s; content: counter(s); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 13px; background: var(--paper-2); color: var(--ink-2); flex: none; position: relative; z-index: 1; }
.step::after { content: ""; position: absolute; inset-inline-start: 14px; top: 30px; bottom: 0; width: 2px; background: var(--line); }
.step:last-child::after { display: none; }
.step.done::before { content: "✓"; background: var(--good); color: #fff; }
.step.cur::before { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 5px var(--accent-soft); }
.step b { font-size: 14px; font-weight: 600; display: block; }
.step p { font-size: 13px; color: var(--muted); }
.tracker { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.tracker i { flex: 1; height: 5px; border-radius: 9px; background: var(--paper-2); }
.tracker i.on { background: var(--accent); }
.tracker i.good { background: var(--good); }
.cert { background: linear-gradient(135deg, var(--surface), var(--surface-2)); border: 1px solid var(--line); position: relative; overflow: hidden; }
.cert::after { content: ""; position: absolute; width: 120px; height: 120px; inset-inline-end: -30px; bottom: -40px; border-radius: 50%; border: 18px solid var(--accent-soft); }

/* ---------- CONNECT ---------- */
.news-list-item { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.news-list-item .art { height: 90px; border-radius: 14px; }
.news-list-item h4 { font-size: 16px; font-weight: 600; line-height: 1.3; margin: 6px 0 4px; }
.news-list-item:hover h4 { color: var(--accent); }
.event-card { display: grid; grid-template-columns: 76px 1fr; gap: 18px; align-items: start; }
.date-block { border-radius: 16px; background: var(--ink); color: var(--paper); text-align: center; padding: 10px 0 12px; }
:is([data-theme="midnight"], [data-theme="allianz-night"]) .date-block { background: var(--accent); color: var(--accent-ink); }
.date-block small { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; opacity: .75; display: block; }
.date-block b { font-family: "Fraunces", serif; font-size: 32px; font-weight: 500; line-height: 1.05; display: block; }
.cal-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 20px; scrollbar-width: none; }
.cal-strip::-webkit-scrollbar { display: none; }
.cal-day { min-width: 58px; padding: 10px 0; border-radius: 14px; text-align: center; border: 1px solid var(--line); background: var(--surface); font-size: 12px; color: var(--muted); position: relative; }
.cal-day b { display: block; font-size: 19px; color: var(--ink); font-weight: 600; margin-top: 2px; }
.cal-day.has::after { content: ""; position: absolute; bottom: 6px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--accent-2); }
.cal-day.today { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cal-day.today b { color: var(--paper); }
:is([data-theme="midnight"], [data-theme="allianz-night"]) .cal-day.today { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
:is([data-theme="midnight"], [data-theme="allianz-night"]) .cal-day.today b { color: var(--accent-ink); }
.composer { display: flex; gap: 14px; align-items: flex-start; }
.composer .textarea { min-height: 54px; border-radius: 16px; }
.post { display: flex; flex-direction: column; gap: 14px; }
.post-head { display: flex; gap: 12px; align-items: center; }
.post-body { font-size: 14.5px; line-height: 1.6; white-space: pre-wrap; }
.post-media { height: 220px; border-radius: 16px; }
.post-actions { display: flex; gap: 6px; border-top: 1px solid var(--line); padding-top: 10px; }
.post-actions button { display: flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 10px; font-size: 13px; color: var(--muted); transition: all .2s; }
.post-actions button:hover { background: var(--surface-2); color: var(--ink); }
.post-actions button.on { color: var(--accent-2); }
.post-actions button.on .ico { fill: var(--accent-2); }
.comments { display: flex; flex-direction: column; gap: 10px; }
.comment { display: flex; gap: 10px; }
.comment .bubble { background: var(--surface-2); border-radius: 14px; padding: 8px 12px; font-size: 13.5px; }
.notif { display: flex; gap: 14px; padding: 16px; border-radius: 16px; align-items: flex-start; transition: background .2s; position: relative; }
.notif.unread { background: var(--surface); border: 1px solid var(--line); }
.notif.unread::after { content: ""; position: absolute; top: 20px; inset-inline-end: 18px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); }

/* ---------- ENGAGE ---------- */
.kudos-wall { columns: 3 280px; column-gap: 20px; }
.kudos-wall > * { break-inside: avoid; margin-bottom: 20px; }
.kudo { overflow: hidden; }
.kudo .badge-art { display: flex; align-items: center; gap: 12px; padding: 16px 18px; margin: -22px -22px 16px; color: #fff; position: relative; overflow: hidden; }
.kudo .badge-art .em { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.2); font-size: 22px; }
.kudo .badge-art b { font-weight: 600; font-size: 15px; }
.kudo .badge-art::after { content: ""; position: absolute; inset-inline-end: -20px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: rgba(255,255,255,.14); }
.kudo p { font-size: 14.5px; line-height: 1.55; }
.kudo .from { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 13px; }
.badge-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.badge-opt { border: 1.5px solid var(--line); border-radius: 16px; padding: 14px 10px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; transition: all .2s; background: var(--surface); }
.badge-opt span { font-size: 26px; }
.badge-opt.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.leader { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.leader .rank { width: 24px; font-family: "Fraunces", serif; font-size: 18px; color: var(--muted); text-align: center; }
.leader.me { background: var(--accent-soft); border-radius: 12px; padding: 10px; margin: 0 -10px; }
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 12px; margin: 10px 0 20px; }
.podium .p { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.podium .p .blk { width: 74px; border-radius: 14px 14px 4px 4px; background: var(--paper-2); display: grid; place-items: center; font-family: "Fraunces", serif; font-size: 26px; font-weight: 500; color: var(--muted); }
.podium .p.first .blk { background: var(--accent); color: var(--accent-ink); }
.survey-card { display: flex; flex-direction: column; gap: 14px; }
.scale { display: flex; gap: 6px; }
.scale button { flex: 1; min-width: 0; height: 52px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 600; font-size: 16px; transition: all .2s; }
.scale button:hover { border-color: var(--line-2); }
.scale button.on { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); transform: translateY(-2px); }
.scale.emoji button { font-size: 24px; }
.opt { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 14px; border: 1.5px solid var(--line); margin-bottom: 8px; transition: all .2s; width: 100%; text-align: start; background: var(--surface); }
.opt .radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; transition: all .2s; }
.opt.on { border-color: var(--accent); background: var(--accent-soft); }
.opt.on .radio { border-color: var(--accent); border-width: 6px; }
.result-bar { margin-bottom: 12px; }
.result-bar .lbl { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 6px; }
.idea { display: grid; grid-template-columns: 64px 1fr; gap: 18px; }
.vote { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 1.5px solid var(--line); border-radius: 16px; height: 76px; transition: all .2s; background: var(--surface); }
.vote b { font-size: 18px; font-weight: 650; }
.vote .ico { transform: rotate(-90deg); }
.vote:hover { border-color: var(--accent); }
.vote.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pipeline { display: flex; gap: 4px; margin-top: 12px; }
.pipeline div { flex: 1; font-size: 11px; color: var(--muted); }
.pipeline div i { display: block; height: 4px; border-radius: 4px; background: var(--paper-2); margin-bottom: 5px; }
.pipeline div.on i { background: var(--accent-2); }
.pipeline div.on { color: var(--ink-2); font-weight: 500; }

/* ---------- ASSISTANT (chat) ---------- */
.chat-shell { display: grid; grid-template-columns: 1fr 320px; gap: 20px; height: calc(100vh - var(--top-h) - 40px); min-height: 520px; }
.chat { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow); position: relative; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--surface); z-index: 2; }
.bot-av { width: 44px; height: 44px; border-radius: 14px; background: var(--hero-bg); color: var(--hero-accent); display: grid; place-items: center; position: relative; flex: none; }
.bot-av::after { content: ""; position: absolute; bottom: -2px; inset-inline-end: -2px; width: 12px; height: 12px; border-radius: 50%; background: var(--good); border: 2.5px solid var(--surface); }
.bot-av svg { width: 24px; height: 24px; }
.chat-head b { font-size: 15.5px; display: block; }
.chat-head small { font-size: 12px; color: var(--good); }
.chat-body { flex: 1; overflow-y: auto; padding: 24px 22px 12px; display: flex; flex-direction: column; gap: 6px; scroll-behavior: smooth;
  background-color: var(--surface-2);
  background-image: radial-gradient(color-mix(in srgb, var(--line-2) 70%, transparent) 1px, transparent 1px); background-size: 20px 20px; }
.day-sep { align-self: center; font-size: 11.5px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); padding: 3px 12px; border-radius: 99px; margin: 8px 0 12px; }
.msg { display: flex; gap: 10px; max-width: 78%; animation: msgIn .35s var(--ease) both; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.msg.me { align-self: flex-end; flex-direction: row-reverse; }
.msg .bubble { padding: 11px 15px; border-radius: 20px; font-size: 14.5px; line-height: 1.55; position: relative; box-shadow: 0 1px 1px rgba(0,0,0,.04); }
.msg.bot .bubble { background: var(--bubble-bot); border: 1px solid var(--line); border-end-start-radius: 6px; }
.msg.me .bubble { background: var(--bubble-me); color: var(--bubble-me-ink); border-end-end-radius: 6px; }
.msg .time { font-size: 10.5px; opacity: .6; margin-top: 4px; display: flex; align-items: center; gap: 4px; justify-content: flex-end; }
.msg .bubble p + p, .msg .bubble p + ul, .msg .bubble ul + p { margin-top: 8px; }
.msg .bubble ul { margin: 6px 0 0; padding-inline-start: 18px; }
.msg .bubble li { margin: 3px 0; }
.msg .bubble strong { font-weight: 650; }
.msg.cont { margin-top: -2px; }
.msg .mini-av { width: 30px; height: 30px; border-radius: 10px; background: var(--hero-bg); color: var(--hero-accent); display: grid; place-items: center; flex: none; align-self: flex-end; }
.msg .mini-av svg { width: 17px; height: 17px; }
.msg.cont .mini-av { visibility: hidden; }
.sources { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line-2); }
.src { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; padding: 4px 9px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-weight: 500; }
.src .ico { width: 13px; height: 13px; }
.feedback { display: flex; gap: 4px; margin-top: 8px; }
.feedback button { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); }
.feedback button:hover, .feedback button.on { background: var(--paper-2); color: var(--ink); }
.feedback .ico { width: 15px; height: 15px; }
.typing .bubble { display: flex; gap: 5px; padding: 15px 16px; }
.typing .bubble i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing .bubble i:nth-child(2) { animation-delay: .15s; } .typing .bubble i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 60%, 100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }
.suggest { display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px 0; scrollbar-width: none; }
.suggest::-webkit-scrollbar { display: none; }
.suggest button { flex: none; font-size: 13px; padding: 8px 13px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); transition: all .2s; }
.suggest button:hover { border-color: var(--accent); color: var(--accent); }
.chat-input { display: flex; gap: 10px; align-items: flex-end; padding: 12px 14px 14px; background: var(--surface); }
.chat-input .box { flex: 1; display: flex; align-items: flex-end; gap: 6px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 24px; padding: 5px 6px 5px 16px; transition: border-color .2s, box-shadow .2s; }
[dir="rtl"] .chat-input .box { padding: 5px 16px 5px 6px; }
.chat-input .box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.chat-input textarea { flex: 1; border: 0; background: transparent; outline: none; resize: none; max-height: 140px; min-height: 24px; padding: 8px 0; line-height: 1.45; }
.send { width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; flex: none; transition: transform .2s, opacity .2s; }
.send:disabled { opacity: .4; }
.send:not(:disabled):hover { transform: scale(1.06) rotate(-8deg); }
.kb-panel { display: flex; flex-direction: column; gap: 14px; overflow-y: auto; }
.kb-doc { display: flex; gap: 12px; align-items: center; padding: 11px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.kb-doc .li-ico { width: 36px; height: 36px; border-radius: 10px; }
.dropzone { border: 1.5px dashed var(--line-2); border-radius: 16px; padding: 18px; text-align: center; font-size: 13px; color: var(--muted); transition: all .2s; cursor: pointer; }
.dropzone:hover, .dropzone.over { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.ai-mode { display: flex; align-items: center; gap: 8px; font-size: 12px; padding: 8px 12px; border-radius: 12px; background: var(--paper-2); }
.ai-mode i { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); }
.ai-mode.live i { background: var(--good); }

/* ---------- Modal / sheet ---------- */
.scrim { position: fixed; inset: 0; z-index: 100; background: rgba(8,12,24,.45); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 24px; animation: fadeIn .25s both; }
@keyframes fadeIn { from { opacity: 0; } }
.modal { width: 100%; max-width: 560px; max-height: calc(100vh - 48px); overflow: auto; background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); animation: pop .35s var(--ease) both; position: relative; }
.modal.wide { max-width: 760px; }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.97); } }
.modal-head { position: sticky; top: 0; background: var(--surface); z-index: 2; display: flex; align-items: center; gap: 12px; padding: 20px 24px 14px; }
.modal-head h3 { font-family: var(--f-display); font-size: 24px; font-weight: 500; }
.modal-head .icon-btn { margin-inline-start: auto; }
.modal-body { padding: 4px 24px 24px; }
.modal-foot { position: sticky; bottom: 0; background: var(--surface); padding: 14px 24px 20px; display: flex; gap: 10px; justify-content: flex-end; border-top: 1px solid var(--line); }
.modal .hero-art { height: 200px; margin: 0 0 20px; border-radius: 0; }
.grabber { display: none; }

.toast-wrap { position: fixed; z-index: 200; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; }
.toast { background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 14px; font-size: 14px; display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow-lg); animation: toastIn .4s var(--ease) both; }
.toast .ico { color: var(--good); }
:is([data-theme="midnight"], [data-theme="allianz-night"]) .toast { background: var(--accent); color: var(--accent-ink); }
:is([data-theme="midnight"], [data-theme="allianz-night"]) .toast .ico { color: var(--accent-ink); }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(.95); } }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 300; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 9px; height: 14px; border-radius: 2px; animation: fall 1.8s cubic-bezier(.3,.6,.4,1) forwards; }
@keyframes fall { to { transform: translate(var(--dx), 110vh) rotate(var(--r)); opacity: .8; } }

/* ---------- Onboarding / theme picker ---------- */
.onb { position: fixed; inset: 0; z-index: 150; background: var(--paper); overflow-y: auto; display: flex; isolation: isolate; }
.onb::before, .onb::after { content: ""; position: fixed; z-index: -1; border-radius: 50%; filter: blur(80px); opacity: .35; pointer-events: none; }
.onb::before { width: 520px; height: 520px; background: var(--mesh-1); inset-inline-end: -160px; top: -160px; animation: drift 16s ease-in-out infinite alternate; }
.onb::after { width: 420px; height: 420px; background: var(--mesh-2); inset-inline-end: 10%; bottom: -220px; animation: drift 20s ease-in-out infinite alternate-reverse; }
.onb-inner { margin: auto; width: 100%; max-width: 1080px; padding: 40px 28px; }
.onb-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 40px; }
.onb h1 { font-size: clamp(40px, 6vw, 76px); line-height: .98; }
.onb .lede { font-size: 17px; color: var(--muted); max-width: 560px; margin: 16px 0 34px; }
.lang-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 620px; }
.lang-card { border: 1.5px solid var(--line-2); border-radius: 24px; padding: 26px; text-align: start; background: var(--surface); transition: all .25s var(--ease); display: flex; flex-direction: column; gap: 22px; }
.lang-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.lang-card .big { font-family: "Fraunces", serif; font-size: 44px; line-height: 1; font-weight: 500; }
.lang-card .big.ar { font-family: "El Messiri", serif; font-weight: 700; }
.lang-card.on { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.theme-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.theme-card { border: 1.5px solid var(--line-2); border-radius: 26px; padding: 14px 14px 20px; text-align: start; background: var(--surface); transition: all .3s var(--ease); display: flex; flex-direction: column; gap: 14px; position: relative; }
.theme-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.theme-card.on { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.theme-card .rec { position: absolute; top: -12px; inset-inline-end: 18px; z-index: 3; background: var(--accent-2); color: #fff; font-size: 11.5px; font-weight: 600; padding: 4px 11px; border-radius: 99px; box-shadow: 0 6px 14px -6px var(--accent-2); }
.theme-card h4 { font-family: var(--f-display); font-size: 23px; font-weight: 500; padding: 0 6px; }
.theme-card p { font-size: 13px; color: var(--muted); padding: 0 6px; }
.theme-card .sel { position: absolute; top: 24px; inset-inline-start: 24px; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: none; place-items: center; z-index: 3; }
.theme-card.on .sel { display: grid; }
.swatches { display: flex; gap: 6px; padding: 0 6px; }
.swatches i { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
/* mini previews */
.tp { height: 190px; border-radius: 16px; overflow: hidden; display: grid; grid-template-columns: 34% 1fr; background: var(--tp-paper); border: 1px solid rgba(0,0,0,.06); }
.tp-side { background: var(--tp-side); padding: 12px 8px; display: flex; flex-direction: column; gap: 6px; }
.tp-side i { height: 8px; border-radius: 4px; background: var(--tp-line); }
.tp-side i.a { background: var(--tp-ink); width: 90%; height: 14px; border-radius: 5px; }
.tp-main { padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.tp-hero { height: 70px; border-radius: 10px; background: var(--tp-hero); position: relative; overflow: hidden; padding: 10px; }
.tp-hero::after { content: ""; position: absolute; width: 60px; height: 60px; border-radius: 50%; background: var(--tp-accent); filter: blur(12px); inset-inline-end: -10px; top: -14px; opacity: .8; }
.tp-hero b { display: block; width: 60%; height: 9px; border-radius: 4px; background: var(--tp-hero-ink); opacity: .9; }
.tp-hero b + b { width: 40%; margin-top: 6px; opacity: .5; }
.tp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; flex: 1; }
.tp-row span { border-radius: 8px; background: var(--tp-surface); border: 1px solid var(--tp-line); position: relative; }
.tp-row span::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 8px; height: 5px; border-radius: 4px; background: var(--tp-accent); width: 50%; }
.onb-foot { display: flex; align-items: center; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.onb-dots { display: flex; gap: 6px; }
.onb-dots i { width: 8px; height: 8px; border-radius: 99px; background: var(--line-2); transition: all .3s; }
.onb-dots i.on { width: 26px; background: var(--accent); }

/* ---------- misc ---------- */
.banner { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 18px; background: var(--accent-soft); color: var(--ink); margin-bottom: 20px; }
.banner .li-ico { background: var(--accent); color: var(--accent-ink); }
.switch { width: 46px; height: 28px; border-radius: 99px; background: var(--line-2); position: relative; transition: background .25s; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: inset-inline-start .25s var(--ease); }
.switch.on { background: var(--accent); }
.switch.on::after { inset-inline-start: 21px; }
.search { position: relative; }
.search .ico { position: absolute; top: 50%; transform: translateY(-50%); inset-inline-start: 14px; color: var(--muted); }
.search .input { padding-inline-start: 42px; border-radius: 14px; }
.section-title { display: flex; align-items: baseline; gap: 12px; margin: 34px 0 16px; }
.section-title h2 { font-family: var(--f-display); font-size: 28px; font-weight: 500; letter-spacing: -.02em; }
.section-title .link { margin-inline-start: auto; }
.hide-d { display: none !important; }
.kb-toggle { display: none; }
@media (max-width: 1180px) { .kb-toggle { display: grid; } }
@media (max-width: 980px) { .hide-m { display: none !important; } }
.modal.kb-panel { display: block; }
.splash { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; background: #0B1B3F; color: #F4F2EC; transition: opacity .5s; }
.splash svg { width: 64px; height: 64px; animation: splashPulse 1.2s ease-in-out infinite; }
@keyframes splashPulse { 50% { transform: scale(1.08); opacity: .8; } }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .quick { grid-template-columns: repeat(3, 1fr); }
  .g-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .chat-shell { grid-template-columns: 1fr; }
  .kb-panel.desktop { display: none; }
}
@media (max-width: 980px) {
  :root { --top-h: 60px; }
  .app { grid-template-columns: 1fr; }
  .side { display: none; }
  .top { padding: 0 16px; padding-top: var(--safe-t); height: calc(var(--top-h) + var(--safe-t)); }
  .top-title { display: none; }
  .top-mobile-brand { display: flex; align-items: center; gap: 10px; }
  .top-mobile-brand .brand-mark { width: 34px; height: 34px; border-radius: 10px; }
  .top-mobile-brand .brand-mark svg { width: 20px; height: 20px; }
  .top-mobile-brand .brand-name { font-size: 23px; }
  .icon-btn { width: 40px; height: 40px; }
  .view { padding: 8px 16px calc(var(--bn-h) + 40px + var(--safe-b)); }
  .g-2, .g-3 { grid-template-columns: 1fr; }
  .g-4 { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
  .span-2, .span-3 { grid-column: auto; }
  .grid { gap: 14px; }
  .card { padding: 18px; border-radius: 22px; }
  .home-hero { grid-template-columns: 1fr; padding: 26px 22px; border-radius: 28px; gap: 10px; }
  .pulse-wrap { flex-direction: row; justify-content: flex-start; gap: 18px; }
  .ring { width: 124px; height: 124px; }
  .ring-center b { font-size: 36px; }
  .ring-center small { font-size: 9px; }
  .pulse-legend { flex-direction: column; gap: 6px; }
  .mood-btn { height: 42px; padding: 0 11px; }
  .mood-btn em { display: none; }
  .quick { grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0; }
  .qa { padding: 14px 12px; align-items: center; text-align: center; border-radius: 16px; }
  .stat .v { font-size: 32px; }
  .stat-card { min-height: 140px; }
  .page-head { padding: 10px 0 16px; }
  .page-head .actions { margin-inline-start: 0; width: 100%; }
  .profile-head { grid-template-columns: auto 1fr; padding: 20px; gap: 16px; }
  .profile-head .actions { grid-column: 1 / -1; }
  .profile-head h2 { font-size: 24px; }
  .payslip { grid-template-columns: 1fr; }
  .net-card .v { font-size: 42px; }
  .news-list-item { grid-template-columns: 92px 1fr; }
  .news-list-item .art { height: 78px; }
  .kudos-wall { columns: 1; }
  .theme-pick { grid-template-columns: 1fr; }
  .lang-pick { grid-template-columns: 1fr 1fr; }
  .lang-card { padding: 18px; }
  .lang-card .big { font-size: 32px; }
  .onb-inner { padding: 28px 18px calc(28px + var(--safe-b)); }
  .chat-shell { height: calc(100vh - var(--top-h) - var(--safe-t) - var(--bn-h) - var(--safe-b) - 20px); height: calc(100dvh - var(--top-h) - var(--safe-t) - var(--bn-h) - var(--safe-b) - 20px); min-height: 0; }
  .view.v-assistant { padding-bottom: 0; padding-left: 0; padding-right: 0; padding-top: 0; }
  .chat { border-radius: 0; border-left: 0; border-right: 0; border-bottom: 0; }
  .msg { max-width: 88%; }
  .chat-body { padding: 18px 12px 10px; }
  .tabs { width: 100%; }
  .tab { flex: 1 0 auto; justify-content: center; padding: 9px 12px; }
  .courses { grid-template-columns: 1fr; }
  .course .art { height: 130px; }
  .profile-head .avatar.xl { width: 68px; height: 68px; font-size: 22px; }
  .profile-head::before { height: 60px; }
  .doc-thumb { height: 96px; }
  .row2 { grid-template-columns: 1fr; }

  /* bottom nav */
  .bnav {
    display: grid; grid-template-columns: repeat(6, 1fr); position: fixed; left: 10px; right: 10px; bottom: calc(10px + var(--safe-b)); z-index: 40; height: var(--bn-h);
    background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5);
    border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow-lg); padding: 6px;
  }
  .bnav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 10.5px; color: var(--muted); border-radius: 18px; font-weight: 500; transition: color .2s; position: relative; }
  .bnav a .ico { width: 22px; height: 22px; transition: transform .3s var(--ease); }
  .bnav a.active { color: var(--ink); }
  .bnav a.active .ico { transform: translateY(-2px); stroke-width: 2.1; }
  .bnav a.active::after { content: ""; position: absolute; bottom: 4px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
  .bnav a.center .orb { width: 50px; height: 50px; border-radius: 17px; background: var(--hero-bg); color: var(--hero-accent); display: grid; place-items: center; margin-top: -26px; box-shadow: 0 12px 24px -8px rgba(0,0,0,.4); border: 3px solid var(--paper); }
  .bnav a.center.active::after { display: none; }
  .bnav a.center .ico { width: 24px; height: 24px; }

  /* sheet modal */
  .scrim { align-items: flex-end; padding: 0; }
  .modal { max-width: none; border-radius: 28px 28px 0 0; max-height: 92vh; animation: sheetUp .4s var(--ease) both; padding-bottom: var(--safe-b); }
  @keyframes sheetUp { from { transform: translateY(100%); } }
  .grabber { display: block; width: 40px; height: 5px; border-radius: 9px; background: var(--line-2); margin: 10px auto 0; }
  .modal-head { padding: 12px 20px 10px; }
  .modal-body { padding: 4px 20px 20px; }
  .modal-foot { padding: 12px 20px 16px; }
  .toast-wrap { bottom: calc(var(--bn-h) + 26px + var(--safe-b)); }
}
@media (max-width: 420px) {
  .quick { grid-template-columns: repeat(3, 1fr); }
  .qa b { font-size: 12px; }
  .g-4 .stat .v { font-size: 28px; }
  .home-hero h1 { font-size: 36px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ==========================================================================
   Sign-in
   ========================================================================== */
.app.app-login { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; }
.login-art { position: relative; overflow: hidden; isolation: isolate; background: var(--hero-bg); color: var(--hero-ink); padding: 40px 48px; display: flex; flex-direction: column; gap: 28px; min-height: 100vh; }
.login-art .mesh, .login-art .pattern { position: absolute; inset: 0; z-index: -1; }
.login-art .mesh i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.login-art .mesh i:nth-child(1) { width: 520px; height: 520px; background: var(--mesh-1); inset-inline-end: -160px; top: -180px; }
.login-art .mesh i:nth-child(2) { width: 380px; height: 380px; background: var(--mesh-2); inset-inline-start: -120px; bottom: -160px; animation-delay: -7s; opacity: .45; }
.login-art .mesh i:nth-child(3) { width: 260px; height: 260px; background: var(--mesh-3); inset-inline-end: 20%; bottom: 20%; animation-delay: -12s; opacity: .25; }
.login-art .pattern { opacity: .08; background-image: radial-gradient(currentColor 1px, transparent 1px); background-size: 22px 22px; }
.login-art .brand { padding: 0; }
.login-quote { margin-top: auto; max-width: 520px; }
.login-quote h2 { font-size: clamp(44px, 5.4vw, 78px); line-height: .98; }
.login-quote h2 em { color: var(--hero-accent); }
.login-quote p { opacity: .78; font-size: 16px; margin-top: 16px; max-width: 420px; }
.login-collage { position: relative; height: 196px; }
.lc { position: absolute; display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 18px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: floaty 7s ease-in-out infinite alternate; }
.lc small { display: block; font-size: 11.5px; opacity: .7; } .lc b { font-size: 14px; font-weight: 600; }
/* three positions; any card style can sit in any position */
.lc-1 { inset-inline-start: 0; top: 0; } .lc-2 { inset-inline-start: 50%; top: 18px; animation-delay: -2s; } .lc-3 { inset-inline-start: 6%; top: 112px; animation-delay: -4s; }
.lc { max-width: 46%; } .lc b, .lc small { overflow-wrap: anywhere; }
.lc-emoji { font-size: 18px; flex: none; }
/* "figure" style: caption + big value + small bars */
.lc-fig { flex-direction: column; align-items: flex-start; gap: 4px; min-width: 170px; }
.lc-fig b { font-family: "Fraunces", serif; font-size: 22px; font-weight: 500; } .lc-fig .sparkbars { width: 100%; } .lc-fig .sparkbars i { background: rgba(255,255,255,.2); } .lc-fig .sparkbars i.hi { background: var(--hero-accent); }
@keyframes floaty { to { transform: translateY(-8px); } }
.login-foot { font-size: 12.5px; opacity: .7; display: flex; align-items: center; gap: 8px; }
.login-panel { display: flex; flex-direction: column; padding: 28px 48px 40px; min-width: 0; }
.login-top { display: flex; align-items: center; }
.login-top .top-mobile-brand { display: none; }
.login-form { width: 100%; max-width: 440px; margin: auto; display: flex; flex-direction: column; gap: 16px; padding-block: 24px; animation: rise .6s var(--ease) both; }
.role-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.role-opt { display: flex; gap: 12px; align-items: flex-start; text-align: start; padding: 14px; border-radius: 16px; border: 1.5px solid var(--line-2); background: var(--surface); transition: all .2s; }
.role-opt:hover { border-color: var(--ink-2); }
.role-opt.on { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.role-opt .li-ico { width: 38px; height: 38px; border-radius: 11px; }
.role-opt b { display: block; font-size: 14.5px; } .role-opt small { display: block; font-size: 12px; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.search.pw .input { padding-inline-end: 70px; }
.pw-toggle { position: absolute; inset-inline-end: 10px; top: 50%; transform: translateY(-50%); font-size: 12.5px; font-weight: 600; color: var(--accent); padding: 6px 8px; border-radius: 8px; }
.login-err { background: var(--bad-soft); color: var(--bad); border-radius: 12px; padding: 11px 14px; font-size: 13.5px; font-weight: 500; }
.remember { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.remember input { width: 18px; height: 18px; accent-color: var(--accent); }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12.5px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.demo-box { border: 1px dashed var(--line-2); border-radius: 16px; padding: 14px; background: var(--surface-2); }
.demo-row { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center; padding: 6px 0; }
.demo-row code { font-size: 12.5px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 3px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ==========================================================================
   Admin console
   ========================================================================== */
.is-admin .side { background: color-mix(in srgb, var(--paper-2) 60%, var(--surface)); }
.side-user { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.side-user .icon-btn { margin-inline-start: auto; }
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: start; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
:root[lang="ar"] .tbl th { letter-spacing: 0; font-size: 12.5px; }
.tbl td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background .15s; }
.tbl tbody tr:hover { background: var(--surface-2); }
.tbl tr[data-act] { cursor: pointer; }
.tbl .row-actions { text-align: end; white-space: nowrap; }
.tbl .row-actions .icon-btn { display: inline-grid; width: 34px; height: 34px; }
tr.is-hidden td, .is-hidden { opacity: .5; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bi { gap: 10px; } .bi > div { position: relative; }
.bi-tag { position: absolute; inset-inline-end: 10px; top: 10px; font-size: 10.5px; font-weight: 700; color: var(--muted); background: var(--paper-2); border-radius: 6px; padding: 1px 6px; pointer-events: none; z-index: 1; }
.bi input.input { padding-inline-end: 44px; }
.pal { width: 34px; height: 34px; border-radius: 10px; border: 2px solid transparent; box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); }
.pal.on { border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.req { display: flex; flex-direction: column; gap: 14px; }
.req.done { box-shadow: none; }
.req-head { display: flex; align-items: center; gap: 12px; }
.req-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border-top: 1px dashed var(--line); padding-top: 12px; }
.chart-wrap { width: 100%; overflow: hidden; }
.chart { width: 100%; height: auto; display: block; }
.chart .ax { font-size: 11px; fill: var(--muted); font-family: var(--f-body); }
.kb-list { margin: 0; padding-inline-start: 18px; font-size: 13px; color: var(--ink-2); display: flex; flex-direction: column; gap: 3px; }
.q-row { padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); }
.bnav.no-center { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 980px) {
  .app.app-login { grid-template-columns: 1fr; }
  .login-art { min-height: 0; padding: 22px 20px 24px; padding-top: calc(22px + var(--safe-t)); gap: 14px; border-radius: 0 0 28px 28px; }
  .login-art .brand, .login-collage, .login-foot { display: none; }
  .login-quote { margin-top: 38px; } .login-quote h2 { font-size: 38px; } .login-quote p { font-size: 14px; margin-top: 8px; }
  .login-panel { padding: 0 16px 28px; } .login-top { position: absolute; top: calc(16px + var(--safe-t)); inset-inline: 16px; }
  .login-top .top-mobile-brand { display: flex; color: var(--hero-ink); } .login-top .brand-mark { background: var(--hero-ink); color: var(--hero-bg); }
  .login-top .lang-btn { color: var(--hero-ink); border-color: rgba(255,255,255,.3); }
  .login-form { padding-top: 22px; }
  .role-opt small { display: none; } .role-opt { align-items: center; padding: 12px; }
  .demo-row { grid-template-columns: auto 1fr auto; } .demo-row code:nth-of-type(2) { grid-column: 2; }
  .admin-bnav { grid-template-columns: repeat(5, 1fr); }
  .admin-bnav a { position: relative; }
  .bdot { position: absolute; top: 6px; inset-inline-end: calc(50% - 20px); min-width: 17px; height: 17px; border-radius: 9px; background: var(--accent-2); color: #fff; font-size: 10px; font-style: normal; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }
  .side-user { display: none; }
  .tbl th, .tbl td { padding: 11px 12px; }
}
.app { overflow-x: clip; }
@media (max-width: 980px) {
  .is-admin .top-actions > .avatar { display: none; }
  .is-admin .top-actions { gap: 4px; }
  .admin-bnav a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; padding: 0 2px; }
  .is-admin .top-mobile-brand .chip { max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
}
.art.photo { background-color: var(--paper-2); background-size: cover; background-position: center; }
.art.photo::before, .art.photo::after { display: none; }
.img-field { display: flex; flex-direction: column; gap: 10px; border-radius: 16px; transition: box-shadow .2s; }
.img-field.over { box-shadow: 0 0 0 3px var(--accent); }
.img-prev { height: 190px; border-radius: 16px; border: 1.5px dashed var(--line-2); background: var(--surface-2) center/cover no-repeat; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 13px; cursor: pointer; }
.img-prev[style*="background-image"] { border-style: solid; }
.img-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.img-actions label.btn { cursor: pointer; }

/* ---------- Pulse: three sign-in roles, IT console ---------- */
.role-pick-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.role-pick-3 .role-opt { flex-direction: column; gap: 10px; }
.role-pick-3 .role-opt b { display: block; line-height: 1.25; }
.role-pick-3 .role-opt small { display: block; margin-top: 4px; font-size: 12px; line-height: 1.35; }
.is-it .admin-bnav { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 980px) {
  .role-pick-3 .role-opt { align-items: center; text-align: center; padding: 12px 8px; }
  .role-pick-3 .role-opt small { display: none; }
}

/* ---------- HR console > Sign-in page editor ---------- */
.sp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 20px; align-items: start; }
.sp-form { display: flex; flex-direction: column; gap: 20px; }
.sp-side { position: sticky; top: 84px; }
.sp-card.off .sp-card-body { opacity: .45; }
.sp-preview { min-height: 0; height: 560px; border-radius: 24px; padding: 28px 30px; gap: 18px; box-shadow: var(--shadow, 0 10px 30px rgba(0,0,0,.15)); }
.sp-preview .login-quote h2 { font-size: 40px; }
.sp-preview .login-quote p { font-size: 13.5px; }
.sp-preview .login-collage { display: block; }
@media (max-width: 1180px) { .sp-grid { grid-template-columns: 1fr; } .sp-side { position: static; order: -1; } }
/* sign-in page: headline + cards sit at the bottom of the left panel, as before */
.login-art-body { margin-top: auto; display: flex; flex-direction: column; gap: 28px; }
.login-art-body .login-quote { margin-top: 0; }
.sp-preview .login-art-body { gap: 18px; }
/* EN/AR input pairs: keep room for the EN / ع tag on the right in both directions (Arabic text starts on the right) */
.bi input.input[dir="rtl"], .bi textarea.textarea[dir="rtl"] { padding-inline-start: 44px; padding-inline-end: 14px; }
.bi textarea.textarea[dir="ltr"] { padding-inline-end: 44px; }

/* ---------- company logo (replaces the Pulse mark + wordmark when the IT admin uploads one) ---------- */
.brand-logo { display: inline-flex; align-items: center; justify-content: flex-start; flex: none; background: none; padding: 0; height: 42px; max-width: 168px; } /* transparent: the logo sits directly on the page */
.brand-logo img { display: block; max-height: 100%; max-width: 150px; width: auto; object-fit: contain; }
.top-mobile-brand .brand-logo { height: 34px; max-width: 132px; }
.top-mobile-brand .brand-logo img { max-width: 116px; }
.onb-brand .brand-logo { height: 58px; max-width: 220px; }
.onb-brand .brand-logo img { max-width: 196px; }

/* IT console logo card */
.logo-drop { display: grid; place-items: center; min-height: 150px; border: 2px dashed var(--line-2); border-radius: 18px; background: var(--paper-2); cursor: pointer; transition: border-color .2s, background .2s; padding: 18px; text-align: center; }
.logo-drop.over { border-color: var(--accent); background: var(--accent-soft); }
.logo-drop .brand-logo { height: 72px; max-width: 260px; justify-content: center; }
.logo-drop .brand-logo img { max-width: 232px; }
/* with a (wide) company logo, the small text goes under the logo instead of being squeezed next to it */
.brand:has(> .brand-logo) { flex-direction: column; align-items: flex-start; gap: 8px; }
/* sign-in left side on a light colour chosen by HR (e.g. Sand): darker tints for cards and bars */
.login-art.art-light .lc { background: rgba(0,0,0,.05); border-color: rgba(0,0,0,.1); }
.login-art.art-light .lc-fig .sparkbars i { background: rgba(0,0,0,.14); }
.login-art.art-light .mesh i { opacity: .35; }
/* HR editor: colour swatches */
.sp-swatches { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sp-swatch { width: 40px; height: 40px; border-radius: 12px; border: 2px solid var(--line-2); cursor: pointer; position: relative; transition: transform .15s; }
.sp-swatch:hover { transform: translateY(-2px); }
.sp-swatch.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.sp-swatch.on::after { content: "\2713"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 700; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.sp-custom { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.sp-custom input[type=color] { width: 46px; height: 40px; padding: 2px; border-radius: 10px; border: 1.5px solid var(--line-2); background: var(--surface); cursor: pointer; }

/* ---------- employee feed photos ---------- */
.photo-prev { position: relative; display: inline-block; max-width: 100%; }
.photo-prev img { display: block; max-height: 220px; max-width: 100%; border-radius: 14px; border: 1px solid var(--line); }
.photo-prev .icon-btn { position: absolute; top: 8px; inset-inline-end: 8px; background: rgba(0,0,0,.55); color: #fff; width: 32px; height: 32px; }
.post-photo { display: block; width: 100%; max-height: 520px; object-fit: cover; border-radius: 16px; margin-top: 12px; cursor: zoom-in; background: var(--paper-2); }
.photo-modal .modal-head h3:empty { display: none; }

/* ---------- events calendar: navigation + clickable days ---------- */
.cal-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.cal-range { font-size: 15px; min-width: 150px; text-align: center; }
button.cal-day { cursor: pointer; font: inherit; transition: border-color .15s, transform .15s; }
button.cal-day:hover { border-color: var(--accent); transform: translateY(-1px); }
.cal-day.sel { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: var(--accent-soft); color: var(--ink); }
.cal-day.sel b { color: var(--accent); }
.cal-day.today.sel { background: var(--ink); color: var(--paper); }
.cal-day.today.sel b { color: var(--paper); }
.cal-filter { display: flex; align-items: center; gap: 12px; margin: -6px 0 16px; }

/* anything marked hidden stays hidden, even when its own style sets a display (e.g. .field) */
[hidden] { display: none !important; }
/* a "back" chevron points left in English and right in Arabic (the opposite of .flip) */
.ico.back { transform: scaleX(-1); }
[dir="rtl"] .ico.back { transform: none; }

/* HR console > Leave balances */
.lb-card { padding: 18px; }
.lb-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.lb-year { display: flex; align-items: center; gap: 6px; }
.lb-year b { font-size: 20px; min-width: 56px; text-align: center; }
.lb-q { flex: 1 1 200px; max-width: 320px; }
.lb-dept { flex: 0 1 200px; }
.lb-tools { display: flex; gap: 8px; margin-inline-start: auto; flex-wrap: wrap; }
.lb-note { margin: 12px 0 10px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lb-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; max-height: 64vh; }
.lb-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.lb-table th { position: sticky; top: 0; z-index: 1; background: var(--surface-2); text-align: start; padding: 10px 12px; font-weight: 600; border-bottom: 1px solid var(--line); white-space: nowrap; }
.lb-table td { padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.lb-table tr:last-child td { border-bottom: 0; }
.lb-table th:first-child, .lb-table td:first-child { position: sticky; inset-inline-start: 0; background: var(--surface); z-index: 2; min-width: 210px; }
.lb-table th:first-child { background: var(--surface-2); z-index: 3; }
.lb-emp { display: flex; align-items: center; gap: 10px; }
.lb-in { width: 92px; padding: 7px 10px; text-align: center; }
.lb-sub { font-size: 11.5px; color: var(--muted); margin-top: 4px; white-space: nowrap; min-height: 14px; }
.lb-neg { color: var(--bad); }
.lb-count { font-weight: 400; margin-inline-start: 4px; }
.lb-foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.lb-foot #lb-state { margin-inline-end: auto; color: var(--warn); }
/* profile photos: the picture covers the initials (they show again if it can't load) */
.avatar .av-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; z-index: 2; background: var(--surface-2); }
.av-me.has-photo::after { display: none; }
.av-edit { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; flex: none; }
.av-cam { position: absolute; top: 72px; inset-inline-end: -2px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: var(--accent); color: #fff; border: 3px solid var(--paper); box-shadow: 0 4px 12px rgba(0, 0, 0, .18); z-index: 3; }
.av-cam:hover { filter: brightness(1.08); }
.av-cam:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.av-del { background: none; border: 0; padding: 2px 4px; font: inherit; font-size: 12px; color: var(--muted); cursor: pointer; text-decoration: underline; }
.av-del:hover { color: var(--bad); }
.av-hr { display: flex; align-items: center; gap: 14px; padding: 12px; margin-top: 6px; border: 1px solid var(--line); border-radius: 14px; }
.av-hr .btn { margin-inline-start: auto; }
@media (max-width: 720px) { .av-cam { top: 42px; width: 28px; height: 28px; } }
/* HR console > Pulse score */
.pu-card { padding: 18px; }
.pu-period { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 4px 0 14px; }
.pu-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.pu-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.pu-table th { text-align: start; padding: 10px 12px; background: var(--surface-2); font-weight: 600; white-space: nowrap; border-bottom: 1px solid var(--line); }
.pu-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.pu-table tr:last-child td { border-bottom: 0; }
.pu-off td { opacity: .55; }
.pu-act { display: flex; align-items: center; gap: 10px; min-width: 240px; }
.pu-act .li-ico { width: 32px; height: 32px; flex: none; }
.pu-new { color: var(--accent); }
.pu-w { display: flex; align-items: center; gap: 10px; min-width: 170px; }
.pu-t { display: flex; align-items: center; gap: 8px; min-width: 150px; }
.pu-in { width: 76px; padding: 7px 10px; text-align: center; }
.pu-wbar { flex: 1; height: 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden; min-width: 60px; }
.pu-wbar i { display: block; height: 100%; background: var(--accent); border-radius: 6px; transition: width .2s; }
.pu-note { margin: 10px 0 0; display: flex; gap: 6px; align-items: flex-start; }
.pu-foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.pu-total { margin-inline-end: auto; font-weight: 700; padding: 6px 12px; border-radius: 999px; font-size: 13.5px; }
.pu-total.ok { background: color-mix(in srgb, var(--good) 14%, transparent); color: var(--good); }
.pu-total.bad { background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad); }
.pu-kpis { margin-bottom: 16px; }
.pu-big { font-family: Fraunces, serif; font-size: 40px; line-height: 1.1; margin: 4px 0 8px; }
.pu-bar { height: 8px; border-radius: 8px; background: var(--surface-2); overflow: hidden; flex: 1; min-width: 70px; }
.pu-bar i { display: block; height: 100%; border-radius: 8px; background: var(--accent); }
.pu-bar.good i { background: var(--good); } .pu-bar.warn i { background: var(--warn); } .pu-bar.bad i { background: var(--bad); }
.pu-depts { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px 18px; }
.pu-dept { display: grid; grid-template-columns: 1fr 90px 30px; align-items: center; gap: 10px; font-size: 13px; }
.pu-dept b { text-align: end; }
.pu-cell { display: flex; align-items: center; gap: 10px; min-width: 150px; }
.pu-cell b { min-width: 28px; text-align: end; }
.pu-scores tbody tr { cursor: pointer; }
.pu-scores tbody tr:hover td { background: var(--surface-2); }
.pu-detail-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.pu-detail-head .pu-big { margin: 0; }@media (max-width: 720px) {
  .pu-wrap .pu-table thead { display: none; }
  .pu-wrap .pu-table tr { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); padding: 6px 0; }
  .pu-wrap .pu-table tr:last-child { border-bottom: 0; }
  .pu-wrap .pu-table td { border: 0; padding: 6px 12px; }
  .pu-wrap .pu-table td:first-child { grid-column: 1 / -1; }
  .pu-act { min-width: 0; }
  .pu-w, .pu-t { min-width: 0; }
  .pu-lbl { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 4px; }
}
.pu-lbl { display: none; }
/* HR console > Benefits */
.bn-table th { vertical-align: top; min-width: 150px; }
.bn-th { display: flex; align-items: center; gap: 8px; white-space: normal; }
.bn-th .li-ico { width: 28px; height: 28px; flex: none; }
.bn-all { font-weight: 400; font-size: 12px; margin-top: 6px; color: var(--muted); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; text-decoration: underline; }
.bn-cell { display: flex; align-items: center; gap: 6px; min-height: 34px; }
.bn-check input { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; }
.bn-sum { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* dark themes: if IT ticks "show the logo in white", the logo turns white (the usual reversed logo); the IT upload preview keeps the original */
html.logo-white:is([data-theme="midnight"], [data-theme="allianz-night"]) .brand-logo img { filter: brightness(0) invert(1); }
html.logo-white:is([data-theme="midnight"], [data-theme="allianz-night"]) .logo-drop .brand-logo img { filter: none; }
.logo-dark-prev { background: #061A33; padding: 10px 14px; border-radius: 14px; display: inline-flex; }
.logo-dark-prev.white .brand-logo img { filter: brightness(0) invert(1) !important; }
/* sidebar: logo and signed-in box stay put, only the menu scrolls when it is taller than the screen */
.side { overflow: hidden; }
.side .brand { flex: none; padding-bottom: 14px; }
.side-nav { position: relative; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 4px;
  margin: 0 -8px; padding: 0 8px 10px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14px, #000 calc(100% - 18px), transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 14px, #000 calc(100% - 18px), transparent 100%); }
.side-nav::-webkit-scrollbar { width: 6px; }
.side-nav::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 6px; }
.side-nav::-webkit-scrollbar-track { background: transparent; }
.side-nav .nav-label:first-child { padding-top: 8px; }
.side-nav .nav-item { flex: none; padding-top: 9px; padding-bottom: 9px; }
.side-nav .nav-sub { flex: none; }
.side-user, .side-assist { flex: none; }
.side-user { margin-top: 10px; }
/* HR console > survey dashboard */
.sv-top { margin-bottom: 10px; }
.sv-open { display: block; color: inherit; }
.sv-open:hover .card-title-display { color: var(--accent); }
.sv-kpis .sv-kpi { display: flex; align-items: center; gap: 16px; }
.sv-ring .bg { fill: none; stroke: var(--surface-2); stroke-width: 10; }
.sv-ring .fg { fill: none; stroke: var(--accent); stroke-width: 10; stroke-linecap: round; transition: stroke-dasharray .6s; }
.sv-ring .fg.good { stroke: var(--good); } .sv-ring .fg.warn { stroke: var(--warn); } .sv-ring .fg.bad { stroke: var(--bad); }
.sv-ring text { font: 700 19px var(--f-body); fill: var(--ink); }
.pu-big.pos, .num.pos { color: var(--good); } .pu-big.neg, .num.neg { color: var(--bad); }
.sv-trend svg { width: 100%; height: 150px; display: block; }
.sv-trend rect { fill: var(--accent); opacity: .85; }
.sv-trend rect:hover { opacity: 1; }
.sv-trend-x { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 6px; }
.sv-hl { border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; }
.sv-hl.good { background: var(--good-soft); } .sv-hl.bad { background: var(--bad-soft); }
.sv-hl-q { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; margin-top: 6px; }
.sv-hl-q b { white-space: nowrap; }
.sv-reply blockquote { margin: 0 0 10px; padding: 10px 14px; border-inline-start: 3px solid var(--line-2); background: var(--surface-2); border-radius: 8px; font-size: 14px; white-space: pre-wrap; }
.sv-reply.good blockquote { border-inline-start-color: var(--good); } .sv-reply.bad blockquote { border-inline-start-color: var(--bad); }
.sv-reply-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sv-low td { background: color-mix(in srgb, var(--warn) 8%, transparent); }
.sv-heat th, .sv-heat td { text-align: center; } .sv-heat th:first-child, .sv-heat td:first-child { text-align: start; }
.sv-heat .hc { position: relative; }
.sv-heat .hc.good { background: color-mix(in srgb, var(--good) calc(var(--a) * 100%), transparent); }
.sv-heat .hc.warn { background: color-mix(in srgb, var(--warn) calc(var(--a) * 100%), transparent); }
.sv-heat .hc.bad { background: color-mix(in srgb, var(--bad) calc(var(--a) * 100%), transparent); }
.sv-heat-all td { font-weight: 600; border-top: 2px solid var(--line-2); }
.sv-kw { display: flex; gap: 6px; flex-wrap: wrap; }
.sv-kw .chip b { opacity: .6; margin-inline-start: 4px; }
.sv-qn { font-family: var(--f-display); font-size: 15px; background: var(--accent-soft); color: var(--accent); border-radius: 8px; padding: 4px 9px; flex: none; }
.sv-q-grid { display: grid; grid-template-columns: minmax(180px, 240px) 1fr; gap: 22px; align-items: start; }
.sv-stats { display: grid; gap: 12px; }
.sv-stats .pu-big { font-size: 32px; }
.sv-stack { display: flex; height: 14px; border-radius: 8px; overflow: hidden; background: var(--surface-2); }
.sv-stack i { display: block; height: 100%; } .sv-stack .good, .sv-legend .good { background: var(--good); } .sv-stack .neu, .sv-legend .neu { background: var(--line-2); } .sv-stack .bad, .sv-legend .bad { background: var(--bad); }
.sv-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin: 8px 0 14px; }
.sv-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 5px; vertical-align: -1px; }
.sv-hist { display: flex; gap: 6px; align-items: flex-end; height: 130px; padding-top: 16px; }
.sv-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; min-width: 0; }
.sv-col i { display: block; width: 100%; max-width: 46px; background: var(--accent); border-radius: 6px 6px 2px 2px; min-height: 2px; }
.sv-col i.good { background: var(--good); } .sv-col i.neu { background: var(--line-2); } .sv-col i.bad { background: var(--bad); }
.sv-col span { font-size: 11px; color: var(--muted); } .sv-col b { font-size: 13px; }
.sv-bydept { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px 18px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.sv-cm-bar { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.sv-comments { display: grid; gap: 8px; }
.sv-cm { padding: 10px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.sv-cm p { margin: 0 0 6px; font-size: 14px; white-space: pre-wrap; }
@media (max-width: 720px) { .sv-q-grid { grid-template-columns: 1fr; } .sv-kpis .sv-kpi { gap: 12px; } }
/* "Pulse has been updated" bar (an open tab after a server update) */
.update-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 24px; z-index: 300; display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px;
  background: var(--ink); color: var(--paper); border-radius: 999px; box-shadow: var(--shadow-lg); font-size: 14px; max-width: calc(100vw - 32px); }
.update-bar .btn { flex: none; }
@media (max-width: 720px) { .update-bar { bottom: 96px; border-radius: 16px; } }
/* celebration posts in the feed */
.post-celeb { border-color: color-mix(in srgb, var(--accent-2) 30%, var(--line)); }
.celeb-banner { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 18px; margin: 4px 0 12px; color: var(--hero-ink);
  background: radial-gradient(circle at 85% 20%, color-mix(in srgb, var(--mesh-2) 70%, transparent), transparent 55%), radial-gradient(circle at 10% 90%, color-mix(in srgb, var(--mesh-3) 55%, transparent), transparent 50%), var(--hero-bg); }
.celeb-banner.celeb-anniversary { background: radial-gradient(circle at 85% 20%, color-mix(in srgb, var(--mesh-1) 70%, transparent), transparent 55%), radial-gradient(circle at 10% 90%, color-mix(in srgb, var(--mesh-2) 50%, transparent), transparent 50%), var(--hero-bg); }
.celeb-banner.celeb-welcome { background: radial-gradient(circle at 85% 20%, color-mix(in srgb, var(--good) 60%, transparent), transparent 55%), var(--hero-bg); }
.celeb-av { position: relative; flex: none; }
.celeb-av .avatar { box-shadow: 0 0 0 3px rgba(255,255,255,.85); }
.celeb-e { position: absolute; inset-inline-end: -8px; bottom: -6px; font-size: 26px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.3)); }
.celeb-title { font-family: var(--f-display); font-size: 22px; line-height: 1.2; }
.celeb-sub { font-size: 13.5px; opacity: .85; margin-top: 4px; }
.post-cta { margin-inline-start: 6px; font-weight: 600; color: var(--accent); }
.comment { position: relative; }
.comment .cm-del { margin-inline-start: auto; opacity: .5; align-self: flex-start; }
.comment .cm-del:hover { opacity: 1; color: var(--bad); }
.post.flash { animation: flashPost 1.6s ease; }
@keyframes flashPost { 0%, 100% { box-shadow: var(--shadow); } 30% { box-shadow: 0 0 0 3px var(--accent), var(--shadow); } }
/* IT console > Sign-in & AD: what a failed test step means */
.ad-hint { margin-top: 4px; padding: 6px 8px; border-radius: 8px; background: var(--warn-soft); color: var(--ink); display: flex; gap: 6px; align-items: flex-start; }

/* home > For you: tasks worked out from live data */
a.todo { color: inherit; align-items: center; }
a.todo .li-ico { width: 34px; height: 34px; flex: none; }
a.todo .li-body { min-width: 0; flex: 1; }

/* popups: a click outside nudges the popup instead of closing it */
.modal.bump { animation: modalBump .32s ease; }
@keyframes modalBump { 0%, 100% { transform: none; } 30% { transform: scale(1.02); } 60% { transform: scale(.99); } }
@media (prefers-reduced-motion: reduce) { .modal.bump { animation: none; outline: 2px solid var(--accent); } }

/* approval workflows: HR editor and the progress line on requests */
.box-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--accent-soft); color: var(--ink); font-size: 13.5px; }
.wf-steps { display: grid; gap: 8px; }
.wf-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.wf-n { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 12.5px; margin-top: 6px; }
.wf-fields { flex: 1; display: grid; gap: 6px; min-width: 0; }
.wf-min { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.wf-min .input { width: 70px; padding: 5px 8px; }
.wf-btns { display: flex; gap: 2px; flex: none; }
.wf-track { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 8px 0 2px; }
.wf-step { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }
.wf-step em { font-style: normal; opacity: .75; }
.wf-step.good { background: var(--good-soft); color: var(--good); border-color: transparent; }
.wf-step.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.wf-step.warn { color: var(--ink); }
.wf-step.now { background: var(--warn-soft); color: var(--ink); border-color: var(--warn); font-weight: 600; }
.wf-arrow { color: var(--muted); font-size: 13px; }
/* team leave calendar (managers: My team, HR: Team calendar) */
.tc-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.tc-month { font-family: var(--f-display); font-size: 20px; min-width: 170px; text-align: center; }
.tc-today { margin-bottom: 16px; }
.tc-people { flex-wrap: wrap; gap: 4px; }
.tc-people .avatar + .avatar { margin-inline-start: 0; }
.tc-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-inline-end: 6px; vertical-align: 1px; }
.tc-card { padding: 16px; }
.tc-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.tc-legend i { display: inline-block; width: 14px; height: 10px; border-radius: 3px; margin-inline-end: 6px; vertical-align: -1px; }
.tc-pend-sw { background: repeating-linear-gradient(135deg, var(--accent) 0 3px, transparent 3px 6px); border: 1px solid var(--accent); }
.tc-wk-sw { background: var(--surface-2); border: 1px solid var(--line); }
.tc-today-sw { background: transparent; border: 2px solid var(--accent-2); }
.tc-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.tc-table { border-collapse: separate; border-spacing: 0; font-size: 12px; min-width: 100%; }
.tc-table th, .tc-table td { border-bottom: 1px solid var(--line); text-align: center; padding: 0; height: 40px; min-width: 30px; }
.tc-table thead th { background: var(--surface-2); font-weight: 500; color: var(--muted); padding: 4px 0; position: sticky; top: 0; z-index: 1; }
.tc-table thead th span { display: block; font-size: 10.5px; }
.tc-table thead th b { display: block; color: var(--ink); font-size: 12.5px; }
.tc-table .wk { background: var(--surface-2); }
.tc-table .today { box-shadow: inset 2px 0 0 var(--accent-2), inset -2px 0 0 var(--accent-2); }
.tc-table thead th.today b { color: var(--accent-2); }
.tc-table .tc-name { position: sticky; inset-inline-start: 0; z-index: 2; background: var(--surface); text-align: start; padding: 4px 12px; min-width: 200px; }
.tc-table thead .tc-name { background: var(--surface-2); z-index: 3; }
.tc-table .tc-sum { min-width: 64px; font-weight: 600; color: var(--ink-2); }
.tc-table tbody tr:last-child td { border-bottom: 0; }
.tc-cell { display: block; height: 22px; margin: 0 1px; border-radius: 5px; background: var(--c); }
.tc-cell.pend { background: repeating-linear-gradient(135deg, var(--c) 0 3px, transparent 3px 6px); border: 1px solid var(--c); }
/* recognition: colleagues who joined in */
.kudo-joins .avatars { display: inline-flex; }
.kudo-joins .avatars > * { margin-inline-start: -6px; box-shadow: 0 0 0 2px var(--surface, #fff); border-radius: 50%; }
.kudo-joins .avatars > *:first-child { margin-inline-start: 0; }

/* approval e-mail designer (HR console > Approval e-mails) */
.mt-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; }
@media (max-width: 1100px) { .mt-grid { grid-template-columns: 1fr; } }
.mt-bi { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 640px) { .mt-bi { grid-template-columns: 1fr; } }
.mt-colors { display: flex; gap: 16px; flex-wrap: wrap; }
.mt-color { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; cursor: pointer; }
.mt-color input { width: 36px; height: 28px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: none; cursor: pointer; }
.mt-preview-card { position: sticky; top: 16px; }
.mt-subject { padding: 8px 12px; border-radius: 10px; background: var(--surface-2); margin-bottom: 10px; font-size: 14px; overflow-wrap: anywhere; }
.mt-frame { width: 100%; height: 640px; border: 1px solid var(--line); border-radius: 12px; background: #F2F4F7; }
.box-note.warn { border-color: var(--warn, #B54708); }

/* questions and answers on a request */
.req-qa { display: grid; gap: 8px; margin-top: 10px; }
.qa-item { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.qa-q { margin-top: 2px; white-space: pre-wrap; }
.qa-a { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); white-space: pre-wrap; }
.req-reply { margin-top: 12px; }

/* IT console > Roles & functions (functions as rows, roles as columns) */
.ro-wrap { max-height: 74vh; overflow: auto; }
.ro-tbl { border-collapse: separate; border-spacing: 0; }
.ro-tbl th, .ro-tbl td { border-bottom: 1px solid var(--line); }
.ro-tbl thead th { position: sticky; top: 0; z-index: 2; background: var(--surface); vertical-align: bottom; }
.ro-tbl .ro-fn { position: sticky; inset-inline-start: 0; z-index: 1; background: var(--surface); min-width: 260px; max-width: 340px; text-align: start; font-weight: 500; }
.ro-tbl thead .ro-fn { z-index: 3; }
.ro-role { min-width: 130px; text-align: center; }
.ro-rh { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ro-rb { display: flex; gap: 2px; margin-top: 4px; }
.ro-cell { text-align: center; }
.ro-cell input { width: 18px; height: 18px; cursor: pointer; accent-color: var(--accent); }
.ro-cell input:disabled { cursor: not-allowed; opacity: .45; }
.ro-group th, .ro-group td { background: var(--surface-2) !important; font-weight: 600; }
.ro-tbl th { text-transform: none; letter-spacing: normal; white-space: normal; font-size: 13.5px; color: var(--ink); }
.ro-tbl tbody .ro-fn { font-weight: 500; padding-top: 10px; padding-bottom: 10px; }
.ro-tbl tbody .ro-fn .li-sub { font-weight: 400; margin-top: 2px; }
.ro-tbl thead th .li-sub { font-size: 11.5px; }
.ro-group .ro-fn { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* HR Assistant / settings: the company logo in place of the Pulse mark */
.bot-av img.bot-logo, .mini-av img.bot-logo { width: 100%; height: 100%; object-fit: contain; background: #fff; border-radius: inherit; padding: 3px; box-sizing: border-box; }
.about-logo .brand-logo { width: 52px; height: 52px; border-radius: 16px; background: #fff; display: grid; place-items: center; overflow: hidden; }
.about-logo .brand-logo img { max-width: 44px; max-height: 44px; object-fit: contain; }
/* My requests: filters */
.rq-filters { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; padding: 14px 16px; }
.rq-row { display: grid; grid-template-columns: minmax(160px, 240px) 1fr; gap: 10px; }
@media (max-width: 640px) { .rq-row { grid-template-columns: 1fr; } }

/* internal vacancies */
.vc-card { display: flex; flex-direction: column; }

/* searchable person picker */
.pp { position: relative; }
.pp-box { display: flex; align-items: center; gap: 8px; }
.pp-box .pp-input { flex: 1; }
.pp-sel { display: inline-flex; align-items: center; gap: 8px; padding: 6px 6px 6px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); }
.pp-sel .pp-clear { border: 0; background: none; cursor: pointer; color: var(--muted); display: grid; place-items: center; padding: 2px; border-radius: 50%; }
.pp-sel .pp-clear:hover { background: var(--line); }
.pp-list { position: absolute; z-index: 20; inset-inline: 0; top: calc(100% + 4px); max-height: 260px; overflow: auto; margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); }
.pp-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; cursor: pointer; }
.pp-list li span { display: grid; min-width: 0; } .pp-list li small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-list li.on, .pp-list li:hover { background: var(--surface-2); }
.pp-list .pp-none { color: var(--muted); cursor: default; }

/* Me > Career */
.cr-timeline .tl-item { padding-bottom: 14px; }
.cr-row { display: flex; gap: 10px; align-items: flex-start; margin-top: 2px; }
.cr-btns { display: flex; gap: 2px; align-items: center; }
.goal { padding: 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.goal.done, .goal.dropped { opacity: .75; }
.goal-actions { display: flex; gap: 6px; align-items: center; justify-content: flex-end; margin-top: 10px; flex-wrap: wrap; }
.cr-closed summary { cursor: pointer; margin-top: 12px; }
.cr-pick { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.cr-pick input { margin-top: 4px; }

/* ---------- CRM & quotations console (js/crm.js) ---------- */
.crm-filters { align-items: flex-end; }
.crm-f { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.crm-f .input, .crm-f .select { min-width: 150px; }
.seg { display: flex; gap: 4px; }
.tbl tr.crm-row { cursor: pointer; }
.tbl tr.crm-row:hover td { background: var(--surface-2); }
.tbl tr.crm-due td:first-child { box-shadow: inset 3px 0 0 var(--accent-2); }
[dir="rtl"] .tbl tr.crm-due td:first-child { box-shadow: inset -3px 0 0 var(--accent-2); }
.crm-due-t { color: var(--accent-2); display: flex; align-items: center; gap: 4px; }
.tbl tr.crm-total td { background: var(--surface-2); }
.tab .count { font-size: 11px; background: var(--accent-2); color: #fff; border-radius: 20px; padding: 1px 7px; font-weight: 600; }
.crm-form { display: grid; gap: 16px; max-width: 920px; }
.crm-picked { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 14px; background: var(--accent-soft); }
.crm-cust-search { position: relative; }
.crm-cs-res:empty { display: none; }
.crm-cs-res { margin-top: 6px; border: 1px solid var(--line); border-radius: 14px; padding: 4px; max-height: 320px; overflow: auto; }
.crm-lob-pick { margin-bottom: 4px; }
.crm-covers { display: grid; gap: 12px; margin-top: 14px; }
.crm-cover { padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.crm-cover.req { border-color: var(--warn); }
.crm-cover-h { display: flex; gap: 8px; align-items: center; margin-bottom: 4px; }
.crm-cover .textarea { margin-top: 8px; min-height: 76px; }
.crm-submit { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 16px; }
.crm-route { display: flex; gap: 6px; flex-wrap: wrap; align-items: stretch; }
.crm-step { flex: 1 1 150px; display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.crm-step .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 13px; background: var(--paper-2); color: var(--ink-2); flex: none; }
.crm-step.done .n { background: var(--good); color: #fff; }
.crm-step.now { border-color: var(--accent); background: var(--accent-soft); }
.crm-step.now .n { background: var(--accent); color: var(--accent-ink); }
.crm-step.info { border-color: var(--warn); background: var(--warn-soft); }
.crm-step.info .n { background: var(--warn); color: #fff; }
.crm-step.bad { border-color: var(--bad); background: var(--bad-soft); }
.crm-step.bad .n { background: var(--bad); color: #fff; }
.crm-step.skip, .crm-step.wait { opacity: .65; }
.crm-step b { font-size: 13.5px; display: block; }
.crm-ev { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.crm-ev b { display: inline-flex; gap: 6px; align-items: center; }
.crm-note { margin-top: 6px; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); white-space: pre-wrap; font-size: 14px; }
.crm-av { width: 64px; height: 64px; font-size: 22px; background: #1D4E89; color: #fff; display: grid; place-items: center; border-radius: 50%; flex: none; }
.row4 { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.2fr; gap: 8px; margin-bottom: 8px; }
.crm-accts { max-height: 240px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; padding: 6px; }
.crm-acct { display: flex; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 8px; cursor: pointer; }
.crm-acct:hover { background: var(--surface-2); }
.crm-acct[hidden] { display: none; }
.crm-stage-row { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; margin-top: 8px; }
.crm-stage-row .remember { margin: 0 0 8px; }
.crm-cover-ed { padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; }
.chip-x { border: 0; background: none; cursor: pointer; color: inherit; display: inline-grid; place-items: center; padding: 0; margin-inline-start: 4px; }
.box-note.warn { background: var(--warn-soft); }
.v-crm .steps .step { padding-bottom: 22px; }
@media (max-width: 720px) { .row4 { grid-template-columns: 1fr 1fr; } .crm-step { flex-basis: 100%; } }
.ico.crm-up { transform: rotate(180deg); }

/* a page drawn again after a change (H.rerender) doesn't replay its entrance animations */
.app.quiet .view, .app.quiet .stagger > *, .app.quiet .meter i, .app.quiet .sparkbars i, .app.quiet .bars .b i, .app.quiet .msg { animation: none !important; }
.idle-bar { border: 1px solid var(--warn); }
.crm-reasons { display: grid; gap: 6px; }
.crm-reason { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.crm-reason:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }

/* points pop-up (web/js/fx.js) and Engage > Rewards / HR console > Points & rewards */
.pts-pops { position: fixed; z-index: 210; top: 72px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; }
.pts-pop { display: flex; align-items: center; gap: 7px; padding: 6px 13px 6px 9px; border-radius: 999px; background: var(--hero-bg); color: var(--hero-ink); box-shadow: var(--shadow-lg); font-size: 12.5px; line-height: 1.2; animation: ptsIn .22s var(--ease) both; }
.pts-pop b { font-size: 16px; font-family: var(--f-display); }
.pts-pop .pts-thumb { font-size: 18px; line-height: 1; display: inline-block; animation: ptsThumb .35s var(--ease) both; }
.pts-pop .pts-why { font-size: 11px; opacity: .75; }
.pts-pop.out { transition: opacity .3s, transform .3s; opacity: 0; transform: translateY(-8px) scale(.96); }
@keyframes ptsIn { from { opacity: 0; transform: translateY(8px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes ptsThumb { 0% { transform: rotate(-35deg) scale(.4); } 55% { transform: rotate(12deg) scale(1.25); } 100% { transform: none; } }
.rw-grid { gap: 14px; }
.rw-card { display: flex; flex-direction: column; gap: 8px; min-height: 220px; }
.rw-emoji { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 30px; background: var(--paper-2, rgba(127,127,127,.08)); }
.rw-emoji.sm { width: 36px; height: 36px; border-radius: 10px; font-size: 20px; flex: none; }
.pu-fx { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.pu-sounds .chip { cursor: pointer; }
/* HR console > Approval e-mails: the list of e-mails scrolls sideways, with arrows and a thin visible scrollbar */
.mt-kinds { display: flex; align-items: center; gap: 6px; margin-bottom: 16px; min-width: 0; }
.mt-kinds-strip { position: relative; flex: 1; min-width: 0; flex-wrap: nowrap; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.mt-kinds-strip::-webkit-scrollbar { height: 6px; }
.mt-kinds-strip::-webkit-scrollbar-thumb { background: var(--line); border-radius: 6px; }
.mt-kinds-strip .chip { flex: none; }
.mt-kinds-btn { flex: none; visibility: hidden; margin-bottom: 6px; }
.mt-kinds.can-prev .mt-kinds-btn[data-d="-1"], .mt-kinds.can-next .mt-kinds-btn[data-d="1"] { visibility: visible; }
.mt-kinds.rtl .mt-kinds-btn svg { transform: scaleX(-1); }
