/* TLM UI - monday-like layout + Tesla infographic theme + dark mode */

/* Google Font: TikTok Sans (global) */
@import url('https://fonts.googleapis.com/css2?family=TikTok+Sans:wght@300;400;500;600;700;800&display=swap');

:root{
  --bg:#f6f7fb;
  --card:#ffffff;
  --text:#1f2937;
  --muted:#6b7280;
  --border:#e6e8ef;

  --primary:#E82127;      /* Tesla red */
  --primary-dark:#B9151A;

  --cyan:#00E5FF;
  --lime:#7CFF6B;
  --amber:#FFB020;

  --shadow: 0 10px 30px rgba(17,24,39,.08);
  --radius:14px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: "TikTok Sans", Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:var(--bg);
  color:var(--text);
}

/* Themes */
body.theme-dark{
  --bg:#070A10;
  --card:#0D121B;
  --text:#E7EAF0;
  --muted:#9AA3B2;
  --border:rgba(255,255,255,.10);
  --shadow: 0 18px 50px rgba(0,0,0,.55);

  background:
    radial-gradient(1200px 600px at 30% -10%, rgba(0,229,255,.10), transparent 60%),
    radial-gradient(1000px 600px at 90% 0%, rgba(232,33,39,.12), transparent 55%),
    var(--bg);  background-repeat: no-repeat;
  background-attachment: fixed;

}

body.theme-light{
  background:var(--bg);
}

a{color:var(--cyan);text-decoration:none}
a:hover{text-decoration:underline}

.container{
  display:grid;
  grid-template-columns: 260px 1fr;
  min-height:100vh;
}

.sidebar{
  background: rgba(13,18,27,.88);
  border-right:1px solid var(--border);
  padding:18px;
  position:sticky;
  top:0;
  height:100vh;
  backdrop-filter: blur(10px);
  display:flex;
  flex-direction:column;
}

/* ============================
   Full-screen page transition loader
   ============================ */
.page-loader{
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  background: rgba(4, 8, 16, .88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}
.page-loader.is-active{
  opacity: 1;
  pointer-events: all;
}
.page-loader-inner{
  display: grid;
  place-items: center;
  gap: 14px;
  padding: 18px 22px;
  border-radius: 22px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 20px 60px rgba(0,0,0,.55);
}
.page-loader-logo{
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: radial-gradient(circle at 30% 20%, rgba(232,33,39,.28), rgba(255,255,255,.05) 45%, rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow:
    0 0 0 1px rgba(232,33,39,.15) inset,
    0 0 24px rgba(232,33,39,.25);
  animation: loaderFloat 1.6s ease-in-out infinite;
}
.page-loader-logo svg,
.page-loader-logo img{
  width: 58px;
  height: 58px;
  object-fit: contain;
  display: block;
  fill: #E82127;
  filter: drop-shadow(0 0 14px rgba(232,33,39,.55));
  animation: loaderPulse 1.6s ease-in-out infinite;
}
.page-loader-spinner{
  width: 64px;
  height: 64px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.14);
  border-top-color: rgba(232,33,39,.95);
  border-right-color: rgba(0, 255, 209, .75);
  animation: loaderSpin .85s linear infinite;
}
.page-loader-text{
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
}

@keyframes loaderSpin{ to { transform: rotate(360deg);} }
@keyframes loaderPulse{
  0%,100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.06); opacity: .92; }
}
@keyframes loaderFloat{
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 10px 18px;
  border-bottom:1px solid var(--border);
  margin-bottom:14px;
}
.brand-badge{
  width:34px;height:34px;
  display:flex;align-items:center;justify-content:center;
  background: transparent;
  box-shadow: none;
}

