:root{--bg:#f4f7fb;--surface:#fff;--surface2:#f8faff;--text:#152033;--muted:#718096;--line:#e4e9f2;--primary:#3157d5;--primary2:#233eaa;--soft:#edf2ff;--success:#16804b;--warning:#a66b00;--shadow:0 18px 55px rgba(30,48,90,.09);--radius:18px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,system-ui,sans-serif;background:var(--bg);color:var(--text);transition:background .45s,color .45s}button,input{font:inherit}.app-shell{min-height:100vh;display:flex}.sidebar{width:270px;background:rgba(255,255,255,.9);backdrop-filter:blur(18px);border-right:1px solid var(--line);padding:22px 16px;position:fixed;inset:0 auto 0 0;z-index:50;transition:width .4s,transform .4s,background .4s;box-shadow:8px 0 35px rgba(20,35,70,.03)}.brand{display:flex;gap:12px;align-items:center;padding:7px 10px 32px}.brand-mark{width:42px;height:42px;border-radius:13px;background:linear-gradient(145deg,#486df1,#2847b9);color:#fff;display:grid;place-items:center;font-weight:800;font-size:17px;box-shadow:0 9px 22px rgba(49,87,213,.28);position:relative;overflow:hidden}.brand-mark:after{content:"";position:absolute;width:24px;height:24px;border:1px solid rgba(255,255,255,.5);border-radius:50%;animation:spin 5s linear infinite}.brand b{display:block;font-size:15px}.brand span{display:block;color:var(--muted);font-size:9px;margin-top:4px}.nav-item{display:flex;gap:13px;align-items:center;padding:12px 14px;margin:5px 0;border-radius:12px;text-decoration:none;color:#647086;font-size:12px;font-weight:650;transition:.3s;position:relative}.nav-item:first-letter{font-size:16px}.nav-item:hover{background:var(--soft);color:var(--primary);transform:translateX(3px)}.nav-item.active{background:linear-gradient(90deg,var(--soft),rgba(237,242,255,.3));color:var(--primary);box-shadow:inset 3px 0 var(--primary)}.sidebar-foot{position:absolute;bottom:24px;left:27px;right:27px;padding-top:18px;border-top:1px solid var(--line)}.sidebar-foot b{font-size:9px;letter-spacing:1px;color:var(--primary)}.sidebar-foot p{font-size:10px;color:var(--muted);line-height:1.55;margin:8px 0}.public-indicator i{display:inline-block;width:7px;height:7px;background:#27b56b;border-radius:50%;margin-right:6px;box-shadow:0 0 0 5px rgba(39,181,107,.1);animation:pulse 2s infinite}.main-content{margin-left:270px;width:calc(100% - 270px);min-width:0}.topbar{height:72px;background:rgba(255,255,255,.84);backdrop-filter:blur(16px);border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 38px;justify-content:space-between;position:sticky;top:0;z-index:40}.crumb{font-size:11px;color:var(--muted)}.crumb a{color:var(--primary);text-decoration:none}.crumb span{margin:0 9px;color:#b3bdcb}.top-actions{display:flex;gap:10px}.icon-btn{width:40px;height:40px;border:1px solid var(--line);background:var(--surface);border-radius:11px;color:var(--muted);cursor:pointer;transition:.3s}.icon-btn:hover{color:var(--primary);transform:translateY(-2px);box-shadow:0 8px 18px rgba(35,65,150,.1)}.menu-btn{display:none}.theme-toggle{width:68px;height:36px;border:1px solid var(--line);background:var(--surface2);border-radius:40px;position:relative;cursor:pointer;padding:0;display:flex;align-items:center;justify-content:space-around;color:var(--muted);transition:.45s;overflow:hidden}.theme-toggle i{position:absolute;width:28px;height:28px;border-radius:50%;left:4px;top:3px;background:#fff;box-shadow:0 4px 10px rgba(0,0,0,.13);transition:.45s cubic-bezier(.4,0,.2,1)}.theme-toggle .sun,.theme-toggle .moon{font-size:15px;z-index:2;line-height:1}.theme-toggle .sun{opacity:.55}.theme-toggle .moon{opacity:.7}.hero{margin:34px 38px 22px;padding:46px;border:1px solid var(--line);border-radius:24px;background:radial-gradient(circle at 90% 10%,rgba(75,108,240,.12),transparent 32%),linear-gradient(135deg,var(--surface),#f2f5ff);box-shadow:var(--shadow);position:relative;overflow:hidden;animation:rise .7s ease both}.hero:before{content:"";position:absolute;width:300px;height:300px;border:1px solid rgba(49,87,213,.1);border-radius:50%;right:-130px;top:-150px;animation:float 7s ease-in-out infinite}.hero:after{content:"";position:absolute;width:180px;height:180px;border:1px solid rgba(49,87,213,.08);border-radius:50%;right:-45px;top:-90px}.hero-content{max-width:720px;position:relative;z-index:2}.eyebrow{font-size:9px;letter-spacing:1.5px;font-weight:800;color:var(--primary);margin:0 0 10px;display:flex;align-items:center;gap:7px}.eyebrow>span{width:16px;height:2px;background:var(--primary);border-radius:2px}.hero h1{font-size:40px;line-height:1.1;letter-spacing:-1.8px;margin:0}.hero h1 em{font-style:normal;color:var(--primary)}.hero-content p{font-size:13px;color:var(--muted);line-height:1.65;max-width:620px;margin:13px 0 27px}.search-box{height:62px;max-width:790px;background:var(--surface);border:1px solid #dce3ef;border-radius:15px;display:flex;align-items:center;padding:0 7px 0 18px;box-shadow:0 12px 30px rgba(35,60,120,.08);position:relative;z-index:3;transition:.3s}.search-box:focus-within{border-color:#9eafea;box-shadow:0 15px 38px rgba(49,87,213,.14),0 0 0 4px rgba(49,87,213,.06)}.search-icon{font-size:23px;color:#8994a8}.search-box input{border:0;outline:0;background:transparent;flex:1;padding:0 14px;color:var(--text);font-size:12px;min-width:0}.search-box button{border:0;border-radius:11px;background:linear-gradient(135deg,var(--primary),var(--primary2));color:#fff;height:48px;padding:0 20px;font-weight:750;font-size:11px;cursor:pointer;box-shadow:0 9px 20px rgba(49,87,213,.22);transition:.3s}.search-box button:hover{transform:translateY(-2px);box-shadow:0 12px 26px rgba(49,87,213,.3)}.search-box button span{font-size:16px;margin-left:8px}.suggestions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:14px;position:relative;z-index:3}.suggestions small{font-size:9px;color:var(--muted);margin-right:3px}.suggestions button{border:1px solid #dce3f0;background:var(--surface);color:var(--primary);border-radius:9px;padding:7px 10px;font-size:9px;font-weight:650;cursor:pointer;transition:.25s}.suggestions button:hover{transform:translateY(-2px);border-color:#aebcf0;box-shadow:0 7px 15px rgba(40,60,120,.08)}.info-card{margin:0 38px 35px;padding:24px 25px;background:var(--surface);border:1px solid var(--line);border-radius:18px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:18px;box-shadow:0 10px 30px rgba(30,48,90,.04);animation:rise .8s .08s ease both}.info-number{width:44px;height:44px;border-radius:13px;background:var(--soft);color:var(--primary);display:grid;place-items:center;font-size:11px;font-weight:800}.info-card h2{margin:0 0 6px;font-size:15px}.info-card p{margin:0;color:var(--muted);font-size:10px;line-height:1.55;max-width:620px}.steps{display:flex;gap:8px}.steps span{padding:9px 11px;border:1px solid var(--line);border-radius:10px;font-size:9px;color:var(--muted);white-space:nowrap}.steps b{color:var(--primary);margin-right:4px}.directory-section{margin:0 38px 30px;animation:rise .8s .16s ease both}.section-heading{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:15px}.section-heading h2{margin:0;font-size:20px;letter-spacing:-.5px}.record-count,.count{font-size:9px;font-weight:750;color:var(--primary);background:var(--soft);padding:7px 10px;border-radius:20px}.employee-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.employee-card{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:20px;position:relative;overflow:hidden;transition:.35s;animation:cardIn .65s both}.employee-card:nth-child(2){animation-delay:.08s}.employee-card:nth-child(3){animation-delay:.16s}.employee-card:before{content:"";position:absolute;inset:0 0 auto;height:3px;background:linear-gradient(90deg,var(--primary),#8ba0f5);transform:scaleX(0);transform-origin:left;transition:.35s}.employee-card:hover{transform:translateY(-7px);box-shadow:var(--shadow);border-color:#d3dbf0}.employee-card:hover:before{transform:scaleX(1)}.card-top{display:flex;justify-content:space-between;align-items:center}.mini-initials,.initials{display:grid;place-items:center;background:linear-gradient(145deg,#eef2ff,#dfe7ff);color:var(--primary);font-weight:800}.mini-initials{width:42px;height:42px;border-radius:13px;font-size:12px}.employee-card h3{font-size:15px;margin:17px 0 5px}.employee-card p{font-size:10px;color:var(--muted);margin:0}.card-meta{display:flex;justify-content:space-between;gap:8px;border-top:1px solid var(--line);margin-top:17px;padding-top:13px;color:var(--muted);font-size:8px}.employee-card button{width:100%;margin-top:15px;padding:10px;border:1px solid #d8e0f4;background:var(--surface2);color:var(--primary);border-radius:10px;font-size:10px;font-weight:750;cursor:pointer;transition:.3s}.employee-card button b{float:right;font-size:14px}.employee-card button:hover{background:var(--primary);color:#fff;border-color:var(--primary)}.status{display:inline-flex;align-items:center;gap:5px;padding:6px 9px;border-radius:20px;background:#eaf8f0;color:var(--success);font-size:8px;font-weight:800}.status:before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}.message{margin:0 38px 20px;padding:13px 16px;border-radius:12px;background:#fff3f2;color:#a43b34;border:1px solid #f0d1cd;font-size:10px}.hidden{display:none!important}footer{padding:30px 38px 35px;text-align:center;color:#98a1b1;font-size:9px}footer span{margin:0 7px}.toast{position:fixed;right:25px;bottom:25px;background:#162136;color:#fff;padding:12px 16px;border-radius:12px;font-size:10px;box-shadow:0 15px 35px rgba(0,0,0,.2);opacity:0;transform:translateY(15px) scale(.96);pointer-events:none;transition:.35s;z-index:100}.toast.show{opacity:1;transform:none}.detail-wrap{padding:30px 38px 0;max-width:1500px}.back-link{font-size:10px;color:var(--primary);text-decoration:none;display:inline-flex;align-items:center;gap:5px;margin-bottom:17px;transition:.25s}.back-link:hover{transform:translateX(-3px)}.identity-card{background:var(--surface);border:1px solid var(--line);border-radius:21px;padding:25px;display:flex;justify-content:space-between;align-items:center;gap:20px;box-shadow:var(--shadow);animation:rise .65s ease both}.identity-main{display:flex;gap:17px;align-items:center}.initials{width:64px;height:64px;border-radius:18px;font-size:17px;box-shadow:inset 0 0 0 1px rgba(49,87,213,.08)}.identity-card h1{margin:0;font-size:26px;letter-spacing:-1px}.identity-line{display:flex;gap:9px;align-items:center;flex-wrap:wrap;color:var(--muted);font-size:10px;margin-top:8px}.identity-line i{font-style:normal;color:#bcc4d1}.identity-line strong{color:var(--primary);font-size:9px}.identity-actions{display:flex;gap:8px}.soft-btn,.outline-btn{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;border-radius:10px;padding:10px 14px;font-size:9px;font-weight:750;cursor:pointer;transition:.3s}.soft-btn{border:1px solid #d8e0f4;background:var(--soft);color:var(--primary)}.outline-btn{border:1px solid #ccd6ee;background:transparent;color:var(--primary)}.soft-btn:hover,.outline-btn:hover{transform:translateY(-2px);box-shadow:0 8px 18px rgba(40,60,120,.1)}.stat-strip{display:grid;grid-template-columns:repeat(4,1fr);margin:14px 0 31px;gap:12px}.stat-strip>div{background:var(--surface);border:1px solid var(--line);border-radius:15px;padding:15px 17px;transition:.3s}.stat-strip>div:hover{transform:translateY(-3px);box-shadow:0 10px 25px rgba(30,48,90,.07)}.stat-strip small,.data-card small{display:block;color:var(--muted);font-size:8px;margin-bottom:7px}.stat-strip b{font-size:11px}.detail-heading{margin-bottom:14px}.detail-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:14px}.data-card{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:18px;transition:.3s;box-shadow:0 7px 20px rgba(30,48,90,.025)}.data-card:hover{transform:translateY(-4px);box-shadow:0 14px 30px rgba(30,48,90,.08);border-color:#d4ddf3}.data-card strong{display:block;font-size:11px;line-height:1.4}.data-card span{display:block;font-size:8px;color:#a0a9b8;margin-top:7px}.section-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:14px}.panel{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:21px;box-shadow:0 8px 25px rgba(30,48,90,.035);transition:.3s}.panel:hover{box-shadow:0 14px 34px rgba(30,48,90,.065)}.panel-title{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:15px}.panel-title h2{font-size:16px;margin:0}.training-row{display:flex;gap:12px;padding:13px 0;border-bottom:1px solid var(--line)}.training-row:last-child{border-bottom:0}.item-icon{width:31px;height:31px;flex:0 0 31px;border-radius:10px;background:var(--soft);color:var(--primary);display:grid;place-items:center;font-size:11px;font-weight:800}.item-body{min-width:0;flex:1}.item-title{display:flex;justify-content:space-between;gap:10px}.item-title b{font-size:10px}.item-body small,.skill-row small,.certificate-row small{display:block;color:var(--muted);font-size:8px;margin-top:5px}.pill{font-size:7px;padding:5px 7px;border-radius:20px;font-weight:800;white-space:nowrap}.completed{background:#eaf8f0;color:var(--success)}.progress{background:#fff3da;color:var(--warning)}.scheduled{background:#edf2ff;color:var(--primary)}.progress{height:5px;background:#edf0f5;border-radius:20px;overflow:hidden;margin-top:9px}.progress i{display:block;height:100%;background:linear-gradient(90deg,var(--primary),#7590f0);border-radius:20px;transition:width 1s ease}.skill-row{position:relative;padding:12px 0;border-bottom:1px solid var(--line)}.skill-row:last-child{border-bottom:0}.skill-row>div:first-child{display:flex;justify-content:space-between;padding-right:5px}.skill-row b{font-size:10px}.skill-row strong{position:absolute;right:0;top:12px;color:var(--primary);font-size:9px}.certificate-row{display:flex;align-items:center;gap:11px;padding:13px 0;border-bottom:1px solid var(--line)}.certificate-row:last-child{border-bottom:0}.cert-icon{width:34px;height:34px;border-radius:10px;background:#f2edff;color:#7042c4;display:grid;place-items:center;font-weight:800}.certificate-row b{font-size:10px}.certificate-row>span{margin-left:auto;font-size:7px;padding:5px 7px;border-radius:15px;background:#eef9f3;color:var(--success);font-weight:800}.timeline-item{display:flex;gap:12px;padding:0 0 17px;position:relative}.timeline-item:last-child{padding-bottom:0}.timeline-dot{width:9px;height:9px;background:var(--primary);border-radius:50%;margin-top:3px;box-shadow:0 0 0 5px var(--soft);flex:0 0 9px}.timeline-item b{font-size:10px}.timeline-item p{margin:5px 0 4px;color:var(--muted);font-size:8px}.timeline-item span{font-size:7px;color:var(--primary);font-weight:750}.dark{--bg:#0b1120;--surface:#121b2c;--surface2:#182238;--text:#edf2fb;--muted:#98a5ba;--line:#28354c;--soft:#1d2a4c;--shadow:0 18px 55px rgba(0,0,0,.24)}body.dark .sidebar,body.dark .topbar{background:rgba(14,21,34,.9)}body.dark .theme-toggle i{transform:translateX(31px);background:#263453}.dark .theme-toggle .sun{opacity:.45}.dark .theme-toggle .moon{opacity:1}.dark .hero{background:radial-gradient(circle at 90% 10%,rgba(75,108,240,.16),transparent 32%),linear-gradient(135deg,#121b2c,#10182a)}.dark .search-box{border-color:#33415b}.dark .mini-initials,.dark .initials{background:linear-gradient(145deg,#1d2b4d,#17233c)}.dark .soft-btn{background:#1c2949}.dark .completed{background:#143927}.dark .progress{background:#443516}.dark .scheduled{background:#1c2b4e}.dark .status{background:#153927}.dark .employee-card button:hover{color:#fff}.dark .certificate-row>span{background:#143927}.dark .message{background:#3b2222;border-color:#603838}@keyframes rise{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}@keyframes cardIn{from{opacity:0;transform:translateY(20px) scale(.98)}to{opacity:1;transform:none}}@keyframes pulse{0%,100%{box-shadow:0 0 0 4px rgba(39,181,107,.1)}50%{box-shadow:0 0 0 8px rgba(39,181,107,.03)}}@keyframes spin{to{transform:rotate(360deg)}}@keyframes float{50%{transform:translate(-15px,15px)}}@media(max-width:1100px){.info-card{grid-template-columns:auto 1fr}.steps{grid-column:2}.employee-cards{grid-template-columns:repeat(2,1fr)}.detail-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:850px){.sidebar{transform:translateX(-100%);box-shadow:20px 0 50px rgba(0,0,0,.18)}.sidebar.open{transform:none}.main-content{margin-left:0;width:100%}.menu-btn{display:block}.topbar{padding:0 18px}.hero,.info-card,.directory-section{margin-left:18px;margin-right:18px}.detail-wrap{padding:25px 18px 0}.detail-grid{grid-template-columns:repeat(2,1fr)}.section-grid{grid-template-columns:1fr}.stat-strip{grid-template-columns:repeat(2,1fr)}}@media(max-width:580px){.hero{padding:29px 21px}.hero h1{font-size:29px}.search-box{height:auto;padding:7px;flex-wrap:wrap}.search-box input{height:44px}.search-box button{width:100%}.info-card{grid-template-columns:auto 1fr}.steps{grid-column:1/-1;display:grid;grid-template-columns:1fr;gap:6px}.employee-cards{grid-template-columns:1fr}.detail-grid,.stat-strip{grid-template-columns:1fr}.identity-card{align-items:flex-start;flex-direction:column}.identity-actions{width:100%}.soft-btn,.identity-actions .outline-btn{flex:1}.identity-main{align-items:flex-start}.identity-card h1{font-size:22px}.panel{padding:17px}.item-title{align-items:flex-start;flex-direction:column;gap:5px}}@media print{.sidebar,.topbar,.back-link,.identity-actions,footer{display:none!important}.main-content{margin:0;width:100%}.detail-wrap{padding:0}.identity-card,.panel,.data-card,.stat-strip>div{box-shadow:none}}


/* ------------------------------------------------------------
   STRUCTURED PUBLIC DIRECTORY POLISH
   ------------------------------------------------------------ */
html { scroll-behavior: smooth; }
body { min-height: 100vh; }
button, input { font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid rgba(49,87,213,.22); outline-offset: 3px; }

.theme-toggle {
  position: relative;
  width: 66px;
  height: 36px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface2);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.05), 0 5px 16px rgba(30,48,90,.06);
  cursor: pointer;
  overflow: hidden;
  transition: background .35s ease, border-color .35s ease, box-shadow .35s ease, transform .2s ease;
}
.theme-toggle:hover { transform: translateY(-1px); box-shadow: 0 9px 22px rgba(30,48,90,.12); }
.theme-toggle:active { transform: scale(.96); }
.theme-toggle i {
  position: absolute;
  z-index: 2;
  top: 4px;
  left: 4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 10px rgba(20,30,60,.18);
  transition: transform .42s cubic-bezier(.68,-.35,.25,1.35), background .35s ease;
}
.theme-icon { position: absolute; z-index: 3; top: 9px; font-size: 15px; line-height: 1; transition: opacity .3s ease, transform .35s ease; pointer-events: none; }
.theme-icon.sun { left: 10px; color: #d18a00; opacity: 1; }
.theme-icon.moon { right: 10px; color: #dbe5ff; opacity: .35; }
body.dark .theme-toggle i { transform: translateX(30px); background: #263453; }
body.dark .theme-icon.sun { opacity: .35; transform: rotate(-25deg) scale(.85); }
body.dark .theme-icon.moon { opacity: 1; transform: rotate(12deg) scale(1.05); }

.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero-content, .search-box, .suggestions { position: relative; z-index: 2; }
.hero-orb { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(1px); opacity: .5; animation: float 7s ease-in-out infinite; }
.orb-one { width: 210px; height: 210px; right: 8%; top: -90px; background: rgba(102,130,235,.13); }
.orb-two { width: 130px; height: 130px; left: 35%; bottom: -70px; background: rgba(91,205,161,.09); animation-delay: -3s; }

.employee-card, .data-card, .panel, .identity-card, .stat-strip > div, .info-card { will-change: transform; }
.employee-card { animation: cardIn .65s cubic-bezier(.2,.75,.25,1) both; animation-delay: var(--delay, 0ms); }
.card-action { position: relative; overflow: hidden; }
.card-action::after { content: ''; position: absolute; inset: 0; transform: translateX(-110%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent); transition: transform .55s ease; }
.card-action:hover::after { transform: translateX(110%); }

.info-card { transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease; }
.info-card:hover { transform: translateY(-4px); box-shadow: 0 18px 45px rgba(30,48,90,.09); border-color: #d4ddf3; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* ============================================================
   EMPLOYEE DETAILS — TYPOGRAPHY + TAP-TO-OPEN RECORD BOXES
   ============================================================ */
:root {
  --font-display: "Manrope", "Inter", system-ui, sans-serif;
  --font-body: "Manrope", "Inter", system-ui, sans-serif;
}

body,
button,
input {
  font-family: var(--font-body);
  font-size: 15px;
}

.topbar .breadcrumb {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.topbar .breadcrumb a {
  font-weight: 800;
  text-decoration: none;
}
.topbar .breadcrumb b { color: #a5afbf; font-weight: 600; }
.topbar .breadcrumb strong { font-weight: 800; color: var(--text); }

.detail-wrap { padding-top: 34px; }
.identity-card { padding: 38px; }
.identity-card h1,
.detail-heading h2,
.record-title b,
.data-card strong {
  font-family: var(--font-display);
}
.identity-card h1 { font-size: clamp(27px, 3vw, 36px); letter-spacing: -0.035em; }
.identity-line { font-size: 15px; }
.back-link { font-size: 15px; font-weight: 700; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skeleton-card {
  min-height: 210px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.skeleton-card::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

.skeleton-top,
.skeleton-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.skeleton-shape {
  display: block;
  border-radius: 6px;
  background: var(--line);
}

.skeleton-avatar { width: 42px; height: 42px; border-radius: 13px; }
.skeleton-pill { width: 58px; height: 20px; border-radius: 20px; }
.skeleton-title { width: 64%; height: 15px; margin-top: 2px; }
.skeleton-copy { width: 42%; height: 10px; }
.skeleton-meta { margin-top: auto; padding-top: 13px; border-top: 1px solid var(--line); }
.skeleton-meta .skeleton-shape { width: 34%; height: 8px; }
.skeleton-meta .skeleton-shape:last-child { width: 44%; }
.skeleton-button { height: 36px; margin-top: 1px; border-radius: 10px; }

@keyframes skeleton-shimmer {
  to { transform: translateX(100%); }
}

body.dark .skeleton-card::after {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent);
}
.data-card { min-height: 132px; padding: 26px 28px; }
.data-card small { font-size: 13px; }
.data-card strong { font-size: 19px; }
.data-card span { font-size: 12px; }

.records-section { margin-top: 48px; }
.records-heading { margin-bottom: 18px; }
.records-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.record-accordion {
  display: grid;
  gap: 16px;
}

.record-box {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 12px 36px rgba(30,48,90,.07);
  overflow: hidden;
  transition: transform .32s ease, box-shadow .32s ease, border-color .32s ease, background .35s ease;
}
.record-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(30,48,90,.11);
  border-color: #cfd9ee;
}
.record-box.open {
  border-color: rgba(49,87,213,.35);
  box-shadow: 0 20px 55px rgba(49,87,213,.11);
}

.record-trigger {
  width: 100%;
  min-height: 88px;
  border: 0;
  background: transparent;
  color: var(--text);
  display: grid;
  grid-template-columns: 48px minmax(0,1fr) auto 28px;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  text-align: left;
  cursor: pointer;
}
.record-trigger:focus-visible { outline-offset: -4px; }
.record-icon {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: linear-gradient(145deg, var(--soft), rgba(237,242,255,.45));
  border: 1px solid rgba(49,87,213,.12);
  font-size: 20px;
  font-weight: 900;
  transition: transform .35s ease, background .35s ease;
}
.record-box.open .record-icon { transform: rotate(-5deg) scale(1.04); }
.record-title { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.record-title b { font-size: 18px; letter-spacing: -0.02em; }
.record-title small { color: var(--muted); font-size: 12px; font-weight: 600; }
.record-trigger .count { white-space: nowrap; }
.record-chevron {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface2);
  color: var(--muted);
  font-size: 19px;
  transition: transform .35s ease, background .35s ease, color .35s ease;
}
.record-box.open .record-chevron {
  transform: rotate(180deg);
  color: var(--primary);
  background: var(--soft);
}
.record-content {
  border-top: 1px solid var(--line);
  animation: recordOpen .38s cubic-bezier(.2,.75,.25,1) both;
}
.record-inner { padding: 20px 22px 24px; }

@keyframes recordOpen {
  from { opacity: 0; transform: translateY(-7px); }
  to { opacity: 1; transform: translateY(0); }
}

.record-inner .training-row,
.record-inner .skill-row,
.record-inner .certificate-row,
.record-inner .timeline-item {
  animation: itemIn .4s ease both;
}
.record-inner > :nth-child(2) { animation-delay: 50ms; }
.record-inner > :nth-child(3) { animation-delay: 100ms; }
.record-inner > :nth-child(4) { animation-delay: 150ms; }
.record-inner > :nth-child(5) { animation-delay: 200ms; }
@keyframes itemIn { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }

body.dark .record-box { box-shadow: 0 18px 48px rgba(0,0,0,.22); }
body.dark .record-box:hover { border-color: rgba(132,156,230,.35); }

.back-leading-link {
  min-height: 36px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background .25s ease, border-color .25s ease, transform .2s ease;
}
.directory-return {
  display: flex;
  justify-content: flex-end;
  padding: 16px 38px 0;
}
.back-leading-link:hover {
  background: var(--soft);
  border-color: rgba(49,87,213,.28);
  transform: translateY(-1px);
}

.nav-icon {
  width: 20px;
  display: inline-flex;
  justify-content: center;
}

.search-icon {
  font-size: 16px;
}

.icon-btn,
.soft-btn,
.outline-btn,
.back-link {
  gap: 8px;
}

.record-chevron {
  font-size: 12px;
}

@media (max-width: 760px) {
  .topbar { padding: 0 16px; }
  .topbar .breadcrumb { font-size: 15px; gap: 5px; }
  .directory-return { padding: 12px 16px 0; }
  .detail-wrap { padding-top: 24px; }
  .identity-card { padding: 25px 20px; }
  .identity-card h1 { font-size: 27px; }
  .data-card { min-height: 116px; padding: 22px; }
  .records-section { margin-top: 38px; }
  .record-trigger {
    min-height: 82px;
    grid-template-columns: 42px minmax(0,1fr) 24px;
    gap: 12px;
    padding: 16px;
  }
  .record-icon { width: 42px; height: 42px; border-radius: 13px; }
  .record-title b { font-size: 16px; }
  .record-title small { font-size: 11px; }
  .record-trigger .count { display: none; }
  .record-inner { padding: 16px; }
}

@media (max-width: 420px) {
  .topbar .breadcrumb a { max-width: 132px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar .breadcrumb strong { max-width: 128px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

.brand-logo {
  width: 210px;
  max-width: 100%;
  height: 76px;
  object-fit: contain;
  flex: none;
}

.brand {
  flex-direction: column;
  gap: 0;
  align-items: center;
}

.brand-copy {
  text-align: center;
}

.brand-copy span {
  margin-top: 0;
  font-size: 10px;
}

.profile-facts { margin-top: 28px; }
.profile-fact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.profile-fact {
  display: flex;
  min-width: 0;
  min-height: 104px;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(30,48,90,.045);
}
.profile-fact small { color: var(--muted); font-size: 12px; font-weight: 650; }
.profile-fact strong { color: var(--text); font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.assigned-training-section { margin-top: 32px; }
.assigned-course-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.assigned-course-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(30,48,90,.045);
}
.assigned-course-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.assigned-course-category { color: var(--primary); font-size: 11px; font-weight: 750; }
.assigned-course-heading h3 { margin: 7px 0 0; color: var(--text); font-size: 17px; line-height: 1.4; overflow-wrap: anywhere; }
.assigned-course-status { flex: none; padding: 6px 9px; border-radius: 999px; background: var(--soft); color: var(--primary); font-size: 11px; font-weight: 700; }
.assigned-course-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
.assigned-course-facts div { min-width: 0; }
.assigned-course-facts dt { color: var(--muted); font-size: 11px; }
.assigned-course-facts dd { margin: 5px 0 0; color: var(--text); font-size: 13px; font-weight: 650; line-height: 1.4; overflow-wrap: anywhere; }
.assigned-course-progress-label { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; color: var(--muted); font-size: 12px; }
.assigned-course-progress-label strong { color: var(--text); }
.assigned-course-progress { height: 8px; overflow: hidden; border-radius: 99px; background: var(--line); }
.assigned-course-progress span { display: block; height: 100%; border-radius: inherit; background: var(--primary); }
.assigned-course-provider { margin: 12px 0 8px; color: var(--muted); font-size: 12px; }
.assigned-course-launch { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--primary); font-size: 13px; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.assigned-course-launch:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.assigned-course-link-missing { margin: 12px 0 0; color: var(--muted); font-size: 12px; }
.assigned-course-empty { grid-column: 1 / -1; margin: 0; padding: 24px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); text-align: center; }
.public-skill-card { padding: 17px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.public-skill-card + .public-skill-card,
.public-certificate-card + .public-certificate-card { margin-top: 12px; }
.public-record-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.public-record-heading > div > span,
.certificate-number { color: var(--primary); font-size: 11px; font-weight: 700; }
.public-record-heading h3,
.certificate-copy h3 { margin: 5px 0 0; color: var(--text); font-size: 16px; line-height: 1.4; overflow-wrap: anywhere; }
.public-record-heading > strong { flex: none; padding: 6px 9px; border-radius: 999px; background: var(--soft); color: var(--primary); font-size: 11px; }
.public-record-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-top: 13px; color: var(--muted); font-size: 12px; }
.skill-score-track { height: 6px; margin-top: 12px; overflow: hidden; border-radius: 99px; background: var(--line); }
.skill-score-track span { display: block; height: 100%; border-radius: inherit; background: var(--primary); }
.public-certificate-card { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.certificate-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; background: var(--soft); color: var(--primary); }
.certificate-copy { min-width: 0; }
.certificate-copy p { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.record-empty { margin: 0; padding: 20px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); text-align: center; }
.records-section { margin-top: 42px; }
.record-accordion { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

@media (max-width: 760px) {
  .profile-fact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .assigned-course-grid { grid-template-columns: minmax(0, 1fr); }
  .assigned-course-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .record-accordion { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 420px) {
  .profile-fact-grid { grid-template-columns: minmax(0, 1fr); }
  .profile-fact { min-height: 76px; }
  .assigned-course-facts { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .assigned-course-heading { flex-direction: column; }
  .public-certificate-card { grid-template-columns: 38px minmax(0, 1fr); gap: 10px; padding: 12px; }
  .public-certificate-card .assigned-course-status { grid-column: 2; justify-self: start; }
  .certificate-mark { width: 38px; height: 38px; }
}

.directory-filters {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 12px;
  margin: 0 0 20px;
}

.directory-filter {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.directory-filter select,
.directory-filter-reset {
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
}

.directory-filter select { width: 100%; }

.directory-filter-reset {
  background: var(--surface2);
  cursor: pointer;
  font-weight: 650;
}

.directory-export {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.directory-filter-reset:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.directory-filter-reset:hover { border-color: var(--primary); color: var(--primary); }
.directory-empty { grid-column: 1 / -1; padding: 24px; color: var(--muted); text-align: center; }

@media (max-width: 1000px) {
  .directory-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .directory-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 420px) {
  .directory-filters { grid-template-columns: minmax(0, 1fr); }
}

.time-greeting{display:inline-flex;align-items:center;padding:.5rem .9rem;border-radius:14px;background:linear-gradient(115deg,rgba(37,99,235,.13),rgba(124,58,237,.12));border:1px solid rgba(59,130,246,.22);font-weight:800;box-shadow:0 8px 22px rgba(37,99,235,.08)}.employee-notification-panel{padding:18px;margin:16px 0;border:1px solid #dbeafe;border-radius:16px;background:#fff;box-shadow:0 12px 30px rgba(15,23,42,.08)}.employee-notification{padding:12px;border-bottom:1px solid #e2e8f0}.employee-notification.unread{background:#eff6ff;border-radius:10px}.employee-notification p{margin:4px 0}.employee-notification small{font-size:11px;color:#64748b}.employee-notification button{margin:8px 0;padding:6px 10px;border:0;border-radius:8px;background:#2563eb;color:white}

body.dark {
  color-scheme: dark;
  --bg:#0b1220;
  --surface:#111827;
  --surface2:#172033;
  --text:#e5e7eb;
  --muted:#a3b1c5;
  --line:#2b3950;
  --primary:#8aa4ff;
  --primary2:#5f7df0;
  --soft:#1b2b4a;
  --success:#4ade80;
  --warning:#fbbf24;
  --shadow:0 18px 55px rgba(0,0,0,.3);
}
body.dark .sidebar,
body.dark .topbar,
body.dark .hero,
body.dark .info-card,
body.dark .employee-card,
body.dark .identity-card,
body.dark .panel,
body.dark .data-card,
body.dark .stat-strip>div,
body.dark .record-box,
body.dark .assigned-course-card,
body.dark .public-skill-card,
body.dark .employee-notification-panel {
  background-color:var(--surface);
  border-color:var(--line);
}
body.dark .sidebar { background:rgba(17,24,39,.96); }
body.dark .topbar { background:rgba(17,24,39,.94); }
body.dark .hero { background:radial-gradient(circle at 90% 10%,rgba(75,108,240,.16),transparent 32%),linear-gradient(135deg,var(--surface),#15213a); }
body.dark .search-box,
body.dark .directory-filter,
body.dark .directory-filter-reset,
body.dark .suggestions button,
body.dark .record-trigger,
body.dark input,
body.dark select,
body.dark textarea {
  background-color:var(--surface2);
  border-color:var(--line);
  color:var(--text);
}
body.dark input::placeholder,
body.dark textarea::placeholder { color:var(--muted); }
body.dark .employee-notification { border-color:var(--line); }
body.dark .employee-notification.unread { background:#1b2b4a; }
body.dark .employee-notification-panel { border-color:var(--line); }
body.dark .record-box:hover { border-color:rgba(138,164,255,.45); }
