/* ============================================================
   Attendly - premium design system
   Light (default, Shopify-clean) + refined dark.
   Single emerald accent, neutral slate base, hairline borders.
   ============================================================ */
:root {
  /* ---- light (default) ---- */
  --bg: #f6f7f9;
  --bg-2: #fbfbfc;
  --surface: #ffffff;
  --surface-2: #f7f8fa;
  --surface-3: #eef0f3;
  --border: #e4e7ec;
  --border-soft: #eef0f3;
  --text: #14181f;
  --text-dim: #5b636e;
  --text-faint: #99a1ad;

  --brand: #0c8f6c;
  --brand-2: #0aa67a;
  --brand-ink: #06694f;
  --brand-soft: rgba(12, 143, 108, .10);
  --brand-glow: rgba(12, 143, 108, .16);

  --green: #12a574;
  --green-soft: rgba(18, 165, 116, .12);
  --red: #e5484d;
  --red-soft: rgba(229, 72, 77, .11);
  --amber: #d98a0b;
  --amber-soft: rgba(217, 138, 11, .12);
  --cyan: #0d9bbd;
  --cyan-soft: rgba(13, 155, 189, .12);
  --violet: #6d5ef0;
  --violet-soft: rgba(109, 94, 240, .12);
  --pink: #d6489b;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow-md: 0 4px 12px rgba(16, 24, 40, .06), 0 2px 4px rgba(16, 24, 40, .04);
  --shadow-lg: 0 16px 48px rgba(16, 24, 40, .14);
  --ring-track: #eaecef;
  --sidebar-w: 256px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
[data-theme="dark"] {
  --bg: #0a0b0d;
  --bg-2: #0d0f12;
  --surface: #141619;
  --surface-2: #1a1d21;
  --surface-3: #22262c;
  --border: #262a31;
  --border-soft: #1d2025;
  --text: #eceef1;
  --text-dim: #99a0aa;
  --text-faint: #61676f;

  --brand: #19b888;
  --brand-2: #2dd49d;
  --brand-ink: #0fa377;
  --brand-soft: rgba(25, 184, 136, .14);
  --brand-glow: rgba(25, 184, 136, .20);

  --green: #1cc08a;
  --green-soft: rgba(28, 192, 138, .15);
  --red: #f0595e;
  --red-soft: rgba(240, 89, 94, .15);
  --amber: #eaa023;
  --amber-soft: rgba(234, 160, 35, .15);
  --cyan: #28b6d6;
  --cyan-soft: rgba(40, 182, 214, .15);
  --violet: #8b7df5;
  --violet-soft: rgba(139, 125, 245, .16);

  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 1px 3px rgba(0, 0, 0, .3);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, .4);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .55);
  --ring-track: #262a31;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.005em;
}
[data-theme="dark"] body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(800px 460px at 82% -12%, var(--brand-glow), transparent 62%);
  opacity: .5;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3 { letter-spacing: -0.02em; }
.hide { display: none !important; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 20px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: var(--border); background-clip: padding-box; }

/* ---------- Login ---------- */
.login-screen { height: 100vh; height: 100dvh; overflow: hidden; display: grid; grid-template-columns: 1.05fr .95fr; background: var(--bg); }
.login-aside {
  padding: 48px 56px; display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden; color: #eafaf3;
  background:
    radial-gradient(620px 380px at 88% 6%, rgba(45, 212, 157, .16), transparent 62%),
    radial-gradient(720px 460px at 10% 6%, rgba(45, 212, 157, .20), transparent 60%),
    linear-gradient(155deg, #0a3f31 0%, #0b2c25 46%, #070f0d 100%);
}
.login-aside .brand.big { position: absolute; top: 48px; left: 60px; margin: 0; z-index: 2; }
.login-aside-glow { position: absolute; right: -120px; bottom: -140px; width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 212, 157, .14), transparent 65%); pointer-events: none; z-index: 0; }
.login-aside .brand-name, .login-aside .brand-sub { color: #eafaf3; }
.login-aside .brand-sub { color: rgba(234, 250, 243, .6); }
.login-aside .brand-logo { box-shadow: 0 8px 26px rgba(0, 0, 0, .35); }
.login-aside-mid { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; }
.login-eyebrow { display: inline-block; font-size: 11px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase;
  color: #6ee7b7; background: rgba(110, 231, 183, .12); border: 1px solid rgba(110, 231, 183, .22); border-radius: 999px; padding: 5px 12px; margin-bottom: 16px; }
.login-hero { font-size: 40px; line-height: 1.05; margin: 0 0 13px; font-weight: 760; letter-spacing: -0.035em; }
.login-hero-sub { color: rgba(234, 250, 243, .74); font-size: 14.5px; max-width: 450px; line-height: 1.6; margin: 0; }
.login-feats { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.login-feats li { display: flex; align-items: flex-start; gap: 12px; color: rgba(234, 250, 243, .58); font-weight: 450; font-size: 14px; line-height: 1.45; max-width: 470px; }
.login-feats li b { color: #fff; font-weight: 600; }
.feat-ic { flex: 0 0 auto; margin-top: 1px; width: 31px; height: 31px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(45, 212, 157, .14); border: 1px solid rgba(45, 212, 157, .22); color: #34d399; }
.feat-ic svg { width: 16px; height: 16px; }
.login-foot { font-size: 12px; letter-spacing: .04em; color: rgba(234, 250, 243, .45); font-weight: 500; }
.login-right { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: var(--bg); }
.login-card { width: min(420px, 100%); background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 40px 36px; box-shadow: var(--shadow-lg); }
.login-card .brand { padding: 0 0 20px; }
.login-card h2 { margin: 12px 0 4px; font-size: 25px; font-weight: 760; letter-spacing: -0.02em; }
.login-card .lead { color: var(--text-dim); margin: 0 0 22px; font-size: 14.5px; }
.login-card .field label { font-weight: 600; }
.login-card .input { padding: 12px 14px; }
.login-card .btn.primary { padding: 13px; font-size: 15px; font-weight: 650; margin-top: 4px; }
.login-err { color: var(--red); font-size: 13px; min-height: 18px; margin: 6px 0; font-weight: 600; }
.login-hint { color: var(--text-faint); font-size: 12px; margin-top: 18px; text-align: center; line-height: 1.7; }
@media (max-width: 880px) {
  .login-screen { grid-template-columns: 1fr; }
  .login-aside { display: none; }
  .login-right { min-height: 100vh; }
}

/* ---------- Layout ---------- */
.app { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }
.app.hidden { display: none; }

.sidebar {
  position: sticky; top: 0; height: 100vh; background: var(--bg-2);
  border-right: 1px solid var(--border-soft);
  display: flex; flex-direction: column; padding: 22px 16px; gap: 3px; z-index: 60;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 20px; }
.brand.big { padding: 0; }
.brand-logo {
  width: 40px; height: 40px; border-radius: 12px;
  background: #000; flex: none; overflow: hidden;
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 20px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
}
.brand-logo img { width: 66%; height: 66%; object-fit: contain; display: block; }
.brand-name { font-weight: 700; font-size: 15.5px; letter-spacing: -0.02em; }
.brand-sub { font-size: 11.5px; color: var(--text-faint); font-weight: 500; }

.nav-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .9px; color: var(--text-faint); padding: 16px 12px 8px; font-weight: 650; }
.nav-item {
  display: flex; align-items: center; gap: 11px; padding: 9px 12px; margin: 1px 0;
  border-radius: 10px; color: var(--text-dim); font-weight: 550; font-size: 13.5px;
  transition: background .15s, color .15s; position: relative; cursor: pointer;
}
.nav-item svg { width: 18px; height: 18px; flex: none; opacity: .8; }
.nav-item:hover { background: var(--surface-3); color: var(--text); }
.nav-item.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.nav-item.active svg { opacity: 1; }
.nav-item.active::before { content: ""; position: absolute; left: -16px; top: 50%; transform: translateY(-50%); width: 3px; height: 20px; border-radius: 0 3px 3px 0; background: var(--brand); }
.nav-item .pill { margin-left: auto; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; display: grid; place-items: center; }
.sidebar-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border-soft); }
.userbox { display: flex; align-items: center; gap: 10px; padding: 9px; border-radius: 11px; cursor: pointer; transition: background .15s; }
.userbox:hover { background: var(--surface-3); }
.userbox .meta { overflow: hidden; flex: 1; }
.userbox .meta .n { font-weight: 650; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.userbox .meta .r { font-size: 11.5px; color: var(--text-faint); }
.userbox svg { color: var(--text-faint); }

/* ---------- Main ---------- */
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 16px;
  padding: 18px 32px; background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px); border-bottom: 1px solid var(--border-soft);
}
.page-title h1 { margin: 0; font-size: 22px; font-weight: 700; }
.page-title p { margin: 3px 0 0; color: var(--text-faint); font-size: 13px; font-weight: 450; }
.spacer { flex: 1; }
.range-pills { display: flex; gap: 3px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 11px; padding: 3px; }
.range-pills button { border: 0; background: transparent; color: var(--text-dim); font-weight: 600; font-size: 12.5px; padding: 6px 13px; border-radius: 8px; transition: .15s; }
.range-pills button:hover { color: var(--text); }
.range-pills button.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.icon-btn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text-dim); display: grid; place-items: center; transition: .15s; }
.icon-btn:hover { color: var(--text); border-color: var(--brand); background: var(--surface-2); }
.only-mobile { display: none; }
.mnav { display: none; }
.content { padding: 26px 32px 64px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  padding: 9px 15px; border-radius: 10px; font-weight: 600; font-size: 13.5px; transition: .15s;
}
.btn:hover { border-color: var(--text-faint); background: var(--surface-2); }
.btn svg { width: 16px; height: 16px; }
.btn.primary { background: var(--brand); border: 1px solid var(--brand); color: #fff; box-shadow: 0 1px 2px var(--brand-glow); }
.btn.primary:hover { background: var(--brand-ink); border-color: var(--brand-ink); }
.btn.btn-upwork { margin-left: auto; background: #2563eb; border: 1px solid #2563eb; color: #fff; box-shadow: 0 1px 2px rgba(37, 99, 235, .25); }
.btn.btn-upwork:hover { background: #1d4fd0; border-color: #1d4fd0; }
.btn.ghost { background: transparent; }
.btn.ghost:hover { background: var(--surface-3); }
.btn.danger { color: var(--red); border-color: var(--border); }
.btn.danger:hover { background: var(--red-soft); border-color: var(--red); }
.btn.ok { background: var(--green); border: 0; color: #fff; }
.btn.lg { padding: 12px 22px; font-size: 14.5px; border-radius: 12px; }
.btn.sm { padding: 7px 12px; font-size: 12.5px; border-radius: 9px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Cards / grid ---------- */
.grid { display: grid; gap: 18px; }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card.pad-lg { padding: 24px; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.card-head h3 { margin: 0; font-size: 15px; font-weight: 650; }
.card-head .sub { color: var(--text-faint); font-size: 12px; font-weight: 450; }
.card-head .spacer { flex: 1; }
.section-gap { margin-top: 18px; }

/* ---------- Stat cards ---------- */
.stat { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s; }
.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 14px; }
.stat .ic svg { width: 19px; height: 19px; }
.stat .ic.brand { background: var(--brand-soft); color: var(--brand); }
.stat .ic.green { background: var(--green-soft); color: var(--green); }
.stat .ic.red { background: var(--red-soft); color: var(--red); }
.stat .ic.amber { background: var(--amber-soft); color: var(--amber); }
.stat .ic.cyan { background: var(--cyan-soft); color: var(--cyan); }
.stat .label { color: var(--text-faint); font-size: 12.5px; font-weight: 550; }
.stat .value { font-size: 30px; font-weight: 760; letter-spacing: -0.03em; margin-top: 3px; line-height: 1.1; }
.stat .value small { font-size: 14px; font-weight: 600; color: var(--text-faint); }
.stat .foot { margin-top: 9px; font-size: 12px; color: var(--text-dim); display: flex; align-items: center; gap: 6px; }

.delta { display: inline-flex; align-items: center; gap: 2px; font-size: 11.5px; font-weight: 700; padding: 2px 7px; border-radius: 20px; }
.delta svg { width: 11px; height: 11px; }
.delta.up { color: var(--green); background: var(--green-soft); }
.delta.down { color: var(--red); background: var(--red-soft); }
.delta.flat { color: var(--text-faint); background: var(--surface-3); }

/* ---------- Avatar ---------- */
.avatar { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 650; font-size: 12.5px; flex: none; }
.avatar.sm { width: 28px; height: 28px; font-size: 10.5px; border-radius: 8px; }
.avatar.lg { width: 46px; height: 46px; font-size: 16px; border-radius: 13px; }
.avatar.xl { width: 64px; height: 64px; font-size: 22px; border-radius: 18px; }
.person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.person .pn { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person .pr { font-size: 11.5px; color: var(--text-faint); }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; padding: 3px 9px 3px 8px; border-radius: 7px; white-space: nowrap; }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.present { color: var(--green); background: var(--green-soft); }
.badge.late { color: var(--amber); background: var(--amber-soft); }
.badge.half_day { color: var(--cyan); background: var(--cyan-soft); }
.badge.remote { color: var(--violet); background: var(--violet-soft); }
.badge.absent { color: var(--red); background: var(--red-soft); }
.badge.on_leave { color: var(--brand); background: var(--brand-soft); }
.badge.holiday { color: var(--text-dim); background: var(--surface-3); }
.badge.pending { color: var(--amber); background: var(--amber-soft); }
.badge.approved { color: var(--green); background: var(--green-soft); }
.badge.rejected { color: var(--red); background: var(--red-soft); }
.badge.cancelled { color: var(--text-faint); background: var(--surface-3); }
.role-chip { font-size: 10.5px; font-weight: 650; padding: 2px 8px; border-radius: 6px; background: var(--surface-3); color: var(--text-dim); text-transform: capitalize; }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.tbl th { text-align: left; color: var(--text-faint); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .6px; padding: 11px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.tbl td { padding: 13px 14px; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
table.tbl tr:last-child td { border-bottom: 0; }
table.tbl tbody tr { transition: background .12s; }
table.tbl tbody tr:hover { background: var(--surface-2); }
table.tbl .num { font-variant-numeric: tabular-nums; font-weight: 600; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.mini-btn { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text-dim); display: grid; place-items: center; transition: .12s; }
.mini-btn:hover { color: var(--text); border-color: var(--brand); background: var(--surface-2); }
.mini-btn.danger:hover { color: var(--red); border-color: var(--red); background: var(--red-soft); }
.mini-btn svg { width: 15px; height: 15px; }
.mini-select { height: 30px; padding: 0 26px 0 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: .12s; -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 7px center; }
.mini-select:hover { border-color: var(--brand); }

/* ---------- Progress / meters ---------- */
.meter { height: 7px; border-radius: 6px; background: var(--ring-track); overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: 6px; background: var(--brand); transition: width .8s cubic-bezier(.2,.8,.2,1); }
.meter.green > span { background: var(--green); }
.meter.amber > span { background: var(--amber); }
.meter.red > span { background: var(--red); }
.ring-txt { fill: var(--text); font-weight: 760; letter-spacing: -0.02em; }

/* ---------- Check-in hero ---------- */
.clock-hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 18px; }
.clock-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; position: relative; overflow: hidden; }
.clock-card::before { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, var(--brand-glow), transparent 70%); opacity: .7; }
.clock-now { font-size: 58px; font-weight: 780; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; line-height: 1; }
.clock-now .sec { font-size: 26px; color: var(--text-faint); font-weight: 650; }
.clock-date { color: var(--text-dim); font-size: 14px; font-weight: 550; margin-top: 6px; }
.clock-status { margin: 20px 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.clock-actions { display: flex; gap: 12px; margin-top: 6px; }
.clock-actions .btn { flex: 1; }
.punch-times { display: flex; gap: 28px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border-soft); }
.punch-times .pt-label { color: var(--text-faint); font-size: 11.5px; font-weight: 550; }
.punch-times .pt-val { font-size: 21px; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 2px; }

/* ---------- Empty / loading ---------- */
.empty { text-align: center; color: var(--text-faint); padding: 48px 20px; }
.empty .ic { width: 54px; height: 54px; border-radius: 15px; background: var(--surface-2); border: 1px solid var(--border-soft); display: grid; place-items: center; margin: 0 auto 14px; color: var(--text-dim); }
.empty .ic svg { width: 25px; height: 25px; }
.empty h4 { margin: 0 0 4px; color: var(--text-dim); font-size: 15px; font-weight: 650; }
.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 10px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.spin:empty { display: inline-block; width: 13px; height: 13px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; vertical-align: -2px; }

/* Disabled buttons must read as disabled (was invisible before). */
.btn:disabled, .btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn:disabled:hover { background: inherit; }

/* Live "working now" indicator. */
.live-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 650; color: var(--green); background: rgba(18,165,116,.12); padding: 3px 9px; border-radius: 999px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: livepulse 1.7s infinite; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(18,165,116,.5); } 70% { box-shadow: 0 0 0 7px rgba(18,165,116,0); } 100% { box-shadow: 0 0 0 0 rgba(18,165,116,0); } }

/* Check-in "already done" pills. */
.clock-actions .punch-done { flex: 1; }
.punch-done { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 650; font-size: 14px; padding: 13px 18px; border-radius: 12px; }
.punch-done.ok { color: var(--green); background: rgba(18,165,116,.10); border: 1px solid rgba(18,165,116,.26); }
.clock-done-note { margin-top: 14px; font-size: 13px; color: var(--text-dim); font-weight: 550; display: flex; align-items: center; gap: 7px; }

/* "Active now" panel on the Attendly overview. */
.active-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border-soft); }
.active-row:last-child { border-bottom: none; }
.active-meta { display: flex; align-items: center; gap: 10px; font-size: 12.5px; }
.active-since { font-weight: 700; color: var(--green); font-variant-numeric: tabular-nums; }
.notin-wrap { margin-top: 14px; padding-top: 13px; border-top: 1px dashed var(--border); }
.notin-label { font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--text-faint); font-weight: 650; margin-bottom: 9px; }
.notin-list { display: flex; flex-wrap: wrap; gap: 10px 16px; }
.notin-list .notin-chip { opacity: .65; }