.tesla-logo{width:28px;height:28px;fill:#fff;opacity:.95;display:block;object-fit:contain}
.brand h1{font-size:14px;margin:0;line-height:1.1}
.brand small{color:var(--muted)}

.nav{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-top:10px;
  flex:1 1 auto;
  overflow-y:auto;
  padding-right:4px;
}

.nav a{
  display:flex;align-items:center;gap:10px;
  padding:10px 12px;border-radius:12px;color:var(--text);
  border:1px solid transparent;
}

/* Sidebar icon system (plain white SVG icons) */
.nav-left{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.nav-ic{
  width:18px;
  height:18px;
  flex:0 0 18px;
  color: rgba(255,255,255,.92);
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .98;
}
.nav-label{min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}

.nav a.active, .nav a:hover{
  background: rgba(0,229,255,.10);
  border-color: rgba(0,229,255,.18);
  text-decoration:none;
}

/* Sidebar grouped dropdowns */
.collapse{display:none}
.collapse.show{display:block}

.nav-section{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  color: var(--text);
  font-weight:300;
  cursor:pointer;
}
.nav-section:hover{
  background: rgba(0,229,255,.08);
  border-color: rgba(0,229,255,.18);
}
.nav-section .chev{opacity:.8;transition: transform .18s ease}
.nav-section.is-open .chev{transform: rotate(180deg)}

.nav-section.active{
  background: rgba(0,229,255,.10);
  border-color: rgba(0,229,255,.18);
  color: var(--text);
  text-decoration:none;
}

.nav-section.nav-toplink{
  justify-content:flex-start;
  text-decoration:none;
}

.nav-bottomlink{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:12px;
  color: rgba(255,255,255,.86);
  border:1px solid transparent;
}
.nav-bottomlink:hover, .nav-bottomlink.active{
  background: rgba(0,229,255,.10);
  border-color: rgba(0,229,255,.18);
  color: var(--text);
  text-decoration:none;
}

.nav-sublink{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px 10px 28px;
  border-radius:12px;
  color: rgba(255,255,255,.86);
  border:1px solid transparent;
  margin-left:6px;
}
.nav-sublink:hover, .nav-sublink.active{
  background: rgba(0,229,255,.10);
  border-color: rgba(0,229,255,.18);
  color: var(--text);
  text-decoration:none;
}

.nav-sep{height:1px;background: var(--border);margin:8px 0}
.nav-link-logout{
  margin-top:auto;
}

.main{padding:22px 26px}

.topbar{
  display:flex;align-items:center;justify-content:space-between;
  gap:14px;margin-bottom:16px;
}

.title h2{margin:0;font-size:20px}
.title p{margin:4px 0 0;color:var(--muted);font-size:13px}

.actions{display:flex;gap:10px;align-items:center}

.btn{
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
  padding:10px 12px;border-radius:12px;cursor:pointer;
  font-weight:700;color:var(--text);
}
/* Anchor buttons: remove underline + ensure consistent layout */
a.btn, a.btn:visited{ text-decoration:none; display:inline-flex; align-items:center; justify-content:center; }
a.btn:hover, a.btn:focus{ text-decoration:none; }

/* TV Dashboard button hover animation */
.btn-tv{
  position:relative;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  will-change: transform;
}
.btn-tv:hover{
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 22px rgba(232,33,39,.18), 0 0 0 1px rgba(232,33,39,.28) inset;
  filter: brightness(1.05);
}
.btn-tv:active{
  transform: translateY(-1px) scale(.99);
}

.btn:hover{box-shadow:0 10px 24px rgba(0,0,0,.20)}

.btn-primary{
  background: linear-gradient(135deg, var(--primary), rgba(0,229,255,.22));
  border-color: rgba(232,33,39,.60);
  color:white;
}
.btn-primary:hover{background: linear-gradient(135deg, var(--primary-dark), rgba(0,229,255,.22))}

.btn-danger{background:#ef4444;border-color:#ef4444;color:white}
.btn-danger:hover{background:#dc2626}

.chip{
  display:inline-flex;align-items:center;
  padding:8px 10px;border-radius:999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-weight:800;font-size:12px;
}

/* Top-right user widget (vertical avatar + name + role) */
.topuser-menu{position:relative;display:flex;align-items:center;}
.topuser{
  display:flex;align-items:center;gap:10px;
  padding:6px 10px;border-radius:14px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
}
.topuser-btn{
  appearance:none;
  -webkit-appearance:none;
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--text);
  font: inherit;
  cursor:pointer;
}
.topuser-btn:hover{filter:brightness(1.08)}
.topuser-btn:active{transform: translateY(0.5px)}
.topuser-btn:focus{outline:2px solid rgba(0,229,255,.18); outline-offset:2px}
.topuser-caret{margin-left:6px;opacity:.75;display:flex;align-items:center}

.topuser-dd{
  position:absolute;
  right:0;
  top: calc(100% + 10px);
  width: 270px;
  border-radius: 18px;
  border:1px solid var(--border);
  background: rgba(10,12,16,.96);
  box-shadow: 0 18px 42px rgba(0,0,0,.55);
  backdrop-filter: blur(12px);
  display:none;
  z-index: 2000;
  overflow:hidden;
}
.topuser-menu.open .topuser-dd{display:block}

.topuser-dd-head{
  padding:14px 14px 10px;
  display:flex;
  flex-direction:row;
  align-items:center;
  justify-content:flex-start;
  gap:12px;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.topuser-dd-avatar{
  width:72px;height:98px;border-radius:20px;
  object-fit:cover;
  border:1px solid var(--border);
  background: rgba(255,255,255,.05);
  display:block;
}

.topuser-dd-meta{display:flex;flex-direction:column;align-items:flex-start;min-width:0;line-height:1.05}
.topuser-dd-name{font-weight:1000;font-size:14px;letter-spacing:.01em;max-width:240px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:left}
.topuser-dd-role{font-size:11px;font-weight:900;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);text-align:left}

/* Dropdown meta rows (Home Shop + Username) */
.topuser-dd-sub{margin-top:8px;display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0}
.topuser-dd-k{font-size:10px;font-weight:300;letter-spacing:.14em;text-transform:uppercase;color:rgba(255,255,255,.55)}
.topuser-dd-v{font-size:15px;font-weight:950;color:rgba(255,255,255,.88);max-width:240px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.topuser-dd-username{margin-top:6px}

.topuser-dd-items{padding:10px}
.topuser-dd-item{
  display:flex;align-items:center;gap:10px;
  padding:12px 12px;
  border-radius:14px;
  text-decoration:none;
  color: var(--text);
  background: rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.06);
  font-weight:900;
  margin-bottom:8px;
}
.topuser-dd-item:last-child{margin-bottom:0}
.topuser-dd-item:hover{background: rgba(255,255,255,.06)}
.topuser-dd-ico{width:20px;display:inline-flex;align-items:center;justify-content:center}
.topuser-ic{
  width:18px;
  height:18px;
  color: rgba(255,255,255,.92);
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .98;
}

.topuser-dd-foot{padding:10px;border-top:1px solid rgba(255,255,255,.06)}
.topuser-dd-logout{
  display:block;
  text-align:center;
  padding:12px 12px;
  border-radius:14px;
  text-decoration:none;
  color: rgba(255,255,255,.97);
  background: rgba(232,33,39,.16);
  border:1px solid rgba(232,33,39,.45);
  font-weight:1000;
}
.topuser-dd-logout:hover{background: rgba(232,33,39,.24)}

@media (max-width: 520px){
  .topuser-dd{width:min(92vw, 320px)}
}
.topbar-avatar{
  width:44px;height:64px;border-radius:16px;
  object-fit:cover;border:1px solid var(--border);
  background: rgba(255,255,255,.05);
  display:block;
}
.topbar-avatar-fallback{
  display:flex;align-items:center;justify-content:center;
  font-weight:1000;font-size:13px;letter-spacing:.06em;
  color: rgba(255,255,255,.92);
}
.topuser-meta{display:flex;flex-direction:column;line-height:1.05}
.topuser-name{font-weight:1000;font-size:13px;white-space:nowrap;max-width:220px;overflow:hidden;text-overflow:ellipsis}
.topuser-role{margin-top:2px;font-size:10px;font-weight:900;letter-spacing:.10em;text-transform:uppercase;color: var(--muted);white-space:nowrap}
@media (max-width: 820px){
  .topuser-name{max-width:140px}
}

.card{
  background: rgba(13,18,27,.88);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  /* allow grid children to shrink without forcing horizontal overflow */
  min-width:0;
}

.card-header{
  padding:14px 16px;
  border-bottom:1px solid var(--border);
  display:flex;align-items:center;justify-content:space-between;gap:10px;
}

.card-body{padding:14px 16px}

.muted{color:var(--muted);font-size:13px}

.search{
  display:flex;align-items:center;gap:10px;
  background: rgba(255,255,255,.05);
  border:1px solid var(--border);
  padding:10px 12px;border-radius:12px;min-width:280px;
}
.search input{border:0;background:transparent;outline:none;width:100%;color:var(--text)}
.search input::placeholder{color:var(--muted)}

.table{width:100%;border-collapse:separate;border-spacing:0}
.table th,.table td{padding:12px 12px;border-bottom:1px solid var(--border);font-size:14px;vertical-align:middle}
.table th{color:var(--muted);font-weight:800;text-align:left;background: rgba(255,255,255,.03)}
.table tr:hover td{background: rgba(0,229,255,.05)}
.table td:last-child,.table th:last-child{text-align:right}

/* Slightly bigger avatars globally */
/* Global avatars: portrait + bigger */
.avatar{width:72px;height:96px;border-radius:22px;object-fit:cover;border:1px solid var(--border);background: rgba(255,255,255,.05)}
.name-cell{display:flex;align-items:center;gap:10px;min-width:0}
.name-cell > div{min-width:0}
.subtext{color:var(--muted);font-size:12px;margin-top:2px}

.pill{display:inline-flex;align-items:center;gap:8px;padding:6px 10px;border-radius:999px;font-weight:900;font-size:12px;border:1px solid var(--border);background: rgba(255,255,255,.04)}
.pill .dot{width:8px;height:8px;border-radius:50%}
.pill-l1{color:#c7d2fe}.pill-l1 .dot{background:#6366f1}
.pill-l2{color:#99f6e4}.pill-l2 .dot{background:#06b6d4}
.pill-l3{color:#a7f3d0}.pill-l3 .dot{background:#10b981}
.pill-l4{color:#fed7aa}.pill-l4 .dot{background:#fb923c}
.pill-l5{color:#fbcfe8}.pill-l5 .dot{background:#ec4899}

/* ===== Level meter (LV1-LV5) =====
   Matches the look of a segmented XP bar:
   - Horizontal capsule
   - Solid segments: red -> green
   - LV1 fills 2 segments ... LV5 fills 10 segments
*/
.levelmeter{display:flex;align-items:center;gap:10px}
.level-text{font-weight:1000;font-size:12px;letter-spacing:.10em;color:var(--muted);min-width:46px}

.levelcapsule{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
}
.levelsegs{display:flex;align-items:center;gap:4px}
.levelseg{
  width:12px;
  height:16px;
  border-radius:4px;
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.10);
}
.levelseg.on{border-color: rgba(255,255,255,.18)}

/* Color groups (g-1..g-5) */
.levelseg.on.g-1{background:#ef4444;} /* red */
.levelseg.on.g-2{background:#f97316;} /* orange */
.levelseg.on.g-3{background:#facc15;} /* yellow */
.levelseg.on.g-4{background:#84cc16;} /* yellow-green */
.levelseg.on.g-5{background:#22c55e;} /* green */

.xp-tag{
  margin-left:4px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background: rgba(0,0,0,.18);
  color: var(--text);
  font-weight:1000;
  font-size:11px;
  letter-spacing:.10em;
}

/* Center level bar inside podium cards */
.podium-level{display:flex;justify-content:center;margin-top:10px}
.podium-level .levelmeter{justify-content:center}


.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.field label{display:block;font-weight:900;font-size:12px;color:var(--muted);margin-bottom:6px;letter-spacing:.02em}
.field input,.field select,.field textarea{
  width:100%;padding:10px 12px;border:1px solid var(--border);
  border-radius:12px;outline:none;background: rgba(255,255,255,.04);
  color: var(--text);
}
.field textarea{min-height:120px;resize:vertical}
.field input:focus,.field select:focus,.field textarea:focus{border-color:rgba(0,229,255,.45);box-shadow:0 0 0 4px rgba(0,229,255,.12)}

/*
  IMPORTANT: use minmax(0,1fr) so long content (tables / podium) can't force the grid wider than the viewport.
  This fixes the "right side is cut off" issue without introducing horizontal scrolling.
*/
/*
  Dashboard 2-up layout (main content + side panel)
  Give the right column (Podium) a bit less width so it reads like a side widget.
*/
.grid-2{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,.65fr);gap:14px}

/* Single-column grid helper (used on pages that should span full width) */
.grid-1{display:grid;grid-template-columns:1fr;gap:14px}

.kpis{display:grid;grid-template-columns:repeat(auto-fit, minmax(150px, 1fr));gap:12px}
.kpi{border:1px solid var(--border);background: rgba(255,255,255,.03);border-radius:14px;padding:12px;min-height:92px;display:flex;flex-direction:column;gap:8px;overflow:hidden}
.kpi-accent{border-color:rgba(232,33,39,.60);box-shadow:0 0 0 4px rgba(232,33,39,.10)}
.kpi-label{color:var(--muted);font-weight:900;font-size:11px;letter-spacing:.10em}
.kpi-value{font-weight:1000;font-size:26px;line-height:1;margin-top:2px}

/* Quick Summary mini bars */
.kpi-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.kpi-sub{margin-top:-2px;color:var(--muted);font-size:11px;font-weight:800}
.kpi-foot{margin-top:auto;display:flex;align-items:center;gap:10px}
.kpi-bar{flex:1;height:8px;border-radius:999px;overflow:hidden;border:1px solid rgba(255,255,255,.12);background:rgba(0,0,0,.18)}
.kpi-bar span{display:block;height:100%;width:0%;background:linear-gradient(90deg, rgba(0,229,255,.85), rgba(255,193,7,.80), rgba(232,33,39,.78));transition:width .35s ease}
.kpi-pct{font-size:11px;color:rgba(255,255,255,.75);font-weight:900;font-variant-numeric:tabular-nums}

@media(max-width: 860px){
  .container{grid-template-columns:1fr}
  .sidebar{position:relative;height:auto}
  .search{min-width:0;width:100%}
  .form-grid{grid-template-columns:1fr}
  .grid-2{grid-template-columns:1fr}
  .kpis{grid-template-columns:repeat(2,1fr)}
}

/* Fix: native select dropdown options sometimes inherit white text on white background */
select option{color:#111827;background:#ffffff}

/* ===== Podium (Top 3) ===== */
.podium{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr);gap:10px;align-items:end}
.podium-col{display:flex;flex-direction:column;gap:10px;align-items:center}
.podium-rank{font-weight:900;letter-spacing:.08em;color:var(--muted);font-size:12px}
.podium-card{width:100%;border:1px solid var(--border);background: rgba(255,255,255,.03);border-radius:16px;padding:12px;text-align:center}

/* Video-game podium frames */
.podium-col:nth-child(2) .podium-card{
  border:2px solid transparent;
  background:
    linear-gradient(rgba(255,255,255,.03), rgba(255,255,255,.03)) padding-box,
    linear-gradient(135deg, rgba(255,215,0,.95), rgba(255,176,32,.85), rgba(255,215,0,.75)) border-box;
  box-shadow: 0 0 0 4px rgba(255,215,0,.10), 0 18px 50px rgba(0,0,0,.55);
}
.podium-col:nth-child(1) .podium-card{
  border:2px solid transparent;
  background:
    linear-gradient(rgba(255,255,255,.03), rgba(255,255,255,.03)) padding-box,
    linear-gradient(135deg, rgba(220,220,220,.95), rgba(170,180,190,.85), rgba(220,220,220,.75)) border-box;
  box-shadow: 0 0 0 4px rgba(200,210,220,.08);
}
.podium-col:nth-child(3) .podium-card{
  border:2px solid transparent;
  background:
    linear-gradient(rgba(255,255,255,.03), rgba(255,255,255,.03)) padding-box,
    linear-gradient(135deg, rgba(205,127,50,.95), rgba(244,162,97,.80), rgba(205,127,50,.75)) border-box;
  box-shadow: 0 0 0 4px rgba(205,127,50,.08);
}

.podium-col:nth-child(1) .podium-card::after,
.podium-col:nth-child(2) .podium-card::after,
.podium-col:nth-child(3) .podium-card::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:16px;
  pointer-events:none;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255,255,255,.10) 18%,
    transparent 38%,
    rgba(255,255,255,.06) 55%,
    transparent 75%
  );
  opacity:.55;
  mix-blend-mode: screen;
}

.podium-card{position:relative;}
.podium-winner{border-color: rgba(0,229,255,.35)}
/* Podium avatars: compact so the dashboard never needs horizontal scroll */
.podium-avatar{width:96px;height:126px;border-radius:24px;margin:0 auto 8px auto;border:1px solid var(--border);background: rgba(255,255,255,.04);object-fit:cover}
.podium-name{font-weight:1000;font-size:12px;margin:0}
.podium-score{margin-top:4px;font-weight:900;font-size:10px;color:var(--muted)}
.podium-base{width:100%;border-radius:16px;border:1px solid var(--border);display:flex;align-items:center;justify-content:center;font-weight:1000;font-size:22px;letter-spacing:.04em;background: linear-gradient(135deg, rgba(255,255,255,.05), rgba(0,229,255,.06))}
.podium-1{height:78px;border-color: rgba(0,229,255,.30)}
.podium-2{height:62px;border-color: rgba(232,33,39,.35)}
.podium-3{height:52px;border-color: rgba(255,176,32,.35)}

@media(max-width:980px){
  .podium{grid-template-columns:1fr;align-items:stretch}
  .podium-base,.podium-1,.podium-2,.podium-3{height:64px}
}

/* ===== Tesla-style podium winner animation ===== */
@keyframes teslaGlow{
  0%{box-shadow:0 0 0 4px rgba(0,229,255,.10),0 0 18px rgba(0,229,255,.18)}
  50%{box-shadow:0 0 0 6px rgba(0,229,255,.14),0 0 34px rgba(0,229,255,.28)}
  100%{box-shadow:0 0 0 4px rgba(0,229,255,.10),0 0 18px rgba(0,229,255,.18)}
}

@keyframes scanShimmer{
  0%{transform: translateX(-120%) skewX(-12deg);opacity:0}
  15%{opacity:.25}
  50%{opacity:.18}
  100%{transform: translateX(120%) skewX(-12deg);opacity:0}
}

@keyframes floatUp{
  0%{transform:translateY(0)}
  50%{transform:translateY(-4px)}
  100%{transform:translateY(0)}
}

.podium-winner{position:relative;overflow:hidden;animation: teslaGlow 2.4s ease-in-out infinite, floatUp 3.2s ease-in-out infinite}
.podium-winner::after{content:"";position:absolute;top:-20%;left:-60%;width:60%;height:140%;background: linear-gradient(90deg, transparent, rgba(0,229,255,.28), rgba(232,33,39,.12), transparent);filter: blur(1px);animation: scanShimmer 3.4s ease-in-out infinite;pointer-events:none}
.podium-winner::before{
  content:"👑 EMPLOYEE OF THE WEEK";
  position:absolute;
  top:8px;
  left:50%;
  transform:translateX(-50%);
  font-weight:1000;
  letter-spacing:.12em;
  font-size:10px;
  padding:6px 9px;
  border-radius:999px;
  /* Solid (non-opaque) badge requested */
  color:#fff;
  background: #E82127;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 0 0 2px rgba(232,33,39,.22), 0 0 28px rgba(232,33,39,.35);
  text-shadow: 0 2px 10px rgba(0,0,0,.45);
  pointer-events:none;
  animation:crownBounce 1.8s ease-in-out infinite;
}

.podium-1{background: linear-gradient(135deg, rgba(0,229,255,.12), rgba(232,33,39,.10), rgba(255,255,255,.04));box-shadow: 0 14px 40px rgba(0,0,0,.45)}
.podium-winner .podium-avatar{box-shadow:0 0 0 4px rgba(0,229,255,.10),0 0 24px rgba(0,229,255,.18);border-color: rgba(0,229,255,.25)}

@media (prefers-reduced-motion: reduce){
  .podium-winner{animation:none}
  .podium-winner::after{animation:none}
}

/* --- Podium background override (requested): remove card/base backgrounds for all 3 --- */
.podium-card{
  background: transparent !important;
  box-shadow: none !important;
}
.podium-col:nth-child(1) .podium-card,
.podium-col:nth-child(2) .podium-card,
.podium-col:nth-child(3) .podium-card{
  background: transparent !important;
  box-shadow: none !important;
}
.podium-col:nth-child(1) .podium-card::after,
.podium-col:nth-child(2) .podium-card::after,
.podium-col:nth-child(3) .podium-card::after{
  display:none !important;
  content:none !important;
}
.podium-base,
.podium-1,
.podium-2,
.podium-3{
  background: transparent !important;
  box-shadow: none !important;
}

/* ===== Performance score stepper (0-10) ===== */
.score-stepper{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
}

.score-main{display:flex;flex-direction:column;gap:2px}
.score-sub{font-size:12px;color:var(--muted);font-weight:700}
.score-value{font-size:22px;font-weight:1000;color:var(--text);line-height:1}

.score-actions{display:flex;gap:10px;align-items:center}
.step-btn{
  width:42px;height:42px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.10);
  color: var(--text);
  font-size:20px;
  font-weight:1000;
  cursor:pointer;
}
.step-btn:hover{background: rgba(255,255,255,.16)}

/* Disabled button state */
.btn-disabled{opacity:.55; cursor:not-allowed; filter:saturate(.6);}
.btn-disabled:hover{box-shadow:none}


/* Banner (week closed) */
.banner{
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  color: var(--text);
  font-weight:800;
  margin-bottom:12px;
}
.banner-warn{
  border-color: rgba(255,176,32,.35);
  background: linear-gradient(135deg, rgba(255,176,32,.14), rgba(232,33,39,.10));
  box-shadow: 0 0 0 4px rgba(255,176,32,.10);
}

@keyframes crownBounce{
  0%{transform:translateX(-50%) translateY(0) scale(1); filter: drop-shadow(0 0 0 rgba(0,229,255,0));}
  50%{transform:translateX(-50%) translateY(-3px) scale(1.03); filter: drop-shadow(0 0 10px rgba(0,229,255,.35));}
  100%{transform:translateX(-50%) translateY(0) scale(1); filter: drop-shadow(0 0 0 rgba(0,229,255,0));}
}

/* Metallic shine for silver/bronze frames (winner already has shimmer) */
.podium-col:nth-child(1) .podium-card,
.podium-col:nth-child(3) .podium-card{position:relative;overflow:hidden}
.podium-col:nth-child(1) .podium-card::after,
.podium-col:nth-child(3) .podium-card::after{
  content:"";
  position:absolute;
  top:-25%;
  left:-70%;
  width:55%;
  height:160%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.20), transparent);
  transform: skewX(-12deg);
  animation: scanShimmer 4.2s ease-in-out infinite;
  pointer-events:none;
  opacity:.35;
}

/* ===== Skill Matrix (grid) ===== */
.matrix-legend{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin-left:auto}
.legend-item{display:flex;gap:8px;align-items:center;font-weight:800;color:var(--muted);font-size:12px}
.sm-dot{
  background:#1a1f28;width:14px;height:14px;border-radius:999px;border:2px solid #4a5160;display:inline-block}
.sm-dot.sm-certified{background:rgba(0,255,140,.85);border-color:rgba(0,255,140,.45)}
.sm-dot.sm-training{background:rgba(255,210,80,.85);border-color:rgba(255,210,80,.55)}
.sm-dot.sm-not{background:transparent;border-color:rgba(255,255,255,.18)}
.sm-dot.sm-restricted{background:rgba(232,33,39,.85);border-color:rgba(232,33,39,.45)}

/* Tesla-style Skill Matrix legend (journey / stepper) */
.matrix-legend.sm-legend-journey{
  gap:18px;
  flex-wrap:nowrap;
  padding:10px 12px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
  background: linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  position:relative;
  overflow:hidden;
  backdrop-filter: blur(10px);
  box-shadow:0 10px 24px rgba(0,0,0,.25);
}
.matrix-legend.sm-legend-journey::after{
  content:"";
  position:absolute;
  top:-35%;
  left:-55%;
  width:45%;
  height:190%;
  background:linear-gradient(90deg, transparent, rgba(255,255,255,.14), transparent);
  transform:skewX(-14deg);
  animation: scanShimmer 5.4s ease-in-out infinite;
  opacity:.22;
  pointer-events:none;
}
.matrix-legend.sm-legend-journey .smj-track{
  position:absolute;
  left:18px;
  right:18px;
  top:27px;
  height:2px;
  border-radius:999px;
  background: linear-gradient(90deg, rgba(232,33,39,.35), rgba(255,255,255,.12) 40%, rgba(0,255,140,.30));
  opacity:.9;
  pointer-events:none;
}
.matrix-legend.sm-legend-journey .smj-step{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  min-width:92px;
  position:relative;
  z-index:1;
}
.matrix-legend.sm-legend-journey .smj-dot{
  width:34px;
  height:34px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:1000;
  font-size:11px;
  letter-spacing:.08em;
  border:2px solid #4a5160;
  background:#1a1f28;
  color:rgba(255,255,255,.92);
  box-shadow: 0 10px 20px rgba(0,0,0,.35), 0 0 0 6px rgba(0,0,0,.12);
}
.matrix-legend.sm-legend-journey .smj-name{
  font-size:11px;
  font-weight:900;
  letter-spacing:.02em;
  color: rgba(255,255,255,.82);
  white-space:nowrap;
}

.matrix-legend.sm-legend-journey .smj-restricted .smj-dot{
  background:#e82127;
  border-color:#e82127;
  box-shadow:0 10px 20px rgba(0,0,0,.35), 0 0 18px rgba(232,33,39,.22), 0 0 0 6px rgba(232,33,39,.10);
}
.matrix-legend.sm-legend-journey .smj-restricted .smj-name{color:rgba(232,33,39,.90);}

.matrix-legend.sm-legend-journey .smj-not .smj-dot{
  background:#1a1f28;
  border-color:#4a5160;
  color:rgba(255,255,255,.88);
}
.matrix-legend.sm-legend-journey .smj-not .smj-name{color:rgba(255,255,255,.72);}

.matrix-legend.sm-legend-journey .smj-training .smj-dot{
  background:#ffd250;
  border-color:#ffd250;
  box-shadow:0 10px 20px rgba(0,0,0,.35), 0 0 18px rgba(255,210,80,.20), 0 0 0 6px rgba(255,210,80,.10);
}
.matrix-legend.sm-legend-journey .smj-training .smj-name{color:rgba(255,210,80,.92);}

.matrix-legend.sm-legend-journey .smj-certified .smj-dot{
  background:#00ff8c;
  border-color:#00ff8c;
  box-shadow:0 10px 20px rgba(0,0,0,.35), 0 0 18px rgba(0,255,140,.20), 0 0 0 6px rgba(0,255,140,.10);
}
.matrix-legend.sm-legend-journey .smj-certified .smj-name{color:rgba(0,255,140,.92);}


/* Solid-fill legend dot contrast */
.matrix-legend.sm-legend-journey .smj-training .smj-dot{color:rgba(10,14,20,.95);}
.matrix-legend.sm-legend-journey .smj-certified .smj-dot{color:rgba(10,14,20,.95);}
.matrix-legend.sm-legend-journey .smj-not .smj-dot{color:rgba(255,255,255,.88);}
.matrix-legend.sm-legend-journey .smj-restricted .smj-dot{color:rgba(255,255,255,.92);}

@media (max-width: 1020px){
  .matrix-legend.sm-legend-journey{flex-wrap:wrap; justify-content:flex-end;}
  .matrix-legend.sm-legend-journey .smj-track{display:none;}
}

.matrix-wrap{overflow-x:auto;overflow-y:visible;max-height:none;-webkit-overflow-scrolling:touch;padding-bottom:8px}

/* Floating save button (Skill Matrix) */
.skill-matrix-page .main{padding-bottom:110px}
.floating-save-btn{
  /* Force true floating behavior even if other layout rules try to override */
  position:fixed !important;
  right:22px !important;
  bottom:calc(22px + env(safe-area-inset-bottom)) !important;
  z-index:99999 !important;
  border-radius:14px;
  padding:12px 18px;
  box-shadow:0 12px 28px rgba(0,0,0,.45);
}
.floating-save-btn:active{transform:translateY(1px)}

.matrix-table{min-width:980px}
.matrix-table th.station-col,.matrix-table td.station-col{text-align:center;width:86px}
.matrix-table .sticky-col{position:sticky;left:0;z-index:3;background:rgba(10,14,20,.92)}
/* Lock the first row (station headers) while scrolling */
.matrix-table thead th{position:sticky;top:0;z-index:2;background:rgba(10,14,20,.94);backdrop-filter:blur(10px)}
/* Top-left corner cell needs to sit above everything */
.matrix-table thead .sticky-col{top:0;z-index:5}
/* Subtle separation when header is stuck */
.matrix-table thead th{box-shadow:0 8px 18px rgba(0,0,0,.18)}
.station-head{display:flex;flex-direction:column;align-items:center;gap:4px}

/* Skill Matrix: employee selection checkbox */
.employee-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.cb{display:inline-flex;align-items:center;justify-content:center;cursor:pointer;user-select:none}
.cb input{position:absolute;opacity:0;pointer-events:none}
.cb .cb-box{
  width:18px;height:18px;border-radius:6px;
  border:2px solid rgba(255,255,255,.22);
  background:rgba(255,255,255,.04);
  display:inline-block;
  position:relative;
  transition: background .12s ease, border-color .12s ease, transform .12s ease;
}
.cb.cb-sm .cb-box{width:16px;height:16px;border-radius:5px}
.cb input:checked + .cb-box{
  background:rgba(232,33,39,.25);
  border-color:rgba(232,33,39,.55);
}
.cb input:checked + .cb-box::after{
  content:'';
  position:absolute;
  left:4px;top:1px;
  width:6px;height:10px;
  border-right:2px solid rgba(255,255,255,.92);
  border-bottom:2px solid rgba(255,255,255,.92);
  transform:rotate(45deg);
}
.cb .cb-box:hover{transform:scale(1.03)}
.emp-cb{margin-right:8px}

/* Highlight selected rows subtly */
.matrix-table tr.row-selected .sticky-col{
  background:rgba(232,33,39,.08);
}

/* Skill Matrix: bulk station header buttons */
.station-actions{display:flex;align-items:center;justify-content:center;gap:6px;margin-top:6px}
.station-bulk-btn{
  width:22px;height:22px;border-radius:8px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.04);
  color:rgba(255,255,255,.90);
  font-weight:1000;
  line-height:1;
  display:inline-flex;align-items:center;justify-content:center;
  padding:0;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.station-bulk-btn:hover{background:rgba(255,255,255,.08);transform:translateY(-1px)}
.station-bulk-btn:active{transform:translateY(0)}
.station-bulk-btn.needs-select{border-color:rgba(232,33,39,.65);background:rgba(232,33,39,.14)}
.station-num{font-weight:1000;font-size:16px;letter-spacing:.02em}
.station-num.qc{color:rgba(255,210,80,.95)}
.station-req{margin-top:2px}
.lvl-badge{display:inline-flex;align-items:center;justify-content:center;padding:4px 8px;border-radius:999px;
  font-size:11px;font-weight:1000;letter-spacing:.14em;
  border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.06);color:rgba(255,255,255,.85);
}

/* RH/LH visual tag in station headers */
.side-pill{display:inline-flex;align-items:center;justify-content:center;margin-left:0;padding:5px 10px;border-radius:999px;
  font-size:13px;font-weight:1000;letter-spacing:.08em;border:1px solid rgba(255,255,255,.14);color:rgba(255,255,255,.92);
  background:rgba(255,255,255,.06);
}
.side-pill.side-lh{border-color:rgba(0,229,255,.35);background:rgba(0,229,255,.10)}
.side-pill.side-rh{border-color:rgba(232,33,39,.35);background:rgba(232,33,39,.10)}

.sm-cell{
  width:25px;height:25px;border-radius:999px;
  border:2px solid #4a5160;
  background:transparent;
  cursor:pointer;
  padding:0;
  position:relative;
  outline:none;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
}
.sm-cell::after{content:'';display:none;}
.sm-cell:hover{transform:scale(1.07)}
.sm-cell:focus-visible{box-shadow:0 0 0 3px rgba(255,255,255,.18);}

/* Level colors */
.sm-cell.sm-certified{
  background:#00ff8c;
  border-color:#00ff8c;
}
.sm-cell.sm-training{
  background:#ffd250;
  border-color:#ffd250;
}
.sm-cell.sm-not-qualified{
  background:#1a1f28;
  border-color:#4a5160;
}
.sm-cell.sm-restricted{
  background:#e82127;
  border-color:#e82127;
}

/* Schedule table: LH / RH badge with wider marker (inside the badge) */
.station-badge{
  display:inline-flex;
  align-items:center;
  gap:12px;
  padding:8px 14px 8px 12px;
  border-radius:14px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 8px 18px rgba(0,0,0,.25);
}

.station-badge .badge-bar{
  width:12px; /* wider marker */
  height:22px;
  border-radius:10px;
  box-shadow:0 0 0 1px rgba(255,255,255,.12);
}

.station-badge.side-lh{border-color:rgba(0,229,255,.24);}
.station-badge.side-lh .badge-bar{background:rgba(0,229,255,.95); box-shadow:0 0 0 1px rgba(0,229,255,.22);}

.station-badge.side-rh{border-color:rgba(232,33,39,.24);}
.station-badge.side-rh .badge-bar{background:rgba(232,33,39,.95); box-shadow:0 0 0 1px rgba(232,33,39,.22);}

.station-badge .station-text{font-weight:900;}

/* Keep row classes for hooks, but no longer use pseudo marker */
.table tr.station-lh td.station-cell,
.table tr.station-rh td.station-cell{position:relative;}


/* === Tesla Select Styling (Schedule Assignment) === */
.rotation-select{
  width: 100%;
  min-width: 220px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%2716%27%20height%3D%2716%27%20viewBox%3D%270%200%2024%2024%27%3E%3Crect%20x%3D%273%27%20y%3D%273%27%20width%3D%2718%27%20height%3D%2718%27%20rx%3D%274%27%20fill%3D%27rgba%280%2C0%2C0%2C0.0%29%27%20stroke%3D%27rgba%2860%2C255%2C180%2C0.8%29%27%20stroke-width%3D%272%27/%3E%3Cpath%20d%3D%27M7%2012.5l3%203%207-7%27%20fill%3D%27none%27%20stroke%3D%27rgba%2860%2C255%2C180%2C0.9%29%27%20stroke-width%3D%272.5%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%2714%27%20height%3D%2714%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20d%3D%27M6%209l6%206%206-6%27%20fill%3D%27none%27%20stroke%3D%27rgba%28255%2C255%2C255%2C0.75%29%27%20stroke-width%3D%272.5%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-position: 12px 50%, calc(100% - 14px) 50%;
  background-size: 16px 16px, 14px 14px;
  background-color: rgba(10, 16, 24, 0.55);
  background-blend-mode: normal;
  border: 1px solid rgba(0, 210, 255, 0.22);
  border-radius: 14px;
  color: rgba(255,255,255,0.95);
  padding: 10px 44px 10px 40px;
  font-weight: 800;
  letter-spacing: 0.2px;
  box-shadow: 0 10px 22px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
}

.rotation-select:hover{
  border-color: rgba(0, 210, 255, 0.38);
  box-shadow: 0 12px 26px rgba(0,0,0,0.40), 0 0 0 2px rgba(0, 210, 255, 0.06), inset 0 1px 0 rgba(255,255,255,0.08);
}

.rotation-select:focus{
  outline: none;
  border-color: rgba(0, 255, 255, 0.70);
  box-shadow: 0 14px 30px rgba(0,0,0,0.45), 0 0 0 3px rgba(0, 255, 255, 0.12), 0 0 18px rgba(0, 255, 255, 0.20), inset 0 1px 0 rgba(255,255,255,0.10);
}

.rotation-select:disabled{
  opacity: 0.55;
  cursor: not-allowed;
}

.rotation-select option{
  background: #0b1118;
  color: rgba(255,255,255,0.95);
}


/* User management layout fixes */
.users-grid{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);}
.table-scroll{overflow-x:auto; -webkit-overflow-scrolling:touch;}
.users-table th, .users-table td{vertical-align:middle;}
.users-table th:last-child, .users-table td:last-child{white-space:nowrap;}




@keyframes bellShake{
  0%,100%{transform:rotate(0deg) translateY(0);}
  10%{transform:rotate(-10deg) translateY(-1px);}
  20%{transform:rotate(8deg) translateY(0);}
  30%{transform:rotate(-8deg) translateY(-1px);}
  40%{transform:rotate(6deg) translateY(0);}
  50%{transform:rotate(-4deg) translateY(-1px);}
  60%{transform:rotate(3deg) translateY(0);}
  70%{transform:rotate(-2deg) translateY(-1px);}
  80%{transform:rotate(1deg) translateY(0);}
  90%{transform:rotate(0deg) translateY(0);}
}
@keyframes bellPulse{
  0%,100%{filter:drop-shadow(0 0 6px rgba(59,130,246,0.25));}
  50%{filter:drop-shadow(0 0 14px rgba(59,130,246,0.55));}
}

/* Notification Center (Dashboard) */
.notif-wrap{position:relative; display:inline-flex; align-items:center;}
.notif-btn{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:40px;height:36px;
  border:1px solid var(--border);
  border-radius:12px;
  background:rgba(255,255,255,0.04);
  text-decoration:none;
  box-shadow:0 10px 30px rgba(0,0,0,0.35);
  transition:transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.notif-btn:hover{transform:translateY(-1px); border-color:rgba(59,130,246,0.65); box-shadow:0 10px 35px rgba(0,0,0,0.45);}
.notif-btn.active{border-color:rgba(59,130,246,0.8); box-shadow:0 0 0 2px rgba(59,130,246,0.15), 0 10px 40px rgba(0,0,0,0.55);}

.notif-btn.has-unread:not(.active){
  border-color:rgba(59,130,246,0.85);
  box-shadow:0 0 0 2px rgba(59,130,246,0.18), 0 10px 40px rgba(0,0,0,0.55);
}
.notif-btn.has-unread:not(.active) .notif-ico{
  animation:bellShake 1.35s ease-in-out infinite, bellPulse 1.8s ease-in-out infinite;
}

.notif-ico{
  width:18px;
  height:18px;
  display:inline-block;
  color: rgba(255,255,255,.92);
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter:drop-shadow(0 0 6px rgba(59,130,246,0.25));
  transform-origin: 50% 40%;
}
.notif-badge{
  position:absolute;
  top:-6px; right:-6px;
  min-width:20px; height:20px;
  padding:0 6px;
  border-radius:999px;
  display:inline-flex;
  align-items:center; justify-content:center;
  font-size:12px; font-weight:800;
  color:#fff;
  background:rgba(232,33,39,0.95);
  border:1px solid rgba(232,33,39,0.75);
  box-shadow:0 0 12px rgba(232,33,39,0.35);
}

.notif-panel{
  position:absolute;
  right:0;
  top:44px;
  width:360px;
  max-width:calc(100vw - 60px);
  border-radius:16px;
  border:1px solid rgba(255,255,255,0.08);
  background:rgba(10,12,16,0.92);
  backdrop-filter: blur(14px);
  box-shadow:0 20px 60px rgba(0,0,0,0.6);
  overflow:hidden;
  display:none;
  z-index:50;
}
.notif-panel.show{display:block;}
.notif-panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 12px;
  border-bottom:1px solid rgba(255,255,255,0.08);
}
.notif-panel-title{font-weight:900; letter-spacing:.3px;}
.notif-markread{
  border:1px solid rgba(59,130,246,0.35);
  background:rgba(59,130,246,0.10);
  color:var(--text);
  border-radius:10px;
  padding:6px 10px;
  font-weight:800;
  cursor:pointer;
}
.notif-markread:hover{border-color:rgba(59,130,246,0.6); background:rgba(59,130,246,0.14);}

.notif-empty{
  padding:14px 12px;
  color:var(--muted);
  border-bottom:1px solid rgba(255,255,255,0.08);
}
.notif-list{max-height:360px; overflow:auto;}
.notif-item{
  display:block;
  padding:12px 12px;
  text-decoration:none;
  border-bottom:1px solid rgba(255,255,255,0.06);
  background:transparent;
}
.notif-item:hover{background:rgba(255,255,255,0.04);}
.notif-item.unread{background:linear-gradient(90deg, rgba(59,130,246,0.10), rgba(232,33,39,0.06));}
.notif-item-top{display:flex; justify-content:space-between; gap:12px; align-items:flex-start;}
.notif-title{font-weight:900; color:var(--text); font-size:14px;}
.notif-time{font-size:12px; color:var(--muted); white-space:nowrap;}
.notif-body{margin-top:6px; font-size:13px; color:rgba(255,255,255,0.78); line-height:1.25;}

/* Notification type icons */
.notif-item-row{display:flex; gap:10px; align-items:flex-start;}
.notif-item-main{flex:1; min-width:0;}
.notif-type-ico{
  width:28px; height:28px;
  border-radius:10px;
  display:flex; align-items:center; justify-content:center;
  flex:0 0 auto;
  margin-top:2px;
  border:1px solid rgba(255,255,255,0.14);
  background:rgba(255,255,255,0.06);
  color:rgba(255,255,255,0.92);
  box-shadow:0 10px 25px rgba(0,0,0,0.28);
}
.notif-type-ico svg{width:16px; height:16px; display:block;}
.notif-type-ico.type-info{border-color:rgba(59,130,246,0.55); background:rgba(59,130,246,0.14); color:rgba(147,197,253,0.95);}
.notif-type-ico.type-success{border-color:rgba(34,197,94,0.55); background:rgba(34,197,94,0.14); color:rgba(134,239,172,0.95);}
.notif-type-ico.type-warning{border-color:rgba(245,158,11,0.60); background:rgba(245,158,11,0.14); color:rgba(253,230,138,0.98);}
.notif-type-ico.type-danger{border-color:rgba(232,33,39,0.55); background:rgba(232,33,39,0.14); color:rgba(255,180,180,0.95);}

/* Notifications page list */
.notif-row-left{display:flex; gap:10px; align-items:flex-start; min-width:0;}
.notif-row-left .notif-row-title{min-width:0;}

.notif-panel-foot{
  padding:10px 12px;
  display:flex;
  justify-content:flex-end;
  background:rgba(255,255,255,0.02);
}
.notif-viewall{color:rgba(59,130,246,0.95); text-decoration:none; font-weight:900;}
.notif-viewall:hover{text-decoration:underline;}

/* Notifications page list */
.notif-center{display:flex; flex-direction:column; gap:10px;}
.notif-row{
  border:1px solid rgba(255,255,255,0.08);
  border-radius:14px;
  background:rgba(255,255,255,0.03);
  padding:12px 12px;
}
.notif-row.unread{
  border-color:rgba(59,130,246,0.45);
  box-shadow:0 0 0 2px rgba(59,130,246,0.12);
  background:linear-gradient(90deg, rgba(59,130,246,0.08), rgba(232,33,39,0.05));
}
.notif-row-top{display:flex; justify-content:space-between; gap:12px; align-items:flex-start;}
.notif-row-title{font-weight:900;}
.notif-row-time{color:var(--muted); font-size:12px; white-space:nowrap;}
.notif-row-body{margin-top:8px; color:rgba(255,255,255,0.82); line-height:1.35;}


.notif-row-actions{display:flex; gap:8px; align-items:center;}
.btn.notif-delete{
  padding:6px 8px;
  border-radius:10px;
  border:1px solid rgba(232,33,39,0.45);
  background:rgba(232,33,39,0.12);
  color:#fff;
  line-height:1;
  cursor:pointer;
  box-shadow:0 0 0 2px rgba(232,33,39,0.10);
}
.btn.notif-delete:hover{
  background:rgba(232,33,39,0.18);
  box-shadow:0 0 18px rgba(232,33,39,0.18), 0 0 0 2px rgba(232,33,39,0.15);
}


/* DM badge in sidebar */
.nav-badge{
  margin-left:auto;
  min-width:18px;
  height:18px;
  padding:0 6px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:11px;
  font-weight:900;
  color:#fff;
  background:rgba(232,33,39,0.95);
  border:1px solid rgba(232,33,39,0.75);
  box-shadow:0 0 10px rgba(232,33,39,0.30);
}



/* --- UI polish: remove underline on hover for top-right dropdown + notification bell --- */
.topuser-dd-item:hover,
.topuser-dd-item:focus,
.topuser-dd-item:active{
  text-decoration:none !important;
}

.topuser-dd-logout:hover,
.topuser-dd-logout:focus,
.topuser-dd-logout:active{
  text-decoration:none !important;
}

.notif-btn:hover,
.notif-btn:focus,
.notif-btn:active{
  text-decoration:none !important;
}


/* ===============================
   SPARC KPI page
   =============================== */
.sparc-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

.sparc-head-right{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:14px;
  flex-wrap:wrap;
}

.sparc-safety-widget{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  padding:8px 12px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,0.08);
  background:rgba(255,255,255,0.03);
}

.sparc-gauge{
  /* CSS variables controlled by JS:
     --deg: 0deg..180deg (fill length)
     --gauge-color: green->red */
  width:160px;
  height:92px;
  position:relative;
  border-radius:160px 160px 0 0;
  overflow:hidden;
  background:
    conic-gradient(from 180deg at 50% 100%,
      var(--gauge-color) 0deg,
      var(--gauge-color) var(--deg),
      rgba(255,255,255,0.14) var(--deg) 180deg,
      transparent 180deg
    );
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.35));
}

.sparc-gauge::after{
  content:"";
  position:absolute;
  left:14px;
  right:14px;
  bottom:14px;
  height:calc(100% - 14px);
  background:rgba(15,16,20,0.96);
  border-radius:140px 140px 0 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}

.sparc-gauge-inner{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:74px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-end;
  padding-bottom:6px;
  z-index:1;
  pointer-events:none;
}

.sparc-gauge-value{
  font-weight:1000;
  font-size:30px;
  line-height:1;
  color: var(--gauge-color);
  text-shadow: 0 8px 24px rgba(0,0,0,0.45);
}

.sparc-gauge-label{
  font-size:11px;
  letter-spacing:.12em;
  opacity:.85;
  margin-top:6px;
}

.sparc-gauge-foot{
  font-size:11px;
  opacity:.80;
  text-align:center;
  max-width:190px;
}

/* Mini gauge inside Safety table header (keeps table width unchanged) */
.sparc-safety-mini{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  margin-top:6px;
}

.sparc-gauge.sparc-gauge-mini{
  width:140px;
  height:80px;
  max-width:100%;
}

.sparc-gauge.sparc-gauge-mini::after{
  left:12px;
  right:12px;
  bottom:12px;
  height:calc(100% - 12px);
  border-radius:120px 120px 0 0;
}

.sparc-gauge.sparc-gauge-mini .sparc-gauge-inner{
  height:64px;
  padding-bottom:5px;
  left:12px;
  right:12px;
}


.sparc-gauge.sparc-gauge-mini .sparc-gauge-value{
  font-size:26px;
}

.sparc-gauge.sparc-gauge-mini .sparc-gauge-label{
  font-size:10px;
  margin-top:6px;
  line-height:1.15;
  display:inline-block;
  padding:2px 8px;
  border-radius:999px;
  /* Solid black pill (no opacity) */
  opacity: 1;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}


.sparc-safety-mini .sparc-gauge-foot{ max-width:220px; }

/* We render Safety details under the gauge; hide the generic subline for Safety to avoid duplicates */
.sparc-kpi-sub[data-kpi-sub="safety"]{ display:none; }

.sparc-month{
  display:flex;
  align-items:center;
  gap:10px;
}

.sparc-month-label{
  font-size:16px;
  letter-spacing:.02em;
}

.sparc-wrap{
  overflow:auto;
  max-height:72vh;
}

.sparc-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
}

