/* ═══════════════════════════════════════════════════════════
   GRANTFLOW — Shared Design System
   All phase files link to this stylesheet.
   ═══════════════════════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
  --teal:       #0ABFBC;
  --teal2:      #077B79;
  --teal-bg:    #E6FAFA;
  --indigo:     #5C6EF8;
  --indigo2:    #3A4FD6;
  --indigo-bg:  #EEEFFE;
  --coral:      #FF6B6B;
  --coral-bg:   #FFF0F0;
  --amber:      #F59E0B;
  --amber2:     #D97706;
  --amber-bg:   #FFFBEB;
  --green:      #22C55E;
  --green2:     #16A34A;
  --green-bg:   #F0FDF4;
  --purple:     #8B5CF6;
  --purple2:    #7C3AED;
  --purple-bg:  #F5F3FF;
  --slate:      #1E293B;
  --slate2:     #334155;
  --slate3:     #64748B;
  --slate4:     #94A3B8;
  --slate5:     #CBD5E1;
  --bg:         #F8FAFC;
  --white:      #FFFFFF;
  --border:     #E2E8F0;
  --border2:    #F1F5F9;
  --sh1: 0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.04);
  --sh2: 0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
  --r:   14px;
  --r2:  8px;
  --r4:  999px;
  --font: 'Plus Jakarta Sans', sans-serif;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font); background: var(--bg); color: var(--slate); min-height: 100vh; font-size: 14px; line-height: 1.5; }
button, input, select, textarea { font-family: var(--font); }
a { text-decoration: none; }
svg { display: block; }

/* ── TOPNAV ── */
.topnav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: var(--sh1);
}
.logo { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.logo-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--teal), var(--indigo));
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.logo-icon svg { width: 20px; height: 20px; stroke: white; fill: none; stroke-width: 2; }
.logo-text { font-size: 17px; font-weight: 800; color: var(--slate); letter-spacing: -.3px; }
.logo-text span { color: var(--teal); }

.nav-center { display: flex; gap: 2px; flex: 1; justify-content: center; }
.npill {
  font-size: 12px; font-weight: 500; padding: 7px 12px;
  border-radius: var(--r4); cursor: pointer; border: none;
  background: transparent; color: var(--slate3);
  transition: all .2s; display: flex; align-items: center; gap: 5px; white-space: nowrap;
}
.npill:hover { background: var(--bg); color: var(--slate); }
.npill.active {
  background: linear-gradient(135deg, var(--teal-bg), var(--indigo-bg));
  color: var(--indigo2); font-weight: 700;
}
.npill svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; }

.nav-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.notif-btn {
  width: 36px; height: 36px; border-radius: var(--r2);
  background: var(--bg); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; position: relative;
}
.notif-btn svg { width: 17px; height: 17px; stroke: var(--slate3); fill: none; stroke-width: 2; }
.notif-dot {
  position: absolute; top: 7px; right: 7px;
  width: 8px; height: 8px; background: var(--coral);
  border-radius: 50%; border: 2px solid white;
}

/* ── AVATARS ── */
.av {
  width: 36px; height: 36px; border-radius: var(--r2);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; cursor: pointer; flex-shrink: 0; color: white;
}
.av-indigo  { background: linear-gradient(135deg, var(--indigo), var(--indigo2)); }
.av-teal    { background: linear-gradient(135deg, var(--teal), var(--teal2)); }
.av-purple  { background: linear-gradient(135deg, var(--purple), var(--purple2)); }
.av-amber   { background: linear-gradient(135deg, var(--amber), var(--amber2)); }
.av-green   { background: linear-gradient(135deg, var(--green), var(--green2)); }

/* ── LAYOUT ── */
.layout { display: flex; min-height: calc(100vh - 60px); }