/* ---------- Forms ---------- */
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-dim); margin-bottom: 6px; }
.input, select.input, textarea.input { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 14px; font-family: inherit; transition: .15s; }
.input::placeholder { color: var(--text-faint); }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.input:hover:not(:focus) { border-color: var(--text-faint); }
textarea.input { resize: vertical; min-height: 72px; }
select.input { -webkit-appearance: none; appearance: none; padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; cursor: pointer; }
.field-hint { font-size: 11.5px; color: var(--text-faint); margin-top: 5px; line-height: 1.4; }
.input-adorn { position: relative; }
.input-adorn .adorn { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-dim); font-size: 14px; font-weight: 600; pointer-events: none; }
.input-adorn .input { padding-left: 25px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { width: 28px; height: 28px; border-radius: 9px; cursor: pointer; border: 2px solid transparent; transition: .12s; }
.swatch.active { border-color: var(--text); transform: scale(1.08); }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.toolbar .input, .toolbar select.input { width: auto; min-width: 150px; }
.toolbar .spacer { flex: 1; }

/* ---------- Toast ---------- */
.toast-host { position: fixed; right: 24px; bottom: 24px; display: flex; flex-direction: column; gap: 10px; z-index: 1000; }
.toast { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--brand); color: var(--text); padding: 13px 16px; border-radius: 12px; box-shadow: var(--shadow-lg); font-weight: 550; font-size: 13.5px; min-width: 220px; max-width: 340px; animation: toastin .3s cubic-bezier(.2,.8,.2,1); }
.toast.ok { border-left-color: var(--green); }
.toast.err { border-left-color: var(--red); }
.toast.warn { border-left-color: var(--amber); }
@keyframes toastin { from { opacity: 0; transform: translateX(20px); } }

/* ---------- Modal ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(16, 24, 40, .42); backdrop-filter: blur(5px); display: grid; place-items: center; z-index: 900; padding: 20px; animation: fade .2s; }
[data-theme="dark"] .modal-back { background: rgba(3, 5, 8, .62); }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(520px, 96vw); max-height: 90vh; overflow: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); animation: pop .24s cubic-bezier(.2,.9,.3,1.2); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.modal-head { display: flex; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--border-soft); }
.modal-head h3 { margin: 0; font-size: 16.5px; font-weight: 650; flex: 1; }
.modal-body { padding: 22px; }
.modal-foot { padding: 16px 22px; border-top: 1px solid var(--border-soft); display: flex; gap: 10px; justify-content: flex-end; }

/* ---------- Misc ---------- */
.legend { display: flex; gap: 16px; flex-wrap: wrap; }
.legend .li { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-dim); font-weight: 500; }
.legend .sw { width: 10px; height: 10px; border-radius: 3px; }
.kv { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border-soft); font-size: 13.5px; }
.kv:last-child { border-bottom: 0; }
.kv .k { color: var(--text-faint); }
.kv .v { font-weight: 650; font-variant-numeric: tabular-nums; }
.scrim { position: fixed; inset: 0; background: rgba(16, 24, 40, .4); z-index: 55; opacity: 0; pointer-events: none; transition: .2s; }
.scrim.show { opacity: 1; pointer-events: auto; }
.tag-off { color: var(--text-faint); }
.muted { color: var(--text-faint); }
.mono { font-variant-numeric: tabular-nums; }

/* ---------- Monthly matrix ---------- */
.matrix-wrap { overflow-x: auto; }
table.matrix { border-collapse: separate; border-spacing: 2px; font-size: 12px; }
table.matrix th, table.matrix td { text-align: center; min-width: 26px; height: 30px; padding: 0; }
table.matrix th { color: var(--text-faint); font-weight: 600; font-size: 11px; }
table.matrix th.name, table.matrix td.name { text-align: left; padding: 6px 12px; min-width: 180px; position: sticky; left: 0; background: var(--surface); z-index: 2; }
table.matrix td .cell { width: 100%; height: 100%; display: grid; place-items: center; font-weight: 700; font-size: 11px; border-radius: 6px; }
.cell.P { color: var(--green); background: var(--green-soft); }
.cell.L { color: var(--amber); background: var(--amber-soft); }
.cell.H { color: var(--cyan); background: var(--cyan-soft); }
.cell.R { color: var(--violet); background: var(--violet-soft); }
.cell.A { color: var(--red); background: var(--red-soft); }
.cell.V { color: var(--brand); background: var(--brand-soft); }
.cell.O { color: var(--text-faint); background: var(--surface-3); }
table.matrix th.off { color: var(--text-faint); }
table.matrix td.off .cell, table.matrix td.off { background: var(--surface-2); border-radius: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .cols-3 { grid-template-columns: 1fr; }
  .clock-hero { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .login-screen { grid-template-columns: 1fr; }
  .login-aside { display: none; }
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; width: 280px; transform: translateX(-100%); transition: transform .25s; box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: translateX(0); }
  .only-mobile { display: grid; }
  .content { padding: 18px 16px 60px; }
  .topbar { padding: 14px 16px; }
  .range-pills { display: none; }
  .cols-4, .cols-2 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .job-grid { grid-template-columns: 1fr !important; }
  .jmeta { grid-template-columns: 1fr !important; }
}

/* ---------- Module sub-nav (tabs) ---------- */
.subnav { display: flex; gap: 4px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 4px; margin-bottom: 18px; flex-wrap: wrap; }
.subnav button { border: 0; background: transparent; color: var(--text-dim); font-weight: 600; font-size: 13px; padding: 8px 14px; border-radius: 9px; display: inline-flex; align-items: center; gap: 7px; transition: .15s; }
.subnav button svg { width: 15px; height: 15px; }
.subnav button:hover { color: var(--text); }
.subnav button.active { background: var(--surface); color: var(--brand); box-shadow: var(--shadow); }

/* ---------- Module cards (home) ---------- */
.module-card { display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden; transition: transform .18s, box-shadow .18s; }
.module-card.clickable { cursor: pointer; }
.module-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.module-card .m-ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: #fff; }
.module-card .m-ic svg { width: 23px; height: 23px; }
.module-card h3 { margin: 0; font-size: 16px; }
.module-card .m-desc { color: var(--text-dim); font-size: 13px; line-height: 1.5; flex: 1; }
.module-card .m-foot { display: flex; align-items: center; gap: 8px; }
.tag { font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 6px; text-transform: uppercase; letter-spacing: .4px; }
.tag.live { color: var(--green); background: var(--green-soft); }
.tag.soon { color: var(--text-faint); background: var(--surface-3); }