.sparc-table th,
.sparc-table td{
  padding:10px;
  border-bottom:1px solid rgba(255,255,255,0.06);
  border-right:1px solid rgba(255,255,255,0.06);
}

.sparc-table thead th{
  background:rgba(15,16,20,0.96);
  backdrop-filter: blur(8px);
}

.sparc-table thead tr:first-child th{
  position:sticky;
  top:0;
  z-index:6;
}

.sparc-table thead tr.sparc-goals-row th{
  position:sticky;
  top:56px;
  z-index:5;
}

.sparc-sticky-left{
  position:sticky;
  left:0;
  z-index:7;
  background:rgba(15,16,20,0.96);
}

.sparc-table tbody .sparc-sticky-left{
  z-index:4;
}

.sparc-kpi-name{
  font-weight:1000;
  letter-spacing:.06em;
}

.sparc-kpi-sub{
  margin-top:4px;
  font-size:11px;
  opacity:.75;
}

.sparc-kpi-sub.ok{ color: rgba(50, 255, 140, 0.95); opacity:1; }
.sparc-kpi-sub.bad{ color: rgba(255, 90, 90, 0.95); opacity:1; }

.sparc-day{
  display:flex;
  align-items:baseline;
  gap:8px;
}

.sparc-day-num{ font-weight:1000; font-size:16px; }
.sparc-day-dow{ font-size:11px; letter-spacing:.18em; opacity:.75; }
.sparc-date{ margin-top:2px; font-size:11px; }

