/* Calibre — Sullivan & Stanley. Clean, white, premium. */
:root {
  --ss-orange-1: #F7902D;
  --ss-orange-2: #F26A2B;
  --brand: #F26A2B;
  --brand-soft: #fff0e3;
  --brand-tint: #fff8f1;
  --bar-bg: #0a0a0a;

  --ink: #14110f;
  --ink-soft: #3b3a38;
  --muted: #76726d;
  --faint: #a8a4a0;

  --surface: #ffffff;
  --soft: #f7f6f4;
  --softer: #fbfaf9;
  --rule: #ece9e5;
  --rule-strong: #ddd9d4;

  --available: #0f9d6b;
  --available-bg: #e7f7ef;
  --soon: #c97a08;
  --soon-bg: #fdf3e2;
  --engaged: #8a8580;
  --engaged-bg: #f1efec;
  --danger: #c0392b;

  --shadow-sm: 0 1px 2px rgba(20,17,15,.04), 0 1px 1px rgba(20,17,15,.03);
  --shadow-md: 0 8px 24px -12px rgba(20,17,15,.18), 0 2px 6px -2px rgba(20,17,15,.06);
  --shadow-lg: 0 24px 60px -20px rgba(20,17,15,.28);
  --radius: 14px;
  --radius-sm: 9px;
}

* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--soft);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: var(--brand-soft); }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--bar-bg);
  position: sticky; top: 0; z-index: 60;
  border-bottom: 1px solid #000;
}
.topbar-inner {
  max-width: 1480px; margin: 0 auto; padding: 12px 26px;
  display: flex; align-items: center; gap: 13px;
}
.topbar svg { width: 34px; height: 34px; display: block; flex-shrink: 0; }
.wordmark {
  font-family: 'Oswald', 'Arial Narrow', sans-serif;
  color: #fff; font-size: 21px; font-weight: 600; letter-spacing: .14em; line-height: 1;
}
.wordmark .by {
  display: block; font-size: 9.5px; letter-spacing: .22em; font-weight: 400;
  color: #b9b4ae; margin-top: 4px;
}
.topbar .spacer { flex: 1; }
.topbar .mh-pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11.5px; color: #cfcac4; letter-spacing: .02em;
  border: 1px solid #2b2926; border-radius: 999px; padding: 5px 12px;
}
.topbar .mh-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--available); box-shadow: 0 0 0 3px rgba(15,157,107,.18); }
.topbar .user {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--ss-orange-1), var(--ss-orange-2));
  color: #fff; font-size: 12px; font-weight: 600;
  display: grid; place-items: center; margin-left: 16px;
}

/* ---------- Shell ---------- */
.shell { max-width: 1480px; margin: 0 auto; display: grid; grid-template-columns: 232px 1fr; min-height: calc(100vh - 59px); }

.sidebar { padding: 24px 16px; border-right: 1px solid var(--rule); background: var(--softer); }
.nav-group + .nav-group { margin-top: 26px; }
.nav-label { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); font-weight: 600; padding: 0 12px 8px; }
.nav-item {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 9px 12px; border: none; background: none; border-radius: var(--radius-sm);
  color: var(--ink-soft); font-size: 14px; font-weight: 500; text-align: left;
  transition: background .14s, color .14s;
}
.nav-item:hover { background: var(--soft); color: var(--ink); }
.nav-item.active { background: var(--brand-tint); color: var(--ss-orange-2); font-weight: 600; }
.nav-item.active .ic { color: var(--ss-orange-2); }
.nav-item .ic { width: 18px; height: 18px; flex-shrink: 0; color: var(--muted); }
.nav-item .count { margin-left: auto; font-size: 11.5px; color: var(--faint); font-weight: 600; }
.nav-item.active .count { color: var(--ss-orange-2); }

.main { padding: 30px 38px 64px; min-width: 0; }

/* ---------- Page header ---------- */
.page-head { margin-bottom: 22px; }
.page-head h1 { margin: 0; font-size: 25px; font-weight: 700; letter-spacing: -.02em; }
.page-head p { margin: 5px 0 0; color: var(--muted); font-size: 14px; max-width: 60ch; }
.crumb { font-size: 12px; color: var(--faint); letter-spacing: .03em; margin-bottom: 4px; }

/* ---------- Cards / generic ---------- */
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow-sm); }

/* ---------- Dashboard ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 26px; }
.stat { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px 18px 16px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.stat .label { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.stat .value { font-size: 32px; font-weight: 700; letter-spacing: -.02em; margin-top: 6px; line-height: 1; }
.stat .sub { font-size: 12px; color: var(--faint); margin-top: 7px; }
.stat .accent { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(var(--ss-orange-1), var(--ss-orange-2)); }
.stat.is-available .value { color: var(--available); }
.stat.is-soon .value { color: var(--soon); }

.dash-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.panel { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--rule); }
.panel-head h3 { margin: 0; font-size: 15px; font-weight: 650; }
.panel-head .link { font-size: 12.5px; color: var(--ss-orange-2); font-weight: 600; background: none; border: none; }
.panel-body { padding: 6px 0; }

.row-item { display: flex; align-items: center; gap: 13px; padding: 11px 18px; border-bottom: 1px solid var(--softer); }
.row-item:last-child { border-bottom: none; }
.row-item:hover { background: var(--softer); cursor: pointer; }
.row-main { min-width: 0; flex: 1; }
.row-main .t { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-main .s { font-size: 12px; color: var(--muted); }
.row-end { text-align: right; flex-shrink: 0; }
.row-end .big { font-size: 13px; font-weight: 600; }
.row-end .small { font-size: 11.5px; color: var(--faint); }

/* skills gap bars */
.gap-row { padding: 9px 18px; }
.gap-row .gap-top { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 5px; }
.gap-row .gap-top .n { color: var(--muted); }
.bar { height: 7px; background: var(--soft); border-radius: 999px; overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--ss-orange-1), var(--ss-orange-2)); }
.bar.thin > span { background: var(--rule-strong); }

/* ---------- Avatar ---------- */
.avatar { border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 600; flex-shrink: 0; background: linear-gradient(135deg, #6b7280, #4b5563); }
.avatar.o { background: linear-gradient(135deg, var(--ss-orange-1), var(--ss-orange-2)); }
.avatar.sm { width: 34px; height: 34px; font-size: 12.5px; }
.avatar.md { width: 44px; height: 44px; font-size: 15px; }
.avatar.lg { width: 66px; height: 66px; font-size: 22px; }

/* ---------- Status pills ---------- */
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.status .d { width: 6px; height: 6px; border-radius: 50%; }
.status.available { color: var(--available); background: var(--available-bg); }
.status.available .d { background: var(--available); }
.status.soon { color: var(--soon); background: var(--soon-bg); }
.status.soon .d { background: var(--soon); }
.status.engaged { color: var(--engaged); background: var(--engaged-bg); }
.status.engaged .d { background: var(--engaged); }

/* ---------- Search layout ---------- */
.search-layout { display: grid; grid-template-columns: 256px 1fr; gap: 24px; align-items: start; }
.filters { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow-sm); position: sticky; top: 79px; }
.filters .fhead { padding: 14px 16px; border-bottom: 1px solid var(--rule); display: flex; justify-content: space-between; align-items: center; }
.filters .fhead h3 { margin: 0; font-size: 14px; }
.filters .fhead button { font-size: 12px; color: var(--muted); background: none; border: none; }
.fsection { padding: 14px 16px; border-bottom: 1px solid var(--softer); }
.fsection:last-child { border-bottom: none; }
.fsection > .ftitle { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); font-weight: 600; margin-bottom: 10px; }
.check { display: flex; align-items: center; gap: 9px; font-size: 13px; padding: 4px 0; color: var(--ink-soft); cursor: pointer; }
.check input { accent-color: var(--brand); width: 14px; height: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--rule-strong); background: var(--surface); color: var(--ink-soft); transition: all .12s; }
.chip:hover { border-color: var(--ss-orange-2); color: var(--ss-orange-2); }
.chip.on { background: var(--brand-tint); border-color: var(--ss-orange-2); color: var(--ss-orange-2); font-weight: 600; }
.range-val { font-size: 12.5px; color: var(--ink-soft); font-weight: 600; margin-bottom: 8px; }
input[type=range] { width: 100%; accent-color: var(--brand); }

