:where(.person-detail-hero,.device-detail-hero,.email-detail-hero){
  position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;
  min-height:190px;margin-bottom:var(--x-space-200);padding:28px 30px;
  border:1px solid var(--x-line);border-radius:var(--x-radius-2xl);
  background:
    radial-gradient(circle at 88% 10%,rgba(47,123,232,.10),transparent 18rem),
    linear-gradient(118deg,#fff 0%,#fafcff 56%,#edf4fc 100%);
  box-shadow:var(--x-shadow-sm);
}
:where(.person-detail-hero,.device-detail-hero,.email-detail-hero)::after{
  content:"";position:absolute;right:-90px;bottom:-112px;width:330px;height:194px;
  border:1px solid rgba(47,123,232,.08);border-radius:50%;pointer-events:none;
}
:where(.person-detail-main,.device-detail-main,.email-detail-hero>div:first-child){
  position:relative;z-index:2;min-width:0;
}
:where(.person-detail-identity,.device-detail-title){
  display:flex;align-items:center;gap:15px;
}
.person-avatar-large,.device-hero-icon{
  width:64px;height:64px;flex:0 0 64px;display:grid;place-items:center;
  border-radius:18px;border:1px solid #cfe0f3;
  background:linear-gradient(145deg,#eef5ff,#deebff);
  color:var(--x-cobalt-600);font-size:18px;font-weight:900;
  box-shadow:0 12px 24px rgba(31,103,216,.11);
}
:where(.person-detail-hero,.device-detail-hero,.email-detail-hero) h1{
  margin:6px 0 8px;color:var(--x-ink-950);
  font-size:clamp(28px,2.3vw,36px);line-height:1.08;letter-spacing:-1px;
}
.device-detail-title p,.email-detail-hero p{
  margin:0 0 8px;color:var(--x-ink-650);font-size:11px;
}
.person-department-path{
  display:inline-flex;margin-top:12px;padding:6px 9px;
  border:1px solid #dce6f1;border-radius:var(--x-radius-pill);
  background:rgba(255,255,255,.72);color:var(--x-ink-500);font-size:8px;font-weight:700;
}
.org-detail-brand{
  position:relative;z-index:2;width:220px;height:110px;flex:0 0 220px;
  padding:15px;border:1px solid var(--x-line);border-radius:var(--x-radius-xl);
  background:#fff;box-shadow:var(--x-shadow-sm);
}
.org-detail-brand img{width:100%;height:100%;object-fit:contain}
.org-detail-brand-fallback{
  display:grid;place-items:center;
  background:linear-gradient(145deg,var(--x-navy-800),var(--x-cobalt-500));color:#fff;
}
.org-detail-brand-fallback span{font-size:26px;font-weight:900}
.email-hero-icon{
  position:relative;z-index:2;width:104px;height:104px;display:grid;place-items:center;
  border:1px solid #d9e5f2;border-radius:28px;background:#fff;
  color:var(--x-cobalt-600);font-size:34px;font-weight:850;box-shadow:var(--x-shadow-sm);
}
:where(.person-detail-stats,.device-detail-stats,.email-detail-stats){
  display:grid;gap:var(--x-space-150);margin-bottom:var(--x-space-200);
}
.person-detail-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
.device-detail-stats,.email-detail-stats{grid-template-columns:repeat(4,minmax(0,1fr))}
:where(.person-detail-stats,.device-detail-stats,.email-detail-stats)>div{
  position:relative;overflow:hidden;padding:16px 18px;
  border:1px solid var(--x-line);border-radius:var(--x-radius-lg);
  background:linear-gradient(180deg,#fff,#fbfcfe);box-shadow:var(--x-shadow-xs);
}
:where(.person-detail-stats,.device-detail-stats,.email-detail-stats)>div::before{
  content:"";position:absolute;left:0;top:0;bottom:0;width:3px;
  background:linear-gradient(180deg,var(--x-cobalt-600),#75aaf0);
}
:where(.person-detail-stats,.device-detail-stats,.email-detail-stats) strong{
  display:block;color:var(--x-ink-800);font-size:19px;line-height:1.15;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
:where(.person-detail-stats,.device-detail-stats,.email-detail-stats) span{
  display:block;margin-top:5px;color:var(--x-ink-500);font-size:8px;
}
.detail-grid{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--x-space-150);
  margin-top:var(--x-space-200);
}
.detail-field{
  min-height:84px;padding:14px 15px;border:1px solid var(--x-line);
  border-radius:var(--x-radius-lg);background:linear-gradient(180deg,#fff,#fbfcfe);
  box-shadow:var(--x-shadow-xs);
}
.detail-field b{
  display:block;color:var(--x-cobalt-600);font-size:8px;font-weight:850;letter-spacing:.03em;
}
.detail-field span{
  display:block;margin-top:7px;color:var(--x-ink-800);font-size:10px;line-height:1.45;overflow-wrap:anywhere;
}
.detail-wide{grid-column:1/-1}
.section-block.org-section-panel,.email-links-panel,.email-vault-panel,.email-source-card{
  margin-top:var(--x-space-200);border:1px solid var(--x-line);
  border-radius:var(--x-radius-xl);background:#fff;box-shadow:var(--x-shadow-sm);
}
.section-block.org-section-panel,.email-links-panel,.email-vault-panel{padding:18px}
.section-block .panel-head,.email-links-panel .panel-head,.email-vault-panel .panel-head{margin-bottom:14px}
.section-block .panel-head h2,.email-links-panel .panel-head h2,.email-vault-panel .panel-head h2{
  margin:4px 0 0;color:var(--x-ink-950);font-size:17px;letter-spacing:-.3px;
}
.employee-mail-grid{gap:10px}
.employee-mail-card{
  min-height:58px;padding:11px 12px;border:1px solid var(--x-line);
  border-radius:var(--x-radius-md);background:#fff;
  transition:transform var(--x-duration-fast) var(--x-ease-standard),border-color var(--x-duration-base) var(--x-ease-standard),box-shadow var(--x-duration-base) var(--x-ease-standard);
}
.employee-mail-card:hover{transform:translateY(-1px);border-color:#cbdced;box-shadow:var(--x-shadow-xs)}
.email-review-warning{
  margin-bottom:var(--x-space-150);padding:12px 14px;border:1px solid #f3dfb8;
  border-radius:var(--x-radius-md);background:var(--x-warning-soft);color:var(--x-warning);
}
.email-vault-panel{
  background:
    radial-gradient(circle at 100% 0%,rgba(47,123,232,.06),transparent 14rem),
    linear-gradient(180deg,#fff,#fbfdff);
}
.email-vault-entry{
  border-color:var(--x-line)!important;border-radius:var(--x-radius-md)!important;
  background:#fff!important;box-shadow:var(--x-shadow-xs);
}
.vault-lock{
  width:34px;height:34px;display:grid;place-items:center;border-radius:10px;
  background:var(--x-cobalt-50);color:var(--x-cobalt-600);
}
.email-link-grid{gap:10px}
.email-link-card{
  border-color:var(--x-line)!important;border-radius:var(--x-radius-lg)!important;
  background:linear-gradient(180deg,#fff,#fbfcfe)!important;box-shadow:var(--x-shadow-xs);
}
.email-link-card.is-suggested{border-color:#f1dfbd!important;background:#fffdf7!important}
.email-source-card{overflow:hidden;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:var(--x-line-soft)}
.email-source-card>div{background:#fff!important;padding:14px 16px!important}
.account-page{max-width:1100px;margin:0 auto}
.account-heading{margin-bottom:var(--x-space-200)}
.account-heading h1{
  margin:7px 0 6px;color:var(--x-ink-950);font-size:clamp(28px,2.2vw,36px);letter-spacing:-1px;
}
.account-heading p{margin:0;color:var(--x-ink-650);font-size:13px}
.account-grid{gap:var(--x-space-200)}
.account-card{
  padding:20px!important;border:1px solid var(--x-line)!important;
  border-radius:var(--x-radius-xl)!important;background:#fff!important;box-shadow:var(--x-shadow-sm)!important;
}
.account-card h2{margin:5px 0 14px;color:var(--x-ink-950);font-size:20px;letter-spacing:-.4px}
.account-meta{
  overflow:hidden;border:1px solid var(--x-line-soft);border-radius:var(--x-radius-md);
  background:var(--x-line-soft);
}
.account-meta>div{background:#fff!important;padding:12px 13px!important}
.account-form{gap:10px}
.account-form label>span{color:var(--x-ink-650);font-size:8px;font-weight:800}
.account-photo-preview{
  width:116px;height:116px;margin:14px 0;border:1px solid #d5e3f2;
  border-radius:28px;background:linear-gradient(145deg,#eef5ff,#e1edff);box-shadow:var(--x-shadow-sm);
}
.account-photo-preview span{color:var(--x-cobalt-600);font-size:26px;font-weight:900}
@container workspace (max-width:900px){
  :where(.person-detail-hero,.device-detail-hero,.email-detail-hero){
    align-items:flex-start;flex-direction:column;gap:18px;
  }
  .org-detail-brand{width:146px;height:76px;flex-basis:auto;align-self:flex-start;padding:10px;border-radius:18px}
  .email-hero-icon{width:76px;height:76px;border-radius:20px;font-size:26px}
  .person-detail-stats,.device-detail-stats,.email-detail-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@container workspace (max-width:620px){
  :where(.person-detail-hero,.device-detail-hero,.email-detail-hero){padding:22px 20px}
  .person-detail-identity,.device-detail-title{align-items:flex-start}
  .person-avatar-large,.device-hero-icon{width:52px;height:52px;flex-basis:52px;border-radius:15px}
  .person-detail-stats,.device-detail-stats,.email-detail-stats{grid-template-columns:1fr}
  .detail-grid{grid-template-columns:1fr}
  .detail-wide{grid-column:auto}
  .email-source-card{grid-template-columns:1fr}
}
/* R14 — premium detail pages and forms */
:where(.person-detail-hero,.device-detail-hero,.email-detail-hero){
  min-height:214px;
  padding:32px 34px;
  border-color:#d3dfec;
  background:
    radial-gradient(circle at 88% 8%,rgba(47,123,232,.13),transparent 20rem),
    linear-gradient(120deg,#fff 0%,#f8fbff 53%,#eaf3fd 100%);
  box-shadow:0 18px 40px rgba(13,46,87,.085);
}
:where(.person-detail-hero,.device-detail-hero,.email-detail-hero)::before{
  content:"";
  position:absolute;
  left:0;top:28px;bottom:28px;width:4px;
  border-radius:0 999px 999px 0;
  background:linear-gradient(180deg,var(--x-cobalt-500),var(--x-navy-800));
}
.person-detail-hero::before{
  background:linear-gradient(180deg,var(--x-success),var(--x-cobalt-500));
}
.device-detail-hero::before{
  background:linear-gradient(180deg,#6658cc,var(--x-cobalt-500));
}
.email-detail-hero::before{
  background:linear-gradient(180deg,var(--x-warning),var(--x-cobalt-500));
}
:where(.person-detail-hero,.device-detail-hero,.email-detail-hero) h1{
  font-size:clamp(32px,2.55vw,42px);
  letter-spacing:-1.35px;
}
.person-avatar-large{
  width:72px;height:72px;flex-basis:72px;
  border-color:#cfe9dc;
  background:linear-gradient(145deg,#eefaf5,#dff3e9);
  color:var(--x-success);
  box-shadow:0 14px 28px rgba(22,132,91,.12);
}
.device-hero-icon{
  width:72px;height:72px;flex-basis:72px;
  border-color:#dcd6f4;
  background:linear-gradient(145deg,#f6f4ff,#e9e5ff);
  color:#6658cc;
  box-shadow:0 14px 28px rgba(102,88,204,.12);
}
.email-hero-icon{
  width:112px;height:112px;
  border-color:#efdfbf;
  background:linear-gradient(145deg,#fffaf0,#fff0d5);
  color:var(--x-warning);
  box-shadow:0 16px 30px rgba(184,110,8,.10);
}
.person-department-path{
  min-height:30px;
  padding:7px 11px;
  border-color:#d5e2ef;
  background:rgba(255,255,255,.86);
  box-shadow:0 3px 10px rgba(18,52,91,.04);
}
:where(.person-detail-stats,.device-detail-stats,.email-detail-stats)>div{
  --detail-accent:var(--x-cobalt-500);
  min-height:82px;
  padding:18px 20px;
  border-color:#d8e2ed;
  border-radius:18px;
  background:linear-gradient(135deg,#fff,#f7faff);
  box-shadow:0 8px 18px rgba(18,52,91,.05);
}
:where(.person-detail-stats,.device-detail-stats,.email-detail-stats)>div::before{
  left:16px;right:16px;top:0;bottom:auto;width:auto;height:3px;
  border-radius:0 0 999px 999px;
  background:var(--detail-accent);
}
:where(.person-detail-stats,.device-detail-stats,.email-detail-stats)>div:nth-child(2){
  --detail-accent:var(--x-success);
}
:where(.person-detail-stats,.device-detail-stats,.email-detail-stats)>div:nth-child(3){
  --detail-accent:#6658cc;
}
:where(.device-detail-stats,.email-detail-stats)>div:nth-child(4){
  --detail-accent:var(--x-warning);
}
:where(.person-detail-stats,.device-detail-stats,.email-detail-stats) strong{
  color:var(--x-navy-950);
  font-size:20px;
}
.detail-field{
  position:relative;
  min-height:92px;
  padding:17px 18px;
  border-color:#d9e3ee;
  border-radius:18px;
  background:
    radial-gradient(circle at 100% 0%,rgba(47,123,232,.045),transparent 9rem),
    linear-gradient(180deg,#fff,#fafcff);
  box-shadow:0 6px 16px rgba(18,52,91,.045);
}
.detail-field::before{
  content:"";
  position:absolute;left:0;top:16px;bottom:16px;width:3px;
  border-radius:0 999px 999px 0;
  background:#cfdded;
}
.detail-field b{
  color:var(--x-cobalt-600);
  font-size:8.5px;
  letter-spacing:.055em;
  text-transform:uppercase;
}
.detail-field span{
  margin-top:9px;
  font-size:10.5px;
}
.section-block.org-section-panel,.email-links-panel,.email-vault-panel,.email-source-card{
  border-color:#d8e2ed;
  border-radius:24px;
  box-shadow:0 12px 28px rgba(13,46,87,.065);
}
.section-block.org-section-panel,.email-links-panel,.email-vault-panel{
  padding:22px;
}
.section-block .panel-head,.email-links-panel .panel-head,.email-vault-panel .panel-head{
  padding-bottom:13px;
  border-bottom:1px solid var(--x-line-soft);
}
.section-block .panel-head h2,.email-links-panel .panel-head h2,.email-vault-panel .panel-head h2{
  font-size:18px;
}
.employee-mail-card,.email-link-card,.email-vault-entry{
  border-radius:15px!important;
}
.employee-mail-card{
  background:linear-gradient(180deg,#fff,#f9fbfe);
  box-shadow:0 4px 12px rgba(18,52,91,.035);
}
.email-vault-panel{
  border-color:#cfdeef;
  background:
    radial-gradient(circle at 100% 0%,rgba(47,123,232,.09),transparent 16rem),
    linear-gradient(135deg,#fff,#f5f9ff);
}
.email-vault-entry{
  min-height:58px;
}
:where(.person-detail-hero,.device-detail-hero,.email-detail-hero)+.error,
:where(.person-detail-hero,.device-detail-hero,.email-detail-hero)+.success{
  margin-top:-4px;
}
.org-management{
  overflow:hidden;
  border-color:#d5e1ed!important;
  background:linear-gradient(180deg,#fff,#fbfdff)!important;
}
.org-management>summary{
  min-height:54px;
  padding:16px 18px;
}
.org-management-form{
  padding:16px!important;
  background:linear-gradient(180deg,#fbfdff,#f6f9fd)!important;
}
.org-management-form input,
.org-management-form select,
.org-management-form textarea{
  min-height:44px;
  background:#fff!important;
}
.org-management-form textarea{
  min-height:96px;
  resize:vertical;
}
.org-order-form{
  background:#f8fbff;
}
.admin-delete-zone{
  background:linear-gradient(180deg,#fffafa,#fff5f5);
}
.account-page{max-width:1180px}
.account-heading{
  min-height:124px;
  padding:22px 24px;
  border:1px solid var(--x-line);
  border-radius:var(--x-radius-xl);
  background:
    radial-gradient(circle at 90% 0%,rgba(47,123,232,.09),transparent 18rem),
    linear-gradient(135deg,#fff,#f6faff);
  box-shadow:var(--x-shadow-sm);
}
.account-heading h1{font-size:clamp(30px,2.4vw,39px)}
.account-card{
  position:relative;
  overflow:hidden;
  padding:24px!important;
  border-color:#d7e2ed!important;
  box-shadow:0 12px 28px rgba(13,46,87,.065)!important;
}
.account-card::before{
  content:"";
  position:absolute;left:18px;right:18px;top:0;height:3px;
  background:linear-gradient(90deg,var(--x-cobalt-500),rgba(47,123,232,.12));
}
.account-meta>div{padding:14px!important}
.account-form input[type="email"],
.account-form input[type="file"]{
  min-height:44px;
}
.account-photo-preview{
  width:128px;height:128px;
  border-radius:32px;
}
@container workspace (max-width:620px){
  :where(.person-detail-hero,.device-detail-hero,.email-detail-hero){padding:24px 20px}
  :where(.person-detail-hero,.device-detail-hero,.email-detail-hero)::before{top:20px;bottom:20px}
  .person-avatar-large,.device-hero-icon{width:58px;height:58px;flex-basis:58px}
  .account-heading{min-height:auto;padding:18px}
}
/* R15 — premium detail pages and edit forms */
.org-detail-hero{--detail-accent:#2f7be8;--detail-soft:#edf5ff;--detail-line:#cfdef1}
.person-detail-hero{--detail-accent:#16845b;--detail-soft:#edf9f4;--detail-line:#cfe8dc}
.device-detail-hero{--detail-accent:#6658cc;--detail-soft:#f3f1ff;--detail-line:#ddd7f6}
.email-detail-hero{--detail-accent:#b86e08;--detail-soft:#fff7e7;--detail-line:#eddcb9}

:where(.org-detail-hero,.person-detail-hero,.device-detail-hero,.email-detail-hero){
  position:relative;
  overflow:hidden;
  border-color:var(--detail-line);
  background:
    radial-gradient(circle at 86% 8%,color-mix(in srgb,var(--detail-accent) 13%,transparent),transparent 19rem),
    linear-gradient(118deg,#fff 0%,#fbfdff 55%,color-mix(in srgb,var(--detail-soft) 62%,#fff) 100%);
  box-shadow:0 18px 42px rgba(10,43,82,.075);
}
:where(.org-detail-hero,.person-detail-hero,.device-detail-hero,.email-detail-hero)::before{
  content:"";
  position:absolute;
  z-index:3;
  left:0;top:28px;bottom:28px;
  width:4px;
  border-radius:0 999px 999px 0;
  background:linear-gradient(180deg,var(--detail-accent),color-mix(in srgb,var(--detail-accent) 38%,#fff));
}
:where(.person-detail-hero,.device-detail-hero,.email-detail-hero) .eyebrow{color:var(--detail-accent)}
.person-avatar-large{
  border-color:#cfe8dc;
  background:linear-gradient(145deg,#f3fcf8,#e2f5ec);
  color:#16845b;
  box-shadow:0 12px 24px rgba(22,132,91,.10);
}
.device-hero-icon{
  border-color:#ded8f7;
  background:linear-gradient(145deg,#f8f6ff,#ece8ff);
  color:#6658cc;
  box-shadow:0 12px 24px rgba(102,88,204,.10);
}
.email-hero-icon{
  border-color:#eddcb9;
  background:linear-gradient(145deg,#fffdf7,#fff2dc);
  color:#b86e08;
  box-shadow:0 12px 24px rgba(184,110,8,.10);
}
.person-department-path{
  border-color:var(--detail-line,#dce6f1);
  background:color-mix(in srgb,var(--detail-soft,#fff) 55%,#fff);
}
.org-detail-stats,.org-meta-grid{--detail-accent:#2f7be8;--detail-soft:#edf5ff;--detail-line:#cfdef1}
.person-detail-stats,.person-meta-grid{--detail-accent:#16845b;--detail-soft:#edf9f4;--detail-line:#cfe8dc}
.device-detail-stats,.device-meta-grid{--detail-accent:#6658cc;--detail-soft:#f3f1ff;--detail-line:#ddd7f6}
.email-detail-stats,.email-source-card{--detail-accent:#b86e08;--detail-soft:#fff7e7;--detail-line:#eddcb9}
:where(.org-detail-stats,.person-detail-stats,.device-detail-stats,.email-detail-stats)>div{
  border-color:var(--detail-line);
  background:
    linear-gradient(180deg,#fff,color-mix(in srgb,var(--detail-soft) 44%,#fff));
  box-shadow:0 10px 24px rgba(14,48,87,.055);
}
:where(.org-detail-stats,.person-detail-stats,.device-detail-stats,.email-detail-stats)>div::before{
  background:linear-gradient(180deg,var(--detail-accent),color-mix(in srgb,var(--detail-accent) 38%,#fff));
}
:where(.org-meta-grid,.person-meta-grid,.device-meta-grid) .detail-field{
  border-color:var(--detail-line);
  background:linear-gradient(180deg,#fff,color-mix(in srgb,var(--detail-soft) 34%,#fff));
}
:where(.org-meta-grid,.person-meta-grid,.device-meta-grid) .detail-field b{
  color:var(--detail-accent);
}
.section-block.org-section-panel,.email-links-panel,.email-vault-panel,.email-source-card{
  box-shadow:0 14px 34px rgba(10,43,82,.06);
}
.detail-edit-form{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr));
  align-items:stretch;
  gap:10px!important;
}
.detail-edit-form>*{
  min-width:0!important;
  width:100%!important;
  margin:0!important;
}
.detail-edit-form input,.detail-edit-form select,.detail-edit-form textarea,
.email-vault-form input{
  min-height:44px!important;
  border:1px solid #d6e1ec!important;
  border-radius:var(--x-radius-md)!important;
  background:#fff!important;
  box-shadow:inset 0 1px 2px rgba(14,44,82,.025);
}
.detail-edit-form input:focus,.detail-edit-form select:focus,.detail-edit-form textarea:focus,
.email-vault-form input:focus{
  border-color:#a9c8ed!important;
  box-shadow:0 0 0 3px rgba(47,123,232,.08)!important;
}
.detail-edit-form textarea{
  grid-column:span 2;
  min-height:90px!important;
  resize:vertical;
}
.detail-edit-form button{
  min-height:44px;
  align-self:stretch;
}
.department-detail-form{
  grid-template-columns:minmax(200px,1fr) minmax(300px,2fr) minmax(120px,.55fr);
}
.department-detail-form textarea{grid-column:auto}
.email-vault-form{
  display:grid!important;
  grid-template-columns:minmax(180px,1fr) minmax(220px,1.25fr) auto;
  gap:10px;
  align-items:center;
}
.email-vault-form>*{min-width:0!important}
@container workspace (max-width:900px){
  .detail-edit-form{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .department-detail-form{grid-template-columns:1fr 1.5fr}
  .department-detail-form button{grid-column:1/-1}
  .email-vault-form{grid-template-columns:1fr 1fr}
  .email-vault-form button{grid-column:1/-1}
}
@container workspace (max-width:620px){
  .detail-edit-form,.department-detail-form,.email-vault-form{
    grid-template-columns:1fr!important;
  }
  .detail-edit-form textarea,.department-detail-form button,.email-vault-form button{
    grid-column:auto!important;
  }
}

.email-detail-form button{
  grid-column:1/-1;
  justify-self:end;
  width:min(240px,100%)!important;
}
@container workspace (max-width:620px){
  .email-detail-form button{
    width:100%!important;
  }
}

/* R16 — employee field readability + assignment-code chips */
.employee-field-section .panel-head h2{
  font-size:22px;
  line-height:1.2;
  letter-spacing:-.35px;
}
.employee-field-section .panel-kicker{
  font-size:10.5px;
  font-weight:850;
  letter-spacing:.07em;
}
.employee-field-section .detail-grid{
  gap:16px;
}
.employee-field-section .detail-field{
  min-height:108px;
  padding:20px 21px;
}
.employee-field-section .detail-field b{
  font-size:11.5px;
  line-height:1.35;
  font-weight:900;
  letter-spacing:.045em;
}
.employee-field-section .detail-field>span{
  margin-top:11px;
  font-size:16px;
  line-height:1.45;
  font-weight:650;
  letter-spacing:-.08px;
}
.assignment-code-list{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  margin-top:12px;
}
.assignment-code-chip{
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  min-height:36px;
  margin:0!important;
  padding:7px 13px;
  border:1px solid #c7dbee;
  border-radius:999px;
  background:linear-gradient(135deg,#f5f9ff,#e8f2ff);
  color:#1f5fae!important;
  font-size:14px!important;
  line-height:1!important;
  font-weight:850!important;
  letter-spacing:.025em;
  box-shadow:0 4px 10px rgba(27,83,145,.055);
}
.assignment-code-inline{
  color:var(--x-cobalt-600);
  font-weight:850!important;
}
html[data-theme="dark"] .assignment-code-chip{
  border-color:#315174;
  background:linear-gradient(135deg,#13263b,#17304b);
  color:#a9d0ff!important;
}
@container workspace (max-width:620px){
  .employee-field-section .detail-field{
    min-height:96px;
    padding:17px 18px;
  }
  .employee-field-section .detail-field b{font-size:10.5px}
  .employee-field-section .detail-field>span{font-size:15px}
  .assignment-code-chip{font-size:13px!important}
}

/* R17 — employee lower panels readability + semantic email states */
.employee-mail-panel .panel-kicker,
.employee-devices-panel .panel-kicker{
  font-size:11.5px;
  font-weight:900;
  letter-spacing:.065em;
}
.employee-mail-panel .panel-head h2,
.employee-devices-panel .panel-head h2{
  font-size:22px;
  line-height:1.2;
  letter-spacing:-.35px;
}
.employee-mail-panel .employee-mail-grid{
  gap:14px;
}
.employee-mail-panel .employee-mail-card{
  min-height:78px;
  gap:14px;
  padding:14px 16px;
  border-radius:18px!important;
  box-shadow:0 7px 18px rgba(18,52,91,.055);
}
.employee-mail-panel .employee-mail-card .mail-icon{
  width:46px;
  height:46px;
  flex:0 0 46px;
  border-radius:14px;
  font-size:20px;
}
.employee-mail-panel .employee-mail-card strong{
  font-size:14px;
  line-height:1.3;
  font-weight:850;
}
.employee-mail-panel .employee-mail-card small{
  margin-top:5px;
  font-size:11.5px;
  line-height:1.35;
  font-weight:700;
}
.employee-mail-panel .employee-mail-card>b{
  font-size:18px;
}
.employee-mail-panel .employee-mail-card.is-confirmed{
  border-color:#b9e3d1!important;
  background:linear-gradient(135deg,#ffffff 0%,#f0fbf6 100%)!important;
}
.employee-mail-panel .employee-mail-card.is-confirmed .mail-icon{
  border-color:#b7e4cf;
  background:linear-gradient(145deg,#eaf9f2,#dff5ea);
  color:#16845b;
}
.employee-mail-panel .employee-mail-card.is-confirmed strong{
  color:#166d4e;
}
.employee-mail-panel .employee-mail-card.is-confirmed small,
.employee-mail-panel .employee-mail-card.is-confirmed>b{
  color:#16845b;
}
.employee-mail-panel .employee-mail-card.is-suggested{
  border-color:#efd9ad!important;
  background:linear-gradient(135deg,#fff 0%,#fff8ea 100%)!important;
}
.employee-mail-panel .employee-mail-card.is-suggested .mail-icon{
  border-color:#f0d9aa;
  background:linear-gradient(145deg,#fff8e8,#ffedc9);
  color:#b86e08;
}
.employee-mail-panel .employee-mail-card.is-suggested strong{
  color:#80530e;
}
.employee-mail-panel .employee-mail-card.is-suggested small,
.employee-mail-panel .employee-mail-card.is-suggested>b{
  color:#a66c16;
}
.employee-devices-panel .employee-device-table thead th{
  padding:15px 16px;
  font-size:11px;
  line-height:1.3;
  font-weight:900;
  letter-spacing:.025em;
}
.employee-devices-panel .employee-device-table tbody td{
  padding:15px 16px;
  font-size:12.5px;
  line-height:1.4;
  font-weight:600;
}
.employee-devices-panel .employee-device-table tbody td a{
  font-size:13px;
  font-weight:850;
  color:var(--x-cobalt-600);
  text-decoration:none;
}
.employee-devices-panel .employee-device-table .status-pill{
  min-height:28px;
  padding:5px 9px;
  font-size:10.5px;
}
html[data-theme="dark"] .employee-mail-panel .employee-mail-card.is-confirmed{
  border-color:#285e49!important;
  background:linear-gradient(135deg,#101e2b,#102a22)!important;
}
html[data-theme="dark"] .employee-mail-panel .employee-mail-card.is-confirmed .mail-icon{
  border-color:#2b674f;
  background:linear-gradient(145deg,#163b2e,#173328);
  color:#7eddb5;
}
html[data-theme="dark"] .employee-mail-panel .employee-mail-card.is-confirmed strong,
html[data-theme="dark"] .employee-mail-panel .employee-mail-card.is-confirmed small,
html[data-theme="dark"] .employee-mail-panel .employee-mail-card.is-confirmed>b{
  color:#8ae3bc;
}
html[data-theme="dark"] .employee-mail-panel .employee-mail-card.is-suggested{
  border-color:#6d5328!important;
  background:linear-gradient(135deg,#151f2b,#2b2314)!important;
}
html[data-theme="dark"] .employee-mail-panel .employee-mail-card.is-suggested .mail-icon{
  border-color:#73582b;
  background:linear-gradient(145deg,#382b14,#2f2515);
  color:#f1bd65;
}
html[data-theme="dark"] .employee-mail-panel .employee-mail-card.is-suggested strong,
html[data-theme="dark"] .employee-mail-panel .employee-mail-card.is-suggested small,
html[data-theme="dark"] .employee-mail-panel .employee-mail-card.is-suggested>b{
  color:#f2c471;
}
@container workspace (max-width:620px){
  .employee-mail-panel .employee-mail-card{
    min-height:72px;
    padding:12px 13px;
  }
  .employee-mail-panel .employee-mail-card strong{font-size:13px}
  .employee-mail-panel .employee-mail-card small{font-size:10.5px}
  .employee-devices-panel .employee-device-table thead th{font-size:10px}
  .employee-devices-panel .employee-device-table tbody td{font-size:12px}
}

/* R62 — compact Accounting Card with protected core rows + expandable details */
.employee-bmisthos-core-table{
  table-layout:fixed!important;
}
.employee-bmisthos-core-table th:first-child,
.employee-bmisthos-core-table td:first-child{
  width:36%!important;
}
.employee-bmisthos-core-table th:nth-child(2),
.employee-bmisthos-core-table td:nth-child(2){
  width:64%!important;
}
.employee-bmisthos-more{
  margin-top:14px;
  border:1px solid var(--x-line-soft);
  border-radius:16px;
  background:linear-gradient(180deg,#fbfdff,#f6f9fc);
  overflow:hidden;
}
.employee-bmisthos-more>summary{
  min-height:52px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:0 16px;
  cursor:pointer;
  list-style:none;
  user-select:none;
  color:var(--x-cobalt-600);
  font-size:12px;
  font-weight:900;
  letter-spacing:.02em;
}
.employee-bmisthos-more>summary::-webkit-details-marker{display:none}
.employee-bmisthos-more>summary:hover{
  background:rgba(47,123,232,.055);
}
.bmisthos-more-copy{
  display:inline-flex;
  align-items:center;
  gap:9px;
}
.bmisthos-more-copy small{
  min-width:28px;
  height:28px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 8px;
  border:1px solid #ccdef0;
  border-radius:999px;
  background:#fff;
  color:#456b95;
  font-size:10px;
  font-weight:900;
}
.employee-bmisthos-more .when-open{display:none}
.employee-bmisthos-more[open] .when-closed{display:none}
.employee-bmisthos-more[open] .when-open{display:inline}
.bmisthos-more-chevron{
  width:30px;
  height:30px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid #cbddee;
  border-radius:50%;
  background:#fff;
  color:#246ac2;
  font-size:17px;
  line-height:1;
  transition:transform .18s ease;
}
.employee-bmisthos-more[open] .bmisthos-more-chevron{
  transform:rotate(180deg);
}
.employee-bmisthos-extra-wrap{
  border-top:1px solid var(--x-line-soft);
}
.employee-bmisthos-extra-table{
  margin:0!important;
  border:0!important;
  border-radius:0!important;
}
html[data-theme="dark"] .employee-bmisthos-more{
  border-color:#2d4359;
  background:linear-gradient(180deg,#101f31,#0d1a2a);
}
html[data-theme="dark"] .employee-bmisthos-more>summary:hover{
  background:rgba(80,147,230,.08);
}
html[data-theme="dark"] .bmisthos-more-copy small,
html[data-theme="dark"] .bmisthos-more-chevron{
  border-color:#35516f;
  background:#12243a;
  color:#9dc8ff;
}
@media(max-width:760px){
  .employee-bmisthos-core-table{
    width:720px!important;
    min-width:720px!important;
  }
  .employee-bmisthos-more>summary{
    min-height:50px;
    padding:0 13px;
    font-size:12px;
  }
}

/* R63 — BMISTHOS-protected Admin identity fields */
.employee-field-section .detail-field.employee-termination-field b,
.employee-field-section .detail-field.employee-termination-field>span{
  color:#c83232!important;
}
html[data-theme="dark"] .employee-field-section .detail-field.employee-termination-field b,
html[data-theme="dark"] .employee-field-section .detail-field.employee-termination-field>span{
  color:#ff8585!important;
}