/* Tesla-style day tile (visual-only; does not affect table sizing) */
.sparc-table tbody td.sparc-sticky-left{
  background:rgba(10,11,14,0.96);
}

.sparc-table tbody td.sparc-sticky-left .sparc-day{
  align-items:center;
  justify-content:space-between;
  padding:8px 10px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.08);
  background:
    radial-gradient(80% 140% at 10% 0%, rgba(232,33,39,0.16), rgba(0,0,0,0) 55%),
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.04),
    0 10px 26px rgba(0,0,0,0.35);
  position:relative;
}

.sparc-table tbody td.sparc-sticky-left .sparc-day::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:3px;
  border-radius:14px 0 0 14px;
  background: linear-gradient(180deg, rgba(232,33,39,0.95), rgba(232,33,39,0.20));
  box-shadow: 0 0 14px rgba(232,33,39,0.32);
}

.sparc-table tbody td.sparc-sticky-left .sparc-day-num{
  font-size:22px;
  letter-spacing:0.02em;
  line-height:1;
}

.sparc-table tbody td.sparc-sticky-left .sparc-day-dow{
  opacity:1;
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.22em;
  padding:3px 8px;
  border-radius:999px;
  background: rgba(0,0,0,0.55);
  border:1px solid rgba(255,255,255,0.10);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}