/* search bar */
.searchbar { display: flex; gap: 10px; margin-bottom: 16px; }
.searchbar .inp { flex: 1; position: relative; }
.searchbar .inp svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--faint); }
.searchbar input {
  width: 100%; padding: 11px 14px 11px 40px; font-size: 14px;
  border: 1px solid var(--rule-strong); border-radius: 11px; background: var(--surface); color: var(--ink);
}
.searchbar input:focus { outline: none; border-color: var(--ss-orange-2); box-shadow: 0 0 0 3px var(--brand-soft); }
.result-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.result-meta .n { font-size: 13px; color: var(--muted); }
.result-meta .n b { color: var(--ink); }
.result-meta select { padding: 7px 11px; border: 1px solid var(--rule-strong); border-radius: 9px; font-size: 12.5px; color: var(--ink-soft); background: var(--surface); }

/* associate result card */
.assoc-card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 17px 18px; box-shadow: var(--shadow-sm); margin-bottom: 13px; transition: box-shadow .15s, border-color .15s, transform .15s; cursor: pointer; }
.assoc-card:hover { box-shadow: var(--shadow-md); border-color: var(--rule-strong); transform: translateY(-1px); }
.assoc-top { display: flex; gap: 14px; }
.assoc-id { flex: 1; min-width: 0; }
.assoc-id .nm { font-size: 16px; font-weight: 650; letter-spacing: -.01em; }
.assoc-id .hl { font-size: 13px; color: var(--ss-orange-2); font-weight: 500; margin-top: 1px; }
.assoc-id .meta { font-size: 12.5px; color: var(--muted); margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.assoc-id .meta span { display: inline-flex; align-items: center; gap: 5px; }
.assoc-right { text-align: right; flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.rate { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.rate small { font-size: 11px; color: var(--faint); font-weight: 500; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }
.tag { font-size: 11.5px; padding: 3px 9px; border-radius: 7px; background: var(--soft); color: var(--ink-soft); font-weight: 500; }
.tag.hit { background: var(--brand-soft); color: var(--ss-orange-2); font-weight: 600; }
.match-line { margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--softer); font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.match-score { font-weight: 700; color: var(--available); }

.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty svg { width: 40px; height: 40px; color: var(--faint); margin-bottom: 12px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 10px; font-size: 13.5px; font-weight: 600; border: 1px solid transparent; transition: all .14s; }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: linear-gradient(135deg, var(--ss-orange-1), var(--ss-orange-2)); color: #fff; box-shadow: 0 4px 12px -4px rgba(242,106,43,.5); }
.btn-primary:hover { filter: brightness(1.04); box-shadow: 0 6px 16px -4px rgba(242,106,43,.55); }
.btn-ghost { background: var(--surface); border-color: var(--rule-strong); color: var(--ink-soft); }
.btn-ghost:hover { border-color: var(--ss-orange-2); color: var(--ss-orange-2); }
.btn-dark { background: var(--ink); color: #fff; }

/* ---------- Drawer (associate detail) ---------- */
.scrim { position: fixed; inset: 0; background: rgba(20,17,15,.34); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 90; backdrop-filter: blur(1.5px); }
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 560px; max-width: 94vw; background: var(--surface); box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .26s cubic-bezier(.4,0,.1,1); z-index: 95; overflow-y: auto; }
.drawer.open { transform: translateX(0); }
.drawer-head { padding: 22px 26px 18px; border-bottom: 1px solid var(--rule); position: sticky; top: 0; background: var(--surface); z-index: 2; }
.drawer-close { position: absolute; top: 18px; right: 18px; width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--rule); background: var(--surface); color: var(--muted); display: grid; place-items: center; }
.drawer-close:hover { background: var(--soft); color: var(--ink); }
.drawer-body { padding: 22px 26px 40px; }
.dsection { margin-bottom: 24px; }
.dsection h4 { margin: 0 0 11px; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.fact .k { font-size: 11.5px; color: var(--muted); }
.fact .v { font-size: 14px; font-weight: 600; margin-top: 2px; }
.bio { font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; }
.eng-item { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--softer); }
.eng-item:last-child { border-bottom: none; }
.eng-item .dotcol { width: 9px; height: 9px; border-radius: 50%; background: var(--rule-strong); margin-top: 5px; flex-shrink: 0; }
.eng-item .et { font-size: 13.5px; font-weight: 600; }
.eng-item .es { font-size: 12px; color: var(--muted); }
.mh-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--available); background: var(--available-bg); border-radius: 999px; padding: 4px 11px; font-weight: 600; white-space: nowrap; }
.mh-badge.off { color: var(--muted); background: var(--soft); }

/* ---------- Table (engagements) ---------- */
.tbl-wrap { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
table.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); font-weight: 600; padding: 13px 18px; border-bottom: 1px solid var(--rule); background: var(--softer); }
.tbl td { padding: 13px 18px; border-bottom: 1px solid var(--softer); font-size: 13.5px; vertical-align: middle; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tbody tr:hover { background: var(--softer); cursor: pointer; }
.tbl .who { display: flex; align-items: center; gap: 11px; }
.tbl .who .nm { font-weight: 600; }
.tbl .who .rl { font-size: 12px; color: var(--muted); }
.runbar { width: 120px; height: 6px; background: var(--soft); border-radius: 999px; overflow: hidden; }
.runbar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--ss-orange-1), var(--ss-orange-2)); border-radius: 999px; }
.runbar.warn > span { background: var(--soon); }
.weeks-left { font-size: 12px; color: var(--muted); margin-top: 4px; }
.weeks-left.warn { color: var(--soon); font-weight: 600; }

/* ---------- Form (add associate) ---------- */
.form-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 26px; align-items: start; }
.form-card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 26px 28px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.field .hint { font-size: 11.5px; color: var(--faint); font-weight: 400; }
.field input[type=text], .field input[type=number], .field select, .field textarea {
  width: 100%; padding: 10px 12px; font-size: 13.5px; border: 1px solid var(--rule-strong);
  border-radius: 9px; background: var(--surface); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ss-orange-2); box-shadow: 0 0 0 3px var(--brand-soft); }
.field textarea { resize: vertical; min-height: 84px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.section-divide { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 600; margin: 26px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--rule); }
.skill-pick { display: flex; flex-wrap: wrap; gap: 7px; }

/* CV bootstrap dropzone */
.dropzone { border: 1.5px dashed var(--rule-strong); border-radius: var(--radius-sm); padding: 26px; text-align: center; background: var(--softer); transition: all .15s; cursor: pointer; }
.dropzone:hover { border-color: var(--ss-orange-2); background: var(--brand-tint); }
.dropzone svg { width: 28px; height: 28px; color: var(--ss-orange-2); margin-bottom: 8px; }
.dropzone .d1 { font-size: 13.5px; font-weight: 600; }
.dropzone .d2 { font-size: 12px; color: var(--muted); margin-top: 3px; }
.aside-card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 20px; position: sticky; top: 79px; }
.aside-card h4 { margin: 0 0 10px; font-size: 14px; }
.aside-card p { font-size: 12.5px; color: var(--muted); line-height: 1.6; margin: 0 0 12px; }
.aside-card .ok-list { list-style: none; padding: 0; margin: 0; }
.aside-card .ok-list li { font-size: 12.5px; color: var(--ink-soft); padding: 6px 0 6px 24px; position: relative; }
.aside-card .ok-list li::before { content: "✓"; position: absolute; left: 0; color: var(--available); font-weight: 700; }

.bootstrap-note { display: none; margin-top: 14px; padding: 13px 15px; background: var(--brand-tint); border: 1px solid var(--brand-soft); border-radius: var(--radius-sm); font-size: 12.5px; color: var(--ink-soft); }
.bootstrap-note.show { display: block; }
.bootstrap-note b { color: var(--ss-orange-2); }

.form-actions { display: flex; gap: 12px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--rule); }

/* toast */
.toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 13px 20px; border-radius: 11px; font-size: 13.5px; font-weight: 500; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: all .25s; z-index: 100; display: flex; align-items: center; gap: 10px; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--available); }

@media (max-width: 1080px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-cols, .search-layout, .form-wrap { grid-template-columns: 1fr; }
  .filters, .aside-card { position: static; }
}
@media (max-width: 720px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .main { padding: 22px 18px 48px; }
}

/* ============================================================
   MOTION & WOW LAYER — animated, distinctive, on-brand
   ============================================================ */