/* ---------- Job cards (Upwork Radar) ---------- */
.job-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap: 16px; }
.job-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); border-top: 3px solid var(--jc, var(--brand)); display: flex; flex-direction: column; gap: 12px; transition: box-shadow .18s; }
.job-card:hover { box-shadow: var(--shadow-md); }
.job-card.hidden-job { opacity: .55; }
.job-top { display: flex; align-items: flex-start; gap: 10px; }
.job-title { font-weight: 700; font-size: 16.5px; line-height: 1.4; letter-spacing: -.005em; color: var(--text); flex: 1; }
.job-title a { color: inherit; }
.job-title a:hover { color: var(--brand); }
.job-when { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--text-faint); font-weight: 550; margin-top: 6px; }
.job-when svg { flex: none; }
.profile-chip { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 650; padding: 4px 11px; border-radius: 20px; background: var(--surface-3); color: var(--text-dim); letter-spacing: .01em; }
.profile-chip .pdot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.score-badge { flex: none; width: 54px; height: 54px; border-radius: 13px; display: grid; place-items: center; font-weight: 800; font-size: 18px; color: #fff; line-height: 1; text-align: center; }
.score-badge small { display: block; font-size: 8px; font-weight: 700; opacity: .85; letter-spacing: .5px; }
.score-strong { background: linear-gradient(150deg, #17b886, #0c8f6c); }
.score-good { background: linear-gradient(150deg, #f0b429, #d98a0b); }
.score-fair { background: linear-gradient(150deg, #f08a3c, #e5662b); }
.jmeta { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.jmeta .col { background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: 12px; padding: 12px 14px; }
.jmeta .col .lbl { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--text-faint); margin-bottom: 8px; }
.jmeta .col .line { font-size: 13px; color: var(--text-dim); display: flex; align-items: center; gap: 7px; margin-top: 6px; line-height: 1.35; }
.jmeta .col .line:first-of-type { margin-top: 0; }
.jmeta .col .line svg { width: 13px; height: 13px; flex: none; color: var(--text-faint); }
.jmeta .col .big { font-size: 16px; font-weight: 750; color: var(--text); }
.job-ai { background: var(--brand-soft); color: var(--brand-ink); border-radius: 10px; padding: 8px 11px; font-size: 12.5px; font-weight: 550; display: flex; gap: 7px; }
[data-theme="dark"] .job-ai { color: var(--brand-2); }
.job-desc { font-size: 12.5px; color: var(--text-dim); line-height: 1.55; }
.job-foot { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 4px; }

/* ---------- Run banner + toggle ---------- */
.banner { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; font-size: 13.5px; font-weight: 550; border: 1px solid var(--border); }
.banner svg { flex: none; }
.banner.mock { background: var(--amber-soft); color: var(--amber); border-color: transparent; }
.banner.live { background: var(--green-soft); color: var(--green); border-color: transparent; }
.banner.info { background: var(--cyan-soft); color: var(--cyan); border-color: transparent; }
.toggle { position: relative; width: 44px; height: 25px; border-radius: 20px; background: var(--surface-3); border: 1px solid var(--border); cursor: pointer; transition: .2s; flex: none; }
.toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 19px; height: 19px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: .2s; }
.toggle.on { background: var(--brand); border-color: var(--brand); }
.toggle.on::after { transform: translateX(19px); }
.toggle-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-soft); }
.toggle-row:last-child { border-bottom: 0; }
.toggle-row .tt { flex: 1; }
.toggle-row .tt .t1 { font-weight: 650; font-size: 13.5px; }
.toggle-row .tt .t2 { font-size: 12px; color: var(--text-faint); margin-top: 2px; }
.cred-row { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 7px 0; }
.cred-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.cred-dot.set { background: var(--green); } .cred-dot.unset { background: var(--text-faint); }

/* ---------- Ultron (AI platform) ---------- */
.ultron-head { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-radius: var(--radius); margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(12,143,108,.14), rgba(109,94,240,.10)); border: 1px solid var(--border); }
[data-theme="dark"] .ultron-head { background: linear-gradient(135deg, rgba(25,184,136,.16), rgba(139,125,245,.12)); }
.ultron-mark { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: #fff; flex: none;
  background: linear-gradient(135deg, var(--brand-2), var(--brand)); box-shadow: 0 6px 18px var(--brand-glow); }
.ultron-head h2 { margin: 0; font-size: 18px; } .ultron-head .sub { color: var(--text-dim); font-size: 12.5px; }
.model-badge { font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: 20px; background: var(--surface-3); color: var(--text-dim); text-transform: uppercase; letter-spacing: .4px; }
.model-badge.flash { color: var(--cyan); background: var(--cyan-soft); }
.model-badge.pro { color: var(--violet); background: var(--violet-soft); }
.studio { display: grid; grid-template-columns: 1fr 1.1fr; gap: 16px; align-items: start; }
@media (max-width: 1000px) { .studio { grid-template-columns: 1fr; } }
.studio textarea.job { min-height: 230px; font-size: 13.5px; line-height: 1.55; }
.studio .actions { display: flex; gap: 10px; margin-top: 12px; }
.studio .actions .btn { flex: 1; }
.ai-output { min-height: 280px; }

/* ---- Grok-style studio ---- */
.studio.grok { position: relative; }
.studio.grok::before { content: ''; position: absolute; left: 0; right: 0; top: -50px; height: 280px; pointer-events: none; z-index: 0;
  background: radial-gradient(45% 70% at 18% 0%, rgba(25,184,136,.12), transparent 70%), radial-gradient(45% 70% at 88% 8%, rgba(139,125,245,.11), transparent 70%); filter: blur(8px); }
[data-theme="light"] .studio.grok::before { opacity: .55; }
.studio.grok > * { position: relative; z-index: 1; }

.composer { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 16px; box-shadow: var(--shadow-md); }
.composer-top { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 13px; }
.composer-top .cmp-field label { display: block; font-size: 11.5px; font-weight: 600; color: var(--text-dim); margin-bottom: 6px; }
.composer-top .cmp-field label span { color: var(--text-faint); font-weight: 500; }
.composer-box { position: relative; border: 1px solid var(--border); border-radius: 15px; background: var(--surface-2); overflow: hidden; transition: border-color .18s, box-shadow .18s; }
.composer-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft), 0 14px 40px -16px var(--brand-glow); }
.composer-box textarea { width: 100%; border: none; background: transparent; color: var(--text); resize: none; min-height: 230px; padding: 16px 16px 8px; font-size: 14px; line-height: 1.62; font-family: inherit; outline: none; display: block; }
.composer-box textarea::placeholder { color: var(--text-faint); }
.composer-bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-top: 1px solid var(--border-soft); background: var(--surface); }
.composer-bar .cmp-hint { font-size: 11.5px; color: var(--text-faint); display: flex; align-items: center; gap: 6px; font-weight: 550; white-space: nowrap; }
.composer-bar .cmp-hint svg { color: var(--brand); }
.cmp-send { background: linear-gradient(135deg, var(--brand-2), var(--brand)); border: none; box-shadow: 0 6px 18px -6px var(--brand-glow); }
.cmp-send:hover { filter: brightness(1.06); }
@media (max-width: 560px) {
  .composer-top { grid-template-columns: 1fr; }
  .composer-bar { flex-wrap: wrap; }
  .composer-bar .cmp-hint { width: 100%; }
  .composer-bar .btn { flex: 1; }
}

.grok-out { min-height: 430px; border-radius: 18px; padding: 22px; background:
  radial-gradient(120% 70% at 50% -10%, rgba(25,184,136,.05), transparent 60%), var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-md); }
.grok-ready { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 380px; gap: 6px; }
.grok-orb { width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; color: #fff; margin-bottom: 10px;
  background: linear-gradient(135deg, var(--brand-2), var(--brand)); box-shadow: 0 0 0 8px var(--brand-soft), 0 18px 48px -10px var(--brand-glow); animation: orbpulse 3.2s ease-in-out infinite; }
@keyframes orbpulse {
  0%, 100% { transform: translateY(0); box-shadow: 0 0 0 8px var(--brand-soft), 0 18px 48px -10px var(--brand-glow); }
  50% { transform: translateY(-5px); box-shadow: 0 0 0 13px var(--brand-soft), 0 26px 60px -8px var(--brand-glow); }
}
.grok-ready h3 { font-size: 19px; margin: 4px 0 0; }
.grok-ready p { color: var(--text-dim); font-size: 13.5px; max-width: 330px; margin: 0; line-height: 1.6; }
.think { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 50px 20px; color: var(--text-dim); }
.think .dots { display: flex; gap: 6px; }
.think .dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--brand); animation: bounce 1.2s infinite; }
.think .dots span:nth-child(2) { animation-delay: .15s; } .think .dots span:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-7px); opacity: 1; } }
.cover-text { white-space: pre-wrap; font-size: 14px; line-height: 1.7; color: var(--text); background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: 12px; padding: 18px; max-height: 460px; overflow: auto; }
.score-ring-wrap { display: flex; align-items: center; gap: 18px; }
.fit-tag { font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 20px; text-transform: capitalize; }
.fit-strong { color: var(--green); background: var(--green-soft); } .fit-good { color: var(--brand); background: var(--brand-soft); }
.fit-partial { color: var(--amber); background: var(--amber-soft); } .fit-weak { color: var(--red); background: var(--red-soft); }
.pills-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.pills-list li { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--text-dim); }
.pills-list li svg { width: 14px; height: 14px; flex: none; margin-top: 2px; }
.uprofile-card { cursor: pointer; transition: transform .15s, box-shadow .15s; }
.uprofile-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ---------- Kanban (leads) ---------- */
.kanban { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; align-items: start; }
@media (max-width: 1100px) { .kanban { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .kanban { grid-template-columns: 1fr; } }
.kan-col { background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: 12px; padding: 10px; }
.kan-head { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-dim); display: flex; align-items: center; gap: 7px; padding: 2px 4px 10px; }
.kan-count { background: var(--surface-3); color: var(--text-dim); border-radius: 20px; font-size: 11px; padding: 1px 7px; }
.kan-body { min-height: 60px; display: flex; flex-direction: column; gap: 8px; border-radius: 8px; transition: background .15s; padding: 2px; }
.kan-body.drop-on { background: var(--brand-soft); outline: 2px dashed var(--brand); outline-offset: -2px; }
.kan-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 11px; box-shadow: var(--shadow); cursor: grab; }
.kan-card:active { cursor: grabbing; }
.kan-card.dragging { opacity: .5; }
.spark { display: inline-flex; align-items: center; }


/* ============================================================
   KPI module (ported from the original KPI Tracker, same theme)
   ============================================================ */