.sparc-table tbody td.sparc-sticky-left .sparc-date{
  margin-top:6px;
  display:inline-flex;
  align-items:center;
  padding:3px 8px;
  border-radius:999px;
  background: rgba(0,0,0,0.65);
  border:1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
  font-size:10px;
  letter-spacing:.14em;
}

.sparc-table tbody tr:hover td.sparc-sticky-left .sparc-day{
  border-color: rgba(232,33,39,0.25);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.05),
    0 14px 32px rgba(0,0,0,0.42);
}

.sparc-goal,
.sparc-cell{
  width:100%;
  padding:10px 10px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.10);
  background:rgba(255,255,255,0.04);
  color:#fff;
  outline:none;
}

.sparc-goal:focus,
.sparc-cell:focus{
  border-color: rgba(232,33,39,0.60);
  box-shadow: 0 0 0 3px rgba(232,33,39,0.18);
}

.sparc-goal.is-saving,
.sparc-cell.is-saving{
  border-color: rgba(50, 255, 140, 0.55);
  box-shadow: 0 0 0 3px rgba(50,255,140,0.16);
}

.sparc-table tbody tr:hover td{
  background:rgba(255,255,255,0.02);
}

@media (max-width: 820px){
  .sparc-wrap{ max-height: none; }
  .sparc-table th, .sparc-table td{ padding:8px; }
  .sparc-table thead tr.sparc-goals-row th{ top:64px; }
}