@keyframes fadeInUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn   { from { opacity: 0; } to { opacity: 1; } }
@keyframes growBar  { from { width: 0; } }
@keyframes drawRing { from { stroke-dashoffset: var(--circ); } }
@keyframes auroraA  { 0% { transform: translate(0,0) scale(1); } 50% { transform: translate(6vw,4vh) scale(1.18); } 100% { transform: translate(0,0) scale(1); } }
@keyframes auroraB  { 0% { transform: translate(0,0) scale(1.1); } 50% { transform: translate(-5vw,-3vh) scale(1); } 100% { transform: translate(0,0) scale(1.1); } }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(15,157,107,.45); } 70% { box-shadow: 0 0 0 7px rgba(15,157,107,0); } 100% { box-shadow: 0 0 0 0 rgba(15,157,107,0); } }
@keyframes sheen    { 0% { transform: translateX(-120%) skewX(-18deg); } 60%,100% { transform: translateX(320%) skewX(-18deg); } }
@keyframes spin     { to { transform: rotate(360deg); } }
@keyframes logoGlow { 0%,100% { filter: drop-shadow(0 0 3px rgba(242,106,43,.35)); } 50% { filter: drop-shadow(0 0 11px rgba(242,106,43,.75)); } }
@keyframes floaty   { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes pop      { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }

/* Slow-drifting aurora behind the whole app — keeps it white but adds depth */
body { position: relative; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(38vmax 38vmax at 88% -6%, rgba(247,144,45,.16), transparent 60%),
    radial-gradient(34vmax 34vmax at 104% 40%, rgba(242,106,43,.13), transparent 60%),
    radial-gradient(40vmax 40vmax at -8% 108%, rgba(247,144,45,.10), transparent 62%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background: radial-gradient(30vmax 30vmax at 85% 10%, rgba(242,106,43,.10), transparent 60%);
  animation: auroraA 26s ease-in-out infinite;
}
.topbar, .shell, .drawer, .scrim, .toast { position: relative; z-index: 1; }
.shell { position: relative; }
.shell::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .55;
  background: radial-gradient(26vmax 22vmax at 12% 4%, rgba(247,144,45,.10), transparent 60%);
  animation: auroraB 32s ease-in-out infinite;
}
.sidebar, .main { position: relative; z-index: 1; }

/* Topbar polish — animated logo glow, sheen sweep, conic avatar ring */
.topbar { overflow: hidden; }
.topbar svg { animation: logoGlow 5.5s ease-in-out infinite; }
.topbar-inner::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 80px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.07), transparent);
  animation: sheen 9s ease-in-out infinite; pointer-events: none;
}
.topbar .mh-pill .dot { animation: livePulse 2.4s ease-in-out infinite; }
.topbar .user { position: relative; isolation: isolate; }
.topbar .user::before {
  content: ""; position: absolute; inset: -2.5px; border-radius: 50%; z-index: -1;
  background: conic-gradient(from 0deg, var(--ss-orange-1), var(--ss-orange-2), #fff6, var(--ss-orange-1));
  animation: spin 4.5s linear infinite;
}

/* Reveal system (staggered entrance) */
.reveal { animation: fadeInUp .55s cubic-bezier(.2,.75,.25,1) both; }

/* Cursor-following spotlight */
.spot { position: relative; overflow: hidden; }
.spot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(360px circle at var(--mx,50%) var(--my,50%), rgba(242,106,43,.10), transparent 62%);
  opacity: 0; transition: opacity .35s;
}
.spot:hover::after { opacity: 1; }
.spot > * { position: relative; z-index: 1; }

/* Stat cards — lift + floating orb */
.stat { transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, border-color .3s; }
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--rule-strong); }
.stat::after {
  content: ""; position: absolute; right: -22px; top: -22px; width: 92px; height: 92px; border-radius: 50%;
  background: radial-gradient(circle, rgba(242,106,43,.13), transparent 68%); z-index: 0;
  transition: transform .4s ease;
}
.stat:hover::after { transform: scale(1.45); }
.stat .value { position: relative; z-index: 1; }

/* Animated bars */
.bar > span { animation: growBar 1.1s cubic-bezier(.2,.8,.2,1) both; }
.runbar > span { animation: growBar 1.2s cubic-bezier(.2,.8,.2,1) both; }

/* Nav micro-interaction */
.nav-item { transition: background .16s, color .16s, transform .16s; }
.nav-item:hover { transform: translateX(2px); }
.nav-item .ic { transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.nav-item:hover .ic, .nav-item.active .ic { transform: scale(1.14); }

/* Buttons — gradient sheen sweep */
.btn { position: relative; overflow: hidden; transition: transform .15s, box-shadow .2s, filter .2s, border-color .15s, color .15s; }
.btn:active { transform: scale(.96); }
.btn-primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
  transform: translateX(-160%) skewX(-18deg); pointer-events: none;
}
.btn-primary:hover::after { animation: sheen 1.1s ease; }

/* Associate cards — smoother spring lift */
.assoc-card { transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s, border-color .2s; }
.assoc-card:hover { transform: translateY(-3px) scale(1.006); }
.cascade .assoc-card { animation: fadeInUp .5s cubic-bezier(.2,.75,.25,1) both; }
.cascade .assoc-card:nth-child(1){animation-delay:.02s} .cascade .assoc-card:nth-child(2){animation-delay:.06s}
.cascade .assoc-card:nth-child(3){animation-delay:.10s} .cascade .assoc-card:nth-child(4){animation-delay:.14s}
.cascade .assoc-card:nth-child(5){animation-delay:.18s} .cascade .assoc-card:nth-child(6){animation-delay:.22s}
.cascade .assoc-card:nth-child(7){animation-delay:.26s} .cascade .assoc-card:nth-child(n+8){animation-delay:.3s}

/* Live availability dot pulse */
.status.available .d { animation: livePulse 2.6s ease-in-out infinite; }

/* Row hover slide */
.row-item { transition: background .16s, transform .16s; }
.row-item:hover { transform: translateX(3px); }

/* ---- Radial match gauge ---- */
.gaugewrap { position: relative; display: inline-grid; place-items: center; flex-shrink: 0; }
.gauge .g-track { fill: none; stroke: var(--soft); stroke-width: 4; }
.gauge .g-val { fill: none; stroke-width: 4; stroke-linecap: round; stroke-dasharray: var(--circ); stroke-dashoffset: var(--target); transition: stroke-dashoffset .4s; }
.cascade .gauge .g-val { animation: drawRing 1.1s cubic-bezier(.2,.8,.2,1) both; }
.gaugewrap .gnum { position: absolute; font-size: 12px; font-weight: 700; letter-spacing: -.02em; }
.gaugewrap .gnum i { font-size: 8px; font-style: normal; font-weight: 600; opacity: .65; }
.g-hi .g-val { stroke: var(--available); } .g-hi .gnum { color: var(--available); }
.g-mid .g-val { stroke: var(--soon); } .g-mid .gnum { color: var(--soon); }
.g-lo .g-val { stroke: var(--faint); } .g-lo .gnum { color: var(--muted); }
.match-line { align-items: center; }

/* Shortlist banner spark spins while "building" */
.spark-pulse { animation: floaty 2.2s ease-in-out infinite; }

/* Drawer content stagger */
.drawer.open .dsection { animation: fadeInUp .45s cubic-bezier(.2,.75,.25,1) both; }
.drawer.open .dsection:nth-child(1){animation-delay:.04s} .drawer.open .dsection:nth-child(2){animation-delay:.09s}
.drawer.open .dsection:nth-child(3){animation-delay:.14s} .drawer.open .dsection:nth-child(4){animation-delay:.19s}
.drawer.open .dsection:nth-child(5){animation-delay:.24s} .drawer.open .dsection:nth-child(n+6){animation-delay:.28s}
.mh-badge.synced-anim { animation: pop .5s .25s both; }

/* Toast sparkle */
.toast .dot { animation: livePulse 2s ease-in-out infinite; }

/* View enter */
.view-enter > .page-head { animation: fadeInUp .5s cubic-bezier(.2,.75,.25,1) both; }

/* Dropzone pulse on the "magic" CTA */
.dropzone { transition: all .2s; }
.dropzone .d1 { transition: color .2s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .gauge .g-val { stroke-dashoffset: var(--target); }
}

/* Freeze ambient motion for print / screenshots / low-power (?still or #still) */
.no-anim *, .no-anim *::before, .no-anim *::after { animation: none !important; transition: none !important; }
.no-anim .gauge .g-val { stroke-dashoffset: var(--target); }

/* ============================================================
   AI LAYER · INTEGRATIONS · REPORTS · COMMS
   ============================================================ */

/* Topbar Ask button */
.ask-btn {
  display: inline-flex; align-items: center; gap: 7px; color: #fff;
  background: linear-gradient(135deg, var(--ss-orange-1), var(--ss-orange-2));
  border: none; border-radius: 999px; padding: 7px 15px; font-size: 13px; font-weight: 600;
  box-shadow: 0 3px 12px -3px rgba(242,106,43,.6); transition: transform .15s, filter .15s; margin-right: 4px;
}
.ask-btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.ask-btn svg { animation: floaty 2.6s ease-in-out infinite; }

