/* ==========================================================================
   ADONIS · design layer
   Loaded after style.css. Calm cool-grey base with vivid monday-style status colours.
   ========================================================================== */
:root {
  /* monday-style working palette: calm cool-grey base, vivid status colours */
  --lx-bg: #F5F6FA;
  --lx-bg-2: #EEF0F5;
  --lx-card: #FFFFFF;
  --lx-line: #E6E9EF;
  --lx-line-2: #EEF0F5;
  --lx-ink: #323338;
  --lx-ink-2: #4B4E69;
  --lx-muted: #676879;
  --lx-faint: #A7A9BE;
  --lx-side: #FFFFFF;
  --lx-side-2: #F5F6FA;
  --lx-side-line: #E6E9EF;
  --lx-side-ink: #323338;
  --lx-side-muted: #8C8FA3;
  --lx-side-strong: #323338;
  /* notes, tickets, mentions */
  --lx-sea: #A25DDC;
  --lx-sea-d: #7E3BB8;
  --lx-sea-soft: #F6EFFB;
  --lx-sea-line: #DABEF1;
  --lx-pink: #FF158A;
  --lx-grey: #676879;
  --lx-grey-soft: #F5F6FA;
  --lx-grey-line: #E6E9EF;
  --lx-notes-bg: #F7F8FC;
  /* primary action colour (kept under the old token names so every component follows) */
  --lx-gold: #0073EA;
  --lx-gold-d: #0060C2;
  --lx-gold-soft: #E6F1FD;
  --lx-gold-line: #B3D4F8;
  --lx-ok: #00A862;
  --lx-ok-soft: #E5F9F1;
  --lx-warn: #B06A00;
  --lx-warn-soft: #FFF0D9;
  --lx-err: #D83A52;
  --lx-err-soft: #FDECEF;
  --lx-info: #0073EA;
  --lx-info-soft: #E6F1FD;
  /* stage colours: blue -> purple -> orange -> green */
  --st-1: #0073EA; --st-2: #579BFC; --st-3: #66CCFF; --st-4: #A25DDC; --st-5: #784BD1;
  --st-6: #FDAB3D; --st-7: #FF7575; --st-8: #FFCB00; --st-9: #9CD326; --st-10: #00C875;
  --lx-r: 14px;
  --lx-r-sm: 10px;
  --lx-shadow: 0 1px 2px rgba(50, 51, 56, .05), 0 8px 24px -14px rgba(50, 51, 56, .18);
  --lx-shadow-lg: 0 24px 60px -24px rgba(31, 42, 68, .35);
  --lx-f-ui: 'Figtree', 'Vazirmatn', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --lx-f-fa: 'Vazirmatn', 'Figtree', ui-sans-serif, system-ui, sans-serif;
  --lx-f-display: 'Figtree', 'Vazirmatn', system-ui, sans-serif;
  --lx-ease: cubic-bezier(.2, .7, .2, 1);
}