/* ===============================
   SPARC Dashboard
   =============================== */
.sparc-dash-grid{
  display:grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap:12px;
}

@media (max-width: 1280px){
  .sparc-dash-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px){
  .sparc-dash-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px){
  .sparc-dash-grid{ grid-template-columns: 1fr; }
}

.sparc-tile{
  border-radius:18px;
  border:1px solid rgba(255,255,255,0.08);
  background:
    radial-gradient(90% 140% at 0% 0%, rgba(232,33,39,0.15), rgba(0,0,0,0) 55%),
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.04),
    0 16px 34px rgba(0,0,0,0.42);
  padding:14px;
  overflow:hidden;
}

.sparc-tile-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}

.sparc-kpi-title{
  display:flex;
  gap:10px;
  align-items:center;
}

.sparc-kpi-icon{
  width:36px;
  height:36px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:14px;
  background: rgba(0,0,0,0.55);
  border:1px solid rgba(255,255,255,0.10);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
  font-size:18px;
}

.sparc-kpi-name{
  font-weight:1000;
  letter-spacing:.06em;
}

.sparc-kpi-state{
  margin-top:4px;
  display:inline-flex;
  align-items:center;
  padding:3px 10px;
  border-radius:999px;
  font-size:10px;
  letter-spacing:.18em;
  font-weight:1000;
  border:1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.55);
}

.sparc-kpi-state.state-ok{ color: rgba(50,255,140,0.95); box-shadow: 0 0 16px rgba(50,255,140,0.08); }
.sparc-kpi-state.state-warn{ color: rgba(255,200,70,0.95); box-shadow: 0 0 16px rgba(255,200,70,0.08); }
.sparc-kpi-state.state-crit{ color: rgba(255,90,90,0.95); box-shadow: 0 0 16px rgba(255,90,90,0.10); }
.sparc-kpi-state.state-na{ color: rgba(255,255,255,0.70); }

.sparc-kpi-main{
  font-size:26px;
  font-weight:1000;
  line-height:1;
  letter-spacing:.02em;
  text-shadow: 0 10px 30px rgba(0,0,0,0.55);
}

.sparc-kpi-sub{
  margin-top:8px;
  font-size:12px;
  opacity:.82;
}

.sparc-progress{
  margin-top:10px;
  height:10px;
  border-radius:999px;
  background: rgba(0,0,0,0.55);
  border:1px solid rgba(255,255,255,0.10);
  overflow:hidden;
}

.sparc-progress-fill{
  height:100%;
  border-radius:999px;
  background: linear-gradient(90deg, rgba(50,255,140,0.85), rgba(255,200,70,0.85), rgba(255,90,90,0.85));
  box-shadow: 0 0 18px rgba(232,33,39,0.10);
}

.sparc-spark-wrap{ margin-top:10px; }

.sparc-spark{ width:100%; height:46px; }
.spark-axis{ stroke: rgba(255,255,255,0.10); stroke-width:1; }
.spark-line{ fill:none; stroke: rgba(255,255,255,0.88); stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round; filter: drop-shadow(0 10px 18px rgba(0,0,0,0.35)); }
.spark-dot{ fill: rgba(232,33,39,0.95); filter: drop-shadow(0 6px 12px rgba(232,33,39,0.25)); }

.sparc-goal-edit{
  margin-top:12px;
  padding-top:10px;
  border-top:1px solid rgba(255,255,255,0.06);
}

.sparc-goal-row{
  display:flex;
  gap:10px;
  align-items:center;
  margin-top:6px;
}

.sparc-goal-input{
  height:40px;
  border-radius:14px;
}

.sparc-dash-bottom{
  margin-top:12px;
  display:grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
  gap:12px;
}

@media (max-width: 980px){
  .sparc-dash-bottom{ grid-template-columns: 1fr; }
}

.sparc-summary-card textarea.input{
  background: rgba(0,0,0,0.55);
  border-color: rgba(255,255,255,0.10);
  color: #ffffff;
  caret-color: #ffffff;
  padding: 14px 14px;
  line-height: 1.35;
}

.sparc-rule-list{
  margin:0;
  padding-left:18px;
}

.sparc-rule-list li{ margin:8px 0; }


/* ============================
   Skill Coverage Heat (new page)
   ============================ */
body.skill-coverage-heat-page .heat-filters{
  display:flex;
  gap:12px;
  align-items:flex-end;
  flex-wrap:wrap;
}

.heat-mini{
  height:42px;
  padding:8px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-width: 170px;
}
.heat-mini-title{ font-size:11px; color:var(--muted); font-weight:800; letter-spacing:.06em; text-transform:uppercase; }
.heat-mini-value{ font-size:18px; font-weight:1000; line-height:1.05; }

.heat-layout{
  display:grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap:12px;
  align-items:start;
}

@media (max-width: 980px){
  .heat-layout{ grid-template-columns: 1fr; }
  .heat-left .card-body.heat-stations{ max-height: none; }
}


.heat-left .card-body.heat-stations{
  padding:12px;
  display:flex;
  flex-direction:column;
  gap:10px;
  max-height: calc(100vh - 280px);
  overflow:auto;
}

.heat-station-item{
  position:relative;
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
  padding:12px 12px 12px 14px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  text-decoration:none;
  color: var(--text);
  overflow: visible;
}
.heat-station-item::before{
  content:"";
  position:absolute;
  left:10px;
  top:12px;
  bottom:12px;
  width:4px;
  border-radius:999px;
  background: rgba(255,255,255,.14);
}
.heat-station-item:hover{
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.14);
}
.heat-station-item.is-active{
  background: rgba(255,255,255,.05);
  box-shadow: 0 0 0 2px rgba(0,229,255,.12);
}

.heat-station-item.heat-green::before{ background: rgba(124,255,107,.95); box-shadow: 0 0 18px rgba(124,255,107,.25); }
.heat-station-item.heat-yellow::before{ background: rgba(255,176,32,.95); box-shadow: 0 0 18px rgba(255,176,32,.22); }
.heat-station-item.heat-red::before{ background: rgba(232,33,39,.95); box-shadow: 0 0 18px rgba(232,33,39,.22); }

.heat-station-left{ display:flex; flex-direction:column; gap:6px; min-width:0; }
.heat-station-title{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.heat-station-sub{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.heat-station-right{ display:flex; align-items:center; gap:10px; }
.heat-station-score{ font-weight:1000; letter-spacing:.02em; color: rgba(0,229,255,.92); }

.qc-tag{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:22px;
  padding:0 10px;
  border-radius:999px;
  font-weight:1000;
  font-size:11px;
  letter-spacing:.06em;
  text-transform:uppercase;
  background: rgba(0,229,255,.08);
  border:1px solid rgba(0,229,255,.20);
  color: rgba(0,229,255,.95);
}

.heat-header-grid{
  display:grid;
  grid-template-columns: 340px 1fr;
  gap:14px;
  align-items:start;
}

.heat-meta{ display:flex; flex-direction:column; gap:10px; }
.heat-meta-row{ display:flex; align-items:center; gap:10px; }
.heat-meta-row b{ font-size:18px; }

.heat-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  font-weight:1000;
  font-size:12px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  white-space:nowrap;
}
.heat-badge .dot{ width:8px; height:8px; border-radius:50%; background: rgba(255,255,255,.35); }
.heat-badge.certified{ color: rgba(124,255,107,.95); border-color: rgba(124,255,107,.22); background: rgba(124,255,107,.07); }
.heat-badge.certified .dot{ background: rgba(124,255,107,.98); }
.heat-badge.training{ color: rgba(255,176,32,.95); border-color: rgba(255,176,32,.22); background: rgba(255,176,32,.07); }
.heat-badge.training .dot{ background: rgba(255,176,32,.98); }
.heat-badge.not{ color: rgba(231,234,240,.92); border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.03); }
.heat-badge.not .dot{ background: rgba(231,234,240,.55); }
.heat-badge.restricted{ color: rgba(232,33,39,.98); border-color: rgba(232,33,39,.22); background: rgba(232,33,39,.07); }
.heat-badge.restricted .dot{ background: rgba(232,33,39,.98); }

.heat-bars{ display:flex; flex-direction:column; gap:10px; }
.heat-bar-top{ display:flex; justify-content:space-between; gap:10px; font-weight:900; color: rgba(231,234,240,.92); }
.heat-bar-top span:last-child{ color: var(--muted); font-weight:900; }
.heat-bar-track{ height:10px; border-radius:999px; border:1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.03); overflow:hidden; }
.heat-bar-fill{ height:100%; border-radius:999px; }
.heat-bar-fill.certified{ background: rgba(124,255,107,.92); }
.heat-bar-fill.training{ background: rgba(255,176,32,.92); }
.heat-bar-fill.not{ background: rgba(231,234,240,.35); }
.heat-bar-fill.restricted{ background: rgba(232,33,39,.92); }

.heat-score{
  margin-top: 6px;
  padding:12px 14px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.10);
  background: radial-gradient(120% 140% at 10% 0%, rgba(0,229,255,.12), rgba(255,255,255,.03) 55%, rgba(255,255,255,.02));
}
.heat-score-label{ color:var(--muted); font-weight:900; letter-spacing:.06em; text-transform:uppercase; font-size:11px; }
.heat-score-value{ font-weight:1100; font-size:26px; margin-top:4px; }
.heat-score-sub{ color:var(--muted); margin-top:4px; font-weight:800; }
.heat-score.heat-green{ border-color: rgba(124,255,107,.20); box-shadow: 0 0 0 1px rgba(124,255,107,.10) inset; }
.heat-score.heat-yellow{ border-color: rgba(255,176,32,.20); box-shadow: 0 0 0 1px rgba(255,176,32,.10) inset; }
.heat-score.heat-red{ border-color: rgba(232,33,39,.20); box-shadow: 0 0 0 1px rgba(232,33,39,.10) inset; }

