/* ============================================================
   HR Cloud — Product Experience
   Design tokens
   ============================================================ */
   :root{
    --sidebar-w: 68px;
    --sidebar-bg: #12151d;
    --sidebar-bg-active: #1c2230;
    --sidebar-text: #8b93a6;
    --sidebar-text-active: #ffffff;
    --sidebar-border: #232838;
  
    /* HR Cloud brand palette (HRC brand guidelines.pdf) */
    --teal: #8d5f9f;
    --teal-dark: #6a4678;
    --teal-light: #f0e6f5;
    --purple: #8d5f9f;
    --purple-dark: #6a4678;
    --ink: #424f56;
  
    --bg-app: #eef1f5;
    --card-bg: #ffffff;
    --border-subtle: #e6e9ef;
  
    --text-primary: #1c2130;
    --text-secondary: #667085;
    --text-tertiary: #98a2b3;
  
    --success: #32b885;
    --danger: #e2503f;
    --warning: #ffb300;
    --info: #028ace;
    --gold: #d7ab3d;
    --silver: #9aa4b2;
  
    --shadow-sm: 0 1px 2px rgba(16,24,40,.06), 0 1px 1px rgba(16,24,40,.04);
    --shadow-md: 0 6px 20px rgba(16,24,40,.08);
    --shadow-lg: 0 16px 40px rgba(16,24,40,.14);
    --shell-shadow: 0 40px 90px -24px rgba(141,95,159,.4), 0 12px 34px rgba(141,95,159,.18);
  
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 26px;
    --radius-shell: 30px;
  
    --font-ui: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Lato', -apple-system, sans-serif;
  
    --ease: cubic-bezier(.4,0,.2,1);
  }
  
  *{ box-sizing: border-box; }
  html,body{ height:100%; }
  body{
    margin:0;
    font-family: var(--font-ui);
    background: transparent;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    overflow-x:hidden;
    display:flex;
    flex-direction:column;
    padding: 0;
  }
  
  /* ============================================================
     FLOATING TOP PILL NAV
     ============================================================ */
  .top-pills{
    flex-shrink:0;
    display:flex; justify-content:center; gap:14px;
    margin-bottom:10px;
    opacity:0; transform:translateY(-10px);
    animation: revealUp .5s var(--ease) forwards;
    animation-delay: .05s;
  }
  .top-pill{
    position:relative; overflow:hidden;
    display:flex; align-items:center; gap:8px;
    padding:11px 20px; border-radius:999px;
    background: rgba(255,255,255,.4);
    border:1px solid rgba(255,255,255,.6);
    backdrop-filter: blur(8px);
    color: #1c4a4c;
    font-weight:600; font-size:11.1px;
    box-shadow: 0 2px 10px rgba(0,60,65,.06);
    transition: background .25s var(--ease), color .25s var(--ease), transform .2s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  }
  .top-pill svg{ width:15px; height:15px; flex-shrink:0; transition: transform .3s var(--ease); }
  .top-pill:hover{ background: rgba(255,255,255,.65); transform: translateY(-1px); }
  .top-pill.is-active{
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
    color:#fff; border-color:transparent;
    box-shadow: 0 10px 24px rgba(0,140,145,.35);
    transform: translateY(0) scale(1.02);
  }
  .top-pill.is-active:hover{ background: linear-gradient(135deg, var(--teal), var(--teal-dark)); transform: scale(1.02); }

  /* Loading transition — matches personio.com's hero feature-tabs:
     a translucent white wash that wipes across the whole active pill
     (transform-origin left) as its dwell time elapses, rather than a
     separate progress bar. */
  .top-pill-progress{
    position:absolute; inset:0; z-index:0; border-radius:inherit;
    background: rgba(255,255,255,.22);
    transform-origin: 0% 50%; transform: scaleX(0);
    pointer-events:none;
  }
  .top-pill-progress.is-running{ transition: transform linear; transform: scaleX(1); }
  @media (max-width: 860px){
    .top-pills{ flex-wrap:wrap; }
  }

  /* ============================================================
     ONBOARD STEP RIBBON — quick-access nav, pinned as a static bar
     at the bottom of the main column (sibling of #content, not
     inside any one .page) so it stays in the same place, above any
     open modal, and stays visible no matter which page is active:
     Dashboard, Employee Portal, Employee Profile, I-9 Form,
     SmartFlows, Checklist.

     Connected "arrow tab" style (each segment a chevron pointing at
     the next). The chevron/arrow shape is drawn by a decorative,
     pointer-events:none ".step-ribbon-item-bg" span layered inside
     each item — the clickable <a> itself stays a plain, unclipped,
     non-overlapping rectangle, so there's no ambiguity about which
     item a click lands on regardless of the visual overlap needed
     to make the arrows interlock.
     ============================================================ */
  .step-ribbon{
    flex-shrink:0;
    display:flex;
    margin:10px 28px 16px;
    border:1px solid var(--border-subtle);
    /* Sharp corners, not rounded — a rounded container corner would clip
       the first/last chevron's solid fill into a soft curve when active,
       looking like a plain rounded rectangle instead of a flat-edged
       chevron segment like the rest. */
    border-radius:0;
    background: var(--card-bg);
    overflow:hidden;
    box-shadow: var(--shadow-sm);
    position:relative;
    z-index:100; /* stay visible above open modal overlays (z-index:80) */
  }
  /* I-9 form is a full-bleed document viewer (page images) — the ribbon
     would sit on top of the form content, so hide it only for that one
     overlay. It stays visible for every other page/overlay (SmartFlows,
     Checklist, All Employees, etc). */
  .main-col:has(#formModalOverlay.is-open) .step-ribbon{ display:none; }
  .step-ribbon-item{
    position:relative;
    flex:1 1 0;
    min-width:0;
    display:flex; align-items:center; justify-content:center;
    height:34px;
    padding:0 14px;
    color: var(--text-secondary);
    font-family: var(--font-display);
    font-weight:700;
    font-size:8.8px;
    letter-spacing:.01em;
    white-space:nowrap;
    /* No native tap/focus highlight — the chevron background above is
       the only visual state change, both while clicking and at rest. */
    -webkit-tap-highlight-color: transparent;
    outline:none;
    transition: color .2s var(--ease);
  }
  .step-ribbon-item-label{ position:relative; z-index:1; overflow:hidden; text-overflow:ellipsis; }
  .step-ribbon-item-bg{
    position:absolute;
    top:0; bottom:0; left:-15px;
    width:100%;
    pointer-events:none;
    background: var(--bg-app);
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 50%, calc(100% - 15px) 100%, 0 100%, 15px 50%);
    transition: background .2s var(--ease);
  }
  .step-ribbon-item:first-child .step-ribbon-item-bg{
    left:0;
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 50%, calc(100% - 15px) 100%, 0 100%);
  }
  .step-ribbon-item:last-child .step-ribbon-item-bg{
    /* Still shifted left:-15px (for the left notch to bleed into the
       previous item), so extend the width by that same 15px — otherwise
       the flat right edge lands 15px short of the item's true right
       edge, leaving a blank gap before the container border. */
    width: calc(100% + 15px);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 15px 50%);
  }
  .step-ribbon-item:hover{ color: var(--teal-dark); }
  .step-ribbon-item:hover .step-ribbon-item-bg{ background: var(--teal-light); }
  .step-ribbon-item.is-active{ color:#fff; }
  .step-ribbon-item.is-active .step-ribbon-item-bg{
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  }
  .step-ribbon-item:focus,
  .step-ribbon-item:focus-visible,
  .step-ribbon-item:active{ outline:none; }

  a{ color:inherit; text-decoration:none; cursor:pointer; }
  button{ font-family:inherit; cursor:pointer; border:none; background:none; color:inherit; }
  ul{ margin:0; padding:0; list-style:none; }
  img{ display:block; max-width:100%; }
  ::selection{ background: rgba(141,95,159,.25); }
  
  .icon{ width:18px; height:18px; }
  .icon-sm{ width:16px; height:16px; }
  .icon-xs{ width:14px; height:14px; }
  .icon-xxs{ width:13px; height:13px; }
  .icon-lg{ width:30px; height:30px; }
  
  @media (prefers-reduced-motion: reduce){
    *, *::before, *::after{ animation-duration:.001ms !important; transition-duration:.001ms !important; }
  }
  
  /* ============================================================
     SHELL
     ============================================================ */
  .app-shell{
    position:relative;
    display:flex;
    flex-direction:column;
    flex: 0 0 auto;
    align-self: center;
    width: 100%;
    max-width: 1240px;
    aspect-ratio: 928 / 580; /* ≈1.6, matches Personio's framed mockup ratio */
    height:auto;
    min-width:0;
    border-radius: var(--radius-shell);
    overflow:hidden;
    background: linear-gradient(to bottom, transparent 63px, #ffffff 63px);
  }
  .app-body{
    display:flex;
    flex:1;
    min-height:0;
  }
  
  /* ============================================================
     SIDEBAR
     ============================================================ */
  .sidebar{
    width: var(--sidebar-w);
    flex-shrink:0;
    background: var(--sidebar-bg);
    border-right:1px solid var(--sidebar-border);
    display:flex;
    flex-direction:column;
    padding: 18px 12px 16px;
    position:relative;
    transform: translateX(-100%);
    opacity:0;
    animation: sidebarIn .7s var(--ease) forwards;
  }
  @keyframes sidebarIn{
    to{ transform:translateX(0); opacity:1; }
  }
  
  .sidebar-brand{
    display:flex; align-items:center; justify-content:center; gap:10px;
    padding: 6px 8px 10px;
    color:#fff;
  }
  .brand-mark{
    display:flex; align-items:center; justify-content:center;
  }
  .brand-mark img{ height:28px; width:auto; display:block; }
  .brand-name{
    font-family: var(--font-display);
    font-weight:600; font-size:12px;
    display:flex; align-items:center; gap:4px;
  }
  .brand-caret{ color:var(--sidebar-text); font-size:9.9px; }
  
  .sidebar-nav{ display:flex; flex-direction:column; gap:1px; }
  .nav-item{
    display:flex; align-items:center; gap:11px;
    padding: 6px 10px;
    border-radius: 9px;
    color: var(--sidebar-text);
    font-size:11.1px;
    font-weight:500;
    transition: background .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
    position:relative;
  }
  .nav-item:hover{ background: var(--sidebar-bg-active); color:#dfe3ec; transform: translateX(2px); }
  .nav-item.is-active{ background: var(--sidebar-bg-active); color: var(--sidebar-text-active); }
  .nav-item.is-active::before{
    content:"";
    position:absolute; left:-12px; top:50%; transform:translateY(-50%);
    width:3px; height:18px; border-radius:3px;
    background: var(--teal);
  }
  .nav-icon{ flex-shrink:0; width:18px; height:18px; display:flex; align-items:center; justify-content:center; }
  .nav-icon svg{ width:17px; height:17px; transition: transform .2s var(--ease); }
  .nav-item:hover .nav-icon svg{ transform: rotate(-4deg) scale(1.06); }

  /* Only Tasks/Onboard/Directory-People/Perform/Surveys are wired up —
     every other sidebar item is decorative here, so strip the
     clickable affordance and dim it rather than implying it works. */
  .nav-item:not([data-target]){
    opacity: .45;
    cursor: default;
    pointer-events: none;
  }
  /* SmartFlows is wired up too, unlike the rest of this decorative list —
     undo the blanket dim/disable so real clicks actually reach it. */
  #navChecklists{ opacity:1; pointer-events:auto; }
  .nav-icon.dot{
    width:19px; height:19px; border-radius:5.5px; background: var(--dot,#888);
    margin:0;
  }
  .nav-icon.dot svg{ width:11px; height:11px; }
  .nav-icon-img{ flex-shrink:0; width:21px; height:21px; display:flex; align-items:center; justify-content:center; }
  .nav-icon-img img{ width:100%; height:100%; object-fit:contain; }
  .nav-icon-img--lg{ width:31px; height:31px; margin-left:-5px; }
  /* nav-perform.png has built-in transparent padding, so it renders
     visibly smaller than the other flat-art nav icons at the same
     box size — scale it up to match Onboard's visual weight. */
  .app-perform .nav-icon-img img{ transform: scale(1.55); }
  .nav-label{ flex:1; white-space:nowrap; }
  .nav-badge{
    background: var(--danger);
    color:#fff; font-size:8.6px; font-weight:700;
    padding: 1px 6px; border-radius: 20px;
  }
  
  .sidebar-section-label{
    margin: 10px 10px 4px;
    font-size:8.6px; font-weight:700; letter-spacing:.08em;
    text-transform: uppercase;
    color:#565f74;
  }
  .sidebar-apps{ flex:1; overflow-y:auto; scrollbar-width:none; }
  .sidebar-apps::-webkit-scrollbar{ display:none; }
  
  .sidebar-collapse{
    align-self:flex-start;
    margin: 6px 6px 0;
    color: var(--sidebar-text);
    width:26px; height:26px;
    display:flex; align-items:center; justify-content:center;
    border-radius:8px;
    transition: background .18s var(--ease);
  }
  .sidebar-collapse:hover{ background: var(--sidebar-bg-active); color:#fff; }

  /* Minimized icon-only rail — labels/badges/section headers hidden,
     icons centered, per the "keep only logos and icons visible" ask. */
  .brand-name, .nav-label, .nav-badge, .sidebar-section-label, .sidebar-collapse{ display:none; }
  .nav-item{ justify-content:center; gap:0; }
  .nav-item.is-active::before{ display:none; }

  /* ============================================================
     MAIN COLUMN
     ============================================================ */
  .main-col{
    flex:1;
    min-width:0;
    display:flex; flex-direction:column;
    height:100%;
    overflow:hidden;
    position:relative;
  }
  
  /* ============================================================
     TOPBAR — single full-width bar above sidebar + content
     ============================================================ */
  .topbar{
    flex-shrink:0;
    display:flex; align-items:center; gap:16px;
    height:64px;
    padding: 0 20px;
    background: #3d464d;
    opacity:0;
    transform: translateY(-14px);
    animation: topbarIn .6s var(--ease) forwards;
    animation-delay: .18s;
  }
  @keyframes topbarIn{ to{ opacity:1; transform:translateY(0);} }
  
  .topbar-logo{
    display:flex; align-items:center; justify-content:center;
    flex-shrink:0;
    transform: translateY(3px);
  }
  .topbar-logo img{ height:26px; width:auto; display:block; }

  .topbar-center{ flex:1; min-width:0; display:flex; align-items:center; justify-content:flex-end; gap:14px; transform: translateY(3px); }
  
  .topbar-banner{
    background: rgba(255,255,255,.08);
    border:1px solid rgba(255,255,255,.14);
    border-radius: 20px;
    color:#c7d0d6;
    font-size:8.2px;
    display:flex; align-items:center; gap:8px;
    padding:8px 8px 8px 14px;
    white-space:nowrap;
    flex-shrink:1;
    min-width:0;
    overflow:hidden;
  }
  .topbar-banner span{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .topbar-banner a{ color:#8fe0da; font-weight:600; flex-shrink:0; }
  .banner-icon svg{ width:14px; height:14px; color:#8fe0da; flex-shrink:0; }
  .banner-close{
    margin-left:2px; color:#9aa4ac; font-size:8px; flex-shrink:0;
    width:20px; height:20px; border-radius:6px;
    display:flex; align-items:center; justify-content:center;
  }
  .banner-close:hover{ background: rgba(255,255,255,.1); color:#fff; }
  
  .topbar-search{
    width:260px; flex-shrink:0;
    display:flex; align-items:center; gap:8px;
    background: rgba(255,255,255,.08);
    border:1px solid rgba(255,255,255,.14);
    border-radius: 20px;
    padding: 8px 14px;
    transition: box-shadow .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
  }
  .topbar-search:focus-within{
    background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3);
    box-shadow: 0 0 0 3px rgba(255,255,255,.06);
  }
  .topbar-search .search-icon svg{ color:#aab3ba; width:15px; height:15px; }
  .topbar-search input{
    border:none; outline:none; background:transparent;
    font-size:8.6px; width:100%; min-width:0; color:#eef1f3;
    font-family: inherit;
  }
  .topbar-search input::placeholder{ color:#9aa4ac; }
  
  .topbar-icons{ display:flex; align-items:center; gap:2px; flex-shrink:0; margin-right:-16px; }
  .icon-btn{
    width:34px; height:34px; border-radius:9px;
    display:flex; align-items:center; justify-content:center;
    color:#b7c0c7;
    position:relative;
    transition: background .18s var(--ease), color .18s var(--ease), transform .15s var(--ease);
  }
  .icon-btn svg{ width:18px; height:18px; }
  .icon-btn:hover{ background: rgba(255,255,255,.1); color:#fff; transform: translateY(-1px); }
  .icon-btn.has-badge .pulse-dot{
    position:absolute; top:6px; right:7px;
    width:7px; height:7px; border-radius:50%;
    background: var(--danger);
    box-shadow: 0 0 0 0 rgba(226,80,63,.6);
    animation: pulse 2.2s infinite;
  }
  @keyframes pulse{
    0%{ box-shadow: 0 0 0 0 rgba(226,80,63,.55); }
    70%{ box-shadow: 0 0 0 6px rgba(226,80,63,0); }
    100%{ box-shadow: 0 0 0 0 rgba(226,80,63,0); }
  }
  .avatar-btn{
    display:flex; align-items:center; gap:5px;
    margin-left:6px;
    padding:2px 4px 2px 2px;
    border-radius: 20px;
    transition: background .18s var(--ease);
  }
  .avatar-btn:hover{ background: rgba(255,255,255,.1); }
  .avatar-btn img{ width:28px; height:28px; border-radius:50%; object-fit:cover; }
  .avatar-btn .caret{ font-size:6.6px; color:#aab3ba; }
  
  /* avatar dropdown */
  .avatar-wrap{ position:relative; }
  .avatar-dropdown{
    position:fixed; width:270px;
    background:#fff; border-radius:14px; border:1px solid var(--border-subtle);
    box-shadow: var(--shadow-lg); padding:16px 0 14px; z-index:200;
    opacity:0; visibility:hidden; transform: translateY(-8px);
    transition: opacity .16s var(--ease), transform .16s var(--ease), visibility 0s linear .16s;
  }
  .avatar-dropdown.is-open{
    opacity:1; visibility:visible; transform:translateY(0);
    transition: opacity .16s var(--ease), transform .16s var(--ease);
  }
  .avatar-dd-head{ padding:0 18px 14px; margin-bottom:8px; border-bottom:1px solid var(--border-subtle); }
  .avatar-dd-name{ font-weight:700; font-size:10px; color: var(--text-primary); }
  .avatar-dd-role{ font-size:8px; color: var(--text-tertiary); margin-top:2px; }
  .avatar-dd-menu{ display:flex; flex-direction:column; gap:1px; padding:2px 8px; border-bottom:1px solid var(--border-subtle); margin-bottom:10px; }
  .avatar-dd-item{
    display:flex; align-items:center; gap:10px;
    padding:9px 10px; border-radius:9px;
    font-size:9px; font-weight:500; color: var(--text-primary);
    position:relative; transition: background .15s var(--ease);
  }
  .avatar-dd-item:hover{ background: var(--bg-app); }
  .avatar-dd-item svg{ width:16px; height:16px; color: var(--text-tertiary); flex-shrink:0; }
  .avatar-dd-item .chev{ margin-left:auto; color: var(--text-tertiary); font-size:8.6px; }
  .avatar-dd-app{ display:flex; align-items:center; gap:10px; padding:8px 18px 10px; }
  .avatar-dd-app-badge{
    width:32px; height:32px; border-radius:9px; flex-shrink:0;
    background: linear-gradient(135deg, var(--teal), #6a4678);
    display:flex; align-items:center; justify-content:center; color:#fff; font-weight:700; font-size:7.4px;
  }
  .avatar-dd-app-name{ font-size:8.2px; font-weight:700; color: var(--text-primary); }
  .store-buttons{ display:flex; gap:8px; padding:0 18px 8px; }
  .store-btn{
    flex:1; display:flex; align-items:center; justify-content:center; gap:5px;
    border:1px solid var(--border-subtle); border-radius:8px; padding:7px 4px;
    font-size:7.4px; font-weight:600; color: var(--text-secondary);
    transition: box-shadow .15s var(--ease);
  }
  .store-btn:hover{ box-shadow: var(--shadow-sm); }
  .store-btn svg{ width:12px; height:12px; }
  .download-link{ display:block; padding:0 18px; font-size:8px; font-weight:600; color: var(--teal-dark); }
  .download-link:hover{ text-decoration: underline; }
  
  .switch-flyout{
    position:absolute; top:-16px; right: calc(100% + 10px);
    width:280px; max-height:420px; overflow-y:auto;
    background:#fff; border:1px solid var(--border-subtle); border-radius:14px;
    box-shadow: var(--shadow-lg); padding:8px;
    opacity:0; visibility:hidden; transform: translateX(6px);
    transition: opacity .15s var(--ease), transform .15s var(--ease), visibility 0s linear .15s;
  }
  .avatar-dd-switch:hover .switch-flyout{
    opacity:1; visibility:visible; transform:translateX(0);
    transition: opacity .15s var(--ease), transform .15s var(--ease);
  }
  .switch-row{ display:flex; align-items:center; gap:10px; padding:8px 10px; border-radius:9px; transition: background .15s; }
  .switch-row:hover, .switch-row.is-active{ background: var(--bg-app); }
  .switch-row img{ width:30px; height:30px; border-radius:50%; object-fit:cover; flex-shrink:0; }
  .switch-row .chip{ width:30px; height:30px; border-radius:50%; display:flex; align-items:center; justify-content:center; color:#fff; font-size:7.4px; font-weight:700; flex-shrink:0; }
  .switch-row-name{ font-size:8.2px; font-weight:700; color: var(--text-primary); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:190px; }
  .switch-row-role{ font-size:7.4px; color: var(--text-tertiary); }
  
  /* ============================================================
     CONTENT / PAGES
     ============================================================ */
  .content{
    flex:1;
    overflow-y:auto;
    padding: 22px 28px 60px;
  }
  .content:has(> #page-perform.is-active),
  .content:has(> #page-surveys.is-active){ overflow: hidden; }
  .page{ display:none; }
  .page.is-active{ display:block; animation: pageIn .28s var(--ease) both; }
  @keyframes pageIn{
    from{ opacity:0; transform: translateY(10px) scale(.995); }
    to{ opacity:1; transform: translateY(0) scale(1); }
  }
  .page.page-leaving{
    animation: pageOut .2s var(--ease) both;
  }
  @keyframes pageOut{
    to{ opacity:0; transform: translateY(-8px) scale(.995); }
  }
  
  /* reveal-on-load stagger */
  .reveal{
    opacity:0;
    transform: translateY(22px);
    animation: revealUp .55s var(--ease) forwards;
    animation-delay: calc(.28s + (var(--d, 0) * 80ms));
  }
  @keyframes revealUp{ to{ opacity:1; transform:translateY(0); } }
  
  /* generic card */
  .card{
    background: var(--card-bg);
    border-radius: var(--radius-md);
    border:1px solid var(--border-subtle);
    border-top: 3px solid var(--teal);
    box-shadow: var(--shadow-sm);
    padding: 20px 22px;
    margin-bottom: 20px;
    transition: box-shadow .25s var(--ease), transform .25s var(--ease);
  }
  .two-col{ display:grid; grid-template-columns: 1.15fr .85fr; gap:20px; margin-bottom:20px; }
  .two-col .card{ margin-bottom:0; }
  #page-onboard .card{ border-top: 1px solid var(--border-subtle); box-shadow: var(--shadow-sm); }
  
  .card-head{
    display:flex; align-items:baseline; gap:10px; margin-bottom:14px;
  }
  .card-title{
    font-family: var(--font-ui);
    font-size:8.2px; font-weight:700;
    text-transform: uppercase; letter-spacing:.04em;
    display:flex; align-items:center; gap:8px;
    color: var(--text-secondary);
  }
  .title-icon{ color: var(--text-secondary); display:flex; }
  .card-sub{ font-size:8px; color: var(--text-tertiary); }
  .card-link{
    margin-left:auto; font-size:7.4px; font-weight:700; color: var(--teal-dark);
    text-transform: uppercase; letter-spacing:.03em;
    transition: color .15s var(--ease);
  }
  .card-link:hover{ color: var(--teal); text-decoration:underline; }
  .card-foot{ display:flex; align-items:center; gap:16px; margin-top:14px; }
  
  /* ============================================================
     WORKMATES: product subnav
     ============================================================ */
  .product-subnav{
    display:flex; align-items:center; gap:26px;
    padding-bottom: 14px;
    border-bottom:1px solid var(--border-subtle);
    margin-bottom: 20px;
    font-size:9px; font-weight:600; color: var(--text-secondary);
  }
  .product-subnav.no-underline{ border-bottom:none; padding-bottom:0; margin-bottom:0; }
  .sub-link{ display:flex; align-items:center; gap:6px; padding-bottom:6px; position:relative; transition: color .15s; }
  .sub-link:hover{ color: var(--text-primary); }
  .sub-link.is-active{ color: var(--teal-dark); }
  .sub-link.is-active::after{
    content:""; position:absolute; left:0; right:0; bottom:-15px; height:2.5px;
    background: var(--teal); border-radius:2px;
  }
  .sub-link svg{ color: var(--text-tertiary); }
  .sub-link.is-active svg{ color: var(--teal-dark); }
  
  /* hero */
  .hero-card{ border-radius: var(--radius-lg); overflow:hidden; margin-bottom:20px; box-shadow: var(--shadow-md); }
  .hero-banner{
    position:relative;
    height: 220px;
    background:
      radial-gradient(120% 140% at 15% 0%, rgba(255,196,120,.35), transparent 55%),
      linear-gradient(180deg, #14212a 0%, #0b1116 100%);
    display:flex; align-items:center; justify-content:center;
    overflow:hidden;
  }
  .hero-overlay{
    position:absolute; inset:0;
    background: radial-gradient(60% 90% at 50% 40%, rgba(0,0,0,0), rgba(0,0,0,.45));
  }
  .hero-plants{ position:absolute; inset:0; width:100%; height:100%; }
  .hero-bulbs{
    position:absolute; top:14px; left:0; right:0;
    display:flex; justify-content:space-evenly;
  }
  .hero-bulbs span{
    width:8px; height:8px; border-radius:50%;
    background: radial-gradient(circle, #ffe9b8, #d99a3d 70%);
    box-shadow: 0 0 12px 4px rgba(255,205,120,.55);
    animation: flicker 3.4s ease-in-out infinite;
  }
  .hero-bulbs span:nth-child(2n){ animation-delay: .6s; }
  .hero-bulbs span:nth-child(3n){ animation-delay: 1.2s; }
  @keyframes flicker{ 0%,100%{ opacity:.75; } 50%{ opacity:1; } }
  .hero-brand{ position:relative; display:flex; align-items:center; gap:14px; color:#fff; z-index:2; }
  .hero-brand-icon{
    width:46px; height:46px; border-radius:50%;
    background: rgba(255,255,255,.08);
    border:1px solid rgba(255,255,255,.2);
    display:flex; align-items:center; justify-content:center;
    color:#f4c477;
  }
  .hero-brand-title{
    font-family: var(--font-display);
    font-size:17.4px; font-weight:700; letter-spacing:.06em;
  }
  .hero-actions{ position:absolute; bottom:16px; right:18px; z-index:3; display:flex; gap:8px; }
  .hero-edit-btn{
    background: rgba(255,255,255,.12);
    color:#fff; font-size:8.2px; font-weight:600;
    padding:7px 14px; border-radius:8px;
    border:1px solid rgba(255,255,255,.25);
    backdrop-filter: blur(6px);
    transition: background .18s var(--ease), transform .18s var(--ease);
  }
  .hero-edit-btn:hover{ background: rgba(255,255,255,.22); transform: translateY(-1px); }
  .hero-settings-btn{
    width:34px; height:34px; border-radius:8px;
    background: rgba(255,255,255,.12);
    color:#fff;
    border:1px solid rgba(255,255,255,.25);
    backdrop-filter: blur(6px);
    display:flex; align-items:center; justify-content:center;
    transition: background .18s var(--ease), transform .18s var(--ease);
  }
  .hero-settings-btn:hover{ background: rgba(255,255,255,.22); transform: translateY(-1px); }
  
  .hero-subnav{
    position:absolute; left:26px; bottom:16px; z-index:3;
    padding-bottom:0; border-bottom:none; margin-bottom:0;
    color: rgba(255,255,255,.78);
  }
  .hero-subnav .sub-link{ color:inherit; }
  .hero-subnav .sub-link svg{ color: rgba(255,255,255,.78); }
  .hero-subnav .sub-link:hover{ color:#fff; }
  .hero-subnav .sub-link:hover svg{ color:#fff; }
  .hero-subnav .sub-link.is-active{ color:#fff; }
  .hero-subnav .sub-link.is-active svg{ color:#fff; }
  .hero-subnav .sub-link.is-active::after{ background:#fff; }
  
  /* announcement */
  .announcement-body{ display:flex; gap:20px; }
  .announcement-photo{
    width: 62%; flex-shrink:0; border-radius: var(--radius-sm); overflow:hidden;
    aspect-ratio: 3/1;
  }
  .announcement-photo img{ width:100%; height:100%; object-fit:cover; }
  .announcement-copy{ flex:1; }
  .announcement-meta{ font-size:7.4px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color: var(--text-tertiary); margin-bottom:4px; }
  .announcement-copy h3{ margin:0 0 8px; font-family: var(--font-display); font-size:12.7px; }
  .announcement-copy p{ margin:0 0 14px; color: var(--text-secondary); font-size:9px; line-height:1.6; }
  .btn-read-more{
    background: var(--teal); color:#fff; font-size:7.6px; font-weight:700;
    text-transform: uppercase; letter-spacing:.03em;
    padding:9px 18px; border-radius:9px;
    transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .18s;
    box-shadow: 0 2px 8px rgba(141,95,159,.25);
  }
  .btn-read-more:hover{ background: var(--teal-dark); transform: translateY(-2px) scale(1.02); box-shadow: 0 6px 16px rgba(141,95,159,.35); }
  
  /* stat tabs (assigned tasks) */
  .stat-tabs{ display:flex; gap:0; margin-bottom:14px; border:1px solid var(--border-subtle); border-radius:12px; overflow:hidden; }
  .stat-tab{
    flex:1; text-align:center; padding:12px 8px;
    border-right:1px solid var(--border-subtle);
    transition: background .18s;
    cursor:pointer;
  }
  .stat-tab:last-child{ border-right:none; }
  .stat-tab:hover{ background: var(--bg-app); }
  .stat-tab.is-active{ background: var(--teal-light); }
  .stat-num{ display:block; font-size:13.4px; font-weight:700; font-family: var(--font-display); color: var(--text-primary); }
  .stat-num.danger{ color: var(--danger); }
  .stat-num.warn{ color: var(--warning); }
  .stat-label{ font-size:7.4px; color: var(--text-tertiary); text-transform:uppercase; letter-spacing:.04em; }
  
  .task-list{ display:flex; flex-direction:column; }
  .task-row{
    display:flex; align-items:center; gap:12px;
    padding: 11px 4px;
    border-bottom:1px solid var(--border-subtle);
    transition: background .18s var(--ease), transform .18s var(--ease);
    border-radius:8px;
  }
  .task-row:hover{ background: var(--bg-app); transform: translateX(2px); }
  .task-row:last-child{ border-bottom:none; }
  .task-icon{
    width:32px; height:32px; border-radius:9px;
    background: #f2ecf5; color: var(--purple);
    display:flex; align-items:center; justify-content:center; flex-shrink:0;
  }
  .task-icon img{ width:20px; height:20px; object-fit:contain; }
  .task-body{ flex:1; min-width:0; }
  .task-title{ font-size:9px; font-weight:600; color: var(--text-primary); }
  .task-sub{ font-size:8px; color: var(--text-tertiary); }
  .task-sub a{ color: var(--teal-dark); font-weight:600; }
  .badge{ font-size:7.4px; font-weight:700; padding:4px 9px; border-radius:20px; white-space:nowrap; }
  .badge-danger{ background:#fdecea; color: var(--danger); }
  .btn-new-task{
    display:flex; align-items:center; gap:6px;
    background: var(--teal-light); color: var(--teal-dark);
    font-size:8.2px; font-weight:700; padding:9px 14px; border-radius:9px;
    transition: background .18s, transform .15s;
  }
  .btn-new-task:hover{ background:#d3f0ed; transform: translateY(-1px); }
  
  /* kudos */
  .kudos-list{ display:flex; flex-direction:column; gap:14px; }
  .kudos-row{
    position:relative; display:flex; gap:12px; padding: 16px 18px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg,#e2f5ef,#d7f0ea);
    overflow:hidden;
  }
  .kudos-decor{ position:absolute; inset:0; overflow:hidden; pointer-events:none; }
  .kudos-decor svg{ position:absolute; right:0; bottom:0; width:220px; height:auto; opacity:.9; }
  .kudos-avatar{ width:36px; height:36px; border-radius:50%; object-fit:cover; flex-shrink:0; position:relative; z-index:2; }
  .kudos-body{ flex:1; min-width:0; position:relative; z-index:2; }
  .kudos-name{ font-size:8.6px; font-weight:700; color: var(--text-primary); }
  .kudos-date{ font-weight:500; color: var(--text-secondary); font-size:7.6px; display:block; margin-top:1px; }
  .kudos-msg{ font-size:8.6px; color: var(--text-secondary); margin-top:8px; }
  .kudos-badge-wrap{ flex-shrink:0; width:180px; position:relative; z-index:2; padding-top:2px; }
  .kudos-badge-head{ display:flex; align-items:center; gap:8px; }
  .kudos-badge-circle{
    width:38px; height:38px; border-radius:50%; background:#fff; flex-shrink:0;
    box-shadow: 0 3px 8px rgba(15,90,80,.18);
    display:flex; align-items:center; justify-content:center; position:relative;
  }
  .kudos-badge-circle svg{ width:20px; height:20px; color: var(--teal-dark); }
  .kudos-badge-pill{
    background: var(--teal); color:#fff; font-size:7.4px; font-weight:700;
    padding:6px 14px; border-radius:14px; white-space:nowrap;
    box-shadow: 0 3px 8px rgba(15,90,80,.15);
  }
  .medal-mini{
    width:26px; height:26px; border-radius:50%; display:flex; align-items:center; justify-content:center;
    color:#fff; font-weight:700; font-size:8px; position:relative;
  }
  .medal-mini.medal-gold{ background: linear-gradient(145deg,#f3d27a,var(--gold)); }
  .medal-mini.medal-silver{ background: linear-gradient(145deg,#c9d0da,var(--silver)); }
  .medal-mini::before, .medal-mini::after{ content:""; position:absolute; bottom:-5px; width:6px; height:9px; background:inherit; filter:brightness(.85); }
  .medal-mini::before{ left:3px; transform:skewX(-10deg); }
  .medal-mini::after{ right:3px; transform:skewX(10deg); }
  .kudos-elbow{
    width:19px; height:20px; margin-left:18px;
    border-left:2px dotted rgba(13,110,100,.4); border-bottom:2px dotted rgba(13,110,100,.4);
    border-bottom-left-radius:10px;
  }
  .kudos-recip-row{ display:flex; gap:16px; margin-left:14px; }
  .kudos-recip{ display:flex; flex-direction:column; align-items:center; gap:4px; }
  .kudos-recip img, .kudos-recip .recipient-chip{
    width:34px; height:34px; border-radius:50%; object-fit:cover;
    box-shadow: 0 3px 8px rgba(15,90,80,.15);
  }
  .recipient-chip{ background: var(--purple); color:#fff; font-size:7.4px; font-weight:700; display:flex; align-items:center; justify-content:center; }
  .kudos-recip .recip-name{ font-size:6.9px; color: var(--text-secondary); font-weight:600; }
  
  /* ============================================================
     PRODUCT HEADER (People / Onboard)
     ============================================================ */
  .product-header{
    border-radius: var(--radius-md);
    padding: 22px 26px 18px;
    margin-bottom: 18px;
    color:#fff;
    position:relative;
    overflow:hidden;
  }
  .product-header h1{
    margin:0 0 10px; font-family: var(--font-display); font-size:17.4px; font-weight:600;
    opacity:0; transform: translateY(10px);
    animation: revealUp .5s var(--ease) forwards; animation-delay:.15s;
  }
  .product-header--teal{ background: linear-gradient(120deg, #00c4c9, #009299); }
  .product-header--onboard{
    background: linear-gradient(120deg, #8d5f9f, #6a4678);
    background-size: 200% 200%;
    animation: headerGradientShift 2.6s var(--ease) forwards;
    display:flex; flex-direction:column;
  }
  @keyframes headerGradientShift{
    0%{ background-position: 0% 50%; }
    100%{ background-position: 100% 50%; }
  }
  .product-header-top{ display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
  .product-header-top h1{ margin-bottom:10px; }
  .header-tabs{ display:flex; gap:22px; font-size:9px; font-weight:600; }
  .header-tabs a{ opacity:.78; padding-bottom:8px; position:relative; }
  .header-tabs a:hover{ opacity:1; }
  .header-tabs a.is-active{ opacity:1; }
  .header-tabs a.is-active::after{
    content:""; position:absolute; left:0; right:0; bottom:0; height:2.5px; background:#fff; border-radius:2px;
  }
  .header-actions{ position:absolute; right:26px; top:22px; display:flex; gap:8px; }
  .btn-ghost-light{
    display:flex; align-items:center; gap:6px;
    background: rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.3);
    color:#fff; font-size:8.2px; font-weight:600; padding:8px 14px; border-radius:9px;
    transition: background .18s, transform .15s;
  }
  .btn-ghost-light:hover{ background: rgba(255,255,255,.24); transform: translateY(-1px); }
  
  /* toolbar row */
  .toolbar{ display:flex; align-items:center; gap:14px; margin-bottom:16px; }
  .btn-customize{
    margin-left:auto; display:flex; align-items:center; gap:6px;
    background:#fff; border:1px solid var(--border-subtle); color: var(--text-secondary);
    font-size:8.2px; font-weight:600; padding:8px 14px; border-radius:9px;
    transition: box-shadow .18s, transform .15s, color .15s;
  }
  .btn-customize:hover{ box-shadow: var(--shadow-sm); transform: translateY(-1px); color: var(--text-primary); }
  .btn-filter{
    background:#fff; border:1px solid var(--border-subtle); color: var(--text-secondary);
    font-size:8.2px; font-weight:600; padding:8px 14px; border-radius:9px;
    transition: box-shadow .18s, transform .15s;
  }
  .btn-filter:hover{ box-shadow: var(--shadow-sm); transform: translateY(-1px); }
  .btn-filter--sm{ padding:5px 10px; font-size:7.6px; }
  .btn-print{
    display:flex; align-items:center; gap:6px;
    background:#fff; border:1px solid var(--border-subtle); color: var(--text-secondary);
    font-size:8.2px; font-weight:600; padding:8px 14px; border-radius:9px;
    transition: box-shadow .18s, transform .15s;
  }
  .btn-print:hover{ box-shadow: var(--shadow-sm); transform: translateY(-1px); }
  
  .search-expand{
    display:flex; align-items:center; gap:8px;
    background:#fff; border:1px solid var(--border-subtle); border-radius:10px;
    padding:9px 14px; width: 260px;
    transition: width .3s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
  }
  .search-expand:focus-within{ width: 360px; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,196,201,.14); }
  .search-expand input{ border:none; outline:none; flex:1; font-size:8.6px; font-family:inherit; }
  .search-expand .search-icon svg{ color: var(--text-tertiary); width:15px; height:15px; }
  
  /* ============================================================
     ORG CHART
     ============================================================ */
  .orgchart-wrap{ overflow-x:auto; padding: 10px 0 30px; }
  .orgchart{ display:flex; flex-direction:column; align-items:center; min-width: 900px; }
  .org-tier--ceo{ display:flex; flex-direction:column; align-items:center; position:relative; }
  .org-connector{
    width:2px; height:34px;
    background: repeating-linear-gradient(180deg, var(--border-subtle) 0 6px, transparent 6px 12px);
  }
  .org-tier--reports{
    display:flex; gap:28px; position:relative; padding-top:34px;
  }
  .org-tier--reports::before{
    content:"";
    position:absolute; top:0; left: calc(50% - (100% - 220px)/2 ); right: calc(50% - (100% - 220px)/2 );
    height:0;
  }
  .org-tier--reports{
    --n: 4;
  }
  .org-tier--reports::after{
    content:"";
    position:absolute;
    top:0; height:16px;
    left: 110px; right:110px;
    border-top: 2px dashed var(--border-subtle);
  }
  .org-tier--reports .emp-card{ position:relative; }
  .org-tier--reports .emp-card::before{
    content:"";
    position:absolute; top:-16px; left:50%; width:2px; height:16px;
    background: repeating-linear-gradient(180deg, var(--border-subtle) 0 5px, transparent 5px 10px);
  }
  
  .emp-card{
    width: 210px;
    background:#fff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 22px 16px 16px;
    text-align:center;
    position:relative;
    box-shadow: var(--shadow-sm);
    transition: transform .22s var(--ease), box-shadow .22s var(--ease);
  }
  .emp-card:hover{ transform: translateY(-5px); box-shadow: var(--shadow-lg); }
  .emp-accent{ position:absolute; top:0; left:0; right:0; height:4px; border-radius: var(--radius-md) var(--radius-md) 0 0; background: var(--teal); }
  .emp-card--ceo{ width:230px; }
  .emp-card--ceo .emp-accent{ background: linear-gradient(90deg, var(--teal), var(--purple)); }
  .emp-photo{
    width:64px; height:64px; margin: 4px auto 10px; position:relative;
    transform: scale(.9); animation: avatarPop .4s var(--ease) forwards;
    animation-delay: .1s;
  }
  @keyframes avatarPop{ to{ transform:scale(1); } }
  .emp-photo img{ width:100%; height:100%; border-radius:50%; object-fit:cover; border:2px solid #fff; box-shadow:0 0 0 1px var(--border-subtle); }
  .emp-star{ position:absolute; bottom:-2px; left:-2px; background:#fff; border-radius:50%; width:18px; height:18px; font-size:6.6px; color:#d7ab3d; display:flex; align-items:center; justify-content:center; box-shadow: var(--shadow-sm); }
  .emp-online{ position:absolute; bottom:2px; right:2px; width:12px; height:12px; border-radius:50%; background: var(--success); border:2px solid #fff; }
  .emp-name{ font-weight:700; font-size:9.7px; margin-bottom:8px; }
  .emp-meta{ display:flex; flex-direction:column; gap:5px; align-items:flex-start; padding-left: 18px; }
  .emp-meta li{ display:flex; align-items:center; gap:6px; font-size:7.6px; color: var(--text-secondary); text-align:left; }
  .emp-meta svg{ color: var(--text-tertiary); flex-shrink:0; }
  .emp-add{
    margin-top:12px;
    width:26px; height:26px; border-radius:50%;
    border:1.5px dashed var(--border-subtle); color: var(--text-tertiary);
    font-size:9.4px; line-height:1;
    transition: all .18s var(--ease);
  }
  .emp-add:hover{ border-color: var(--teal); color: var(--teal); background: var(--teal-light); transform: scale(1.1); }
  
  /* ============================================================
     ONBOARD: KPI row
     ============================================================ */
  .kpi-row{ display:grid; grid-template-columns: repeat(4,1fr); gap:16px; margin-bottom:20px; }
  .kpi-card{
    background:#fff; border:1px solid var(--border-subtle); border-radius: var(--radius-md);
    padding: 18px 18px 16px; box-shadow: var(--shadow-sm);
    transition: transform .2s var(--ease), box-shadow .2s var(--ease);
  }
  .kpi-card:hover{ transform: translateY(-3px); box-shadow: var(--shadow-md); }
  .kpi-icon{
    width:34px; height:34px; border-radius:9px; margin-bottom:12px;
    display:flex; align-items:center; justify-content:center;
  }
  .kpi-icon svg{ width:17px; height:17px; }
  .kpi-icon--teal{ background: var(--teal-light); color: var(--teal-dark); }
  .kpi-icon--amber{ background:#fdf1e0; color:#c9822a; }
  .kpi-icon--blue{ background:#e8f0fe; color:#3868c9; }
  .kpi-icon--grey{ background:#eef0f3; color:#667085; }
  .kpi-label{ font-size:8px; color: var(--text-tertiary); margin-bottom:6px; }
  .kpi-num{ font-family: var(--font-display); font-size:17.4px; font-weight:700; }
  
  /* pill tabs */
  .pill-tabs{ display:flex; gap:8px; margin-bottom:12px; }
  .pill{
    background: var(--bg-app); color: var(--text-secondary); font-size:8px; font-weight:600;
    padding:7px 14px; border-radius:20px; transition: background .18s, color .18s;
  }
  .pill.is-active{ background: var(--text-primary); color:#fff; }
  .pill:hover:not(.is-active){ background:#e2e6ec; }
  
  .overdue-list{ max-height: 260px; overflow-y:auto; display:flex; flex-direction:column; }
  .overdue-list li{
    display:flex; align-items:center; gap:10px; padding:11px 4px;
    border-bottom:1px solid var(--border-subtle);
    transition: background .18s;
  }
  .overdue-list li:hover{ background: var(--bg-app); }
  .overdue-list li:last-child{ border-bottom:none; }
  .ov-title{ font-size:9px; font-weight:600; flex:1; }
  .ov-sub{ font-size:7.6px; color: var(--text-tertiary); position:absolute; margin-top:16px; display:none; }
  .overdue-list li{ position:relative; flex-wrap:wrap; }
  .overdue-list .ov-title{ flex-basis:100%; }
  .overdue-list .ov-sub{ display:block; position:static; flex:1; }
  
  /* role bars */
  .role-bars{ display:flex; flex-direction:column; gap:16px; }
  .role-name{ display:flex; justify-content:space-between; font-size:8.2px; font-weight:600; margin-bottom:6px; color: var(--text-secondary); }
  .role-name span{ color: var(--text-tertiary); font-weight:500; }
  .progress-track{ display:flex; height:9px; border-radius:20px; overflow:hidden; background:#eef0f3; }
  .progress-fill{ height:100%; width:0; background: var(--c); transition: width 1s var(--ease); }
  .legend-row{ display:flex; gap:18px; margin-top:16px; flex-wrap:wrap; }
  .legend-row span{ display:flex; align-items:center; gap:6px; font-size:7.6px; color: var(--text-secondary); }
  .legend-row i{ width:8px; height:8px; border-radius:50%; background: var(--c); display:inline-block; }
  
  /* donut */
  .donut-wrap{ display:flex; align-items:center; gap:24px; flex-wrap:wrap; }
  .donut-svg{ width: 190px; height:190px; flex-shrink:0; }
  .donut-svg circle.seg{ transition: stroke-dashoffset 1.1s var(--ease); }
  .donut-legend{ display:flex; flex-direction:column; gap:9px; }
  .donut-legend span{ display:flex; align-items:center; gap:8px; font-size:8px; color: var(--text-secondary); }
  .donut-legend i{ width:9px; height:9px; border-radius:50%; background: var(--c); flex-shrink:0; }
  .donut-wrap--stacked{ flex-direction:column; align-items:center; gap:18px; }
  .donut-legend--grid{ display:grid; grid-template-columns: repeat(3, auto); column-gap:22px; row-gap:9px; width:100%; }
  
  /* mini bar chart */
  .bar-chart{ display:flex; align-items:flex-end; gap:22px; height:180px; padding: 10px 6px 0; }
  .bar-chart-col{ display:flex; flex-direction:column; align-items:center; gap:8px; flex:1; height:100%; justify-content:flex-end; }
  .bar-chart-bar{
    width:100%; max-width:44px; border-radius: 8px 8px 4px 4px;
    background: linear-gradient(180deg, #2fc2b8, #0f8c84);
    height:0; transition: height 1s var(--ease);
  }
  .bar-chart-col span{ font-size:7.4px; color: var(--text-tertiary); font-weight:600; }
  
  /* empty state */
  .empty-state{ display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding: 46px 20px 26px; height:180px; }
  .empty-state-icon{ width:48px; height:48px; color: var(--teal-light); background: var(--bg-app); border-radius:50%; display:flex; align-items:center; justify-content:center; margin-bottom:14px; }
  .empty-state-icon svg{ width:24px; height:24px; color: var(--teal); }
  .empty-state-title{ font-weight:700; font-size:9.7px; color: var(--text-primary); margin-bottom:4px; }
  .empty-state-sub{ font-size:8.2px; color: var(--text-tertiary); max-width:260px; }
  .empty-state-icon--doc{ background: var(--bg-app); }
  .empty-state-icon--doc svg{ color: var(--text-tertiary); }
  
  /* ============================================================
     ONBOARD: PEOPLE PORTAL VIEW
     ============================================================ */
  .onboard-view{ display:none; }
  .onboard-view.is-active{ display:block; }
  
  .portal-banner{
    position:relative; height:170px; border-radius: var(--radius-lg); overflow:hidden; margin-bottom:20px;
    background:
      radial-gradient(60% 90% at 50% 78%, rgba(255,196,140,.55), transparent 60%),
      linear-gradient(180deg, #33507e 0%, #5c81ab 30%, #a9866f 62%, #e8b98f 82%, #f3d9bd 100%);
    box-shadow: var(--shadow-md);
  }
  .portal-banner-glow{
    position:absolute; left:50%; bottom:18%; width:220px; height:220px; margin-left:-110px;
    background: radial-gradient(circle, rgba(255,224,170,.9), rgba(255,224,170,0) 70%);
    z-index:1; filter: blur(2px);
  }
  .portal-banner-overlay{ position:absolute; inset:0; background: linear-gradient(180deg, rgba(8,12,26,.05) 0%, rgba(8,12,26,.62) 100%); z-index:2; }
  .portal-skyline{ position:absolute; left:0; right:0; bottom:0; width:100%; height:80%; filter: drop-shadow(0 0 1px rgba(0,0,0,.2)); }
  .portal-skyline .bldg-far{ opacity:.55; }
  .portal-skyline .bldg-mid{ opacity:.8; }
  .portal-subnav{ position:absolute; left:26px; bottom:16px; display:flex; gap:26px; z-index:2; }
  .portal-subnav a{ color:rgba(255,255,255,.75); font-size:9px; font-weight:600; padding-bottom:6px; position:relative; transition: color .15s var(--ease); }
  .portal-subnav a:hover{ color:#fff; }
  .portal-subnav a.is-active{ color:#fff; }
  .portal-subnav a.is-active::after{ content:""; position:absolute; left:0; right:0; bottom:0; height:2px; background:#fff; border-radius:2px; }
  
  /* Employee Portal — accent is the HR Cloud product teal (kept
     distinct from the purple dashboard theme, per the reference). */
  :root{ --portal-teal: #00C4C9; --portal-teal-dark: #00a3a7; }
  .portal-two-col{ display:grid; grid-template-columns: 1fr 1.05fr; gap:20px; align-items:start; }
  .portal-col{ display:flex; flex-direction:column; gap:20px; }
  .portal-two-col .card{ margin-bottom:0; border-top: 1px solid var(--border-subtle); box-shadow: var(--shadow-sm); }
  #viewAdminOnboardBtn{ background: var(--bg-app); border:none; border-radius:20px; }
  #viewAdminOnboardBtn:hover{ box-shadow:none; }
  .empty-state--flat .empty-state-icon{ background:none; }
  .empty-state--flat .empty-state-icon svg{ width:34px; height:34px; }
  .empty-state--flat{ height:150px; }

  .card-link{ margin-left:auto; font-size:7.6px; font-weight:700; text-transform:uppercase; letter-spacing:.03em; color: var(--portal-teal); display:flex; align-items:center; gap:2px; }

  .portal-profile-row{ display:flex; gap:14px; align-items:center; background: var(--bg-app); border-radius: var(--radius-sm); padding:16px; margin-bottom:14px; }
  .portal-profile-photo{ width:56px; height:56px; border-radius:50%; object-fit:cover; flex-shrink:0; }
  .portal-profile-name{ font-weight:700; font-size:10.4px; color: var(--text-primary); }
  .portal-profile-title{ font-size:8.4px; color: var(--text-tertiary); margin:2px 0 6px; }
  .profile-meta-row{ display:flex; align-items:center; gap:6px; font-size:8px; color: var(--text-tertiary); margin-top:3px; }
  .profile-meta-row svg{ width:11px; height:11px; flex-shrink:0; }

  .portal-completeness{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:2px 4px; }
  .portal-completeness-title{ font-weight:700; font-size:9.4px; color: var(--text-primary); margin-bottom:4px; }
  .portal-completeness-sub{ font-size:8px; color: var(--text-tertiary); margin-bottom:10px; }
  .btn-teal{
    display:inline-flex; align-items:center; gap:6px; background: var(--portal-teal); color:#fff; font-size:8.2px; font-weight:700;
    padding:8px 16px; border-radius:20px; transition: background .18s, transform .15s;
  }
  .btn-teal:hover{ background: var(--portal-teal-dark); transform: translateY(-1px); }
  .btn-teal svg{ width:12px; height:12px; }
  .portal-ring{ position:relative; width:70px; height:70px; flex-shrink:0; }
  .portal-ring svg{ width:100%; height:100%; }
  .portal-ring circle#portalRing{ transition: stroke-dashoffset 1s var(--ease); }
  .portal-ring span{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:10px; color: var(--portal-teal-dark); font-family: var(--font-display); }

  .portal-welcome-text{ font-size:8.6px; color: var(--text-secondary); line-height:1.7; margin:0 0 10px; }
  .portal-welcome-sign{ font-weight:600; color: var(--text-primary); margin-bottom:0; }

  .hrsupport-heading{ font-size:12.5px; font-weight:700; color: var(--text-primary); margin-bottom:10px; }
  .hrsupport-subheading{ font-size:9.4px; font-weight:700; color: var(--text-primary); margin-bottom:10px; }
  .hrsupport-list{ padding-left:16px; }
  .hrsupport-list > li{ list-style:disc; font-size:8.6px; font-weight:600; color: var(--text-primary); margin-bottom:10px; }
  .hrsupport-list ul{ padding-left:16px; margin-top:4px; }
  .hrsupport-list ul li{ list-style:circle; font-size:8.2px; font-weight:500; color: var(--text-tertiary); margin-bottom:2px; }

  .video-row{ display:flex; align-items:center; gap:12px; padding:9px 0; }
  .video-thumb{ position:relative; width:44px; height:34px; border-radius:6px; overflow:hidden; flex-shrink:0; background:#1c2130; }
  .video-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
  .video-thumb::after{
    content:"\25B6"; position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
    color:#fff; font-size:8px; background: rgba(0,0,0,.22);
  }
  .video-info{ flex:1; min-width:0; }
  .video-title{ font-size:8.8px; font-weight:700; color: var(--text-primary); }
  .video-sub{ font-size:7.6px; color: var(--text-tertiary); margin-top:2px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .video-time{ font-size:7.8px; color: var(--text-tertiary); flex-shrink:0; }

  .doc-row{ display:flex; align-items:center; gap:10px; padding:9px 0; }
  .doc-icon{ width:24px; height:28px; border-radius:3px; background:#e2503f; color:#fff; font-size:6px; font-weight:700; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
  .doc-name{ flex:1; font-size:8.6px; font-weight:600; color: var(--text-primary); }
  .doc-row svg{ width:13px; height:13px; color: var(--text-tertiary); flex-shrink:0; }

  .link-row{ display:flex; align-items:center; gap:10px; padding:8px 0; font-size:8.6px; font-weight:600; color: var(--text-primary); }
  .link-row svg{ width:13px; height:13px; color: var(--text-tertiary); flex-shrink:0; }
  .link-row .eye-icon{ margin-left:auto; }

  .portal-pictures-grid{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
  .portal-pictures-grid img{ width:100%; height:90px; object-fit:cover; border-radius: var(--radius-sm); }
  .pictures-more{ position:relative; border-radius: var(--radius-sm); overflow:hidden; }
  .pictures-more img{ height:90px; }
  .pictures-more span{
    position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
    background: rgba(20,22,30,.55); color:#fff; font-weight:700; font-size:11px;
  }

  /* Employee Portal top bar — logo centered, nav button pinned right */
  .portal-topbar{
    position:relative; display:flex; align-items:center; justify-content:flex-end;
    background: var(--portal-teal); border-radius: var(--radius-md);
    padding:32px 20px; margin-bottom:20px;
  }
  .portal-topbar .topbar-logo{ position:absolute; left:50%; transform:translateX(-50%); }
  .portal-topbar .topbar-logo img{ height:34px; }
  #viewAdminOnboardBtn{ background: rgba(255,255,255,.85); }

  /* Welcome banner */
  .welcome-card{ display:flex; overflow:hidden; padding:0; margin-bottom:20px; border-top: 1px solid var(--border-subtle); }
  .welcome-left{ flex: 1.1; padding:28px 30px; position:relative; }
  .welcome-blimp-row{ position:relative; height:58px; width:fit-content; margin-bottom:22px; }
  .welcome-blimp-row img{ height:100%; }
  .welcome-flag{ position:absolute; left:58%; top:58%; transform:translateY(-50%); color:#fff; font-weight:700; font-size:13px; white-space:nowrap; }
  .welcome-note{ background: var(--bg-app); border-radius: var(--radius-sm); padding:16px 20px; font-size:8.8px; color: var(--text-secondary); line-height:1.7; }
  .welcome-right{ flex:1; background:#F3FBFC; }
  .welcome-right img{ width:100%; height:100%; object-fit:cover; display:block; }
  @keyframes welcomeSlideIn{ from{ transform:translateX(-140px); opacity:0; } to{ transform:translateX(0); opacity:1; } }
  @keyframes welcomeRiseIn{ from{ transform:translateY(60px); opacity:0; } to{ transform:translateY(0); opacity:1; } }
  .welcome-blimp-row{ animation: welcomeSlideIn .7s var(--ease) both; }
  .welcome-right img{ animation: welcomeRiseIn .7s var(--ease) .7s both; }

  /* Your Team card */
  .team-box{ background: var(--bg-app); border-radius: var(--radius-sm); padding:16px; text-align:center; margin-bottom:12px; }
  .team-box-label{ font-size:8.4px; font-weight:700; color: var(--text-primary); margin-bottom:10px; }
  .team-box img{ display:block; width:48px; height:48px; border-radius:50%; object-fit:cover; margin:0 auto 8px; }

  /* Tasks card — progress bar + completed checklist */
  .task-progress{ position:relative; margin:16px 0 20px; }
  .task-progress-track{ height:6px; border-radius:10px; background:#EEF1F4; overflow:hidden; }
  .task-progress-fill{ height:100%; width:0%; background: var(--portal-teal); border-radius:10px; transition: width 1.4s var(--ease); }
  .task-progress-badge{
    position:absolute; top:-26px; right:0; background: var(--portal-teal); color:#fff;
    font-size:8px; font-weight:700; padding:3px 8px; border-radius:6px;
    opacity:0; transition: opacity .3s;
  }
  .task-progress-badge::after{
    content:""; position:absolute; left:50%; bottom:-4px; transform:translateX(-50%);
    border:4px solid transparent; border-top-color: var(--portal-teal);
  }
  .task-list{ display:flex; flex-direction:column; }
  .task-row{
    display:flex; align-items:center; gap:10px; padding:8px 0; border-bottom:1px solid var(--border-subtle);
    opacity:0; transform:translateX(-6px); transition: opacity .35s var(--ease), transform .35s var(--ease);
  }
  .task-row:last-child{ border-bottom:none; }
  .task-row.is-in{ opacity:1; transform:none; }
  .task-row svg{ width:14px; height:14px; color: var(--text-tertiary); flex-shrink:0; }
  .task-name{ flex:1; min-width:0; font-size:8.4px; font-weight:600; color: var(--text-primary); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .badge-completed{ background: var(--success); color:#fff; text-transform:uppercase; }
  #taskI9Row{ cursor:pointer; }
  #navChecklists{ cursor:pointer; color: var(--sidebar-text-active); }
  #navChecklists .nav-icon svg{ color: var(--sidebar-text-active); }
  .team-person{ display:flex; align-items:center; gap:12px; }
  .team-person img{ width:52px; height:52px; border-radius:50%; object-fit:cover; flex-shrink:0; }
  .team-person-name{ font-weight:700; font-size:9.4px; color: var(--text-primary); }
  .team-person-title{ font-size:8px; color: var(--text-tertiary); margin-top:2px; }
  .reports-row{ display:grid; grid-template-columns: repeat(4, 1fr); gap:8px; }
  .report-col{ text-align:center; }
  .report-col img, .report-col .report-avatar{
    width:44px; height:44px; border-radius:50%; object-fit:cover; margin:0 auto 6px; display:block; position:relative;
  }
  .report-avatar{ position:relative; }
  .report-avatar img{ width:100%; height:100%; margin:0; }
  .report-avatar span{
    position:absolute; inset:0; border-radius:50%; display:flex; align-items:center; justify-content:center;
    background: rgba(20,22,30,.5); color:#fff; font-weight:700; font-size:9px;
  }
  .report-col-name{ font-size:7.8px; font-weight:700; color: var(--text-primary); }
  .report-col-title{ font-size:7px; color: var(--text-tertiary); margin-top:1px; }

  /* ============================================================
     EMPLOYEE PROFILE PAGE
     Sections animate in as named groups (not statically rendered) —
     see .reveal-group / runProfileReveal in script.js.
     ============================================================ */
  .reveal-group{
    opacity:0; transform: translateY(18px);
    transition: opacity .5s var(--ease), transform .5s var(--ease);
  }
  .reveal-group.is-in{ opacity:1; transform:translateY(0); }

  .profile-back{ display:inline-flex; align-items:center; gap:6px; font-size:8.6px; font-weight:600; text-transform:uppercase; letter-spacing:.03em; color: var(--text-secondary); margin-bottom:14px; }
  .profile-header{
    display:flex; align-items:flex-start; justify-content:space-between; gap:16px;
    margin-bottom:16px;
  }
  .profile-header-left{ display:flex; align-items:flex-start; gap:16px; }
  .profile-photo-col{ display:flex; flex-direction:column; align-items:center; gap:8px; flex-shrink:0; }
  .profile-photo-lg{ width:64px; height:64px; border-radius:50%; object-fit:cover; }
  .profile-name-row{ display:flex; align-items:center; gap:10px; }
  .profile-name-row .profile-name{ font-weight:700; font-size:12px; color: var(--text-primary); font-family: var(--font-display); }
  .profile-badge-active{
    font-size:7.2px; font-weight:700; letter-spacing:.04em; text-transform:uppercase;
    padding:3px 10px; border-radius:20px; background: var(--portal-teal); color:#fff;
    margin-top:-14px; z-index:1;
  }
  .profile-title-line{ font-size:8.6px; color: var(--text-tertiary); margin:2px 0 6px; }
  .profile-meta{ display:flex; align-items:center; gap:5px; font-size:8.2px; color: var(--text-tertiary); }
  .profile-meta svg{ width:11px; height:11px; flex-shrink:0; }
  .profile-contact-row{ display:flex; gap:6px; }
  .contact-icon{
    width:28px; height:28px; border-radius:50%; border:1px solid var(--border-subtle);
    display:flex; align-items:center; justify-content:center; color: var(--text-secondary);
    transition: box-shadow .18s, transform .15s;
  }
  .contact-icon:hover{ box-shadow: var(--shadow-sm); transform: translateY(-1px); }
  .contact-icon svg{ width:13px; height:13px; }
  .btn-actions{
    display:flex; align-items:center; gap:6px; background: var(--portal-teal); color:#fff;
    font-size:8.6px; font-weight:700; text-transform:uppercase; padding:10px 16px; border-radius:9px;
    transition: background .18s, transform .15s; flex-shrink:0;
  }
  .btn-actions:hover{ background: var(--portal-teal-dark); transform: translateY(-1px); }
  .btn-actions svg{ width:13px; height:13px; }

  .profile-tabs{ display:flex; gap:20px; overflow-x:auto; border-bottom:1px solid var(--border-subtle); margin: 0 0 18px 90px; padding-bottom:0; }
  .profile-tabs a{
    font-size:8.4px; font-weight:700; letter-spacing:.02em; text-transform:uppercase;
    color: var(--text-tertiary); padding-bottom:10px; white-space:nowrap; position:relative;
  }
  .profile-tabs a:hover{ color: var(--text-primary); }
  .profile-tabs a.is-active{ color: var(--portal-teal); }
  .profile-tabs a.is-active::after{
    content:""; position:absolute; left:0; right:0; bottom:-1px; height:2.5px;
    background: var(--portal-teal); border-radius:2px;
  }

  .profile-layout{ display:grid; grid-template-columns: .8fr 2fr; gap:20px; align-items:start; }

  .profile-side-section{ padding:16px 0; border-bottom:1px solid var(--border-subtle); }
  .profile-side-section:first-child{ padding-top:0; }
  .profile-side-section:last-child{ border-bottom:none; padding-bottom:0; }
  .profile-side-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }

  .portfolio-list{ display:flex; flex-direction:column; gap:2px; }
  .portfolio-item{ display:flex; align-items:center; gap:10px; padding:9px 0; font-size:8.6px; color: var(--text-primary); font-weight:600; }
  .portfolio-item svg{ width:15px; height:15px; color: var(--portal-teal); flex-shrink:0; }
  .portfolio-counts{ margin-left:auto; display:flex; gap:8px; }
  .portfolio-count{ min-width:14px; text-align:right; color: var(--text-tertiary); font-weight:700; }
  .portfolio-count--warn{ color:#E2A03F; }

  .count-pill{
    background: var(--bg-app); color: var(--text-secondary); font-size:8.4px; font-weight:700;
    padding:3px 9px; border-radius:20px; margin-left:8px;
  }
  .btn-add-circle{
    width:24px; height:24px; border-radius:50%; border:none; background: var(--bg-app);
    display:flex; align-items:center; justify-content:center; color: var(--text-secondary); flex-shrink:0;
  }
  .btn-add-circle svg{ width:11px; height:11px; }
  .direct-reports-row{ display:flex; align-items:center; }
  .direct-reports-row img{
    width:34px; height:34px; border-radius:50%; object-fit:cover;
    border:2px solid var(--card-bg); margin-left:-9px;
  }
  .direct-reports-row img:first-child{ margin-left:0; }
  .direct-reports-chip{
    width:34px; height:34px; border-radius:50%; margin-left:-9px;
    background:#B23F9E; color:#fff; border:2px solid var(--card-bg);
    display:flex; align-items:center; justify-content:center; font-size:7.6px; font-weight:700;
  }
  .direct-reports-more{
    width:34px; height:34px; border-radius:50%; margin-left:-9px;
    background: var(--bg-app); color: var(--text-secondary); border:2px solid var(--card-bg);
    display:flex; align-items:center; justify-content:center; font-size:7.6px; font-weight:700;
  }

  .skill-tags{ display:flex; flex-wrap:wrap; gap:8px; }
  .tag-pill{
    font-size:8.2px; font-weight:600; color: var(--text-secondary);
    background: var(--bg-app); border-radius:20px; padding:6px 13px;
  }
  .profile-layout .card{ border-top: 1px solid var(--border-subtle); }
  .about-row{ margin-bottom:16px; }
  .about-row:last-child{ margin-bottom:0; }
  .about-row-title{ font-size:8.4px; font-weight:700; color: var(--text-primary); margin-bottom:4px; }
  .about-row-text{ font-size:8.6px; color: var(--text-tertiary); }
  .card-edit-link{ margin-left:auto; display:flex; align-items:center; gap:4px; font-size:7.8px; font-weight:700; color: var(--portal-teal); }
  .card-edit-link svg{ width:10px; height:10px; }
  .card-title-icon{ width:12px; height:12px; margin-right:2px; }

  .portals-list{ display:flex; flex-direction:column; }
  .portals-item{ display:flex; align-items:center; gap:12px; padding:11px 0; border-bottom:1px solid var(--border-subtle); font-size:9px; font-weight:600; color: var(--text-primary); }
  .portals-item:last-child{ border-bottom:none; padding-bottom:0; }
  .portals-item:first-child{ padding-top:0; }
  .portals-item img{ width:28px; height:28px; border-radius:7px; flex-shrink:0; }
  .portals-item .chev{ margin-left:auto; color: var(--text-tertiary); }


  /* ============================================================
     Task detail + form-viewer overlays (Tasks card -> I-9 flow)
     ============================================================ */
  .modal-overlay{
    display:none; position:absolute; inset:0; z-index:80; overflow:hidden;
    background: rgba(20,24,32,.45);
  }
  .modal-overlay.is-open{ display:flex; }

  .task-modal{
    width:100%; height:100%; background:#fff; overflow-y:auto;
  }
  .task-modal-topbar{ display:flex; align-items:center; justify-content:space-between; padding:16px 20px; }
  .badge-incomplete{ background:#3d464d; color:#fff; font-size:7.6px; font-weight:700; text-transform:uppercase; padding:5px 10px; border-radius:5px; }
  .task-modal-icons{ display:flex; align-items:center; gap:14px; color: var(--text-tertiary); }
  .task-modal-icons svg{ width:15px; height:15px; cursor:pointer; }
  .task-chain-banner{
    display:flex; align-items:center; gap:8px; background: var(--bg-app); color: var(--text-secondary);
    font-size:8.4px; font-weight:600; padding:10px 20px;
  }
  .task-chain-banner svg{ width:13px; height:13px; flex-shrink:0; }
  .task-chain-banner a{ text-decoration:underline; }
  .task-modal-body{ padding:22px 20px; }
  .task-modal-title{ font-family: var(--font-display); font-size:15px; font-weight:600; color: var(--text-primary); margin:0 0 8px; }
  .task-related{ display:flex; align-items:center; gap:6px; font-size:8.6px; color: var(--text-tertiary); margin-bottom:18px; }
  .task-related svg{ width:13px; height:13px; }
  .task-related strong{ color: var(--text-secondary); }
  .task-modal-meta-row{ display:flex; gap:60px; margin-bottom:18px; }
  .task-assignee{ display:flex; align-items:center; gap:10px; }
  .task-assignee img{ width:34px; height:34px; border-radius:50%; object-fit:cover; }
  .task-assignee a{ font-size:8.8px; font-weight:600; text-decoration:underline; color: var(--text-primary); }
  .task-meta-label{ font-size:7.8px; color: var(--text-tertiary); margin-bottom:4px; }
  .task-duedate-value{ font-size:9px; font-weight:600; color: var(--text-primary); }
  .task-desc{ font-size:8.8px; color: var(--text-primary); line-height:1.6; margin:6px 0 20px; }
  .task-form-row{
    display:flex; align-items:center; justify-content:space-between;
    background: var(--bg-app); border-radius: var(--radius-sm); padding:16px 18px; margin-bottom:18px;
  }
  .task-form-row-left{ display:flex; align-items:center; gap:10px; font-size:9.4px; font-weight:600; color: var(--text-primary); }
  .task-form-row-left svg{ width:16px; height:16px; color: var(--text-tertiary); }
  .task-modal-links{ text-align:right; margin-bottom:16px; }
  .task-modal-links a{ font-size:8.2px; font-weight:700; text-decoration:underline; color: var(--text-secondary); }
  .task-modal-body hr{ border:none; border-top:1px solid var(--border-subtle); margin-bottom:16px; }
  .task-activity-row{ display:flex; align-items:center; justify-content:space-between; font-size:8.4px; color: var(--text-secondary); margin-bottom:6px; }
  .task-activity-row .show-activity{ text-decoration:underline; font-weight:700; }
  .task-activity-text{ font-size:8.8px; color: var(--text-primary); }
  .task-modal-footer{
    display:flex; align-items:center; gap:10px; padding:14px 20px; border-top:1px solid var(--border-subtle);
  }
  .task-modal-footer img{ width:28px; height:28px; border-radius:50%; object-fit:cover; flex-shrink:0; }
  .task-modal-footer input{
    flex:1; border:1px solid var(--border-subtle); border-radius:20px; padding:8px 14px; font-size:8.6px; font-family:inherit;
  }
  .task-modal-footer svg{ width:15px; height:15px; color: var(--text-tertiary); flex-shrink:0; }
  .btn-send{ background: var(--bg-app); color: var(--text-tertiary); font-size:8px; font-weight:700; text-transform:uppercase; padding:8px 14px; border-radius:8px; }

  .form-modal{ width:100%; height:100%; background:#fff; display:flex; flex-direction:column; }
  .form-modal-topbar{ display:flex; align-items:center; justify-content:space-between; padding:12px 18px; border-bottom:1px solid var(--border-subtle); }
  .form-modal-title{ display:flex; align-items:center; gap:8px; font-family: var(--font-display); font-size:13px; color: var(--text-primary); }
  .form-modal-title svg{ width:13px; height:13px; color: var(--text-tertiary); }
  .form-modal-actions{ display:flex; align-items:center; gap:14px; }
  .form-modal-actions > svg{ width:15px; height:15px; color: var(--text-tertiary); }
  .btn-cancel{ border:1px solid var(--border-subtle); border-radius:8px; padding:8px 16px; font-size:8.6px; font-weight:600; color: var(--text-secondary); }
  .form-modal-actions .btn-teal{ padding:8px 16px; }
  .form-modal-actions .btn-teal svg{ width:11px; height:11px; }
  .form-modal-toolbar{ display:flex; gap:16px; padding:10px 18px; color: var(--text-tertiary); border-bottom:1px solid var(--border-subtle); }
  .form-modal-toolbar svg{ width:15px; height:15px; }
  .form-modal-pages{ flex:1; overflow-y:auto; background: var(--bg-app); padding:20px; display:flex; flex-direction:column; align-items:center; gap:16px; }
  .form-modal-pages img{ width:100%; max-width:760px; box-shadow: var(--shadow-lg); border-radius:4px; }
  .i9-page-wrap{ position:relative; width:100%; max-width:760px; container-type:inline-size; }
  .i9-page-wrap img{ display:block; }
  .i9-signature{
    position:absolute; left:20%; top:43.6%; font-family:'Alex Brush', cursive;
    font-size:6.2cqi; color:#2b5490; white-space:nowrap; transform: rotate(-2deg); line-height:1;
  }

  /* Checklists (SmartFlows) overlay */
  .checklist-modal{ width:100%; height:100%; background:#fff; display:flex; flex-direction:column; overflow:hidden; padding:22px 28px 24px; }
  .checklist-header{ background: linear-gradient(120deg,#1f8fe8,#1467c9); color:#fff; font-family: var(--font-display); font-size:19px; font-weight:600; padding:26px 26px 22px; border-radius: var(--radius-md); margin-bottom:18px; flex-shrink:0; }
  .checklist-toolbar{ display:flex; align-items:center; gap:16px; padding:9px 16px; border-bottom:1px solid var(--border-subtle); font-size:8.6px; font-weight:600; color: var(--text-secondary); flex-shrink:0; min-width:0; flex-wrap:wrap; }
  .checklist-toolbar svg{ width:14px; height:14px; }
  .checklist-toolbar .grow{ flex:1; }
  .checklist-filter-row{ display:flex; gap:8px; padding:8px 16px; background:#3d464d; flex-shrink:0; min-width:0; }
  .checklist-filter-row input{
    flex:1; min-width:0; background:#4b555d; border:none; border-radius:5px; color:#cfd6db;
    font-size:7.8px; padding:6px 8px; font-family:inherit;
  }
  .checklist-filter-row input::placeholder{ color:#9aa4ac; }
  .checklist-table-wrap{ flex:1; min-width:0; min-height:0; overflow:auto; }
  .checklist-table{ width:100%; table-layout:fixed; border-collapse:collapse; font-size:8.4px; }
  .checklist-table th{
    position:sticky; top:0; background:#fff; text-align:left; font-size:7.6px; font-weight:700; text-transform:uppercase;
    color: var(--text-tertiary); padding:10px 8px; border-bottom:1px solid var(--border-subtle); overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
  }
  .checklist-table td{ padding:9px 8px; border-bottom:1px solid var(--border-subtle); color: var(--text-primary); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .checklist-table th:nth-child(1), .checklist-table td:nth-child(1){ width:4%; }
  .checklist-table th:nth-child(2), .checklist-table td:nth-child(2){ width:7%; }
  .checklist-table th:nth-child(3), .checklist-table td:nth-child(3){ width:19%; }
  .checklist-table th:nth-child(4), .checklist-table td:nth-child(4){ width:14%; }
  .checklist-table th:nth-child(5), .checklist-table td:nth-child(5){ width:13%; }
  .checklist-table th:nth-child(6), .checklist-table td:nth-child(6){ width:8%; }
  .checklist-table th:nth-child(7), .checklist-table td:nth-child(7){ width:8%; }
  .checklist-table th:nth-child(8), .checklist-table td:nth-child(8){ width:10%; }
  .checklist-table th:nth-child(9), .checklist-table td:nth-child(9){ width:9%; }
  .checklist-table th:nth-child(10), .checklist-table td:nth-child(10){ width:8%; }
  .checklist-table tr:hover td{ background: var(--bg-app); }
  .checklist-table a{ color: var(--text-primary); font-weight:600; }
  .status-toggle{ width:28px; height:15px; border-radius:20px; background: var(--portal-teal); position:relative; display:inline-block; }
  .status-toggle::after{ content:""; position:absolute; top:2px; right:2px; width:11px; height:11px; border-radius:50%; background:#fff; }
  .checklist-row-actions{ display:flex; gap:10px; color: var(--text-tertiary); }
  .checklist-row-actions svg{ width:13px; height:13px; }
  .checklist-footer{ padding:8px 16px; text-align:right; font-size:8px; color: var(--text-tertiary); border-top:1px solid var(--border-subtle); flex-shrink:0; }
  .status-toggle--off{ background:#d7dbe0; }
  .status-toggle--off::after{ right:auto; left:2px; }

  /* "All Employees" module editor */
  .module-modal{ width:100%; height:100%; background:#fff; display:flex; flex-direction:column; overflow:hidden; }
  .module-topbar{ display:flex; align-items:center; justify-content:space-between; padding:14px 24px; border-bottom:1px solid var(--border-subtle); flex-shrink:0; }
  .module-title{ display:flex; align-items:center; gap:8px; font-family: var(--font-display); font-size:14px; color: var(--text-primary); }
  .module-title svg{ width:12px; height:12px; color: var(--text-tertiary); }
  .module-topbar-actions{ display:flex; gap:10px; }
  .module-topbar-actions .btn-teal{ padding:8px 16px; }
  .module-tabs{ display:flex; align-items:center; gap:10px; padding:10px 24px; border-bottom:1px solid var(--border-subtle); font-size:8px; font-weight:700; text-transform:uppercase; letter-spacing:.03em; color: var(--text-tertiary); flex-shrink:0; }
  .module-tabs .is-active{ color: var(--portal-teal); }
  .module-crumb-sep{ color: var(--border-subtle); }
  .module-active-toggle{ margin-left:auto; display:flex; align-items:center; gap:8px; font-size:8.2px; color: var(--text-secondary); text-transform:none; font-weight:600; }
  .module-body{ flex:1; min-height:0; overflow-y:auto; padding:18px 24px; }
  .module-schedule-label{ font-size:7.6px; font-weight:700; text-transform:uppercase; color: var(--text-tertiary); margin-bottom:14px; }
  .module-layout{ display:grid; grid-template-columns: 150px 1fr 210px; gap:20px; align-items:start; }
  .module-trigger-box{ display:flex; align-items:center; justify-content:space-between; gap:8px; background: var(--card-bg); border:1px solid var(--border-subtle); border-radius:8px; padding:9px 12px; font-size:8px; color: var(--text-secondary); }
  .module-trigger-box svg{ width:11px; height:11px; color: var(--text-tertiary); flex-shrink:0; }
  .module-col-headers{ display:grid; grid-template-columns: 44px 1fr 130px 130px 80px; gap:8px; font-size:7.2px; font-weight:700; text-transform:uppercase; color: var(--text-tertiary); padding-bottom:10px; }
  .module-timeline{ position:relative; }
  .module-timeline::before{ content:""; position:absolute; left:9px; top:0; bottom:0; width:2px; background:#dfe3e8; }
  .module-row{ position:relative; padding:8px 0; }
  .module-dot{ position:absolute; left:6px; top:15px; width:8px; height:8px; border-radius:50%; background:#c7cdd3; transition: background .3s, box-shadow .3s; z-index:1; }
  .module-dot.is-lit{ background: var(--portal-teal); box-shadow: 0 0 0 4px rgba(0,196,201,.25); }
  .module-row-card{
    margin-left:34px; background: var(--card-bg); border:1px solid var(--border-subtle);
    border-radius:8px; box-shadow: var(--shadow-sm); padding:10px 14px;
    transition: transform .4s var(--ease), box-shadow .3s var(--ease);
  }
  .module-row.is-zoom .module-row-card{ transform: scale(1.015); box-shadow: var(--shadow-lg); }
  .module-row-main{
    display:grid; grid-template-columns: 20px 14px 16px 46px 1fr 130px 130px 80px; align-items:center; gap:8px;
  }
  .module-drag{ color: var(--text-tertiary); font-size:10px; letter-spacing:-2px; }
  .module-row-main .module-drag{ grid-column:1; }
  .module-row-main input[type=checkbox]{ width:13px; height:13px; grid-column:2; }
  .module-type-icon svg{ width:13px; height:13px; color: var(--text-tertiary); }
  .module-row-main .module-type-icon{ grid-column:3; }
  .module-type-label{ font-size:7.6px; font-weight:700; text-transform:uppercase; color: var(--text-secondary); white-space:nowrap; }
  .module-row-main .module-type-label{ grid-column: 4; }
  .module-type-label em{ font-style:normal; color: var(--text-tertiary); font-weight:600; }
  .module-row-name{ font-size:8.6px; font-weight:600; color: var(--text-primary); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .module-row-main .module-row-name{ grid-column:5; }
  .module-row-assignee, .module-row-due{ font-size:8.2px; color: var(--text-secondary); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .module-row-main .module-row-assignee{ grid-column:6; }
  .module-row-main .module-row-due{ grid-column:7; }
  .module-row-actions{ display:flex; gap:8px; color: var(--text-tertiary); justify-self:end; }
  .module-row-main .module-row-actions{ grid-column:8; }
  .module-row-actions svg{ width:12px; height:12px; }
  .module-sub-list{ margin-left:56px; padding-left:14px; border-left:2px dashed var(--border-subtle); margin-top:6px; }
  .module-sub-row{ display:grid; grid-template-columns: 16px 14px 1fr 130px 130px; gap:8px; align-items:center; padding:5px 0; }
  .module-sub-num{ width:14px; height:14px; border-radius:50%; background: var(--portal-teal); color:#fff; font-size:6.6px; font-weight:700; display:flex; align-items:center; justify-content:center; }
  .module-add-btn{ width:26px; height:26px; border-radius:50%; background: var(--portal-teal); display:flex; align-items:center; justify-content:center; margin:14px 0 0 3px; }
  .module-add-btn svg{ width:12px; height:12px; }
  .module-summary{ background: var(--card-bg); border:1px solid var(--border-subtle); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding:18px; }
  .module-summary-block{ margin-bottom:16px; }
  .module-summary-label{ display:flex; align-items:center; gap:6px; font-size:8.6px; font-weight:700; color: var(--text-primary); margin-bottom:8px; }
  .module-summary-label svg{ width:10px; height:10px; color: var(--text-tertiary); margin-left:auto; }
  .module-summary-sub{ font-size:7.6px; color: var(--text-tertiary); margin-bottom:4px; }
  .module-summary-value{ font-size:8.4px; color: var(--text-secondary); background: var(--bg-app); border-radius:6px; padding:8px 10px; }
  .module-summary-row{ display:flex; align-items:center; justify-content:space-between; font-size:8.4px; font-weight:600; color: var(--text-primary); margin-bottom:0; }
  #checklistRowAllEmployees{ cursor:pointer; }

  /* ============================================================
     RESPONSIVE
     The dashboard itself never changes: on tablet/mobile it keeps
     its exact desktop layout rendered at a fixed reference size,
     then scales down as one unit (like a shrunk live preview) —
     the same pattern as the Personio reference. Only the floating
     top pill nav restyles (stacks full-width on phones).
     ============================================================ */
  
  /* narrow desktop window only — real fluid reflow, no scaling yet */
  @media (min-width: 1025px) and (max-width: 1180px){
    .two-col{ grid-template-columns: 1fr; }
    .kpi-row{ grid-template-columns: repeat(2,1fr); }
  }
  
  /* ---- Tablet & mobile: shrink the whole fixed-layout dashboard
     to fit — finer-grained tiers so it never clips, just leaves a
     bit more margin at the top of each tier's range ---- */
  @media (max-width: 1024px){
    body{ align-items:center; padding: 0; }
    .top-pills{ width:100%; max-width:600px; }
    .app-shell{
      width: 1400px;
      max-width: none;
      height: 900px;
      aspect-ratio: auto;
      flex: none;
      zoom: 0.50;
    }
  }
  @media (max-width: 860px){
    .app-shell{ zoom: 0.40; }
  }
  @media (max-width: 700px){
    .app-shell{ zoom: 0.35; }
  }
  @media (max-width: 560px){
    .app-shell{ zoom: 0.30; }
  }
  @media (max-width: 460px){
    .app-shell{ zoom: 0.26; }
  }
  @media (max-width: 380px){
    .app-shell{ zoom: 0.22; }
  }
  
  /* ---- Phones: pill nav becomes a 2-col grid, odd item spans full width ---- */
  @media (max-width: 640px){
    body{ padding: 0; }
    .top-pills{
      display:grid; grid-template-columns: 1fr 1fr;
      gap:10px; max-width:360px; margin: 0 auto 18px;
    }
    .top-pill{ width:100%; justify-content:center; padding:12px 14px; font-size:10.7px; }
    .top-pill:last-child{ grid-column: 1 / -1; }
  }

  /* ============================================================
     SURVEYS / PERFORM — sidebar icon tint (placeholder icon reuse)
     ============================================================ */

  /* ============================================================
     SURVEYS / PERFORM — page headers
     ============================================================ */
  #page-surveys, #page-perform{ position: relative; }

  .product-header--surveys { background: #7BC6CD; }
  .product-header--perform { background: #8C7BB4; }
  .product-header--perform .header-tabs{ margin-top: 6px; }

  .surveys-table, .perform-table {
    width: 100%; border-collapse: collapse;
  }
  .surveys-table th, .perform-table th {
    font-size:8.1px; color: #6b7280; text-transform: uppercase;
    letter-spacing: 0.05em; padding: 10px 12px;
    border-bottom: 1px solid #e5e7eb; text-align: left;
  }
  .surveys-table td, .perform-table td {
    padding: 12px; border-bottom: 1px solid #f3f4f6; color: #374151;
    font-size:9px;
  }
  .surveys-table tr:hover td, .perform-table tr:hover td {
    background: #f9fafb;
  }
  .status-pill {
    display: inline-block; padding: 3px 10px; border-radius: 4px;
    font-size:8.4px; font-weight: 700; white-space: nowrap;
    text-transform: uppercase; letter-spacing: 0.02em; color: #fff;
  }
  .status-pill--completed { background:#92B938; }
  .status-pill--pending   { background:#E9C148; }
  .status-pill--draft     { background:#AAB5B8; }
  .status-pill--pastdue   { background:#fff; border:1px solid #E8A49C; color:#E0776B; }

  /* pagination row (Perform reviews table) */
  .pagination-row{ display:flex; align-items:center; gap:6px; padding:14px 12px; }
  .pagination-btn{
    min-width:26px; height:26px; padding:0 6px; border-radius:4px;
    font-size:8.2px; font-weight:600; color: var(--text-secondary);
    transition: background .15s var(--ease);
  }
  .pagination-btn:hover{ background: var(--bg-app); }
  .pagination-btn.is-active{ background: #3FA7A0; color:#fff; }
  .pagination-ellipsis{ color: var(--text-tertiary); font-size:8.2px; padding:0 2px; }

  /* "NEW SURVEY ▾" button — teal fill, uppercase, top-left of toolbar */
  .btn-new-survey{
    display: inline-flex; align-items: center; gap: 6px;
    background: #7BC6CD; color: #fff; font-size:8px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.03em;
    padding: 10px 16px; border-radius: 6px;
    transition: background .18s var(--ease);
  }
  .btn-new-survey:hover{ background: #66B8C0; }

  /* checkbox column */
  .surveys-table input[type="checkbox"], .perform-table input[type="checkbox"]{
    width: 15px; height: 15px; accent-color: #7BC6CD; cursor: pointer;
  }
  .surveys-table th.col-check, .perform-table th.col-check,
  .surveys-table td.col-check, .perform-table td.col-check{ width: 34px; }

  .survey-sync-icon{ color: #7BC6CD; display: inline-flex; vertical-align: middle; margin-right: 6px; }
  .survey-sync-icon svg{ width: 13px; height: 13px; animation: spin 3s linear infinite; }

  /* Reviewee cell: avatar + name */
  .reviewee-cell{ display: flex; align-items: center; gap: 8px; }
  .avatar-circle{
    width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
    object-fit: cover; display: block;
  }

  /* Perform: dark utility bar (view toggles + per-column search) */
  .perform-utility-bar{
    display: flex; align-items: center;
    background: #797F84; border-radius: 8px 8px 0 0; overflow: hidden;
  }
  .perform-view-icon{
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 34px; color: #d8dce0; flex-shrink: 0;
  }
  .perform-view-icon svg{ width: 16px; height: 16px; }
  .perform-view-icon.is-active{ background: #A14C4F; color: #fff; }
  .perform-view-arrow{ color: #9aa1a6; padding: 0 6px; flex-shrink: 0; font-size:8.6px; }
  .perform-search-row{ display: flex; flex: 1; min-width: 0; }
  .perform-search-box{
    display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0;
    padding: 0 12px; height: 34px; border-left: 1px solid #8a9096;
    color: #aeb4b9; font-size:8.2px;
  }
  .perform-search-box svg{ width: 13px; height: 13px; flex-shrink: 0; color: #aeb4b9; }
  .perform-search-box span{ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  /* ============================================================
     AI Insights panel
     ============================================================ */
  .content-area{ position:relative; }
  /* Surveys' table is short enough that .content-area doesn't stretch
     to the full content height — that leaves a gap below the AI panel's
     input bar. Force it to fill, so the panel's inset trick reaches
     the true bottom edge (Perform's own longer table doesn't need this). */
  #page-surveys.is-active{ min-height: 100%; }
  #page-surveys .content-area{ min-height: 100%; }
  .ai-panel {
    position: absolute; top: -22px; right: -28px; bottom: -60px; left: -28px;
    width: auto; height: auto;
    background: #fff;
    box-shadow: -4px 0 20px rgba(0,0,0,0.08);
    display: flex; flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    z-index: 10;
  }
  .ai-panel.is-open { transform: translateX(0); }
  .ai-panel-header {
    display: flex; align-items: center;
    justify-content: space-between;
    padding: 16px 20px; border-bottom: 1px solid #f3f4f6;
  }
  .ai-panel-title { font-size:12px; font-weight: 600; color: #1f2937; }
  .ai-panel-close {
    border: 1px solid #d1d5db; border-radius: 6px;
    padding: 4px 12px; font-size:8px; background: #fff;
    color: #374151; cursor: pointer;
  }
  .ai-panel-tabs {
    display: flex; gap: 8px; padding: 12px 20px; flex-wrap: wrap;
  }
  .ai-tab {
    border: 1px solid #d1d5db; border-radius: 20px;
    padding: 6px 14px; font-size:8px; color: #374151;
    background: #fff; cursor: pointer; white-space: nowrap;
    transition: border-color .2s ease, color .2s ease;
  }
  .ai-tab.is-active {
    background: #fff; border-color: #3FA7A0; color: #3FA7A0;
  }
  .ai-panel-body { flex: 1; padding: 20px; overflow-y: auto; }
  /* Perform only: content still auto-scrolls into view via JS, but the
     user can't grab-scroll it themselves. */
  #performAiPanel .ai-panel-body, #surveysAiPanel .ai-panel-body{ overflow-y: hidden; }
  .ai-welcome { text-align: center; padding-top: 24px; }
  .ai-sparkle {
    font-size:24px; color: #3FA7A0; margin-bottom: 12px;
    display: block; animation: spin 3s linear infinite;
  }
  @keyframes spin {
    0%,100%{ transform: rotate(0deg) scale(1); }
    50%{ transform: rotate(180deg) scale(1.1); }
  }
  .ai-welcome h3 {
    font-size:13.4px; font-weight: 700; color: #1f2937;
    margin: 0 0 8px;
  }
  .ai-welcome p { font-size:8.6px; color: #6b7280; max-width: 300px; margin: 0 auto 16px; }
  .ai-welcome-chips{ display:flex; gap:8px; justify-content:center; flex-wrap:wrap; }
  .ai-bubble {
    background: #e0f4f2; color: #1f2937;
    border-radius: 16px 16px 0 16px;
    padding: 8px 14px; font-size:8.6px;
    max-width: 260px; margin-left: auto; margin-bottom: 16px;
    opacity: 0; transform: translateX(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }
  .ai-bubble.visible { opacity: 1; transform: translateX(0); }
  .ai-processing {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 14px; border: 1px solid #e5e7eb;
    border-radius: 20px; width: fit-content;
    font-size:8.6px; color: #374151; background: #fff;
    margin-left: auto; margin-bottom: 16px;
    opacity: 0; transition: opacity 0.4s ease;
  }
  .ai-processing.visible{ opacity: 1; }
  .ai-proc-sparkle{ color: #3FA7A0; font-size:8.6px; }
  .ai-dots span {
    display: inline-block; width: 6px; height: 6px;
    background: #3FA7A0; border-radius: 50%; margin: 0 2px;
    animation: dotPulse 1.2s ease-in-out infinite;
  }
  .ai-dots span:nth-child(2){ animation-delay: 0.2s; }
  .ai-dots span:nth-child(3){ animation-delay: 0.4s; }
  @keyframes dotPulse {
    0%,80%,100%{ opacity:0.3; transform:scale(0.8); }
    40%{ opacity:1; transform:scale(1.2); }
  }
  .ai-panel-footer {
    padding: 12px 20px; border-top: 1px solid #f3f4f6;
  }
  .ai-input-wrap {
    position: relative;
  }
  .ai-input {
    width: 100%; border: 1px solid #e5e7eb; border-radius: 24px;
    padding: 10px 48px 10px 16px; font-size:8.6px;
    color: #374151; outline: none; box-sizing: border-box;
  }
  .ai-input::placeholder { color: #9ca3af; }
  .ai-send {
    position: absolute; right: 6px; top: 50%;
    transform: translateY(-50%);
    width: 32px; height: 32px; border-radius: 50%;
    background: #3FA7A0; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
  }
  .ai-note {
    font-size:7.4px; color: #9ca3af; text-align: center;
    margin-top: 6px;
  }
  /* ============================================================
     Surveys AI Insights — redesigned to match reference video
     (scoped to #surveysAiPanel only; Perform's panel is untouched)
     ============================================================ */
  #surveysAiPanel .ai-panel-title{ font-size:13.4px; }
  #surveysAiPanel .ai-panel-tabs .ai-tab{ font-size:9px; padding: 9px 18px; }

  .ai2-orb{
    width: 64px; height: 64px; border-radius: 50%;
    margin: 0 auto 12px; display:flex; align-items:center; justify-content:center;
    background: radial-gradient(circle, #9EE1E0 0%, rgba(158,225,224,0) 72%);
    color: #3FA7A0;
  }
  .ai2-orb-svg{ width: 26px; height: 26px; }

  .ai2-bubble{
    background: #D7ECF5; color: #1f2937;
    border-radius: 18px;
    padding: 11px 18px; font-size:9.7px;
    max-width: 300px; margin-left: auto; margin-bottom: 16px;
    opacity: 0; transform: translateX(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }
  .ai2-bubble.visible{ opacity: 1; transform: translateX(0); }

  .ai2-turn{
    display: flex; align-items: flex-start; gap: 10px;
    margin-bottom: 16px;
    opacity: 0; transition: opacity 0.4s ease;
  }
  .ai2-turn.visible{ opacity: 1; }
  .ai2-turn-sparkle{ color: #3FA7A0; flex-shrink: 0; margin-top: 8px; display:flex; }
  .ai2-turn-sparkle svg{ width: 20px; height: 20px; }

  .ai2-processing-pill{
    display: inline-flex; align-items: center; gap: 8px;
    background: #fff; border: 1px solid #e5e7eb; border-radius: 20px;
    padding: 8px 16px; font-size:8.6px; font-weight: 600; color: #1f2937;
  }
  .ai2-dots span{
    display: inline-block; width: 6px; height: 6px; border-radius: 50%;
    margin: 0 1px; animation: dotPulse 1.2s ease-in-out infinite;
  }
  .ai2-dots span:nth-child(1){ background: #3FA7A0; }
  .ai2-dots span:nth-child(2){ background: #7FCCC0; animation-delay: 0.2s; }
  .ai2-dots span:nth-child(3){ background: #BFE3DE; animation-delay: 0.4s; }

  .ai2-answer-card{
    background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
    padding: 20px 22px; box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    flex: 1; min-width: 0;
  }
  .ai2-answer-section{ padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid #f0f1f3; }
  .ai2-answer-section:last-child{ border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
  .ai2-answer-title{ font-size:10.3px; font-weight: 700; color: #1f2937; margin-bottom: 6px; }
  .ai2-answer-priority{ font-size:8.2px; color: #4b5563; margin-bottom: 6px; }
  .ai2-answer-priority strong{ color: #1f2937; }
  .ai2-answer-text{ font-size:9px; color: #374151; line-height: 1.65; margin: 0; }

  #surveysAiPanel .ai2-send{ background: #fff; border: 1px solid #d1d5db; }

  /* ============================================================
     Pre-open demo: cursor moves to & "clicks" the first table row
     ============================================================ */
  .ai-demo-cursor{
    position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px;
    border-radius: 50%; background: rgba(63,167,160,.92);
    box-shadow: 0 0 0 4px rgba(63,167,160,.22);
    z-index: 20; pointer-events: none;
    transition: left .6s var(--ease), top .6s var(--ease);
  }
  .ai-demo-cursor.is-clicking{ transform: scale(.65); transition: transform .15s ease; }
  .ai-demo-cursor.is-clicking::after{
    content:""; position:absolute; inset:-12px; border-radius:50%;
    border: 2px solid rgba(63,167,160,.55);
    animation: aiCursorRipple .5s ease-out;
  }
  @keyframes aiCursorRipple{
    from{ transform: scale(.4); opacity: 1; }
    to{ transform: scale(2); opacity: 0; }
  }
  tr.ai-demo-row-active td{ background: #f0faf9 !important; }
  tr.ai-demo-row-active td:first-child a,
  tr.ai-demo-row-active td:first-child{ color: #0d9488; }

  /* ============================================================
     Perform AI Insights — richer answer formats (Summary /
     Where to focus? / Compare Reviews), matching the reference
     recording. Scoped so Surveys' simpler card format is untouched.
     ============================================================ */
  .ai2-answer-card.is-plain{ background: none; border: none; box-shadow: none; padding: 0; }

  .ai2-score-row{ display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size:8.2px; color: #374151; }
  .ai2-score-dot{ width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
  .ai2-score-dot--self{ background: #4C7DF0; }
  .ai2-score-dot--mgr{ background: #3FA7A0; }
  .ai2-score-label{ font-weight: 600; }
  .ai2-score-val{ margin-left: auto; font-weight: 700; color: #1f2937; }
  .ai2-score-track{ height: 8px; border-radius: 20px; background: #eef0f3; overflow: hidden; margin-bottom: 12px; }
  .ai2-score-fill{ height: 100%; border-radius: 20px; }
  .ai2-score-fill--self{ background: #4C7DF0; }
  .ai2-score-fill--mgr{ background: #3FA7A0; }

  /* Performance & Potential Overview chart (Perform's Summary tab) */
  .ai2-chart-card{ background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 20px 24px 18px; margin-bottom: 20px; }
  .ai2-chart-title{ font-size:10.7px; font-weight: 700; color: #1f2937; text-align: center; margin-bottom: 2px; }
  .ai2-chart-subtitle{ font-size:8.2px; color: #6b7280; text-align: center; margin-bottom: 22px; }
  .ai2-chart-body{ display: flex; gap: 6px; }
  .ai2-chart-yaxis-label{
    writing-mode: vertical-rl; transform: rotate(180deg);
    font-size:7.4px; color: #9ca3af; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
  }
  .ai2-chart-plot{ flex: 1; min-width: 0; }
  .ai2-chart-row{ display: flex; align-items: center; gap: 10px; height: 20px; margin-bottom: 5px; }
  .ai2-chart-row-label{ width: 64px; flex-shrink: 0; font-size:8px; color: #374151; text-align: right; }
  .ai2-chart-track-group{
    position: relative; flex: 1; height: 13px; border-right: 1px solid #eef0f3;
    background-image: repeating-linear-gradient(to right, #eef0f3 0, #eef0f3 1px, transparent 1px, transparent 20%);
  }
  .ai2-chart-bar{
    position: absolute; top: 0; left: 0; height: 100%; width: 0%;
    border-radius: 0 3px 3px 0;
    transition: width 0.9s var(--ease);
  }
  .ai2-chart-bar--self{ background: #8FC1EF; }
  .ai2-chart-bar--mgr{ background: #3a3f47; }
  .ai2-chart-xaxis{ display: flex; justify-content: space-between; margin-top: 6px; padding-left: 74px; }
  .ai2-chart-xaxis span{ font-size:7.4px; color: #9ca3af; }
  .ai2-chart-xaxis-label{ text-align: center; font-size:8px; color: #6b7280; margin-top: 6px; }
  .ai2-chart-legend{ display: flex; justify-content: center; gap: 22px; margin-top: 14px; }
  .ai2-chart-legend-item{ display: flex; align-items: center; gap: 6px; font-size:8.2px; color: #374151; }
  .ai2-chart-dot{ width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
  .ai2-chart-dot--self{ background: #8FC1EF; }
  .ai2-chart-dot--mgr{ background: #3a3f47; }

  .ai2-compare-card, .ai2-focus-card{
    background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
    padding: 18px 20px; margin-bottom: 14px; box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  }
  .ai2-compare-card:last-child, .ai2-focus-card:last-child{ margin-bottom: 0; }
  .ai2-card-head{ display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 10px; }
  .ai2-align-pill{
    font-size:7.4px; font-weight: 700; padding: 4px 12px; border-radius: 20px;
    background: #fdece6; color: #d9622a; white-space: nowrap;
  }
  .ai2-priority-pill{ font-size:7.4px; font-weight: 700; padding: 4px 12px; border-radius: 20px; white-space: nowrap; }
  .ai2-priority-pill--high{ background: #fdece6; color: #d9622a; }
  .ai2-priority-pill--medium{ background: #fef3d6; color: #b8860b; }

  .ai2-bullet-list{ margin: 10px 0 0; padding-left: 18px; }
  .ai2-bullet-list li{ list-style: disc; font-size:8.6px; color: #374151; line-height: 1.6; margin-bottom: 6px; }

  .ai2-block-title{ font-size:9px; font-weight: 700; color: #1f2937; margin: 16px 0 8px; }
  .ai2-tag-row{
    font-size:8.6px; font-weight: 600; border-radius: 8px;
    padding: 9px 14px; margin-bottom: 8px;
  }
  .ai2-tag-row--good{ background: #eaf7e6; color: #3f8a3f; }
  .ai2-tag-row--bad{ background: #fdeceb; color: #c0392b; }

  .ai2-show-details{
    display: inline-block; margin-top: 10px; font-size:8.2px;
    font-weight: 700; color: #3FA7A0; cursor: pointer;
  }
  .ai2-show-details:hover{ text-decoration: underline; }

  /* Conversation thread — each tab click appends a new Q&A turn
     below the previous ones (matches the reference recordings:
     answers accumulate rather than replacing each other). */
  .ai2-thread{ display: flex; flex-direction: column; }
  .ai2-qa-turn{ margin-bottom: 22px; }
  .ai2-qa-turn:last-child{ margin-bottom: 0; }

  /* These buttons have no click handler wired — remove the clickable
     affordance (cursor + hover) so they don't look interactive. */
  .icon-btn, .btn-filter, .btn-customize, .btn-read-more, .btn-print,
  .btn-new-task, .btn-new-survey, .btn-ghost-light, .pagination-btn{
    cursor: default; pointer-events: none;
  }

  /* Guided-tour buttons ("View My Portal" / "View Profile") are real
     navigation triggers — restore clickability despite the blanket
     .btn-ghost-light rule above. */
  .btn-guided{ cursor: pointer; pointer-events: auto; transition: opacity .18s ease, transform .18s ease; }
  .btn-guided.is-guided-hover{ opacity: .8; transform: translateY(-1px); }

  /* ============================================================
     Guided-tour cursor — same visual language as .ai-demo-cursor,
     but positioned relative to the whole app shell so it can travel
     to the topbar (View My Portal / View Profile) from anywhere.
     ============================================================ */
  .guided-cursor{
    z-index: 90; width:16px; height:20px; margin:-2px 0 0 -2px;
    border-radius:0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 2 4 20 9 15.5 12.5 22 15 20.5 11.5 14 18 14Z' fill='%23111827' stroke='white' stroke-width='1.3'/%3E%3C/svg%3E") no-repeat center/contain;
    box-shadow:none;
  }
  .guided-cursor.is-clicking{ transform: scale(.88); }
  .guided-cursor.is-clicking::after{ border-color: rgba(17,24,39,.4); inset:-8px; }