/* Dashboard AI command bar */
.ai-bar {
  display: flex; align-items: center; gap: 10px; background: var(--surface);
  border: 1.5px solid var(--rule-strong); border-radius: 14px; padding: 8px 8px 8px 14px;
  box-shadow: var(--shadow-sm); margin-bottom: 12px; transition: border-color .2s, box-shadow .2s;
}
.ai-bar:focus-within { border-color: var(--ss-orange-2); box-shadow: 0 0 0 4px var(--brand-soft); }
.ai-bar-spark { color: var(--ss-orange-2); display: grid; place-items: center; }
.ai-bar-spark svg { animation: floaty 2.6s ease-in-out infinite; }
.ai-bar input { flex: 1; border: none; outline: none; font-size: 14.5px; background: none; color: var(--ink); }
.ai-bar-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.ai-chip {
  font-size: 12.5px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--rule-strong);
  background: var(--surface); color: var(--ink-soft); transition: all .14s; text-align: left;
}
.ai-chip:hover { border-color: var(--ss-orange-2); color: var(--ss-orange-2); background: var(--brand-tint); transform: translateY(-1px); }

/* Event icons (agenda) */
.ev-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; color: var(--ss-orange-2); background: var(--brand-tint); }
.ev-ic.ev-contract-end, .ev-ic.ev-nps { color: var(--soon); background: var(--soon-bg); }
.ev-ic.ev-available { color: var(--available); background: var(--available-bg); }
.ev-ic.ev-vetting { color: var(--info, #1d4ed8); background: #eaf0ff; }

/* ---------- Assistant ---------- */
.ai-thread { display: flex; flex-direction: column; gap: 18px; padding-bottom: 18px; min-height: 40vh; }
.ai-welcome { text-align: center; padding: 40px 20px; color: var(--muted); }
.ai-welcome > svg { color: var(--ss-orange-2); width: 30px; height: 30px; animation: floaty 2.6s ease-in-out infinite; }
.ai-welcome .aw-t { font-size: 19px; font-weight: 700; color: var(--ink); margin-top: 10px; letter-spacing: -.01em; }
.ai-welcome .aw-s { font-size: 13.5px; margin-top: 3px; }
.ai-welcome .ai-suggest { margin-top: 20px; justify-content: center; }

.ai-msg { display: flex; gap: 12px; max-width: 860px; }
.ai-msg.user { justify-content: flex-end; align-self: flex-end; }
.ai-bubble { background: linear-gradient(135deg, var(--ss-orange-1), var(--ss-orange-2)); color: #fff; padding: 10px 15px; border-radius: 14px 14px 4px 14px; font-size: 14px; font-weight: 500; box-shadow: var(--shadow-sm); max-width: 560px; }
.ai-msg.bot { align-self: flex-start; animation: fadeInUp .4s cubic-bezier(.2,.75,.25,1) both; }
.ai-ava { width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #2a2a2a, #0a0a0a); }
.ai-ava svg { color: var(--ss-orange-1); }
.ai-bot-body { flex: 1; min-width: 0; }
.ai-reply { font-size: 14px; color: var(--ink); line-height: 1.6; margin-bottom: 12px; }
.ai-reply b { color: var(--ink); font-weight: 700; }

.ai-typing { display: inline-flex; gap: 5px; padding: 6px 2px; }
.ai-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--ss-orange-2); opacity: .4; animation: typed 1.1s infinite; }
.ai-typing span:nth-child(2) { animation-delay: .18s; } .ai-typing span:nth-child(3) { animation-delay: .36s; }
@keyframes typed { 0%,100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }

.ai-composer { position: sticky; bottom: 0; display: flex; gap: 10px; padding: 14px 0 8px; background: linear-gradient(transparent, var(--soft) 26%); }
.ai-composer input { flex: 1; padding: 12px 16px; font-size: 14.5px; border: 1.5px solid var(--rule-strong); border-radius: 12px; background: var(--surface); color: var(--ink); }
.ai-composer input:focus { outline: none; border-color: var(--ss-orange-2); box-shadow: 0 0 0 4px var(--brand-soft); }

.ai-cards { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.ai-assoc { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border: 1px solid var(--rule); border-radius: 11px; background: var(--surface); cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.ai-assoc:hover { border-color: var(--rule-strong); box-shadow: var(--shadow-sm); transform: translateX(2px); }

.ai-suggest { display: flex; flex-wrap: wrap; gap: 8px; }
.ai-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

/* AI email draft */
.ai-email { border: 1px solid var(--rule-strong); border-radius: 13px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm); max-width: 620px; }
.ai-email-head { display: flex; align-items: center; gap: 8px; padding: 11px 15px; background: var(--softer); border-bottom: 1px solid var(--rule); font-weight: 650; font-size: 13px; }
.ai-email-head svg { color: var(--ss-orange-2); }
.ai-email-via { margin-left: auto; font-size: 11px; color: var(--faint); font-weight: 500; }
.ai-email-field { display: flex; align-items: center; gap: 10px; padding: 9px 15px; border-bottom: 1px solid var(--softer); }
.ai-email-field label { font-size: 11.5px; color: var(--faint); width: 52px; flex-shrink: 0; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.ai-email-to { font-size: 13px; font-weight: 500; }
.ai-subj { flex: 1; border: none; outline: none; font-size: 13.5px; font-weight: 600; color: var(--ink); background: none; }
.ai-body { width: 100%; border: none; outline: none; resize: vertical; padding: 14px 15px; font-size: 13px; line-height: 1.6; color: var(--ink-soft); font-family: inherit; background: var(--surface); }
.ai-email-note { display: flex; align-items: flex-start; gap: 7px; padding: 10px 15px; font-size: 12px; color: var(--muted); background: var(--brand-tint); border-top: 1px solid var(--brand-soft); }
.ai-email-note svg { color: var(--ss-orange-2); flex-shrink: 0; margin-top: 1px; }
.ai-email-actions { display: flex; gap: 9px; padding: 12px 15px; }
.ai-sent { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 26px; color: var(--available); font-weight: 650; font-size: 14px; }
.ai-sent svg { background: var(--available-bg); border-radius: 50%; padding: 4px; width: 22px; height: 22px; }

/* AI report */
.ai-report { border: 1px solid var(--rule-strong); border-radius: 13px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm); max-width: 660px; }
.ai-report-head { display: flex; align-items: center; gap: 8px; padding: 13px 16px; font-weight: 700; font-size: 14.5px; border-bottom: 1px solid var(--rule); }
.ai-report-head svg { color: var(--ss-orange-2); }
.ai-report-figs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--rule); border-bottom: 1px solid var(--rule); }
.ai-report-figs .fig { background: var(--surface); padding: 14px 16px; }
.ai-report-figs .fv { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.ai-report-figs .fk { font-size: 11px; color: var(--muted); margin-top: 2px; }
.ai-report-narr { padding: 14px 16px 4px; font-size: 13.5px; line-height: 1.65; color: var(--ink-soft); margin: 0; }
.ai-report-list { margin: 0; padding: 4px 16px 14px 34px; font-size: 13px; color: var(--muted); }
.ai-report-list li { padding: 3px 0; }

/* ---------- Reports view ---------- */
.report-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 24px; }
.report-card { border: 1px solid var(--rule); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-sm); padding: 20px; cursor: pointer; transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s, border-color .2s; }
.report-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--rule-strong); }
.rc-icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: var(--ss-orange-2); background: var(--brand-tint); margin-bottom: 12px; }
.rc-title { font-size: 15.5px; font-weight: 650; }
.rc-desc { font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.rc-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 13px; font-size: 12.5px; font-weight: 650; color: var(--ss-orange-2); }

/* ---------- Comms view ---------- */
.comms-grid { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.auto-row { display: flex; align-items: center; gap: 14px; padding: 13px 18px; border-bottom: 1px solid var(--softer); }
.auto-row:last-child { border-bottom: none; }
.toggle { width: 42px; height: 24px; border-radius: 999px; background: var(--rule-strong); border: none; position: relative; flex-shrink: 0; transition: background .2s; cursor: pointer; }
.toggle span { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s; }
.toggle.on { background: linear-gradient(135deg, var(--ss-orange-1), var(--ss-orange-2)); }
.toggle.on span { transform: translateX(18px); }

/* ---------- Integrations view ---------- */
.intg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.intg-card { border: 1px solid var(--rule); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-sm); padding: 18px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.intg-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--rule-strong); }
.intg-top { display: flex; align-items: center; gap: 12px; }
.intg-logo { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; font-size: 18px; color: #fff; background: var(--c); flex-shrink: 0; box-shadow: 0 4px 10px -4px var(--c); }
.intg-name { font-weight: 650; font-size: 15px; }
.intg-kind { font-size: 12px; color: var(--muted); }
.intg-status { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--available); background: var(--available-bg); padding: 3px 9px; border-radius: 999px; }
.intg-status .d { width: 6px; height: 6px; border-radius: 50%; background: var(--available); animation: livePulse 2.6s ease-in-out infinite; }
.intg-detail { font-size: 12.5px; color: var(--ink-soft); margin: 13px 0; line-height: 1.5; }
.intg-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--softer); }
.intg-stat { font-size: 11.5px; color: var(--muted); }
.intg-sync { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink-soft); background: var(--surface); border: 1px solid var(--rule-strong); border-radius: 8px; padding: 6px 11px; transition: all .14s; flex-shrink: 0; }
.intg-sync:hover { border-color: var(--ss-orange-2); color: var(--ss-orange-2); }
.intg-sync.spinning svg { animation: spin .8s linear infinite; }
.act-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }

