/* ============================================================================
   ACCESS Development Services - Fund Management & M&E Portal
   Prototype design system  -  built by Awesome Analytics
   Theme anchor: ICC blue #0091FE (client-requested)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Brand */
  --blue:        #0091FE;   /* ICC blue */
  --blue-600:    #007FE0;
  --blue-700:    #0067C0;
  --blue-050:    #E8F5FF;
  --blue-100:    #D2ECFF;

  /* Ink / neutrals (cool) */
  --ink:         #0D1B2A;
  --ink-2:       #2B3A4B;
  --muted:       #5C6B7A;
  --muted-2:     #8A98A6;
  --line:        #E4E9EF;
  --line-2:      #EEF2F6;
  --bg:          #F4F7FB;
  --card:        #FFFFFF;

  /* Sidebar (deep navy command-centre) */
  --nav-top:     #0C1E33;
  --nav-bot:     #0A1726;
  --nav-text:    #AEBED0;
  --nav-text-2:  #7E91A8;
  --nav-active:  #122B47;

  /* Status / data palette */
  --green:       #1E9E6A;
  --green-bg:    #E5F6EE;
  --amber:       #E0902A;
  --amber-bg:    #FCF1DF;
  --red:         #DB4B57;
  --red-bg:      #FBE9EA;
  --violet:      #6C5CE0;
  --violet-bg:   #ECEAFB;
  --teal:        #1AA6B7;
  --teal-bg:     #E2F5F7;

  /* Categorical chart palette - use these (in order) for any multi-series chart/legend */
  --c1: #0091FE;  /* blue   */
  --c2: #1AA6B7;  /* teal   */
  --c3: #6C5CE0;  /* violet */
  --c4: #E0902A;  /* amber  */
  --c5: #1E9E6A;  /* green  */
  --c6: #E0567A;  /* rose   */
  --grid: #EDF1F6; /* chart gridlines */

  /* Radii & shadow */
  --r-sm: 8px;
  --r:    12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --shadow-sm: 0 1px 2px rgba(13,27,42,.06), 0 1px 3px rgba(13,27,42,.05);
  --shadow:    0 2px 8px rgba(13,27,42,.06), 0 8px 24px rgba(13,27,42,.06);
  --shadow-lg: 0 12px 40px rgba(13,27,42,.12);

  --sidebar-w: 260px;
  --topbar-h: 64px;

  --font: 'Hanken Grotesk', 'Arial Nova', Arial, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'Consolas', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--blue-100); }

/* tabular numbers everywhere it matters */
.num, .mono, td.num, .stat-value, .kpi-value { font-variant-numeric: tabular-nums; }

/* default icon size - inline svgs from svg() have no intrinsic size and rely on CSS.
   This is a safe floor; chart svgs (.map-svg/.sparkline) and component rules (.btn svg,
   .stat-ico svg, etc.) carry higher specificity and override this. Prevents stray icons
   from ballooning when placed in a container without its own svg sizing rule. */
svg { width: 16px; height: 16px; flex: 0 0 auto; }

/* scrollbar */
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: #C7D2DE; border-radius: 20px; border: 2px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-thumb:hover { background: #AEBCCB; background-clip: content-box; }

/* ============================================================================
   APP SHELL
   ========================================================================== */
