/* ============================================================================
   Event Hawk RH Hub — design system
   Dark theme, glossy crystal cards, blue/cyan palette.
   House rule: no yellow/green. Red reserved for errors / PIP-required only.
   ============================================================================ */

:root{
  /* surfaces */
  --bg:            #0a0d14;
  --bg-2:          #0d1119;
  --panel:         rgba(22, 27, 37, 0.72);
  --panel-solid:   #161b25;
  --panel-2:       rgba(30, 37, 50, 0.6);
  --border:        rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.14);

  /* text */
  --text:    #eef2f8;
  --text-2:  #9aa6b8;
  --text-3:  #647084;

  /* brand / accents (blue → cyan crystal) */
  --blue:    #3b82f6;
  --blue-2:  #2563eb;
  --cyan:    #22d3ee;
  --teal:    #2dd4bf;
  --indigo:  #6366f1;
  --purple:  #a855f7;
  --pink:    #ec4899;
  --red:     #ef4444;
  --red-2:   #dc2626;

  --grad: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%);
  --grad-soft: linear-gradient(135deg, rgba(59,130,246,.18), rgba(34,211,238,.18));

  --radius:   16px;
  --radius-sm:10px;
  --shadow:   0 10px 40px rgba(0,0,0,.45);
  --shadow-glow: 0 8px 30px rgba(34,211,238,.18);

  --sidebar-w: 220px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- LIGHT THEME (body.light): white background, frost crystal kept ---------- */
body.light{
  --bg:#eef1f6; --bg-2:#e4e9f1;
  --panel:rgba(255,255,255,.72); --panel-solid:#ffffff; --panel-2:rgba(255,255,255,.6);
  --border:rgba(15,23,42,.12); --border-strong:rgba(15,23,42,.20);
  --text:#0f172a; --text-2:#2a3645; --text-3:#46546a;
  --shadow:0 10px 36px rgba(15,23,42,.12); --shadow-glow:0 8px 26px rgba(34,211,238,.22);
}
body.light{
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(34,211,238,.10), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(99,102,241,.10), transparent 60%),
    var(--bg);
}
body.light .crystal::before{ background:none; }
body.light input, body.light select, body.light textarea{ background:rgba(255,255,255,.6); }
body.light .btn-ghost{ background:rgba(15,23,42,.05); }
body.light .btn-ghost:hover{ background:rgba(15,23,42,.09); }
body.light .nav-item:not(.active):hover{ background:rgba(15,23,42,.05); }
body.light .user-card{ background:linear-gradient(180deg, rgba(15,23,42,.05), rgba(15,23,42,.02)); box-shadow:inset 0 1px 0 rgba(255,255,255,.6); }
body.light .theme-switch{ background:rgba(15,23,42,.05); }
body.light .qr-sel, body.light .qr-metric input, body.light .qr-quarter,
body.light .qr-quarter-sel .lsel-trigger{ background:rgba(255,255,255,.6); }
body.light .qr-cmp{ background:rgba(15,23,42,.02); }
body.light .qr-cmp-headrow{ background:rgba(15,23,42,.045); }
body.light .qr-cmp-q{ background:rgba(15,23,42,.025); }
body.light .ro-answer, body.light .chip, body.light .req-box, body.light .pill,
body.light .badge-soft, body.light .stat-pill{ background:rgba(15,23,42,.03); }
body.light .bar-track{ background:rgba(15,23,42,.08); }
body.light .kdd-trigger, body.light .lsel-trigger, body.light .vas-trigger{ background:rgba(255,255,255,.6); }
body.light .kdd-trigger:hover, body.light .lsel-trigger:hover, body.light .vas-trigger:hover{ background:rgba(255,255,255,.85); }
body.light .kdd:focus-within .kdd-trigger{ background:rgba(255,255,255,.85); }
body.light .kdd-menu, body.light .lsel-menu, body.light .vas-menu{ background:rgba(255,255,255,.98); border-color:rgba(120,180,255,.5); }
body.light .lsel-opt:hover, body.light .vas-opt:hover, body.light .kdd-opt:hover{ background:rgba(15,23,42,.06); }
body.light .kdd-input::placeholder{ color:var(--text); }
body.light tbody td{ border-bottom-color:rgba(15,23,42,.08); }
body.light tbody tr.clickable:hover, body.light .dept-row:hover{ background:rgba(15,23,42,.04); }
body.light .dept-member{ background:rgba(15,23,42,.03); }
body.light .dept-member:hover{ background:rgba(15,23,42,.07); }
body.light .modal-head .x:hover{ background:rgba(15,23,42,.08); }
body.light .scrolling::-webkit-scrollbar-thumb{ background:rgba(15,23,42,.28); background-clip:content-box; }
body.light .scrolling{ scrollbar-color:rgba(15,23,42,.28) transparent; }
body.light .sidebar{ background:linear-gradient(180deg, rgba(255,255,255,.97), rgba(238,241,246,.97)); }
/* Light modals: white frosty glass instead of gray (lighten the dim backdrop and
   raise the panel's white opacity so it doesn't read gray over a dark overlay). */