/* ── Base ─────────────────────────────────────────────────────────────── */
html, body { background: var(--lx-bg) !important; }
body {
  font-family: var(--lx-f-ui);
  color: var(--lx-ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01';
  letter-spacing: -0.003em;
}
::selection { background: #99C7F7; color: var(--lx-ink); }
:focus-visible { outline: 2px solid var(--lx-gold); outline-offset: 2px; }
.font-fa, [lang="fa"] { font-family: var(--lx-f-fa); }
/* Persian / mixed content follows its own direction paragraph by paragraph */
textarea, input[type="text"], input[type="search"], td, .lx-auto, .whitespace-pre-wrap, .whitespace-pre-line {
  unicode-bidi: plaintext;
}
input, select, textarea, button { font-family: inherit; }
.tabular, .lx-num { font-variant-numeric: tabular-nums; }

/* Scrollbars */
* { scrollbar-width: thin; scrollbar-color: #D8D0C2 transparent; }
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-thumb { background: #DDD5C7; border-radius: 9px; border: 2px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-track { background: transparent; }

/* Soften generic utility surfaces used across legacy templates */
.bg-white { background-color: var(--lx-card) !important; }
.bg-gray-50, .bg-slate-50 { background-color: #FBFAF7 !important; }
.rounded-2xl, .rounded-xl { border-radius: var(--lx-r) !important; }
.shadow, .shadow-sm, .shadow-md { box-shadow: var(--lx-shadow) !important; }
.shadow-lg, .shadow-xl, .shadow-2xl { box-shadow: var(--lx-shadow-lg) !important; }
.border-gray-100, .border-gray-200, .border-slate-100, .border-slate-200 { border-color: var(--lx-line) !important; }
.divide-gray-100 > * + *, .divide-gray-200 > * + * { border-color: var(--lx-line-2) !important; }
.gradient-bg { background: linear-gradient(135deg, #0073EA 0%, #0060C2 100%) !important; }
.card-hover:hover { transform: none; box-shadow: var(--lx-shadow); border-color: var(--lx-gold-line); }

/* Tables */
table thead th {
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase;
  color: var(--lx-muted) !important;
  background: transparent !important;
}
table tbody tr { transition: background-color .15s var(--lx-ease); }
table tbody tr:hover { background-color: #F5F8FF !important; }

/* Forms */
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"],
input[type="datetime-local"], input[type="password"], input[type="search"], select, textarea {
  border-color: var(--lx-line) !important;
  border-radius: var(--lx-r-sm) !important;
  background-color: #fff;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none !important;
  border-color: var(--lx-gold) !important;
  box-shadow: 0 0 0 3px rgba(0, 115, 234, .16) !important;
}

/* ── Shell: sidebar ───────────────────────────────────────────────────── */
#sidebar.lx-side {
  background: var(--lx-side) !important;
  border-right: 1px solid var(--lx-side-line) !important;
}
.lx-brand { display: flex; flex-direction: column; gap: 2px; text-decoration: none; }
.lx-brand-mark {
  font-family: var(--lx-f-display);
  font-weight: 500;
  font-size: 25px;
  letter-spacing: .34em;
  color: var(--lx-side-strong);
  line-height: 1.05;
}
.lx-brand-sub {
  font-size: 9.5px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--lx-gold);
  font-weight: 500;
}
.lx-brand-mono {
  display: none;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--lx-side-line);
  color: var(--lx-gold);
  font-family: var(--lx-f-display);
  font-size: 20px;
  align-items: center; justify-content: center;
}
body.sidebar-collapsed .lx-brand-mono { display: inline-flex; }
body.sidebar-collapsed .lx-brand-text { display: none; }
.lx-tenant-pills { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 14px; }
.lx-tenant-pills a {
  font-size: 10.5px; letter-spacing: .06em; font-weight: 500;
  padding: 3px 9px; border-radius: 999px;
  color: var(--lx-side-ink); border: 1px solid var(--lx-side-line);
  transition: .15s;
}
.lx-tenant-pills a:hover { border-color: var(--lx-gold-line); color: var(--lx-side-strong); }
.lx-tenant-pills a.on { background: var(--lx-gold); border-color: var(--lx-gold); color: #fff; }
.lx-tenant-name {
  margin-top: 12px; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--lx-side-muted);
}
.lx-new-lead {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 2px 6px 6px; padding: 10px 12px;
  border-radius: 999px; border: 1px solid var(--lx-gold-line); background: #fff;
  color: var(--lx-side-strong); font-size: 12.5px; font-weight: 500; letter-spacing: .04em;
  transition: .2s var(--lx-ease);
}
.lx-new-lead i { color: var(--lx-gold); font-size: 11px; }
.lx-new-lead:hover { background: var(--lx-gold); border-color: var(--lx-gold); color: #fff; }
.lx-new-lead:hover i { color: #fff; }

#sidebar .nav-section {
  background: transparent !important;
  border: 0 !important;
  margin: 18px 6px 4px !important;
  padding: 4px 8px !important;
  min-height: 0 !important;
  font-size: 10.5px !important;
  font-weight: 600 !important;
  letter-spacing: .16em !important;
  color: var(--lx-side-muted) !important;
}
#sidebar .nav-section:hover { filter: none; color: var(--lx-side-ink) !important; }
#sidebar .nav-section-mark { display: none; }
#sidebar .nav-fold-chevron { font-size: 9px; opacity: .6; }
#sidebar .sidebar-link {
  position: relative;
  border-left: 0 !important;
  margin: 1px 4px !important;
  padding: 8px 12px !important;
  border-radius: 9px !important;
  color: var(--lx-side-ink) !important;
  font-size: 13px !important;
  font-weight: 450 !important;
  letter-spacing: 0;
}
#sidebar .sidebar-link i {
  color: var(--lx-side-muted) !important;
  font-size: 12px !important;
  width: 18px !important;
  transition: color .15s;
}
#sidebar .sidebar-link:hover { background: var(--lx-side-2) !important; color: var(--lx-side-strong) !important; }
#sidebar .sidebar-link:hover i { color: var(--lx-side-ink) !important; }
#sidebar .sidebar-link.active { background: #fff !important; color: var(--lx-side-strong) !important; font-weight: 500 !important; box-shadow: 0 1px 2px rgba(50, 51, 56, .05); }
#sidebar .sidebar-link.active i { color: var(--lx-gold) !important; }
#sidebar .sidebar-link.active::before {
  content: ""; position: absolute; left: -4px; top: 9px; bottom: 9px; width: 2px;
  border-radius: 2px; background: var(--lx-gold);
}
#sidebar .sidebar-link .bg-red-500, #sidebar .sidebar-link [class*="bg-red"] { background: var(--lx-gold) !important; color: #fff !important; }
.lx-side-user { border-top: 1px solid var(--lx-side-line); }
.lx-side-user a:hover { background: var(--lx-side-2) !important; }
.lx-avatar {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--lx-gold); color: #fff;
  font-size: 12px; font-weight: 600; letter-spacing: .02em;
}
#sidebar-edge-toggle {
  border-color: var(--lx-line) !important; color: var(--lx-ink-2) !important; background: #fff !important;
}

/* ── Shell: header ────────────────────────────────────────────────────── */
.lx-top {
  background: rgba(245, 246, 250, .86) !important;
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--lx-line) !important;
  min-height: 64px;
}
.lx-top h1 { font-size: 17px !important; font-weight: 600 !important; letter-spacing: -.01em; color: var(--lx-ink) !important; }
.lx-iconbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--lx-line); background: #fff; color: var(--lx-ink-2);
  transition: .15s;
}
.lx-iconbtn:hover { border-color: var(--lx-gold-line); color: var(--lx-ink); }
.lx-search-trigger {
  display: flex; align-items: center; gap: 10px;
  width: min(380px, 38vw); height: 40px; padding: 0 8px 0 14px;
  border: 1px solid var(--lx-line); border-radius: 999px; background: #fff;
  color: var(--lx-muted); font-size: 13px; cursor: text; transition: .15s;
}
.lx-search-trigger:hover { border-color: var(--lx-gold-line); }
.lx-search-trigger .lx-st-label { flex: 1; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-kbd {
  font: 500 10.5px/1 var(--lx-f-ui); color: var(--lx-muted);
  border: 1px solid var(--lx-line); border-bottom-width: 2px; border-radius: 6px; padding: 4px 6px; background: var(--lx-bg);
}
#sidebar-width-toggle { display: none !important; }

/* Notification bell */
.ncenter-toggle {
  width: 38px !important; height: 38px !important; border-radius: 50% !important;
  border: 1px solid var(--lx-line) !important; background: #fff !important; color: var(--lx-ink-2) !important;
}
.ncenter-toggle:hover, .ncenter-toggle[aria-expanded="true"] { border-color: var(--lx-gold-line) !important; color: var(--lx-ink) !important; background: #fff !important; }
.ncenter-badge {
  background: var(--lx-sea) !important; color: #fff !important; border: 2px solid var(--lx-bg) !important;
  font-weight: 700 !important; font-family: var(--lx-f-ui) !important;
}
.ncenter-panel {
  border: 1px solid var(--lx-line) !important; border-radius: 16px !important;
  box-shadow: var(--lx-shadow-lg) !important; background: #fff !important; overflow: hidden;
}
.ncenter-head { border-bottom: 1px solid var(--lx-line-2) !important; background: #fff !important; }
.ncenter-title { font-family: var(--lx-f-ui) !important; font-weight: 600 !important; color: var(--lx-ink) !important; }
.ncenter-subtitle { color: var(--lx-muted) !important; }
.ncenter-markall { color: var(--lx-gold-d) !important; background: transparent !important; border: 0 !important; }
.ncenter-item { border-bottom: 1px solid var(--lx-line-2) !important; background: #fff !important; }
.ncenter-item:hover { background: #F5F8FF !important; }
.ncenter-item.is-read { opacity: .62; }
.ncenter-item-mention { border-left: 3px solid var(--lx-sea) !important; }
.ncenter-item-mention .ncenter-status { background: var(--lx-sea-soft) !important; color: var(--lx-sea-d) !important; }
.ncenter-item-message { font-size: 12.5px; color: var(--lx-ink-2); margin-top: 3px; line-height: 1.5; unicode-bidi: plaintext; }
.ncenter-foot a { color: var(--lx-gold-d) !important; }

/* ── Primitives ───────────────────────────────────────────────────────── */
.lx-card { background: var(--lx-card); border: 1px solid var(--lx-line); border-radius: var(--lx-r); }
.lx-eyebrow { font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--lx-muted); }
.lx-eyebrow-gold { color: var(--lx-gold-d); }
.lx-h1 { font-size: 24px; font-weight: 600; letter-spacing: -.015em; color: var(--lx-ink); line-height: 1.2; }
.lx-display { font-family: var(--lx-f-display); font-weight: 500; letter-spacing: .01em; }
.lx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  height: 38px; padding: 0 16px; border-radius: 999px;
  font-size: 13px; font-weight: 500; border: 1px solid transparent; cursor: pointer;
  transition: .18s var(--lx-ease);
}
.lx-btn:disabled { opacity: .5; cursor: default; }
.lx-btn-dark { background: var(--lx-gold); color: #fff; }
.lx-btn-dark:hover { background: var(--lx-gold-d); }
.lx-btn-dark i { color: #fff; }
.lx-btn-sea { background: var(--lx-sea); color: #fff; }
.lx-btn-sea:hover { background: var(--lx-sea-d); }
.lx-btn-line { background: #fff; color: var(--lx-ink-2); border-color: var(--lx-line); }
.lx-btn-line:hover { border-color: var(--lx-gold); color: var(--lx-ink); }
.lx-btn-ghost { background: transparent; color: var(--lx-ink-2); }
.lx-btn-ghost:hover { background: var(--lx-bg-2); }
.lx-btn-sm { height: 30px; padding: 0 12px; font-size: 12px; }
.lx-pill {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font-size: 11.5px; font-weight: 500; padding: 3px 10px; border-radius: 999px;
}
.lx-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.lx-pill-plain::before { display: none; }
.lx-pill-gold { background: var(--lx-gold-soft); color: var(--lx-gold-d); }
.lx-pill-ok { background: var(--lx-ok-soft); color: var(--lx-ok); }
.lx-pill-warn { background: var(--lx-warn-soft); color: var(--lx-warn); }
.lx-pill-err { background: var(--lx-err-soft); color: var(--lx-err); }
.lx-pill-mute { background: var(--lx-bg-2); color: var(--lx-muted); }
.lx-bar { height: 5px; border-radius: 5px; background: var(--lx-line-2); overflow: hidden; }
.lx-bar > span { display: block; height: 100%; border-radius: 5px; background: var(--lx-gold); transition: width .5s var(--lx-ease); }
.lx-bar.done > span { background: var(--lx-ok); }
.lx-link { color: var(--lx-gold-d); }
.lx-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── Overlay, drawer, palette ─────────────────────────────────────────── */
.lx-scrim {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(50, 51, 56, .38);
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  opacity: 0; transition: opacity .22s var(--lx-ease);
}
.lx-scrim.on { opacity: 1; }
.lx-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 90;
  width: min(560px, 100vw);
  background: var(--lx-bg);
  border-left: 1px solid var(--lx-line);
  box-shadow: var(--lx-shadow-lg);
  display: flex; flex-direction: column;
  transform: translateX(104%); transition: transform .32s var(--lx-ease);
}
.lx-drawer.on { transform: none; }
.lx-drawer-head {
  padding: 20px 22px 16px; background: #fff; border-bottom: 1px solid var(--lx-line);
  display: flex; gap: 14px; align-items: flex-start;
}
.lx-drawer-title { font-size: 18px; font-weight: 600; letter-spacing: -.01em; color: var(--lx-ink); line-height: 1.25; }
.lx-drawer-sub { font-size: 12.5px; color: var(--lx-muted); margin-top: 3px; }
.lx-drawer-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.lx-drawer-foot { background: #fff; border-top: 1px solid var(--lx-line); padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); }
.lx-x {
  margin-left: auto; flex-shrink: 0;
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--lx-line); background: #fff;
  color: var(--lx-ink-2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.lx-x:hover { border-color: var(--lx-gold); color: var(--lx-ink); }
.lx-back { border: 0; background: none; color: var(--lx-muted); font-size: 12px; display: inline-flex; gap: 6px; align-items: center; padding: 0; margin-bottom: 6px; cursor: pointer; }
.lx-back:hover { color: var(--lx-ink); }

.lx-palette {
  position: fixed; z-index: 95; left: 50%; top: 9vh;
  width: min(680px, calc(100vw - 24px));
  transform: translate(-50%, -8px) scale(.985); opacity: 0;
  transition: .2s var(--lx-ease);
  background: #fff; border: 1px solid var(--lx-line); border-radius: 18px;
  box-shadow: var(--lx-shadow-lg); overflow: hidden;
}
.lx-palette.on { transform: translate(-50%, 0) scale(1); opacity: 1; }
.lx-palette-input { display: flex; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 1px solid var(--lx-line-2); }
.lx-palette-input i { color: var(--lx-gold); }
.lx-palette-input input {
  flex: 1; height: 60px; border: 0 !important; box-shadow: none !important; outline: 0;
  font-size: 16.5px; color: var(--lx-ink); background: transparent; padding: 0;
}
.lx-palette-results { max-height: min(62vh, 560px); overflow-y: auto; padding: 8px; }
.lx-group-label { padding: 12px 12px 6px; }
.lx-result {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 11px 12px; border-radius: 12px; text-align: left; cursor: pointer;
  border: 0; background: transparent; color: inherit;
}
.lx-result:hover, .lx-result.sel { background: var(--lx-bg); }
.lx-result.sel { box-shadow: inset 0 0 0 1px var(--lx-gold-line); }
.lx-result-main { flex: 1; min-width: 0; }
.lx-result-name { font-weight: 600; font-size: 13.5px; letter-spacing: .02em; color: var(--lx-ink); }
.lx-result-meta { font-size: 12px; color: var(--lx-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-result-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; min-width: 120px; }
.lx-result-side .lx-bar { width: 110px; }
.lx-palette-foot { display: flex; gap: 16px; padding: 10px 18px; border-top: 1px solid var(--lx-line-2); font-size: 11.5px; color: var(--lx-muted); background: #FAFBFD; }
.lx-empty { padding: 34px 20px; text-align: center; color: var(--lx-muted); font-size: 13px; }
.lx-mono {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--lx-gold-soft); color: var(--lx-gold-d); font-size: 12px; font-weight: 600; letter-spacing: .02em;
}
.lx-mono-dark { background: var(--lx-gold); color: #fff; }
.lx-mono-lg { width: 52px; height: 52px; font-size: 16px; }

/* Quick view */
.lx-qv-section { padding: 18px 22px; border-bottom: 1px solid var(--lx-line-2); }
.lx-kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.lx-kv dt { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--lx-muted); font-weight: 600; }
.lx-kv dd { margin-top: 3px; font-size: 13.5px; color: var(--lx-ink); font-weight: 500; overflow-wrap: anywhere; }
.lx-stage-list { display: flex; flex-direction: column; }
.lx-stage-row {
  display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center;
  padding: 9px 10px; border-radius: 10px; cursor: pointer; border: 0; background: transparent; text-align: left; width: 100%;
  position: relative;
}
.lx-stage-row:hover { background: #fff; box-shadow: inset 0 0 0 1px var(--lx-line); }
.lx-stage-row::after { content: ""; position: absolute; left: 23.5px; top: 35px; bottom: -9px; width: 1px; background: var(--lx-line); }
.lx-stage-row:last-child::after { display: none; }
.lx-stage-row.completed::after { background: var(--lx-gold); }
.lx-dot {
  width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-size: 10.5px; font-weight: 600; border: 1px solid var(--lx-line); background: #fff; color: var(--lx-muted);
  position: relative; z-index: 1;
}
.completed .lx-dot, .lx-dot.completed { background: var(--lx-gold); border-color: var(--lx-gold); color: #fff; }
.current .lx-dot, .lx-dot.current { border: 1.5px solid var(--lx-gold); color: var(--lx-gold-d); box-shadow: 0 0 0 4px var(--lx-gold-soft); background: #fff; }
.lx-stage-name { font-size: 13.5px; color: var(--lx-ink); }
.pending .lx-stage-name { color: var(--lx-muted); }
.current .lx-stage-name { font-weight: 600; }
.lx-count {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--lx-muted);
  padding: 2px 8px; border-radius: 999px; background: #fff; border: 1px solid var(--lx-line);
}
.lx-count.has { color: var(--lx-sea-d); border-color: var(--lx-sea-line); background: var(--lx-sea-soft); }

/* ── Notes thread ─────────────────────────────────────────────────────── */
.lx-drawer-body { background: var(--lx-notes-bg); }
.lx-notes { padding: 18px 18px 8px; display: flex; flex-direction: column; gap: 14px; }
.lx-note { background: #fff; border: 1px solid var(--lx-grey-line); border-left: 3px solid var(--lx-sea); border-radius: 12px; padding: 14px 16px; transition: box-shadow .4s, border-color .4s; }
.lx-note.flash { border-color: var(--lx-sea); box-shadow: 0 0 0 4px var(--lx-sea-soft); }
.lx-note-head { display: flex; align-items: center; gap: 10px; }
.lx-note-head .lx-mono { width: 30px; height: 30px; font-size: 11px; background: var(--lx-sea-soft); color: var(--lx-sea-d); }
.lx-note-who { font-size: 13px; font-weight: 600; color: var(--lx-ink); }
.lx-note-when { font-size: 11.5px; color: var(--lx-muted); }
.lx-note-topic { font-size: 10.5px; color: var(--lx-sea-d); background: var(--lx-sea-soft); border-radius: 999px; padding: 1px 8px; font-weight: 500; }
.lx-note-body {
  margin-top: 8px; font-size: 13.5px; line-height: 1.65; color: var(--lx-ink-2);
  white-space: pre-wrap; overflow-wrap: anywhere; unicode-bidi: plaintext;
}
.lx-note-body.deleted { color: var(--lx-faint); font-style: italic; }
.lx-mention {
  display: inline-block; padding: 0 6px; border-radius: 6px;
  background: var(--lx-sea-soft); color: var(--lx-sea-d); font-weight: 600; white-space: nowrap;
}
.lx-mention.me { background: var(--lx-sea); color: #fff; }
.lx-note-actions { display: flex; gap: 14px; margin-top: 10px; font-size: 12px; }
.lx-note-actions button { border: 0; background: none; padding: 0; color: var(--lx-muted); cursor: pointer; }
.lx-note-actions button:hover { color: var(--lx-ink); }
.lx-note-actions .danger:hover { color: var(--lx-err); }
.lx-note-edited { font-size: 11px; color: var(--lx-faint); }
.lx-replies { margin-top: 12px; padding-left: 14px; border-left: 2px solid var(--lx-grey-line); display: flex; flex-direction: column; gap: 12px; }
.lx-reply .lx-note-head .lx-mono { width: 26px; height: 26px; font-size: 10px; }
.lx-reply .lx-note-body { margin-top: 5px; font-size: 13px; }

.lx-composer { position: relative; border: 1px solid var(--lx-grey-line); border-radius: 14px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.lx-composer:focus-within { border-color: var(--lx-sea); box-shadow: 0 0 0 3px rgba(0, 96, 194, .14); }
.lx-composer textarea {
  display: block; width: 100%; border: 0 !important; box-shadow: none !important; resize: none;
  padding: 12px 14px 4px; font-size: 13.5px; line-height: 1.6; min-height: 54px; max-height: 220px;
  background: transparent; color: var(--lx-ink); border-radius: 14px !important;
}
.lx-composer-bar { display: flex; align-items: center; gap: 8px; padding: 6px 8px 8px 12px; }
.lx-composer-hint { flex: 1; font-size: 11.5px; color: var(--lx-faint); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-composer-hint.warn { color: var(--lx-warn); }
.lx-composer.mini textarea { min-height: 40px; padding: 9px 12px 2px; font-size: 13px; }

.lx-mention-menu {
  position: absolute; left: 10px; bottom: calc(100% + 6px); z-index: 5;
  width: min(280px, calc(100% - 20px)); max-height: 240px; overflow-y: auto;
  background: #fff; border: 1px solid var(--lx-line); border-radius: 12px; box-shadow: var(--lx-shadow-lg); padding: 5px;
}
.lx-mention-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  border: 0; background: transparent; padding: 7px 8px; border-radius: 8px; font-size: 13px; color: var(--lx-ink); cursor: pointer;
}
.lx-mention-menu button .lx-mono { width: 26px; height: 26px; font-size: 10px; }
.lx-mention-menu button.sel, .lx-mention-menu button:hover { background: var(--lx-sea-soft); }
.lx-mention-menu button .lx-mono { background: var(--lx-sea-soft); color: var(--lx-sea-d); }

.lx-filter { display: flex; gap: 6px; overflow-x: auto; padding: 12px 18px 0; scrollbar-width: none; }
.lx-filter::-webkit-scrollbar { display: none; }
.lx-chip {
  flex-shrink: 0; border: 1px solid var(--lx-line); background: #fff; color: var(--lx-ink-2);
  border-radius: 999px; padding: 5px 12px; font-size: 12px; cursor: pointer; white-space: nowrap;
}
.lx-chip:hover { border-color: var(--lx-gold-line); }
.lx-chip.on { background: var(--lx-gold); border-color: var(--lx-gold); color: #fff; }
.lx-chip b { font-weight: 600; color: var(--lx-gold-d); margin-left: 4px; }
.lx-chip.on b { color: #fff; }
.lx-filter .lx-chip.on { background: var(--lx-sea); border-color: var(--lx-sea); }
.lx-filter .lx-chip b { color: var(--lx-sea-d); }
.lx-filter .lx-chip.on b { color: #fff; }

/* Toasts */
.lx-toasts { position: fixed; z-index: 120; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.lx-toast {
  pointer-events: auto; display: flex; align-items: center; gap: 14px;
  background: var(--lx-sea-d); color: #fff; border-radius: 999px; padding: 10px 10px 10px 18px;
  font-size: 13px; box-shadow: var(--lx-shadow-lg); max-width: calc(100vw - 32px);
  animation: lxToastIn .28s var(--lx-ease);
}
.lx-toast i { color: #BFD6EC; }
.lx-toast button { border: 0; background: rgba(255, 255, 255, .16); color: #fff; font-weight: 600; padding: 5px 12px; border-radius: 999px; cursor: pointer; font-size: 12px; }
.lx-toast button:hover { background: rgba(255, 255, 255, .18); }
.lx-toast.err { background: var(--lx-err); }
.lx-toast.err i { color: #fff; }
@keyframes lxToastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ── Case workspace ───────────────────────────────────────────────────── */
.lx-case-head { padding: 26px 28px 8px; }
.lx-case-name { font-size: 26px; font-weight: 600; letter-spacing: .01em; color: var(--lx-ink); line-height: 1.15; }
.lx-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 12.5px; color: var(--lx-muted); }
.lx-meta i { color: var(--lx-gold); margin-right: 6px; font-size: 11px; }
.lx-meta b { color: var(--lx-ink-2); font-weight: 500; }
.lx-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--lx-line-2); margin-top: 22px; }
.lx-fact { padding: 16px 28px; border-right: 1px solid var(--lx-line-2); min-width: 0; }
.lx-fact:last-child { border-right: 0; }
.lx-fact p:last-child { margin-top: 4px; font-size: 13.5px; font-weight: 500; color: var(--lx-ink); }
.lx-stepper { display: flex; overflow-x: auto; padding: 24px 20px 22px; border-top: 1px solid var(--lx-line-2); scrollbar-width: none; }
.lx-stepper::-webkit-scrollbar { display: none; }
.lx-step {
  flex: 1; min-width: 96px; position: relative; text-align: center; cursor: pointer;
  border: 0; background: transparent; padding: 0 4px; color: var(--lx-muted);
}
.lx-step::after { content: ""; position: absolute; top: 15px; left: calc(50% + 18px); right: calc(-50% + 18px); height: 1px; background: var(--lx-line); }
.lx-step:last-child::after { display: none; }
.lx-step.completed::after { background: var(--lx-gold); }
.lx-step .lx-dot { width: 31px; height: 31px; margin: 0 auto; font-size: 11px; transition: transform .2s var(--lx-ease); }
.lx-step:hover .lx-dot { transform: scale(1.08); }
.lx-step-label { display: block; margin-top: 9px; font-size: 11.5px; line-height: 1.3; }
.lx-step.current .lx-step-label { color: var(--lx-ink); font-weight: 600; }
.lx-step.completed .lx-step-label { color: var(--lx-ink-2); }
.lx-step.selected .lx-dot { box-shadow: 0 0 0 4px var(--lx-gold-soft), 0 0 0 5px var(--lx-gold-line); }
.lx-step-notes {
  position: absolute; top: -6px; left: calc(50% + 9px); z-index: 2;
  min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
  background: var(--lx-sea); color: #fff; font-size: 9.5px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; border: 2px solid #fff;
}
.lx-tabs { display: flex; gap: 6px; margin: 16px 20px 0; padding: 6px; background: #F1F3F8; border: 1px solid var(--lx-line-2); border-radius: 16px; overflow-x: auto; scrollbar-width: none; }
.lx-tabs::-webkit-scrollbar { display: none; }
.lx-tabs a { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 11px;
  font-size: 13.5px; font-weight: 500; color: var(--lx-muted); white-space: nowrap; transition: background .15s, color .15s, box-shadow .15s; }
.lx-tabs a i { font-size: 12.5px; opacity: .75; }
.lx-tabs a:hover { color: var(--lx-ink); background: rgba(255, 255, 255, .7); }
.lx-tabs a.on { background: #fff; color: var(--lx-gold-d); font-weight: 600; box-shadow: 0 1px 2px rgba(31, 42, 68, .08), 0 6px 16px -10px rgba(0, 96, 194, .45); }
.lx-tabs a.on i { opacity: 1; color: var(--lx-gold); }

/* Login */
.lx-login { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; background: var(--lx-bg); }
.lx-login-art {
  position: relative; overflow: hidden; background: var(--lx-side); color: var(--lx-side-strong);
  display: flex; flex-direction: column; justify-content: space-between; padding: 48px 56px;
}
.lx-login-art::before {
  content: ""; position: absolute; inset: auto -20% -35% auto; width: 70%; aspect-ratio: 1;
  border-radius: 50%; border: 1px solid rgba(0, 115, 234, .25);
}
.lx-login-art::after {
  content: ""; position: absolute; inset: auto -8% -22% auto; width: 46%; aspect-ratio: 1;
  border-radius: 50%; border: 1px solid rgba(0, 115, 234, .18);
}
.lx-login-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.lx-login-card { width: 100%; max-width: 380px; }
.lx-field label { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--lx-muted); font-weight: 600; margin-bottom: 7px; }
.lx-field input { width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--lx-line); border-radius: 12px; font-size: 14px; background: #fff; }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .lx-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lx-fact:nth-child(2) { border-right: 0; }
  .lx-fact:nth-child(-n+2) { border-bottom: 1px solid var(--lx-line-2); }
}
@media (max-width: 767px) {
  .lx-top { min-height: 58px; }
  .lx-search-trigger { width: 40px; padding: 0; justify-content: center; border-radius: 50%; }
  .lx-search-trigger .lx-st-label, .lx-search-trigger .lx-kbd { display: none; }
  .lx-drawer { width: 100vw; border-left: 0; }
  .lx-drawer-head { padding: 16px 16px 14px; }
  .lx-palette { top: 0; width: 100vw; border-radius: 0 0 18px 18px; }
  .lx-palette-results { max-height: calc(100vh - 140px); }
  .lx-palette-foot { display: none; }
  .lx-result-side { min-width: 0; }
  .lx-result-side .lx-bar { width: 64px; }
  .lx-case-head { padding: 20px 18px 4px; }
  .lx-case-name { font-size: 21px; }
  .lx-fact { padding: 14px 18px; }
  .lx-stepper { padding: 20px 8px 18px; }
  .lx-step { min-width: 84px; }
  .lx-tabs { margin: 12px 12px 0; gap: 4px; } .lx-tabs a { height: 38px; padding: 0 12px; font-size: 12.5px; }
  .lx-notes { padding: 14px 12px 6px; }
  .lx-qv-section { padding: 16px; }
  .lx-login { grid-template-columns: 1fr; }
  .lx-login-art { min-height: 220px; padding: 32px 24px; }
  main { padding-left: 14px !important; padding-right: 14px !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* misc */
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.lx-step-notes[hidden] { display: none; }
.lx-toast span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
@media (max-width: 767px) { .lx-toasts { width: calc(100vw - 32px); } .lx-toast { width: 100%; justify-content: space-between; } }

/* ── Uniform page layer: legacy templates share one look ─────────────── */
main h1.text-lg, main h1.text-xl, main h1.text-2xl, main h2.text-xl, main h2.text-2xl {
  font-size: 22px !important; font-weight: 600 !important; letter-spacing: -.012em; color: var(--lx-ink) !important;
}
main h1 > i.fas, main h1 > i.far { display: none; }
.leads-toolbar { gap: 14px !important; align-items: flex-start !important; flex-direction: column !important; margin-bottom: 6px; }
.leads-toolbar > div:first-child { align-items: baseline !important; }
.leads-filters select, .leads-filters input[type="text"], .leads-toolbar select {
  height: 36px; padding-top: 0 !important; padding-bottom: 0 !important; font-size: 12.5px !important;
  border-radius: 999px !important; background-color: #fff !important; color: var(--lx-ink-2) !important; border-color: var(--lx-line) !important;
}
.leads-filters button[type="submit"], .leads-toolbar a.bg-indigo-600, .leads-toolbar button.bg-indigo-600 { height: 36px; border-radius: 999px !important; padding-left: 16px !important; padding-right: 16px !important; }
.leads-toolbar .rounded-full.text-xs { background: var(--lx-bg-2) !important; color: var(--lx-muted) !important; }
/* buttons: square-ish legacy buttons become pills */
main a.bg-indigo-600, main button.bg-indigo-600, main a.bg-primary-600, main button.bg-primary-600, main button.gradient-bg, main a.gradient-bg {
  border-radius: 999px !important; background: var(--lx-gold) !important; color: #fff !important; box-shadow: none !important;
}
main a.bg-indigo-600:hover, main button.bg-indigo-600:hover, main a.bg-primary-600:hover, main button.bg-primary-600:hover { background: var(--lx-gold-d) !important; }
/* zebra rows: whisper, not stripes */
.even\:bg-slate-100:nth-child(even), .even\:bg-gray-100:nth-child(even), .even\:bg-gray-50:nth-child(even), .even\:bg-slate-50:nth-child(even) { background-color: #FAFBFD !important; }
/* colourful gradient avatars → quiet monograms */
.rounded-full.bg-gradient-to-br, .rounded-full.bg-gradient-to-r { background: var(--lx-gold-soft) !important; color: var(--lx-gold-d) !important; }
/* status badges keep meaning, lose loudness */
main .rounded-full.text-white[class*="bg-"]:not(.bg-gradient-to-br) { box-shadow: none !important; }
/* tabs used across lead/contract pages */
main nav a.border-b-2, main .border-b-2.border-indigo-600, main .border-b-2.border-indigo-500 { border-bottom-width: 1.5px !important; }

.leads-toolbar h1 { white-space: nowrap; }
/* near-black legacy buttons → Aegean blue (no black in the UI) */
main a.bg-slate-900, main button.bg-slate-900, main a.bg-gray-900, main button.bg-gray-900,
main a.bg-slate-800, main button.bg-slate-800, main a.bg-gray-800, main button.bg-gray-800 {
  background: var(--lx-sea) !important; color: #fff !important; border-radius: 999px !important;
}
main a.bg-slate-900:hover, main button.bg-slate-900:hover, main a.bg-gray-900:hover, main button.bg-gray-900:hover,
main a.bg-slate-800:hover, main button.bg-slate-800:hover, main a.bg-gray-800:hover, main button.bg-gray-800:hover { background: var(--lx-sea-d) !important; }
main .rounded-full.bg-slate-900:not(a):not(button), main .rounded-full.bg-slate-800:not(a):not(button) { background: var(--lx-sea-d) !important; }

/* ── Leads list (compact, no sideways scrolling) ─────────────────────── */
.ll-table { table-layout: fixed; border-collapse: collapse; }
.ll-table th { padding: 13px 12px; text-align: left; border-bottom: 1px solid var(--lx-line); white-space: nowrap; }
.ll-table td { padding: 12px 12px; border-bottom: 1px solid var(--lx-line-2); vertical-align: middle; overflow: hidden; }
.ll-row { cursor: pointer; transition: background-color .12s; height: auto !important; }
.ll-row:hover { background: #F5F8FF !important; }
.ll-row.is-overdue td:first-child { box-shadow: inset 3px 0 0 var(--lx-err); }
.ll-lead { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ll-mono { width: 34px; height: 34px; font-size: 11.5px; }
.ll-name-row { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ll-name { font-size: 13.5px; font-weight: 600; color: var(--lx-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ll-name:hover { color: var(--lx-gold-d); }
.ll-seg { font-size: 9.5px; font-weight: 600; letter-spacing: .06em; color: var(--lx-sea-d); background: var(--lx-sea-soft); padding: 1px 6px; border-radius: 6px; }
.ll-sub { display: flex; gap: 6px; flex-wrap: wrap; font-size: 11.5px; color: var(--lx-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; }
.ll-dot::before { content: "·"; margin-right: 6px; color: var(--lx-faint); }
.ll-dot { text-transform: capitalize; }
.ll-menu { margin-left: auto; opacity: .55; }
.ll-row:hover .ll-menu { opacity: 1; }
.ll-temp { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 11px; font-weight: 500; border: 1px solid transparent; cursor: pointer; white-space: nowrap; }
.ll-temp.hot { background: var(--lx-err-soft); color: var(--lx-err); }
.ll-temp.warm { background: var(--lx-warn-soft); color: var(--lx-warn); }
.ll-temp.cold { background: var(--lx-sea-soft); color: var(--lx-sea-d); }
.ll-temp.none { background: transparent; color: var(--lx-faint); border-color: var(--lx-line); }
.ll-status { display: inline-block; font-size: 11.5px; text-transform: capitalize; color: var(--lx-ink-2); background: var(--lx-bg-2); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.ll-status.st-qualified { background: var(--lx-ok-soft); color: var(--lx-ok); }
.ll-status.st-not_qualified { background: var(--lx-err-soft); color: var(--lx-err); }
.ll-status.st-contacted { background: var(--lx-sea-soft); color: var(--lx-sea-d); }
.ll-when { font-size: 11.5px; color: var(--lx-muted); white-space: nowrap; }
.ll-when.strong { color: var(--lx-ink); font-weight: 500; }
.ll-note { font-size: 12.5px; color: var(--lx-ink-2); line-height: 1.5; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; unicode-bidi: plaintext; }
.ll-note.muted, .ll-owner.muted { color: var(--lx-faint); }
.ll-fu { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.ll-fu-top { display: flex; align-items: center; gap: 8px; }
.ll-fu-add { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--lx-line); background: #fff; color: var(--lx-gold-d); font-size: 9px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.ll-fu-add:hover { border-color: var(--lx-gold); background: var(--lx-gold-soft); }
.ll-owner { font-size: 12.5px; color: var(--lx-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1180px) {
  .ll-table col:nth-child(3), .ll-table th:nth-child(3), .ll-table td:nth-child(3) { display: none; }
}
@media (max-width: 900px) {
  .ll-table thead { display: none; }
  .ll-table, .ll-table tbody { display: block; }
  .ll-table colgroup { display: none; }
  .ll-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; padding: 14px 16px 14px 44px; position: relative; border-bottom: 1px solid var(--lx-line-2); }
  .ll-row td { display: block !important; padding: 0; border: 0; overflow: visible; min-width: 0; }
  .ll-row td:first-child { position: absolute; left: 14px; top: 20px; }
  .ll-row td:nth-child(2), .ll-row td:nth-child(5) { grid-column: 1 / -1; }
  .ll-row.is-overdue td:first-child { box-shadow: none; }
  .ll-row.is-overdue { box-shadow: inset 3px 0 0 var(--lx-err); }
}

/* ── Lead story panel ───────────────────────────────────────────────── */
.ls-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 18px 18px 6px; }
.ls-card { background: #fff; border: 1px solid var(--lx-line); border-radius: 14px; padding: 14px 16px; min-width: 0; }
.ls-next.overdue { border-color: #F4B4BE; box-shadow: inset 3px 0 0 var(--lx-err); }
.ls-next.today { box-shadow: inset 3px 0 0 var(--lx-warn); }
.ls-big { font-size: 15px; font-weight: 600; color: var(--lx-ink); margin: 6px 0 4px; }
.ls-meta { font-size: 12px; color: var(--lx-muted); }
.ls-text { font-size: 13px; color: var(--lx-ink-2); line-height: 1.6; margin-top: 6px; white-space: pre-wrap; overflow-wrap: anywhere; unicode-bidi: plaintext; }
.ls-facts { padding: 14px 18px; margin: 0; }
.ls-section { padding: 6px 18px 18px; }
.ls-timeline { list-style: none; margin: 0; padding: 0; }
.ls-ev { display: grid; grid-template-columns: 30px 1fr; gap: 12px; position: relative; padding-bottom: 16px; }
.ls-ev::before { content: ""; position: absolute; left: 14.5px; top: 30px; bottom: 0; width: 1px; background: var(--lx-gold-line); }
.ls-ev:last-child::before { display: none; }
.ls-dot { width: 30px; height: 30px; border-radius: 50%; background: var(--lx-gold-soft); color: var(--lx-gold-d); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; position: relative; z-index: 1; }
.ls-ev-body { background: #fff; border: 1px solid var(--lx-line); border-radius: 12px; padding: 10px 14px; min-width: 0; }
.ls-ev-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.ls-ev-head b { font-size: 13px; font-weight: 600; color: var(--lx-ink); }
.ls-ev-head span { font-size: 11.5px; color: var(--lx-muted); }
.ls-next-line { margin-top: 6px; color: var(--lx-gold-d); }
@media (max-width: 520px) { .ls-pair { grid-template-columns: 1fr; padding: 14px 12px 4px; } .ls-section, .ls-facts { padding-left: 12px; padding-right: 12px; } }

/* ── Adonis logo ─────────────────────────────────────────────────────── */
.lx-logo { display: block; width: 100%; max-width: 196px; height: auto; }
.lx-logo-mark { display: none; width: 40px; height: auto; margin: 0 auto; }
body.sidebar-collapsed .lx-logo { display: none; }
body.sidebar-collapsed .lx-logo-mark { display: block; }
body.sidebar-collapsed .lx-brand { align-items: center; }
.lx-top-logo img { height: 34px; width: auto; display: block; }

/* ── Smart search field (all customer lists) ────────────────────────── */
.lx-ss { position: relative; display: flex; align-items: center; width: 100%; max-width: 720px; height: 54px;
  background: #fff; border: 1.5px solid var(--lx-gold); border-radius: 16px; padding: 0 6px 0 14px; gap: 10px;
  box-shadow: 0 0 0 5px rgba(0, 115, 234, .10), 0 6px 18px -10px rgba(0, 96, 194, .45); transition: box-shadow .18s, border-color .18s; }
.lx-ss:focus-within { border-color: var(--lx-gold-d); box-shadow: 0 0 0 6px rgba(0, 115, 234, .20), 0 10px 26px -12px rgba(0, 96, 194, .55); }
.lx-ss-icon { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  background: var(--lx-gold-soft); color: var(--lx-gold-d); font-size: 14px; }
.lx-ss.busy .lx-ss-icon { animation: lxPulse 1s ease-in-out infinite; }
@keyframes lxPulse { 50% { background: #99C7F7; } }
.lx-ss input[data-lx-ss] { flex: 1; min-width: 0; height: 100%; border: 0 !important; box-shadow: none !important; outline: 0 !important;
  background: transparent !important; font-size: 15.5px !important; color: var(--lx-ink) !important; padding: 0 !important; border-radius: 0 !important; }
.lx-ss input[data-lx-ss]::placeholder { color: var(--lx-faint); }
.lx-ss-btn { flex-shrink: 0; height: 40px; padding: 0 22px; border-radius: 12px; border: 0; cursor: pointer;
  background: var(--lx-gold); color: #fff; font-size: 14px; font-weight: 600; letter-spacing: .01em; display: inline-flex; align-items: center; gap: 8px; }
.lx-ss-btn:hover { background: var(--lx-gold-d); }
.lx-ss-clear { flex-shrink: 0; color: var(--lx-faint); font-size: 12.5px; padding: 0 6px; }
.lx-ss-clear:hover { color: var(--lx-ink); }
.lx-ss-menu { position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--lx-line);
  border-radius: 16px; box-shadow: var(--lx-shadow-lg); padding: 6px; max-height: min(60vh, 460px); overflow-y: auto; }
.lx-ss-item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 0; background: transparent;
  padding: 10px 12px; border-radius: 12px; cursor: pointer; color: inherit; }
.lx-ss-item.sel { background: var(--lx-bg); box-shadow: inset 0 0 0 1px var(--lx-gold-line); }
.lx-ss-mono { width: 36px; height: 36px; font-size: 12px; }
.lx-ss-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lx-ss-name { font-size: 14px; font-weight: 600; color: var(--lx-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-ss-name mark { background: var(--lx-gold-soft); color: var(--lx-gold-d); border-radius: 4px; padding: 0 1px; }
.lx-ss-meta, .lx-ss-hint { font-size: 12px; color: var(--lx-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-ss-hint { color: var(--lx-gold-d); }
.lx-ss-badge { flex-shrink: 0; font-size: 11px; font-weight: 500; color: var(--lx-gold-d); background: var(--lx-gold-soft); padding: 3px 10px; border-radius: 999px; max-width: 170px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-ss-go { color: var(--lx-faint); font-size: 11px; }
.lx-ss-item.sel .lx-ss-go { color: var(--lx-gold-d); }
.lx-ss-empty { padding: 18px 14px; font-size: 13px; color: var(--lx-muted); text-align: center; }
.lx-ss-row { width: 100%; flex-basis: 100%; margin-bottom: 4px; }
@media (max-width: 640px) {
  .lx-ss { height: 50px; padding-left: 10px; }
  .lx-ss-btn { padding: 0 14px; }
  .lx-ss-btn span { display: none; }
  .lx-ss-badge { display: none; }
}

/* ── Departments: each sidebar section has its own colour ─────────────
   CRM = Aegean blue · Clients = champagne gold · Customer Service = olive
   Attendance = terracotta · Education = plum · Channels/Settings = grey */
#sidebar details.nav-fold { --dept: #676879; --dept-d: #4F565F; --dept-soft: #EEF0F2; --dept-tint: rgba(103, 104, 121, .06);
  margin: 10px 6px 4px; border-radius: 16px; transition: background .2s; }
#sidebar details.nav-fold:has(> .nav-section-crm) { --dept: #0073EA; --dept-d: #0060C2; --dept-soft: #E6F1FD; --dept-tint: rgba(0, 115, 234, .06); }
#sidebar details.nav-fold:has(> .nav-section-clients) { --dept: #A25DDC; --dept-d: #7E3BB8; --dept-soft: #F3E8FB; --dept-tint: rgba(162, 93, 220, .06); }
#sidebar details.nav-fold:has(> .nav-section-kleidi) { --dept: #E8A33A; --dept-d: #A86A12; --dept-soft: #FDF1DC; --dept-tint: rgba(232, 163, 58, .08); }
#sidebar details.nav-fold:has(> .nav-section-service) { --dept: #00C875; --dept-d: #00894F; --dept-soft: #E0F8EE; --dept-tint: rgba(0, 200, 117, .07); }
#sidebar details.nav-fold:has(> .nav-section-attendance) { --dept: #E2445C; --dept-d: #B4233A; --dept-soft: #FDE8EC; --dept-tint: rgba(226, 68, 92, .06); }
#sidebar details.nav-fold:has(> .nav-section-education) { --dept: #FF158A; --dept-d: #C40C68; --dept-soft: #FFE8F3; --dept-tint: rgba(255, 21, 138, .06); }
#sidebar details.nav-fold[open] { background: var(--dept-tint); padding-bottom: 6px; }
#sidebar .nav-section {
  margin: 0 !important; padding: 10px 10px !important; border-radius: 14px !important;
  background: var(--dept-soft) !important; color: var(--dept-d) !important;
  font-size: 12.5px !important; font-weight: 700 !important; letter-spacing: .07em !important; gap: 10px !important;
}
#sidebar .nav-section:hover { filter: brightness(.98); color: var(--dept-d) !important; }
#sidebar .nav-section .nav-section-mark {
  display: inline-flex !important; align-items: center; justify-content: center; flex-shrink: 0;
  width: 30px; height: 30px; border-radius: 10px; background: var(--dept); color: #fff !important; font-size: 12px !important;
  box-shadow: 0 4px 10px -4px var(--dept);
}
#sidebar .nav-section-title { display: flex; flex-direction: column; line-height: 1.15; }
#sidebar .nav-section-title small { font-size: 10px; font-weight: 500; letter-spacing: .02em; text-transform: none; color: var(--dept); opacity: .85; margin-top: 2px; }
#sidebar .nav-fold-chevron { color: var(--dept-d); }
#sidebar details.nav-fold .nav-fold-body { padding: 6px 4px 0 6px !important; }
#sidebar details.nav-fold .sidebar-link i { color: var(--dept) !important; opacity: .75; }
#sidebar details.nav-fold .sidebar-link.active { background: #fff !important; box-shadow: 0 1px 3px rgba(50, 51, 56, .08); }
#sidebar details.nav-fold .sidebar-link.active i { color: var(--dept) !important; opacity: 1; }
#sidebar details.nav-fold .sidebar-link.active::before { background: var(--dept) !important; left: -2px; }
body.sidebar-collapsed #sidebar details.nav-fold { margin: 6px 4px; }

/* page header shows which department you are in */
body[data-dept] { --dept: #676879; --dept-soft: #EEF0F2; }
body[data-dept="crm"] { --dept: #0060C2; --dept-soft: #E6F1FD; }
body[data-dept="clients"] { --dept: #7E3BB8; --dept-soft: #F3E8FB; }
body[data-dept="service"] { --dept: #00894F; --dept-soft: #E0F8EE; }
body[data-dept="kleidi"] { --dept: #A86A12; --dept-soft: #FDF1DC; }
body[data-dept="attendance"] { --dept: #B4233A; --dept-soft: #FDE8EC; }
body[data-dept="education"] { --dept: #C40C68; --dept-soft: #FFE8F3; }
body[data-dept] .lx-top { box-shadow: inset 0 3px 0 var(--dept); }
.lx-dept-chip { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; height: 26px; padding: 0 11px; border-radius: 999px;
  background: var(--dept-soft); color: var(--dept); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.lx-dept-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dept); }
@media (max-width: 767px) { .lx-dept-chip { display: none; } }
#sidebar .lx-personal-link { margin: 0 0 6px !important; color: var(--lx-side-strong) !important; background: #fff !important; border: 1px solid var(--lx-side-line); }
#sidebar .lx-personal-link i { color: #E2445C !important; }
body.sidebar-collapsed #sidebar .lx-personal-link span { display: none; }

/* prefixed phone inputs (Iran / Greece / landline) */
.ph { display: flex; align-items: stretch; height: 40px; border: 1px solid var(--lx-line); border-radius: 10px; background: #fff; overflow: hidden; }
.ph:focus-within { border-color: var(--lx-gold); box-shadow: 0 0 0 3px rgba(0, 115, 234, .16); }
.ph-pre { display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; background: var(--lx-bg-2); color: var(--lx-ink-2); font-size: 13px; border-right: 1px solid var(--lx-line); white-space: nowrap; user-select: none; }
.ph input, .ph select { border: 0 !important; box-shadow: none !important; height: 100% !important; border-radius: 0 !important; }
.ph select.ph-cc { width: auto !important; padding: 0 6px 0 10px; background: var(--lx-bg-2) !important; border-right: 1px solid var(--lx-line) !important; font-size: 13px; flex-shrink: 0; }
.ph input { flex: 1; min-width: 0; padding: 0 12px; font-variant-numeric: tabular-nums; }
.lx-phone { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lx-exp { font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 12.5px; color: var(--lx-ink-2); }
.lx-exp.soon { color: var(--lx-warn); font-weight: 600; }
.lx-exp.expired { color: var(--lx-err); font-weight: 600; }

/* ── Colourful working palette (monday-style) ───────────────────────── */
/* stage colours along the timeline: blue → purple → orange → green */
.lx-stepper .lx-step:nth-child(1), .lx-stage-list .lx-stage-row:nth-child(1) { --c: var(--st-1); --n: var(--st-2); }
.lx-stepper .lx-step:nth-child(2), .lx-stage-list .lx-stage-row:nth-child(2) { --c: var(--st-2); --n: var(--st-3); }
.lx-stepper .lx-step:nth-child(3), .lx-stage-list .lx-stage-row:nth-child(3) { --c: var(--st-3); --n: var(--st-4); }
.lx-stepper .lx-step:nth-child(4), .lx-stage-list .lx-stage-row:nth-child(4) { --c: var(--st-4); --n: var(--st-5); }
.lx-stepper .lx-step:nth-child(5), .lx-stage-list .lx-stage-row:nth-child(5) { --c: var(--st-5); --n: var(--st-6); }
.lx-stepper .lx-step:nth-child(6), .lx-stage-list .lx-stage-row:nth-child(6) { --c: var(--st-6); --n: var(--st-7); }
.lx-stepper .lx-step:nth-child(7), .lx-stage-list .lx-stage-row:nth-child(7) { --c: var(--st-7); --n: var(--st-8); }
.lx-stepper .lx-step:nth-child(8), .lx-stage-list .lx-stage-row:nth-child(8) { --c: var(--st-8); --n: var(--st-9); }
.lx-stepper .lx-step:nth-child(9), .lx-stage-list .lx-stage-row:nth-child(9) { --c: var(--st-9); --n: var(--st-10); }
.lx-stepper .lx-step:nth-child(10), .lx-stage-list .lx-stage-row:nth-child(10) { --c: var(--st-10); --n: var(--st-10); }
.lx-stepper.all-done .lx-step, .lx-stage-list.all-done .lx-stage-row { --c: var(--st-10); --n: var(--st-10); }
.lx-step::after { height: 4px !important; border-radius: 4px; top: 14px !important; background: var(--lx-line-2) !important; }
.lx-step.completed::after { background: linear-gradient(90deg, var(--c), var(--n)) !important; }
.lx-step .lx-dot { border-width: 2px; }
.lx-step.completed .lx-dot, .lx-stage-row.completed .lx-dot { background: var(--c) !important; border-color: var(--c) !important; color: #fff !important; }
.lx-step.current .lx-dot, .lx-stage-row.current .lx-dot { border-color: var(--c) !important; color: var(--c) !important; box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 18%, transparent) !important; }
.lx-step.current .lx-step-label { color: var(--lx-ink); }
.lx-stage-row::after { width: 2px; }
.lx-stage-row.completed::after { background: var(--c) !important; }
/* progress bars: blue → purple → orange → green; finished files are fully green */
.lx-bar > span { background: linear-gradient(90deg, var(--st-1), var(--st-4) 45%, var(--st-6) 75%, var(--st-9)); }
.lx-bar.done > span { background: var(--st-10); }
/* stage cells in client lists (solid, like a status column) */
.lx-stagepill { display: inline-flex; align-items: center; justify-content: center; max-width: 100%; padding: 5px 12px; border-radius: 6px;
  font-size: 12px; font-weight: 600; color: #fff; background: var(--lx-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-contract_signed { background: var(--st-1); } .sp-poa { background: var(--st-2); } .sp-greek_sim { background: var(--st-3); }
.sp-afm { background: var(--st-4); } .sp-bank_account { background: var(--st-5); } .sp-property_contract { background: var(--st-6); }
.sp-immigration_application { background: var(--st-7); } .sp-white_paper { background: var(--st-8); color: #4D3B00; }
.sp-biometrics { background: var(--st-9); } .sp-residence_card { background: #33D390; } .sp-done { background: var(--st-10); }
.sp-none { background: var(--lx-bg-2); color: var(--lx-muted); }
/* expiry warnings */
.lx-exp.soon { background: #FFF0D9; color: #B06A00; padding: 3px 8px; border-radius: 6px; }
.lx-exp.expired { background: #FDE8EC; color: #C42F47; padding: 3px 8px; border-radius: 6px; }
/* notes: each author has a colour; mentions are pink */
.lx-note { border-left: 4px solid var(--nc, var(--lx-sea)) !important; border-color: color-mix(in srgb, var(--nc, var(--lx-sea)) 28%, #fff);
  background: color-mix(in srgb, var(--nc, var(--lx-sea)) 5%, #fff) !important; }
.lx-reply { border-radius: 10px; }
.lx-mention { background: #FFE8F3 !important; color: #C40C68 !important; }
.lx-mention.me { background: var(--lx-pink) !important; color: #fff !important; }
.lx-btn-pink { background: var(--lx-pink); color: #fff; }
.lx-btn-pink:hover { background: #D90F74; }
.lx-note-topic { font-weight: 700; }
/* primary buttons and links */
.lx-btn-dark { background: #0073EA; color: #fff; }
.lx-btn-dark:hover { background: #0060C2; }
.ncenter-badge { background: #E2445C !important; }
.gradient-bg { background: linear-gradient(120deg, #0073EA 0%, #6C4FD8 55%, #A25DDC 100%) !important; }
#sidebar .lx-personal-link i { color: #E2445C !important; }
/* dashboard tiles get a colour edge */
main .grid > a.card-hover { position: relative; overflow: hidden; }
main .grid > a.card-hover::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; }
main .grid > a.card-hover:nth-child(4n+1)::before { background: #0073EA; }
main .grid > a.card-hover:nth-child(4n+2)::before { background: #00C875; }
main .grid > a.card-hover:nth-child(4n+3)::before { background: #A25DDC; }
main .grid > a.card-hover:nth-child(4n+4)::before { background: #FDAB3D; }
[data-lx-tabpanel] { transition: opacity .15s ease; }
[data-lx-tabpanel].lx-swapping { opacity: .45; pointer-events: none; }

/* ── custom dropdown (relationship picker) ─────────────────────────── */
.lx-sel { position: relative; }
.lx-sel-native { position: absolute !important; opacity: 0; pointer-events: none; width: 1px !important; height: 1px !important; }
.lx-sel-btn { display: flex; align-items: center; gap: 9px; width: 100%; height: 38px; padding: 0 10px; border: 1px solid var(--lx-line); border-radius: 9px;
  background: #fff; font-size: 13px; color: var(--lx-ink); text-align: left; transition: border-color .15s, box-shadow .15s; }
.lx-sel-btn:hover { border-color: #B3D4F8; }
.lx-sel.open .lx-sel-btn, .lx-sel-btn:focus-visible { border-color: var(--lx-gold); box-shadow: 0 0 0 3px rgba(0, 115, 234, .15); outline: none; }
.lx-sel-ic { width: 22px; height: 22px; border-radius: 7px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 10.5px; }
.lx-sel-tx { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.lx-sel-chev { color: var(--lx-faint); font-size: 10px; transition: transform .15s; }
.lx-sel.open .lx-sel-chev { transform: rotate(180deg); }
.lx-sel-menu { position: absolute; z-index: 70; top: calc(100% + 6px); left: 0; min-width: 100%; width: max-content; max-width: 280px;
  background: #fff; border: 1px solid var(--lx-line); border-radius: 12px; box-shadow: 0 16px 40px -14px rgba(31, 42, 68, .35); padding: 6px;
  animation: lxSelIn .14s ease-out; }
@keyframes lxSelIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.lx-sel-opt { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: transparent; padding: 8px 10px; border-radius: 8px;
  font-size: 13.5px; color: var(--lx-ink); text-align: left; cursor: pointer; }
.lx-sel-opt:hover, .lx-sel-opt.sel { background: var(--lx-bg); }
.lx-sel-opt.on { font-weight: 600; }
.lx-sel-check { margin-left: auto; color: var(--lx-gold); font-size: 11px; }
/* relationship chip in the people table */
.lx-role { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; color: var(--rc); }
.lx-role i { font-size: 10px; }

/* ── Bell: small corner badge, tabs, documents section ─────────────── */
.ncenter-toggle { overflow: visible !important; }
.ncenter-badge {
  top: -5px !important; right: -7px !important; left: auto !important;
  min-width: 19px !important; height: 19px !important; padding: 0 5px !important; line-height: 15px !important;
  font-size: 10px !important; letter-spacing: -.02em; border-radius: 999px !important;
  background: #E2445C !important; border: 2px solid #fff !important; box-shadow: 0 2px 6px -2px rgba(226, 68, 92, .6);
  pointer-events: none;
}
.ncenter-panel { width: min(26rem, calc(100vw - 1.5rem)) !important; max-height: min(78vh, 40rem) !important; }
.ncenter-list { max-height: min(60vh, 30rem) !important; padding: 8px !important; overflow-y: auto !important; overscroll-behavior: contain; }
.ncenter-earlier { display: block; width: 100%; margin-top: 4px; padding: 10px; border: 0; border-radius: 10px; background: #F4F6FB; font-size: 12.5px; font-weight: 600; color: #0060C2; cursor: pointer; }
.ncenter-earlier:hover { background: #E7EEF9; }
.ncenter-earlier:disabled { color: #8C8FA3; cursor: wait; }
.ncenter-tabs { display: flex; gap: 4px; padding: 8px 10px; border-bottom: 1px solid var(--lx-line-2); background: #fff; overflow-x: auto; }
.ncenter-tabs button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 999px; border: 0; background: transparent;
  font-size: 12px; font-weight: 600; color: var(--lx-muted); white-space: nowrap; cursor: pointer; }
.ncenter-tabs button:hover { background: var(--lx-bg); color: var(--lx-ink); }
.ncenter-tabs button.on { background: var(--lx-ink); color: #fff; }
.ncenter-tabs button span { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #EEF0F5; color: var(--lx-ink-2); font-size: 10.5px; line-height: 18px; text-align: center; }
.ncenter-tabs button.on span { background: rgba(255,255,255,.22); color: #fff; }
.ncd { border-radius: 14px; border: 1px solid var(--dc-line); background: var(--dc-bg); margin-bottom: 8px; overflow: hidden; }
.ncd-expired { --dc: #E2445C; --dc-bg: #FFF6F7; --dc-line: #F8C9D0; }
.ncd-soon { --dc: #FDAB3D; --dc-bg: #FFFAF2; --dc-line: #FBDDB0; }
.ncd-head { display: flex; align-items: center; gap: 10px; padding: 11px 12px 9px; }
.ncd-ic { width: 30px; height: 30px; border-radius: 9px; background: var(--dc); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; }
.ncd-title { flex: 1; min-width: 0; }
.ncd-title b { display: block; font-size: 13px; color: var(--lx-ink); }
.ncd-title small { display: block; font-size: 11px; color: var(--lx-muted); line-height: 1.35; }
.ncd-count { min-width: 26px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--dc); color: #fff; font-size: 11.5px; font-weight: 700; line-height: 22px; text-align: center; }
.ncd-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-top: 1px solid var(--dc-line); background: #fff; text-decoration: none; }
.ncd-item:hover { background: #FAFBFD; }
.ncd-main { flex: 1; min-width: 0; }
.ncd-main b { display: block; font-size: 12.5px; font-weight: 600; color: var(--lx-ink); letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ncd-main small { display: block; font-size: 11px; color: var(--lx-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ncd-when { font-size: 11px; font-weight: 600; color: var(--dc); white-space: nowrap; }
.ncd-soon .ncd-when { color: #C77C0E; }
.ncd-more { display: block; width: 100%; padding: 9px; border: 0; border-top: 1px solid var(--dc-line); background: transparent; font-size: 12px; font-weight: 600; color: var(--dc); cursor: pointer; }
.ncd-soon .ncd-more { color: #C77C0E; }
.ncd-more:hover { background: #fff; }
.ncenter-tabs button span:empty { display: none; }

/* ── Stage details in the drawer ─────────────────────────────────────── */
.lx-sd { margin: 0 0 16px; border: 1px solid var(--lx-line); border-radius: 16px; background: #fff; padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; transition: opacity .15s; }
.lx-sd.busy { opacity: .55; pointer-events: none; }
.lx-sd-load { font-size: 12.5px; color: var(--lx-muted); }
.lx-sd-head { display: flex; align-items: center; justify-content: space-between; }
.lx-sd-head b { font-size: 13px; color: var(--lx-ink); }
.lx-sd-edit { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--lx-line); background: #fff; border-radius: 999px; height: 28px; padding: 0 11px; font-size: 12px; font-weight: 600; color: var(--lx-gold-d); cursor: pointer; }
.lx-sd-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; margin: 0; }
.lx-sd-grid dt { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--lx-muted); font-weight: 600; }
.lx-sd-grid dd { margin: 3px 0 0; font-size: 14px; font-weight: 600; color: var(--lx-ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.lx-sd-grid dd.empty { color: var(--lx-faint); font-weight: 500; }
.lx-sd-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; align-items: end; }
.lx-sd-f span { display: block; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--lx-muted); font-weight: 600; margin-bottom: 4px; }
.lx-sd-f input { width: 100%; height: 38px; padding: 0 10px; border: 1px solid var(--lx-line); border-radius: 9px; font-size: 13px; }
.lx-sd-ph { display: flex; align-items: stretch; }
.lx-sd-ph b { display: flex; align-items: center; padding: 0 10px; border: 1px solid var(--lx-line); border-right: 0; border-radius: 9px 0 0 9px; background: #F6F7FB; font-size: 13px; font-weight: 600; color: var(--lx-ink-2); white-space: nowrap; }
.lx-sd-f .lx-sd-ph input { border-radius: 0 9px 9px 0; min-width: 0; }
.lx-sd-docs { display: flex; flex-direction: column; gap: 6px; }
.lx-sd-none { font-size: 12.5px; color: var(--lx-faint); }
.lx-sd-doc { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--lx-line-2); border-radius: 12px; background: #FAFBFD; }
.lx-sd-ic { width: 32px; height: 32px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; background: #EEF0F5; color: #676879; }
.lx-sd-ic.pdf { background: #FDE8EC; color: #E2445C; }
.lx-sd-ic.image { background: #E6F1FD; color: #0073EA; }
.lx-sd-dm { flex: 1; min-width: 0; }
.lx-sd-dm b { display: block; font-size: 12.5px; color: var(--lx-ink); }
.lx-sd-dm small { display: block; font-size: 11px; color: var(--lx-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-sd-btn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid #B3D4F8; background: #fff; color: #0060C2; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.lx-sd-btn:hover { background: #E6F1FD; }
.lx-sd-up { display: flex; flex-direction: column; gap: 6px; border-top: 1px dashed var(--lx-line); padding-top: 12px; }
.lx-sd-slot { position: relative; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1.5px dashed #C9CCD8; border-radius: 12px; cursor: pointer; color: var(--lx-muted); }
.lx-sd-slot:hover { border-color: var(--lx-gold); color: var(--lx-gold-d); }
.lx-sd-slot input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.lx-sd-sl { flex: 1; min-width: 0; }
.lx-sd-sl b { display: block; font-size: 12.5px; color: var(--lx-ink); }
.lx-sd-sl small { font-size: 11px; }
.lx-sd-fname { font-size: 11.5px; font-weight: 600; max-width: 150px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-sd-up .lx-btn { align-self: flex-end; }
@media (max-width: 520px) { .lx-sd-grid, .lx-sd-form { grid-template-columns: 1fr; } }
/* document viewer */
.lx-dv { position: fixed; inset: 0; z-index: 200; background: rgba(20, 22, 38, .62); display: flex; flex-direction: column; padding: 24px; gap: 12px; }
.lx-dv-bar { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 14px; padding: 10px 12px 10px 16px; }
.lx-dv-title { flex: 1; min-width: 0; }
.lx-dv-title b { display: block; font-size: 14px; color: var(--lx-ink); }
.lx-dv-title small { display: block; font-size: 11.5px; color: var(--lx-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-dv-x { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--lx-line); background: #fff; cursor: pointer; }
.lx-dv-body { flex: 1; min-height: 0; background: #fff; border-radius: 14px; overflow: auto; display: flex; align-items: center; justify-content: center; }
.lx-dv-frame { width: 100%; height: 100%; border: 0; }
.lx-dv-img { max-width: 100%; max-height: 100%; object-fit: contain; }
@media (max-width: 600px) { .lx-dv { padding: 10px; } .lx-dv-bar { flex-wrap: wrap; } }

/* ── Team Board card drawer ──────────────────────────────────────────── */
.lx-cd { display: flex; flex-direction: column; gap: 12px; margin-bottom: 8px; transition: opacity .15s; }
.lx-cd.busy { opacity: .6; pointer-events: none; }
.lx-cd-title { width: 100%; border: 1px solid transparent; border-radius: 10px; padding: 6px 8px; font-size: 18px; font-weight: 700; color: var(--lx-ink); resize: none; background: transparent; field-sizing: content; }
.lx-cd-title:hover, .lx-cd-title:focus { border-color: var(--lx-line); background: #fff; outline: none; }
.lx-cd-by { display: flex; align-items: center; gap: 8px; margin: -2px 8px 4px; font-size: 12.5px; color: var(--lx-ink-2); flex-wrap: wrap; }
.lx-cd-by .lx-mono { width: 26px; height: 26px; font-size: 10px; }
.lx-cd-by b { font-weight: 700; color: var(--lx-ink); }
.lx-cd-by small { color: var(--lx-muted); font-size: 11.5px; }
.lx-cd-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lx-cd-f > span { display: block; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--lx-muted); font-weight: 600; margin-bottom: 5px; }
.lx-cd-in { width: 100%; height: 38px; padding: 0 10px; border: 1px solid var(--lx-line); border-radius: 9px; font-size: 13px; background: #fff; }
.lx-cd-warn { color: #C42F47; font-weight: 600; font-size: 11px; }
.lx-cd-prio, .lx-cd-mem { display: flex; flex-wrap: wrap; gap: 6px; }
.lx-cd-pbtn { height: 30px; padding: 0 12px; border-radius: 999px; border: 1.5px solid color-mix(in srgb, var(--pc) 40%, #fff); background: #fff; color: var(--pc); font-size: 12px; font-weight: 700; cursor: pointer; }
.lx-cd-pbtn.on { background: var(--pc); color: #fff; border-color: var(--pc); }
.lx-cd-m { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px 0 4px; border-radius: 999px; border: 1px solid var(--lx-line); background: #fff; font-size: 12.5px; color: var(--lx-ink-2); cursor: pointer; }
.lx-cd-m .lx-mono { width: 24px; height: 24px; font-size: 9.5px; }
.lx-cd-m.on { border-color: #0073EA; background: #E6F1FD; color: #0060C2; font-weight: 600; }
.lx-cd-desc { width: 100%; border: 1px solid var(--lx-line); border-radius: 10px; padding: 9px 11px; font-size: 13px; resize: vertical; min-height: 70px; }
.lx-cd-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.lx-cd-foot small { font-size: 11.5px; color: var(--lx-muted); }
.lx-cd-donebtn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 20px; border-radius: 999px; border: 0; background: #00C875; color: #fff; font-weight: 700; font-size: 14px; cursor: pointer; box-shadow: 0 8px 18px -10px #00C875; }
.lx-cd-donebtn:hover { background: #00A35C; }
.lx-cd-done { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px; background: #E0F8EE; color: #00894F; font-size: 13px; font-weight: 600; }
.lx-cd-sep { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--lx-line-2); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--lx-muted); font-weight: 700; }
@media (max-width: 520px) { .lx-cd-row { grid-template-columns: 1fr; } }
#sidebar details.nav-fold:has(> .nav-section-team) { --dept: #08AFCD; --dept-d: #067F96; --dept-soft: #E0F6FA; --dept-tint: rgba(8, 175, 205, .06); }
.ncenter-item-task { border-left: 3px solid #08AFCD !important; }
.ncenter-item-task .ncenter-status { background: #E0F6FA !important; color: #067F96 !important; }
.lx-drawer-body > .lx-cd { margin: 14px 18px 4px; }
.lx-drawer-body > .lx-sd { margin: 14px 18px 16px; }
.lx-sd-complete { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 44px; border-radius: 12px; border: 0;
  background: #00C875; color: #fff; font-weight: 700; font-size: 14px; cursor: pointer; box-shadow: 0 10px 22px -12px #00C875; }
.lx-sd-complete:hover { background: #00A35C; }
.lx-sd-status { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; font-size: 12.5px; font-weight: 600; }
.lx-sd-status.done { background: #E0F8EE; color: #00894F; }
.lx-sd-status.wait { background: #F1F3F8; color: var(--lx-muted); }
.ncenter-item-update { border-left: 3px solid #00C875 !important; }
.ncenter-item-update .ncenter-status { background: #E0F8EE !important; color: #00894F !important; }
.lx-sd-last { font-size: 11.5px; color: var(--lx-muted); margin: 0; }

/* Profile photos on avatars */
.lx-has-photo { background-size: cover !important; background-position: center !important; color: transparent !important; text-shadow: none !important; }
.lx-avatar { overflow: hidden; }
.lx-avatar .lx-av-img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }

/* Card colour & cover */
.lx-cd-cover { height: 130px; border-radius: 14px; background: center/cover no-repeat; }
.lx-cd-cover.color { height: 44px; }
.lx-cd-cov { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.lx-cd-sw { width: 26px; height: 26px; border-radius: 8px; border: 0; cursor: pointer; position: relative; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.lx-cd-sw.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--lx-ink); }
.lx-cd-sw.none { background: #F1F3F8; color: var(--lx-faint); font-size: 11px; }
.lx-cd-sw.custom { background: conic-gradient(#E2445C, #FDAB3D, #00C875, #00A9C2, #0073EA, #A25DDC, #FF158A, #E2445C); }
.lx-cd-sw.custom input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; border: 0; padding: 0; }
.lx-cd-photo { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--lx-line); background: #fff; font-size: 12px; font-weight: 600; color: var(--lx-ink-2); cursor: pointer; }
.lx-cd-photo:hover { border-color: #0073EA; color: #0060C2; }

/* Stage panel: green Save + confirmation */
.lx-sd { position: relative; }
.lx-sd-save { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 44px; margin-top: 4px; border: 0; border-radius: 12px; background: #00C875; color: #fff; font-size: 14.5px; font-weight: 700; cursor: pointer; box-shadow: 0 10px 22px -14px #00A35C; }
.lx-sd-save:hover { background: #00A35C; }
.lx-sd-save:disabled { opacity: .75; cursor: wait; }
.lx-sd-slot.picked { border-color: #00C875; background: #EFFBF5; }
.lx-sd-slot.picked .lx-sd-fname { color: #00894F; font-weight: 600; }
.lx-sd-ok { position: absolute; inset: -6px; z-index: 5; display: flex; align-items: flex-start; justify-content: center; padding-top: 30px; background: rgba(255,255,255,.88); backdrop-filter: blur(2px); border-radius: 14px; }
.lx-sd-okbox { width: min(340px, 100%); background: #fff; border: 1px solid #CDEFDD; border-radius: 18px; padding: 22px 20px 18px; text-align: center; box-shadow: 0 24px 50px -24px rgba(0,137,79,.45); }
.lx-sd-okic { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 50%; background: #00C875; color: #fff; font-size: 24px; margin-bottom: 10px; box-shadow: 0 0 0 8px #E0F8EE; }
.lx-sd-okbox b { display: block; font-size: 17px; color: var(--lx-ink); margin-bottom: 8px; }
.lx-sd-okbox ul { list-style: none; margin: 0 0 14px; padding: 0; font-size: 12.5px; color: var(--lx-ink-2); line-height: 1.6; }
.lx-sd-okbtn { width: 100%; height: 40px; border: 0; border-radius: 10px; background: #1F2A44; color: #fff; font-weight: 700; font-size: 14px; cursor: pointer; }
.lx-sd-okbtn:hover { background: #0F172A; }

/* Property stage: pre-contracts + final contract */
.lx-pc { display: flex; flex-direction: column; gap: 8px; }
.lx-pc-h { margin: 6px 0 0; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--lx-muted); }
.lx-pc-status { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px; font-size: 13px; font-weight: 600; }
.lx-pc-status.none { background: #F1F3F8; color: var(--lx-ink-2); }
.lx-pc-status.pre { background: #FFF4E0; color: #B86E00; }
.lx-pc-status.done { background: #E0F8EE; color: #00894F; }
.lx-pc-row { border: 1px solid var(--lx-line); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 8px; background: #fff; }
.lx-pc-row.empty { border-style: dashed; background: #FBFBFD; }
.lx-pc-row.final { border-color: #CFE0FF; }
.lx-pc-row.final.ok { border-color: #9EE3C2; background: #F6FDF9; }
.lx-pc-rh { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; }
.lx-pc-badge { font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: #E0F8EE; color: #00894F; white-space: nowrap; }
.lx-pc-badge.soon { background: #FFF4E0; color: #B86E00; }
.lx-pc-badge.expired { background: #FDE8EC; color: #C42F47; }
.lx-pc-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lx-pc-dates label span { display: block; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--lx-muted); font-weight: 600; margin-bottom: 4px; }
.lx-pc-dates input { width: 100%; height: 38px; padding: 0 10px; border: 1px solid var(--lx-line); border-radius: 9px; font-size: 13px; background: #fff; }
.lx-pc-note { font-size: 11.5px; color: var(--lx-muted); }
@media (max-width: 520px) { .lx-pc-dates { grid-template-columns: 1fr; } }

/* Timeline: Property with only a pre-contract */
.lx-step.pre-contract .lx-dot { border-color: #FDAB3D !important; color: #B86E00 !important; background: linear-gradient(90deg, #FFE2B3 50%, #fff 50%) !important; }
.lx-step-sub { display: block; font-size: 9.5px; font-weight: 700; letter-spacing: .04em; color: #B86E00; margin-top: 1px; }

/* Pre-contracts on file (Property not completed yet): orange count above the circle, left of the notes count */
.lx-step { position: relative; }
.lx-step-files { position: absolute; top: -6px; left: calc(50% - 26px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #FDAB3D; color: #fff; font-size: 10.5px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px #fff; z-index: 2; }

/* Stage panel: delete a wrongly uploaded file */
.lx-sd-del { flex: none; width: 32px; height: 32px; border-radius: 9px; border: 1px solid #F6C9D1; background: #FFF5F6; color: #E2445C; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; cursor: pointer; margin-left: 6px; }
.lx-sd-del:hover { background: #E2445C; border-color: #E2445C; color: #fff; }
.lx-sd-okic.del { background: #E2445C; box-shadow: 0 0 0 8px #FDE8EC; }
.lx-sd-delbox { border-color: #F6C9D1; box-shadow: 0 24px 50px -24px rgba(196,47,71,.4); }
.lx-sd-delbox ul li:first-child { font-weight: 600; color: var(--lx-ink); overflow-wrap: anywhere; }
.lx-sd-delact { display: flex; gap: 8px; }
.lx-sd-okbtn.ghost { background: #F1F3F8; color: var(--lx-ink-2); }
.lx-sd-okbtn.red { background: #E2445C; }
.lx-sd-okbtn.red:hover { background: #C42F47; }

/* Stage panel: who changed what last, and recently deleted files */
.lx-sd-lastbox { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: #F4F6FB; border: 1px solid var(--lx-line-2); }
.lx-sd-lastic { flex: none; width: 30px; height: 30px; border-radius: 9px; background: #1F2A44; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.lx-sd-lasttx { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.lx-sd-lasttx small { font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--lx-muted); }
.lx-sd-lasttx b { font-size: 13px; color: var(--lx-ink); }
.lx-sd-lasttx span { font-size: 11.5px; color: var(--lx-ink-2); font-variant-numeric: tabular-nums; }
.lx-sd-lasttx em { font-style: normal; font-size: 11.5px; color: var(--lx-muted); overflow-wrap: anywhere; margin-top: 2px; }
.lx-sd-gone { display: flex; flex-direction: column; gap: 6px; }
.lx-sd-gonerow { display: flex; gap: 9px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; background: #FFF7F8; border: 1px dashed #F6C9D1; color: #C42F47; font-size: 12px; }
.lx-sd-gonerow span { min-width: 0; display: flex; flex-direction: column; }
.lx-sd-gonerow b { color: var(--lx-ink); font-weight: 600; overflow-wrap: anywhere; text-decoration: line-through; text-decoration-color: #E2445C; }
.lx-sd-gonerow small { color: var(--lx-muted); font-size: 11px; }

/* Team Board card panel — Trello-style extras */
.lx-cd-acts { display: flex; gap: 6px; flex-wrap: wrap; margin: 2px 8px 6px; }
.lx-cd-acts button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 8px; border: 0; background: #F1F2F4; color: var(--lx-ink); font-size: 12.5px; font-weight: 600; cursor: pointer; }
.lx-cd-acts button:hover { background: #DCDFE4; }
.lx-cd-acts button.on { background: #E9F2FF; color: #0C66E4; }
.lx-cd-arch { display: flex; align-items: center; gap: 8px; margin: 0 8px 8px; padding: 9px 12px; border-radius: 10px; background: #FFF7D6; color: #533F04; font-size: 12.5px; }
.lx-cd-arch span { flex: 1; }
.lx-cd-arch button { border: 0; background: #fff; border-radius: 7px; padding: 4px 10px; font-weight: 700; cursor: pointer; color: #533F04; }
.lx-cd-labs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.lx-cd-lab { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-radius: 6px; border: 0; background: var(--lc); color: #1D2125; font-size: 12px; font-weight: 700; cursor: pointer; opacity: .55; }
.lx-cd-lab.on { opacity: 1; box-shadow: inset 0 0 0 2px rgba(9,30,66,.35); }
.lx-cd-lab:hover { opacity: 1; }
.lx-cd-newlab { display: flex; gap: 6px; align-items: center; }
.lx-cd-newlab .lx-cd-in { flex: 1; min-width: 0; }
.lx-cd-labsw { width: 30px; height: 30px; border-radius: 6px; border: 0; cursor: pointer; flex-shrink: 0; }
.lx-cd-ckbar { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.lx-cd-ckbar small { width: 32px; font-size: 11px; color: var(--lx-muted); }
.lx-cd-ckbar div { flex: 1; height: 8px; border-radius: 4px; background: #F1F2F4; overflow: hidden; }
.lx-cd-ckbar i { display: block; height: 100%; background: #579DFF; border-radius: 4px; transition: width .2s; }
.lx-cd-ckbar.full i { background: #4BCE97; }
.lx-cd-cki { display: flex; align-items: center; gap: 8px; padding: 4px 2px; border-radius: 6px; }
.lx-cd-cki:hover { background: #F7F8F9; }
.lx-cd-cki input[type=checkbox] { width: 16px; height: 16px; flex-shrink: 0; cursor: pointer; }
.lx-cd-cki .lx-cd-in { flex: 1; }
.lx-cd-ckt { flex: 1; min-width: 0; font-size: 13.5px; cursor: text; overflow-wrap: anywhere; unicode-bidi: plaintext; }
.lx-cd-ckt.done { text-decoration: line-through; color: var(--lx-muted); }
.lx-cd-x { width: 28px; height: 28px; border: 0; background: none; border-radius: 6px; color: var(--lx-muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.lx-cd-x:hover { background: #F1F2F4; color: var(--lx-ink); }
.lx-cd-att { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.lx-cd-file { display: flex; align-items: center; gap: 10px; width: 100%; }
.lx-cd-thumb { width: 64px; height: 44px; border-radius: 6px; background: #F1F2F4; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: #44546F; flex-shrink: 0; background-size: cover; background-position: center; text-decoration: none; }
.lx-cd-fname { display: block; font-size: 13px; font-weight: 600; color: var(--lx-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
.lx-cd-fname:hover { text-decoration: underline; }
.lx-cd-file small { display: block; font-size: 11.5px; color: var(--lx-muted); }

/* ── Team Board card (Trello-style): one message box, compact facts, action buttons ── */
.lx-cd-msg { width: 100%; min-height: 64px; border: 1px solid transparent; border-radius: 10px; padding: 8px 10px; font-size: 14px; line-height: 1.6; color: var(--lx-ink); background: #F7F8FA; resize: none; overflow-y: auto; unicode-bidi: plaintext; font-family: inherit; }
.lx-cd-msg::first-line { font-weight: 700; font-size: 16px; }
.lx-cd-msg:hover { background: #F1F2F4; }
.lx-cd-msg:focus { background: #fff; border-color: #388BFF; outline: none; box-shadow: 0 0 0 2px rgba(56,139,255,.18); }
.lx-cd-colsel { height: 26px; border: 0; border-radius: 6px; background: #F1F2F4; font-size: 12px; font-weight: 700; color: var(--lx-ink); padding: 0 6px; cursor: pointer; }
.lx-cd-dot { color: var(--lx-faint); }
.lx-cd-facts { display: flex; flex-wrap: wrap; gap: 12px 18px; padding: 2px 4px; }
.lx-cd-fact { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.lx-cd-fl { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #626F86; }
.lx-cd-fv { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.lx-cd-av { width: 28px; height: 28px; font-size: 10px; }
.lx-cd-plus { width: 28px; height: 28px; border-radius: 50%; border: 0; background: #F1F2F4; color: #44546F; cursor: pointer; font-size: 11px; display: inline-flex; align-items: center; justify-content: center; }
.lx-cd-plus:hover { background: #DCDFE4; }
.lx-cd-fv .lx-cd-lab.on { height: 26px; padding: 0 10px; border-radius: 4px; cursor: default; }
.lx-cd-prio { display: flex; gap: 4px; flex-wrap: wrap; }
.lx-cd-pbtn { height: 26px !important; padding: 0 9px !important; font-size: 11.5px !important; }
.lx-cd-date { display: flex; flex-direction: column; gap: 2px; }
.lx-cd-date small { font-size: 10.5px; color: #626F86; font-weight: 600; }
.lx-cd-in.sm { height: 30px; font-size: 12px; padding: 0 6px; }
.lx-cd-pop { border: 1px solid var(--lx-line); border-radius: 12px; background: #fff; box-shadow: 0 12px 28px -14px rgba(9,30,66,.35); padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.lx-cd-ph { font-size: 11.5px; font-weight: 700; color: #626F86; margin: 0; }
.lx-cd-pop .lx-cd-m { display: flex; align-items: center; gap: 8px; width: 100%; justify-content: flex-start; }
.lx-cd-pop .lx-cd-m .fa-check { margin-left: auto; }
.lx-cd-actbar { display: flex; flex-wrap: wrap; gap: 6px; }
.lx-cd-actbar button { height: 32px; padding: 0 12px; border-radius: 6px; border: 0; background: #F1F2F4; color: #172B4D; font-size: 12.5px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.lx-cd-actbar button:hover { background: #DCDFE4; }
.lx-cd-actbar button.on { background: #E9F2FF; color: #0C66E4; }
.lx-cd-actbar button.done { background: #1F845A; color: #fff; margin-left: auto; }
.lx-cd-actbar button.done:hover { background: #216E4E; }

.ls-clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.ls-more { border: 0; background: transparent; color: var(--lx-accent, #0060C2); font-size: 12px; font-weight: 700; cursor: pointer; padding: 4px 0 0; }
.lc-rv { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: #F2F8FF; border: 1px solid #D6E8FD; }
.js-cal-toolbar { display: none !important; }  /* follow-up calendars are Shamsi only — no Shamsi/Miladi switch */
