@import url("no-shadows.css");
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Modak&display=swap');

/* site.css */
/* Dark Mode Theme for MVC Web App */

/* Color Variables */
:root {
  --bg-color: #121212;
  --surface: #1e1e1e;
  --accent: #24D0FF;        /* Accent colour */
  --accent-rgb: 36,208,255;
  --accent-compl-rgb: 219,47,0;
  --primary: var(--accent);
  --primary-dark: #24a5d6;  /* Darker accent */
  --secondary: var(--accent);    /* Accent colour */
  --text-light: #ffffff;
  --text-med: #bfbfbf;
  --text-hint: #8a8a8a;
  --elevation-shadow: 0 4px 12px rgba(0,0,0,0.5);
  --border: #333333;
  --radius: 0.5rem;
  --transition: 0.2s ease-in-out;
}

/* Base Styles */
html,body{height:100%;}
body {
  background-color: var(--bg-color);
  color: var(--text-light);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  display:flex;
  flex-direction:column;
  min-height:100vh;
}

/* Global scrollbar styling to mirror chat experience across the site */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb, rgba(148,163,184,0.4)) transparent;
}

@supports selector(::-webkit-scrollbar) {
  *::-webkit-scrollbar {
    width: 0.5rem;
    height: 0.5rem;
  }

  *::-webkit-scrollbar-track {
    background: transparent;
  }

  *::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb, rgba(148,163,184,0.4));
    border-radius: 999px;
  }

  *::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover, rgba(148,163,184,0.7));
  }
}

main, .content, .page-wrapper, .pt-10.px-4{flex:1 0 auto;}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--secondary);
}

/* Navbar */
.navbar {
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 1rem;
}

/* Sidebar */
.sidebar {
  background-color: var(--surface);
  border-right: 1px solid var(--border);
  padding: 1rem;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  overflow-y: auto;
}

/* Page wrapper overrides default content margin */
.page-wrapper {
  margin-left: 0;
  padding-top: 2.5rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Card and Panel */
.card, .panel {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--elevation-shadow);
  padding: 1rem;
  margin-bottom: 1rem;
  transition: box-shadow var(--transition);
}
.card:hover, .panel:hover {
  box-shadow: var(--elevation-shadow);
}

/* Section Title */
.section-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-light);
  border-left: 4px solid var(--primary);
  padding-left: 0.75rem;
  margin-bottom: 0.5rem;
}

/* Buttons */
.btn-primary {
  background: var(--primary);
  color: #000;
  padding: 0.6rem 1.25rem;
  border: 0.0625rem solid var(--primary);
  border-radius: var(--radius);
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.2), inset 0 0.0625rem 0.0625rem rgba(255,255,255,0.2);
  transition: all 0.2s ease-in-out;
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.3), inset 0 0.0625rem 0.125rem rgba(255,255,255,0.2);
}
.btn-secondary {
  background: linear-gradient(145deg, #2a2a2a, #222222);
  color: var(--text-med);
  padding: 0.6rem 1.25rem;
  border: 0.0625rem solid #444;
  border-radius: var(--radius);
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.2), inset 0 0.0625rem 0.0625rem rgba(255,255,255,0.05);
  transition: all 0.2s ease-in-out;
}
.btn-secondary:hover {
  transform: translateY(-1px);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.3), inset 0 0.0625rem 0.125rem rgba(255,255,255,0.07);
}

/* Forms */
label {
  color: var(--text-med);
  font-weight: 500;
  display: block;
  margin-bottom: 0.25rem;
}
input, textarea, select {
  width: 100%;
  background-color: #000;
  color: var(--text-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,123,167,0.25);
}

/* Slider skin updates for cerulean */
.slider .noUi-connect { background: var(--primary); }
.slider .noUi-handle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    box-shadow: 0 0 0 2px var(--surface), 0 0 6px rgba(0,123,167,0.7);
    cursor: pointer;
}
.slider .noUi-handle:hover {
    box-shadow: 0 0 0 2px var(--surface), 0 0 8px rgba(0,123,167,1);
}
.slider .noUi-handle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px #fff, 0 0 10px var(--primary);
}