.app { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  background: linear-gradient(180deg, var(--nav-top), var(--nav-bot));
  color: var(--nav-text);
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  overflow-y: auto;
  z-index: 30;
}
.sidebar::-webkit-scrollbar-thumb { background: #24405d; background-clip: content-box; }

.brand {
  display: flex; align-items: center; gap: 11px;
  padding: 18px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), #00C2FF);
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 17px;
  box-shadow: 0 6px 16px rgba(0,145,254,.4);
  flex: 0 0 auto;
}
.brand-name { color: #fff; font-weight: 700; font-size: 15px; letter-spacing: -.2px; line-height: 1.15; }
.brand-sub  { color: var(--nav-text-2); font-size: 11px; font-weight: 500; }

.nav { padding: 12px 12px 24px; flex: 1; }
.nav-group-label {
  color: var(--nav-text-2);
  font-size: 10.5px; font-weight: 700; letter-spacing: .9px; text-transform: uppercase;
  padding: 16px 12px 7px;
}
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 12px; margin: 1px 0;
  border-radius: 9px;
  color: var(--nav-text); font-weight: 500; font-size: 13.5px;
  position: relative;
  transition: background .14s, color .14s;
}
.nav-item svg { width: 17px; height: 17px; flex: 0 0 auto; opacity: .85; }
.nav-item:hover { background: rgba(255,255,255,.05); color: #fff; }
.nav-item.active { background: var(--nav-active); color: #fff; }
.nav-item.active::before {
  content: ''; position: absolute; left: -12px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 22px; border-radius: 0 3px 3px 0; background: var(--blue);
}
.nav-item.active svg { opacity: 1; color: var(--blue); }
.nav-badge {
  margin-left: auto; background: var(--blue); color: #fff;
  font-size: 10.5px; font-weight: 700; min-width: 18px; height: 18px;
  border-radius: 9px; display: grid; place-items: center; padding: 0 5px;
}

.nav-foot {
  padding: 12px 16px; border-top: 1px solid rgba(255,255,255,.07);
  font-size: 11px; color: var(--nav-text-2);
}
.nav-foot b { color: var(--nav-text); font-weight: 600; }

/* main column */
.main {
  flex: 1; min-width: 0; display: flex; flex-direction: column;
  background-color: var(--bg);
  /* ownership watermark - tiled, faint "Awesome Analytics" behind the content */
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='200'><text x='8' y='150' transform='rotate(-26 8 150)' font-family='Hanken Grotesk,Arial,Helvetica,sans-serif' font-size='17' font-weight='700' letter-spacing='0.4' fill='%230D2A4A' fill-opacity='0.06'>Awesome Analytics</text></svg>");
  background-repeat: repeat;
}

.topbar {
  height: var(--topbar-h); flex: 0 0 var(--topbar-h);
  background: rgba(255,255,255,.85); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 16px;
  padding: 0 26px; position: sticky; top: 0; z-index: 20;
}
.crumb { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.crumb b { color: var(--ink); font-weight: 700; }
.crumb svg { width: 14px; height: 14px; opacity: .5; }

.topbar-spacer { flex: 1; }

.searchbar {
  display: flex; align-items: center; gap: 9px;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 9px; padding: 8px 13px; width: 280px; color: var(--muted);
}
.searchbar svg { width: 16px; height: 16px; }
.searchbar input { border: none; background: transparent; outline: none; font-size: 13px; color: var(--ink); width: 100%; }

.icon-btn {
  width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--line);
  background: #fff; display: grid; place-items: center; color: var(--muted-2);
  position: relative; transition: .14s;
}
.icon-btn:hover { color: var(--ink); border-color: #D4DCE5; }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .dot { position: absolute; top: 8px; right: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--red); border: 1.5px solid #fff; }

.avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, #0067C0, #00C2FF);
  color: #fff; font-weight: 700; font-size: 13px;
  display: grid; place-items: center; flex: 0 0 auto;
}
.user-chip { display: flex; align-items: center; gap: 10px; padding-left: 6px; }
.user-chip .u-name { font-size: 13px; font-weight: 600; line-height: 1.1; }
.user-chip .u-role { font-size: 11px; color: var(--muted); }

/* content area */
.content { padding: 26px 30px 60px; flex: 1; max-width: 1500px; width: 100%; margin: 0 auto; }

/* page header */
.page-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-title { font-size: 23px; font-weight: 800; letter-spacing: -.5px; color: var(--ink); }
.page-sub { color: var(--muted); font-size: 13.5px; margin-top: 3px; max-width: 720px; }
.page-head .spacer { flex: 1; }
.head-actions { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }

/* ============================================================================
   BUTTONS / BADGES / CHIPS
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  padding: 9px 14px; border-radius: 9px; font-size: 13px; font-weight: 600;
  transition: .14s; white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn:hover { border-color: #CBD5E0; background: #fafbfc; }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 4px 12px rgba(0,145,254,.28); }
.btn-primary:hover { background: var(--blue-600); border-color: var(--blue-600); }
.btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-dark:hover { background: #16293c; }
.btn-ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--line-2); color: var(--ink); }
.btn-sm { padding: 6px 10px; font-size: 12px; border-radius: 8px; }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 20px;
  background: var(--line-2); color: var(--muted);
  white-space: nowrap;
}
.badge .b-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.green  { background: var(--green-bg); color: #167a51; }
.badge.amber  { background: var(--amber-bg); color: #a9681a; }
.badge.red    { background: var(--red-bg); color: #b73843; }
.badge.blue   { background: var(--blue-050); color: var(--blue-700); }
.badge.violet { background: var(--violet-bg); color: #4f43b0; }
.badge.teal   { background: var(--teal-bg); color: #138090; }
.badge.ink    { background: #E9EDF2; color: var(--ink-2); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid var(--line); color: var(--ink-2);
  border-radius: 20px; padding: 6px 12px; font-size: 12.5px; font-weight: 600;
}
.chip svg { width: 14px; height: 14px; opacity: .6; }
.chip.active { background: var(--blue-050); border-color: var(--blue-100); color: var(--blue-700); }
.chip.add { border-style: dashed; color: var(--muted); }

.tag { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: var(--blue-050); color: var(--blue-700); }

/* ============================================================================
   CARDS
   ========================================================================== */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.card-pad { padding: 20px 22px; }
.card-head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; border-bottom: 1px solid var(--line-2);
}
.card-head h3 { font-size: 15px; font-weight: 700; letter-spacing: -.2px; }
.card-head .sub { font-size: 12px; color: var(--muted); font-weight: 500; }
.card-head .spacer { flex: 1; }
.card-body { padding: 18px 20px; }

.section-title { font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--muted-2); margin-bottom: 12px; }