.heat-toolbar{ display:flex; gap:12px; align-items:center; justify-content:space-between; flex-wrap:wrap; margin-bottom:12px; }
.heat-chip-row{ display:flex; gap:10px; flex-wrap:wrap; }
.heat-chip{
  height:38px;
  padding:0 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color: rgba(231,234,240,.92);
  font-weight:1000;
  cursor:pointer;
}
.heat-chip:hover{ border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.04); }
.heat-chip.is-active{ border-color: rgba(0,229,255,.25); box-shadow: 0 0 0 2px rgba(0,229,255,.12); }

.heat-emp-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:10px;
}
.heat-emp-card{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  border-radius:18px;
  padding:10px 12px;
  display:flex;
  gap:12px;
  align-items:center;
}
.heat-emp-card:hover{ border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.04); }
.heat-emp-info{ min-width:0; display:flex; flex-direction:column; gap:6px; }
.heat-emp-name{ font-weight:1000; text-shadow: 0 1px 10px rgba(0,0,0,.35); }
.heat-emp-sub{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; }

@media (max-width: 1060px){
  .heat-layout{ grid-template-columns: 1fr; }
  .heat-left .card-body.heat-stations{ max-height: 340px; }
  .heat-header-grid{ grid-template-columns: 1fr; }
  .heat-emp-grid{ grid-template-columns: 1fr; }
}



/* Incident SLA */
.sla-chip{
  display:inline-flex;
  align-items:center;
  gap:9px;
  padding:7px 12px;
  border-radius:999px;
  background:rgba(0,0,0,.55);
  border:1px solid var(--border);
  box-shadow:0 0 0 1px rgba(0,0,0,.35) inset;
  font-size:13px;
  line-height:1;
}
.sla-chip .sla-lbl{
  font-size:11px;
  font-weight:900;
  letter-spacing:.8px;
  opacity:.85;
}
.sla-chip .sla-time{
  font-size:13px;
  font-variant-numeric:tabular-nums;
  font-weight:900;
  letter-spacing:.5px;
}
.sla-chip.level1{ border-color: rgba(255, 196, 0, .35); box-shadow:0 0 18px rgba(255,196,0,.10); }
.sla-chip.level2{ border-color: rgba(255, 62, 62, .35); box-shadow:0 0 20px rgba(255,62,62,.12); }
.sla-chip.level3{ border-color: rgba(255, 62, 62, .55); box-shadow:0 0 26px rgba(255,62,62,.18); }
.sla-chip.stopped{ opacity:.9; }

.sla-mini{
  margin-top:6px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:6px;
}
.sla-mini-tags{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
.sla-mini-time{
  font-size:12px;
  font-weight:900;
  letter-spacing:.4px;
  opacity:.9;
  font-variant-numeric:tabular-nums;
}

.sla-tag{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  /* Never truncate SLA tag text */
  flex:0 0 auto;
  white-space:nowrap;
  overflow:visible;
  max-width:none;
  text-overflow:clip;
  padding:4px 8px;
  border-radius:999px;
  font-size:11px;
  font-weight:1000;
  letter-spacing:.9px;
  line-height:1.15;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.04);
}
.sla-tag.warn{ border-color: rgba(255,196,0,.28); color: rgba(255,196,0,.95); }
.sla-tag.esc{ border-color: rgba(255,62,62,.28); color: rgba(255,62,62,.95); }
.sla-tag.crit{ border-color: rgba(255,62,62,.45); color: rgba(255,62,62,.98); box-shadow:0 0 14px rgba(255,62,62,.15); }
.sla-tag.ok{ border-color: rgba(0, 255, 160, .25); color: rgba(0, 255, 160, .95); }

/* containment checkbox - tesla style */
.tesla-check{
  display:inline-flex;
  align-items:center;
  gap:10px;
  cursor:pointer;
  user-select:none;
}
.tesla-check input{ appearance:none; display:none; }
.tesla-check .box{
  width:18px; height:18px;
  border-radius:6px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 0 0 1px rgba(0,0,0,.35) inset;
  position:relative;
}
.tesla-check .txt{
  font-size:12px;
  font-weight:900;
  letter-spacing:.4px;
  opacity:.92;
}
.tesla-check input:checked + .box{
  background:rgba(0,255,160,.18);
  border-color:rgba(0,255,160,.35);
  box-shadow:0 0 16px rgba(0,255,160,.15);
}
.tesla-check input:checked + .box:after{
  content:'';
  position:absolute;
  left:5px; top:2px;
  width:5px; height:10px;
  border:2px solid rgba(0,255,160,.95);
  border-top:0; border-left:0;
  transform:rotate(45deg);
}

/* extra pills */
.pill.success{ background:rgba(0,255,160,.14); border:1px solid rgba(0,255,160,.22); color:rgba(0,255,160,.95); }
.pill.warning{ background:rgba(255,196,0,.12); border:1px solid rgba(255,196,0,.22); color:rgba(255,196,0,.95); }


/* Incident tickets: containment review */
.pill.danger{border-color: rgba(232,33,39,.55); background: rgba(232,33,39,.12); color: #ffb4b6;}

/* Clean Point Picture header (Incident Ticket) */
.cleanpoint-title{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  margin: 6px 0 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: linear-gradient(90deg, rgba(232,33,39,.16), rgba(0,229,255,.08), rgba(0,0,0,0) 70%);
}
.cleanpoint-title:before{
  content:"";
  width:10px; height:10px;
  border-radius:999px;
  background: var(--primary);
  box-shadow: 0 0 18px rgba(232,33,39,.55);
}

/* Incident Photos header uses the same Tesla pill style, but no extra spacing inside card headers */
.incidentphotos-title{ margin:0; }


/* Attendance: Late-in / Early-out time picker icon (bigger + white) */
.att-time-input{
  color-scheme: dark; /* helps Chrome render light controls on dark UI */
}
.att-time-input::-webkit-calendar-picker-indicator{
  opacity: 1;
  filter: invert(1) brightness(1.7);
  transform: scale(1.55);
  cursor: pointer;
}


/* === Schedule: Attendance Snapshot + White Date Picker Button === */
.sched-date-wrap{
  position:relative;
  display:flex;
  align-items:center;
}
.sched-date-wrap .sched-date{
  width:100%;
  padding-right:56px;
  color-scheme: dark;
}
.sched-date-wrap .sched-date::-webkit-calendar-picker-indicator{
  opacity:0;
  display:none;
}
.sched-date-wrap .sched-date-btn{
  position:absolute;
  right:-3px;
  top:50%;
  transform:translateY(-50%);
  width:44px;
  height:40px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.14);
  background:#0b0f14;
  box-shadow: 0 10px 22px rgba(0,0,0,0.45);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.sched-date-wrap .sched-date-btn svg{
  width:22px;
  height:22px;
  fill:#ffffff;
  opacity:0.95;
}
.sched-date-wrap .sched-date-btn:hover{
  border-color: rgba(255,255,255,0.22);
  box-shadow: 0 14px 30px rgba(0,0,0,0.55);
}

.sched-att-snapshot{
  margin-top:12px;
  display:grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap:10px;
}
@media (max-width: 1100px){
  .sched-att-snapshot{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px){
  .sched-att-snapshot{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px){
  .sched-att-snapshot{ grid-template-columns: 1fr; }
}
.sched-att-snapshot .snap-card{
  background: rgba(10, 14, 20, 0.92);
  border:1px solid rgba(255,255,255,0.10);
  border-radius:16px;
  padding:10px 10px 12px;
  box-shadow: 0 12px 26px rgba(0,0,0,0.48);
  min-height:86px;
}
.sched-att-snapshot .snap-hd{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:8px;
}
.sched-att-snapshot .snap-title{
  font-weight:900;
  letter-spacing:0.5px;
  font-size:13px;
  text-transform:uppercase;
}
.sched-att-snapshot .snap-count{
  font-weight:900;
  font-size:14px;
  padding:4px 10px;
  border-radius:999px;
  background: rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.12);
}
.sched-att-snapshot .snap-body{
  max-height:88px;
  overflow:auto;
  padding-right:2px;
}
.sched-att-snapshot .snap-pills{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
.sched-att-snapshot .snap-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.10);
  font-weight:800;
  font-size:12px;
  white-space:nowrap;
}
.sched-att-snapshot .snap-time{
  opacity:0.9;
  font-weight:900;
  font-size:11px;
  padding:3px 8px;
  border-radius:999px;
  background: rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.10);
}

/* Accent borders */
.sched-att-snapshot .snap-late{ border-color: rgba(255,60,60,0.26); }
.sched-att-snapshot .snap-early{ border-color: rgba(255,160,60,0.26); }
.sched-att-snapshot .snap-pto{ border-color: rgba(60,140,255,0.26); }
.sched-att-snapshot .snap-callout{ border-color: rgba(180,90,255,0.26); }
.sched-att-snapshot .snap-loa{ border-color: rgba(255,220,60,0.26); }


/* === Schedule Rotation Header (Tesla) === */
.schedule-rot-thead th{
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(10,14,20,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.schedule-rot-header th{
  position: relative;
  padding: 14px 14px;
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;
  font-size: .78rem;
  color: rgba(240,246,255,.92);
  vertical-align: middle;
}
.schedule-rot-header th.station-h{
  text-align:left;
  border-radius: 14px 0 0 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.14));
  border: 1px solid rgba(255,255,255,.10);
  border-right: none;
  box-shadow: 0 10px 26px rgba(0,0,0,.35);
}
.schedule-rot-header th.rot-h{
  text-align:center;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.14));
  border-top: 1px solid rgba(255,255,255,.10);
  border-bottom: 1px solid rgba(255,255,255,.10);
  border-left: 1px solid rgba(255,255,255,.10);
  border-right: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 10px 26px rgba(0,0,0,.35);
}
.schedule-rot-header th.rot-h::before{
  content:'';
  position:absolute;
  left:0; top:0; bottom:0;
  width:4px;
  background: var(--rot-accent, rgba(0,229,255,.95));
  opacity:.92;
  box-shadow: 0 0 18px var(--rot-accent, rgba(0,229,255,.95));
  border-radius: inherit;
}
.schedule-rot-header th.rot-h::after{
  content:'';
  position:absolute;
  inset:0;
  border-radius: inherit;
  box-shadow: 0 0 0 1px rgba(0,0,0,.55) inset;
  pointer-events:none;
}
.schedule-rot-header th.rot-h:last-child{
  border-radius: 0 14px 14px 0;
}
.rot-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 24px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(0,0,0,.58);
  border: 1px solid rgba(255,255,255,.14);
  /* no glow */
  box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset;
  margin-right: 10px;
  font-weight: 900;
  font-size: .82rem;
  letter-spacing: .08em;
  color: rgba(255,255,255,.92);
}
.rot-title{font-weight:900}
@media (max-width: 1100px){
  .rot-badge{display:none;}
  .schedule-rot-header th{padding:12px 10px;font-size:.74rem;}
}



