/* Xenakis Mobility — Unified surfaces + Light/Dark theme */
:root{
  --xm-hero-bg:
    radial-gradient(circle at 86% 14%,rgba(88,153,242,.23),transparent 18rem),
    linear-gradient(115deg,var(--x-navy-1000),var(--x-navy-900) 58%,var(--x-navy-800));
  --xm-hero-border:rgba(103,151,211,.18);
  --xm-hero-shadow:0 22px 52px rgba(9,39,78,.16);
  --xm-hero-text:#fff;
  --xm-hero-muted:rgba(229,239,251,.76);
  --xm-hero-eyebrow:#8fbcff;
}
html[data-theme="dark"]{
  color-scheme:dark;
  --x-canvas:#07111e;
  --x-canvas-blue:#0a1524;
  --x-surface:#0d1827;
  --x-surface-raised:#111f31;
  --x-surface-soft:#0b1624;
  --x-ink-950:#f3f7fd;
  --x-ink-800:#d8e4f2;
  --x-ink-650:#afbed0;
  --x-ink-500:#8799af;
  --x-ink-350:#6f8198;
  --x-line-strong:#3a4c61;
  --x-line:#2c3c50;
  --x-line-soft:#202f41;
  --x-success-soft:#123a2b;
  --x-warning-soft:#3a2a0f;
  --x-danger-soft:#3a181d;
  --x-info-soft:#102b50;
  --bg:var(--x-canvas);
  --surface:var(--x-surface);
  --ink:var(--x-ink-950);
  --muted:var(--x-ink-650);
  --line:var(--x-line);
  --soft-blue:#102944;
  --soft-green:#102d23;
  --soft-purple:#241d3c;
  --soft-amber:#35250e;
}
html[data-theme="dark"] body{
  background:
    radial-gradient(circle at 85% -8%,rgba(58,122,214,.12),transparent 34rem),
    linear-gradient(180deg,#091321 0%,#07111e 42%,#060e19 100%);
  color:var(--x-ink-950);
}
:where(
  .people-page-head,.devices-page-head,.emails-page-head,.users-page-head,.audit-page-head,
  .approvals-page-head,.backup-page-head,.search-page-head,.security-page-head,.vault-page-head,
  .org-page-head,.data-page-head,.support-page-head,.page-heading.account-heading,
  .org-detail-hero,.person-detail-hero,.device-detail-hero,.email-detail-hero,
  .profile-change-hero,.support-detail-hero,.support-new-hero,.me-hero
){
  position:relative;
  overflow:hidden;
  min-height:178px;
  margin-bottom:var(--x-space-200);
  padding:28px 32px;
  border:1px solid var(--xm-hero-border)!important;
  border-radius:var(--x-radius-2xl)!important;
  background:var(--xm-hero-bg)!important;
  box-shadow:var(--xm-hero-shadow)!important;
  color:var(--xm-hero-text)!important;
}
:where(
  .people-page-head,.devices-page-head,.emails-page-head,.users-page-head,.audit-page-head,
  .approvals-page-head,.backup-page-head,.search-page-head,.security-page-head,.vault-page-head,
  .org-page-head,.data-page-head,.support-page-head,.page-heading.account-heading,
  .org-detail-hero,.person-detail-hero,.device-detail-hero,.email-detail-hero,
  .profile-change-hero,.support-detail-hero,.support-new-hero,.me-hero
)::after{
  content:"";
  position:absolute;
  right:-80px;
  bottom:-110px;
  width:310px;
  height:210px;
  border:1px solid rgba(149,190,246,.12);
  border-radius:48% 52% 44% 56%;
  transform:rotate(-12deg);
  pointer-events:none;
}
:where(
  .people-page-head,.devices-page-head,.emails-page-head,.users-page-head,.audit-page-head,
  .approvals-page-head,.backup-page-head,.search-page-head,.security-page-head,.vault-page-head,
  .org-page-head,.data-page-head,.support-page-head,.page-heading.account-heading,
  .org-detail-hero,.person-detail-hero,.device-detail-hero,.email-detail-hero,
  .profile-change-hero,.support-detail-hero,.support-new-hero,.me-hero
) h1{
  color:#fff!important;
  font-size:clamp(28px,2.4vw,39px)!important;
  letter-spacing:-1.05px!important;
}
:where(
  .people-page-head,.devices-page-head,.emails-page-head,.users-page-head,.audit-page-head,
  .approvals-page-head,.backup-page-head,.search-page-head,.security-page-head,.vault-page-head,
  .org-page-head,.data-page-head,.support-page-head,.page-heading.account-heading,
  .org-detail-hero,.person-detail-hero,.device-detail-hero,.email-detail-hero,
  .profile-change-hero,.support-detail-hero,.support-new-hero,.me-hero
) :where(p,small,.detail-subtitle,.org-detail-path){
  color:var(--xm-hero-muted)!important;
}
:where(
  .people-page-head,.devices-page-head,.emails-page-head,.users-page-head,.audit-page-head,
  .approvals-page-head,.backup-page-head,.search-page-head,.security-page-head,.vault-page-head,
  .org-page-head,.data-page-head,.support-page-head,.page-heading.account-heading,
  .org-detail-hero,.person-detail-hero,.device-detail-hero,.email-detail-hero,
  .profile-change-hero,.support-detail-hero,.support-new-hero,.me-hero
) :where(.eyebrow,.panel-kicker){
  color:var(--xm-hero-eyebrow)!important;
}
:where(
  .people-summary,.devices-summary,.emails-summary,.users-summary,.approvals-summary,
  .backup-summary,.org-summary-strip,.data-summary-strip,.audit-count
){
  position:relative;
  z-index:2;
}
:where(
  .people-summary,.devices-summary,.emails-summary,.users-summary,.approvals-summary,
  .backup-summary,.org-summary-strip,.data-summary-strip
)>:where(div,a),
.audit-count{
  border:1px solid rgba(255,255,255,.13)!important;
  background:rgba(255,255,255,.075)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08)!important;
}
:where(
  .people-summary,.devices-summary,.emails-summary,.users-summary,.approvals-summary,
  .backup-summary,.org-summary-strip,.data-summary-strip
)>:where(div,a) strong,
.audit-count strong{
  color:#fff!important;
}
:where(
  .people-summary,.devices-summary,.emails-summary,.users-summary,.approvals-summary,
  .backup-summary,.org-summary-strip,.data-summary-strip
)>:where(div,a) span,
.audit-count span{
  color:rgba(225,237,251,.72)!important;
}
:where(.people-summary,.devices-summary,.emails-summary,.users-summary,.approvals-summary)>:where(div,a):nth-child(2){
  border-color:rgba(84,210,153,.26)!important;
  background:rgba(40,142,96,.14)!important;
}
:where(.people-summary,.devices-summary,.emails-summary,.users-summary,.approvals-summary)>:where(div,a):nth-child(2) strong{
  color:#8be0b9!important;
}

.global-search{
  flex:0 1 430px!important;
  width:min(430px,42vw)!important;
  max-width:430px!important;
  height:40px!important;
  padding:0 11px!important;
}
.global-search input{font-size:12px!important}
.topbar{gap:12px!important}
.topbar-actions{gap:7px!important}
.theme-switch{
  position:relative;
  display:flex;
  align-items:center;
  gap:5px;
  min-height:40px;
  padding:4px 6px;
  border:1px solid var(--x-line);
  border-radius:var(--x-radius-md);
  background:rgba(255,255,255,.84);
  box-shadow:var(--x-shadow-xs);
  color:var(--x-ink-650);
  user-select:none;
}
.theme-switch input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}
.theme-switch-label{
  position:relative;
  z-index:2;
  min-width:34px;
  padding:0 5px;
  font-size:8px;
  font-weight:800;
  text-align:center;
  transition:color var(--x-duration-base) var(--x-ease-standard);
}
.theme-switch-track{
  position:relative;
  width:42px;
  height:24px;
  flex:0 0 42px;
  border:1px solid var(--x-line-strong);
  border-radius:999px;
  background:#e9eef5;
}
.theme-switch-track::after{
  content:"";
  position:absolute;
  top:3px;
  left:3px;
  width:16px;
  height:16px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 2px 6px rgba(20,45,78,.18);
  transition:transform var(--x-duration-base) var(--x-ease-standard),background var(--x-duration-base) var(--x-ease-standard);
}
.theme-switch input:checked + .theme-switch-track{
  background:#112743;
  border-color:#38536f;
}
.theme-switch input:checked + .theme-switch-track::after{
  transform:translateX(18px);
  background:#7eb2ff;
}
html[data-theme="dark"] .theme-switch{
  border-color:#33465d;
  background:#111f31;
  color:#b9c8da;
}
html[data-theme="dark"] .theme-switch-label-dark,
html[data-theme="light"] .theme-switch-label-light{
  color:var(--x-cobalt-500);
}
html[data-theme="dark"] .topbar{
  background:rgba(8,18,31,.90)!important;
  border-bottom-color:#26384b!important;
  box-shadow:0 1px 0 rgba(255,255,255,.025)!important;
}
html[data-theme="dark"] .global-search,
html[data-theme="dark"] .icon-button,
html[data-theme="dark"] .top-install-button,
html[data-theme="dark"] .profile-chip,
html[data-theme="dark"] .design-preview-badge{
  border-color:var(--x-line)!important;
  background:rgba(15,27,43,.92)!important;
  color:var(--x-ink-650)!important;
}
html[data-theme="dark"] .global-search:focus-within{background:#111f31!important}
html[data-theme="dark"] .global-search kbd{
  border-color:var(--x-line)!important;
  background:#0a1524!important;
  color:var(--x-ink-500)!important;
}
html[data-theme="dark"] .profile-copy strong{color:var(--x-ink-950)!important}
html[data-theme="dark"] .profile-menu-popover{
  border-color:var(--x-line)!important;
  background:var(--x-surface-raised)!important;
}
html[data-theme="dark"] .profile-menu-popover :where(a,button){color:var(--x-ink-800)!important}
html[data-theme="dark"] .profile-menu-popover :where(a,button):hover{background:#17283b!important}

html[data-theme="dark"] :where(
  .panel,.people-toolbar,.people-list-card,.audit-table-card,.approval-card,.org-card,
  .org-section-panel,.security-card,.backup-action-card,.backup-list-card,.backup-policy-card,
  .support-queue-shell,.support-new-card,.support-requester-card,.support-routing-card,
  .support-action-card,.support-conversation,.support-attachments-panel,.apps-launcher-card,
  .profile-current-card,.profile-history-card,.me-device-card,.detail-field,.email-detail-card,
  .device-detail-card,.person-detail-card,.org-management,.account-card
){
  border-color:var(--x-line)!important;
  background:var(--x-surface)!important;
  color:var(--x-ink-950)!important;
  box-shadow:0 12px 28px rgba(0,0,0,.14)!important;
}
html[data-theme="dark"] :where(.people-toolbar,.support-queue-head,.panel-head,.support-submit-row){
  border-color:var(--x-line-soft)!important;
  background:var(--x-surface)!important;
}
html[data-theme="dark"] :where(.clean-table,.table-wrap,table,thead,tbody,tr,th,td){
  border-color:var(--x-line-soft)!important;
}
html[data-theme="dark"] table{
  background:var(--x-surface)!important;
  color:var(--x-ink-800)!important;
}
html[data-theme="dark"] thead{background:#111f31!important}
html[data-theme="dark"] th{color:#aabbd0!important}
html[data-theme="dark"] td{
  color:var(--x-ink-800)!important;
  background:transparent!important;
}
html[data-theme="dark"] tbody tr:hover{background:#122135!important}
html[data-theme="dark"] :where(input,select,textarea){
  border-color:var(--x-line-strong)!important;
  background:#0a1524!important;
  color:var(--x-ink-950)!important;
}
html[data-theme="dark"] :where(input,textarea)::placeholder{color:#70839a!important}
html[data-theme="dark"] option{background:#0d1827;color:#eaf2fc}

html[data-theme="dark"] :where(
  .filterbar,.people-filterbar,.email-filterbar,.support-filter-tabs,
  .approvals-tabs,.support-period-tabs,.search-tabs
){
  border-color:var(--x-line)!important;
  background:var(--x-surface-soft)!important;
}
html[data-theme="dark"] :where(.filter-reset,.secondary-button,.me-secondary-action){
  border-color:var(--x-line)!important;
  background:#101d2e!important;
  color:var(--x-ink-800)!important;
}
html[data-theme="dark"] :where(
  .org-node-link,.org-preview-row,.activity-item,.me-credential-row,
  .support-ticket-row,.support-attachment-card
){
  border-color:var(--x-line-soft)!important;
  background:var(--x-surface)!important;
  color:var(--x-ink-800)!important;
}
html[data-theme="dark"] :where(.table-secondary,small,.muted){color:var(--x-ink-500)!important}
html[data-theme="dark"] :where(h1,h2,h3,strong){color:var(--x-ink-950)}
html[data-theme="dark"] .apps-launcher-card{
  background:linear-gradient(145deg,#0f1a2a,#0b1624)!important;
}
html[data-theme="dark"] .apps-hub-note{
  border-color:var(--x-line)!important;
  background:#0e1b2c!important;
  color:var(--x-ink-650)!important;
}
html[data-theme="dark"] .kpi-card{
  border-color:#2d4157!important;
  box-shadow:0 14px 30px rgba(0,0,0,.16)!important;
}
html[data-theme="dark"] .kpi-blue{background:linear-gradient(135deg,#10243c,#0d2037)!important}
html[data-theme="dark"] .kpi-green{background:linear-gradient(135deg,#102b24,#0d241e)!important}
html[data-theme="dark"] .kpi-purple{background:linear-gradient(135deg,#241d3a,#1d1831)!important}
html[data-theme="dark"] .kpi-amber{background:linear-gradient(135deg,#34250f,#2a1f0e)!important}
html[data-theme="dark"] .kpi-card :where(strong,small,p){color:var(--x-ink-800)!important}

@media(max-width:1180px){
  .global-search{flex:1 1 360px!important;width:auto!important;max-width:420px!important}
  .theme-switch-label{display:none}
  .theme-switch{padding:4px 7px}
}
@media(max-width:900px){
  .global-search{max-width:none!important;width:auto!important;flex:1 1 auto!important}
}
@media(max-width:650px){
  :where(
    .people-page-head,.devices-page-head,.emails-page-head,.users-page-head,.audit-page-head,
    .approvals-page-head,.backup-page-head,.search-page-head,.security-page-head,.vault-page-head,
    .org-page-head,.data-page-head,.support-page-head,.page-heading.account-heading,
    .org-detail-hero,.person-detail-hero,.device-detail-hero,.email-detail-hero,
    .profile-change-hero,.support-detail-hero,.support-new-hero,.me-hero
  ){
    min-height:150px;
    padding:22px 20px;
  }
  .theme-switch{min-height:38px}
  .theme-switch-track{width:40px;flex-basis:40px}
}

html[data-theme="dark"] :where(
  .people-summary,.devices-summary,.emails-summary,.users-summary,.approvals-summary,
  .backup-summary,.org-summary-strip,.data-summary-strip
){
  border-color:rgba(255,255,255,.12)!important;
  background:rgba(4,13,24,.42)!important;
  box-shadow:none!important;
}
html[data-theme="dark"] :where(
  .people-summary,.devices-summary,.emails-summary,.users-summary,.approvals-summary,
  .backup-summary,.org-summary-strip,.data-summary-strip
)>:where(div,a){
  border-color:rgba(255,255,255,.10)!important;
  background:rgba(255,255,255,.055)!important;
  box-shadow:none!important;
}
html[data-theme="dark"] :where(.people-table-card,.devices-table-card,.emails-table-card,.users-table-card){
  border-color:var(--x-line)!important;
  background:var(--x-surface)!important;
}
html[data-theme="dark"] .clean-table thead th{
  border-color:var(--x-line)!important;
  background:#111f31!important;
  color:#aebed1!important;
  box-shadow:none!important;
}
html[data-theme="dark"] .clean-table tbody tr{
  background:var(--x-surface)!important;
}
html[data-theme="dark"] .clean-table tbody tr:hover{
  background:#122135!important;
}
html[data-theme="dark"] .clean-table tbody td{
  border-color:var(--x-line-soft)!important;
  color:var(--x-ink-650)!important;
}
html[data-theme="dark"] :where(.person-cell,.device-cell,.mail-cell,.user-cell) strong{
  color:var(--x-ink-800)!important;
}
html[data-theme="dark"] :where(.person-cell,.device-cell,.mail-cell,.user-cell) small,
html[data-theme="dark"] .table-primary,
html[data-theme="dark"] .table-secondary{
  color:var(--x-ink-500)!important;
}
/* R2 — canonical premium page composition */
:where(
  .people-page-head,.devices-page-head,.emails-page-head,.users-page-head,.audit-page-head,
  .approvals-page-head,.backup-page-head,.search-page-head,.security-page-head,.vault-page-head,
  .org-page-head,.data-page-head,.support-page-head,.page-heading.account-heading,
  .org-detail-hero,.person-detail-hero,.device-detail-hero,.email-detail-hero,
  .profile-change-hero,.support-detail-hero,.support-new-hero,.me-hero
){
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:28px!important;
}
:where(
  .people-page-head,.devices-page-head,.emails-page-head,.users-page-head,.audit-page-head,
  .approvals-page-head,.backup-page-head,.search-page-head,.security-page-head,.vault-page-head,
  .org-page-head,.data-page-head,.support-page-head,.page-heading.account-heading
)>div:first-child{
  position:relative;
  z-index:2;
  min-width:0;
  max-width:760px;
}
:where(
  .people-page-head,.devices-page-head,.emails-page-head,.users-page-head,.audit-page-head,
  .approvals-page-head,.backup-page-head,.search-page-head,.security-page-head,.vault-page-head,
  .org-page-head,.data-page-head,.support-page-head,.page-heading.account-heading
) h1{
  margin:7px 0 7px!important;
  line-height:1.08!important;
}
:where(
  .people-page-head,.devices-page-head,.emails-page-head,.users-page-head,.audit-page-head,
  .approvals-page-head,.backup-page-head,.search-page-head,.security-page-head,.vault-page-head,
  .org-page-head,.data-page-head,.support-page-head,.page-heading.account-heading
) p{
  max-width:760px!important;
  margin:0!important;
  line-height:1.58!important;
}
:where(
  .people-summary,.devices-summary,.emails-summary,.users-summary,.approvals-summary,
  .backup-summary,.org-summary-strip,.data-summary-strip,.vault-summary,.security-summary
){
  position:relative;
  z-index:3;
  display:grid!important;
  grid-auto-flow:column!important;
  grid-auto-columns:minmax(112px,1fr)!important;
  gap:6px!important;
  min-width:min(480px,46vw);
  padding:6px!important;
  border:1px solid rgba(255,255,255,.18)!important;
  border-radius:18px!important;
  background:rgba(255,255,255,.88)!important;
  box-shadow:0 12px 30px rgba(2,19,42,.18)!important;
  backdrop-filter:blur(12px);
}
:where(
  .people-summary,.devices-summary,.emails-summary,.users-summary,.approvals-summary,
  .backup-summary,.org-summary-strip,.data-summary-strip,.vault-summary,.security-summary
)>:where(div,a){
  --metric-accent:var(--x-cobalt-500);
  position:relative;
  min-width:0!important;
  min-height:60px;
  padding:11px 14px!important;
  overflow:hidden;
  border:1px solid rgba(205,217,231,.78)!important;
  border-radius:12px!important;
  background:linear-gradient(180deg,#fff,#f8fbff)!important;
  box-shadow:none!important;
  text-decoration:none;
}
:where(
  .people-summary,.devices-summary,.emails-summary,.users-summary,.approvals-summary,
  .backup-summary,.org-summary-strip,.data-summary-strip,.vault-summary,.security-summary
)>:where(div,a)::before{
  content:"";
  position:absolute;
  left:0;right:0;top:0;
  height:3px;
  background:var(--metric-accent);
}
:where(
  .people-summary,.devices-summary,.emails-summary,.users-summary,.approvals-summary,
  .backup-summary,.org-summary-strip,.data-summary-strip,.vault-summary,.security-summary
)>:where(div,a):nth-child(2){--metric-accent:var(--x-success)}
:where(
  .people-summary,.devices-summary,.emails-summary,.users-summary,.approvals-summary,
  .backup-summary,.org-summary-strip,.data-summary-strip,.vault-summary,.security-summary
)>:where(div,a):nth-child(3){--metric-accent:#8594a7}
:where(
  .emails-summary,.approvals-summary,.backup-summary,.org-summary-strip,
  .vault-summary,.security-summary
)>:where(div,a):nth-child(3){--metric-accent:var(--x-warning)}
:where(
  .emails-summary,.approvals-summary,.backup-summary,.org-summary-strip,
  .vault-summary,.security-summary
)>:where(div,a):nth-child(4){--metric-accent:#7867d8}
:where(
  .people-summary,.devices-summary,.emails-summary,.users-summary,.approvals-summary,
  .backup-summary,.org-summary-strip,.data-summary-strip,.vault-summary,.security-summary
) strong{
  display:block!important;
  color:var(--x-navy-950)!important;
  font-size:24px!important;
  line-height:1!important;
  letter-spacing:-.6px!important;
}
:where(
  .people-summary,.devices-summary,.emails-summary,.users-summary,.approvals-summary,
  .backup-summary,.org-summary-strip,.data-summary-strip,.vault-summary,.security-summary
) span{
  display:block!important;
  margin-top:5px!important;
  color:var(--x-ink-500)!important;
  font-size:8px!important;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
:where(.people-toolbar,.search-console,.approvals-tabs,.org-sort-toolbar,.apps-hub-note){
  position:relative;
  margin-bottom:14px!important;
  padding:10px!important;
  border:1px solid #dbe5f0!important;
  border-radius:18px!important;
  background:linear-gradient(180deg,#fff,#f8fbff)!important;
  box-shadow:0 8px 22px rgba(15,48,87,.055)!important;
}
:where(.people-toolbar,.search-console,.approvals-tabs,.org-sort-toolbar)::before{
  content:"";
  position:absolute;
  left:14px;right:14px;top:0;
  height:2px;
  border-radius:999px;
  background:linear-gradient(90deg,var(--x-cobalt-500),rgba(47,123,232,.20),transparent);
}
.approvals-tabs{
  display:flex!important;
  gap:7px!important;
}
.approvals-tabs a{
  min-height:38px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0 14px!important;
  border:1px solid var(--x-line)!important;
  border-radius:11px!important;
  background:#fff!important;
  color:var(--x-ink-650)!important;
  text-decoration:none!important;
  font-size:9px!important;
  font-weight:800!important;
}
.approvals-tabs a.active{
  border-color:rgba(47,123,232,.26)!important;
  background:var(--x-cobalt-50)!important;
  color:var(--x-cobalt-600)!important;
  box-shadow:inset 0 0 0 1px rgba(47,123,232,.08)!important;
}
.org-management{
  position:relative;
  overflow:hidden;
  border:1px solid #dbe5f0!important;
  border-radius:18px!important;
  background:linear-gradient(180deg,#fff,#fbfdff)!important;
  box-shadow:0 7px 20px rgba(15,48,87,.045)!important;
}
.org-management::before{
  content:"";
  position:absolute;
  left:0;top:0;bottom:0;
  width:3px;
  background:linear-gradient(180deg,var(--x-cobalt-500),#74b1ff);
}
.org-management>summary{
  min-height:48px!important;
  padding:14px 18px!important;
  color:var(--x-navy-800)!important;
  font-size:10px!important;
  font-weight:850!important;
}
:where(
  .people-table-card,.devices-table-card,.emails-table-card,.users-table-card,
  .vault-table-card,.audit-table-card,.backup-list-card
){
  --surface-accent:var(--x-cobalt-500);
  position:relative;
  overflow:hidden;
  border:1px solid #d6e1ed!important;
  border-radius:20px!important;
  background:#fff!important;
  box-shadow:0 12px 30px rgba(18,52,94,.075)!important;
}
.people-table-card{--surface-accent:#16845b}
.devices-table-card{--surface-accent:#6658cc}
.emails-table-card{--surface-accent:#b86e08}
.users-table-card{--surface-accent:#2f7be8}
.vault-table-card{--surface-accent:#356fc5}
.audit-table-card{--surface-accent:#477aaf}
.backup-list-card{--surface-accent:#357d78}
:where(
  .people-table-card,.devices-table-card,.emails-table-card,.users-table-card,
  .vault-table-card,.audit-table-card,.backup-list-card
)::before{
  content:"";
  position:absolute;
  left:0;right:0;top:0;
  height:3px;
  background:linear-gradient(90deg,var(--surface-accent),color-mix(in srgb,var(--surface-accent) 35%,#fff),transparent 82%);
  z-index:3;
}
:where(
  .people-table-card,.devices-table-card,.emails-table-card,.users-table-card,
  .vault-table-card,.audit-table-card,.backup-list-card
) .clean-table thead th{
  height:46px!important;
  padding:13px 15px!important;
  border-bottom:1px solid #dbe5ef!important;
  background:#f4f8fd!important;
  color:#5e7088!important;
  font-size:8px!important;
  font-weight:850!important;
}
:where(
  .people-table-card,.devices-table-card,.emails-table-card,.users-table-card,
  .vault-table-card,.audit-table-card,.backup-list-card
) .clean-table tbody td{
  padding:13px 15px!important;
}
:where(
  .people-table-card,.devices-table-card,.emails-table-card,.users-table-card,
  .vault-table-card,.audit-table-card,.backup-list-card
) .clean-table tbody tr{
  min-height:58px;
}
.backup-list-card>.panel-head{
  margin:0!important;
  padding:18px 18px 14px!important;
  border-bottom:1px solid var(--x-line-soft)!important;
}
:where(.backup-action-card,.backup-policy-card,.recovery-status-card,.recovery-setup-card){
  border:1px solid #d8e4f1!important;
  border-radius:20px!important;
  background:linear-gradient(180deg,#fff,#f8fbff)!important;
  box-shadow:0 10px 26px rgba(18,52,94,.065)!important;
}
.backup-action-card{
  position:relative;
  overflow:hidden;
  padding:20px!important;
}
.backup-action-card::before{
  content:"";
  position:absolute;
  left:0;top:0;bottom:0;
  width:4px;
  background:linear-gradient(180deg,var(--x-cobalt-500),#74b1ff);
}
.backup-policy-card{
  padding:18px!important;
}
.backup-policy-card>strong{
  color:var(--x-ink-800)!important;
  font-size:11px!important;
}
.backup-policy-card>p{
  margin:7px 0 0!important;
  color:var(--x-ink-600)!important;
  font-size:9px!important;
  line-height:1.6!important;
}
.recovery-policy-card{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:1px;
  padding:0!important;
  overflow:hidden;
}
.recovery-policy-card>div{
  padding:18px 20px;
  background:linear-gradient(180deg,#fff,#f8fbff);
}
.recovery-policy-card>div+div{
  border-left:1px solid var(--x-line-soft);
}
.recovery-policy-card strong{
  color:var(--x-ink-800);
  font-size:11px;
}
.recovery-policy-card p{
  margin:7px 0 0;
  color:var(--x-ink-600);
  font-size:9px;
  line-height:1.6;
}
.security-grid{
  gap:14px!important;
}
.security-card{
  position:relative!important;
  overflow:hidden!important;
  min-height:190px;
  padding:20px!important;
  border:1px solid #dbe5f0!important;
  border-radius:20px!important;
  background:linear-gradient(180deg,#fff,#f8fbff)!important;
  box-shadow:0 10px 26px rgba(18,52,94,.065)!important;
}
.security-card::before{
  content:"";
  position:absolute;
  left:0;right:0;top:0;
  height:3px;
  background:linear-gradient(90deg,var(--x-cobalt-500),#75b4ff,transparent);
}
.security-card-icon{
  width:48px!important;height:48px!important;
  border-radius:14px!important;
}
.security-tech{
  border-radius:20px!important;
}
.approval-card-list{
  display:grid!important;
  gap:12px!important;
}
.approval-card{
  position:relative;
  overflow:hidden;
  padding:18px!important;
  border:1px solid #dbe5f0!important;
  border-radius:20px!important;
  background:linear-gradient(180deg,#fff,#fbfdff)!important;
  box-shadow:0 9px 24px rgba(18,52,94,.06)!important;
}
.approval-card::before{
  content:"";
  position:absolute;
  left:0;top:0;bottom:0;
  width:3px;
  background:linear-gradient(180deg,var(--x-warning),#efca77);
}
.approval-diff{
  gap:10px!important;
}
.approval-diff>div{
  border:1px solid #e2e9f1!important;
  border-radius:13px!important;
  background:#f8fbff!important;
}
.search-console{
  padding:12px!important;
}
.search-console-form{
  gap:8px!important;
}
.search-console-input{
  min-height:44px!important;
  border:1px solid #d9e3ee!important;
  border-radius:12px!important;
  background:#fff!important;
  box-shadow:inset 0 1px 2px rgba(14,44,82,.025)!important;
}
.search-summary-row{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:10px!important;
  margin-bottom:14px!important;
}
.search-summary-row>div{
  padding:14px 16px!important;
  border:1px solid #dbe5f0!important;
  border-radius:14px!important;
  background:linear-gradient(180deg,#fff,#f8fbff)!important;
  box-shadow:0 7px 18px rgba(18,52,94,.045)!important;
}
.search-result-panel{
  overflow:hidden;
  border:1px solid #dbe5f0!important;
  border-radius:20px!important;
  background:#fff!important;
  box-shadow:0 10px 24px rgba(18,52,94,.055)!important;
}
.search-result-panel>.panel-head{
  margin:0!important;
  padding:17px 18px 13px!important;
  border-bottom:1px solid var(--x-line-soft)!important;
}
html[data-theme="dark"] :where(
  .people-summary,.devices-summary,.emails-summary,.users-summary,.approvals-summary,
  .backup-summary,.org-summary-strip,.data-summary-strip,.vault-summary,.security-summary
){
  border-color:rgba(255,255,255,.13)!important;
  background:rgba(5,14,26,.62)!important;
  box-shadow:0 12px 30px rgba(0,0,0,.22)!important;
}
html[data-theme="dark"] :where(
  .people-summary,.devices-summary,.emails-summary,.users-summary,.approvals-summary,
  .backup-summary,.org-summary-strip,.data-summary-strip,.vault-summary,.security-summary
)>:where(div,a){
  border-color:#35485e!important;
  background:linear-gradient(180deg,#17273a,#122033)!important;
}
html[data-theme="dark"] :where(
  .people-summary,.devices-summary,.emails-summary,.users-summary,.approvals-summary,
  .backup-summary,.org-summary-strip,.data-summary-strip,.vault-summary,.security-summary
) strong{color:#f4f8fd!important}
html[data-theme="dark"] :where(
  .people-summary,.devices-summary,.emails-summary,.users-summary,.approvals-summary,
  .backup-summary,.org-summary-strip,.data-summary-strip,.vault-summary,.security-summary
) span{color:#a9bad0!important}

html[data-theme="dark"] :where(.people-toolbar,.search-console,.approvals-tabs,.org-sort-toolbar,.apps-hub-note){
  border-color:#2c4055!important;
  background:linear-gradient(180deg,#0f1d2e,#0b1726)!important;
  box-shadow:0 8px 22px rgba(0,0,0,.16)!important;
}
html[data-theme="dark"] .approvals-tabs a{
  border-color:#304359!important;
  background:#112033!important;
  color:#aebed1!important;
}
html[data-theme="dark"] .approvals-tabs a.active{
  border-color:#3569a7!important;
  background:#17304f!important;
  color:#8fbcff!important;
}
html[data-theme="dark"] .org-management{
  border-color:#2c4055!important;
  background:linear-gradient(180deg,#0f1d2e,#0b1726)!important;
  box-shadow:0 8px 22px rgba(0,0,0,.14)!important;
}
html[data-theme="dark"] .org-management>summary{color:#dce8f5!important}
html[data-theme="dark"] .org-management[open]>summary{
  border-color:#26394d!important;
  background:#101f31!important;
}
html[data-theme="dark"] .org-management-form{
  border-color:#26394d!important;
  background:#0c1827!important;
}
html[data-theme="dark"] :where(
  .people-table-card,.devices-table-card,.emails-table-card,.users-table-card,
  .vault-table-card,.audit-table-card,.backup-list-card
){
  border-color:#2b3f54!important;
  background:#0d1827!important;
  box-shadow:0 12px 30px rgba(0,0,0,.18)!important;
}
html[data-theme="dark"] :where(
  .people-table-card,.devices-table-card,.emails-table-card,.users-table-card,
  .vault-table-card,.audit-table-card,.backup-list-card
) .clean-table thead th{
  border-color:#304359!important;
  background:#142438!important;
  color:#adbed2!important;
}
html[data-theme="dark"] :where(
  .people-table-card,.devices-table-card,.emails-table-card,.users-table-card,
  .vault-table-card,.audit-table-card,.backup-list-card
) .clean-table tbody tr{
  background:#0d1827!important;
}
html[data-theme="dark"] :where(
  .people-table-card,.devices-table-card,.emails-table-card,.users-table-card,
  .vault-table-card,.audit-table-card,.backup-list-card
) .clean-table tbody tr:hover{
  background:#132338!important;
}
html[data-theme="dark"] :where(
  .backup-action-card,.backup-policy-card,.recovery-status-card,.recovery-setup-card,
  .security-card,.security-tech,.approval-card,.search-result-panel,.search-summary-row>div
){
  border-color:#2b3f54!important;
  background:linear-gradient(180deg,#0f1d2e,#0b1726)!important;
  color:#dbe6f3!important;
  box-shadow:0 10px 26px rgba(0,0,0,.16)!important;
}
html[data-theme="dark"] .recovery-policy-card>div{
  background:linear-gradient(180deg,#0f1d2e,#0b1726)!important;
}
html[data-theme="dark"] .recovery-policy-card>div+div{
  border-color:#25384b!important;
}
html[data-theme="dark"] .approval-diff>div{
  border-color:#293c50!important;
  background:#101e2f!important;
}
html[data-theme="dark"] .search-console-input{
  border-color:#304359!important;
  background:#0b1726!important;
}
html[data-theme="dark"] .search-result-panel>.panel-head{
  border-color:#26394d!important;
  background:#0f1d2e!important;
}
@media(max-width:1100px){
  :where(
    .people-page-head,.devices-page-head,.emails-page-head,.users-page-head,.audit-page-head,
    .approvals-page-head,.backup-page-head,.search-page-head,.security-page-head,.vault-page-head,
    .org-page-head,.data-page-head,.support-page-head,.page-heading.account-heading
  ){
    align-items:stretch!important;
    flex-direction:column!important;
  }
  :where(
    .people-summary,.devices-summary,.emails-summary,.users-summary,.approvals-summary,
    .backup-summary,.org-summary-strip,.data-summary-strip,.vault-summary,.security-summary
  ){
    width:100%!important;
    min-width:0!important;
  }
}
@media(max-width:760px){
  :where(
    .people-summary,.devices-summary,.emails-summary,.users-summary,.approvals-summary,
    .backup-summary,.org-summary-strip,.data-summary-strip,.vault-summary,.security-summary
  ){
    grid-auto-flow:row!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  .approvals-tabs{
    overflow:auto;
    justify-content:flex-start;
  }
  .approvals-tabs a{flex:0 0 auto}
  .search-summary-row{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .recovery-policy-card{grid-template-columns:1fr}
  .recovery-policy-card>div+div{
    border-left:0;
    border-top:1px solid var(--x-line-soft);
  }
}
@media(max-width:520px){
  :where(
    .people-summary,.devices-summary,.emails-summary,.users-summary,.approvals-summary,
    .backup-summary,.org-summary-strip,.data-summary-strip,.vault-summary,.security-summary
  ){
    grid-template-columns:1fr 1fr!important;
  }
  :where(
    .people-summary,.devices-summary,.emails-summary,.users-summary,.approvals-summary,
    .backup-summary,.org-summary-strip,.data-summary-strip,.vault-summary,.security-summary
  )>div{
    min-height:56px;
    padding:10px 12px!important;
  }
}

html[data-theme="dark"] .people-empty{
  border-color:var(--x-line-soft)!important;
  background:linear-gradient(180deg,#101d2e,#0c1827)!important;
  color:var(--x-ink-500)!important;
}
/* R3 — full-width KPI rows below page heroes */
.page-kpi-row{
  position:relative!important;
  z-index:2!important;
  display:grid!important;
  grid-auto-flow:column!important;
  grid-auto-columns:minmax(0,1fr)!important;
  gap:14px!important;
  width:100%!important;
  min-width:0!important;
  margin:-2px 0 22px!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
}
.page-kpi-row>:where(div,a){
  --kpi-accent:#2f7be8;
  --kpi-soft:#edf5ff;
  position:relative!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:center!important;
  min-width:0!important;
  min-height:116px!important;
  padding:20px 22px!important;
  overflow:hidden!important;
  border:1px solid #d5e2f0!important;
  border-radius:20px!important;
  background:linear-gradient(135deg,#f8fbff 0%,var(--kpi-soft) 100%)!important;
  box-shadow:0 14px 32px rgba(14,52,98,.085)!important;
  text-decoration:none!important;
  transition:transform var(--x-duration-base) var(--x-ease-standard),box-shadow var(--x-duration-base) var(--x-ease-standard),border-color var(--x-duration-base) var(--x-ease-standard)!important;
}
.page-kpi-row>:where(div,a)::before{
  content:""!important;
  position:absolute!important;
  left:18px!important;
  right:18px!important;
  top:0!important;
  height:3px!important;
  border-radius:0 0 999px 999px!important;
  background:var(--kpi-accent)!important;
}
.page-kpi-row>a:hover{
  transform:translateY(-2px)!important;
  border-color:#bfd4ec!important;
  box-shadow:0 18px 38px rgba(14,52,98,.12)!important;
}
.page-kpi-row strong{
  display:block!important;
  margin:0!important;
  color:var(--x-navy-950)!important;
  font-size:34px!important;
  line-height:1!important;
  letter-spacing:-1.05px!important;
}
.page-kpi-row span{
  display:block!important;
  margin-top:8px!important;
  color:var(--x-ink-500)!important;
  font-size:9px!important;
  font-weight:750!important;
  line-height:1.35!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
}
.page-kpi-row>:where(div,a):nth-child(2){
  --kpi-accent:#16845b;
  --kpi-soft:#eaf8f1;
}
.page-kpi-row>:where(div,a):nth-child(3){
  --kpi-accent:#7f8ea2;
  --kpi-soft:#f0f3f7;
}
.page-kpi-row>:where(div,a):nth-child(4){
  --kpi-accent:#6e5fd2;
  --kpi-soft:#f1efff;
}
/* Semantic KPI accents by module */
.page-kpi-row.people-summary>:nth-child(3),
.page-kpi-row.devices-summary>:nth-child(3),
.page-kpi-row.users-summary>:nth-child(3),
.page-kpi-row.vault-summary>:nth-child(3){
  --kpi-accent:#7f8ea2;
  --kpi-soft:#f0f3f7;
}
.page-kpi-row.emails-summary>:nth-child(3),
.page-kpi-row.approvals-summary>:nth-child(1){
  --kpi-accent:#b86e08;
  --kpi-soft:#fff4de;
}
.page-kpi-row.emails-summary>:nth-child(4){
  --kpi-accent:#6e5fd2;
  --kpi-soft:#f1efff;
}
.page-kpi-row.approvals-summary>:nth-child(2){
  --kpi-accent:#16845b;
  --kpi-soft:#eaf8f1;
}
.page-kpi-row.approvals-summary>:nth-child(3){
  --kpi-accent:#bd3f48;
  --kpi-soft:#fff0f1;
}
.page-kpi-row.org-summary-strip>:nth-child(2){
  --kpi-accent:#6658cc;
  --kpi-soft:#f1efff;
}
.page-kpi-row.org-summary-strip>:nth-child(3){
  --kpi-accent:#16845b;
  --kpi-soft:#eaf8f1;
}
.page-kpi-row.security-summary>:nth-child(2),
.page-kpi-row.backup-summary>:nth-child(2){
  --kpi-accent:#16845b;
  --kpi-soft:#eaf8f1;
}
.page-kpi-row.security-summary>:nth-child(3),
.page-kpi-row.backup-summary>:nth-child(3){
  --kpi-accent:#6658cc;
  --kpi-soft:#f1efff;
}
.page-kpi-row.audit-count{
  grid-auto-flow:row!important;
  grid-auto-columns:auto!important;
  grid-template-columns:minmax(260px,360px)!important;
  justify-content:start!important;
}
@media(max-width:620px){
  .page-kpi-row.audit-count{grid-template-columns:1fr!important}
}
html[data-theme="dark"] .page-kpi-row{
  background:transparent!important;
}
html[data-theme="dark"] .page-kpi-row>:where(div,a){
  border-color:#2c4055!important;
  background:linear-gradient(135deg,#0f1d2e 0%,color-mix(in srgb,var(--kpi-accent) 10%,#0b1726) 100%)!important;
  box-shadow:0 14px 32px rgba(0,0,0,.18)!important;
}
html[data-theme="dark"] .page-kpi-row strong{
  color:#f3f7fd!important;
}
html[data-theme="dark"] .page-kpi-row span{
  color:#aebdd0!important;
}
@media(max-width:1000px){
  .page-kpi-row{
    grid-auto-flow:row!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
@media(max-width:620px){
  .page-kpi-row{
    grid-template-columns:1fr!important;
    gap:10px!important;
    margin-bottom:18px!important;
  }
  .page-kpi-row>:where(div,a){
    min-height:92px!important;
    padding:17px 18px!important;
    border-radius:17px!important;
  }
  .page-kpi-row strong{
    font-size:29px!important;
  }
}

/* R5 — Apps-reference hero unification; Home intentionally excluded */
:where(
  .apps-hub-hero,.org-page-head,.people-page-head,.approvals-page-head,.emails-page-head,
  .devices-page-head,.search-page-head,.support-center-hero,.vault-page-head,.users-page-head,
  .audit-page-head,.security-page-head,.backup-page-head,.data-page-head.employee-devices-head,
  .profile-change-hero.employee-self-hero
){
  position:relative!important;display:flex!important;align-items:center!important;
  justify-content:space-between!important;gap:24px!important;min-height:190px!important;
  margin-bottom:var(--x-space-200)!important;padding:30px 34px!important;overflow:hidden!important;
  border:1px solid rgba(90,139,199,.18)!important;border-radius:var(--x-radius-2xl)!important;
  background:radial-gradient(circle at 86% 18%,rgba(79,145,235,.20),transparent 18rem),
    linear-gradient(115deg,var(--x-navy-1000),var(--x-navy-900) 58%,var(--x-navy-800))!important;
  box-shadow:0 22px 52px rgba(9,39,78,.16)!important;color:#fff!important;
}
:where(
  .apps-hub-hero,.org-page-head,.people-page-head,.approvals-page-head,.emails-page-head,
  .devices-page-head,.search-page-head,.support-center-hero,.vault-page-head,.users-page-head,
  .audit-page-head,.security-page-head,.backup-page-head,.data-page-head.employee-devices-head,
  .profile-change-hero.employee-self-hero
) .eyebrow{color:#8fbcff!important}
:where(
  .apps-hub-hero,.org-page-head,.people-page-head,.approvals-page-head,.emails-page-head,
  .devices-page-head,.search-page-head,.support-center-hero,.vault-page-head,.users-page-head,
  .audit-page-head,.security-page-head,.backup-page-head,.data-page-head.employee-devices-head,
  .profile-change-hero.employee-self-hero
) h1{
  margin:8px 0 10px!important;color:#fff!important;font-size:clamp(32px,2.7vw,43px)!important;
  line-height:1.08!important;letter-spacing:-1.3px!important;
}
:where(
  .apps-hub-hero,.org-page-head,.people-page-head,.approvals-page-head,.emails-page-head,
  .devices-page-head,.search-page-head,.support-center-hero,.vault-page-head,.users-page-head,
  .audit-page-head,.security-page-head,.backup-page-head,.data-page-head.employee-devices-head,
  .profile-change-hero.employee-self-hero
) p{max-width:720px!important;margin:0!important;color:rgba(229,239,251,.76)!important;font-size:12px!important;line-height:1.6!important}
.page-hero-mark{
  width:96px;height:96px;flex:0 0 96px;display:grid;place-items:center;
  border:1px solid rgba(255,255,255,.14);border-radius:28px;background:rgba(255,255,255,.08);
  color:#fff;font-size:30px;font-weight:800;box-shadow:inset 0 1px 0 rgba(255,255,255,.10);
}
@container workspace (max-width:620px){
  :where(.apps-hub-hero,.org-page-head,.people-page-head,.approvals-page-head,.emails-page-head,.devices-page-head,.search-page-head,.support-center-hero,.vault-page-head,.users-page-head,.audit-page-head,.security-page-head,.backup-page-head,.data-page-head.employee-devices-head,.profile-change-hero.employee-self-hero){align-items:flex-start!important;flex-direction:column!important;padding:24px!important}
  .page-hero-mark{width:72px;height:72px;flex-basis:72px;border-radius:20px;font-size:25px}
}
:where(
  .org-page-head,.people-page-head,.approvals-page-head,.emails-page-head,.devices-page-head,
  .search-page-head,.support-center-hero,.vault-page-head,.users-page-head,.audit-page-head,
  .security-page-head,.backup-page-head,.data-page-head.employee-devices-head,
  .profile-change-hero.employee-self-hero
)::before,
:where(
  .org-page-head,.people-page-head,.approvals-page-head,.emails-page-head,.devices-page-head,
  .search-page-head,.support-center-hero,.vault-page-head,.users-page-head,.audit-page-head,
  .security-page-head,.backup-page-head,.data-page-head.employee-devices-head,
  .profile-change-hero.employee-self-hero
)::after{display:none!important;content:none!important}
:where(
  .apps-hub-hero,.org-page-head,.people-page-head,.approvals-page-head,.emails-page-head,
  .devices-page-head,.search-page-head,.vault-page-head,.users-page-head,.audit-page-head,
  .security-page-head,.backup-page-head,.data-page-head.employee-devices-head,
  .profile-change-hero.employee-self-hero
)>div:first-child,
.support-center-copy{position:relative;z-index:2;min-width:0;max-width:760px}

/* R8 — unified premium select/dropdown system */
:where(.app-authenticated,.app-public) select{
  font-family:inherit;
}
:where(.app-authenticated,.app-public) select:not([multiple]){
  -webkit-appearance:none;
  appearance:none;
  min-height:46px;
  padding:0 46px 0 14px!important;
  border:1px solid #cbd9e8!important;
  border-radius:14px!important;
  background-color:#fff!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23275f9d' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E")!important;
  background-repeat:no-repeat!important;
  background-position:right 14px center!important;
  background-size:18px 18px!important;
  color:var(--x-ink-800)!important;
  font-size:13px!important;
  font-weight:720!important;
  line-height:1.2!important;
  box-shadow:0 4px 12px rgba(18,52,91,.045)!important;
  transition:border-color var(--x-duration-base) var(--x-ease-standard),
    box-shadow var(--x-duration-base) var(--x-ease-standard),
    background-color var(--x-duration-base) var(--x-ease-standard),
    transform var(--x-duration-fast) var(--x-ease-standard)!important;
}
:where(.app-authenticated,.app-public) select:not([multiple]):hover:not(:disabled){
  border-color:#91b4da!important;
  background-color:#fbfdff!important;
  box-shadow:0 7px 18px rgba(22,73,132,.075)!important;
}
:where(.app-authenticated,.app-public) select:not([multiple]):focus,
:where(.app-authenticated,.app-public) select:not([multiple]):focus-visible{
  outline:0!important;
  border-color:#4b8ddd!important;
  background-color:#fff!important;
  box-shadow:0 0 0 4px rgba(47,123,232,.13),0 8px 20px rgba(18,52,91,.08)!important;
}
:where(.app-authenticated,.app-public) select:disabled{
  cursor:not-allowed!important;
  opacity:.58!important;
  filter:saturate(.65);
}
:where(.app-authenticated,.app-public) select[multiple]{
  min-height:118px;
  padding:10px 12px!important;
  border:1px solid #cbd9e8!important;
  border-radius:14px!important;
  background:#fff!important;
  color:var(--x-ink-800)!important;
  font-size:13px!important;
  box-shadow:0 4px 12px rgba(18,52,91,.045)!important;
}
:where(.app-authenticated,.app-public) select option{
  font-size:13px;
  font-weight:600;
  color:#173b68;
  background:#fff;
}
html[data-theme="dark"] :where(.app-authenticated,.app-public) select:not([multiple]){
  border-color:#30465e!important;
  background-color:#0d1a2a!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%239fc7f2' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E")!important;
  color:#edf5ff!important;
  box-shadow:0 5px 14px rgba(0,0,0,.16)!important;
}
html[data-theme="dark"] :where(.app-authenticated,.app-public) select:not([multiple]):hover:not(:disabled){
  border-color:#5278a1!important;
  background-color:#112238!important;
}
html[data-theme="dark"] :where(.app-authenticated,.app-public) select:not([multiple]):focus,
html[data-theme="dark"] :where(.app-authenticated,.app-public) select:not([multiple]):focus-visible{
  border-color:#6ea8e8!important;
  background-color:#0f2034!important;
  box-shadow:0 0 0 4px rgba(79,151,231,.18),0 8px 22px rgba(0,0,0,.18)!important;
}
html[data-theme="dark"] :where(.app-authenticated,.app-public) select[multiple]{
  border-color:#30465e!important;
  background:#0d1a2a!important;
  color:#edf5ff!important;
}
html[data-theme="dark"] :where(.app-authenticated,.app-public) select option{
  color:#edf5ff;
  background:#101f31;
}

/* R15 — executive employee hero + section editing */
.person-hero-executive{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(300px,360px)!important;
  align-items:stretch!important;
  gap:28px!important;
  min-height:244px!important;
  padding:32px 34px!important;
  border:1px solid rgba(94,145,211,.38)!important;
  border-radius:30px!important;
  background:
    radial-gradient(circle at 88% 10%,rgba(77,146,238,.22),transparent 22rem),
    radial-gradient(circle at 12% 90%,rgba(31,132,91,.14),transparent 20rem),
    linear-gradient(122deg,#071a33 0%,#0b2b55 55%,#164b89 100%)!important;
  box-shadow:0 24px 54px rgba(6,25,53,.20)!important;
}
.person-hero-executive::after{
  content:"";
  position:absolute;
  right:-110px;
  bottom:-160px;
  width:440px;
  height:260px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:50%;
  pointer-events:none;
}
.person-hero-executive .org-back-link{
  color:#8fc2ff!important;
  font-size:11px!important;
  font-weight:800!important;
}
.person-hero-executive .person-detail-identity{
  margin-top:20px;
  gap:18px!important;
}
.person-hero-executive .person-avatar-large{
  width:84px!important;
  height:84px!important;
  flex-basis:84px!important;
  border:1px solid rgba(164,232,204,.50)!important;
  border-radius:22px!important;
  background:linear-gradient(145deg,#effbf5,#d9f4e8)!important;
  color:#12734f!important;
  font-size:24px!important;
  box-shadow:0 14px 30px rgba(0,0,0,.15)!important;
}
.person-hero-copy .eyebrow{
  color:#90bfff!important;
  font-size:10px!important;
  letter-spacing:.09em!important;
}
.person-hero-executive h1{
  margin:6px 0 8px!important;
  color:#fff!important;
  font-size:clamp(34px,3vw,46px)!important;
  line-height:1.02!important;
  letter-spacing:-1.4px!important;
}
.person-hero-role{
  margin:0!important;
  color:#e8f3ff!important;
  font-size:18px!important;
  line-height:1.35!important;
  font-weight:760!important;
}
.person-hero-context{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  margin-top:14px;
}
.person-hero-status{
  display:inline-flex;
  align-items:center;
  min-height:32px;
  padding:6px 11px;
  border-radius:999px;
  font-size:11px;
  font-weight:850;
}
.person-hero-status.is-active{
  border:1px solid rgba(132,229,186,.42);
  background:rgba(25,157,105,.20);
  color:#a7efcf;
}
.person-hero-status.is-inactive{
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.08);
  color:#dce7f5;
}
.person-hero-executive .person-department-path{
  margin:0!important;
  min-height:32px!important;
  display:inline-flex!important;
  align-items:center!important;
  padding:6px 11px!important;
  border:1px solid rgba(255,255,255,.16)!important;
  background:rgba(255,255,255,.08)!important;
  color:#dbeaff!important;
  font-size:11px!important;
  font-weight:750!important;
  backdrop-filter:blur(10px);
}
.person-hero-summary{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:74px 1fr;
  align-items:center;
  gap:17px;
  min-height:176px;
  align-self:center;
  padding:20px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:24px;
  background:linear-gradient(145deg,rgba(255,255,255,.13),rgba(255,255,255,.065));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.10),0 18px 34px rgba(0,0,0,.14);
  backdrop-filter:blur(16px);
}
.person-hero-monogram{
  width:74px;
  height:74px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.25);
  border-radius:20px;
  background:linear-gradient(145deg,#2d79dc,#205dad);
  color:#fff;
  font-size:21px;
  font-weight:900;
  box-shadow:0 12px 26px rgba(0,0,0,.16);
}
.person-hero-summary-grid{
  display:grid;
  gap:12px;
  min-width:0;
}
.person-hero-summary-grid>div{
  min-width:0;
  padding-bottom:10px;
  border-bottom:1px solid rgba(255,255,255,.10);
}
.person-hero-summary-grid>div:last-child{
  padding-bottom:0;
  border-bottom:0;
}
.person-hero-summary-grid span{
  display:block;
  color:#a9c8eb;
  font-size:9px;
  font-weight:800;
  letter-spacing:.055em;
  text-transform:uppercase;
}
.person-hero-summary-grid strong{
  display:block;
  margin-top:4px;
  color:#fff;
  font-size:15px;
  line-height:1.35;
  overflow-wrap:anywhere;
}
.employee-section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
.section-edit-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:8px 14px;
  border:1px solid #c8d9eb;
  border-radius:999px;
  background:linear-gradient(180deg,#fff,#f4f8fd);
  color:#285f9f;
  font-size:11px;
  font-weight:850;
  text-decoration:none;
  box-shadow:0 4px 12px rgba(18,52,91,.045);
  cursor:pointer;
  transition:transform .15s ease,border-color .2s ease,box-shadow .2s ease,background .2s ease;
}
.section-edit-button:hover{
  transform:translateY(-1px);
  border-color:#8eb3dc;
  background:#fff;
  box-shadow:0 7px 17px rgba(18,52,91,.08);
}
.section-edit-button[aria-expanded="true"]{
  border-color:#6e9fd6;
  background:#edf5ff;
  color:#174f8f;
}
.employee-section-editor{
  margin:2px 0 18px;
  padding:17px;
  border:1px solid #d8e4f0;
  border-radius:18px;
  background:
    radial-gradient(circle at 100% 0%,rgba(47,123,232,.055),transparent 15rem),
    linear-gradient(180deg,#fbfdff,#f5f9fd);
  box-shadow:inset 0 1px 0 #fff;
}
.employee-section-form{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.employee-section-form label{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:0;
}
.employee-section-form label>span,
.section-readonly-field>span{
  color:#3f648e;
  font-size:10px;
  font-weight:850;
  letter-spacing:.035em;
}
.employee-section-form input,
.employee-section-form select,
.employee-section-form textarea{
  width:100%;
  min-height:46px;
  margin:0!important;
  border:1px solid #cfdeec!important;
  border-radius:13px!important;
  background:#fff!important;
  color:var(--x-ink-800)!important;
  padding:10px 12px!important;
  font-size:13px!important;
  font-weight:650!important;
}
.employee-section-form textarea{
  min-height:96px!important;
  resize:vertical;
}
.employee-section-form input:focus,
.employee-section-form select:focus,
.employee-section-form textarea:focus{
  outline:0;
  border-color:#65a0df!important;
  box-shadow:0 0 0 4px rgba(47,123,232,.11)!important;
}
.section-form-wide{
  grid-column:span 2;
}
.section-readonly-field{
  min-height:46px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  padding:9px 12px;
  border:1px dashed #cad9e8;
  border-radius:13px;
  background:#f7fafe;
}
.section-readonly-field strong{
  color:#294f7c;
  font-size:13px;
  overflow-wrap:anywhere;
}
.employee-section-actions{
  grid-column:1/-1;
  display:flex;
  justify-content:flex-end;
  gap:9px;
  padding-top:4px;
}
.employee-section-actions button{
  min-width:112px;
  min-height:42px;
}
html[data-theme="dark"] .section-edit-button{
  border-color:#35506d;
  background:linear-gradient(180deg,#122237,#0f1d2f);
  color:#a9d0ff;
}
html[data-theme="dark"] .employee-section-editor{
  border-color:#2b4057;
  background:linear-gradient(180deg,#0f1d2e,#0c1827);
}
html[data-theme="dark"] .employee-section-form input,
html[data-theme="dark"] .employee-section-form select,
html[data-theme="dark"] .employee-section-form textarea{
  border-color:#30465e!important;
  background:#101f31!important;
  color:#eef5ff!important;
}
html[data-theme="dark"] .section-readonly-field{
  border-color:#30465e;
  background:#0f1d2e;
}
html[data-theme="dark"] .section-readonly-field strong{color:#d6e7fb}
@media(max-width:1050px){
  .person-hero-executive{
    grid-template-columns:1fr!important;
  }
  .person-hero-summary{
    width:100%;
    min-height:auto;
  }
}
@media(max-width:760px){
  .person-hero-executive{
    padding:24px 20px!important;
  }
  .person-hero-executive .person-detail-identity{
    align-items:flex-start;
  }
  .person-hero-executive .person-avatar-large{
    width:64px!important;
    height:64px!important;
    flex-basis:64px!important;
    border-radius:18px!important;
    font-size:19px!important;
  }
  .person-hero-executive h1{
    font-size:clamp(28px,8vw,38px)!important;
  }
  .person-hero-role{font-size:15px!important}
  .person-hero-summary{grid-template-columns:58px 1fr;padding:15px}
  .person-hero-monogram{width:58px;height:58px;border-radius:16px;font-size:17px}
  .employee-section-form{grid-template-columns:1fr}
  .section-form-wide{grid-column:auto}
  .employee-section-head{align-items:flex-start}
}

/* R16 — employee list compaction + app readability floor */
.filter-search-wide{
  flex:1.8!important;
  min-width:340px!important;
  font-size:13px!important;
}
.employee-create-form{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr));
  align-items:stretch;
  gap:10px!important;
}
.employee-create-form>*{
  min-width:0!important;
  width:100%!important;
  margin:0!important;
}
.employee-create-form input,
.employee-create-form select,
.employee-create-form textarea,
.employee-create-form button{
  min-height:46px!important;
  height:46px!important;
  font-size:13px!important;
}
.employee-create-form textarea{
  padding:12px!important;
  resize:vertical;
  overflow:auto;
}
.employee-create-form button{
  align-self:stretch;
  justify-self:stretch;
}
.people-page-head + .page-kpi-row + .people-toolbar .people-filterbar{
  align-items:stretch;
}
.app-authenticated :where(
  input,select,textarea,button,label,
  .filter-reset,.org-management>summary,
  .clean-table th,.clean-table td,
  .person-cell strong,.device-cell strong,.mail-cell strong,.user-cell strong,
  .person-cell small,.device-cell small,.mail-cell small,
  .subtle,.panel-kicker,.eyebrow,.status-pill,.role-pill,.two-factor-pill,
  .mail-type-pill,.mail-owner,.table-primary,.table-secondary,.mail-note,
  .device-count-chip,.ip-chip,.approval-before-after small,
  .profile-current-grid span,.profile-history-list small
){
  font-size:13px!important;
}
.app-authenticated small{
  font-size:13px!important;
}
.app-authenticated .page-kpi-row span{
  font-size:13px!important;
}
.app-authenticated .org-management>summary{
  min-height:46px!important;
  display:flex!important;
  align-items:center!important;
}
@media(max-width:1320px){
  .employee-create-form{grid-template-columns:repeat(3,minmax(0,1fr))}
  .filter-search-wide{min-width:280px!important}
}
@media(max-width:760px){
  .employee-create-form{grid-template-columns:1fr}
  .filter-search-wide{min-width:0!important;width:100%!important}
}

/* R16 — readability floor, wider search, compact employee create form */
.app-authenticated .workspace-main :where(
  small,.subtle,.panel-kicker,.eyebrow
){
  font-size:13px!important;
  line-height:1.4!important;
}
.app-authenticated .workspace-main :where(
  .filterbar input,.filterbar select,.filterbar button,.filter-reset,
  .quick-form input,.quick-form select,.quick-form textarea,.quick-form button,
  .clean-table thead th,.clean-table tbody td,
  .person-cell strong,.person-cell small,
  .device-cell strong,.device-cell small,
  .mail-cell strong,.mail-cell small,
  .user-cell strong,
  .table-primary,.table-secondary,
  .status-pill,.role-pill,.two-factor-pill,.mail-type-pill,.mail-owner,
  .device-count-chip,.ip-chip,
  .org-management>summary
){
  font-size:13px!important;
  line-height:1.35!important;
}
.app-authenticated .workspace-main :where(
  .people-page-head,.devices-page-head,.emails-page-head,.users-page-head,.audit-page-head,
  .approvals-page-head,.backup-page-head,.search-page-head,.security-page-head,.vault-page-head,
  .org-page-head,.data-page-head,.support-page-head,.page-heading.account-heading
) p{
  font-size:13px!important;
}
.app-authenticated .workspace-main .page-kpi-row span{
  font-size:13px!important;
  line-height:1.3!important;
}
.people-filterbar .filter-search-wide{
  flex:2 1 380px!important;
  min-width:380px!important;
  font-size:14px!important;
}
.employee-create-form{
  display:grid!important;
  grid-template-columns:minmax(190px,1.35fr) repeat(4,minmax(135px,1fr))!important;
  gap:9px!important;
  align-items:stretch!important;
  margin:12px!important;
  padding:12px!important;
}
.employee-create-form>:not(input[type="hidden"]){
  min-width:0!important;
  width:100%!important;
  min-height:46px!important;
  height:46px!important;
  margin:0!important;
}
.employee-create-form input,
.employee-create-form select,
.employee-create-form textarea{
  padding:0 12px!important;
  border:1px solid #cfdeec!important;
  border-radius:13px!important;
  background:#fff!important;
  font-size:13px!important;
  font-weight:650!important;
}
.employee-create-form textarea{
  min-height:46px!important;
  max-height:46px!important;
  padding:12px!important;
  resize:none!important;
  overflow:auto!important;
}
.employee-create-form button{
  min-height:46px!important;
  height:46px!important;
  border-radius:13px!important;
  font-size:13px!important;
  font-weight:850!important;
}
.people-table-card .people-table{
  min-width:880px;
}
.people-table-card .people-table th:nth-child(1),
.people-table-card .people-table td:nth-child(1){width:26%}
.people-table-card .people-table th:nth-child(2),
.people-table-card .people-table td:nth-child(2){width:23%}
.people-table-card .people-table th:nth-child(3),
.people-table-card .people-table td:nth-child(3){width:18%}
.people-table-card .people-table th:nth-child(4),
.people-table-card .people-table td:nth-child(4){width:23%}
.people-table-card .people-table th:nth-child(5),
.people-table-card .people-table td:nth-child(5){width:10%}
html[data-theme="dark"] .employee-create-form input,
html[data-theme="dark"] .employee-create-form select,
html[data-theme="dark"] .employee-create-form textarea{
  border-color:#30465e!important;
  background:#101f31!important;
  color:#eef5ff!important;
}
@media(max-width:1250px){
  .employee-create-form{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
  .people-filterbar .filter-search-wide{
    flex-basis:320px!important;
    min-width:320px!important;
  }
}
@media(max-width:820px){
  .employee-create-form{
    grid-template-columns:1fr!important;
  }
  .people-filterbar .filter-search-wide{
    min-width:0!important;
    width:100%!important;
  }
}

/* R17 demo — temporary Add/Management pattern comparison */
.management-pattern-demo{margin:20px 0 24px;padding:20px;border:1px solid #d7e3ef;border-radius:22px;background:linear-gradient(180deg,#f8fbff,#f2f7fc);box-shadow:0 14px 32px rgba(14,52,98,.07)}
.management-pattern-demo-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:16px}
.management-pattern-demo-head h2{margin:3px 0 6px;font-size:22px;color:#102d52}
.management-pattern-demo-head p{margin:0;color:#61748a;max-width:760px}
.management-demo-safe{flex:0 0 auto;padding:8px 11px;border:1px solid #b8d8c7;border-radius:999px;background:#edf9f1;color:#1f7045;font-weight:800;font-size:12px}
.management-demo-option{position:relative;margin-top:14px;padding:16px;border:1px solid #dbe5ef;border-radius:18px;background:#fff;box-shadow:0 8px 20px rgba(23,61,105,.055)}
.management-demo-option-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:12px}
.management-demo-option-head strong{display:block;font-size:15px;color:#173b67}
.management-demo-option-head p{margin:4px 0 0;color:#6a7d92}
.management-demo-letter{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:#eaf3ff;color:#1e63bd;font-weight:900}
.management-demo-accordion{border:1px solid #d5e1ed;border-radius:15px;background:#fafdff;overflow:hidden}
.management-demo-accordion>summary{min-height:48px;display:flex;align-items:center;padding:0 14px;cursor:pointer;font-weight:850;color:#16395f;background:#f4f8fc}
.management-demo-fields{display:grid;gap:10px}
.management-demo-inline-fields{grid-template-columns:repeat(5,minmax(0,1fr));padding:14px}
.management-demo-fields input,.management-demo-fields select,.management-demo-fields textarea{min-width:0;width:100%;min-height:46px;height:46px;margin:0;padding:0 12px;border:1px solid #cfdeec;border-radius:13px;background:#fff;color:#17324f;font:650 13px/1.3 inherit}
.management-demo-fields textarea{padding-top:12px;resize:none}
.management-demo-fields button{min-height:46px;height:46px;border:0;border-radius:13px;background:linear-gradient(135deg,#145bc1,#287ce6);color:#fff;font-weight:850;cursor:pointer;box-shadow:0 8px 18px rgba(30,95,180,.18)}
.management-demo-accordion>small{display:block;padding:0 14px 14px;color:#73859a}
.management-demo-launch{min-height:44px;padding:0 16px;border:1px solid #bfd2e6;border-radius:13px;background:#f5f9fd;color:#174b86;font-weight:850;cursor:pointer}
.management-demo-launch:hover{background:#edf5fd;border-color:#9dbdde}
.management-demo-scrim{position:fixed;inset:0;z-index:1200;background:rgba(5,17,31,.42);opacity:0;pointer-events:none;transition:opacity .2s ease}
.management-demo-scrim.is-open{opacity:1;pointer-events:auto}
.management-demo-drawer{position:fixed;z-index:1210;top:0;right:0;width:min(560px,94vw);height:100dvh;padding:24px;background:#fff;border-left:1px solid #d2deea;box-shadow:-24px 0 54px rgba(5,26,53,.22);transform:translateX(105%);transition:transform .24s ease;overflow:auto}
.management-demo-drawer.is-open{transform:translateX(0)}
.management-demo-editor-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:8px}
.management-demo-editor-head h2{margin:3px 0 0;font-size:24px;color:#12345b}
.management-demo-close{display:grid;place-items:center;width:40px;height:40px;border:1px solid #d2dfeb;border-radius:12px;background:#f6f9fc;color:#274866;font-size:24px;cursor:pointer}
.management-demo-editor-note{margin:0 0 16px;color:#708298}
.management-demo-drawer-fields{grid-template-columns:1fr 1fr}
.management-demo-drawer-fields textarea,.management-demo-drawer-fields button{grid-column:1/-1}
.management-demo-dialog{width:min(760px,92vw);max-height:88vh;padding:24px;border:1px solid #d4e0eb;border-radius:22px;background:#fff;color:#17324f;box-shadow:0 30px 80px rgba(6,29,58,.28);overflow:auto}
.management-demo-dialog::backdrop{background:rgba(5,17,31,.5);backdrop-filter:blur(2px)}
.management-demo-modal-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
.management-demo-modal-fields textarea,.management-demo-modal-fields button{grid-column:1/-1}
html[data-theme="dark"] .management-pattern-demo{border-color:#263b50;background:linear-gradient(180deg,#0e1b2b,#0b1725)}
html[data-theme="dark"] .management-pattern-demo-head h2,html[data-theme="dark"] .management-demo-option-head strong,html[data-theme="dark"] .management-demo-editor-head h2{color:#eaf3ff}
html[data-theme="dark"] .management-pattern-demo-head p,html[data-theme="dark"] .management-demo-option-head p,html[data-theme="dark"] .management-demo-editor-note{color:#9eb0c5}
html[data-theme="dark"] .management-demo-option{border-color:#293d52;background:#0f1c2c}
html[data-theme="dark"] .management-demo-accordion{border-color:#30455b;background:#0d1a29}
html[data-theme="dark"] .management-demo-accordion>summary{background:#132338;color:#e4eef9}
html[data-theme="dark"] .management-demo-fields input,html[data-theme="dark"] .management-demo-fields select,html[data-theme="dark"] .management-demo-fields textarea{border-color:#30465e;background:#101f31;color:#eef5ff}
html[data-theme="dark"] .management-demo-launch,html[data-theme="dark"] .management-demo-close{border-color:#334a61;background:#122338;color:#dbeaff}
html[data-theme="dark"] .management-demo-drawer,html[data-theme="dark"] .management-demo-dialog{border-color:#2c4055;background:#0d1928;color:#eef5ff}
@media(max-width:1250px){.management-demo-inline-fields{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){
  .management-pattern-demo{padding:14px;border-radius:18px}
  .management-pattern-demo-head{flex-direction:column}
  .management-demo-safe{white-space:normal}
  .management-demo-option{padding:14px}
  .management-demo-inline-fields,.management-demo-drawer-fields,.management-demo-modal-fields{grid-template-columns:1fr}
  .management-demo-drawer-fields textarea,.management-demo-drawer-fields button,.management-demo-modal-fields textarea,.management-demo-modal-fields button{grid-column:auto}
  .management-demo-drawer{width:100vw;padding:20px 16px}
  .management-demo-dialog{width:94vw;padding:20px 16px;border-radius:18px}
}
@media(prefers-reduced-motion:reduce){.management-demo-scrim,.management-demo-drawer{transition:none}}

body.management-demo-lock{overflow:hidden}

/* R18 — premium Employee search + centered Add modal */
.employee-search-panel,.employee-add-panel{
  position:relative;overflow:hidden;margin:18px 0 22px;padding:22px;
  border:1px solid #d7e4f0;border-radius:24px;
  background:linear-gradient(135deg,#fafdff 0%,#f2f7fd 58%,#edf5ff 100%);
  box-shadow:0 16px 36px rgba(18,58,104,.075);
}
.employee-search-panel::after,.employee-add-panel::after{
  content:"";position:absolute;right:-78px;bottom:-90px;width:270px;height:190px;
  border-radius:50%;background:radial-gradient(circle,rgba(60,130,226,.11),transparent 68%);pointer-events:none;
}
.employee-premium-panel-copy{position:relative;z-index:1;max-width:820px;padding-right:90px}
.employee-premium-panel-copy .eyebrow{display:inline-flex;margin-bottom:7px;color:#2d68b5!important;font-size:11px!important;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
.employee-premium-panel-copy h2{margin:0;color:#12365f;font-size:clamp(22px,2vw,29px);letter-spacing:-.45px}
.employee-premium-panel-copy p{max-width:760px;margin:8px 0 0;color:#647991;font-size:14px!important;line-height:1.55}
.employee-premium-panel-icon{position:absolute;z-index:1;top:20px;right:22px;display:grid;place-items:center;width:54px;height:54px;border:1px solid #c9dcf0;border-radius:17px;background:rgba(255,255,255,.72);color:#2671d4;font-size:25px;box-shadow:0 9px 22px rgba(26,91,169,.1)}
.employee-search-form{position:relative;z-index:1;display:grid;grid-template-columns:minmax(260px,1.6fr) repeat(3,minmax(150px,1fr)) auto;gap:10px;margin-top:18px;padding:14px;border:1px solid #dce7f2;border-radius:18px;background:rgba(255,255,255,.78);box-shadow:inset 0 1px 0 rgba(255,255,255,.9)}
.employee-search-form label{display:flex;flex-direction:column;gap:6px;min-width:0;color:#60748b;font-size:12px!important;font-weight:800}
.employee-search-form input,.employee-search-form select{width:100%;height:48px!important;min-height:48px!important;margin:0!important;border:1px solid #cdddec!important;border-radius:14px!important;background-color:#fff!important;color:#173653!important;font-size:13px!important;font-weight:700!important;box-shadow:0 5px 12px rgba(23,67,115,.035)!important}
.employee-search-form .filter-search-wide{min-width:0!important;flex:none!important}
.employee-search-actions{display:flex;align-items:flex-end;gap:8px}
.employee-search-actions button,.employee-search-actions .filter-reset{display:inline-flex;align-items:center;justify-content:center;height:48px;min-height:48px;padding:0 17px;border-radius:14px;font-size:13px!important;font-weight:850;text-decoration:none;white-space:nowrap}
.employee-search-actions button{border:0;background:linear-gradient(135deg,#1764ce,#2f84ed);color:#fff;box-shadow:0 9px 20px rgba(33,105,205,.2)}
.employee-search-actions .filter-reset{border:1px solid #cbdbea;background:#fff;color:#3a5775}
.employee-add-panel{display:grid;grid-template-columns:minmax(0,1fr) minmax(310px,390px);gap:28px;align-items:center}
.employee-add-points{display:grid;gap:8px;margin-top:15px}
.employee-add-points span{display:flex;align-items:center;gap:9px;color:#45617f;font-size:13px!important;font-weight:700}
.employee-add-points i{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#e7f2ff;color:#236ecb;font-size:12px;font-style:normal;font-weight:900}
.employee-add-action-card{position:relative;z-index:1;padding:18px;border:1px solid #ccdef1;border-radius:20px;background:linear-gradient(145deg,rgba(255,255,255,.9),rgba(237,246,255,.92));box-shadow:0 13px 30px rgba(22,77,141,.095)}
.employee-add-action-kicker{display:block;margin-bottom:10px;color:#6d82a0;font-size:11px!important;font-weight:900;text-transform:uppercase;letter-spacing:.07em}
.employee-add-open{display:flex;align-items:center;gap:11px;width:100%;min-height:58px;padding:0 16px;border:0;border-radius:16px;background:linear-gradient(135deg,#1764ce,#2f84ed);color:#fff;box-shadow:0 13px 28px rgba(29,103,207,.25);font-size:15px!important;font-weight:900;cursor:pointer;transition:transform .18s ease,box-shadow .18s ease}
.employee-add-open:hover{transform:translateY(-1px);box-shadow:0 17px 32px rgba(29,103,207,.29)}
.employee-add-open-icon{display:grid;place-items:center;width:32px;height:32px;flex:0 0 32px;border-radius:50%;background:rgba(255,255,255,.94);color:#236fd0;font-size:22px;font-weight:500}
.employee-add-open-arrow{margin-left:auto;font-size:20px}
.employee-add-action-card small{display:block;margin-top:9px;color:#7589a0!important;text-align:center}
.employee-add-dialog{width:min(900px,92vw);max-height:88vh;padding:0;border:1px solid #d0ddea;border-radius:24px;background:#fff;color:#17324f;box-shadow:0 34px 90px rgba(5,29,61,.28);overflow:auto}
.employee-add-dialog::backdrop{background:rgba(5,17,31,.54);backdrop-filter:blur(3px)}
.employee-add-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:24px 26px 18px;border-bottom:1px solid #e0e8f1;background:linear-gradient(135deg,#f9fcff,#eef6ff)}
.employee-add-dialog-head .eyebrow{color:#2b70ca!important;font-size:11px!important;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
.employee-add-dialog-head h2{margin:4px 0 5px;color:#12365f;font-size:27px;letter-spacing:-.5px}
.employee-add-dialog-head p{margin:0;max-width:620px;color:#697d94;font-size:13px!important}
.employee-add-dialog-close{display:grid;place-items:center;width:42px;height:42px;flex:0 0 42px;border:1px solid #ccdae8;border-radius:13px;background:#fff;color:#36536f;font-size:25px;cursor:pointer}
.employee-add-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:22px 26px 26px}
.employee-add-form label{display:flex;flex-direction:column;gap:7px;min-width:0;color:#49647f;font-size:12px!important;font-weight:850}
.employee-add-form input,.employee-add-form select,.employee-add-form textarea{width:100%;min-width:0;height:48px!important;min-height:48px!important;margin:0!important;padding:0 12px!important;border:1px solid #cddcea!important;border-radius:14px!important;background:#fff!important;color:#173653!important;font-size:13px!important;font-weight:700!important}
.employee-add-form textarea{height:82px!important;min-height:82px!important;padding-top:12px!important;resize:vertical}
.employee-add-notes{grid-column:1/-1}
.employee-add-notes-hint{grid-column:1/-1;margin:-3px 0 0;color:#75879a;font-size:12px!important;line-height:1.45}
.employee-add-dialog-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:10px;padding-top:4px}
.employee-add-dialog-actions button{min-width:132px;min-height:48px;border-radius:14px;font-size:13px!important;font-weight:850}
.employee-add-submit{border:0;background:linear-gradient(135deg,#1764ce,#2f84ed);color:#fff;box-shadow:0 10px 22px rgba(31,104,204,.2)}
html[data-theme="dark"] .employee-search-panel,html[data-theme="dark"] .employee-add-panel{border-color:#263d55;background:linear-gradient(135deg,#0e1b2b,#0c1827 58%,#102239)}
html[data-theme="dark"] .employee-premium-panel-copy h2,html[data-theme="dark"] .employee-add-dialog-head h2{color:#eef5ff}
html[data-theme="dark"] .employee-premium-panel-copy p,html[data-theme="dark"] .employee-add-points span{color:#a7b8cb}
html[data-theme="dark"] .employee-premium-panel-icon,html[data-theme="dark"] .employee-add-action-card{border-color:#2e4864;background:linear-gradient(145deg,#102035,#0e1d30);color:#80b6ff}
html[data-theme="dark"] .employee-search-form{border-color:#2a425b;background:rgba(13,27,44,.8)}
html[data-theme="dark"] .employee-search-form input,html[data-theme="dark"] .employee-search-form select,html[data-theme="dark"] .employee-add-form input,html[data-theme="dark"] .employee-add-form select,html[data-theme="dark"] .employee-add-form textarea{border-color:#30485f!important;background-color:#101f31!important;color:#eef5ff!important}
html[data-theme="dark"] .employee-search-actions .filter-reset,html[data-theme="dark"] .employee-add-dialog-close{border-color:#334b62;background:#122238;color:#dce9f7}
html[data-theme="dark"] .employee-add-dialog{border-color:#2c4158;background:#0d1928;color:#eef5ff}
html[data-theme="dark"] .employee-add-dialog-head{border-color:#263c52;background:linear-gradient(135deg,#11233a,#0d1b2c)}
html[data-theme="dark"] .employee-add-dialog-head p,html[data-theme="dark"] .employee-add-notes-hint{color:#9db0c4}
@media(max-width:1180px){.employee-search-form{grid-template-columns:repeat(2,minmax(0,1fr))}.employee-search-actions{grid-column:1/-1}.employee-add-panel{grid-template-columns:1fr}.employee-add-action-card{max-width:430px}}
@media(max-width:760px){.employee-search-panel,.employee-add-panel{padding:16px;border-radius:19px}.employee-premium-panel-copy{padding-right:0}.employee-premium-panel-icon{display:none}.employee-search-form{grid-template-columns:1fr;padding:11px}.employee-search-actions{grid-column:auto}.employee-search-actions>*{flex:1}.employee-add-action-card{max-width:none}.employee-add-dialog{width:94vw;border-radius:19px}.employee-add-dialog-head{padding:20px 17px 15px}.employee-add-form{grid-template-columns:1fr;padding:18px 17px 20px}.employee-add-notes,.employee-add-notes-hint,.employee-add-dialog-actions{grid-column:auto}.employee-add-dialog-actions{flex-direction:column-reverse}.employee-add-dialog-actions button{width:100%}}

/* R19 — Employee sortable table headers */
.employee-sort-link{
  display:inline-flex;align-items:center;gap:8px;min-height:32px;
  color:inherit;text-decoration:none;font:inherit;font-weight:850;
  transition:color .16s ease,transform .16s ease;
}
.employee-sort-link i{
  display:grid;place-items:center;width:24px;height:24px;
  border:1px solid #d4e1ed;border-radius:8px;
  background:#f7fbff;color:#7890a8;font-size:13px;font-style:normal;font-weight:900;
}
.employee-sort-link:hover{color:#1765c9}
.employee-sort-link:hover i,.employee-sort-link.is-active i{
  border-color:#b8d3ef;background:#eaf4ff;color:#1765c9;
}
.employee-sort-link.is-active{color:#174f91}
html[data-theme="dark"] .employee-sort-link i{
  border-color:#31495f;background:#112137;color:#8ea6bf;
}
html[data-theme="dark"] .employee-sort-link:hover,
html[data-theme="dark"] .employee-sort-link.is-active{color:#8bbcff}
html[data-theme="dark"] .employee-sort-link:hover i,
html[data-theme="dark"] .employee-sort-link.is-active i{
  border-color:#3c5f80;background:#17304d;color:#8bbcff;
}

/* R20 — header search button, wider profile identity, clearer dropdowns, sort anchor polish */
.global-search{
  padding-right:5px!important;
  overflow:hidden;
}
.global-search-submit{
  flex:0 0 auto;
  min-width:96px;
  height:34px;
  padding:0 14px;
  border:0!important;
  border-radius:10px!important;
  background:linear-gradient(135deg,#1764ce,#2f84ed)!important;
  color:#fff!important;
  font-size:12px!important;
  font-weight:850!important;
  box-shadow:0 7px 16px rgba(31,104,204,.18)!important;
}
.global-search-submit:hover{transform:translateY(-1px);box-shadow:0 10px 20px rgba(31,104,204,.23)!important}
.profile-chip{
  min-width:320px;
  max-width:370px;
}
.profile-chip .profile-copy{flex:1 1 auto;min-width:0}
.profile-chip .profile-copy strong{
  max-width:none!important;
  overflow:visible!important;
  text-overflow:clip!important;
  white-space:nowrap!important;
}
:where(.app-authenticated,.app-public) select:not([multiple]){
  padding-right:52px!important;
  border-color:#b9cee3!important;
  background-color:#fff!important;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231f6fd1' stroke-width='2.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 9 5 6 5-6'/%3E%3C/svg%3E"),
    linear-gradient(180deg,%23f0f7ff 0%,%23e7f2ff 100%)!important;
  background-repeat:no-repeat,no-repeat!important;
  background-position:right 12px center,right top!important;
  background-size:20px 20px,44px 100%!important;
  box-shadow:0 5px 14px rgba(24,71,126,.055)!important;
}
:where(.app-authenticated,.app-public) select:not([multiple]):hover:not(:disabled){
  border-color:#79a7d8!important;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23155fb9' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 9 5 6 5-6'/%3E%3C/svg%3E"),
    linear-gradient(180deg,%23e8f4ff 0%,%23dcecff 100%)!important;
}
html[data-theme="dark"] :where(.app-authenticated,.app-public) select:not([multiple]){
  border-color:#365775!important;
  background-color:#0d1a2a!important;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%239fcaff' stroke-width='2.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 9 5 6 5-6'/%3E%3C/svg%3E"),
    linear-gradient(180deg,%23142b46 0%,%2311253b 100%)!important;
}
@media(max-width:1180px){
  .profile-chip{min-width:auto;max-width:none}
  .profile-chip .profile-copy strong{max-width:220px!important;overflow:hidden!important;text-overflow:ellipsis!important}
}

/* R21 — refined header search, profile identity and dropdown affordance */
.global-search{
  flex:0 1 650px!important;
  width:min(650px,58vw)!important;
  max-width:650px!important;
}
.global-search-submit{
  min-width:74px!important;
  height:28px!important;
  padding:0 10px!important;
  border-radius:8px!important;
  font-size:10px!important;
  box-shadow:0 5px 12px rgba(31,104,204,.15)!important;
}
.profile-chip .profile-copy small{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:300px;
}
:where(.app-authenticated,.app-public) select:not([multiple]){
  cursor:pointer!important;
  border-color:#adc7df!important;
  box-shadow:
    inset -47px 0 0 #eaf4ff,
    inset -48px 0 0 #c4d9ed,
    0 5px 14px rgba(24,71,126,.055)!important;
}
:where(.app-authenticated,.app-public) select:not([multiple]):hover:not(:disabled){
  box-shadow:
    inset -47px 0 0 #deeeff,
    inset -48px 0 0 #9fc2e5,
    0 7px 18px rgba(22,73,132,.085)!important;
}
html[data-theme="dark"] :where(.app-authenticated,.app-public) select:not([multiple]){
  box-shadow:
    inset -47px 0 0 #162e49,
    inset -48px 0 0 #35536f,
    0 5px 14px rgba(0,0,0,.16)!important;
}

/* R21 — temporary premium table-frame comparison */
.employee-table-preview-section{
  margin:20px 0 24px;padding:20px;
  border:1px solid #d7e4f0;border-radius:24px;
  background:linear-gradient(135deg,#fbfdff,#f3f8fd);
  box-shadow:0 14px 34px rgba(18,58,104,.065);
}
.employee-table-preview-head{margin-bottom:15px}
.employee-table-preview-head .eyebrow{color:#2d68b5!important}
.employee-table-preview-head h2{margin:5px 0 6px;color:#12365f;font-size:24px}
.employee-table-preview-head p{margin:0;max-width:820px;color:#667b91;font-size:13px!important;line-height:1.5}
.employee-table-preview-list{display:grid;gap:14px}
.employee-table-preview-card{padding:13px;border-radius:18px;background:#fff}
.employee-table-preview-label{margin:0 0 9px;font-size:12px!important;font-weight:900;color:#315c8e}
.employee-table-preview-frame{overflow:hidden}
.employee-table-preview-row{
  display:grid;grid-template-columns:1.35fr 1.2fr 1.15fr 1fr .72fr;
  min-width:850px;align-items:center;
}
.employee-table-preview-row>span{min-width:0;padding:10px 12px;font-size:12px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.employee-table-preview-header>span{font-weight:900;font-size:11px!important}
.employee-table-preview-row+ .employee-table-preview-row{border-top:1px solid rgba(205,219,234,.7)}
.table-preview-v1{border:1px solid #d8e5ef;border-top:3px solid #2f9b73;box-shadow:0 8px 20px rgba(20,61,105,.05)}
.table-preview-v1 .employee-table-preview-frame{border:1px solid #e1eaf3;border-radius:12px}
.table-preview-v1 .employee-table-preview-header{background:#f7fafc;color:#31506f}
.table-preview-v2{border:1px solid #c8d8e8;box-shadow:0 12px 28px rgba(16,51,91,.08)}
.table-preview-v2 .employee-table-preview-frame{border-radius:14px;border-left:5px solid #1e5faa;background:linear-gradient(90deg,#f8fbff,#fff)}
.table-preview-v2 .employee-table-preview-header{background:#eef5fd;color:#173f6d}
.table-preview-v3{border:0;background:transparent;padding:7px 3px}
.table-preview-v3 .employee-table-preview-frame{border-radius:16px;background:#fff;box-shadow:0 18px 38px rgba(17,51,91,.13)}
.table-preview-v3 .employee-table-preview-header{background:#fff;color:#183f6a;border-bottom:1px solid #dce6ef}
.table-preview-v4{border:1px solid #bfd5ed;box-shadow:0 10px 24px rgba(28,91,166,.08)}
.table-preview-v4 .employee-table-preview-frame{border-radius:14px}
.table-preview-v4 .employee-table-preview-header{background:linear-gradient(135deg,#165bbb,#287be2);color:#fff}
.table-preview-v4 .employee-table-preview-row+ .employee-table-preview-row{background:#fbfdff}
.table-preview-v5{border:1px solid #bdcfe2;background:linear-gradient(180deg,#f7fbff,#fff);box-shadow:0 13px 30px rgba(10,48,91,.09)}
.table-preview-v5 .employee-table-preview-frame{border-radius:14px;border:1px solid #ccdae8;box-shadow:inset 0 3px 0 #0e345f}
.table-preview-v5 .employee-table-preview-header{background:linear-gradient(180deg,#102f54,#173e69);color:#eaf3ff}

html[data-theme="dark"] .employee-table-preview-section{
  border-color:#293e54;background:linear-gradient(135deg,#0e1b2b,#0b1726);
}
html[data-theme="dark"] .employee-table-preview-head h2{color:#edf5ff}
html[data-theme="dark"] .employee-table-preview-head p{color:#9fb1c5}
html[data-theme="dark"] .employee-table-preview-card{background:#0f1d2d;border-color:#2c4157}
html[data-theme="dark"] .employee-table-preview-label{color:#9ac4fa}
html[data-theme="dark"] .employee-table-preview-row+ .employee-table-preview-row{border-color:#263b50}
html[data-theme="dark"] .table-preview-v1 .employee-table-preview-frame,
html[data-theme="dark"] .table-preview-v5 .employee-table-preview-frame{border-color:#2d4359}
html[data-theme="dark"] .table-preview-v1 .employee-table-preview-header,
html[data-theme="dark"] .table-preview-v2 .employee-table-preview-header{background:#13243a;color:#dce9f7}
html[data-theme="dark"] .table-preview-v2 .employee-table-preview-frame{background:linear-gradient(90deg,#101f32,#0d1a29)}
html[data-theme="dark"] .table-preview-v3 .employee-table-preview-frame{background:#101e30;box-shadow:0 18px 38px rgba(0,0,0,.2)}
html[data-theme="dark"] .table-preview-v3 .employee-table-preview-header{background:#132238;color:#dce9f7;border-color:#2d4359}
html[data-theme="dark"] .table-preview-v4 .employee-table-preview-row+ .employee-table-preview-row{background:#0e1b2b}
html[data-theme="dark"] .table-preview-v5{background:linear-gradient(180deg,#101e2f,#0c1827)}
@media(max-width:760px){
  .global-search{width:100%!important;max-width:none!important}
  .global-search-submit{min-width:68px!important}
  .employee-table-preview-section{padding:14px;border-radius:19px}
  .employee-table-preview-frame{overflow:auto}
}

/* R22 — explicit up/down dropdown indicator */
:where(.app-authenticated,.app-public) select:not([multiple]){
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='22' viewBox='0 0 20 22' fill='none' stroke='%231f6fd1' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 8 4-4 4 4'/%3E%3Cpath d='m6 14 4 4 4-4'/%3E%3C/svg%3E"),
    linear-gradient(180deg,%23f0f7ff 0%,%23e7f2ff 100%)!important;
  background-size:20px 22px,47px 100%!important;
  background-position:right 12px center,right top!important;
}
:where(.app-authenticated,.app-public) select:not([multiple]):hover:not(:disabled){
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='22' viewBox='0 0 20 22' fill='none' stroke='%23155fb9' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 8 4-4 4 4'/%3E%3Cpath d='m6 14 4 4 4-4'/%3E%3C/svg%3E"),
    linear-gradient(180deg,%23e8f4ff 0%,%23dcecff 100%)!important;
}
html[data-theme="dark"] :where(.app-authenticated,.app-public) select:not([multiple]){
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='22' viewBox='0 0 20 22' fill='none' stroke='%239fcaff' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 8 4-4 4 4'/%3E%3Cpath d='m6 14 4 4 4-4'/%3E%3C/svg%3E"),
    linear-gradient(180deg,%23142b46 0%,%2311253b 100%)!important;
}

/* R22 — full-size five-table visual comparison */
.employee-table-preview-frame{overflow:auto!important}
.employee-table-preview-table{
  width:100%;
  min-width:880px;
  border-collapse:separate;
  border-spacing:0;
  table-layout:fixed;
}
.employee-table-preview-table th,
.employee-table-preview-table td{
  padding:13px 14px;
  text-align:left;
  vertical-align:middle;
  font-size:13px!important;
}
.employee-table-preview-table th{
  font-size:12px!important;
  font-weight:900;
  letter-spacing:.015em;
}
.employee-table-preview-table th:nth-child(1),
.employee-table-preview-table td:nth-child(1){width:26%}
.employee-table-preview-table th:nth-child(2),
.employee-table-preview-table td:nth-child(2){width:23%}
.employee-table-preview-table th:nth-child(3),
.employee-table-preview-table td:nth-child(3){width:18%}
.employee-table-preview-table th:nth-child(4),
.employee-table-preview-table td:nth-child(4){width:23%}
.employee-table-preview-table th:nth-child(5),
.employee-table-preview-table td:nth-child(5){width:10%}
.employee-table-preview-table tbody tr+tr td{border-top:1px solid #e4ecf4}
.employee-table-preview-table .person-cell{min-width:0}
.employee-table-preview-table .person-cell strong,
.employee-table-preview-table .person-cell small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.table-preview-v1 .employee-table-preview-table thead th{background:#f6f9fc;color:#264767;border-bottom:1px solid #dce6ef}
.table-preview-v1 .employee-table-preview-table tbody tr:hover{background:#f8fbfe}
.table-preview-v2 .employee-table-preview-frame{border-left:5px solid #1e5faa!important}
.table-preview-v2 .employee-table-preview-table thead th{background:#eaf3fd;color:#173f6d;border-bottom:1px solid #cbdced}
.table-preview-v2 .employee-table-preview-table tbody tr:nth-child(even){background:#fbfdff}
.table-preview-v3 .employee-table-preview-frame{border-radius:16px!important;background:#fff!important;box-shadow:0 18px 38px rgba(17,51,91,.13)!important}
.table-preview-v3 .employee-table-preview-table thead th{background:#fff;color:#183f6a;border-bottom:2px solid #dce6ef}
.table-preview-v3 .employee-table-preview-table tbody tr:hover{background:#f7fbff}
.table-preview-v4 .employee-table-preview-table thead th{background:linear-gradient(135deg,#165bbb,#287be2);color:#fff;border-bottom:0}
.table-preview-v4 .employee-table-preview-table tbody tr:nth-child(even){background:#f7fbff}
.table-preview-v4 .employee-table-preview-table tbody tr:hover{background:#edf5ff}
.table-preview-v5 .employee-table-preview-frame{border:1px solid #c4d5e5!important;border-radius:14px!important;box-shadow:inset 0 3px 0 #0e345f!important}
.table-preview-v5 .employee-table-preview-table thead th{background:linear-gradient(180deg,#102f54,#173e69);color:#eaf3ff;border-bottom:0}
.table-preview-v5 .employee-table-preview-table tbody tr:nth-child(even){background:#f8fafc}
.table-preview-v5 .employee-table-preview-table tbody tr:hover{background:#edf4fb}

html[data-theme="dark"] .employee-table-preview-table td{color:#d8e5f3}
html[data-theme="dark"] .employee-table-preview-table tbody tr+tr td{border-color:#24384d}
html[data-theme="dark"] .table-preview-v1 .employee-table-preview-table thead th,
html[data-theme="dark"] .table-preview-v2 .employee-table-preview-table thead th,
html[data-theme="dark"] .table-preview-v3 .employee-table-preview-table thead th{background:#13243a;color:#e0ebf7;border-color:#2b4157}
html[data-theme="dark"] .table-preview-v1 .employee-table-preview-table tbody tr:hover,
html[data-theme="dark"] .table-preview-v3 .employee-table-preview-table tbody tr:hover{background:#132338}
html[data-theme="dark"] .table-preview-v2 .employee-table-preview-table tbody tr:nth-child(even),
html[data-theme="dark"] .table-preview-v4 .employee-table-preview-table tbody tr:nth-child(even),
html[data-theme="dark"] .table-preview-v5 .employee-table-preview-table tbody tr:nth-child(even){background:#101f30}
html[data-theme="dark"] .table-preview-v4 .employee-table-preview-table tbody tr:hover,
html[data-theme="dark"] .table-preview-v5 .employee-table-preview-table tbody tr:hover{background:#152a41}

/* R23 — standalone full-table previews + explicit dropdown arrows */
.employee-table-preview-list-standalone{
  display:grid;
  gap:18px;
  margin:22px 0 26px;
}
.employee-table-preview-list-standalone .employee-table-preview-card{
  margin:0;
}
:where(.app-authenticated,.app-public) select:not([multiple]){
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='22' viewBox='0 0 18 22'%3E%3Cpath d='M4 9 L9 4 L14 9 Z' fill='%23165fbd'/%3E%3Cpath d='M4 13 L9 18 L14 13 Z' fill='%23165fbd'/%3E%3C/svg%3E"),
    linear-gradient(180deg,%23edf6ff 0%,%23dfeeff 100%)!important;
  background-repeat:no-repeat,no-repeat!important;
  background-position:right 14px center,right top!important;
  background-size:18px 22px,48px 100%!important;
}
:where(.app-authenticated,.app-public) select:not([multiple]):hover:not(:disabled){
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='22' viewBox='0 0 18 22'%3E%3Cpath d='M4 9 L9 4 L14 9 Z' fill='%230f4f9e'/%3E%3Cpath d='M4 13 L9 18 L14 13 Z' fill='%230f4f9e'/%3E%3C/svg%3E"),
    linear-gradient(180deg,%23e6f2ff 0%,%23d4e8ff 100%)!important;
}
html[data-theme="dark"] :where(.app-authenticated,.app-public) select:not([multiple]){
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='22' viewBox='0 0 18 22'%3E%3Cpath d='M4 9 L9 4 L14 9 Z' fill='%23b5d7ff'/%3E%3Cpath d='M4 13 L9 18 L14 13 Z' fill='%23b5d7ff'/%3E%3C/svg%3E"),
    linear-gradient(180deg,%23172f4b 0%,%2310253d 100%)!important;
}

/* R24 — FINAL Employee table = Automotive Frame + definitive dropdown control */
.automotive-frame-table{
  overflow:hidden;
  border:1px solid #bdcfe2!important;
  border-radius:18px!important;
  background:linear-gradient(180deg,#f7fbff,#fff)!important;
  box-shadow:0 13px 30px rgba(10,48,91,.09)!important;
}
.automotive-frame-table .table-wrap{
  border:1px solid #c4d5e5!important;
  border-radius:14px!important;
  box-shadow:inset 0 3px 0 #0e345f!important;
  overflow:auto!important;
}
.automotive-frame-table .people-table thead th{
  background:linear-gradient(180deg,#102f54,#173e69)!important;
  color:#eaf3ff!important;
  border-bottom:0!important;
}
.automotive-frame-table .employee-sort-link{
  color:#eaf3ff!important;
}
.automotive-frame-table .employee-sort-link i{
  border-color:rgba(255,255,255,.24)!important;
  background:rgba(255,255,255,.10)!important;
  color:#d9eaff!important;
}
.automotive-frame-table .employee-sort-link:hover,
.automotive-frame-table .employee-sort-link.is-active{
  color:#fff!important;
}
.automotive-frame-table .employee-sort-link:hover i,
.automotive-frame-table .employee-sort-link.is-active i{
  border-color:rgba(255,255,255,.42)!important;
  background:rgba(255,255,255,.18)!important;
  color:#fff!important;
}
.automotive-frame-table .people-table tbody tr:nth-child(even){background:#f8fafc!important}
.automotive-frame-table .people-table tbody tr:hover{background:#edf4fb!important}

:where(.app-authenticated,.app-public) select:not([multiple]){
  padding-right:58px!important;
  background-color:#fff!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Crect width='48' height='48' rx='11' fill='%23256dcc'/%3E%3Cpath d='M17 21 L24 14 L31 21' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M17 27 L24 34 L31 27' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
  background-repeat:no-repeat!important;
  background-position:right 2px center!important;
  background-size:44px 44px!important;
  box-shadow:0 5px 14px rgba(24,71,126,.055)!important;
}
:where(.app-authenticated,.app-public) select:not([multiple]):hover:not(:disabled){
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Crect width='48' height='48' rx='11' fill='%231b5fb8'/%3E%3Cpath d='M17 21 L24 14 L31 21' fill='none' stroke='white' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M17 27 L24 34 L31 27' fill='none' stroke='white' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
}
html[data-theme="dark"] .automotive-frame-table{
  border-color:#2d4359!important;background:linear-gradient(180deg,#101e2f,#0c1827)!important;
}
html[data-theme="dark"] .automotive-frame-table .table-wrap{border-color:#2d4359!important}
html[data-theme="dark"] .automotive-frame-table .people-table tbody tr:nth-child(even){background:#101f30!important}
html[data-theme="dark"] .automotive-frame-table .people-table tbody tr:hover{background:#152a41!important}
html[data-theme="dark"] :where(.app-authenticated,.app-public) select:not([multiple]){
  background-color:#0d1a2a!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Crect width='48' height='48' rx='11' fill='%232c6fbe'/%3E%3Cpath d='M17 21 L24 14 L31 21' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M17 27 L24 34 L31 27' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
}

/* R25 — five real dropdown visual variants on Employees filter form.
   No visible comparison labels; selected by dropdown_style=1..5. */
.employee-search-form[class*="dropdown-style-"] select:not([multiple]){
  padding-right:50px!important;
  background-color:#fff!important;
  background-repeat:no-repeat!important;
  cursor:pointer!important;
}

/* 1 — classic single chevron in a slim soft-blue end cap */
.employee-search-form.dropdown-style-1 select:not([multiple]){
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath d='M4 6.5 L9 11.5 L14 6.5' fill='none' stroke='%231c64ba' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
    linear-gradient(180deg,%23eef6ff,%23e4f0fd)!important;
  background-position:right 12px center,right top!important;
  background-size:18px 18px,42px 100%!important;
}

/* 2 — clean stacked chevrons without a filled button */
.employee-search-form.dropdown-style-2 select:not([multiple]){
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='22' viewBox='0 0 18 22'%3E%3Cpath d='M4 9 L9 4 L14 9' fill='none' stroke='%232867b4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M4 13 L9 18 L14 13' fill='none' stroke='%232867b4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
  background-position:right 13px center!important;
  background-size:18px 22px!important;
  box-shadow:inset -42px 0 0 #f3f8fe,inset -43px 0 0 #d5e3f0,0 5px 14px rgba(24,71,126,.045)!important;
}

/* 3 — small circular blue control with a single down chevron */
.employee-search-form.dropdown-style-3 select:not([multiple]){
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='14' fill='%23276fc9'/%3E%3Cpath d='M10.5 13 L16 18.5 L21.5 13' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
  background-position:right 7px center!important;
  background-size:32px 32px!important;
}

/* 4 — executive divider + minimal single chevron */
.employee-search-form.dropdown-style-4 select:not([multiple]){
  background-image:
    linear-gradient(%23c9d9e8,%23c9d9e8),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath d='M4.5 6.5 L9 11 L13.5 6.5' fill='none' stroke='%23184f89' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
  background-position:right 39px center,right 10px center!important;
  background-size:1px 26px,18px 18px!important;
}

/* 5 — compact soft-blue rounded end control with stacked arrows */
.employee-search-form.dropdown-style-5 select:not([multiple]){
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Crect x='1' y='1' width='34' height='34' rx='10' fill='%23e6f1ff' stroke='%23bfd5ee'/%3E%3Cpath d='M12 16 L18 10 L24 16' fill='none' stroke='%231d64b7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M12 20 L18 26 L24 20' fill='none' stroke='%231d64b7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
  background-position:right 5px center!important;
  background-size:36px 36px!important;
}

html[data-theme="dark"] .employee-search-form.dropdown-style-1 select:not([multiple]){
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath d='M4 6.5 L9 11.5 L14 6.5' fill='none' stroke='%23a9ceff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
    linear-gradient(180deg,%23182c45,%2312263d)!important;
}
html[data-theme="dark"] .employee-search-form.dropdown-style-2 select:not([multiple]){
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='22' viewBox='0 0 18 22'%3E%3Cpath d='M4 9 L9 4 L14 9' fill='none' stroke='%23a9ceff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M4 13 L9 18 L14 13' fill='none' stroke='%23a9ceff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
  box-shadow:inset -42px 0 0 #14263b,inset -43px 0 0 #334a62!important;
}
html[data-theme="dark"] .employee-search-form.dropdown-style-4 select:not([multiple]){
  background-image:
    linear-gradient(%23354b61,%23354b61),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath d='M4.5 6.5 L9 11 L13.5 6.5' fill='none' stroke='%23acd0ff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
}

/* R27B — FINAL dropdown visual selected by USER: top reference */
:where(.app-authenticated,.app-public) select:not([multiple]){
  padding-right:52px!important;
  background-color:#fff!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 34 34'%3E%3Ccircle cx='17' cy='17' r='15' fill='%23276fc9'/%3E%3Cpath d='M11.5 15 L17 9.5 L22.5 15' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M11.5 19 L17 24.5 L22.5 19' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
  background-repeat:no-repeat!important;
  background-position:right 6px center!important;
  background-size:34px 34px!important;
  box-shadow:0 5px 14px rgba(24,71,126,.045)!important;
}
:where(.app-authenticated,.app-public) select:not([multiple]):hover:not(:disabled){
  background-color:#fff!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 34 34'%3E%3Ccircle cx='17' cy='17' r='15' fill='%23276fc9'/%3E%3Cpath d='M11.5 15 L17 9.5 L22.5 15' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M11.5 19 L17 24.5 L22.5 19' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
  border-color:#91b4da!important;
  box-shadow:0 5px 14px rgba(24,71,126,.045)!important;
}
html[data-theme="dark"] :where(.app-authenticated,.app-public) select:not([multiple]){
  background-color:#0d1a2a!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 34 34'%3E%3Ccircle cx='17' cy='17' r='15' fill='%232f78ca'/%3E%3Cpath d='M11.5 15 L17 9.5 L22.5 15' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M11.5 19 L17 24.5 L22.5 19' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
  box-shadow:0 5px 14px rgba(0,0,0,.14)!important;
}
html[data-theme="dark"] :where(.app-authenticated,.app-public) select:not([multiple]):hover:not(:disabled){
  background-color:#0d1a2a!important;
  border-color:#5278a1!important;
  box-shadow:0 5px 14px rgba(0,0,0,.14)!important;
}

/* R28 — FINAL correction: separate down and up controls */
:where(.app-authenticated,.app-public) select:not([multiple]){
  padding-right:82px!important;
  background-color:#fff!important;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3E%3Ccircle cx='15' cy='15' r='13' fill='%23276fc9'/%3E%3Cpath d='M9.5 12 L15 17.5 L20.5 12' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3E%3Ccircle cx='15' cy='15' r='13' fill='%23276fc9'/%3E%3Cpath d='M9.5 18 L15 12.5 L20.5 18' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
  background-repeat:no-repeat,no-repeat!important;
  background-position:right 6px center,right 40px center!important;
  background-size:30px 30px,30px 30px!important;
  box-shadow:0 5px 14px rgba(24,71,126,.045)!important;
}
:where(.app-authenticated,.app-public) select:not([multiple]):hover:not(:disabled){
  background-color:#fff!important;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3E%3Ccircle cx='15' cy='15' r='13' fill='%23276fc9'/%3E%3Cpath d='M9.5 12 L15 17.5 L20.5 12' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3E%3Ccircle cx='15' cy='15' r='13' fill='%23276fc9'/%3E%3Cpath d='M9.5 18 L15 12.5 L20.5 18' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
  border-color:#91b4da!important;
  box-shadow:0 5px 14px rgba(24,71,126,.045)!important;
}
html[data-theme="dark"] :where(.app-authenticated,.app-public) select:not([multiple]){
  background-color:#0d1a2a!important;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3E%3Ccircle cx='15' cy='15' r='13' fill='%232f78ca'/%3E%3Cpath d='M9.5 12 L15 17.5 L20.5 12' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3E%3Ccircle cx='15' cy='15' r='13' fill='%232f78ca'/%3E%3Cpath d='M9.5 18 L15 12.5 L20.5 18' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
  background-position:right 6px center,right 40px center!important;
  background-size:30px 30px,30px 30px!important;
  box-shadow:0 5px 14px rgba(0,0,0,.14)!important;
}
html[data-theme="dark"] :where(.app-authenticated,.app-public) select:not([multiple]):hover:not(:disabled){
  background-color:#0d1a2a!important;
  border-color:#5278a1!important;
  box-shadow:0 5px 14px rgba(0,0,0,.14)!important;
}

/* R29 — FINAL native dropdown state: one control, down closed / up open */
:where(.app-authenticated,.app-public) select:not([multiple]){
  padding-right:52px!important;
  background-color:#fff!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 34 34'%3E%3Ccircle cx='17' cy='17' r='15' fill='%23276fc9'/%3E%3Cpath d='M11.5 14 L17 19.5 L22.5 14' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
  background-repeat:no-repeat!important;
  background-position:right 6px center!important;
  background-size:34px 34px!important;
  box-shadow:0 5px 14px rgba(24,71,126,.045)!important;
}
:where(.app-authenticated,.app-public) select:not([multiple]):hover:not(:disabled){
  background-color:#fff!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 34 34'%3E%3Ccircle cx='17' cy='17' r='15' fill='%23276fc9'/%3E%3Cpath d='M11.5 14 L17 19.5 L22.5 14' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
  border-color:#91b4da!important;
  box-shadow:0 5px 14px rgba(24,71,126,.045)!important;
}
:where(.app-authenticated,.app-public) select:not([multiple]):open{
  background-color:#fff!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 34 34'%3E%3Ccircle cx='17' cy='17' r='15' fill='%23276fc9'/%3E%3Cpath d='M11.5 20 L17 14.5 L22.5 20' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
  border-color:#4b8ddd!important;
  box-shadow:0 0 0 4px rgba(47,123,232,.13),0 8px 20px rgba(18,52,91,.08)!important;
}
html[data-theme="dark"] :where(.app-authenticated,.app-public) select:not([multiple]){
  background-color:#0d1a2a!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 34 34'%3E%3Ccircle cx='17' cy='17' r='15' fill='%232f78ca'/%3E%3Cpath d='M11.5 14 L17 19.5 L22.5 14' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
  background-position:right 6px center!important;
  background-size:34px 34px!important;
  box-shadow:0 5px 14px rgba(0,0,0,.14)!important;
}
html[data-theme="dark"] :where(.app-authenticated,.app-public) select:not([multiple]):hover:not(:disabled){
  background-color:#0d1a2a!important;
  border-color:#5278a1!important;
  box-shadow:0 5px 14px rgba(0,0,0,.14)!important;
}
html[data-theme="dark"] :where(.app-authenticated,.app-public) select:not([multiple]):open{
  background-color:#0d1a2a!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 34 34'%3E%3Ccircle cx='17' cy='17' r='15' fill='%232f78ca'/%3E%3Cpath d='M11.5 20 L17 14.5 L22.5 20' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
  border-color:#6ea8e8!important;
  box-shadow:0 0 0 4px rgba(79,151,231,.18),0 8px 22px rgba(0,0,0,.18)!important;
}

/* R30 — open state must override hover while pointer remains over select */
:where(.app-authenticated,.app-public) select:not([multiple]):open,
:where(.app-authenticated,.app-public) select:not([multiple]):open:hover,
:where(.app-authenticated,.app-public) select:not([multiple]):open:focus,
:where(.app-authenticated,.app-public) select:not([multiple]):open:focus-visible{
  background-color:#fff!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 34 34'%3E%3Ccircle cx='17' cy='17' r='15' fill='%23276fc9'/%3E%3Cpath d='M11.5 20 L17 14.5 L22.5 20' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
  background-repeat:no-repeat!important;
  background-position:right 6px center!important;
  background-size:34px 34px!important;
  border-color:#4b8ddd!important;
  box-shadow:0 0 0 4px rgba(47,123,232,.13),0 8px 20px rgba(18,52,91,.08)!important;
}
html[data-theme="dark"] :where(.app-authenticated,.app-public) select:not([multiple]):open,
html[data-theme="dark"] :where(.app-authenticated,.app-public) select:not([multiple]):open:hover,
html[data-theme="dark"] :where(.app-authenticated,.app-public) select:not([multiple]):open:focus,
html[data-theme="dark"] :where(.app-authenticated,.app-public) select:not([multiple]):open:focus-visible{
  background-color:#0d1a2a!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 34 34'%3E%3Ccircle cx='17' cy='17' r='15' fill='%232f78ca'/%3E%3Cpath d='M11.5 20 L17 14.5 L22.5 20' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
  border-color:#6ea8e8!important;
  box-shadow:0 0 0 4px rgba(79,151,231,.18),0 8px 22px rgba(0,0,0,.18)!important;
}

/* R31 — first bmisthos mapping UI test on employee 22 */
.employee-bmisthos-test-panel{
  overflow:hidden;
}
.employee-bmisthos-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  table-layout:fixed;
}
.employee-bmisthos-table th,
.employee-bmisthos-table td{
  padding:13px 16px;
  text-align:left;
  vertical-align:middle;
}
.employee-bmisthos-table th{
  background:linear-gradient(180deg,#102f54,#173e69);
  color:#f2f7ff;
  font-size:12px!important;
  font-weight:900;
  letter-spacing:.015em;
}
.employee-bmisthos-table th:first-child,
.employee-bmisthos-table td:first-child{width:42%}
.employee-bmisthos-table th:last-child,
.employee-bmisthos-table td:last-child{width:58%}
.employee-bmisthos-table td{
  font-size:13px!important;
  color:#213a59;
  border-top:1px solid #e2ebf3;
}
.employee-bmisthos-table tbody tr:nth-child(even){background:#f8fafc}
.employee-bmisthos-table tbody tr:hover{background:#f1f6fb}
html[data-theme="dark"] .employee-bmisthos-table td{color:#dce8f5;border-color:#263b50}
html[data-theme="dark"] .employee-bmisthos-table tbody tr:nth-child(even){background:#101f30}
html[data-theme="dark"] .employee-bmisthos-table tbody tr:hover{background:#152a41}

/* R32 — Manager-only bmisthos removal-request column; table keeps Automotive Frame visual */
.employee-bmisthos-test-panel{
  margin-top:18px;
}
.employee-bmisthos-table th:first-child,
.employee-bmisthos-table td:first-child{width:42%}
.employee-bmisthos-table th:nth-child(2),
.employee-bmisthos-table td:nth-child(2){width:58%}
.employee-bmisthos-table.has-removal-action th:first-child,
.employee-bmisthos-table.has-removal-action td:first-child{width:36%}
.employee-bmisthos-table.has-removal-action th:nth-child(2),
.employee-bmisthos-table.has-removal-action td:nth-child(2){width:50%}
.employee-bmisthos-table.has-removal-action th:nth-child(3),
.employee-bmisthos-table.has-removal-action td:nth-child(3){width:14%;text-align:right}
.bmisthos-remove-cell form{margin:0}
.bmisthos-remove-request{
  min-width:92px;
  padding:8px 12px!important;
  border:1px solid #cbd9e8!important;
  border-radius:10px!important;
  background:#fff!important;
  color:#315677!important;
  font-size:12px!important;
  font-weight:800!important;
  box-shadow:none!important;
}
.bmisthos-remove-request:hover{
  border-color:#8fb2d5!important;
  background:#f6f9fc!important;
  color:#173f6d!important;
}
html[data-theme="dark"] .bmisthos-remove-request{
  border-color:#36506a!important;
  background:#102033!important;
  color:#dbe9f7!important;
}
html[data-theme="dark"] .bmisthos-remove-request:hover{
  border-color:#55789d!important;
  background:#152940!important;
}

.bmisthos-remove-request .bmisthos-remove-check{
  display:none;
  font-size:13px;
  line-height:1;
}
.bmisthos-remove-request.is-selected{
  border-color:#c4322b!important;
  background:#d63b34!important;
  color:#fff!important;
}
.bmisthos-remove-request.is-selected .bmisthos-remove-check{display:inline}
.bmisthos-remove-request.is-selected:hover{
  border-color:#a62621!important;
  background:#b92f29!important;
  color:#fff!important;
}
.bmisthos-removal-selected td{
  background:rgba(214,59,52,.055);
}
html[data-theme="dark"] .bmisthos-remove-request.is-selected,
html[data-theme="dark"] .bmisthos-remove-request.is-selected:hover{
  border-color:#ef746d!important;
  background:#b93631!important;
  color:#fff!important;
}
html[data-theme="dark"] .bmisthos-removal-selected td{
  background:rgba(214,59,52,.10);
}

.employee-bmisthos-table th,
.employee-bmisthos-table td{
  font-weight:800!important;
}

/* R46 — Mobile theme icon + larger user menu */
.theme-icon-button{
  display:none;
  width:44px;
  height:44px;
  flex:0 0 44px;
  place-items:center;
  padding:0;
  border:1px solid var(--x-line);
  border-radius:14px;
  background:rgba(255,255,255,.92);
  color:#224f86;
  box-shadow:var(--x-shadow-xs);
  font-size:21px;
  line-height:1;
}
.theme-icon-button .theme-icon-light{display:none}
.theme-icon-button .theme-icon-dark{display:block}
html[data-theme="dark"] .theme-icon-button{
  border-color:#33465d;
  background:#111f31;
  color:#ffd36a;
}
html[data-theme="dark"] .theme-icon-button .theme-icon-light{display:block}
html[data-theme="dark"] .theme-icon-button .theme-icon-dark{display:none}

@media(max-width:650px){
  .theme-switch{display:none!important}
  .theme-icon-button{display:grid}
  .profile-menu-popover{
    right:-4px!important;
    width:min(280px,calc(100vw - 28px))!important;
    padding:10px!important;
  }
  .profile-menu-popover a,
  .profile-menu-popover button{
    min-height:54px!important;
    gap:13px!important;
    padding:0 14px!important;
    font-size:16px!important;
    line-height:1.2!important;
    font-weight:800!important;
  }
  .profile-menu-popover a>span:first-child,
  .profile-menu-popover button>span:first-child{
    width:26px!important;
    font-size:18px!important;
  }
  .profile-menu-popover form{margin-top:6px!important;padding-top:6px!important}
}

/* R47 — Dark-theme organization parity */
html[data-theme="dark"] .org-card{
  border-color:#2d4359!important;
  background:linear-gradient(180deg,#0f1d2e,#0c1827)!important;
}
html[data-theme="dark"] .org-card-head{
  background:radial-gradient(circle at 100% 0%,rgba(61,132,225,.12),transparent 9rem),linear-gradient(180deg,#122238,#0f1d2e)!important;
}
html[data-theme="dark"] .org-brand-frame{
  border-color:#31485f!important;
  background:#132238!important;
}
html[data-theme="dark"] .org-card-title strong,
html[data-theme="dark"] .org-node-copy strong,
html[data-theme="dark"] .org-detail-copy h1,
html[data-theme="dark"] .org-location-quick-head strong{
  color:#eaf3ff!important;
}
html[data-theme="dark"] .org-card-title small,
html[data-theme="dark"] .org-node-copy small,
html[data-theme="dark"] .org-detail-path,
html[data-theme="dark"] .org-card-stats span{
  color:#9fb2c8!important;
}

html[data-theme="dark"] .org-card-stats{background:#263b51!important;border-color:#263b51!important}
html[data-theme="dark"] .org-card-stats>div{background:#101f31!important}
html[data-theme="dark"] .org-card-stats>div+div{border-left-color:#263b51!important}
html[data-theme="dark"] .org-card-stats strong{color:#dceafb!important}
html[data-theme="dark"] .org-node-link:hover{background:#14283f!important}
html[data-theme="dark"] .org-node-rail{border-color:#334b62!important}
html[data-theme="dark"] .org-node-dot{box-shadow:0 0 0 4px #14283f!important}
html[data-theme="dark"] .org-node-metrics span{
  border-color:#30465d!important;background:#122238!important;color:#a9bdd3!important;
}
html[data-theme="dark"] .org-management{
  border-color:#2b4158!important;background:#0e1b2b!important;
}
html[data-theme="dark"] .org-management>summary{color:#dceafb!important}
html[data-theme="dark"] .org-management>summary:hover{background:#14263b!important}
html[data-theme="dark"] .org-management[open]>summary{
  border-bottom-color:#2b4158!important;background:#112137!important;
}
html[data-theme="dark"] .org-sort-toolbar{
  border-color:#2d465f!important;background:#101f31!important;
}
html[data-theme="dark"] .org-drag-handle{
  border-color:#3a5168!important;background:#122238!important;color:#93a9bf!important;
}

html[data-theme="dark"] .org-detail-hero{
  border-color:#2d4359!important;
  background:radial-gradient(circle at 84% 8%,rgba(61,132,225,.14),transparent 18rem),linear-gradient(118deg,#102139,#0d1a2a 56%,#11243b 100%)!important;
}
html[data-theme="dark"] .org-detail-badges span{
  border-color:#334b62!important;background:#142338!important;color:#aec0d4!important;
}
html[data-theme="dark"] .org-detail-stats>div,
html[data-theme="dark"] .org-meta-grid .detail-field{
  border-color:#2d4359!important;background:#101f31!important;color:#dceafb!important;
}
html[data-theme="dark"] .org-detail-stats strong{color:#e6f1ff!important}
html[data-theme="dark"] .org-detail-stats span{color:#9eb1c6!important}
html[data-theme="dark"] .org-location-quick-panel{
  border-color:#2d465f!important;
  background:radial-gradient(circle at 100% 0%,rgba(61,132,225,.10),transparent 12rem),linear-gradient(145deg,#102139,#0e1c2e)!important;
}
html[data-theme="dark"] .org-location-quick-head>span,
html[data-theme="dark"] .org-location-chip{
  border-color:#334b62!important;background:#122238!important;color:#b2c4d7!important;
}
html[data-theme="dark"] .org-location-chip.is-inactive{background:#0d1a2a!important;color:#71859b!important}
html[data-theme="dark"] .admin-delete-zone{
  border-color:#573838!important;background:linear-gradient(180deg,#24191d,#1d1518)!important;
}

/* R47 — Mobile employee search repair */
.employee-search-form select:not([multiple]){
  background-repeat:no-repeat!important;
  background-position:right 6px center!important;
  background-size:34px 34px!important;
}
html[data-theme="dark"] .employee-search-form input::placeholder{color:#8397ad!important}
@media(max-width:760px){
  .employee-search-panel{padding:20px 16px!important}
  .employee-premium-panel-copy h2{font-size:28px!important;line-height:1.08!important}
  .employee-premium-panel-copy p{font-size:15px!important;line-height:1.55!important}
  .employee-search-form{gap:14px!important;padding:14px!important;border-radius:18px!important}
  .employee-search-form label{gap:7px!important;font-size:13px!important}
  .employee-search-form input,
  .employee-search-form select{height:54px!important;min-height:54px!important;font-size:15px!important}
  .employee-search-form input{padding:0 14px!important;background-image:none!important}
  .employee-search-form select{padding-left:14px!important;padding-right:54px!important;background-repeat:no-repeat!important}
  .employee-search-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important}
  .employee-search-actions button,.employee-search-actions .filter-reset{height:54px!important;min-height:54px!important;font-size:15px!important}
}

/* R48 — dark detail-surface parity */
html[data-theme="dark"] :where(.person-detail-stats,.device-detail-stats,.email-detail-stats)>div{
  border-color:#2d4359!important;
  background:linear-gradient(135deg,#101f31,#0d1a2a)!important;
  box-shadow:0 8px 20px rgba(0,0,0,.18)!important;
}
html[data-theme="dark"] :where(.person-detail-stats,.device-detail-stats,.email-detail-stats) strong{
  color:#e8f2ff!important;
}
html[data-theme="dark"] :where(.person-detail-stats,.device-detail-stats,.email-detail-stats) span{
  color:#9eb2c7!important;
}
html[data-theme="dark"] .section-block.org-section-panel,
html[data-theme="dark"] .email-links-panel,
html[data-theme="dark"] .email-vault-panel,
html[data-theme="dark"] .email-source-card{
  border-color:#2d4359!important;
  background:#0f1d2e!important;
  box-shadow:0 12px 28px rgba(0,0,0,.18)!important;
}
html[data-theme="dark"] .section-block .panel-head,
html[data-theme="dark"] .email-links-panel .panel-head,
html[data-theme="dark"] .email-vault-panel .panel-head{
  border-bottom-color:#2b4056!important;
}

html[data-theme="dark"] .detail-field,
html[data-theme="dark"] :where(.org-meta-grid,.person-meta-grid,.device-meta-grid) .detail-field{
  border-color:#2e455d!important;
  background:linear-gradient(180deg,#101f31,#0d1a2a)!important;
  box-shadow:0 6px 16px rgba(0,0,0,.16)!important;
}
html[data-theme="dark"] .detail-field span{color:#d8e6f5!important}
html[data-theme="dark"] .detail-field b{color:#8fbdff!important}
html[data-theme="dark"] .employee-mail-card:not(.is-confirmed):not(.is-suggested),
html[data-theme="dark"] .email-link-card,
html[data-theme="dark"] .email-vault-entry{
  border-color:#30475f!important;
  background:#101f31!important;
  color:#dce9f7!important;
}
html[data-theme="dark"] .email-source-card>div,
html[data-theme="dark"] .account-meta>div{
  background:#101f31!important;
  color:#dce9f7!important;
}
html[data-theme="dark"] .account-heading,
html[data-theme="dark"] .account-card{
  border-color:#2d4359!important;
  background:linear-gradient(135deg,#101f31,#0d1a2a)!important;
}
html[data-theme="dark"] .account-photo-preview{
  border-color:#35506a!important;
  background:linear-gradient(145deg,#14263b,#102033)!important;
}

/* R48 — real horizontal scroll for accounting table on mobile */
.employee-bmisthos-test-panel>.table-wrap{
  max-width:100%;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior-x:contain;
  touch-action:pan-x pan-y;
}
@media(max-width:760px){
  .employee-bmisthos-test-panel{
    overflow:hidden!important;
  }
  .employee-bmisthos-test-panel>.table-wrap{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    scrollbar-gutter:stable;
  }
  .employee-bmisthos-table{
    width:720px!important;
    min-width:720px!important;
    table-layout:fixed!important;
  }
  .employee-bmisthos-table.has-removal-action{
    width:900px!important;
    min-width:900px!important;
  }

  .employee-bmisthos-table.has-removal-action th:first-child,
  .employee-bmisthos-table.has-removal-action td:first-child{
    width:250px!important;
  }
  .employee-bmisthos-table.has-removal-action th:nth-child(2),
  .employee-bmisthos-table.has-removal-action td:nth-child(2){
    width:470px!important;
  }
  .employee-bmisthos-table.has-removal-action th:nth-child(3),
  .employee-bmisthos-table.has-removal-action td:nth-child(3){
    width:180px!important;
    min-width:180px!important;
    text-align:center!important;
  }
  .employee-bmisthos-table th,
  .employee-bmisthos-table td{
    white-space:nowrap!important;
    word-break:normal!important;
    overflow-wrap:normal!important;
  }
  .employee-bmisthos-table th{
    font-size:13px!important;
  }
  .employee-bmisthos-table td{
    font-size:13px!important;
  }
  .bmisthos-remove-request{
    min-width:116px!important;
  }
}

/* R49 — global premium search surface */
:where(.people-toolbar,.search-console){
  padding:14px!important;
  border:1px solid #d8e5f2!important;
  border-radius:20px!important;
  background:linear-gradient(135deg,#fbfdff,#f3f8fe)!important;
  box-shadow:0 12px 28px rgba(18,52,91,.055)!important;
}
:where(.filterbar,.people-filterbar,.email-filterbar,.search-console-form){
  gap:10px!important;
}
:where(.filterbar,.people-filterbar,.email-filterbar,.search-console-form) :where(input,select){
  min-height:48px!important;
  border:1px solid #cdddec!important;
  border-radius:14px!important;
  background-color:#fff!important;
  color:#173653!important;
  font-size:13px!important;
  font-weight:700!important;
  box-shadow:0 5px 12px rgba(23,67,115,.035)!important;
}
:where(.filterbar,.people-filterbar,.email-filterbar,.search-console-form)>button{
  min-height:48px!important;
  padding:0 18px!important;
  border:0!important;
  border-radius:14px!important;
  background:linear-gradient(135deg,#1764ce,#2f84ed)!important;
  color:#fff!important;
  font-size:13px!important;
  font-weight:850!important;
  box-shadow:0 9px 20px rgba(33,105,205,.2)!important;
}

:where(.filterbar,.people-filterbar,.email-filterbar,.search-console-form)>.filter-reset{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:48px!important;
  padding:0 17px!important;
  border:1px solid #cbdbea!important;
  border-radius:14px!important;
  background:#fff!important;
  color:#3a5775!important;
  font-size:13px!important;
  font-weight:850!important;
  text-decoration:none!important;
}
html[data-theme="dark"] :where(.people-toolbar,.search-console){
  border-color:#2b425a!important;
  background:linear-gradient(135deg,#0f1d2e,#0c1827)!important;
  box-shadow:0 12px 28px rgba(0,0,0,.18)!important;
}
html[data-theme="dark"] :where(.filterbar,.people-filterbar,.email-filterbar,.search-console-form) :where(input,select){
  border-color:#30485f!important;
  background-color:#101f31!important;
  color:#eef5ff!important;
}
html[data-theme="dark"] :where(.filterbar,.people-filterbar,.email-filterbar,.search-console-form)>.filter-reset{
  border-color:#334b62!important;
  background:#122238!important;
  color:#dce9f7!important;
}

/* R49 — global add/edit/management surface */
:where(.org-management,.employee-section-editor,.user-row-actions-panel){
  border:1px solid #d5e1ed!important;
  border-radius:20px!important;
  background:linear-gradient(180deg,#fff,#fbfdff)!important;
  box-shadow:0 12px 28px rgba(18,52,91,.055)!important;
}
.org-management>summary{
  position:relative;
  min-height:56px!important;
  display:flex!important;
  align-items:center!important;
  padding:16px 58px 16px 18px!important;
  border:0!important;
  color:#174f8f!important;
  font-size:14px!important;
  font-weight:900!important;
  letter-spacing:.01em!important;
  cursor:pointer;
}
.org-management>summary::after{
  content:"+";
  position:absolute;
  right:16px;
  top:50%;
  transform:translateY(-50%);
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  border-radius:50%;
  background:linear-gradient(135deg,#1764ce,#2f84ed);
  color:#fff;
  font-size:20px;
  font-weight:700;
}
.org-management[open]>summary::after{content:"−"}

:where(.org-management-form,.detail-edit-form,.employee-section-form,.user-update-form){
  border:1px solid #dbe6f1!important;
  border-radius:18px!important;
  background:linear-gradient(180deg,#fbfdff,#f5f9fd)!important;
  box-shadow:inset 0 1px 0 #fff!important;
}
:where(.org-management-form,.detail-edit-form,.employee-section-form,.user-update-form) :where(input,select,textarea){
  min-height:46px!important;
  border:1px solid #cfdeec!important;
  border-radius:13px!important;
  background-color:#fff!important;
  color:#173653!important;
  font-size:13px!important;
  font-weight:650!important;
}
html[data-theme="dark"] :where(.org-management,.employee-section-editor,.user-row-actions-panel){
  border-color:#2b4057!important;
  background:linear-gradient(180deg,#0f1d2e,#0c1827)!important;
  box-shadow:0 12px 28px rgba(0,0,0,.18)!important;
}
html[data-theme="dark"] .org-management>summary{
  color:#b7d7ff!important;
}
html[data-theme="dark"] :where(.org-management-form,.detail-edit-form,.employee-section-form,.user-update-form){
  border-color:#2b4057!important;
  background:linear-gradient(180deg,#0f1d2e,#0c1827)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03)!important;
}
html[data-theme="dark"] :where(.org-management-form,.detail-edit-form,.employee-section-form,.user-update-form) :where(input,select,textarea){
  border-color:#30465e!important;
  background-color:#101f31!important;
  color:#eef5ff!important;
}

/* R49 — dark common surface umbrella */
html[data-theme="dark"] :where(
  .approvals-empty,.people-empty,.search-empty,.search-start-state,
  .search-result-panel,.search-result-item,.empty-state,
  .devices-table-card,.emails-table-card,.vault-table-card,.audit-table-card,
  .users-table-card,.people-table-card,.backup-list-card,.backup-action-card,
  .recovery-card,.security-card,.approval-card
){
  border-color:#2d4359!important;
  background:#0f1d2e!important;
  color:#dce9f7!important;
  box-shadow:0 12px 28px rgba(0,0,0,.16)!important;
}
html[data-theme="dark"] :where(.approvals-empty,.people-empty,.search-empty,.search-start-state,.empty-state) :where(h2,h3,strong,p,span){
  color:#cddced!important;
}
html[data-theme="dark"] :where(.search-result-item):hover{
  background:#14263b!important;
}
html[data-theme="dark"] :where(.page-kpi-row)>div{
  border-color:#2d4359!important;
}

/* R49 — mobile top search icon-only */
@media(max-width:650px){
  .global-search{
    min-width:0!important;
    gap:0!important;
  }
  .global-search input{
    min-width:0!important;
  }
  .global-search-submit{
    width:48px!important;
    min-width:48px!important;
    max-width:48px!important;
    padding:0!important;
    font-size:0!important;
    flex:0 0 48px!important;
  }
  .global-search-submit::before{
    content:"⌕";
    display:block;
    font-size:22px;
    line-height:1;
    font-weight:900;
  }
  :where(.people-toolbar,.search-console){
    padding:14px!important;
    border-radius:19px!important;
  }
  :where(.filterbar,.people-filterbar,.email-filterbar,.search-console-form){
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:12px!important;
  }

  :where(.filterbar,.people-filterbar,.email-filterbar,.search-console-form) :where(input,select),
  :where(.filterbar,.people-filterbar,.email-filterbar,.search-console-form)>button,
  :where(.filterbar,.people-filterbar,.email-filterbar,.search-console-form)>.filter-reset{
    width:100%!important;
    min-width:0!important;
    min-height:54px!important;
    font-size:15px!important;
  }
  .org-management>summary{
    min-height:58px!important;
    font-size:15px!important;
  }
  :where(.org-management-form,.detail-edit-form,.employee-section-form,.user-update-form){
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:12px!important;
    padding:14px!important;
  }
  :where(.org-management-form,.detail-edit-form,.employee-section-form,.user-update-form)>*{
    width:100%!important;
    min-width:0!important;
  }
  :where(.org-management-form,.detail-edit-form,.employee-section-form,.user-update-form) :where(input,select,textarea,button){
    min-height:54px!important;
    font-size:15px!important;
  }
}

/* R50 — Vault mobile table geometry */
.vault-table-card>.table-wrap{
  max-width:100%;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior-x:contain;
  touch-action:pan-x pan-y;
}
@media(max-width:760px){
  .vault-table-card{overflow:hidden!important}
  .vault-table-card>.table-wrap{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    scrollbar-gutter:stable;
  }
  .vault-table{
    width:1180px!important;
    min-width:1180px!important;
    table-layout:fixed!important;
  }

  .vault-table th:nth-child(1),
  .vault-table td:nth-child(1){width:140px!important}
  .vault-table th:nth-child(2),
  .vault-table td:nth-child(2){width:220px!important}
  .vault-table th:nth-child(3),
  .vault-table td:nth-child(3){width:180px!important}
  .vault-table th:nth-child(4),
  .vault-table td:nth-child(4){width:150px!important}
  .vault-table th:nth-child(5),
  .vault-table td:nth-child(5){width:190px!important}
  .vault-table th:nth-child(6),
  .vault-table td:nth-child(6){width:120px!important}
  .vault-table th:nth-child(7),
  .vault-table td:nth-child(7){width:180px!important}
  .vault-table th,
  .vault-table td{
    padding:12px 14px!important;
    white-space:nowrap!important;
    word-break:normal!important;
    overflow-wrap:normal!important;
    vertical-align:middle!important;
  }
  .vault-table tbody tr{height:auto!important;min-height:0!important}
  .vault-target{min-width:0!important;max-width:100%;gap:10px!important}

  .vault-target .device-icon,
  .vault-target .mail-icon{
    width:34px!important;
    height:34px!important;
    flex:0 0 34px!important;
  }
  .vault-table td:last-child>div{
    display:flex!important;
    align-items:center!important;
    gap:8px!important;
    flex-wrap:nowrap!important;
  }
  .vault-table td:last-child button{
    min-height:38px!important;
    padding:0 12px!important;
    white-space:nowrap!important;
  }
}
html[data-theme="dark"] .vault-target{
  color:#9fc7f5!important;
}
html[data-theme="dark"] .vault-category-pill,
html[data-theme="dark"] .vault-type-pill{
  border-color:#334b62!important;
  background:#142338!important;
  color:#c9daee!important;
}

/* R51 — public/auth theme parity */
html[data-theme="light"] .app-public{
  background:
    radial-gradient(circle at 82% 4%,rgba(72,151,255,.18),transparent 19rem),
    radial-gradient(circle at 4% 72%,rgba(104,174,255,.10),transparent 17rem),
    linear-gradient(160deg,#edf5ff 0%,#f7faff 46%,#eef5fc 100%)!important;
}
html[data-theme="light"] .auth-login-card{
  border-color:rgba(185,205,228,.88)!important;
  background:rgba(255,255,255,.96)!important;
  color:#0d2340!important;
}
html[data-theme="light"] .auth-login-card .auth-input-shell>input{
  border-color:#cbd9e8!important;
  background:#fbfdff!important;
  color:#132c49!important;
}
html[data-theme="light"] .auth-login-card .auth-input-shell>input::placeholder{
  color:#8d9caf!important;
}

html[data-theme="dark"] .app-public{
  background:
    radial-gradient(circle at 82% 4%,rgba(53,119,211,.15),transparent 20rem),
    radial-gradient(circle at 4% 72%,rgba(39,95,165,.10),transparent 18rem),
    linear-gradient(160deg,#081321 0%,#0a1727 48%,#07111e 100%)!important;
}
html[data-theme="dark"] .auth-form-panel{
  background:transparent!important;
}
html[data-theme="dark"] .auth-login-card{
  border-color:#30465e!important;
  background:rgba(14,27,44,.96)!important;
  color:#edf5ff!important;
  box-shadow:0 30px 80px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.035)!important;
}
html[data-theme="dark"] .auth-login-card h2{color:#f4f8ff!important}
html[data-theme="dark"] .auth-login-card>p{color:#aabbd0!important}
html[data-theme="dark"] .auth-login-card label>span{color:#c4d2e2!important}

html[data-theme="dark"] .auth-login-card .auth-input-shell>input{
  border-color:#38516b!important;
  background:#0a1626!important;
  color:#eef5ff!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025)!important;
}
html[data-theme="dark"] .auth-login-card .auth-input-shell>input::placeholder{
  color:#71869f!important;
}
html[data-theme="dark"] .auth-login-card .auth-input-shell>input:focus{
  border-color:#5d91d3!important;
  background:#0d1c2e!important;
  box-shadow:0 0 0 4px rgba(71,137,225,.12)!important;
}
html[data-theme="dark"] .auth-mobile-brand{
  border-color:#30475f!important;
  background:linear-gradient(145deg,#122238,#0d1a2a)!important;
  box-shadow:0 18px 46px rgba(0,0,0,.20),inset 0 1px 0 rgba(255,255,255,.03)!important;
}
html[data-theme="dark"] .auth-mobile-wordmark{
  filter:brightness(0) invert(1)!important;
  mix-blend-mode:normal!important;
}

html[data-theme="dark"] .auth-register-prompt{
  border-color:#30465e!important;
  background:linear-gradient(145deg,#101f31,#0c1827)!important;
  color:#a8bad0!important;
}
html[data-theme="dark"] .auth-register-prompt>span:first-child{color:#a8bad0!important}
html[data-theme="dark"] .auth-register-prompt::before{
  background-color:#132a45!important;
}
html[data-theme="dark"] .auth-install-button{
  border-color:#30465e!important;
  background:linear-gradient(180deg,#101f31,#0c1827)!important;
  color:#aabbd0!important;
}
html[data-theme="dark"] .auth-footnote{
  border-top-color:#25394e!important;
  color:#71849a!important;
}
html[data-theme="dark"] .auth-password-toggle:hover{
  background:#14283f!important;
}

/* R51 — Support IT complete dark parity */
html[data-theme="dark"] .support-command-stat{
  border-color:#2d4359!important;
  background:linear-gradient(135deg,#101f31,#0d1a2a)!important;
  box-shadow:0 10px 24px rgba(0,0,0,.18)!important;
}
html[data-theme="dark"] .support-command-stat span{color:#9eb2c8!important}
html[data-theme="dark"] .support-command-stat strong{color:#eef5ff!important}
html[data-theme="dark"] .support-command-stat.is-danger{
  border-color:#65383d!important;
  background:linear-gradient(135deg,#2a171b,#211316)!important;
}
html[data-theme="dark"] .support-command-stat.is-danger strong{color:#f0939a!important}
html[data-theme="dark"] .support-test-banner{
  border-color:#604c24!important;
  background:linear-gradient(135deg,#2a2417,#211c13)!important;
}
html[data-theme="dark"] .support-test-banner strong{color:#f3d58d!important}
html[data-theme="dark"] .support-test-banner small{color:#c7ad73!important}
html[data-theme="dark"] .support-test-addresses span{
  border-color:#5a4724!important;
  background:#241e13!important;
}

html[data-theme="dark"] .support-queue-shell{
  border-color:#2d4359!important;
  background:#0f1d2e!important;
}
html[data-theme="dark"] .support-queue-head{
  border-bottom-color:#2b4057!important;
  background:linear-gradient(180deg,#101f31,#0d1a2a)!important;
}
html[data-theme="dark"] .support-filter-tabs{
  border-color:#30465e!important;
  background:#0b1726!important;
}
html[data-theme="dark"] .support-filter-tabs a{color:#9eb2c8!important}
html[data-theme="dark"] .support-filter-tabs a b{
  background:#142338!important;
  color:#a9bfd7!important;
}
html[data-theme="dark"] .support-filter-tabs a.active{
  background:#17304d!important;
  color:#9dc7ff!important;
  box-shadow:none!important;
}
html[data-theme="dark"] .support-ticket-row{
  border-color:#293e54!important;
  background:linear-gradient(180deg,#101f31,#0d1a2a)!important;
}
html[data-theme="dark"] .support-ticket-row:hover{
  border-color:#3d5873!important;
  background:#14263b!important;
}
html[data-theme="dark"] .support-category-pill{
  border-color:#334b62!important;
  background:#142338!important;
  color:#b7c9dc!important;
}

html[data-theme="dark"] .support-ticket-sla{
  border-color:#30475f!important;
  background:#101f31!important;
}
html[data-theme="dark"] .support-ticket-sla strong{color:#d8e8fb!important}
html[data-theme="dark"] .support-ticket-sla.warning{
  border-color:#5a4724!important;
  background:#2a2215!important;
}
html[data-theme="dark"] .support-ticket-sla.warning strong{color:#e6bd64!important}
html[data-theme="dark"] .support-ticket-sla.danger{
  border-color:#65383d!important;
  background:#2a171b!important;
}
html[data-theme="dark"] .support-empty,
html[data-theme="dark"] .support-empty-final{
  border-color:#30465e!important;
  background:#0f1d2e!important;
  color:#a9bdd3!important;
}
html[data-theme="dark"] .support-category-option{
  border-color:#30465e!important;
  background:#101f31!important;
}
html[data-theme="dark"] .support-category-option:has(input:checked){
  border-color:#4b78ae!important;
  background:#142b46!important;
}
html[data-theme="dark"] .support-category-icon{
  background:#142b46!important;
  color:#9bc6ff!important;
}

html[data-theme="dark"] .support-field input,
html[data-theme="dark"] .support-field textarea{
  border-color:#30465e!important;
  background:#0a1626!important;
  color:#eef5ff!important;
}
html[data-theme="dark"] .support-dropzone{
  border-color:#36516d!important;
  background:#0d1b2c!important;
}
html[data-theme="dark"] .support-dropzone-icon{
  background:#14283f!important;
  color:#9bc6ff!important;
  box-shadow:none!important;
}
html[data-theme="dark"] .support-requester-card-final,
html[data-theme="dark"] .support-routing-card{
  border-color:#2d4359!important;
  background:#0f1d2e!important;
}
html[data-theme="dark"] .support-routing-card>div{border-bottom-color:#293e54!important}
html[data-theme="dark"] .support-routing-card strong{color:#dbe8f6!important}
html[data-theme="dark"] .support-detail-facts>div{
  border-color:#2d4359!important;
  background:#101f31!important;
}
html[data-theme="dark"] .support-detail-facts strong{color:#dbe8f6!important}

html[data-theme="dark"] .support-detail-sla-card{
  border-left-color:#2d4359!important;
  background:linear-gradient(145deg,#101f31,#0d1a2a)!important;
}
html[data-theme="dark"] .support-detail-sla-card.warning{background:#2a2215!important}
html[data-theme="dark"] .support-detail-sla-card.danger{background:#2a171b!important}
html[data-theme="dark"] .support-message-body{
  border-color:#2d4359!important;
  background:#101f31!important;
  color:#dbe8f6!important;
}
html[data-theme="dark"] .support-message.from-tech .support-message-body{
  border-color:#315174!important;
  background:#142b46!important;
}
html[data-theme="dark"] .support-report-kpi,
html[data-theme="dark"] .support-sla-grid>article,
html[data-theme="dark"] .support-report-panel{
  border-color:#2d4359!important;
  background:#0f1d2e!important;
  box-shadow:0 12px 28px rgba(0,0,0,.16)!important;
}
html[data-theme="dark"] .support-period-tabs{
  border-color:#30465e!important;
  background:#0b1726!important;
}
html[data-theme="dark"] .support-period-tabs a.active{
  background:#17304d!important;
  color:#9dc7ff!important;
}

/* R51 — Email detail mobile containment */
.email-vault-panel,
.email-links-panel,
.email-source-card,
.email-link-grid,
.email-link-card,
.email-vault-entry,
.email-manual-link{
  min-width:0!important;
  max-width:100%!important;
}
.email-link-card>*,
.email-vault-entry>*,
.email-manual-link>*{
  min-width:0!important;
  max-width:100%!important;
}
@media(max-width:760px){
  .email-vault-panel,
  .email-links-panel{
    overflow:hidden!important;
    padding:18px!important;
  }
  .email-vault-entry{
    display:grid!important;
    grid-template-columns:40px minmax(0,1fr)!important;
    gap:10px!important;
    align-items:center!important;
  }
  .email-vault-entry form{
    grid-column:1/-1!important;
    width:100%!important;
  }

  .email-vault-entry button{
    width:100%!important;
    min-height:48px!important;
  }
  .email-vault-form{
    width:100%!important;
    grid-template-columns:1fr!important;
  }
  .email-vault-form>*{
    width:100%!important;
    min-width:0!important;
  }
  .email-link-grid{
    grid-template-columns:minmax(0,1fr)!important;
  }
  .email-link-card{
    width:100%!important;
    overflow:hidden!important;
    padding:14px!important;
  }
  .email-link-person{
    min-width:0!important;
    align-items:flex-start!important;
  }
  .email-link-person>div{
    min-width:0!important;
    width:100%!important;
  }
  .email-link-person a,
  .email-link-person small{
    max-width:100%!important;
  }

  .email-link-state,
  .email-device-list,
  .email-link-actions{
    min-width:0!important;
    max-width:100%!important;
    flex-wrap:wrap!important;
  }
  .email-link-actions{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:8px!important;
  }
  .email-link-actions form,
  .email-link-actions button{
    width:100%!important;
    min-width:0!important;
  }
  .email-manual-link{
    width:100%!important;
    grid-template-columns:1fr!important;
    gap:10px!important;
  }
  .email-manual-link>*{
    width:100%!important;
    min-width:0!important;
  }
  .email-manual-link label{
    min-height:44px!important;
    align-items:center!important;
  }
  .email-manual-link button{
    min-height:52px!important;
  }
}

/* R51 — canonical premium search component */
.premium-search-panel{
  position:relative;
  overflow:hidden;
  margin-bottom:22px;
  padding:22px;
  border:1px solid #d5e2ef;
  border-radius:24px;
  background:
    radial-gradient(circle at 92% 12%,rgba(50,128,231,.11),transparent 15rem),
    linear-gradient(135deg,#fbfdff,#f3f8fe 58%,#eef6ff);
  box-shadow:0 16px 36px rgba(17,57,103,.075);
}
.premium-search-panel::after{
  content:"";position:absolute;right:-78px;bottom:-90px;width:270px;height:190px;
  border-radius:50%;background:radial-gradient(circle,rgba(60,130,226,.11),transparent 68%);pointer-events:none;
}
.premium-search-copy{position:relative;z-index:1;max-width:820px;padding-right:90px}
.premium-search-copy .eyebrow{
  display:inline-flex;margin-bottom:7px;color:#2d68b5!important;
  font-size:11px!important;font-weight:900;letter-spacing:.08em;text-transform:uppercase;
}
.premium-search-copy h2{margin:0;color:#12365f;font-size:clamp(22px,2vw,29px);letter-spacing:-.45px}
.premium-search-copy p{max-width:760px;margin:8px 0 0;color:#647991;font-size:14px!important;line-height:1.55}

.premium-search-icon{
  position:absolute;z-index:1;top:20px;right:22px;display:grid;place-items:center;
  width:54px;height:54px;border:1px solid #c9dcf0;border-radius:17px;
  background:rgba(255,255,255,.72);color:#2671d4;font-size:25px;
  box-shadow:0 9px 22px rgba(26,91,169,.1);
}
.premium-search-form{
  position:relative;z-index:1;display:grid;
  grid-template-columns:minmax(260px,1.6fr) repeat(var(--premium-filter-count,3),minmax(150px,1fr)) auto;
  gap:10px;margin-top:18px;padding:14px;border:1px solid #dce7f2;border-radius:18px;
  background:rgba(255,255,255,.78);box-shadow:inset 0 1px 0 rgba(255,255,255,.9);
}
.premium-search-form label{
  display:flex;flex-direction:column;gap:6px;min-width:0;color:#60748b;
  font-size:12px!important;font-weight:800;
}
.premium-search-form :where(input,select){
  width:100%;height:48px!important;min-height:48px!important;margin:0!important;
  border:1px solid #cdddec!important;border-radius:14px!important;background-color:#fff!important;
  color:#173653!important;font-size:13px!important;font-weight:700!important;
  box-shadow:0 5px 12px rgba(23,67,115,.035)!important;
}

.premium-search-actions{display:flex;align-self:end;align-items:center;gap:8px}
.premium-search-actions button,.premium-search-actions .filter-reset{
  display:inline-flex;align-items:center;justify-content:center;height:48px;min-height:48px;
  padding:0 17px;border-radius:14px;font-size:13px!important;font-weight:850;
  text-decoration:none;white-space:nowrap;
}
.premium-search-actions button{
  border:0;background:linear-gradient(135deg,#1764ce,#2f84ed);color:#fff;
  box-shadow:0 9px 20px rgba(33,105,205,.2);
}
.premium-search-actions .filter-reset{border:1px solid #cbdbea;background:#fff;color:#3a5775}
html[data-theme="dark"] .premium-search-panel{
  border-color:#263d55!important;
  background:linear-gradient(135deg,#0e1b2b,#0c1827 58%,#102239)!important;
}
html[data-theme="dark"] .premium-search-copy h2{color:#eef5ff!important}
html[data-theme="dark"] .premium-search-copy p{color:#a7b8cb!important}
html[data-theme="dark"] .premium-search-icon{
  border-color:#2e4864!important;background:linear-gradient(145deg,#102035,#0e1d30)!important;color:#80b6ff!important;
}
html[data-theme="dark"] .premium-search-form{border-color:#2a425b!important;background:rgba(13,27,44,.8)!important}

html[data-theme="dark"] .premium-search-form :where(input,select){
  border-color:#30485f!important;background-color:#101f31!important;color:#eef5ff!important;
}
html[data-theme="dark"] .premium-search-actions .filter-reset{
  border-color:#334b62!important;background:#122238!important;color:#dce9f7!important;
}
@media(max-width:1180px){
  .premium-search-form{grid-template-columns:repeat(2,minmax(0,1fr))}
  .premium-search-actions{grid-column:1/-1}
}
@media(max-width:760px){
  .premium-search-panel{padding:20px 16px!important;border-radius:19px!important}
  .premium-search-copy{padding-right:0}
  .premium-search-icon{display:none}
  .premium-search-copy h2{font-size:28px!important;line-height:1.08!important}
  .premium-search-copy p{font-size:15px!important;line-height:1.55!important}
  .premium-search-form{grid-template-columns:1fr!important;gap:14px!important;padding:14px!important}
  .premium-search-form label{gap:7px!important;font-size:13px!important}
  .premium-search-form :where(input,select){height:54px!important;min-height:54px!important;font-size:15px!important}
  .premium-search-actions{grid-column:auto!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;align-self:stretch!important}
  .premium-search-actions button,.premium-search-actions .filter-reset{height:54px!important;min-height:54px!important;font-size:15px!important}
}

/* R51 — canonical premium add/edit shell */
.premium-management-panel{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(310px,390px);
  gap:28px;
  align-items:center;
  margin-bottom:22px;
  padding:22px;
  border:1px solid #d5e2ef;
  border-radius:24px;
  background:
    radial-gradient(circle at 92% 12%,rgba(50,128,231,.10),transparent 15rem),
    linear-gradient(135deg,#fbfdff,#f3f8fe 58%,#eef6ff);
  box-shadow:0 16px 36px rgba(17,57,103,.075);
}
.premium-management-copy .eyebrow{
  display:inline-flex;margin-bottom:7px;color:#2d68b5!important;
  font-size:11px!important;font-weight:900;letter-spacing:.08em;text-transform:uppercase;
}
.premium-management-copy h2{margin:0;color:#12365f;font-size:clamp(22px,2vw,29px);letter-spacing:-.45px}
.premium-management-copy p{max-width:760px;margin:8px 0 0;color:#647991;font-size:14px!important;line-height:1.55}

.premium-management-details{
  margin:0!important;
  align-self:center;
  padding:18px!important;
  border:1px solid #ccdef1!important;
  border-radius:20px!important;
  background:linear-gradient(145deg,rgba(255,255,255,.9),rgba(237,246,255,.92))!important;
  box-shadow:0 13px 30px rgba(22,77,141,.095)!important;
}
.premium-management-details::before{
  content:attr(data-kicker)!important;
  position:static!important;
  display:block!important;
  width:auto!important;
  height:auto!important;
  margin-bottom:10px;
  background:none!important;
  color:#6d82a0!important;
  font-size:11px!important;
  font-weight:900!important;
  line-height:1.2!important;
  letter-spacing:.07em;
  text-transform:uppercase;
}
.premium-management-details>summary{
  display:flex!important;
  align-items:center!important;
  gap:11px!important;
  min-height:58px!important;
  padding:0 16px!important;
  border:0!important;
  border-radius:16px!important;
  list-style:none!important;
  background:linear-gradient(135deg,#1764ce,#2f84ed)!important;
  color:#fff!important;
  box-shadow:0 13px 28px rgba(29,103,207,.25)!important;
  font-size:15px!important;
  font-weight:900!important;
}
.premium-management-details>summary::-webkit-details-marker{display:none}
.premium-management-details>summary::before{
  content:"+";
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  flex:0 0 32px;
  border-radius:50%;
  background:rgba(255,255,255,.94);
  color:#236fd0;
  font-size:22px;
  font-weight:500;
}
.premium-management-details>summary::after{
  content:"→"!important;
  position:static!important;
  display:block!important;
  margin-left:auto!important;
  width:auto!important;
  height:auto!important;
  border:0!important;
  background:none!important;
  color:#fff!important;
  font-size:20px!important;
  line-height:1!important;
  transform:none!important;
}
.premium-management-details[open]{
  grid-column:1/-1;
  width:100%;
  align-self:stretch;
}
.premium-management-details[open]>summary{
  margin-bottom:14px!important;
  border-bottom:0!important;
}
.premium-management-details[open]>summary::before{content:"−"}
.premium-management-details[open]>summary::after{content:"↑"!important}

.premium-detail-management{
  width:min(390px,100%)!important;
  max-width:390px!important;
  margin:18px 0 22px auto!important;
}
.premium-detail-management>summary::before{content:"✎"}
.premium-detail-management[open]{
  width:100%!important;
  max-width:none!important;
  margin:18px 0 22px!important;
}
.premium-detail-management[open]>summary::before{content:"−"}

.premium-management-details .org-management-form{
  margin:14px!important;
  padding:16px!important;
  border:1px solid #dbe6f1!important;
  border-radius:18px!important;
  background:linear-gradient(180deg,#fbfdff,#f5f9fd)!important;
}
html[data-theme="dark"] .premium-management-panel{
  border-color:#263d55!important;
  background:linear-gradient(135deg,#0e1b2b,#0c1827 58%,#102239)!important;
}
html[data-theme="dark"] .premium-management-copy h2{color:#eef5ff!important}
html[data-theme="dark"] .premium-management-copy p{color:#a7b8cb!important}
html[data-theme="dark"] .premium-management-details{
  border-color:#2e4864!important;
  background:linear-gradient(145deg,#102035,#0e1d30)!important;
}
html[data-theme="dark"] .premium-management-details::before{color:#8fa8c3!important}
html[data-theme="dark"] .premium-management-details>summary{color:#fff!important}
html[data-theme="dark"] .premium-management-details[open]>summary{border-bottom-color:#2b4057!important}
html[data-theme="dark"] .premium-management-details .org-management-form{
  border-color:#2b4057!important;
  background:linear-gradient(180deg,#0f1d2e,#0c1827)!important;
}

@media(max-width:760px){
  .premium-management-panel{
    grid-template-columns:1fr!important;
    gap:18px!important;
    padding:20px 16px!important;
    border-radius:19px!important;
  }
  .premium-management-copy h2{font-size:28px!important;line-height:1.08!important}
  .premium-management-copy p{font-size:15px!important;line-height:1.55!important}
  .premium-management-details,
  .premium-management-details[open]{
    grid-column:auto!important;
    width:100%!important;
    max-width:none!important;
  }
  .premium-detail-management,
  .premium-detail-management[open]{margin:18px 0 22px!important}
  .premium-management-details>summary{
    min-height:62px!important;
    font-size:15px!important;
  }
  .premium-management-details .org-management-form{
    margin:12px!important;
    padding:14px!important;
  }
}

/* R51 — remaining main-portal dark surfaces */
html[data-theme="dark"] .email-overview-panel,
html[data-theme="dark"] .activity-panel,
html[data-theme="dark"] .install-banner{
  border-color:#2d4359!important;
  background:#0f1d2e!important;
  color:#dce9f7!important;
  box-shadow:0 12px 28px rgba(0,0,0,.16)!important;
}
html[data-theme="dark"] .email-overview-stats>div{
  border-color:#30465e!important;
  background:#101f31!important;
}
html[data-theme="dark"] .email-overview-stats :where(strong,span){color:#dbe8f6!important}
html[data-theme="dark"] .approval-before-after,
html[data-theme="dark"] .approval-actions form{
  border-color:#2d4359!important;
  background:#101f31!important;
  color:#dce9f7!important;
}
html[data-theme="dark"] .approval-diff>div{
  border-color:#2d4359!important;
  background:#101f31!important;
}

html[data-theme="dark"] .security-hero{
  border-color:#2d4359!important;
  background:
    radial-gradient(circle at 100% 0%,rgba(54,122,215,.12),transparent 16rem),
    linear-gradient(180deg,#101f31,#0d1a2a)!important;
}
html[data-theme="dark"] .security-hero h2{color:#eef5ff!important}
html[data-theme="dark"] .security-hero p{color:#a9bdd3!important}
html[data-theme="dark"] .security-card-icon{
  background:#142b46!important;
  color:#9bc6ff!important;
}
html[data-theme="dark"] .vault-security-banner{
  border-color:#315174!important;
  background:linear-gradient(135deg,#10243d,#0e1c30)!important;
}
html[data-theme="dark"] .vault-category-grid>a{
  border-color:#2d4359!important;
  background:#101f31!important;
  color:#dce9f7!important;
}
html[data-theme="dark"] .vault-category-grid>a.active{
  border-color:#4b78ae!important;
  background:#142b46!important;
}
html[data-theme="dark"] .vault-category-icon{
  background:#142b46!important;
  color:#9bc6ff!important;
}

html[data-theme="dark"] .backup-policy-meta>div{
  border-color:#2d4359!important;
  background:#101f31!important;
}
html[data-theme="dark"] .backup-policy-meta span{color:#93a8be!important}
html[data-theme="dark"] .backup-policy-meta code{color:#dce9f7!important}
html[data-theme="dark"] .support-report-back{
  border-color:#30465e!important;
  background:#101f31!important;
  color:#dce9f7!important;
}
html[data-theme="dark"] .support-overdue-list>a,
html[data-theme="dark"] .support-report-empty{
  border-color:#2d4359!important;
  background:#101f31!important;
  color:#c9d8e8!important;
}
html[data-theme="dark"] .employee-app-card{
  border-color:#2d4359!important;
  background:#101f31!important;
  color:#dce9f7!important;
}
html[data-theme="dark"] .employee-app-icon,
html[data-theme="dark"] .apps-launcher-icon{
  border-color:#36516d!important;
  background:#142b46!important;
  color:#9bc6ff!important;
}

html[data-theme="dark"] .account-form input,
html[data-theme="dark"] .profile-change-form input,
html[data-theme="dark"] .profile-change-form select{
  border-color:#30465e!important;
  background:#0a1626!important;
  color:#eef5ff!important;
}
html[data-theme="dark"] .profile-current-grid>div,
html[data-theme="dark"] .profile-history-item,
html[data-theme="dark"] .me-profile-grid>div,
html[data-theme="dark"] .me-email-card,
html[data-theme="dark"] .me-not-linked{
  border-color:#2d4359!important;
  background:#101f31!important;
  color:#dce9f7!important;
}
html[data-theme="dark"] .me-panel,
html[data-theme="dark"] .me-secret-shell{
  border-color:#2d4359!important;
  background:#0f1d2e!important;
  color:#dce9f7!important;
}

/* R51 — labeled premium management forms */
.premium-management-details .org-management-form{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:14px!important;
  align-items:end!important;
}
.premium-management-details .org-management-form>label{
  display:flex!important;
  flex-direction:column!important;
  gap:7px!important;
  min-width:0!important;
  width:100%!important;
  color:#49647f!important;
  font-size:12px!important;
  font-weight:850!important;
}
.premium-management-details .org-management-form>label>span{
  color:inherit!important;
  font-size:12px!important;
  font-weight:850!important;
}
.premium-management-details .org-management-form>label :where(input,select,textarea){
  width:100%!important;
  min-width:0!important;
  min-height:48px!important;
  margin:0!important;
}

.premium-management-notes{
  grid-column:span 2;
}
.premium-management-notes textarea{
  min-height:82px!important;
  resize:vertical!important;
}
.premium-management-submit{
  min-height:48px!important;
  border:0!important;
  border-radius:14px!important;
  background:linear-gradient(135deg,#1764ce,#2f84ed)!important;
  color:#fff!important;
  font-size:13px!important;
  font-weight:900!important;
  box-shadow:0 10px 22px rgba(31,104,204,.20)!important;
}
html[data-theme="dark"] .premium-management-details .org-management-form>label{
  color:#b7c8da!important;
}
@media(max-width:1180px){
  .premium-management-details .org-management-form{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}

@media(max-width:760px){
  .premium-management-details .org-management-form{
    grid-template-columns:1fr!important;
    gap:12px!important;
  }
  .premium-management-details .org-management-form>label,
  .premium-management-notes{
    grid-column:auto!important;
  }
  .premium-management-details .org-management-form>label>span{
    font-size:13px!important;
  }
  .premium-management-details .org-management-form>label :where(input,select,textarea),
  .premium-management-submit{
    min-height:54px!important;
    font-size:15px!important;
  }
}

/* R51 — canonical labeled detail edit forms */
.detail-edit-form>label{
  display:flex!important;
  flex-direction:column!important;
  gap:7px!important;
  min-width:0!important;
  width:100%!important;
  color:#49647f!important;
  font-size:12px!important;
  font-weight:850!important;
}
.detail-edit-form>label>span{
  color:inherit!important;
  font-size:12px!important;
  font-weight:850!important;
}
.detail-edit-form>label :where(input,select,textarea){
  width:100%!important;
  min-width:0!important;
  margin:0!important;
}
.detail-edit-notes{
  grid-column:span 2;
}
.detail-edit-notes textarea{
  min-height:90px!important;
  resize:vertical!important;
}

.detail-edit-submit{
  min-height:48px!important;
  border:0!important;
  border-radius:14px!important;
  background:linear-gradient(135deg,#1764ce,#2f84ed)!important;
  color:#fff!important;
  font-size:13px!important;
  font-weight:900!important;
  box-shadow:0 10px 22px rgba(31,104,204,.20)!important;
}
html[data-theme="dark"] .detail-edit-form>label{
  color:#b7c8da!important;
}
@media(max-width:620px){
  .detail-edit-form>label,
  .detail-edit-notes{
    grid-column:auto!important;
  }
  .detail-edit-form>label>span{
    font-size:13px!important;
  }
  .detail-edit-form>label :where(input,select,textarea),
  .detail-edit-submit{
    min-height:54px!important;
    font-size:15px!important;
  }
}

/* R51 — Users row edit labeled layout */
.user-row-actions .user-update-form{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(140px,1fr))!important;
  gap:10px!important;
  min-width:0!important;
}
.user-row-actions .user-update-form>label{
  display:flex!important;
  flex-direction:column!important;
  gap:6px!important;
  min-width:0!important;
  color:#49647f!important;
  font-size:11px!important;
  font-weight:850!important;
}
.user-row-actions .user-update-form>label>span{
  font-size:11px!important;
  font-weight:850!important;
}
.user-row-actions .user-update-form>label :where(input,select){
  width:100%!important;
  min-width:0!important;
}
.user-row-actions .user-update-form>.detail-edit-submit{
  grid-column:1/-1!important;
}
html[data-theme="dark"] .user-row-actions .user-update-form>label{
  color:#b7c8da!important;
}
@media(max-width:650px){
  .user-row-actions .user-update-form{grid-template-columns:1fr!important}
  .user-row-actions .user-update-form>label>span{font-size:12px!important}
}

/* R51 — Me/Profile nested dark parity */
html[data-theme="dark"] .me-kpis>a,
html[data-theme="dark"] .me-kpis>div{
  border-color:#2d4359!important;
  background:linear-gradient(135deg,#101f31,#0d1a2a)!important;
  color:#dce9f7!important;
}
html[data-theme="dark"] .me-kpis :where(strong,span,small){color:#dce9f7!important}
html[data-theme="dark"] .me-support-banner{
  border-color:#315174!important;
  background:linear-gradient(135deg,#10243d,#0e1c30)!important;
  color:#dce9f7!important;
}
html[data-theme="dark"] .me-support-banner button,
html[data-theme="dark"] .me-support-action{
  border-color:#3c5f80!important;
  background:#17304d!important;
  color:#b9d7fb!important;
}
html[data-theme="dark"] .profile-change-hero-icon{
  border-color:#36516d!important;
  background:#142b46!important;
  color:#9bc6ff!important;
}

/* R51 — Vault reveal dark parity */
html[data-theme="dark"] .vault-reveal-shell{
  border-color:#3a4367!important;
  background:
    radial-gradient(circle at 86% 12%,rgba(108,79,190,.15),transparent 28%),
    linear-gradient(135deg,#10172a,#15162d)!important;
  color:#edf1ff!important;
  box-shadow:0 18px 50px rgba(0,0,0,.28)!important;
}
html[data-theme="dark"] .vault-reveal-shell h1{color:#f0edff!important}
html[data-theme="dark"] .vault-reveal-shell>p{color:#aaa3c4!important}
html[data-theme="dark"] .vault-reveal-meta span{
  border-color:#3d4164!important;
  background:#19182f!important;
  color:#c4bed9!important;
}
html[data-theme="dark"] .vault-reveal-back{
  border-color:#3d4164!important;
  background:#17172b!important;
  color:#c4bed9!important;
}

/* R51 — legacy Support cards still reachable */
html[data-theme="dark"] .support-summary a,
html[data-theme="dark"] .support-ticket-card,
html[data-theme="dark"] .support-detail-stats>div,
html[data-theme="dark"] .support-user-confirm,
html[data-theme="dark"] .support-attachments-panel{
  border-color:#2d4359!important;
  background:#101f31!important;
  color:#dce9f7!important;
  box-shadow:0 10px 24px rgba(0,0,0,.16)!important;
}
html[data-theme="dark"] .support-summary :where(strong,span),
html[data-theme="dark"] .support-detail-stats :where(strong,span){
  color:#dce9f7!important;
}
html[data-theme="dark"] .support-attachment-upload input[type=file],
html[data-theme="dark"] .support-attachment-input input[type=file]{
  border-color:#30465e!important;
  background:#0a1626!important;
  color:#c9d8e8!important;
}

/* R51 — Vehicle Intake native shell dark parity */
html[data-theme="dark"] .vehicle-intake-shell-hero,
html[data-theme="dark"] .vehicle-intake-shell-card,
html[data-theme="dark"] .vehicle-intake-shell-panel,
html[data-theme="dark"] .vi-card,
html[data-theme="dark"] .vi-preview-card{
  border-color:#2d4359!important;
  background:linear-gradient(145deg,#101f31,#0d1a2a)!important;
  color:#dce9f7!important;
  box-shadow:0 12px 28px rgba(0,0,0,.16)!important;
}
html[data-theme="dark"] .vehicle-intake-shell-card.is-ready{
  border-color:#2f604e!important;
  background:linear-gradient(145deg,#102b24,#0d241e)!important;
}
html[data-theme="dark"] .vehicle-intake-shell-card.is-pending{
  border-color:#604c24!important;
  background:linear-gradient(145deg,#2a2417,#211c13)!important;
}
html[data-theme="dark"] .vi-runtime-bar{
  border-color:#30465e!important;
  background:#0d1b2c!important;
}

html[data-theme="dark"] .vehicle-intake-native :where(input,textarea,select){
  border-color:#30465e!important;
  background:#0a1626!important;
  color:#eef5ff!important;
}
html[data-theme="dark"] .vi-category,
html[data-theme="dark"] .vi-result-item{
  border-color:#30465e!important;
  background:#101f31!important;
  color:#dce9f7!important;
}
html[data-theme="dark"] .vi-category:hover,
html[data-theme="dark"] .vi-category.is-active{
  border-color:#4b78ae!important;
  background:#142b46!important;
}
html[data-theme="dark"] .vi-category small,
html[data-theme="dark"] .vi-result-item small{
  color:#97abc1!important;
}

/* R51 — Department order-form dark parity */
html[data-theme="dark"] .org-order-form{
  border-top-color:#2d4359!important;
  background:#0f1d2e!important;
  color:#dce9f7!important;
}
html[data-theme="dark"] .org-order-form label{
  color:#b7c8da!important;
}
html[data-theme="dark"] .org-order-form small{
  color:#8fa4ba!important;
}

/* R51 — final mobile topbar width contract */
@media(max-width:650px){
  .topbar{
    min-width:0!important;
    padding:0 8px!important;
    gap:6px!important;
  }
  .mobile-menu{
    width:42px!important;
    min-width:42px!important;
    height:42px!important;
    min-height:42px!important;
    flex:0 0 42px!important;
    padding:0!important;
    align-items:center!important;
    justify-content:center!important;
  }
  .global-search{
    flex:1 1 0!important;
    width:auto!important;
    max-width:none!important;
    min-width:0!important;
    height:42px!important;
    padding:0 4px 0 8px!important;
  }
  .global-search>span[aria-hidden="true"]{display:none!important}
  .global-search input{
    flex:1 1 auto!important;
    width:0!important;
    min-width:0!important;
  }
  .global-search-submit{
    width:42px!important;
    min-width:42px!important;
    max-width:42px!important;
    height:34px!important;
    flex:0 0 42px!important;
  }
  .topbar-actions{
    min-width:0!important;
    margin-left:0!important;
    gap:5px!important;
    flex:0 0 auto!important;
  }
  .theme-icon-button{
    width:42px!important;
    min-width:42px!important;
    height:42px!important;
    flex:0 0 42px!important;
  }
  .profile-menu{
    margin-left:0!important;
    flex:0 0 auto!important;
  }
  .profile-chip{
    width:42px!important;
    min-width:42px!important;
    max-width:42px!important;
    height:42px!important;
    min-height:42px!important;
    padding:3px!important;
    justify-content:center!important;
    overflow:hidden!important;
  }
  .profile-avatar{
    width:34px!important;
    height:34px!important;
    flex:0 0 34px!important;
  }
  .profile-copy{display:none!important}
}
@media(max-width:380px){
  .topbar{padding:0 6px!important;gap:4px!important}
  .mobile-menu,.theme-icon-button,.profile-chip{
    width:40px!important;min-width:40px!important;max-width:40px!important;
    height:40px!important;min-height:40px!important;flex-basis:40px!important;
  }
  .profile-avatar{width:32px!important;height:32px!important;flex-basis:32px!important}
  .global-search{height:40px!important;padding-left:6px!important}
  .global-search-submit{width:40px!important;min-width:40px!important;max-width:40px!important;flex-basis:40px!important}
}

/* R51 — deterministic mobile topbar grid */
@media(max-width:650px){
  .topbar{
    display:grid!important;
    grid-template-columns:42px minmax(0,1fr) max-content!important;
    align-items:center!important;
    column-gap:6px!important;
  }
  .mobile-menu{
    grid-column:1!important;
    justify-self:start!important;
  }
  .global-search{
    grid-column:2!important;
    justify-self:stretch!important;
  }
  .topbar-actions{
    grid-column:3!important;
    justify-self:end!important;
    display:flex!important;
    align-items:center!important;
  }
}
@media(max-width:380px){
  .topbar{
    grid-template-columns:40px minmax(0,1fr) max-content!important;
    column-gap:4px!important;
  }
}

/* R51 — Support Reports mobile containment */
.support-report-grid{
  min-width:0!important;
  max-width:100%!important;
}
.support-report-panel,
.support-performance-panel,
.support-overdue-panel{
  min-width:0!important;
  max-width:100%!important;
  overflow:hidden!important;
}
.support-report-table-wrap{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior-x:contain;
}
.support-report-table{
  width:720px!important;
  min-width:720px!important;
  max-width:none!important;
}
@media(max-width:650px){
  .support-report-grid,
  .support-report-panel,
  .support-performance-panel,
  .support-overdue-panel{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
  }
}

/* R51 — final mobile viewport containment */
@media(max-width:650px){
  html,body,.app-layout,.workspace{
    min-width:0!important;
    max-width:100%!important;
  }
  body{overflow-x:hidden!important}
  .workspace{
    width:100%!important;
    max-width:100vw!important;
    overflow-x:clip!important;
  }
  .workspace-main{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    box-sizing:border-box!important;
  }
  .topbar{
    width:100%!important;
    min-width:0!important;
    max-width:100vw!important;
    box-sizing:border-box!important;
    grid-template-columns:42px minmax(0,1fr) 89px!important;
  }
  .topbar-actions{
    width:89px!important;
    min-width:89px!important;
    max-width:89px!important;
    justify-content:flex-end!important;
    overflow:visible!important;
  }
}
@media(max-width:380px){
  .topbar{
    grid-template-columns:40px minmax(0,1fr) 85px!important;
  }
  .topbar-actions{
    width:85px!important;
    min-width:85px!important;
    max-width:85px!important;
  }
}

/* R52 FINAL — premium Search dark-select parity with Employees.
   Intentionally last in cascade; one blue circular control: DOWN closed / UP open. */
html[data-theme="dark"] body.app-authenticated .premium-search-form select:not([multiple]),
html[data-theme="dark"] body.app-public .premium-search-form select:not([multiple]){
  border:1px solid #30485f!important;
  background-color:#101f31!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 34 34'%3E%3Ccircle cx='17' cy='17' r='15' fill='%232f78ca'/%3E%3Cpath d='M11.5 14 L17 19.5 L22.5 14' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
  background-repeat:no-repeat!important;
  background-position:right 6px center!important;
  background-size:34px 34px!important;
  color:#eef5ff!important;
}
html[data-theme="dark"] body.app-authenticated .premium-search-form select:not([multiple]):open,
html[data-theme="dark"] body.app-authenticated .premium-search-form select:not([multiple]):open:hover,
html[data-theme="dark"] body.app-authenticated .premium-search-form select:not([multiple]):open:focus,
html[data-theme="dark"] body.app-public .premium-search-form select:not([multiple]):open,
html[data-theme="dark"] body.app-public .premium-search-form select:not([multiple]):open:hover,
html[data-theme="dark"] body.app-public .premium-search-form select:not([multiple]):open:focus{
  border:1px solid #6ea8e8!important;
  background-color:#101f31!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 34 34'%3E%3Ccircle cx='17' cy='17' r='15' fill='%232f78ca'/%3E%3Cpath d='M11.5 20 L17 14.5 L22.5 20' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
  background-repeat:no-repeat!important;
  background-position:right 6px center!important;
  background-size:34px 34px!important;
}

/* R52 — dark Organization child cards parity */
html[data-theme="dark"] .org-child-card{
  border-color:#2c435c!important;background:linear-gradient(135deg,#102035,#0d1b2c)!important;color:#dce9f7!important;
}
html[data-theme="dark"] .org-child-card:hover{border-color:#3d6288!important;background:linear-gradient(135deg,#12253c,#102137)!important}
html[data-theme="dark"] .org-child-card-mark{background:#17304d!important;color:#8ebdff!important}
html[data-theme="dark"] .org-child-card strong{color:#e8f1fb!important}
html[data-theme="dark"] .org-child-card small{color:#9fb1c4!important}
html[data-theme="dark"] .org-child-card>b{color:#80b6ff!important}

/* R52 FINAL — dense premium Search desktop containment (Emails/Vault) */
.premium-search-form.premium-search-dense{
  grid-template-columns:minmax(260px,1.5fr) minmax(170px,1fr) minmax(220px,1.1fr);
}
.premium-search-form.premium-search-dense .premium-search-actions{
  align-self:end;
}
.premium-search-form.premium-search-dense .premium-search-actions>*{flex:1}
@media(max-width:1180px){
  .premium-search-form.premium-search-dense{grid-template-columns:repeat(2,minmax(0,1fr))}
  .premium-search-form.premium-search-dense .premium-search-actions{grid-column:1/-1}
}
@media(max-width:760px){
  .premium-search-form.premium-search-dense{grid-template-columns:1fr!important}
  .premium-search-form.premium-search-dense .premium-search-actions{grid-column:auto!important}
}

/* R53 — Search page exact Employee-reference visual + Employee detail Edit section */
.search-reference-panel{
  margin-top:0!important;
}
.search-reference-form{
  grid-template-columns:minmax(260px,1.6fr) repeat(2,minmax(150px,1fr)) auto!important;
}
.search-start-state-premium{
  min-height:180px!important;
  padding:28px!important;
  border:1px solid #d7e4f0!important;
  border-radius:24px!important;
  background:linear-gradient(135deg,#fafdff 0%,#f2f7fd 58%,#edf5ff 100%)!important;
  box-shadow:0 16px 36px rgba(18,58,104,.075)!important;
}
.search-start-state-premium .search-start-icon{
  width:54px!important;
  height:54px!important;
  border:1px solid #c9dcf0!important;
  border-radius:17px!important;
  background:rgba(255,255,255,.8)!important;
  color:#2671d4!important;
  box-shadow:0 9px 22px rgba(26,91,169,.1)!important;
}
.search-start-state-premium h2{
  color:#12365f!important;
  font-size:24px!important;
}
.search-start-state-premium p{
  max-width:620px!important;
  color:#647991!important;
  font-size:13px!important;
}
html[data-theme="dark"] .search-start-state-premium{
  border-color:#263d55!important;
  background:linear-gradient(135deg,#0e1b2b,#0c1827 58%,#102239)!important;
  box-shadow:0 16px 36px rgba(0,0,0,.16)!important;
}
html[data-theme="dark"] .search-start-state-premium .search-start-icon{
  border-color:#2e4864!important;
  background:linear-gradient(145deg,#102035,#0e1d30)!important;
  color:#80b6ff!important;
}
html[data-theme="dark"] .search-start-state-premium h2{color:#eef5ff!important}
html[data-theme="dark"] .search-start-state-premium p{color:#a7b8cb!important}

.employee-edit-panel{
  margin-top:18px!important;
}
.employee-edit-panel .employee-edit-details{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  align-self:center!important;
}
.employee-edit-panel .employee-edit-details>summary::before{
  content:"✎"!important;
}
.employee-edit-panel .employee-edit-details[open]{
  grid-column:1/-1!important;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
}
.employee-edit-panel .employee-edit-details[open]>summary::before{
  content:"−"!important;
}
@media(max-width:1180px){
  .search-reference-form{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  .search-reference-form .employee-search-actions{
    grid-column:1/-1!important;
  }
  .employee-edit-panel .employee-edit-details:not([open]){
    max-width:430px!important;
  }
}
@media(max-width:760px){
  .search-reference-form{
    grid-template-columns:1fr!important;
    gap:14px!important;
    padding:11px!important;
  }
  .search-reference-form .employee-search-actions{
    grid-column:auto!important;
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:10px!important;
  }
  .search-reference-form .employee-search-actions>*{
    width:100%!important;
    min-height:54px!important;
  }
  .search-start-state-premium{
    min-height:155px!important;
    padding:22px 18px!important;
    border-radius:19px!important;
  }
  .search-start-state-premium h2{font-size:22px!important}
  .search-start-state-premium p{font-size:13px!important;line-height:1.5!important}
  .employee-edit-panel .employee-edit-details,
  .employee-edit-panel .employee-edit-details:not([open]),
  .employee-edit-panel .employee-edit-details[open]{
    width:100%!important;
    max-width:none!important;
  }
}

/* R65 — Employee Detail mobile scroll contract + premium Admin Identity editor */

/* Detail surfaces must never widen the whole page. */
.employee-field-section,
.employee-devices-panel,
.employee-bmisthos-test-panel,
.employee-section-editor,
.employee-section-form{
  min-width:0!important;
  max-width:100%!important;
  box-sizing:border-box;
}
.employee-section-form>*,
.employee-section-form label,
.employee-section-form input,
.employee-section-form select,
.employee-section-form textarea{
  min-width:0!important;
  max-width:100%!important;
  box-sizing:border-box!important;
}

/* Desktop-only premium identity editor. */
@media(min-width:761px){
  #section-identity .employee-identity-editor{
    position:relative;
    overflow:hidden;
    margin:4px 0 22px!important;
    padding:24px!important;
    border:1px solid #ccdaea!important;
    border-radius:24px!important;
    background:
      radial-gradient(circle at 92% 0%,rgba(47,123,232,.11),transparent 18rem),
      linear-gradient(145deg,#ffffff 0%,#f8fbff 58%,#eef5fd 100%)!important;
    box-shadow:0 18px 42px rgba(18,52,91,.09),inset 0 1px 0 rgba(255,255,255,.95)!important;
  }
  #section-identity .employee-identity-editor::before{
    content:"";
    position:absolute;
    left:0;
    right:0;
    top:0;
    height:4px;
    background:linear-gradient(90deg,#1f6fd8,#5fa7f1);
  }
  #section-identity .employee-identity-form{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:16px 18px!important;
  }
  #section-identity .employee-identity-form>label{
    position:relative;
    padding:13px 14px 14px;
    border:1px solid #d6e3f0;
    border-radius:17px;
    background:rgba(255,255,255,.88);
    box-shadow:0 7px 18px rgba(18,52,91,.045);
    transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease;
  }
  #section-identity .employee-identity-form>label:focus-within{
    border-color:#8db7e4;
    box-shadow:0 10px 24px rgba(31,103,190,.10);
    transform:translateY(-1px);
  }
  #section-identity .employee-identity-form>label>span{
    margin-bottom:2px;
    color:#345d88!important;
    font-size:10.5px!important;
    font-weight:900!important;
    letter-spacing:.045em!important;
  }
  #section-identity .employee-identity-form input,
  #section-identity .employee-identity-form select{
    min-height:48px!important;
    border:1px solid #d7e3ef!important;
    border-radius:13px!important;
    background:linear-gradient(180deg,#fbfdff,#f5f9fd)!important;
    padding:10px 12px!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.9)!important;
  }
  #section-identity .employee-identity-form input:focus,
  #section-identity .employee-identity-form select:focus{
    border-color:#6c9fd8!important;
    background:#fff!important;
    box-shadow:0 0 0 4px rgba(47,123,232,.10)!important;
  }
  #section-identity .employee-identity-form .identity-full-name-latin{
    grid-column:1/-1;
  }
  #section-identity .employee-section-actions{
    grid-column:1/-1;
    margin-top:2px;
    padding-top:18px!important;
    border-top:1px solid #dbe6f1;
  }
  #section-identity .employee-section-actions button{
    min-height:46px!important;
    min-width:132px!important;
    border-radius:13px!important;
    font-weight:850!important;
  }
  #section-identity .employee-section-actions button[type="submit"]{
    padding-left:24px!important;
    padding-right:24px!important;
    box-shadow:0 8px 18px rgba(30,105,209,.16)!important;
  }
  html[data-theme="dark"] #section-identity .employee-identity-editor{
    border-color:#2d455f!important;
    background:
      radial-gradient(circle at 92% 0%,rgba(70,140,225,.12),transparent 18rem),
      linear-gradient(145deg,#101f31,#0c1928)!important;
    box-shadow:0 18px 42px rgba(0,0,0,.20)!important;
  }
  html[data-theme="dark"] #section-identity .employee-identity-form>label{
    border-color:#30485f;
    background:rgba(14,29,46,.88);
    box-shadow:0 7px 18px rgba(0,0,0,.15);
  }
  html[data-theme="dark"] #section-identity .employee-identity-form>label>span{
    color:#9fc8f5!important;
  }
  html[data-theme="dark"] #section-identity .employee-identity-form input,
  html[data-theme="dark"] #section-identity .employee-identity-form select{
    border-color:#314b65!important;
    background:linear-gradient(180deg,#11233a,#0d1d30)!important;
    color:#eef5ff!important;
  }
  html[data-theme="dark"] #section-identity .employee-section-actions{
    border-top-color:#2d4359;
  }
}

/* Mobile identity editor: one clean column, no horizontal overflow. */
@media(max-width:760px){
  #section-identity .employee-identity-editor{
    margin:2px 0 14px!important;
    padding:12px!important;
    border-radius:18px!important;
    overflow:hidden!important;
  }
  #section-identity .employee-identity-form{
    grid-template-columns:minmax(0,1fr)!important;
    gap:10px!important;
  }
  #section-identity .employee-identity-form .identity-full-name-latin{
    grid-column:auto!important;
  }
  #section-identity .employee-section-actions{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    gap:8px!important;
    width:100%!important;
  }
  #section-identity .employee-section-actions button{
    width:100%!important;
    min-width:0!important;
  }

  /* Core Accounting table fits the viewport instead of forcing legacy 720px width. */
  .employee-bmisthos-test-panel{
    min-width:0!important;
    max-width:100%!important;
    overflow:hidden!important;
  }
  .employee-bmisthos-core-wrap{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    overflow:visible!important;
  }
  .employee-bmisthos-core-table{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    table-layout:fixed!important;
  }
  .employee-bmisthos-core-table th,
  .employee-bmisthos-core-table td{
    white-space:normal!important;
    word-break:normal!important;
    overflow-wrap:anywhere!important;
    padding:12px 10px!important;
  }
  .employee-bmisthos-core-table th:first-child,
  .employee-bmisthos-core-table td:first-child{
    width:44%!important;
  }
  .employee-bmisthos-core-table th:nth-child(2),
  .employee-bmisthos-core-table td:nth-child(2){
    width:56%!important;
  }

  /* Expanded Accounting table scrolls inside its own surface. */
  .employee-bmisthos-extra-wrap{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior-x:contain;
    touch-action:pan-x pan-y;
    scrollbar-gutter:stable;
  }
  .employee-bmisthos-extra-table{
    width:720px!important;
    min-width:720px!important;
    max-width:none!important;
    table-layout:fixed!important;
  }
  .employee-bmisthos-extra-table.has-removal-action{
    width:900px!important;
    min-width:900px!important;
  }
  .employee-bmisthos-extra-table th,
  .employee-bmisthos-extra-table td{
    white-space:nowrap!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
  }

  /* Device table also scrolls internally instead of widening Employee Profile. */
  .employee-devices-panel{
    min-width:0!important;
    max-width:100%!important;
    overflow:hidden!important;
  }
  .employee-devices-panel>.table-wrap{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior-x:contain;
    touch-action:pan-x pan-y;
    scrollbar-gutter:stable;
  }
  .employee-devices-panel .employee-device-table{
    width:760px!important;
    min-width:760px!important;
    max-width:none!important;
    table-layout:auto!important;
  }
}

/* R66 — Accounting details control: only the explicit right-edge +/- control */
.employee-bmisthos-more>summary{
  display:flex!important;
  list-style:none!important;
  list-style-type:none!important;
  -webkit-appearance:none!important;
  appearance:none!important;
}
.employee-bmisthos-more>summary::marker{
  content:""!important;
  font-size:0!important;
}
.employee-bmisthos-more>summary::-webkit-details-marker{
  display:none!important;
}
.employee-bmisthos-more>summary::before,
.employee-bmisthos-more>summary::after{
  content:none!important;
  display:none!important;
}

/* R69 — Admin accounting-source sync control */
.accounting-sync-panel{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:22px;
  margin:18px 0;
  padding:20px 22px;
  border:1px solid #d3e0ee;
  border-radius:22px;
  background:
    radial-gradient(circle at 94% 10%,rgba(47,123,232,.10),transparent 14rem),
    linear-gradient(145deg,#fff,#f5f9fe);
  box-shadow:0 14px 32px rgba(18,52,91,.07);
}
.accounting-sync-copy h2{
  margin:4px 0 5px;
  color:#102f54;
  font-size:20px;
  letter-spacing:-.35px;
}
.accounting-sync-copy>p{
  margin:0;
  color:#61758a;
  font-size:12px;
  line-height:1.5;
}
.accounting-sync-meta{
  display:flex;
  flex-wrap:wrap;
  gap:7px 14px;
  margin-top:12px;
  color:#637b95;
  font-size:10px;
  font-weight:700;
}
.accounting-sync-meta strong{color:#214e7f;font-weight:900}
.accounting-sync-action{
  min-width:242px;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:9px;
}
.accounting-sync-state{
  display:flex;
  align-items:center;
  gap:7px;
  justify-content:flex-end;
  color:#7b8da1;
  font-size:9.5px;
  font-weight:850;
}
.accounting-sync-state i{
  width:8px;height:8px;border-radius:50%;background:#9baabd;
  box-shadow:0 0 0 4px rgba(155,170,189,.13);
}
.accounting-sync-state.is-ready{color:#17845d}
.accounting-sync-state.is-ready i{background:#25a875;box-shadow:0 0 0 4px rgba(37,168,117,.12)}
.accounting-sync-button{
  width:100%;
  min-height:46px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  border:0!important;
  border-radius:14px!important;
  background:linear-gradient(135deg,#1764ce,#2f84ed)!important;
  color:#fff!important;
  font-weight:900!important;
  box-shadow:0 10px 22px rgba(29,103,207,.20)!important;
}
.accounting-sync-button>span{font-size:18px;line-height:1}
.accounting-sync-button:disabled{
  cursor:not-allowed!important;
  background:linear-gradient(135deg,#b6c4d3,#a9b8c8)!important;
  box-shadow:none!important;
  opacity:.78!important;
}
.accounting-sync-result{margin:0 0 14px!important}
html[data-theme="dark"] .accounting-sync-panel{
  border-color:#2d4359;
  background:
    radial-gradient(circle at 94% 10%,rgba(70,140,225,.12),transparent 14rem),
    linear-gradient(145deg,#101f31,#0c1928);
  box-shadow:0 14px 32px rgba(0,0,0,.20);
}
html[data-theme="dark"] .accounting-sync-copy h2{color:#ecf5ff}
html[data-theme="dark"] .accounting-sync-copy>p{color:#9db1c6}
html[data-theme="dark"] .accounting-sync-meta{color:#91a8c0}
html[data-theme="dark"] .accounting-sync-meta strong{color:#a9d0ff}
@media(max-width:760px){
  .accounting-sync-panel{
    grid-template-columns:1fr;
    gap:16px;
    padding:18px 16px;
    border-radius:20px;
  }
  .accounting-sync-action{min-width:0;width:100%}
  .accounting-sync-state{justify-content:flex-start}
  .accounting-sync-button{width:100%}
}

/* R71 — Admin onboarding notification for auto-created employees */
.accounting-onboarding-panel{
  margin:18px 0;
  padding:20px 22px;
  border:1px solid #edd8ad;
  border-radius:22px;
  background:
    radial-gradient(circle at 94% 8%,rgba(231,157,36,.11),transparent 14rem),
    linear-gradient(145deg,#fff,#fff9ee);
  box-shadow:0 14px 32px rgba(90,62,20,.07);
}
.accounting-onboarding-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:14px;
}
.accounting-onboarding-head h2{
  margin:4px 0 5px;
  color:#493718;
  font-size:20px;
  letter-spacing:-.35px;
}
.accounting-onboarding-head p{
  margin:0;
  color:#7a684c;
  font-size:12px;
  line-height:1.5;
}
.accounting-onboarding-count{
  min-width:38px;
  height:38px;
  display:grid;
  place-items:center;
  padding:0 10px;
  border:1px solid #e8ca8e;
  border-radius:999px;
  background:#fff7e7;
  color:#a56308;
  font-size:13px;
  font-weight:900;
}
.accounting-onboarding-list{display:grid;gap:9px}
.accounting-onboarding-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  min-width:0;
  padding:13px 14px;
  border:1px solid #eddcb9;
  border-radius:16px;
  background:rgba(255,255,255,.86);
}
.accounting-onboarding-copy{
  display:flex;
  flex-direction:column;
  min-width:0;
}
.accounting-onboarding-copy strong{
  color:#4e3c20;
  font-size:12.5px;
  font-weight:900;
}
.accounting-onboarding-copy small{
  margin-top:4px;
  color:#826b49;
  font-size:10px;
  line-height:1.4;
  overflow-wrap:anywhere;
}
.accounting-onboarding-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex:0 0 auto;
}
.accounting-onboarding-actions form{margin:0}
.accounting-onboarding-actions .secondary-button,
.accounting-onboarding-actions button{
  min-height:36px;
  padding:7px 11px;
  border-radius:11px;
  font-size:10px;
  font-weight:850;
  white-space:nowrap;
}
html[data-theme="dark"] .accounting-onboarding-panel{
  border-color:#6a512a;
  background:
    radial-gradient(circle at 94% 8%,rgba(224,160,55,.12),transparent 14rem),
    linear-gradient(145deg,#151f2b,#2a2317);
  box-shadow:0 14px 32px rgba(0,0,0,.20);
}
html[data-theme="dark"] .accounting-onboarding-head h2,
html[data-theme="dark"] .accounting-onboarding-copy strong{color:#f3d99e}
html[data-theme="dark"] .accounting-onboarding-head p,
html[data-theme="dark"] .accounting-onboarding-copy small{color:#d0b786}
html[data-theme="dark"] .accounting-onboarding-count{
  border-color:#71582e;background:#352913;color:#f1bd65;
}
html[data-theme="dark"] .accounting-onboarding-card{
  border-color:#5e4929;background:rgba(20,29,40,.86);
}
@media(max-width:760px){
  .accounting-onboarding-panel{padding:18px 16px;border-radius:20px}
  .accounting-onboarding-card{align-items:stretch;flex-direction:column}
  .accounting-onboarding-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}
  .accounting-onboarding-actions .secondary-button,
  .accounting-onboarding-actions form,
  .accounting-onboarding-actions button{width:100%}
}
.accounting-onboarding-progress{margin-top:9px;color:#8a6a34;font-size:9.5px;font-weight:800}
.accounting-onboarding-progress strong{color:#9b620c;font-weight:950}
.accounting-onboarding-checklist{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.accounting-onboarding-check{min-height:27px;display:inline-flex;align-items:center;gap:6px;padding:5px 8px;border:1px solid #ead9b8;border-radius:999px;background:#fffaf0;color:#856b43;font-size:9px;font-weight:850;white-space:nowrap}
.accounting-onboarding-check i{width:15px;height:15px;display:grid;place-items:center;border-radius:50%;background:#f1e5cf;color:#9a7845;font-size:9px;font-style:normal;line-height:1}
.accounting-onboarding-check.is-ready{border-color:#bfe2d3;background:#f2fbf7;color:#29775a}
.accounting-onboarding-check.is-ready i{background:#dff4ea;color:#16845b}
html[data-theme="dark"] .accounting-onboarding-progress{color:#c9ab72}
html[data-theme="dark"] .accounting-onboarding-progress strong{color:#f2bf68}
html[data-theme="dark"] .accounting-onboarding-check{border-color:#604b2d;background:#2b2418;color:#d3ba8c}
html[data-theme="dark"] .accounting-onboarding-check i{background:#3a2d19;color:#d9b878}
html[data-theme="dark"] .accounting-onboarding-check.is-ready{border-color:#2d604d;background:#12291f;color:#8fe1be}
html[data-theme="dark"] .accounting-onboarding-check.is-ready i{background:#173c2d;color:#8fe1be}
@media(max-width:760px){.accounting-onboarding-checklist{gap:5px}.accounting-onboarding-check{white-space:normal;line-height:1.25}}

/* R78 — compact managed domains UX */
.domain-management-panel{margin-bottom:22px}
.managed-domain-disclosure{
  position:relative;z-index:1;margin-top:18px;border:1px solid #dce7f2;border-radius:18px;
  background:rgba(255,255,255,.78);box-shadow:inset 0 1px 0 rgba(255,255,255,.9);
  overflow:hidden;
}
.managed-domain-disclosure>summary{
  display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:62px;
  padding:12px 14px;cursor:pointer;list-style:none;user-select:none;
  color:#173653;
}
.managed-domain-disclosure>summary::-webkit-details-marker{display:none}
.managed-domain-disclosure>summary::marker{content:""}
.managed-domain-disclosure>summary::before,
.managed-domain-disclosure>summary::after{
  content:none!important;
  display:none!important;
}
.managed-domain-disclosure .when-open{display:none}
.managed-domain-disclosure[open] .when-closed{display:none}
.managed-domain-disclosure[open] .when-open{display:inline}
.managed-domain-disclosure-copy{display:flex;flex-direction:column;gap:3px;min-width:0}
.managed-domain-disclosure-copy strong{font-size:14px;font-weight:900;color:#173653}
.managed-domain-disclosure-copy small{font-size:11px;font-weight:750;color:#72859a}
.managed-domain-disclosure[open]>summary{border-bottom:1px solid #dce7f2}
.domain-management-panel .managed-domain-surface{padding:12px 14px 14px}
.managed-domain-list{display:grid;gap:8px}
.managed-domain-item{
  display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:10px;align-items:center;
  padding:9px 10px;border:1px solid #dce7f2;border-radius:15px;background:rgba(255,255,255,.84);
}
.managed-domain-order{
  display:grid;place-items:center;width:30px;height:30px;border-radius:10px;
  background:#e9f2ff;color:#1d67c8;font-size:11px;font-weight:900;
}
.managed-domain-row-main{min-width:0}
.managed-domain-view{
  display:flex;align-items:center;gap:8px;min-height:42px;padding:0 12px;
  border:1px solid #d7e3ef;border-radius:13px;background:#fff;color:#173653;
}
.managed-domain-view strong{
  min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:850;
}
.managed-domain-copy{
  flex:0 0 32px;width:32px;height:32px;margin-left:auto;display:grid;place-items:center;padding:0;
  border:1px solid transparent;border-radius:10px;background:transparent;color:#66809b;
  font-size:17px;line-height:1;box-shadow:none;
}
.managed-domain-copy:hover{border-color:#c9dbed;background:#f3f8fe;color:#216fd4}
.managed-domain-copy.is-copied{border-color:#b8dfce;background:#f1faf6;color:#23825e}
.managed-domain-actions{display:flex;align-items:center;gap:7px}
.managed-domain-edit,.managed-domain-delete{
  display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:0 12px;
  border-radius:11px;font-size:11px!important;font-weight:850;white-space:nowrap;
}
.managed-domain-edit{
  border:1px solid #cadced;background:#f7fbff;color:#32618f;box-shadow:none;
}
.managed-domain-edit:hover{border-color:#9fc4ea;background:#eef6ff;color:#1c66c6}
.managed-domain-delete-form{display:flex}
.managed-domain-delete{
  border:1px solid #ead4d7;background:transparent;color:#a74e57;box-shadow:none;
}
.managed-domain-delete:hover{border-color:#dfaeb4;background:#fff6f7;color:#963741}
.managed-domain-edit-form{
  display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end;min-width:0;
}
.managed-domain-edit-form[hidden]{display:none!important}
.managed-domain-edit-form label,.managed-domain-add-form label{
  display:flex;flex-direction:column;gap:5px;min-width:0;color:#60748b;font-size:11px!important;font-weight:800;
}
.managed-domain-edit-form input,.managed-domain-add-form input{
  width:100%;height:42px!important;min-height:42px!important;margin:0!important;
  border:1px solid #bcd4ea!important;border-radius:12px!important;background:#fff!important;
  color:#173653!important;font-size:13px!important;font-weight:750!important;
  box-shadow:0 4px 10px rgba(23,67,115,.03)!important;
}
.managed-domain-edit-actions{display:flex;gap:7px}
.managed-domain-save,.managed-domain-cancel,.managed-domain-add-form button{
  display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 14px;
  border-radius:12px;font-size:12px!important;font-weight:850;white-space:nowrap;
}
.managed-domain-save,.managed-domain-add-form button{
  border:0;background:linear-gradient(135deg,#1764ce,#2f84ed);color:#fff;
  box-shadow:0 8px 18px rgba(33,105,205,.18);
}
.managed-domain-cancel{
  border:1px solid #ceddea;background:#fff;color:#496781;box-shadow:none;
}
.managed-domain-item:has(.managed-domain-edit-form:not([hidden])) .managed-domain-view,
.managed-domain-item:has(.managed-domain-edit-form:not([hidden])) .managed-domain-actions{display:none}
.managed-domain-add-form{
  display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end;
  margin-top:10px;padding-top:10px;border-top:1px solid #dce7f2;
}
.managed-domain-empty{padding:16px;text-align:center;color:#6a7f96;font-size:12px;font-weight:750}
.managed-domain-error{margin:0 0 10px}
html[data-theme="dark"] .managed-domain-disclosure{
  border-color:#2a425b!important;background:rgba(13,27,44,.8)!important;
}
html[data-theme="dark"] .managed-domain-disclosure>summary{color:#eef5ff}
html[data-theme="dark"] .managed-domain-disclosure[open]>summary{border-bottom-color:#2a425b}
html[data-theme="dark"] .managed-domain-disclosure-copy strong{color:#eef5ff}
html[data-theme="dark"] .managed-domain-disclosure-copy small{color:#9fb1c5}
html[data-theme="dark"] .managed-domain-item{
  border-color:#2a425b!important;background:rgba(16,31,49,.78)!important;
}
html[data-theme="dark"] .managed-domain-order{background:#172e49;color:#80b6ff}
html[data-theme="dark"] .managed-domain-view{
  border-color:#30485f;background:#101f31;color:#eef5ff;
}
html[data-theme="dark"] .managed-domain-copy{color:#8ea6bd}
html[data-theme="dark"] .managed-domain-copy:hover{border-color:#36536e;background:#142a42;color:#8cc0ff}
html[data-theme="dark"] .managed-domain-copy.is-copied{border-color:#32624f;background:#10281f;color:#83d8b5}
html[data-theme="dark"] .managed-domain-edit{
  border-color:#35516c;background:#122238;color:#b9d6f3;
}
html[data-theme="dark"] .managed-domain-delete{
  border-color:#5f4147;background:transparent;color:#e3a0a8;
}
html[data-theme="dark"] .managed-domain-delete:hover{border-color:#80505a;background:#251a22;color:#f2b0b7}
html[data-theme="dark"] .managed-domain-edit-form label,
html[data-theme="dark"] .managed-domain-add-form label{color:#a7b8cb!important}
html[data-theme="dark"] .managed-domain-edit-form input,
html[data-theme="dark"] .managed-domain-add-form input{
  border-color:#385772!important;background:#101f31!important;color:#eef5ff!important;
}
html[data-theme="dark"] .managed-domain-cancel{
  border-color:#334b62;background:#122238;color:#dce9f7;
}
html[data-theme="dark"] .managed-domain-add-form{border-top-color:#2a425b}
html[data-theme="dark"] .managed-domain-empty{color:#a7b8cb}
@media(max-width:760px){
  .managed-domain-disclosure>summary{min-height:58px;padding:11px 12px}
  .domain-management-panel .managed-domain-surface{padding:10px 12px 12px}
  .managed-domain-item{grid-template-columns:30px minmax(0,1fr);gap:8px;align-items:start}
  .managed-domain-order{margin-top:6px}
  .managed-domain-actions{grid-column:2;justify-content:flex-start}
  .managed-domain-edit,.managed-domain-delete{min-height:40px}
  .managed-domain-edit-form{grid-template-columns:1fr!important}
  .managed-domain-edit-actions{display:grid;grid-template-columns:1fr 1fr}
  .managed-domain-add-form{grid-template-columns:1fr!important}
  .managed-domain-edit-form input,.managed-domain-add-form input,
  .managed-domain-save,.managed-domain-cancel,.managed-domain-add-form button{
    height:50px!important;min-height:50px!important;font-size:14px!important;
  }
  .managed-domain-save,.managed-domain-cancel,.managed-domain-add-form button{width:100%}
  .managed-domain-view{min-height:46px}
}



/* R81 — employee edit + safe delete contract */
.employee-inactive-button{
  border:1px solid #e6b766!important;
  background:linear-gradient(180deg,#fff8e8,#ffefc7)!important;
  color:#9b5d00!important;
  box-shadow:0 7px 16px rgba(169,100,6,.10)!important;
}
.employee-inactive-button:hover{background:#ffe8b1!important;border-color:#d99a32!important}

.employee-company-change-flow{
  position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  gap:10px;align-items:stretch;margin:18px 0 10px;
}
.employee-company-change-flow>div{
  padding:12px;border:1px solid #d8e3ee;border-radius:14px;background:#f8fbff;
}
.employee-company-change-flow small{display:block;margin-bottom:5px;color:#72849a;font-size:10px;font-weight:850;text-transform:uppercase;letter-spacing:.06em}
.employee-company-change-flow strong{display:block;color:#173653;font-size:13px;line-height:1.35}
.employee-company-change-flow>span{display:grid;place-items:center;color:#b36d08;font-size:20px;font-weight:900}
.employee-company-change-note{margin-top:10px!important;font-size:11px!important}

.employee-delete-policy-card{
  margin:14px 0 0;padding:16px;border:1px solid #d8e3ee;border-radius:18px;
  background:linear-gradient(180deg,#fbfdff,#f7fafc);box-shadow:0 8px 20px rgba(20,58,98,.04);
}
.employee-delete-policy-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.employee-delete-policy-head>div{display:flex;flex-direction:column;gap:4px}
.employee-delete-policy-head>div>strong{color:#193754;font-size:16px}
.employee-delete-policy-state{
  display:inline-flex;align-items:center;min-height:30px;padding:0 10px;border-radius:999px;
  font-size:10px;font-weight:900;white-space:nowrap;
}
.employee-delete-policy-state.is-safe{background:#eaf8f1;color:#247653;border:1px solid #c7e8d7}
.employee-delete-policy-state.is-transfer{background:#fff4d9;color:#966000;border:1px solid #eed090}
.employee-delete-policy-state.is-blocked{background:#fff0f0;color:#a13f45;border:1px solid #edc7ca}
.employee-delete-indicators{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}
.employee-delete-indicator{
  display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 12px;
  border-radius:14px;background:#fff;border:1px solid #dbe6ef;
}
.employee-delete-indicator span{font-size:11px;font-weight:800;color:#657b91}
.employee-delete-indicator strong{font-size:18px;color:#173653}
.employee-delete-indicator.is-simple strong{color:#a66a04}
.employee-delete-indicator.is-serious strong{color:#ae4248}
.employee-delete-policy-message{margin:12px 0 0;padding:11px 12px;border-radius:13px;font-size:11px;font-weight:750;line-height:1.45}
.employee-delete-policy-message.is-safe{background:#eff9f4;color:#2a7256}
.employee-delete-policy-message.is-transfer{background:#fff6df;color:#8b5b08}
.employee-delete-policy-message.is-blocked{background:#fff1f1;color:#9a3e45}
.employee-delete-ref-list{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}
.employee-delete-ref-list span{
  display:inline-flex;align-items:center;gap:6px;padding:6px 9px;border:1px solid #dbe5ee;border-radius:999px;
  background:#fff;color:#5b7187;font-size:10px;font-weight:800;
}
.employee-delete-ref-list b{min-width:18px;height:18px;display:grid;place-items:center;border-radius:999px;background:#edf3f9;color:#294f75}
.employee-final-delete-form{margin-top:12px}
.employee-final-delete-form .danger-delete{min-height:42px}
.employee-field-section .detail-field.employee-termination-field.is-empty>span{color:#17293d!important}

html[data-theme="dark"] .employee-inactive-button{
  border-color:#73571f!important;background:linear-gradient(180deg,#322612,#2a2114)!important;color:#f0be63!important;
}
html[data-theme="dark"] .employee-company-change-flow>div{border-color:#30485f;background:#101f31}
html[data-theme="dark"] .employee-company-change-flow small{color:#91a6bb}
html[data-theme="dark"] .employee-company-change-flow strong{color:#eef5ff}
html[data-theme="dark"] .employee-delete-policy-card{border-color:#2b435a;background:linear-gradient(180deg,#101f31,#0d1a2a)}
html[data-theme="dark"] .employee-delete-policy-head>div>strong{color:#eef5ff}
html[data-theme="dark"] .employee-delete-indicator{border-color:#30485f;background:#101f31}
html[data-theme="dark"] .employee-delete-indicator span{color:#a7b8cb}
html[data-theme="dark"] .employee-delete-indicator strong{color:#eef5ff}
html[data-theme="dark"] .employee-delete-ref-list span{border-color:#30485f;background:#101f31;color:#b7c8d8}
html[data-theme="dark"] .employee-delete-ref-list b{background:#17304a;color:#9dc8ff}
html[data-theme="dark"] .employee-field-section .detail-field.employee-termination-field.is-empty>span{color:#eef5ff!important}
@media(max-width:760px){
  .employee-company-change-flow{grid-template-columns:1fr}
  .employee-company-change-flow>span{transform:rotate(90deg)}
  .employee-delete-policy-head{align-items:stretch;flex-direction:column}
  .employee-delete-policy-state{align-self:flex-start}
  .employee-delete-indicators{grid-template-columns:1fr}
}


/* R82 — employee inactive visual contract */
.people-table-card .person-avatar.is-inactive{
  border-color:#efc8cc!important;
  background:linear-gradient(145deg,#fff3f4,#ffe4e7)!important;
  color:#b4232f!important;
  box-shadow:0 4px 10px rgba(180,35,47,.06)!important;
}
.people-table-card .status-pill.status-inactive{
  border-color:#efc8cc!important;
  background:#fff0f1!important;
  color:#b4232f!important;
}
.person-hero-executive .person-avatar-large.is-inactive{
  border-color:rgba(255,157,167,.55)!important;
  background:linear-gradient(145deg,#fff1f2,#ffdfe3)!important;
  color:#b4232f!important;
  box-shadow:0 14px 30px rgba(64,0,8,.22)!important;
}
.person-hero-status.is-inactive{
  border-color:rgba(255,138,150,.42)!important;
  background:rgba(190,45,59,.24)!important;
  color:#ffd2d7!important;
}
html[data-theme="dark"] .people-table-card .person-avatar.is-inactive{
  border-color:#6f3740!important;
  background:linear-gradient(145deg,#301820,#26141a)!important;
  color:#ff9aa5!important;
}
html[data-theme="dark"] .people-table-card .status-pill.status-inactive{
  border-color:#70404a!important;
  background:#2b171d!important;
  color:#ff9da7!important;
}
html[data-theme="dark"] .person-hero-executive .person-avatar-large.is-inactive{
  border-color:rgba(255,139,151,.45)!important;
  background:linear-gradient(145deg,#3b1820,#27131a)!important;
  color:#ff9ba6!important;
}


/* R83 — premium manual employee onboarding wizard */
.manual-employee-entry-panel .employee-add-points i{
  background:#fff4d9!important;color:#a76708!important;
}
.manual-employee-wizard{width:min(940px,94vw)}
.manual-wizard-head{padding-bottom:16px}
.manual-wizard-progress{
  display:grid;grid-template-columns:auto 1fr auto 1fr auto;align-items:center;gap:12px;
  padding:16px 26px;border-bottom:1px solid #e3ebf3;background:#fbfdff;
}
.manual-wizard-progress>div{display:flex;align-items:center;gap:8px;color:#7b8da0;font-size:11px;font-weight:850}
.manual-wizard-progress>div span{
  width:28px;height:28px;display:grid;place-items:center;border:1px solid #ccdae8;border-radius:50%;
  background:#fff;color:#73869a;font-size:11px;font-weight:900;
}
.manual-wizard-progress>div.is-active{color:#1e67c6}
.manual-wizard-progress>div.is-active span{border-color:#2f7fe4;background:#2f7fe4;color:#fff;box-shadow:0 6px 14px rgba(47,127,228,.2)}
.manual-wizard-progress>div.is-complete{color:#21805d}
.manual-wizard-progress>div.is-complete span{border-color:#a8dcc8;background:#eaf8f2;color:#21805d}
.manual-wizard-progress>i{height:1px;background:#dce6ef}
.employee-add-form{padding:0}
.manual-wizard-step{grid-column:1/-1;padding:24px 26px 26px}
.manual-warning-hero{display:grid;grid-template-columns:58px minmax(0,1fr);gap:16px;align-items:start}
.manual-warning-icon{
  width:58px;height:58px;display:grid;place-items:center;border:1px solid #efd7a7;border-radius:18px;
  background:linear-gradient(145deg,#fff8e9,#fff0cf);color:#b76c06;font-size:24px;font-weight:900;
}
.manual-wizard-step .eyebrow{color:#2b70ca!important;font-size:10px!important;font-weight:900;letter-spacing:.08em}
.manual-wizard-step h3{margin:5px 0 6px;color:#153858;font-size:24px;letter-spacing:-.45px}
.manual-wizard-step p{margin:0;color:#6b7f94;font-size:13px;line-height:1.55}
.manual-rule-card{
  margin:18px 0;padding:16px 18px;border:1px solid #d9e6f2;border-radius:16px;
  background:linear-gradient(135deg,#f9fcff,#f2f8fe);
}
.manual-rule-card strong{display:block;margin-bottom:5px;color:#234f7d;font-size:13px}
.manual-rule-card p{font-size:12px}
.manual-password-field{display:flex;flex-direction:column;gap:7px;max-width:480px;color:#4a647f;font-size:12px;font-weight:850}
.manual-password-field input,.manual-identity-grid input,.manual-identity-grid select{
  width:100%;height:50px!important;min-height:50px!important;margin:0!important;padding:0 13px!important;
  border:1px solid #c7d9ea!important;border-radius:14px!important;background:#fff!important;color:#173653!important;
  font-size:13px!important;font-weight:750!important;box-shadow:0 5px 12px rgba(20,65,112,.035)!important;
}
.manual-password-field small{color:#8495a6;font-size:10px;font-weight:650}
.manual-password-error{margin-top:10px;max-width:480px}
.manual-step-copy{margin-bottom:18px}
.manual-identity-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.manual-identity-grid label{display:flex;flex-direction:column;gap:7px;color:#49647f;font-size:11px!important;font-weight:850}
.manual-identity-grid label em{color:#8797a7;font-size:9px;font-style:normal;font-weight:700}
/* R120 — isolate the manual employee legal-entity dropdown from older global
   :hover/:open arrow backgrounds. Explicit no-repeat prevents tiled blue circles. */
body.app-authenticated .manual-employee-wizard .manual-identity-grid select[name="legal_entity_id"]:not([multiple]){
  -webkit-appearance:none!important;appearance:none!important;
  padding:0 52px 0 13px!important;
  background-color:#fff!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 34 34'%3E%3Ccircle cx='17' cy='17' r='15' fill='%23276fc9'/%3E%3Cpath d='M11.5 14 L17 19.5 L22.5 14' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
  background-repeat:no-repeat!important;
  background-position:right 8px center!important;
  background-size:34px 34px!important;
  cursor:pointer;
}
html[data-theme="dark"] body.app-authenticated .manual-employee-wizard .manual-identity-grid select[name="legal_entity_id"]:not([multiple]){
  background-color:#101f31!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 34 34'%3E%3Ccircle cx='17' cy='17' r='15' fill='%232f78ca'/%3E%3Cpath d='M11.5 14 L17 19.5 L22.5 14' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
  background-repeat:no-repeat!important;
  background-position:right 8px center!important;
  background-size:34px 34px!important;
}
.manual-auto-fields-card,.manual-final-auto{
  display:flex;align-items:flex-start;gap:12px;margin-top:16px;padding:14px 16px;border:1px solid #cfe1f3;border-radius:16px;
  background:linear-gradient(135deg,#f7fbff,#edf6ff);
}
.manual-auto-icon,.manual-final-auto>span{
  width:34px;height:34px;flex:0 0 34px;display:grid;place-items:center;border-radius:11px;background:#e1efff;color:#1f6ed1;font-size:18px;font-weight:900;
}
.manual-auto-fields-card strong,.manual-final-auto strong{display:block;margin-bottom:4px;color:#24517f;font-size:12px}
.manual-auto-fields-card p,.manual-final-auto p{font-size:11px}
.manual-wizard-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}
.manual-wizard-actions button{min-width:150px;min-height:48px;border-radius:14px;font-size:13px!important;font-weight:850}
.manual-primary-action{
  border:0;background:linear-gradient(135deg,#1764ce,#2f84ed);color:#fff;box-shadow:0 10px 22px rgba(31,104,204,.20)
}
.manual-primary-action:disabled{opacity:.55;cursor:wait}
.manual-review-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.manual-review-grid>div{
  min-height:78px;padding:13px 14px;border:1px solid #dbe6ef;border-radius:15px;background:#fbfdff;
}
.manual-review-grid small{display:block;margin-bottom:7px;color:#71869b;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.05em}
.manual-review-grid strong{color:#193b5b;font-size:13px;line-height:1.35;word-break:break-word}
.manual-temp-vat-preview{
  position:relative;z-index:1;margin:16px 0 8px;padding:13px 15px;border:1px solid #ead19b;border-radius:14px;background:#fff9eb;
}
.manual-temp-vat-preview small{display:block;margin-bottom:4px;color:#8c6a32;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.06em}
.manual-temp-vat-preview strong{color:#9b5e05;font-size:15px}
.manual-vat-note{font-size:11px!important}
.manual-create-success-card{
  display:grid;grid-template-columns:58px minmax(0,1fr) auto;gap:16px;align-items:start;margin:0 0 18px;padding:20px 22px;
  border:1px solid #bfe3d3;border-radius:20px;background:linear-gradient(135deg,#f7fcfa,#edf9f4);
  box-shadow:0 10px 28px rgba(31,123,87,.07);
}
.manual-create-success-icon{
  width:58px;height:58px;display:grid;place-items:center;border-radius:18px;background:#dff4ea;color:#187c58;font-size:24px;font-weight:900;
}
.manual-create-success-copy h2{margin:4px 0 6px;color:#164b39;font-size:22px}
.manual-create-success-copy>p{margin:0;color:#58786c;font-size:12px;line-height:1.5}
.manual-create-email-alert{
  display:flex;gap:10px;align-items:flex-start;margin-top:13px;padding:12px 14px;border:1px solid #efd9aa;border-radius:14px;background:#fff9ec;
}
.manual-create-email-alert>span{width:30px;height:30px;display:grid;place-items:center;border-radius:10px;background:#ffedc6;color:#ad6a07;font-weight:900}
.manual-create-email-alert small{display:block;color:#9a6c28;font-size:9px;font-weight:900;letter-spacing:.04em}
.manual-create-email-alert strong{display:block;margin:3px 0;color:#6f4a13;font-size:13px}
.manual-create-email-alert p{margin:0!important;color:#8a7048!important;font-size:10px!important}
.manual-success-action{
  display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 14px;border:1px solid #b7dccc;border-radius:13px;
  background:#fff;color:#267456;font-size:11px;font-weight:850;text-decoration:none;white-space:nowrap;
}
html[data-theme="dark"] .manual-wizard-progress{border-color:#263d55;background:#0d1a29}
html[data-theme="dark"] .manual-wizard-step h3{color:#eef5ff}
html[data-theme="dark"] .manual-wizard-step p{color:#a7b8cb}
html[data-theme="dark"] .manual-rule-card{border-color:#2d465f;background:linear-gradient(135deg,#102137,#0e1c2d)}
html[data-theme="dark"] .manual-rule-card strong{color:#b8d8ff}
html[data-theme="dark"] .manual-password-field,.manual-identity-grid label{color:#aabbd0}
html[data-theme="dark"] .manual-password-field input,
html[data-theme="dark"] .manual-identity-grid input,
html[data-theme="dark"] .manual-identity-grid select{border-color:#30485f!important;background:#101f31!important;color:#eef5ff!important}
html[data-theme="dark"] .manual-auto-fields-card,
html[data-theme="dark"] .manual-final-auto{border-color:#2f4a65;background:linear-gradient(135deg,#102239,#0e1c2e)}
html[data-theme="dark"] .manual-auto-fields-card strong,
html[data-theme="dark"] .manual-final-auto strong{color:#b9d8ff}
html[data-theme="dark"] .manual-review-grid>div{border-color:#2d465f;background:#101f31}
html[data-theme="dark"] .manual-review-grid small{color:#91a5ba}
html[data-theme="dark"] .manual-review-grid strong{color:#eef5ff}
html[data-theme="dark"] .manual-create-success-card{border-color:#285b49;background:linear-gradient(135deg,#10291f,#0e211a)}
html[data-theme="dark"] .manual-create-success-copy h2{color:#a6e8cd}
html[data-theme="dark"] .manual-create-success-copy>p{color:#a7c5b9}
html[data-theme="dark"] .manual-success-action{border-color:#35634f;background:#13291f;color:#a7e5cc}
@media(max-width:760px){
  .manual-wizard-progress{grid-template-columns:auto 1fr auto 1fr auto;padding:13px 15px;gap:7px}
  .manual-wizard-progress small{display:none}
  .manual-wizard-step{padding:19px 16px 20px}
  .manual-warning-hero{grid-template-columns:46px minmax(0,1fr)}
  .manual-warning-icon{width:46px;height:46px;border-radius:14px;font-size:20px}
  .manual-identity-grid,.manual-review-grid{grid-template-columns:1fr}
  .manual-wizard-actions{flex-direction:column-reverse}
  .manual-wizard-actions button{width:100%}
  .manual-create-success-card{grid-template-columns:48px minmax(0,1fr)}
  .manual-create-success-icon{width:48px;height:48px;border-radius:15px}
  .manual-success-action{grid-column:1/-1}
}


/* R84 — portal notifications + manual wizard refinements */
.manual-temp-vat-preview,.manual-vat-note{display:none!important}

.portal-notification-center{position:relative}
.portal-notification-trigger{position:relative;font-size:15px!important}
.portal-notification-trigger.has-unread{
  border-color:#a9c9ec!important;background:#f6fbff!important;color:#1767ca!important;
}
.portal-notification-count{
  position:absolute;right:-5px;top:-6px;min-width:20px;height:20px;padding:0 5px;
  display:grid;place-items:center;border:2px solid #fff;border-radius:999px;
  background:#d7434f;color:#fff;font-size:9px;font-weight:900;line-height:1;
}
.portal-notification-popover{
  position:absolute;right:0;top:calc(100% + 12px);z-index:120;
  width:min(430px,calc(100vw - 28px));max-height:min(520px,70vh);overflow:auto;
  border:1px solid #d5e2ee;border-radius:20px;background:#fff;
  box-shadow:0 24px 60px rgba(7,30,61,.22);
}
.portal-notification-head{
  position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:15px 16px;border-bottom:1px solid #e3ebf3;background:rgba(255,255,255,.96);backdrop-filter:blur(10px);
}
.portal-notification-head>div{display:flex;flex-direction:column;gap:2px}
.portal-notification-head strong{color:#183a5d;font-size:14px}
.portal-notification-head .eyebrow{font-size:8px!important}
.portal-notification-head button{
  border:0;background:transparent;color:#2b6fc3;font-size:9px!important;font-weight:850;padding:6px 8px;border-radius:9px
}
.portal-notification-head button:hover{background:#eef6ff}
.portal-notification-list{display:grid;padding:8px}
.portal-notification-item{
  width:100%;display:grid;grid-template-columns:36px minmax(0,1fr) auto;gap:10px;align-items:start;
  padding:11px;border:0;border-radius:14px;background:transparent;text-align:left;cursor:pointer;
}
.portal-notification-item:hover{background:#f5f9fd}
.portal-notification-item.is-unread{background:#eef6ff}
.portal-notification-item-icon{
  width:36px;height:36px;display:grid;place-items:center;border-radius:11px;
  background:#fff0d6;color:#a96706;font-size:15px;font-weight:900;
}
.portal-notification-item-copy{display:flex;flex-direction:column;gap:4px;min-width:0}
.portal-notification-item-copy strong{color:#183a5d;font-size:11px;line-height:1.35}
.portal-notification-item-copy small{color:#6b8197;font-size:9px;line-height:1.45}
.portal-notification-item>b{align-self:center;color:#6d89a6;font-size:15px}
.portal-notification-empty{padding:24px 16px;text-align:center;color:#8495a6;font-size:10px;font-weight:750}
html[data-theme="dark"] .portal-notification-trigger.has-unread{
  border-color:#34587a!important;background:#12263c!important;color:#8bbcff!important;
}
html[data-theme="dark"] .portal-notification-count{border-color:#0d1928}
html[data-theme="dark"] .portal-notification-popover{border-color:#2b425a;background:#0e1b2b;box-shadow:0 24px 60px rgba(0,0,0,.4)}
html[data-theme="dark"] .portal-notification-head{border-color:#263c52;background:rgba(14,27,43,.96)}
html[data-theme="dark"] .portal-notification-head strong{color:#eef5ff}
html[data-theme="dark"] .portal-notification-head button{color:#91c0ff}
html[data-theme="dark"] .portal-notification-head button:hover{background:#152c45}
html[data-theme="dark"] .portal-notification-item:hover{background:#13263a}
html[data-theme="dark"] .portal-notification-item.is-unread{background:#142b45}
html[data-theme="dark"] .portal-notification-item-copy strong{color:#eef5ff}
html[data-theme="dark"] .portal-notification-item-copy small{color:#a7b8cb}
html[data-theme="dark"] .portal-notification-empty{color:#9fb0c3}
@media(max-width:760px){
  .portal-notification-popover{position:fixed;right:12px;left:12px;top:72px;width:auto;max-height:70vh}
}


/* R85 — delete re-auth + premium notification state */
.employee-delete-target-card{
  position:relative;z-index:1;margin:16px 0 14px;padding:12px 14px;
  border:1px solid #efd0d3;border-radius:14px;background:#fff6f6;
}
.employee-delete-target-card small{
  display:block;margin-bottom:5px;color:#a65a61;font-size:9px;font-weight:900;letter-spacing:.07em
}
.employee-delete-target-card strong{display:block;color:#7f2831;font-size:14px}
.employee-delete-password-field{
  position:relative;z-index:1;display:flex;flex-direction:column;gap:7px;margin-top:4px;
  color:#6d4f53;font-size:11px;font-weight:850;
}
.employee-delete-password-field input{
  width:100%;height:48px!important;min-height:48px!important;margin:0!important;padding:0 13px!important;
  border:1px solid #e0b9be!important;border-radius:13px!important;background:#fff!important;color:#3b2024!important;
  font-size:13px!important;font-weight:750!important;
}
.employee-delete-password-field input:focus{
  border-color:#ce7d86!important;box-shadow:0 0 0 4px rgba(198,61,75,.10)!important;
}
.employee-delete-password-field small{color:#92767a;font-size:9px;font-weight:650}
.employee-delete-password-error{margin-top:10px}

.portal-notification-trigger{
  width:46px!important;height:46px!important;border-radius:15px!important;
  border:1px solid #cbdbea!important;background:#f8fbfe!important;color:#426785!important;
  box-shadow:0 7px 18px rgba(27,69,111,.065)!important;
  transition:background .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease!important;
}
.portal-notification-trigger:hover{transform:translateY(-1px)}
.portal-notification-icon{display:grid;place-items:center;width:22px;height:22px}
.portal-notification-icon svg{width:22px;height:22px;overflow:visible}
.portal-notification-icon path{
  fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;
}
.portal-notification-trigger.is-clear{
  border-color:#b9decf!important;
  background:linear-gradient(145deg,#f3fbf7,#e9f7f0)!important;
  color:#24805d!important;
  box-shadow:0 8px 18px rgba(38,128,93,.09)!important;
}
.portal-notification-trigger.is-clear:hover{
  border-color:#8fcbb5!important;background:linear-gradient(145deg,#eefaf4,#def3e9)!important;
}
.portal-notification-trigger.has-unread{
  border-color:#b4cdeb!important;
  background:linear-gradient(145deg,#f4f9ff,#e9f3ff)!important;
  color:#216dce!important;
  box-shadow:0 8px 20px rgba(33,109,206,.12)!important;
}
.portal-notification-count[hidden]{display:none!important}
.portal-notification-count{
  right:-5px!important;top:-6px!important;min-width:20px!important;height:20px!important;
  border:2px solid #fff!important;background:#d8404c!important;
  box-shadow:0 4px 10px rgba(176,38,50,.22)!important;
}
html[data-theme="dark"] .employee-delete-target-card{
  border-color:#704149;background:#2a181d;
}
html[data-theme="dark"] .employee-delete-target-card small{color:#dda3aa}
html[data-theme="dark"] .employee-delete-target-card strong{color:#ffc0c7}
html[data-theme="dark"] .employee-delete-password-field{color:#d7aab0}
html[data-theme="dark"] .employee-delete-password-field input{
  border-color:#704b52!important;background:#161f2b!important;color:#fff1f3!important;
}
html[data-theme="dark"] .portal-notification-trigger.is-clear{
  border-color:#285c49!important;background:linear-gradient(145deg,#102a20,#0d211a)!important;color:#78d5b1!important;
}
html[data-theme="dark"] .portal-notification-trigger.has-unread{
  border-color:#355a7e!important;background:linear-gradient(145deg,#132940,#102237)!important;color:#8fc0ff!important;
}
html[data-theme="dark"] .portal-notification-count{border-color:#0d1928!important}


/* R85B — employee edit current-user re-auth */
.employee-edit-password-field{
  position:relative;z-index:1;display:flex;flex-direction:column;gap:7px;margin-top:16px;
  color:#6e6047;font-size:11px;font-weight:850;
}
.employee-edit-password-field input{
  width:100%;height:48px!important;min-height:48px!important;margin:0!important;padding:0 13px!important;
  border:1px solid #dccb9d!important;border-radius:13px!important;background:#fff!important;color:#3c3423!important;
  font-size:13px!important;font-weight:750!important;
}
.employee-edit-password-field input:focus{
  border-color:#cba75d!important;box-shadow:0 0 0 4px rgba(188,126,20,.10)!important;
}
.employee-edit-password-field small{color:#8b7b5f;font-size:9px;font-weight:650}
.employee-edit-password-error{margin-top:10px}
html[data-theme="dark"] .employee-edit-password-field{color:#d2c19b}
html[data-theme="dark"] .employee-edit-password-field input{
  border-color:#66583c!important;background:#161f2b!important;color:#fff7e9!important;
}


/* R86 — manual create anti-double-submit */
.manual-submit-progress{
  display:flex;align-items:center;gap:13px;margin-top:18px;padding:14px 16px;
  border:1px solid #bed8f2;border-radius:16px;background:linear-gradient(135deg,#f5faff,#eaf4ff);
  box-shadow:0 8px 20px rgba(33,105,190,.06);
}
.manual-submit-progress[hidden]{display:none!important}
.manual-submit-progress strong{display:block;margin-bottom:3px;color:#1f568d;font-size:12px}
.manual-submit-progress p{margin:0!important;color:#66829e!important;font-size:10px!important}
.manual-submit-spinner{
  width:30px;height:30px;flex:0 0 30px;border-radius:50%;
  border:3px solid #c7dcf4;border-top-color:#2674d4;
  animation:manual-submit-spin .8s linear infinite;
}
.manual-create-submit[aria-busy="true"]{
  cursor:wait!important;opacity:.82!important;
  box-shadow:none!important;transform:none!important;
}
.manual-wizard-step button:disabled{cursor:not-allowed}
@keyframes manual-submit-spin{to{transform:rotate(360deg)}}
html[data-theme="dark"] .manual-submit-progress{
  border-color:#315675;background:linear-gradient(135deg,#112941,#0f2236);
}
html[data-theme="dark"] .manual-submit-progress strong{color:#a9d1ff}
html[data-theme="dark"] .manual-submit-progress p{color:#9fb5ca!important}
html[data-theme="dark"] .manual-submit-spinner{border-color:#2e4c69;border-top-color:#77b6ff}


/* R87 — premium validation + create button states */
.manual-create-submit:not([aria-busy="true"]){
  border:1px solid #23865f!important;
  background:linear-gradient(135deg,#17845b,#2ba875)!important;
  color:#fff!important;
  box-shadow:0 10px 22px rgba(23,132,91,.20)!important;
}
.manual-create-submit:not([aria-busy="true"]):hover{
  background:linear-gradient(135deg,#137751,#249a6b)!important;
  box-shadow:0 12px 25px rgba(23,132,91,.24)!important;
}
.manual-create-submit[aria-busy="true"],
.manual-create-submit:disabled[aria-busy="true"]{
  pointer-events:none!important;
  border:1px solid #c4ccd5!important;
  background:#c4ccd5!important;
  color:#f8fafc!important;
  box-shadow:none!important;
  opacity:1!important;
  cursor:not-allowed!important;
  transform:none!important;
}
.form-validation-field-card{
  position:relative;z-index:1;margin:16px 0 8px;padding:12px 14px;
  border:1px solid #d6e3ef;border-radius:14px;background:#f8fbff;
}
.form-validation-field-card small{
  display:block;margin-bottom:5px;color:#6d8196;font-size:9px;font-weight:900;letter-spacing:.07em
}
.form-validation-field-card strong{
  display:block;color:#173b5d;font-size:13px;line-height:1.35;word-break:break-word
}
html[data-theme="dark"] .manual-create-submit:not([aria-busy="true"]){
  border-color:#2b765a!important;
  background:linear-gradient(135deg,#176348,#207d5a)!important;
}
html[data-theme="dark"] .manual-create-submit[aria-busy="true"],
html[data-theme="dark"] .manual-create-submit:disabled[aria-busy="true"]{
  border-color:#45515f!important;background:#45515f!important;color:#d9e0e7!important;
}
html[data-theme="dark"] .form-validation-field-card{
  border-color:#304a63;background:#101f31;
}
html[data-theme="dark"] .form-validation-field-card small{color:#96aabd}
html[data-theme="dark"] .form-validation-field-card strong{color:#eef5ff}


/* R88 — compact validation toast + canonical dropdown only */
.portal-validation-toast{
  position:fixed;z-index:400;left:50%;top:88px;transform:translate(-50%,-10px);
  width:min(460px,calc(100vw - 28px));display:grid;grid-template-columns:34px minmax(0,1fr) 28px;
  gap:10px;align-items:center;padding:11px 12px;
  border:1px solid #d8e5f2;border-radius:15px;
  background:rgba(250,253,255,.98);box-shadow:0 16px 38px rgba(12,46,84,.18);
  opacity:0;transition:opacity .18s ease,transform .18s ease;backdrop-filter:blur(14px);
}
.portal-validation-toast[hidden]{display:none!important}
.portal-validation-toast.is-visible{opacity:1;transform:translate(-50%,0)}
.portal-validation-toast-icon{
  width:34px;height:34px;display:grid;place-items:center;border-radius:11px;
  border:1px solid #eed8a8;background:#fff4da;color:#ad6a08;font-size:17px;font-weight:900;
}
.portal-validation-toast-copy{display:flex;flex-direction:column;gap:3px;min-width:0}
.portal-validation-toast-copy>strong{color:#183b5d;font-size:11px;font-weight:900}
.portal-validation-toast-copy>small{display:flex;gap:5px;flex-wrap:wrap;color:#6c8298;font-size:10px;line-height:1.35}
.portal-validation-toast-copy>small b{color:#355a7f;font-weight:900}
.portal-validation-toast-copy>small b:not(:empty)::after{content:" · ";color:#91a4b7}
.portal-validation-toast>button{
  width:28px;height:28px;padding:0;border:0;border-radius:9px;background:#edf3f8;
  color:#73869a;font-size:14px;cursor:pointer;
}
.portal-validation-toast>button:hover{background:#e2ebf3;color:#385878}
html[data-theme="dark"] .portal-validation-toast{
  border-color:#30485f;background:rgba(15,29,45,.98);box-shadow:0 18px 40px rgba(0,0,0,.42);
}
html[data-theme="dark"] .portal-validation-toast-copy>strong{color:#eef5ff}
html[data-theme="dark"] .portal-validation-toast-copy>small{color:#a5b7ca}
html[data-theme="dark"] .portal-validation-toast-copy>small b{color:#c2d8ef}
html[data-theme="dark"] .portal-validation-toast>button{background:#17283a;color:#9fb1c5}
@media(max-width:760px){
  .portal-validation-toast{top:72px;width:calc(100vw - 20px)}
}


/* R89 — locked employee delete classification visual */
.employee-delete-ref-list b{
  background:#d9434f!important;
  color:#fff!important;
  box-shadow:0 3px 8px rgba(180,45,57,.18)!important;
}
html[data-theme="dark"] .employee-delete-ref-list b{
  background:#d95763!important;
  color:#fff!important;
  box-shadow:0 3px 9px rgba(0,0,0,.22)!important;
}


/* R92 — Accounting Card long-value wrapping */
.employee-bmisthos-table td:nth-child(2){
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  word-break:break-word!important;
  min-width:0!important;
  line-height:1.45!important;
}


/* R93 — Applications dark-theme completion */
html[data-theme="dark"] .mobile-menu{
  border:1px solid #2c4055!important;
  background:#112033!important;
  color:#dce9f7!important;
}
html[data-theme="dark"] :where(
  .vehicle-intake-context-badge,.vehicle-intake-shell-card,.vehicle-intake-shell-panel,
  .vi-runtime-bar,.vi-card
){
  border-color:#2b4055!important;
  background:#0e1b2b!important;
  color:#dce8f5!important;
  box-shadow:0 7px 20px rgba(0,0,0,.16)!important;
}
html[data-theme="dark"] .vehicle-intake-shell-card.is-ready{
  background:linear-gradient(145deg,#0f1e30,#10243a)!important;
}
html[data-theme="dark"] .vehicle-intake-shell-card.is-pending{
  border-color:#604a2b!important;
  background:linear-gradient(145deg,#211d16,#2b2417)!important;
}
html[data-theme="dark"] :where(
  .vehicle-intake-context-badge span,.vehicle-intake-context-badge small,
  .vehicle-intake-shell-card-kicker,.vehicle-intake-shell-card p,
  .vehicle-intake-shell-panel p
){color:#9fb2c4!important}
html[data-theme="dark"] :where(
  .vehicle-intake-context-badge strong,.vehicle-intake-shell-card strong,
  .vehicle-intake-shell-panel h2,.vi-card h2,.vi-card h3
){color:#e8f2fc!important}
html[data-theme="dark"] .vehicle-intake-shell-card.is-pending strong{color:#efc27e!important}
html[data-theme="dark"] .vehicle-intake-shell-lock,
html[data-theme="dark"] .vi-runtime-lock{
  border-color:#344b61!important;
  background:#132439!important;
  color:#aebfd2!important;
}
html[data-theme="dark"] .vi-network-badge{
  background:#123427!important;
  color:#82dab1!important;
}
html[data-theme="dark"] .vi-network-badge.is-offline{
  background:#35191f!important;
  color:#ef959f!important;
}
html[data-theme="dark"] .vehicle-intake-native .vi-secondary{
  border-color:#334b62!important;
  background:#122238!important;
  color:#dce9f7!important;
}


/* R94 — dark theme switch must follow the active document theme */
html[data-theme="dark"] .theme-switch-track{
  border-color:#38536f!important;
  background:#112743!important;
}
html[data-theme="dark"] .theme-switch-track::after{
  transform:translateX(18px)!important;
  background:#7eb2ff!important;
}


/* R102 — mobile header cleanup + notification bell sizing */
.portal-notification-trigger{
  display:grid!important;
  place-items:center!important;
  padding:0!important;
}
.portal-notification-icon{
  display:grid!important;
  place-items:center!important;
  width:28px!important;
  height:28px!important;
  margin:auto!important;
}
.portal-notification-icon svg{
  display:block!important;
  width:28px!important;
  height:28px!important;
  margin:auto!important;
}

@media(max-width:650px){
  .topbar{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    min-width:0!important;
    padding:0 12px!important;
    gap:10px!important;
  }
  .global-search{display:none!important}
  .mobile-menu{
    width:46px!important;
    min-width:46px!important;
    max-width:46px!important;
    height:46px!important;
    min-height:46px!important;
    flex:0 0 46px!important;
    padding:0!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    font-size:22px!important;
  }
  .employee-topbar-title{
    min-width:0!important;
    flex:1 1 auto!important;
  }
  .topbar-actions{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    min-width:0!important;
    margin-left:auto!important;
    gap:10px!important;
    flex:0 0 auto!important;
  }
  .portal-notification-center{
    display:block!important;
    flex:0 0 46px!important;
  }
  .portal-notification-trigger{
    display:grid!important;
    width:46px!important;
    min-width:46px!important;
    max-width:46px!important;
    height:46px!important;
    min-height:46px!important;
    place-items:center!important;
  }
  .portal-notification-icon,
  .portal-notification-icon svg{
    width:27px!important;
    height:27px!important;
  }
  .theme-switch{display:none!important}
  .theme-icon-button{
    display:grid!important;
    place-items:center!important;
    width:46px!important;
    min-width:46px!important;
    max-width:46px!important;
    height:46px!important;
    min-height:46px!important;
    flex:0 0 46px!important;
    padding:0!important;
    font-size:20px!important;
  }
  .profile-menu{
    margin-left:0!important;
    flex:0 0 auto!important;
  }
  .profile-chip{
    display:flex!important;
    width:46px!important;
    min-width:46px!important;
    max-width:46px!important;
    height:46px!important;
    min-height:46px!important;
    padding:4px!important;
    align-items:center!important;
    justify-content:center!important;
    overflow:hidden!important;
  }
  .profile-avatar{
    width:36px!important;
    height:36px!important;
    flex:0 0 36px!important;
  }
  .profile-copy{display:none!important}
}
@media(max-width:380px){
  .topbar{padding:0 8px!important;gap:7px!important}
  .topbar-actions{gap:7px!important}
  .mobile-menu,
  .portal-notification-trigger,
  .theme-icon-button,
  .profile-chip{
    width:42px!important;
    min-width:42px!important;
    max-width:42px!important;
    height:42px!important;
    min-height:42px!important;
    flex-basis:42px!important;
  }
  .portal-notification-center{flex-basis:42px!important}
  .profile-avatar{width:34px!important;height:34px!important;flex-basis:34px!important}
  .portal-notification-icon,
  .portal-notification-icon svg{width:25px!important;height:25px!important}
}


/* R102B — global uppercase kicker / eyebrow contract */
:where(
  .eyebrow,
  .panel-kicker,
  .employee-add-action-kicker,
  .vehicle-intake-launcher-kicker,
  .vrg-kicker,
  .xfw-eyebrow
){
  text-transform:uppercase!important;
  letter-spacing:.10em;
}


/* R103 — premium Accounting flow + final mobile header */
.mobile-topbar-brand{display:none}

:where(.employee-premium-panel-copy,.accounting-onboarding-head,.accounting-sync-copy)>p{
  font-size:13px!important;
  line-height:1.58!important;
  font-weight:550!important;
}
.accounting-sync-meta{
  font-size:11.5px!important;
  line-height:1.45!important;
}
.accounting-sync-state{font-size:11px!important}

.accounting-progress-page{
  width:min(980px,100%);
  margin:0 auto;
  padding:8px 0 34px;
}
.accounting-progress-hero{
  position:relative;
  overflow:hidden;
  display:grid;
  grid-template-columns:74px minmax(0,1fr);
  gap:20px;
  align-items:center;
  padding:28px 30px;
  border:1px solid #d2e1f0;
  border-radius:26px;
  background:
    radial-gradient(circle at 90% 12%,rgba(47,123,232,.18),transparent 18rem),
    linear-gradient(135deg,#ffffff,#f2f8ff);
  box-shadow:0 20px 48px rgba(18,52,91,.09);
}
.accounting-progress-hero::after{
  content:"";
  position:absolute;
  right:-90px;
  bottom:-110px;
  width:300px;
  height:190px;
  border:1px solid rgba(47,123,232,.12);
  border-radius:50%;
  transform:rotate(-12deg);
}
.accounting-progress-brandmark{
  position:relative;
  z-index:1;
  width:74px;
  height:74px;
  display:grid;
  place-items:center;
  border-radius:22px;
  background:linear-gradient(145deg,#1764ce,#39a1ff);
  color:#fff;
  font-size:34px;
  font-weight:800;
  box-shadow:0 16px 32px rgba(31,104,204,.22);
}
.accounting-progress-hero>div:last-child{position:relative;z-index:1}
.accounting-progress-hero h1{
  margin:6px 0 7px;
  color:#12355f;
  font-size:clamp(29px,3vw,42px);
  letter-spacing:-1px;
}
.accounting-progress-hero p{
  margin:0;
  max-width:720px;
  color:#607892;
  font-size:13px;
  line-height:1.6;
}
.accounting-progress-card{
  margin-top:18px;
  padding:26px 28px;
  border:1px solid #d8e4f0;
  border-radius:24px;
  background:#fff;
  box-shadow:0 16px 40px rgba(18,52,91,.07);
}
.accounting-progress-status-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
}
.accounting-progress-status-row>div{
  display:flex;
  flex-direction:column;
  gap:5px;
  min-width:0;
}
.accounting-progress-kicker{
  color:#2170d4;
  font-size:10px;
  font-weight:900;
  letter-spacing:.10em;
  text-transform:uppercase;
}
.accounting-progress-status-row strong{
  color:#173a60;
  font-size:15px;
  line-height:1.45;
}
.accounting-progress-percent{
  flex:0 0 auto;
  color:#1767ce;
  font-size:28px;
  line-height:1;
  font-weight:900;
  letter-spacing:-.8px;
}
.accounting-progress-track{
  position:relative;
  height:14px;
  margin-top:22px;
  overflow:hidden;
  border-radius:999px;
  background:#e8f0f8;
  box-shadow:inset 0 1px 3px rgba(22,57,95,.08);
}
.accounting-progress-track>span{
  display:block;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,#1764ce,#2f84ed,#42b0ff);
  box-shadow:0 4px 12px rgba(47,132,237,.25);
  transition:width .35s ease;
}
.accounting-progress-steps{
  display:grid;
  grid-template-columns:auto 1fr auto 1fr auto 1fr auto 1fr auto;
  align-items:center;
  gap:9px;
  margin-top:24px;
}
.accounting-progress-steps>i{
  height:2px;
  border-radius:999px;
  background:#dce6f0;
}
.accounting-progress-steps>div{
  min-width:72px;
  display:grid;
  justify-items:center;
  gap:7px;
  color:#8a9caf;
}
.accounting-progress-steps>div>span{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border:1px solid #d3dfeb;
  border-radius:50%;
  background:#f7fafd;
  font-size:11px;
  font-weight:900;
}
.accounting-progress-steps small{
  font-size:9px;
  font-weight:800;
  white-space:nowrap;
}
.accounting-progress-steps>div.is-active{color:#1767ce}
.accounting-progress-steps>div.is-active>span{
  border-color:#8eb9ee;
  background:#eaf4ff;
  box-shadow:0 0 0 5px rgba(47,123,232,.08);
}
.accounting-progress-steps>div.is-done{color:#15825a}
.accounting-progress-steps>div.is-done>span{
  border-color:#8fd0b8;
  background:#e7f8f0;
}
.accounting-progress-report,
.accounting-progress-error{
  margin-top:18px;
  padding:26px 28px;
  border-radius:24px;
}
.accounting-progress-report{
  border:1px solid #cce5d9;
  background:
    radial-gradient(circle at 94% 8%,rgba(35,165,112,.09),transparent 14rem),
    linear-gradient(145deg,#fbfffd,#f1fbf6);
  box-shadow:0 16px 40px rgba(24,102,72,.07);
}
.accounting-progress-report-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-bottom:18px;
}
.accounting-progress-report-head h2{
  margin:5px 0 0;
  color:#185c43;
  font-size:23px;
}
.accounting-progress-report-check{
  width:48px;
  height:48px;
  display:grid;
  place-items:center;
  border-radius:16px;
  background:#dff5e9;
  color:#16845b;
  font-size:24px;
  font-weight:900;
}
.accounting-progress-report-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}
.accounting-progress-report-grid>div{
  padding:15px 16px;
  border:1px solid #dcebe4;
  border-radius:15px;
  background:rgba(255,255,255,.82);
}
.accounting-progress-report-grid>div.accounting-report-health{
  grid-column:1/-1;
}
.accounting-progress-report-grid span{
  display:block;
  color:#71877d;
  font-size:9px;
  font-weight:800;
}
.accounting-progress-report-grid strong{
  display:block;
  margin-top:5px;
  color:#244f3d;
  font-size:17px;
}
.accounting-progress-report-grid strong.is-healthy{color:#15825a}
.accounting-progress-report-grid strong.is-mismatch{color:#b06219}
.accounting-progress-return{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:48px;
  margin-top:18px;
  padding:0 18px;
  border-radius:14px;
  background:linear-gradient(135deg,#1764ce,#2f84ed);
  color:#fff!important;
  font-size:12px;
  font-weight:900;
  text-decoration:none;
  box-shadow:0 10px 22px rgba(29,103,207,.18);
}
.accounting-progress-error{
  display:grid;
  grid-template-columns:52px minmax(0,1fr);
  gap:16px;
  border:1px solid #efc7ca;
  background:linear-gradient(145deg,#fffafa,#fff2f3);
}
.accounting-progress-error-icon{
  width:52px;
  height:52px;
  display:grid;
  place-items:center;
  border-radius:17px;
  background:#ffe1e4;
  color:#b63845;
  font-size:23px;
  font-weight:900;
}
.accounting-progress-error h2{margin:5px 0 7px;color:#7f2d35}
.accounting-progress-error p{margin:0;color:#8c6065;font-size:12px;line-height:1.55}

html[data-theme="dark"] .accounting-progress-hero{
  border-color:#2d465f;
  background:
    radial-gradient(circle at 90% 12%,rgba(70,140,225,.14),transparent 18rem),
    linear-gradient(135deg,#112135,#0b1726);
  box-shadow:0 20px 48px rgba(0,0,0,.22);
}
html[data-theme="dark"] .accounting-progress-hero h1{color:#f2f7fd}
html[data-theme="dark"] .accounting-progress-hero p{color:#9eb1c5}
html[data-theme="dark"] .accounting-progress-card{
  border-color:#2d4359;
  background:#0f1d2e;
  box-shadow:0 16px 40px rgba(0,0,0,.18);
}
html[data-theme="dark"] .accounting-progress-status-row strong{color:#e6f0fb}
html[data-theme="dark"] .accounting-progress-track{background:#1b2e43}
html[data-theme="dark"] .accounting-progress-steps>i{background:#2d4258}
html[data-theme="dark"] .accounting-progress-steps>div>span{
  border-color:#344a61;
  background:#132338;
}
html[data-theme="dark"] .accounting-progress-steps>div.is-active>span{
  border-color:#3f70a8;
  background:#17304f;
}
html[data-theme="dark"] .accounting-progress-steps>div.is-done>span{
  border-color:#2f664f;
  background:#123124;
}
html[data-theme="dark"] .accounting-progress-report{
  border-color:#285843;
  background:
    radial-gradient(circle at 94% 8%,rgba(35,165,112,.10),transparent 14rem),
    linear-gradient(145deg,#0f241b,#0c1d17);
  box-shadow:0 16px 40px rgba(0,0,0,.18);
}
html[data-theme="dark"] .accounting-progress-report-head h2{color:#a6e4c9}
html[data-theme="dark"] .accounting-progress-report-grid>div{
  border-color:#294938;
  background:#10271d;
}
html[data-theme="dark"] .accounting-progress-report-grid span{color:#8eb09e}
html[data-theme="dark"] .accounting-progress-report-grid strong{color:#d9f1e5}
html[data-theme="dark"] .accounting-progress-error{
  border-color:#654047;
  background:linear-gradient(145deg,#2b181c,#211317);
}
html[data-theme="dark"] .accounting-progress-error h2{color:#ffc0c7}
html[data-theme="dark"] .accounting-progress-error p{color:#d5a0a6}

@media(max-width:760px){
  .accounting-progress-page{padding-top:0}
  .accounting-progress-hero{
    grid-template-columns:54px minmax(0,1fr);
    gap:14px;
    padding:20px 18px;
    border-radius:20px;
  }
  .accounting-progress-brandmark{
    width:54px;height:54px;border-radius:16px;font-size:26px;
  }
  .accounting-progress-card,
  .accounting-progress-report,
  .accounting-progress-error{
    padding:20px 17px;
    border-radius:20px;
  }
  .accounting-progress-status-row strong{font-size:13px}
  .accounting-progress-percent{font-size:24px}
  .accounting-progress-steps{
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:6px;
  }
  .accounting-progress-steps>i{display:none}
  .accounting-progress-steps>div{min-width:0}
  .accounting-progress-steps small{font-size:7px;white-space:normal;text-align:center}
  .accounting-progress-report-grid{grid-template-columns:1fr 1fr}
  .accounting-progress-report-grid>div.accounting-report-health{grid-column:1/-1}
}

@media(max-width:650px){
  .topbar{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    min-height:66px!important;
    padding:0 10px!important;
    gap:9px!important;
  }
  .mobile-topbar-brand{
    display:grid!important;
    place-items:center!important;
    width:46px!important;
    min-width:46px!important;
    height:46px!important;
    flex:0 0 46px!important;
    margin-right:auto!important;
    border:1px solid #d1e0ef!important;
    border-radius:15px!important;
    background:linear-gradient(145deg,#f8fbff,#edf5ff)!important;
    box-shadow:0 7px 18px rgba(18,57,98,.08)!important;
    text-decoration:none!important;
  }
  .mobile-topbar-brand img{
    width:34px!important;
    height:34px!important;
    display:block!important;
    border-radius:11px!important;
  }
  .global-search,
  .employee-topbar-title{display:none!important}
  .topbar-actions{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    flex:0 0 auto!important;
    margin-left:0!important;
    gap:8px!important;
  }
  .profile-chip{
    border:1px solid #d3e1ef!important;
    background:linear-gradient(145deg,#fbfdff,#f1f6fc)!important;
    box-shadow:0 7px 18px rgba(18,57,98,.07)!important;
  }
  .profile-avatar{
    border-radius:12px!important;
    box-shadow:inset 0 0 0 1px rgba(255,255,255,.16)!important;
  }
  .mobile-menu{
    order:99!important;
    width:46px!important;
    min-width:46px!important;
    max-width:46px!important;
    height:46px!important;
    min-height:46px!important;
    flex:0 0 46px!important;
    margin-left:0!important;
    border:1px solid #d2e1ef!important;
    border-radius:15px!important;
    background:linear-gradient(145deg,#f8fbff,#edf5ff)!important;
    color:#174e8a!important;
    box-shadow:0 7px 18px rgba(18,57,98,.08)!important;
    font-size:22px!important;
  }
  html[data-theme="dark"] .mobile-topbar-brand,
  html[data-theme="dark"] .profile-chip,
  html[data-theme="dark"] .mobile-menu{
    border-color:#30465d!important;
    background:linear-gradient(145deg,#132338,#0e1b2b)!important;
    color:#b8d5f7!important;
    box-shadow:0 7px 18px rgba(0,0,0,.18)!important;
  }
}
@media(max-width:390px){
  .topbar{padding:0 7px!important;gap:6px!important}
  .topbar-actions{gap:6px!important}
  .mobile-topbar-brand,
  .portal-notification-trigger,
  .theme-icon-button,
  .profile-chip,
  .mobile-menu{
    width:42px!important;
    min-width:42px!important;
    max-width:42px!important;
    height:42px!important;
    min-height:42px!important;
    flex-basis:42px!important;
  }
  .mobile-topbar-brand img{width:31px!important;height:31px!important}
}


/* R104 — refined mobile identity/header + blue onboarding + readiness badge */
.profile-avatar{
  border-radius:50%!important;
  border:1px solid #c8daec!important;
  background:linear-gradient(145deg,#f7fbff,#e8f2ff)!important;
  color:#2c6fbd!important;
  box-shadow:0 7px 18px rgba(24,79,139,.10)!important;
}
.profile-avatar-fallback{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  color:inherit;
}
.profile-avatar-fallback svg{
  width:21px;
  height:21px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.profile-avatar img.profile-photo-loaded{
  border-radius:50%!important;
}

.accounting-sync-action{
  gap:12px!important;
}
.accounting-sync-state{
  align-self:flex-end;
  min-height:31px;
  padding:6px 11px;
  border:1px solid #d1e2dc;
  border-radius:999px;
  background:linear-gradient(145deg,#f8fffb,#eef9f3);
  box-shadow:0 5px 14px rgba(26,113,80,.055);
  transform:translateY(-2px);
}
.accounting-sync-state.is-ready{
  border-color:#b9dfd0!important;
  color:#187b59!important;
}
.accounting-sync-state.is-offline{
  border-color:#dbe3ec!important;
  background:#f7f9fc;
  color:#74879b!important;
}

/* Premium blue/cyan onboarding replaces warning amber. */
.accounting-onboarding-panel{
  border-color:#c7dff5!important;
  background:
    radial-gradient(circle at 94% 8%,rgba(42,157,218,.10),transparent 15rem),
    linear-gradient(145deg,#ffffff,#f1f8ff)!important;
  box-shadow:0 14px 32px rgba(25,78,130,.07)!important;
}
.accounting-onboarding-head h2{
  color:#173f6d!important;
}
.accounting-onboarding-head p{
  color:#617b95!important;
}
.accounting-onboarding-count{
  border-color:#bad9f0!important;
  background:linear-gradient(145deg,#f3fbff,#e5f5ff)!important;
  color:#1977b8!important;
  box-shadow:0 6px 16px rgba(25,119,184,.08);
}
.accounting-onboarding-card{
  border-color:#d1e3f3!important;
  background:rgba(255,255,255,.92)!important;
  box-shadow:0 5px 16px rgba(24,70,115,.035);
}
.accounting-onboarding-copy strong{
  color:#244c75!important;
}
.accounting-onboarding-copy small{
  color:#688199!important;
}
.accounting-onboarding-progress{
  color:#3f6f98!important;
}
.accounting-onboarding-progress strong{
  color:#176cb0!important;
}
.accounting-onboarding-check:not(.is-ready){
  border-color:#cde1f2!important;
  background:#f2f8fe!important;
  color:#52738f!important;
}
.accounting-onboarding-check:not(.is-ready) i{
  background:#deedf9!important;
  color:#4381b5!important;
}
html[data-theme="dark"] .accounting-onboarding-panel{
  border-color:#254867!important;
  background:
    radial-gradient(circle at 94% 8%,rgba(38,151,215,.13),transparent 15rem),
    linear-gradient(145deg,#0f2033,#0b1a2a)!important;
  box-shadow:0 14px 32px rgba(0,0,0,.20)!important;
}
html[data-theme="dark"] .accounting-onboarding-head h2,
html[data-theme="dark"] .accounting-onboarding-copy strong{
  color:#b7d9f8!important;
}
html[data-theme="dark"] .accounting-onboarding-head p,
html[data-theme="dark"] .accounting-onboarding-copy small{
  color:#91abc3!important;
}
html[data-theme="dark"] .accounting-onboarding-count{
  border-color:#2e5c80!important;
  background:#102b42!important;
  color:#77c6f3!important;
}
html[data-theme="dark"] .accounting-onboarding-card{
  border-color:#24425c!important;
  background:rgba(13,29,46,.90)!important;
}
html[data-theme="dark"] .accounting-onboarding-progress{
  color:#82aed0!important;
}
html[data-theme="dark"] .accounting-onboarding-progress strong{
  color:#75c4f2!important;
}
html[data-theme="dark"] .accounting-onboarding-check:not(.is-ready){
  border-color:#2c506d!important;
  background:#10273a!important;
  color:#99b9d1!important;
}
html[data-theme="dark"] .accounting-onboarding-check:not(.is-ready) i{
  background:#173b57!important;
  color:#7bc8f3!important;
}

@media(max-width:650px){
  .topbar{
    min-height:66px!important;
    padding:0 9px!important;
    gap:7px!important;
    background:rgba(248,251,255,.96)!important;
    border-bottom-color:#d7e4f0!important;
    box-shadow:0 5px 18px rgba(17,54,94,.055)!important;
  }
  .mobile-topbar-brand{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:104px!important;
    min-width:104px!important;
    max-width:104px!important;
    height:44px!important;
    flex:0 0 104px!important;
    margin-right:auto!important;
    padding:6px 9px!important;
    border:1px solid #d0dfed!important;
    border-radius:14px!important;
    background:linear-gradient(145deg,#ffffff,#f2f7fd)!important;
    box-shadow:0 7px 18px rgba(18,57,98,.065)!important;
    overflow:hidden!important;
  }
  .mobile-topbar-wordmark{
    width:100%!important;
    max-width:86px!important;
    height:auto!important;
    max-height:31px!important;
    object-fit:contain!important;
    display:block!important;
  }
  .mobile-topbar-wordmark-dark{display:none!important}
  .topbar-actions{gap:7px!important}
  .portal-notification-trigger,
  .theme-icon-button,
  .profile-chip,
  .mobile-menu{
    width:44px!important;
    min-width:44px!important;
    max-width:44px!important;
    height:44px!important;
    min-height:44px!important;
    flex-basis:44px!important;
    border-radius:14px!important;
  }
  .profile-chip{
    padding:3px!important;
    border-color:#cadbec!important;
    background:linear-gradient(145deg,#ffffff,#f1f6fc)!important;
    box-shadow:0 7px 18px rgba(18,57,98,.06)!important;
  }
  .profile-avatar{
    width:36px!important;
    height:36px!important;
    flex:0 0 36px!important;
  }
  .profile-avatar-fallback svg{width:20px;height:20px}
  .mobile-menu{
    border-color:#cadbec!important;
    background:linear-gradient(145deg,#ffffff,#f1f6fc)!important;
    color:#245b93!important;
  }
  .theme-icon-button{
    border-color:#cadbec!important;
    background:linear-gradient(145deg,#ffffff,#f1f6fc)!important;
    color:#326a9d!important;
  }
  html[data-theme="dark"] .topbar{
    background:rgba(7,17,30,.97)!important;
    border-bottom-color:#22374c!important;
    box-shadow:0 5px 20px rgba(0,0,0,.24)!important;
  }
  html[data-theme="dark"] .mobile-topbar-brand,
  html[data-theme="dark"] .portal-notification-trigger,
  html[data-theme="dark"] .theme-icon-button,
  html[data-theme="dark"] .profile-chip,
  html[data-theme="dark"] .mobile-menu{
    border-color:#2b435b!important;
    background:linear-gradient(145deg,#122439,#0c1a2a)!important;
    box-shadow:0 7px 18px rgba(0,0,0,.20)!important;
  }
  html[data-theme="dark"] .mobile-topbar-wordmark-light{display:none!important}
  html[data-theme="dark"] .mobile-topbar-wordmark-dark{display:block!important}
  html[data-theme="dark"] .theme-icon-button,
  html[data-theme="dark"] .mobile-menu{
    color:#9fc9f4!important;
  }
  html[data-theme="dark"] .profile-avatar{
    border-color:#36546f!important;
    background:linear-gradient(145deg,#17304a,#10243a)!important;
    color:#9fc9f4!important;
    box-shadow:0 7px 18px rgba(0,0,0,.18)!important;
  }
  .accounting-sync-state{
    align-self:flex-start!important;
    transform:none!important;
  }
}

@media(max-width:390px){
  .topbar{padding:0 6px!important;gap:5px!important}
  .mobile-topbar-brand{
    width:88px!important;
    min-width:88px!important;
    max-width:88px!important;
    flex-basis:88px!important;
    height:40px!important;
    padding:5px 7px!important;
  }
  .mobile-topbar-wordmark{max-width:74px!important;max-height:28px!important}
  .topbar-actions{gap:5px!important}
  .portal-notification-trigger,
  .theme-icon-button,
  .profile-chip,
  .mobile-menu{
    width:40px!important;
    min-width:40px!important;
    max-width:40px!important;
    height:40px!important;
    min-height:40px!important;
    flex-basis:40px!important;
    border-radius:13px!important;
  }
  .profile-avatar{width:33px!important;height:33px!important;flex-basis:33px!important}
}


/* R105 — initials profile, distinct onboarding workflow, inline Accounting window */
.profile-avatar-initials{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  color:inherit;
  font-size:11px;
  font-weight:950;
  letter-spacing:.045em;
  line-height:1;
}
.accounting-progress-report[hidden],
.accounting-progress-error[hidden]{
  display:none!important;
}

.accounting-onboarding-panel{
  border-color:#e4c6d3!important;
  background:
    radial-gradient(circle at 94% 8%,rgba(180,88,129,.11),transparent 15rem),
    linear-gradient(145deg,#fffdfd,#fff3f7)!important;
  box-shadow:0 16px 36px rgba(104,49,77,.08)!important;
}
.accounting-onboarding-head h2{color:#69344f!important}
.accounting-onboarding-head p{color:#7b6470!important}
.accounting-onboarding-count{
  border-color:#dfb8c8!important;
  background:linear-gradient(145deg,#fff7fa,#ffeaf2)!important;
  color:#9a466c!important;
  box-shadow:0 7px 18px rgba(154,70,108,.09)!important;
}
.accounting-onboarding-card{
  border-color:#ead3dc!important;
  background:rgba(255,253,254,.94)!important;
  box-shadow:0 6px 18px rgba(91,48,69,.04)!important;
}
.accounting-onboarding-copy strong{color:#60364b!important}
.accounting-onboarding-copy small{color:#806776!important}
.accounting-onboarding-progress{color:#80556b!important}
.accounting-onboarding-progress strong{color:#9a466c!important}
.accounting-onboarding-check:not(.is-ready){
  border-color:#ead1dc!important;
  background:#fff3f7!important;
  color:#795d6c!important;
}
.accounting-onboarding-check:not(.is-ready) i{
  background:#f6dce7!important;
  color:#a05275!important;
}
html[data-theme="dark"] .accounting-onboarding-panel{
  border-color:#5a3a4c!important;
  background:
    radial-gradient(circle at 94% 8%,rgba(211,118,156,.13),transparent 15rem),
    linear-gradient(145deg,#211521,#151923)!important;
  box-shadow:0 16px 38px rgba(0,0,0,.24)!important;
}
html[data-theme="dark"] .accounting-onboarding-head h2,
html[data-theme="dark"] .accounting-onboarding-copy strong{color:#f0bfd1!important}
html[data-theme="dark"] .accounting-onboarding-head p,
html[data-theme="dark"] .accounting-onboarding-copy small{color:#c49baa!important}
html[data-theme="dark"] .accounting-onboarding-count{
  border-color:#70485b!important;
  background:#321b29!important;
  color:#efaac5!important;
}
html[data-theme="dark"] .accounting-onboarding-card{
  border-color:#513647!important;
  background:rgba(31,21,30,.92)!important;
}
html[data-theme="dark"] .accounting-onboarding-progress{color:#d19db3!important}
html[data-theme="dark"] .accounting-onboarding-progress strong{color:#efabc6!important}
html[data-theme="dark"] .accounting-onboarding-check:not(.is-ready){
  border-color:#5a3a4a!important;
  background:#2b1d28!important;
  color:#d3a8ba!important;
}
html[data-theme="dark"] .accounting-onboarding-check:not(.is-ready) i{
  background:#432839!important;
  color:#efafc8!important;
}

.accounting-sync-modal{
  width:min(1060px,calc(100vw - 34px));
  max-width:none;
  max-height:calc(100vh - 28px);
  margin:auto;
  padding:0;
  border:0;
  background:transparent;
  overflow:visible;
}
.accounting-sync-modal::backdrop{
  background:rgba(8,22,39,.56);
  backdrop-filter:blur(8px);
}
.accounting-sync-modal-shell{
  position:relative;
  max-height:calc(100vh - 28px);
  overflow:auto;
  padding:22px;
  border:1px solid #ccdaea;
  border-radius:30px;
  background:linear-gradient(145deg,#f9fcff,#eef4fb);
  box-shadow:0 30px 90px rgba(7,31,61,.28);
}
.accounting-sync-modal-close{
  position:absolute;
  z-index:8;
  top:12px;
  right:12px;
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border:1px solid #cddceb;
  border-radius:50%;
  background:rgba(255,255,255,.94);
  color:#315f8d;
  font-size:24px;
  line-height:1;
  cursor:pointer;
  box-shadow:0 8px 20px rgba(18,57,98,.10);
}
.accounting-sync-modal-content{min-height:180px}
.accounting-sync-modal .accounting-progress-page{
  width:100%;
  padding:0;
}
.accounting-sync-modal-loading{
  min-height:240px;
  display:grid;
  place-items:center;
}
.accounting-sync-modal-loading>span{
  width:46px;
  height:46px;
  border:4px solid #d9e7f5;
  border-top-color:#2678df;
  border-radius:50%;
  animation:accounting-modal-spin .8s linear infinite;
}
@keyframes accounting-modal-spin{to{transform:rotate(360deg)}}
.accounting-sync-modal-launch-error{
  min-height:200px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  padding:28px;
  border:1px solid #efc7ca;
  border-radius:22px;
  background:linear-gradient(145deg,#fffafa,#fff2f3);
  color:#7f2d35;
  text-align:center;
}
.accounting-sync-modal-launch-error-icon{
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border-radius:15px;
  background:#ffe1e4;
  color:#b63845;
  font-size:22px;
  font-weight:900;
}
html[data-theme="dark"] .accounting-sync-modal-shell{
  border-color:#2c4359;
  background:linear-gradient(145deg,#0c1928,#091522);
  box-shadow:0 30px 90px rgba(0,0,0,.48);
}
html[data-theme="dark"] .accounting-sync-modal-close{
  border-color:#334a61;
  background:#12243a;
  color:#a8cdf2;
  box-shadow:0 8px 20px rgba(0,0,0,.25);
}
html[data-theme="dark"] .accounting-sync-modal-loading>span{
  border-color:#223a53;
  border-top-color:#5aa9f5;
}
html[data-theme="dark"] .accounting-sync-modal-launch-error{
  border-color:#654047;
  background:linear-gradient(145deg,#2b181c,#211317);
  color:#ffc0c7;
}

.employee-delete-vat-row{
  margin-top:12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:11px 13px;
  border:1px solid #d9e5f0;
  border-radius:13px;
  background:#f8fbfe;
}
.employee-delete-vat-row span{
  color:#6c8094;
  font-size:10px;
  font-weight:850;
}
.employee-delete-vat-row strong{
  color:#173a60;
  font-size:14px;
  letter-spacing:.04em;
}
.employee-delete-target-vat{
  margin-top:5px;
  display:flex;
  align-items:center;
  gap:8px;
  color:#5f7184;
  font-size:11px;
}
.employee-delete-target-vat b{color:#304d6b}
.employee-delete-accounting-warning{
  margin-top:12px;
  padding:12px 14px;
  border:1px solid #edcf97;
  border-radius:13px;
  background:#fff8e9;
  color:#7d581b;
  font-size:11px;
  font-weight:750;
  line-height:1.5;
}
.employee-delete-accounting-warning.is-dialog{margin-bottom:14px}
html[data-theme="dark"] .employee-delete-vat-row{
  border-color:#32485e;
  background:#102033;
}
html[data-theme="dark"] .employee-delete-vat-row span,
html[data-theme="dark"] .employee-delete-target-vat{color:#9bb0c5}
html[data-theme="dark"] .employee-delete-vat-row strong,
html[data-theme="dark"] .employee-delete-target-vat b{color:#e3eef9}
html[data-theme="dark"] .employee-delete-accounting-warning{
  border-color:#6b532e;
  background:#2c2417;
  color:#e4c583;
}

@media(max-width:650px){
  .profile-chip{
    border-color:transparent!important;
    background:transparent!important;
    box-shadow:none!important;
    padding:0!important;
  }
  html[data-theme="dark"] .profile-chip{
    border-color:transparent!important;
    background:transparent!important;
    box-shadow:none!important;
  }
  .accounting-sync-modal{
    width:calc(100vw - 12px);
    max-height:calc(100vh - 12px);
  }
  .accounting-sync-modal-shell{
    max-height:calc(100vh - 12px);
    padding:9px;
    border-radius:22px;
  }
  .accounting-sync-modal-close{
    top:8px;
    right:8px;
    width:38px;
    height:38px;
    font-size:21px;
  }
}


/* R106 — mobile profile menu affordance + protected Accounting modal */
.profile-mobile-chevron{
  display:none;
}

.accounting-sync-modal-close[hidden],
.accounting-sync-modal-guard[hidden]{
  display:none!important;
}
.accounting-sync-modal-guard{
  position:relative;
  z-index:7;
  display:flex;
  align-items:center;
  gap:10px;
  width:max-content;
  max-width:calc(100% - 12px);
  margin:0 54px 12px auto;
  padding:9px 12px;
  border:1px solid #cfe0ef;
  border-radius:14px;
  background:linear-gradient(145deg,#ffffff,#f4f9fd);
  box-shadow:0 8px 20px rgba(18,57,98,.06);
}
.accounting-sync-modal-guard-icon{
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  flex:0 0 28px;
  border-radius:9px;
  background:#e9f5ee;
  color:#16805a;
  font-size:13px;
  font-weight:950;
}
.accounting-sync-modal-guard>span:last-child{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0;
}
.accounting-sync-modal-guard strong{
  color:#284b6e;
  font-size:11px;
  font-weight:900;
}
.accounting-sync-modal-guard small{
  color:#71879c;
  font-size:9.5px;
  line-height:1.35;
}
html[data-theme="dark"] .accounting-sync-modal-guard{
  border-color:#2e465e;
  background:linear-gradient(145deg,#122338,#0e1d30);
  box-shadow:0 8px 20px rgba(0,0,0,.20);
}
html[data-theme="dark"] .accounting-sync-modal-guard strong{color:#dceaf7}
html[data-theme="dark"] .accounting-sync-modal-guard small{color:#9db3c9}
html[data-theme="dark"] .accounting-sync-modal-guard-icon{
  background:#123428;
  color:#86d2ae;
}

@media(max-width:650px){
  .profile-chip::-webkit-details-marker{display:none!important}
  .profile-chip::marker{content:""!important}
  .profile-chip{
    width:62px!important;
    min-width:62px!important;
    max-width:62px!important;
    flex-basis:62px!important;
    height:44px!important;
    min-height:44px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:4px!important;
    padding:3px 5px 3px 3px!important;
    border:1px solid #cadbec!important;
    border-radius:15px!important;
    background:linear-gradient(145deg,#ffffff,#f1f6fc)!important;
    box-shadow:0 7px 18px rgba(18,57,98,.06)!important;
    overflow:visible!important;
  }
  .profile-avatar{
    width:36px!important;
    height:36px!important;
    flex:0 0 36px!important;
  }
  .profile-mobile-chevron{
    display:grid!important;
    place-items:center;
    width:14px;
    height:24px;
    flex:0 0 14px;
    color:#3973a8;
    font-size:15px;
    font-weight:950;
    line-height:1;
    transition:transform .18s ease;
  }
  .profile-menu[open] .profile-mobile-chevron{transform:rotate(180deg)}
  html[data-theme="dark"] .profile-chip{
    border-color:#2b435b!important;
    background:linear-gradient(145deg,#122439,#0c1a2a)!important;
    box-shadow:0 7px 18px rgba(0,0,0,.20)!important;
  }
  html[data-theme="dark"] .profile-mobile-chevron{color:#9fc9f4}
  .accounting-sync-modal-guard{
    width:auto;
    max-width:none;
    margin:0 44px 9px 0;
    padding:8px 10px;
    border-radius:12px;
  }
}

@media(max-width:390px){
  .profile-chip{
    width:56px!important;
    min-width:56px!important;
    max-width:56px!important;
    flex-basis:56px!important;
    height:40px!important;
    min-height:40px!important;
    padding:3px 4px 3px 3px!important;
    border-radius:13px!important;
  }
  .profile-avatar{
    width:32px!important;
    height:32px!important;
    flex:0 0 32px!important;
  }
  .profile-mobile-chevron{
    width:12px;
    flex-basis:12px;
    font-size:13px;
  }
}


/* R107 — blue mobile profile avatar + live Agent activity + stable employee-delete modal */
@media(max-width:650px){
  .profile-avatar{
    border-radius:50%!important;
    border:1px solid rgba(43,126,214,.72)!important;
    background:linear-gradient(145deg,#2f86df,#135eae)!important;
    color:#f5fbff!important;
    box-shadow:
      0 6px 14px rgba(18,91,166,.22),
      inset 0 1px 0 rgba(255,255,255,.24)!important;
  }
  .profile-avatar-initials{
    color:#f5fbff!important;
    -webkit-text-fill-color:#f5fbff!important;
    text-shadow:0 1px 1px rgba(4,41,82,.20);
  }
  html[data-theme="dark"] .profile-avatar{
    border-color:rgba(98,176,246,.72)!important;
    background:linear-gradient(145deg,#2583db,#0b4f99)!important;
    color:#eff8ff!important;
    box-shadow:
      0 6px 14px rgba(0,0,0,.28),
      inset 0 1px 0 rgba(255,255,255,.16)!important;
  }
}

.accounting-progress-live-note[hidden]{display:none!important}
.accounting-progress-live-note{
  display:flex;
  align-items:center;
  gap:7px;
  margin-top:7px;
  color:#617b94;
  font-size:10px;
  font-weight:750;
  line-height:1.45;
}
.accounting-progress-live-note::before{
  content:"";
  width:7px;
  height:7px;
  flex:0 0 7px;
  border-radius:50%;
  background:#2786dd;
  box-shadow:0 0 0 0 rgba(39,134,221,.28);
  animation:accounting-agent-pulse 1.6s ease-out infinite;
}
.accounting-progress-page.is-agent-working .accounting-progress-track>span{
  background-image:
    linear-gradient(90deg,rgba(255,255,255,0) 0,rgba(255,255,255,.32) 45%,rgba(255,255,255,0) 75%);
  background-size:38px 100%;
  animation:accounting-agent-sweep 1.3s linear infinite;
}
@keyframes accounting-agent-pulse{
  0%{box-shadow:0 0 0 0 rgba(39,134,221,.30)}
  70%{box-shadow:0 0 0 7px rgba(39,134,221,0)}
  100%{box-shadow:0 0 0 0 rgba(39,134,221,0)}
}
@keyframes accounting-agent-sweep{
  from{background-position:-45px 0}
  to{background-position:45px 0}
}
html[data-theme="dark"] .accounting-progress-live-note{color:#a9c1d8}
html[data-theme="dark"] .accounting-progress-live-note::before{background:#69b8ff}

.employee-delete-password-dialog[open]{
  position:fixed!important;
  inset:0!important;
  top:0!important;
  right:0!important;
  bottom:0!important;
  left:0!important;
  box-sizing:border-box!important;
  width:min(500px,calc(100vw - 32px))!important;
  max-width:calc(100vw - 32px)!important;
  max-height:calc(100dvh - 32px)!important;
  margin:auto!important;
  overflow:auto!important;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
}
.employee-delete-password-dialog::backdrop{
  background:rgba(8,22,39,.56);
  backdrop-filter:blur(8px);
}
body:has(.employee-delete-password-dialog[open]){
  overflow:hidden!important;
}
@media(max-width:560px){
  .employee-delete-password-dialog[open]{
    width:calc(100vw - 16px)!important;
    max-width:calc(100vw - 16px)!important;
    max-height:calc(100dvh - 16px)!important;
  }
}
@media(prefers-reduced-motion:reduce){
  .accounting-progress-live-note::before,
  .accounting-progress-page.is-agent-working .accounting-progress-track>span{
    animation:none!important;
  }
}


/* R108 — single plus profile affordance + External IT home spacing + Vault sharing */
.external-it-org-link{
  color:inherit;
  text-decoration:none;
  cursor:pointer;
  transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease;
}
.external-it-org-link:hover{
  transform:translateY(-1px);
  box-shadow:0 8px 20px rgba(20,65,110,.10);
}
.external-it-org-link:focus-visible{
  outline:3px solid rgba(42,126,224,.24);
  outline-offset:3px;
}
.external-it-activity-copy{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:5px;
  min-width:0;
}
.external-it-activity-copy strong,
.external-it-activity-copy small{
  display:block;
  width:100%;
}
.external-it-activity-copy small{
  margin:0;
  line-height:1.5;
}
.vault-sharing-checkbox{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  min-height:42px;
  padding:8px 10px;
  border:1px solid #d6e3f0;
  border-radius:12px;
  background:#f8fbfe;
  color:#3e5e7d;
  font-size:11px;
  font-weight:750;
}
.vault-sharing-checkbox input{
  width:17px!important;
  height:17px!important;
  min-height:17px!important;
  margin:0!important;
  accent-color:#2678df;
}
.vault-external-it-access{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:7px;
  min-width:132px;
}
.vault-external-it-access form{margin:0}
.vault-external-it-access button{
  min-height:32px;
  padding:5px 9px;
  font-size:9px;
}
html[data-theme="dark"] .vault-sharing-checkbox{
  border-color:#31495f;
  background:#102033;
  color:#b7cce1;
}

@media(max-width:650px){
  .profile-chip::after{
    content:"+"!important;
    position:static!important;
    float:none!important;
    display:grid!important;
    place-items:center;
    width:14px;
    height:24px;
    flex:0 0 14px;
    margin:0 0 0 2px!important;
    color:#3973a8!important;
    font-size:15px!important;
    font-weight:950!important;
    line-height:1!important;
    transform:none;
    transform-origin:center;
  }
  .profile-menu[open]>.profile-chip::after{
    transform:rotate(45deg)!important;
  }
  html[data-theme="dark"] .profile-chip::after{color:#9fc9f4!important}
}
@media(max-width:390px){
  .profile-chip::after{
    width:12px;
    flex-basis:12px;
    font-size:14px!important;
    margin-left:1px!important;
  }
}


/* R109 — password visibility control */
.password-visibility-shell{
  position:relative;
  display:block;
  width:100%;
  min-width:0;
}
.password-visibility-shell>input{
  width:100%!important;
  padding-right:46px!important;
}
.password-visibility-toggle{
  position:absolute;
  z-index:3;
  right:6px;
  top:50%;
  transform:translateY(-50%);
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  padding:0;
  border:1px solid #d1dfed;
  border-radius:10px;
  background:linear-gradient(180deg,#fff,#f4f8fd);
  color:#2c6fb8;
  cursor:pointer;
}
.password-visibility-toggle svg{
  width:19px;
  height:19px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
}
.password-visibility-toggle:hover,
.password-visibility-toggle.is-visible{
  border-color:#a9c8e8;
  background:#eaf4ff;
  color:#145da8;
}
.password-visibility-toggle.is-visible::after{
  content:"";
  position:absolute;
  width:20px;
  height:1.5px;
  border-radius:999px;
  background:currentColor;
  transform:rotate(-38deg);
}
html[data-theme="dark"] .password-visibility-toggle{
  border-color:#34506a;
  background:linear-gradient(180deg,#142942,#102238);
  color:#9acbfa;
}


/* R109 — copy control on revealed protected values */
.vault-secret-box{
  position:relative;
  display:flex!important;
  align-items:center;
  gap:12px;
}
.vault-secret-box code{
  flex:1 1 auto;
  min-width:0;
  overflow-wrap:anywhere;
}
.secret-copy-button{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:38px;
  padding:7px 11px;
  border:1px solid rgba(255,255,255,.20);
  border-radius:11px;
  background:rgba(255,255,255,.10);
  color:#f4f8ff;
  font-size:10px;
  font-weight:850;
  cursor:pointer;
}
.secret-copy-button>span:first-child{
  font-size:18px;
  line-height:1;
}
.secret-copy-button:hover,
.secret-copy-button.is-copied{
  border-color:rgba(255,255,255,.42);
  background:rgba(255,255,255,.18);
}
@media(max-width:560px){
  .vault-secret-box{align-items:stretch;flex-direction:column}
  .secret-copy-button{align-self:flex-end}
}


/* R110 — Accounting shell hairline removal + password eye alignment */
.accounting-sync-modal-shell{
  border:0!important;
}
html[data-theme="dark"] .accounting-sync-modal-shell{
  border:0!important;
}
.password-visibility-toggle{
  position:absolute!important;
  top:50%!important;
  right:6px!important;
  bottom:auto!important;
  left:auto!important;
  transform:translateY(-50%)!important;
  width:34px!important;
  min-width:34px!important;
  max-width:34px!important;
  height:34px!important;
  min-height:34px!important;
  max-height:34px!important;
  margin:0!important;
  padding:0!important;
  align-self:auto!important;
  line-height:1!important;
}
.org-management-form .password-visibility-toggle,
.quick-form .password-visibility-toggle,
.detail-edit-form .password-visibility-toggle{
  min-height:34px!important;
  background:linear-gradient(180deg,#fff,#f4f8fd)!important;
  color:#2c6fb8!important;
  border:1px solid #d1dfed!important;
}
html[data-theme="dark"] .org-management-form .password-visibility-toggle,
html[data-theme="dark"] .quick-form .password-visibility-toggle,
html[data-theme="dark"] .detail-edit-form .password-visibility-toggle{
  background:linear-gradient(180deg,#142942,#102238)!important;
  color:#9acbfa!important;
  border-color:#34506a!important;
}


/* R110 — Vault detail management */
.vault-reveal-management{
  margin-top:16px;
  padding-top:14px;
  border-top:1px solid rgba(68,89,122,.14);
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
}
.vault-reveal-management form{margin:0}
.vault-reveal-management button{
  min-height:36px;
  padding:7px 12px;
}
html[data-theme="dark"] .vault-reveal-management{
  border-top-color:rgba(170,196,224,.15);
}

/* R111 — definitive password-eye centering */
.password-visibility-shell{
  position:relative!important;
  display:block!important;
  width:100%!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  line-height:normal!important;
}
.password-visibility-toggle{
  top:0!important;
  bottom:0!important;
  right:6px!important;
  left:auto!important;
  transform:none!important;
  margin:auto 0!important;
  align-self:auto!important;
}

/* R111 — definitive password-eye centering + Support development panel */
.password-visibility-shell{
  position:relative!important;
  display:block!important;
  width:100%!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  line-height:normal!important;
}
.password-visibility-toggle{
  top:0!important;
  bottom:0!important;
  right:6px!important;
  left:auto!important;
  transform:none!important;
  margin:auto 0!important;
}
.support-development-panel{
  display:flex;
  align-items:center;
  gap:16px;
  margin:16px 0 18px;
  padding:18px 20px;
  border:1px solid #c7daec;
  border-radius:20px;
  background:
    radial-gradient(circle at 92% 20%,rgba(70,149,226,.12),transparent 13rem),
    linear-gradient(145deg,#f9fcff,#eef5fc);
  box-shadow:0 12px 30px rgba(14,58,102,.08);
}
.support-development-icon{
  width:52px;
  height:52px;
  flex:0 0 52px;
  display:grid;
  place-items:center;
  border-radius:16px;
  background:linear-gradient(145deg,#2d82df,#1768bb);
  color:#f6fbff;
  font-size:25px;
  font-weight:950;
  box-shadow:0 9px 20px rgba(29,105,185,.20);
}
.support-development-panel h2{
  margin:3px 0 5px;
  color:#153b64;
  font-size:21px;
  letter-spacing:-.35px;
}
.support-development-panel p{
  margin:0;
  color:#687f96;
  font-size:11px;
  line-height:1.55;
}
html[data-theme="dark"] .support-development-panel{
  border-color:#304a63;
  background:
    radial-gradient(circle at 92% 20%,rgba(60,146,229,.12),transparent 13rem),
    linear-gradient(145deg,#102136,#0b1828);
  box-shadow:0 12px 30px rgba(0,0,0,.22);
}
html[data-theme="dark"] .support-development-panel h2{color:#edf6ff}
html[data-theme="dark"] .support-development-panel p{color:#a9bfd4}


/* R112 — rose Support development panel */
.support-development-panel{
  border-color:#f0c6d5!important;
  background:
    radial-gradient(circle at 91% 16%,rgba(236,91,143,.16),transparent 13rem),
    linear-gradient(145deg,#fff9fb,#ffeaf2)!important;
  box-shadow:0 14px 32px rgba(153,50,88,.10)!important;
}
.support-development-icon{
  border:1px solid #eaa7c0!important;
  background:linear-gradient(145deg,#ef6b9a,#cf3f72)!important;
  color:#fff8fb!important;
  box-shadow:0 9px 20px rgba(190,54,104,.20)!important;
}
.support-development-panel .panel-kicker{
  color:#b63f6c!important;
}
.support-development-panel h2{
  color:#8d2b4f!important;
}
.support-development-panel p{
  color:#8a6372!important;
}
html[data-theme="dark"] .support-development-panel{
  border-color:#6a3950!important;
  background:
    radial-gradient(circle at 91% 16%,rgba(226,82,136,.14),transparent 13rem),
    linear-gradient(145deg,#311a26,#24151d)!important;
  box-shadow:0 14px 32px rgba(0,0,0,.24)!important;
}
html[data-theme="dark"] .support-development-panel .panel-kicker{color:#f39ab9!important}
html[data-theme="dark"] .support-development-panel h2{color:#ffd9e6!important}
html[data-theme="dark"] .support-development-panel p{color:#d3aebe!important}


/* R114 — managed Portal-user domain policy */
.user-account-domain-policy{
  grid-column:1/-1;
  display:flex;
  flex-direction:column;
  gap:6px;
  padding:12px 14px;
  border:1px solid #cbdbea;
  border-radius:14px;
  background:linear-gradient(145deg,#f8fbff,#eef5fc);
}
.user-account-domain-policy>strong{
  color:#173f69;
  font-size:11px;
  font-weight:850;
}
.user-account-domain-policy>small{
  color:#6a8096;
  font-size:10px;
  line-height:1.45;
}
.user-account-domain-chips{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
.user-account-domain-chips>span{
  display:inline-flex;
  align-items:center;
  min-height:27px;
  padding:4px 8px;
  border:1px solid #c9dbec;
  border-radius:999px;
  background:#fff;
  color:#275b91;
  font-size:9px;
  font-weight:800;
}
html[data-theme="dark"] .user-account-domain-policy{
  border-color:#314b64;
  background:linear-gradient(145deg,#102136,#0c1929);
}
html[data-theme="dark"] .user-account-domain-policy>strong{color:#eaf5ff}
html[data-theme="dark"] .user-account-domain-policy>small{color:#a6bdd4}
html[data-theme="dark"] .user-account-domain-chips>span{
  border-color:#375674;
  background:#132942;
  color:#bcdcff;
}


/* R115 — global premium offline / connectivity guard */
.offline-connectivity-dialog{
  position:relative;
  width:min(520px,calc(100vw - 28px));
  padding:0;
  overflow:hidden;
  border:1px solid rgba(224,182,96,.62);
  border-radius:26px;
  background:linear-gradient(180deg,#fffefb 0%,#fffaf0 100%);
  box-shadow:0 36px 110px rgba(25,39,58,.28);
  color:#17324d;
}
.offline-connectivity-dialog::backdrop{
  background:rgba(5,18,34,.58);
  backdrop-filter:blur(10px) saturate(.9);
}
.offline-connectivity-glow{
  position:absolute;
  inset:-80px -110px auto auto;
  width:270px;
  height:270px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(240,178,47,.24) 0%,rgba(240,178,47,0) 69%);
  pointer-events:none;
}
.offline-connectivity-icon{
  position:relative;
  width:68px;
  height:68px;
  margin:28px 28px 0;
  display:grid;
  place-items:center;
  border:1px solid #edc46b;
  border-radius:20px;
  background:linear-gradient(145deg,#fff7df,#f6d77f);
  box-shadow:0 13px 30px rgba(152,100,13,.15);
}
.offline-connectivity-icon svg{
  width:38px;
  height:38px;
  fill:none;
  stroke:#9a6409;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.offline-connectivity-icon .offline-connectivity-slash{
  stroke:#c13c2d;
  stroke-width:2.2;
}
.offline-connectivity-copy{
  position:relative;
  padding:20px 28px 0;
}
.offline-connectivity-kicker{
  display:block;
  margin-bottom:7px;
  color:#9a6409;
  font-size:10px;
  font-weight:900;
  letter-spacing:.11em;
}
.offline-connectivity-copy h2{
  margin:0;
  color:#163754;
  font-size:25px;
  line-height:1.16;
  letter-spacing:-.55px;
}
.offline-connectivity-copy p{
  margin:12px 0 0;
  color:#61758a;
  font-size:12px;
  line-height:1.7;
}
.offline-connectivity-hint{
  display:flex;
  align-items:flex-start;
  gap:9px;
  margin-top:17px;
  padding:12px 13px;
  border:1px solid #eddcae;
  border-radius:14px;
  background:rgba(255,248,224,.78);
  color:#7a6645;
  font-size:10px;
  line-height:1.55;
}
.offline-connectivity-status-dot{
  width:8px;
  height:8px;
  flex:0 0 8px;
  margin-top:4px;
  border-radius:50%;
  background:#d38b17;
  box-shadow:0 0 0 4px rgba(211,139,23,.12);
}
.offline-connectivity-actions{
  position:relative;
  display:flex;
  justify-content:flex-end;
  padding:22px 28px 28px;
}
.offline-connectivity-retry{
  min-width:172px;
  min-height:43px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}
.offline-connectivity-retry-spinner{
  display:none;
  width:15px;
  height:15px;
  border:2px solid rgba(255,255,255,.42);
  border-top-color:#fff;
  border-radius:50%;
}
.offline-connectivity-dialog.is-checking .offline-connectivity-retry-spinner{
  display:inline-block;
  animation:offline-connectivity-spin .75s linear infinite;
}
@keyframes offline-connectivity-spin{to{transform:rotate(360deg)}}
html.portal-connectivity-offline,
html.portal-connectivity-offline body{
  overflow:hidden!important;
}
html[data-theme="dark"] .offline-connectivity-dialog{
  border-color:#70552b;
  background:linear-gradient(180deg,#182231 0%,#111a26 100%);
  color:#edf5fd;
  box-shadow:0 38px 120px rgba(0,0,0,.56);
}
html[data-theme="dark"] .offline-connectivity-glow{
  background:radial-gradient(circle,rgba(219,157,42,.17) 0%,rgba(219,157,42,0) 70%);
}
html[data-theme="dark"] .offline-connectivity-icon{
  border-color:#735b2f;
  background:linear-gradient(145deg,#322b1c,#45371e);
  box-shadow:0 13px 30px rgba(0,0,0,.25);
}
html[data-theme="dark"] .offline-connectivity-icon svg{stroke:#f1c76d}
html[data-theme="dark"] .offline-connectivity-icon .offline-connectivity-slash{stroke:#ff7e70}
html[data-theme="dark"] .offline-connectivity-kicker{color:#f1c76d}
html[data-theme="dark"] .offline-connectivity-copy h2{color:#f5f9fd}
html[data-theme="dark"] .offline-connectivity-copy p{color:#afc1d2}
html[data-theme="dark"] .offline-connectivity-hint{
  border-color:#594a2d;
  background:rgba(71,56,28,.48);
  color:#d5c39c;
}
html[data-theme="dark"] .offline-connectivity-status-dot{
  background:#e4ad48;
  box-shadow:0 0 0 4px rgba(228,173,72,.11);
}
@media (max-width:600px){
  .offline-connectivity-dialog{
    width:min(100% - 20px,460px);
    border-radius:22px;
  }
  .offline-connectivity-icon{margin:22px 22px 0;width:60px;height:60px;border-radius:18px}
  .offline-connectivity-icon svg{width:34px;height:34px}
  .offline-connectivity-copy{padding:17px 22px 0}
  .offline-connectivity-copy h2{font-size:22px}
  .offline-connectivity-copy p{font-size:11px}
  .offline-connectivity-actions{padding:18px 22px 22px}
  .offline-connectivity-retry{width:100%}
}
@media (max-width:380px){
  .offline-connectivity-dialog{width:calc(100% - 14px);border-radius:19px}
  .offline-connectivity-icon{margin:18px 18px 0}
  .offline-connectivity-copy{padding:15px 18px 0}
  .offline-connectivity-copy h2{font-size:20px}
  .offline-connectivity-hint{font-size:9px}
  .offline-connectivity-actions{padding:16px 18px 18px}
}


/* R115 — user-requested three-part mobile polish: centered offline dialog, larger mobile brand, premium notifications action */
.offline-connectivity-dialog{
  position:fixed!important;
  top:50%!important;
  left:50%!important;
  right:auto!important;
  bottom:auto!important;
  margin:0!important;
  transform:translate(-50%,-50%)!important;
  max-height:calc(100dvh - 24px)!important;
  overflow:auto!important;
}

.portal-notification-head [data-portal-notification-mark-all]{
  min-height:34px;
  padding:8px 12px!important;
  border:1px solid #c5daf0!important;
  border-radius:999px!important;
  background:linear-gradient(145deg,#ffffff,#eaf4ff)!important;
  color:#1e5f9f!important;
  box-shadow:0 7px 18px rgba(30,95,159,.12),inset 0 1px 0 rgba(255,255,255,.9)!important;
  font-size:9px!important;
  font-weight:900!important;
  line-height:1.25!important;
  letter-spacing:.01em;
  text-align:center;
  white-space:normal;
  transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease,background .16s ease!important;
}
.portal-notification-head [data-portal-notification-mark-all]:hover{
  border-color:#9fc4ea!important;
  background:linear-gradient(145deg,#ffffff,#dfeeff)!important;
  box-shadow:0 9px 22px rgba(30,95,159,.16),inset 0 1px 0 rgba(255,255,255,.95)!important;
  transform:translateY(-1px);
}
.portal-notification-head [data-portal-notification-mark-all]:active{
  transform:translateY(0);
}
html[data-theme="dark"] .portal-notification-head [data-portal-notification-mark-all]{
  border-color:#385978!important;
  background:linear-gradient(145deg,#17314b,#10243a)!important;
  color:#b9d9ff!important;
  box-shadow:0 8px 20px rgba(0,0,0,.25),inset 0 1px 0 rgba(255,255,255,.04)!important;
}
html[data-theme="dark"] .portal-notification-head [data-portal-notification-mark-all]:hover{
  border-color:#4f77a0!important;
  background:linear-gradient(145deg,#1b3b5c,#132d48)!important;
  color:#d8eaff!important;
  box-shadow:0 10px 24px rgba(0,0,0,.30),0 0 0 2px rgba(81,143,207,.08)!important;
}

@media(max-width:650px){
  .mobile-topbar-brand{
    padding:4px 5px!important;
  }
  .mobile-topbar-wordmark{
    max-width:96px!important;
    max-height:34px!important;
  }
  .portal-notification-head{
    align-items:flex-start;
  }
  .portal-notification-head [data-portal-notification-mark-all]{
    flex:0 1 190px;
    max-width:190px;
  }
  .offline-connectivity-dialog{
    max-height:calc(100dvh - 20px)!important;
  }
}
@media(max-width:390px){
  .mobile-topbar-brand{
    padding:3px 4px!important;
  }
  .mobile-topbar-wordmark{
    max-width:82px!important;
    max-height:31px!important;
  }
  .portal-notification-head{
    gap:8px;
    padding:13px 12px;
  }
  .portal-notification-head [data-portal-notification-mark-all]{
    flex:0 1 168px;
    max-width:168px;
    padding:7px 9px!important;
    font-size:8.5px!important;
  }
  .offline-connectivity-dialog{
    max-height:calc(100dvh - 14px)!important;
  }
}


/* R115 — final mobile wordmark fill inside existing frame */
@media(max-width:650px){
  .mobile-topbar-brand{padding:2px 4px!important}
  .mobile-topbar-wordmark{
    max-width:100px!important;
    max-height:38px!important;
    transform:scale(1.05)!important;
    transform-origin:center!important;
  }
}
@media(max-width:390px){
  .mobile-topbar-brand{padding:1px 3px!important}
  .mobile-topbar-wordmark{
    max-width:84px!important;
    max-height:36px!important;
    transform:scale(1.05)!important;
  }
}


/* R115 — definitive mobile wordmark override above legacy .mobile-topbar-brand img */
@media(max-width:650px){
  .mobile-topbar-brand .mobile-topbar-wordmark{
    width:auto!important;
    height:38px!important;
    max-width:100px!important;
    max-height:38px!important;
    border-radius:0!important;
    object-fit:contain!important;
    transform:scale(1.05)!important;
    transform-origin:center!important;
  }
}
@media(max-width:390px){
  .mobile-topbar-brand .mobile-topbar-wordmark{
    width:auto!important;
    height:36px!important;
    max-width:84px!important;
    max-height:36px!important;
  }
}


/* R115 — final mobile wordmark: single correct theme asset, no crop */
@media(max-width:650px){
  .mobile-topbar-brand .mobile-topbar-wordmark{
    width:auto!important;
    height:38px!important;
    max-width:88px!important;
    max-height:38px!important;
    object-fit:contain!important;
    transform:none!important;
    border-radius:0!important;
  }
  .mobile-topbar-brand .mobile-topbar-wordmark-light{display:block!important}
  .mobile-topbar-brand .mobile-topbar-wordmark-dark{display:none!important}
  html[data-theme="dark"] .mobile-topbar-brand .mobile-topbar-wordmark-light{display:none!important}
  html[data-theme="dark"] .mobile-topbar-brand .mobile-topbar-wordmark-dark{display:block!important}
}
@media(max-width:390px){
  .mobile-topbar-brand .mobile-topbar-wordmark{
    width:auto!important;
    height:36px!important;
    max-width:78px!important;
    max-height:36px!important;
    transform:none!important;
  }
}


/* R115 — light mobile wordmark seamless white background */
@media(max-width:650px){
  html:not([data-theme="dark"]) .mobile-topbar-brand{
    background:#fff!important;
  }
}


/* R116 — full QA dark-theme refinement + users table containment — 2026-10-08 */
.users-table-card{
  min-width:0!important;
  max-width:100%!important;
  overflow:hidden!important;
}
.users-table-card .table-wrap{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  overflow-x:auto!important;
  overscroll-behavior-x:contain;
}
.users-table{
  width:100%!important;
  max-width:100%!important;
}
html[data-theme="dark"] .workspace-main label>span{
  color:var(--x-ink-650)!important;
}
html[data-theme="dark"] :where(.person-cell,.device-cell,.mail-cell){
  color:#8fbfff!important;
}
html[data-theme="dark"] .mail-owner.confirmed{
  border:1px solid rgba(95,211,164,.26)!important;
  background:var(--x-success-soft)!important;
  color:#8de0b8!important;
}
html[data-theme="dark"] .mail-owner.suggested{
  border:1px solid rgba(221,171,79,.28)!important;
  background:var(--x-warning-soft)!important;
  color:#f0c778!important;
}
html[data-theme="dark"] :where(.audit-action-pill,.audit-type-pill,.line-chip){
  border:1px solid var(--x-line)!important;
  background:var(--x-surface-raised)!important;
  color:var(--x-ink-650)!important;
}
html[data-theme="dark"] .status-active{
  border-color:rgba(95,211,164,.28)!important;
  background:var(--x-success-soft)!important;
  color:#8de0b8!important;
}
html[data-theme="dark"] :where(.status-review,.role-external_it){
  border-color:rgba(221,171,79,.30)!important;
  background:var(--x-warning-soft)!important;
  color:#f0c778!important;
}
html[data-theme="dark"] .status-inactive{
  border-color:var(--x-line)!important;
  background:#152235!important;
  color:#afbed0!important;
}
html[data-theme="dark"] .role-pill{
  border:1px solid var(--x-line)!important;
  background:#14243a!important;
  color:#bdd2ee!important;
}
html[data-theme="dark"] .role-admin{
  border-color:#4a3a72!important;
  background:#261f3d!important;
  color:#d1c2ff!important;
}
html[data-theme="dark"] .role-executive{
  border-color:#31598a!important;
  background:#102b50!important;
  color:#a8caff!important;
}
html[data-theme="dark"] .role-external_it{
  border-color:rgba(221,171,79,.30)!important;
  background:var(--x-warning-soft)!important;
  color:#f0c778!important;
}
html[data-theme="dark"] :where(.role-employee,.role-readonly,.two-factor-pill){
  border-color:var(--x-line)!important;
  background:#152235!important;
  color:#b7c6d8!important;
}
html[data-theme="dark"] .two-factor-pill.enabled{
  border-color:rgba(95,211,164,.28)!important;
  background:var(--x-success-soft)!important;
  color:#8de0b8!important;
}
html[data-theme="dark"] .device-count-chip{
  border-color:var(--x-line)!important;
  background:#152235!important;
  color:#b7c6d8!important;
}
html[data-theme="dark"] .install-cta.install-ready{
  border-color:#34506d!important;
  background:linear-gradient(180deg,#182a40,#112033)!important;
  color:#dce9f8!important;
  box-shadow:0 8px 20px rgba(0,0,0,.20)!important;
}
html[data-theme="dark"] .employee-delete-policy-message.is-blocked{
  border-color:#693139!important;
  background:var(--x-danger-soft)!important;
  color:#efb6bb!important;
}
html[data-theme="dark"] .me-info-strip{
  border-color:#294d76!important;
  background:#102b50!important;
  color:#c5daf4!important;
}
html[data-theme="dark"] .support-new-button{
  border-color:var(--x-line-strong)!important;
  background:var(--x-surface-raised)!important;
  color:#9ec4fb!important;
  box-shadow:0 8px 20px rgba(0,0,0,.18)!important;
}

/* R116.1 — users table owns horizontal scrolling */
.users-table-card{
  overflow-x:auto!important;
  overflow-y:hidden!important;
  overscroll-behavior-x:contain!important;
}


/* R116.2 — employee device card dark parity */
html[data-theme="dark"] .me-device-card{
  border-color:var(--x-line)!important;
  background:linear-gradient(145deg,var(--x-surface-raised),var(--x-surface))!important;
  box-shadow:0 12px 28px rgba(0,0,0,.16)!important;
}
html[data-theme="dark"] .me-device-top strong{
  color:var(--x-ink-950)!important;
}
html[data-theme="dark"] .me-device-top small{
  color:var(--x-ink-500)!important;
}
html[data-theme="dark"] .me-device-specs>div{
  border:1px solid var(--x-line-soft)!important;
  background:#101d2e!important;
}
html[data-theme="dark"] .me-device-specs span{
  color:var(--x-ink-500)!important;
}
html[data-theme="dark"] .me-device-specs b{
  color:var(--x-ink-800)!important;
}
html[data-theme="dark"] .me-credentials{
  border-top-color:var(--x-line)!important;
}
html[data-theme="dark"] .me-credentials-title>span{
  border:1px solid #443665!important;
  background:#241d3c!important;
  color:#c9b8ff!important;
}
html[data-theme="dark"] .me-credentials-title strong{
  color:#d7ccf5!important;
}
html[data-theme="dark"] .me-credential-row>span{
  color:var(--x-ink-650)!important;
}


/* R116.3 — final dark-theme QA refinements — 2026-10-08 */
html[data-theme="dark"] .accounting-sync-state.is-offline{
  border-color:#34495f!important;
  background:linear-gradient(145deg,#132235,#101d2d)!important;
  color:#b8c8d8!important;
  box-shadow:0 5px 14px rgba(0,0,0,.16)!important;
}
html[data-theme="dark"] .install-cta,
html[data-theme="dark"] .install-cta.install-ready{
  border-color:#3a526a!important;
  background:linear-gradient(180deg,#182a40,#112033)!important;
  color:#dce9f8!important;
  box-shadow:0 8px 20px rgba(0,0,0,.20)!important;
}
html[data-theme="dark"] .danger-soft{
  border-color:#67343c!important;
  background:#311b21!important;
  color:#f0b8bf!important;
}


/* R116.4 — final contrast refinements — 2026-10-08 */
html[data-theme="dark"] .profile-avatar{
  border-color:#36546f!important;
  background:linear-gradient(145deg,#17304a,#10243a)!important;
  color:#9fc9f4!important;
  box-shadow:0 7px 18px rgba(0,0,0,.18)!important;
}
html[data-theme="dark"] .approvals-empty>span{
  border:1px solid rgba(95,211,164,.24)!important;
  background:#123a2b!important;
  color:#8de0b8!important;
}


/* R116.5 — scoped dark form-label contrast — 2026-10-08 */
html[data-theme="dark"] :where(
  .account-form label,
  .profile-change-form label,
  .support-field,
  .vehicle-intake-native label
){
  color:#afbed0!important;
}


/* R116.6 — department management dark controls — 2026-10-08 */
html[data-theme="dark"] body.app-authenticated .org-management .org-location-quick-form select,
html[data-theme="dark"] body.app-authenticated .org-management .admin-delete-zone select{
  border-color:var(--x-line-strong)!important;
  background:#0a1524!important;
  color:var(--x-ink-950)!important;
}
html[data-theme="dark"] body.app-authenticated .org-management .org-location-quick-form select option,
html[data-theme="dark"] body.app-authenticated .org-management .admin-delete-zone select option{
  background:#0d1827!important;
  color:#eaf2fc!important;
}
html[data-theme="dark"] body.app-authenticated .org-management .org-status-form .danger-soft{
  border-color:#67343c!important;
  background:#311b21!important;
  color:#f0b8bf!important;
}


/* R116.7 — theme switch dark-label contrast — 2026-10-08 */
html[data-theme="dark"] .theme-switch-label-dark{
  color:#9fc9f4!important;
}

/* R121 — employee profile 3x4 grid, notes/save same height, protected VAT */
.employee-main-edit-form{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:14px 14px!important;
  align-items:stretch!important;
}
.employee-main-edit-form>.detail-edit-notes{grid-column:span 2!important;}
.employee-main-edit-form>.detail-edit-notes textarea{
  height:96px!important;
  min-height:96px!important;
  resize:none!important;
}
.employee-main-edit-form>.detail-edit-submit{
  height:96px!important;
  min-height:96px!important;
  align-self:end!important;
}
.employee-main-edit-form .employee-vat-field input:disabled{
  background:#e5ebf1!important;
  border-color:#c8d2dd!important;
  color:#68788a!important;
  opacity:1!important;
  cursor:not-allowed!important;
}
html[data-theme="dark"] .employee-main-edit-form .employee-vat-field input:disabled{
  background:#253244!important;
  border-color:#425268!important;
  color:#a2b0c1!important;
}
/* R121 — qualifier beside phone labels, with clear visual separation. */
.manual-identity-grid label em{
  display:inline!important;
  margin-inline-start:10px!important;
  font-size:10px!important;
  white-space:nowrap!important;
  font-weight:650!important;
  color:#788da3!important;
}
html[data-theme="dark"] .manual-identity-grid label em{color:#a8b8c8!important;}
@media(max-width:760px){
  .employee-main-edit-form{grid-template-columns:1fr!important;}
  .employee-main-edit-form>.detail-edit-notes{grid-column:auto!important;}
  .employee-main-edit-form>.detail-edit-submit{width:100%!important;}
}

/* R122 item 1: two visible notes lines, save button same exact 64px height. */
.employee-main-edit-form>.detail-edit-notes textarea{
  box-sizing:border-box!important;
  height:64px!important;min-height:64px!important;max-height:64px!important;
  resize:none!important;overflow-y:auto!important;
}
.employee-main-edit-form>.detail-edit-submit{
  box-sizing:border-box!important;
  height:64px!important;min-height:64px!important;max-height:64px!important;
  align-self:end!important;
}

/* R122 item 2: phone title + optional qualifier separated by actual flex gap. */
.manual-identity-grid label>.manual-phone-label{
  display:flex!important;flex-direction:row!important;align-items:center!important;
  flex-wrap:nowrap!important;justify-content:flex-start!important;
  column-gap:13px!important;min-width:0!important;
}
.manual-identity-grid .manual-phone-label>.manual-phone-label-title{
  display:inline!important;flex:0 1 auto!important;min-width:0!important;
}
.manual-identity-grid .manual-phone-label>em{
  display:inline-block!important;flex:0 0 auto!important;
  margin:0!important;padding:0!important;
  font-size:10px!important;font-weight:650!important;font-style:normal!important;
  color:#7d90a5!important;white-space:nowrap!important;
}
html[data-theme="dark"] .manual-identity-grid .manual-phone-label>em{
  color:#a6b7c9!important;
}

/* R122 item 3: desktop header search must never flex-shrink on focus or typing. */
@media(min-width:901px){
  .topbar .global-search,
  .topbar .global-search:focus-within{
    flex:0 0 min(580px,35vw)!important;
    width:min(580px,35vw)!important;
    min-width:0!important;max-width:min(580px,35vw)!important;
    box-sizing:border-box!important;
  }
  .topbar .global-search input,
  .topbar .global-search input:focus,
  .topbar .global-search input:focus-visible{
    flex:1 1 0!important;
    width:0!important;min-width:0!important;
    box-sizing:border-box!important;
    border-width:0!important;outline:0!important;
    padding-left:0!important;padding-right:0!important;
    box-shadow:none!important;
  }
  .topbar .global-search-submit{flex-shrink:0!important;}
}


/* R135 — premium external BACKUP import from end user's browser (OFFLINE + LIVE) */
.backup-external-card{
  position:relative;margin:0 0 19px;padding:24px;
  border:1px solid #bed7f0;border-radius:24px;
  background:linear-gradient(140deg,#fff 0%,#f6faff 62%,#eef5ff 100%);
  box-shadow:0 16px 38px rgba(24,67,127,.08);
}
.backup-external-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:20px}
.backup-external-heading h2{font-size:22px;margin:5px 0 8px;color:#173959}
.backup-external-heading p{margin:0;max-width:780px;color:#617d99;font-size:13px;line-height:1.65}
.backup-external-icon{display:grid;place-items:center;flex:0 0 58px;width:58px;height:58px;border-radius:17px;background:#dcecff;color:#176bcc;font-size:27px}
.backup-external-upload-form{display:grid;gap:15px}
.backup-external-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.backup-external-file{
  min-width:0;display:flex;flex-direction:column;gap:9px;
  padding:17px;border:1px dashed #9ebedf;border-radius:17px;
  background:rgba(255,255,255,.72)
}
.backup-external-file>span{color:#194d80;font-weight:850;font-size:12px}
.backup-external-file input[type=file]{
  width:100%;min-width:0;padding:11px;cursor:pointer;
  border:1px solid #d4e3f0;border-radius:10px;background:#fff;
  color:#344e69;font-size:12px
}
.backup-external-file input::file-selector-button{
  border:0;border-radius:8px;padding:9px 12px;margin-right:10px;
  background:#e1eeff;color:#1666c2;font-weight:800;cursor:pointer
}
.backup-external-file small{color:#6c839b;font-size:11px}
.backup-external-upload-actions{display:flex;align-items:center;justify-content:space-between;gap:16px}
.backup-external-upload-actions p{margin:0;max-width:640px;color:#597692;font-size:12px}
.backup-external-upload-actions button{min-height:44px;border-radius:12px;font-weight:850}
.backup-external-ready{margin-top:20px;padding:20px;border:1px solid #b8dfce;border-radius:20px;background:rgba(240,252,247,.92)}
.backup-external-ready-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap}
.backup-external-ready-heading h3{margin:6px 0 0;font-size:17px;overflow-wrap:anywhere}
.backup-external-status{color:#117b54;font-size:11px;font-weight:900}
.backup-external-size{color:#536e83;font-weight:850}
.backup-external-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:16px 0}
.backup-external-meta>div{display:flex;flex-direction:column;gap:6px;padding:12px;border:1px solid #d6e7e1;background:#fff;border-radius:12px;min-width:0}
.backup-external-meta span{font-size:10px;color:#648094;font-weight:850}
.backup-external-meta strong,.backup-external-meta code{color:#234762;font-size:11px;overflow-wrap:anywhere;word-break:break-word}
.backup-external-ready-actions{display:flex;align-items:flex-start;flex-wrap:wrap;gap:12px}
.backup-external-ready-actions>a{min-height:43px;display:inline-flex;align-items:center;justify-content:center;padding:10px 20px;text-decoration:none}
.backup-external-restore-confirm{flex:1 1 270px;min-width:0}
.backup-external-restore-confirm>summary{
  cursor:pointer;list-style:none;display:inline-flex;align-items:center;justify-content:center;
  min-height:43px;padding:11px 22px;border-radius:12px;
  background:linear-gradient(135deg,#bc3b39,#dd514c);color:white;font-weight:850;font-size:13px
}
.backup-external-restore-confirm>summary::-webkit-details-marker{display:none}
.backup-external-restore-body{margin-top:12px;padding:17px;border:1px solid #e5b7b2;border-radius:15px;background:#fff9f8}
.backup-external-restore-body>strong{color:#973b35}
.backup-external-restore-body p{font-size:12px;color:#805e60;line-height:1.6}
.backup-external-restore-body form{display:flex;flex-direction:column;gap:11px;max-width:530px}
.backup-external-restore-body form>label:not(.backup-external-ack){display:flex;flex-direction:column;gap:6px;color:#774c47;font-size:12px;font-weight:800}
.backup-external-restore-body form>label input:not([type=checkbox]){width:100%;min-height:43px;border:1px solid #debcb7;border-radius:10px;padding:10px 12px;background:#fff;color:#382b2a}
.backup-external-ack{display:flex;gap:9px;align-items:center;color:#684b49;font-size:12px}
.backup-external-warning{font-size:11px;color:#a0443d}
.backup-external-danger{align-self:flex-start;padding:12px 19px;border:0;border-radius:11px;background:#b83335;color:white;font-size:12px;font-weight:850;cursor:pointer}
html[data-theme="dark"] .backup-external-card{
  border-color:#335774;background:linear-gradient(135deg,#13253c,#0c1b2c);
  box-shadow:0 15px 36px rgba(0,0,0,.2)
}
html[data-theme="dark"] .backup-external-heading h2{color:#e9f3ff}
html[data-theme="dark"] .backup-external-heading p,
html[data-theme="dark"] .backup-external-upload-actions p{color:#a2bad1}
html[data-theme="dark"] .backup-external-file{background:#12253b;border-color:#466686}
html[data-theme="dark"] .backup-external-file>span{color:#c7ddf5}
html[data-theme="dark"] .backup-external-file input[type=file]{background:#102137;color:#dcecff;border-color:#44627f}
html[data-theme="dark"] .backup-external-ready{background:#102b27;border-color:#30634e}
html[data-theme="dark"] .backup-external-ready-heading h3{color:#e5fff4}
html[data-theme="dark"] .backup-external-meta>div{background:#122d30;border-color:#345a54}
html[data-theme="dark"] .backup-external-meta strong,
html[data-theme="dark"] .backup-external-meta code{color:#d5ebe8}
html[data-theme="dark"] .backup-external-restore-body{background:#2c1c22;border-color:#66404c}
html[data-theme="dark"] .backup-external-restore-body>strong{color:#ffa5a5}
html[data-theme="dark"] .backup-external-restore-body p{color:#dbbac0}
@media(max-width:760px){
  .backup-external-card{padding:16px;border-radius:18px}
  .backup-external-fields,.backup-external-meta{grid-template-columns:1fr}
  .backup-external-upload-actions{flex-direction:column;align-items:stretch}
  .backup-external-upload-actions button,.backup-external-ready-actions>a,
  .backup-external-restore-confirm>summary{width:100%}
  .backup-external-icon{flex-basis:42px;width:42px;height:42px;font-size:22px}
}

/* R143: single user-device backup file picker; manifest file selector removed. */
.backup-external-upload-form>.backup-external-fields{
  grid-template-columns:minmax(0,1fr)!important;
  max-width:920px;
}

/* R144 — simplified RESTORE preview: two balanced metadata cells. */
@media(min-width:761px){
  .backup-external-card .backup-external-meta-compact{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
@media(max-width:760px){
  .backup-external-card .backup-external-meta-compact{
    grid-template-columns:minmax(0,1fr)!important;
  }
}


/* R145 — premium full-screen feedback and live backup/restore progress. */
.backup-feedback-overlay{
  position:fixed;inset:0;z-index:14500;
  display:grid;place-items:center;
  padding:20px;background:rgba(9,25,48,.62);
  backdrop-filter:blur(9px);
}
.backup-feedback-modal{
  width:min(100%,530px);padding:32px;
  background:linear-gradient(140deg,#fff,#f4f8ff);
  border:1px solid #d6e6f5;border-radius:25px;
  box-shadow:0 30px 90px rgba(0,18,44,.28);
  text-align:center;display:grid;justify-items:center;gap:11px
}
.backup-feedback-modal h2{font-size:23px;color:#163454;margin:2px 0}
.backup-feedback-modal p{color:#536c86;margin:0;line-height:1.7;font-size:14px}
.backup-feedback-modal .backup-feedback-note{font-size:11px;color:#7c8ea1}
.backup-feedback-icon{
  width:66px;height:66px;border-radius:21px;display:grid;place-items:center;
  background:#fff0ee;color:#b6403c;border:1px solid #f2cfcb;
  font-size:35px;font-weight:900;
}
.backup-feedback-modal>a{margin-top:12px;padding:13px 24px;border-radius:12px;text-decoration:none}
.backup-progress-page{max-width:1050px;margin:0 auto 45px;display:grid;gap:21px}
.backup-progress-hero{
  position:relative;overflow:hidden;padding:29px 35px;
  border-radius:24px;background:linear-gradient(120deg,#092445,#153d72);
  color:#fff;box-shadow:0 18px 45px rgba(14,47,92,.14)
}
.backup-progress-hero .panel-kicker{color:#a9d2ff}
.backup-progress-hero h1{font-size:30px;line-height:1.2;margin:10px 0;color:#fff}
.backup-progress-hero p{max-width:740px;color:#ccdcf4;font-size:13px;line-height:1.7}
.backup-progress-icon{position:absolute;right:30px;top:27px;font-size:45px;color:#91bcef;opacity:.75}
.backup-progress-panel{
  padding:28px 32px;border:1px solid #d5e6f7;
  border-radius:24px;background:linear-gradient(150deg,#fff,#f7fbff);
  box-shadow:0 16px 36px rgba(25,68,122,.065)
}
.backup-progress-header{display:flex;align-items:center;justify-content:space-between;gap:20px}
.backup-progress-stage-label{color:#3174c6;font-size:11px;font-weight:900;text-transform:uppercase}
.backup-progress-header h2{font-size:21px;margin:8px 0;color:#193f6b}
#backupProgressValue{color:#216dd1;font-size:37px;font-weight:950;font-variant-numeric:tabular-nums}
.backup-progress-bar{width:100%;height:13px;background:#dae8f8;border-radius:20px;overflow:hidden;margin-top:19px}
#backupProgressFill{
  width:0;height:100%;
  background:linear-gradient(90deg,#2675e3,#35baae);
  border-radius:20px;transition:width .35s ease
}
.backup-progress-help{margin:14px 0 11px;color:#55748f;font-size:14px}
.backup-progress-timing{display:flex;justify-content:space-between;gap:10px;margin:7px 0 22px;font-size:12px;color:#7088a1}
.backup-progress-timing strong{color:#284f7f;font-variant-numeric:tabular-nums}
.backup-progress-steps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}
.backup-progress-step{
  display:flex;align-items:flex-start;gap:8px;min-width:0;
  padding:13px 10px;border:1px solid #dbe7f4;border-radius:13px;
  color:#889ab1;font-size:11px;font-weight:750
}
.backup-progress-step-marker{
  display:grid;place-items:center;flex:0 0 24px;height:24px;
  border-radius:50%;border:1px solid #bfd2e5;background:#f1f6ff;color:#7390b0
}
.backup-progress-step.is-complete{border-color:#c3e4d7;color:#217b59;background:#f0fbf5}
.backup-progress-step.is-complete .backup-progress-step-marker{background:#188760;border-color:#188760;color:#fff}
.backup-progress-step.is-active{border-color:#93b8ed;background:#edf6ff;color:#1d64ad}
.backup-progress-step.is-active .backup-progress-step-marker{background:#256bd2;border-color:#256bd2;color:#fff}
.backup-progress-note{font-size:11px;color:#7791ad;margin:21px 0 0}
.backup-progress-return{justify-self:start;text-decoration:none;padding:11px 19px;border-radius:11px}
.backup-progress-result-dialog{
  width:min(92vw,535px);padding:34px;
  border:1px solid #d8e5f2;border-radius:25px;
  background:linear-gradient(160deg,#fff,#f4f9ff);
  box-shadow:0 25px 100px rgba(0,20,48,.3);
  text-align:center;color:#17365a
}
.backup-progress-result-dialog::backdrop{background:rgba(5,17,35,.73);backdrop-filter:blur(8px)}
.backup-progress-result-icon{
  width:75px;height:75px;display:grid;place-items:center;margin:0 auto 17px;
  font-size:38px;font-weight:850;border-radius:24px;background:#e8f6ed;color:#178653
}
.backup-progress-result-dialog.backup-result-error .backup-progress-result-icon{background:#fdeceb;color:#bb4640}
.backup-progress-result-dialog h2{font-size:25px;margin:0 0 12px}
.backup-progress-result-dialog p{font-size:14px;line-height:1.7;color:#657d98}
.backup-progress-result-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:11px;margin-top:23px}
.backup-progress-result-actions>a{min-width:170px;text-decoration:none;padding:12px 18px}
html[data-theme="dark"] .backup-feedback-modal,
html[data-theme="dark"] .backup-progress-panel,
html[data-theme="dark"] .backup-progress-result-dialog{background:linear-gradient(140deg,#10243c,#0b1a2c);border-color:#3c5977}
html[data-theme="dark"] .backup-feedback-modal h2,
html[data-theme="dark"] .backup-progress-header h2,
html[data-theme="dark"] .backup-progress-result-dialog h2{color:#e1f0ff}
html[data-theme="dark"] .backup-feedback-modal p,
html[data-theme="dark"] .backup-progress-help,
html[data-theme="dark"] .backup-progress-result-dialog p{color:#aec2d7}
html[data-theme="dark"] .backup-progress-step{background:#172b43;border-color:#314d68;color:#a9bed2}
html[data-theme="dark"] .backup-progress-step.is-active{background:#173c67;border-color:#4885c6;color:#e4f1ff}
html[data-theme="dark"] .backup-progress-step.is-complete{background:#12372e;border-color:#377359;color:#bcf0d7}
@media(max-width:760px){
  .backup-progress-hero{padding:23px 19px}
  .backup-progress-hero h1{font-size:24px}
  .backup-progress-panel{padding:18px}
  .backup-progress-steps{grid-template-columns:1fr}
  .backup-progress-header h2{font-size:17px}
  #backupProgressValue{font-size:29px}
  .backup-progress-result-dialog{padding:22px}
  .backup-feedback-modal{padding:22px}
}

/* R146 dedicated RESTORE rejection result; does not require any DB state. */
.backup-result-page .backup-result-panel{
  width:min(100%,680px);
  justify-self:center;
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:13px;
  padding:32px;
}
.backup-result-page .backup-result-panel h2{
  margin:0;
  font-size:25px;
  color:#193d61;
}
.backup-result-error-icon{
  display:grid;
  place-items:center;
  width:76px;
  height:76px;
  border-radius:24px;
  color:#b83d3a;
  background:#ffedeb;
  border:1px solid #f4c9c4;
  font-size:42px;
  font-weight:900;
}
.backup-result-description{font-size:15px;color:#536c84;line-height:1.7;margin:0}
.backup-result-action{padding:13px 24px;margin-top:14px;text-decoration:none;border-radius:12px}
html[data-theme="dark"] .backup-result-page .backup-result-panel h2{color:#e2f0ff}
html[data-theme="dark"] .backup-result-description{color:#b1c4d8}
.backup-external-ready[hidden]{display:none!important}
@media(max-width:760px){
  .backup-result-page .backup-result-panel{padding:21px}
  .backup-result-page .backup-result-panel h2{font-size:21px}
}


/* R148 — real browser upload progress for user-selected .db, light/dark/mobile. */
.backup-upload-live-progress {
  margin-top:16px;
  padding:17px 19px;
  border:1px solid #bcd9f5;
  border-radius:16px;
  background:linear-gradient(125deg,#fff,#edf6ff);
  box-shadow:0 8px 24px rgba(17,81,152,.065)
}
.backup-upload-live-progress[hidden]{display:none!important}
.backup-upload-live-header{
  display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px
}
.backup-upload-live-header strong{color:#194d83;font-size:13px;font-weight:900}
.backup-upload-live-header span{font-variant-numeric:tabular-nums;font-size:15px;font-weight:900;color:#236cc1}
.backup-upload-live-track{width:100%;height:13px;background:#d9e9fa;border-radius:40px;overflow:hidden}
.backup-upload-live-fill{
  width:0%;height:100%;border-radius:40px;
  background:linear-gradient(90deg,#2470d2 0%,#298fe9 65%,#40b7bf 100%);
  transition:width 160ms ease
}
.backup-upload-live-progress p{margin:11px 0 0;font-size:12px;color:#627e99;line-height:1.65}
.backup-upload-live-progress.is-checking .backup-upload-live-fill{
  width:100%!important;background:repeating-linear-gradient(112deg,#63a1e7 0 18px,#2870c9 18px 36px);
  background-size:72px 100%;animation:backup-upload-checking 1.1s linear infinite
}
.backup-upload-live-progress.is-error{border-color:#e6b3ae;background:#fff5f3}
.backup-upload-live-progress.is-error .backup-upload-live-header strong,
.backup-upload-live-progress.is-error .backup-upload-live-header span{color:#b73535}
.backup-upload-live-progress.is-success{border-color:#9dd9be;background:#f0fbf5}
.backup-upload-live-progress.is-success .backup-upload-live-header strong,
.backup-upload-live-progress.is-success .backup-upload-live-header span{color:#137c56}
.backup-upload-live-progress.is-success .backup-upload-live-fill{background:#2ba97c}
@keyframes backup-upload-checking{
 from{background-position:0 0}
 to{background-position:72px 0}
}
.backup-external-upload-form button[disabled]{opacity:.65;cursor:wait}
html[data-theme="dark"] .backup-upload-live-progress{
  border-color:#3b6184;background:linear-gradient(125deg,#142d49,#10223a)
}
html[data-theme="dark"] .backup-upload-live-header strong{color:#d5eaff}
html[data-theme="dark"] .backup-upload-live-header span{color:#8bc4ff}
html[data-theme="dark"] .backup-upload-live-track{background:#28435e}
html[data-theme="dark"] .backup-upload-live-progress p{color:#aac3dd}
html[data-theme="dark"] .backup-upload-live-progress.is-error{background:#39252c;border-color:#8c4b51}
html[data-theme="dark"] .backup-upload-live-progress.is-success{background:#16392d;border-color:#3b8062}
@media(max-width:760px){
 .backup-upload-live-progress{padding:14px 12px}
 .backup-upload-live-header strong{font-size:12px}
 .backup-upload-live-track{height:12px}
}
@media(prefers-reduced-motion:reduce){
 .backup-upload-live-progress.is-checking .backup-upload-live-fill{animation:none}
 .backup-upload-live-fill{transition:none}
}

/* R149 — never offer navigation away from unfinished BACKUP/RESTORE work. */
.backup-progress-return[hidden],
.backup-progress-result-actions a[hidden]{
  display:none!important;
}

/* R151: Restore success offers exactly one logout action. */
.backup-progress-result-actions form[hidden]{display:none!important}
.backup-progress-result-actions form{margin:0;display:flex;justify-content:center;align-items:center}
.backup-progress-result-actions form .primary-button{min-width:205px;min-height:44px;padding:12px 18px;border:0;border-radius:12px;font-weight:850;cursor:pointer}


/* R153: distinguish the expandable RESTORE + icon from its label. */
.backup-external-card .backup-external-restore-confirm>summary{
  display:inline-flex;
  align-items:center;
  justify-content:space-between;
  gap:23px;
  min-width:188px;
  padding-inline:20px 16px;
}
.backup-external-card .backup-external-restore-confirm>summary::after{
  content:"+";
  float:none;
  margin-inline-start:12px;
  min-width:18px;
  font-size:21px;
  line-height:1;
  font-weight:900;
  color:#fff;
  opacity:1;
  text-align:center;
}
.backup-external-card .backup-external-restore-confirm[open]>summary::after{
  transform:rotate(45deg);
}
@media(max-width:760px){
  .backup-external-card .backup-external-restore-confirm>summary{
    min-width:0;
  }
}


/* PROGRAM R155 — reuse the employee profile management panel and employee
 * automotive table appearance in BACKUP. No functional RESTORE changes. */
.backup-create-premium-panel.employee-add-panel{
  margin-bottom:22px;
}
.backup-create-premium-panel .employee-premium-panel-copy{
  padding-right:0;
}
.backup-create-action-card{
  min-width:0;
}
.backup-create-action-card>form{
  margin:0;
}
.backup-create-action-card .backup-create-open{
  width:100%;
  justify-content:flex-start;
}
.backup-history-unified.people-table-card{
  margin-bottom:19px;
  --surface-accent:#16845b;
}
.backup-history-unified .backup-history-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:19px 20px 16px;
}
.backup-history-head .eyebrow{
  display:block;
  font-size:11px!important;
  font-weight:900;
  color:#2d68b5!important;
  letter-spacing:.08em;
}
.backup-history-head h2{
  margin:6px 0 0;
  font-size:22px;
  color:#17395c;
}
.backup-history-search-field{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:220px;
  width:min(340px,100%);
  color:#657d97;
  font-size:11px!important;
  font-weight:850;
}
.backup-history-search-field input[type=search]{
  box-sizing:border-box;
  width:100%;
  min-height:44px;
  padding:10px 14px;
  border:1px solid #cdddec;
  border-radius:13px;
  background:#fff;
  color:#163754;
  font-size:13px;
  font-weight:700;
}
.backup-history-unified .backup-history-table{
  width:100%;
  min-width:880px;
}
.backup-history-unified .people-table th:nth-child(1),
.backup-history-unified .people-table td:nth-child(1){width:23%!important}
.backup-history-unified .people-table th:nth-child(2),
.backup-history-unified .people-table td:nth-child(2){width:15%!important}
.backup-history-unified .people-table th:nth-child(3),
.backup-history-unified .people-table td:nth-child(3){width:13%!important}
.backup-history-unified .people-table th:nth-child(4),
.backup-history-unified .people-table td:nth-child(4){width:15%!important}
.backup-history-unified .people-table th:nth-child(5),
.backup-history-unified .people-table td:nth-child(5){width:34%!important}
.backup-history-unified .backup-history-sort{
  font-size:inherit;
  padding:0;
  border:0;
  background:transparent;
  cursor:pointer;
}
.backup-history-filename{
  display:block;
  margin-top:5px;
  font-size:10px;
  font-weight:650;
  overflow-wrap:anywhere;
  color:#7b8ca2;
}
.backup-history-table tr[hidden],
.backup-history-no-results[hidden]{display:none!important}
.backup-history-no-results{
  margin:12px 16px 16px;
  padding:16px;
  text-align:center;
  color:#647e99;
  background:#f5f9ff;
  border-radius:12px;
  font-size:13px;
}
.backup-history-unified .backup-row-actions{
  gap:8px;
  align-items:center;
}
.backup-external-ready{
  overflow-anchor:none;
}
.backup-external-restore-confirm{
  overflow-anchor:none;
}
html[data-theme="dark"] .backup-history-head h2{color:#e5effd}
html[data-theme="dark"] .backup-history-search-field{color:#acc2da}
html[data-theme="dark"] .backup-history-search-field input[type=search]{
  background:#102137;
  border-color:#38516c;
  color:#f0f7ff;
}
html[data-theme="dark"] .backup-history-filename{color:#a8b8ca}
html[data-theme="dark"] .backup-history-no-results{
  color:#bdcfe3;
  background:#162b43;
}
@media(max-width:760px){
  .backup-history-unified .backup-history-head{
    flex-direction:column;
    align-items:stretch;
    padding:16px;
  }
  .backup-history-search-field{max-width:none;width:100%}
  .backup-history-head h2{font-size:20px}
  .backup-create-premium-panel .employee-premium-panel-copy{max-width:none}
}


/* PROGRAM R156: inset BACKUP table exactly like the STAGE framed Employees
   table. Keep both its border and rounded corners inside the outer card. */
.backup-history-unified.automotive-frame-table>.table-wrap{
  box-sizing:border-box!important;
  width:calc(100% - 32px)!important;
  max-width:calc(100% - 32px)!important;
  margin:0 16px 17px!important;
  border:1px solid #c4d5e5!important;
  border-radius:14px!important;
  background:#fff!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  box-shadow:inset 0 3px 0 #0e345f!important;
}
.backup-history-unified .backup-row-actions{
  flex-wrap:nowrap!important;
  min-height:44px;
  gap:8px;
}
.backup-history-unified .backup-row-actions form{margin:0!important;flex:0 0 auto}
.backup-history-unified .backup-row-actions :where(a,button){
  white-space:nowrap;
  min-height:40px;
}
html[data-theme="dark"] .backup-history-unified.automotive-frame-table>.table-wrap{
  border-color:#324d6b!important;
  background:#0e1d30!important;
}
@media(max-width:760px){
  .backup-history-unified.automotive-frame-table>.table-wrap{
    width:calc(100% - 20px)!important;
    max-width:calc(100% - 20px)!important;
    margin:0 10px 12px!important;
  }
}

/* R157: preserve the approved inset history frame but vertically align
   the original plain-text Download link with the Restore/Delete buttons. */
.backup-history-unified .backup-row-actions{
  display:flex!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  justify-content:flex-start;
}
.backup-history-unified .backup-row-actions>a.secondary-button{
  display:inline-flex!important;
  height:40px!important;
  min-height:40px!important;
  align-items:center!important;
  justify-content:center!important;
  align-self:center!important;
  padding-block:0!important;
  line-height:1.2!important;
  vertical-align:middle!important;
}
.backup-history-unified .backup-row-actions>form{
  display:inline-flex!important;
  align-items:center!important;
  align-self:center!important;
  margin:0!important;
}


/* R158 — original full-size PREMIUM action confirmation: keep it centered
 * in the visible viewport, even when BACKUP history is scrolled to the bottom.
 * Scoped to BACKUP history only; no change to other application dialogs. */
.action-confirm-dialog[data-backup-history-confirm="true"]{
  position:fixed!important;
  top:50%!important;
  left:50%!important;
  right:auto!important;
  bottom:auto!important;

  margin:0!important;
  transform:translate(-50%,-50%)!important;
  max-height:calc(100dvh - 32px)!important;
  overflow-y:auto!important;
  box-sizing:border-box!important;
}
@media(max-width:560px){
  .action-confirm-dialog[data-backup-history-confirm="true"]{
    width:calc(100vw - 32px)!important;
    max-width:calc(100vw - 32px)!important;
  }
}

/* R160: preserve the original simple blue Download text with the global
 * premium confirmation. Only submit mechanism changes from anchor to GET. */
.backup-history-unified .backup-row-actions>form.backup-history-download-form{
  display:inline-flex!important;align-items:center!important;align-self:center!important;
  min-height:40px;flex:0 0 auto;margin:0!important;
}
.backup-history-unified .backup-row-actions>form.backup-history-download-form>
button.backup-history-download{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  align-self:center!important;min-height:40px!important;
  padding:0!important;border:0!important;background:transparent!important;
  color:#1b62cd!important;box-shadow:none!important;
  font:inherit!important;font-weight:800!important;line-height:1.2!important;
  text-decoration:none!important;white-space:nowrap!important;
  transform:none!important;
}
.backup-history-unified .backup-row-actions>form.backup-history-download-form>
button.backup-history-download:hover{
  color:#13498f!important;text-decoration:underline!important;
}
html[data-theme="dark"] .backup-history-unified
 .backup-history-download{color:#8fbaff!important}


/* PROGRAM R161 — 3 independent premium backup categories with own histories. */
.backup-modes{display:grid;gap:16px;margin:16px 0 24px}
.backup-mode-card{overflow:hidden;border:1px solid var(--x-line,rgba(121,151,186,.24));border-radius:22px;background:var(--x-surface,#fff);box-shadow:0 14px 38px rgba(18,46,82,.08)}
.backup-mode-toggle{width:100%;display:flex;align-items:center;gap:16px;border:0;background:transparent;color:inherit;text-align:left;padding:24px;cursor:pointer}
.backup-mode-toggle:hover,.backup-mode-toggle[aria-expanded="true"]{background:rgba(58,117,206,.065)}
.backup-mode-toggle:focus-visible{outline:3px solid #327ce8;outline-offset:-4px;border-radius:20px}
.backup-mode-icon{display:grid;place-items:center;flex:none;width:58px;height:58px;border-radius:17px;background:linear-gradient(135deg,rgba(42,109,219,.16),rgba(72,148,224,.08));color:var(--x-cobalt-600,#2862bd);font-size:27px;font-weight:900}
.backup-mode-caption{display:flex;flex:1;flex-direction:column;gap:6px;min-width:0}
.backup-mode-caption strong{font-size:clamp(16px,1.6vw,21px);font-weight:850}
.backup-mode-caption small{color:var(--x-ink-650,#637892);line-height:1.5;font-size:13px}
.backup-mode-chevron{font-size:30px;font-weight:700;transition:transform .18s}
.backup-mode-toggle[aria-expanded="true"] .backup-mode-chevron{transform:rotate(180deg)}
.backup-mode-body{border-top:1px solid rgba(124,153,186,.20);padding:20px;display:grid;gap:18px}
.backup-mode-body[hidden]{display:none!important}
.backup-mode-body>.backup-history-unified{margin:0}
.backup-mode-body>.backup-create-premium-panel{margin:0}
.backup-mode-safety{margin:0;border:1px solid rgba(183,112,20,.28);background:rgba(183,112,20,.08);border-radius:14px;padding:14px;color:var(--x-ink-850,#34445d);font-weight:650;font-size:13px}
.backup-mode-body button:disabled{opacity:.53;cursor:not-allowed;filter:grayscale(.15)}
html[data-theme="dark"] .backup-mode-card{background:#19263c;border-color:rgba(165,187,225,.19)}
html[data-theme="dark"] .backup-mode-toggle:hover,html[data-theme="dark"] .backup-mode-toggle[aria-expanded="true"]{background:rgba(111,166,242,.09)}
html[data-theme="dark"] .backup-mode-caption small{color:#b5c6dc}
html[data-theme="dark"] .backup-mode-safety{color:#f1d9a8}
@media(max-width:700px){.backup-modes{gap:12px}.backup-mode-toggle{padding:16px;gap:12px}.backup-mode-icon{width:45px;height:45px;font-size:22px}.backup-mode-body{padding:12px;gap:14px}.backup-mode-caption strong{font-size:16px}.backup-mode-caption small{font-size:12px}}

/* PROGRAM R162: distinct backup pages. Do not use R161 accordion expansion. */
.backup-r162-navigation{margin-top:26px;max-width:100%}
.backup-r162-navigation .backup-mode-link{text-decoration:none;min-height:104px}
.backup-r162-navigation .backup-mode-link:hover{transform:translateY(-1px)}
.backup-r162-navigation .backup-mode-chevron{transition:transform .18s}
.backup-r162-navigation .backup-mode-link:hover .backup-mode-chevron{transform:translateX(4px)}
.backup-r162-return{display:flex;align-items:center;margin-bottom:20px}
.backup-r162-back-link{display:inline-flex;align-items:center;gap:10px;text-decoration:none;min-height:44px}
.backup-r162-return+.backup-page-head{margin-top:0}
.backup-r162-return~.backup-create-premium-panel{margin-top:20px}
.backup-r162-return~.backup-history-unified{margin-top:18px}
.backup-r162-return~.backup-policy-card{margin-top:18px}
.backup-r162-return~.backup-external-card{margin-top:18px}
html[data-theme="dark"] .backup-r162-navigation .backup-mode-link{color:inherit}
@media(max-width:700px){.backup-r162-return{margin-bottom:14px}.backup-r162-navigation .backup-mode-link{min-height:94px}}
