/* Heart to Heart — fresh.css  (v180 "calm workspace" redesign overlay)
   Loaded LAST so it overrides app.css. Colours come from CSS variables that
   fresh-core.js writes onto <body> per theme, so the accent picker restyles
   everything. High-specificity selectors (html body / .fresh-ui) + a few
   !important only where the old rules use it. Nothing here changes behaviour. */

/* ---- token fallbacks (Forest light) so the file is coherent before JS ---- */
:root{
  --bg:#E9EBE7; --panel:#F3F4F1; --side:#F4F5F2; --card:#FFFFFF; --ink:#16201A; --muted:#6B736D;
  --line:#E2E5E0; --soft:#F1F3EF; --brand:#1C3326; --brand2:#2F5D43; --tint:#E3EEE6; --tint2:#7CB58E;
  --hero:linear-gradient(150deg,#2F5D43,#1C3326); --on-brand:#fff;
  --f-shadow:0 10px 30px -22px rgba(20,32,26,.28); --f-brandglow:0 12px 24px -14px rgba(47,93,67,.45);
  --rP:28px; --rC:22px; --rI:16px; --rF:12px; --rPill:999px;
  --ease:cubic-bezier(.22,.8,.24,1);
  --fz:14px;
}
html.fresh-ui{ --rP:28px; --rC:22px; --rI:16px; --rF:12px; --rPill:999px; --ease:cubic-bezier(.22,.8,.24,1); }

/* ---- base ---- */
html body{
  font-family:'Geist','Inter',system-ui,'Segoe UI',Roboto,sans-serif;
  background:var(--bg); color:var(--ink);
  letter-spacing:-.01em;
}
html body ::selection{ background:color-mix(in srgb,var(--tint2) 55%,transparent); }
html body *{ scrollbar-color:color-mix(in srgb,var(--ink) 20%,transparent) transparent; }
html body a{ color:var(--brand2); }
/* kill the decorative cursor dust / blobs of the old theme for a calm feel */
html body .dust-particle{ display:none!important; }

/* ====================================================================== */
/* LAYOUT FRAME                                                            */
/* ====================================================================== */
html body .shell{
  display:flex; gap:12px; padding:12px; min-height:100vh; align-items:flex-start;
  background:var(--bg); max-width:none;
}
html body .main-col{ flex:1 1 auto; min-width:0; display:flex; flex-direction:column; gap:12px; }

/* ---- sidebar: one floating rounded panel that scrolls as a whole ---- */
html body .sidebar{
  flex:0 0 252px; width:252px; position:sticky; top:12px;
  height:calc(100vh - 24px); overflow:auto; overscroll-behavior:contain;
  background:var(--side); border:1px solid var(--line); border-radius:var(--rP);
  box-shadow:var(--f-shadow); padding:18px 14px 14px; display:flex; flex-direction:column; gap:4px;
  backdrop-filter:none;
}
html body .sidebar .brand{
  display:flex; align-items:center; gap:10px; padding:4px 8px 14px; font-size:19px; font-weight:600;
  color:var(--ink); letter-spacing:-.02em; border:0;
}
html body .sidebar .brand .logo-img{ width:30px; height:30px; border-radius:9px; }
html body .sidebar nav{ display:flex; flex-direction:column; gap:2px; margin-top:4px; }
html body .nav-group{
  font-size:10.5px; font-weight:700; letter-spacing:.09em; text-transform:uppercase;
  color:var(--muted); padding:14px 10px 6px; opacity:.85;
}
html body .nav-item{
  display:flex; align-items:center; gap:11px; padding:9px 11px; border-radius:var(--rI);
  color:var(--ink); font-size:14.5px; font-weight:500; text-decoration:none; position:relative;
  transition:background .15s var(--ease), color .15s var(--ease); border:0; opacity:.9;
}
html body .nav-item span{ flex:1 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
html body .nav-item .f-ic{ width:20px; height:20px; flex:0 0 auto; opacity:.8; }
html body .nav-item:hover{ background:color-mix(in srgb,var(--ink) 4%,transparent); opacity:1; }
html body .nav-item.active{
  background:transparent; color:var(--brand2); font-weight:700; opacity:1;
}
html body .nav-item.active::before{
  content:""; position:absolute; left:-14px; top:50%; transform:translateY(-50%);
  width:3px; height:20px; border-radius:3px; background:var(--brand2);
}
html body .nav-item.active .f-ic{ opacity:1; color:var(--brand2); }
html body .nav-count{
  margin-left:auto; background:var(--ink); color:var(--card); font-size:10.5px; font-weight:700;
  min-width:19px; height:19px; padding:0 6px; border-radius:7px; display:inline-flex; align-items:center; justify-content:center;
}
html body .nav-count.nav-new{ background:var(--brand2); color:var(--on-brand); }
html body details.nav-adv{ border:0; background:transparent; }
html body details.nav-adv>summary.nav-group{ cursor:pointer; list-style:none; }
html body details.nav-adv>summary::-webkit-details-marker{ display:none; }

html body .side-meta{ display:flex; align-items:center; gap:8px; padding:12px 10px 4px; margin-top:auto; }
html body .side-ver{ font-size:11px; color:var(--muted); background:color-mix(in srgb,var(--ink) 5%,transparent); padding:3px 9px; border-radius:var(--rPill); }
html body .side-admin{ font-size:12.5px; color:var(--ink); text-decoration:none; }
html body .side-user{
  display:flex; align-items:center; gap:10px; padding:11px; margin:6px 2px;
  background:var(--card); border:1px solid var(--line); border-radius:var(--rI);
}
html body .side-user-img{ width:38px; height:38px; border-radius:50%; object-fit:cover; }
html body .side-user-ph{ display:inline-flex; align-items:center; justify-content:center; background:var(--tint); color:var(--brand2); font-weight:700; font-size:14px; }
html body .side-user-lbl{ font-size:10.5px; color:var(--muted); }
html body .side-user-name{ font-weight:600; font-size:13.5px; }
html body .side-user-date{ font-size:11px; color:var(--muted); }

/* sidebar brand card + swatches + foot */
html body .sidebar-foot{ display:flex; flex-direction:column; gap:7px; padding:6px 2px 2px; border:0; }
html body .foot-btn{
  display:flex; align-items:center; gap:9px; padding:9px 12px; border-radius:var(--rPill);
  background:transparent; border:1.5px solid var(--line); color:var(--ink); font-size:13px; font-weight:500;
  cursor:pointer; transition:background .15s var(--ease); width:100%;
}
html body .foot-btn:hover{ background:color-mix(in srgb,var(--ink) 4%,transparent); }
html body .foot-btn .f-ic{ width:17px; height:17px; }
html body .fresh-swatches{ display:flex; gap:7px; flex-wrap:wrap; padding:8px 4px 4px; }
html body .fresh-swatch{
  width:24px; height:24px; border-radius:7px; background:var(--sw); border:0; cursor:pointer; padding:0;
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.08); transition:transform .15s var(--ease);
}
html body .fresh-swatch:hover{ transform:translateY(-1px) scale(1.05); }
html body .fresh-swatch.on{ box-shadow:0 0 0 2px var(--ink); }

/* ====================================================================== */
/* TOP BAR                                                                 */
/* ====================================================================== */
html body .topbar{
  position:sticky; top:12px; z-index:40;
  display:flex; align-items:center; gap:12px; padding:10px 14px;
  background:var(--panel); border:1px solid var(--line); border-radius:var(--rC);
  box-shadow:var(--f-shadow); min-height:62px; backdrop-filter:none;
}
html body .topbar #pageTitle{ display:none; }   /* title moves into the page header */
html body .menu-btn{ display:none; }
html body .topbar .sync-chip{ margin-left:0; }
html body .fresh-search{
  display:flex; align-items:center; gap:9px; flex:1 1 340px; max-width:520px;
  background:var(--card); border:1px solid var(--line); border-radius:var(--rPill); padding:9px 14px; color:var(--muted);
}
html body .fresh-search .f-ic{ width:18px; height:18px; flex:0 0 auto; }
html body .fresh-search input{ border:0; background:transparent; outline:none; flex:1; font:inherit; color:var(--ink); min-width:0; }
html body .fresh-search .fresh-k{ font-size:11px; color:var(--muted); border:1px solid var(--line); border-radius:6px; padding:1px 6px; }
html body .fresh-tb-right{ display:flex; align-items:center; gap:10px; margin-left:auto; }
html body .fresh-iconbtn{
  width:46px; height:46px; border-radius:50%; background:var(--card); border:1px solid var(--line);
  display:inline-flex; align-items:center; justify-content:center; cursor:pointer; color:var(--ink); position:relative; flex:0 0 auto;
  transition:transform .12s var(--ease), background .15s var(--ease);
}
html body .fresh-iconbtn:hover{ transform:translateY(-1px); }
html body .fresh-iconbtn .f-ic{ width:21px; height:21px; }
/* v197: the badge's display:flex was beating the [hidden] attribute, so an empty red dot showed with no notifications */
html body .fresh-dot-badge[hidden]{ display:none !important; }
html body .fresh-dot-badge{ position:absolute; top:9px; right:10px; min-width:17px; height:17px; padding:0 4px; border-radius:9px; background:var(--neg); color:#fff; font-size:10px; font-weight:800; display:flex; align-items:center; justify-content:center; border:2px solid var(--panel); }
html body .fresh-me{ display:flex; align-items:center; gap:10px; padding:3px 6px 3px 3px; }
html body .fresh-me-txt{ display:flex; flex-direction:column; line-height:1.15; }
html body .fresh-me-txt b{ font-size:13.5px; font-weight:600; }
html body .fresh-me-txt span{ font-size:11.5px; color:var(--muted); }
html body .fresh-av{
  display:inline-flex; align-items:center; justify-content:center; border-radius:50%;
  background:color-mix(in srgb,var(--av,var(--brand2)) 22%, #fff); color:color-mix(in srgb,var(--av,var(--brand2)) 92%, #000);
  font-weight:700; flex:0 0 auto; object-fit:cover;
}
html body.fresh-dark .fresh-av{ background:color-mix(in srgb,var(--av,var(--brand2)) 30%, #000); color:#fff; }

/* clock-in widget pill */
html body .clock-widget{
  display:inline-flex; align-items:center; gap:8px; background:var(--brand); color:#fff;
  border-radius:var(--rPill); padding:6px 10px 6px 12px; font-size:12.5px; box-shadow:var(--f-brandglow);
}

/* ====================================================================== */
/* CONTENT PANEL + PAGE HEADER                                             */
/* ====================================================================== */
html body #main{
  background:var(--panel); border:1px solid var(--line); border-radius:var(--rP);
  box-shadow:var(--f-shadow); padding:30px; min-height:calc(100vh - 110px); overflow:visible;
}
html body .fresh-pagehead{ display:flex; align-items:flex-end; justify-content:space-between; gap:16px; flex-wrap:wrap; margin:0 0 22px; }
html body .fresh-ph-title{ font-size:44px; font-weight:500; letter-spacing:-.035em; line-height:1.02; margin:0; color:var(--ink); font-family:'Geist','Inter',sans-serif; }
html body .fresh-ph-sub{ margin:8px 0 0; color:var(--muted); font-size:15px; }

/* ====================================================================== */
/* BUTTONS (pills)                                                         */
/* ====================================================================== */
html body .btn{
  border-radius:var(--rPill); font-weight:600; font-family:inherit; letter-spacing:-.01em;
  transition:transform .12s var(--ease), box-shadow .15s var(--ease), background .15s var(--ease); border:1.5px solid transparent;
}
html body .btn:hover{ transform:translateY(-1px); }
html body .btn:active{ transform:scale(.97); }
html body .btn-primary,html body .btn-income{
  background:var(--hero); color:#fff!important; border-color:transparent; box-shadow:var(--f-brandglow);
}
html body .btn-primary:hover,html body .btn-income:hover{ box-shadow:0 14px 26px -12px color-mix(in srgb,var(--brand2) 55%,transparent); }
html body .btn-ghost,html body .btn-secondary{ background:transparent; color:var(--ink); border:1.5px solid var(--ink); }
html body .btn-ghost:hover{ background:color-mix(in srgb,var(--ink) 6%,transparent); }
html body .btn-expense{ background:color-mix(in srgb,var(--neg) 14%,transparent); color:var(--neg); border-color:transparent; }
html body .btn-danger{ background:color-mix(in srgb,var(--neg) 14%,transparent); color:var(--neg); border-color:transparent; box-shadow:none; }
html body .btn-sm{ padding:7px 13px; font-size:12.5px; }

/* ====================================================================== */
/* CARDS                                                                   */
/* ====================================================================== */
html body .card{
  background:var(--card); border:1px solid var(--line); border-radius:var(--rC);
  box-shadow:none; padding:20px;
}
html body .card h3,html body .card>h2{ font-size:18px; font-weight:600; letter-spacing:-.01em; }
html body .muted,html body .kpi-sub,html body .side-user-lbl{ color:var(--muted); }
html body hr,html body .divider{ border-color:var(--line); }

/* generic KPI / stat card system (used by my-day, analytics, payroll) */
html body .fx-kpis{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
html body .fx-kpi{
  position:relative; background:var(--card); border:1px solid var(--line); border-radius:var(--rC);
  padding:20px; display:flex; flex-direction:column; gap:10px; min-height:148px; overflow:hidden;
}
html body .fx-kpi .fx-k-top{ display:flex; align-items:flex-start; justify-content:space-between; }
html body .fx-kpi .fx-k-title{ font-size:16px; font-weight:500; color:var(--ink); }
html body .fx-kpi .fx-k-num{ font-size:52px; font-weight:400; letter-spacing:-.045em; line-height:1; margin-top:auto; }
html body .fx-kpi .fx-k-note{ font-size:12.5px; color:var(--muted); }
html body .fx-kpi .fx-k-go{
  width:32px; height:32px; border-radius:50%; border:1.5px solid var(--line); background:transparent;
  display:inline-flex; align-items:center; justify-content:center; cursor:pointer; color:var(--ink); text-decoration:none; flex:0 0 auto;
}
html body .fx-kpi.hero{ background:var(--hero); color:#fff; border-color:transparent; box-shadow:var(--f-brandglow); }
html body .fx-kpi.hero .fx-k-title,html body .fx-kpi.hero .fx-k-note{ color:rgba(255,255,255,.85); }
html body .fx-kpi.hero .fx-k-go{ border-color:rgba(255,255,255,.5); color:#fff; }
html body .fx-kpi .fx-spark{ position:absolute; left:0; right:0; bottom:0; height:46px; width:100%; }

/* ====================================================================== */
/* STATUS PILLS / BADGES                                                   */
/* ====================================================================== */
html body .badge{
  border-radius:7px; font-size:11px; font-weight:600; padding:3px 8px; letter-spacing:0;
  border:1px solid currentColor; background:color-mix(in srgb,currentColor 12%,transparent);
}
html body .badge.paid,html body .badge.pos,html body .badge.done{ color:var(--pos); }
html body .badge.pending,html body .badge.todo{ color:var(--warn); }
html body .badge.review{ color:var(--brand2); }
html body .badge.overdue,html body .badge.neg,html body .badge.cancelled{ color:var(--neg); }
html body .sync-chip{ border-radius:var(--rPill); font-size:11.5px; padding:4px 11px; background:var(--card); border:1px solid var(--line); color:var(--muted); }
html body .sync-chip.live{ color:var(--pos); }

/* ====================================================================== */
/* SEG TABS / WORKSPACE TABS                                               */
/* ====================================================================== */
html body .seg-tabs{ background:var(--card); border:1px solid var(--line); border-radius:var(--rPill); padding:4px; gap:2px; display:inline-flex; }
html body .seg{ border-radius:var(--rPill); font-weight:600; font-size:13px; color:var(--muted); background:transparent; border:0; padding:8px 16px; cursor:pointer; transition:all .15s var(--ease); }
html body .seg.on{ background:var(--brand); color:#fff; }
html body .ws-tabs{ box-shadow:none; }

/* ====================================================================== */
/* TABLES                                                                  */
/* ====================================================================== */
html body table.tbl{ border-collapse:separate; border-spacing:0; width:100%; }
html body table.tbl thead th{ font-size:11.5px; font-weight:600; text-transform:none; color:var(--muted); border-bottom:1px solid var(--line); padding:10px 12px; letter-spacing:0; }
html body table.tbl tbody td{ border-bottom:1px solid var(--line); padding:12px; font-size:13.5px; }
html body table.tbl tbody tr:hover{ background:var(--tint); }
html body .tbl-wrap{ border-radius:var(--rI); overflow:auto; }

/* ====================================================================== */
/* FORMS + MODALS                                                          */
/* ====================================================================== */
html body input,html body select,html body textarea{
  border-radius:var(--rF)!important; border:1px solid var(--field-border); background:var(--soft); color:var(--ink);
  font-family:inherit;
}
html body input:focus,html body select:focus,html body textarea:focus{
  outline:none; border-color:var(--brand2); box-shadow:0 0 0 3px color-mix(in srgb,var(--brand2) 20%,transparent);
}
html body .modal-back{ background:color-mix(in srgb,var(--ink) 38%,transparent); backdrop-filter:blur(3px); }
html body .modal{ border-radius:26px; background:var(--panel); border:1px solid var(--line); box-shadow:0 30px 60px -24px rgba(0,0,0,.4); }
html body .modal-head{ border-bottom:1px solid var(--line); }
html body .modal-head h3{ font-weight:600; letter-spacing:-.01em; }
html body .modal-foot{ border-top:1px solid var(--line); }
html body .fsec-t{ color:var(--ink); font-weight:600; }

/* popups / banners from the old app → calm cards */
html body .pw-card,html body .cg-card,html body .update-banner{ border-radius:26px; border:1px solid var(--line); background:var(--panel); }
html body .pw-head{ background:var(--hero); color:#fff; }

/* ====================================================================== */
/* CALENDAR                                                                */
/* ====================================================================== */
html body .cal-grid .cal-cell,html body .cal-day,html body td.cal-cell{ border-radius:var(--rI); background:var(--soft); border:1px solid transparent; }
html body .cal-head,html body .cal-dow{ color:var(--muted); font-weight:600; background:transparent; border:0; }
html body .cal-today,html body .cal-cell.today{ background:var(--card); border:1.5px solid var(--brand2); }

/* ====================================================================== */
/* MOTION                                                                  */
/* ====================================================================== */
@keyframes fxRise{ from{ opacity:0; transform:translateY(14px) scale(.985); } to{ opacity:1; transform:none; } }
@keyframes fxFade{ from{ opacity:0; transform:translateY(8px); } to{ opacity:1; transform:none; } }
html body #main.fresh-anim .fresh-pagehead{ animation:fxFade .5s var(--ease) both; }
html body #main.fresh-anim .card,
html body #main.fresh-anim .fx-kpi,
html body #main.fresh-anim .fx-tile{ animation:fxRise .6s var(--ease) both; }
html body #main.fresh-anim .card:nth-child(2){ animation-delay:.05s; }
html body #main.fresh-anim .card:nth-child(3){ animation-delay:.11s; }
html body #main.fresh-anim .card:nth-child(4){ animation-delay:.17s; }
html body #main.fresh-anim .card:nth-child(5){ animation-delay:.23s; }
html body #main.fresh-anim .card:nth-child(n+6){ animation-delay:.28s; }
html body #main.fresh-anim .fx-kpi:nth-child(2){ animation-delay:.06s; }
html body #main.fresh-anim .fx-kpi:nth-child(3){ animation-delay:.12s; }
html body #main.fresh-anim .fx-kpi:nth-child(4){ animation-delay:.18s; }
@media (prefers-reduced-motion: reduce){
  html body #main.fresh-anim *{ animation:none!important; }
  html body .btn:hover,html body .fresh-iconbtn:hover{ transform:none; }
}

/* ====================================================================== */
/* === DASHBOARD "MY DAY" ==============================================  */
/* ====================================================================== */
html body .fx-day{ display:flex; flex-direction:column; gap:16px; margin-bottom:18px; }
html body .fx-greet h2{ font-size:30px; font-weight:500; letter-spacing:-.03em; margin:0; }
html body .fx-greet p{ margin:4px 0 0; color:var(--muted); }
/* v185: overview strip — "Not started" bar + status CAPSULES + big numbers */
html body .fx-overview{ display:flex; align-items:flex-end; gap:30px; flex-wrap:wrap; justify-content:space-between; }
html body .fx-ov-main{ display:flex; align-items:flex-end; gap:14px; flex:1 1 560px; min-width:300px; }
html body .fx-ov-col{ display:flex; flex-direction:column; gap:8px; flex:0 0 auto; }
html body .fx-ov-grow{ flex:1 1 auto; min-width:140px; }
html body .fx-ov-lbl{ display:block; font-size:12px; color:var(--muted); }
html body .fx-ov-bar{ position:relative; height:40px; border-radius:var(--rF); background:var(--soft); overflow:hidden; }
html body .fx-ov-bar .fill{ position:absolute; inset:0 auto 0 0; background:var(--ink); border-radius:var(--rF); min-width:34px; }
html body .fx-ov-bar .pct{ position:absolute; left:14px; top:50%; transform:translateY(-50%); color:#fff; font-size:13px; font-weight:600; z-index:1; }
html body .fx-ov-cap{ height:40px; min-width:74px; border-radius:var(--rF); display:flex; align-items:center; justify-content:center; padding:0 18px; font-size:13px; font-weight:600; }
html body .fx-ov-cap.prog{ background:var(--brand2); color:#fff; }
html body .fx-ov-cap.rev{ background:repeating-linear-gradient(45deg,var(--tint) 0 7px,transparent 7px 14px); border:1px solid var(--line); color:var(--ink); }
html body .fx-ov-cap.done{ background:var(--card); border:1.5px solid var(--line); color:var(--ink); }
html body .fx-bignums{ display:flex; gap:26px; flex:0 0 auto; }
html body .fx-bignum b{ font-size:40px; font-weight:300; letter-spacing:-.04em; display:block; line-height:1; }
html body .fx-bignum span{ font-size:12.5px; color:var(--muted); display:flex; align-items:center; gap:5px; margin-top:4px; }

html body .fx-grid{
  display:grid; gap:14px;
  grid-template-columns:repeat(4,1fr);
  grid-template-areas:
    "week week rem plan"
    "prog time task plan"
    "team team team dead";
}
html body .fx-a-week{ grid-area:week; } html body .fx-a-rem{ grid-area:rem; }
html body .fx-a-plan{ grid-area:plan; } html body .fx-a-prog{ grid-area:prog; }
html body .fx-a-time{ grid-area:time; } html body .fx-a-task{ grid-area:task; }
html body .fx-a-team{ grid-area:team; } html body .fx-a-dead{ grid-area:dead; }
html body .fx-card-h{ display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }
html body .fx-card-h h3{ font-size:17px; font-weight:600; margin:0; }

/* this-week bars */
html body .fx-week-bars{ display:flex; align-items:flex-end; justify-content:space-between; gap:10px; height:150px; }
html body .fx-wb{ flex:1; height:100%; display:flex; flex-direction:column; align-items:center; gap:7px; justify-content:flex-end; }
/* v185: full-height rounded "track" per day (hatched when empty), with an inner
   fill growing from the bottom — matches the reference's airy This-week chart. */
html body .fx-wb .wk-track{ width:100%; max-width:34px; flex:1 1 auto; border-radius:var(--rPill); overflow:hidden;
  display:flex; align-items:flex-end; background:repeating-linear-gradient(45deg,var(--soft) 0 6px,transparent 6px 12px); border:1px solid var(--line); }
html body .fx-wb .wk-fill{ width:100%; border-radius:var(--rPill); background:var(--tint2); transition:height .5s var(--ease); }
html body .fx-wb.busy .wk-fill{ background:var(--ink); }
html body .fx-wb .d{ font-size:11px; color:var(--muted); }
html body .fx-wb .tag{ font-size:10.5px; font-weight:700; color:var(--ink); }

/* reminders card */
html body .fx-rem-next{ font-size:21px; font-weight:600; color:var(--brand2); letter-spacing:-.01em; }
html body .fx-rem-when{ color:var(--muted); font-size:13px; margin:6px 0 14px; }

/* my plan (dark card) */
html body .fx-plan{ background:var(--brand); color:#fff; border-color:transparent; position:relative; overflow:hidden; }
html body .fx-plan::before{ content:""; position:absolute; inset:0; background:repeating-radial-gradient(circle at 80% 0%, rgba(255,255,255,.05) 0 1px, transparent 1px 16px); pointer-events:none; }
html body .fx-plan .fx-card-h h3{ color:#fff; } html body .fx-plan .fx-card-h .muted{ color:rgba(255,255,255,.7); }
html body .fx-plan-list{ display:flex; flex-direction:column; gap:8px; position:relative; }
html body .fx-pli{ display:flex; align-items:center; gap:10px; background:rgba(255,255,255,.06); border-radius:var(--rI); padding:9px 11px; }
html body .fx-pli .ic{ width:26px; height:26px; border-radius:50%; background:#fff; color:var(--brand); display:inline-flex; align-items:center; justify-content:center; flex:0 0 auto; font-size:13px; }
html body .fx-pli .t{ flex:1; min-width:0; } html body .fx-pli .t b{ font-weight:600; font-size:13.5px; display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
html body .fx-pli .t small{ color:rgba(255,255,255,.65); font-size:11px; }
html body .fx-pli.done .t b{ text-decoration:line-through; opacity:.6; }
html body .fx-pli .chk{ width:22px; height:22px; border-radius:50%; border:1.6px solid rgba(255,255,255,.6); background:transparent; cursor:pointer; color:#fff; display:inline-flex; align-items:center; justify-content:center; }
html body .fx-pli.done .chk{ background:var(--tint2); border-color:var(--tint2); color:var(--brand); }
html body .fx-pli .rm{ background:transparent; border:0; color:rgba(255,255,255,.5); cursor:pointer; font-size:15px; }
html body .fx-plan-carry{ font-size:10.5px; color:rgba(255,255,255,.6); margin:8px 2px 2px; }
html body .fx-plan-add{ display:flex; gap:7px; margin-top:12px; }
html body .fx-plan-add input{ background:rgba(255,255,255,.1)!important; border:1px solid rgba(255,255,255,.2)!important; color:#fff!important; border-radius:var(--rPill)!important; padding:9px 13px; }
html body .fx-plan-add input::placeholder{ color:rgba(255,255,255,.6); }
html body .fx-plan-add input[type=time]{ flex:0 0 94px; }
html body .fx-plan-add .add{ width:40px; flex:0 0 40px; border-radius:50%; border:0; background:#fff; color:var(--brand); font-size:20px; cursor:pointer; }

/* progress (hours last 7d) */
html body .fx-prog-top{ font-size:13px; color:var(--muted); margin-bottom:12px; }
html body .fx-prog-top b{ font-size:26px; font-weight:400; color:var(--ink); letter-spacing:-.03em; }
html body .fx-prog-bars{ display:flex; align-items:flex-end; justify-content:space-between; gap:6px; height:92px; }
html body .fx-pb{ flex:1; display:flex; flex-direction:column; align-items:center; gap:6px; justify-content:flex-end; height:100%; }
html body .fx-pb .track{ width:6px; flex:1; border-radius:var(--rPill); background:repeating-linear-gradient(var(--line) 0 3px, transparent 3px 7px); display:flex; align-items:flex-end; }
html body .fx-pb .fill{ width:6px; border-radius:var(--rPill); background:var(--ink); min-height:4px; }
html body .fx-pb.today .fill{ background:var(--tint2); }
html body .fx-pb .d{ font-size:10.5px; color:var(--muted); }
html body .fx-pb .tag{ font-size:10px; font-weight:700; }

/* time tracker ring */
html body .fx-ring-wrap{ display:flex; flex-direction:column; align-items:center; gap:12px; }
html body .fx-ring{ position:relative; width:168px; height:168px; }
html body .fx-ring .mid{ position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; }
html body .fx-ring .mid .hhmm{ font-size:30px; font-weight:400; letter-spacing:-.03em; }
html body .fx-ring .mid .st{ font-size:11.5px; color:var(--muted); margin-top:2px; }
html body .fx-ring-btns{ display:flex; gap:10px; }
html body .fx-rbtn{ width:44px; height:44px; border-radius:50%; border:1.5px solid var(--line); background:var(--card); cursor:pointer; color:var(--ink); display:inline-flex; align-items:center; justify-content:center; }
html body .fx-rbtn.primary{ background:var(--hero); color:#fff; border-color:transparent; }
html body .fx-rbtn.stop{ background:color-mix(in srgb,var(--neg) 15%,transparent); color:var(--neg); border-color:transparent; }

/* task-progress gauge */
html body .fx-gauge-wrap{ display:flex; flex-direction:column; align-items:center; }
html body .fx-gauge{ position:relative; width:200px; height:116px; }
html body .fx-gauge .gmid{ position:absolute; left:0; right:0; bottom:6px; text-align:center; }
html body .fx-gauge .gmid b{ font-size:34px; font-weight:400; letter-spacing:-.03em; }
html body .fx-gauge .gmid span{ display:block; font-size:11.5px; color:var(--muted); }
html body .fx-legend{ display:flex; gap:16px; justify-content:center; margin-top:10px; font-size:12px; color:var(--muted); flex-wrap:wrap; }
html body .fx-legend i{ width:9px; height:9px; border-radius:3px; display:inline-block; margin-right:5px; }

/* team list */
html body .fx-team{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
html body .fx-tm{ display:flex; align-items:center; gap:11px; background:var(--soft); border-radius:var(--rI); padding:10px 12px; }
html body .fx-tm .av-wrap{ position:relative; flex:0 0 auto; }
html body .fx-tm .pres{ position:absolute; right:-1px; bottom:-1px; width:11px; height:11px; border-radius:50%; border:2px solid var(--card); }
html body .pres.in{ background:var(--pos); } html body .pres.break{ background:var(--warn); } html body .pres.away{ background:#c9a24a; } html body .pres.out{ background:var(--muted); }
html body .fx-tm .tm-mid{ flex:1; min-width:0; } html body .fx-tm .tm-mid b{ font-size:13.5px; display:block; }
html body .fx-tm .tm-mid small{ font-size:11px; color:var(--muted); display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* deadlines */
html body .fx-dl{ display:flex; align-items:center; gap:11px; padding:10px 0; border-bottom:1px solid var(--line); }
html body .fx-dl:last-child{ border-bottom:0; }
html body .fx-dl .sq{ width:34px; height:34px; border-radius:11px; flex:0 0 auto; display:inline-flex; align-items:center; justify-content:center; color:#fff; font-size:14px; }
html body .fx-dl .dl-mid{ flex:1; min-width:0; } html body .fx-dl .dl-mid b{ font-size:13.5px; display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
html body .fx-dl .dl-mid small{ font-size:11.5px; color:var(--muted); } html body .fx-dl .dl-mid small.over{ color:var(--neg); font-weight:600; }

/* ====================================================================== */
/* === NOTIFICATION BELL + REMINDERS ==================================== */
/* ====================================================================== */
html body .fx-bell-pop{
  position:fixed; z-index:120; width:380px; max-width:calc(100vw - 20px); top:72px; right:16px;
  background:var(--panel); border:1px solid var(--line); border-radius:22px; box-shadow:0 30px 60px -22px rgba(0,0,0,.45);
  overflow:hidden; display:flex; flex-direction:column; max-height:min(74vh,620px);
}
html body .fx-bell-h{ display:flex; align-items:center; gap:8px; padding:14px 16px; border-bottom:1px solid var(--line); }
html body .fx-bell-tabs{ display:inline-flex; background:var(--card); border:1px solid var(--line); border-radius:var(--rPill); padding:3px; }
html body .fx-bell-tabs button{ border:0; background:transparent; color:var(--muted); font:inherit; font-size:12.5px; font-weight:600; padding:6px 13px; border-radius:var(--rPill); cursor:pointer; }
html body .fx-bell-tabs button.on{ background:var(--brand); color:#fff; }
html body .fx-bell-body{ overflow:auto; padding:8px; }
html body .fx-ni{ display:flex; gap:11px; padding:11px; border-radius:var(--rI); cursor:pointer; align-items:flex-start; }
html body .fx-ni:hover{ background:var(--tint); }
html body .fx-ni .ni-ic{ width:34px; height:34px; border-radius:50%; flex:0 0 auto; display:inline-flex; align-items:center; justify-content:center; background:var(--soft); color:var(--brand2); }
html body .fx-ni.act .ni-ic{ background:color-mix(in srgb,var(--neg) 15%,transparent); color:var(--neg); }
html body .fx-ni .ni-mid{ flex:1; min-width:0; } html body .fx-ni .ni-mid b{ font-size:13.5px; display:block; }
html body .fx-ni .ni-mid p{ margin:2px 0 0; font-size:12px; color:var(--muted); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
html body .fx-ni .ni-mid .ni-meta{ font-size:10.5px; color:var(--muted); margin-top:3px; }
html body .fx-ni.unread{ background:color-mix(in srgb,var(--tint2) 12%,transparent); }
html body .fx-rem-form{ display:flex; flex-direction:column; gap:8px; padding:12px; background:var(--card); border:1px solid var(--line); border-radius:var(--rI); margin:4px; }
html body .fx-rem-form .row{ display:flex; gap:7px; } html body .fx-rem-form input{ flex:1; }
html body .fx-chip{ font-size:11.5px; border:1px solid var(--line); background:var(--soft); color:var(--ink); border-radius:var(--rPill); padding:5px 11px; cursor:pointer; }
html body .fx-rem-list{ padding:4px; } html body .fx-rem-item{ display:flex; align-items:center; gap:9px; padding:9px 11px; border-bottom:1px solid var(--line); }
html body .fx-rem-item:last-child{ border-bottom:0; } html body .fx-rem-item .rm-mid{ flex:1; min-width:0; }
html body .fx-rem-item .rm-mid b{ font-size:13px; display:block; } html body .fx-rem-item .rm-mid small{ color:var(--muted); font-size:11px; }
html body .fx-rem-item .ib{ border:0; background:transparent; cursor:pointer; font-size:15px; color:var(--muted); }
html body .fx-rem-item .ib.ok{ color:var(--pos); }

/* reminder fire popup (bottom-right) */
html body .fx-rem-pop{ position:fixed; right:16px; bottom:84px; z-index:130; width:320px; max-width:calc(100vw - 20px);
  background:var(--brand); color:#fff; border-radius:20px; padding:16px; box-shadow:0 24px 48px -20px rgba(0,0,0,.5); animation:fxFade .35s var(--ease) both; }
html body .fx-rem-pop .rp-h{ font-size:12px; opacity:.8; margin-bottom:4px; }
html body .fx-rem-pop .rp-t{ font-size:16px; font-weight:600; }
html body .fx-rem-pop .rp-act{ display:flex; gap:8px; margin-top:12px; }
html body .fx-rem-pop .rp-act button{ border-radius:var(--rPill); border:1px solid rgba(255,255,255,.3); background:rgba(255,255,255,.1); color:#fff; font:inherit; font-size:12.5px; font-weight:600; padding:7px 13px; cursor:pointer; }
html body .fx-rem-pop .rp-act button.solid{ background:#fff; color:var(--brand); border-color:#fff; }

/* notice modal (send/reply) */
html body .fx-notice-card{ border-radius:26px; overflow:hidden; }
html body .fx-notice-head{ background:var(--hero); color:#fff; padding:18px 20px; }

/* ====================================================================== */
/* === ANALYTICS ======================================================== */
/* ====================================================================== */
html body .fx-an-range{ display:inline-flex; background:var(--card); border:1px solid var(--line); border-radius:var(--rPill); padding:3px; }
html body .fx-an-range button{ border:0; background:transparent; color:var(--muted); font:inherit; font-weight:600; font-size:12.5px; padding:6px 15px; border-radius:var(--rPill); cursor:pointer; }
html body .fx-an-range button.on{ background:var(--brand); color:#fff; }
html body .fx-delta{ font-size:12px; font-weight:600; } html body .fx-delta.up{ color:var(--pos); } html body .fx-delta.down{ color:var(--neg); }
html body .fx-an-grid{ display:grid; grid-template-columns:2fr 1fr; gap:14px; }
html body .fx-heat{ display:grid; grid-template-columns:repeat(20,1fr); gap:4px; }
html body .fx-heat i{ aspect-ratio:1; border-radius:3px; background:var(--soft); }
html body .fx-contrib{ display:flex; align-items:center; gap:11px; padding:9px 0; }
html body .fx-contrib .cb{ flex:1; height:7px; border-radius:var(--rPill); background:var(--soft); overflow:hidden; }
html body .fx-contrib .cb i{ display:block; height:100%; background:var(--brand2); border-radius:var(--rPill); }

/* ====================================================================== */
/* === PAYROLL ========================================================== */
/* ====================================================================== */
html body .fx-pay{ display:grid; grid-template-columns:260px 1fr 300px; gap:14px; align-items:start; }
html body .fx-pay-team{ display:flex; flex-direction:column; gap:6px; }
html body .fx-pay-person{ display:flex; align-items:center; gap:11px; padding:10px 12px; border-radius:var(--rI); cursor:pointer; border:1px solid transparent; }
html body .fx-pay-person:hover{ background:var(--soft); }
html body .fx-pay-person.on{ background:var(--ink); color:#fff; }
html body .fx-pay-person.on small{ color:rgba(255,255,255,.7); }
html body .fx-pay-person b{ font-size:13.5px; display:block; } html body .fx-pay-person small{ font-size:11.5px; color:var(--muted); }
html body .fx-pay-big{ font-size:40px; font-weight:300; letter-spacing:-.04em; } html body .fx-pay-big small{ font-size:15px; color:var(--muted); font-weight:400; }
html body .fx-pay-bars{ display:flex; gap:8px; margin:16px 0; }
html body .fx-pay-bars .pb{ height:30px; border-radius:var(--rF); display:flex; align-items:center; padding:0 12px; font-size:12px; font-weight:600; }
html body .pb.work{ background:var(--tint2); color:var(--ink); } html body .pb.ot{ background:var(--ink); color:#fff; } html body .pb.lv{ background:var(--soft); color:var(--muted); border:1px solid var(--line); }
html body .fx-pay-cal{ display:grid; grid-template-columns:repeat(7,1fr); gap:7px; }
html body .fx-pc{ border:1px solid var(--line); border-radius:12px; min-height:62px; padding:7px; font-size:11px; color:var(--muted); }
html body .fx-pc.today{ border-color:var(--ink); border-width:1.5px; }
html body .fx-pc .chip{ display:inline-block; margin-top:6px; font-size:10.5px; font-weight:700; border-radius:7px; padding:2px 7px; }
html body .chip.h{ background:var(--tint); color:var(--brand2); } html body .chip.over{ background:var(--ink); color:#fff; } html body .chip.half{ background:var(--tint2); color:var(--ink); } html body .chip.off{ background:var(--soft); color:var(--muted); }
html body .fx-prof-av{ width:84px; height:84px; border-radius:50%; margin:0 auto 10px; font-size:30px; }
html body .fx-prof-row{ display:flex; align-items:center; gap:9px; padding:8px 0; border-bottom:1px solid var(--line); font-size:13px; }
html body .fx-prof-row .f-ic{ width:17px; height:17px; color:var(--muted); } html body .fx-prof-row b{ margin-left:auto; }
html body .fx-prof-prog{ margin:10px 0; } html body .fx-prof-prog .lbl{ display:flex; justify-content:space-between; font-size:12px; margin-bottom:5px; }
html body .fx-prof-prog .bar{ height:7px; border-radius:var(--rPill); background:var(--soft); overflow:hidden; } html body .fx-prof-prog .bar i{ display:block; height:100%; background:var(--brand2); }
html body .fx-net{ background:var(--ink); color:#fff; border-radius:var(--rI); padding:14px 16px; margin-top:12px; display:flex; justify-content:space-between; align-items:center; }
html body .fx-net b{ font-size:22px; font-weight:400; }

/* ====================================================================== */
/* === PHONE "MENISCUS" TAB BAR (≤860px) ================================ */
/* ====================================================================== */
html body .fx-tabbar{ display:none; }
@media (max-width:860px){
  html body .fx-tabbar{
    display:block; position:fixed; left:10px; right:10px; bottom:calc(10px + env(safe-area-inset-bottom,0px));
    height:66px; z-index:90; filter:drop-shadow(0 12px 22px rgba(0,0,0,.3));
  }
  html body .fx-tabbar svg.plate{ position:absolute; inset:0; width:100%; height:100%; }
  html body .fx-tabbar .fx-tabs{ position:absolute; inset:0; display:flex; }
  html body .fx-tabbar .fx-tab{ flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; color:rgba(255,255,255,.7); background:transparent; border:0; cursor:pointer; font:inherit; font-size:10px; font-weight:600; -webkit-tap-highlight-color:transparent; }
  html body .fx-tabbar .fx-tab .f-ic{ width:22px; height:22px; }
  html body .fx-tabbar .fx-tab.on{ color:var(--tint2); }
  html body .fx-tabbar .fx-tab.on .f-ic{ opacity:0; }   /* its icon rides the bead */
  html body .fx-tabbar .fx-tab .lbl{ opacity:0; transition:opacity .2s var(--ease); }
  html body .fx-tabbar .fx-tab.on .lbl{ opacity:1; }
  html body .fx-bead{ position:absolute; top:0; width:54px; height:54px; border-radius:50%; display:flex; align-items:center; justify-content:center; color:var(--brand); touch-action:none; will-change:transform; }
  html body .fx-bead .bead-face{ position:absolute; inset:4px; border-radius:50%; background:radial-gradient(circle at 35% 30%, color-mix(in srgb,var(--tint2) 92%,#fff), var(--tint2)); box-shadow:0 6px 14px -4px color-mix(in srgb,var(--tint2) 70%,transparent), 0 0 0 6px color-mix(in srgb,var(--tint2) 18%,transparent); }
  html body .fx-bead .f-ic{ position:relative; width:23px; height:23px; color:var(--brand); }
  /* give the content room + lift floating UI above the bar */
  html body #main{ padding-bottom:92px; }
  html body #toastRoot{ bottom:92px!important; }
}

/* ====================================================================== */
/* RESPONSIVE                                                              */
/* ====================================================================== */
@media (max-width:1180px){
  html body .fx-kpis{ grid-template-columns:repeat(2,1fr); }
  html body .fx-grid{ grid-template-columns:repeat(3,1fr); grid-template-areas:
    "week week rem" "plan plan plan" "prog time task" "team team dead"; }
  html body .fx-an-grid{ grid-template-columns:1fr; }
  html body .fx-pay{ grid-template-columns:220px 1fr; } html body .fx-pay-prof{ grid-column:1 / -1; }
}
@media (max-width:980px){
  html body .shell{ padding:10px; }
  html body .sidebar{ position:fixed; left:10px; top:10px; z-index:80; transform:translateX(-115%); transition:transform .25s var(--ease); }
  html body .sidebar.open{ transform:none; }
  html body .menu-btn{ display:inline-flex; }
  html body .fresh-ph-title{ font-size:34px; }
  html body #main{ padding:20px; }
  html body .fresh-me-txt{ display:none; }
  html body .fx-grid{ grid-template-columns:1fr 1fr; grid-template-areas:
    "week week" "rem plan" "prog time" "task team" "dead dead"; }
  html body .fx-team{ grid-template-columns:1fr; }
}
@media (max-width:640px){
  html body .fresh-search{ display:none; }
  html body .fresh-ph-title{ font-size:28px; }
  html body .fx-kpis{ grid-template-columns:1fr 1fr; }
  html body .fx-grid{ grid-template-columns:1fr; grid-template-areas:"week" "plan" "rem" "time" "prog" "task" "team" "dead"; }
  html body .fx-mixrow{ gap:14px; } html body .fx-bignums{ gap:18px; }
  html body .fx-pay{ grid-template-columns:1fr; } html body .fx-pay-team{ flex-direction:row; overflow:auto; }
  html body #main{ padding:16px; border-radius:22px; }
}

/* ====================================================================== */
/* SPECIFICITY HARDENING over app.css (dark-sidebar rules → light panel)   */
/* ====================================================================== */
html body .sidebar{ overflow:auto; }
html body .sidebar nav{ flex:0 0 auto; overflow:visible; padding:4px 0 6px; }
html body .sidebar .brand{ color:var(--ink); font-family:'Geist','Inter',sans-serif; border-bottom:0; padding:4px 8px 12px; }
html body .sidebar .nav-item{ color:var(--ink); }
html body .sidebar .nav-item:hover{ color:var(--ink); }
html body .sidebar .nav-item.active{ color:var(--brand2); }
html body .sidebar .nav-adv-sum::before{ opacity:.55; }
html body .sidebar .side-user-name,
html body .sidebar .side-user-date,
html body .sidebar .side-user-lbl{ color:inherit; }
html body .sidebar .side-user-name{ color:var(--ink); }
html body .sidebar .side-user-date,html body .sidebar .side-user-lbl{ color:var(--muted); }
html body .sidebar .side-user-ph{ background:var(--tint); color:var(--brand2); border:0; }
html body .sidebar .side-meta{ border-top:0; }
html body .sidebar .side-ver{ color:var(--muted); background:color-mix(in srgb,var(--ink) 6%,transparent); }
html body .sidebar .side-admin{
  color:var(--ink); background:transparent; border:1.5px solid var(--line); border-radius:var(--rPill); padding:5px 11px;
}
html body .sidebar .side-admin:hover{ background:color-mix(in srgb,var(--ink) 5%,transparent); border-color:var(--line); }
html body .sidebar .side-admin.active{ background:var(--brand); color:#fff; border-color:transparent; }
html body .sidebar .foot-btn{ color:var(--ink); background:transparent; border:1.5px solid var(--line); flex:1 1 auto; justify-content:center; }
html body .sidebar .foot-btn:hover{ color:var(--ink); background:color-mix(in srgb,var(--ink) 5%,transparent); }
html body .sidebar-foot{ border-top:0; }
html body .nav-item.active .nav-count{ background:var(--brand2); color:#fff; box-shadow:none; }

/* topbar: let it wrap gracefully with the new search + bell cluster */
html body .topbar{ flex-wrap:wrap; }
html body .topbar h2{ display:none; }
html body .fresh-search{ flex:1 1 220px; }

/* bell wiggle when something new arrives */
@keyframes fxWiggle{ 0%,100%{ transform:rotate(0) } 20%{ transform:rotate(-12deg) } 40%{ transform:rotate(10deg) } 60%{ transform:rotate(-6deg) } 80%{ transform:rotate(3deg) } }
html body .fresh-iconbtn.fx-wiggle .f-ic{ animation:fxWiggle .6s var(--ease); transform-origin:50% 20%; }

/* calmer: drop the old custom arrow cursor + serif display face app-wide */
html body, html body *{ cursor:auto; }
html body a,html body button,html body .btn,html body .nav-item,html body .seg,html body .foot-btn,
html body .click,html body [role="button"],html body summary,html body label,html body select,html body .fresh-swatch,html body .fx-tab{ cursor:pointer; }
html body input,html body textarea{ cursor:text; }
html body .brand,html body h1,html body h2,html body h3{ font-family:'Geist','Inter',sans-serif; }

/* dark/midnight: beat app.css's `body.dark .sidebar` (higher specificity) */
html body.dark .sidebar,html body.fresh-dark .sidebar{ background:var(--side); border-color:var(--line); }
html body.dark .sidebar .brand,html body.fresh-dark .sidebar .brand{ color:var(--ink); }
html body.dark .card,html body.fresh-dark .card{ background:var(--card); border-color:var(--line); }

/* task-mix "not started" bar: label must contrast with --ink in BOTH modes */
html body .fx-mix .m-todo{ color:var(--card); }

/* ====================================================================== */
/* v181 REFINEMENTS                                                        */
/* ====================================================================== */

/* 1) Selected nav item: a clean filled brand pill with WHITE text (was a
      dark-on-dark pill before). High specificity to beat body.ws-team rules. */
html body .sidebar nav .nav-item.active{ background:var(--brand); color:#fff; font-weight:700; }
html body .sidebar nav .nav-item.active .f-ic{ color:#fff; opacity:1; }
html body .sidebar nav .nav-item.active .nav-count{ background:#fff; color:var(--brand); }
html body .nav-item.active::before{ display:none; }   /* filled pill → drop the extra accent bar */

/* 2) Only one theme control (the swatches) — hide the old Theme button */
html body #themeBtn{ display:none!important; }

/* 3) "My plan" add row — keep all three controls on one line, + never clipped */
html body .fx-plan-add{ gap:6px; flex-wrap:nowrap; align-items:center; }
html body .fx-plan-add input:not([type=time]){ flex:1 1 40px; min-width:0; }
html body .fx-plan-add input[type=time]{ flex:0 0 64px; min-width:0; padding:9px 6px; font-size:12px; }
html body .fx-plan-add .add{ flex:0 0 38px; width:38px; height:38px; font-size:19px; }

/* 4) pill filter group (Board filters, and reused elsewhere) */
html body .fx-pillgroup{ display:inline-flex; background:var(--card); border:1px solid var(--line); border-radius:var(--rPill); padding:3px; gap:2px; flex-wrap:wrap; }
html body .fx-pill{ border:0; background:transparent; color:var(--muted); font:inherit; font-size:12.5px; font-weight:600; padding:7px 14px; border-radius:var(--rPill); cursor:pointer; white-space:nowrap; }
html body .fx-pill.on{ background:var(--brand); color:#fff; }

/* 5) Help page */
html body .fx-help-hero{ background:var(--hero); color:#fff; border-radius:var(--rC); padding:28px; margin-bottom:16px; box-shadow:var(--f-brandglow); }
html body .fx-help-hero h2{ font-size:28px; font-weight:500; margin:0; letter-spacing:-.02em; }
html body .fx-help-hero p{ margin:8px 0 18px; color:rgba(255,255,255,.82); max-width:640px; }
html body .fx-help-topics{ display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
html body .fx-help-topic{ display:flex; align-items:center; gap:11px; background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.18); border-radius:var(--rI); padding:12px 14px; color:#fff; text-decoration:none; transition:background .15s var(--ease); }
html body .fx-help-topic:hover{ background:rgba(255,255,255,.18); }
html body .fx-help-topic .ic{ width:34px; height:34px; border-radius:9px; background:rgba(255,255,255,.14); display:inline-flex; align-items:center; justify-content:center; flex:0 0 auto; }
html body .fx-help-topic .ic .f-ic{ width:18px; height:18px; }
html body .fx-help-topic b{ font-size:14px; display:block; } html body .fx-help-topic small{ font-size:11.5px; color:rgba(255,255,255,.7); }
html body .fx-help-body{ display:grid; grid-template-columns:1fr 320px; gap:16px; align-items:start; }
html body .fx-help-sec{ background:var(--card); border:1px solid var(--line); border-radius:var(--rC); padding:6px 18px; margin-bottom:14px; }
html body .fx-faq{ border-bottom:1px solid var(--line); }
html body .fx-faq:last-child{ border-bottom:0; }
html body .fx-faq summary{ list-style:none; cursor:pointer; display:flex; justify-content:space-between; align-items:center; gap:12px; padding:15px 2px; font-weight:500; font-size:14.5px; color:var(--ink); }
html body .fx-faq summary::-webkit-details-marker{ display:none; }
html body .fx-faq-plus{ color:var(--muted); font-size:20px; line-height:1; transition:transform .2s var(--ease); flex:0 0 auto; }
html body .fx-faq[open] .fx-faq-plus{ transform:rotate(45deg); color:var(--brand2); }
html body .fx-faq-steps{ margin:0 0 15px; padding-left:20px; color:var(--muted); font-size:13.5px; line-height:1.75; }
html body .fx-faq-steps li{ margin-bottom:4px; }
html body .fx-help-side{ display:flex; flex-direction:column; gap:14px; position:sticky; top:86px; }
html body .fx-help-tips{ margin:0; padding-left:18px; color:var(--muted); font-size:13px; line-height:1.9; }
html body .fx-help-contact{ background:var(--ink); color:#fff; }
html body .fx-help-contact .fx-card-h h3{ color:#fff; } html body .fx-help-contact .muted{ color:rgba(255,255,255,.72); }

/* 6) Calendar restyle — rounded soft cells + pastel chips (Tasks calendar) */
html body .cal-grid{ display:grid; grid-template-columns:repeat(7,1fr); gap:8px; }
html body .cal-head{ color:var(--muted); font-weight:600; font-size:11.5px; text-transform:uppercase; letter-spacing:.04em; text-align:left; padding:2px 6px 6px; background:transparent; border:0; }
html body .cal-cell{ background:var(--soft); border:1px solid transparent; border-radius:var(--rI); min-height:96px; padding:8px; display:flex; flex-direction:column; gap:5px; }
html body .cal-cell.empty{ background:transparent; border:0; }
html body .cal-cell.today{ background:var(--card); border:1.5px solid var(--brand2); }
html body .cal-day{ display:flex; align-items:center; gap:6px; font-weight:600; font-size:13px; color:var(--ink); }
html body .cal-dow{ display:none; }
html body .cal-cell.today .cal-day{ color:var(--brand2); }
html body .cal-count{ margin-left:auto; font-size:10.5px; font-weight:700; color:var(--muted); background:color-mix(in srgb,var(--ink) 6%,transparent); border-radius:999px; padding:1px 7px; }
html body .cal-task{ background:color-mix(in srgb,var(--sc,var(--brand2)) 13%, transparent); border:1px solid color-mix(in srgb,var(--sc,var(--brand2)) 30%, transparent); border-radius:10px; padding:5px 8px; }
html body .cal-task .cal-task-id{ color:var(--muted); font-size:10px; }
html body .cal-task .cal-task-title{ color:var(--ink); font-size:11.5px; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
html body .cal-task .badge{ font-size:9.5px; }

/* 7) responsive */
@media (max-width:900px){
  html body .fx-help-topics{ grid-template-columns:1fr 1fr; }
  html body .fx-help-body{ grid-template-columns:1fr; }
  html body .fx-help-side{ position:static; }
  html body .cal-cell{ min-height:74px; }
}
@media (max-width:560px){
  html body .fx-help-topics{ grid-template-columns:1fr; }
  html body .cal-grid{ gap:4px; } html body .cal-cell{ min-height:58px; padding:5px; }
  html body .cal-task .cal-task-id{ display:none; }
}

/* ====================================================================== */
/* v182 — Calendar two-column, analytics methodology, tracker buttons      */
/* ====================================================================== */
html body .fx-cal-layout{ display:grid; grid-template-columns:1fr 340px; gap:14px; align-items:start; }
html body .fx-cal-main{ min-width:0; }
html body .fx-cal-side{ display:flex; flex-direction:column; gap:14px; position:sticky; top:86px; }
html body .fx-cal-today-h{ font-size:11px; font-weight:700; letter-spacing:.08em; color:var(--muted); }
html body .fx-cal-today-date{ font-size:30px; font-weight:500; letter-spacing:-.03em; margin:2px 0 12px; }
html body .fx-cal-ev{ display:flex; align-items:center; gap:10px; width:100%; text-align:left; background:var(--soft); border:0; border-left:3px solid var(--sc,var(--brand2)); border-radius:12px; padding:11px 12px; margin-bottom:8px; cursor:pointer; }
html body .fx-cal-ev:hover{ background:var(--tint); }
html body .fx-cal-ev .ev-l{ flex:1; min-width:0; } html body .fx-cal-ev .ev-l b{ font-size:13.5px; display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } html body .fx-cal-ev .ev-l small{ color:var(--muted); font-size:11px; }
html body .fx-cal-up{ display:flex; align-items:center; gap:12px; width:100%; text-align:left; background:transparent; border:0; border-bottom:1px solid var(--line); padding:11px 2px; cursor:pointer; }
html body .fx-cal-up:last-child{ border-bottom:0; }
html body .fx-cal-up:hover{ background:var(--tint); border-radius:10px; }
html body .fx-cal-up .up-date{ display:flex; flex-direction:column; align-items:center; justify-content:center; width:44px; height:44px; border-radius:12px; background:var(--soft); flex:0 0 auto; }
html body .fx-cal-up .up-date em{ font-style:normal; font-size:9.5px; font-weight:700; color:var(--muted); letter-spacing:.04em; }
html body .fx-cal-up .up-date b{ font-size:17px; font-weight:600; line-height:1; }
html body .fx-cal-up .up-mid{ flex:1; min-width:0; } html body .fx-cal-up .up-mid b{ font-size:13.5px; display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } html body .fx-cal-up .up-mid small{ color:var(--muted); font-size:11.5px; }
html body .fx-cal-legend{ display:flex; gap:16px; flex-wrap:wrap; padding:14px 4px 2px; font-size:12px; color:var(--muted); }
html body .fx-cal-legend i{ width:9px; height:9px; border-radius:3px; display:inline-block; margin-right:6px; vertical-align:middle; }
@media (max-width:980px){ html body .fx-cal-layout{ grid-template-columns:1fr; } html body .fx-cal-side{ position:static; } }

/* analytics: per-KPI "what" line + methodology disclosure */
html body .fx-k-what{ font-size:11.5px; color:var(--muted); margin-top:-2px; }
html body .fx-method{ background:var(--card); border:1px solid var(--line); border-radius:var(--rI); padding:0 16px; }
html body .fx-method summary{ list-style:none; cursor:pointer; padding:13px 0; font-weight:600; font-size:13.5px; color:var(--brand2); }
html body .fx-method summary::-webkit-details-marker{ display:none; }
html body .fx-method ul{ margin:0 0 14px; padding-left:18px; color:var(--muted); font-size:13px; line-height:1.7; }
html body .fx-method li{ margin-bottom:6px; } html body .fx-method b{ color:var(--ink); }

/* time-tracker buttons: ensure solid-fill play/pause/stop icons sit right */
html body .fx-rbtn .f-ic{ width:20px; height:20px; }
html body .fx-rbtn.primary .f-ic{ color:#fff; }

/* time-tracker: goal line + big filled Stop button (reference look) */
html body .fx-ring-goal{ font-size:12px; color:var(--muted); margin-top:6px; }
html body .fx-rbtn.stop{ width:52px; height:52px; background:var(--ink); color:#fff; border-color:transparent; }
html body .fx-rbtn.stop .f-ic{ color:#fff; width:20px; height:20px; }
html body .fx-legend i{ background-clip:padding-box; }

/* v182: Admin → Team ("employees & app access") — clean to the new style */
html body .team-tbl th{ white-space:nowrap; }
html body .team-tbl td{ vertical-align:middle; }
html body .team-tbl .team-name{ display:inline-flex; align-items:center; gap:8px; font-weight:600; color:var(--ink); }
html body .team-tbl td:nth-child(5){ color:var(--muted); font-size:13px; }
html body .team-tbl td:last-child{ text-align:right; white-space:nowrap; }
html body .team-tbl td:last-child .btn{ margin-left:6px; border:1.5px solid var(--line); background:transparent; padding:6px 11px; font-size:12px; box-shadow:none; }
html body .team-tbl td:last-child .btn:hover{ background:color-mix(in srgb,var(--ink) 5%,transparent); transform:none; }
html body .team-tbl .team-rm{ color:var(--neg); }
html body .team-tbl .badge{ font-size:11px; }

/* ====================================================================== */
/* v183 — calendar compaction, task link pill, Lists chips, login card      */
/* ====================================================================== */

/* Calendar: compact day-cell chips — a single colour-coded title line (full
   detail is on hover + in the "Coming up" side panel), so days read cleanly. */
html body .cal-cell .cal-task{ position:relative; display:block; padding:3px 7px 3px 12px; border:0; border-radius:7px;
  background:color-mix(in srgb,var(--sc,var(--brand2)) 12%, transparent); }
html body .cal-cell .cal-task::before{ content:""; position:absolute; left:4px; top:4px; bottom:4px; width:3px;
  border-radius:3px; background:var(--sc,var(--brand2)); }
html body .cal-cell .cal-task .cal-task-h,
html body .cal-cell .cal-task .cal-task-facts{ display:none; }
html body .cal-cell .cal-task .cal-task-title{ margin:0; font-size:11px; font-weight:600; line-height:1.35; color:var(--ink);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
html body .cal-cell .cal-cpill{ font-size:11px; padding:3px 7px; }

/* Attachment "Open link" — a proper pill button in task read views & popups */
html body .task-link{ display:inline-flex; align-items:center; gap:5px; margin:2px 8px 8px 0; padding:6px 13px;
  border-radius:var(--rPill); background:var(--tint); color:var(--brand2); font-size:12.5px; font-weight:600;
  text-decoration:none; border:1px solid color-mix(in srgb,var(--brand2) 24%, transparent);
  transition:background .15s var(--ease); }
html body .task-link:hover{ background:color-mix(in srgb,var(--brand2) 17%, transparent); text-decoration:none; }

/* Admin → Lists: calm pill chips to match the new style */
html body .admin-wrap .chips{ gap:8px; margin:6px 0 2px; }
html body .admin-wrap .chip{ display:inline-flex; align-items:center; gap:6px; background:var(--soft);
  border:1px solid var(--line); border-radius:var(--rPill); padding:7px 8px 7px 14px; font-size:13px;
  font-weight:500; color:var(--ink); }
html body .admin-wrap .chip .chip-edit{ color:var(--ink); cursor:pointer; text-decoration:none; }
html body .admin-wrap .chip .chip-edit:hover{ color:var(--brand2); }
html body .admin-wrap .chip a[data-rml]{ display:inline-flex; width:19px; height:19px; align-items:center;
  justify-content:center; border-radius:50%; color:var(--muted); text-decoration:none; line-height:1; }
html body .admin-wrap .chip a[data-rml]:hover{ background:color-mix(in srgb,var(--neg) 15%,transparent); color:var(--neg); }
html body .admin-wrap .card h3{ margin-bottom:2px; }

/* The signed-in identity now lives in the top bar, so drop the duplicate
   "Logged in as" card from the sidebar foot (keeps version + Admin link). */
html body .side-user{ display:none; }

/* ====================================================================== */
/* v184 — Tasks status filter pills, salary-history list                   */
/* ====================================================================== */
html body .tk-statfilter{ margin:2px 0 14px; display:flex; }

/* salary history (Payroll profile + Salaries employee row) */
html body .sal-hist{ display:flex; flex-direction:column; gap:2px; margin-top:6px; }
html body .sal-hist-row{ display:flex; align-items:center; gap:10px; padding:8px 2px; border-bottom:1px solid var(--line); font-size:12.5px; }
html body .sal-hist-row:last-child{ border-bottom:0; }
html body .sal-hist-from{ color:var(--muted); min-width:84px; }
html body .sal-hist-amt{ color:var(--ink); }
html body .sal-hist-now{ font-size:10px; }
html body .sal-hist-note{ flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:11.5px; }
html body .sal-hist-rm{ margin-left:auto; color:var(--neg); border:1px solid var(--line); background:transparent; box-shadow:none; padding:3px 9px; }
html body .sal-hist-rm:hover{ background:color-mix(in srgb,var(--neg) 10%,transparent); transform:none; }
html body .sal-hist-empty{ font-size:.8rem; margin:6px 0; }

/* v184 — calendar: selected-day highlight + inline "Selected day" card */
html body .cal-cell.cal-sel{ border:1.5px solid var(--brand); box-shadow:0 0 0 3px color-mix(in srgb,var(--brand) 18%,transparent); }
html body .fx-cal-selcard{ border:1px solid color-mix(in srgb,var(--brand2) 30%,transparent); }
html body .fx-cal-selx{ border:0; background:transparent; color:var(--muted); cursor:pointer; font-size:13px; line-height:1; padding:2px 4px; border-radius:6px; }
html body .fx-cal-selx:hover{ background:color-mix(in srgb,var(--ink) 6%,transparent); color:var(--ink); }

/* ====================================================================== */
/* v186 — REFERENCE SHELL ("Digital Space" look) + dashboard card polish    */
/* Sidebar: brand tile · Workspace picker · Overview/Work/Plan/Team ·       */
/* dark brand card · Admin Panel · version · Logged in as + Logout ·        */
/* swatches.  Top bar: chips · dark timer capsule · search · bell · you.    */
/* ====================================================================== */

/* ---------- sidebar ---------- */
html body .sidebar{ padding:18px 14px 14px; gap:2px; border-color:transparent; box-shadow:none; }
html body .sidebar .brand{ display:flex; align-items:center; gap:12px; padding:2px 6px 14px; font-size:inherit; }
html body .fx-logo{ width:44px; height:44px; border-radius:13px; background:var(--card); border:1px solid var(--line);
  display:inline-flex; align-items:center; justify-content:center; flex:0 0 auto; box-shadow:0 6px 14px -10px rgba(0,0,0,.35); }
html body .fx-logo img{ width:32px; height:32px; border-radius:8px; object-fit:cover; }
html body .fx-brand-t{ display:flex; flex-direction:column; line-height:1.1; min-width:0; }
html body .fx-brand-t b{ font-size:19px; font-weight:600; letter-spacing:-.025em; color:var(--ink); white-space:nowrap; }
html body .fx-brand-t small{ font-size:12px; color:var(--muted); font-weight:500; margin-top:4px; }
html body .fx-side-lbl{ font-size:10.5px; font-weight:600; letter-spacing:.11em; text-transform:uppercase; color:var(--muted); padding:0 6px; }
html body .fx-ws{ display:flex; flex-direction:column; gap:8px; padding:2px 0 8px; }
html body .sidebar .fx-ws-sel{ width:100%; padding:11px 14px; border-radius:14px!important; background:var(--card); border:1px solid var(--line);
  font-weight:600; font-size:14px; color:var(--ink); box-shadow:none; cursor:pointer; }
html body .sidebar .nav-group{ font-size:10.5px; font-weight:600; letter-spacing:.11em; padding:16px 12px 6px; opacity:1; }
html body .sidebar nav .nav-item{ padding:9px 12px; font-size:14.5px; font-weight:500; gap:12px; }
html body .sidebar nav .nav-item .nav-count{ background:var(--ink); color:var(--card); border-radius:8px; min-width:22px; height:20px; font-size:11px; }

/* dark brand card */
html body .fx-side-card{ position:relative; overflow:hidden; flex:0 0 auto; margin:16px 0 10px; padding:16px 14px 14px;
  border-radius:22px; background:var(--brand); color:#fff; display:flex; flex-direction:column; gap:9px; }
html body .fx-side-card::before{ content:""; position:absolute; inset:0; pointer-events:none;
  background:repeating-radial-gradient(circle at 115% -10%, rgba(255,255,255,.075) 0 1px, transparent 1px 13px); }
html body .fx-side-card > *{ position:relative; }
html body .fx-sc-ic{ width:30px; height:30px; border-radius:50%; background:#fff; color:var(--brand); display:inline-flex; align-items:center; justify-content:center; }
html body .fx-sc-ic .f-ic{ width:16px; height:16px; }
html body .fx-sc-t{ font-size:17px; font-weight:600; line-height:1.15; letter-spacing:-.02em; margin-top:4px; }
html body .fx-sc-p{ margin:0 0 4px; font-size:12px; line-height:1.45; color:rgba(255,255,255,.72); }
html body .fx-sc-btn{ display:flex; align-items:center; justify-content:center; gap:8px; height:40px; border-radius:var(--rPill);
  font:inherit; font-weight:600; font-size:13.5px; text-decoration:none; cursor:pointer; transition:transform .12s var(--ease), background .15s var(--ease); }
html body .fx-sc-btn .f-ic{ width:16px; height:16px; }
html body .fx-sc-btn:hover{ transform:translateY(-1px); }
html body .fx-sc-btn.ghost{ background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.3); color:#fff; }
html body .fx-sc-btn.solid{ background:#fff; border:1px solid #fff; color:var(--ink); }
html body .fx-sc-btn .n{ background:var(--tint); color:var(--brand); border-radius:7px; padding:1px 7px; font-size:11px; font-weight:700; }

/* Admin Panel / Backup / version */
html body .sidebar .side-meta{ display:none; }
html body .fx-side-admin{ display:flex; flex-direction:column; gap:12px; padding:2px 0 4px; flex:0 0 auto; }
html body .fx-admin-row{ display:grid; gap:8px; } html body .fx-admin-row.two{ grid-template-columns:1fr 1fr; }
html body .fx-admin-btn{ display:flex; align-items:center; justify-content:center; gap:8px; height:42px; border-radius:var(--rPill);
  background:var(--card); border:1px solid var(--line); color:var(--ink)!important; font:inherit; font-weight:600; font-size:13.5px; text-decoration:none; cursor:pointer; }
html body .fx-admin-btn .f-ic{ width:17px; height:17px; }
html body .fx-admin-btn:hover{ background:color-mix(in srgb,var(--ink) 4%,var(--card)); }
html body .fx-admin-btn.active{ background:var(--brand); border-color:transparent; color:#fff!important; }
html body .fx-ver{ padding:0 6px; }

/* Logged in as + Logout (shown again, reference style) */
html body .sidebar .side-user{ display:flex; align-items:center; gap:10px; background:transparent; border:0; border-bottom:1px solid var(--line);
  border-radius:0; padding:8px 4px 12px; margin:2px 0 0; flex:0 0 auto; }
html body .sidebar .side-user-img{ width:36px; height:36px; flex:0 0 auto; }
html body .sidebar .side-user-info{ display:flex; flex-direction:column; min-width:0; flex:1 1 auto; line-height:1.25; }
html body .sidebar .side-user-name{ font-size:13px; font-weight:700; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
html body .sidebar .side-user-date{ font-size:11px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
html body .fx-logout{ flex:0 0 auto; border:1px solid var(--line); background:var(--card); border-radius:var(--rPill); padding:6px 13px;
  font:inherit; font-size:12px; font-weight:600; color:var(--ink); cursor:pointer; }
html body .fx-logout:hover{ background:color-mix(in srgb,var(--neg) 10%,var(--card)); color:var(--neg); }
html body .sidebar-foot #backupBtn,
html body .sidebar-foot .foot-btn[onclick*="signOut"]{ display:none!important; }
html body .sidebar-foot{ padding:8px 2px 0; }
html body .sidebar-foot .fresh-swatches{ order:9; padding:4px 2px 2px; gap:8px; }
html body .fresh-swatch{ width:26px; height:26px; border-radius:8px; }
html body .fresh-swatch.on{ box-shadow:0 0 0 2px var(--side), 0 0 0 4px var(--ink); }

/* ---------- top bar ---------- */
html body .topbar{ flex-wrap:nowrap; gap:10px; padding:10px 12px; min-height:70px; border-radius:24px; border-color:transparent; box-shadow:none; }
html body .topbar .ws-tabs{ display:none!important; }   /* moved to the sidebar Workspace picker */
html body .fx-tb-chips{ display:flex; align-items:center; gap:8px; flex:0 0 auto; }
html body .fx-chip-pill,
html body .topbar .sync-chip{ display:inline-flex; align-items:center; gap:7px; height:36px; padding:0 14px; border-radius:var(--rPill);
  background:var(--card); border:1px solid var(--line); font-size:12.5px; font-weight:600; color:var(--ink); text-decoration:none; white-space:nowrap; }
html body .topbar .sync-chip{ display:inline-block; line-height:34px; }
html body .topbar .sync-chip.live::first-letter{ color:var(--pos); }
html body .topbar .sync-chip.pending::first-letter{ color:var(--warn); }
html body .topbar .sync-chip.offline{ color:var(--neg); }
html body .fx-working .f-ic{ width:16px; height:16px; color:var(--muted); }
html body .fx-working.on .f-ic{ color:var(--pos); }
html body .fx-working:hover{ background:color-mix(in srgb,var(--ink) 4%,var(--card)); }

/* dark timer capsule:  ● ON BREAK / 00:47:02   [▶ Resume] [■ Out] */
html body .topbar .clock-widget{
  display:inline-grid; grid-template-columns:auto auto auto; grid-template-rows:auto auto; align-items:center; column-gap:10px; row-gap:1px;
  background:var(--ink); color:#fff; border-radius:var(--rPill); padding:6px 6px 6px 16px; min-height:50px; flex:0 0 auto;
  box-shadow:0 12px 26px -16px rgba(0,0,0,.6); font-size:13px; cursor:default; }
html body .topbar .clock-widget::before{ content:""; grid-column:1; grid-row:1 / 3; width:9px; height:9px; border-radius:50%;
  background:rgba(255,255,255,.4); box-shadow:0 0 0 4px rgba(255,255,255,.06); }
html body .topbar .clock-widget[data-st="in"]::before{ background:#7FD89C; box-shadow:0 0 0 4px rgba(127,216,156,.18); }
html body .topbar .clock-widget[data-st="break"]::before{ background:#F5C451; box-shadow:0 0 0 4px rgba(245,196,81,.18); }
html body .topbar .fx-cw-state{ grid-column:2; grid-row:1; justify-self:start; font-size:9.5px; font-weight:700; letter-spacing:.09em; text-transform:uppercase;
  background:rgba(255,255,255,.14); color:rgba(255,255,255,.88); padding:1px 7px; border-radius:5px; line-height:1.5; }
html body .topbar .clock-widget > .cw-time{ grid-column:2; grid-row:2; background:transparent!important; color:#fff!important; padding:0!important;
  font-size:17px; font-weight:600; letter-spacing:.03em; font-variant-numeric:tabular-nums; line-height:1.15; border:0; }
html body .topbar .clock-widget[data-st="out"] .fx-cw-state{ grid-row:1 / 3; align-self:center; }
html body .topbar .clock-widget .cw-group{ grid-column:3; grid-row:1 / 3; display:inline-flex; gap:6px; overflow:visible; border-radius:0; box-shadow:none; background:transparent; }
html body .topbar .clock-widget .cw-one,
html body .topbar .clock-widget .cw-stop{ height:38px; border:0; border-radius:var(--rPill)!important; padding:0 15px; font:inherit; font-size:13px; font-weight:600;
  display:inline-flex; align-items:center; gap:6px; cursor:pointer; box-shadow:none; }
html body .topbar .clock-widget .cw-one{ background:#fff!important; color:var(--ink)!important; }
html body .topbar .clock-widget .cw-one.go.solo{ background:var(--tint2)!important; color:var(--brand)!important; }
html body .topbar .clock-widget .cw-stop{ background:var(--neg)!important; color:#fff!important; }
html body .topbar .clock-widget .cw-ic{ font-size:10px; }

/* right cluster: compact search (opens on click) · + Task · bell · you */
html body .topbar .fresh-tb-right{ gap:10px; }
html body .topbar .fresh-search{ flex:0 0 auto; width:46px; height:46px; padding:0; justify-content:center; gap:0; cursor:pointer;
  transition:width .25s var(--ease), padding .25s var(--ease); max-width:none; }
html body .topbar .fresh-search input{ width:0; padding:0; flex:0 0 0; border:0!important; background:transparent!important; box-shadow:none!important; }
html body .topbar .fresh-search .fresh-k{ display:none; }
html body .topbar .fresh-search.open{ width:260px; padding:0 14px; justify-content:flex-start; gap:8px; }
html body .topbar .fresh-search.open input{ flex:1 1 auto; width:auto; }
html body .topbar #quickTask{ height:42px; padding:0 18px; font-size:13.5px; }
html body[data-screen="taskboard"] .topbar #quickTask{ display:none; }   /* dashboard has its own "+ New Task" */
html body .topbar .fresh-me{ gap:11px; }
html body .topbar .fresh-me .fresh-av{ width:44px!important; height:44px!important; }
html body .topbar .fresh-me-txt b{ font-size:14.5px; }
html body .topbar .fresh-me-txt span{ font-size:12px; }

/* ---------- dashboard ---------- */
html body #main{ border-color:transparent; box-shadow:none; padding:34px; }
html body .fx-day{ gap:18px; }
html body .fx-greet{ display:flex; align-items:flex-end; justify-content:space-between; gap:16px; flex-wrap:wrap; }
html body .fx-greet h2{ font-size:46px; font-weight:500; letter-spacing:-.04em; line-height:1.05; }
html body .fx-greet p{ font-size:15px; margin-top:8px; }
html body .fx-newtask{ height:48px; padding:0 24px; font-size:14.5px; }
html body .fx-slot{ display:contents; }
html body .fx-ov-bar,html body .fx-ov-cap{ height:42px; }
html body .fx-ov-cap{ min-width:100px; }
html body .fx-bignum b{ font-size:54px; font-weight:300; }
html body .fx-bignum span{ white-space:nowrap; }
html body .fx-bignum span .f-ic{ width:14px; height:14px; flex:0 0 auto; }
html body .fx-kpi{ min-height:162px; padding:22px; border-radius:24px; border-color:transparent; }
html body .fx-kpi .fx-k-num{ font-size:58px; font-weight:300; }
html body .fx-grid .card{ border-radius:24px; border-color:transparent; padding:22px; }
html body .fx-card-h h3{ font-size:18px; font-weight:500; letter-spacing:-.01em; }
html body .fx-col{ display:flex; flex-direction:column; }

/* this week: tall hatched ovals */
html body .fx-week-bars{ height:200px; gap:12px; }
html body .fx-wb .wk-track{ flex:0 0 96px; max-width:72px; border-radius:50%; border:1px solid var(--line);
  background:repeating-linear-gradient(45deg,color-mix(in srgb,var(--muted) 45%,transparent) 0 1px,transparent 1px 6px); }
html body .fx-wb .wk-fill{ border-radius:0; }
html body .fx-wb .d{ font-size:12px; margin-top:8px; }

/* reminders */
html body .fx-rem-empty b{ display:block; font-size:27px; font-weight:500; letter-spacing:-.025em; color:var(--muted); line-height:1.15; }
html body .fx-rem-empty p{ margin:12px 0 18px; font-size:13px; line-height:1.55; color:var(--muted); }
html body .fx-wide-btn{ display:flex; align-items:center; justify-content:center; gap:8px; width:100%; height:44px; margin-top:auto;
  border:0; border-radius:var(--rPill); background:var(--hero); color:#fff; font:inherit; font-weight:600; font-size:13.5px; cursor:pointer;
  box-shadow:var(--f-brandglow); transition:transform .12s var(--ease); }
html body .fx-wide-btn:hover{ transform:translateY(-1px); }
html body .fx-wide-btn .f-ic{ width:17px; height:17px; }
html body .fx-a-rem .fx-rem-next + .fx-rem-when + div{ margin-bottom:14px; }

/* my plan */
html body .fx-plan-count{ font-size:32px; font-weight:300; letter-spacing:-.03em; color:#fff; line-height:1; }
html body .fx-pli{ background:transparent; border-bottom:1px solid rgba(255,255,255,.1); border-radius:0; padding:10px 2px; }
html body .fx-plan-foot{ margin-top:auto; padding-top:16px; position:relative; }
html body .fx-plan-add{ background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.14); border-radius:var(--rPill); padding:5px 5px 5px 8px; margin-top:0; }
html body .fx-plan-add input{ background:transparent!important; border:0!important; box-shadow:none!important; }
html body .fx-plan-add .add{ background:#fff; }
html body .fx-plan-hint{ font-size:11.5px; color:rgba(255,255,255,.55); margin:9px 6px 0; }

/* progress */
html body .fx-prog-top{ display:flex; align-items:center; gap:12px; margin:2px 0 14px; }
html body .fx-prog-top b{ font-size:40px; font-weight:300; letter-spacing:-.04em; line-height:1; }
html body .fx-prog-top span{ font-size:12px; color:var(--muted); line-height:1.3; }
html body .fx-prog-bars{ height:170px; }
html body .fx-pb .track{ width:2px; background:repeating-linear-gradient(var(--line) 0 3px, transparent 3px 7px); }
html body .fx-pb .fill{ width:8px; margin-left:-3px; background:var(--tint2); }
html body .fx-pb .dot{ width:5px; height:5px; border-radius:50%; background:var(--ink); }
html body .fx-pb .tag{ background:var(--tint); color:var(--brand2); border-radius:var(--rPill); padding:2px 7px; font-size:10.5px; white-space:nowrap; }
html body .fx-pb .tag.empty{ background:transparent; padding:2px 0; }
html body .fx-pb.today .d{ color:var(--ink); font-weight:700; }

/* time tracker */
html body .fx-ring{ width:200px; height:200px; }
html body .fx-ring .mid .hhmm{ font-size:44px; font-weight:500; letter-spacing:-.04em; font-variant-numeric:tabular-nums; }
html body .fx-ring .mid .st{ display:flex; align-items:center; gap:6px; font-size:12px; }
html body .fx-ring .mid .st .sdot{ width:7px; height:7px; border-radius:50%; background:var(--muted); }
html body .fx-ring .mid .st[data-st="in"] .sdot{ background:var(--pos); }
html body .fx-ring .mid .st[data-st="break"] .sdot{ background:#E0A43B; }
html body .fx-ring-foot{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:auto; padding-top:10px; }
html body .fx-ring-btns{ align-items:center; }
html body .fx-rbtn{ width:46px; height:46px; background:var(--card); border:1.5px solid var(--line); color:var(--ink); }
html body .fx-rbtn.stop{ width:54px; height:54px; }
html body .fx-rbtn:disabled{ opacity:.3; cursor:default; }
html body .fx-ring-goal{ margin:0; font-size:12.5px; }

/* task progress gauge */
html body .fx-a-task .fx-gauge-wrap{ margin-top:auto; }
html body .fx-gauge{ width:240px; height:146px; }
html body .fx-gauge .gmid{ bottom:2px; }
html body .fx-gauge .gmid b{ font-size:48px; font-weight:400; letter-spacing:-.04em; }
html body .fx-legend{ gap:14px; margin-top:14px; flex-wrap:nowrap; white-space:nowrap; font-size:12px; color:var(--ink); }
html body .fx-legend i{ width:10px; height:10px; border-radius:50%; vertical-align:-1px; }
html body .fx-legend i.hatch{ background:repeating-linear-gradient(45deg,var(--muted) 0 1.2px,transparent 1.2px 3.5px); border-radius:2px; }

/* ---------- responsive ---------- */
@media (max-width:1280px){
  html body .topbar .fx-ws-chip{ display:none; }
  html body .topbar .fresh-me-txt{ display:none; }
}
@media (max-width:1180px){
  html body .topbar .fx-working{ display:none; }
  html body .fx-legend{ flex-wrap:wrap; white-space:normal; justify-content:center; }
}
@media (max-width:980px){
  html body .topbar{ padding:8px 10px; min-height:60px; }
  html body .topbar .fx-tb-chips{ display:none; }
  html body .topbar .clock-widget{ padding:4px 4px 4px 12px; min-height:44px; }
  html body .topbar .clock-widget .cw-one,html body .topbar .clock-widget .cw-stop{ height:34px; padding:0 11px; }
  html body .fx-greet h2{ font-size:34px; }
  html body #main{ padding:20px; }
}
@media (max-width:640px){
  html body .topbar .fx-cw-state{ display:none; }
  html body .topbar .clock-widget > .cw-time{ grid-row:1 / 3; font-size:15px; }
  html body .topbar .clock-widget .cw-word{ display:none; }
  html body .topbar #quickTask{ display:none; }
  html body .fx-greet h2{ font-size:29px; }
  html body .fx-newtask{ width:100%; }
  html body .fx-bignum b{ font-size:40px; }
  html body #main{ padding:16px; }
}

/* v186 fixes after first visual pass */
html body .sidebar nav .nav-item .nav-count{ box-shadow:none; border:0; }
html body .sidebar nav .nav-item.active .nav-count{ background:#fff; color:var(--brand); }
html body .fx-ov-bar{ background:color-mix(in srgb,var(--ink) 7%,transparent); }
html body .fx-wb .tag{ height:16px; line-height:16px; white-space:nowrap; }
html body .fx-pb{ flex:1 1 0; min-width:0; }
html body .fx-pb .tag{ height:18px; line-height:14px; }
html body .fx-prog-top b{ font-size:36px; white-space:nowrap; }
html body .fx-prog-top span br{ display:none; }
html body .fx-prog-top span{ max-width:90px; }
html body .fx-admin-row.two{ grid-template-columns:1fr 42px; }
html body .fx-admin-row.two #fxBackupBtn{ padding:0; }
html body .fx-admin-row.two #fxBackupBtn span{ display:none; }
html body .sidebar-foot .fresh-swatches{ gap:6px; flex-wrap:nowrap; }
html body .sidebar-foot .fresh-swatch{ width:24px; height:24px; flex:0 0 24px; }
html body .sidebar .side-user-lbl{ text-transform:none; letter-spacing:0; font-size:11px; }

/* ====================================================================== */
/* v186 — sidebar "bead" indicator (same look as the phone tab bar)        */
/* ====================================================================== */
html body .sidebar nav.fx-has-ind{ position:relative; }
html body .sidebar nav.fx-has-ind .nav-item,
html body .sidebar nav.fx-has-ind .nav-group,
html body .sidebar nav.fx-has-ind details{ position:relative; z-index:1; }
html body .sidebar nav.fx-has-ind .nav-item.active{ background:transparent; color:#fff; }
html body .sidebar nav.fx-has-ind .nav-item.active > .f-ic{ opacity:0; }      /* its icon rides the bead */
html body .sidebar nav.fx-has-ind .nav-item.active > span:not(.nav-count){ padding-left:8px; transition:padding .3s var(--ease); }
html body .fx-nav-ind{ position:absolute; left:0; right:0; top:0; height:40px; z-index:0; pointer-events:none;
  transition:transform .5s cubic-bezier(.34,1.35,.5,1), height .3s var(--ease), opacity .2s; will-change:transform; }
html body .fx-nav-ind .pill{ position:absolute; inset:0 0 0 0; border-radius:16px; background:var(--brand);
  -webkit-mask:radial-gradient(circle 25px at 24px 50%, transparent 24.5px, #000 25px);
          mask:radial-gradient(circle 25px at 24px 50%, transparent 24.5px, #000 25px);
  box-shadow:0 10px 22px -14px rgba(0,0,0,.55); }
html body .fx-nav-ind .bead{ position:absolute; left:5px; top:50%; width:38px; height:38px; margin-top:-19px; border-radius:50%;
  display:flex; align-items:center; justify-content:center; color:var(--brand);
  background:radial-gradient(circle at 35% 30%, color-mix(in srgb,var(--tint2) 90%,#fff), var(--tint2));
  box-shadow:0 6px 14px -4px color-mix(in srgb,var(--tint2) 70%,transparent), 0 0 0 5px color-mix(in srgb,var(--tint2) 20%,transparent);
  animation:fxBeadPop .45s var(--ease); }
html body .fx-nav-ind .bead .f-ic{ width:19px; height:19px; opacity:1; color:var(--brand); }
@keyframes fxBeadPop{ from{ transform:scale(.7); } to{ transform:none; } }
@media (prefers-reduced-motion: reduce){ html body .fx-nav-ind{ transition:none; } html body .fx-nav-ind .bead{ animation:none; } }
html body .fx-a-team{ align-self:start; }
@media (max-width:640px){
  html body .fx-ov-main{ flex-wrap:wrap; min-width:0; flex-basis:100%; }
  html body .fx-ov-grow{ flex:1 1 100%; }
  html body .fx-ov-col:not(.fx-ov-grow){ flex:1 1 0; }
  html body .fx-ov-cap{ min-width:0; padding:0 8px; }
}

/* ====================================================================== */
/* v187 — Payroll = money only (pay breakdown replaces the hours calendar)  */
/* ====================================================================== */
html body .fx-pay-big{ font-size:44px; }
html body .fx-att-tiles{ display:grid; grid-template-columns:repeat(5,1fr); gap:8px; }
html body .fx-att-tile{ border-radius:16px; padding:12px; background:var(--soft); display:flex; flex-direction:column; gap:3px; }
html body .fx-att-tile b{ font-size:24px; font-weight:400; letter-spacing:-.03em; line-height:1.1; }
html body .fx-att-tile span{ font-size:11.5px; color:var(--muted); }
html body .fx-att-tile.p{ background:color-mix(in srgb,var(--pos) 12%,var(--card)); }
html body .fx-att-tile.h{ background:color-mix(in srgb,var(--warn) 12%,var(--card)); }
html body .fx-att-tile.l{ background:color-mix(in srgb,#3B5BA9 12%,var(--card)); }
html body .fx-att-tile.s{ background:color-mix(in srgb,#6D28D9 10%,var(--card)); }
html body .fx-att-tile.a{ background:color-mix(in srgb,var(--neg) 10%,var(--card)); }
html body .fx-see-att{ display:flex; align-items:center; gap:12px; margin-top:10px; padding:12px 14px; border-radius:16px;
  border:1px dashed color-mix(in srgb,var(--brand2) 40%,transparent); color:var(--ink)!important; text-decoration:none; background:var(--card); }
html body .fx-see-att:hover{ background:var(--tint); }
html body .fx-see-att .f-ic{ width:20px; height:20px; color:var(--brand2); flex:0 0 auto; }
html body .fx-see-att span{ flex:1; display:flex; flex-direction:column; } html body .fx-see-att b{ font-size:13.5px; } html body .fx-see-att small{ font-size:11.5px; color:var(--muted); }
html body .fx-see-att i{ font-style:normal; color:var(--brand2); font-weight:700; }
html body .fx-pay-lines{ display:flex; flex-direction:column; }
html body .fx-pay-line{ display:flex; justify-content:space-between; align-items:baseline; gap:12px; padding:10px 2px; border-bottom:1px solid var(--line); font-size:13.5px; }
html body .fx-pay-line b{ font-weight:600; font-variant-numeric:tabular-nums; }
html body .fx-pay-line.tot{ border:0; margin-top:8px; background:var(--ink); color:#fff; border-radius:14px; padding:14px 16px; font-size:15px; }
html body .fx-pay-line.tot b{ font-size:20px; font-weight:500; }
@media (max-width:760px){ html body .fx-att-tiles{ grid-template-columns:repeat(3,1fr); } }
/* v188 — mid-month salary change shown as a split in Payroll */
html body .fx-pay-split{ display:flex; gap:10px; align-items:flex-start; background:var(--tint); color:var(--ink); border-radius:14px; padding:10px 12px; margin:4px 0 6px; font-size:12.5px; }
html body .fx-pay-split .f-ic{ width:18px; height:18px; color:var(--brand2); flex:0 0 auto; margin-top:1px; }
html body .fx-pay-line.sub{ font-weight:600; background:var(--soft); border-radius:10px; padding:10px 10px; border-bottom:0; margin:4px 0; }

/* ====================================================================== */
/* v189 — Salary change (increment) form + clean salary history            */
/* ====================================================================== */
html body .sc-intro{ margin:0 0 12px; font-size:.84rem; line-height:1.5; }
html body .sc-table{ border:1px solid var(--line); border-radius:16px; overflow:hidden; margin:12px 0 10px; background:var(--card); }
html body .sc-row{ display:grid; grid-template-columns:1.2fr 1fr 1.1fr 1fr; gap:10px; align-items:center; padding:9px 14px; border-bottom:1px solid var(--line); font-size:13.5px; }
html body .sc-row:last-child{ border-bottom:0; }
html body .sc-row .r{ text-align:right; font-variant-numeric:tabular-nums; }
html body .sc-head{ background:var(--soft); font-size:11px; font-weight:600; color:var(--muted); text-transform:uppercase; letter-spacing:.06em; padding:8px 14px; }
html body .sc-now{ color:var(--muted); }
html body .sc-new{ font-weight:600; }
html body .sc-new.up{ color:var(--pos); } html body .sc-new.down{ color:var(--neg); }
html body .sc-inc{ width:100%; max-width:120px; text-align:right; padding:7px 10px; font-weight:600; }
html body .sc-inc.bad{ border-color:var(--neg)!important; }
html body .sc-tot{ background:var(--soft); font-weight:700; }
html body .sc-tot #scNewTot{ color:var(--brand2); font-size:15px; }
html body .sc-summary{ background:var(--tint); border-radius:12px; padding:10px 14px; font-size:13px; }

html body .sal-hist{ display:flex; flex-direction:column; gap:8px; margin-top:8px; }
html body .sal-hist-row{ display:flex; align-items:flex-start; gap:12px; padding:10px 10px; border:1px solid var(--line); border-radius:14px; background:var(--card); font-size:12.5px; }
html body .sal-hist-row.is-now{ border-color:color-mix(in srgb,var(--brand2) 45%,transparent); background:color-mix(in srgb,var(--tint) 55%,var(--card)); }
html body .sh-date{ flex:0 0 52px; display:flex; flex-direction:column; align-items:center; justify-content:center; background:var(--soft); border-radius:10px; padding:5px 0; line-height:1.1; }
html body .sh-date b{ font-size:13px; } html body .sh-date small{ font-size:10.5px; color:var(--muted); }
html body .sh-mid{ flex:1 1 auto; min-width:0; display:flex; flex-direction:column; gap:4px; }
html body .sh-line{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
html body .sh-line .sal-hist-amt{ font-size:14.5px; font-weight:700; color:var(--ink); }
html body .sh-line .sal-hist-amt span{ font-size:11px; font-weight:500; color:var(--muted); margin-left:1px; }
html body .sh-chips{ display:flex; gap:5px; flex-wrap:wrap; }
html body .sh-chip{ font-size:11px; font-weight:600; border-radius:999px; padding:2px 9px; background:var(--soft); color:var(--muted); }
html body .sh-chip.up{ background:color-mix(in srgb,var(--pos) 13%,transparent); color:var(--pos); }
html body .sh-chip.down{ background:color-mix(in srgb,var(--neg) 12%,transparent); color:var(--neg); }
html body .sh-note{ color:var(--muted); font-size:11.5px; }
html body .sh-tag{ font-size:10px; font-weight:700; border-radius:6px; padding:1px 7px; text-transform:uppercase; letter-spacing:.05em; }
html body .sh-tag.now{ background:var(--brand); color:#fff; }
html body .sh-tag.next{ background:color-mix(in srgb,var(--warn) 16%,transparent); color:var(--warn); }
html body .sal-hist-row .sal-hist-rm{ margin-left:auto; flex:0 0 auto; padding:3px 8px; }
@media (max-width:560px){ html body .sc-row{ grid-template-columns:1fr 1fr; } html body .sc-head{ display:none; } }
html body .fx-left-tag{ display:inline-block; margin-top:3px; font-size:10px; font-weight:700; border-radius:6px; padding:1px 7px;
  background:color-mix(in srgb,var(--neg) 12%,transparent); color:var(--neg); }
html body .fx-pay-person.on .fx-left-tag{ background:rgba(255,255,255,.16); color:#fff; }
/* v190 — Payroll month switcher always visible + empty-month card */
html body .fx-mo-nav{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
html body .fx-pay-empty{ display:flex; flex-direction:column; align-items:center; text-align:center; gap:6px; padding:46px 16px 36px; color:var(--muted); }
html body .fx-pay-empty .f-ic{ width:34px; height:34px; color:var(--brand2); opacity:.7; margin-bottom:4px; }
html body .fx-pay-empty b{ color:var(--ink); font-size:15px; font-weight:600; }
html body .fx-pay-empty span{ font-size:13px; }
/* v190 — "Logged in as" block removed from the sidebar foot (the top bar shows
   who is signed in); Logout is an icon button beside Admin Panel / Backup. */
html body .sidebar .side-user{ display:none!important; }
html body .fx-admin-btn.icon{ padding:0; }
html body .fx-admin-btn.icon span{ display:none; }
html body .fx-logout-btn:hover{ background:color-mix(in srgb,var(--neg) 10%,var(--card)); color:var(--neg)!important; border-color:color-mix(in srgb,var(--neg) 30%,transparent); }

/* ====================================================================== */
/* v191 — Tasks screen in the dashboard style                              */
/* ====================================================================== */
html body .tk-page{ display:flex; flex-direction:column; gap:18px; }
html body .tk-kpis{ display:grid; grid-template-columns:repeat(5,1fr); gap:14px; }
html body .tk-kpi{ min-height:132px; text-align:left; font:inherit; color:var(--ink); cursor:pointer; text-decoration:none;
  border:1.5px solid transparent!important; transition:transform .15s var(--ease), border-color .15s var(--ease); }
html body .tk-kpi:hover{ transform:translateY(-2px); }
html body .tk-kpi .fx-k-num{ font-size:46px; }
html body .tk-kpi.on:not(.hero){ border-color:var(--brand2)!important; }
html body a.tk-kpi:last-child .fx-k-num{ color:var(--neg); }
html body .tk-kpi.hero .fx-k-num{ color:#fff; }

html body .tk-bar{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; background:var(--card); border-radius:22px; padding:10px 12px; }
html body .tk-bar .tk-statfilter{ margin:0; border:0; background:var(--soft); }
html body .tk-bar .spacer{ flex:1 1 auto; }
html body .tk-bar .tk-search{ width:190px; border-radius:var(--rPill)!important; padding:9px 14px; }
html body .tk-bar select{ border-radius:var(--rPill)!important; padding:9px 14px; }
html body .tk-mypts{ font-size:12.5px; color:var(--muted); } html body .tk-mypts b{ color:var(--ink); }

/* section headings: plain, like dashboard card titles */
html body .tk-status-sec{ display:flex; flex-direction:column; gap:12px; margin:0; }
html body .tk-status-h{ display:flex; align-items:center; gap:10px; background:transparent!important; border:0!important; padding:4px 4px 0!important; box-shadow:none!important; }
html body .tk-status-h::before{ display:none!important; }
html body .tk-status-dot{ width:10px; height:10px; border-radius:50%; background:var(--sc); box-shadow:0 0 0 4px color-mix(in srgb,var(--sc) 20%,transparent); }
html body .tk-status-name{ font-size:18px; font-weight:500; letter-spacing:-.01em; color:var(--ink); }
html body .tk-status-n{ font-size:12px; font-weight:700; background:var(--card); color:var(--muted); border-radius:var(--rPill); padding:2px 10px; margin-left:0!important; }

/* card grid */
html body .tk-cards{ display:grid; grid-template-columns:repeat(auto-fill,minmax(380px,1fr)); gap:14px; }
html body .tk-card.tkc{ display:flex; flex-direction:column; gap:8px; background:var(--card); border:1.5px solid transparent; border-left:1.5px solid transparent!important;
  border-radius:22px; padding:16px 18px 14px; box-shadow:none; transition:transform .15s var(--ease), box-shadow .15s var(--ease), border-color .15s; }
html body .tk-card.tkc:hover{ transform:translateY(-2px); box-shadow:var(--f-shadow); border-color:var(--line); }
html body .tk-card.tkc.is-over{ border-color:color-mix(in srgb,var(--neg) 22%,transparent); }
html body .tkc-top{ display:flex; align-items:center; justify-content:space-between; gap:8px; }
html body .tkc-id{ display:inline-flex; align-items:center; gap:7px; font-size:11.5px; font-weight:600; color:var(--muted); background:var(--soft); border-radius:var(--rPill); padding:4px 10px; letter-spacing:.02em; }
html body .tkc-dot{ width:8px; height:8px; border-radius:50%; background:var(--sc); }
html body .tkc-flags{ display:flex; align-items:center; gap:6px; flex-wrap:wrap; justify-content:flex-end; }
html body .tkc-status{ font-size:11.5px; font-weight:600; border-radius:var(--rPill); padding:4px 11px; color:var(--ink);
  background:color-mix(in srgb,var(--sc) 20%,var(--card)); }
html body .tkc-flag{ font-size:11px; font-weight:700; border-radius:var(--rPill); padding:3px 9px; }
html body .tkc-flag.over{ background:color-mix(in srgb,var(--neg) 12%,transparent); color:var(--neg); }
html body .tkc-flag.today{ background:color-mix(in srgb,var(--warn) 14%,transparent); color:var(--warn); }
html body .tkc-flag.score{ background:var(--soft); color:var(--ink); }
html body .tk-card.tkc .tk-bell{ border:0; background:var(--soft); border-radius:50%; width:28px; height:28px; cursor:pointer; font-size:13px; }
html body .tkc-title{ font-size:16px; font-weight:600; letter-spacing:-.015em; color:var(--ink); line-height:1.3; margin-top:2px; }
html body .tkc-tags{ display:flex; gap:6px; flex-wrap:wrap; }
html body .tkc-tag{ font-size:11px; font-weight:600; background:var(--soft); color:var(--muted); border-radius:8px; padding:2px 8px; }
html body .tkc-notes{ font-size:12.5px; color:var(--muted); }
html body .tkc-note{ font-size:11.5px; color:var(--brand2); }
html body .tkc-foot{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-top:6px; padding-top:10px; border-top:1px solid var(--line); }
html body .tkc-who{ display:inline-flex; align-items:center; gap:7px; font-size:12.5px; font-weight:600; color:var(--ink); margin-right:auto; min-width:0; }
html body .tkc-who > span:last-child{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
html body .tkc-due{ display:inline-flex; align-items:center; gap:5px; font-size:12px; font-weight:600; background:var(--soft); border-radius:var(--rPill); padding:4px 10px; color:var(--ink); }
html body .tkc-due .f-ic{ width:14px; height:14px; color:var(--muted); }
html body .tkc-due.over{ background:color-mix(in srgb,var(--neg) 10%,transparent); color:var(--neg); } html body .tkc-due.over .f-ic{ color:var(--neg); }
html body .tkc-due.today{ background:color-mix(in srgb,var(--warn) 12%,transparent); color:var(--warn); }
html body .tkc-prio{ display:inline-flex; align-items:center; gap:6px; font-size:12px; font-weight:600; border-radius:var(--rPill); padding:4px 10px; background:color-mix(in srgb,var(--pc) 14%,transparent); color:var(--ink); }
html body .tkc-prio i{ width:7px; height:7px; border-radius:50%; background:var(--pc); }
html body .tkc-meta{ font-size:11px; color:var(--muted); }
html body .tkc-meta b{ font-weight:600; color:var(--ink); }
html body .tk-card-empty{ background:var(--card); border-radius:22px; padding:40px; text-align:center; }

@media (max-width:1180px){ html body .tk-kpis{ grid-template-columns:repeat(3,1fr); } }
@media (max-width:640px){
  html body .tk-kpis{ grid-template-columns:1fr 1fr; } html body .tk-kpi{ min-height:110px; } html body .tk-kpi .fx-k-num{ font-size:36px; }
  html body .tk-cards{ grid-template-columns:1fr; }
  html body .tk-bar .tk-search, html body .tk-bar select{ flex:1 1 140px; width:auto; }
}
@media (max-width:640px){ html body .tk-kpis > :last-child{ grid-column:1 / -1; min-height:96px; } }
@media (min-width:641px) and (max-width:1180px){ html body .tk-kpis > :nth-child(4), html body .tk-kpis > :nth-child(5){ grid-column:span 1; } }

/* ====================================================================== */
/* v192 — Admin → Lists in the dashboard style                             */
/* ====================================================================== */
html body .fx-lists{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
html body .admin-wrap .fx-list-card,
html body .fx-list-card{ display:flex; flex-direction:column; gap:14px; margin:0; border-radius:24px; border-color:transparent; padding:20px 22px; }
html body .fx-list-h{ display:flex; align-items:center; gap:12px; }
html body .fx-list-ic{ width:42px; height:42px; border-radius:14px; background:var(--tint); color:var(--brand2); display:inline-flex; align-items:center; justify-content:center; flex:0 0 auto; }
html body .fx-list-ic .f-ic{ width:20px; height:20px; }
html body .fx-list-t{ flex:1 1 auto; min-width:0; display:flex; flex-direction:column; }
html body .fx-list-t h3{ margin:0!important; font-size:17px; font-weight:600; }
html body .fx-list-t small{ color:var(--muted); font-size:12px; }
html body .fx-list-n{ font-size:26px; font-weight:300; letter-spacing:-.03em; color:var(--ink); }
html body .fx-list-card .chips{ display:flex; flex-wrap:wrap; gap:7px; margin:0; }
html body .admin-wrap .fx-list-card .chip,
html body .fx-list-card .chip{ background:var(--soft); border:1px solid transparent; padding:6px 6px 6px 13px; font-size:12.5px; transition:border-color .15s; }
html body .fx-list-card .chip:hover{ border-color:var(--line); background:var(--card); }
html body .fx-list-card .chip a[data-rml]{ font-size:11px; }
html body .fx-list-add{ display:flex; align-items:center; gap:6px; background:var(--soft); border-radius:var(--rPill); padding:4px 4px 4px 14px; margin-top:auto; }
html body .fx-list-add input{ flex:1 1 auto; min-width:0; border:0!important; background:transparent!important; box-shadow:none!important; padding:7px 0; font-size:13px; }
html body .fx-list-plus{ width:34px; height:34px; flex:0 0 34px; border-radius:50%; border:0; background:var(--hero); color:#fff; font-size:17px; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; }
html body .fx-list-plus:hover{ transform:scale(1.06); }
@media (max-width:900px){ html body .fx-lists{ grid-template-columns:1fr; } }

/* v194 — delete notifications */
html body .fx-ni-bar{ display:flex; align-items:center; justify-content:space-between; padding:4px 10px 8px; font-size:12px; color:var(--muted); }
html body .fx-ni-clear{ border:0; background:transparent; color:var(--neg); font:inherit; font-size:12px; font-weight:600; cursor:pointer; padding:4px 8px; border-radius:8px; }
html body .fx-ni-clear:hover{ background:color-mix(in srgb,var(--neg) 10%,transparent); }
html body .fx-ni{ position:relative; transition:opacity .18s var(--ease), transform .18s var(--ease); }
html body .fx-ni.going{ opacity:0; transform:translateX(24px); }
html body .fx-ni-del{ flex:0 0 auto; align-self:center; width:28px; height:28px; border-radius:50%; border:0; background:transparent; color:var(--muted);
  cursor:pointer; font-size:12px; opacity:.35; transition:opacity .15s, background .15s, color .15s; }
html body .fx-ni:hover .fx-ni-del{ opacity:1; }
html body .fx-ni-del:hover{ background:color-mix(in srgb,var(--neg) 12%,transparent); color:var(--neg); }
@media (hover:none){ html body .fx-ni-del{ opacity:.8; } }

/* v195 — card "open" arrows work on every dashboard card (were styled only
   inside the top count cards, so on Time tracker / Progress / Task progress
   they collapsed to 0px wide and vanished) + the time-tracker seconds dot */
html body .fx-card-h .fx-k-go{
  width:34px; height:34px; border-radius:50%; border:1.5px solid var(--line); background:transparent; flex:0 0 auto;
  display:inline-flex; align-items:center; justify-content:center; color:var(--ink); text-decoration:none; }
html body .fx-card-h .fx-k-go .f-ic{ width:17px; height:17px; }
html body .fx-card-h .fx-k-go:hover{ background:var(--ink); color:var(--card); border-color:var(--ink); }
html body .fx-plan .fx-card-h .fx-k-go{ border-color:rgba(255,255,255,.35); color:#fff; }
html body .fx-sec-rot{ transition:transform .45s cubic-bezier(.34,1.4,.5,1), opacity .3s; }
html body .fx-sec-dot{ fill:var(--brand2); filter:drop-shadow(0 0 3px color-mix(in srgb,var(--tint2) 90%,transparent)); }
@media (prefers-reduced-motion: reduce){ html body .fx-sec-rot{ transition:opacity .3s; } }

/* ====================================================================== */
/* v196 STAFF STATISTICS — same look as the Analytics page                 */
/* (taskstats.js renders a bare section: KPI cards + chart card + ranking) */
/* ====================================================================== */
html body .sts-card.sts-fx{ background:transparent; border:0; box-shadow:none; padding:0; margin:22px 0 0; }
html body .sts-fx .sts-head{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin:0 0 14px; }
html body .sts-fx .sts-title{ font-size:26px; font-weight:500; letter-spacing:-.025em; margin:0; color:var(--ink); }
html body .sts-fx .sts-filters{ margin-left:auto; display:flex; gap:8px; flex-wrap:wrap; }
html body .sts-fx .sts-seg-ctl{ border:1px solid var(--line); overflow:visible; }
html body .sts-fx .sts-seg-ctl button{ padding:6px 14px; }

html body .sts-fx .sts-chips{ display:flex; flex-wrap:wrap; gap:8px; margin:0 0 16px; }
html body .sts-fx .sts-chip{ display:inline-flex; align-items:center; gap:7px; font:inherit; font-size:12.5px; font-weight:600;
  padding:4px 13px 4px 4px; border-radius:var(--rPill); border:1px solid var(--line); background:var(--card); color:var(--muted); cursor:pointer; }
html body .sts-fx .sts-chip[data-sts-all]{ padding:6px 14px; }
html body .sts-fx .sts-chip:hover{ color:var(--ink); border-color:color-mix(in srgb,var(--brand2) 40%,var(--line)); }
html body .sts-fx .sts-chip.on{ background:var(--brand); border-color:var(--brand); color:#fff; }
html body .sts-fx .sts-chip .fresh-av{ flex:0 0 auto; }

html body .sts-fx .sts-kpis{ margin-bottom:14px; }
html body .sts-fx .fx-k-what{ margin-top:-4px; }
html body .sts-fx .sts-sub{ font-size:12px; text-align:right; }

/* chart card */
html body .sts-fx .sts-chartcard{ min-width:0; }
html body .sts-fx .sts-plot{ position:relative; margin-top:4px; }
html body .sts-fx .sts-svg .ax{ fill:var(--muted); font-size:12px; }
html body .sts-fx .sts-svg .sts-dow{ opacity:.6; font-size:11px; }
html body .sts-fx .sts-svg .sts-today{ fill:var(--brand2); font-weight:700; }
html body .sts-fx .sts-grid{ stroke:var(--line); stroke-width:1; }
html body .sts-fx .sts-area{ opacity:.16; }
html body .sts-fx .sts-line{ stroke-width:2.5; stroke-linecap:round; stroke-linejoin:round; }
html body .sts-fx .sts-prev{ fill:none; stroke:var(--muted); stroke-width:2; stroke-dasharray:4 4; opacity:.6; }
html body .sts-fx .sts-guide{ stroke:var(--ink); stroke-width:1; stroke-dasharray:3 3; opacity:0; transition:opacity .12s; }
html body .sts-fx .sts-guide.on{ opacity:.35; }
html body .sts-fx .sts-hit,html body .sts-fx .sts-hit.on{ fill:transparent; }
html body .sts-fx .sts-legend{ display:flex; flex-wrap:wrap; gap:6px 18px; margin-top:12px; font-size:12.5px; color:var(--muted); }
html body .sts-fx .sts-dot{ width:9px; height:9px; border-radius:3px; }
html body .sts-fx .sts-dash{ display:inline-block; width:16px; height:0; border-top:2px dashed var(--muted); opacity:.7; }
html body .sts-fx .sts-tip{ background:var(--card); border:1px solid var(--line); border-radius:14px; padding:10px 12px;
  box-shadow:0 14px 34px -14px rgba(0,0,0,.28); }

/* ranking card (Top contributors style) */
html body .sts-fx .sts-rankcard{ min-width:0; }
html body .sts-fx .sts-rk-row{ gap:10px; }
html body .sts-fx .sts-rk-n{ flex:0 0 14px; font-size:12px; font-weight:700; color:var(--muted); text-align:center; }
html body .sts-fx .sts-rk-who{ flex:0 1 150px; min-width:0; display:flex; flex-direction:column; }
html body .sts-fx .sts-rk-who b{ font-size:13px; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
html body .sts-fx .sts-rk-who span{ font-size:11px; color:var(--muted); line-height:1.35; }
html body .sts-fx .sts-rk-who .neg{ color:var(--neg); font-weight:600; }
html body .sts-fx .sts-rk-row .cb{ min-width:40px; }
html body .sts-fx .sts-rk-pct{ flex:0 0 38px; text-align:right; font-size:13px; font-variant-numeric:tabular-nums; }
html body .sts-fx .sts-solo-big{ display:flex; align-items:baseline; gap:10px; margin:0 0 6px; }
html body .sts-fx .sts-solo-big b{ font-size:44px; font-weight:300; letter-spacing:-.04em; line-height:1; }
html body .sts-fx .sts-solo-lbl{ flex:0 0 70px; font-size:13px; font-weight:600; }
html body .sts-fx .sts-solo-row b{ flex:0 0 28px; text-align:right; font-size:13px; }
html body .sts-fx .cb.neg i{ background:var(--neg); }
html body .sts-fx .cb.muted i{ background:var(--muted); opacity:.5; }

@media (max-width: 900px){
  html body .sts-fx .sts-filters{ margin-left:0; width:100%; }
  html body .sts-fx .sts-sub{ display:none; }
}
html body .sts-fx .sts-kpi{ padding-bottom:58px; }
html body .sts-fx .sts-svg .ax{ font-size:14px; }
html body .sts-fx .sts-svg .sts-dow{ font-size:12.5px; }
@media (max-width: 600px){
  html body .sts-fx .sts-svg .ax{ font-size:20px; }
  html body .sts-fx .sts-svg .sts-dow{ display:none; }
  html body .sts-fx .sts-kpi .fx-k-num{ font-size:40px; }
  html body .sts-fx .sts-title{ font-size:22px; }
}
@media (max-width: 600px){
  html body .sts-fx .sts-plot{ overflow-x:auto; -webkit-overflow-scrolling:touch; }
  html body .sts-fx .sts-plot .sts-svg{ min-width:640px; }
  html body .sts-fx .sts-svg .ax{ font-size:14px; }
  html body .sts-fx .sts-svg .sts-dow{ display:inline; }
}