@media (max-width: 1080px) {
  .report-grid, .comms-grid { grid-template-columns: 1fr; }
  .ai-report-figs { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   PLATFORM · widgets, calendar, activities, clients, financials, pipeline, team
   ============================================================ */

.dash-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }

/* ---- Customise panel ---- */
.customise-panel { background: var(--surface); border: 1px solid var(--rule-strong); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 16px 18px; margin-bottom: 18px; animation: fadeInUp .3s both; }
.cust-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.cust-head .link { font-size: 12.5px; color: var(--ss-orange-2); font-weight: 600; background: none; border: none; }
.cust-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 14px; }

/* ---- Widget grid ---- */
.widget-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; align-items: start; }
.widget { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; transition: box-shadow .2s, border-color .2s, opacity .2s; }
.widget.dragging { opacity: .45; }
.widget.drop-target { border-color: var(--ss-orange-2); box-shadow: 0 0 0 3px var(--brand-soft); }
.widget-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px 12px 12px; border-bottom: 1px solid var(--rule); cursor: grab; }
.widget-head:active { cursor: grabbing; }
.widget-head h3 { margin: 0; font-size: 14px; font-weight: 650; flex: 1; }
.drag-grip { color: var(--faint); font-size: 13px; letter-spacing: -2px; cursor: grab; user-select: none; }
.widget-link { font-size: 12px; color: var(--ss-orange-2); font-weight: 600; background: none; border: none; opacity: 0; transition: opacity .15s; }
.widget:hover .widget-link { opacity: 1; }
.widget-x { width: 24px; height: 24px; border-radius: 6px; border: none; background: none; color: var(--faint); display: grid; place-items: center; opacity: 0; transition: all .15s; }
.widget-x svg { width: 14px; height: 14px; }
.widget:hover .widget-x { opacity: 1; }
.widget-x:hover { background: var(--soft); color: var(--danger); }
.widget-body { padding: 4px 0; }
.widget-body .row-item:last-child { border-bottom: none; }
.w-empty { padding: 26px 18px; text-align: center; color: var(--muted); font-size: 13px; }
.w-full { width: 100%; justify-content: center; margin-top: 6px; }
.w-cta { padding: 10px 18px 6px; }

/* KPI tiles inside widget */
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 4px; }
.kpi-row .stat { margin: 0; }

