/* ================================================================
   APP SHELL + DASHBOARD - light, full-bleed
   Active while body.fx is set (the router sets it on every route).
   Scale: 4px grid. Radius: panels 20, controls 12, pills 999.
   Type: Inter 400/500, tabular figures. Accent comes from --accent /
   --accent-grad so the accent picker keeps working.
   Big screens: the app scales with --fx-z (CSS zoom). Kept slightly below 1 on
   large displays so the UI stays compact and premium.
   ================================================================ */

.fx-chrome { display: none; }

body.fx {
  --page-bg: #F5F5F7; --surface: #FFFFFF; --topbar-bg: #F5F5F7; --card-bg: #FFFFFF;
  --dropdown-bg: #FFFFFF; --tile-bg: #F5F5F7; --input-bg: #FFFFFF;
  --border: rgba(20,20,20,.07); --border-sidebar: rgba(20,20,20,.07); --border-topbar: rgba(20,20,20,.07);
  --border-divider: rgba(20,20,20,.06); --border-strong: rgba(20,20,20,.12);
  --text-primary: #1D1D1F; --text-secondary: #6E6E73; --text-muted: #86868B; --nav-inactive: #6E6E73;
  --ring-track: rgba(20,20,20,.06);
  --glass-border: rgba(20,20,20,.07); --glass-border-top: rgba(20,20,20,.07); --glass-border-hover: rgba(20,20,20,.12);
  --ink: #1D1D1F; --fx-well: #F5F5F7; --fx-line: rgba(0,0,0,.07); --fx-line-2: rgba(0,0,0,.12);
  /* Button textures. Every filled button in the app uses one of these two: dark graphite (navigation, selected, Analytics) or the accent. */
  --fx-dark: linear-gradient(180deg, #55555A 0%, #34343A 38%, #1B1B1E 72%, #121214 100%);
  --fx-dark-sh: inset 0 1px 0 rgba(255,255,255,.30), inset 0 -1px 0 rgba(0,0,0,.45), 0 1px 2px rgba(0,0,0,.30), 0 8px 16px -8px rgba(0,0,0,.55);
  --fx-gloss: linear-gradient(180deg, rgba(255,255,255,.26) 0%, rgba(255,255,255,.06) 46%, rgba(255,255,255,0) 50%);
  --fx-accent-sh: inset 0 1px 0 rgba(255,255,255,.38), inset 0 -1px 0 rgba(0,0,0,.18), 0 1px 2px rgba(var(--accent-rgb), .35), 0 8px 16px -8px rgba(var(--accent-rgb), .6);
  --fx-ease: cubic-bezier(.22, 1, .36, 1);
  --fx-spring: cubic-bezier(.16, 1, .3, 1);
  --fx-hi: inset 0 1px 0 rgba(255,255,255,.9);
  --fx-sh: 0 0 0 1px rgba(20,20,20,.06), 0 1px 2px rgba(20,20,20,.04), 0 8px 24px -12px rgba(20,20,20,.10);
  --bg-main: #FFFFFF; --fx-head: 64px; --fx-rail: 72px; --fx-z: 1;
  color-scheme: light;
  font-feature-settings: 'cv11', 'ss03';
  font-optical-sizing: auto;
}
html:has(body.fx), body.fx, body.fx .app { background: var(--fx-page, #F5F5F7) !important; }

/* --fx-z is set from the viewport width by finexy.js (width / 1707, clamped 0.74 to 1.8). */

/* ── Shell (desktop): edge to edge ─────────────────────────────── */
@media (min-width: 901px) {
  body.fx .sidebar, body.fx .topbar { display: none; }
  body.fx .app { zoom: var(--fx-z); height: calc(100vh / var(--fx-z)); padding: 0; gap: 0; }
  body.fx .main-wrap {
    position: relative; border: 0; border-radius: 0; overflow: hidden; box-shadow: none;
    background:
      radial-gradient(900px 420px at 100% 0%, rgba(var(--accent-rgb), .06), transparent 70%),
      var(--fx-page, #F5F5F7);
  }
  body.fx .main { padding: 36px clamp(28px, 3.2vw, 56px) 64px calc(var(--fx-rail) + clamp(28px, 3.2vw, 56px)); background: none; gap: 20px; }
  body.fx .main > * { width: 100%; max-width: 1600px; margin-left: auto; margin-right: auto; }

  /* Header */
  body.fx .fx-top {
    display: flex; align-items: center; gap: 12px; position: relative; flex: none; z-index: 6;
    height: var(--fx-head); padding: 0 24px;
    background: rgba(245,245,247,.82); border-bottom: 1px solid var(--fx-line);
    -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5);
  }
  body.fx .fx-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text-primary); font-size: 15px; font-weight: 600; letter-spacing: -.015em; width: calc(var(--fx-rail) - 24px + 120px); }
  body.fx .fx-logo img { width: 30px; height: 30px; display: block; mix-blend-mode: multiply; }
  body.fx .fx-nav {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    display: flex; padding: 4px; gap: 2px; border-radius: 999px; overflow: hidden;
    background: #fff; box-shadow: 0 0 0 1px var(--fx-line), 0 1px 2px rgba(20,20,20,.04);
  }
  body.fx .fx-nav a {
    position: relative; z-index: 1; padding: 0 16px; height: 34px; display: inline-flex; align-items: center; border-radius: 999px;
    font-size: 14px; font-weight: 500; color: var(--text-secondary); text-decoration: none;
    transition: color .2s var(--fx-ease);
  }
  body.fx .fx-nav a:hover { color: var(--text-primary); }
  body.fx .fx-nav a.active, body.fx .fx-nav a.fx-def { color: #fff; }
  body.fx .fx-nav.fx-still .fx-nav-ink { transition: none !important; }
  body.fx .fx-nav-ink {
    position: absolute; left: 0; top: 4px; height: 34px; width: 80px; border-radius: 999px; z-index: 0; opacity: 0;
    background: var(--fx-dark);
    box-shadow: var(--fx-dark-sh);
    transition: transform .55s var(--fx-spring), width .55s var(--fx-spring), opacity .2s;
  }
  body.fx .fx-actions { margin-left: auto; display: flex; }
  body.fx .fx-circle {
    position: relative; width: 40px; height: 40px; border-radius: 50%; background: #fff;
    display: inline-flex; align-items: center; justify-content: center; color: var(--text-primary);
    box-shadow: 0 0 0 1px var(--fx-line), 0 1px 2px rgba(20,20,20,.04);
    transition: background-color .16s var(--fx-ease), box-shadow .16s var(--fx-ease);
  }
  body.fx .fx-circle:hover { background: #FAFAFC; box-shadow: 0 0 0 1px var(--fx-line-2); }
  body.fx .fx-circle svg { width: 18px; height: 18px; stroke-width: 1.6; }
  body.fx .fx-dot { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px #fff; }
  body.fx .fx-profile {
    display: flex; align-items: center; gap: 10px; padding: 4px 16px 4px 4px; text-align: left; border-radius: 999px; background: #fff;
    box-shadow: 0 0 0 1px var(--fx-line), 0 1px 2px rgba(20,20,20,.04); transition: box-shadow .16s var(--fx-ease);
  }
  body.fx .fx-profile:hover { box-shadow: 0 0 0 1px var(--fx-line-2); }
  body.fx .fx-avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 600; }
  body.fx .fx-who { display: flex; flex-direction: column; max-width: 170px; line-height: 1.25; }
  body.fx .fx-who b { font-size: 13px; font-weight: 500; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  body.fx .fx-who i { font-style: normal; font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  /* Rail: attached to the left edge, full height */
  body.fx .fx-rail {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    position: absolute; left: 0; top: var(--fx-head); bottom: 0; width: var(--fx-rail);
    padding: 16px 0; z-index: 5; border-right: 1px solid var(--fx-line); background: rgba(245,245,247,.6);
  }
  body.fx .fx-rail a, body.fx .fx-rail-out {
    position: relative; width: 44px; height: 44px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center;
    color: var(--text-secondary); transition: background-color .16s var(--fx-ease), color .16s var(--fx-ease), transform .16s var(--fx-ease);
  }
  body.fx .fx-rail a:hover, body.fx .fx-rail-out:hover { background: rgba(20,20,20,.05); color: var(--text-primary); }
  body.fx .fx-rail a:active, body.fx .fx-rail-out:active { transform: scale(.94); }
  body.fx .fx-rail a.active { background: var(--fx-dark); color: #fff; box-shadow: var(--fx-dark-sh); }
  body.fx .fx-rail svg { width: 19px; height: 19px; stroke-width: 1.6; }
  body.fx .fx-rail-out { margin-top: auto; }
  body.fx .fx-rail [data-tip]::after {
    content: attr(data-tip); position: absolute; left: calc(100% + 12px); top: 50%; transform: translate(-4px, -50%);
    padding: 6px 10px; border-radius: 10px; white-space: nowrap; pointer-events: none; z-index: 20;
    background: rgba(24,24,24,.92); color: #fff; font-size: 12px; font-weight: 500;
    opacity: 0; transition: opacity .16s var(--fx-ease), transform .16s var(--fx-ease);
  }
  body.fx .fx-rail [data-tip]:hover::after { opacity: 1; transform: translate(0, -50%); }
}

/* ── Dashboard ─────────────────────────────────────────────────── */
.fxd { width: 100%; }
body.fx .fxd-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 0 0 28px; }
.fxd-title { font-size: 34px; font-weight: 500; letter-spacing: -.038em; line-height: 1.1; color: var(--text-primary); }
.fxd-sub { font-size: 14px; line-height: 1.5; color: var(--text-secondary); margin-top: 6px; }
.fxd-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px;
  background: #fff; font-size: 14px; font-weight: 500; color: var(--text-primary); box-shadow: var(--fx-sh);
  transition: background-color .16s var(--fx-ease), transform .16s var(--fx-ease);
}
.fxd-btn:hover { background: #FAFAFC; }
.fxd-btn:active { transform: scale(.98); }
.fxd-btn svg { width: 16px; height: 16px; stroke-width: 1.6; }

.fxd-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.fxd-panel { background: #fff; border-radius: 20px; padding: 24px; min-width: 0; box-shadow: var(--fx-sh); }
.fxd-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.fxd-h2 { font-size: 17px; font-weight: 500; letter-spacing: -.02em; color: var(--text-primary); }
.fxd-panel-head .fxd-sub { margin-top: 4px; font-size: 13px; }
.fxd-label { font-size: 14px; color: var(--text-secondary); }

/* Four figures */
.fxd-stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.fxd-tile { background: #fff; border-radius: 20px; padding: 20px 22px; display: flex; flex-direction: column; min-height: 140px; min-width: 0; box-shadow: var(--fx-sh); position: relative; overflow: hidden; }
.fxd-tile-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.fxd-tile .kpi-label { line-height: 1.3; font-size: 14px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--text-secondary); margin: 0; padding-top: 6px; }
.fxd-ico { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--fx-well); color: var(--text-primary); flex: none; box-shadow: inset 0 0 0 1px rgba(20,20,20,.04); }
.fxd-ico svg { width: 15px; height: 15px; stroke-width: 1.6; }
.fxd-num { font-size: 34px; font-weight: 500; line-height: 1.1; margin: auto 0 0; padding-top: 16px; letter-spacing: -.045em; font-feature-settings: 'cv11', 'ss03', 'tnum'; font-variant-numeric: tabular-nums; color: var(--text-primary); }
.fxd-tile-foot { margin-top: 10px; min-height: 22px; }
.fxd-tile .pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--fx-well); color: var(--text-secondary); border: 0; box-shadow: none; }
.fxd-tile .pill svg { width: 12px; height: 12px; stroke-width: 2; }
.fxd-tile-hot {
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(255,255,255,.30), transparent 55%),
    linear-gradient(158deg, var(--accent-grad) 0%, var(--accent) 64%, color-mix(in srgb, var(--accent) 84%, #000) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), inset 0 -1px 0 rgba(0,0,0,.08), 0 14px 26px -14px rgba(var(--accent-rgb), .55);
}
.fxd-tile-hot .kpi-label, .fxd-tile-hot .fxd-num, .fxd-tile-hot .pill { color: #fff; }
.fxd-tile-hot .fxd-ico { background: rgba(255,255,255,.22); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
.fxd-tile-hot .pill { background: rgba(255,255,255,.2); }

/* Revenue chart */
.fxd-chart { grid-column: span 8; display: flex; flex-direction: column; }
.fxd-legend { display: flex; gap: 16px; font-size: 13px; color: var(--text-secondary); padding-top: 2px; }
.fxd-legend span { display: inline-flex; align-items: center; gap: 6px; }
.fxd-legend i, .fxd-tip i { width: 10px; height: 10px; border-radius: 3px; display: block; flex: none; }
.k-inc { background: #1D1D1F; }
.k-exp { background: repeating-linear-gradient(-45deg, var(--accent) 0 1.5px, color-mix(in srgb, var(--accent) 50%, #fff) 1.5px 3.5px); }
.fxd-plot { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; --yw: 36px; --yg: 12px; }
body.fx .fxd-plot .chart-wrap { position: relative; display: flex; gap: var(--yg); height: 264px; min-height: 0; flex: none; }
body.fx .fxd-plot .chart-yaxis { width: var(--yw); display: flex; flex-direction: column; justify-content: space-between; text-align: right; font-size: 12px; line-height: 14px; color: var(--text-muted); transform: translateY(-7px); font-variant-numeric: tabular-nums; }
body.fx .fxd-plot .chart-bars {
  flex: 1; height: 100%; padding: 0; gap: 0; position: relative; border: 0; border-bottom: 1px solid var(--fx-line-2);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: stretch;
  background: linear-gradient(to bottom, var(--fx-line) 1px, transparent 1px) 0 0 / 100% 20%;
}
body.fx .fxd-plot .bar-col {
  position: relative; height: 100%; width: auto; max-width: none; flex-direction: row; display: flex; align-items: flex-end; justify-content: center;
  padding: 0 12%; cursor: default; border-radius: 10px 10px 0 0; transition: background-color .14s var(--fx-ease);
}
body.fx .fxd-plot .bar-col.hover { background: rgba(20,20,20,.04); }
body.fx .fxd-plot .bar-stack { width: 100%; max-width: 30px; display: flex; flex-direction: column; border-radius: 8px 8px 0 0; overflow: hidden; transform-origin: bottom; animation: fx-grow .8s var(--fx-ease) both; animation-delay: calc(var(--i, 0) * 45ms + 200ms); }
body.fx .fxd-plot .chart-bars.no-anim .bar-stack { animation: none; }
body.fx .fxd-plot .bar-stack.is-empty { background: rgba(20,20,20,.10); height: 3px; border-radius: 2px 2px 0 0; }
body.fx .fxd-plot .bar { width: 100%; max-width: none; min-height: 0; border-radius: 0; border: 0; filter: none; box-shadow: none; }
body.fx .fxd-plot .bar-inc { background: linear-gradient(180deg, #2C2C2C, #151515); }
body.fx .fxd-plot .bar-exp { background: repeating-linear-gradient(-45deg, var(--accent) 0 2.5px, color-mix(in srgb, var(--accent) 52%, #fff) 2.5px 6px); }
body.fx .fxd-plot .bar-tooltip { display: none; }
body.fx .fxd-plot .chart-xaxis { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); padding: 10px 0 0 calc(var(--yw) + var(--yg)); }
body.fx .fxd-plot .chart-xaxis span { text-align: center; font-size: 12px; color: var(--text-muted); transition: color .14s; }
body.fx .fxd-plot .chart-xaxis span.highlight { color: var(--text-primary); font-weight: 500; }
@keyframes fx-grow { from { transform: scaleY(0); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }

.fxd-tip {
  position: absolute; left: 0; top: 0; z-index: 4; pointer-events: none; min-width: 156px;
  display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 12px;
  background: rgba(24,24,24,.94); box-shadow: 0 12px 24px -8px rgba(0,0,0,.35);
  font-size: 12px; color: rgba(255,255,255,.7); opacity: 0; transition: opacity .12s var(--fx-ease);
}
.fxd-tip.on { opacity: 1; }
.fxd-tip b { color: #fff; font-weight: 500; font-size: 12.5px; }
.fxd-tip span { display: flex; align-items: center; gap: 6px; }
.fxd-tip em { font-style: normal; margin-left: auto; padding-left: 16px; color: #fff; font-variant-numeric: tabular-nums; }

/* Income share */
.fxd-share { grid-column: span 4; display: flex; flex-direction: column; }
.fxd-big { font-size: 56px; font-weight: 500; line-height: 1; margin-top: 10px; letter-spacing: -.05em; font-feature-settings: 'cv11', 'ss03', 'tnum'; font-variant-numeric: tabular-nums; }
.fxd-note { font-size: 13px; color: var(--text-muted); margin-top: 8px; }
.fxd-figs { margin: 24px 0 28px; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--fx-line); }
.fxd-figs div { padding: 16px 0 0; min-width: 0; }
.fxd-figs div + div { padding-left: 20px; border-left: 1px solid var(--fx-line); margin-left: 20px; }
.fxd-figs p { font-size: 13px; color: var(--text-muted); }
.fxd-figs b { display: block; margin-top: 4px; font-size: 20px; font-weight: 500; letter-spacing: -.025em; color: var(--text-primary); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fxd-net { margin: 0 0 28px; padding-top: 16px; border-top: 1px solid var(--fx-line); display: flex; align-items: baseline; justify-content: space-between; }
.fxd-net p { font-size: 13px; color: var(--text-muted); }
.fxd-net b { font-size: 20px; font-weight: 500; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.fxd-figs { margin-bottom: 16px !important; }
.fxd-bar { margin-top: auto; padding-top: 0; height: 10px; border-radius: 999px; overflow: hidden; background: repeating-linear-gradient(-45deg, rgba(20,20,20,.12) 0 1.5px, rgba(20,20,20,.03) 1.5px 5px); box-shadow: inset 0 0 0 1px rgba(20,20,20,.04); }
.fxd-bar span { display: block; width: 100%; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent-grad), var(--accent)); clip-path: inset(0 calc(100% - var(--p, 0%)) 0 0 round 999px); transition: clip-path 1.1s var(--fx-ease) .3s; }
.fxd-bar-key { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12px; color: var(--text-muted); }

/* Calendar */
.fxd-cal { grid-column: span 4; align-self: start; }
.fxd-nav2 { display: flex; gap: 6px; }
.fxd-circle { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--fx-well); color: var(--text-primary); transition: background-color .16s var(--fx-ease); }
.fxd-circle:hover { background: #E8E8ED; }
.fxd-circle svg { width: 15px; height: 15px; stroke-width: 1.8; }
body.fx .fxd-cal .cal-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 4px; }
body.fx .fxd-cal .cal-weekdays span { text-align: center; font-size: 12px; font-weight: 400; color: var(--text-muted); padding: 6px 0; text-transform: none; letter-spacing: 0; }
body.fx .fxd-cal .cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
body.fx .cal-day { font-size: 13px; color: var(--text-primary); border-radius: 50%; min-height: 38px; font-variant-numeric: tabular-nums; transition: background-color .16s var(--fx-ease); }
body.fx .cal-day:hover { background: var(--fx-well); }
body.fx .cal-day:active { transform: scale(.94); }
body.fx .cal-day.today { background: var(--fx-dark); color: #fff; font-weight: 500; box-shadow: var(--fx-dark-sh); }
body.fx .cal-day.has-event::after { background: var(--accent); bottom: 5px; }
body.fx .cal-day.today.has-event::after { background: #fff; }

/* My projects */
.fxd-mine { grid-column: span 8; }
body.fx .my-proj-list { display: flex; flex-direction: column; background: none; padding: 0; border-top: 1px solid var(--fx-line); }
body.fx .my-proj-row {
  display: grid; grid-template-columns: minmax(0, 1fr) 200px 96px auto; align-items: center; gap: 24px;
  padding: 16px 0; background: none; border: 0; border-bottom: 1px solid var(--fx-line); border-radius: 0; box-shadow: none;
}
body.fx .my-proj-row:last-child { border-bottom: 0; }
body.fx .my-proj-name { font-size: 14px; font-weight: 500; color: var(--text-primary); }
body.fx .my-proj-client { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
body.fx .proj-status-badge { font-size: 12px; font-weight: 500; padding: 3px 9px; border-radius: 999px; background: var(--fx-well); border: 0; color: var(--text-secondary); text-transform: capitalize; margin: 0 4px; }
body.fx .my-proj-deadline { font-size: 13px; color: var(--text-secondary); line-height: 1.4; }
body.fx .proj-progress-track { height: 6px; border-radius: 999px; background: rgba(20,20,20,.08); overflow: hidden; }
body.fx .proj-progress-fill { height: 100%; border-radius: 999px; }
body.fx .my-proj-row .btn-secondary { height: 34px; padding: 0 14px; border-radius: 999px; background: #fff; color: var(--text-primary); border: 0; box-shadow: 0 0 0 1px var(--fx-line-2); font-size: 13px; font-weight: 500; transition: background-color .16s var(--fx-ease); }
body.fx .my-proj-row .btn-secondary:hover { background: #FAFAFC; }
body.fx .empty-state { padding: 28px 12px; text-align: center; }
body.fx .empty-msg { font-size: 14px; font-weight: 500; color: var(--text-primary); }
body.fx .empty-sub { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* Deals */
.fxd-deals { grid-column: 1 / -1; }
.fxd-search, body.fx .deals-search { position: relative; display: inline-flex; align-items: center; flex: none; max-width: none; padding: 0; background: none; border: 0; box-shadow: none; border-radius: 0; gap: 0; }
.fxd-search svg, body.fx .deals-search .search-icon-svg { position: absolute; left: 14px; width: 15px; height: 15px; stroke-width: 1.6; opacity: 1; color: var(--text-muted); pointer-events: none; z-index: 1; }
.fxd-search input, body.fx .deals-search input { flex: none; height: 40px; width: 240px; padding: 0 16px 0 38px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--fx-line-2); font-size: 14px; color: var(--text-primary); transition: box-shadow .16s var(--fx-ease); }
.fxd-search input:focus { box-shadow: 0 0 0 1px var(--accent), 0 0 0 4px var(--accent-focus); }
.fxd-search input::placeholder { color: var(--text-muted); }
.fxd-tablewrap { overflow-x: auto; }
body.fx .deals-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
body.fx .deals-table thead th { height: 44px; padding: 0 16px; text-align: left; font-size: 13px; font-weight: 400; letter-spacing: 0; text-transform: none; white-space: nowrap; color: var(--text-muted); background: none; border: 0; border-top: 1px solid var(--fx-line); border-bottom: 1px solid var(--fx-line); }
body.fx .deals-table thead th:first-child { padding-left: 0; }
body.fx .deals-table tbody td { height: 52px; padding: 0 16px; border: 0; border-bottom: 1px solid var(--fx-line); color: var(--text-primary); white-space: nowrap; }
body.fx .deals-table tbody td:first-child { padding-left: 0; }
body.fx .deals-table tbody tr:last-child td { border-bottom: 0; }
body.fx .deals-table tbody tr { transition: background-color .15s var(--fx-ease); }
body.fx .deals-table .empty-row td { text-align: center; color: var(--text-muted); height: 96px; }

/* Entrance: once, per page load */
@keyframes fx-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.fxd-head { animation: fx-rise .55s var(--fx-ease) both; }
.fxd-grid > * { animation: fx-rise .65s var(--fx-ease) both; }
.fxd-grid > :nth-child(1) { animation-delay: .05s; }
.fxd-grid > :nth-child(2) { animation-delay: .10s; }
.fxd-grid > :nth-child(3) { animation-delay: .15s; }
.fxd-grid > :nth-child(4) { animation-delay: .20s; }
.fxd-grid > :nth-child(5) { animation-delay: .25s; }
.fxd-grid > :nth-child(6) { animation-delay: .30s; }

/* ── Narrower screens ──────────────────────────────────────────── */
@media (max-width: 1280px) {
  .fxd-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fxd-chart, .fxd-share, .fxd-cal, .fxd-mine { grid-column: 1 / -1; }
  .fxd-cal { align-self: stretch; }
  body.fx .my-proj-row { grid-template-columns: minmax(0, 1fr) 160px auto; }
  body.fx .my-proj-deadline { display: none; }
}
@media (max-width: 900px) {
  body.fx .main { padding: 20px 16px 96px; }
  body.fx .app { height: 100vh; }
  .fxd-title { font-size: 28px; }
  .fxd-grid { gap: 12px; }
  .fxd-stats { gap: 12px; }
  .fxd-panel { padding: 18px; border-radius: 18px; }
  .fxd-tile { padding: 16px; min-height: 120px; border-radius: 18px; }
  .fxd-num { font-size: 26px; }
  .fxd-big { font-size: 44px; }
  body.fx .fxd-plot .chart-wrap { height: 200px; }
  body.fx .my-proj-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
  body.fx .my-proj-progress-wrap { grid-column: 1 / -1; grid-row: 2; }
  .fxd-search input { width: 100%; }
  .fxd-deals .fxd-panel-head { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  body.fx *, body.fx *::before, body.fx *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-delay: 0s !important; }
}

/* ================================================================
   APP SKIN - every other page
   The pages keep their markup and use the shared tokens above; these
   rules replace the dark-glass treatment (white-alpha gradients,
   heavy shadows, hover lifts, tracked uppercase labels) with the same
   flat white surfaces the dashboard uses.
   ================================================================ */

/* Page headers */
body.fx .welcome-label { display: none; }
body.fx .greeting-hello { font-size: 34px; font-weight: 500; letter-spacing: -.038em; line-height: 1.1; margin-top: 0; }
body.fx .greeting-date { font-size: 14px; margin-top: 6px; color: var(--text-secondary); }
body.fx .page-header { align-items: flex-end; margin-bottom: 8px; }

/* Surfaces: one treatment */
body.fx .kpi-card, body.fx .stat-card, body.fx .section-card, body.fx .s-card, body.fx .calendar-card {
  background: #fff; border: 0; border-radius: 20px;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  box-shadow: var(--fx-sh);
}
body.fx .kpi-card::before, body.fx .stat-card::before, body.fx .section-card::before { display: none; }
body.fx .kpi-card:hover, body.fx .stat-card:hover { transform: none; background: #fff; box-shadow: var(--fx-sh); }
body.fx .kpi-card, body.fx .stat-card { padding: 20px 22px; }
body.fx .section-head { padding: 20px 24px; border-bottom: 1px solid var(--fx-line); }
body.fx .section-title { font-size: 17px; font-weight: 500; letter-spacing: -.02em; }
body.fx .section-sub { font-size: 13px; margin-top: 4px; }
body.fx .section-body { padding: 24px; }

/* Figures: sentence-case labels, medium-weight numerals */
body.fx .kpi-label, body.fx .stat-label, body.fx [class*="stat-card"] [class*="label"] {
  font-size: 14px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--text-secondary);
}
body.fx .kpi-value, body.fx .stat-value, body.fx .stat-num, body.fx [class*="stat-card"] [class*="value"] {
  font-size: 34px; font-weight: 500; letter-spacing: -.045em; line-height: 1.1; font-variant-numeric: tabular-nums;
}
body.fx .kpi-sub { font-size: 12.5px; }
body.fx .pill { font-weight: 500; }

/* Buttons and fields */
body.fx .btn-secondary, body.fx .filter-btn, body.fx [class$="-filter-btn"], body.fx .dropdown-btn {
  height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: #fff; color: var(--text-primary);
  font-size: 14px; font-weight: 500; box-shadow: 0 0 0 1px var(--fx-line-2); transition: background-color .16s var(--fx-ease);
}
body.fx .btn-secondary:hover, body.fx .dropdown-btn:hover { background: #FAFAFC; }
body.fx .btn-primary, body.fx .btn-accent, body.fx .btn-new {
  height: 40px; border-radius: 999px; font-weight: 500; font-size: 14px;
  background: linear-gradient(180deg, var(--accent-grad), var(--accent)); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 8px 16px -8px rgba(var(--accent-rgb), .55);
}
body.fx .seg-btn { border: 0; }
body.fx input[type="text"], body.fx input[type="email"], body.fx input[type="number"], body.fx input[type="date"],
body.fx input[type="search"], body.fx input[type="password"], body.fx input[type="tel"], body.fx input[type="url"],
body.fx select, body.fx textarea, body.fx .topbar-search input, body.fx .emp-search-box, body.fx .billing-select {
  background: #fff; border-color: var(--fx-line-2); color: var(--text-primary); box-shadow: none;
}
body.fx input:focus, body.fx select:focus, body.fx textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-focus); outline: 0; }
body.fx label, body.fx .form-label, body.fx .field-label { letter-spacing: 0; }
body.fx .emp-action-btn, body.fx .icon-btn-sm, body.fx .tbl-act, body.fx [class*="row-act"] {
  background: #fff; border: 0; color: var(--text-secondary); box-shadow: 0 0 0 1px var(--fx-line-2);
}
body.fx .emp-action-btn:hover { background: #FAFAFC; color: var(--text-primary); }

/* Tables */
body.fx table { border-collapse: separate; border-spacing: 0; }
body.fx th { font-size: 13px !important; font-weight: 400 !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--text-muted) !important; }
body.fx td { border-color: var(--fx-line); }

/* Cards inside pages (projects, employees) */
body.fx .proj-card, body.fx .emp-card { background: #fff; border: 0; border-radius: 16px; box-shadow: 0 0 0 1px var(--fx-line); transition: box-shadow .18s var(--fx-ease); }
body.fx .proj-card:hover, body.fx .emp-card:hover { transform: none; background: #fff; box-shadow: 0 0 0 1px var(--fx-line-2), 0 8px 20px -12px rgba(20,20,20,.18); }

/* Overlays */
body.fx .modal-backdrop, body.fx [class$="-backdrop"] { background: rgba(20,20,20,.36); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
body.fx .modal-card {
  background: #fff; border: 0; border-radius: 24px;
  box-shadow: 0 0 0 1px var(--fx-line), 0 40px 80px -24px rgba(20,20,20,.35);
}
body.fx .dropdown-menu, body.fx .profile-menu { background: #fff; border: 0; border-radius: 14px; box-shadow: 0 0 0 1px var(--fx-line), 0 16px 32px -12px rgba(20,20,20,.25); }

/* Assistant button */
body.fx .chatbot-fab, body.fx .chatbot-toggle { box-shadow: 0 10px 20px -8px rgba(var(--accent-rgb), .6); }
.fxd-tip .k-inc { background: #fff; }

/* ================================================================
   DASHBOARD LAYOUT - three columns: income share | four figures | chart,
   then calendar | my projects + deals. Same full-bleed shell.
   ================================================================ */
.fxd-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.fxd-chart, .fxd-share { grid-column: auto; }
.fxd-cal { grid-column: auto; grid-row: 2; align-self: stretch; }
.fxd-stack { grid-column: span 2; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.fxd-mine, .fxd-deals { grid-column: auto; }
.fxd-panel { padding: 24px; }

.fxd-tiles-panel { padding: 10px; }
.fxd-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; height: 100%; }
.fxd-tiles .fxd-tile {
  background: linear-gradient(180deg, #F5F5F7, #EFEFF2); box-shadow: inset 0 0 0 1px rgba(20,20,20,.03), var(--fx-hi);
  border-radius: 16px; min-height: 120px; padding: 16px 18px;
}
.fxd-tiles .fxd-tile .fxd-ico { background: #fff; box-shadow: 0 0 0 1px rgba(20,20,20,.05), 0 2px 4px rgba(20,20,20,.05); }
.fxd-tiles .fxd-tile .pill { background: rgba(255,255,255,.85); box-shadow: 0 0 0 1px rgba(20,20,20,.04); }
.fxd-tiles .fxd-tile-hot {
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(255,255,255,.34), transparent 55%),
    linear-gradient(158deg, var(--accent-grad) 0%, var(--accent) 64%, color-mix(in srgb, var(--accent) 84%, #000) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -1px 0 rgba(0,0,0,.08), 0 18px 28px -14px rgba(var(--accent-rgb), .6);
}
.fxd-tiles .fxd-tile-hot .fxd-ico { background: rgba(255,255,255,.24); box-shadow: inset 0 1px 0 rgba(255,255,255,.35); }
.fxd-tiles .fxd-tile-hot .pill { background: rgba(255,255,255,.22); box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
.fxd-num { font-size: 30px; }

.fxd-well {
  background: linear-gradient(180deg, #F5F5F7, #EFEFF2); box-shadow: inset 0 0 0 1px rgba(20,20,20,.03);
  border-radius: 16px; padding: 32px 14px 14px; flex: 1; display: flex; flex-direction: column;
}
body.fx .fxd-well .chart-wrap { height: 200px; }
body.fx .fxd-well .bar-col.hover { background: rgba(20,20,20,.05); }

.fxd-big { font-size: 48px; }
.fxd-figs {
  margin: 20px 0 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 0; border-radius: 16px;
  background: linear-gradient(180deg, #F5F5F7, #EFEFF2); box-shadow: inset 0 0 0 1px rgba(20,20,20,.03);
}
.fxd-figs div { padding: 14px 16px; }
.fxd-figs div + div { padding-left: 16px; margin-left: 0; border-left: 1px solid var(--fx-line); }
.fxd-figs b { font-size: 18px; }
.fxd-bar { margin-top: auto; }
.fxd-figs { margin-bottom: 24px !important; }

body.fx .my-proj-list { background: linear-gradient(180deg, #F5F5F7, #EFEFF2); border: 0; border-radius: 16px; padding: 4px 16px; box-shadow: inset 0 0 0 1px rgba(20,20,20,.03); }
body.fx .my-proj-row { padding: 14px 0; border-bottom: 0; border-top: 1px solid var(--fx-line); }
body.fx .my-proj-row:first-child { border-top: 0; }
body.fx .proj-status-badge { background: #fff; }
body.fx .deals-table thead th { background: linear-gradient(180deg, #F5F5F7, #EFEFF2) !important; border: 0; height: 44px; }
body.fx .deals-table thead th:first-child { padding-left: 16px; border-radius: 12px 0 0 12px; }
body.fx .deals-table thead th:last-child { border-radius: 0 12px 12px 0; }
body.fx .deals-table tbody td:first-child { padding-left: 16px; }

@media (max-width: 1280px) {
  .fxd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fxd-chart { grid-column: span 2; }
  .fxd-stack { grid-column: span 2; }
  .fxd-cal { grid-row: auto; grid-column: span 2; }
}
@media (max-width: 900px) {
  .fxd-grid { grid-template-columns: minmax(0, 1fr); }
  .fxd-chart, .fxd-stack, .fxd-cal { grid-column: auto; }
  .fxd-tiles .fxd-tile { min-height: 108px; padding: 14px; }
  body.fx .fxd-well .chart-wrap { height: 180px; }
}

/* ================================================================
   REFINEMENT - Apple-leaning: no header bar, floating rail, room to breathe
   ================================================================ */
body.fx { --fx-rail: 108px; }
@media (min-width: 901px) {
  body.fx .main-wrap { background: radial-gradient(900px 420px at 100% 0%, rgba(var(--accent-rgb), .045), transparent 70%), var(--fx-page, #F5F5F7); }

  /* Header: floating items on the page, nothing to separate it from the content */
  body.fx .fx-top { background: none; border-bottom: 0; -webkit-backdrop-filter: none; backdrop-filter: none; height: 76px; padding: 0 28px; }
  body.fx .fx-logo { width: auto; }
  body.fx .fx-logo {
    width: 48px; height: 48px; border-radius: 16px; background: #fff; justify-content: center;
    box-shadow: 0 0 0 1px var(--fx-line), 0 1px 2px rgba(0,0,0,.04), 0 6px 16px -8px rgba(0,0,0,.14);
  }
  body.fx .fx-logo img { width: 30px; height: 30px; }
  body.fx .fx-nav { box-shadow: 0 0 0 1px var(--fx-line), 0 1px 2px rgba(0,0,0,.04), 0 6px 16px -8px rgba(0,0,0,.12); }
  body.fx .fx-nav-ink { top: 4px; }

  /* Rail: the floating circular panel */
  body.fx .fx-rail {
    left: 16px; top: 76px; bottom: 16px; width: 64px; padding: 10px 0; gap: 6px; border: 0; border-radius: 32px;
    background: rgba(255,255,255,.78);
    -webkit-backdrop-filter: blur(22px) saturate(1.6); backdrop-filter: blur(22px) saturate(1.6);
    box-shadow: 0 0 0 1px rgba(255,255,255,.8), 0 0 0 1.5px rgba(0,0,0,.04), inset 0 1px 0 rgba(255,255,255,.9), 0 10px 28px -12px rgba(0,0,0,.18);
  }
  body.fx .fx-rail a, body.fx .fx-rail-out { width: 44px; height: 44px; border-radius: 50%; }
  body.fx .main { padding-top: 8px; }
}

/* Room */
.fxd-grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr) minmax(0, 1.25fr); gap: 24px; }
.fxd-stack { gap: 24px; }
.fxd-panel { padding: 28px; border-radius: 24px; }
.fxd-tiles-panel { padding: 12px; }
.fxd-tiles { gap: 12px; }
.fxd-tiles .fxd-tile { padding: 18px 20px; border-radius: 18px; min-height: 128px; }
.fxd-tile .kpi-label { font-size: 13.5px; line-height: 1.3; }
body.fx .fxd-head { margin-bottom: 32px; }
.fxd-panel-head { margin-bottom: 24px; }
.fxd-well { padding: 28px 16px 16px; border-radius: 18px; }
body.fx .fxd-well .chart-wrap { height: 220px; }
body.fx .fxd-plot { --yw: 30px; --yg: 10px; }
body.fx .fxd-plot .chart-xaxis span { font-size: 11px; letter-spacing: -.01em; }
.fxd-big { font-size: 56px; }
.fxd-figs { border-radius: 18px; }

/* Entrance motion only the first time a page opens */
body.fx.fx-seen .fxd-head, body.fx.fx-seen .fxd-grid > *, body.fx.fx-seen .fxd-plot .bar-stack { animation: none !important; }

/* Documents and Case studies: no card around the page, no repeated title */
body.fx .doc-page-card, body.fx .cs-page-card { background: none; box-shadow: none; border-radius: 0; overflow: visible; }
body.fx .doc-page-card > .section-head, body.fx .cs-page-card > .section-head { padding: 0 0 24px; border: 0; }
body.fx .doc-page-card > .section-head .section-title, body.fx .cs-page-card > .section-head .section-title { display: none; }
body.fx .doc-page-card > .section-head .section-sub, body.fx .cs-page-card > .section-head .section-sub { margin: 0; font-size: 14px; }
body.fx .doc-page-card > .section-body, body.fx .cs-page-card > .section-body { padding: 0; }
body.fx .doc-search-box, body.fx .cs-search-box { border: 0; border-radius: 999px; background: #fff; padding: 0 16px; height: 40px; box-shadow: 0 0 0 1px var(--fx-line-2); }
body.fx .doc-filter-btn, body.fx .cs-filter-btn { height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--fx-line-2); font-weight: 500; color: var(--text-primary); }
body.fx .doc-filter-btn:hover, body.fx .cs-filter-btn:hover { color: var(--text-primary); background: #FAFAFC; }
body.fx .doc-card-grid, body.fx .cs-grid { gap: 24px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
body.fx .doc-card { background: #fff; border: 0; border-radius: 20px; box-shadow: var(--fx-sh); }
body.fx .doc-card:hover { transform: none; border: 0; box-shadow: var(--fx-sh); }
body.fx .doc-card.pinned { box-shadow: 0 0 0 1.5px var(--accent), var(--fx-sh); }
body.fx .doc-card-thumb { background: #F5F5F7; border-bottom: 0; height: 160px; }
body.fx .doc-card-info { padding: 16px 18px 12px; }
body.fx .doc-card-name { font-size: 14px; font-weight: 500; }
body.fx .doc-card-meta { font-size: 12.5px; color: var(--text-muted); }
body.fx .doc-card-actions { border-top: 1px solid var(--fx-line); }
body.fx .doc-page-card .empty-state, body.fx .cs-page-card .empty-state { background: #fff; border-radius: 24px; box-shadow: var(--fx-sh); padding: 72px 24px; }
body.fx .doc-page-card .empty-state svg, body.fx .cs-page-card .empty-state svg { width: 40px; height: 40px; opacity: .5; }

/* Responsive re-assertion (must stay last so the refinement block above does not win on small screens) */
@media (max-width: 1280px) {
  .fxd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .fxd-chart, .fxd-stack, .fxd-cal { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 900px) {
  .fxd-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .fxd-chart, .fxd-stack, .fxd-cal { grid-column: auto; }
  .fxd-panel { padding: 20px; border-radius: 20px; }
  .fxd-tiles .fxd-tile { min-height: 108px; padding: 14px 16px; }
  .fxd-big { font-size: 44px; }
  body.fx .fxd-well { padding: 20px 12px 12px; }
  body.fx .fxd-well .chart-wrap { height: 180px; }
  body.fx .fxd-head { margin-bottom: 20px; }
}

/* ── Shared fixes: focus rings, logo alignment, calendar day cells ── */
body.fx .fx-chrome a:focus, body.fx .fx-chrome button:focus, body.fx .fx-chrome a:focus-visible, body.fx .fx-chrome button:focus-visible { outline: 0; }
body.fx .fx-chrome a:focus-visible, body.fx .fx-chrome button:focus-visible { box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(29,29,31,.35); }
body.fx a:focus:not(:focus-visible), body.fx button:focus:not(:focus-visible) { outline: 0; }
body.fx a:focus-visible, body.fx button:focus-visible { outline: 2px solid rgba(29,29,31,.4); outline-offset: 2px; }
body.fx .fx-rail [data-tip]:not(:hover)::after, body.fx .fx-rail [data-tip]:focus::after { opacity: 0; }
@media (min-width: 901px) {
  body.fx .fx-top { padding-left: 24px; padding-right: 28px; }
}
body.fx .cal-day { aspect-ratio: auto; width: 38px; height: 38px; min-height: 0; justify-self: center; align-self: center; }
body.fx .calendar-card .cal-days, body.fx .fxd-cal .cal-days { align-content: start; row-gap: 6px; }

/* ── Boot splash: calm, light, one logo and a hairline ── */
.boot-splash { background: #F5F5F7 !important; gap: 28px !important; transition: opacity .5s cubic-bezier(.22,1,.36,1), visibility .5s !important; }
.boot-splash .boot-splash-tile {
  width: 72px; height: 72px; border-radius: 22px; background: #fff; display: grid; place-items: center;
  box-shadow: 0 0 0 1px rgba(0,0,0,.05), 0 1px 2px rgba(0,0,0,.04), 0 18px 40px -18px rgba(0,0,0,.22);
  animation: bootIn .7s cubic-bezier(.22,1,.36,1) both;
}
.boot-splash .boot-splash-logo { width: 40px; height: 40px; border-radius: 0; object-fit: contain; mix-blend-mode: multiply; }
.boot-splash .boot-splash-line { width: 96px; height: 2px; border-radius: 2px; background: rgba(0,0,0,.08); overflow: hidden; animation: bootIn .7s .1s cubic-bezier(.22,1,.36,1) both; }
.boot-splash .boot-splash-line span { display: block; height: 100%; width: 40%; border-radius: 2px; background: #1D1D1F; animation: bootSlide 1.3s cubic-bezier(.65,0,.35,1) infinite; }
@keyframes bootIn { from { opacity: 0; transform: translateY(6px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes bootSlide { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
@media (prefers-reduced-motion: reduce) { .boot-splash .boot-splash-line span { animation: none; width: 100%; opacity: .4; } }

/* ── Boot splash v2: soft light, glass tile, slow ripples, one sheen ── */
.boot-splash { background: #F5F5F7 !important; gap: 0 !important; overflow: hidden; }
.boot-splash .boot-splash-aura {
  position: absolute; inset: -20%; pointer-events: none;
  background:
    radial-gradient(40% 40% at 50% 46%, rgba(255,255,255,.95), rgba(255,255,255,0) 70%),
    radial-gradient(32% 32% at 62% 58%, rgba(var(--accent-rgb, 232,73,29), .10), rgba(var(--accent-rgb, 232,73,29), 0) 70%),
    radial-gradient(30% 30% at 36% 40%, rgba(120,130,160,.10), rgba(120,130,160,0) 70%);
  animation: bootAura 6s ease-in-out infinite alternate;
}
.boot-splash .boot-splash-stage { position: relative; width: 240px; height: 240px; display: grid; place-items: center; }
.boot-splash .boot-ripple {
  position: absolute; inset: 50%; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 32px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.11); opacity: 0; animation: bootRipple 3.6s cubic-bezier(.22,1,.36,1) infinite;
}
.boot-splash .boot-ripple.r2 { animation-delay: 1.2s; }
.boot-splash .boot-ripple.r3 { animation-delay: 2.4s; }
.boot-splash .boot-splash-tile {
  position: relative; width: 96px; height: 96px; border-radius: 30px; overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(180deg, #FFFFFF, #F7F7F9);
  box-shadow: 0 0 0 1px rgba(0,0,0,.05), inset 0 1px 0 #fff, 0 2px 4px rgba(0,0,0,.04), 0 28px 56px -22px rgba(0,0,0,.28);
  animation: bootTile 1s cubic-bezier(.22,1,.36,1) both, bootFloat 4.5s 1s ease-in-out infinite;
}
.boot-splash .boot-splash-logo { width: 54px; height: 54px; object-fit: contain; mix-blend-mode: multiply; animation: bootLogo 1.1s .15s cubic-bezier(.22,1,.36,1) both; }
.boot-splash .boot-sheen {
  position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.9) 50%, transparent 65%);
  transform: translateX(-120%); animation: bootSheen 3.2s 1.1s cubic-bezier(.65,0,.35,1) infinite; mix-blend-mode: soft-light;
}
.boot-splash .boot-splash-tag {
  margin: 4px 0 0; font-size: 13px; font-weight: 500; color: #86868B; letter-spacing: .14em; text-transform: none;
  animation: bootTag 1.2s .5s cubic-bezier(.22,1,.36,1) both;
}
.boot-splash .boot-splash-line { margin-top: 26px; width: 120px; height: 2px; border-radius: 2px; background: rgba(0,0,0,.07); overflow: hidden; animation: bootTag 1s .7s both; }
.boot-splash .boot-splash-line span { display: block; height: 100%; width: 38%; border-radius: 2px; background: linear-gradient(90deg, rgba(29,29,31,0), #1D1D1F 60%, rgba(29,29,31,0)); animation: bootSlide 1.5s cubic-bezier(.65,0,.35,1) infinite; }
@keyframes bootTile { from { opacity: 0; transform: scale(.86) translateY(8px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes bootLogo { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: none; } }
@keyframes bootFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes bootRipple { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(2.3); border-radius: 80px; } }
@keyframes bootSheen { 0% { transform: translateX(-120%); } 55%,100% { transform: translateX(120%); } }
@keyframes bootTag { from { opacity: 0; transform: translateY(6px); letter-spacing: .3em; } to { opacity: 1; transform: none; letter-spacing: .14em; } }
@keyframes bootAura { from { transform: translate3d(-1.5%, -1%, 0) scale(1); } to { transform: translate3d(1.5%, 1%, 0) scale(1.05); } }
@media (prefers-reduced-motion: reduce) { .boot-splash *, .boot-splash *::before { animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }

/* ================================================================
   BOOT SPLASH v3 - "time trace": the C draws itself like two clock hands,
   a 60-tick dial becomes the progress sweep, the wordmark resolves beside it.
   ================================================================ */
.boot-splash { --bk-ink: #1D1D1F; --bk-acc: var(--accent, #E8491D); background: #F5F5F7 !important; gap: 0 !important; overflow: hidden;
  transition: opacity .7s cubic-bezier(.22,1,.36,1), visibility .7s, filter .7s !important; }
.boot-splash[hidden] { opacity: 0; filter: blur(10px); }
.boot-splash[hidden] .boot-lockup { transform: scale(1.04); }

/* soft light field (blurred, slowly drifting) */
.boot-field { position: absolute; inset: 0; pointer-events: none; filter: blur(60px); opacity: 0; animation: bkFade 1.6s .1s ease-out forwards; }
.boot-field i { position: absolute; border-radius: 50%; }
.boot-field i:nth-child(1) { width: 52vmax; height: 52vmax; left: 24%; top: 6%; background: radial-gradient(closest-side, #fff, rgba(255,255,255,0)); animation: bkDrift1 9s ease-in-out infinite alternate; }
.boot-field i:nth-child(2) { width: 34vmax; height: 34vmax; left: 52%; top: 42%; background: radial-gradient(closest-side, color-mix(in srgb, var(--bk-acc) 16%, transparent), transparent); animation: bkDrift2 11s ease-in-out infinite alternate; }
.boot-field i:nth-child(3) { width: 38vmax; height: 38vmax; left: 4%; top: 30%; background: radial-gradient(closest-side, rgba(140,150,175,.16), transparent); animation: bkDrift1 13s ease-in-out infinite alternate-reverse; }

.boot-lockup { position: relative; display: flex; align-items: center; gap: 0; transition: transform .7s cubic-bezier(.22,1,.36,1); }
.boot-mark { width: 216px; height: 216px; overflow: visible; flex: none; animation: bkSettle 2.7s cubic-bezier(.65,0,.35,1) both; }

/* seed: a point of light where the line starts */
.boot-seed { fill: var(--bk-acc); transform-origin: 63.26px 142.26px; opacity: 0; animation: bkSeed .9s cubic-bezier(.22,1,.36,1) both; }

/* the two strands */
.boot-ink { fill: none; stroke: var(--bk-ink); stroke-width: 6.6; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.boot-ink.s1 { animation: bkDraw 1.15s .35s cubic-bezier(.65,0,.35,1) forwards; }
.boot-ink.s2 { animation: bkDraw 1.05s .62s cubic-bezier(.65,0,.35,1) forwards; }
.boot-spark { fill: none; stroke: var(--bk-acc); stroke-width: 7.4; stroke-linecap: round; stroke-dasharray: .045 2; stroke-dashoffset: .045; opacity: 0;
  filter: drop-shadow(0 0 3px color-mix(in srgb, var(--bk-acc) 60%, transparent)); }
.boot-spark.s1 { animation: bkSpark 1.15s .35s cubic-bezier(.65,0,.35,1) forwards; }
.boot-spark.s2 { animation: bkSpark 1.05s .62s cubic-bezier(.65,0,.35,1) forwards; }

/* the dial: 60 ticks appear clockwise, then a soft sweep runs while loading */
.boot-ticks line { stroke: var(--bk-ink); stroke-width: .9; stroke-linecap: round; opacity: 0;
  animation: bkTickIn .5s calc(1.25s + var(--i) * 9ms) ease-out forwards, bkTickSweep 2s calc(2.1s + var(--i) * 33.3ms) linear infinite; }
.boot-ticks line.bt-m { stroke-width: 1.4; }

/* wordmark: slides out from behind the mark, letters un-blur one by one */
.bw5 { overflow: hidden; max-width: 0; padding-left: 0; animation: bkWordOpen .9s 1.55s cubic-bezier(.22,1,.36,1) forwards; }
.boot-name { margin: 0; white-space: nowrap; font-size: 58px; line-height: 1; font-weight: 500; letter-spacing: -.035em; color: var(--bk-ink); }
.boot-name span { display: inline-block; opacity: 0; filter: blur(8px); transform: translateX(-6px); animation: bkLetter .7s calc(1.7s + var(--i) * 45ms) cubic-bezier(.22,1,.36,1) forwards; }
.boot-tag { margin: 12px 0 0 3px; white-space: nowrap; font-size: 14px; font-weight: 500; letter-spacing: .02em; color: #86868B; opacity: 0; animation: bkUp .8s 2.15s cubic-bezier(.22,1,.36,1) forwards; }

/* returning visits in the same session: skip straight to the finished lockup */
.boot-splash.boot-quick *, .boot-splash.boot-quick { animation-delay: 0s !important; animation-duration: .01ms !important; }
.boot-splash.boot-quick .boot-ticks line { animation: bkTickIn .01ms forwards, bkTickSweep 2s calc(var(--i) * 33.3ms) linear infinite !important; }

@keyframes bkFade { to { opacity: 1; } }
@keyframes bkSeed { 0% { opacity: 0; transform: scale(.2); } 35% { opacity: 1; transform: scale(1.6); } 70% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(.6); } }
@keyframes bkDraw { to { stroke-dashoffset: 0; } }
@keyframes bkSpark { 0% { opacity: 0; stroke-dashoffset: .045; } 8% { opacity: 1; } 88% { opacity: 1; } 100% { opacity: 0; stroke-dashoffset: -.955; } }
@keyframes bkTickIn { from { opacity: 0; } to { opacity: .18; } }
@keyframes bkTickSweep { 0% { opacity: .18; stroke: var(--bk-ink); } 3% { opacity: 1; stroke: var(--bk-acc); } 30% { opacity: .18; stroke: var(--bk-ink); } 100% { opacity: .18; } }
@keyframes bkSettle { 0% { transform: scale(1.12); } 55% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes bkWordOpen { from { max-width: 0; padding-left: 0; } to { max-width: 380px; padding-left: 34px; } }
@keyframes bkLetter { to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes bkUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes bkDrift1 { from { transform: translate(-4%, -3%) scale(1); } to { transform: translate(4%, 3%) scale(1.08); } }
@keyframes bkDrift2 { from { transform: translate(3%, 2%) scale(1.05); } to { transform: translate(-5%, -3%) scale(.95); } }

@media (max-width: 600px) {
  .boot-mark { width: 120px; height: 120px; }
  .boot-name { font-size: 32px; }
  @keyframes bkWordOpen { from { max-width: 0; padding-left: 0; } to { max-width: 220px; padding-left: 18px; } }
}
@media (prefers-reduced-motion: reduce) {
  .boot-splash *, .boot-splash { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; }
}

/* ================================================================
   BOOT SPLASH v4 - liquid colour field + the C unrolling from two clock hands
   (motion is driven by the inline script in index.html; no animated filters, so it stays smooth)
   ================================================================ */
.boot-splash { background: #F7801E !important; display: grid !important; place-items: center; overflow: hidden;
  transition: opacity .8s cubic-bezier(.22,1,.36,1), visibility .8s !important; }
.boot-splash[hidden] { opacity: 0; filter: none; }
.boot-flow { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.boot-splash.boot-noflow { background: radial-gradient(120% 90% at 30% 10%, #F25A0F, #F8832A 45%, #FABB80 75%, #FCE7D0) !important; }
.boot-c { position: relative; width: min(38vmin, 300px); height: min(38vmin, 300px); overflow: visible; will-change: transform;
  filter: drop-shadow(0 18px 40px rgba(120, 40, 0, .18)); transition: transform .8s cubic-bezier(.22,1,.36,1); }
.boot-strand { fill: none; stroke: #FFFFFF; stroke-linecap: round; stroke-linejoin: round; stroke-width: 0; }
.boot-splash[hidden] .boot-c { transform: scale(.92) !important; }
@media (max-width: 600px) { .boot-c { width: 46vmin; height: 46vmin; } }
.boot-flow { filter: blur(14px); transform: scale(1.06); }
.boot-c { width: min(58vmin, 480px); height: min(58vmin, 480px); }
@media (max-width: 600px) { .boot-c { width: 70vmin; height: 70vmin; } }

/* ===== boot splash v5: near-white field, black lockup ===== */
.boot-splash{background:#FFFBF6!important}
.boot-flow{filter:blur(18px)!important;transform:scale(1.1)!important;opacity:1!important}
.boot-lock{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;align-items:center;column-gap:.22em;font-size:clamp(36px,10.5vw,112px);will-change:transform}
.boot-lock .boot-c{position:static!important;width:.98em!important;height:.98em!important;max-width:none!important;flex:none;overflow:visible;will-change:transform}
.boot-strand{fill:none!important;stroke:#111!important;stroke-width:8.6!important;stroke-linecap:round!important;stroke-dasharray:1 1;stroke-dashoffset:1;opacity:0}
.bwx{display:flex;font:600 1em/1 Inter,system-ui,-apple-system,sans-serif;letter-spacing:-.045em;color:#111;overflow:hidden;padding:.14em .05em;margin:-.14em -.05em;white-space:pre}
.bwx span{display:inline-block;opacity:0;will-change:transform,opacity}
.bwx span.sp{width:.24em}
.bwx span.ai{color:#F4620F}
.boot-lock{width:max-content!important;max-width:none!important}
.bwx{flex:none!important}

.bwx{justify-content:flex-start!important;align-items:baseline;gap:0!important;text-align:left}

/* ===== Settings revamp: left sub-menu, calm surfaces ===== */
body.fx .settings-wrap{display:grid!important;grid-template-columns:232px minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);column-gap:56px;align-items:start;max-width:1240px;margin:0 auto;padding:8px 0 0;overflow:visible!important;flex:1 1 auto;min-height:0}
body.fx .main:has(.settings-wrap){overflow:hidden;padding-bottom:28px}
body.fx .settings-content{overflow-y:auto;height:100%;min-height:0;padding-bottom:40px!important;scrollbar-width:thin}
body.fx .settings-header{grid-column:1/-1;padding:0 0 34px!important}
body.fx .settings-header h1{font-size:34px;font-weight:500;letter-spacing:-.038em;margin:0}
body.fx .settings-header p{font-size:14px;color:var(--text-secondary);margin-top:6px}
body.fx .settings-tab-bar{padding:0!important;position:static}
body.fx .settings-tabs{display:flex!important;flex-direction:column;gap:2px;background:none!important;border:0!important;box-shadow:none!important;padding:0!important;border-radius:0!important;width:100%}
body.fx .settings-tab{display:flex;align-items:center;gap:12px;width:100%;text-align:left;padding:11px 14px!important;border-radius:12px!important;font-size:14.5px!important;font-weight:450;color:var(--text-secondary)!important;background:none!important;box-shadow:none!important;border:0!important;transition:background .2s,color .2s}
body.fx .settings-tab i,body.fx .settings-tab svg{width:18px;height:18px;flex:none;stroke-width:1.7}
body.fx .settings-tab:hover{background:rgba(29,29,31,.05)!important;color:var(--text-primary)!important}
body.fx .settings-tab.active{background:#fff!important;color:var(--text-primary)!important;font-weight:550;box-shadow:var(--fx-sh)!important}
body.fx .settings-content{padding:0!important;min-width:0}
body.fx .settings-panel{max-width:760px;gap:28px}
body.fx .s-card{overflow:hidden}
body.fx .s-card-head{padding:22px 26px 6px!important;border:0!important;background:none!important}
body.fx .s-card-body{padding:14px 26px 26px!important}
body.fx .s-card-title{font-size:16px;font-weight:550;letter-spacing:-.015em}
body.fx .s-card-sub{font-size:13px;margin-top:3px}
body.fx .s-icon-box{background:#F5F5F7!important;color:#1D1D1F!important;box-shadow:none!important;border-radius:12px}
body.fx .s-icon-box svg,body.fx .s-icon-box i{color:#1D1D1F!important;stroke:#1D1D1F!important}
body.fx .form-label{font-size:12.5px!important;font-weight:500!important;text-transform:none!important;letter-spacing:0!important;color:var(--text-secondary)!important}
body.fx .s-profile-avatar{overflow:hidden}
/* upload progress: one tidy compact block next to the control, never full-bleed */
body.fx #avatarUploadProgress,body.fx #logoUploadProgress,body.fx #bannerUploadProgress{flex-direction:column;align-items:flex-start;justify-content:center;gap:6px;width:160px;margin:0 0 0 18px!important;align-self:center}
body.fx #logoUploadProgress,body.fx #bannerUploadProgress{margin:10px 0 0!important}
body.fx #avatarUploadProgress>div:first-child,body.fx #logoUploadProgress>div:first-child,body.fx #bannerUploadProgress>div:first-child{width:100%!important;height:4px!important;border-radius:999px;background:rgba(29,29,31,.1)!important}
body.fx #avatarProgressBar,body.fx #logoProgressBar,body.fx #bannerProgressBar{background:#1D1D1F!important;border-radius:999px;transition:width .25s var(--fx-ease)}
body.fx #avatarProgressLabel,body.fx #logoProgressLabel,body.fx #bannerProgressLabel{margin:0!important;font-size:12px!important;color:var(--text-secondary)!important}
body.fx .fx-avatar{overflow:hidden}
body.fx .fx-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}
@media(max-width:900px){body.fx .settings-wrap{grid-template-columns:1fr;column-gap:0}body.fx .settings-tab-bar{position:static;margin-bottom:22px;overflow-x:auto}body.fx .main:has(.settings-wrap){overflow-y:auto}body.fx .settings-content{overflow:visible;height:auto}body.fx .settings-tabs{flex-direction:row;gap:6px;width:max-content}body.fx .settings-tab{width:auto;white-space:nowrap}}

/* ===== Appearance controls that visibly change the app ===== */
body.fx{background:var(--fx-page,#F5F5F7)}
body.fx.density-compact .section-body{padding:16px!important}
body.fx.density-compact .section-head{padding:14px 18px!important}
body.fx.density-compact .stat-card,body.fx.density-compact .kpi-card{padding:14px 16px!important}
body.fx.density-compact .inv-table tbody td,body.fx.density-compact .emp-table tbody td{padding-top:8px!important;padding-bottom:8px!important}
body.fx.density-compact .page-header{margin-bottom:0}
body.fx.density-compact #page-content{--fx-gap:14px}
/* Settings: Customize tab fixes, neat accent circles */
body.fx .cz-panel{max-width:760px!important;gap:28px!important}
body.fx .cz-panel>*{margin:0!important}
body.fx .cz-subnav{display:flex;flex-wrap:wrap;gap:6px;background:none!important;border:0!important;box-shadow:none!important;padding:0!important}
body.fx .cz-subnav-btn{border-radius:999px;padding:8px 14px;font-size:13px;font-weight:500;background:#fff;border:0;box-shadow:var(--fx-sh);color:var(--text-secondary)}
body.fx .cz-subnav-btn.active{background:#1D1D1F;color:#fff;box-shadow:none}
body.fx .cz-panel .s-card+.s-card,body.fx .cz-panel>div+div{margin-top:0}
body.fx .accent-grid{display:flex!important;gap:16px;flex-wrap:wrap}
body.fx .accent-swatch{width:44px;height:44px;aspect-ratio:auto;border-radius:50%!important;border:0!important}
body.fx .accent-swatch.active{box-shadow:0 0 0 3px #fff,0 0 0 5px rgba(29,29,31,.85)!important}
body.fx .accent-swatch-check svg{width:18px;height:18px}
body.fx .cz-panel .s-card{margin-bottom:28px!important}

/* ===== Documents: folders, starred, list + grid ===== */
body.fx .doc-page-card{background:none!important;box-shadow:none!important;border-radius:0!important}
body.fx .doc-page-card>.section-head{padding:0 0 22px!important}
body.fx .doc-page-card>.section-head>div:last-child{gap:10px;flex-wrap:wrap}
.dg-seg{display:inline-flex;background:#fff;border-radius:999px;padding:3px;box-shadow:var(--fx-sh)}
.dg-seg button{width:36px;height:34px;border:0;background:none;border-radius:999px;display:grid;place-items:center;color:#6E6E73;cursor:pointer;transition:background .25s var(--fx-ease),color .25s}
.dg-seg button svg{width:16px;height:16px}
.dg-seg button.on{background:#1D1D1F;color:#fff}
.dg-sec{margin-top:34px}.dg-sec:first-child{margin-top:8px}
.dg-sec-h{display:flex;align-items:center;gap:10px;margin-bottom:14px}
.dg-sec-h h2{font-size:19px;font-weight:550;letter-spacing:-.025em;margin:0;color:#1D1D1F}
.dg-count{font-size:12.5px;color:#86868B;background:rgba(29,29,31,.06);border-radius:999px;padding:2px 9px;font-weight:500}
.dg-none{color:#86868B;font-size:14px;padding:18px 0}
.dg-crumbs{display:flex;align-items:center;gap:10px;font-size:20px;letter-spacing:-.02em;margin-bottom:4px}
.dg-crumbs button{border:0;background:none;color:#86868B;font:inherit;cursor:pointer;padding:0}
.dg-crumbs button:hover{color:#1D1D1F}.dg-crumbs span{color:#C7C7CC}.dg-crumbs b{font-weight:550}
/* folders */
.dg-folders{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:14px}
.dg-folder{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:3px;text-align:left;background:#fff;border:0;border-radius:20px;padding:18px 18px 16px;box-shadow:var(--fx-sh);cursor:pointer;transition:transform .35s var(--fx-spring),box-shadow .35s var(--fx-ease);font:inherit}
.dg-folder:hover{transform:translateY(-3px);box-shadow:0 0 0 1px rgba(20,20,20,.06),0 18px 36px -18px rgba(20,20,20,.28)}
.dg-fico{width:52px;height:46px;margin-bottom:8px;display:block}.dg-fico svg{width:100%;height:100%;filter:drop-shadow(0 6px 8px rgba(255,149,0,.28))}
.dg-folder b{font-size:15px;font-weight:550;color:#1D1D1F;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dg-folder>span:last-of-type{font-size:12.5px;color:#86868B}
.dg-fact{position:absolute;top:12px;right:12px;display:flex;gap:4px;opacity:0;transition:opacity .2s}.dg-folder:hover .dg-fact{opacity:1}
.dg-newf{align-items:center;justify-content:center;background:transparent!important;box-shadow:none!important;border:1.5px dashed rgba(29,29,31,.18)!important;min-height:132px;color:#6E6E73}
.dg-newf:hover{border-color:#F4620F!important;color:#F4620F}.dg-newf b{color:inherit}
.dg-plus{font-size:30px;font-weight:300;line-height:1}
.dg-emptyf{display:flex;align-items:center;gap:16px;width:100%;text-align:left;background:#fff;border:1.5px dashed rgba(29,29,31,.16);border-radius:20px;padding:18px 22px;cursor:pointer;font:inherit;transition:border-color .2s,transform .3s var(--fx-spring)}
.dg-emptyf:hover{border-color:#F4620F;transform:translateY(-2px)}.dg-emptyf .dg-fico{margin:0;flex:none}
.dg-emptyf b{display:block;font-size:15px;font-weight:550}.dg-emptyf em{font-style:normal;font-size:13px;color:#86868B}
/* shared icon buttons */
.dg-ib{width:32px;height:32px;border:0;border-radius:10px;background:transparent;color:#6E6E73;display:inline-grid;place-items:center;cursor:pointer;transition:background .2s,color .2s}
.dg-ib svg{width:16px;height:16px}.dg-ib:hover{background:rgba(29,29,31,.07);color:#1D1D1F}.dg-ib.danger:hover{background:rgba(229,72,77,.1);color:#E5484D}
.dg-star.on{color:#F5A524}.dg-star.on svg{fill:#F5A524}
/* list */
.dg-list{background:#fff;border-radius:20px;box-shadow:var(--fx-sh);overflow:hidden}
.dg-row{display:grid;grid-template-columns:minmax(220px,2.4fr) 110px minmax(120px,1.2fr) 130px 90px minmax(250px,auto);align-items:center;gap:12px;padding:0 20px;min-height:58px;border-bottom:1px solid rgba(29,29,31,.06)}
.dg-row:last-child{border-bottom:0}
.dg-head{min-height:44px;background:#FAFAFB;font-size:12.5px;color:#86868B;font-weight:500}
.dg-item{cursor:pointer;transition:background .2s}.dg-item:hover{background:#FAFAFB}
.dg-name{display:flex;align-items:center;gap:12px;min-width:0}.dg-name b{font-weight:500;font-size:14.5px;color:#1D1D1F;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dg-ico{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;flex:none}.dg-ico svg{width:18px;height:18px}
.dg-starmark{display:inline-grid;color:#F5A524}.dg-starmark svg{width:13px;height:13px;fill:#F5A524}
.dg-type{font-style:normal;font-size:12px;font-weight:500;color:#6E6E73;background:rgba(29,29,31,.05);border-radius:999px;padding:3px 10px;white-space:nowrap}
.dg-who{display:flex;align-items:center;gap:8px;font-size:13.5px;color:#3A3A3C;min-width:0}
.dg-who i{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;font-size:10px;font-style:normal;font-weight:600;color:#fff;flex:none}
.dg-dim{font-size:13.5px;color:#6E6E73;white-space:nowrap}
.dg-acts{display:flex;align-items:center;justify-content:flex-end;gap:2px}
.dg-prev{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 12px;border-radius:999px;border:0;background:#fff;box-shadow:0 0 0 1px rgba(20,20,20,.12);font:500 13px/1 inherit;color:#1D1D1F;cursor:pointer;margin-right:4px;transition:box-shadow .2s,background .2s}
.dg-prev svg{width:15px;height:15px}.dg-prev:hover{background:#1D1D1F;color:#fff;box-shadow:none}
/* grid */
.dg-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(236px,1fr));gap:18px}
.dg-card{background:#fff;border-radius:22px;padding:10px 10px 6px;box-shadow:var(--fx-sh);transition:transform .4s var(--fx-spring),box-shadow .4s var(--fx-ease)}
.dg-card:hover{transform:translateY(-4px);box-shadow:0 0 0 1px rgba(20,20,20,.06),0 22px 44px -22px rgba(20,20,20,.32)}
.dg-thumb{position:relative;height:168px;border-radius:16px;overflow:hidden;display:grid;place-items:center}
.dg-thumb img,.dg-thumb canvas{width:100%;height:100%;object-fit:cover;display:block}
.dg-big{display:flex;flex-direction:column;align-items:center;gap:8px}.dg-big svg{width:54px;height:54px;stroke-width:1.2}.dg-big small{font-size:11.5px;font-weight:600;letter-spacing:.06em;opacity:.85}
.dg-thumb .dg-star{position:absolute;top:10px;right:10px;background:rgba(255,255,255,.86);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);opacity:0;transform:scale(.9);transition:opacity .25s,transform .35s var(--fx-spring)}
.dg-thumb .dg-star.on,.dg-card:hover .dg-star{opacity:1;transform:none}
.dg-hover{position:absolute;left:10px;right:10px;bottom:10px;display:flex;justify-content:center;gap:2px;padding:4px;border-radius:14px;background:rgba(255,255,255,.88);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);opacity:0;transform:translateY(8px);transition:opacity .25s,transform .35s var(--fx-spring)}
.dg-card:hover .dg-hover{opacity:1;transform:none}
.dg-info{padding:12px 8px 10px}.dg-info p{margin:0;font-size:14.5px;font-weight:550;letter-spacing:-.01em;color:#1D1D1F;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dg-info span{display:block;margin-top:3px;font-size:12.5px;color:#86868B}
/* dialogs */
.dg-dlg-back{position:fixed;inset:0;z-index:400;background:rgba(20,20,22,.28);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);display:grid;place-items:center;opacity:0;transition:opacity .2s}
.dg-dlg-back.open{opacity:1}
.dg-dlg{width:min(420px,92vw);background:#fff;border-radius:24px;padding:26px;box-shadow:0 30px 80px -20px rgba(0,0,0,.35);transform:translateY(10px) scale(.97);transition:transform .35s var(--fx-spring)}
.dg-dlg-back.open .dg-dlg{transform:none}
.dg-dlg h3{margin:0 0 4px;font-size:20px;font-weight:550;letter-spacing:-.025em}.dg-dlg p{margin:0 0 16px;font-size:14px;color:#6E6E73}
.dg-input{width:100%;height:46px;border-radius:14px;border:0;background:#F5F5F7;padding:0 16px;font:inherit;font-size:15px;outline:none;box-shadow:inset 0 0 0 1px transparent;transition:box-shadow .2s,background .2s}
.dg-input:focus{background:#fff;box-shadow:inset 0 0 0 1.5px #1D1D1F}
.dg-dlg-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}
.dg-btn{height:40px;padding:0 18px;border-radius:999px;border:0;background:#F5F5F7;font:500 14px/1 inherit;cursor:pointer;color:#1D1D1F}.dg-btn:hover{background:#ECECEF}
.dg-primary{background:#1D1D1F;color:#fff}.dg-primary:hover{background:#000}.dg-danger{background:#E5484D;color:#fff}.dg-danger:hover{background:#cf3a3f}
.dg-pick{display:flex;flex-direction:column;gap:6px;max-height:300px;overflow:auto}
.dg-pick-row{display:flex;align-items:center;gap:12px;height:48px;padding:0 12px;border:0;border-radius:14px;background:#F5F5F7;font:500 14.5px/1 inherit;cursor:pointer;text-align:left}
.dg-pick-row:hover{background:#ECECEF}.dg-pick-row.on{box-shadow:inset 0 0 0 1.5px #1D1D1F;background:#fff}
.dg-pick-ico{width:26px;height:23px;display:block}.dg-pick-ico svg{width:100%;height:100%}
@media(max-width:1100px){.dg-row{grid-template-columns:minmax(180px,2fr) 100px 110px 80px auto}.dg-row>span:nth-child(3){display:none}}
@media(max-width:720px){.dg-head{display:none}.dg-row{grid-template-columns:1fr auto;padding:10px 14px}.dg-row>span:nth-child(2),.dg-row>span:nth-child(3),.dg-row>span:nth-child(4),.dg-row>span:nth-child(5){display:none}.dg-prev{display:none}.dg-grid{grid-template-columns:repeat(2,1fr);gap:12px}.dg-thumb{height:120px}.dg-folders{grid-template-columns:repeat(2,1fr)}}
body.fx .doc-page-card>.section-head{justify-content:flex-end}
body.fx .doc-page-card>.section-head>div:first-child{display:none}
.dg-type{display:inline-block;line-height:1.5}

/* Left rail: one dark disc glides between items */
body.fx .fx-rail{position:absolute}
body.fx .fx-rail-ink{position:absolute;top:0;left:10px;width:44px;height:44px;border-radius:50%;z-index:0;opacity:0;pointer-events:none;
  background:var(--fx-dark);box-shadow:inset 0 1px 0 rgba(255,255,255,.16),0 4px 10px -4px rgba(0,0,0,.45);
  transition:transform .55s var(--fx-spring),opacity .2s;will-change:transform}
body.fx .fx-rail a,body.fx .fx-rail-out{position:relative;z-index:1}
body.fx .fx-rail a.active{background:transparent!important;box-shadow:none!important;color:#fff}

/* Home: Income tile - white label, brighter gradient */
body.fx .fxd-tiles .fxd-tile-hot,body.fx .fxd-tile-hot{
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(255,255,255,.42), transparent 58%),
    linear-gradient(158deg, color-mix(in srgb,var(--accent-grad) 82%,#fff) 0%, color-mix(in srgb,var(--accent) 92%,#fff) 58%, var(--accent) 100%)!important;
}
body.fx .fxd-tile-hot .kpi-label,body.fx .fxd-tile-hot p.kpi-label,body.fx .fxd-tile-hot .fxd-num,body.fx .fxd-tile-hot .pill{color:#fff!important;opacity:1}
body.fx .fxd-tile-hot .kpi-label{font-weight:500;text-shadow:0 1px 1px rgba(0,0,0,.12)}

/* ===== Document viewer: Drive-style dark stage, document in a container ===== */
body.fx .cs-backdrop{background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none}
body.fx .cs-fullscreen{position:fixed;inset:0;top:0;left:0;right:0;bottom:0;margin:0;width:auto;height:auto;max-width:none;max-height:none;border:0;border-radius:0;box-shadow:none;background:#202124;z-index:10040;flex-direction:column}
body.fx .cs-fullscreen:fullscreen{background:#202124}
body:has(.cs-fullscreen.open) #chatbotLauncher,body:has(.cs-fullscreen.open) .chatbot-fab,body:has(.cs-fullscreen.open) .fx-rail,body:has(.cs-fullscreen.open) .fx-chrome{visibility:hidden}
body.fx .cs-topbar{position:absolute;top:16px;left:50%;transform:translateX(-50%);width:clamp(360px,var(--doc-w,860px),calc(100% - 32px));height:48px;z-index:5;padding:0 6px 0 6px;border:0;border-radius:12px;
  background:#2D2E31;box-shadow:0 1px 0 rgba(255,255,255,.06) inset,0 8px 24px -12px rgba(0,0,0,.6);box-sizing:border-box;display:flex;align-items:center;gap:8px}
body.fx .cs-topbar-back{height:36px;padding:0 12px 0 8px;border:0;border-radius:8px;background:transparent;color:#E8EAED;font-size:13px;font-weight:400;flex:none}
body.fx .cs-topbar-back:hover{background:rgba(255,255,255,.08);color:#fff}
body.fx .cs-topbar-title{flex:1;min-width:0;font-size:14px;font-weight:500;color:#E8EAED;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;margin:0}
body.fx .cs-topbar-title[contenteditable="true"]{background:rgba(255,255,255,.1);box-shadow:0 0 0 2px var(--accent);border-radius:8px;padding:4px 10px;outline:0}
body.fx .cs-topbar-actions{display:flex;gap:2px;flex:none}
body.fx .cs-topbar-btn,body.fx .cs-topbar-download{height:36px;padding:0 12px;border:0;border-radius:8px;background:transparent;color:#E8EAED;font-weight:400;box-shadow:none;filter:none}
body.fx .cs-topbar-btn:hover,body.fx .cs-topbar-download:hover{background:rgba(255,255,255,.08);color:#fff;filter:none}
body.fx .cs-pdf-toolbar{position:absolute;left:50%;bottom:20px;transform:translateX(-50%);z-index:5;padding:4px 8px;gap:2px;border:0;border-radius:12px;flex-wrap:nowrap;max-width:calc(100% - 32px);
  background:#2D2E31;box-shadow:0 8px 24px -10px rgba(0,0,0,.6)}
body.fx .cs-pdf-tb-btn{width:34px;height:34px;border-radius:8px;color:#BDC1C6;border:0;background:transparent}
body.fx .cs-pdf-tb-btn:hover:not(:disabled){background:rgba(255,255,255,.1);border-color:transparent;color:#fff}
body.fx .cs-pdf-tb-btn.active{background:rgba(255,255,255,.16);color:#fff}
body.fx .cs-pdf-sep{background:rgba(255,255,255,.14);height:18px;margin:0 6px}
body.fx .cs-pdf-zoom-label,body.fx .cs-pdf-page-total{color:#BDC1C6;font-weight:400}
body.fx .cs-pdf-page-input{background:rgba(255,255,255,.1)!important;border:0!important;color:#fff!important;border-radius:6px}
body.fx .cs-pdf-page-input:focus{box-shadow:0 0 0 2px var(--accent)}
body.fx .cs-thumb-sidebar{position:absolute;left:0;top:0;bottom:0;width:140px;z-index:4;border:0;border-radius:0;background:#2D2E31;box-shadow:none;padding-top:80px;box-sizing:border-box}
body.fx .cs-thumb-item{border-radius:4px}
body.fx .cs-thumb-item.active{border-color:var(--accent)}
body.fx #previewBody{background:#202124!important;padding:80px 0 88px;box-sizing:border-box;align-items:center;flex:1}
body.fx .cs-pdf-pages{padding:0 16px;gap:16px;align-items:center;width:100%;box-sizing:border-box;display:flex;flex-direction:column}
body.fx .cs-pdf-page-canvas{border-radius:2px;background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.4)}
body.fx #previewBody>img{max-width:calc(100% - 32px)!important;padding:0!important;background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.4);border-radius:2px}
body.fx #previewBody>div:not(.cs-pdf-pages){color:#BDC1C6}
body.fx #previewBody iframe{border-radius:2px!important;background:#fff}
@media(max-width:700px){body.fx .cs-topbar{width:calc(100% - 16px);top:8px}body.fx .cs-topbar-btn span{display:none}body.fx .cs-thumb-sidebar{display:none!important}body.fx .cs-pdf-toolbar{overflow-x:auto}}

/* ===== Accountability / list tables: flat, no grey or dark patches ===== */
body.fx .my-proj-list{background:transparent!important;box-shadow:none!important;border-radius:0!important;padding:0 24px!important;border-top:0!important}
body.fx .deals-table thead th{background:transparent!important;border-top:1px solid var(--fx-line)!important;border-bottom:1px solid var(--fx-line)!important;border-radius:0!important;padding-left:16px}
body.fx .deals-table thead th:first-child{padding-left:12px!important;border-radius:0!important}
body.fx .deals-table tbody td:first-child{padding-left:12px!important}
body.fx .deals-table tbody tr:hover{background:#FAFAFC}
body.fx .section-body{background:transparent!important}

/* ===== Employees: photo, banner image, reposition ===== */
.emp-media-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
body.fx .emp-card-banner{position:relative;overflow:hidden}
body.fx .emp-avatar{position:relative;overflow:hidden;border:3px solid #fff;box-shadow:0 4px 12px -4px rgba(0,0,0,.25)}
body.fx .emp-avatar.has-img,.emp-list-avatar.has-img{position:relative;overflow:hidden;color:transparent}
.emp-list-avatar{position:relative;overflow:hidden}
.emp-media-row{display:flex;align-items:center;gap:12px}
.emp-media-prev{position:relative;overflow:hidden;background:#F2F2F5;box-shadow:inset 0 0 0 1px rgba(20,20,20,.06);display:flex;align-items:center;justify-content:center;font-weight:500;color:#86868B;flex-shrink:0}
.emp-media-prev.round{width:56px;height:56px;border-radius:50%}
.emp-media-prev.wide{width:112px;height:56px;border-radius:12px}
.emp-media-btns{display:flex;flex-wrap:wrap;gap:6px}
.emp-media-btn{height:32px;padding:0 14px;border-radius:999px;border:0;background:#F2F2F5;color:#1D1D1F;font-size:13px;font-weight:500;cursor:pointer;display:inline-flex;align-items:center;transition:background .15s}
.emp-media-btn:hover{background:#E8E8ED}
.emp-media-btn.danger{color:#D92D20}
.emp-media-btn.solid{background:var(--fx-dark);color:#fff}
.emp-crop-back{position:fixed;inset:0;z-index:10050;background:rgba(245,245,247,.6);backdrop-filter:blur(16px);display:flex;align-items:center;justify-content:center;padding:16px}
.emp-crop{width:min(520px,100%);background:#fff;border-radius:24px;padding:24px;box-shadow:0 30px 80px -20px rgba(0,0,0,.3),0 0 0 1px rgba(20,20,20,.05)}
.emp-crop-t{font-size:18px;font-weight:500;letter-spacing:-.02em;margin:0}
.emp-crop-s{font-size:13px;color:#86868B;margin:4px 0 16px}
.emp-crop-frame{position:relative;overflow:hidden;background:#F2F2F5;cursor:grab;touch-action:none;margin:0 auto 16px;box-shadow:0 0 0 1px rgba(20,20,20,.08)}
.emp-crop-frame.drag{cursor:grabbing}
.emp-crop-frame.wide{width:100%;aspect-ratio:7/2;border-radius:14px}
.emp-crop-frame.round{width:260px;height:260px;border-radius:50%}
.emp-crop-frame img{pointer-events:none;user-select:none}
.emp-crop input[type=range]{width:100%;accent-color:var(--accent)}
.emp-crop-foot{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}
/* Team Directory header and view switch */

body.fx .dir-title{font-size:20px;font-weight:500;letter-spacing:-.025em}
body.fx #teamDirectoryCard{background:transparent!important;box-shadow:none!important;border:0!important;overflow:visible}
body.fx #teamDirectoryCard .section-head{border:0!important;padding:8px 0 16px!important}
body.fx #teamDirectoryCard .section-body{padding:0!important}
body.fx .emp-view-btns{display:inline-flex;gap:2px;padding:3px;border-radius:999px;background:#E8E8ED}
body.fx .emp-view-btn{width:34px;height:30px;border:0;border-radius:999px;background:transparent;color:#6E6E73;display:flex;align-items:center;justify-content:center;transition:background .2s,color .2s}
body.fx .emp-view-btn.active{background:var(--fx-dark);color:#fff;box-shadow:0 4px 10px -4px rgba(0,0,0,.4)}
body.fx .emp-grid{gap:16px!important}
body.fx .emp-card{box-shadow:var(--fx-sh)!important;border:0!important;overflow:hidden}
body.fx .emp-card:hover{transform:translateY(-3px);box-shadow:0 18px 36px -18px rgba(0,0,0,.22),0 0 0 1px rgba(20,20,20,.04)!important}
body.fx .emp-card-banner{height:76px}
body.fx .emp-card-avatar-row{margin-top:-30px}
body.fx .emp-avatar{width:56px;height:56px;font-size:18px;font-weight:500}
body.fx .emp-card-body{padding:0 20px 20px}
body.fx .emp-list-row{background:transparent}

/* ===== Projects: premium pass ===== */
body.fx .proj-top-row{gap:16px}
body.fx .proj-chart-card,body.fx .proj-grid-card{border:0!important}
body.fx .proj-grid-card .section-body,body.fx .proj-chart-card .section-body{padding-top:8px}
body.fx .proj-grid{gap:16px!important}
body.fx .proj-card{padding:20px!important;border-radius:20px!important;background:#fff!important;box-shadow:var(--fx-sh)!important;position:relative;overflow:hidden;
  transition:transform .35s var(--fx-spring),box-shadow .25s var(--fx-ease)}
body.fx .proj-card::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:radial-gradient(120% 70% at 0% 0%,rgba(var(--accent-rgb),.07),transparent 60%)}
body.fx .proj-card:hover{transform:translateY(-4px)!important;box-shadow:0 22px 40px -22px rgba(0,0,0,.28),0 0 0 1px rgba(20,20,20,.04)!important}
body.fx .proj-card-icon{width:40px!important;height:40px!important;border-radius:13px!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.35),0 8px 14px -8px rgba(0,0,0,.35)}
body.fx .proj-card-name{font-size:15.5px!important;font-weight:500!important;letter-spacing:-.015em}
body.fx .proj-card-client{color:#86868B}
body.fx .proj-progress-track{height:6px!important;border-radius:999px;background:#EDEDF0!important;overflow:hidden}
body.fx .proj-progress-fill{border-radius:999px;box-shadow:0 0 10px -2px currentColor;background-image:linear-gradient(90deg,rgba(255,255,255,.28),transparent 60%)}
body.fx .proj-section-divider-label{background:#F2F2F5!important;color:#6E6E73!important;border:0!important;font-weight:500!important;letter-spacing:0!important;text-transform:none!important;padding:5px 14px!important;border-radius:999px}
body.fx .proj-section-divider::before,body.fx .proj-section-divider::after{background:rgba(29,29,31,.08)!important;height:1px}
body.fx .proj-avatar{border:2px solid #fff!important}
body.fx .proj-donut-num{font-weight:500!important;letter-spacing:-.04em}

/* ===== Settings: livelier ===== */
body.fx .settings-panel.active>*{animation:fxSetIn .55s var(--fx-spring) both}
body.fx .settings-panel.active>*:nth-child(2){animation-delay:.06s}
body.fx .settings-panel.active>*:nth-child(3){animation-delay:.12s}
body.fx .settings-panel.active>*:nth-child(4){animation-delay:.18s}
body.fx .settings-panel.active>*:nth-child(n+5){animation-delay:.24s}
@keyframes fxSetIn{from{opacity:0}to{opacity:1}}
body.fx .settings-tab{position:relative}
body.fx .settings-tab:active{transform:scale(.98)}
@media (prefers-reduced-motion:reduce){body.fx .settings-panel.active>*,body.fx .fx-rail-ink{animation:none!important}}

/* ===== Calendar: event types, toolbar title ===== */
body.fx .cal-type-row{gap:10px;padding:6px 0}
body.fx .cal-type-check{width:18px!important;height:18px!important;border-radius:6px!important;border:1.5px solid rgba(29,29,31,.22)!important;background:#fff!important;position:relative;transition:background .2s,border-color .2s,transform .2s var(--fx-spring)}
body.fx .cal-type-check:hover{transform:scale(1.08)}
body.fx .cal-type-check.on{background:var(--fx-dark)!important;border-color:#161616!important}
body.fx .cal-type-check.on::after{content:"";position:absolute;left:5px;top:2px;width:4px;height:8px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
body.fx .cal-type-label{font-size:13.5px;font-weight:450}
body.fx .cal-toolbar-title{white-space:nowrap;overflow:visible!important;text-overflow:clip!important;font-size:18px;font-weight:500;letter-spacing:-.02em;min-width:150px}

body.fx .cal-toolbar-title{min-width:0;font-size:17px}
body.fx [class*="cal-search"]{min-width:0!important;width:150px!important;flex:0 1 150px}
body.fx .cal-toolbar-title{flex:0 0 auto!important;margin-right:6px;font-size:16px}
body.fx [class*="cal-search"]{width:118px!important;flex:0 1 118px!important}
body.fx .cal-toolbar{flex-wrap:nowrap!important;gap:8px!important}
body.fx .cal-toolbar .cal-toolbar-title{flex:1 1 auto!important;min-width:128px;white-space:nowrap}
body.fx [class*="cal-search"]{width:96px!important;flex:0 1 96px!important}
body.fx [class*="cal-search"] input{min-width:0;width:100%}
body.fx .cal-search-wrap{flex:0 0 112px!important;width:112px!important}
body.fx .cal-search-wrap input{width:112px!important;min-width:0!important;max-width:100%}
body.fx .cal-toolbar{padding-right:12px!important}
body.fx .cal-toolbar .cal-view-tabs{flex:0 0 auto}


/* ===== Quiet pass: no lift, no glow on hover (premium, minimal) ===== */
body.fx .dg-folder:hover,body.fx .dg-card:hover,body.fx .dg-emptyf:hover,body.fx .emp-card:hover,body.fx .proj-card:hover,body.fx .s-card:hover,body.fx .cs-card:hover,body.fx .doc-card:hover,body.fx .stat-card:hover,body.fx .kpi-card:hover,body.fx .fxd-tile:hover,body.fx .fxd-panel:hover{transform:none!important}
body.fx .dg-folder:hover,body.fx .dg-card:hover,body.fx .emp-card:hover,body.fx .proj-card:hover,body.fx .s-card:hover,body.fx .cs-card:hover{box-shadow:var(--fx-sh)!important;border-color:rgba(29,29,31,.16)!important}
body.fx .s-card,body.fx .emp-card,body.fx .proj-card,body.fx .dg-card,body.fx .dg-folder{transition:border-color .2s var(--fx-ease),background-color .2s var(--fx-ease)}
body.fx .settings-tab.active::before,body.fx .settings-tab.active::after{content:none!important;display:none!important}
body.fx .settings-tab,body.fx .settings-tab.active{border-left:0!important;box-shadow:none}

/* ===== Settings: profile card, flat ===== */
body.fx .s-profile-banner{background:linear-gradient(135deg,var(--accent-grad),var(--accent));background-size:cover;position:relative}
body.fx .s-profile-banner-dots{display:none}
body.fx .s-profile-avatar{border-radius:50%!important;overflow:hidden;background:#1D1D1F!important;border:3px solid var(--card-bg)!important;box-shadow:none}
body.fx .s-profile-avatar img{width:100%;height:100%;object-fit:cover;display:block;border-radius:50%}
body.fx .s-profile-role{font-size:13px;color:var(--text-muted);margin:0}
body.fx .s-icon-box{background:rgba(29,29,31,.06)!important;box-shadow:none!important;color:var(--text-primary)}
body.fx .s-icon-box i,body.fx .s-icon-box svg{color:var(--text-primary)!important;stroke:var(--text-primary)}
.s-banner-menu{position:absolute;top:10px;right:10px;z-index:4}
.s-banner-dots{width:32px;height:32px;border-radius:50%;border:0;background:rgba(255,255,255,.9);color:#1D1D1F;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:background .2s}
.s-banner-dots:hover{background:#fff}.s-banner-dots svg{width:16px;height:16px}
.s-banner-pop{position:absolute;top:38px;right:0;min-width:150px;background:#fff;border-radius:12px;padding:6px;box-shadow:0 0 0 1px rgba(20,20,20,.08),0 12px 28px -12px rgba(0,0,0,.25)}
.s-banner-pop[hidden],.s-banner-repos[hidden]{display:none}
.s-banner-pop button{display:block;width:100%;text-align:left;padding:8px 10px;border:0;background:none;border-radius:8px;font:inherit;font-size:13px;color:#1D1D1F;cursor:pointer}
.s-banner-pop button:hover{background:rgba(29,29,31,.06)}.s-banner-pop button.danger{color:#D70015}
.s-banner-repos{position:absolute;top:0;right:0;display:flex;align-items:center;gap:6px;background:#fff;border-radius:999px;padding:4px 4px 4px 12px;font-size:12px;white-space:nowrap}
.s-banner-repos button{border:0;border-radius:999px;padding:5px 12px;font:inherit;font-size:12px;cursor:pointer;background:rgba(29,29,31,.08);color:#1D1D1F}
.s-banner-repos button#bannerReposSave{background:#1D1D1F;color:#fff}
.s-profile-banner.repos{cursor:grab;touch-action:none}

/* ===== Chrono Assistant: quiet, Apple-style chat (UI only) ===== */
body.fx #chatbotLauncher{width:56px;height:56px;background:#1D1D1F;border:0;color:#fff;box-shadow:0 10px 28px -8px rgba(20,20,20,.45),0 0 0 1px rgba(255,255,255,.06) inset;transition:opacity .2s var(--fx-ease),transform .2s var(--fx-ease)}
body.fx #chatbotLauncher:hover{transform:none;opacity:.92}
body.fx #chatbotLauncher svg{width:24px;height:24px;stroke-width:1.7}
body.fx .chatbot-panel{width:420px;background:#fff;border:0;border-radius:28px;box-shadow:0 0 0 1px rgba(20,20,20,.06),0 2px 6px rgba(20,20,20,.04),0 32px 80px -20px rgba(20,20,20,.28)}
body.fx .chatbot-panel.is-expanded{width:min(820px,calc(100vw - 40px))}
body.fx .chatbot-head{min-height:68px;padding:12px 14px 12px 22px;border-bottom:1px solid rgba(20,20,20,.06);background:none}
body.fx .chatbot-head .chat-avatar--head{display:none}
body.fx .chatbot-title{font-size:16px;font-weight:550;letter-spacing:-.02em;background:none;-webkit-background-clip:initial;background-clip:initial;color:var(--text-primary)}
body.fx .chatbot-status{margin-top:3px;font-size:12px;color:var(--text-muted)}
body.fx .chatbot-status-dot{width:6px;height:6px;background:#34C759;box-shadow:none}
body.fx .chatbot-panel.is-busy .chatbot-status-dot{background:#1D1D1F}
body.fx .chatbot-icon-btn{width:34px;height:34px;border-radius:50%;color:var(--text-secondary);transition:background .16s,color .16s}
body.fx .chatbot-icon-btn svg{width:16px;height:16px;stroke-width:1.8}
body.fx .chatbot-icon-btn:hover{background:rgba(20,20,20,.06);color:var(--text-primary)}
body.fx .chatbot-icon-btn.active,body.fx .chatbot-icon-btn[aria-pressed="true"]{background:rgba(20,20,20,.08);color:var(--text-primary)}
body.fx .chatbot-icon-btn:focus-visible,body.fx .chatbot-send-btn:focus-visible,body.fx .chat-chip:focus-visible,body.fx .chatbot-mode-btn:focus-visible{outline:2px solid rgba(20,20,20,.5);outline-offset:2px}

body.fx .chatbot-messages{padding:24px 22px 12px;gap:20px;background:none}
body.fx .chat-welcome{padding:40px 8px 12px;text-align:left}
body.fx .chat-welcome-icon{display:none}
body.fx .chat-welcome-title{font-size:30px;font-weight:500;letter-spacing:-.038em;line-height:1.1;margin:0 0 10px;color:var(--text-primary)}
body.fx .chat-welcome-text{font-size:14.5px;line-height:1.55;color:var(--text-secondary);margin:0;max-width:330px}

body.fx .chat-avatar:not(.chat-avatar--head){display:none}
body.fx .chat-msg{gap:0}
body.fx .chat-msg--confirm{padding-left:0}
body.fx .chat-bubble-text{font-size:14.5px;font-weight:400;line-height:1.55}
body.fx .chat-bubble-text strong{font-weight:600}
body.fx .chat-msg--user .chat-bubble-text{padding:10px 16px;border-radius:22px 22px 8px 22px;background:#1D1D1F;color:#fff;box-shadow:none}
body.fx .chat-msg--assistant .chat-bubble-text{padding-top:0;color:var(--text-primary)}
body.fx .chat-msg--assistant .chat-msg-body{max-width:100%}
body.fx .chat-msg-meta{margin-top:6px;font-size:11.5px}
body.fx .chat-msg-action{font-weight:500;border-radius:999px}
body.fx .chat-msg-action:hover{background:rgba(20,20,20,.06)}
body.fx .chat-typing{padding:6px 0}
body.fx .chat-typing span{width:6px;height:6px;background:#A1A1A6}

body.fx .chat-confirm-card{max-width:320px;background:#F5F5F7;border:0;border-radius:20px;padding:16px;box-shadow:none}
body.fx .chat-confirm-card--danger{background:#FFF4F3;box-shadow:inset 0 0 0 1px rgba(255,59,48,.18)}
body.fx .chat-confirm-text{font-size:13.5px;line-height:1.5;margin:0 0 14px;color:var(--text-primary)}
body.fx .chat-confirm-actions{gap:8px}
body.fx .chat-confirm-btn{height:36px;padding:0 14px;font-size:13px;font-weight:500;border-radius:999px;border:0}
body.fx .chat-confirm-btn--cancel{background:#fff;color:var(--text-primary);box-shadow:0 0 0 1px rgba(20,20,20,.1)}
body.fx .chat-confirm-btn--cancel:hover{background:#fff;box-shadow:0 0 0 1px rgba(20,20,20,.25)}
body.fx .chat-confirm-btn--confirm{background:#1D1D1F;color:#fff;border:0;box-shadow:none}
body.fx .chat-confirm-card--danger .chat-confirm-btn--confirm{background:#FF3B30;box-shadow:none}
body.fx .chat-confirm-result{font-style:normal;font-size:12.5px;color:var(--text-secondary);margin:10px 0 0}
body.fx .chat-confirm-card--auto .chat-confirm-result{color:var(--text-secondary)}
body.fx .chat-error{background:#FFF4F3;border:0;border-radius:16px;padding:12px 14px}
body.fx .chat-error button{border:0;background:#fff;color:var(--text-primary);border-radius:999px;box-shadow:0 0 0 1px rgba(20,20,20,.1);font-weight:500}

body.fx .chatbot-footer{padding:6px 16px 16px;border-top:0;background:none}
body.fx .chat-jump{background:#fff;border:0;box-shadow:var(--fx-sh),0 8px 20px -8px rgba(20,20,20,.2);font-weight:500}
body.fx .chat-jump svg{color:var(--text-primary)}
body.fx .chat-chips{gap:8px;padding:2px 0 12px}
body.fx .chat-chip{font-size:13px;font-weight:450;padding:8px 14px;background:#F5F5F7;border:0;color:var(--text-primary);transition:background .16s}
body.fx .chat-chip:hover{background:#EBEBEE;color:var(--text-primary);border:0}
body.fx .chatbot-composer{background:#fff;border:0;border-radius:26px;padding:6px 6px 6px 8px;box-shadow:0 0 0 1px rgba(20,20,20,.1),0 1px 2px rgba(20,20,20,.04);transition:box-shadow .16s}
body.fx .chatbot-composer:focus-within{border:0;box-shadow:0 0 0 1px rgba(20,20,20,.32),0 1px 2px rgba(20,20,20,.04)}
body.fx .chatbot-composer textarea{font-size:14.5px;padding:8px 4px}
body.fx .chatbot-composer textarea::placeholder{color:var(--text-muted)}
body.fx .chatbot-mode-btn{height:26px;padding:0 10px;border:0;border-radius:999px;background:#F5F5F7;color:var(--text-secondary);font-size:12px;font-weight:500;letter-spacing:0;text-transform:lowercase}
body.fx .chatbot-mode-btn::first-letter{text-transform:uppercase}
body.fx .chatbot-mode-btn:hover{background:#EBEBEE;color:var(--text-primary);border:0}
body.fx .chatbot-mode-btn.is-auto{background:#1D1D1F;color:#fff;box-shadow:none}
body.fx .chatbot-mic-btn{width:34px;height:34px}
body.fx .chatbot-mic-btn.listening{background:#FF3B30;color:#fff;animation:none}
body.fx .chatbot-send-btn{width:34px;height:34px;background:#1D1D1F;box-shadow:none;transition:opacity .16s}
body.fx .chatbot-send-btn svg{width:16px;height:16px}
body.fx .chatbot-send-btn:hover:not(:disabled){transform:none;opacity:.85}
body.fx .chatbot-send-btn:active:not(:disabled){transform:none;opacity:.7}
body.fx .chatbot-send-btn:disabled{opacity:.2}
body.fx .chatbot-hint{margin-top:10px;font-size:11.5px;color:var(--text-muted)}

body.fx .chat-undo-toast{background:#1D1D1F;border:0;border-radius:999px;box-shadow:0 16px 40px -12px rgba(20,20,20,.5);overflow:hidden}
body.fx .chat-undo-text{color:#fff;font-weight:500}
body.fx .chat-undo-bar{background:rgba(255,255,255,.5)}
body.fx .chat-undo-btn{font-weight:500}
body.fx .chat-undo-btn--cancel{color:rgba(255,255,255,.7);border-color:rgba(255,255,255,.2)}
body.fx .chat-undo-btn--cancel:hover{color:#fff;border-color:rgba(255,255,255,.45)}
body.fx .chat-undo-btn--undo{background:#fff;color:#1D1D1F;box-shadow:none}
body.fx .chat-undo-btn--undo:hover{transform:none;opacity:.9}
@media(max-width:640px){body.fx .chatbot-panel,body.fx .chatbot-panel.is-expanded{border-radius:0;background:#fff;box-shadow:none}body.fx .chatbot-messages{padding:20px 18px 10px}body.fx .chat-welcome-title{font-size:26px}}
body.fx .chatbot-composer textarea,body.fx .chatbot-composer textarea:focus,body.fx .chatbot-composer textarea:focus-visible{outline:none!important;box-shadow:none!important;border:0!important;background:transparent!important}
#chatbotRoot #chatbotInput,#chatbotRoot #chatbotInput:focus,#chatbotRoot #chatbotInput:focus-visible,#chatbotRoot #chatbotInput:hover{outline:0!important;box-shadow:none!important;border:0!important;background:transparent!important;-webkit-appearance:none;appearance:none;border-radius:0!important}
/* chat: stays inside the panel at any size, 2x2 quick actions */
body.fx .chatbot-panel{min-width:0;max-width:calc(100vw - 32px)}
body.fx .chatbot-messages{overflow-x:hidden}
body.fx .chat-welcome{min-width:0}
body.fx .chat-welcome-title{overflow-wrap:anywhere;word-break:break-word}
body.fx .chat-chips{display:grid;grid-template-columns:1fr 1fr;gap:8px;overflow:visible;padding:2px 0 12px}
body.fx .chat-chip{white-space:normal;text-align:left;line-height:1.3;padding:10px 14px;border-radius:16px;min-height:44px;display:flex;align-items:center}
@media(max-height:620px){body.fx .chat-welcome{padding-top:12px}body.fx .chat-welcome-title{font-size:24px}}

/* ================================================================
   MOBILE PASS - phones and small tablets (900px and below)
   Fixes: page height on phone browsers, drawer polish, full-screen chat,
   Settings layout. Desktop is untouched.
   ================================================================ */
/* the profile card never glows: a quiet hairline on every screen size */
body.fx .profile-card { box-shadow: 0 0 0 1px rgba(20,20,20,.08); background: #F5F5F7; filter: none; }
body.fx .profile-card:hover { filter: none; background: #EFEFF2; }
.brand-name { gap: .26em; }

@media (max-width: 900px) {
  /* The app is exactly as tall as the visible screen (not the screen plus the hidden address bar), so the top bar
     never scrolls away and the bottom of every page can be reached. The page scrolls inside .main only. */
  html:has(.app), body:has(.app) { height: 100%; overflow: hidden; overscroll-behavior: none; }
  body.fx .app, .app { height: 100vh; height: 100dvh; }
  body.fx .main { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain; }

  /* Drawer */
  body.fx .sidebar { width: min(300px, 86vw); max-width: none; height: 100vh; height: 100dvh; background: #fff; box-shadow: none;
    padding: calc(20px + env(safe-area-inset-top, 0px)) 14px calc(14px + env(safe-area-inset-bottom, 0px)); }
  body.fx .sidebar.mobile-open { box-shadow: 16px 0 48px -16px rgba(20,20,20,.28); }
  body.fx .sidebar .nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
  body.fx .sidebar .brand { padding: 2px 8px 20px; gap: 11px; }
  body.fx .sidebar .brand-mark { width: 34px; height: 34px; }
  body.fx .sidebar .brand-name { align-items: baseline; }
  body.fx .sidebar .brand-name-chrono, body.fx .sidebar .brand-name-ai { font-size: 17px; font-weight: 650; letter-spacing: -.02em; }
  body.fx .sidebar .brand-name-os { border: 0; padding: 0; margin-left: 4px; font-size: 11px; font-weight: 600; letter-spacing: .16em; color: var(--text-muted); align-self: baseline; }
  body.fx .sidebar .sidebar-bottom { padding-top: 10px; border-top: 1px solid var(--fx-line); }

  /* Chat: full-screen sheet, edge to edge, content centred (keyboard-aware via --vvh/--vvtop) */
  body.fx .chatbot-panel, body.fx .chatbot-panel.is-expanded {
    left: 0; right: 0; top: var(--vvtop, 0px); bottom: auto; width: 100%; max-width: none; min-width: 0;
    height: var(--vvh, 100dvh); min-height: 0; border-radius: 0; padding-top: 0;
    display: flex; flex-direction: column;
  }
  body.fx .chatbot-head { flex: 0 0 auto; padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 10px 18px; min-height: 0; }
  body.fx .chatbot-messages { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; padding: 16px 20px 8px; }
  body.fx .chatbot-footer { flex: 0 0 auto; padding: 8px 14px calc(12px + env(safe-area-inset-bottom, 0px)); }
  body.fx .chat-welcome { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 8px 24px; margin: 0 auto; max-width: 340px; }
  body.fx .chat-welcome-title { font-size: 28px; text-align: center; }
  body.fx .chat-welcome-text { text-align: center; max-width: 30ch; }
  body.fx .chat-chips { width: 100%; grid-template-columns: 1fr 1fr; padding: 2px 0 10px; }
  body.fx .chatbot-composer { width: 100%; }

  /* Settings: one column, tabs as a scrolling row of pills (the desktop grid hid them) */
  body.fx .settings-wrap { display: block !important; flex: none !important; min-height: 0; height: auto; padding: 0; margin: 0 !important; width: 100%; min-width: 0; max-width: none; }
  body.fx .main:has(.settings-wrap) { overflow-y: auto; overflow-x: hidden; padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  body.fx .settings-header { padding: 0 0 16px !important; }
  body.fx .settings-header h1 { font-size: 30px; }
  body.fx .settings-tab-bar { margin: 0 -16px 18px; padding: 0 16px !important; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  body.fx .settings-tab-bar::-webkit-scrollbar { display: none; }
  body.fx .settings-tabs { flex-direction: row !important; width: max-content; gap: 8px; padding: 2px 0 !important; }
  body.fx .settings-tab { width: auto; flex: none; padding: 9px 16px !important; border-radius: 999px !important; font-size: 13.5px !important; white-space: nowrap; background: #fff !important; box-shadow: 0 0 0 1px var(--fx-line-2) !important; }
  body.fx .settings-tab.active { background: #1D1D1F !important; color: #fff !important; box-shadow: none !important; }
  body.fx .settings-tab i, body.fx .settings-tab svg { width: 16px; height: 16px; }
  body.fx .settings-content { overflow: visible !important; height: auto !important; padding: 0 0 8px !important; }
  body.fx .settings-panel { max-width: none; gap: 18px; }
  body.fx .s-card-head { padding: 18px 18px 4px !important; }
  body.fx .s-card-body { padding: 12px 18px 20px !important; }
}


/* ================================================================
   BUTTONS - one texture across the whole app
   Accent: every primary action (New link, Add employee, Save changes...). Dark: navigation, selected, secondary-strong actions.
   ================================================================ */
body.fx .btn-primary, body.fx .btn-accent, body.fx .btn-new, body.fx .s-save-btn, body.fx .cal-create-btn, body.fx .btn-glossy {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 18px;
  border: 0; border-radius: 999px; font-size: 14px; font-weight: 500; color: #fff; white-space: nowrap; cursor: pointer;
  background: var(--fx-gloss), linear-gradient(180deg, var(--accent-grad), var(--accent)); box-shadow: var(--fx-accent-sh);
  text-shadow: 0 1px 0 rgba(0,0,0,.14); transition: transform .16s var(--fx-ease), filter .16s var(--fx-ease), box-shadow .16s var(--fx-ease);
}
body.fx .btn-primary:hover, body.fx .btn-accent:hover, body.fx .btn-new:hover, body.fx .s-save-btn:hover, body.fx .cal-create-btn:hover, body.fx .btn-glossy:hover { filter: brightness(1.06) saturate(1.04); transform: translateY(-1px); }
body.fx .btn-primary:active, body.fx .btn-accent:active, body.fx .btn-new:active, body.fx .s-save-btn:active, body.fx .cal-create-btn:active, body.fx .btn-glossy:active { transform: translateY(0) scale(.98); filter: none; }
body.fx .btn-primary:disabled, body.fx .s-save-btn:disabled { opacity: .45; pointer-events: none; }
body.fx .btn-dark, body.fx .emp-media-btn.solid {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 18px;
  border: 0; border-radius: 999px; font-size: 14px; font-weight: 500; color: #fff; white-space: nowrap; cursor: pointer;
  background: var(--fx-dark); box-shadow: var(--fx-dark-sh); text-shadow: 0 1px 0 rgba(0,0,0,.35);
  transition: transform .16s var(--fx-ease), filter .16s var(--fx-ease);
}
body.fx .btn-dark:hover { filter: brightness(1.12); transform: translateY(-1px); }
body.fx .btn-dark:active { transform: translateY(0) scale(.98); filter: none; }
body.fx .btn-primary svg, body.fx .btn-dark svg, body.fx .s-save-btn svg { width: 16px; height: 16px; stroke-width: 1.8; flex: none; }
/* the secondary button keeps a quiet white face but gets the same press feel */
body.fx .btn-secondary { background: linear-gradient(180deg, #fff, #F6F6F8); box-shadow: 0 0 0 1px var(--fx-line-2), 0 1px 2px rgba(20,20,20,.05), inset 0 1px 0 #fff; }
body.fx .btn-secondary:hover { background: linear-gradient(180deg, #fff, #F0F0F3); }
body.fx .btn-secondary:active { transform: scale(.98); }

/* ================================================================
   LOADER - one progress ring for every in-app wait (router, Treeko pages)
   ================================================================ */
@property --tkp { syntax: '<integer>'; inherits: false; initial-value: 0; }
.tk-load { min-height: 56vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; color: var(--ink, #1D1D1F); }
.tk-ring { position: relative; width: 112px; height: 112px; margin-bottom: 14px; }
.tk-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.tk-ring circle { fill: none; stroke-width: 7; stroke-linecap: round; }
.tk-ring .trk { stroke: rgba(0,0,0,.07); }
.tk-ring .arc { stroke: url(#tkRingG); stroke-dasharray: 314; stroke-dashoffset: 314; animation: tk-fill 7s cubic-bezier(.1,.7,.2,1) forwards; filter: drop-shadow(0 4px 8px rgba(var(--accent-rgb), .35)); }
.tk-ring .halo { stroke: rgba(var(--accent-rgb), .16); stroke-dasharray: 18 296; animation: tk-spin 1.4s linear infinite; transform-origin: 60px 60px; }
.tk-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 26px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; animation: tk-count 7s cubic-bezier(.1,.7,.2,1) forwards; counter-reset: tkp var(--tkp); }
.tk-ring b::after { content: counter(tkp) '%'; }
.tk-load h4 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.tk-load p { margin: 0; font-size: 13px; color: var(--text-secondary, #6e6e73); height: 18px; position: relative; min-width: 240px; }
.tk-load p span { position: absolute; inset: 0; opacity: 0; animation: tk-cap 6s infinite; }
.tk-load p span:nth-child(2) { animation-delay: 2s; } .tk-load p span:nth-child(3) { animation-delay: 4s; }
@keyframes tk-fill { to { stroke-dashoffset: 26; } }
@keyframes tk-count { to { --tkp: 92; } }
@keyframes tk-spin { to { transform: rotate(360deg); } }
@keyframes tk-cap { 0% { opacity: 0; transform: translateY(5px); } 8%, 30% { opacity: 1; transform: none; } 38%, 100% { opacity: 0; transform: translateY(-5px); } }
@media (prefers-reduced-motion: reduce) { .tk-ring .halo { animation: none; } .tk-load p span { animation: none; } .tk-load p span:first-child { opacity: 1; } }

/* Home: Treeko card */
.hm-tk-go { height: 36px; padding: 0 16px; display: inline-flex; align-items: center; border-radius: 999px; font-size: 13px; text-decoration: none; }
.hm-tk-top { display: grid; grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.hm-tk-hot, .hm-tk-t { position: relative; border-radius: 18px; padding: 18px 20px; min-width: 0; overflow: hidden; }
.hm-tk-hot { background: var(--accent-grad, var(--accent)); box-shadow: var(--fx-accent-sh); color: #fff; }
.hm-tk-t { background: var(--fx-well, #F5F5F7); }
.hm-tk-hot span, .hm-tk-t span { display: block; font-size: 12.5px; margin-bottom: 8px; opacity: .85; }
.hm-tk-t span, .hm-tk-t small { color: var(--text-secondary, #6e6e73); opacity: 1; }
.hm-tk-hot b, .hm-tk-t b { display: block; font-size: 28px; line-height: 1.1; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-tk-t b { color: var(--ink, #1D1D1F); }
.hm-tk-hot small, .hm-tk-t small { display: block; margin-top: 6px; font-size: 12px; opacity: .85; }
.hm-tk-lists { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.hm-tk-list h4 { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--ink, #1D1D1F); }
.hm-tk-r { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; font-size: 13px; margin-bottom: 10px; align-items: center; }
.hm-tk-r span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-tk-r b { font-weight: 600; font-variant-numeric: tabular-nums; }
.hm-tk-r i { grid-column: 1 / -1; height: 5px; border-radius: 4px; background: var(--fx-well, #F0F0F2); overflow: hidden; display: block; }
.hm-tk-r u { display: block; height: 100%; border-radius: 4px; }
.hm-tk-none { padding: 18px 4px; font-size: 13px; color: var(--text-secondary, #6e6e73); }
@media (max-width: 900px) { .hm-tk-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hm-tk-hot { grid-column: 1 / -1; } .hm-tk-lists { grid-template-columns: 1fr; gap: 18px; } }

/* ================================================================
   Collapsible left rail: icons only (default) or icons with labels
   ================================================================ */
@media (min-width: 901px) {
  body.fx .fx-rail { transition: width .3s var(--fx-ease); }
  body.fx .main { transition: padding-left .3s var(--fx-ease); }
  body.fx .fx-rail-ink { transition: transform .55s var(--fx-spring), opacity .2s, width .3s var(--fx-ease), left .3s var(--fx-ease), border-radius .3s var(--fx-ease); }
  body.fx .fx-rail-tg {
    position: relative; z-index: 1; flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: none; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; color: var(--text-muted);
    transition: background-color .16s var(--fx-ease), color .16s var(--fx-ease), transform .16s var(--fx-ease);
  }
  body.fx .fx-rail-tg:hover { background: rgba(20,20,20,.05); color: var(--text-primary); }
  body.fx .fx-rail-tg:active { transform: scale(.94); }
  body.fx .fx-rail-tg svg { width: 18px; height: 18px; stroke-width: 1.6; }

  body.fx.rail-open { --fx-rail: 252px; }
  body.fx.rail-open .fx-rail { width: 216px; align-items: stretch; padding-left: 10px; padding-right: 10px; }
  body.fx.rail-open .fx-rail a, body.fx.rail-open .fx-rail-out, body.fx.rail-open .fx-rail-tg {
    width: 100%; border-radius: 22px; justify-content: flex-start; gap: 12px; padding: 0 12px; white-space: nowrap;
  }
  body.fx.rail-open .fx-rail-tg { width: 44px; padding: 0; justify-content: center; align-self: flex-start; }
  body.fx.rail-open .fx-rail-ink { border-radius: 22px; }
  body.fx.rail-open .fx-rail [data-tip]:not(.fx-rail-tg)::after {
    position: static; transform: none; padding: 0; background: none; color: inherit; border-radius: 0;
    font-size: 13.5px; font-weight: 500; opacity: 1 !important; pointer-events: none;
  }
  body.fx.rail-open .fx-rail .fx-rail-tg::after { display: none; }
  body.fx.rail-open .fx-rail svg { flex: none; }

  /* Rail polish: no underlines on any label, the toggle keeps its left spot, and labels never pop in or wrap mid-slide */
  body.fx .fx-rail a, body.fx .fx-rail a:hover, body.fx .fx-rail a:focus, body.fx .fx-rail-out, body.fx .fx-rail-tg { text-decoration: none !important; }
  body.fx .fx-rail [data-tip]::after { text-decoration: none !important; }
  body.fx .fx-rail-tg { align-self: flex-start; }
  body.fx.rail-open .fx-rail, body.fx.rail-anim .fx-rail { overflow: hidden; }
  body.fx.rail-open .fx-rail a, body.fx.rail-open .fx-rail-out, body.fx.rail-anim .fx-rail a, body.fx.rail-anim .fx-rail-out { overflow: hidden; }
  body.fx.rail-open .fx-rail [data-tip]:not(.fx-rail-tg)::after { transition: opacity .18s ease; }
  /* while the rail is sliding open or shut the labels sit out, then fade in once the width has settled */
  body.fx.rail-anim.rail-anim .fx-rail [data-tip]:not(.fx-rail-tg)::after {
    position: static; transform: none; padding: 0; background: none; color: inherit; border-radius: 0;
    font-size: 13.5px; font-weight: 500; opacity: 0 !important; transition: none; pointer-events: none;
  }
}

/* Popup backdrop: bleed past the viewport so the blur never leaves a seam or lit corners
   (the app is scaled with CSS zoom, which can leave sub-pixel gaps at fixed edges). */
@media (min-width: 901px) {
  body.fx .modal-backdrop, body.fx [class$="-backdrop"]:not(.cal-modal-backdrop) {
    inset: -96px; padding: 116px; border-radius: 0; overflow: hidden;
    transform: translateZ(0); -webkit-backface-visibility: hidden; backface-visibility: hidden;
  }
  body.fx .modal-card, body.fx .modal {
    transform: translate3d(0, 16px, 0) scale(.98); will-change: transform;
    isolation: isolate;
  }
  body.fx .modal-backdrop.open .modal-card, body.fx .modal-backdrop.open .modal { transform: translate3d(0, 0, 0) scale(1); }
}

/* ================================================================
   Dropdowns (assets/js/dropdown.js): one style for every select
   ================================================================ */
select.fxdd-native { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; margin: 0 !important; padding: 0 !important; border: 0 !important; overflow: hidden; }
.fxdd-btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; cursor: pointer;
  -webkit-appearance: none; appearance: none; font: inherit;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238a8a90' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.fxdd-btn > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fxdd-btn.is-open { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-focus); }
.fxdd-btn:disabled { opacity: .55; cursor: not-allowed; }
.fxdd-menu {
  position: fixed; z-index: 2000; overflow-y: auto; padding: 6px; box-sizing: border-box;
  background: #fff; border: 1px solid rgba(20,20,20,.09); border-radius: 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 16px 40px -10px rgba(0,0,0,.22);
  transform-origin: top left; scale: var(--z, 1); translate: 0 -6px; opacity: 0; pointer-events: none;
  transition: opacity .16s ease, translate .2s cubic-bezier(.16,1,.3,1);
}
.fxdd-menu.up { translate: 0 6px; transform-origin: bottom left; }
.fxdd-menu.on { opacity: 1; translate: 0 0; pointer-events: auto; }
.fxdd-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 36px; padding: 0 12px;
  border-radius: 10px; font-size: 13.5px; color: #1d1d1f; cursor: pointer; user-select: none;
}
.fxdd-opt span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fxdd-opt svg { flex: none; opacity: 0; color: var(--accent); }
.fxdd-opt:hover, .fxdd-opt.hl { background: rgba(20,20,20,.05); }
.fxdd-opt.sel { font-weight: 500; }
.fxdd-opt.sel svg { opacity: 1; }
.fxdd-opt.dis { opacity: .4; cursor: not-allowed; }
.fxdd-btn.is-empty > span { color: var(--text-muted); }
@media (prefers-reduced-motion: reduce) { .fxdd-menu { transition: opacity .01s; translate: 0 0; } }

/* Settings > Appearance: the chosen option shows clearly, and Compact really tightens the app */
body.fx .density-btn, body.fx .scroll-mode-btn { height: 40px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--fx-well, #F3F3F5); color: var(--ink, #1D1D1F); font: inherit; font-size: 13.5px; cursor: pointer; transition: background .15s, color .15s; }
body.fx .density-btn:hover, body.fx .scroll-mode-btn:hover { background: #E8E8EC; }
body.fx .density-btn.active, body.fx .scroll-mode-btn.active { background: var(--fx-dark, #1D1D1F); color: #fff; box-shadow: var(--fx-dark-sh); }
body.fx.density-compact .s-card-body, body.fx.density-compact .s-card-head { padding-top: 12px; padding-bottom: 12px; }
body.fx.density-compact .tk-card, body.fx.density-compact .tl-c, body.fx.density-compact .ld-r { padding-top: 12px; padding-bottom: 12px; }
body.fx.density-compact .main { padding-top: 20px; }
body.fx.density-compact .fx-rail a, body.fx.density-compact .fx-rail-out { height: 40px; }

/* Rail v3: icons never move. Collapsed and open share the same left-aligned layout (icon at the same x),
   so opening only reveals labels to the right and closing only hides them. The toggle sits centred when collapsed. */
@media (min-width: 901px) {
  body.fx .fx-rail { align-items: stretch !important; padding-left: 10px !important; padding-right: 10px !important; }
  body.fx .fx-rail a, body.fx .fx-rail-out,
  body.fx.rail-open .fx-rail a, body.fx.rail-open .fx-rail-out {
    width: 100% !important; height: 44px; justify-content: flex-start !important; gap: 12px; padding: 0 12.5px !important; border-radius: 22px !important; white-space: nowrap;
  }
  body.fx .fx-rail-tg, body.fx.rail-open .fx-rail-tg { width: 44px !important; padding: 0 !important; justify-content: center !important; align-self: flex-start !important; border-radius: 50% !important; }
  body.fx .fx-rail svg { flex: none; }
  body.fx .fx-rail { transition: width .32s var(--fx-ease); }
  body.fx.rail-open .fx-rail [data-tip]:not(.fx-rail-tg)::after { transition: opacity .2s ease .12s; }
  body.fx.rail-anim:not(.rail-open) .fx-rail [data-tip]:not(.fx-rail-tg)::after { opacity: 0 !important; transition: opacity .08s; }
}

/* Client cards: a quiet glass lift on hover, never a colour change */
.cl-card:hover { background: rgba(255,255,255,.58) !important; -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5); box-shadow: 0 0 0 1px rgba(255,255,255,.9), 0 0 0 1.5px rgba(20,20,24,.05), inset 0 1px 0 rgba(255,255,255,.95), 0 18px 40px -22px rgba(20,20,24,.28) !important; color: inherit !important; }

/* ===== Projects: a lighter top. One metrics strip, one status bar, and the project grid on the page itself (no big outer cards) ===== */
body.fx #projStats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding: 6px 0; margin-bottom: 26px; border-radius: 24px; background: rgba(255,255,255,.72); box-shadow: 0 0 0 1px rgba(20,20,24,.05), 0 10px 30px -22px rgba(20,20,24,.25); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
body.fx #projStats .stat-card { background: none !important; box-shadow: none !important; border: 0 !important; border-radius: 0 !important; padding: 18px 28px; transform: none !important; display: flex; flex-direction: column; gap: 6px; position: relative; }
body.fx #projStats .stat-card + .stat-card::before { content: ''; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: rgba(20,20,24,.08); }
body.fx #projStats .stat-label { margin: 0; font-size: 12.5px; letter-spacing: .02em; color: var(--text-muted); text-transform: none; }
body.fx #projStats .stat-value { margin: 0; font-size: 34px !important; font-weight: 600; letter-spacing: -.04em; line-height: 1; }
@media (max-width: 760px) { body.fx #projStats { grid-template-columns: repeat(2, 1fr); } body.fx #projStats .stat-card:nth-child(3)::before { display: none; } }
body.fx .proj-top-row { display: block !important; }
body.fx .proj-chart-card { margin-bottom: 30px; padding: 0 !important; background: none !important; box-shadow: none !important; border: 0 !important; }
body.fx .proj-chart-card .section-head { padding: 0 2px 12px !important; }
body.fx .proj-chart-card .section-body { padding: 0 !important; align-items: stretch !important; gap: 16px !important; }
body.fx .proj-chart-card .proj-donut-wrap { display: none !important; }
body.fx .proj-seg { display: flex; gap: 3px; height: 12px; border-radius: 999px; overflow: hidden; background: rgba(20,20,24,.06); }
body.fx .proj-seg i { display: block; min-width: 8px; border-radius: 999px; }
body.fx .proj-chart-card .proj-legend { display: flex !important; flex-wrap: wrap; gap: 8px 26px !important; width: 100%; }
body.fx .proj-chart-card .proj-legend-item { display: inline-flex !important; align-items: center; gap: 8px; width: auto !important; padding: 0 !important; font-size: 13px; color: var(--text-muted); }
body.fx .proj-chart-card .proj-legend-item strong { color: var(--text-primary); font-weight: 600; }
body.fx .proj-grid-card { padding: 0 !important; background: none !important; box-shadow: none !important; border: 0 !important; overflow: visible !important; }
body.fx .proj-grid-card .section-head { padding: 0 2px 14px !important; }
body.fx .proj-grid-card .section-body { padding: 0 !important; }

/* tables: header band keeps its rounded ends */
body.fx .cl-tablewrap { border-radius: 16px !important; overflow-x: auto !important; overflow-y: hidden !important; }

/* ── Projects: status overview (donut, rows with bars, quick facts) and breathing room above the cards ── */
body.fx .proj-chart-card { padding: 22px 24px 24px !important; background: #fff !important; border-radius: 22px !important; box-shadow: 0 0 0 1px rgba(20,20,24,.06), 0 8px 24px -14px rgba(20,20,24,.14) !important; margin-bottom: 34px; }
body.fx .proj-chart-card .section-head { padding: 0 0 18px !important; }
body.fx .proj-chart-card .proj-status-body { display: grid !important; grid-template-columns: 180px minmax(0, 1fr) 260px; gap: 36px; align-items: center; padding: 0 !important; }
body.fx .proj-chart-card .proj-donut-wrap { display: block !important; position: relative; width: 160px; height: 160px; justify-self: center; }
body.fx .proj-chart-card .proj-donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
body.fx .proj-chart-card .proj-donut-num { font-size: 32px; line-height: 1; color: var(--text-primary); }
body.fx .proj-chart-card .proj-donut-sub { margin-top: 4px; font-size: 12px; color: var(--text-muted); }
body.fx .proj-chart-card .proj-legend { display: flex !important; flex-direction: column; flex-wrap: nowrap; gap: 4px !important; min-width: 0; }
body.fx .proj-chart-card .proj-legend-item { display: grid !important; grid-template-columns: 10px minmax(120px, 190px) minmax(60px, 1fr) 34px 40px; align-items: center; gap: 12px; padding: 9px 0 !important; border-top: 1px solid rgba(20,20,24,.05); font-size: 14px; }
body.fx .proj-chart-card .proj-legend-item:first-child { border-top: 0; }
body.fx .proj-chart-card .pl-name { display: flex; flex-direction: column; min-width: 0; color: var(--text-primary); font-weight: 500; }
body.fx .proj-chart-card .pl-name small { font-size: 12px; font-weight: 400; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.fx .proj-chart-card .pl-bar { height: 6px; border-radius: 999px; background: rgba(20,20,24,.06); overflow: hidden; }
body.fx .proj-chart-card .pl-bar i { display: block; height: 100%; border-radius: 999px; }
body.fx .proj-chart-card .proj-legend-item strong { text-align: right; font-size: 15px; color: var(--text-primary); }
body.fx .proj-chart-card .proj-legend-item em { font-style: normal; text-align: right; font-size: 12.5px; color: var(--text-muted); }
body.fx .proj-chart-card .proj-facts { display: grid; gap: 10px; }
body.fx .proj-chart-card .proj-fact { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: baseline; padding: 14px 16px; border-radius: 16px; background: #F5F5F8; }
body.fx .proj-chart-card .proj-fact b { grid-row: span 2; font-size: 26px; font-weight: 600; letter-spacing: -.03em; color: var(--text-primary); min-width: 62px; }
body.fx .proj-chart-card .proj-fact span { font-size: 13.5px; font-weight: 500; color: var(--text-primary); }
body.fx .proj-chart-card .proj-fact small { font-size: 12px; color: var(--text-muted); }
@media (max-width: 1180px) { body.fx .proj-chart-card .proj-status-body { grid-template-columns: 180px minmax(0, 1fr); } body.fx .proj-chart-card .proj-facts { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { body.fx .proj-chart-card .proj-status-body { grid-template-columns: 1fr; gap: 22px; } body.fx .proj-chart-card .proj-legend-item { grid-template-columns: 10px minmax(0, 1fr) 34px 40px; } body.fx .proj-chart-card .pl-bar { display: none; } body.fx .proj-chart-card .proj-facts { grid-template-columns: 1fr; } }
/* the divider under "Client Projects" no longer sits on top of the first cards */
body.fx .proj-grid-card .section-head { padding: 0 2px 20px !important; margin-bottom: 0; }
body.fx .proj-grid-card .section-body { padding: 26px 0 0 !important; }
body.fx .proj-section-divider { margin: 30px 0 22px !important; }
/* billing forms: no heavy focus outline on the fields */
.cl .cl-in:focus, .cl .cl-cell:focus, .cl .cl-field input:focus, .cl .cl-field select:focus, .cl .cl-field textarea:focus, .cl .cl-in:focus-visible, .cl .cl-formx input:focus, .cl .cl-formx textarea:focus, .cl .cl-formx select:focus, .cl .cl-form input:focus, .cl .cl-form select:focus { outline: none !important; box-shadow: inset 0 0 0 1px rgba(20,20,24,.22) !important; }

/* Pop-ups: a child of .main was being forced to width:100% by "body.fx .main > *", which left the page showing at both edges. */
@media (min-width: 901px) {
  body.fx .main > .modal-backdrop, body.fx .main > [class$="-backdrop"] { width: auto !important; max-width: none !important; }
}


/* ================================================================
   UI sweep 2
   ================================================================ */
/* custom dropdowns inside forms rendered at 16px next to 13.5px inputs */
.fxdd-btn.form-input { font-size: 13.5px; }
/* the floating assistant button no longer sits on top of pop-up footers (Save / Continue) on desktop either */
body:has(.modal-backdrop.open) #chatbotLauncher { opacity: 0; pointer-events: none; }
/* phone header: the opaque input was drawn over the search icon */
.topbar-search .search-icon-svg { z-index: 2; pointer-events: none; }
/* profile pill: the email was cut with an ellipsis */
body.fx .fx-who { max-width: 220px; }