.slider .noUi-base,
.slider .noUi-background {
  height: 8px !important;           /* ← up from 2px */
  margin: 12px 0;                   /* vertical centering under handle */
  background: linear-gradient(
    45deg,
    rgb(59,173,227) 0%,
    rgb(87,111,230) 25%,
    rgb(152,68,183) 51%,
    rgb(255,53,127) 100%);
}
.slider .noUi-connect {
  background: transparent !important;
}

/* — make the handle a bit bigger too — */
.slider .noUi-handle {
  width: 30px;
  height: 30px;
  bottom: 14px;                     /* nudge it down over the thicker bar */
}

.slider.ltpurple  .noUi-handle { border-color: rgb(87,111,230) !important; }
.slider.purple    .noUi-handle { border-color: rgb(152,68,183) !important; }
.slider.pink      .noUi-handle { border-color: rgb(255,53,127) !important; }


/* Toggle switch */
.toggle:checked { background: var(--primary); }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  max-width: 420px;
  width: calc(100% - 3rem);
  background: var(--surface);
  color: var(--text-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--elevation-shadow);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  z-index: 1080;
}

.cookie-banner__title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
}

.cookie-banner__body {
  margin: 0;
  color: var(--text-med);
  font-size: 0.95rem;
  line-height: 1.5;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: flex-end;
}

.cookie-banner__button {
  background: var(--primary);
  color: #000;
  border: none;
  border-radius: var(--radius);
  padding: 0.6rem 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--transition), transform var(--transition);
}

.cookie-banner__button:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.cookie-banner__link {
  font-size: 0.9rem;
  color: var(--text-med);
}

.cookie-banner__link:hover {
  color: var(--text-light);
}

@media (max-width: 640px) {
  .cookie-banner {
    right: 1rem;
    left: 1rem;
    width: auto;
  }
  .cookie-banner__actions {
    justify-content: space-between;
  }
}

/* Lower Value labels beneath sliders */
.slider + .flex { 
  margin-top: 1rem;   /* keeps it clear of the pips */
  margin-bottom: 1.5rem; /* NEW: pushes away from next slider heading */
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}
table th, table td {
  padding: 0.75rem;
  border: 1px solid var(--border);
}
table th {
  background-color: var(--surface);
  color: var(--text-light);
}
table tr:nth-child(even) {
  background-color: #1a1a1a;
}

/* Footer */
.site-footer {
  background-color: var(--surface);
  color: var(--text-med);
  text-align: center;
  padding: 1rem;
  border-top: 1px solid var(--border);
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }

/* Dark Mode Specific (for preferring system dark) */
@media (prefers-color-scheme: light) {
  body {
    background-color: var(--bg-color);
    color: var(--text-light);
  }
}



/* site.css (or your global CSS) */
  
  /* 1) Section Titles (H2) */
  /* .section-title {
    font-size: 1.85rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
  } */
  .section-title::after {
    content: "";
    display: block;
    width: 3rem;
    height: 0.25rem;
    background: var(--primary);
    border-radius: 0.125rem;
    margin-top: 0.5rem;
  }
  
  /* 2) Sub-section Titles (H3) */
  .subsection-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-light);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
  }
  
  /* usage: 
     <h2 class="section-title">Create Persona</h2>
     <h3 class="subsection-title">Tone sliders</h3>
     <h3 class="subsection-title">Feature toggles</h3>
  */
  
  /* 3) Form field wrappers for consistent spacing */
  .form-group {
    margin-bottom: 1.5rem;    /* space between each labeled field */
  }

  /* make only the top-level Bootstrap .container grow so the footer is always pushed down */
  body > .container {
    display: flex;
    flex-direction: column;
    flex: 1 0 auto;     /* you already had this */
  }
  
  body > .container > main {
    flex: 1 0 auto;
  }

  .fixed-bottom{
    position:fixed;
    right:0;
    bottom:0;
    left:0;
    z-index:1030; /* sits above the content */
}

footer .row.d-flex {
  display: flex !important;
  flex-wrap: wrap !important;
}
footer .row.d-flex > [class*="col-"] {
  /* ensure widths apply */
  flex: 0 0 auto !important;
}