/* mini KPIs (revenue widget) */
.mini-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); }
.mini-kpis .mk { background: var(--surface); padding: 14px 16px; }
.mk-v { font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.mk-k { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

/* tasks */
.task-row { display: flex; align-items: center; gap: 11px; padding: 10px 16px; border-bottom: 1px solid var(--softer); cursor: pointer; font-size: 13.5px; }
.task-row:last-child { border-bottom: none; }
.task-row input { accent-color: var(--brand); width: 15px; height: 15px; flex-shrink: 0; }
.task-row .task-t { flex: 1; }
.task-row.done .task-t { text-decoration: line-through; color: var(--faint); }
.task-assignee { font-size: 11.5px; color: var(--faint); }

/* mini calendar */
.mc { padding: 6px 14px 12px; }
.mc-month { font-size: 13px; font-weight: 650; text-align: center; margin-bottom: 8px; }
.mc-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.mc-dow { font-size: 10px; color: var(--faint); text-align: center; font-weight: 600; padding-bottom: 2px; }
.mc-cell { aspect-ratio: 1; display: grid; place-items: center; font-size: 11.5px; color: var(--ink-soft); border-radius: 6px; position: relative; }
.mc-cell.today { background: linear-gradient(135deg, var(--ss-orange-1), var(--ss-orange-2)); color: #fff; font-weight: 700; }
.mc-cell.has-ev:not(.today)::after { content: ''; position: absolute; bottom: 2px; width: 4px; height: 4px; border-radius: 50%; background: var(--ss-orange-2); }
.mc-cell.empty { visibility: hidden; }

/* client dots / health */
.client-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.client-dot.good { background: var(--available); }
.client-dot.watch { background: var(--soon); }
.health { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.health.good { color: var(--available); background: var(--available-bg); }
.health.watch { color: var(--soon); background: var(--soon-bg); }

/* ---- Calendar page ---- */
.cal-nav { display: flex; gap: 8px; }
.cal-month-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; flex-wrap: wrap; gap: 10px; }
.cal-month { margin: 0; font-size: 18px; font-weight: 700; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 11.5px; color: var(--muted); }
.lg-item { display: inline-flex; align-items: center; gap: 5px; }
.lg-item i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow-sm); }
.cal-dow { font-size: 11px; font-weight: 600; color: var(--faint); text-transform: uppercase; letter-spacing: .04em; padding: 4px 6px; }
.cal-cell { min-height: 92px; border: 1px solid var(--softer); border-radius: 9px; padding: 6px; background: var(--softer); }
.cal-cell.empty { background: none; border: none; }
.cal-cell.today { border-color: var(--ss-orange-2); background: var(--brand-tint); }
.cal-d { font-size: 12px; font-weight: 600; color: var(--ink-soft); margin-bottom: 4px; }
.cal-cell.today .cal-d { color: var(--ss-orange-2); }
.cal-ev { font-size: 10.5px; padding: 2px 6px; border-radius: 5px; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; background: var(--brand-tint); color: var(--ss-orange-2); border-left: 2px solid var(--ss-orange-2); }
.cal-more { font-size: 10px; color: var(--muted); padding-left: 4px; }
/* event-type colours (calendar chips + legend swatches) */
.ev-contract-end, .cal-ev.ev-contract-end { background: var(--soon-bg); color: var(--soon); border-left-color: var(--soon); }
.ev-nps, .cal-ev.ev-nps { background: #eaf0ff; color: #1d4ed8; border-left-color: #1d4ed8; }
.ev-interview, .cal-ev.ev-interview { background: #ecfdf5; color: var(--available); border-left-color: var(--available); }
.ev-vetting, .cal-ev.ev-vetting { background: #f3eaff; color: #7a3ff2; border-left-color: #7a3ff2; }
.ev-role, .cal-ev.ev-role { background: #fff4e6; color: #b45309; border-left-color: #b45309; }
i.ev-contract-end { background: var(--soon) !important; } i.ev-nps { background: #1d4ed8 !important; } i.ev-interview { background: var(--available) !important; } i.ev-vetting { background: #7a3ff2 !important; } i.ev-digest { background: var(--ss-orange-2) !important; } i.ev-role { background: #b45309 !important; }

/* ---- Activities page ---- */
.act-group { margin-bottom: 24px; }
.act-group-head { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 650; color: var(--ink); margin-bottom: 10px; }
.count-pill { font-size: 11px; font-weight: 700; color: var(--muted); background: var(--soft); border-radius: 999px; padding: 1px 8px; }
.task-full { display: flex; align-items: center; gap: 13px; padding: 13px 18px; border-bottom: 1px solid var(--softer); cursor: pointer; transition: background .14s; }
.task-full:last-child { border-bottom: none; }
.task-full:hover { background: var(--softer); }
.task-full input { accent-color: var(--brand); width: 16px; height: 16px; flex-shrink: 0; }
.tf-main { flex: 1; } .tf-t { font-size: 14px; font-weight: 550; } .tf-s { font-size: 12px; color: var(--muted); margin-top: 1px; }
.task-full.done .tf-t { text-decoration: line-through; color: var(--faint); }
.tf-due { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.tf-due.today { color: var(--ss-orange-2); }

/* ---- Clients page ---- */
.client-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.client-card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 18px; cursor: pointer; transition: transform .2s, box-shadow .2s, border-color .2s; }
.client-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--rule-strong); }
.cc-top { display: flex; align-items: center; gap: 12px; }
.client-logo { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; font-size: 18px; color: #fff; background: linear-gradient(135deg, #3b3a38, #14110f); flex-shrink: 0; }
.client-logo.lg { width: 60px; height: 60px; font-size: 24px; border-radius: 14px; }
.cc-name { font-size: 15.5px; font-weight: 650; } .cc-sector { font-size: 12.5px; color: var(--muted); }
.cc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0 12px; padding: 13px 0; border-top: 1px solid var(--softer); border-bottom: 1px solid var(--softer); }
.ccv { font-size: 18px; font-weight: 700; letter-spacing: -.02em; } .cck { font-size: 11px; color: var(--muted); }
.cc-foot { font-size: 12px; color: var(--faint); }

/* ---- Pipeline kanban ---- */
.kanban { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: start; }
.kcol { background: var(--softer); border: 1px solid var(--rule); border-radius: var(--radius); padding: 12px; }
.kcol-head { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 650; }
.kcol-sub { font-size: 11.5px; color: var(--muted); margin: 2px 0 12px; }
.kcard { background: var(--surface); border: 1px solid var(--rule); border-radius: 11px; padding: 13px; margin-bottom: 10px; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s; cursor: default; }
.kcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.kc-name { font-size: 13.5px; font-weight: 650; } .kc-client { font-size: 12px; color: var(--muted); margin-top: 2px; }
.kc-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 11px; font-size: 12.5px; font-weight: 600; }
.kc-prob { font-size: 11px; padding: 2px 8px; border-radius: 999px; }
.kc-prob.hi { color: var(--available); background: var(--available-bg); } .kc-prob.mid { color: var(--soon); background: var(--soon-bg); } .kc-prob.lo { color: var(--muted); background: var(--soft); }
.kc-owner { font-size: 11px; color: var(--faint); margin-top: 8px; }

/* ---- Team page ---- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.team-card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 18px; }
.tc-top { display: flex; align-items: center; gap: 13px; margin-bottom: 14px; }
.tc-name { font-size: 15px; font-weight: 650; } .tc-role { font-size: 12.5px; color: var(--muted); }
.you-tag { font-size: 10px; font-weight: 700; color: var(--ss-orange-2); background: var(--brand-tint); border-radius: 999px; padding: 1px 7px; vertical-align: middle; }
.tc-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 13px 0; border-top: 1px solid var(--softer); margin-bottom: 6px; }
.tcm-v { font-size: 18px; font-weight: 700; letter-spacing: -.02em; } .tcm-k { font-size: 11px; color: var(--muted); }

@media (max-width: 1180px) {
  .widget-grid .widget { grid-column: span 12 !important; }
  .kanban { grid-template-columns: repeat(2, 1fr); }
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   COLOUR & CONTRAST LAYER — coloured headers, separation, calendar
   Each card carries an accent in --wc; tints derive via color-mix.
   ============================================================ */
:root {
  --shadow-sm: 0 1px 2px rgba(20,17,15,.05), 0 7px 18px -11px rgba(20,17,15,.16);
  --shadow-md: 0 10px 28px -12px rgba(20,17,15,.24), 0 3px 8px -3px rgba(20,17,15,.08);
}
/* deeper page background so white cards lift */
body { background: #e9e6e1; }
.sidebar { background: #f4f2ee; }

/* ---- shared accent header (widgets + panels) ---- */
.widget, .panel { --wc: var(--ss-orange-2); border: 1px solid var(--rule-strong); border-top: 3px solid var(--wc); box-shadow: var(--shadow-sm); }
.widget-head, .panel-head {
  background: color-mix(in srgb, var(--wc) 9%, #fff);
  border-bottom: 1px solid color-mix(in srgb, var(--wc) 22%, var(--rule));
}
.widget-head h3, .panel-head h3 { color: color-mix(in srgb, var(--wc) 62%, var(--ink)); }
.widget-head { gap: 9px; }
.widget-ic { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; flex-shrink: 0; background: color-mix(in srgb, var(--wc) 16%, #fff); color: var(--wc); }
.widget-ic svg { width: 15px; height: 15px; }
.widget-link { color: var(--wc); }
.widget:hover { box-shadow: var(--shadow-md); }
.panel-head .link { color: var(--wc); }

/* coloured progress bars follow --wc */
.bar > span { background: linear-gradient(90deg, color-mix(in srgb, var(--wc, #F7902D) 65%, #fff), var(--wc, #F26A2B)); }

/* ---- KPI tiles in colour ---- */
.stat.kpi { border: 1px solid var(--rule-strong); border-top: 3px solid var(--wc); overflow: hidden; }
.stat.kpi .accent { background: var(--wc); }
.stat.kpi::after { background: radial-gradient(circle, color-mix(in srgb, var(--wc) 18%, transparent), transparent 68%); }
.stat.kpi .value { color: var(--wc); }
.kpi-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.kpi-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; background: color-mix(in srgb, var(--wc) 15%, #fff); color: var(--wc); }
.kpi-ic svg { width: 17px; height: 17px; }

/* ---- stronger separation on all card types ---- */
.client-card, .team-card, .report-card, .intg-card, .assoc-card, .kcard, .tbl-wrap, .ai-email, .ai-report, .aside-card, .form-card, .filters, .customise-panel, .ai-bar { border-color: var(--rule-strong); }
.client-card, .team-card { border-top: 3px solid var(--wc, var(--ss-orange-2)); }
.client-card { --wc: #0b5394; } .team-card { --wc: #7c3aed; }
.tbl th { background: color-mix(in srgb, var(--ss-orange-2) 7%, #fff); color: color-mix(in srgb, var(--ss-orange-2) 50%, var(--muted)); }

/* table-level accents on the new pages */
.tbl-wrap { border-top: 3px solid var(--ss-orange-2); }

/* ---- Calendar: contrast + colour ---- */
.cal-grid { border-top: 3px solid #7c3aed; }
.cal-dow { background: color-mix(in srgb, #7c3aed 8%, #fff); color: #7c3aed; border-radius: 6px; text-align: center; }
.cal-cell { background: #fff; border: 1px solid var(--rule-strong); }
.cal-cell:nth-child(7n+6), .cal-cell:nth-child(7n) { background: #faf9f7; } /* weekend tint (cells start after 7 dow headers) */
.cal-cell.today { border: 2px solid var(--ss-orange-2); background: var(--brand-tint); box-shadow: 0 0 0 3px var(--brand-soft); }
.cal-cell.empty { background: none; border: none; }
.cal-d { color: var(--muted); }
.cal-cell.today .cal-d { color: var(--ss-orange-2); font-weight: 700; }
/* event chips: saturated, filled, high-contrast */
.cal-ev { font-weight: 600; border-left-width: 3px; border-radius: 4px; }
.cal-ev.ev-contract-end { background: color-mix(in srgb, var(--soon) 16%, #fff); color: #92580a; }
.cal-ev.ev-nps { background: color-mix(in srgb, #1d4ed8 14%, #fff); color: #1e40af; }
.cal-ev.ev-interview { background: color-mix(in srgb, var(--available) 15%, #fff); color: #066b49; }
.cal-ev.ev-vetting { background: color-mix(in srgb, #7c3aed 14%, #fff); color: #6d28d9; }
.cal-ev.ev-digest { background: color-mix(in srgb, var(--ss-orange-2) 15%, #fff); color: #b4451f; }
.cal-ev.ev-role { background: color-mix(in srgb, #b45309 15%, #fff); color: #92400e; }
.cal-ev.ev-task { background: color-mix(in srgb, #0891b2 14%, #fff); color: #0e7490; border-left-color: #0891b2; }
.cal-ev.ev-intro { background: color-mix(in srgb, #7c3aed 14%, #fff); color: #6d28d9; border-left-color: #7c3aed; }
.cal-ev.ev-review { background: color-mix(in srgb, #db2777 13%, #fff); color: #be185d; border-left-color: #db2777; }
.cal-ev.ev-available { background: color-mix(in srgb, var(--available) 15%, #fff); color: #066b49; border-left-color: var(--available); }

/* event-type icon chips (this-week / agenda rows) get their colour */
.ev-ic.ev-interview { color: var(--available); background: color-mix(in srgb, var(--available) 14%, #fff); }
.ev-ic.ev-review { color: #db2777; background: color-mix(in srgb, #db2777 13%, #fff); }
.ev-ic.ev-role { color: #b45309; background: color-mix(in srgb, #b45309 14%, #fff); }
.ev-ic.ev-digest { color: var(--ss-orange-2); background: var(--brand-tint); }
.ev-ic.ev-task { color: #0891b2; background: color-mix(in srgb, #0891b2 13%, #fff); }

/* mini-calendar dots + today already branded; weekend tint */
.mc-cell { color: var(--ink-soft); }

/* kanban columns get stage colour accents */
.kcol:nth-child(1) { border-top: 3px solid #94a3b8; }
.kcol:nth-child(2) { border-top: 3px solid #0891b2; }
.kcol:nth-child(3) { border-top: 3px solid #d97706; }
.kcol:nth-child(4) { border-top: 3px solid var(--available); }
.kcol { border: 1px solid var(--rule-strong); }

/* client logo + intg cards a touch bolder */
.intg-card { border-top: 3px solid var(--rule-strong); }
.report-card { border-top: 3px solid var(--ss-orange-2); }

/* ============================================================
   MASONRY DASHBOARD · MODAL · CHARTS · FILTERS
   ============================================================ */

/* ---- Masonry widget layout (tight packing, no gaps) ---- */
.widget-kpis { margin-bottom: 18px; }
.widget-kpis .widget-body { padding: 0; }
.widget-masonry { column-count: 3; column-gap: 18px; }
.widget-masonry .widget { width: 100%; margin: 0 0 18px; break-inside: avoid; -webkit-column-break-inside: avoid; display: inline-block; vertical-align: top; }
@media (max-width: 1300px) { .widget-masonry { column-count: 2; } }
@media (max-width: 820px) { .widget-masonry { column-count: 1; } }
.kpi-row { gap: 14px; }

/* ---- Modal ---- */
.modal-scrim { position: fixed; inset: 0; background: rgba(20,17,15,.4); backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 110; }
.modal-scrim.open { opacity: 1; pointer-events: auto; }
.modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -46%) scale(.97); width: 460px; max-width: 94vw; max-height: 88vh; overflow-y: auto; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s, transform .22s cubic-bezier(.2,.8,.2,1), visibility .2s; z-index: 115; }
.modal.open { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--rule); border-top: 4px solid var(--wc); background: color-mix(in srgb, var(--wc) 8%, #fff); border-radius: 16px 16px 0 0; }
.modal-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; background: color-mix(in srgb, var(--wc) 16%, #fff); color: var(--wc); }
.modal-ic svg { width: 20px; height: 20px; }
.modal-title { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.modal-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.modal-x { margin-left: auto; width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--rule); background: var(--surface); color: var(--muted); display: grid; place-items: center; flex-shrink: 0; }
.modal-x:hover { background: var(--soft); color: var(--ink); }
.modal-body { padding: 18px 20px; }
.modal-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin-bottom: 18px; }
.mm .mmk { font-size: 11.5px; color: var(--muted); }
.mm .mmv { font-size: 14px; font-weight: 600; margin-top: 1px; }
.ml-label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); font-weight: 600; margin-bottom: 8px; }
.ml-row { display: flex; align-items: center; gap: 11px; width: 100%; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); margin-bottom: 8px; transition: all .14s; }
.ml-row:hover { border-color: var(--ss-orange-2); background: var(--brand-tint); }
.ml-ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--soft); color: var(--ink-soft); flex-shrink: 0; }
.ml-t { font-size: 13.5px; font-weight: 600; } .ml-s { font-size: 12px; color: var(--muted); }
.ml-go { color: var(--faint); font-size: 16px; }
.modal-foot { display: flex; gap: 10px; padding: 14px 20px 18px; border-top: 1px solid var(--softer); }

/* ---- Charts: donut ---- */
.donut-panel { display: flex; align-items: center; gap: 20px; padding: 16px 18px; flex-wrap: wrap; }
.donut-wrap { position: relative; flex-shrink: 0; }
.donut-seg { transition: stroke-width .15s; }
.donut-wrap:hover .donut-seg { stroke-width: 22; }
.donut-center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.dc-v { font-size: 18px; font-weight: 700; letter-spacing: -.02em; } .dc-k { font-size: 10.5px; color: var(--muted); }
.chart-legend { display: flex; flex-direction: column; gap: 7px; flex: 1; min-width: 140px; }
.lgi { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.lgi .sw { width: 11px; height: 11px; border-radius: 3px; flex-shrink: 0; }
.lgi .lgl { flex: 1; color: var(--ink-soft); } .lgi .lgv { font-weight: 600; }

/* ---- Charts: columns ---- */
.col-chart { display: flex; align-items: flex-end; gap: 10px; height: 150px; padding: 0 4px; }
.col-item { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; }
.col-val { font-size: 11px; font-weight: 700; color: var(--ink-soft); margin-bottom: 4px; }
.col-bar-wrap { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.col-bar { width: 70%; max-width: 40px; border-radius: 6px 6px 0 0; min-height: 4px; transition: filter .15s; box-shadow: 0 2px 6px -2px rgba(20,17,15,.2); }
.col-bar:hover { filter: brightness(1.08); }
.col-label { font-size: 11px; color: var(--muted); margin-top: 7px; white-space: nowrap; }

/* ---- Filter bar ---- */
.filter-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; background: var(--surface); border: 1px solid var(--rule-strong); border-radius: 12px; padding: 10px 14px; box-shadow: var(--shadow-sm); }
.fb-label { font-size: 11.5px; font-weight: 600; color: var(--faint); text-transform: uppercase; letter-spacing: .05em; margin-right: 2px; }
.fb-sep { width: 1px; height: 20px; background: var(--rule); margin: 0 4px; }
.fchip { font-size: 12.5px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--rule-strong); background: var(--surface); color: var(--ink-soft); transition: all .14s; }
.fchip:hover { border-color: var(--ss-orange-2); color: var(--ss-orange-2); }
.fchip.on { background: linear-gradient(135deg, var(--ss-orange-1), var(--ss-orange-2)); border-color: transparent; color: #fff; font-weight: 600; }

/* ---- Financials layout + report chart ---- */
.fin-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; }
@media (max-width: 1080px) { .fin-grid { grid-template-columns: 1fr; } }
.tbl-cap { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 0; }
.tbl-cap h3 { margin: 0; font-size: 14px; }
.ai-report-chart { padding: 8px 16px 4px; border-bottom: 1px solid var(--softer); }
.ai-report-figs .fig { border-top: 2px solid var(--wc, var(--ss-orange-2)); }
.ai-report-figs .fv { color: var(--wc, var(--ink)); }
.crumb-link { background: none; border: none; color: var(--ss-orange-2); font-weight: 600; font-size: inherit; padding: 0; }
.crumb-link:hover { text-decoration: underline; }

/* task title clickable */
.task-row .task-t { cursor: pointer; }
.task-row .task-t:hover { color: var(--ss-orange-2); }
.task-row { cursor: default; }

/* ============================================================
   REPORTS — ANALYTICS STUDIO
   ============================================================ */
.report-kpis { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1200px) { .report-kpis { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) { .report-kpis { grid-template-columns: repeat(2, 1fr); } }

.analytics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 20px 0; align-items: start; }
.analytics-grid .span2 { grid-column: span 2; }
@media (max-width: 1200px) { .analytics-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .analytics-grid { grid-template-columns: 1fr; } .analytics-grid .span2 { grid-column: span 1; } }

.apanel .panel-head { justify-content: flex-start; gap: 9px; }
.apanel .panel-head h3, .report-studio .panel-head h3 { flex: 1; }
.ph-sub { font-size: 12px; color: var(--faint); white-space: nowrap; }
.chart-pad { padding: 14px 16px 8px; }

.ring-wrap { display: flex; align-items: center; gap: 22px; padding: 16px 18px; flex-wrap: wrap; justify-content: center; }
.ring-side { display: flex; flex-direction: column; gap: 10px; font-size: 13px; color: var(--ink-soft); min-width: 150px; }
.rs-row { display: flex; align-items: center; gap: 8px; }
.rs-row b { margin-left: auto; font-size: 14px; }
.rdot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

.barlist { display: flex; flex-direction: column; gap: 13px; }
.bl-row[data-act] { cursor: pointer; }
.bl-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; margin-bottom: 5px; gap: 10px; }
.bl-l { color: var(--ink-soft); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bl-v { font-weight: 700; flex-shrink: 0; }
.bl-track { height: 9px; background: var(--soft); border-radius: 999px; overflow: hidden; }
.bl-fill { display: block; height: 100%; border-radius: 999px; box-shadow: 0 1px 3px -1px rgba(20,17,15,.25); }
.bl-row[data-act]:hover .bl-l { color: var(--ss-orange-2); }

.report-studio { margin-top: 20px; }
.report-studio .panel-head { justify-content: flex-start; gap: 9px; flex-wrap: wrap; padding: 14px 18px; }
.report-tabs { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.rtab { font-size: 12.5px; padding: 6px 13px; border-radius: 8px; border: 1px solid var(--rule-strong); background: var(--surface); color: var(--ink-soft); transition: all .14s; }
.rtab:hover { border-color: var(--ss-orange-2); color: var(--ss-orange-2); }
.rtab.on { background: linear-gradient(135deg, var(--ss-orange-1), var(--ss-orange-2)); border-color: transparent; color: #fff; font-weight: 600; }
.report-studio #report-out .ai-report { border: none; box-shadow: none; max-width: 100%; }
.report-studio #report-out .ai-report-head { display: none; }

/* ============================================================
   CALENDAR — clickable days + day agenda panel
   ============================================================ */
.cal-layout { display: flex; gap: 18px; align-items: flex-start; }
.cal-layout .cal-grid { flex: 1; min-width: 0; }
.cal-cell { cursor: pointer; transition: box-shadow .12s, border-color .12s; }
.cal-cell:not(.empty):hover { border-color: var(--ss-orange-2); box-shadow: 0 0 0 2px var(--brand-soft); }
.cal-cell.empty { cursor: default; }
.cal-cell.selected { border: 2px solid var(--ss-orange-2); box-shadow: 0 0 0 3px var(--brand-soft); }
.cal-d { display: flex; align-items: center; justify-content: space-between; }
.cal-count { font-size: 10px; font-weight: 700; color: #fff; background: var(--ss-orange-2); border-radius: 999px; min-width: 16px; height: 16px; display: inline-grid; place-items: center; padding: 0 4px; }

.cal-day-panel { width: 340px; flex-shrink: 0; background: var(--surface); border: 1px solid var(--rule-strong); border-top: 3px solid var(--ss-orange-2); border-radius: var(--radius); box-shadow: var(--shadow-md); position: sticky; top: 79px; overflow: hidden; }
.cdp-head { display: flex; align-items: center; gap: 8px; padding: 12px 13px; border-bottom: 1px solid var(--rule); background: var(--brand-tint); }
.cdp-arrow { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--rule-strong); background: var(--surface); color: var(--ink-soft); flex-shrink: 0; font-size: 15px; line-height: 1; }
.cdp-arrow:hover { border-color: var(--ss-orange-2); color: var(--ss-orange-2); }
.cdp-date { flex: 1; text-align: center; min-width: 0; }
.cdp-d { font-size: 14px; font-weight: 700; }
.cdp-c { font-size: 11.5px; color: var(--muted); }
.cdp-x { width: 28px; height: 28px; border-radius: 8px; border: none; background: none; color: var(--muted); display: grid; place-items: center; flex-shrink: 0; }
.cdp-x:hover { background: var(--surface); color: var(--ink); }
.cdp-body { padding: 8px; max-height: 62vh; overflow-y: auto; }
.cdp-ev { display: flex; align-items: center; gap: 11px; padding: 10px 11px; border: 1px solid var(--rule); border-radius: 10px; margin-bottom: 8px; cursor: pointer; transition: border-color .14s, background .14s, transform .14s; }
.cdp-ev:last-child { margin-bottom: 0; }
.cdp-ev:hover { border-color: var(--ss-orange-2); background: var(--brand-tint); transform: translateX(2px); }
.cdp-ev-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; }
.cdp-ev-t { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cdp-ev-s { font-size: 11.5px; color: var(--muted); }
.cdp-ev-go { color: var(--faint); flex-shrink: 0; }

.mc-cell { cursor: pointer; }
.mc-cell.empty { cursor: default; }
.mc-cell:not(.empty):hover { background: var(--brand-tint); }

@media (max-width: 980px) { .cal-layout { flex-direction: column; } .cal-day-panel { width: 100%; position: static; } }

/* ============================================================
   CHART TOOLTIP (one shared, follows cursor)
   ============================================================ */
.chart-tip {
  position: fixed; z-index: 200; left: 0; top: 0;
  background: var(--ink); color: #fff; padding: 7px 11px; border-radius: 9px;
  font-size: 12px; font-weight: 500; line-height: 1.4; pointer-events: none;
  opacity: 0; transform: translateY(4px); transition: opacity .12s, transform .12s;
  box-shadow: var(--shadow-lg); white-space: nowrap; max-width: 260px;
}
.chart-tip.show { opacity: 1; transform: translateY(0); }
.chart-tip b { color: #fff; font-weight: 700; }
.chart-tip .tip-sw { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 7px; vertical-align: middle; }
/* hover affordance on chart elements */
.donut-seg, .col-bar { cursor: default; }
.col-bar:hover { filter: brightness(1.12); }
.donut-wrap:hover .donut-seg { opacity: .55; }
.donut-wrap .donut-seg:hover { opacity: 1; stroke-width: 24; }
.barlist .bl-row:hover .bl-fill { filter: brightness(1.08); }
.gap-row .bar:hover > span { filter: brightness(1.08); }
.gap-row[data-tip], .bar[data-tip] { cursor: default; }

/* ============================================================
   LOGIN GATE + 3-2-1 LAUNCH
   ============================================================ */
body.locked { overflow: hidden; }
body.locked .topbar, body.locked .shell { visibility: hidden; }

.gate { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: #0a0a0a; overflow: hidden; transition: opacity .42s ease; }
.gate.hide { opacity: 0; pointer-events: none; }
.gate-aurora { position: absolute; inset: -20%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(40vmax 40vmax at 78% 12%, rgba(247,144,45,.32), transparent 60%),
    radial-gradient(36vmax 36vmax at 18% 88%, rgba(242,106,43,.26), transparent 60%);
  animation: auroraA 18s ease-in-out infinite; }
.gate-card { position: relative; z-index: 1; width: 380px; max-width: 90vw; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 22px; padding: 40px 34px 30px; text-align: center; backdrop-filter: blur(14px); box-shadow: 0 30px 80px -30px rgba(0,0,0,.7); animation: fadeInUp .6s cubic-bezier(.2,.75,.25,1) both; }
.gate-logo { width: 56px; height: 56px; margin: 0 auto 18px; display: block; animation: logoGlow 5s ease-in-out infinite; }
.gate-word { font-family: 'Oswald','Arial Narrow',sans-serif; font-size: 34px; font-weight: 600; letter-spacing: .22em; color: #fff; padding-left: .22em; }
.gate-sub { font-size: 12.5px; color: #b9b4ae; letter-spacing: .04em; margin-top: 6px; }
#gate-form { display: flex; flex-direction: column; gap: 11px; margin-top: 28px; }
#gate-pw { width: 100%; padding: 13px 16px; font-size: 15px; text-align: center; letter-spacing: .04em; color: #fff; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); border-radius: 12px; transition: border-color .15s, box-shadow .15s; }
#gate-pw::placeholder { color: #8a857f; letter-spacing: 0; }
#gate-pw:focus { outline: none; border-color: var(--ss-orange-2); box-shadow: 0 0 0 4px rgba(242,106,43,.25); }
#gate-form .btn-primary { justify-content: center; padding: 12px; font-size: 14.5px; }
.gate-err { color: #ff9b8a; font-size: 12.5px; min-height: 16px; margin-top: 12px; }
.gate-foot { color: #6e6a65; font-size: 11px; margin-top: 18px; letter-spacing: .02em; }
.gate-card.shake { animation: shake .42s; }
@keyframes shake { 0%,100% { transform: translateX(0); } 20%,60% { transform: translateX(-9px); } 40%,80% { transform: translateX(9px); } }

.launch { position: fixed; inset: 0; z-index: 290; display: none; place-items: center; flex-direction: column; gap: 18px; background: radial-gradient(60vmax 60vmax at 50% 45%, #16100c, #0a0a0a 75%); transition: opacity .6s ease; text-align: center; }
.launch.show { display: grid; }
.launch.hide { opacity: 0; pointer-events: none; }
.launch-num { font-family: 'Oswald',sans-serif; font-size: clamp(90px, 22vw, 200px); font-weight: 700; line-height: 1; background: linear-gradient(135deg, var(--ss-orange-1), var(--ss-orange-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.launch-num.pop { animation: launchPop .7s cubic-bezier(.2,.9,.2,1); }
@keyframes launchPop { 0% { transform: scale(.3); opacity: 0; filter: blur(8px); } 55% { transform: scale(1.12); opacity: 1; filter: blur(0); } 100% { transform: scale(1); } }
.launch-tag { font-family: 'Oswald',sans-serif; font-size: clamp(16px, 3vw, 24px); letter-spacing: .12em; color: #fff; opacity: 0; animation: fadeIn .5s .15s forwards; }
.launch-num:empty + .launch-tag { display: none; }

@media (prefers-reduced-motion: reduce) {
  .gate-aurora, .gate-logo, .gate-card, .launch-num.pop, .launch-tag { animation: none !important; }
}
