/* ========================================================================
   RAIMON BPM DESIGN SYSTEM — UI18
   Source: 62 approved portal screenshots + React 2.5.x visual reference.
   Runtime: PHP + Vanilla JS + local Tailwind CSS. No React runtime.
   This file is intentionally loaded AFTER app.css and acts as the visual
   contract for every module so page-specific CSS cannot drift over time.
   ======================================================================== */

:root{
  --ds-brand-25:#fbf8fd;
  --ds-brand-50:#f6eff9;
  --ds-brand-100:#ebddf5;
  --ds-brand-200:#d4bdea;
  --ds-brand-300:#bb96db;
  --ds-brand-400:#8a4fb9;
  --ds-brand-500:#62267e;
  --ds-brand-600:#511f6a;
  --ds-brand-700:#3f1853;
  --ds-brand-800:#2e123e;
  --ds-brand-900:#1e0b29;

  --ds-gray-25:#fcfcfd;
  --ds-gray-50:#f9fafb;
  --ds-gray-100:#f2f4f7;
  --ds-gray-200:#eaecf0;
  --ds-gray-300:#d0d5dd;
  --ds-gray-400:#98a2b3;
  --ds-gray-500:#667085;
  --ds-gray-600:#475467;
  --ds-gray-700:#344054;
  --ds-gray-800:#1d2939;
  --ds-gray-900:#101828;
  --ds-gray-950:#0c111d;

  --ds-success:#039855;
  --ds-success-soft:#ecfdf3;
  --ds-warning:#dc6803;
  --ds-warning-soft:#fffaeb;
  --ds-danger:#d92d20;
  --ds-danger-soft:#fef3f2;
  --ds-info:#0086c9;
  --ds-info-soft:#f0f9ff;

  --ds-canvas:#fcfcfd;
  --ds-surface:#ffffff;
  --ds-surface-muted:#f9fafb;
  --ds-surface-soft:#f2f4f7;
  --ds-surface-raised:#ffffff;
  --ds-text:#344054;
  --ds-text-strong:#101828;
  --ds-text-muted:#667085;
  --ds-text-subtle:#98a2b3;
  --ds-border:#eaecf0;
  --ds-border-strong:#d0d5dd;
  --ds-focus:rgba(98,38,126,.12);

  /* Semantic accent foregrounds. Keep brand solid colors for fills/borders,
     but never reuse a dark brand swatch as text on dark surfaces. */
  --ds-accent-text:var(--ds-brand-500);
  --ds-accent-text-strong:var(--ds-brand-600);
  --ds-accent-text-muted:var(--ds-brand-400);
  --primary-text:var(--ds-accent-text);

  --ds-radius-xs:6px;
  --ds-radius-sm:8px;
  --ds-radius-md:10px;
  --ds-radius-lg:12px;
  --ds-radius-xl:16px;
  --ds-radius-2xl:20px;

  --ds-shadow-xs:0 1px 2px rgba(16,24,40,.05);
  --ds-shadow-sm:0 1px 3px rgba(16,24,40,.08),0 1px 2px rgba(16,24,40,.04);
  --ds-shadow-md:0 8px 24px rgba(16,24,40,.08);
  --ds-shadow-float:0 20px 48px rgba(16,24,40,.16);

  --ds-control-h:44px;
  --ds-sidebar-w:290px;
  --ds-header-h:72px;
  --ds-content-max:1600px;

  /* Legacy variable bridge */
  --bg:var(--ds-canvas);
  --surface:var(--ds-surface);
  --surface-2:var(--ds-surface-muted);
  --surface-3:var(--ds-surface-soft);
  --text:var(--ds-text-strong);
  --muted:var(--ds-text-muted);
  --border:var(--ds-border);
  --primary:var(--ds-brand-500);
  --primary-2:var(--ds-brand-400);
  --primary-soft:var(--ds-brand-50);
  --danger:var(--ds-danger);
  --success:var(--ds-success);
  --warning:var(--ds-warning);
  --shadow:var(--ds-shadow-xs);
  --radius:var(--ds-radius-lg);
  --sidebar:var(--ds-sidebar-w);
  --topbar:var(--ds-header-h);
  color-scheme:light;
}

html[data-theme=dark],html.dark{
  --ds-canvas:#0f1117;
  --ds-surface:#171a21;
  --ds-surface-muted:#1d212a;
  --ds-surface-soft:#242934;
  --ds-surface-raised:#1b1f28;
  --ds-text:#d0d5dd;
  --ds-text-strong:#f9fafb;
  --ds-text-muted:#98a2b3;
  --ds-text-subtle:#667085;
  --ds-border:#2b303b;
  --ds-border-strong:#3a414e;
  --ds-focus:rgba(187,150,219,.18);
  /* UI23.2: dark surfaces use lighter brand-derived foregrounds.
     300 is intentionally used for normal accent copy and 200 for emphasized
     copy so the default Raimon purple comfortably clears WCAG AA on #171a21. */
  --ds-accent-text:var(--ds-brand-300);
  --ds-accent-text-strong:var(--ds-brand-200);
  --ds-accent-text-muted:var(--ds-brand-300);
  --primary-text:var(--ds-accent-text);
  --ds-brand-50:rgba(98,38,126,.18);
  --ds-brand-100:rgba(98,38,126,.25);
  --bg:var(--ds-canvas);
  --surface:var(--ds-surface);
  --surface-2:var(--ds-surface-muted);
  --surface-3:var(--ds-surface-soft);
  --text:var(--ds-text-strong);
  --muted:var(--ds-text-muted);
  --border:var(--ds-border);
  --primary:#a06ecb;
  --primary-2:#bb96db;
  --primary-soft:rgba(98,38,126,.18);
  --shadow:0 1px 2px rgba(0,0,0,.22);
  color-scheme:dark;
}

/* ---------- Foundation ---------- */
/* UI22.1: HTML hidden must always win over component display declarations. */
[hidden]{display:none!important}
html{background:var(--ds-canvas);font-size:16px}
body{
  background:var(--ds-canvas)!important;
  color:var(--ds-text)!important;
  font-family:"Yekan Bakh FaNum",Tahoma,Arial,sans-serif!important;
  font-size:15.5px!important;
  font-weight:400!important;
  line-height:1.78!important;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
}
::selection{background:var(--ds-brand-100);color:var(--ds-accent-text-strong)}
:focus-visible{outline:2px solid var(--ds-brand-400);outline-offset:2px}
h1,h2,h3,h4,h5,h6{color:var(--ds-text-strong);font-weight:700;letter-spacing:-.012em}
p{color:inherit}
small,.muted{color:var(--ds-text-muted)}
hr{border:0;border-top:1px solid var(--ds-border)}

/* ---------- Layout ---------- */
.sidebar{
  width:var(--ds-sidebar-w)!important;
  padding:14px 16px 16px!important;
  background:var(--ds-surface)!important;
  border-left:1px solid var(--ds-border)!important;
  box-shadow:none!important;
}
.main-area{margin-right:var(--ds-sidebar-w)!important;background:var(--ds-canvas)}
.topbar{
  min-height:var(--ds-header-h)!important;
  height:var(--ds-header-h)!important;
  padding:0 24px!important;
  background:color-mix(in srgb,var(--ds-surface) 96%,transparent)!important;
  border-bottom:1px solid var(--ds-border)!important;
  backdrop-filter:blur(10px)!important;
  box-shadow:none!important;
}
.content-area{
  width:100%;
  max-width:var(--ds-content-max)!important;
  padding:24px 24px 104px!important;
}
.page-head{align-items:center!important;margin-bottom:18px!important}
.page-head h1{font-size:24px!important;line-height:1.45!important;margin:0}
.page-head p{font-size:13.5px!important;color:var(--ds-text-muted)!important;margin-top:4px!important}
.page-actions{gap:8px!important}

/* ---------- Brand / header ---------- */
.brand{padding:3px 2px 14px!important}
.brand-logo{min-height:42px;display:flex;align-items:center}
.brand-logo img,.desktop-header-logo img,.page-brand-mobile img{object-fit:contain}
.brand-logo-light,.brand-logo-dark{max-width:130px;max-height:42px}
.sidebar-meta-card{
  border:1px solid var(--ds-border)!important;
  background:var(--ds-surface-muted)!important;
  border-radius:var(--ds-radius-md)!important;
  box-shadow:none!important;
}
.sidebar-meta-date{border-color:var(--ds-border)!important}
.sidebar-meta-date strong{color:var(--ds-text)!important;font-weight:600!important}
.sidebar-meta-date span,.sidebar-live-line{color:var(--ds-text-muted)!important}
.sidebar-menu-search{margin-top:12px!important}
.sidebar-menu-search input{
  height:42px!important;
  border:1px solid var(--ds-border)!important;
  background:var(--ds-surface)!important;
  border-radius:var(--ds-radius-sm)!important;
  padding-inline:38px 12px!important;
  box-shadow:var(--ds-shadow-xs)!important;
}
.sidebar-menu-search input:focus{border-color:var(--ds-brand-300)!important;box-shadow:0 0 0 3px var(--ds-focus)!important}
.nav-label{font-size:11.5px!important;color:var(--ds-text-subtle)!important;padding:16px 10px 7px!important;font-weight:600!important}
.nav-item{
  min-height:42px!important;
  padding:9px 11px!important;
  border-radius:var(--ds-radius-sm)!important;
  color:var(--ds-text-muted)!important;
  font-size:13.5px!important;
  font-weight:400!important;
  margin:2px 0!important;
}
.nav-item:hover{background:var(--ds-surface-muted)!important;color:var(--ds-text-strong)!important}
.nav-item.active,.nav-group[open]>.nav-item{
  background:var(--ds-brand-50)!important;
  color:var(--ds-accent-text)!important;
  font-weight:600!important;
}
.dark .nav-item.active,.dark .nav-group[open]>.nav-item{color:var(--ds-accent-text-strong)!important}
.nav-item .icon{width:19px;height:19px}
.nav-item .nav-count{font-size:10.5px!important;border:0!important;background:transparent!important;color:var(--ds-text-subtle)!important;padding:0 2px!important}
.nav-sub{margin:4px 0 4px!important;padding-right:14px!important;border-right:1px solid var(--ds-border)!important}
.nav-sub-item{font-size:12.5px!important;color:var(--ds-text-muted)!important;border-radius:7px!important;padding:7px 10px!important}
.nav-sub-item:hover,.nav-sub-item.active{background:var(--ds-surface-muted)!important;color:var(--ds-accent-text)!important}
.sidebar-user{border-color:var(--ds-border)!important;padding:13px 4px 0!important}
.sidebar-user img,.profile-chip img{border-radius:var(--ds-radius-sm)!important}
.profile-chip{
  min-height:42px;
  background:transparent!important;
  border:0!important;
  border-radius:var(--ds-radius-sm)!important;
  font-size:13px!important;
  padding:3px 6px!important;
}
.profile-chip:hover{background:var(--ds-surface-muted)!important}
.topbar-date{font-size:12.5px!important;color:var(--ds-text-muted)!important}
.desktop-header-logo img{max-width:118px;max-height:38px}

/* ---------- Surfaces / cards ---------- */
.card,.tw-card,.form-card,.table-card,.automation-table-card{
  background:var(--ds-surface)!important;
  border:1px solid var(--ds-border)!important;
  border-radius:var(--ds-radius-lg)!important;
  box-shadow:var(--ds-shadow-xs)!important;
}
.card-pad{padding:18px!important}
.section-title{padding:16px 18px 10px!important}
.section-title h2{font-size:17px!important;font-weight:700!important}
.section-title a{font-size:13px!important;color:var(--ds-accent-text)!important;font-weight:600}