/* Global Search (topbar) */
.gsearch{position:relative;display:flex;align-items:center;margin-right:10px}
.gsearch-inputwrap{
  display:flex;align-items:center;gap:8px;
  height:40px;min-width:260px;
  padding:8px 10px;
  border-radius:14px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 10px 28px rgba(0,0,0,.22) inset;
}
.gsearch-ico{width:18px;height:18px;opacity:.85}
.gsearch input{
  flex:1;min-width:140px;
  background:transparent;border:0;outline:0;
  color:rgba(255,255,255,.92);
  font-size:13px;letter-spacing:.2px;
}
.gsearch input::placeholder{color:rgba(255,255,255,.48)}
.gsearch-go{
  width:28px;height:28px;border-radius:10px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;
}
.gsearch-go:hover{background:rgba(255,255,255,.10)}
.gsearch-go svg{width:16px;height:16px;opacity:.9}

.gsearch-dd{
  position:absolute;right:0;top:calc(100% + 10px);
  width:460px;max-width:min(460px, calc(100vw - 42px));
  max-height:520px;overflow:auto;
  background:rgba(10,14,22,.98);
  border:1px solid rgba(255,255,255,.12);
  border-radius:18px;
  box-shadow:0 24px 80px rgba(0,0,0,.55);
  padding:10px;
  z-index:9999;
}
.gsearch-loading{padding:10px 8px;color:rgba(255,255,255,.62)}
.gsearch-empty{padding:12px 8px;color:rgba(255,255,255,.62)}
.gsearch-sec{padding:6px 0}
.gsearch-sec-title{
  font-size:11px;letter-spacing:.14em;text-transform:uppercase;
  color:rgba(255,255,255,.55);
  padding:6px 8px;
}
.gsearch-row{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:10px 10px;border-radius:14px;
  text-decoration:none;color:inherit;
}
.gsearch-row:hover{background:rgba(255,255,255,.06)}
.gsearch-row-main{font-weight:650;font-size:13px}
.gsearch-row-sub{font-size:12px;color:rgba(255,255,255,.60);margin-top:2px}
.gsearch-row-right{display:flex;align-items:center;gap:8px;flex:0 0 auto}

.gsearch-badge{
  font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;
  padding:6px 8px;border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  color:rgba(255,255,255,.80);
}
.gsearch-badge.b-green{background:rgba(34,197,94,.16);border-color:rgba(34,197,94,.25);color:rgba(190,255,210,.95)}
.gsearch-badge.b-yellow{background:rgba(245,158,11,.16);border-color:rgba(245,158,11,.25);color:rgba(255,235,190,.95)}
.gsearch-badge.b-red{background:rgba(239,68,68,.14);border-color:rgba(239,68,68,.25);color:rgba(255,205,205,.95)}
.gsearch-badge.b-gray{background:rgba(148,163,184,.12);border-color:rgba(148,163,184,.22);color:rgba(226,232,240,.92)}

.gsearch-foot{margin-top:8px;border-top:1px solid rgba(255,255,255,.10);padding-top:10px}
.gsearch-viewall{
  width:100%;height:40px;border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  color:rgba(255,255,255,.92);
  font-weight:750;letter-spacing:.02em;
  cursor:pointer;
}
.gsearch-viewall:hover{background:rgba(255,255,255,.10)}

@media (max-width: 900px){
  .gsearch-inputwrap{min-width:200px}
  .gsearch-dd{width:420px}
}
@media (max-width: 640px){
  .gsearch-inputwrap{min-width:160px;padding:8px 10px}
  .gsearch-dd{right:-6px;width:92vw}
  .gsearch-go{display:none}
}

/* Global Search page rows */
.input-wrap{
  display:flex;align-items:center;gap:10px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  padding:10px 12px;border-radius:14px;
}
.input-wrap .ico{width:18px;height:18px;opacity:.85}
.input-wrap input{flex:1;background:transparent;border:0;outline:0;color:rgba(255,255,255,.92)}
.gs-row{
  display:block;
  padding:10px 10px;border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.03);
  text-decoration:none;color:inherit;
  margin-bottom:8px;
}
.gs-row:hover{background:rgba(255,255,255,.06)}
.gs-row-main{font-weight:750}
.gs-row-sub{font-size:12px;color:rgba(255,255,255,.62);margin-top:3px}

/* =========================
   Spotlight Global Search
   ========================= */
.spot-trigger{position:relative;display:flex;align-items:center;margin-right:10px}
.spot-pill{display:flex;align-items:center;gap:10px;min-width:270px;padding:9px 12px;border-radius:999px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.06);color:#fff;cursor:pointer;transition:background .15s ease,border-color .15s ease}
.spot-pill:hover{background:rgba(255,255,255,.10);border-color:rgba(255,255,255,.20)}
.spot-pill-ico{display:flex;align-items:center;justify-content:center}
.spot-pill-ico svg{width:18px;height:18px;opacity:.9}
.spot-pill-txt{flex:1;min-width:0;font-size:13px;color:rgba(255,255,255,.70);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.spot-pill-kbd{display:flex;gap:6px;align-items:center}
.spot-pill-kbd kbd{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:20px;padding:0 6px;border-radius:6px;border:1px solid rgba(255,255,255,.18);background:rgba(0,0,0,.35);color:rgba(255,255,255,.78);font:600 11px ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace}

body.spot-open{overflow:hidden}
.spotlight{position:fixed;inset:0;z-index:9999;display:flex;align-items:flex-start;justify-content:center;padding:84px 14px}
.spot-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.55);backdrop-filter:blur(6px)}
.spot-panel{position:relative;width:min(920px,94vw);max-height:min(74vh,720px);background:rgba(10,10,12,.92);border:1px solid rgba(255,255,255,.14);border-radius:22px;box-shadow:0 25px 90px rgba(0,0,0,.62);overflow:hidden}

.spot-head{display:flex;align-items:center;gap:10px;padding:14px 16px;border-bottom:1px solid rgba(255,255,255,.10)}
.spot-head-ico{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:12px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.10)}
.spot-head-ico svg{width:18px;height:18px;opacity:.9}
.spot-head input{flex:1;background:transparent;border:0;outline:none;color:#fff;font-size:15px;letter-spacing:.2px}
.spot-head input::placeholder{color:rgba(255,255,255,.45)}
.spot-close{border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.06);color:#fff;border-radius:12px;padding:8px 10px;cursor:pointer}
.spot-close:hover{background:rgba(255,255,255,.10)}
.spot-close kbd{font:700 11px ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;color:rgba(255,255,255,.72)}
.spot-shop{display:flex;align-items:center}
.spot-shop-sel{appearance:none;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.14);color:#fff;border-radius:12px;padding:8px 28px 8px 12px;font-size:12px;letter-spacing:.2px;cursor:pointer;outline:none;min-width:170px;max-width:220px}
.spot-shop-sel:hover{background:rgba(255,255,255,.10);border-color:rgba(255,255,255,.22)}
.spot-shop-sel:focus{border-color:rgba(0,255,180,.55);box-shadow:0 0 0 2px rgba(0,255,180,.18)}
@media (max-width:520px){.spot-shop-sel{min-width:120px;max-width:160px}}


.spot-tabs{display:flex;gap:8px;align-items:center;padding:10px 16px;border-bottom:1px solid rgba(255,255,255,.10);overflow:auto}
.spot-tab{display:inline-flex;align-items:center;gap:8px;padding:8px 10px;border-radius:999px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.05);color:rgba(255,255,255,.78);cursor:pointer;white-space:nowrap;transition:background .15s ease,border-color .15s ease}
.spot-tab svg{width:16px;height:16px;opacity:.9;fill:#fff;stroke:#fff;color:#fff}
.spot-tab:hover{background:rgba(255,255,255,.09);border-color:rgba(255,255,255,.20)}
.spot-tab.active{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.24);color:#fff}

.spot-results{padding:10px 0;max-height:calc(min(74vh,720px) - 168px);overflow:auto}
.spot-sec{padding:8px 0}
.spot-sec-title{padding:0 16px 6px 16px;font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:rgba(255,255,255,.44)}

.spot-row{display:grid;grid-template-columns:44px 1fr auto;gap:12px;align-items:center;padding:10px 16px;border-radius:14px;margin:0 10px;cursor:pointer;transition:background .12s ease}
.spot-row:hover{background:rgba(255,255,255,.06)}
.spot-row.active{background:rgba(255,255,255,.10)}

.spot-left{display:flex;align-items:center;justify-content:center}
.spot-ico{width:34px;height:34px;border-radius:12px;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.10)}
.spot-ico svg{width:18px;height:18px;opacity:.95}

.spot-avatar{width:34px;height:34px;border-radius:12px;object-fit:cover;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.06)}
.spot-avatar-fallback{display:flex;align-items:center;justify-content:center;font-weight:800;font-size:12px;color:rgba(255,255,255,.86)}

.spot-mid{min-width:0}
.spot-main{font-weight:700;font-size:13px;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.spot-sub{margin-top:2px;font-size:12px;color:rgba(255,255,255,.58);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.spot-right{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.spot-badge{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border-radius:999px;font-size:11px;font-weight:800;letter-spacing:.02em;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.06);color:rgba(255,255,255,.86)}
.spot-badge.b-green{background:rgba(34,197,94,.16);border-color:rgba(34,197,94,.25);color:rgba(190,255,210,.95)}
.spot-badge.b-yellow{background:rgba(245,158,11,.16);border-color:rgba(245,158,11,.25);color:rgba(255,235,190,.95)}
.spot-badge.b-red{background:rgba(239,68,68,.14);border-color:rgba(239,68,68,.25);color:rgba(255,205,205,.95)}
.spot-badge.b-gray{background:rgba(148,163,184,.12);border-color:rgba(148,163,184,.22);color:rgba(226,232,240,.92)}

.spot-loading,.spot-empty{padding:14px 16px;color:rgba(255,255,255,.62)}

.spot-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-top:1px solid rgba(255,255,255,.10);background:rgba(0,0,0,.18)}
.spot-hints{display:flex;gap:14px;flex-wrap:wrap;color:rgba(255,255,255,.55);font-size:12px}
.spot-hints kbd{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:20px;padding:0 6px;border-radius:6px;border:1px solid rgba(255,255,255,.18);background:rgba(0,0,0,.35);color:rgba(255,255,255,.78);font:600 11px ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace}
.spot-viewall{border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.06);color:#fff;border-radius:12px;padding:8px 12px;font-weight:800;cursor:pointer}
.spot-viewall:hover{background:rgba(255,255,255,.10)}

@media (max-width: 880px){
  .spot-pill{min-width:200px}
}
@media (max-width: 640px){
  .spot-pill{min-width:160px}
  .spot-pill-kbd{display:none}
  .spotlight{padding:74px 10px}
  .spot-panel{max-height:78vh}
}