/* ── SIDEBAR ── */
.sidebar {
  width: 215px; background: var(--white);
  border-right: 1px solid var(--border);
  padding: 12px; flex-shrink: 0;
}
.sb-sect {
  font-size: 10px; font-weight: 700; color: var(--slate4);
  text-transform: uppercase; letter-spacing: .08em;
  padding: 14px 8px 6px;
}
.sb-sect:first-child { padding-top: 4px; }
.sb-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: var(--r2);
  font-size: 13px; font-weight: 500; color: var(--slate3);
  cursor: pointer; transition: all .15s;
  border: none; background: transparent; width: 100%; text-align: left;
}
.sb-item:hover { background: var(--bg); color: var(--slate); }
.sb-item.active {
  background: linear-gradient(135deg, var(--teal-bg), var(--indigo-bg));
  color: var(--indigo2); font-weight: 700;
}
.sb-item svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; flex-shrink: 0; }
.sb-badge {
  margin-left: auto; font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: var(--r4);
  background: var(--coral); color: white;
}
.sb-badge.am { background: var(--amber); }

/* ── MAIN ── */
.main { flex: 1; padding: 24px; overflow-y: auto; min-width: 0; }
.phase-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, var(--teal-bg), var(--indigo-bg));
  color: var(--indigo2); border: 1px solid #C7D2FE;
  border-radius: var(--r4); padding: 4px 14px;
  font-size: 12px; font-weight: 700; margin-bottom: 16px; letter-spacing: .02em;
}
.pg-title { font-size: 22px; font-weight: 800; color: var(--slate); letter-spacing: -.4px; margin-bottom: 4px; }
.pg-sub   { font-size: 13px; color: var(--slate4); margin-bottom: 24px; font-weight: 500; }