@keyframes fadeUp { from { opacity:0; transform:translateY(30px);} to {opacity:1; transform:translateY(0);} }
.animate-fade-up { animation: fadeUp 0.8s ease-out forwards; opacity:0; }
.prompt-box { background:#000; border:1px solid var(--border); border-radius:var(--radius); padding:1rem; }

body{padding-bottom:4rem;}

/* utility: hide scrollbars */
.hide-scrollbar {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none;    /* Firefox */
}
.hide-scrollbar::-webkit-scrollbar {
  display: none;            /* Chrome, Safari */
}
/* Credit Count Styling */
.credit-count {
  background: var(--app-surface-glass-gradient, var(--surface));
  color: var(--app-text-secondary, var(--text-light));
  border: 1px solid var(--app-surface-border, var(--border));
  border-radius: var(--radius);
  padding: 0.5rem 1rem;
  font-weight: 600;
  font-size: 1rem;
  display: inline-block;
  text-align: center;
  box-shadow: var(--app-surface-shadow, var(--elevation-shadow));
  transition: transform var(--transition), box-shadow var(--transition), background 0.2s ease;
}

.credit-count:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
}

.editor-block.locked {
  opacity: 0.6;
}

.editor-block.locked::before {
  content: '\1F512';
  position: absolute;
  left: -1.5rem;
  top: 0;
}

/* Document editor block styling */
[data-block-type='title'] {
  font-size: 2rem;
  font-weight: 700;
  margin: 1.5rem 0 0.5rem;
}
[data-block-type='heading'][data-level='2'] {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 1rem 0 0.5rem;
}
[data-block-type='heading'][data-level='3'] {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0.75rem 0 0.5rem;
}
[data-block-type='heading'][data-level='4'] {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0.5rem 0 0.5rem;
}
[data-block-type='heading'][data-level='5'] {
  font-size: 1rem;
  font-weight: 600;
  margin: 0.5rem 0 0.5rem;
}
[data-block-type='heading'][data-level='6'] {
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0.5rem 0 0.5rem;
}
[data-block-type='paragraph'] {
  margin: 0.5rem 0;
}
[data-block-type='bulletList'],
[data-block-type='orderedList'] {
  margin: 0.5rem 0 0.5rem 1.5rem;
}

/* ────────────────────────────────────────────────────────────── */
/* Admin dashboard styling                                        */
/* ────────────────────────────────────────────────────────────── */
.admin-dashboard {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.dashboard-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
  justify-content: space-between;
}

.dashboard-hero__content {
  flex: 1 1 360px;
}

.dashboard-title {
  font-size: 2.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-light);
}

.dashboard-subtitle {
  color: var(--text-med);
  max-width: 42rem;
}

.dashboard-hero__filters {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 260px;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.filter-group__label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-hint);
}

.filter-chip {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-med);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.9rem;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.filter-chip:hover {
  color: var(--text-light);
  border-color: rgba(36, 208, 255, 0.4);
}

.filter-chip--active {
  background: rgba(var(--accent-rgb), 0.18);
  color: var(--text-light);
  border-color: rgba(var(--accent-rgb), 0.5);
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.section-subtitle {
  margin: 0;
  color: var(--text-med);
}

.summary-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.summary-meta__chip {
  font-size: 0.85rem;
  color: var(--text-hint);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  background: rgba(255, 255, 255, 0.03);
}

.metric-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.metric-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 180px;
}

.metric-card__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.metric-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.25), rgba(var(--accent-rgb), 0.05));
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.metric-icon::before {
  content: "";
  display: block;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 0.3rem;
  background: rgba(255, 255, 255, 0.55);
}