/* ---------- Buttons ---------- */
.btn,.tw-button{
  min-height:var(--ds-control-h)!important;
  padding:0 16px!important;
  border-radius:var(--ds-radius-sm)!important;
  border:1px solid var(--ds-border-strong)!important;
  background:var(--ds-surface)!important;
  color:var(--ds-text)!important;
  box-shadow:var(--ds-shadow-xs)!important;
  font-size:13.5px!important;
  font-weight:600!important;
  transition:background-color .15s,border-color .15s,color .15s,box-shadow .15s!important;
  transform:none!important;
}
.btn:hover,.tw-button:hover{background:var(--ds-surface-muted)!important;border-color:var(--ds-gray-300)!important;box-shadow:var(--ds-shadow-xs)!important;transform:none!important}
.btn-primary,.tw-button-primary{
  background:var(--ds-brand-500)!important;
  border-color:var(--ds-brand-500)!important;
  color:#fff!important;
}
.btn-primary:hover,.tw-button-primary:hover{background:var(--ds-brand-600)!important;border-color:var(--ds-brand-600)!important;color:#fff!important}
.btn-soft{background:var(--ds-brand-50)!important;border-color:transparent!important;color:var(--ds-accent-text)!important;box-shadow:none!important}
.btn-soft:hover{background:var(--ds-brand-100)!important;color:var(--ds-accent-text-strong)!important}
.btn-danger{background:var(--ds-surface)!important;color:var(--ds-danger)!important;border-color:#fecdca!important}
.btn-danger:hover{background:var(--ds-danger-soft)!important;border-color:#fda29b!important}
.btn-sm{min-height:34px!important;padding:0 11px!important;font-size:12.5px!important;border-radius:7px!important}
.btn-lg{min-height:48px!important;padding:0 20px!important;font-size:14.5px!important;border-radius:9px!important}
.icon-btn{
  width:40px!important;height:40px!important;
  border:1px solid var(--ds-border)!important;
  border-radius:var(--ds-radius-sm)!important;
  background:var(--ds-surface)!important;
  color:var(--ds-text-muted)!important;
  box-shadow:var(--ds-shadow-xs)!important;
  transform:none!important;
}
.icon-btn:hover{background:var(--ds-surface-muted)!important;border-color:var(--ds-border-strong)!important;color:var(--ds-accent-text)!important;transform:none!important}

/* ---------- Form controls ---------- */
.field{gap:7px!important}
.field>span,.field-label,.field>label{font-size:13.5px!important;color:var(--ds-text)!important;font-weight:600!important}
.field>small{font-size:11.75px!important;color:var(--ds-text-muted)!important;margin-top:5px!important}
.field input:not([type=checkbox]):not([type=radio]),
.field select,.field textarea,
.form-card input:not([type=checkbox]):not([type=radio]),
.form-card select,.form-card textarea,
.search-box input,.tw-input,
.letters-filter-grid input,.letters-filter-grid select{
  min-height:var(--ds-control-h)!important;
  border:1px solid var(--ds-border-strong)!important;
  background:var(--ds-surface)!important;
  color:var(--ds-text-strong)!important;
  border-radius:var(--ds-radius-sm)!important;
  box-shadow:var(--ds-shadow-xs)!important;
  font-size:14.5px!important;
  font-weight:400!important;
  outline:none!important;
}
.field textarea,.form-card textarea{min-height:118px!important;padding:11px 13px!important;line-height:1.9!important}
.field input:focus,.field select:focus,.field textarea:focus,
.form-card input:focus,.form-card select:focus,.form-card textarea:focus,
.search-box input:focus,.tw-input:focus,
.letters-filter-grid input:focus,.letters-filter-grid select:focus{
  border-color:var(--ds-brand-300)!important;
  box-shadow:0 0 0 3px var(--ds-focus)!important;
}
input::placeholder,textarea::placeholder{color:var(--ds-text-subtle)!important}
.search-box{max-width:480px!important}
.search-box input{background:var(--ds-surface)!important}

/* Searchable combobox */
.smart-select-control{
  min-height:var(--ds-control-h)!important;
  border-radius:var(--ds-radius-sm)!important;
  border:1px solid var(--ds-border-strong)!important;
  background:var(--ds-surface)!important;
  box-shadow:var(--ds-shadow-xs)!important;
  font-size:14px!important;
}
.smart-select-control:hover{border-color:var(--ds-gray-400)!important}
.smart-select-control:focus,.smart-select.open .smart-select-control{border-color:var(--ds-brand-300)!important;box-shadow:0 0 0 3px var(--ds-focus)!important}
.smart-select-dropdown{border-radius:var(--ds-radius-md)!important;border-color:var(--ds-border)!important;box-shadow:var(--ds-shadow-float)!important;background:var(--ds-surface)!important}
.smart-select-search{background:var(--ds-surface)!important;border-color:var(--ds-border)!important}
.smart-select-search input{height:40px!important;background:var(--ds-surface-muted)!important;border-color:var(--ds-border)!important;border-radius:7px!important}
.smart-select-option{font-size:13.5px!important;border-radius:7px!important;padding:9px 10px!important}
.smart-select-option:hover{background:var(--ds-surface-muted)!important}
.smart-select-option.selected{background:var(--ds-brand-50)!important;color:var(--ds-accent-text)!important;font-weight:600!important}
.smart-select-chip{background:var(--ds-brand-50)!important;color:var(--ds-accent-text)!important;border-radius:6px!important;font-size:11.5px!important;font-weight:600!important}

/* ---------- Tables / list views ---------- */
.table-card,.automation-table-card{overflow:hidden!important}
.table-toolbar{padding:13px 14px!important;border-color:var(--ds-border)!important;background:var(--ds-surface)!important}
.table-scroll{background:var(--ds-surface)!important}
.data-table{font-size:13.5px!important}
.data-table th{
  background:var(--ds-surface-muted)!important;
  color:var(--ds-text-muted)!important;
  font-size:12.5px!important;
  font-weight:600!important;
  padding:11px 13px!important;
  border-bottom:1px solid var(--ds-border)!important;
  white-space:nowrap;
}
.data-table td{
  color:var(--ds-text)!important;
  font-size:13.5px!important;
  font-weight:400!important;
  padding:12px 13px!important;
  border-bottom:1px solid var(--ds-border)!important;
  vertical-align:middle!important;
}
.data-table tbody tr{background:var(--ds-surface)!important;transition:background-color .12s}
.data-table tbody tr:hover{background:var(--ds-surface-muted)!important}
.data-table tbody tr:last-child td{border-bottom:0!important}
.pagination,.letters-pagination{background:var(--ds-surface)!important;border-color:var(--ds-border)!important;color:var(--ds-text-muted)!important}

/* ---------- Badges / status ---------- */
.badge{
  min-height:24px!important;
  display:inline-flex!important;align-items:center!important;
  padding:2px 8px!important;
  border-radius:999px!important;
  font-size:11.5px!important;
  font-weight:600!important;
  border:1px solid transparent!important;
  line-height:1.4!important;
}
.badge-primary{background:var(--ds-brand-50)!important;color:var(--ds-accent-text)!important;border-color:var(--ds-brand-100)!important}
.badge-success{background:var(--ds-success-soft)!important;color:var(--ds-success)!important;border-color:#abefc6!important}
.badge-danger{background:var(--ds-danger-soft)!important;color:var(--ds-danger)!important;border-color:#fecdca!important}
.badge-warning{background:var(--ds-warning-soft)!important;color:var(--ds-warning)!important;border-color:#fedf89!important}

/* ---------- Workflow / generic forms ---------- */
.workflow-form{box-shadow:var(--ds-shadow-xs)!important}
.workflow-form-head,.compose-head{
  padding:16px 18px!important;
  background:var(--ds-surface)!important;
  border-color:var(--ds-border)!important;
  border-radius:var(--ds-radius-lg) var(--ds-radius-lg) 0 0!important;
}
.workflow-form-icon,.compose-head-icon{width:42px!important;height:42px!important;border-radius:var(--ds-radius-sm)!important;background:var(--ds-brand-50)!important;color:var(--ds-accent-text)!important}
.workflow-form-head strong,.compose-head strong{font-size:15px!important;font-weight:700!important}
.workflow-form-head span,.compose-head span{font-size:12px!important;color:var(--ds-text-muted)!important}
.automation-form-grid{padding:18px!important;gap:16px!important}
.workflow-actions{padding:14px 18px!important;background:var(--ds-surface-muted)!important;border-color:var(--ds-border)!important;border-radius:0 0 var(--ds-radius-lg) var(--ds-radius-lg)!important}

/* ---------- Dashboard ---------- */
.desk10-dashboard{gap:16px!important}
.desk10-profile-card,.desk10-quick-card,.desk10-notes-card,.desk10-week-card{border-radius:var(--ds-radius-lg)!important;box-shadow:var(--ds-shadow-xs)!important}
.desk10-profile-card{background:var(--ds-surface)!important}
.desk10-profile-copy h1{font-size:20px!important}
.desk10-profile-copy p,.desk10-profile-meta{color:var(--ds-text-muted)!important}
.desk10-kicker{color:var(--ds-accent-text)!important}
.desk10-stat{border-radius:var(--ds-radius-lg)!important;box-shadow:var(--ds-shadow-xs)!important}
.desk10-stat:hover{transform:none!important;border-color:var(--ds-brand-200)!important}
.desk10-stat-icon{border-radius:var(--ds-radius-sm)!important}
.desk10-quick-item{border-radius:var(--ds-radius-md)!important;box-shadow:none!important}
.desk10-announcement-card,.desk10-person-card{border-radius:var(--ds-radius-lg)!important;box-shadow:var(--ds-shadow-xs)!important}

/* ---------- Letters ---------- */
.letters-workspace{gap:16px!important}
.letters-mailbox,.letters-main{border-radius:var(--ds-radius-lg)!important;box-shadow:var(--ds-shadow-xs)!important}
.letters-new-btn{min-height:46px!important;border-radius:var(--ds-radius-sm)!important}
.letters-box-link{font-size:13px!important;border-radius:var(--ds-radius-sm)!important;padding:9px 10px!important}
.letters-box-link.active{background:var(--ds-brand-50)!important;color:var(--ds-accent-text)!important;font-weight:600!important}
.letters-toolbar{padding:14px!important}
.letters-toolbar-head h1{font-size:18px!important}
.letters-toolbar-head p{font-size:12px!important}
.letters-filter-grid>label>span{font-size:11.5px!important}
.letters-list{padding:8px!important}
.letters-list-row{border-radius:var(--ds-radius-sm)!important;padding:13px 14px!important;background:var(--ds-surface)!important}
.letters-list-row:hover{background:var(--ds-surface-muted)!important;border-color:var(--ds-border-strong)!important}
.letters-list-row.is-unread{background:var(--ds-brand-25)!important;border-color:var(--ds-brand-300)!important}
.dark .letters-list-row.is-unread{background:rgba(98,38,126,.10)!important}
.letters-person strong,.letters-message-title{font-size:13.5px!important}
.letters-person span{font-size:11.5px!important}
.letters-message-snippet{font-size:12px!important;color:var(--ds-text-muted)!important}
.letters-meta{font-size:11px!important;color:var(--ds-text-subtle)!important}
.letter-action{width:34px!important;height:34px!important;border-radius:7px!important}

/* ---------- Announcements ---------- */
.announce14-modal-backdrop{background:rgba(16,24,40,.58)!important;backdrop-filter:blur(4px)!important}
.announce14-modal-card{border-radius:var(--ds-radius-xl)!important;border-color:var(--ds-border)!important;box-shadow:var(--ds-shadow-float)!important}
.announce14-modal-card>header{padding:16px 20px!important;background:var(--ds-surface)!important;border-color:var(--ds-border)!important}
.announce14-type-picker label>span{border-radius:var(--ds-radius-md)!important;background:var(--ds-surface-muted)!important}
.announce14-type-picker input:checked+span{background:var(--ds-brand-50)!important;border-color:var(--ds-brand-300)!important;box-shadow:0 0 0 3px var(--ds-focus)!important}
.announce14-editor{border-radius:var(--ds-radius-md)!important;border-color:var(--ds-border-strong)!important}
.announce14-editor-toolbar{background:var(--ds-surface-muted)!important;border-color:var(--ds-border)!important}
.announce14-editor-body{font-size:15.5px!important;line-height:2!important}
.announce14-upload{border-radius:var(--ds-radius-md)!important;background:var(--ds-brand-25)!important;border-color:var(--ds-brand-200)!important}

/* ---------- Users / profiles ---------- */
.user-grid{gap:14px!important}
.user-card{border-radius:var(--ds-radius-lg)!important;box-shadow:var(--ds-shadow-xs)!important;transition:border-color .15s,background-color .15s!important}
.user-card:hover{transform:none!important;background:var(--ds-surface-muted)!important;border-color:var(--ds-brand-200)!important}
.user-card h3{font-size:15px!important}
.user-card p{font-size:12.5px!important;color:var(--ds-text-muted)!important}
.profile-hero{border-radius:var(--ds-radius-lg)!important;box-shadow:var(--ds-shadow-xs)!important}
.detail-item{border-color:var(--ds-border)!important}

/* ---------- Notification / toast ---------- */
.notification-panel{
  border:1px solid var(--ds-border)!important;
  background:var(--ds-surface)!important;
  border-radius:var(--ds-radius-lg)!important;
  box-shadow:var(--ds-shadow-float)!important;
}
.notification-panel-head,.notification-item{border-color:var(--ds-border)!important}
.notification-item:hover{background:var(--ds-surface-muted)!important}
.toast-stack{right:max(18px,env(safe-area-inset-right))!important;bottom:max(22px,env(safe-area-inset-bottom))!important}
.app-toast{border-radius:var(--ds-radius-lg)!important;background:var(--ds-surface)!important;border:1px solid var(--ds-border)!important;box-shadow:var(--ds-shadow-float)!important}

/* ---------- Modals / empty states ---------- */
.modal-card,.dialog-card{background:var(--ds-surface);border:1px solid var(--ds-border);border-radius:var(--ds-radius-xl);box-shadow:var(--ds-shadow-float)}
.empty,.letters-empty,.menu-search-empty{color:var(--ds-text-muted)!important}

/* ---------- Auth ---------- */
.guest-body{background:linear-gradient(145deg,var(--ds-gray-25),var(--ds-brand-25))!important}
.dark .guest-body{background:linear-gradient(145deg,#0f1117,#16121b)!important}
.login-card{border-radius:var(--ds-radius-xl)!important;border:1px solid var(--ds-border)!important;box-shadow:var(--ds-shadow-md)!important;background:var(--ds-surface)!important}
.login-logo-raimon h1{font-size:20px!important}.login-logo-raimon p{font-size:13px!important;color:var(--ds-text-muted)!important}

/* ---------- Scrollbars ---------- */
*{scrollbar-width:thin;scrollbar-color:var(--ds-gray-300) transparent}
*::-webkit-scrollbar{width:8px;height:8px}
*::-webkit-scrollbar-track{background:transparent}
*::-webkit-scrollbar-thumb{background:var(--ds-gray-300);border-radius:999px;border:2px solid transparent;background-clip:padding-box}
.dark *::-webkit-scrollbar-thumb{background:#475467;background-clip:padding-box}

/* ---------- Design system lab ---------- */
.ds-lab{display:grid;gap:18px}.ds-lab-hero{display:flex;justify-content:space-between;align-items:center;gap:16px}.ds-lab-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.ds-lab-section{padding:18px}.ds-lab-section h2{font-size:17px;margin:0 0 14px}.ds-swatches{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.ds-swatch{border:1px solid var(--ds-border);border-radius:9px;overflow:hidden;background:var(--ds-surface)}.ds-swatch i{height:48px;display:block}.ds-swatch span{display:block;padding:7px 8px;font-size:11px;color:var(--ds-text-muted);direction:ltr;text-align:center}.ds-demo-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.ds-type-sample{display:grid;gap:9px}.ds-type-sample div{display:flex;align-items:baseline;gap:12px;border-bottom:1px solid var(--ds-border);padding-bottom:8px}.ds-type-sample span{min-width:90px;font-size:11px;color:var(--ds-text-subtle);direction:ltr}.ds-demo-table{overflow:auto;border:1px solid var(--ds-border);border-radius:10px}.ds-demo-table table{width:100%;border-collapse:collapse}.ds-demo-table th,.ds-demo-table td{padding:10px 12px;border-bottom:1px solid var(--ds-border);text-align:right}.ds-demo-table th{background:var(--ds-surface-muted);font-size:12px;color:var(--ds-text-muted)}

/* ---------- Responsive ---------- */
@media(max-width:1100px){
  .content-area{padding:18px 16px 96px!important}
  .ds-lab-grid{grid-template-columns:1fr}
}
@media(max-width:900px){
  :root{--ds-header-h:64px}
  .sidebar{width:min(86vw,310px)!important;padding:12px 14px!important}
  .main-area{margin-right:0!important}
  .topbar{padding:0 12px!important}
  .content-area{padding:16px 12px 94px!important}
  .page-head{align-items:flex-start!important;flex-direction:column!important;gap:10px!important}
  .page-head h1{font-size:21px!important}
  .btn{min-height:42px!important}
  .letters-workspace{grid-template-columns:1fr!important}
  .letters-mailbox{position:static!important}
  .letters-filter-grid{grid-template-columns:1fr 1fr!important}
  .ds-swatches{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:540px){
  body{font-size:15px!important}
  .content-area{padding-inline:10px!important}
  .card-pad{padding:14px!important}
  .page-head h1{font-size:20px!important}
  .letters-filter-grid{grid-template-columns:1fr!important}
  .ds-swatches{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* ========================================================================
   UI23.2 — Dark-mode contrast / semantic accent foregrounds
   Brand 500 remains the solid action/fill color. Foreground accent copy uses
   the lighter brand-derived semantic tokens above in dark mode.
   ======================================================================== */
html.dark .text-primary,html[data-theme=dark] .text-primary,
html.dark .brand-text,html[data-theme=dark] .brand-text,
html.dark .link-primary,html[data-theme=dark] .link-primary{color:var(--ds-accent-text)!important}
html.dark a:not(.btn):not(.tw-button):not(.nav-item):not(.nav-sub-item):focus-visible,
html[data-theme=dark] a:not(.btn):not(.tw-button):not(.nav-item):not(.nav-sub-item):focus-visible{outline-color:var(--ds-accent-text)!important}
html.dark ::selection,html[data-theme=dark] ::selection{background:var(--ds-brand-100);color:var(--ds-text-strong)}

/* ========================================================================
   UI19 — Readability + responsive card tables + white-label branding
   ======================================================================== */
body{font-size:16.25px!important;line-height:1.82!important}
.page-head h1{font-size:26px!important}.page-head p{font-size:14.5px!important}
.nav-label{font-size:12.25px!important}.nav-item{font-size:14.5px!important;min-height:44px!important}.nav-sub-item{font-size:13.75px!important;min-height:39px!important}
.nav-item .nav-count{font-size:11.5px!important}.profile-chip{font-size:14px!important}.topbar-date{font-size:13.5px!important}
.section-title h2{font-size:18px!important}.section-title a{font-size:14px!important}
.btn,.tw-button{font-size:14.5px!important}.btn-sm{font-size:13.5px!important}.btn-lg{font-size:15.5px!important}
.field>span,.field-label,.field>label{font-size:14.5px!important}.field>small{font-size:12.75px!important}
.field input:not([type=checkbox]):not([type=radio]),.field select,.field textarea,.form-card input:not([type=checkbox]):not([type=radio]),.form-card select,.form-card textarea,.search-box input,.tw-input,.letters-filter-grid input,.letters-filter-grid select{font-size:15.25px!important}
.smart-select-control{font-size:15px!important}.smart-select-option{font-size:14.5px!important}.smart-select-chip{font-size:12.5px!important}
.data-table{font-size:14.25px!important}.data-table th{font-size:13.25px!important}.data-table td{font-size:14.25px!important;line-height:1.75!important}
.badge{font-size:12.25px!important;min-height:25px!important}
.workflow-form-head strong,.compose-head strong{font-size:16px!important}.workflow-form-head span,.compose-head span{font-size:13px!important}
.desk10-profile-copy h1{font-size:22px!important}.desk10-section-head h2{font-size:18px!important}.desk10-section-head span{font-size:13px!important}
.letters-box-link{font-size:14px!important}.letters-toolbar-head h1{font-size:20px!important}.letters-toolbar-head p{font-size:13.5px!important}.letters-filter-grid>label>span{font-size:12.75px!important}
.letters-person strong,.letters-message-title{font-size:14.5px!important}.letters-person span{font-size:12.5px!important}.letters-message-snippet{font-size:13.5px!important}.letters-meta{font-size:12px!important}
.user-card h3{font-size:16px!important}.user-card p{font-size:13.5px!important}.login-logo-raimon h1{font-size:22px!important}.login-logo-raimon p{font-size:14px!important}

/* White-label wordmarks. When no custom logo exists after renaming the system,
   text is used instead of accidentally exposing the Raimon logo. */
.brand-wordmark{display:flex;align-items:center;gap:9px;min-width:0;color:var(--ds-text-strong)}
.brand-wordmark-mark{display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:var(--ds-brand-50);color:var(--ds-accent-text);flex:0 0 auto}
.brand-wordmark-mark svg{width:20px;height:20px}.brand-wordmark>span:last-child{display:grid;min-width:0;line-height:1.35}
.brand-wordmark strong{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.brand-wordmark small{font-size:11.5px;color:var(--ds-text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:178px}
.header-brand-text{display:grid;line-height:1.25;text-align:right}.header-brand-text strong{font-size:13.5px;color:var(--ds-text-strong)}.header-brand-text small{font-size:10.5px;color:var(--ds-text-muted);max-width:190px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.page-brand-mobile>span{display:grid;place-items:center;min-width:44px;height:36px;padding:0 9px;border-radius:8px;background:var(--ds-brand-50);color:var(--ds-accent-text);font-weight:700;font-size:13px}
.login-brand-mark{display:grid;place-items:center;min-width:64px;height:58px;padding:0 12px;border-radius:12px;background:var(--ds-brand-50);color:var(--ds-accent-text);font-size:17px;font-weight:800}

/* White-label settings */
.branding-settings-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(310px,.75fr);gap:18px;align-items:start}
.branding-settings-form{overflow:hidden}.settings-section-head{display:flex;align-items:center;gap:12px;padding:20px 20px 6px}.settings-section-head>div:last-child{display:grid;gap:2px}.settings-section-head strong{font-size:17px;color:var(--ds-text-strong)}.settings-section-head span{font-size:13px;color:var(--ds-text-muted)}
.settings-icon{display:grid!important;place-items:center;width:42px;height:42px;border-radius:10px;background:var(--ds-brand-50);color:var(--ds-accent-text);flex:0 0 auto}.settings-icon svg{width:20px;height:20px}
.settings-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:16px 20px 20px}.settings-wide{grid-column:1/-1}.settings-divider{height:1px;background:var(--ds-border);margin:0 20px}
.brand-color-field{display:grid;grid-template-columns:52px 1fr;gap:8px}.brand-color-field input[type=color]{width:52px!important;height:44px!important;padding:3px!important;border-radius:8px!important;cursor:pointer}
.branding-upload-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:16px 20px 20px}.branding-upload-card{position:relative;display:flex;flex-direction:column;gap:7px;padding:12px;border:1px solid var(--ds-border);border-radius:12px;background:var(--ds-surface-muted);cursor:pointer}.branding-upload-card:hover{border-color:var(--ds-brand-300);background:var(--ds-brand-25)}.branding-upload-card>strong{font-size:14px;color:var(--ds-text-strong)}.branding-upload-card>small{font-size:12px;color:var(--ds-text-muted)}.branding-upload-card>input[type=file]{position:absolute;inline-size:1px;block-size:1px;opacity:0;pointer-events:none}
.branding-upload-preview{height:86px;border:1px dashed var(--ds-border-strong);border-radius:10px;background:#fff;display:grid;place-items:center;padding:10px;overflow:hidden}.branding-upload-preview.dark{background:#171a21}.branding-upload-preview.icon{width:86px}.branding-upload-preview img{max-width:100%;max-height:100%;object-fit:contain}.branding-upload-preview b{color:var(--ds-accent-text);font-size:16px}.upload-choose{display:inline-flex;align-items:center;justify-content:center;min-height:34px;border:1px solid var(--ds-border-strong);border-radius:7px;background:var(--ds-surface);color:var(--ds-text);font-size:12.5px;font-weight:600}.remove-brand-asset{display:flex;align-items:center;gap:6px;font-size:11.5px;color:var(--ds-danger);cursor:pointer}.remove-brand-asset input{accent-color:var(--ds-danger)}
.branding-settings-form .workflow-actions{display:flex;justify-content:flex-end;gap:8px}.branding-live-preview{position:sticky;top:94px;padding:18px;display:grid;gap:14px}.branding-preview-shell{overflow:hidden;border:1px solid var(--ds-border);border-radius:14px;background:var(--ds-canvas);min-height:280px}.branding-preview-top{height:54px;background:var(--ds-surface);border-bottom:1px solid var(--ds-border);display:flex;align-items:center;gap:8px;padding:8px 10px}.branding-preview-top .preview-logo{margin-left:auto;display:grid;place-items:center;min-width:74px;height:36px}.branding-preview-top img{max-width:94px;max-height:32px}.branding-preview-top i{width:32px;height:32px;border:1px solid var(--ds-border);border-radius:8px}.branding-preview-body{display:grid;grid-template-columns:76px 1fr;min-height:225px}.preview-sidebar{border-left:1px solid var(--ds-border);background:var(--ds-surface);padding:12px 8px;display:flex;flex-direction:column;gap:8px}.preview-sidebar b{height:24px;border-radius:6px;background:var(--ds-surface-muted)}.preview-sidebar b:nth-child(2){background:color-mix(in srgb,var(--preview-brand) 10%,white)}.branding-preview-body main{padding:26px 18px}.branding-preview-body small{color:var(--ds-text-muted)}.branding-preview-body h2{font-size:19px;margin:6px 0}.branding-preview-body p{font-size:12.5px;color:var(--ds-text-muted);margin:0 0 18px}.branding-preview-body button{border:0;border-radius:8px;background:var(--preview-brand);color:#fff;min-height:38px;padding:0 14px;font-family:inherit}.settings-note{padding:13px;border-radius:10px;background:var(--ds-brand-25);border:1px solid var(--ds-brand-100)}.settings-note strong{font-size:14px;color:var(--ds-text-strong)}.settings-note p{font-size:12.5px;color:var(--ds-text-muted);margin:4px 0 0}.settings-note code{direction:ltr;unicode-bidi:embed;color:var(--ds-accent-text-strong)}

/* Every data table becomes a stacked card collection on mobile. JS injects the
   column heading into data-label so this also covers admin/access tables and
   future views without per-page markup. */
@media(max-width:768px){
  body{font-size:16px!important}
  .page-head h1{font-size:22px!important}.page-head p{font-size:14px!important}
  .content-area .table-card,.content-area .automation-table-card,.content-area .ds-demo-table{overflow:visible!important;border:0!important;background:transparent!important;box-shadow:none!important}
  .content-area .table-toolbar{border:1px solid var(--ds-border)!important;border-radius:12px!important;margin-bottom:10px!important;gap:10px!important;flex-wrap:wrap!important}
  .content-area .table-scroll,.content-area .ds-demo-table{overflow:visible!important;background:transparent!important}
  .content-area table.responsive-card-table{display:block!important;width:100%!important;border:0!important;background:transparent!important;border-collapse:separate!important}
  .content-area table.responsive-card-table thead{display:none!important}
  .content-area table.responsive-card-table tbody{display:grid!important;gap:10px!important;width:100%!important}
  .content-area table.responsive-card-table tbody tr{display:block!important;width:100%!important;background:var(--ds-surface)!important;border:1px solid var(--ds-border)!important;border-radius:12px!important;padding:6px 12px!important;box-shadow:var(--ds-shadow-xs)!important;overflow:hidden!important}
  .content-area table.responsive-card-table tbody tr:hover{background:var(--ds-surface)!important;border-color:var(--ds-brand-200)!important}
  .content-area table.responsive-card-table tbody td{display:grid!important;grid-template-columns:minmax(105px,38%) minmax(0,1fr)!important;align-items:start!important;gap:10px!important;width:100%!important;max-width:none!important;min-height:42px!important;padding:10px 2px!important;border:0!important;border-bottom:1px solid var(--ds-border)!important;text-align:right!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;font-size:14.5px!important;word-break:break-word!important}
  .content-area table.responsive-card-table tbody td:last-child{border-bottom:0!important}
  .content-area table.responsive-card-table tbody td::before{content:attr(data-label);display:block;color:var(--ds-text-muted);font-size:12.75px;font-weight:600;line-height:1.6}
  .content-area table.responsive-card-table tbody td[data-card-full="1"]{display:block!important;min-height:auto!important;text-align:center!important;padding:14px 2px!important}
  .content-area table.responsive-card-table tbody td[data-card-full="1"]::before{display:none!important}
  .content-area table.responsive-card-table .actions{justify-content:flex-start!important;flex-wrap:wrap!important}
  .content-area table.responsive-card-table .user-list{white-space:normal!important;display:flex!important;flex-wrap:wrap!important;gap:5px!important}
  .content-area table.responsive-card-table .file-display{max-width:100%!important}
  .branding-settings-grid{grid-template-columns:1fr}.branding-live-preview{position:static}.branding-upload-grid{grid-template-columns:1fr 1fr}.settings-form-grid{grid-template-columns:1fr}.settings-wide{grid-column:auto}
}
@media(max-width:520px){
  .branding-upload-grid{grid-template-columns:1fr}.branding-upload-preview.icon{width:100%}.settings-section-head{padding-inline:14px}.settings-form-grid,.branding-upload-grid{padding-inline:14px}
  .content-area table.responsive-card-table tbody td{grid-template-columns:minmax(92px,34%) minmax(0,1fr)!important;padding-block:9px!important}
}

/* UI20 — workspace polish, larger typography, personal calendar, phonebook and profile */
html{font-size:17px!important}
body{font-size:17px!important;line-height:1.85!important}
.nav-item{font-size:15.25px!important;min-height:46px!important}.nav-sub-item{font-size:14.25px!important;min-height:41px!important}.nav-label{font-size:12.75px!important}.sidebar-menu-search input{font-size:14.25px!important}.sidebar-meta-date strong{font-size:13.5px!important}.sidebar-meta-date span,.sidebar-live-line{font-size:12.5px!important}.sidebar-user strong{font-size:13.75px!important}.sidebar-user span{font-size:12px!important}.profile-chip{font-size:14.5px!important}.topbar-date{font-size:14px!important}
.page-head h1{font-size:27px!important}.page-head p{font-size:15px!important}.section-title h2,.desk10-section-head h2{font-size:19px!important}.desk10-section-head>div>span{font-size:13.5px!important}.desk10-section-head>a{font-size:14px!important}
.btn,.tw-button{font-size:15px!important}.field>span,.field-label,.field>label{font-size:15px!important}.field input:not([type=checkbox]):not([type=radio]),.field select,.field textarea,.form-card input:not([type=checkbox]):not([type=radio]),.form-card select,.form-card textarea,.search-box input,.tw-input{font-size:15.75px!important}
.data-table{font-size:15px!important}.data-table th{font-size:14px!important}.data-table td{font-size:15px!important}.badge{font-size:13px!important}
.letters-person strong,.letters-message-title{font-size:15.25px!important}.letters-person span{font-size:13.25px!important}.letters-message-snippet{font-size:14px!important}.letters-meta{font-size:12.75px!important}
.sidebar-user-link{display:grid;min-width:0;color:inherit;text-decoration:none;line-height:1.55}.sidebar-user-link strong,.sidebar-user-link span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile-chip{text-decoration:none}

/* Dashboard UI20 */
.desk20-decree-strip .desk10-announcement-card{width:440px;min-width:440px;min-height:190px;grid-template-columns:124px 1fr;padding:14px;gap:14px}.desk20-decree-strip .desk10-announcement-card>img,.desk20-decree-strip .desk10-announcement-placeholder{width:124px;height:160px}.desk10-announcement-card{font-size:inherit}.desk10-announcement-kind{font-size:11px!important}.desk10-announcement-card h3{font-size:15px!important;line-height:1.75!important}.desk10-announcement-card p{font-size:13.5px!important;line-height:1.9!important}.desk10-announcement-card time{font-size:11.5px!important}.desk10-person-card strong{font-size:14px!important}.desk10-person-card small,.desk10-person-card time{font-size:11.5px!important}.desk10-quick-item b{font-size:12px!important}.desk10-live-list strong{font-size:13.5px!important}.desk10-live-list small{font-size:11.5px!important}.desk10-live-list>a>b{font-size:12px!important}.desk10-note strong{font-size:13.5px!important}.desk10-note p{font-size:11.75px!important}.desk10-note small{font-size:10.5px!important}.desk10-mini-title strong{font-size:13.5px!important}.desk10-punches>span{font-size:12px!important;height:30px}.desk10-punches>small,.desk10-meeting-list>small{font-size:11.5px!important}.desk10-meeting-list strong{font-size:12.5px!important}.desk10-meeting-list small,.desk10-meeting-list time{font-size:11px!important}.desk20-side-notes{padding:15px}.desk20-side-notes .desk10-note-list{max-height:310px}.desk20-people-two-row{display:grid!important;grid-auto-flow:column;grid-template-rows:repeat(2,minmax(0,1fr));grid-auto-columns:230px;overflow-x:auto;overflow-y:hidden;align-items:stretch}.desk20-people-two-row .desk10-person-card{width:230px;min-width:0}
.desk10-month-grid>button{appearance:none;border:0;background:transparent;color:var(--ds-text);height:35px;border-radius:9px;display:grid;place-items:center;font:inherit;font-size:12.5px;position:relative;cursor:pointer}.desk10-month-grid>button:hover{background:var(--ds-surface-muted)}.desk10-month-grid>button.is-holiday{color:#d65a69}.desk10-month-grid>button.is-today{box-shadow:inset 0 0 0 1.5px var(--ds-brand-500);font-weight:700}.desk10-month-grid>button.is-selected{background:var(--ds-brand-500)!important;color:#fff!important;box-shadow:0 5px 12px color-mix(in srgb,var(--ds-brand-500) 20%,transparent)}.desk10-month-grid>button i{position:absolute;width:4px;height:4px;border-radius:999px;background:currentColor;bottom:3px}.desk20-selected-day{margin-top:12px;padding-top:12px;border-top:1px solid var(--ds-border)}.desk20-selected-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.desk20-selected-head div span,.desk20-selected-head div strong{display:block}.desk20-selected-head div span{font-size:11.5px;color:var(--ds-text-muted)}.desk20-selected-head div strong{font-size:15px;margin-top:1px}.desk20-selected-head>b{font-size:11px;border-radius:999px;padding:4px 9px}.desk20-selected-head>b.is-work{background:#ecfdf3;color:#027a48}.desk20-selected-head>b.is-off{background:#fff1f3;color:#c01048}.dark .desk20-selected-head>b.is-work{background:rgba(18,183,106,.14);color:#6ce9a6}.dark .desk20-selected-head>b.is-off{background:rgba(240,68,56,.14);color:#fda29b}.desk20-selected-hours{display:flex;justify-content:space-between;gap:8px;background:var(--ds-surface-muted);border-radius:9px;padding:8px 10px;margin-top:9px}.desk20-selected-hours span{font-size:11px;color:var(--ds-text-muted)}.desk20-selected-hours strong{font-size:12px}.desk20-day-event{padding-top:10px;margin-top:10px;border-top:1px dashed var(--ds-border)}

/* Work calendar */
.workcal-page{display:grid;gap:20px}.workcal-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px}.eyebrow{display:block;font-size:12.5px;color:var(--ds-accent-text);font-weight:700;margin-bottom:3px}.workcal-head-actions{display:flex;gap:8px;flex-wrap:wrap}.workcal-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(330px,.65fr);gap:18px;align-items:start}.workcal-calendar-card{padding:18px;position:sticky;top:calc(var(--topbar,70px) + 16px)}.workcal-month-nav{display:grid;grid-template-columns:42px 1fr 42px;align-items:center;gap:10px;margin-bottom:16px}.workcal-month-nav>div{text-align:center}.workcal-month-nav span,.workcal-month-nav strong{display:block}.workcal-month-nav span{font-size:12px;color:var(--ds-text-muted)}.workcal-month-nav strong{font-size:20px;margin-top:2px}.workcal-next .icon{transform:rotate(180deg)}.workcal-week-head,.workcal-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px}.workcal-week-head{margin-bottom:6px}.workcal-week-head span{text-align:center;color:var(--ds-text-muted);font-size:12px;font-weight:700;padding:6px}.workcal-day,.workcal-empty{min-height:84px;border-radius:12px}.workcal-day{border:1px solid var(--ds-border);background:var(--ds-surface);padding:10px;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;color:var(--ds-text);position:relative;transition:.15s}.workcal-day:hover{border-color:var(--ds-brand-300);background:var(--ds-brand-25);transform:translateY(-1px)}.workcal-day b{font-size:16px}.workcal-day small{font-size:10.5px;color:var(--ds-text-muted)}.workcal-day i{width:5px;height:5px;border-radius:50%;background:var(--ds-brand-500);position:absolute;top:11px;left:11px}.workcal-day.is-holiday{background:#fff8f8;color:#b42318}.dark .workcal-day.is-holiday{background:rgba(240,68,56,.06);color:#fda29b}.workcal-day.is-today{box-shadow:inset 0 0 0 1.5px var(--ds-brand-500)}.workcal-day.is-selected{background:var(--ds-brand-500);border-color:var(--ds-brand-500);color:#fff;box-shadow:0 10px 22px color-mix(in srgb,var(--ds-brand-500) 22%,transparent)}.workcal-day.is-selected small{color:rgba(255,255,255,.78)}.workcal-day.is-selected i{background:#fff}.workcal-legend{display:flex;flex-wrap:wrap;gap:16px;margin-top:14px;color:var(--ds-text-muted);font-size:11.5px}.workcal-legend span{display:flex;align-items:center;gap:6px}.workcal-legend i{width:9px;height:9px;border-radius:3px}.workcal-legend i.work{background:var(--ds-brand-100)}.workcal-legend i.holiday{background:#fda29b}.workcal-legend i.event{background:var(--ds-brand-500);border-radius:50%}.workcal-day-panel{display:flex;flex-direction:column;gap:12px}.workcal-day-summary,.workcal-detail-card{padding:16px}.workcal-day-title{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.workcal-day-title span,.workcal-day-title h2{display:block;margin:0}.workcal-day-title div>span{font-size:12px;color:var(--ds-text-muted)}.workcal-day-title h2{font-size:20px;margin-top:2px}.workcal-holiday-note{display:flex;gap:10px;margin-top:12px;padding:10px;background:#fff5f5;border:1px solid #fee4e2;border-radius:10px;color:#b42318}.dark .workcal-holiday-note{background:rgba(240,68,56,.08);border-color:rgba(240,68,56,.18);color:#fda29b}.workcal-holiday-note .icon{width:18px;flex:none}.workcal-holiday-note strong,.workcal-holiday-note span{display:block}.workcal-holiday-note strong{font-size:12px}.workcal-holiday-note span{font-size:11px;margin-top:2px}.workcal-hours{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px;padding:10px 12px;border-radius:10px;background:var(--ds-surface-muted)}.workcal-hours span{font-size:12px;color:var(--ds-text-muted)}.workcal-hours strong{font-size:13px}.workcal-detail-card .section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.workcal-detail-card .section-title span,.workcal-detail-card .section-title a{font-size:11.5px;color:var(--ds-text-muted)}.workcal-punch-list,.workcal-meetings,.workcal-meals{display:flex;flex-direction:column}.workcal-punch-list>div,.workcal-shift,.workcal-meals>div{display:grid;grid-template-columns:38px 1fr;gap:9px;align-items:center;padding:8px 0;border-top:1px solid var(--ds-border)}.workcal-punch-list>div:first-child,.workcal-meals>div:first-child{border-top:0}.workcal-detail-icon{width:36px;height:36px;border-radius:10px;display:grid;place-items:center}.workcal-detail-icon .icon{width:17px}.workcal-detail-icon.green{background:#ecfdf3;color:#039855}.workcal-detail-icon.purple{background:var(--ds-brand-50);color:var(--ds-accent-text)}.workcal-punch-list strong,.workcal-punch-list small,.workcal-shift strong,.workcal-shift small,.workcal-meals strong,.workcal-meals small{display:block}.workcal-punch-list strong,.workcal-shift strong,.workcal-meals strong{font-size:13px}.workcal-punch-list small,.workcal-shift small,.workcal-meals small{font-size:11px;color:var(--ds-text-muted);margin-top:1px}.workcal-meetings>a{display:grid;grid-template-columns:54px 1fr;gap:9px;padding:9px 0;border-top:1px solid var(--ds-border)}.workcal-meetings>a:first-child{border-top:0}.workcal-meetings time{color:var(--ds-accent-text);font-size:12px;font-weight:800}.workcal-meetings strong,.workcal-meetings small{display:block}.workcal-meetings strong{font-size:12.5px}.workcal-meetings small{font-size:11px;color:var(--ds-text-muted)}.workcal-meals>div>span{width:36px;height:36px;border-radius:10px;background:#fff8eb;color:#dc6803;display:grid;place-items:center}.workcal-meals>div>span .icon{width:17px}.empty-inline{font-size:12px;color:var(--ds-text-muted);padding:10px 0}

/* Phone book */
.phonebook-page{display:grid;gap:18px}.phonebook-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px}.phonebook-search{display:grid;grid-template-columns:20px minmax(240px,360px) auto;align-items:center;gap:8px;border:1px solid var(--ds-border);background:var(--ds-surface);border-radius:10px;padding:5px 5px 5px 11px}.phonebook-search>span{color:var(--ds-text-muted)}.phonebook-search .icon{width:18px}.phonebook-search input{border:0;outline:0;background:transparent;color:var(--ds-text);font:inherit;font-size:14px;min-height:36px}.phonebook-search .btn{min-height:36px!important}.phonebook-summary{display:flex;align-items:center;gap:10px;color:var(--ds-text-muted)}.phonebook-summary>span{width:38px;height:38px;border-radius:10px;background:var(--ds-brand-50);color:var(--ds-accent-text);display:grid;place-items:center}.phonebook-summary .icon{width:19px}.phonebook-summary strong,.phonebook-summary small{display:block}.phonebook-summary strong{font-size:16px;color:var(--ds-text)}.phonebook-summary small{font-size:11.5px}.phonebook-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.phonebook-card{padding:15px;display:flex;flex-direction:column;gap:14px}.phonebook-person{display:flex;align-items:center;gap:11px}.phonebook-person img,.phonebook-avatar{width:58px;height:64px;border-radius:14px;object-fit:cover;border:1px solid var(--ds-border);flex:none}.phonebook-avatar{display:grid;place-items:center;background:var(--ds-brand-50);color:var(--ds-accent-text);font-size:20px;font-weight:800}.phonebook-person strong,.phonebook-person small,.phonebook-person div>span{display:block}.phonebook-person strong{font-size:14.5px}.phonebook-person small{font-size:11.5px;color:var(--ds-text-muted);margin-top:1px}.phonebook-person div>span{font-size:10.75px;color:var(--ds-text-subtle);margin-top:2px}.phonebook-contact-list{display:grid;grid-template-columns:1fr 1fr;gap:7px}.phonebook-contact-list>div{display:grid;grid-template-columns:26px 1fr;grid-template-rows:auto auto;column-gap:7px;border-radius:9px;background:var(--ds-surface-muted);padding:8px}.phonebook-contact-list>div.email{grid-column:1/-1}.phonebook-contact-list>div>span{grid-row:1/3;width:26px;height:26px;display:grid;place-items:center;color:var(--ds-accent-text)}.phonebook-contact-list .icon{width:15px}.phonebook-contact-list small{font-size:9.75px;color:var(--ds-text-subtle)}.phonebook-contact-list a,.phonebook-contact-list b{font-size:11.5px;color:var(--ds-text);font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.phonebook-actions{display:flex;gap:6px;margin-top:auto;padding-top:11px;border-top:1px solid var(--ds-border)}.phonebook-actions .btn{flex:1;min-width:0;padding-inline:8px!important;font-size:11.5px!important}.phonebook-actions .icon{width:15px}

/* Profile */
.profile20-page{display:grid;gap:18px}.profile20-hero{padding:18px;display:flex;align-items:center;justify-content:space-between;gap:16px}.profile20-person{display:flex;align-items:center;gap:14px}.profile20-person>img,.profile20-avatar{width:80px;height:84px;border-radius:20px;object-fit:cover;border:1px solid var(--ds-border);flex:none}.profile20-avatar{display:grid;place-items:center;background:var(--ds-brand-50);color:var(--ds-accent-text);font-size:25px;font-weight:900}.profile20-person h1{font-size:22px;margin:0}.profile20-person p{font-size:12px;color:var(--ds-text-muted);margin:1px 0 0;direction:ltr;text-align:right}.profile20-org-tags{display:flex;gap:5px;flex-wrap:wrap;margin-top:8px}.profile20-org-tags span{font-size:10.5px;padding:4px 8px;border-radius:999px;background:var(--ds-surface-muted);color:var(--ds-text-muted)}.profile20-status{text-align:left}.profile20-status small{display:block;font-size:10.5px;color:var(--ds-text-muted);margin-top:5px}.profile20-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(310px,.5fr);gap:16px;align-items:start}.profile20-info-card,.profile20-signature-card{padding:18px}.profile20-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.profile20-fields>div{display:grid;grid-template-columns:34px 1fr;grid-template-rows:auto auto;column-gap:8px;background:var(--ds-surface-muted);border-radius:10px;padding:9px}.profile20-fields>div>span{grid-row:1/3;width:34px;height:34px;border-radius:9px;background:var(--ds-surface);color:var(--ds-accent-text);display:grid;place-items:center;border:1px solid var(--ds-border)}.profile20-fields .icon{width:16px}.profile20-fields small{font-size:10px;color:var(--ds-text-subtle)}.profile20-fields strong{font-size:12.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile20-note{display:flex;gap:8px;align-items:flex-start;margin-top:12px;padding:10px;border-radius:10px;background:var(--ds-brand-25);color:var(--ds-text-muted);font-size:11px}.profile20-note .icon{width:17px;flex:none;color:var(--ds-accent-text)}.profile20-signature-preview{min-height:180px;border:1px dashed var(--ds-border);background:var(--ds-surface-muted);border-radius:12px;display:grid;place-items:center;padding:14px;margin:12px 0}.profile20-signature-preview img{max-width:100%;max-height:150px;object-fit:contain;filter:contrast(1.05)}.profile20-signature-preview>div{text-align:center;color:var(--ds-text-muted)}.profile20-signature-preview>div .icon{width:32px;height:32px;color:var(--ds-accent-text);margin:auto}.profile20-signature-preview strong,.profile20-signature-preview span{display:block}.profile20-signature-preview strong{font-size:13px;margin-top:5px;color:var(--ds-text)}.profile20-signature-preview span{font-size:10.5px;margin-top:2px}.profile20-signature-form{display:grid;gap:8px}.profile20-upload{display:flex;align-items:center;gap:9px;border:1px solid var(--ds-border);border-radius:10px;padding:9px;cursor:pointer}.profile20-upload input{display:none}.profile20-upload>span{width:36px;height:36px;border-radius:9px;background:var(--ds-brand-50);color:var(--ds-accent-text);display:grid;place-items:center}.profile20-upload .icon{width:17px}.profile20-upload strong,.profile20-upload small{display:block}.profile20-upload strong{font-size:12px}.profile20-upload small{font-size:10px;color:var(--ds-text-muted)}.profile20-remove{width:100%;margin-top:7px;color:var(--ds-error-600)!important}.profile20-signature-help{margin-top:14px;padding-top:12px;border-top:1px solid var(--ds-border)}.profile20-signature-help strong{font-size:12px}.profile20-signature-help p{font-size:10.75px;color:var(--ds-text-muted);margin:3px 0 0}

@media(max-width:1180px){.workcal-layout{grid-template-columns:1fr}.workcal-calendar-card{position:static}.phonebook-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.profile20-grid{grid-template-columns:1fr}.desk10-side-column{grid-template-columns:repeat(3,minmax(0,1fr))!important;position:static!important}}
@media(max-width:900px){html{font-size:16.5px!important}body{font-size:16.5px!important}.nav-item{font-size:15px!important}.nav-sub-item{font-size:14px!important}.page-head h1{font-size:23px!important}.workcal-head,.phonebook-head{align-items:stretch;flex-direction:column}.phonebook-search{grid-template-columns:20px 1fr auto;width:100%}.profile20-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.desk10-side-column{grid-template-columns:1fr!important}.desk20-decree-strip .desk10-announcement-card{width:370px;min-width:370px;grid-template-columns:105px 1fr;min-height:175px}.desk20-decree-strip .desk10-announcement-card>img,.desk20-decree-strip .desk10-announcement-placeholder{width:105px;height:145px}}
@media(max-width:640px){body{font-size:16px!important}.content-area{padding-inline:12px}.phonebook-grid{grid-template-columns:1fr}.phonebook-search{grid-template-columns:20px 1fr}.phonebook-search .btn{grid-column:1/-1}.workcal-calendar-card{padding:12px}.workcal-week-head,.workcal-grid{gap:4px}.workcal-day{min-height:62px;padding:7px}.workcal-day b{font-size:14px}.workcal-day small{font-size:9px}.workcal-legend{gap:9px;font-size:10px}.profile20-hero{align-items:flex-start;flex-direction:column}.profile20-status{text-align:right}.profile20-person>img,.profile20-avatar{width:66px;height:70px}.profile20-fields{grid-template-columns:1fr}.desk20-decree-strip .desk10-announcement-card{width:320px;min-width:320px;grid-template-columns:88px 1fr;padding:10px;min-height:160px}.desk20-decree-strip .desk10-announcement-card>img,.desk20-decree-strip .desk10-announcement-placeholder{width:88px;height:135px}.desk10-announcement-card h3{font-size:14px!important}.desk10-announcement-card p{font-size:12.5px!important}.desk20-people-two-row{grid-auto-columns:205px}.desk20-people-two-row .desk10-person-card{width:205px}}
.desk20-selected-note{margin-top:7px;padding:7px 9px;border-radius:8px;background:#fff5f5;color:#b42318;font-size:11px}.dark .desk20-selected-note{background:rgba(240,68,56,.08);color:#fda29b}

/* UI23 — letterhead upload preview */
.branding-upload-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.branding-upload-preview.letterhead{width:100%;height:108px;padding:6px;background:#fff}
.branding-upload-preview.letterhead img{width:100%;height:100%;object-fit:contain;object-position:center top}
.letterhead-placeholder{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border-bottom:2px solid var(--ds-brand-500);color:var(--ds-text-strong);text-align:center}.letterhead-placeholder b{font-size:13px}.letterhead-placeholder small{font-size:10.5px;color:var(--ds-text-muted)}
@media(max-width:1180px){.branding-upload-grid{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.branding-upload-grid{grid-template-columns:1fr}}

/* ========================================================================
   UI23.3 — dashboard dark promos + organizational/management navigation split
   ======================================================================== */
/* The React reference uses image-only promos in light mode. In dark mode we
   intentionally fall back to semantic brand surfaces and restore the content,
   so a missing/dark banner asset can never turn these cards into black boxes. */
html[data-theme=dark] .desk10-promo-contract,html.dark .desk10-promo-contract,
html[data-theme=dark] .desk10-promo-chat,html.dark .desk10-promo-chat{
  background-image:none!important;
  color:var(--ds-text-strong)!important;
  border-color:var(--ds-border-strong)!important;
  box-shadow:0 8px 26px rgba(0,0,0,.14)!important;
}
html[data-theme=dark] .desk10-promo-contract,html.dark .desk10-promo-contract{
  background:linear-gradient(135deg,color-mix(in srgb,var(--ds-brand-500) 20%,var(--ds-surface)),var(--ds-surface-raised) 72%)!important;
}
html[data-theme=dark] .desk10-promo-chat,html.dark .desk10-promo-chat{
  background:linear-gradient(135deg,color-mix(in srgb,var(--ds-brand-400) 16%,var(--ds-surface)),color-mix(in srgb,#4f65c6 12%,var(--ds-surface-raised)))!important;
}
html[data-theme=dark] .desk10-promo-contract>*,html.dark .desk10-promo-contract>*,
html[data-theme=dark] .desk10-promo-chat>*,html.dark .desk10-promo-chat>*{visibility:visible!important}
html[data-theme=dark] .desk10-promo>span,html.dark .desk10-promo>span{
  background:color-mix(in srgb,var(--ds-accent-text) 14%,var(--ds-surface-soft));
  color:var(--ds-accent-text-strong);
  border:1px solid color-mix(in srgb,var(--ds-accent-text) 20%,var(--ds-border));
}
html[data-theme=dark] .desk10-promo strong,html.dark .desk10-promo strong{color:var(--ds-text-strong)!important;font-size:14px!important}
html[data-theme=dark] .desk10-promo small,html.dark .desk10-promo small{color:var(--ds-text-muted)!important;opacity:1!important;font-size:11.5px!important}
html[data-theme=dark] .desk10-promo>.icon,html.dark .desk10-promo>.icon{color:var(--ds-accent-text)!important}

/* A manager is still an employee. The upper block contains organizational and
   self-service work; explicitly privileged consoles are visually separated and
   rendered lower in the same sidebar. */
.nav-management-divider{height:1px;margin:14px 8px 12px;background:linear-gradient(90deg,transparent,var(--ds-border-strong),transparent)}
.nav-label-management{display:flex!important;align-items:center;gap:7px;color:var(--ds-accent-text)!important;font-weight:800!important}
.nav-label-management:before{content:"";width:7px;height:7px;border-radius:999px;background:var(--ds-accent-text);box-shadow:0 0 0 4px color-mix(in srgb,var(--ds-accent-text) 12%,transparent)}
.nav-item-management{position:relative;background:color-mix(in srgb,var(--ds-brand-50) 32%,transparent)}
.nav-item-management:hover{background:color-mix(in srgb,var(--ds-brand-100) 55%,var(--ds-surface))!important}
.nav-item-management.active{background:color-mix(in srgb,var(--ds-brand-100) 74%,var(--ds-surface))!important;color:var(--ds-accent-text-strong)!important}
.nav-group-management{border-radius:10px}
.nav-group-management[open]{background:color-mix(in srgb,var(--ds-brand-50) 28%,transparent)}
.nav-sub-management:before{background:var(--ds-brand-300)!important}
.management-badge{margin-inline-start:auto;padding:2px 6px;border-radius:999px;background:var(--ds-brand-100);color:var(--ds-accent-text-strong);font-size:9.5px;font-weight:700;line-height:1.5}
html[data-theme=dark] .nav-item-management,html.dark .nav-item-management{background:color-mix(in srgb,var(--ds-brand-500) 7%,transparent)}
html[data-theme=dark] .nav-item-management:hover,html.dark .nav-item-management:hover{background:color-mix(in srgb,var(--ds-brand-500) 13%,var(--ds-surface))!important}
html[data-theme=dark] .nav-group-management[open],html.dark .nav-group-management[open]{background:color-mix(in srgb,var(--ds-brand-500) 6%,transparent)}

/* Dedicated employee self-service leave list. It remains user-scoped even when
   the same account also has HR/manager privileges. */
.leave-mine-card{overflow:hidden}.leave-mine-card .leave-approve-toolbar{border-bottom:1px solid var(--ds-border)}
.leave-mine-table .leave-reason{max-width:340px}.leave-reject-note{display:block;margin-top:4px;color:var(--ds-danger);font-size:11.5px}
@media(max-width:768px){.management-badge{font-size:9px}.leave-mine-card{overflow:visible}.leave-mine-card .leave-approve-toolbar{border:1px solid var(--ds-border);border-radius:12px;margin-bottom:10px}}

/* ========================================================================
   UI24 — Professional white-label login experience
   ======================================================================== */
.guest-body{
  min-height:100vh!important;
  min-height:100dvh!important;
  display:block!important;
  padding:0!important;
  overflow-x:hidden;
  background:var(--ds-canvas)!important;
}
.guest-shell{width:100%!important;max-width:none!important;min-height:100vh;min-height:100dvh;margin:0!important}
.guest-shell>.flash{
  position:fixed;z-index:120;top:20px;left:50%;transform:translateX(-50%);
  width:min(520px,calc(100% - 32px));margin:0!important;box-shadow:var(--ds-shadow-float);
  border-radius:12px!important;text-align:center;font-size:14px!important;
}
.auth24-page{position:relative;min-height:100vh;min-height:100dvh;padding:24px;display:grid;place-items:center;background:var(--ds-canvas);isolation:isolate}
.auth24-page:before{
  content:"";position:fixed;inset:0;z-index:-2;pointer-events:none;
  background:
    radial-gradient(circle at 8% 12%,color-mix(in srgb,var(--ds-brand-400) 9%,transparent) 0,transparent 30%),
    radial-gradient(circle at 94% 92%,color-mix(in srgb,var(--ds-brand-300) 8%,transparent) 0,transparent 28%),
    var(--ds-canvas);
}
.auth24-theme-toggle{
  position:fixed;z-index:90;top:22px;left:22px;width:44px;height:44px;border:1px solid color-mix(in srgb,var(--ds-border) 82%,transparent);
  border-radius:12px;background:color-mix(in srgb,var(--ds-surface) 88%,transparent);color:var(--ds-text-muted);display:grid;place-items:center;
  box-shadow:var(--ds-shadow-sm);backdrop-filter:blur(12px);transition:.18s ease;
}
.auth24-theme-toggle:hover{color:var(--ds-accent-text);border-color:color-mix(in srgb,var(--ds-brand-300) 55%,var(--ds-border));transform:translateY(-1px)}
.auth24-theme-toggle .icon{width:20px;height:20px}.auth24-theme-icon{grid-area:1/1}.auth24-theme-icon-sun{display:none}.dark .auth24-theme-icon-moon{display:none}.dark .auth24-theme-icon-sun{display:block}
.auth24-shell{
  width:min(1180px,100%);min-height:690px;display:grid;grid-template-columns:minmax(0,1.12fr) minmax(420px,.88fr);overflow:hidden;
  border:1px solid var(--ds-border);border-radius:24px;background:var(--ds-surface);box-shadow:0 28px 80px rgba(16,24,40,.13),0 2px 8px rgba(16,24,40,.04);
}
.dark .auth24-shell{box-shadow:0 32px 86px rgba(0,0,0,.34),0 1px 0 rgba(255,255,255,.02)}
.auth24-visual{
  position:relative;overflow:hidden;padding:54px 56px;color:#fff;
  background:
    linear-gradient(145deg,color-mix(in srgb,var(--ds-brand-900) 96%,#101828) 0%,color-mix(in srgb,var(--ds-brand-700) 92%,#1d2939) 55%,color-mix(in srgb,var(--ds-brand-600) 92%,#344054) 100%);
}
.auth24-visual:before{
  content:"";position:absolute;inset:0;pointer-events:none;opacity:.22;
  background-image:linear-gradient(rgba(255,255,255,.055) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.055) 1px,transparent 1px);
  background-size:38px 38px;mask-image:linear-gradient(to bottom,black,transparent 94%);
}
.auth24-visual:after{content:"";position:absolute;left:-15%;bottom:-31%;width:520px;height:520px;border-radius:50%;border:1px solid rgba(255,255,255,.08);box-shadow:0 0 0 74px rgba(255,255,255,.018),0 0 0 148px rgba(255,255,255,.012)}
.auth24-visual-content{position:relative;z-index:2;height:100%;display:flex;flex-direction:column}
.auth24-visual-glow{position:absolute;border-radius:999px;filter:blur(2px);pointer-events:none}.auth24-glow-one{width:290px;height:290px;top:-90px;right:-75px;background:radial-gradient(circle,rgba(255,255,255,.13),transparent 68%)}.auth24-glow-two{width:360px;height:360px;left:-120px;bottom:-80px;background:radial-gradient(circle,color-mix(in srgb,var(--ds-brand-300) 23%,transparent),transparent 70%)}
.auth24-orbit{position:absolute;border:1px solid rgba(255,255,255,.09);border-radius:50%;pointer-events:none}.auth24-orbit-one{width:440px;height:440px;left:-180px;top:70px}.auth24-orbit-two{width:260px;height:260px;left:-90px;top:160px}
.auth24-brand{display:flex;align-items:center;gap:12px;min-height:58px}.auth24-logo-wrap{position:relative;display:flex;align-items:center;min-height:54px}.auth24-logo{display:block;max-width:168px;max-height:54px;object-fit:contain}.auth24-logo-dark{display:none}.dark .auth24-logo-light{display:none}.dark .auth24-logo-dark{display:block}.auth24-brand-on-visual .auth24-logo-light{display:none}.auth24-brand-on-visual .auth24-logo-dark{display:block}.auth24-brand-on-visual .auth24-logo{filter:none;max-width:180px;max-height:58px}
.auth24-wordmark-mark{width:46px;height:46px;border-radius:13px;background:rgba(255,255,255,.12);display:grid;place-items:center;color:#fff;border:1px solid rgba(255,255,255,.14)}.auth24-wordmark-copy strong,.auth24-wordmark-copy small{display:block}.auth24-wordmark-copy strong{font-size:17px;color:inherit}.auth24-wordmark-copy small{font-size:11px;color:inherit;opacity:.7}
.auth24-hero-copy{margin-top:auto;padding-top:74px;max-width:530px}.auth24-eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:12.5px;font-weight:600;color:rgba(255,255,255,.78);margin-bottom:16px}.auth24-eyebrow i{width:7px;height:7px;border-radius:50%;background:#6ce9a6;box-shadow:0 0 0 5px rgba(108,233,166,.12)}
.auth24-hero-copy h2{margin:0;color:#fff;font-size:37px;line-height:1.55;letter-spacing:-.035em;font-weight:700}.auth24-hero-copy h2 em{font-style:normal;color:color-mix(in srgb,var(--ds-brand-200) 78%,#fff)}.auth24-hero-copy p{margin:13px 0 0;color:rgba(255,255,255,.66);font-size:14px;line-height:1.9;max-width:470px}
.auth24-feature-list{display:grid;gap:10px;margin-top:34px;max-width:510px}.auth24-feature{display:flex;align-items:center;gap:12px;padding:12px 13px;border:1px solid rgba(255,255,255,.09);border-radius:12px;background:rgba(255,255,255,.045);backdrop-filter:blur(5px)}.auth24-feature>span{width:40px;height:40px;border-radius:10px;background:rgba(255,255,255,.09);display:grid;place-items:center;color:#fff;flex:none}.auth24-feature>span .icon{width:19px;height:19px}.auth24-feature strong,.auth24-feature small{display:block}.auth24-feature strong{font-size:13.5px;color:#fff;font-weight:600}.auth24-feature small{font-size:11.5px;color:rgba(255,255,255,.56);margin-top:1px}
.auth24-visual-footer{display:flex;align-items:center;gap:8px;margin-top:auto;padding-top:28px;color:rgba(255,255,255,.56);font-size:11.5px}.auth24-live-dot{width:7px;height:7px;border-radius:50%;background:#32d583;box-shadow:0 0 0 5px rgba(50,213,131,.1)}
.auth24-form-pane{position:relative;padding:50px 58px 30px;background:var(--ds-surface);display:flex;flex-direction:column;min-width:0}.auth24-mobile-brand{display:none;align-items:center;gap:10px}.auth24-mobile-brand .auth24-wordmark-mark{background:var(--ds-brand-50);color:var(--ds-accent-text);border-color:var(--ds-border)}.auth24-mobile-brand .auth24-wordmark-copy strong{color:var(--ds-text-strong)}.auth24-mobile-brand .auth24-wordmark-copy small{color:var(--ds-text-muted)}
.auth24-form-wrap{width:100%;max-width:400px;margin:auto}.auth24-heading{margin-bottom:31px}.auth24-kicker{display:block;color:var(--ds-accent-text);font-size:12.5px;font-weight:600;margin-bottom:8px}.auth24-heading h1{font-size:28px!important;line-height:1.5!important;margin:0 0 8px!important;color:var(--ds-text-strong)!important;letter-spacing:-.025em}.auth24-heading p{margin:0;color:var(--ds-text-muted);font-size:13.5px}
.auth24-form{display:grid;gap:17px}.auth24-field{display:grid;gap:7px}.auth24-label{font-size:13px;font-weight:600;color:var(--ds-text)}.auth24-control{position:relative;display:block}.auth24-control input{width:100%;height:50px;border:1px solid var(--ds-border-strong);border-radius:10px;background:var(--ds-surface);color:var(--ds-text-strong);padding:0 45px 0 46px;outline:none;font-size:14.5px;transition:border-color .16s ease,box-shadow .16s ease,background .16s ease}.auth24-control input::placeholder{color:var(--ds-text-subtle)}.auth24-control input:hover{border-color:color-mix(in srgb,var(--ds-brand-300) 45%,var(--ds-border-strong))}.auth24-control input:focus{border-color:var(--ds-brand-400);box-shadow:0 0 0 4px var(--ds-focus)}.auth24-control-icon{position:absolute;right:15px;top:50%;transform:translateY(-50%);color:var(--ds-text-subtle);pointer-events:none}.auth24-control-icon .icon{width:19px;height:19px}.auth24-control:focus-within .auth24-control-icon{color:var(--ds-accent-text)}
.auth24-password-toggle{position:absolute;left:8px;top:50%;transform:translateY(-50%);width:36px;height:36px;border:0;background:transparent;color:var(--ds-text-subtle);border-radius:8px;display:grid;place-items:center}.auth24-password-toggle:hover{background:var(--ds-surface-muted);color:var(--ds-text)}.auth24-password-toggle .icon{width:18px;height:18px}
.auth24-submit{height:50px;margin-top:5px;border:1px solid var(--ds-brand-600);border-radius:10px;background:linear-gradient(180deg,var(--ds-brand-500),var(--ds-brand-600));color:#fff;font-size:14px;font-weight:700;display:grid;grid-template-columns:1fr auto;align-items:center;padding:0 17px 0 14px;box-shadow:0 8px 20px color-mix(in srgb,var(--ds-brand-700) 24%,transparent);transition:.17s ease}.auth24-submit:hover{transform:translateY(-1px);filter:brightness(1.04);box-shadow:0 12px 26px color-mix(in srgb,var(--ds-brand-700) 31%,transparent)}.auth24-submit:active{transform:translateY(0)}.auth24-submit-icon{transform:rotate(180deg);opacity:.75}.auth24-submit-icon .icon{width:18px;height:18px}.auth24-submit-loader{display:none;width:18px;height:18px;border-radius:50%;border:2px solid rgba(255,255,255,.3);border-top-color:#fff;animation:auth24spin .7s linear infinite}.auth24-submit.is-loading .auth24-submit-icon{display:none}.auth24-submit.is-loading .auth24-submit-loader{display:block}.auth24-submit:disabled{cursor:wait;opacity:.86;transform:none}@keyframes auth24spin{to{transform:rotate(360deg)}}
.auth24-security-note{margin-top:24px;padding:13px 14px;border:1px solid var(--ds-border);border-radius:11px;background:var(--ds-surface-muted);display:flex;align-items:flex-start;gap:11px}.auth24-security-note>span{width:34px;height:34px;border-radius:9px;background:var(--ds-brand-50);color:var(--ds-accent-text);display:grid;place-items:center;flex:none}.auth24-security-note>span .icon{width:17px;height:17px}.auth24-security-note strong,.auth24-security-note small{display:block}.auth24-security-note strong{font-size:12.5px;color:var(--ds-text);font-weight:600}.auth24-security-note small{font-size:10.8px;color:var(--ds-text-muted);line-height:1.8;margin-top:2px}
.auth24-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;padding-top:20px;color:var(--ds-text-subtle);font-size:10.5px;border-top:1px solid color-mix(in srgb,var(--ds-border) 70%,transparent)}
@media(max-width:980px){.auth24-page{padding:18px}.auth24-shell{grid-template-columns:1fr;min-height:0;width:min(540px,100%)}.auth24-visual{display:none}.auth24-form-pane{min-height:680px;padding:34px 44px 26px}.auth24-mobile-brand{display:flex}.auth24-form-wrap{margin:52px auto auto}.auth24-footer{margin-top:50px}}
@media(max-width:560px){.auth24-page{padding:0;background:var(--ds-surface)}.auth24-page:before{display:none}.auth24-shell{width:100%;min-height:100vh;min-height:100dvh;border:0;border-radius:0;box-shadow:none}.auth24-form-pane{min-height:100vh;min-height:100dvh;padding:24px 22px 22px}.auth24-theme-toggle{top:18px;left:18px;width:40px;height:40px;box-shadow:none}.auth24-mobile-brand{min-height:48px;padding-left:48px}.auth24-mobile-brand .auth24-logo{max-width:130px;max-height:42px}.auth24-form-wrap{margin:64px auto 0;max-width:none}.auth24-heading{margin-bottom:27px}.auth24-heading h1{font-size:25px!important}.auth24-heading p{font-size:13px}.auth24-control input,.auth24-submit{height:52px}.auth24-security-note{margin-top:22px}.auth24-footer{margin-top:auto;padding-top:18px;flex-direction:column;align-items:flex-start;gap:3px}.guest-shell>.flash{top:74px}}

/* UI24 white-label logo fallback: only swap when a dedicated dark logo exists. */
.auth24-logo-wrap.has-dark .auth24-logo-dark{display:none}
.dark .auth24-logo-wrap.has-dark .auth24-logo-light{display:none}
.dark .auth24-logo-wrap.has-dark .auth24-logo-dark{display:block}
.auth24-brand-on-visual .auth24-logo-wrap.has-dark .auth24-logo-light{display:none}
.auth24-brand-on-visual .auth24-logo-wrap.has-dark .auth24-logo-dark{display:block}
.auth24-brand-on-visual .auth24-logo-wrap.no-dark{padding:6px 10px;border-radius:10px;background:rgba(255,255,255,.94)}
.auth24-brand-on-visual .auth24-logo-wrap.no-dark .auth24-logo-light{display:block;max-height:46px}
.dark .auth24-logo-wrap.no-dark .auth24-logo-light{display:block}
.auth24-shell{direction:ltr}
.auth24-visual,.auth24-form-pane{direction:rtl}

/* ========================================================================
   UI26 — Phone book: five-column people cards + local Tailwind-style skeleton
   Skeleton follows the daisyUI/Tailwind placeholder pattern without adding a
   daisyUI runtime dependency: a rounded animated placeholder div is enough.
   ======================================================================== */
.phonebook-page{gap:20px!important}
.phonebook-title-block{max-width:720px}
.phonebook-title-block p{margin-top:5px!important}
.phonebook-head{align-items:center!important}
.phonebook-search{position:relative;grid-template-columns:20px minmax(240px,390px) auto!important;min-width:min(100%,490px);padding:5px 6px 5px 12px!important;box-shadow:var(--ds-shadow-xs);transition:border-color .18s ease,box-shadow .18s ease,background .18s ease}
.phonebook-search:focus-within{border-color:color-mix(in srgb,var(--ds-brand-400) 66%,var(--ds-border));box-shadow:0 0 0 4px var(--ds-focus)}
.phonebook-search input{font-size:14.5px!important;min-width:0}
.phonebook-search-clear{position:absolute;left:82px;top:50%;translate:0 -50%;width:25px;height:25px;border-radius:50%;display:grid;place-items:center;color:var(--ds-text-muted);background:var(--ds-surface-muted);font-size:18px;line-height:1;z-index:2}
.phonebook-search-clear:hover{color:var(--ds-text-strong);background:var(--ds-surface-soft)}
.phonebook-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px}
.phonebook-summary{padding:7px 10px 7px 14px;border:1px solid var(--ds-border);background:var(--ds-surface);border-radius:12px;box-shadow:var(--ds-shadow-xs)}
.phonebook-summary>span{border-radius:9px!important}
.phonebook-summary strong{font-size:17px!important;line-height:1.2}
.phonebook-summary small{font-size:11.75px!important;margin-top:2px}
.phonebook-hint{display:flex;align-items:center;gap:8px;color:var(--ds-text-muted);font-size:12.5px}
.phonebook-online-dot{width:8px;height:8px;border-radius:50%;background:var(--ds-success);box-shadow:0 0 0 4px color-mix(in srgb,var(--ds-success) 12%,transparent);flex:none}

.phonebook-grid,.phonebook-skeleton-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}
.phonebook-card{position:relative;min-width:0;min-height:344px;padding:17px 15px 14px!important;display:flex;flex-direction:column;gap:12px!important;overflow:hidden;border:1px solid var(--ds-border)!important;border-radius:14px!important;background:var(--ds-surface)!important;box-shadow:var(--ds-shadow-xs)!important;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease}
.phonebook-card:hover{transform:translateY(-2px);border-color:color-mix(in srgb,var(--ds-brand-300) 50%,var(--ds-border))!important;box-shadow:var(--ds-shadow-md)!important}
.phonebook-card-accent{position:absolute;inset:0 0 auto 0;height:3px;background:linear-gradient(90deg,var(--ds-brand-300),var(--ds-brand-500),var(--ds-brand-300));opacity:.72}
.phonebook-person{display:flex;align-items:center;gap:12px!important;padding-top:4px;min-width:0}
.phonebook-avatar-wrap{position:relative;width:68px;height:68px;flex:0 0 68px}
.phonebook-avatar-wrap>img,.phonebook-avatar{width:68px!important;height:68px!important;border-radius:999px!important;display:block;object-fit:cover!important;border:2px solid var(--ds-surface)!important;box-shadow:0 0 0 1px var(--ds-border),0 5px 14px rgba(16,24,40,.08)}
.phonebook-avatar{display:grid!important;place-items:center;background:linear-gradient(145deg,var(--ds-brand-50),var(--ds-surface-soft))!important;color:var(--ds-accent-text)!important;font-size:21px!important;font-weight:700!important}
.phonebook-person-status{position:absolute;left:2px;bottom:4px;width:13px;height:13px;border-radius:50%;background:var(--ds-success);border:2.5px solid var(--ds-surface);box-shadow:0 1px 2px rgba(0,0,0,.12)}
.phonebook-person-copy{min-width:0;flex:1}
.phonebook-person-copy strong{display:block;color:var(--ds-text-strong);font-size:14.5px!important;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.phonebook-person-copy small{display:block;color:var(--ds-text-muted);font-size:11.5px!important;line-height:1.75;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.phonebook-department{display:flex;align-items:center;gap:6px;min-height:29px;width:max-content;max-width:100%;padding:4px 8px;border-radius:8px;background:var(--ds-brand-50);color:var(--ds-accent-text);font-size:10.75px;font-weight:600}
.phonebook-department .icon{width:14px;height:14px;flex:none}.phonebook-department span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.phonebook-contact-list{display:grid!important;grid-template-columns:1fr!important;gap:5px!important;margin-top:1px}
.phonebook-contact-row{display:grid!important;grid-template-columns:30px minmax(0,1fr)!important;align-items:center;gap:8px!important;padding:7px 8px!important;border:0!important;border-radius:9px!important;background:var(--ds-surface-muted)!important;min-height:43px}
.phonebook-contact-row>div{min-width:0}.phonebook-contact-icon{width:30px!important;height:30px!important;border-radius:8px;display:grid!important;place-items:center!important;background:var(--ds-surface);color:var(--ds-accent-text);border:1px solid var(--ds-border);grid-row:auto!important}
.phonebook-contact-icon .icon{width:14px!important;height:14px!important}.phonebook-contact-row small{display:block!important;font-size:9.75px!important;line-height:1.3;color:var(--ds-text-subtle)!important}.phonebook-contact-row a,.phonebook-contact-row b{display:block;max-width:100%;margin-top:2px;font-size:11px!important;line-height:1.45;font-weight:600!important;color:var(--ds-text)!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:right}.phonebook-contact-row a[dir=ltr]{text-align:right;unicode-bidi:plaintext}
.phonebook-actions{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(0,1fr));gap:6px!important;margin-top:auto!important;padding-top:11px!important;border-top:1px solid var(--ds-border)!important}
.phonebook-action{min-height:35px;display:flex;align-items:center;justify-content:center;gap:5px;padding:7px;border-radius:8px;font-size:10.75px;font-weight:700;white-space:nowrap;transition:transform .15s ease,background .15s ease,border-color .15s ease,color .15s ease}
.phonebook-action:hover{transform:translateY(-1px)}.phonebook-action .icon{width:14px;height:14px;flex:none}
.phonebook-action-soft{border:1px solid var(--ds-border);background:var(--ds-surface-muted);color:var(--ds-text)}.phonebook-action-soft:hover{border-color:var(--ds-border-strong);background:var(--ds-surface-soft);color:var(--ds-text-strong)}
.phonebook-action-primary{border:1px solid var(--ds-brand-500);background:var(--ds-brand-500);color:#fff}.phonebook-action-primary:hover{background:var(--ds-brand-600);border-color:var(--ds-brand-600)}
.phonebook-empty{grid-column:1/-1;min-height:260px!important}

/* Local skeleton component, visually matching Tailwind/daisyUI skeleton usage. */
.skeleton{display:block;position:relative;overflow:hidden;background:color-mix(in srgb,var(--ds-surface-soft) 86%,var(--ds-border));border-radius:8px}
.skeleton::after{content:"";position:absolute;inset:0;translate:100% 0;background:linear-gradient(90deg,transparent,color-mix(in srgb,var(--ds-surface) 74%,transparent),transparent);animation:phonebook-skeleton 1.35s ease-in-out infinite}
@keyframes phonebook-skeleton{to{translate:-100% 0}}
.phonebook-card-skeleton{pointer-events:none}.phonebook-card-skeleton:hover{transform:none!important;box-shadow:var(--ds-shadow-xs)!important;border-color:var(--ds-border)!important}
.phonebook-skeleton-head{display:flex;align-items:center;gap:12px}.phonebook-skeleton-lines{display:grid;gap:9px;flex:1}.phonebook-skeleton-contact{display:grid;gap:6px}.phonebook-skeleton-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:auto;padding-top:11px;border-top:1px solid var(--ds-border)}
.h-avatar{width:68px;height:68px;flex:none}.h-line{height:11px}.h-chip{height:27px}.h-contact{height:43px}.h-button{height:35px}.w-70{width:70%}.w-50{width:50%}.w-45{width:45%}
.phonebook-search.is-loading{opacity:.78}.phonebook-search.is-loading button{cursor:wait}

html[data-theme=dark] .phonebook-card,html.dark .phonebook-card{box-shadow:0 1px 2px rgba(0,0,0,.24)!important}
html[data-theme=dark] .phonebook-card:hover,html.dark .phonebook-card:hover{box-shadow:0 14px 32px rgba(0,0,0,.28)!important}
html[data-theme=dark] .phonebook-action-primary,html.dark .phonebook-action-primary{color:#fff}

@media(max-width:1180px){.phonebook-grid,.phonebook-skeleton-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.phonebook-hint{display:none}}
@media(max-width:980px){.phonebook-grid,.phonebook-skeleton-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.phonebook-head{align-items:stretch!important}.phonebook-search{min-width:0;width:100%;grid-template-columns:20px minmax(0,1fr) auto!important}.phonebook-toolbar{align-items:stretch}.phonebook-summary{width:max-content}}
@media(max-width:760px){.phonebook-grid,.phonebook-skeleton-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.phonebook-grid,.phonebook-skeleton-grid{grid-template-columns:1fr!important;gap:10px}.phonebook-search{grid-template-columns:20px minmax(0,1fr)!important}.phonebook-search .btn{grid-column:1/-1}.phonebook-search-clear{left:10px;top:27px}.phonebook-card{min-height:0;padding:15px!important}.phonebook-avatar-wrap,.phonebook-avatar-wrap>img,.phonebook-avatar{width:64px!important;height:64px!important;flex-basis:64px}.phonebook-contact-list{grid-template-columns:1fr!important}.phonebook-actions{grid-template-columns:repeat(auto-fit,minmax(0,1fr))}.phonebook-action{font-size:11.25px}.phonebook-toolbar{display:block}.phonebook-summary{width:100%}}

/* UI27 — Department tree & organizational access workspace */
.dept27-page-head{align-items:flex-start!important;gap:18px}.dept27-page-head .eyebrow{font-size:12.5px;font-weight:700;color:var(--ds-accent-text);margin-bottom:4px}.dept27-page-head .page-actions{display:flex;gap:8px;flex-wrap:wrap}.dept27-shell{display:grid;grid-template-columns:minmax(300px,360px) minmax(0,1fr);gap:18px;align-items:start}.dept27-tree-card{position:sticky;top:calc(var(--ds-header-h) + 18px);padding:14px!important;max-height:calc(100vh - var(--ds-header-h) - 38px);overflow:hidden;display:flex;flex-direction:column}.dept27-tree-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:3px 2px 12px}.dept27-tree-head>div{display:flex;flex-direction:column;gap:2px}.dept27-tree-head strong{font-size:15px}.dept27-tree-head small{font-size:12px}.dept27-search{position:relative;display:block;margin-bottom:10px}.dept27-search>span{position:absolute;right:12px;top:50%;transform:translateY(-50%);width:18px;height:18px;color:var(--ds-text-subtle);pointer-events:none}.dept27-search input{width:100%;padding-right:39px!important;background:var(--ds-surface-muted)!important}.dept27-tree{overflow:auto;padding:2px 1px 8px;scrollbar-width:thin;min-height:120px}.dept27-tree-node{position:relative}.dept27-tree-row{display:flex;align-items:center;min-height:46px;border-radius:10px;padding-inline-start:calc(var(--tree-level,0) * 13px);transition:background .15s ease,border-color .15s ease}.dept27-tree-row:hover{background:var(--ds-surface-muted)}.dept27-tree-row.active{background:var(--ds-brand-50);box-shadow:inset -3px 0 0 var(--ds-brand-500)}.dark .dept27-tree-row.active{box-shadow:inset -3px 0 0 var(--ds-brand-300)}.dept27-tree-row.search-match{outline:1px solid var(--ds-brand-300);background:var(--ds-brand-50)}.dept27-tree-toggle,.dept27-tree-spacer{width:28px;height:28px;display:grid;place-items:center;flex:0 0 28px}.dept27-tree-toggle{border:0;background:transparent;color:var(--ds-text-subtle);cursor:pointer;border-radius:8px}.dept27-tree-toggle:hover{background:var(--ds-surface-soft);color:var(--ds-accent-text)}.dept27-tree-toggle .icon{width:15px;height:15px;transform:rotate(0deg);transition:transform .15s}.dept27-tree-toggle[aria-expanded="true"] .icon{transform:rotate(90deg)}.dept27-tree-link{display:flex;align-items:center;gap:9px;min-width:0;flex:1;padding:7px 7px;color:var(--ds-text);text-decoration:none}.dept27-tree-icon{width:28px;height:28px;border-radius:8px;display:grid;place-items:center;background:var(--ds-surface-soft);color:var(--ds-text-muted);flex:0 0 28px}.dept27-tree-row.active .dept27-tree-icon{background:var(--ds-brand-100);color:var(--ds-accent-text)}.dept27-tree-icon .icon{width:16px;height:16px}.dept27-tree-copy{display:flex;flex-direction:column;gap:2px;min-width:0}.dept27-tree-copy strong{font-size:13.5px;font-weight:650;color:inherit;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dept27-tree-copy small{font-size:11px;color:var(--ds-text-subtle);white-space:nowrap}.dept27-tree-children{position:relative}.dept27-tree-children:before{content:"";position:absolute;right:calc(20px + var(--tree-indent,0px));top:0;bottom:8px;width:1px;background:var(--ds-border)}.dept27-tree-empty{padding:16px;text-align:center;color:var(--ds-text-muted);font-size:13px}.dept27-main{min-width:0;display:flex;flex-direction:column;gap:18px}.dept27-empty-main{min-height:420px;display:grid;place-items:center;text-align:center;align-content:center;gap:10px}.dept27-empty-main>span{width:64px;height:64px;border-radius:20px;background:var(--ds-brand-50);color:var(--ds-accent-text);display:grid;place-items:center}.dept27-empty-main>span .icon{width:30px;height:30px}.dept27-empty-main h2{margin:4px 0 0}.dept27-empty-main p{max-width:520px;margin:0;color:var(--ds-text-muted)}.dept27-hero{padding:18px!important;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:14px;background:linear-gradient(135deg,var(--ds-surface) 0%,color-mix(in srgb,var(--ds-brand-50) 45%,var(--ds-surface)) 100%)!important}.dept27-hero-icon{width:52px;height:52px;border-radius:14px;background:var(--ds-brand-50);color:var(--ds-accent-text);display:grid;place-items:center}.dept27-hero-icon .icon{width:25px;height:25px}.dept27-breadcrumb{display:flex;gap:5px;flex-wrap:wrap;font-size:11.5px;color:var(--ds-text-subtle);margin-bottom:3px}.dept27-breadcrumb a{color:var(--ds-text-muted);text-decoration:none}.dept27-breadcrumb a:hover{color:var(--ds-accent-text)}.dept27-hero-copy h2{font-size:22px;margin:0 0 7px}.dept27-stat-row{display:flex;gap:8px;flex-wrap:wrap}.dept27-stat-row span{font-size:11.5px;border:1px solid var(--ds-border);background:var(--ds-surface);border-radius:999px;padding:4px 8px;color:var(--ds-text-muted)}.dept27-stat-row b{color:var(--ds-text-strong);font-size:12px}.dept27-hero-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.dept27-overview-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.dept27-overview-card{padding:16px!important;display:flex;flex-direction:column;gap:13px;min-height:210px}.dept27-card-title{display:flex;align-items:center;gap:10px}.dept27-card-title>span{width:38px;height:38px;border-radius:10px;background:var(--ds-surface-soft);color:var(--ds-accent-text);display:grid;place-items:center;flex:0 0 38px}.dept27-card-title .icon{width:19px;height:19px}.dept27-card-title>div{display:flex;flex-direction:column}.dept27-card-title strong{font-size:14px}.dept27-card-title small{font-size:10.5px;color:var(--ds-text-subtle)}.dept27-card-title code{font:inherit;color:var(--ds-accent-text)}.dept27-manager-person{display:flex;align-items:center;gap:10px;padding:10px;border-radius:11px;background:var(--ds-surface-muted);border:1px solid var(--ds-border)}.dept27-manager-person img,.dept27-avatar{width:44px!important;height:44px!important;border-radius:50%!important;object-fit:cover!important;flex:0 0 44px}.dept27-manager-person>div{display:flex;flex-direction:column;gap:2px;min-width:0}.dept27-manager-person strong{font-size:13.5px}.dept27-manager-person span{font-size:11.5px;color:var(--ds-text-muted)}.dept27-soft-empty{font-size:12.5px;color:var(--ds-text-muted);background:var(--ds-surface-muted);border:1px dashed var(--ds-border-strong);border-radius:10px;padding:11px}.dept27-inline-form{margin-top:auto;display:flex;align-items:end;gap:8px}.dept27-inline-form .field{min-width:0;flex:1}.btn-sm{min-height:38px!important;height:38px!important;padding:0 12px!important;font-size:12.5px!important}.dept27-approver-list{display:flex;gap:6px;flex-wrap:wrap}.dept27-approver-list .badge{display:inline-flex;flex-direction:column;align-items:flex-start;gap:1px;min-height:30px;height:auto;padding:5px 8px}.dept27-approver-list .badge small{font-size:9.5px;color:inherit;opacity:.8}.dept27-help{font-size:11.75px;line-height:1.9;color:var(--ds-text-muted);margin:auto 0 0}.dept27-parent-line{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid var(--ds-border);padding-bottom:10px;font-size:12.5px}.dept27-parent-line span{color:var(--ds-text-muted)}.dept27-child-chips{display:flex;gap:6px;flex-wrap:wrap}.dept27-child-chips a{text-decoration:none}.dept27-section-head{display:flex;align-items:end;justify-content:space-between;gap:14px;margin-top:4px}.dept27-section-head h2{font-size:17px;margin:0 0 3px}.dept27-section-head p{font-size:12px;color:var(--ds-text-muted);margin:0;max-width:760px}.dept27-position-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.dept27-position-card{padding:14px!important;min-width:0}.dept27-position-card.is-manager{border-color:color-mix(in srgb,var(--ds-brand-400) 55%,var(--ds-border))!important;background:linear-gradient(180deg,var(--ds-surface),color-mix(in srgb,var(--ds-brand-50) 45%,var(--ds-surface)))!important}.dept27-position-top{display:flex;align-items:center;gap:9px}.dept27-position-icon{width:36px;height:36px;display:grid;place-items:center;border-radius:10px;background:var(--ds-surface-soft);color:var(--ds-text-muted);flex:0 0 36px}.is-manager .dept27-position-icon{background:var(--ds-brand-50);color:var(--ds-accent-text)}.dept27-position-icon .icon{width:18px;height:18px}.dept27-position-top>div{display:flex;flex-direction:column;min-width:0;flex:1}.dept27-position-top strong{font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dept27-position-top small{font-size:11px;color:var(--ds-text-muted)}.dept27-position-top>.badge{font-size:10.5px;white-space:nowrap}.dept27-edit-details{margin-top:11px;border-top:1px solid var(--ds-border);padding-top:9px}.dept27-edit-details summary{cursor:pointer;color:var(--ds-accent-text);font-size:12px;font-weight:650;list-style:none}.dept27-edit-details summary::-webkit-details-marker{display:none}.dept27-edit-form,.dept27-assignment-form{display:flex;flex-direction:column;gap:11px;margin-top:11px}.check-row{display:flex;align-items:flex-start;gap:9px;padding:10px;border:1px solid var(--ds-border);background:var(--ds-surface-muted);border-radius:10px;cursor:pointer}.check-row input{width:17px;height:17px;margin-top:2px;accent-color:var(--ds-brand-500);flex:0 0 17px}.check-row>span{display:flex;flex-direction:column;gap:2px}.check-row strong{font-size:12.5px}.check-row small{font-size:10.5px;line-height:1.7;color:var(--ds-text-muted)}.dept27-empty-strip{grid-column:1/-1;padding:18px!important;text-align:center;color:var(--ds-text-muted);font-size:13px}.dept27-people-list{display:flex;flex-direction:column;gap:10px}.dept27-person-row{padding:12px 14px!important;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px 16px}.dept27-person-row.is-inactive{opacity:.65}.dept27-person-main{display:flex;align-items:center;gap:11px;min-width:0}.dept27-person-avatar{width:48px!important;height:48px!important;border-radius:50%!important;object-fit:cover!important;flex:0 0 48px}.dept27-person-copy{min-width:0;display:flex;flex-direction:column;gap:2px}.dept27-person-name{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.dept27-person-name>a{font-weight:700;font-size:13.5px;color:var(--ds-text-strong);text-decoration:none}.dept27-person-name>a:hover{color:var(--ds-accent-text)}.dept27-person-copy>span{font-size:12px;color:var(--ds-text-muted)}.dept27-person-copy>small{font-size:10.5px;color:var(--ds-text-subtle);direction:ltr;text-align:right}.dept27-person-meta{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.dept27-person-meta span{display:flex;flex-direction:column;min-width:88px;padding:6px 9px;border-radius:8px;background:var(--ds-surface-muted);color:var(--ds-text-subtle);font-size:10px}.dept27-person-meta b{color:var(--ds-text);font-size:11.5px;margin-top:2px}.dept27-person-row>.dept27-edit-details{grid-column:1/-1}.dept27-check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.dept27-department-settings{padding:0!important;overflow:visible}.dept27-department-settings>summary{display:flex;align-items:center;gap:10px;cursor:pointer;padding:15px 16px;list-style:none}.dept27-department-settings>summary::-webkit-details-marker{display:none}.dept27-department-settings>summary>span{width:36px;height:36px;border-radius:10px;background:var(--ds-surface-soft);color:var(--ds-accent-text);display:grid;place-items:center}.dept27-department-settings>summary>div{display:flex;flex-direction:column;flex:1}.dept27-department-settings>summary strong{font-size:13.5px}.dept27-department-settings>summary small{font-size:11px}.dept27-department-settings>summary>.icon{width:17px;height:17px;color:var(--ds-text-subtle)}.dept27-settings-form{padding:15px 16px 16px;border-top:1px solid var(--ds-border);display:flex;flex-direction:column;gap:12px}.dept27-warning{font-size:11.5px;color:var(--ds-warning);background:var(--ds-warning-soft);border-radius:9px;padding:8px 10px}.dark .dept27-warning{background:color-mix(in srgb,var(--ds-warning) 13%,var(--ds-surface));color:#fdb022}.dept27-modal{position:fixed;inset:0;z-index:1200;display:grid;place-items:center;padding:20px}.dept27-modal[hidden]{display:none!important}.dept27-modal-backdrop{position:absolute;inset:0;border:0;background:rgba(12,17,29,.58);backdrop-filter:blur(3px);cursor:default}.dept27-modal-panel{position:relative;width:min(560px,100%);max-height:min(760px,calc(100vh - 40px));overflow:auto;background:var(--ds-surface);border:1px solid var(--ds-border);border-radius:18px;box-shadow:var(--ds-shadow-float)}.dept27-modal-wide .dept27-modal-panel{width:min(760px,100%)}.dept27-modal-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 18px;border-bottom:1px solid var(--ds-border)}.dept27-modal-head>div{display:flex;flex-direction:column}.dept27-modal-head strong{font-size:15px}.dept27-modal-head small{font-size:11px}.dept27-modal-head .icon-btn{font-size:22px;line-height:1}.dept27-modal-form{padding:17px 18px;display:flex;flex-direction:column;gap:13px}.dept27-modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:4px}.dept27-modal-open{overflow:hidden}.form-grid.two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
@media(max-width:1250px){.dept27-overview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dept27-overview-card.hierarchy-card{grid-column:1/-1}.dept27-position-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1050px){.dept27-shell{grid-template-columns:300px minmax(0,1fr)}.dept27-hero{grid-template-columns:auto minmax(0,1fr)}.dept27-hero-actions{grid-column:1/-1;justify-content:flex-start}.dept27-person-row{grid-template-columns:1fr}.dept27-person-meta{justify-content:flex-start}.dept27-person-row>.dept27-edit-details{grid-column:auto}}
@media(max-width:900px){.dept27-shell{display:flex;flex-direction:column}.dept27-tree-card{position:relative;top:auto;width:100%;max-height:none}.dept27-tree{max-height:420px}.dept27-main{width:100%}.dept27-overview-grid{grid-template-columns:1fr}.dept27-overview-card.hierarchy-card{grid-column:auto}.dept27-position-grid{grid-template-columns:1fr}.dept27-hero{grid-template-columns:auto minmax(0,1fr)}.dept27-page-head{flex-direction:column}.dept27-page-head .page-actions{width:100%}.dept27-page-head .page-actions .btn{flex:1}}
@media(max-width:640px){.dept27-hero{grid-template-columns:1fr;padding:15px!important}.dept27-hero-icon{width:44px;height:44px}.dept27-hero-actions{grid-column:auto;display:grid;grid-template-columns:1fr}.dept27-hero-actions .btn{width:100%}.dept27-stat-row span{font-size:10.5px}.dept27-inline-form{flex-direction:column;align-items:stretch}.dept27-person-row{padding:11px!important}.dept27-person-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.dept27-person-meta span{min-width:0}.dept27-check-grid,.form-grid.two{grid-template-columns:1fr}.dept27-modal{padding:10px;align-items:end}.dept27-modal-panel{max-height:90vh;border-radius:18px 18px 10px 10px}.dept27-modal-actions{display:grid;grid-template-columns:1fr 1fr}.dept27-section-head{align-items:flex-start}.dept27-section-head p{font-size:11px}.dept27-tree-copy strong{font-size:13px}}