/* ── ROLE SWITCHER ── */
.role-strip { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.role-card {
  flex: 1; min-width: 110px; padding: 14px 12px;
  border-radius: var(--r); border: 1.5px solid var(--border);
  background: var(--white); cursor: pointer;
  transition: all .2s; text-align: center; box-shadow: var(--sh1);
}
.role-card:hover { transform: translateY(-2px); box-shadow: var(--sh2); }
.role-card.active { border-color: transparent; color: white; transform: translateY(-2px); box-shadow: var(--sh2); }
.rc-admin.active    { background: linear-gradient(135deg, var(--indigo), var(--indigo2)); }
.rc-applicant.active{ background: linear-gradient(135deg, var(--teal), var(--teal2)); }
.rc-committee.active{ background: linear-gradient(135deg, var(--purple), var(--purple2)); }
.rc-finance.active  { background: linear-gradient(135deg, var(--amber), var(--amber2)); }
.rc-icon  { font-size: 22px; margin-bottom: 6px; }
.rc-label { font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.rc-sub   { font-size: 11px; margin-top: 2px; opacity: .7; }

/* ── STAT CARDS ── */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 24px; }
.stat {
  background: var(--white); border-radius: var(--r);
  padding: 16px 18px; border: 1px solid var(--border);
  box-shadow: var(--sh1); position: relative; overflow: hidden;
}
.stat::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.s-teal::before   { background: linear-gradient(90deg, var(--teal), #5CF8F6); }
.s-indigo::before { background: linear-gradient(90deg, var(--indigo), #A78BFA); }
.s-coral::before  { background: linear-gradient(90deg, var(--coral), var(--amber)); }
.s-green::before  { background: linear-gradient(90deg, var(--green), var(--teal)); }
.s-amber::before  { background: linear-gradient(90deg, var(--amber), var(--coral)); }
.stat-icon { width: 34px; height: 34px; border-radius: var(--r2); display: flex; align-items: center; justify-content: center; margin-bottom: 10px; font-size: 17px; }
.si-teal   { background: linear-gradient(135deg, var(--teal), var(--teal2)); }
.si-indigo { background: linear-gradient(135deg, var(--indigo), var(--indigo2)); }
.si-coral  { background: linear-gradient(135deg, var(--coral), #FF4444); }
.si-green  { background: linear-gradient(135deg, var(--green), var(--green2)); }
.si-amber  { background: linear-gradient(135deg, var(--amber), var(--amber2)); }
.stat-val { font-size: 24px; font-weight: 800; color: var(--slate); letter-spacing: -.5px; }
.stat-lbl { font-size: 10px; font-weight: 700; color: var(--slate4); margin-top: 2px; text-transform: uppercase; letter-spacing: .05em; }
.stat-sub { font-size: 11px; color: var(--slate4); margin-top: 5px; }

/* ── CARDS ── */
.card { background: var(--white); border-radius: var(--r); border: 1px solid var(--border); box-shadow: var(--sh1); margin-bottom: 14px; overflow: hidden; }
.card-hd { padding: 14px 18px 0; display: flex; align-items: center; justify-content: space-between; }
.card-title { font-size: 13px; font-weight: 700; color: var(--slate); display: flex; align-items: center; gap: 8px; }
.card-title svg { width: 15px; height: 15px; stroke: var(--slate4); fill: none; stroke-width: 2; }
.card-bd { padding: 10px 18px 16px; }

/* ── GRID HELPERS ── */
.two-col   { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.three-col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ── LIST ITEMS ── */
.litem { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border2); }
.litem:last-child { border-bottom: none; }
.li-icon { width: 32px; height: 32px; border-radius: var(--r2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 15px; }
.li-body { flex: 1; min-width: 0; }
.li-name { font-size: 13px; font-weight: 600; color: var(--slate); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li-sub  { font-size: 11px; color: var(--slate4); margin-top: 1px; font-weight: 500; }

/* ── STATUS PILLS ── */
.pill { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: var(--r4); white-space: nowrap; }
.p-review   { background: #FFF3E0; color: #E65100; }
.p-approved { background: var(--green-bg); color: #15803D; }
.p-query    { background: #FCE4EC; color: #C62828; }
.p-pending  { background: var(--indigo-bg); color: var(--indigo2); }
.p-active   { background: var(--teal-bg); color: var(--teal2); }
.p-closed   { background: #F1F5F9; color: var(--slate3); }
.p-overdue  { background: #FEF3C7; color: #92400E; }
.p-draft    { background: #F1F5F9; color: var(--slate3); }
.p-released { background: var(--green-bg); color: #15803D; }
.p-resolved { background: var(--green-bg); color: #15803D; }
.p-submitted{ background: var(--indigo-bg); color: var(--indigo2); }

/* ── PROGRESS BARS ── */
.pbar { background: #F1F5F9; border-radius: var(--r4); height: 6px; overflow: hidden; }
.pbar-fill { height: 6px; border-radius: var(--r4); transition: width .4s; }

/* ── BUTTONS ── */
.btn {
  font-size: 13px; font-weight: 600; padding: 8px 16px; border-radius: var(--r2);
  cursor: pointer; border: none; font-family: var(--font);
  transition: all .2s; display: inline-flex; align-items: center; gap: 6px; line-height: 1;
}
.btn svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; flex-shrink: 0; }
.btn-primary { background: linear-gradient(135deg, var(--indigo), var(--indigo2)); color: white; box-shadow: 0 2px 8px rgba(92,110,248,.3); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(92,110,248,.4); }
.btn-teal    { background: linear-gradient(135deg, var(--teal), var(--teal2)); color: white; box-shadow: 0 2px 8px rgba(10,191,188,.3); }
.btn-teal:hover { transform: translateY(-1px); }
.btn-ghost   { background: var(--bg); border: 1px solid var(--border); color: var(--slate3); }
.btn-ghost:hover { background: var(--border2); color: var(--slate); }
.btn-success { background: var(--green-bg); color: #15803D; border: 1px solid #BBF7D0; }
.btn-success:hover { background: #DCFCE7; }
.btn-warn    { background: var(--amber-bg); border: 1px solid #FDE68A; color: #92400E; }
.btn-warn:hover { background: #FEF3C7; }
.btn-danger  { background: var(--coral-bg); border: 1px solid #FECACA; color: #991B1B; }
.btn-purple  { background: linear-gradient(135deg, var(--purple), var(--purple2)); color: white; box-shadow: 0 2px 8px rgba(139,92,246,.3); }
.btn-purple:hover { transform: translateY(-1px); }
.btn-sm   { font-size: 12px; padding: 6px 12px; }
.btn-xs   { font-size: 11px; padding: 4px 9px; }
.btn-full { width: 100%; justify-content: center; }

/* ── FORMS ── */
.fg { margin-bottom: 12px; }
.flabel {
  font-size: 11px; font-weight: 700; color: var(--slate3);
  margin-bottom: 5px; display: block;
  text-transform: uppercase; letter-spacing: .05em;
}
.fg input, .fg select, .fg textarea {
  width: 100%; font-size: 13px; font-weight: 500;
  padding: 8px 11px; border: 1.5px solid var(--border);
  border-radius: var(--r2); background: var(--white);
  color: var(--slate); font-family: var(--font);
  transition: border-color .2s; outline: none;
}
.fg input:focus, .fg select:focus, .fg textarea:focus { border-color: var(--indigo); }
.fg textarea { resize: vertical; min-height: 70px; line-height: 1.6; }
.fgrid  { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fgrid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }

/* ── ALERTS ── */
.alert {
  border-radius: var(--r); padding: 12px 14px;
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 12px; border: 1px solid;
}
.alert svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 2; }
.alert p { font-size: 13px; font-weight: 500; line-height: 1.5; flex: 1; }
.a-coral  { background: var(--coral-bg); border-color: #FECACA; color: #991B1B; }
.a-amber  { background: var(--amber-bg); border-color: #FDE68A; color: #92400E; }
.a-green  { background: var(--green-bg); border-color: #BBF7D0; color: #15803D; }
.a-indigo { background: var(--indigo-bg); border-color: #C7D2FE; color: var(--indigo2); }

/* ── CONFIRM BARS (hidden by default) ── */
.confirm {
  border-radius: var(--r); padding: 12px 14px;
  display: none; align-items: center; gap: 10px;
  margin-top: 10px; border: 1px solid;
}
.confirm.show { display: flex; }
.confirm svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; flex-shrink: 0; }
.confirm p { font-size: 13px; font-weight: 600; flex: 1; }
.c-green { background: var(--green-bg); border-color: #BBF7D0; color: #15803D; }
.c-amber { background: var(--amber-bg); border-color: #FDE68A; color: #92400E; }

/* ── TIMELINE ── */
.tl-item { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border2); align-items: flex-start; }
.tl-item:last-child { border-bottom: none; }
.tl-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
.tl-text { font-size: 13px; font-weight: 500; color: var(--slate); }
.tl-time { font-size: 11px; color: var(--slate4); margin-top: 2px; font-weight: 500; }

/* ── UPLOAD BOX ── */
.upload-box {
  border: 2px dashed var(--border); border-radius: var(--r);
  padding: 18px; text-align: center; cursor: pointer;
  background: var(--bg); transition: all .2s;
}
.upload-box:hover { border-color: var(--indigo); background: var(--indigo-bg); }
.upload-box p    { font-size: 13px; color: var(--slate3); margin-top: 5px; font-weight: 500; }
.upload-box span { font-size: 11px; color: var(--slate4); }
.file-chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--green-bg); border: 1px solid #BBF7D0;
  border-radius: var(--r2); padding: 3px 8px;
  font-size: 11px; color: #15803D; margin: 3px; font-weight: 600;
}

/* ── MINI STAT ── */
.mini-stat { border-radius: var(--r2); padding: 10px 12px; }
.mini-stat .ms-lbl { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 3px; opacity: .8; }
.mini-stat .ms-val { font-size: 17px; font-weight: 800; }

/* ── AI PANEL ── */
.ai-panel { background: var(--purple-bg); border: 1px solid #DDD6FE; border-radius: var(--r); padding: 16px; margin-bottom: 14px; }
.ai-hd    { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ai-logo  { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--purple), var(--purple2)); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.ai-title { font-size: 14px; font-weight: 700; color: var(--purple2); }
.ai-sub   { font-size: 12px; color: var(--purple); margin-top: 1px; font-weight: 500; }
.ai-output { background: white; border: 1px solid #DDD6FE; border-radius: var(--r2); padding: 14px; font-size: 13px; color: var(--slate); line-height: 1.8; display: none; }
.ai-output p { margin-bottom: 10px; }
.ai-output p:last-child { margin-bottom: 0; }
.ai-loading { display: none; align-items: center; gap: 10px; padding: 10px 0; font-size: 13px; color: var(--purple); font-weight: 500; }
.ai-actions { display: none; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

/* dot pulse */
.dp span { width: 6px; height: 6px; border-radius: 50%; background: var(--purple); display: inline-block; animation: pulse 1.2s ease-in-out infinite; margin-right: 3px; }
.dp span:nth-child(2) { animation-delay: .2s; }
.dp span:nth-child(3) { animation-delay: .4s; }
@keyframes pulse { 0%,80%,100%{opacity:.2} 40%{opacity:1} }

/* ── SCORING DOTS ── */
.crit-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border2); }
.crit-row:last-child { border-bottom: none; }
.crit-label { flex: 1; font-size: 13px; font-weight: 500; color: var(--slate); }
.dot-row { display: flex; gap: 3px; }
.dot-btn {
  width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--border);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: var(--slate4);
  background: var(--bg); transition: all .2s; font-family: var(--font);
}
.dot-btn:hover { background: var(--indigo-bg); color: var(--indigo2); border-color: #C7D2FE; }
.dot-btn.sel   { background: linear-gradient(135deg, var(--indigo), var(--indigo2)); color: white; border-color: transparent; }

/* ── REPORT SCORE STRIP ── */
.score-strip { display: flex; gap: 5px; }
.score-btn {
  flex: 1; padding: 7px 4px; font-size: 11px; font-weight: 700;
  border: 1.5px solid var(--border); border-radius: var(--r2);
  cursor: pointer; background: var(--bg); color: var(--slate3);
  text-align: center; font-family: var(--font); transition: all .2s;
}
.score-btn:hover { background: var(--indigo-bg); color: var(--indigo2); border-color: #C7D2FE; }
.score-btn.sel   { background: linear-gradient(135deg, var(--indigo), var(--indigo2)); color: white; border-color: transparent; }

/* ── STEPPER ── */
.stepper { display: flex; align-items: center; margin-bottom: 22px; overflow-x: auto; }
.step-item { display: flex; flex-direction: column; align-items: center; }
.step-node { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.sn-done   { background: var(--green-bg); color: #15803D; border: 2px solid #BBF7D0; }
.sn-active { background: linear-gradient(135deg, var(--indigo), var(--indigo2)); color: white; }
.sn-todo   { background: #F1F5F9; color: var(--slate4); border: 2px solid var(--border); }
.step-label { font-size: 10px; font-weight: 700; margin-top: 4px; white-space: nowrap; }
.sl-done   { color: #15803D; }
.sl-active { color: var(--indigo2); }
.sl-todo   { color: var(--slate4); }
.step-line { flex: 1; height: 2px; background: var(--border); margin: 0 4px; margin-bottom: 16px; min-width: 16px; }
.step-line.done { background: var(--green); }

/* ── LIFECYCLE BAR ── */
.lifecycle { display: flex; align-items: center; margin-bottom: 18px; overflow-x: auto; padding-bottom: 4px; gap: 0; }
.lc-node { padding: 5px 11px; border-radius: var(--r4); font-size: 11px; font-weight: 700; white-space: nowrap; letter-spacing: .02em; }
.lc-done   { background: var(--green-bg); color: #15803D; border: 1.5px solid #BBF7D0; }
.lc-active { background: linear-gradient(135deg, var(--indigo), var(--indigo2)); color: white; box-shadow: 0 2px 8px rgba(92,110,248,.3); }
.lc-todo   { background: #F1F5F9; color: var(--slate4); border: 1.5px solid var(--border); }
.lc-line   { width: 18px; height: 2px; background: var(--border); flex-shrink: 0; }
.lc-line.done { background: var(--green); }

/* ── TRANCHE CARDS ── */
.tranche { border: 1.5px solid var(--border); border-radius: var(--r); padding: 14px; margin-bottom: 12px; background: var(--white); }
.tranche.ready  { border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(92,110,248,.08); }
.tranche.done-tr{ opacity: .72; }
.tr-top  { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 10px; gap: 10px; }
.tr-name { font-size: 13px; font-weight: 700; color: var(--slate); }
.tr-meta { font-size: 11px; color: var(--slate4); margin-top: 2px; font-weight: 500; }
.tr-amt  { font-size: 18px; font-weight: 800; color: var(--slate); text-align: right; }

/* ── CHECKLIST ── */
.check-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border2); cursor: pointer; }
.check-row:last-child { border-bottom: none; }
.check-box { width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all .2s; }
.check-box.done { background: linear-gradient(135deg, var(--green), var(--green2)); border-color: transparent; }
.check-box svg { width: 11px; height: 11px; stroke: white; fill: none; stroke-width: 3; display: none; }
.check-box.done svg { display: block; }
.check-lbl { flex: 1; font-size: 13px; font-weight: 500; color: var(--slate); }
.check-st  { font-size: 11px; font-weight: 700; }

/* ── CLOSURE STEPS ── */
.cl-step { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border2); }
.cl-step:last-child { border-bottom: none; }
.cl-num { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; flex-shrink: 0; }
.cl-done-n   { background: var(--green-bg); color: #15803D; border: 2px solid #BBF7D0; }
.cl-active-n { background: linear-gradient(135deg, var(--indigo), var(--indigo2)); color: white; }
.cl-todo-n   { background: #F1F5F9; color: var(--slate4); border: 2px solid var(--border); }
.cl-title { font-size: 13px; font-weight: 700; color: var(--slate); }
.cl-sub   { font-size: 11px; color: var(--slate4); margin-top: 2px; font-weight: 500; }

/* ── AUDIT TRAIL ── */
.audit-item { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border2); align-items: flex-start; }
.audit-item:last-child { border-bottom: none; }
.audit-icon { width: 32px; height: 32px; border-radius: var(--r2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 15px; }
.audit-action { font-size: 13px; font-weight: 700; color: var(--slate); }
.audit-detail { font-size: 12px; color: var(--slate4); margin-top: 2px; font-weight: 500; line-height: 1.5; }
.audit-time   { font-size: 11px; color: var(--slate4); margin-top: 3px; font-weight: 600; }

/* ── QUERY THREADS ── */
.thread-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--r); padding: 12px; cursor: pointer; transition: all .2s; margin-bottom: 8px; }
.thread-card:hover { border-color: var(--slate5); box-shadow: var(--sh1); }
.thread-card.sel   { border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(92,110,248,.08); }
.thread-proj { font-size: 13px; font-weight: 700; color: var(--slate); }
.thread-q    { font-size: 12px; color: var(--slate3); margin-top: 2px; }
.thread-preview { font-size: 12px; color: var(--slate4); margin-top: 7px; padding-top: 7px; border-top: 1px solid var(--border2); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.thread-foot { display: flex; align-items: center; gap: 6px; margin-top: 7px; font-size: 11px; color: var(--slate4); font-weight: 500; }

/* ── CONVO PANEL ── */
.convo-panel { background: var(--white); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.convo-hd   { padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--bg); }
.convo-proj { font-size: 14px; font-weight: 700; color: var(--slate); }
.convo-q    { font-size: 12px; color: var(--slate3); margin-top: 2px; }
.convo-meta { display: flex; align-items: center; gap: 8px; margin-top: 7px; flex-wrap: wrap; }
.messages   { padding: 14px 16px; min-height: 240px; display: flex; flex-direction: column; gap: 12px; }
.msg        { display: flex; gap: 10px; align-items: flex-start; }
.msg.right  { flex-direction: row-reverse; }
.msg-av     { width: 28px; height: 28px; border-radius: var(--r2); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; flex-shrink: 0; color: white; }
.bubble     { max-width: 85%; padding: 9px 12px; border-radius: var(--r); font-size: 13px; line-height: 1.6; border: 1px solid; }
.bubble.committee { background: var(--indigo-bg); border-color: #C7D2FE; color: var(--indigo2); }
.bubble.applicant  { background: var(--green-bg); border-color: #BBF7D0; color: #15803D; }
.bubble.admin      { background: var(--purple-bg); border-color: #DDD6FE; color: var(--purple2); }
.bubble.system     { background: var(--bg); border-color: var(--border); color: var(--slate3); font-size: 12px; font-style: italic; }
.msg-name   { font-size: 11px; color: var(--slate4); margin-bottom: 3px; font-weight: 600; }
.msg-time   { font-size: 10px; color: var(--slate4); margin-top: 4px; font-weight: 500; }
.attach-chip { display: inline-flex; align-items: center; gap: 4px; background: white; border: 1px solid var(--border); border-radius: var(--r2); padding: 2px 7px; font-size: 11px; color: var(--slate3); margin-top: 5px; cursor: pointer; font-weight: 500; }
.reply-box  { border-top: 1px solid var(--border); padding: 12px 16px; background: var(--bg); }
.reply-box textarea { width: 100%; font-size: 13px; font-weight: 500; padding: 8px 11px; border: 1.5px solid var(--border); border-radius: var(--r2); background: white; color: var(--slate); font-family: var(--font); resize: none; min-height: 56px; outline: none; }
.reply-box textarea:focus { border-color: var(--indigo); }
.reply-actions { display: flex; align-items: center; gap: 8px; margin-top: 8px; }

/* ── METRICS (progress report) ── */
.metric-row { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--border2); }
.metric-row:last-child { border-bottom: none; }
.metric-lbl { flex: 1; font-size: 13px; font-weight: 500; color: var(--slate); }
.metric-tgt { font-size: 11px; color: var(--slate4); width: 52px; text-align: right; font-weight: 500; }
.metric-inp { width: 64px; font-size: 13px; font-weight: 600; padding: 5px 8px; border: 1.5px solid var(--border); border-radius: var(--r2); text-align: right; font-family: var(--font); outline: none; color: var(--slate); }
.metric-inp:focus { border-color: var(--indigo); }
.metric-pct { font-size: 12px; font-weight: 700; width: 38px; text-align: right; }

/* ── RESPONSIVE ── */
@media(max-width: 768px) {
  .sidebar { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .two-col, .three-col { grid-template-columns: 1fr; }
  .fgrid, .fgrid3 { grid-template-columns: 1fr; }
  .main { padding: 14px 10px; }
  .pg-title { font-size: 18px; }
}
@media(max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
  .role-strip { gap: 6px; }
  .role-card  { min-width: 70px; padding: 10px 6px; }
  .rc-sub     { display: none; }
  .nav-center .npill { font-size: 11px; padding: 6px 8px; }
}

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.anim-1 { animation: fadeUp .25s ease both; }
.anim-2 { animation: fadeUp .25s ease .06s both; }
.anim-3 { animation: fadeUp .25s ease .12s both; }
.anim-4 { animation: fadeUp .25s ease .18s both; }