.metric-icon--accounts::before { background: linear-gradient(135deg, #60a5fa, #3b82f6); }
.metric-icon--active::before { background: linear-gradient(135deg, #34d399, #059669); }
.metric-icon--persona::before { background: linear-gradient(135deg, #f472b6, #db2777); }
.metric-icon--chat::before { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.metric-icon--knowledge::before { background: linear-gradient(135deg, #a855f7, #7c3aed); }
.metric-icon--search::before { background: linear-gradient(135deg, #38bdf8, #0ea5e9); }
.metric-icon--credits::before { background: linear-gradient(135deg, #f97316, #ea580c); }
.metric-icon--alerts::before { background: linear-gradient(135deg, #f87171, #ef4444); }

.metric-label {
  font-weight: 600;
  color: var(--text-light);
}

.metric-value {
  font-size: 2rem;
  font-weight: 600;
  margin: 0;
}

.metric-trend {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
}

.trend-up { color: #34d399; }
.trend-down { color: #f87171; }
.trend-stable { color: #94a3b8; }
.trend-critical { color: #f97316; }

.metric-footnote {
  margin-top: auto;
  font-size: 0.8rem;
  color: var(--text-hint);
}

.panel-grid {
  display: grid;
  gap: 1.5rem;
}

.panel-grid--two-column {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.panel-grid--three-column {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.panel-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}

.maintenance-alert {
  margin: 1.5rem 0;
  padding: 0.9rem 1.25rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(52, 211, 153, 0.45);
  background: rgba(16, 185, 129, 0.1);
  color: #34d399;
  font-weight: 600;
}

.maintenance-panel .section-header {
  align-items: center;
}

.maintenance-grid {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 2rem;
  align-items: start;
}

.maintenance-meta {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
}

.maintenance-meta__label {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--text-hint);
  margin-bottom: 0.25rem;
}

.maintenance-meta__value {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-light);
}

.maintenance-meta__byline {
  display: block;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-hint);
}

.maintenance-meta__hint {
  font-size: 0.85rem;
  color: var(--text-hint);
  margin-top: 1.25rem;
}

.maintenance-current-message {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  color: var(--text-light);
}

.maintenance-current-message span {
  display: block;
  margin-top: 0.35rem;
  padding: 0.6rem 0.75rem;
  border-radius: 0.75rem;
  background: rgba(37, 99, 235, 0.14);
  border: 1px solid rgba(37, 99, 235, 0.35);
  color: #bfdbfe;
}

.maintenance-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.maintenance-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  color: var(--text-light);
}

.maintenance-toggle input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #fb7185;
}

.maintenance-note-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-med);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.maintenance-form textarea {
  width: 100%;
  border-radius: 0.85rem;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.85rem;
  color: var(--text-light);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
  min-height: 120px;
}

.maintenance-form textarea:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.4);
  border-color: rgba(59, 130, 246, 0.6);
}

.maintenance-form__hint {
  font-size: 0.85rem;
  color: var(--text-hint);
}

.maintenance-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  background: linear-gradient(90deg, #f472b6, #fb7185);
  color: #0f172a;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: fit-content;
}

.maintenance-form__submit:hover,
.maintenance-form__submit:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(251, 113, 133, 0.25);
}

@media (max-width: 768px) {
  .maintenance-grid {
    grid-template-columns: 1fr;
  }

  .maintenance-meta {
    order: 2;
  }
}

.stat-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.stat-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
  color: var(--text-light);
}

.stat-value {
  font-weight: 600;
  color: var(--text-light);
}

.stat-delta {
  margin-left: 0.35rem;
  font-size: 0.8rem;
}

.stat-footnote {
  font-size: 0.8rem;
  color: var(--text-hint);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.data-table th,
.data-table td {
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.65rem 0.75rem;
  text-align: left;
}

.data-table th {
  background: rgba(255, 255, 255, 0.04);
  font-weight: 600;
  color: var(--text-med);
}

.data-table--integrations td:nth-child(2) {
  width: 140px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.15rem 0.55rem;
  border-radius: 0.75rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.badge--success {
  background: rgba(52, 211, 153, 0.18);
  color: #34d399;
}

.badge--warning {
  background: rgba(250, 204, 21, 0.2);
  color: #facc15;
}

.badge--risk {
  background: rgba(248, 113, 113, 0.2);
  color: #f87171;
}

.pipeline-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pipeline-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1rem;
  align-items: center;
}

.pipeline-label {
  color: var(--text-light);
}

.pipeline-progress {
  position: relative;
  height: 0.45rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.pipeline-progress span {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.6), rgba(var(--accent-rgb), 0.25));
  border-radius: inherit;
}

.pipeline-value {
  font-weight: 600;
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.timeline-entry {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.timeline-entry__time {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-hint);
}

.timeline-entry__content h4 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 600;
}

.timeline-entry__content p {
  margin: 0;
  color: var(--text-med);
}

@media (max-width: 768px) {
  .timeline-entry {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .dashboard-hero__filters {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}