/* ===== KPI module: base helpers Nexus lacks ===== */
.cell-user { display: flex; align-items: center; gap: 10px; }
.cell-user .nm { font-weight: 600; }
.cell-user .tt { font-size: 11px; color: var(--text-faint); }
.badge.new { color: var(--text-dim); background: var(--surface-3); }
.badge.lead { color: var(--cyan); background: var(--cyan-soft); }
.badge.responded { color: var(--cyan); background: var(--cyan-soft); }
.badge.interview { color: var(--brand); background: var(--brand-soft); }
.badge.call_booked { color: var(--brand); background: var(--brand-soft); }
.badge.won { color: var(--green); background: var(--green-soft); }
.badge.lost { color: var(--red); background: var(--red-soft); }
.badge.no_response { color: var(--amber); background: var(--amber-soft); }
.rank { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: 12px; background: var(--surface-3); color: var(--text-dim); }
.rank.r1 { background: linear-gradient(135deg,#f59e0b,#fbbf24); color:#000; }
.rank.r2 { background: linear-gradient(135deg,#94a3b8,#cbd5e1); color:#000; }
.rank.r3 { background: linear-gradient(135deg,#b45309,#d97706); color:#fff; }
.pill-tag { display:inline-flex; align-items:center; gap:6px; font-size:11.5px; font-weight:600; color:var(--text-dim); background:var(--surface-3); padding:3px 9px; border-radius:8px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.form-grid .field { margin-bottom: 0; }
.field.full { grid-column: 1 / -1; }
.crown { font-size: 13px; } .top-tag { font-size: 10.5px; font-weight: 700; color: var(--amber); background: var(--amber-soft); padding: 1px 7px; border-radius: 6px; }

.toast { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--brand); border-radius: 12px; padding: 12px 16px; box-shadow: var(--shadow-lg); font-size: 13px; font-weight: 550; animation: pop .2s; min-width: 220px; }
.toast.ok { border-left-color: var(--green); }
.toast.err { border-left-color: var(--red); }
.flex { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.wrap-gap { display:flex; flex-wrap:wrap; gap:10px; }
.hide { display: none !important; }
.big-num { font-variant-numeric: tabular-nums; }
.mt16 { margin-top: 16px; }
.text-green { color: var(--green); } .text-red { color: var(--red); } .text-amber { color: var(--amber); }

/* ---------- KPI submit board ---------- */
.badge.pending { color: var(--amber); background: var(--amber-soft); }
.badge.approved { color: var(--green); background: var(--green-soft); }
.badge.rejected { color: var(--red); background: var(--red-soft); }

.freq-pill { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; padding: 2px 8px; border-radius: 6px; }
.freq-pill.daily { color: var(--cyan); background: rgba(6,182,212,.14); }
.freq-pill.weekly { color: var(--brand-2); background: rgba(139,92,246,.16); }
.freq-pill.monthly { color: var(--green); background: var(--green-soft); }

.ring-txt { fill: var(--text); font-weight: 800; font-family: var(--font); }

.kboard { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 1100px) { .kboard { grid-template-columns: 1fr; } }

.kcard { display: flex; gap: 16px; align-items: flex-start; }
.kcard .ringwrap { flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.kcard .body { flex: 1; min-width: 0; }
.kcard .ktop { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.kcard .kic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.kcard .kname { font-weight: 700; font-size: 15px; }
.kcard .kmeta { display: flex; align-items: center; gap: 8px; margin: 6px 0 10px; flex-wrap: wrap; }
.kcard .weight-chip { font-size: 11px; font-weight: 650; color: var(--text-faint); background: var(--surface-3); padding: 2px 8px; border-radius: 6px; }
.kcard .ktarget { font-size: 12.5px; color: var(--text-dim); }
.kcard .ktarget b { color: var(--text); font-size: 14px; }

.submit-row { display: flex; gap: 8px; margin-top: 12px; align-items: stretch; }
.submit-row input.num { width: 92px; flex: none; text-align: center; font-weight: 700; font-size: 15px; }
.submit-row input.rmk { flex: 1; min-width: 0; }
.submit-row .btn { flex: none; }
.kcard.locked { opacity: .92; }
.locked-note { font-size: 12px; color: var(--green); display: flex; align-items: center; gap: 6px; margin-top: 10px; font-weight: 600; }
.auto-stat { display: flex; align-items: baseline; gap: 8px; margin-top: 12px; }
.auto-stat .auto-val { font-size: 22px; font-weight: 800; color: var(--text); }
.auto-stat .auto-pct { margin-left: auto; font-size: 14px; font-weight: 700; color: var(--brand); }
/* Radar job approvals */
.ap-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 650; padding: 6px 11px; border-radius: 9px; margin: 4px 0 2px; }
.ap-badge.pending { color: var(--amber); background: rgba(245, 158, 11, .12); }
.ap-badge.ok { color: var(--green); background: rgba(12, 143, 108, .12); }
.ap-badge.no { color: var(--red); background: var(--red-soft); }
.appr-card { margin-bottom: 12px; }
.appr-desc { white-space: pre-wrap; font-size: 13px; line-height: 1.55; color: var(--text-dim); margin-top: 10px; max-height: 220px; overflow: auto; }
.appr-actions { display: flex; gap: 8px; margin-top: 12px; align-items: stretch; flex-wrap: wrap; }
.appr-actions .input { flex: 1; min-width: 180px; }
/* Job detail modal (in-app Upwork-style view) */
.jd-head { display: flex; align-items: center; gap: 10px; }
.jd-title { font-size: 19px; font-weight: 750; margin: 10px 0 4px; line-height: 1.3; }
.jd-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 6px 0 8px; }
.jd-stat { background: var(--surface-2); border: 1px solid var(--border); border-radius: 11px; padding: 10px 12px; }
.jd-stat .jd-lbl { font-size: 11px; color: var(--text-faint); font-weight: 650; text-transform: uppercase; letter-spacing: .03em; }
.jd-stat .jd-val { font-size: 14px; font-weight: 700; margin-top: 4px; }
.jd-section { margin-top: 16px; }
.jd-section h3 { font-size: 13px; font-weight: 700; margin: 0 0 8px; color: var(--text-dim); }
.jd-client { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--text-dim); }
.jd-client span { display: inline-flex; align-items: center; gap: 6px; }
.jd-desc { white-space: pre-wrap; font-size: 13.5px; line-height: 1.6; color: var(--text); max-height: 320px; overflow: auto; padding-right: 6px; }
@media (max-width: 720px) { .jd-grid { grid-template-columns: 1fr 1fr; } }
.kcount { width: 96px; height: 96px; display: grid; place-items: center; font-size: 30px; font-weight: 800; border-radius: 50%; border: 3px solid var(--border); }
.ksparks { height: 26px; margin-top: 10px; }

/* ---------- Hero / gauge ---------- */
.hero { display: grid; grid-template-columns: 300px 1fr; gap: 18px; align-items: stretch; }
@media (max-width: 980px) { .hero { grid-template-columns: 1fr; } }
.gauge-card { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.gauge-card .glabel { font-size: 13px; color: var(--text-dim); font-weight: 600; margin-top: 2px; }
.hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.stat-tile { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--border-soft); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; justify-content: center; }
.stat-tile .st-top { display: flex; align-items: center; gap: 8px; color: var(--text-dim); font-size: 12.5px; font-weight: 600; }
.stat-tile .st-ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; }
.stat-tile .st-val { font-size: 26px; font-weight: 800; margin-top: 8px; letter-spacing: -.5px; }
.stat-tile .st-sub { font-size: 12px; color: var(--text-faint); margin-top: 2px; }
.streak { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--amber); }

/* ---------- KPI breakdown bars ---------- */
.kpibar { margin-bottom: 14px; }
.kpibar:last-child { margin-bottom: 0; }
.kpibar .kh { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-bottom: 7px; }
.kpibar .kh .kl { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.kpibar .kh .kr { color: var(--text-dim); font-weight: 600; font-variant-numeric: tabular-nums; }
.kpibar .kh .kr b { color: var(--text); }
.kpibar .track { height: 10px; border-radius: 20px; background: var(--surface-3); overflow: hidden; }
.kpibar .track > i { display: block; height: 100%; border-radius: 20px; transition: width .7s cubic-bezier(.2,.8,.2,1); }

/* ---------- Review queue ---------- */
.review-card { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 16px 18px; }
.review-card .rinfo { min-width: 0; }
.review-card .rname { font-weight: 700; font-size: 14.5px; display: flex; align-items: center; gap: 9px; }
.review-card .rmeta { font-size: 12.5px; color: var(--text-faint); margin-top: 3px; }
.review-card .rremark { font-size: 13px; color: var(--text-dim); margin-top: 8px; background: var(--surface-2); border-radius: 9px; padding: 8px 11px; border: 1px solid var(--border-soft); }
.review-card .rnums { text-align: center; }
.review-card .rnums .big { font-size: 22px; font-weight: 800; }
.review-card .rnums .small { font-size: 11.5px; color: var(--text-faint); }
.review-card .ract { display: flex; gap: 8px; }
.review-empty { text-align: center; padding: 56px 20px; }
.review-empty .big { font-size: 44px; }

/* ---------- Segmented control ---------- */
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--border); border-radius: 11px; padding: 3px; gap: 2px; }
.seg button { background: none; border: none; color: var(--text-dim); padding: 7px 15px; border-radius: 8px; font-weight: 650; font-size: 13px; }
.seg button.active { background: var(--brand); color: #fff; box-shadow: 0 4px 12px var(--brand-glow); }

/* ---------- Leaderboard (dashboard) ---------- */
.lb-row { padding: 11px 12px; border-radius: 12px; transition: background .15s; cursor: pointer; }
.lb-row + .lb-row { margin-top: 2px; }
.lb-row:hover { background: var(--surface-2); }
/* spotlight #1 with a slow aurora glow */
.lb-hero { position: relative; padding: 15px 15px 13px; margin-bottom: 8px; border-radius: 16px; overflow: hidden; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--brand-soft); cursor: pointer; }
.lb-hero::before {
  content: ""; position: absolute; inset: -55%; z-index: 0; pointer-events: none;
  background: conic-gradient(from 0deg, transparent 0%, var(--brand-glow) 12%, transparent 28%, var(--cyan-soft) 50%, transparent 68%, var(--brand-glow) 86%, transparent 100%);
  filter: blur(26px); opacity: .65; animation: aurora 9s linear infinite;
}
@keyframes aurora { to { transform: rotate(360deg); } }
.lb-hero > * { position: relative; z-index: 1; }
.lb-hero .lb-name { font-size: 15px; }
.top-tag { font-size: 9.5px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: var(--brand); background: var(--brand-soft); padding: 3px 7px; border-radius: 6px; vertical-align: middle; white-space: nowrap; }

/* subtle shimmer sweep across filled bars */
.lb-track > i, .kpa-track > i { position: relative; overflow: hidden; }
.lb-track > i::after, .kpa-track > i::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .38), transparent);
  transform: translateX(-120%); animation: sheen 5s ease-in-out 1.1s infinite;
}
@keyframes sheen { 0% { transform: translateX(-120%); } 40%, 100% { transform: translateX(260%); } }
@media (prefers-reduced-motion: reduce) { .lb-hero::before, .lb-track > i::after, .kpa-track > i::after { animation: none; } }
.lb-top { display: flex; align-items: center; gap: 11px; margin-bottom: 9px; }
.lb-id { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.lb-name { font-weight: 650; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.lb-name .crown { font-size: 13px; filter: saturate(1.2); }
.lb-title { font-size: 11.5px; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-pct { margin-left: auto; font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.lb-pct .sgn { font-size: 12px; color: var(--text-faint); font-weight: 700; margin-left: 1px; }
.lb-track { height: 7px; border-radius: 20px; background: var(--surface-3); overflow: hidden; }
.lb-track > i { display: block; height: 100%; border-radius: 20px; transition: width .9s cubic-bezier(.2,.8,.2,1); }

/* ---------- KPI achievement rows ---------- */
.kpa-row { padding: 12px 2px; border-bottom: 1px solid var(--border-soft); }
.kpa-row:last-child { border-bottom: 0; padding-bottom: 2px; }
.kpa-row:first-child { padding-top: 2px; }
.kpa-top { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.kpa-ic { width: 27px; height: 27px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.kpa-name { font-weight: 600; font-size: 13.5px; }
.kpa-nums { margin-left: auto; font-size: 12.5px; color: var(--text-dim); font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpa-nums b { color: var(--text); font-weight: 700; }
.kpa-pct { font-weight: 800; font-size: 13.5px; min-width: 44px; text-align: right; font-variant-numeric: tabular-nums; }
.kpa-pct.good { color: var(--green); } .kpa-pct.ok { color: var(--amber); } .kpa-pct.bad { color: var(--red); }
.kpa-track { height: 8px; border-radius: 20px; background: var(--surface-3); overflow: hidden; }
.kpa-track > i { display: block; height: 100%; border-radius: 20px; transition: width .9s cubic-bezier(.2,.8,.2,1); }

/* ---------- Attendance ---------- */
.badge.present { color: var(--green); background: var(--green-soft); }
.badge.late { color: var(--amber); background: var(--amber-soft); }
.badge.half_day { color: var(--cyan); background: var(--cyan-soft); }
.badge.remote { color: var(--violet); background: var(--violet-soft); }
.badge.absent { color: var(--red); background: var(--red-soft); }
.badge.on_leave { color: var(--text-dim); background: var(--surface-3); }
.badge.holiday { color: var(--text-dim); background: var(--surface-3); }
.badge.cancelled { color: var(--text-faint); background: var(--surface-3); }

.checkin-card { text-align: center; padding: 34px 24px; }
.checkin-clock { font-size: 56px; font-weight: 800; letter-spacing: -1.5px; font-variant-numeric: tabular-nums; line-height: 1; }
.checkin-date { color: var(--text-faint); font-size: 14px; margin-top: 6px; }
.checkin-state { margin: 22px auto 4px; font-size: 15px; color: var(--text-dim); max-width: 460px; }
.checkin-state b { color: var(--text); }
.checkin-actions { display: flex; gap: 12px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.btn.xl { padding: 15px 32px; font-size: 15px; border-radius: 13px; }
.btn.green { background: linear-gradient(135deg, var(--green), #34d399); border-color: transparent; color: #fff; box-shadow: 0 8px 20px var(--green-soft); }
.checkin-meta { display: flex; gap: 30px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.checkin-meta .m { text-align: center; }
.checkin-meta .m .v { font-size: 20px; font-weight: 750; font-variant-numeric: tabular-nums; }
.checkin-meta .m .l { font-size: 11.5px; color: var(--text-faint); margin-top: 2px; }
.remote-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-dim); margin-top: 16px; cursor: pointer; user-select: none; }
.remote-toggle input { width: 16px; height: 16px; }

.presence-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
@media (max-width: 1100px) { .presence-grid { grid-template-columns: repeat(2, 1fr); } }
.presence-tile { background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: 14px; padding: 14px 16px; }
.presence-tile .pv { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.presence-tile .pl { font-size: 12px; color: var(--text-dim); margin-top: 3px; display: flex; align-items: center; gap: 6px; }
.presence-tile .pl .dot { width: 7px; height: 7px; border-radius: 50%; }

/* ---------- Confetti ---------- */
.confetti-host { position: fixed; inset: 0; pointer-events: none; z-index: 300; overflow: hidden; }
.confetti-host i { position: absolute; top: -14px; width: 9px; height: 14px; border-radius: 2px; animation: confettiFall linear forwards; }
@keyframes confettiFall { to { transform: translate(var(--drift, 0), 106vh) rotate(var(--rot, 360deg)); opacity: .8; } }

/* ---------- Attendance heatmap ---------- */
.heatmap-wrap { overflow-x: auto; padding-bottom: 4px; }
.heatmap-months { display: flex; gap: 0; margin-bottom: 6px; font-size: 10.5px; color: var(--text-faint); width: max-content; }
.heatmap { display: grid; grid-template-rows: repeat(7, 1fr); grid-auto-flow: column; gap: 3px; width: max-content; }
.hm-cell { width: 13px; height: 13px; border-radius: 3px; background: var(--surface-3); transition: transform .1s; }
.hm-cell:hover { transform: scale(1.3); outline: 1.5px solid var(--border); position: relative; z-index: 2; }
.hm-cell.empty { opacity: .45; }
.heatmap-legend { display: flex; align-items: center; gap: 13px; margin-top: 14px; flex-wrap: wrap; font-size: 11.5px; color: var(--text-dim); }
.heatmap-legend .lk { display: inline-flex; align-items: center; gap: 5px; }
.heatmap-legend .sw { width: 11px; height: 11px; border-radius: 3px; }

/* ---------- Presence board ---------- */
.presence-board { display: grid; gap: 18px; }
.pb-title { font-size: 11.5px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 11px; }
.pb-title .c { color: var(--text-faint); font-weight: 600; }
.pb-avatars { display: flex; flex-wrap: wrap; gap: 10px; }
.pb-person { display: flex; align-items: center; gap: 10px; background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: 30px; padding: 5px 14px 5px 5px; }
.pb-person .nm { font-weight: 600; font-size: 13px; line-height: 1.1; }
.pb-person .tm { font-size: 11px; color: var(--text-faint); }
.pb-person.live .avatar { box-shadow: 0 0 0 2px var(--surface-2), 0 0 0 4px var(--green); animation: livePulse 2.2s ease-in-out infinite; }
@keyframes livePulse { 0%, 100% { box-shadow: 0 0 0 2px var(--surface-2), 0 0 0 4px var(--green); } 50% { box-shadow: 0 0 0 2px var(--surface-2), 0 0 0 5px rgba(18, 165, 116, .25); } }

/* ---------- Command palette ---------- */
.cmdk-back { position: fixed; inset: 0; background: rgba(8, 11, 16, .55); backdrop-filter: blur(6px); z-index: 200; display: flex; justify-content: center; align-items: flex-start; padding-top: 12vh; animation: fade .12s; }
.cmdk { width: min(560px, 92vw); background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; animation: pop .16s; }
.cmdk-input { width: 100%; border: 0; border-bottom: 1px solid var(--border-soft); background: transparent; color: var(--text); font-size: 16px; padding: 16px 18px; font-family: inherit; }
.cmdk-input:focus { outline: none; }
.cmdk-list { max-height: 56vh; overflow-y: auto; padding: 8px; }
.cmdk-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.cmdk-item .ci { width: 30px; height: 30px; border-radius: 8px; background: var(--surface-3); color: var(--text-dim); display: grid; place-items: center; flex: none; }
.cmdk-item .lbl { font-weight: 600; color: var(--text); font-size: 13.5px; }
.cmdk-item .sub { font-size: 11.5px; color: var(--text-faint); }
.cmdk-item.active { background: var(--brand-soft); }
.cmdk-item.active .ci { background: var(--brand); color: #fff; }
.cmdk-empty { padding: 24px; text-align: center; color: var(--text-faint); font-size: 13px; }
.cmdk-foot { padding: 9px 16px; border-top: 1px solid var(--border-soft); font-size: 11px; color: var(--text-faint); display: flex; gap: 16px; }
.kbd { font-family: ui-monospace, monospace; font-size: 10.5px; background: var(--surface-3); border: 1px solid var(--border); border-radius: 5px; padding: 1px 5px; }
.cmdk-trigger { display: inline-flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; color: var(--text-faint); font-size: 12.5px; font-weight: 500; }
.cmdk-trigger:hover { border-color: var(--brand); color: var(--text-dim); }

/* ---------- View transition ---------- */
@keyframes viewIn { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }
.content.anim { animation: viewIn .32s cubic-bezier(.2, .8, .2, 1); }

/* ---------- Sortable tables ---------- */
.th-sort { cursor: pointer; user-select: none; transition: color .12s; }
.th-sort:hover { color: var(--text); }
th.sorted-asc::after { content: " ↑"; color: var(--brand); }
th.sorted-desc::after { content: " ↓"; color: var(--brand); }

/* ---------- Notification bell ---------- */
.bell-btn { position: relative; }
.bell-badge { position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--red); color: #fff; font-size: 10px; font-weight: 800; display: none; place-items: center; line-height: 1; box-shadow: 0 0 0 2px var(--bg); }
.bell-panel { position: absolute; top: 64px; right: 24px; width: 320px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); z-index: 50; overflow: hidden; animation: pop .16s; }
.bell-head { padding: 12px 16px; font-weight: 700; font-size: 13px; border-bottom: 1px solid var(--border-soft); }
.bell-item { display: flex; gap: 11px; align-items: center; padding: 12px 16px; font-size: 13px; color: var(--text-dim); cursor: pointer; border-bottom: 1px solid var(--border-soft); transition: background .12s; }
.bell-item:last-child { border-bottom: 0; }
.bell-item:hover { background: var(--surface-2); color: var(--text); }
.bell-item .bi { width: 28px; height: 28px; border-radius: 8px; background: var(--surface-3); display: grid; place-items: center; flex: none; color: var(--text-dim); }
.bell-empty { padding: 30px 20px; text-align: center; color: var(--text-faint); font-size: 13px; }

/* ---------- Member profile modal ---------- */
.pm-head { display: flex; align-items: center; gap: 16px; }
.pm-id { flex: 1; min-width: 0; }
.pm-name { font-size: 21px; font-weight: 760; letter-spacing: -.3px; }
.pm-sub { color: var(--text-faint); font-size: 13px; margin-top: 2px; }
.pm-overall { text-align: right; }
.pm-ov { font-size: 31px; font-weight: 820; letter-spacing: -1px; }
.pm-ov span { font-size: 16px; color: var(--text-faint); font-weight: 700; }
.pm-l { font-size: 11px; color: var(--text-faint); }
.pm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
@media (max-width: 680px) { .pm-grid { grid-template-columns: 1fr; } }
.pm-card { background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: 14px; padding: 15px; }
.pm-cap { font-size: 12px; font-weight: 700; color: var(--text-dim); margin-bottom: 8px; }
.pm-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pm-stat { text-align: center; background: var(--surface); border: 1px solid var(--border-soft); border-radius: 10px; padding: 11px 8px; }
.pm-v { font-size: 21px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pm-streak { margin-top: 13px; display: flex; align-items: center; gap: 7px; font-weight: 700; color: var(--amber); font-size: 14px; }
.pm-counts { margin-top: 11px; display: flex; gap: 14px; font-size: 11.5px; color: var(--text-faint); }

/* ---------- Achievements / badges ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 9px; }
.badge-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px 6px 6px; border-radius: 30px; border: 1px solid var(--border-soft); background: var(--surface-2); font-size: 12.5px; font-weight: 650; color: var(--text); }
.badge-pill.locked { opacity: .45; }
.badge-pill .bi { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none; }
.badge-pill.locked .bi { color: var(--text-faint); }
.pm-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* ---------- Insights ---------- */
.insight { display: flex; gap: 11px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--border-soft); font-size: 13.5px; color: var(--text-dim); line-height: 1.5; }
.insight:last-child { border-bottom: 0; }
.insight .ii { width: 26px; height: 26px; border-radius: 7px; background: var(--surface-3); display: grid; place-items: center; flex: none; }

/* ---------- Activity feed ---------- */
.feed-item { display: flex; gap: 11px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border-soft); }
.feed-item:last-child { border-bottom: 0; }
.feed-item .fi { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.feed-item .ft { flex: 1; min-width: 0; }
.feed-item .fx { font-size: 13px; color: var(--text); }
.feed-item .fa { font-size: 11.5px; color: var(--text-faint); margin-top: 1px; }
.kpa-spark { width: 72px; height: 22px; margin-left: 6px; flex: none; }

/* ---------- Expandable table rows ---------- */
tr.expanded { background: var(--surface-2); }
tr[data-exp]:hover { background: var(--surface-2); }
.exp-row > td { padding: 0 14px 14px; background: var(--surface-2); border-top: 0; }
.exp-detail { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 24px; padding: 13px 15px; background: var(--surface); border: 1px solid var(--border-soft); border-radius: 10px; font-size: 12.5px; color: var(--text-dim); animation: viewIn .2s; }
.exp-detail .exfull { grid-column: 1 / -1; }
.exp-detail .exl { color: var(--text-faint); font-weight: 600; margin-right: 6px; }
@media (max-width: 700px) { .exp-detail { grid-template-columns: 1fr; } }

/* ---------- Compare ---------- */
.cmp-head { display: flex; align-items: center; justify-content: center; gap: 16px; }
.cmp-vs { font-weight: 800; color: var(--text-faint); font-size: 13px; }
.cmp-card { text-align: center; }
.cmp-card .avatar { margin: 0 auto 10px; }
.cmp-name { font-weight: 700; font-size: 16px; }
.cmp-big { font-size: 38px; font-weight: 820; letter-spacing: -1px; margin: 8px 0 4px; }
.cmp-big span { font-size: 18px; color: var(--text-faint); }
.cmp-mini { display: flex; justify-content: center; gap: 26px; margin-top: 16px; }
.cmp-mi { text-align: center; }
.cmp-mi .v { font-size: 18px; font-weight: 750; }
.cmp-mi .l { font-size: 11px; color: var(--text-faint); }
.cmp-win { color: var(--green); font-weight: 800; }
.cmp-arrow { color: var(--green); font-size: 9px; }

/* ---------- Lead kanban ---------- */
.kanban { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; align-items: start; }
@media (max-width: 1100px) { .kanban { display: flex; overflow-x: auto; padding-bottom: 6px; } .kanban-col { min-width: 240px; flex: none; } }
.kanban-col { background: var(--bg-2); border: 1px solid var(--border-soft); border-radius: 14px; padding: 10px; }
.kc-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 13px; padding: 4px 6px 10px; }
.kc-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.kc-count { background: var(--surface-3); color: var(--text-dim); border-radius: 20px; font-size: 11px; padding: 1px 8px; font-weight: 700; }
.kc-list { display: flex; flex-direction: column; gap: 8px; min-height: 60px; border-radius: 10px; transition: background .12s; }
.kc-list.drop-over { background: var(--brand-soft); outline: 2px dashed var(--brand); outline-offset: -2px; }
.kanban-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: 11px; padding: 11px; cursor: grab; box-shadow: var(--shadow); }
.kanban-card:active { cursor: grabbing; }
.kanban-card.dragging { opacity: .4; }
.kc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.kc-client { font-weight: 650; font-size: 13px; }
.kc-meta { display: flex; align-items: center; gap: 7px; font-size: 12px; }
.kc-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 9px; min-height: 16px; }
.kc-val { font-weight: 700; font-size: 12.5px; color: var(--green); }
.kc-resp { font-size: 11px; color: var(--text-faint); }
.kc-empty { text-align: center; color: var(--text-faint); font-size: 12px; padding: 14px 0; }
.kc-total { text-align: center; font-size: 11.5px; color: var(--text-dim); font-weight: 700; margin-top: 9px; padding-top: 8px; border-top: 1px solid var(--border-soft); }

/* ---------- Coaching ---------- */
.coach-item { display: flex; gap: 9px; align-items: flex-start; padding: 7px 0; font-size: 13px; color: var(--text-dim); }
.coach-item .ci { width: 22px; height: 22px; border-radius: 6px; background: var(--surface); display: grid; place-items: center; flex: none; }
.coach-tp { display: flex; gap: 11px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--border-soft); font-size: 13.5px; }
.coach-tp:last-child { border-bottom: 0; }
.coach-tp .tpn { width: 22px; height: 22px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 800; font-size: 12px; display: grid; place-items: center; flex: none; }

/* ---------- Mobile nav (replaces the hidden sidebar) ---------- */
.mnav { display: none; }
@media (max-width: 880px) {
  .app { grid-template-columns: 1fr; }
  /* Sidebar becomes a slide-in drawer (opened by the hamburger). */
  .sidebar { position: fixed; left: 0; top: 0; height: 100vh; width: 280px; transform: translateX(-100%); transition: transform .25s; box-shadow: var(--shadow-lg); z-index: 60; }
  .sidebar.open { transform: translateX(0); }
  .only-mobile { display: grid; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .topbar { padding: 14px 16px; gap: 10px; }
  .page-title p { display: none; }
  .range-pills button { padding: 6px 9px; }
  .content { padding: 18px 16px 60px; }
  .mnav {
    display: flex; gap: 7px; overflow-x: auto; -webkit-overflow-scrolling: touch;
    padding: 11px 16px; position: sticky; top: 65px; z-index: 15;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-soft);
  }
  .mnav::-webkit-scrollbar { display: none; }
  .mnav a {
    display: flex; align-items: center; gap: 6px; white-space: nowrap;
    padding: 8px 13px; border-radius: 10px; background: var(--surface);
    border: 1px solid var(--border-soft); color: var(--text-dim);
    font-weight: 600; font-size: 12.5px;
  }
  .mnav a svg { width: 15px; height: 15px; }
  .mnav a.active { background: var(--brand); color: #fff; border-color: transparent; box-shadow: 0 4px 12px var(--brand-glow); }
}
@media (max-width: 460px) { .kpi-grid { grid-template-columns: 1fr; } }


/* ============================================================
   Pulse: premium leaderboard + KPI achievement
   ============================================================ */
@keyframes lbxIn { from { opacity: 0; transform: translateY(8px); } }

.lbx { display: flex; align-items: center; gap: 13px; padding: 11px 12px; border-radius: 14px; cursor: pointer; transition: background .15s, transform .15s; animation: lbxIn .5s cubic-bezier(.2,.8,.2,1) both; }
.lbx:hover { background: var(--surface-2); transform: translateX(2px); }
.lbx + .lbx { margin-top: 2px; }
.lbx-hero { background: linear-gradient(100deg, var(--brand-soft), transparent 72%); box-shadow: inset 0 0 0 1px var(--brand-soft); padding: 15px 14px; margin-bottom: 6px; }
.lbx-rank { width: 26px; height: 26px; flex: none; border-radius: 9px; display: grid; place-items: center; font-weight: 800; font-size: 12px; background: var(--surface-3); color: var(--text-faint); }
.lbx-rank.gold { background: linear-gradient(135deg,#fcd34d,#f59e0b); color: #3a2a00; box-shadow: 0 3px 10px rgba(245,158,11,.3); }
.lbx-rank.silver { background: linear-gradient(135deg,#eaeef4,#9aa6b6); color: #1e293b; }
.lbx-rank.bronze { background: linear-gradient(135deg,#e0a36b,#a55b1e); color: #fff; }
.lbx-id { flex: 1; min-width: 0; }
.lbx-name { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lbx-hero .lbx-name { font-size: 16px; }
.lbx-crown { font-size: 13px; }
.lbx-tag { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--brand); background: var(--brand-soft); padding: 2px 8px; border-radius: 6px; }
.lbx-title { font-size: 11.5px; color: var(--text-faint); margin-top: 1px; }
.lbx-bar { height: 5px; border-radius: 20px; background: var(--ring-track); overflow: hidden; margin-top: 9px; }
.lbx-bar > i { display: block; height: 100%; border-radius: 20px; transition: width 1s cubic-bezier(.2,.8,.2,1); }
.lbx-pct { font-size: 19px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; flex: none; line-height: 1; }
.lbx-pct .sgn { font-size: 12px; color: var(--text-faint); margin-left: 1px; font-weight: 700; }
.lbx-hero .lbx-pct { font-size: 24px; }

.kpx { display: flex; gap: 13px; padding: 14px 4px; border-bottom: 1px solid var(--border-soft); animation: lbxIn .5s cubic-bezier(.2,.8,.2,1) both; }
.kpx:last-child { border-bottom: 0; }
.kpx-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.kpx-main { flex: 1; min-width: 0; }
.kpx-top { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.kpx-name { font-weight: 650; font-size: 13.5px; white-space: nowrap; }
.kpx-spark { width: 80px; height: 24px; margin-left: 2px; display: inline-flex; align-items: center; }
.kpx-nums { margin-left: auto; font-size: 12.5px; color: var(--text-faint); font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpx-nums b { color: var(--text); font-weight: 700; }
.kpx-nums .sl { margin-left: 3px; }
.kpx-pct { font-weight: 800; font-size: 14px; min-width: 46px; text-align: right; font-variant-numeric: tabular-nums; }
.kpx-pct.good { color: var(--green); } .kpx-pct.ok { color: var(--amber); } .kpx-pct.bad { color: var(--red); }
.kpx-track { height: 7px; border-radius: 20px; background: var(--ring-track); overflow: hidden; position: relative; }
.kpx-track > i { display: block; height: 100%; border-radius: 20px; transition: width 1s cubic-bezier(.2,.8,.2,1); position: relative; }
.kpx-track > i::after { content: ""; position: absolute; inset: 0; border-radius: 20px; background: linear-gradient(180deg, rgba(255,255,255,.28), transparent 55%); }

/* ---------- Funnel (Applied -> Lead -> Call -> Conversion) ---------- */
.fn-row { display: flex; align-items: stretch; gap: 6px; flex-wrap: wrap; }
.fn-stage { position: relative; flex: 1 1 130px; min-width: 120px; background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: 14px; padding: 14px 16px; }
.fn-stage.clickable { cursor: pointer; transition: border-color .15s, transform .15s, box-shadow .15s; }
.fn-stage.clickable:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.fn-stage.clickable:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.fn-peek { position: absolute; top: 12px; right: 12px; color: var(--text-faint); opacity: 0; transition: opacity .15s; }
.fn-stage.clickable:hover .fn-peek { opacity: 1; }
.fn-stage-top { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--text-dim); }
.fn-ic { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.fn-stage-val { display: flex; align-items: baseline; gap: 8px; font-size: 30px; font-weight: 780; margin-top: 8px; font-variant-numeric: tabular-nums; }
.fn-stage-sub { font-size: 12px; color: var(--green); font-weight: 650; margin-top: 2px; }
.fn-delta { font-size: 11.5px; font-weight: 700; padding: 2px 7px; border-radius: 20px; }
.fn-delta.up { color: var(--green); background: var(--green-soft); }
.fn-delta.down { color: var(--red); background: var(--red-soft); }
.fn-delta.flat { color: var(--text-faint); background: var(--surface-3); }
.fn-arrow { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 0 2px; align-self: center; }
.fn-arrow-g { font-size: 18px; color: var(--text-faint); line-height: 1; }
.fn-rate { font-size: 11px; font-weight: 700; color: var(--text-dim); white-space: nowrap; }
@media (max-width: 760px) {
  .fn-row { flex-direction: column; }
  .fn-arrow { flex-direction: row; gap: 6px; }
  .fn-arrow-g { transform: rotate(90deg); }
}

/* ---------- Loop (team chat) ---------- */
.loop { display: flex; gap: 14px; height: calc(100vh - 215px); min-height: 460px; }
.loop-side { width: 264px; flex: none; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px; overflow-y: auto; }
.loop-side-head { display: flex; align-items: center; justify-content: space-between; font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--text-faint); font-weight: 700; padding: 0 6px 8px; }
.loop-add { background: none; border: none; color: var(--text-faint); cursor: pointer; padding: 2px; border-radius: 6px; display: grid; place-items: center; }
.loop-add:hover { color: var(--brand); background: var(--surface-3); }
.loop-list { display: flex; flex-direction: column; gap: 2px; }
.loop-item { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 9px; cursor: pointer; font-size: 13.5px; color: var(--text-dim); font-weight: 550; }
.loop-item:hover { background: var(--surface-2); }
.loop-item.active { background: var(--brand-soft); color: var(--brand); font-weight: 650; }
.loop-hash { color: var(--text-faint); font-weight: 700; width: 14px; text-align: center; }
.loop-item-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.loop-unread { background: var(--brand); color: #fff; font-size: 10.5px; font-weight: 700; border-radius: 20px; padding: 1px 7px; min-width: 18px; text-align: center; }
.loop-empty-side { color: var(--text-faint); font-size: 12px; padding: 6px 9px; }
.loop-main { flex: 1; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; min-width: 0; }
.loop-head { padding: 14px 18px; border-bottom: 1px solid var(--border-soft); flex: none; }
.loop-title { font-size: 16px; font-weight: 700; }
.loop-topic { font-size: 12.5px; color: var(--text-dim); margin-top: 2px; }
.loop-msgs { flex: 1; overflow-y: auto; padding: 12px 18px; display: flex; flex-direction: column; }
.loop-day { text-align: center; margin: 14px 0 10px; position: relative; }
.loop-day span { background: var(--surface); position: relative; z-index: 1; padding: 0 12px; font-size: 11.5px; color: var(--text-faint); font-weight: 600; }
.loop-day::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--border-soft); }
.loop-msg { display: flex; gap: 10px; padding: 3px 0; }
.loop-msg.cont { padding-left: 42px; }
.loop-mc { min-width: 0; flex: 1; }
.loop-meta { display: flex; align-items: baseline; gap: 8px; }
.loop-name { font-weight: 700; font-size: 13.5px; }
.loop-time { font-size: 11px; color: var(--text-faint); }
.loop-body { font-size: 14px; line-height: 1.5; color: var(--text); white-space: pre-wrap; word-break: break-word; }
.loop-zero { color: var(--text-faint); text-align: center; margin: auto; font-size: 13px; }
.loop-composer { flex: none; padding: 12px 16px; border-top: 1px solid var(--border-soft); }
.loop-comp-row { display: flex; gap: 10px; align-items: flex-end; }
.loop-attach { flex: none; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-dim); cursor: pointer; display: grid; place-items: center; }
.loop-attach:hover { color: var(--brand); border-color: var(--brand); }
.loop-pending { display: none; }
.loop-pending.show { display: block; margin-bottom: 8px; }
.loop-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); font-size: 12.5px; }
.loop-chip img { width: 26px; height: 26px; border-radius: 5px; object-fit: cover; }
.loop-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.loop-chip-x { background: none; border: none; color: var(--text-faint); cursor: pointer; display: grid; place-items: center; padding: 2px; }
.loop-chip-x:hover { color: var(--red); }
.loop-att-img { display: inline-block; margin-top: 4px; }
.loop-att-img img { max-width: 320px; max-height: 280px; border-radius: 10px; border: 1px solid var(--border-soft); display: block; }
.loop-att-file { display: inline-flex; align-items: center; gap: 8px; margin-top: 5px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); color: var(--text); font-size: 13px; font-weight: 550; text-decoration: none; }
.loop-att-file:hover { border-color: var(--brand); color: var(--brand); }
.loop-att-file svg { color: var(--brand); }
.loop-composer textarea { flex: 1; resize: none; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); color: var(--text); padding: 10px 12px; font-family: inherit; font-size: 14px; line-height: 1.4; max-height: 140px; outline: none; }
.loop-composer textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.loop-people { display: flex; flex-direction: column; gap: 4px; max-height: 50vh; overflow: auto; }
.loop-person { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: none; border: none; border-radius: 10px; padding: 8px 10px; cursor: pointer; color: var(--text); font-size: 14px; font-weight: 550; }
.loop-person:hover { background: var(--surface-2); }
@media (max-width: 760px) {
  .loop { flex-direction: column; height: auto; }
  .loop-side { width: auto; }
  .loop-main { height: 70vh; }
}

/* Ultron: refine an existing cover letter */
.refine-row { display: flex; gap: 8px; margin-top: 10px; }
.refine-row .input { flex: 1; }
.refine-row .btn { flex: none; }

/* ---------- Notifications ---------- */
.notif-btn { position: relative; }
.notif-dot { position: absolute; top: -3px; right: -3px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 9px; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; line-height: 1; box-shadow: 0 0 0 2px var(--surface); }
.nav-badge { margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 10.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.nav-badge[hidden] { display: none; }
.notif-panel { position: fixed; top: 62px; right: 18px; width: 300px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); z-index: 1000; overflow: hidden; animation: pop .18s; }
.notif-head { padding: 12px 14px; font-weight: 700; font-size: 13px; border-bottom: 1px solid var(--border-soft); }
.notif-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: none; border: none; padding: 11px 14px; cursor: pointer; color: var(--text); font-size: 13.5px; font-weight: 550; border-bottom: 1px solid var(--border-soft); }
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--surface-2); }
.notif-item svg { color: var(--brand); flex: none; }
.notif-empty { padding: 22px 14px; text-align: center; color: var(--text-faint); font-size: 13px; }

/* Attendly: break state */
.break-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 650; color: var(--amber); background: var(--amber-soft); padding: 3px 9px; border-radius: 999px; }
.break-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.punch-done.warn { color: var(--amber); background: rgba(245,158,11,.10); border: 1px solid rgba(245,158,11,.28); }

/* Account menu */
.acct-menu { display: flex; flex-direction: column; gap: 6px; }
.acct-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: none; border: 1px solid var(--border); border-radius: 11px; padding: 12px 14px; cursor: pointer; color: var(--text); font-size: 14px; font-weight: 600; }
.acct-item:hover { background: var(--surface-2); border-color: var(--brand); }
.acct-item.danger { color: var(--red); }
.acct-item.danger:hover { border-color: var(--red); }

/* ---------- BlackMind (LLM workspace) ---------- */
.bm-wrap { display: grid; grid-template-columns: 1fr; gap: 16px; height: calc(100vh - 150px); min-height: 460px; }
.bm-wrap.with-side { grid-template-columns: 260px 1fr; }
.bm-bar { display: flex; align-items: center; gap: 8px; padding: 9px 11px; border-bottom: 1px solid var(--border); }
.bm-icon-btn { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); color: var(--text-dim); display: grid; place-items: center; cursor: pointer; transition: .12s; }
.bm-icon-btn:hover { color: var(--text); border-color: var(--brand); }
.bm-bar-title { font-weight: 650; font-size: 13.5px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bm-webtag { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 650; color: var(--brand); background: var(--brand-glow); border-radius: 7px; padding: 3px 8px; margin-bottom: 8px; }
.bm-searching { display: inline-flex; align-items: center; gap: 6px; color: var(--text-dim); font-size: 13px; font-weight: 600; }
.bm-side { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.bm-newchat { width: 100%; justify-content: center; }
.bm-conv-list { display: flex; flex-direction: column; gap: 4px; overflow-y: auto; min-height: 0; padding-right: 2px; }
.bm-conv { display: flex; align-items: center; gap: 8px; padding: 9px 11px; border-radius: 10px; cursor: pointer; border: 1px solid transparent; color: var(--text-dim); }
.bm-conv:hover { background: var(--surface-2); color: var(--text); }
.bm-conv.active { background: var(--brand-glow); border-color: var(--brand); color: var(--text); }
.bm-conv-title { flex: 1; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bm-conv-del { opacity: 0; border: none; background: none; color: var(--text-faint); cursor: pointer; display: grid; place-items: center; transition: .12s; }
.bm-conv:hover .bm-conv-del { opacity: 1; }
.bm-conv-del:hover { color: var(--red); }
.bm-side-empty { color: var(--text-faint); font-size: 12.5px; padding: 8px 4px; }

.bm-main { display: flex; flex-direction: column; min-height: 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.bm-thread { flex: 1; overflow-y: auto; padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.bm-row { display: flex; gap: 11px; max-width: 820px; }
.bm-row.user { justify-content: flex-end; align-self: flex-end; }
.bm-row.assistant { align-self: flex-start; }
.bm-ava { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 9px; background: var(--brand-glow); color: var(--brand); display: grid; place-items: center; }
.bubble { padding: 12px 15px; border-radius: 14px; font-size: 14px; line-height: 1.6; }
.bubble.user { background: var(--brand); color: #fff; border-bottom-right-radius: 5px; white-space: pre-wrap; word-break: break-word; }
.bubble.assistant { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-bottom-left-radius: 5px; }
.bm-md > :first-child { margin-top: 0; }
.bm-md > :last-child { margin-bottom: 0; }
.bm-md p { margin: 0 0 10px; }
.bm-md .bm-h { margin: 14px 0 8px; font-size: 14.5px; font-weight: 700; }
.bm-md .bm-ul, .bm-md .bm-ol { margin: 6px 0 10px; padding-left: 20px; }
.bm-md li { margin: 3px 0; }
.bm-md .bm-ic { background: var(--surface-3); padding: 1px 6px; border-radius: 6px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
.bm-md .bm-pre { background: #0b1220; color: #e5e9f0; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; overflow-x: auto; margin: 8px 0 12px; }
.bm-md .bm-pre code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; line-height: 1.5; }
.bm-md a { color: var(--brand); text-decoration: underline; }
.bm-think { display: flex; gap: 5px; padding: 3px 2px; }
.bm-think span { width: 7px; height: 7px; border-radius: 50%; background: var(--text-faint); animation: bmpulse 1.2s infinite ease-in-out; }
.bm-think span:nth-child(2) { animation-delay: .2s; }
.bm-think span:nth-child(3) { animation-delay: .4s; }
@keyframes bmpulse { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.bm-cursor { display: inline-block; width: 8px; height: 16px; margin-left: 1px; vertical-align: text-bottom; background: var(--brand); border-radius: 2px; animation: bmblink 1s steps(2, start) infinite; }
@keyframes bmblink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }
/* attachments */
.bm-stack { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; max-width: 100%; }
.bm-att-row { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.bm-att-img { max-width: 240px; max-height: 240px; border-radius: 12px; border: 1px solid var(--border); object-fit: cover; }
.bm-att { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-dim); font-size: 12.5px; font-weight: 600; max-width: 240px; }
.bm-att svg { flex: 0 0 auto; color: var(--brand); }
.bm-pending { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 8px; }
.bm-att.pend { background: var(--brand-glow); border-color: var(--brand); color: var(--text); }
.bm-att-x { border: none; background: none; color: var(--text-faint); cursor: pointer; display: grid; place-items: center; padding: 0; margin-left: 2px; }
.bm-att-x:hover { color: var(--red); }
.bm-clip { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text-dim); cursor: pointer; display: grid; place-items: center; transition: .12s; }
.bm-clip:hover { color: var(--brand); border-color: var(--brand); }
/* per-reply actions */
.bm-actions { display: flex; gap: 4px; margin-top: 10px; opacity: 0; transition: opacity .15s; }
.bm-row.assistant:hover .bm-actions { opacity: 1; }
.bm-actions button { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--border); background: var(--surface); color: var(--text-dim); font-size: 11.5px; font-weight: 600; padding: 4px 9px; border-radius: 8px; cursor: pointer; }
.bm-actions button:hover { color: var(--text); border-color: var(--brand); }

.bm-welcome { margin: auto; text-align: center; max-width: 560px; padding: 20px; }
.bm-orb { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 18px; background: linear-gradient(160deg, var(--brand), var(--brand-2, var(--brand))); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-lg); }
.bm-welcome h2 { font-size: 22px; margin: 0 0 6px; }
.bm-welcome p { color: var(--text-dim); font-size: 13.5px; line-height: 1.6; margin: 0 0 18px; }
.bm-suggest { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bm-chip { text-align: left; padding: 10px 13px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface-2); color: var(--text-dim); font-size: 12.5px; cursor: pointer; transition: .12s; }
.bm-chip:hover { border-color: var(--brand); color: var(--text); }

.bm-composer { display: flex; align-items: flex-end; gap: 10px; padding: 12px; border-top: 1px solid var(--border); background: var(--surface); }
.bm-seg { display: flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 3px; gap: 2px; flex: 0 0 auto; }
.bm-seg button { display: flex; align-items: center; gap: 5px; border: none; background: none; color: var(--text-dim); font-size: 12.5px; font-weight: 650; padding: 6px 11px; border-radius: 8px; cursor: pointer; }
.bm-seg button.active { background: var(--brand); color: #fff; }
#bm-input { flex: 1; resize: none; border: 1px solid var(--border); border-radius: 12px; padding: 11px 13px; background: var(--bg); color: var(--text); font: inherit; font-size: 14px; line-height: 1.5; max-height: 180px; }
#bm-input:focus { outline: none; border-color: var(--brand); }
.bm-send { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px; border: none; background: var(--brand); color: #fff; cursor: pointer; display: grid; place-items: center; }
.bm-send:disabled { opacity: .5; cursor: default; }
.bm-foot { padding: 0 14px 10px; color: var(--text-faint); font-size: 11.5px; }

@media (max-width: 820px) {
  .bm-wrap { grid-template-columns: 1fr; height: auto; }
  .bm-side { flex-direction: column; }
  .bm-conv-list { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .bm-conv { flex: 0 0 auto; max-width: 200px; }
  .bm-main { height: 70vh; }
  .bm-suggest { grid-template-columns: 1fr; }
}
/* Narrow phones: model buttons take their own row so the text box keeps full width. */
@media (max-width: 600px) {
  .bm-composer { flex-wrap: wrap; }
  .bm-seg { order: 1; flex: 1 1 100%; justify-content: space-between; }
  .bm-clip { order: 2; }
  #bm-input { order: 3; flex: 1 1 auto; min-width: 0; }
  .bm-send { order: 4; }
}

/* ============================ CELEBRATIONS (Home) ============================ */
.celeb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 720px) { .celeb-grid { grid-template-columns: 1fr; gap: 18px; } }
.celeb-col { display: flex; flex-direction: column; gap: 8px; }
.celeb-head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 650;
  letter-spacing: .02em; color: var(--text-dim); text-transform: uppercase; margin-bottom: 2px; }
.celeb-head svg { color: var(--brand); }
.celeb-row { display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 12px;
  background: var(--brand-soft); }
.celeb-av { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; color: #fff; font-size: 12.5px; font-weight: 700; }
.celeb-meta { min-width: 0; flex: 1; }
.celeb-name { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.celeb-note { font-size: 12px; font-weight: 550; color: var(--text-dim); }
.celeb-when { font-size: 12px; color: var(--text-dim); margin-top: 1px; }
.celeb-pill { flex: 0 0 auto; font-size: 11.5px; font-weight: 650; padding: 4px 10px; border-radius: 999px;
  color: var(--text-dim); background: var(--surface); border: 1px solid var(--border); }
.celeb-pill.soon { color: #fff; background: var(--brand); border-color: transparent; }
.celeb-empty { font-size: 13px; color: var(--text-dim); padding: 10px 4px; }

/* ============================ VAULT ============================ */
.vault-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.vault-bar { display: flex; justify-content: flex-end; margin-bottom: 14px; }
.btn.block { width: 100%; justify-content: center; }
/* lock screen */
.vault-lock { min-height: 60vh; display: flex; align-items: center; justify-content: center; }
.vault-lock-card { width: min(420px, 94%); text-align: center; padding: 34px 30px; }
.vault-lock-ic { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 18px; display: flex;
  align-items: center; justify-content: center; color: var(--brand); background: var(--brand-soft); }
.vault-lock-card h2 { margin: 0 0 8px; font-size: 21px; }
.vault-lock-card p { margin: 0 0 18px; font-size: 13.5px; line-height: 1.5; }
.vault-lock-card .input { margin-bottom: 12px; text-align: center; }
.vault-err { margin-top: 12px; color: var(--red, #e5484d); font-size: 13px; font-weight: 550; }
/* salary card */
.vault-salary { display: flex; flex-direction: column; gap: 4px; padding: 22px 24px; }
.vault-salary.compact { flex-direction: row; align-items: center; gap: 14px; }
.vs-label { font-size: 11.5px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--text-dim); }
.vs-amount { font-size: 34px; font-weight: 780; line-height: 1.1; color: var(--text); }
.vs-amount.sm { font-size: 24px; }
.vs-meta { font-size: 13px; color: var(--text-dim); }
/* lists */
.vault-list { padding: 6px; display: flex; flex-direction: column; }
.vault-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 11px; cursor: pointer; transition: .12s; }
.vault-row:hover { background: var(--surface-2); }
.vault-row:not(:last-child) { border-bottom: 1px solid var(--border-soft); border-radius: 0; }
.vault-row:not(:last-child):hover { border-radius: 0; }
.vr-period { font-weight: 600; font-size: 14.5px; min-width: 120px; }
.vr-net { font-weight: 700; font-size: 15px; }
.vr-net small, .vr-net small { font-size: 11px; color: var(--text-dim); font-weight: 500; margin-left: 5px; }
.vr-tag { margin-left: auto; }
.vr-go { color: var(--text-dim); display: inline-flex; }
.vr-person { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.vr-name { font-weight: 600; font-size: 14px; line-height: 1.25; }
.vr-name small { display: block; font-size: 12px; color: var(--text-dim); font-weight: 500; }
.vr-sal { font-weight: 650; font-size: 14px; }
.vr-count { font-size: 12.5px; }
.vault-row.person .vr-tag { margin-left: 0; }
/* payslip detail */
.ps-sec { margin-bottom: 16px; }
.ps-h { font-size: 11.5px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 6px; }
.ps-line { display: flex; justify-content: space-between; padding: 5px 0; font-size: 14px; }
.ps-line.total { border-top: 1px solid var(--border); margin-top: 4px; padding-top: 8px; font-weight: 650; }
.ps-net { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: 12px;
  background: var(--brand-soft); font-weight: 750; font-size: 18px; color: var(--brand-ink); }
.ps-net.small { font-size: 15px; padding: 11px 14px; margin: 6px 0 4px; }
.ps-note { margin-top: 12px; font-size: 13px; color: var(--text-dim); font-style: italic; }
/* payslip form */
.pf-sec { margin: 14px 0; }
.pf-h { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 650; letter-spacing: .04em;
  text-transform: uppercase; color: var(--text-dim); margin-bottom: 8px; }
.pf-line { display: grid; grid-template-columns: 1fr 130px 34px; gap: 8px; margin-bottom: 8px; align-items: center; }
.pf-draft { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-dim); font-weight: 550; }
.pf-draft input { width: auto; }

/* ============================ FLOW (task board) ============================ */
.flow-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.flow-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
@media (max-width: 860px) { .flow-board { grid-template-columns: 1fr; } }
.flow-col { background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; padding: 10px; }
.flow-col-head { display: flex; align-items: center; gap: 8px; font-weight: 650; font-size: 13.5px; padding: 4px 6px 10px; }
.fch-dot { width: 9px; height: 9px; border-radius: 50%; }
.fch-dot.todo { background: #8a929e; } .fch-dot.doing { background: #d98a0b; } .fch-dot.done { background: var(--green); }
.fch-count { margin-left: auto; font-size: 12px; color: var(--text-dim); background: var(--surface-3); border-radius: 20px; padding: 1px 9px; font-weight: 600; }
.flow-col-body { min-height: 60px; display: flex; flex-direction: column; gap: 9px; border-radius: 10px; transition: .12s; }
.flow-col-body.drop-on { background: var(--brand-soft); outline: 2px dashed var(--brand); outline-offset: -2px; }
.flow-empty { font-size: 12.5px; color: var(--text-dim); text-align: center; padding: 18px 8px; opacity: .7; }
.flow-card { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--pc, var(--brand));
  border-radius: 11px; padding: 11px 12px; cursor: pointer; transition: .12s; box-shadow: var(--shadow-sm, 0 1px 2px rgba(0,0,0,.04)); }
.flow-card:hover { border-color: var(--brand); transform: translateY(-1px); }
.flow-card.dragging { opacity: .45; }
.fc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.fc-prio { font-size: 10.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.fc-cmt { font-size: 11.5px; color: var(--text-dim); display: inline-flex; align-items: center; gap: 3px; }
.fc-title { font-size: 14px; font-weight: 560; line-height: 1.35; color: var(--text); }
.fc-foot { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.flow-av { border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff;
  font-size: 11px; font-weight: 700; flex: 0 0 auto; }
.flow-av.none { background: var(--surface-3); color: var(--text-dim); }
.flow-due { font-size: 11.5px; color: var(--text-dim); display: inline-flex; align-items: center; gap: 4px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 20px; padding: 2px 8px; }
.flow-due.over { color: #e5484d; border-color: #e5484d55; background: #e5484d12; font-weight: 600; }
/* detail modal */
.flow-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.fm-chip { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; border: 1px solid; border-radius: 20px; padding: 3px 10px; }
.fm-pills { display: inline-flex; gap: 4px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 3px; margin-left: auto; }
.flow-spill { border: 0; background: transparent; color: var(--text-dim); font-weight: 600; font-size: 12.5px; padding: 5px 11px; border-radius: 7px; cursor: pointer; }
.flow-spill.active { background: var(--surface); color: var(--brand); box-shadow: var(--shadow); }
.flow-spill:disabled { cursor: default; opacity: .6; }
.flow-detrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.fd-label { font-size: 10.5px; font-weight: 650; letter-spacing: .03em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 4px; }
.fd-val { font-size: 13.5px; font-weight: 550; display: flex; align-items: center; gap: 6px; }
.flow-desc { background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: 10px; padding: 12px 14px;
  font-size: 13.5px; line-height: 1.55; color: var(--text); margin-bottom: 16px; white-space: pre-wrap; }
.flow-cmt-head { font-size: 11.5px; font-weight: 650; letter-spacing: .03em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 10px; }
.flow-cmts { display: flex; flex-direction: column; gap: 12px; max-height: 260px; overflow-y: auto; margin-bottom: 12px; }
.flow-cmt { display: flex; gap: 10px; }
.fcm-body { flex: 1; min-width: 0; }
.fcm-head { display: flex; align-items: baseline; gap: 8px; font-size: 13px; }
.fcm-head .muted { font-size: 11.5px; }
.fcm-text { font-size: 13.5px; line-height: 1.5; color: var(--text); margin-top: 2px; }
.flow-cmt-add { display: flex; gap: 8px; align-items: flex-end; }
.flow-cmt-add textarea { resize: none; min-height: 38px; }
.btn.ghost.danger { color: #e5484d; }

/* Flow: multi-assign picker (owner) */
.tf-people { display: flex; flex-direction: column; gap: 2px; max-height: 200px; overflow-y: auto;
  border: 1px solid var(--border); border-radius: 10px; padding: 6px; background: var(--surface-2); }
.tf-person { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 8px; cursor: pointer; font-size: 13.5px; }
.tf-person:hover { background: var(--surface-3); }
.tf-person input { width: auto; flex: 0 0 auto; }
.tf-person.all { border-bottom: 1px solid var(--border-soft); border-radius: 0; margin-bottom: 2px; }

/* Vault: payroll summary tiles + owner settings */
.vault-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 16px 0; }
@media (max-width: 720px) { .vault-tiles { grid-template-columns: 1fr; } }
.vault-tile { background: var(--surface); border: 1px solid var(--border); border-radius: 13px; padding: 15px 16px; }
.vault-tile.green { border-left: 3px solid var(--green); }
.vault-tile.red { border-left: 3px solid #e5484d; }
.vt-label { font-size: 11px; font-weight: 650; letter-spacing: .03em; text-transform: uppercase; color: var(--text-dim); }
.vt-value { font-size: 22px; font-weight: 760; line-height: 1.15; margin: 5px 0 3px; }
.vt-value small { font-size: 14px; color: var(--text-dim); font-weight: 600; }
.vt-sub { font-size: 12px; color: var(--text-dim); }
.vault-settings { display: flex; align-items: center; gap: 22px; padding: 14px 18px; margin-bottom: 14px; flex-wrap: wrap; }
.vsx-item { display: flex; flex-direction: column; gap: 2px; }
.vsx-label { font-size: 11px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--text-dim); }
.vsx-val { font-size: 16px; font-weight: 700; }
.vault-settings .btn { margin-left: auto; }

/* Leave request: paid-leave hint / unpaid-only banner */
.lv-note { background: #e5484d12; border: 1px solid #e5484d40; color: var(--text); border-radius: 10px;
  padding: 11px 13px; font-size: 13px; line-height: 1.5; margin-bottom: 14px; }
.lv-hint { font-size: 12.5px; color: var(--text-dim); margin-bottom: 12px; }

/* Radar: one-time "New" badge */
.new-pill { display: inline-block; margin-left: 8px; vertical-align: middle; font-size: 10.5px;
  font-weight: 750; letter-spacing: .02em; color: #fff; background: #e5484d; border-radius: 999px;
  padding: 2px 8px; box-shadow: 0 0 0 0 rgba(229, 72, 77, .5); animation: newpulse 1.8s ease-out infinite; }
@keyframes newpulse {
  0% { box-shadow: 0 0 0 0 rgba(229, 72, 77, .5); }
  70% { box-shadow: 0 0 0 6px rgba(229, 72, 77, 0); }
  100% { box-shadow: 0 0 0 0 rgba(229, 72, 77, 0); }
}

/* Attendance: check-in device chip (phone / laptop) */
.dev-row { margin-top: 4px; }
.dev-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 550;
  color: var(--text-dim); background: var(--surface-3); border-radius: 20px; padding: 2px 8px; white-space: nowrap; }
.dev-chip svg { width: 12px; height: 12px; opacity: .85; }

/* ============================ PULSE INSIGHTS ============================ */
.ins-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.ins-ranges { flex-wrap: wrap; }
.ins-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 18px; }
@media (max-width: 900px) { .ins-tiles { grid-template-columns: repeat(2, 1fr); } }
.ins-tile { text-align: left; cursor: pointer; background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--c, var(--brand)); border-radius: 13px; padding: 13px 15px; transition: .14s; }
.ins-tile:hover { transform: translateY(-1px); border-color: var(--c, var(--brand)); }
.ins-tile.on { box-shadow: 0 0 0 1px var(--c), 0 6px 18px -8px var(--c); background: color-mix(in srgb, var(--c) 7%, var(--surface)); }
.it-l { font-size: 11px; font-weight: 650; letter-spacing: .03em; text-transform: uppercase; color: var(--text-dim); }
.it-v { font-size: 24px; font-weight: 770; line-height: 1.1; margin-top: 4px; color: var(--text); }
.ins-hero { text-align: center; padding: 8px 0 4px; }
.ins-big { font-size: 46px; font-weight: 800; line-height: 1; }
.ins-hero .muted { font-size: 13px; margin-top: 6px; }

/* Radar: per-user feed chips with mute toggle */
.feed-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.feed-chip { display: inline-flex; align-items: center; gap: 4px; padding: 5px 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px; font-size: 13px; font-weight: 600; transition: .14s; }
.feed-chip.muted { opacity: .5; }
.feed-chip.active { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.fd-pick { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent;
  cursor: pointer; padding: 2px 4px 2px 6px; border-radius: 999px; font: inherit; color: inherit; }
.fd-pick:disabled { cursor: default; }
.fd-pick:not(:disabled):hover { color: var(--brand); }
.fd-clear { display: inline-flex; align-items: center; gap: 5px; border: 1px dashed var(--border);
  background: transparent; color: var(--text-dim); font-size: 12.5px; font-weight: 600; padding: 8px 13px;
  border-radius: 999px; cursor: pointer; }
.fd-clear:hover { color: var(--text); border-color: var(--text-dim); }
.fd-dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
.feed-chip.muted .fd-dot { background: var(--text-dim) !important; }
.fd-name { color: var(--text); }
.fd-count { font-size: 11px; font-weight: 700; color: #fff; background: var(--red); border-radius: 999px; padding: 1px 7px; }
.fd-mute { border: 0; background: var(--surface-3); color: var(--text-dim); width: 26px; height: 26px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: .14s; }
.fd-mute:hover { color: var(--text); background: var(--border); }
.feed-chip.muted .fd-mute { color: var(--amber); }

/* Funnel: clickable per-person cells (drill-down) */
.fn-cell { cursor: pointer; border-radius: 6px; transition: .12s; }
.fn-cell:hover { background: var(--brand-soft); color: var(--brand) !important; }