/* grids */
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 1180px){ .g4,.g6 { grid-template-columns: repeat(3, 1fr); } .g3{grid-template-columns:repeat(2,1fr);} }
@media (max-width: 820px){ .g2,.g3,.g4,.g6 { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================================
   STAT / KPI CARDS
   ========================================================================== */
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px 17px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.stat .stat-top { display: flex; align-items: center; gap: 9px; margin-bottom: 11px; }
.stat .stat-ico {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: var(--blue-050); color: var(--blue);
}
.stat .stat-ico svg { width: 18px; height: 18px; }
.stat .stat-label { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.stat .stat-value { font-size: 27px; font-weight: 800; letter-spacing: -1px; color: var(--ink); line-height: 1; }
.stat .stat-foot { margin-top: 8px; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.trend { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; font-size: 12px; }
.trend svg { width: 13px; height: 13px; }
.trend.up { color: var(--green); }
.trend.down { color: var(--red); }
.stat.accent::after { content:''; position:absolute; right:-20px; top:-20px; width:90px; height:90px; border-radius:50%; background: var(--blue-050); opacity:.5; }

/* coloured stat variants */
.stat.s-green .stat-ico { background: var(--green-bg); color: var(--green); }
.stat.s-amber .stat-ico { background: var(--amber-bg); color: var(--amber); }
.stat.s-violet .stat-ico { background: var(--violet-bg); color: var(--violet); }
.stat.s-teal .stat-ico { background: var(--teal-bg); color: var(--teal); }
.stat.s-red .stat-ico { background: var(--red-bg); color: var(--red); }

/* ============================================================================
   TABLES
   ========================================================================== */
.table-wrap { overflow-x: auto; border-radius: var(--r); }
table.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table thead th {
  text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  color: var(--muted-2); padding: 11px 16px; border-bottom: 1px solid var(--line);
  background: #FBFCFE; white-space: nowrap; position: sticky; top: 0;
}
.table tbody td { padding: 13px 16px; border-bottom: 1px solid var(--line-2); color: var(--ink-2); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: #F8FAFC; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table .strong { font-weight: 700; color: var(--ink); }
.table .t-main { font-weight: 600; color: var(--ink); }
.table .t-sub { font-size: 11.5px; color: var(--muted); }
.table-foot td { background: #FBFCFE; font-weight: 700; color: var(--ink); border-top: 2px solid var(--line); }

.cell-ent { display: flex; align-items: center; gap: 11px; }
.ent-logo {
  width: 34px; height: 34px; border-radius: 8px; flex: 0 0 auto;
  display: grid; place-items: center; font-weight: 700; font-size: 12px; color: #fff;
}

/* ============================================================================
   PROGRESS / METER
   ========================================================================== */
.progress { height: 7px; background: var(--line-2); border-radius: 20px; overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 20px; background: var(--blue); }
.progress.green > span { background: var(--green); }
.progress.amber > span { background: var(--amber); }
.progress.red > span { background: var(--red); }
.progress-row { display: flex; align-items: center; gap: 10px; }
.progress-row .progress { flex: 1; }
.progress-row .pct { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; min-width: 42px; text-align: right; }

.meter-lg { height: 10px; }

/* ============================================================================
   TABS / PILLS
   ========================================================================== */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tab {
  appearance: none; background: transparent; border: none; outline: none; cursor: pointer;
  display: inline-flex; align-items: center;
  padding: 11px 14px; font-family: inherit; font-size: 13.5px; font-weight: 600; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: color .14s, border-color .14s, background .14s;
  border-radius: 8px 8px 0 0;
}
.tab:hover { color: var(--ink); background: var(--line-2); }
.tab.active { color: var(--blue); border-bottom-color: var(--blue); background: transparent; }
.tab .cnt { font-size: 11px; background: var(--line-2); color: var(--muted); padding: 1px 7px; border-radius: 10px; margin-left: 6px; font-weight: 700; }
.tab.active .cnt { background: var(--blue-050); color: var(--blue-700); }

.pill-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  padding: 7px 13px; border-radius: 20px; font-size: 12.5px; font-weight: 600;
  background: #fff; border: 1px solid var(--line); color: var(--muted);
}
.pill.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ============================================================================
   FORMS
   ========================================================================== */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field label .req { color: var(--red); margin-left: 2px; }
.field .hint { font-size: 11.5px; color: var(--muted); margin-top: 5px; }
.input, .select, textarea.input {
  width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px;
  font-size: 13.5px; font-family: inherit; color: var(--ink); background: #fff; transition: .14s; outline: none;
}
.input:focus, .select:focus, textarea.input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-050); }
.input::placeholder { color: var(--muted-2); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238A98A6' stroke-width='2.2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; padding-right: 34px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 760px){ .form-grid { grid-template-columns: 1fr; } }

.upload {
  border: 1.5px dashed var(--line); border-radius: var(--r); padding: 22px; text-align: center;
  color: var(--muted); background: #FBFCFE; transition: .14s;
}
.upload:hover { border-color: var(--blue); background: var(--blue-050); }
.upload svg { width: 26px; height: 26px; color: var(--blue); margin-bottom: 8px; }
.upload b { color: var(--ink-2); }

.switch { width: 38px; height: 22px; border-radius: 20px; background: var(--line); position: relative; display: inline-block; flex: 0 0 auto; transition: .15s; }
.switch::after { content:''; position:absolute; top:2px; left:2px; width:18px; height:18px; border-radius:50%; background:#fff; box-shadow: var(--shadow-sm); transition: .15s; }
.switch.on { background: var(--blue); }
.switch.on::after { left: 18px; }

/* ============================================================================
   STEPS / WIZARD / TIMELINE
   ========================================================================== */
.steps { display: flex; align-items: center; gap: 0; margin-bottom: 24px; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.step .s-num { width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 1.5px solid var(--line); display: grid; place-items: center; font-weight: 700; font-size: 12.5px; color: var(--muted-2); }
.step .s-lbl { font-size: 13px; font-weight: 600; }
.step.done .s-num { background: var(--green); border-color: var(--green); color: #fff; }
.step.active .s-num { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 0 0 4px var(--blue-050); }
.step.active .s-lbl { color: var(--ink); }
.step-line { width: 38px; height: 2px; background: var(--line); margin: 0 12px; }
.step-line.done { background: var(--green); }

/* approval / audit timeline */
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content:''; position:absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 18px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot { position: absolute; left: -26px; top: 1px; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--line); display: grid; place-items: center; }
.tl-dot.green { border-color: var(--green); background: var(--green); }
.tl-dot.blue { border-color: var(--blue); background: var(--blue); }
.tl-dot.amber { border-color: var(--amber); background: var(--amber); }
.tl-dot.red { border-color: var(--red); background: var(--red); }
.tl-dot svg { width: 10px; height: 10px; color: #fff; }
.tl-title { font-size: 13px; font-weight: 600; color: var(--ink); }
.tl-meta { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

/* ============================================================================
   MISC
   ========================================================================== */
.divider { height: 1px; background: var(--line-2); margin: 18px 0; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.kv:last-child { border-bottom: none; }
.kv .k { color: var(--muted); }
.kv .v { font-weight: 600; color: var(--ink); text-align: right; }
/* stacked (label-over-value) variant - keeps value left-aligned under its label */
.kv.stack, .kv[style*="column"] { flex-direction: column; align-items: flex-start; gap: 3px; border-bottom: none; padding: 0; }
.kv.stack .v, .kv[style*="column"] .v { text-align: left; }
.kv.stack .k, .kv[style*="column"] .k { text-align: left; }

/* facts grid - clean label-over-value blocks for profile headers */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 20px; }
.facts .fact .fl { font-size: 11.5px; color: var(--muted); font-weight: 600; margin-bottom: 3px; }
.facts .fact .fv { font-size: 13.5px; font-weight: 600; color: var(--ink); }
@media (max-width: 900px){ .facts { grid-template-columns: repeat(2, 1fr); } }

.note {
  display: flex; gap: 11px; padding: 13px 15px; border-radius: var(--r);
  background: var(--blue-050); border: 1px solid var(--blue-100); color: var(--blue-700);
  font-size: 12.5px; line-height: 1.5;
}
.note svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 1px; }
.note.amber { background: var(--amber-bg); border-color: #f4e0bf; color: #8a5512; }
.note.green { background: var(--green-bg); border-color: #c6ead8; color: #15724c; }

.empty { text-align: center; padding: 40px 20px; color: var(--muted); }

/* avatar list */
.av-sm { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; }

/* legend */
.legend { display: flex; gap: 16px; flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); font-weight: 500; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* utility */
.flex { display: flex; } .items-center { align-items: center; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.mt-8{margin-top:8px;} .mt-16{margin-top:16px;} .mt-24{margin-top:24px;} .mb-8{margin-bottom:8px;} .mb-16{margin-bottom:16px;} .mb-24{margin-bottom:24px;}
.muted { color: var(--muted); } .small { font-size: 12px; } .xs { font-size: 11px; }
.right { text-align: right; } .center { text-align: center; }
.w-full { width: 100%; }
.nowrap { white-space: nowrap; }

/* ============================================================================
   DESIGN REFINEMENT v2 - shared polish + consistency
   ========================================================================== */
/* keyboard focus ring (accessibility / demo credibility) */
a:focus-visible, button:focus-visible, .tab:focus-visible, .chip:focus-visible,
.btn:focus-visible, .nav-item:focus-visible, .switch:focus-visible {
  outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 8px;
}

/* shared evidence / gallery thumbnail with a clean bottom-overlay caption */
.evid-thumb { position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: linear-gradient(135deg, #6aa9d8, #2f6da3); }
.evid-thumb .cap {
  position: absolute; left: 7px; right: 7px; bottom: 7px;
  font-size: 10px; line-height: 1.25; color: #fff; font-weight: 600;
  background: rgba(13,27,42,.5); padding: 4px 8px; border-radius: 7px;
  display: flex; align-items: center; gap: 5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.evid-thumb .cap svg { width: 11px; height: 11px; flex: 0 0 auto; }

/* consistent vertical rhythm for stacked page sections */
.page-section { margin-bottom: 24px; }

/* chart helpers */
.chart-axis { font-size: 10px; fill: var(--muted-2); font-weight: 600; }
.chart-grid { stroke: var(--grid); stroke-width: 1; }

/* fade-in on load */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .5s cubic-bezier(.2,.7,.3,1) both; }
.d1{animation-delay:.04s}.d2{animation-delay:.08s}.d3{animation-delay:.12s}.d4{animation-delay:.16s}.d5{animation-delay:.2s}.d6{animation-delay:.24s}

/* responsive sidebar collapse */
@media (max-width: 980px){
  .sidebar { position: fixed; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: none; }
  .searchbar { display: none; }
}

/* print */
@media print {
  .sidebar, .topbar, .head-actions, .no-print { display: none !important; }
  .content { padding: 0; max-width: none; }
  body { background: #fff; }
  .card { box-shadow: none; border-color: #ccc; break-inside: avoid; }
}