body.light .modal-overlay{ background:rgba(15,23,42,.22); }
body.light .modal.crystal{ background:rgba(255,255,255,.93); }
/* Profile photo bottom fade: white in light theme (was dark). */
body.light .ficha-header .avatar.avatar-lg::after{ background:linear-gradient(to top, rgba(255,255,255,.92), rgba(255,255,255,0)); }
body.light .avatar.avatar-lg{ box-shadow:0 6px 18px rgba(15,23,42,.10); }
body.light .ficha-photo-edit:hover .avatar.avatar-lg{ box-shadow:0 6px 18px rgba(15,23,42,.12), 0 0 0 2px rgba(120,180,255,.55); }
body.light .nav-item.active{ color:var(--blue-2); }
body.light .cal-seg-btn.is-on{ color:var(--blue-2); }
body.light .nav-thumb,
body.light .cal-seg-thumb{ box-shadow:inset 0 1px 0 rgba(255,255,255,.6), inset 0 -8px 16px rgba(59,130,246,.10); }
/* Calendar events: white text is unreadable on the light pastel tiles. */
body.light .cal-ev-nm{ color:#0f172a; text-shadow:none; }
body.light .cal-ev.bday .cal-ev-lb{ color:#0e7490; }
body.light .cal-ev.hawk .cal-ev-lb{ color:#6d28d9; }
body.light .cal-ev.bday{ background:linear-gradient(135deg, rgba(34,211,238,.22), rgba(59,130,246,.12)); }
body.light .cal-ev.hawk{ background:linear-gradient(135deg, rgba(139,92,246,.22), rgba(59,130,246,.12)); }
/* Badges / pills use pastel text tuned for dark bg; darken them for white bg. */
body.light .b-ok{ color:#0f766e; border-color:rgba(13,148,136,.4); }
body.light .b-attention{ color:#4338ca; border-color:rgba(79,70,229,.4); }
body.light .b-pip{ color:#b91c1c; border-color:rgba(220,38,38,.4); }
body.light .b-level{ color:#155e75; border-color:rgba(8,145,178,.4); }
body.light .cp-0{ color:#0f766e; }
body.light .cp-low{ color:#4338ca; }
body.light .cp-high{ color:#b91c1c; }
body.light .badge-admin{ color:#7e22ce; border-color:rgba(168,85,247,.45); background:rgba(168,85,247,.16); }
body.light .badge-admin.tl{ color:var(--blue-2); }
body.light .badge-admin.tm{ color:#475569; border-color:rgba(100,116,139,.45); background:rgba(100,116,139,.14); }
body.light .nav-item{ color:var(--text-2); }

*{ box-sizing:border-box; margin:0; padding:0; }
html,body{ height:100%; }
body{
  font-family:var(--font);
  color:var(--text);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(34,211,238,.10), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(99,102,241,.12), transparent 60%),
    var(--bg);
  -webkit-font-smoothing:antialiased;
  overflow:hidden;
}
a{ color:var(--cyan); text-decoration:none; }
button{ font-family:inherit; cursor:pointer; }
.hidden{ display:none !important; }

/* glossy crystal surface */
.crystal{
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:var(--radius);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.06);
  position:relative;
}
.crystal::before{
  content:''; position:absolute; inset:0; border-radius:inherit; pointer-events:none;
  background:linear-gradient(180deg, rgba(255,255,255,.05), transparent 40%);
}

/* ---------- scrollbars: invisible at rest, show only while scrolling ---------- */
*{ scrollbar-width:thin; scrollbar-color:transparent transparent; }
*::-webkit-scrollbar{ width:10px; height:10px; }
*::-webkit-scrollbar-thumb{ background:transparent; border-radius:8px; border:2px solid transparent; background-clip:content-box; }
*::-webkit-scrollbar-track{ background:transparent; }
.scrolling::-webkit-scrollbar-thumb{ background:rgba(20,24,33,.85); background-clip:content-box; }
.scrolling{ scrollbar-color:rgba(20,24,33,.85) transparent; }

/* ============================================================================
   LOGIN
   ============================================================================ */
#login-screen{
  position:fixed; inset:0; display:flex; align-items:center; justify-content:center;
  background:
    radial-gradient(900px 500px at 50% -10%, rgba(34,211,238,.12), transparent 60%),
    var(--bg);
}
.login-card{ width:380px; max-width:92vw; padding:38px 34px; text-align:center; }
.brand-tile{
  width:72px; height:72px; border-radius:18px; margin:0 auto 18px;
  background:var(--grad); display:flex; align-items:center; justify-content:center;
  color:#fff; font-weight:800; font-size:13px; line-height:1.05; letter-spacing:.2px;
  box-shadow:var(--shadow-glow);
}
.login-card h1{ font-size:26px; font-weight:800; letter-spacing:-.3px; }
.login-card .subtitle{ color:var(--text-2); font-size:14px; margin-top:4px; }
.mgmt-badge{
  display:inline-flex; align-items:center; gap:7px; margin:18px 0 22px;
  padding:7px 14px; border-radius:999px; font-size:12.5px; font-weight:600;
  color:#fda4af; border:1px solid rgba(239,68,68,.4); background:rgba(239,68,68,.08);
}
.field{ margin-bottom:12px; text-align:left; }
.field label{ display:block; font-size:12.5px; color:var(--text-2); margin-bottom:6px; font-weight:600; }
input,select,textarea{
  width:100%; padding:13px 14px; border-radius:var(--radius-sm);
  background:rgba(10,13,20,.7); border:1px solid var(--border); color:var(--text);
  font-family:var(--font); font-size:14px; outline:none; transition:border-color .15s, box-shadow .15s;
}
textarea.qr-field{ font-size:13px; line-height:1.55; }
input::placeholder,textarea::placeholder{ color:var(--text-3); }
/* Quarterly Review textareas grow to fit their content; no manual resize handle. */
textarea.qr-field{ resize:none; overflow:hidden; min-height:40px; }
input:focus,select:focus,textarea:focus{ border-color:var(--blue); box-shadow:0 0 0 3px rgba(59,130,246,.18); }
select{ appearance:none; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239aa6b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 14px center; padding-right:34px; }

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:12px 18px; border-radius:var(--radius-sm); border:1px solid transparent;
  font-size:14px; font-weight:700; color:#fff; background:var(--panel-2);
  transition:transform .08s, filter .15s, background .15s;
}
.btn:active{ transform:translateY(1px); }
.btn-primary{ background:var(--grad); box-shadow:var(--shadow-glow); }
.btn-primary:hover{ filter:brightness(1.07); }
.btn-ghost{ background:rgba(255,255,255,.04); border-color:var(--border); color:var(--text);
  backdrop-filter:blur(10px) saturate(140%); -webkit-backdrop-filter:blur(10px) saturate(140%); }
.btn-ghost:hover{ background:rgba(255,255,255,.08); }
/* theme switch (frost crystal segmented, sliding pill) in the user card */
.theme-switch{ position:relative; display:flex; gap:0; margin-top:12px; padding:4px; border-radius:12px;
  background:rgba(255,255,255,.05); border:1px solid var(--border);
  backdrop-filter:blur(12px) saturate(140%); -webkit-backdrop-filter:blur(12px) saturate(140%); }
.theme-thumb{ position:absolute; top:4px; bottom:4px; left:4px; width:calc(50% - 4px); border-radius:9px; z-index:0;
  background:var(--grad); box-shadow:0 2px 8px rgba(59,130,246,.35), inset 0 1px 0 rgba(255,255,255,.25);
  transition:transform .3s cubic-bezier(.4,0,.2,1); }
.theme-switch.light .theme-thumb{ transform:translateX(100%); }
.theme-btn{ position:relative; z-index:1; flex:1; display:inline-flex; align-items:center; justify-content:center; gap:6px;
  padding:7px 0; font-size:12px; font-weight:700; border:none; border-radius:9px; cursor:pointer;
  background:transparent; color:var(--text-2); transition:color .25s ease; }
.theme-btn:hover{ color:var(--text); }
.theme-btn.on{ color:#fff; }
.btn-danger{ background:linear-gradient(135deg,#f05252,#dc2626); }
.btn-danger:hover{ filter:brightness(1.07); }
.btn-block{ width:100%; }
.btn-sm{ padding:8px 12px; font-size:12.5px; }
.login-error{ color:#fda4af; font-size:13px; margin-top:10px; min-height:16px; }

/* ============================================================================
   APP SHELL
   ============================================================================ */
#app{ display:flex; height:100vh; }

.sidebar{
  width:var(--sidebar-w); flex:0 0 var(--sidebar-w); height:100vh; position:relative;
  display:grid; grid-template-rows:auto auto minmax(0,1fr) auto; padding:18px 14px;
  background:linear-gradient(180deg, rgba(13,17,25,.96), rgba(10,13,20,.96));
  border-right:1px solid var(--border);
  transition:width .26s cubic-bezier(.4,0,.2,1), flex-basis .26s cubic-bezier(.4,0,.2,1), padding .26s cubic-bezier(.4,0,.2,1);
}
body.sidebar-resizing, body.sidebar-resizing *{ user-select:none !important; cursor:ew-resize !important; }
body.sidebar-resizing .sidebar{ transition:none; }
/* drag handle on the right edge */
.sidebar-resizer{ position:absolute; top:0; right:-3px; width:7px; height:100%; cursor:ew-resize; z-index:30; }
.sidebar-resizer::after{ content:''; position:absolute; top:0; right:3px; width:2px; height:100%; background:transparent; transition:background .15s; }
.sidebar-resizer:hover::after, body.sidebar-resizing .sidebar-resizer::after{ background:rgba(120,180,255,.55); }

/* ----- collapsed (icon-only) mode at min width ----- */
.sidebar.collapsed{ padding:18px 8px; align-items:center; }
.sidebar.collapsed .brand{ justify-content:center; padding:6px 0 16px; gap:0; }
.sidebar.collapsed .brand .name{ display:none; }
.sidebar.collapsed .divider{ width:100%; }
.sidebar.collapsed .nav-item{ justify-content:center; padding:14px 0; gap:0; }
.sidebar.collapsed .nav-item span{ display:none; }
.sidebar.collapsed .nav-item .ico{ width:20px; height:20px; flex-basis:20px; }
/* Icon-only mode: hide the sliding thumb and draw the highlight as an inset
   rounded box on the active item itself — auto-sized to the item, so it can
   never overflow or get clipped. */
.sidebar.collapsed .nav-thumb{ display:none !important; }
/* No box in icon-only mode — the active item shows only by its lit blue icon. */
.sidebar.collapsed .nav-item.active{ background:transparent; border-color:transparent; box-shadow:none;
  backdrop-filter:none; -webkit-backdrop-filter:none; color:#7cc0ff; }
.sidebar.collapsed .user-card{ padding:12px 6px; gap:0; }
.sidebar.collapsed .user-card .uc-name,
.sidebar.collapsed .user-card .meta .role,
.sidebar.collapsed .uc-title,
.sidebar.collapsed .uc-role,
.sidebar.collapsed .acting-as,
.sidebar.collapsed .theme-switch{ display:none; }
.sidebar.collapsed .uc-head{ gap:0; }
.sidebar.collapsed .user-card .avatar{ width:40px; height:40px; flex-basis:40px; font-size:14px; }
.sidebar .brand{ display:flex; align-items:center; gap:11px; padding:6px 8px 16px; }
.sidebar .brand .tile{ width:38px; height:38px; border-radius:11px; background:var(--grad);
  display:flex; align-items:center; justify-content:center; color:#fff; font-weight:800; font-size:9px; line-height:1; box-shadow:var(--shadow-glow); }
.sidebar .brand .name{ font-weight:800; font-size:16px; letter-spacing:-.2px; }
.sidebar .divider{ height:1px; background:var(--border); margin:4px 6px 12px; }

.nav{ flex:1 1 0; min-height:0; overflow-y:auto; display:flex; flex-direction:column; gap:3px; position:relative; scrollbar-width:none; }
.nav::-webkit-scrollbar{ width:0; height:0; }
.nav-item{
  display:flex; align-items:center; gap:11px; padding:10px 12px; border-radius:11px;
  color:var(--text-2); font-size:13.5px; font-weight:600; border:1px solid transparent;
  transition:color .18s; position:relative; z-index:1;
}
.nav-item:not(.active):hover{ background:rgba(255,255,255,.04); color:var(--text); }
.nav-item.active{ background:transparent; color:#dff1ff; border-color:transparent; }
.nav-item .ico{ width:18px; height:18px; flex:0 0 18px; opacity:.95;
  transition:width .24s cubic-bezier(.4,0,.2,1), height .24s cubic-bezier(.4,0,.2,1), flex-basis .24s cubic-bezier(.4,0,.2,1); }
.nav-item.active .ico{ filter:drop-shadow(0 0 6px rgba(34,211,238,.6)); }

/* Glossy crystal highlight that slides between nav items. */
.nav-thumb{
  position:absolute; left:0; right:0; top:0; height:40px; border-radius:11px; opacity:0;
  background:linear-gradient(135deg, rgba(59,130,246,.34), rgba(34,211,238,.14) 70%);
  border:1px solid rgba(120,180,255,.5);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.22), inset 0 -8px 16px rgba(10,30,60,.35);
  backdrop-filter:blur(7px) saturate(150%); -webkit-backdrop-filter:blur(7px) saturate(150%);
  pointer-events:none; z-index:0; overflow:hidden;
  transition:transform .3s cubic-bezier(.4,0,.2,1), height .28s cubic-bezier(.4,0,.2,1), width .28s cubic-bezier(.4,0,.2,1), left .28s cubic-bezier(.4,0,.2,1), opacity .22s ease;
}
/* top sheen for the glassy look */
.nav-thumb::before{
  content:''; position:absolute; left:0; right:0; top:0; height:55%; border-radius:inherit;
  background:linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,0));
}

.user-card{
  margin-top:12px; flex-shrink:0; display:flex; flex-direction:column; gap:14px; padding:18px 14px 15px;
  border-radius:15px; border:1px solid var(--border);
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.07); text-align:center;
}
.avatar{ width:36px; height:36px; flex:0 0 36px; border-radius:50%; background:var(--grad);
  background-size:cover; background-position:center;
  display:flex; align-items:center; justify-content:center; color:#fff; font-weight:700; font-size:13px; }
.avatar.avatar-xl{ width:96px; height:96px; flex-basis:96px; font-size:34px; }
.uc-head{ display:flex; flex-direction:column; align-items:center; gap:7px; }
.uc-avatar-btn{ background:none; border:none; padding:0; cursor:pointer; border-radius:50%; line-height:0;
  transition:transform .15s, box-shadow .15s; }
.uc-avatar-btn:hover{ transform:translateY(-1px); }
.uc-avatar-btn:hover .avatar{ box-shadow:0 0 0 3px rgba(120,180,255,.4), 0 6px 16px rgba(0,0,0,.45); }
.user-card .avatar{ width:56px; height:56px; flex-basis:56px; font-size:19px;
  box-shadow:0 0 0 3px rgba(59,130,246,.16), 0 6px 16px rgba(0,0,0,.42);
  transition:width .26s cubic-bezier(.4,0,.2,1), height .26s cubic-bezier(.4,0,.2,1), flex-basis .26s cubic-bezier(.4,0,.2,1), font-size .26s ease; }
.uc-name{ font-size:15px; font-weight:700; line-height:1.15; margin-top:1px; }
.uc-title{ line-height:1.9; }
.uc-role{ font-size:12px; color:var(--text-3); }

/* ---- Show only the photo at rest; expand the whole panel on hover ----
   At rest the card collapses to just the avatar. Hovering the card reveals
   the name, title, role and the "View as" control, then collapses again
   once the mouse leaves. */
.user-card{ transition:gap .26s cubic-bezier(.4,0,.2,1), padding .26s cubic-bezier(.4,0,.2,1); }
.uc-head{ transition:gap .26s cubic-bezier(.4,0,.2,1); }
.user-card .uc-name,
.user-card .uc-title,
.user-card .uc-role,
.user-card .acting-as,
.user-card .theme-switch{
  overflow:hidden; max-height:160px; opacity:1;
  transition:max-height .28s cubic-bezier(.4,0,.2,1), opacity .2s ease,
             margin .26s ease, padding .26s ease, border-color .26s ease;
}
.user-card:not(:hover){ gap:0; padding:11px 14px; }
.user-card:not(:hover) .uc-head{ gap:0; }
.user-card:not(:hover) .avatar{ width:44px; height:44px; flex-basis:44px; font-size:15px; }
.user-card:not(:hover) .uc-name,
.user-card:not(:hover) .uc-title,
.user-card:not(:hover) .uc-role,
.user-card:not(:hover) .acting-as,
.user-card:not(:hover) .theme-switch{
  max-height:0; opacity:0; margin:0; padding-top:0;
  border-color:transparent; pointer-events:none;
}
/* While the "View as" menu is open, keep the card expanded AND let the
   acting-as box overflow, so the upward-opening dropdown isn't clipped by the
   hover-collapse overflow:hidden (this was cutting the menu off and stacking it
   on top of the trigger). Higher specificity than the :not(:hover) collapse so
   it still wins if the cursor drifts up onto the floating menu. */
/* When the card is expanded the ADMIN/TL badge must not be clipped by the
   collapse overflow. */
.user-card:hover .uc-title{ overflow:visible; }
.user-card:has(.vas-menu.open) .acting-as{
  overflow:visible; max-height:none; opacity:1; pointer-events:auto;
  padding-top:13px; border-color:var(--border);
}
/* Keep the user card from eating the sidebar on short viewports / zoom.
   Browser zoom shrinks the CSS-px viewport, so these height queries also
   trigger when the user zooms in. */
@media (max-height: 820px){
  .user-card{ margin-top:8px; padding:13px 12px 11px; gap:9px; }
  .user-card .avatar{ width:46px; height:46px; flex-basis:46px; font-size:16px; }
  .uc-name{ font-size:13.5px; }
  .uc-role{ font-size:11.5px; }
  .acting-as{ padding-top:10px; }
}
@media (max-height: 700px){
  .user-card{ padding:10px; gap:7px; }
  .user-card .avatar{ width:38px; height:38px; flex-basis:38px; font-size:13px; }
  .uc-name{ font-size:12.5px; }
  .uc-title{ display:none; }
  .uc-role{ display:none; }
  .acting-as{ padding-top:8px; }
  .acting-as label{ margin-bottom:5px; }
  .vas-trigger, .acting-as select{ padding:7px 10px; font-size:12px; }
  .vas-trigger .vas-av{ width:22px; height:22px; flex-basis:22px; }
}
@media (max-height: 580px){
  .user-card{ padding:8px; gap:6px; }
  .user-card .avatar{ width:30px; height:30px; flex-basis:30px; font-size:11px; }
  .uc-name{ display:none; }
  .acting-as label{ display:none; }
}
/* Very short / zoomed-in: collapse the card to JUST the photo so it can't
   cover or sit on top of the nav buttons or the View-as control.
   `body.uc-photo-only` is toggled from JS at ~110% browser zoom and up. */
@media (max-height: 540px){
  .user-card{ padding:6px 0; gap:0; }
  .user-card .avatar{ width:34px; height:34px; flex-basis:34px; font-size:12px; }
  .uc-title, .uc-role, .uc-name{ display:none; }
  .acting-as{ display:none; }
}
body.uc-photo-only .uc-title,
body.uc-photo-only .uc-role,
body.uc-photo-only .uc-name,
body.uc-photo-only .acting-as{ display:none; }
body.uc-photo-only .user-card{ padding:8px 0; gap:0; }
body.uc-photo-only .user-card .avatar{ width:40px; height:40px; flex-basis:40px; font-size:14px; }
.badge-admin{ font-size:9px; font-weight:800; letter-spacing:.5px; padding:3px 8px; border-radius:6px;
  background:rgba(168,85,247,.2); color:#d8b4fe; border:1px solid rgba(168,85,247,.4); }
.badge-admin.tm{ background:rgba(148,163,184,.18); color:#cbd5e1; border-color:rgba(148,163,184,.4); }

/* main */
.main{ flex:1; height:100vh; overflow-y:auto; padding:30px 34px 60px; }
.page-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:24px; }
.page-head h1{ font-size:27px; font-weight:800; letter-spacing:-.4px; }
.page-head .sub{ color:var(--text-2); font-size:14px; margin-top:3px; }
.head-actions{ display:flex; gap:10px; align-items:center; }

/* ============================================================================
   CARDS / KPI
   ============================================================================ */
.kpi-row{ display:grid; grid-template-columns:repeat(5,1fr); gap:14px; margin-bottom:20px; }
.kpi-row.cols-4{ grid-template-columns:repeat(4,1fr); }
.kpi{ padding:18px; }
.kpi-centered .kpi{ display:flex; flex-direction:column; align-items:center; text-align:center; }
.member-dash .page-head{ justify-content:center; text-align:center; }
.kpi .ico-tile{ width:40px; height:40px; border-radius:11px; display:flex; align-items:center; justify-content:center; margin-bottom:14px; }
.kpi .num{ font-size:30px; font-weight:800; letter-spacing:-1px; }
.kpi .lbl{ color:var(--text-2); font-size:12.5px; margin-top:2px; font-weight:600; }

/* tinted icon tiles (blue family + purple; red for warnings) */
.t-blue{ background:rgba(59,130,246,.16); color:#93c5fd; }
.t-cyan{ background:rgba(34,211,238,.16); color:#67e8f9; }
.t-teal{ background:rgba(45,212,191,.16); color:#5eead4; }
.t-indigo{ background:rgba(99,102,241,.16); color:#a5b4fc; }
.t-purple{ background:rgba(168,85,247,.16); color:#d8b4fe; }
.t-red{ background:rgba(239,68,68,.16); color:#fca5a5; }

.grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-bottom:18px; }
.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.card{ padding:20px; }
.card h3{ font-size:15px; font-weight:700; margin-bottom:16px; display:flex; align-items:center; gap:9px; }
.card h3 .ico{ width:17px; height:17px; opacity:.9; }
.muted{ color:var(--text-3); font-size:13px; text-align:center; padding:24px 0; }

/* People table — center every column except the employee name under its header */
.ppl-tbl th:not(:first-child), .ppl-tbl td:not(:first-child){ text-align:center; }
.ppl-tbl td:not(:first-child) > *{ margin-left:auto; margin-right:auto; }

/* horizontal bars (issues by category, top employees) */
.bar-row{ display:flex; align-items:center; gap:12px; margin-bottom:12px; font-size:13px; }
.bar-row .bl{ width:104px; flex:0 0 104px; color:var(--text-2); font-weight:600; }
.bar-track{ flex:1; height:9px; border-radius:6px; background:rgba(255,255,255,.06); overflow:hidden; }
.bar-fill{ height:100%; border-radius:6px; background:var(--grad); transition:width .5s ease; }
.bar-row .bv{ width:30px; text-align:right; font-weight:700; color:var(--text); }

/* ============================================================================
   TABLES
   ============================================================================ */
.tbl-wrap{ padding:6px; overflow:hidden; }
table{ width:100%; border-collapse:collapse; font-size:13.5px; }
thead th{ text-align:left; padding:12px 14px; color:var(--text-3); font-size:11px;
  font-weight:700; letter-spacing:.6px; text-transform:uppercase; border-bottom:1px solid var(--border); }
tbody td{ padding:14px; border-bottom:1px solid rgba(255,255,255,.05); vertical-align:middle; }
tbody tr:last-child td{ border-bottom:none; }
tbody tr.clickable{ cursor:pointer; transition:background .12s; }
tbody tr.clickable:hover{ background:rgba(255,255,255,.03); }
.cell-name{ display:flex; align-items:center; gap:11px; }
.cell-name .avatar{ width:32px; height:32px; flex:0 0 32px; font-size:12px; }

/* Departments: centered columns + click-to-expand member dropdown */
.dept-tbl th, .dept-tbl td{ text-align:center; }
.dept-tbl th:first-child, .dept-tbl td:first-child{ text-align:left; }
.dept-name{ display:inline-flex; align-items:center; gap:8px; }
.dept-chev{ display:inline-flex; color:var(--text-3); transition:transform .2s ease; }
.dept-row{ cursor:pointer; transition:background .14s; }
.dept-row:hover{ background:rgba(255,255,255,.04); }
.dept-row.open{ background:rgba(59,130,246,.06); }
.dept-row.open .dept-chev{ transform:rotate(90deg); color:var(--blue); }
.dept-detail > td{ padding:0 !important; border-bottom:1px solid rgba(255,255,255,.05); background:rgba(120,160,255,.04); }
.dept-members{ display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:8px; padding:14px 16px; text-align:left; }
.dept-member{ display:flex; align-items:center; gap:10px; padding:8px 11px; border-radius:11px; border:1px solid var(--border);
  background:rgba(255,255,255,.03); cursor:pointer; transition:border-color .14s, background .14s; width:100%; text-align:left; }
.dept-member:hover{ border-color:rgba(120,180,255,.45); background:rgba(255,255,255,.07); transform:translateY(-1px); }
.dept-member .avatar{ width:34px; height:34px; flex:0 0 34px; font-size:12px; }
.dm-info{ display:flex; flex-direction:column; min-width:0; flex:1; }
.dm-nm{ font-size:13px; font-weight:700; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.dm-role{ font-size:11px; color:var(--text-3); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cell-name .nm b{ font-weight:700; }
.cell-name .nm span{ color:var(--text-2); }
/* Clickable name in People → opens the HR ficha */
.nm-link{ background:none; border:none; padding:0; margin:0; font:inherit; line-height:1.2; text-align:left; cursor:pointer; }
.nm-link b{ color:var(--text); transition:color .12s; }
.nm-link:hover b, .nm-link:hover span{ color:var(--blue); }

/* status + count badges */
.badge{ display:inline-flex; align-items:center; gap:5px; padding:4px 10px; border-radius:999px;
  font-size:11.5px; font-weight:700; white-space:nowrap; }
.b-ok{ background:rgba(45,212,191,.15); color:#5eead4; border:1px solid rgba(45,212,191,.3); }
.b-attention{ background:rgba(99,102,241,.16); color:#a5b4fc; border:1px solid rgba(99,102,241,.35); }
.b-pip{ background:rgba(239,68,68,.15); color:#fca5a5; border:1px solid rgba(239,68,68,.35); }
.b-info{ background:rgba(59,130,246,.15); color:#93c5fd; border:1px solid rgba(59,130,246,.3); }
.b-level{ background:rgba(34,211,238,.14); color:#67e8f9; border:1px solid rgba(34,211,238,.3); }
.count-pill{ display:inline-flex; align-items:center; justify-content:center; min-width:26px; height:26px;
  padding:0 8px; border-radius:999px; font-size:12px; font-weight:700; }
.cp-0{ background:rgba(45,212,191,.14); color:#5eead4; }
.cp-low{ background:rgba(99,102,241,.16); color:#a5b4fc; }
.cp-high{ background:rgba(239,68,68,.16); color:#fca5a5; }

/* category tag */
.cat-tag{ display:inline-block; padding:3px 9px; border-radius:7px; font-size:10.5px; font-weight:800;
  letter-spacing:.4px; text-transform:uppercase; }

/* trend arrow */
.trend{ font-weight:800; }
.trend.up{ color:#5eead4; }
.trend.down{ color:#fca5a5; }

/* ============================================================================
   MODAL
   ============================================================================ */
.modal-overlay{
  position:fixed; inset:0; background:rgba(5,7,11,.55);
  backdrop-filter:blur(6px) saturate(120%); -webkit-backdrop-filter:blur(6px) saturate(120%);
  display:flex; align-items:center; justify-content:center; padding:40px 16px; z-index:100; overflow-y:auto;
}
.modal{ width:560px; max-width:96vw; max-height:88vh; display:flex; flex-direction:column; }
.modal.wide{ width:780px; }
.modal-head{ display:flex; align-items:center; justify-content:space-between; padding:20px 22px; border-bottom:1px solid var(--border); }
.modal-head h2{ font-size:17px; font-weight:800; }
.modal-head .x{ background:none; border:none; color:var(--text-2); font-size:22px; line-height:1; padding:2px 6px; border-radius:8px; }
.modal-head .x:hover{ background:rgba(255,255,255,.08); color:var(--text); }
.modal-body{ padding:22px; overflow-y:auto; }
.modal-foot{ display:flex; justify-content:flex-end; gap:10px; padding:16px 22px; border-top:1px solid var(--border); }
/* My Profile modal */
.modal-foot.profile-foot{ justify-content:space-between; }
.profile-foot-right{ display:flex; gap:10px; }
.btn.btn-logout{ color:#fca5a5; border-color:rgba(248,113,113,.35); }
.btn.btn-logout:hover{ background:rgba(248,113,113,.12); border-color:rgba(248,113,113,.55); }
.profile-body{ text-align:center; }
.profile-body .form-label{ text-align:center; }
.profile-body input{ text-align:center; }
.profile-name-row{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.profile-name-row .form-label{ margin-top:6px; }
.profile-photo-row{ display:flex; flex-direction:column; align-items:center; gap:12px; margin-bottom:6px; }
.profile-photo-actions{ display:flex; flex-direction:column; gap:8px; align-items:center; }
.photo-pick{ cursor:pointer; }

.form-label{ font-size:12.5px; font-weight:700; color:var(--text-2); margin:16px 0 7px; display:block; }
.form-label .req{ color:#fca5a5; }
.toggle-row{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.toggle-btn{ display:flex; align-items:center; justify-content:center; gap:8px; padding:14px; border-radius:12px;
  background:rgba(255,255,255,.03); border:1px solid var(--border); color:var(--text-2); font-weight:700; font-size:13.5px; }
.toggle-btn.active{ background:var(--grad-soft); border-color:rgba(59,130,246,.5); color:#bfe6ff; }
.chip-row{ display:flex; flex-wrap:wrap; gap:9px; }
.chip{ padding:10px 14px; border-radius:11px; background:rgba(255,255,255,.03); border:1px solid var(--border);
  color:var(--text); font-size:13px; font-weight:600; display:flex; align-items:center; gap:8px; }
.chip .pts{ font-size:11px; font-weight:800; color:var(--cyan); }
.chip.major .pts{ color:#fca5a5; }
.chip.active{ background:var(--grad-soft); border-color:rgba(59,130,246,.5); }

/* requirements checklist */
.req-box{ background:rgba(255,255,255,.03); border:1px solid var(--border); border-radius:12px; padding:14px 16px; margin-bottom:6px; }
.req-box .rb-title{ font-size:12.5px; font-weight:700; color:var(--text-2); margin-bottom:8px; }
.req-item{ display:flex; align-items:center; gap:8px; font-size:13px; padding:3px 0; color:#fca5a5; }
.req-item.done{ color:#5eead4; }

.alert{ display:flex; gap:10px; padding:13px 15px; border-radius:11px; font-size:13px; margin:14px 0; }
.alert-red{ background:rgba(239,68,68,.1); border:1px solid rgba(239,68,68,.3); color:#fecaca; }
.alert-info{ background:rgba(59,130,246,.1); border:1px solid rgba(59,130,246,.3); color:#bfdbfe; }

/* issue picker list */
.issue-pick{ max-height:240px; overflow-y:auto; border:1px solid var(--border); border-radius:12px; }
.issue-pick label{ display:flex; gap:11px; align-items:flex-start; padding:12px 14px; border-bottom:1px solid rgba(255,255,255,.05); cursor:pointer; }
.issue-pick label:last-child{ border-bottom:none; }
.issue-pick input[type=checkbox]{ width:auto; margin-top:3px; }
.issue-pick .meta{ font-size:11px; color:var(--text-3); margin-bottom:3px; display:flex; gap:9px; align-items:center; }
.issue-pick .desc{ font-size:13px; color:var(--text); }
.pick-count{ font-size:12px; color:var(--text-2); margin-top:8px; }

/* ============================================================================
   PIP DOCUMENT (printable)
   ============================================================================ */
.pip-doc{ background:#fff; color:#1a1a1a; border-radius:10px; padding:46px 50px; font-family:'Georgia',serif; line-height:1.6; }
.pip-doc h1{ font-size:22px; text-align:center; letter-spacing:1px; margin-bottom:24px; color:#111; }
.pip-doc h2{ font-size:14px; text-transform:uppercase; letter-spacing:.8px; margin:22px 0 8px; color:#222; border-bottom:1px solid #ddd; padding-bottom:5px; }
.pip-doc .meta-grid{ display:grid; grid-template-columns:1fr 1fr; gap:6px 24px; font-size:13.5px; margin-bottom:10px; }
.pip-doc p{ font-size:13.5px; margin:8px 0; }
.pip-doc ul{ margin:6px 0 6px 22px; font-size:13.5px; }
.pip-doc li{ margin:4px 0; }
.pip-doc .sig{ display:grid; grid-template-columns:1fr 1fr; gap:30px; margin-top:40px; font-size:13px; }
.pip-doc .sig .line{ border-top:1px solid #333; padding-top:5px; margin-top:34px; }
.pip-doc .tip{ background:#eff6ff; border-left:4px solid #3b82f6; padding:12px 16px; margin-top:22px; font-size:13px; font-style:italic; color:#1e3a8a; }

/* ============================================================================
   HAWK CHECK
   ============================================================================ */
.score-pick{ display:inline-flex; gap:4px; }
.score-pick button{ width:26px; height:28px; border-radius:7px; border:1px solid var(--border);
  background:rgba(255,255,255,.03); color:var(--text-2); font-size:12px; font-weight:700; }
.score-pick button.sel{ background:var(--grad); color:#fff; border-color:transparent; }
.role-tag{ display:inline-block; margin-left:6px; padding:1px 7px; border-radius:999px; font-size:11px; font-weight:700;
  color:var(--blue); background:rgba(59,130,246,.12); border:1px solid rgba(59,130,246,.3); }
/* HR ficha sections (comp / stipends / links) */
/* Each ficha block is its own subtle panel/card so the info reads as grouped
   sections instead of one long, flat, stretched list. */
.ficha-section{ margin-top:14px; padding:18px 20px; border:1px solid var(--border); border-radius:14px;
  background:rgba(255,255,255,.022); }
.ficha-section:first-child{ margin-top:6px; }
.fs-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:14px;
  padding-bottom:12px; border-bottom:1px solid var(--border); }
.fs-head h4{ margin:0; font-size:13px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--text-2); }
.ficha-sublabel{ margin:16px 0 9px; }
.comp-list{ margin-top:4px; display:flex; flex-direction:column; gap:4px; }
.comp-row{ display:flex; align-items:center; gap:14px; font-size:13px;
  padding:9px 14px; border-radius:9px; background:rgba(255,255,255,.03); border:1px solid var(--border); }
.comp-row > span:first-child{ min-width:108px; font-weight:600; }   /* date / type */
.comp-row > b{ min-width:62px; }                                     /* value */
.comp-row .muted{ flex:1; }                                          /* note / meta — fills, left-aligned */
.comp-row .pos{ color:var(--blue); }
/* Reimbursement program details (collapsible) */
.stipend-rules{ margin-top:12px; border:1px solid var(--border); border-radius:10px; background:rgba(255,255,255,.02); }
.stipend-rules summary{ cursor:pointer; padding:9px 12px; font-size:12.5px; font-weight:700; color:var(--text-2); list-style:none; }
.stipend-rules summary::-webkit-details-marker{ display:none; }
.stipend-rules summary::before{ content:'▸'; margin-right:8px; color:var(--text-3); }
.stipend-rules[open] summary::before{ content:'▾'; }
.stipend-rules .sr-body{ padding:2px 14px 12px; font-size:12.5px; color:var(--text-2); line-height:1.5; }
.stipend-rules .sr-body p{ margin:7px 0; }
.stipend-rules .sr-body ul{ margin:4px 0 4px 18px; }
.stipend-rules .sr-body li{ margin:3px 0; }
.stipend-rules .sr-body b{ color:var(--text-1); }
.muted{ color:var(--text-3); font-size:12.5px; }
.lnk{ background:none; border:none; color:var(--blue); font-weight:700; font-size:12px; cursor:pointer; padding:0 4px; }
.link-row{ display:flex; flex-wrap:wrap; gap:8px; }
.privacy-note{ display:flex; gap:8px; align-items:center; color:var(--text-2); font-size:13px;
  padding:14px 16px; border-radius:12px; background:rgba(59,130,246,.06); border:1px solid var(--border); }
/* Beta "View as" switcher in the sidebar user card */
.acting-as{ margin-top:0; padding-top:13px; border-top:1px solid var(--border); text-align:center; }
.acting-as label{ display:block; font-size:10.5px; font-weight:700; letter-spacing:.06em; text-transform:uppercase;
  color:var(--text-3); margin-bottom:7px; }
/* Custom "View as" dropdown */
.vas{ position:relative; text-align:left; }
.vas-trigger{ width:100%; display:flex; align-items:center; gap:9px; padding:7px 10px; border-radius:11px;
  background:rgba(255,255,255,.05); border:1px solid var(--border); color:var(--text-1); cursor:pointer;
  font-size:12.5px; font-weight:600; transition:border-color .15s, background .15s; }
.vas-trigger:hover{ border-color:rgba(120,180,255,.45); background:rgba(255,255,255,.08); }
.vas-cur{ flex:1; text-align:left; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.vas-chev{ color:var(--text-3); font-size:11px; }
.vas-av{ width:24px; height:24px; flex:0 0 24px; border-radius:50%; background:var(--grad);
  background-size:cover; background-position:center;
  display:flex; align-items:center; justify-content:center; color:#fff; font-weight:700; font-size:9.5px; letter-spacing:.2px; }
.vas-menu{ position:absolute; bottom:calc(100% + 8px); left:0; right:0; z-index:60;
  max-height:300px; overflow-y:auto; padding:6px; display:none; flex-direction:column; gap:2px;
  background:rgba(15,21,38,.97); border:1px solid rgba(120,160,255,.28); border-radius:14px;
  box-shadow:0 18px 46px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter:blur(16px) saturate(150%); -webkit-backdrop-filter:blur(16px) saturate(150%);
  scrollbar-width:none; }
.vas-menu::-webkit-scrollbar{ width:0; height:0; }
.vas-menu.open{ display:flex; animation:vasIn .16s ease; }
@keyframes vasIn{ from{ opacity:0; transform:translateY(6px); } to{ opacity:1; transform:translateY(0); } }
.vas-opt{ display:flex; align-items:center; gap:9px; width:100%; padding:6px 8px; border-radius:10px;
  background:transparent; border:1px solid transparent; cursor:pointer; color:var(--text-1);
  font-size:12.5px; font-weight:600; text-align:left; transition:background .12s, border-color .12s; }
.vas-opt:hover{ background:rgba(255,255,255,.07); }
.vas-opt.is-sel{ background:linear-gradient(135deg, rgba(59,130,246,.3), rgba(34,211,238,.14) 75%);
  border-color:rgba(120,180,255,.5); }
.vas-nm{ flex:1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.vas-tag{ font-size:8px; font-weight:800; letter-spacing:.4px; padding:2px 6px; border-radius:999px; flex:0 0 auto; }
.vas-tag.admin{ background:rgba(168,85,247,.22); color:#d8b4fe; }
.vas-tag.tl{ background:rgba(59,130,246,.22); color:#93c5fd; }

/* Custom crystal dropdown for ladder meta fields (Desired Track / Levels) */
.lsel{ position:relative; }
.lsel-trigger{ width:100%; display:flex; align-items:center; gap:9px; padding:11px 13px; border-radius:10px;
  background:rgba(255,255,255,.04); border:1px solid var(--border); color:var(--text); cursor:pointer;
  font-size:13.5px; font-weight:600; transition:border-color .15s, background .15s; }
.lsel-trigger:hover{ border-color:rgba(120,180,255,.45); background:rgba(255,255,255,.07); }
.lsel-cur{ flex:1; text-align:left; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-weight:700; }
.lsel-chev{ color:var(--text-3); font-size:11px; transition:transform .2s ease; }
.lsel:has(.lsel-menu.open) .lsel-chev{ transform:rotate(180deg); }
.lsel:has(.lsel-menu.open) .lsel-trigger{ border-color:rgba(120,180,255,.5); background:rgba(255,255,255,.07); }
.lsel-dot{ width:10px; height:10px; border-radius:50%; flex:0 0 auto; box-shadow:0 0 7px currentColor; }
.lsel-menu{ position:absolute; top:calc(100% + 6px); left:0; right:0; z-index:60;
  max-height:300px; overflow-y:auto; padding:6px; display:none; flex-direction:column; gap:2px;
  background:rgba(15,21,38,.97); border:1px solid rgba(120,160,255,.28); border-radius:14px;
  box-shadow:0 18px 46px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter:blur(16px) saturate(150%); -webkit-backdrop-filter:blur(16px) saturate(150%);
  scrollbar-width:none; }
.lsel-menu::-webkit-scrollbar{ width:0; height:0; }
.lsel-menu.open{ display:flex; animation:vasIn .16s ease; }
.lsel-opt{ display:flex; align-items:center; gap:9px; width:100%; padding:9px 10px; border-radius:10px;
  background:transparent; border:1px solid transparent; cursor:pointer; color:var(--text);
  font-size:13px; font-weight:600; text-align:left; transition:background .12s, border-color .12s; }
.lsel-opt:hover{ background:rgba(255,255,255,.07); }
.lsel-opt.is-sel{ background:linear-gradient(135deg, rgba(59,130,246,.3), rgba(34,211,238,.14) 75%); border-color:rgba(120,180,255,.5); }
.lsel-nm{ flex:1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* Custom Kolbe A/B dropdowns (replaces native selects) */
.kdd{ position:relative; }
.kdd-trigger{ width:100%; display:flex; align-items:center; gap:11px; padding:11px 13px; border-radius:12px;
  background:rgba(255,255,255,.05); border:1px solid var(--border); color:var(--text-1); cursor:text;
  font-size:14px; font-weight:600; transition:border-color .15s, background .15s; }
.kdd-trigger:hover{ border-color:rgba(120,180,255,.45); background:rgba(255,255,255,.08); }
.kdd:focus-within .kdd-trigger{ border-color:rgba(120,180,255,.6); background:rgba(255,255,255,.08);
  border-bottom-left-radius:0; border-bottom-right-radius:0; }
.kdd-input{ flex:1; min-width:0; background:none; border:none; outline:none; padding:0;
  color:var(--text-1); font-size:14px; font-weight:600; font-family:inherit; }
.kdd-input::placeholder{ color:var(--text-1); opacity:1; }   /* shows the current pick like a value */
/* The wrapping trigger shows the focus state; the inner input must not draw its
   own blue focus ring (it was rendering as an ugly pill around the text). */
.kdd-input:focus{ box-shadow:none !important; border:none; }
.kdd-cur{ flex:1; text-align:left; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.kdd-trigger .vas-av{ width:28px; height:28px; flex-basis:28px; font-size:10.5px; }
/* Team member picker: while typing, hide the avatar and dim the current name so
   the search field reads cleanly instead of looking like it has a stuck value. */
.qr-picker:focus-within .kdd-trigger .vas-av{ display:none; }
.qr-picker:focus-within .kdd-input::placeholder{ color:var(--text-3); opacity:1; }
/* Read-only reports-to trigger (auto-filled from the master sheet). */
.kdd-trigger.kdd-ro{ cursor:default; }
.kdd-trigger.kdd-ro:hover{ border-color:var(--border); background:rgba(255,255,255,.05); }
/* Reports-to value: one or two leads, each as avatar + name. */
.kdd-val{ display:inline-flex; align-items:center; gap:11px; flex-wrap:wrap; min-width:0; }
.kdd-lead{ display:inline-flex; align-items:center; gap:9px; }
.kdd-sep{ color:var(--text-3); font-weight:700; }
.kdd-menu{ position:absolute; top:100%; left:0; right:0; z-index:60;
  max-height:340px; overflow-y:auto; padding:6px; display:none; flex-direction:column; gap:2px;
  background:rgba(15,21,38,.97); border:1px solid rgba(120,180,255,.6); border-top:none;
  border-radius:0 0 12px 12px;
  box-shadow:0 18px 46px rgba(0,0,0,.6); margin-top:-1px;
  backdrop-filter:blur(16px) saturate(150%); -webkit-backdrop-filter:blur(16px) saturate(150%);
  scrollbar-width:none; }
.kdd-menu::-webkit-scrollbar{ width:0; height:0; }
.kdd-menu.open{ display:flex; animation:vasIn .16s ease; }
.kdd-opt{ display:flex; align-items:center; gap:11px; width:100%; padding:8px 10px; border-radius:10px;
  background:transparent; border:1px solid transparent; cursor:pointer; color:var(--text-1);
  font-size:13px; font-weight:600; text-align:left; transition:background .12s, border-color .12s; }
.kdd-opt:hover{ background:rgba(255,255,255,.07); }
.kdd-opt.is-sel{ background:linear-gradient(135deg, rgba(59,130,246,.3), rgba(34,211,238,.14) 75%); border-color:rgba(120,180,255,.5); }
.kdd-nm{ flex:1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.kdd-meta{ font-size:10.5px; font-weight:700; color:var(--text-3); letter-spacing:.3px; flex:0 0 auto; }
.kdd-opts{ display:flex; flex-direction:column; gap:2px; }
/* Keep the open A/B menus above the comparison cards below (which create their
   own stacking contexts via backdrop-filter). */
#kolbe-result{ position:relative; }
/* Kolbe gap-zone badges + cheat-sheet focus header */
.kz{ display:inline-block; font-size:11px; font-weight:700; padding:2px 9px; border-radius:999px; letter-spacing:.2px; }
.kz-common{ background:rgba(34,211,238,.16); color:#67e8f9; }
.kz-synergy{ background:rgba(59,130,246,.18); color:#93c5fd; }
.kz-friction{ background:rgba(248,113,113,.16); color:#fca5a5; }
.kolbe-focus-head{ display:flex; align-items:center; gap:9px; flex-wrap:wrap; font-size:13.5px; font-weight:700;
  color:var(--text-2); margin:2px 0 12px; }
.kolbe-focus-head b{ color:var(--text); }
.kolbe-card-body{ color:var(--text-2); font-size:13px; line-height:1.55; }
.beta-pill{ display:inline-block; padding:0 5px; border-radius:999px; font-size:9px; font-weight:800;
  color:var(--blue); background:rgba(59,130,246,.15); vertical-align:middle; }
.badge-admin.tl{ background:rgba(59,130,246,.18); color:var(--blue); }
/* Hawk Ladder + Quarterly Review */
.ladder-list{ display:flex; flex-direction:column; gap:8px; }
.ladder-row{ display:flex; align-items:center; gap:10px; padding:8px 10px; border-radius:10px;
  background:rgba(255,255,255,.03); border:1px solid var(--border); }
.ladder-main{ flex:1; }
.ladder-label{ font-size:13.5px; font-weight:600; }
.ladder-check{ width:26px; height:26px; flex:0 0 26px; border-radius:7px; cursor:pointer; display:flex; align-items:center; justify-content:center;
  border:1px solid var(--border); background:rgba(255,255,255,.03); color:#fff; }
.ladder-check.on{ background:var(--grad); border-color:transparent; }
.ladder-check:disabled{ cursor:default; opacity:.6; }
.qform .form-label{ margin-top:12px; }
.ro-answer{ padding:9px 12px; border-radius:9px; background:rgba(255,255,255,.03); border:1px solid var(--border);
  font-size:13px; color:var(--text-1); white-space:pre-wrap; }
.notes{ margin-top:12px; padding-top:10px; border-top:1px dashed var(--border); }
.note-item{ font-size:12.5px; padding:7px 10px; border-radius:8px; background:rgba(59,130,246,.06);
  border:1px solid var(--border); margin-bottom:6px; }
/* Hawk Ladder rubric table */
.ladder-meta-grid{ display:grid; grid-template-columns:repeat(5,1fr); gap:12px; margin:12px 0 16px; }
.ladder-meta-grid .wide{ grid-column:span 1; }
.ladder-meta-grid select, .ladder-meta-grid input{ width:100%; padding:6px 8px; font-size:13px; border-radius:8px;
  background:rgba(255,255,255,.04); border:1px solid var(--border); color:var(--text-1); }
.ladder-levelsel{ padding:6px 10px; font-size:13px; border-radius:8px; background:rgba(255,255,255,.04);
  border:1px solid var(--border); color:var(--text-1); font-weight:600; }
.ladder-tbl{ width:100%; border-collapse:collapse; font-size:13px; }
.ladder-tbl th{ text-align:left; font-size:11.5px; letter-spacing:.4px; color:var(--text-3); font-weight:700;
  padding:0 14px 13px; border-bottom:1px solid var(--border); }
.ladder-tbl td{ padding:15px 14px; border-bottom:1px solid rgba(255,255,255,.05); vertical-align:top; }
.ladder-tbl td.lgk{ font-weight:700; width:140px; line-height:1.5; }
.ladder-tbl td.ldet{ color:var(--text-2); line-height:1.65; min-width:300px; padding-right:28px; }
.ldet-link{ color:var(--blue); text-decoration:underline; text-underline-offset:2px; }
.ldet-link:hover{ color:var(--cyan, #67e8f9); }
.ladder-tbl tr.lcat td{ background:rgba(59,130,246,.07); color:var(--blue); font-weight:800; font-size:11px;
  letter-spacing:.5px; text-transform:uppercase; padding:6px 8px; }
.lrate{ width:100%; min-width:96px; padding:5px 6px; font-size:12px; border-radius:7px;
  background:rgba(255,255,255,.04); border:1px solid var(--border); color:var(--text-1); }
.lrate:disabled{ opacity:.45; }
.lnote{ width:100%; min-width:120px; padding:5px 8px; font-size:12px; border-radius:7px;
  background:rgba(255,255,255,.04); border:1px solid var(--border); color:var(--text-1); }
/* Dark dropdown popups (native option lists default to white = unreadable) */
select option{ background:#0f1830; color:#e8edf5; }
/* Grade colors, matching the Hawk Ladder doc: (+) good, (+/-) partial, (-) low */
.lrate.rate-pos{ color:#22c55e; font-weight:700; border-color:rgba(34,197,94,.45); }
.lrate.rate-mid{ color:#f59e0b; font-weight:700; border-color:rgba(245,158,11,.45); }
.lrate.rate-neg{ color:#ef4444; font-weight:700; border-color:rgba(239,68,68,.45); }
.ladder-level{ margin-top:18px; }
.ll-head{ font-size:13px; font-weight:800; letter-spacing:.5px; color:var(--blue); text-transform:uppercase;
  margin:10px 0 14px; padding-bottom:13px; border-bottom:1px solid var(--border); }
.ll-head .ll-dur{ font-size:11px; font-weight:600; letter-spacing:.3px; color:var(--text-3); margin-left:6px; }

/* ---- Structured Quarterly Review (Performance Review sheet) ---- */
.qr-top-row{ display:grid; grid-template-columns:1fr 1fr; gap:18px; margin-bottom:18px; align-items:start; }
.qr-top-col{ display:flex; flex-direction:column; }
.qr-top-col > .form-label{ margin-top:0; }
.qr-top-col .qr-sel{ padding:11px 34px 11px 13px; font-size:13.5px; }
@media (max-width:680px){ .qr-top-row{ grid-template-columns:1fr; } }
.qr-auto{ font-size:10px; font-weight:600; color:var(--text-3); text-transform:none; letter-spacing:0;
  border:1px solid var(--border); border-radius:6px; padding:1px 6px; margin-left:6px; }
.qr-pips, .qr-issues{ display:flex; flex-direction:column; gap:8px; }
.qr-pip-item{ padding:11px 13px; border-radius:10px; border:1px solid var(--border);
  background:rgba(255,255,255,.03); }
.qr-pip-top{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; font-size:12.5px; }
.qr-pip-status{ font-size:10.5px; font-weight:700; text-transform:uppercase; letter-spacing:.4px; padding:2px 8px; border-radius:20px; }
.qr-pip-status.qr-pip-on{ color:#ef4444; background:rgba(239,68,68,.12); border:1px solid rgba(239,68,68,.4); }
.qr-pip-status.qr-pip-off{ color:var(--text-3); background:rgba(255,255,255,.05); border:1px solid var(--border); }
.qr-pip-purpose{ margin-top:8px; font-size:13px; color:var(--text-1); line-height:1.5; }
.qr-pip-issues{ margin:8px 0 0; padding-left:18px; font-size:12.5px; color:var(--text-2); line-height:1.6; }
.qr-issue-item{ padding:8px 12px; border-radius:9px; border:1px solid var(--border); background:rgba(255,255,255,.03);
  font-size:12.5px; color:var(--text-1); line-height:1.5; }
.qr-issue-cat{ display:inline-block; font-size:10px; font-weight:700; padding:1px 7px; border-radius:20px; border:1px solid; }
.qr-head-right{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; justify-content:flex-end; }
.qr-toggle{ display:inline-flex; padding:3px; border-radius:10px; gap:3px;
  background:rgba(255,255,255,.04); border:1px solid var(--border); }
.qr-tog{ padding:6px 13px; font-size:12px; font-weight:700; border-radius:8px; border:none; cursor:pointer;
  background:none; color:var(--text-2); transition:background .15s, color .15s; }
.qr-tog:hover{ color:var(--text-1); }
.qr-tog.on{ background:linear-gradient(135deg, rgba(59,130,246,.85), rgba(34,211,238,.6)); color:#fff;
  box-shadow:0 2px 8px rgba(59,130,246,.35); }
.qr-quarter{ padding:7px 34px 7px 12px; font-size:12.5px; font-weight:600; border-radius:8px;
  background:rgba(255,255,255,.04); border:1px solid var(--border); color:var(--text-1); }
.qr-quarter-sel{ width:140px; }
.qr-quarter-sel .lsel-trigger{ padding:8px 12px; font-size:12.5px; }
.qr-quarter-sel .lsel-cur{ font-weight:600; }
.qr-h{ margin:22px 0 12px; font-size:11.5px; font-weight:800; letter-spacing:.5px; text-transform:uppercase;
  color:var(--blue); padding-bottom:9px; border-bottom:1px solid var(--border); }
.qr-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:14px 16px; align-items:start; }
.qr-grid.c3{ grid-template-columns:repeat(3,1fr); }
.qr-grid.c4{ grid-template-columns:repeat(4,1fr); }
@media (max-width:980px){ .qr-grid.c3,.qr-grid.c4{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){ .qr-grid.c3,.qr-grid.c4{ grid-template-columns:1fr; } }
.qr-row{ display:flex; flex-direction:column; gap:6px; }
.qr-row > label{ font-size:12.5px; font-weight:700; color:var(--text-1); display:flex; flex-direction:column; gap:2px; }
.qr-hint{ font-size:11px; font-weight:400; color:var(--text-3); line-height:1.4; }
.qr-sel{ width:100%; padding:8px 34px 8px 12px; font-size:12.5px; border-radius:8px;
  background:rgba(255,255,255,.04); border:1px solid var(--border); color:var(--text-1); }
.qr-sel.rate-pos{ color:#22c55e; font-weight:700; border-color:rgba(34,197,94,.45); }
.qr-sel.rate-mid{ color:#f59e0b; font-weight:700; border-color:rgba(245,158,11,.45); }
.qr-sel.rate-neg{ color:#ef4444; font-weight:700; border-color:rgba(239,68,68,.45); }
.qr-metrics{ display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
.qr-metric .dl{ margin-bottom:5px; }
.qr-metric input{ width:100%; padding:8px 12px; font-size:13px; border-radius:8px;
  background:rgba(255,255,255,.04); border:1px solid var(--border); color:var(--text-1); }
@media (max-width:760px){ .qr-grid{ grid-template-columns:1fr; } .qr-metrics{ grid-template-columns:repeat(2,1fr); } }
/* Compare view: Self vs Team Lead side by side */
.qr-cmp{ display:flex; flex-direction:column; border:1px solid var(--border); border-radius:12px; overflow:hidden;
  background:rgba(255,255,255,.02); }
.qr-cmp-row{ display:grid; grid-template-columns:var(--cmp-cols, minmax(0,1.1fr) minmax(0,1fr) minmax(0,1fr)); gap:0;
  border-top:1px solid var(--border); }
.qr-cmp-row:first-child{ border-top:none; }
.qr-cmp-row > div{ padding:11px 14px; border-left:1px solid var(--border); }
.qr-cmp-row > div:first-child{ border-left:none; }
.qr-cmp-headrow{ background:rgba(255,255,255,.03); }
.qr-cmp-col{ display:flex; flex-direction:column; gap:3px; font-size:11.5px; font-weight:800; letter-spacing:.4px; text-transform:uppercase; }
.qr-cmp-sub{ font-size:12px; font-weight:700; letter-spacing:0; text-transform:none; color:var(--text-1); }
.qr-cmp-self{ color:var(--text-2); }
.qr-cmp-lead{ color:var(--blue); }
.qr-cmp-q{ display:flex; flex-direction:column; gap:3px; font-size:12.5px; font-weight:700; color:var(--text-1);
  background:rgba(255,255,255,.015); }
.qr-cmp-v{ font-size:12.5px; color:var(--text-1); }
.qr-cmp-rate{ font-weight:700; }
.qr-cmp-txt{ white-space:pre-wrap; line-height:1.5; color:var(--text-2); }
@media (max-width:680px){
  .qr-cmp-row{ grid-template-columns:1fr; }
  .qr-cmp-row > div{ border-left:none; border-top:1px solid var(--border); }
  .qr-cmp-row > div:first-child{ border-top:none; }
  .qr-cmp-headrow{ display:none; }
  .qr-cmp-v::before{ content:attr(data-col); display:block; font-size:10px; font-weight:800; letter-spacing:.4px;
    text-transform:uppercase; color:var(--text-3); margin-bottom:3px; }
}
.privacy-banner{ display:flex; gap:10px; align-items:center; padding:12px 16px; border-radius:12px;
  background:rgba(59,130,246,.08); border:1px solid rgba(59,130,246,.25); color:#bfdbfe; font-size:13px; margin-bottom:16px; }
.mini-input{ padding:7px 10px; font-size:12.5px; }

/* weekly score bars */
.week-chart{ display:flex; align-items:flex-end; gap:10px; height:200px; padding:16px 6px 0; }
.week-bar{ flex:1; display:flex; flex-direction:column; align-items:center; gap:6px; height:100%; justify-content:flex-end; }
.week-bar .wb-val{ font-size:11px; font-weight:700; color:var(--text-2); }
.week-bar .wb-fill{ width:100%; border-radius:7px 7px 0 0; min-height:3px; background:var(--grad); transition:height .5s; }
.week-bar .wb-lbl{ font-size:10.5px; color:var(--text-3); }

/* kolbe compatibility */
.kolbe-compare{ display:grid; grid-template-columns:1fr 200px 1fr; gap:16px; align-items:stretch; margin-bottom:16px;
  position:relative; z-index:5; }   /* keep open A/B dropdowns above the breakdown below */
/* Merged employee card: header + selector + profile in one card */
.kolbe-emp{ display:flex; flex-direction:column; }
.kolbe-emp .kdd{ margin-bottom:14px; }
.kolbe-emp-info{ border-top:1px solid var(--border); padding-top:14px; }
.kolbe-emp-name{ font-weight:700; font-size:15px; }
.kolbe-emp-sub{ font-size:12.5px; color:var(--text-2); margin-top:2px; }
.kolbe-emp .kolbe-tiles{ margin-top:14px; }
.kolbe-tiles{ display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:14px; }
.kolbe-tile{ text-align:center; padding:12px 6px; border-radius:11px; background:rgba(255,255,255,.03); border:1px solid var(--border); }
.kolbe-tile .kt-num{ font-size:24px; font-weight:800; }
.kolbe-tile .kt-lbl{ font-size:10.5px; color:var(--text-3); margin-top:2px; }
.compat-score{ display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; }
.compat-score .pct{ font-size:48px; font-weight:800; background:var(--grad); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
/* Circular progress ring for the compatibility % */
.compat-ring{ position:relative; width:146px; height:146px; margin:2px auto 4px; }
.compat-ring svg{ width:100%; height:100%; transform:rotate(-90deg); overflow:visible; }
.cr-track{ fill:none; stroke:rgba(255,255,255,.08); stroke-width:10; }
.cr-fill{ fill:none; stroke:url(#crGrad); stroke-width:10; stroke-linecap:round;
  filter:drop-shadow(0 0 6px rgba(34,211,238,.35));
  transition:stroke-dashoffset .9s cubic-bezier(.34,1,.34,1); }
.cr-label{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; }
.cr-num{ font-size:38px; font-weight:800; line-height:1; background:var(--grad);
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.cr-pct{ font-size:19px; font-weight:700; margin-left:1px; }
.kt-hi{ color:#5eead4; } .kt-mid{ color:#93c5fd; } .kt-lo{ color:#fca5a5; }

.prompt-block{ background:rgba(10,13,20,.7); border:1px solid var(--border); border-radius:11px; padding:14px; font-family:ui-monospace,monospace; font-size:12px; color:var(--text-2); white-space:pre-wrap; max-height:240px; overflow-y:auto; }

/* expandable HR row */
.expand-detail{ background:rgba(255,255,255,.02); }
/* Expanded employee ficha: keep it centered + readable on very wide screens. */
.hr-ficha{ max-width:1320px; margin:18px auto 0; }
.detail-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:14px 24px; padding:0; font-size:13px; }
.dl{ color:var(--text-3); font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.4px; }
.dv{ color:var(--text); margin-top:3px; font-size:13.5px; line-height:1.4; }
.dv a{ color:var(--blue); }

/* Profile: details (left) + Kolbe scores (right) */
.ficha-cols{ display:grid; grid-template-columns:1.6fr 1fr; gap:30px; align-items:start; }
@media (max-width:860px){ .ficha-cols{ grid-template-columns:1fr; gap:22px; } }
.info-grid{ display:grid; grid-template-columns:1fr 1fr; gap:16px 28px; align-content:start; }
.info-item.wide{ grid-column:1 / -1; }
.ficha-kolbe{ padding-left:28px; border-left:1px solid var(--border); }
@media (max-width:860px){ .ficha-kolbe{ padding-left:0; border-left:none; padding-top:18px; border-top:1px solid var(--border); } }
.kolbe-head{ margin-bottom:14px; }
.kbar{ margin-bottom:14px; }
.kbar-top{ display:flex; justify-content:space-between; align-items:baseline; margin-bottom:6px; }
.kbar-lbl{ font-size:12.5px; color:var(--text-2); font-weight:600; }
.kbar-val{ font-size:16px; font-weight:800; }
.kbar-track{ height:7px; border-radius:99px; background:rgba(255,255,255,.07); overflow:hidden; }
.kbar-fill{ height:100%; border-radius:99px; background:var(--blue); transition:width .6s cubic-bezier(.4,0,.2,1); }
.kbar-fill.kt-hi{ background:#5eead4; } .kbar-fill.kt-mid{ background:#93c5fd; } .kbar-fill.kt-lo{ background:#fca5a5; }
.kolbe-perso{ margin-top:18px; padding-top:14px; border-top:1px solid var(--border); }

/* Compensation / stipend fields as mini stat cards */
.stat-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(150px, 1fr)); gap:12px; }
.stat-card{ background:rgba(255,255,255,.03); border:1px solid var(--border); border-radius:11px; padding:13px 15px; }
.perso-dv{ display:flex; align-items:center; gap:8px; }
.perso-ico{ color:var(--blue); flex:0 0 auto; }
/* ----- Dates calendar (birthdays + Hawkniversaries) ----- */
.cal-toolbar{ display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; margin:0 0 14px; }
.cal-seg{ position:relative; display:inline-flex; padding:4px; gap:3px; border-radius:12px; border:1px solid var(--border); background:rgba(255,255,255,.03); }
.cal-seg-btn{ position:relative; z-index:1; appearance:none; border:none; cursor:pointer; padding:8px 16px; border-radius:9px;
  font-size:13px; font-weight:700; color:var(--text-2); background:transparent; transition:color .18s ease; }
.cal-seg-btn:not(.is-on):hover{ color:var(--text); }
.cal-seg-btn.is-on{ color:#dff1ff; }
/* glossy crystal highlight that slides between segments (matches .nav-thumb) */
.cal-seg-thumb{
  position:absolute; left:0; top:0; border-radius:9px; opacity:0;
  background:linear-gradient(135deg, rgba(59,130,246,.34), rgba(34,211,238,.14) 70%);
  border:1px solid rgba(120,180,255,.5);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.22), inset 0 -8px 16px rgba(10,30,60,.35);
  backdrop-filter:blur(7px) saturate(150%); -webkit-backdrop-filter:blur(7px) saturate(150%);
  pointer-events:none; z-index:0; overflow:hidden;
  transition:transform .3s cubic-bezier(.4,0,.2,1), width .28s cubic-bezier(.4,0,.2,1), height .28s cubic-bezier(.4,0,.2,1), opacity .22s ease;
}
.cal-seg-thumb::before{
  content:''; position:absolute; left:0; right:0; top:0; height:55%; border-radius:inherit;
  background:linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,0));
}
.cal-nav{ display:flex; align-items:center; gap:8px; }
.cal-arrow{ appearance:none; cursor:pointer; width:34px; height:34px; display:inline-flex; align-items:center; justify-content:center;
  border-radius:9px; border:1px solid var(--border); background:rgba(255,255,255,.04); color:var(--text-2); transition:all .15s ease; }
.cal-arrow:hover{ background:rgba(255,255,255,.08); color:var(--text); border-color:var(--blue); }
.cal-arrow.flip .ico{ transform:rotate(180deg); }
.cal-period{ min-width:170px; text-align:center; font-size:14.5px; font-weight:800; letter-spacing:.01em; }
.cal-wrap{ padding:14px; }

/* ===== event chip — glossy crystal "person card" ===== */
.cal-ev{ position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center;
  gap:5px; cursor:pointer; border-radius:12px; padding:9px 8px; overflow:hidden; isolation:isolate;
  border:1px solid rgba(255,255,255,.10);
  box-shadow:0 3px 10px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.10);
  transition:transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .18s ease, border-color .18s ease; }
/* glossy top sheen */
.cal-ev::before{ content:""; position:absolute; inset:0; z-index:-1; border-radius:inherit;
  background:linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,0) 42%); pointer-events:none; }
.cal-ev:hover{ transform:translateY(-2px) scale(1.015); border-color:rgba(255,255,255,.22);
  box-shadow:0 8px 22px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.18); }
/* colorway */
.cal-ev.bday{ background:linear-gradient(135deg, rgba(34,211,238,.26), rgba(59,130,246,.16)); }
.cal-ev.hawk{ background:linear-gradient(135deg, rgba(139,92,246,.30), rgba(59,130,246,.16)); }
/* soft radial glow behind avatar (top-centered) */
.cal-ev-glow{ position:absolute; left:50%; top:14px; width:60px; height:60px; transform:translateX(-50%);
  border-radius:50%; filter:blur(16px); opacity:.55; z-index:-1; pointer-events:none; }
.cal-ev.bday .cal-ev-glow{ background:#22d3ee; }
.cal-ev.hawk .cal-ev-glow{ background:#8b5cf6; }
.cal-ev .avatar.avatar-xs{ width:42px; height:42px; flex:0 0 42px; font-size:16px; font-weight:800;
  box-shadow:0 0 0 2px rgba(255,255,255,.18), 0 3px 9px rgba(0,0,0,.5); }
.cal-ev-nm{ font-size:15px; font-weight:800; color:#fff; max-width:100%; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  margin-top:6px; text-shadow:0 1px 2px rgba(0,0,0,.4); }
.cal-ev-lb{ display:inline-flex; align-items:center; gap:6px; font-size:12.5px; font-weight:700; letter-spacing:.01em;
  max-width:100%; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cal-ev-lb .ico{ flex:0 0 auto; width:14px; height:14px; }
.cal-ev.bday .cal-ev-lb .ico{ transform:translateY(-2px); }
.cal-ev.hawk .cal-ev-lb .ico{ transform:translateY(0); }
.cal-ev-lb > span{ overflow:hidden; text-overflow:ellipsis; }
.cal-ev.bday .cal-ev-lb{ color:#a5f3fc; }
.cal-ev.hawk .cal-ev-lb{ color:#ddd6fe; }

/* month + week grids */
.cal-grid{ display:grid; gap:6px; }
.cal-grid.month{ grid-template-columns:repeat(7,1fr); grid-template-rows:auto repeat(6, minmax(124px,1fr)); }
.cal-dow{ font-size:10.5px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; color:var(--text-3); text-align:center; padding:2px 0 4px; }
.cal-cell{ position:relative; border:1px solid var(--border); border-radius:13px; padding:0;
  background:linear-gradient(160deg, rgba(255,255,255,.035), rgba(255,255,255,.01));
  min-height:132px; overflow:hidden;
  transition:border-color .15s ease, background .15s ease; }
.cal-cell:hover{ border-color:rgba(255,255,255,.16); background:linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); }
.cal-cell.other{ opacity:.38; }
.cal-cell.today{ border-color:var(--blue); box-shadow:0 0 0 1px var(--blue) inset, 0 6px 20px rgba(59,130,246,.22); }
/* day number floats on top of the filled event */
.cal-dnum{ position:absolute; top:6px; left:8px; z-index:2; font-size:12px; font-weight:800; line-height:1;
  color:#fff; padding:3px 6px; border-radius:7px; background:rgba(8,12,20,.45); backdrop-filter:blur(4px);
  text-shadow:0 1px 2px rgba(0,0,0,.6); pointer-events:none; }
.cal-cell:not(:has(.cal-ev)) .cal-dnum{ background:transparent; color:var(--text-2); backdrop-filter:none; text-shadow:none; }
.cal-cell.today .cal-dnum{ color:#bfdbfe; }
/* events fill the WHOLE cell and split the height evenly when there are several */
.cal-evs{ position:absolute; inset:0; display:flex; flex-direction:column; gap:3px; }
.cal-evs .cal-ev{ flex:1 1 0; min-height:0; border-radius:12px; }

.cal-grid.week{ grid-template-columns:repeat(7,1fr); align-items:start; }
.cal-wcol{ border:1px solid var(--border); border-radius:12px; background:rgba(255,255,255,.02); overflow:hidden; min-height:320px; display:flex; flex-direction:column; }
.cal-wcol.today{ border-color:var(--blue); box-shadow:0 0 0 1px var(--blue) inset; }
.cal-whd{ display:flex; align-items:baseline; justify-content:space-between; padding:9px 11px; border-bottom:1px solid var(--border); background:rgba(255,255,255,.02); }
.cal-wd{ font-size:10.5px; font-weight:800; letter-spacing:.05em; text-transform:uppercase; color:var(--text-3); }
.cal-wn{ font-size:16px; font-weight:800; }
.cal-wcol.today .cal-wn{ color:var(--blue); }
.cal-wbody{ flex:1 1 auto; min-height:0; padding:6px; display:flex; flex-direction:column; gap:5px; }
.cal-wbody .cal-ev{ flex:1 1 0; min-height:0; }
.cal-empty{ flex:1 1 auto; display:flex; align-items:center; justify-content:center; font-size:12px; color:var(--text-3); }

/* annual */
.cal-year{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
@media (max-width:1100px){ .cal-year{ grid-template-columns:repeat(3,1fr); } }
@media (max-width:760px){ .cal-year{ grid-template-columns:repeat(2,1fr); } }
.cy-month{ border:1px solid var(--border); border-radius:13px; background:rgba(255,255,255,.02); padding:12px; cursor:pointer; transition:all .16s ease; }
.cy-month:hover{ border-color:var(--blue); background:rgba(59,130,246,.06); transform:translateY(-2px); }
.cy-title{ display:flex; align-items:center; justify-content:space-between; font-size:13px; font-weight:800; margin-bottom:9px; }
.cy-cnt{ font-size:10.5px; font-weight:800; color:#fff; background:var(--grad); border-radius:999px; padding:1px 8px; }
.cy-grid{ display:grid; grid-template-columns:repeat(7,1fr); gap:2px; }
.cy-dow{ font-size:8.5px; font-weight:800; color:var(--text-3); text-align:center; padding-bottom:2px; }
.cy-d{ aspect-ratio:1; display:flex; align-items:center; justify-content:center; font-size:10.5px; font-weight:600; color:var(--text-2); border-radius:6px; }
.cy-d.empty{ visibility:hidden; }
.cy-d.bday{ background:rgba(34,211,238,.2); color:#67e8f9; font-weight:800; }
.cy-d.hawk{ background:rgba(139,92,246,.24); color:#c4b5fd; font-weight:800; }
.cy-d.both{ background:linear-gradient(135deg, rgba(34,211,238,.24), rgba(139,92,246,.26)); color:#fff; font-weight:800; }
.cy-d.today{ box-shadow:0 0 0 1.5px var(--blue) inset; color:var(--blue); }
/* Centered ficha header */
.ficha-header{ position:relative; display:flex; flex-direction:column; align-items:center; text-align:center; gap:7px; margin-bottom:18px; }
.ficha-header-status{ position:absolute; top:0; right:0; }
/* Profile photo: large rounded square with a bottom gradient that fades the
   image into the card so it reads as separated from the info below. */
.avatar.avatar-lg{ width:190px; height:190px; flex-basis:190px; border-radius:26px; font-size:64px;
  position:relative; overflow:hidden; box-shadow:0 10px 28px rgba(0,0,0,.5), 0 0 0 1px rgba(120,180,255,.12); }
.ficha-header .avatar.avatar-lg::after{ content:''; position:absolute; left:0; right:0; bottom:0; height:42%;
  background:linear-gradient(to top, rgba(8,11,18,.92), rgba(8,11,18,0)); pointer-events:none; }
/* Editable profile photo (only on your own profile). */
.ficha-photo-edit{ position:relative; display:inline-block; cursor:pointer; border-radius:26px; line-height:0; }
.ficha-photo-edit .ficha-photo-overlay{ position:absolute; left:0; right:0; bottom:0; z-index:2;
  display:flex; align-items:center; justify-content:center; gap:6px; padding:12px 8px 11px;
  font-size:11.5px; font-weight:700; color:#fff; line-height:1; border-radius:0 0 26px 26px;
  background:linear-gradient(to top, rgba(8,11,18,.96), rgba(8,11,18,0));
  opacity:0; transition:opacity .15s; pointer-events:none; }
.ficha-photo-edit:hover .ficha-photo-overlay{ opacity:1; }
.ficha-photo-edit:hover .avatar.avatar-lg{ box-shadow:0 10px 28px rgba(0,0,0,.55), 0 0 0 2px rgba(120,180,255,.55); }
.ficha-header-name{ font-size:21px; font-weight:800; margin-top:3px; }
.ficha-header-sub{ font-size:13px; color:var(--text-2); margin-top:-3px; }
.ficha-header-perso{ display:inline-flex; align-items:center; gap:7px; color:var(--blue); font-size:13px; font-weight:600; }

/* toast */
.toast{ position:fixed; bottom:24px; right:24px; z-index:200; display:flex; align-items:center; gap:10px;
  padding:14px 18px; border-radius:12px; background:rgba(45,212,191,.15); border:1px solid rgba(45,212,191,.4);
  color:#bbf7e6; font-weight:600; font-size:13.5px; box-shadow:var(--shadow); animation:toastIn .25s ease; }
.toast.err{ background:rgba(239,68,68,.15); border-color:rgba(239,68,68,.4); color:#fecaca; }
@keyframes toastIn{ from{ opacity:0; transform:translateY(10px);} to{ opacity:1; transform:none;} }

.search-bar{ margin-bottom:14px; }
.filter-row{ display:flex; gap:10px; align-items:center; }
.filter-row select{ width:auto; min-width:240px; padding:13px 42px 13px 18px; }

@media print{
  body *{ visibility:hidden; }
  .pip-doc, .pip-doc *{ visibility:visible; }
  .pip-doc{ position:absolute; left:0; top:0; width:100%; border-radius:0; }
}
