/* UI005 — Profile and employee Help Center. Scoped to avoid legacy/admin regressions. */
:root{--am-brown:#881337;--am-brown-dark:#6F0F2D;--am-warm:#F8FAFC;--am-line:#E2E8F0;--am-ink:#0F172A;--am-muted:#64748B;--am-success:#2f8f58}
.am-profile-page,.am-help-page{min-height:100vh;background:#F8FAFC;padding:72px 16px calc(98px + env(safe-area-inset-bottom));color:var(--am-ink)}
.am-profile-page *,.am-help-page *{box-sizing:border-box}
.am-profile-hero,.am-profile-menu,.am-profile-panel{max-width:760px;margin-left:auto;margin-right:auto}
.am-profile-hero{position:relative;display:grid;overflow:hidden;grid-template-columns:92px minmax(0,1fr);column-gap:14px;padding:22px 18px 16px;border:1px solid rgba(136, 19, 55,.14);border-radius:22px;background:#881337;box-shadow:0 10px 26px rgba(136,19,55,.18);color:#fff}
.am-profile-hero:after{content:"";position:absolute;width:190px;height:190px;border-radius:50%;right:-90px;top:-105px;background:rgba(255,255,255,.07)}
.am-profile-avatar-wrap{position:relative;z-index:1;width:92px}
.am-profile-avatar{display:block;width:82px;height:82px;object-fit:cover;border:3.5px solid rgba(255,255,255,.82);border-radius:50%;background:#fff;box-shadow:0 6px 15px rgba(15,23,42,.22)}
.am-profile-photo-actions{display:flex;gap:5px;margin-top:7px}
.am-profile-photo-actions input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.am-photo-action{display:grid;width:36px;height:28px;place-items:center;margin:0;padding:0;border:1px solid rgba(255,255,255,.28);border-radius:999px;background:rgba(255,255,255,.14);color:#fff;font-size:11px;font-weight:700;cursor:pointer;-webkit-tap-highlight-color:transparent}
.am-photo-action span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.am-photo-action ion-icon{font-size:15px}
.am-profile-identity{position:relative;z-index:1;min-width:0;padding-top:2px}
.am-profile-eyebrow{display:block;margin-bottom:3px;color:rgba(255,255,255,.78);font-size:10px;font-weight:800;letter-spacing:.11em;text-transform:uppercase}
.am-profile-identity h1{overflow:hidden;margin:0;color:#fff;font-size:21px;font-weight:750;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}
.am-profile-identity p{margin:4px 0 7px;color:rgba(255,255,255,.86);font-size:12px}
.am-profile-position{display:inline-block;max-width:100%;overflow:hidden;padding:4px 10px;border-radius:999px;background:rgba(255,255,255,.16);font-size:11px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}
.am-profile-meta{position:relative;z-index:1;display:grid;grid-column:1/-1;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:15px;padding-top:14px;border-top:1px solid rgba(255,255,255,.18)}
.am-profile-meta div{min-width:0}
.am-profile-meta ion-icon{float:left;margin:1px 5px 0 0;color:rgba(255,255,255,.78);font-size:15px}
.am-profile-meta span{display:block;color:rgba(255,255,255,.72);font-size:9px;font-weight:700;letter-spacing:.04em;line-height:1.2;text-transform:uppercase}
.am-profile-meta strong{display:block;overflow:hidden;margin-top:2px;color:#fff;font-size:11.5px;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}
.am-profile-menu{overflow:hidden;margin-top:14px;border:1px solid var(--am-line);border-radius:18px;background:#fff;box-shadow:0 4px 16px rgba(15,23,42,.045)}
.am-profile-menu-item{position:relative;display:grid;width:100%;grid-template-columns:38px 1fr 18px;align-items:center;gap:11px;padding:12px 15px;border:0;border-bottom:1px solid #F1F5F9;background:#fff;color:var(--am-ink);text-align:left;text-decoration:none;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background-color .15s ease,color .15s ease}
.am-profile-menu-item:last-child{border-bottom:0}
.am-profile-menu-item:focus,.am-profile-menu-item:hover{background:#F8FAFC;color:var(--am-brown-dark);text-decoration:none;outline:none}
.am-profile-menu-item.is-active{background:#FFF5F7}
.am-profile-menu-item.is-active::before{content:"";position:absolute;left:0;top:10px;bottom:10px;width:3.5px;border-radius:0 4px 4px 0;background:#881337}
.am-menu-icon{display:grid;width:36px;height:36px;place-items:center;border-radius:11px;background:#FFF1F4;color:var(--am-brown);font-size:19px}
.am-profile-menu-item>span:nth-child(2){min-width:0}
.am-profile-menu-item strong,.am-profile-menu-item small{display:block}
.am-profile-menu-item strong{font-size:13.5px;font-weight:700;line-height:1.25}
.am-profile-menu-item small{margin-top:2px;color:var(--am-muted);font-size:11px}
.am-profile-menu-item>ion-icon{color:#94A3B8;font-size:17px}
.am-profile-menu-item.is-active>ion-icon{color:#881337}
.am-profile-menu-item--danger strong,.am-profile-menu-item--danger>.am-menu-icon{color:#BE123C}
.am-profile-menu-item--danger>.am-menu-icon{background:#FFE4E6}
.am-profile-panel{margin-top:14px;padding:18px;border:1px solid var(--am-line);border-radius:18px;background:#fff;box-shadow:0 6px 20px rgba(15,23,42,.05)}
.am-profile-panel[hidden]{display:none!important}
.am-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px;padding-bottom:13px;border-bottom:1px solid #F1F5F9}
.am-panel-heading span:first-child,.am-panel-eyebrow{display:block;color:var(--am-brown);font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.am-panel-heading h2{margin:3px 0 0;color:var(--am-ink);font-size:17.5px;font-weight:800;letter-spacing:-.01em}
.am-panel-heading>ion-icon{color:var(--am-brown);font-size:22px}
.am-readonly-badge,.am-current-badge{display:inline-flex;align-items:center;gap:4px;flex:0 0 auto;padding:5px 10px;border-radius:999px;background:#FFF1F4;border:1px solid #FECDD3;color:var(--am-brown)!important;font-size:10.5px!important;font-weight:700;letter-spacing:0!important;white-space:nowrap}
.am-readonly-badge ion-icon{font-size:12px}
.am-current-badge{background:#ECFDF5;border-color:#A7F3D0;color:#047857!important}
/* Modern Grouped Personal Data Layout */
.am-pinfo-group{margin-bottom:16px}
.am-pinfo-group:last-of-type{margin-bottom:0}
.am-pinfo-group__head{display:flex;align-items:center;gap:7px;margin-bottom:10px;color:#475569;font-size:11.5px;font-weight:800;letter-spacing:.03em;text-transform:uppercase}
.am-pinfo-group__dot{width:7px;height:7px;border-radius:50%;background:#881337;flex:0 0 7px}
.am-pinfo-company-banner{display:flex;align-items:center;gap:11px;margin-bottom:10px;padding:12px 14px;border:1px solid #FECDD3;border-radius:13px;background:#FFF8F9}
.am-pinfo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.am-pinfo-tile{display:flex;align-items:flex-start;gap:10px;min-width:0;padding:12px 13px;border:1px solid #E2E8F0;border-radius:13px;background:#F8FAFC;transition:border-color .15s ease,background-color .15s ease}
.am-pinfo-tile:hover{border-color:#CBD5E1;background:#FFFFFF}
.am-pinfo-tile__icon{display:inline-flex;flex:0 0 34px;width:34px;height:34px;align-items:center;justify-content:center;border-radius:10px;background:#F1F5F9;color:#475569;font-size:17px}
.am-pinfo-tile__icon.is-maroon{background:#FFF1F4;color:#881337;box-shadow:inset 0 0 0 1px #FECDD3}
.am-pinfo-tile__icon.is-indigo{background:#EEF2FF;color:#4338CA;box-shadow:inset 0 0 0 1px #C7D2FE}
.am-pinfo-tile__icon.is-sky{background:#F0F9FF;color:#0284C7;box-shadow:inset 0 0 0 1px #BAE6FD}
.am-pinfo-tile__icon.is-emerald{background:#ECFDF5;color:#059669;box-shadow:inset 0 0 0 1px #A7F3D0}
.am-pinfo-tile__icon.is-amber{background:#FFFBEB;color:#D97706;box-shadow:inset 0 0 0 1px #FDE68A}
.am-pinfo-tile__icon.is-violet{background:#F5F3FF;color:#7C3AED;box-shadow:inset 0 0 0 1px #DDD6FE}
.am-pinfo-tile__icon.is-rose{background:#FFF1F2;color:#E11D48;box-shadow:inset 0 0 0 1px #FECDD3}
.am-pinfo-tile__icon.is-teal{background:#F0FDFA;color:#0D9488;box-shadow:inset 0 0 0 1px #99F6E4}
.am-pinfo-tile__body{min-width:0;flex:1 1 auto}
.am-pinfo-tile__label{display:block;margin-bottom:2px;color:#64748B;font-size:10.5px;font-weight:600;line-height:1.2}
.am-pinfo-tile__value{display:block;color:#0F172A;font-size:13px;font-weight:700;line-height:1.35;overflow-wrap:anywhere}
.am-pinfo-tile__value.is-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12.5px;letter-spacing:.01em}
.am-profile-note{display:flex;align-items:flex-start;gap:9px;margin:16px 0 0;padding:11px 13px;border:1px solid #E2E8F0;border-left:3px solid #881337;border-radius:11px;background:#F8FAFC;color:#475569;font-size:11.5px;line-height:1.5}
.am-profile-note ion-icon{flex:0 0 auto;margin-top:1px;color:var(--am-brown);font-size:17px}
.am-profile-panel .form-group label{color:#334155;font-size:12px;font-weight:700}
.am-profile-panel .form-control{height:44px;border-color:#CBD5E1;border-radius:10px;background:#fff;font-size:13px}
.am-profile-panel .form-control[readonly]{background:#F8FAFC;color:#64748B}
.am-profile-panel .form-group small{display:block;margin-top:6px;color:var(--am-muted);font-size:11px;line-height:1.4}
.am-password-field{position:relative}
.am-password-field .form-control{padding-right:46px}
.am-password-toggle{position:absolute;right:2px;top:2px;display:grid;width:41px;height:41px;place-items:center;border:0;background:transparent;color:var(--am-brown);font-size:20px}
.am-security-submit{display:flex;align-items:center;justify-content:center;gap:7px;height:44px;border-color:var(--am-brown);border-radius:11px;background:var(--am-brown);background-image:none;font-weight:700}
.am-device-card{display:grid;grid-template-columns:44px 1fr auto;align-items:center;gap:10px;padding:13px;border:1px solid #E2E8F0;border-radius:13px;background:#F8FAFC}
.am-device-icon{display:grid;width:42px;height:42px;place-items:center;border-radius:12px;background:#FFF1F4;color:var(--am-brown);font-size:21px}
.am-device-card strong{font-size:13.5px;color:#0F172A}.am-device-card p{margin:2px 0 0;color:var(--am-muted);font-size:11px}.am-device-status{color:#059669;font-size:11px;font-weight:700}

/* ==========================================================================
   Employee Help Center (.am-help-page) — Mobile-First, High-Readability UI
   Amanda Maroon (#881337) + Cool Slate (#F8FAFC / #E2E8F0 / #0F172A)
   ========================================================================== */
.am-help-page{
  padding:70px 14px calc(102px + env(safe-area-inset-bottom));
  background:#F8FAFC;
  color:#0F172A;
}
.am-help-page .help-page-mobile{
  max-width:760px;
  margin:0 auto;
  padding:0;
}
.am-help-page .help-center--employee{
  max-width:none;
  padding:0!important;
  color:#0F172A;
}

/* 1. Solid Amanda Maroon Hero + Ergonomic Search */
.am-help-page .help-hero{
  position:relative;
  min-height:0;
  margin:0 0 14px!important;
  padding:20px 17px 17px!important;
  border:1px solid rgba(255,255,255,.12)!important;
  border-radius:18px!important;
  background:#881337!important;
  box-shadow:0 10px 26px rgba(136,19,55,.18)!important;
  color:#FFFFFF;
}
.am-help-page .help-hero:before{
  width:180px;height:180px;right:-65px;top:-80px;background:rgba(255,255,255,.07);
}
.am-help-page .help-hero:after{
  display:none;
}
.am-help-page .help-hero-copy{max-width:none}
.am-help-page .help-hero-art{display:none!important}
.am-help-page .help-eyebrow{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-bottom:6px;
  color:rgba(255,255,255,.82)!important;
  font-size:11px!important;
  font-weight:800;
  letter-spacing:.07em;
  text-transform:uppercase;
}
.am-help-page .help-hero h1{
  margin:0 0 6px!important;
  color:#FFFFFF!important;
  font-size:23px!important;
  font-weight:800!important;
  line-height:1.22!important;
  letter-spacing:-.015em;
}
.am-help-page .help-hero p{
  max-width:600px;
  margin:0 0 15px!important;
  color:rgba(255,255,255,.88)!important;
  font-size:13px!important;
  line-height:1.5!important;
}
.am-help-page .help-hero-search{
  display:grid!important;
  grid-template-columns:34px minmax(0,1fr) auto;
  align-items:center;
  min-height:48px;
  padding:4px 4px 4px 10px!important;
  border:0!important;
  border-radius:13px!important;
  background:#FFFFFF!important;
  box-shadow:0 6px 18px rgba(15,23,42,.16)!important;
}
.am-help-page .help-hero-search ion-icon{
  color:#64748B;
  font-size:19px;
  justify-self:center;
}
.am-help-page .help-hero-search input{
  width:100%!important;
  min-width:0;
  height:40px!important;
  padding:0 8px 0 4px!important;
  border:0!important;
  background:transparent!important;
  color:#0F172A!important;
  font-size:14px!important;
  font-weight:500;
  box-shadow:none!important;
}
.am-help-page .help-hero-search input::placeholder{
  color:#94A3B8;
  font-size:13.5px;
}
.am-help-page .help-hero-search button{
  height:40px!important;
  min-width:62px!important;
  margin:0!important;
  padding:0 16px!important;
  border:0!important;
  border-radius:10px!important;
  background:#881337!important;
  color:#FFFFFF!important;
  font-size:13px!important;
  font-weight:700!important;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}
.am-help-page .help-hero-search button:active{background:#6F0F2D!important}
.am-help-page .help-search-examples{
  display:flex!important;
  overflow-x:auto;
  flex-wrap:nowrap;
  align-items:center;
  gap:7px;
  margin-top:12px!important;
  padding:2px 0 1px;
  scrollbar-width:none;
}
.am-help-page .help-search-examples::-webkit-scrollbar{display:none}
.am-help-page .help-search-examples span{display:none}
.am-help-page .help-search-examples button{
  flex:0 0 auto;
  min-height:32px;
  padding:6px 12px!important;
  border:1px solid rgba(255,255,255,.26)!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.13)!important;
  color:#FFFFFF!important;
  font-size:12px!important;
  font-weight:600!important;
  white-space:nowrap;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}
.am-help-page .help-search-examples button:active{
  background:rgba(255,255,255,.24)!important;
}

/* 2. Quick-Start 2-Column Tactile Grid (Zero Horizontal Cut-Off) */
.am-help-page .help-center--employee .help-start-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:9px!important;
  margin:0 0 14px!important;
  padding:0!important;
  overflow:visible!important;
}
.am-help-page .help-center--employee .help-start-card{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  width:100%!important;
  min-width:0!important;
  min-height:64px!important;
  padding:11px 12px!important;
  border:1px solid #E2E8F0!important;
  border-radius:14px!important;
  background:#FFFFFF!important;
  box-shadow:0 2px 8px rgba(15,23,42,.04)!important;
  text-align:left;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
  transition:border-color .15s ease,transform .15s ease,background-color .15s ease;
}
.am-help-page .help-center--employee .help-start-card:active{
  transform:scale(.985);
  background:#FFF8F9!important;
  border-color:#FECDD3!important;
}
.am-help-page .help-center--employee .help-start-icon{
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  flex:0 0 38px!important;
  width:38px!important;
  height:38px!important;
  border-radius:11px!important;
  background:#FFF1F4!important;
  color:#881337!important;
}
.am-help-page .help-center--employee .help-start-icon ion-icon{font-size:19px!important}
.am-help-page .help-center--employee .help-start-card>span:nth-child(2){
  min-width:0!important;
  flex:1 1 auto;
}
.am-help-page .help-center--employee .help-start-card strong{
  display:block!important;
  margin:0!important;
  color:#0F172A!important;
  font-size:13px!important;
  font-weight:700!important;
  line-height:1.28!important;
  white-space:normal!important;
}
.am-help-page .help-center--employee .help-start-card small{
  display:none!important;
}
.am-help-page .help-center--employee .help-start-card>ion-icon:last-child{
  display:none!important;
}

/* 3. Compact Status Bar (Subtle inline counter — avoids awkward empty white bar) */
.am-help-page .help-center--employee .help-toolbar--employee{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  margin:0 0 10px!important;
  padding:0 2px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
}
.am-help-page .help-center--employee .help-mobile-category{
  display:none!important;
}
.am-help-page .help-center--employee .help-result-summary{
  margin:0!important;
  padding:0!important;
  color:#64748B!important;
  font-size:12px!important;
  font-weight:600;
}
.am-help-page .help-center--employee .help-result-summary span{
  color:#881337!important;
  font-weight:800;
}

/* 4. Relevant Context Banner (Crisp flat left accent bar inside rounded border) */
.am-help-page .help-context-banner{
  position:relative;
  overflow:hidden;
  display:grid!important;
  grid-template-columns:40px minmax(0,1fr);
  align-items:start;
  gap:11px;
  margin:0 0 14px!important;
  padding:14px 14px 14px 18px!important;
  border:1px solid #FECDD3!important;
  border-radius:15px!important;
  background:#FFF8F9!important;
}
.am-help-page .help-context-banner::before{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  left:0;
  width:4px;
  background:#881337;
}
.am-help-page .help-context-icon{
  width:40px!important;
  height:40px!important;
  flex:0 0 40px!important;
  border-radius:11px!important;
  background:#FFE4E6!important;
  color:#881337!important;
}
.am-help-page .help-context-copy>span{
  display:block;
  color:#881337!important;
  font-size:10.5px!important;
  font-weight:800!important;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.am-help-page .help-context-copy strong{
  display:block;
  margin:3px 0 4px!important;
  color:#0F172A!important;
  font-size:14.5px!important;
  font-weight:800!important;
  line-height:1.3;
}
.am-help-page .help-context-copy p{
  display:block!important;
  margin:0!important;
  color:#475569!important;
  font-size:12.5px!important;
  line-height:1.45!important;
}
.am-help-page .help-context-banner .btn{
  grid-column:1/-1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  width:100%;
  min-height:42px;
  padding:9px 14px!important;
  border:1px solid #881337!important;
  border-radius:11px!important;
  background:#881337!important;
  background-image:none!important;
  color:#FFFFFF!important;
  font-size:13px!important;
  font-weight:700!important;
  box-shadow:none!important;
}

/* 5. Clean Horizontal Swipeable Category Pills (Fix overlapping absolute count!) */
.am-help-page .help-center--employee .help-category-cards{
  display:flex!important;
  flex-wrap:nowrap!important;
  overflow-x:auto!important;
  gap:8px!important;
  margin:0 -14px 16px!important;
  padding:2px 14px 6px!important;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
}
.am-help-page .help-center--employee .help-category-cards::-webkit-scrollbar{display:none}
.am-help-page .help-center--employee .help-category-card{
  position:static!important;
  display:inline-flex!important;
  flex:0 0 auto!important;
  align-items:center!important;
  gap:6px!important;
  min-height:36px!important;
  padding:5px 11px!important;
  border:1px solid #CBD5E1!important;
  border-radius:999px!important;
  background:#FFFFFF!important;
  color:#334155!important;
  box-shadow:0 1px 3px rgba(15,23,42,.04)!important;
  transform:none!important;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}
.am-help-page .help-center--employee .help-category-icon{
  width:22px!important;
  height:22px!important;
  flex:0 0 22px!important;
  border-radius:999px!important;
  background:#FFF1F4!important;
  color:#881337!important;
}
.am-help-page .help-center--employee .help-category-icon ion-icon{font-size:13px!important}
.am-help-page .help-center--employee .help-category-name{
  padding-right:0!important;
  font-size:12px!important;
  font-weight:700!important;
  line-height:1.2!important;
  white-space:nowrap;
}
.am-help-page .help-center--employee .help-category-count{
  position:static!important;
  right:auto!important;
  top:auto!important;
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  min-width:20px!important;
  height:19px!important;
  padding:0 6px!important;
  border-radius:999px!important;
  background:#F1F5F9!important;
  color:#475569!important;
  font-size:10.5px!important;
  font-weight:700!important;
}
.am-help-page .help-center--employee .help-category-card.active{
  border-color:#881337!important;
  background:#881337!important;
  color:#FFFFFF!important;
  box-shadow:0 4px 12px rgba(136,19,55,.22)!important;
}
.am-help-page .help-center--employee .help-category-card.active .help-category-icon{
  background:rgba(255,255,255,.18)!important;
  color:#FFFFFF!important;
}
.am-help-page .help-center--employee .help-category-card.active .help-category-count{
  background:rgba(255,255,255,.20)!important;
  color:#FFFFFF!important;
}

/* 6. Section Heading + Readable Topic Cards */
.am-help-page .help-layout{display:block;margin-top:0}
.am-help-page .help-sidebar{display:none!important}
.am-help-page .help-content-area{min-width:0}
.am-help-page .help-section-heading{
  display:flex;
  flex-wrap:wrap;
  align-items:flex-start;
  justify-content:space-between;
  gap:8px 12px;
  margin:0 0 12px!important;
  padding:0 2px;
}
.am-help-page .help-section-heading>div{
  flex:1 1 220px;
  min-width:0;
}
.am-help-page .help-section-kicker{
  display:block;
  color:#881337!important;
  font-size:10.5px!important;
  font-weight:800!important;
  letter-spacing:.07em;
}
.am-help-page .help-section-heading h2{
  margin:3px 0 0!important;
  color:#0F172A!important;
  font-size:18px!important;
  font-weight:800!important;
  line-height:1.25;
}
.am-help-page .help-section-heading p{
  margin:4px 0 0!important;
  color:#64748B!important;
  font-size:12.5px!important;
  line-height:1.45!important;
}
.am-help-page .help-clear-filter{
  display:inline-flex;
  align-items:center;
  gap:5px;
  flex:0 0 auto;
  min-height:34px;
  padding:5px 10px!important;
  border:1px solid #E2E8F0!important;
  border-radius:999px!important;
  background:#FFFFFF!important;
  color:#881337!important;
  font-size:12px!important;
  font-weight:700!important;
  white-space:nowrap;
  cursor:pointer;
}

.am-help-page .help-center--employee .help-topic-grid{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:11px!important;
}
.am-help-page .help-center--employee .help-topic-card{
  min-height:0!important;
  padding:15px 16px!important;
  border:1px solid #E2E8F0!important;
  border-radius:16px!important;
  background:#FFFFFF!important;
  box-shadow:0 3px 12px rgba(15,23,42,.04)!important;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
  transition:border-color .15s ease,transform .15s ease,box-shadow .15s ease;
}
.am-help-page .help-center--employee .help-topic-card.is-featured{
  border-color:#FECDD3!important;
  background:#FFFFFF!important;
}
.am-help-page .help-center--employee .help-topic-card:active{
  transform:scale(.99);
  border-color:#FDA4AF!important;
}
.am-help-page .help-topic-card-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px!important;
}
.am-help-page .help-topic-icon{
  width:38px!important;
  height:38px!important;
  flex:0 0 38px;
  border-radius:11px!important;
  background:#FFF1F4!important;
  color:#881337!important;
}
.am-help-page .help-topic-icon ion-icon{font-size:19px!important}
.am-help-page .help-badge{
  padding:4px 9px!important;
  border-radius:999px!important;
  background:#F1F5F9!important;
  color:#475569!important;
  font-size:11px!important;
  font-weight:700!important;
  line-height:1.2;
}
.am-help-page .help-badge-popular{
  background:#FEF3C7!important;
  color:#B45309!important;
}
.am-help-page .help-topic-card h3{
  margin:0 0 6px!important;
  color:#0F172A!important;
  font-size:15.5px!important;
  font-weight:800!important;
  line-height:1.35!important;
}
.am-help-page .help-topic-card>p{
  display:-webkit-box;
  overflow:hidden;
  margin:0 0 13px!important;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
  color:#475569!important;
  font-size:13px!important;
  line-height:1.55!important;
}
.am-help-page .help-topic-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding-top:11px!important;
  border-top:1px solid #F1F5F9!important;
  color:#64748B!important;
  font-size:12px!important;
  font-weight:600;
}
.am-help-page .help-open-link{
  display:inline-flex!important;
  align-items:center!important;
  gap:5px!important;
  min-height:34px!important;
  padding:6px 12px!important;
  border-radius:999px!important;
  background:#FFF1F4!important;
  color:#881337!important;
  font-size:12.5px!important;
  font-weight:700!important;
  line-height:1.2;
}
.am-help-page .help-show-more{
  display:flex;
  width:100%;
  min-height:44px;
  align-items:center;
  justify-content:center;
  gap:7px;
  margin-top:12px;
  padding:11px 16px;
  border:1px solid #FECDD3;
  border-radius:12px;
  background:#FFF8F9;
  color:#881337;
  font-size:13px;
  font-weight:700;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}
.am-help-page .help-show-more:active{background:#FFE4E6}
.am-help-page .help-show-more[hidden]{display:none!important}

/* 7. Empty State & Bottom Quick Sections */
.am-help-page .help-empty-state{
  margin-top:10px;
  padding:30px 18px!important;
  border:1px dashed #CBD5E1!important;
  border-radius:16px!important;
  background:#FFFFFF!important;
}
.am-help-page .help-empty-icon{
  background:#FFF1F4!important;
  color:#881337!important;
}
.am-help-page .help-empty-state h3{font-size:16px;font-weight:800;color:#0F172A}
.am-help-page .help-empty-state p{font-size:13px;color:#64748B;line-height:1.5}
.am-help-page .help-quick-sections{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:10px!important;
  margin-top:16px!important;
}
.am-help-page .help-quick-card{
  display:grid!important;
  grid-template-columns:44px minmax(0,1fr) 18px!important;
  align-items:center!important;
  gap:12px!important;
  width:100%;
  min-width:0;
  padding:14px!important;
  border:1px solid #E2E8F0!important;
  border-radius:15px!important;
  background:#FFFFFF!important;
  box-shadow:0 2px 8px rgba(15,23,42,.04);
  text-align:left;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}
/* Ionicons :host enforces content-box, so 22px + 2*10px padding = 42px exact outer box */
.am-help-page .help-quick-card>ion-icon:first-child{
  display:block!important;
  width:22px!important;
  height:22px!important;
  padding:10px!important;
  border-radius:12px;
  background:#FFF1F4;
  color:#881337;
  font-size:22px!important;
  justify-self:center;
}
.am-help-page .help-quick-card>span{
  min-width:0;
}
.am-help-page .help-quick-card strong{
  color:#0F172A!important;
  font-size:14px!important;
  font-weight:800!important;
  line-height:1.25;
}
.am-help-page .help-quick-card small{
  display:block!important;
  margin-top:3px!important;
  color:#64748B!important;
  font-size:12px!important;
  line-height:1.45!important;
  -webkit-line-clamp:unset!important;
}
.am-help-page .help-quick-card>ion-icon:last-child{
  display:inline-block!important;
  color:#94A3B8;
  font-size:18px;
}

/* 8. Native Article Detail Reading Experience (Mobile-Optimized) */
.am-help-page .help-article-detail,
.am-help-page .help-article-not-found{
  max-width:760px;
  margin:0 auto!important;
  padding:0!important;
  border:1px solid #E2E8F0!important;
  border-radius:18px!important;
  background:#FFFFFF!important;
  box-shadow:0 6px 20px rgba(15,23,42,.05)!important;
  overflow:hidden;
}
.am-help-page .help-article-not-found{
  padding:28px 20px!important;
}
.am-help-page .help-article-nav{
  position:sticky;
  top:0;
  z-index:6;
  padding:12px 16px!important;
  border-bottom:1px solid #E2E8F0!important;
  background:#F8FAFC!important;
}
.am-help-page .help-article-back{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:#881337!important;
  font-size:13.5px!important;
  font-weight:700!important;
}
.am-help-page .help-article-detail>.help-article-breadcrumb{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:6px;
  padding:12px 16px 0!important;
  color:#64748B;
  font-size:12px!important;
}
.am-help-page .help-article-header{
  padding:14px 16px 16px!important;
  background:#FFFFFF!important;
  border-bottom:1px solid #F1F5F9;
}
.am-help-page .help-article-header h1{
  margin:0 0 8px!important;
  color:#0F172A!important;
  font-size:21px!important;
  font-weight:800!important;
  line-height:1.3!important;
  letter-spacing:-.015em;
}
.am-help-page .help-article-header p{
  margin:0!important;
  color:#475569!important;
  font-size:13.5px!important;
  line-height:1.55!important;
}
.am-help-page .help-article-detail>.help-article-toc{
  margin:14px 16px 0!important;
  padding:12px 13px!important;
  border:1px solid #E2E8F0!important;
  border-radius:13px!important;
  background:#F8FAFC!important;
}
.am-help-page .help-article-detail>.help-article-toc>strong{
  font-size:12px!important;
  font-weight:800;
  color:#334155;
  margin-bottom:8px;
}
.am-help-page .help-article-detail>.help-article-toc a{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:6px 11px!important;
  border:1px solid #CBD5E1!important;
  border-radius:999px!important;
  background:#FFFFFF!important;
  color:#881337!important;
  font-size:12px!important;
  font-weight:700;
}
.am-help-page .help-article-detail>.help-article-actions{
  padding:14px 16px 0!important;
}
.am-help-page .help-article-detail>.help-article-actions .btn,
.am-help-page .help-article-footer .btn{
  min-height:44px!important;
  border-color:#881337!important;
  border-radius:12px!important;
  background:#881337!important;
  background-image:none!important;
  color:#FFFFFF!important;
  font-size:13.5px!important;
  font-weight:700!important;
  box-shadow:none!important;
}
.am-help-page .help-article-body{
  padding:18px 16px 20px!important;
  color:#1E293B!important;
  font-size:14.5px!important;
  line-height:1.75!important;
}
.am-help-page .help-article-body h2,
.am-help-page .help-article-body h3,
.am-help-page .help-article-body h4{
  margin:20px 0 8px!important;
  color:#0F172A!important;
  font-size:16px!important;
  font-weight:800!important;
  line-height:1.35!important;
}
.am-help-page .help-article-body p{margin:0 0 12px!important}
.am-help-page .help-article-body ul,
.am-help-page .help-article-body ol{padding-left:20px!important;margin:0 0 14px!important}
.am-help-page .help-article-body li{margin-bottom:8px!important}
.am-help-page .help-article-detail>.help-related{
  margin:0 16px 18px!important;
  padding-top:16px!important;
  border-top:1px solid #E2E8F0!important;
}
.am-help-page .help-article-detail>.help-related>strong{
  font-size:13.5px!important;
  font-weight:800;
  color:#0F172A;
}
.am-help-page .help-article-detail .help-related-link{
  min-height:46px;
  padding:11px 13px!important;
  border:1px solid #E2E8F0!important;
  border-radius:12px!important;
  background:#F8FAFC!important;
  color:#881337!important;
  font-size:13px!important;
  font-weight:700!important;
}
.am-help-page .help-article-footer{
  padding:14px 16px 16px!important;
  border-top:1px solid #E2E8F0!important;
  background:#F8FAFC!important;
}

/* Polished Help Modal (#app-help-modal) for Context Help Popup */
#app-help-modal .modal-header{
  background:#881337!important;
  border-bottom:0!important;
  color:#FFFFFF!important;
}
#app-help-modal .modal-title{
  color:#FFFFFF!important;
  font-size:16px!important;
  font-weight:700!important;
}
#app-help-modal .modal-header .close{
  color:#FFFFFF!important;
  opacity:.88!important;
  text-shadow:none!important;
}
#app-help-modal .app-help-content{
  font-size:14px!important;
  line-height:1.7!important;
  color:#1E293B!important;
}
#app-help-modal .help-modal-meta span{
  background:#FFF1F4!important;
  color:#881337!important;
  font-size:11.5px!important;
}

@media (min-width:700px){
  .am-profile-page,.am-help-page{padding-top:82px}
  .am-profile-hero{padding:24px}
  .am-profile-meta{margin-top:17px}
  .am-help-page .help-center--employee .help-start-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .am-help-page .help-center--employee .help-category-cards{margin-left:0!important;margin-right:0!important;padding-left:0!important;padding-right:0!important}
  .am-help-page .help-center--employee .help-topic-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:13px!important}
  .am-help-page .help-quick-sections{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .am-help-page .help-article-header,.am-help-page .help-article-body{padding-left:24px!important;padding-right:24px!important}
  .am-help-page .help-article-header h1{font-size:25px!important}
}
@media (max-width:520px){
  .am-pinfo-grid{grid-template-columns:1fr}
  .am-profile-panel{padding:15px}
}
@media (max-width:370px){
  .am-profile-page,.am-help-page{padding-left:12px;padding-right:12px}
  .am-profile-hero{grid-template-columns:78px minmax(0,1fr);column-gap:10px}
  .am-profile-avatar-wrap{width:78px}
  .am-profile-avatar{width:72px;height:72px}
  .am-profile-meta{gap:5px}
  .am-help-page .help-center--employee .help-start-grid{grid-template-columns:1fr!important}
}
@media (prefers-reduced-motion:reduce){.am-profile-page *,.am-help-page *{scroll-behavior:auto!important;transition:none!important}}
