
  :root {
    --ink: #0a0a0a;
    --surface:   rgba(255,255,255,0.015);
    --surface-2: rgba(255,255,255,0.04);
    --surface-3: rgba(255,255,255,0.06);

    --line:   rgba(255,255,255,0.06);
    --line-2: rgba(255,255,255,0.10);
    --line-3: rgba(255,255,255,0.16);

    --text:   #ffffff;
    --text-2: rgba(255,255,255,0.70);
    --text-3: rgba(255,255,255,0.50);
    --text-4: rgba(255,255,255,0.35);

    --accent:      #00d68f;
    --accent-soft: rgba(0,214,143,0.10);
    --accent-line: rgba(0,214,143,0.25);

    --bad:  #ff6b6b;
    --warn: #ffb84a;
    --good: #00d68f;

    --shadow-focus: 0 0 0 3px rgba(0,214,143,0.15);

    --r-sm: 4px;
    --r-md: 6px;
    --r-lg: 10px;
    --r-xl: 12px;

    --font-sans:    'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Inter Tight', 'Inter', sans-serif;
    --font-mono:    'JetBrains Mono', ui-monospace, monospace;

    --sidebar-w: 220px;
  }

  *, *::before, *::after { box-sizing: border-box; }

  html, body {
    margin: 0; padding: 0;
    background: var(--ink);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }

  body { min-height: 100vh; }

  button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
  input, select, textarea { font: inherit; color: inherit; }

  ::selection { background: var(--accent-soft); color: var(--text); }

  /* ===================================================================
     APP SHELL
     =================================================================== */
  .app {
    display: grid;
    grid-template-columns: var(--sidebar-w) 1fr;
    min-height: 100vh;
    transition: grid-template-columns 200ms cubic-bezier(.2,.7,.2,1);
  }
  .app.is-collapsed { --sidebar-w: 56px; }

  /* ===================================================================
     SIDEBAR
     =================================================================== */
  .aside {
    position: sticky;
    top: 0;
    height: 100vh;
    background: var(--ink);
    border-right: 1px solid var(--line);
    padding: 16px 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 5;
    overflow: hidden;
  }

  /* profile */
  .profile {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: var(--r-md);
    transition: background 120ms;
  }
  .profile:hover { background: var(--surface-2); }
  .avatar {
    width: 24px; height: 24px;
    flex: 0 0 24px;
    border-radius: var(--r-sm);
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--line-2);
    display: grid; place-items: center;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--text);
  }
  .profile__name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 6px;
    border-radius: var(--r-sm);
    background: var(--surface-2);
    border: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-3);
    line-height: 1.2;
  }

  /* search */
  .search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: var(--r-md);
    color: var(--text-3);
    cursor: text;
    transition: background 120ms;
    border: 1px solid transparent;
  }
  .search:hover { background: var(--surface); }
  .search:focus-within {
    background: var(--surface);
    border-color: var(--accent-line);
    box-shadow: var(--shadow-focus);
    color: var(--text);
  }
  .search i { font-size: 14px; }
  .search input {
    background: transparent;
    border: 0;
    outline: none;
    font-size: 13px;
    flex: 1;
    min-width: 0;
    color: var(--text);
  }
  .search input::placeholder { color: var(--text-3); }

  /* nav sections */
  .nav { display: flex; flex-direction: column; gap: 2px; }
  .nav__section { display: flex; flex-direction: column; gap: 2px; padding: 6px 0; }
  .nav__title {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-3);
    padding: 6px 10px;
    margin: 0;
    text-transform: lowercase;
  }
  .nav__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border-radius: var(--r-md);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-2);
    cursor: pointer;
    text-align: left;
    width: 100%;
    transition: background 120ms, color 120ms;
    white-space: nowrap;
    overflow: hidden;
  }
  .nav__item i { font-size: 16px; color: var(--text-3); transition: color 120ms; flex: 0 0 16px; }
  .nav__item span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .nav__item:hover { background: var(--surface-2); color: var(--text); }
  .nav__item:hover i { color: var(--text); }
  .nav__item.is-active { background: var(--surface-3); color: var(--text); }
  .nav__item.is-active i { color: var(--text); }
  .nav__badge {
    font-family: var(--font-mono);
    font-size: 10px;
    padding: 1px 5px;
    border-radius: var(--r-sm);
    background: var(--surface-2);
    color: var(--text-3);
    line-height: 1.4;
  }

  .nav__bottom {
    margin-top: auto;
    border-top: 1px solid var(--line);
    padding-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  /* collapsed states */
  .is-collapsed .profile { justify-content: center; padding: 8px 0; }
  .is-collapsed .profile__name,
  .is-collapsed .profile .kbd { display: none; }
  .is-collapsed .search input,
  .is-collapsed .nav__title,
  .is-collapsed .nav__item span,
  .is-collapsed .nav__badge { display: none; }
  .is-collapsed .search { justify-content: center; padding: 6px 0; }
  .is-collapsed .nav__item { justify-content: center; padding: 8px 0; }

  /* tooltip when collapsed */
  [data-tip] { position: relative; }
  .is-collapsed [data-tip]:hover::after {
    content: attr(data-tip);
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--ink);
    border: 1px solid var(--line-2);
    color: var(--text);
    font-size: 12px;
    font-weight: 500;
    padding: 5px 9px;
    border-radius: var(--r-md);
    white-space: nowrap;
    z-index: 50;
    pointer-events: none;
  }

  /* AI Insight popup */
  .insight-pop {
    position: fixed;
    width: 320px;
    background: var(--ink);
    border: 1px solid var(--line-2);
    border-radius: var(--r-xl);
    padding: 14px 16px;
    z-index: 60;
    opacity: 0;
    transform: translateY(-2px);
    pointer-events: none;
    transition: opacity 140ms, transform 140ms;
  }
  .insight-pop.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .insight-pop__eyebrow {
    font-size: 11px;
    font-weight: 500;
    color: var(--accent);
    text-transform: lowercase;
    letter-spacing: 0;
  }
  .insight-pop__title {
    margin: 6px 0 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
  }
  .insight-pop__body {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.5;
    margin: 0 0 10px;
  }
  .insight-pop__body strong { color: var(--text); font-weight: 600; }
  .insight-pop__meta {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    color: var(--text-3);
  }

  /* ===================================================================
     MAIN
     =================================================================== */
  .main {
    padding: 32px 36px;
    min-width: 0;
  }
  .main__inner { max-width: 1200px; }

  .crumbs {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-3);
  }
  .crumbs i { font-size: 10px; color: var(--text-4); }
  .crumbs__last { color: var(--text); }

  .title {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.8px;
    color: var(--text);
    margin: 12px 0 8px;
    line-height: 1.1;
  }

  .meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-3);
    margin-bottom: 24px;
  }
  .meta__dot {
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--text-4);
  }
  .meta b { color: var(--text-2); font-weight: 500; }

  /* tabs row */
  .tabs-row {
    display: flex;
    align-items: center;
    gap: 4px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 24px;
  }
  .tab {
    padding: 8px 14px;
    border-radius: var(--r-md);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-3);
    transition: background 120ms, color 120ms;
    line-height: 1;
  }
  .tab:hover { background: var(--surface-2); color: var(--text); }
  .tab.is-active { background: var(--surface-3); color: var(--text); }

  .add-stage-btn {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: var(--r-md);
    background: var(--surface);
    border: 1px solid var(--line-2);
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    transition: background 120ms, border-color 120ms;
    line-height: 1;
  }
  .add-stage-btn i { font-size: 14px; }
  .add-stage-btn:hover { background: var(--surface-2); border-color: var(--line-3); }

  .panel { display: none; animation: fade 150ms ease both; }
  .panel.is-active { display: block; }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }

  /* ===================================================================
     STAGES TABLE
     =================================================================== */
  .stages-table {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
  }
  .row {
    display: grid;
    grid-template-columns: 36px 1fr 320px 120px 90px 32px;
    gap: 16px;
    align-items: center;
    padding: 12px 18px;
    border-bottom: 1px solid var(--line);
  }
  .row:last-child { border-bottom: 0; }

  .row--head {
    padding: 10px 18px;
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid var(--line);
  }
  .row--head .cell {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-3);
    text-transform: lowercase;
  }
  .row--head .cell--num { text-align: left; }
  .row--head .cell--val,
  .row--head .cell--cr { text-align: right; }

  .row--data {
    cursor: pointer;
    transition: background 120ms;
  }
  .row--data:hover { background: rgba(255,255,255,0.02); }
  .row--data:hover .row__more i { opacity: 1; }

  .cell--num {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 400;
    color: var(--text-3);
  }
  .cell--name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .cell--source {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
  }
  .pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: var(--r-sm);
    background: var(--surface-2);
    border: 1px solid var(--line);
    font-size: 11px;
    font-weight: 500;
    color: var(--text-2);
    line-height: 1.4;
    white-space: nowrap;
  }
  .cell--val {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    text-align: right;
  }
  .cell--cr {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    text-align: right;
  }
  .cell--cr.is-bad  { color: var(--bad); }
  .cell--cr.is-warn { color: var(--warn); }
  .cell--cr.is-good { color: var(--good); }
  .cell--cr.is-empty{ color: var(--text-4); }

  .row__more {
    display: grid; place-items: center;
    color: var(--text-3);
    width: 24px; height: 24px;
    border-radius: var(--r-sm);
    transition: background 120ms;
  }
  .row__more:hover { background: var(--surface-2); }
  .row__more i { font-size: 14px; opacity: 0; transition: opacity 120ms; }

  .row--add {
    grid-template-columns: 1fr;
    padding: 14px;
    text-align: center;
    color: var(--text-3);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 120ms, color 120ms;
  }
  .row--add:hover { background: var(--surface); color: var(--text); }
  .row--add i { font-size: 14px; vertical-align: -2px; margin-right: 6px; }

  /* ===================================================================
     METRICS STRIP
     =================================================================== */
  .metrics {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .metric {
    padding: 18px 20px 18px 4px;
    border-right: 1px solid var(--line);
  }
  .metric:last-child { border-right: 0; }
  .metric__label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-3);
    text-transform: lowercase;
    margin-bottom: 6px;
  }
  .metric__value {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.6px;
    color: var(--text);
    line-height: 1.05;
  }
  .metric__value.is-good { color: var(--good); }
  .metric__value.is-warn { color: var(--warn); }
  .metric__value.is-bad  { color: var(--bad); }

  /* ===================================================================
     FUNNEL VISUAL
     =================================================================== */
  .fviz {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px 0;
  }
  .fviz__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--surface);
    border: 1px solid var(--line-2);
    border-radius: 8px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(8px);
    animation: rowIn 280ms cubic-bezier(.2,.7,.2,1) forwards;
  }
  @keyframes rowIn { to { opacity: 1; transform: translateY(0); } }
  .fviz__name { font-size: 14px; font-weight: 500; color: var(--text); margin-right: 16px; }
  .fviz__val  { font-family: var(--font-mono); font-size: 14px; font-weight: 500; color: var(--text); }
  .fviz__cr {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    padding: 2px 0;
  }
  .fviz__cr.is-bad  { color: var(--bad); }
  .fviz__cr.is-warn { color: var(--warn); }
  .fviz__cr.is-good { color: var(--good); }

  /* ===================================================================
     CONTROL placeholder
     =================================================================== */
  .coming {
    padding: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .coming__icon {
    width: 60px; height: 60px;
    border-radius: 30px;
    background: var(--surface-2);
    display: grid; place-items: center;
    color: var(--text);
  }
  .coming__icon i { font-size: 26px; }
  .coming__title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.3px;
    color: var(--text);
    margin: 16px 0 4px;
  }
  .coming__sub {
    font-size: 13px;
    color: var(--text-3);
    max-width: 280px;
    margin: 0 0 18px;
    line-height: 1.5;
  }
  .coming__cta {
    padding: 8px 14px;
    border-radius: var(--r-md);
    background: transparent;
    border: 1px solid var(--line-2);
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    transition: background 120ms;
  }
  .coming__cta:hover { background: var(--surface-2); }

  /* ===================================================================
     MODALS
     =================================================================== */
  .overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: grid;
    place-items: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms;
  }
  .overlay.is-open { opacity: 1; pointer-events: auto; }
  .modal {
    width: min(520px, 92vw);
    background: var(--ink);
    border: 1px solid var(--line-2);
    border-radius: var(--r-xl);
    transform: translateY(8px) scale(.985);
    transition: transform 200ms cubic-bezier(.2,.7,.2,1);
    overflow: hidden;
  }
  .overlay.is-open .modal { transform: translateY(0) scale(1); }

  .modal__head {
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
  }
  .modal__eyebrow {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-3);
    text-transform: lowercase;
    margin-bottom: 4px;
  }
  .modal__title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.3px;
    color: var(--text);
    margin: 0;
  }
  .modal__close {
    width: 32px; height: 32px;
    border-radius: var(--r-md);
    display: grid; place-items: center;
    color: var(--text-3);
    transition: background 120ms, color 120ms;
  }
  .modal__close:hover { background: var(--surface-2); color: var(--text); }
  .modal__close i { font-size: 18px; }

  .modal__body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }

  .field { display: flex; flex-direction: column; gap: 4px; }
  .field__label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-3);
    text-transform: lowercase;
  }
  .input, .select-trigger {
    width: 100%;
    padding: 10px 12px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    color: var(--text);
    font-size: 14px;
    transition: border-color 120ms, box-shadow 120ms;
  }
  .input:focus,
  .select-trigger:focus,
  .select-trigger.is-open {
    outline: none;
    border-color: var(--accent-line);
    box-shadow: var(--shadow-focus);
  }

  .seg {
    display: inline-flex;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 3px;
    gap: 2px;
    align-self: flex-start;
  }
  .seg__btn {
    padding: 6px 12px;
    border-radius: var(--r-sm);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-3);
    transition: background 120ms, color 120ms;
    line-height: 1;
  }
  .seg__btn:hover { color: var(--text); }
  .seg__btn.is-active { background: var(--surface-3); color: var(--text); }

  .select-wrap { position: relative; }
  .select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    cursor: pointer;
    gap: 10px;
  }
  .select-trigger i { font-size: 14px; color: var(--text-3); }
  .select-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0; right: 0;
    background: var(--ink);
    border: 1px solid var(--line-2);
    border-radius: var(--r-md);
    padding: 4px;
    max-height: 240px;
    overflow-y: auto;
    z-index: 5;
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity 140ms, transform 140ms;
  }
  .select-menu.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .select-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--r-sm);
    font-size: 13px;
    color: var(--text-2);
    cursor: pointer;
  }
  .select-item:hover { background: var(--surface-2); color: var(--text); }
  .select-item i { font-size: 14px; color: var(--accent); }

  .modal__actions {
    padding: 16px 20px;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  .modal__actions--right { justify-content: flex-end; }

  .btn {
    padding: 10px 16px;
    border-radius: var(--r-md);
    font-size: 13px;
    font-weight: 500;
    border: 1px solid transparent;
    transition: background 120ms, border-color 120ms, color 120ms;
    line-height: 1.2;
  }
  .btn--primary {
    background: var(--accent);
    color: #001a0f;
    font-weight: 600;
  }
  .btn--primary:hover { background: #1ee29c; }
  .btn--ghost {
    background: transparent;
    border-color: var(--line-2);
    color: var(--text);
  }
  .btn--ghost:hover { background: var(--surface-2); }
  .btn--danger-text {
    background: transparent;
    color: var(--bad);
    padding: 8px 12px;
  }
  .btn--danger-text:hover { background: rgba(255,107,107,0.08); }
  .btn--danger {
    background: transparent;
    border-color: rgba(255,107,107,0.4);
    color: var(--bad);
  }
  .btn--danger:hover { background: rgba(255,107,107,0.08); }

  /* row context menu */
  .row-menu {
    position: fixed;
    width: 180px;
    background: var(--ink);
    border: 1px solid var(--line-2);
    border-radius: var(--r-md);
    padding: 4px;
    z-index: 90;
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity 140ms, transform 140ms;
  }
  .row-menu.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .row-menu__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--r-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    width: 100%;
    text-align: left;
    transition: background 120ms;
  }
  .row-menu__item i { font-size: 14px; color: var(--text-3); }
  .row-menu__item:hover { background: var(--surface-2); }
  .row-menu__item.is-danger { color: var(--bad); }
  .row-menu__item.is-danger i { color: var(--bad); }


/* === ADDITIONS === */

/* ============================================================
   Liaison · Funnels v2 · Production additions
   Adds elements not in original prototype: funnels list,
   alert banner, native select styling, title actions.
   ============================================================ */

/* Funnels list in sidebar */
.nav__section--funnels {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.funnel-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  text-align: left;
  font: inherit;
  transition: background .12s, border-color .12s, color .12s;
}
.funnel-item:hover {
  background: var(--surface-2);
  color: var(--text);
}
.funnel-item.is-active {
  background: var(--surface-3);
  border-color: var(--border-2);
  color: var(--text);
}
.funnel-item__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-3);
  margin-top: 6px;
  flex-shrink: 0;
}
.funnel-item.is-active .funnel-item__dot {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.funnel-item__body {
  display: flex; flex-direction: column; gap: 2px;
  min-width: 0;
  flex: 1;
}
.funnel-item__name {
  font-size: 13px; font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 100%;
}
.funnel-item__period {
  font-size: 11px; color: var(--text-3);
  font-family: var(--mono);
}
.app.is-collapsed .funnel-item__body { display: none; }
.app.is-collapsed .funnel-item { justify-content: center; }

.aside__empty {
  padding: 14px 12px;
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.5;
}

.nav__item--cta {
  margin-top: 6px;
  color: var(--accent);
}
.nav__item--cta:hover {
  color: var(--accent);
  background: rgba(94, 174, 255, 0.06);
}

/* Title row with rename/delete actions */
.title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}
.title-row__actions {
  display: flex;
  gap: 6px;
  opacity: 0;
  transition: opacity .15s;
}
.title-row:hover .title-row__actions { opacity: 1; }

.title-action {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-2);
  cursor: pointer;
  font-size: 14px;
  transition: background .12s, color .12s, border-color .12s;
}
.title-action:hover {
  background: var(--surface-2);
  color: var(--text);
}
.title-action--danger:hover {
  color: #ff5e5e;
  border-color: rgba(255, 94, 94, 0.3);
}

/* Alert banner */
.alert {
  padding: 10px 14px;
  margin-bottom: 16px;
  background: rgba(255, 94, 94, 0.08);
  border: 1px solid rgba(255, 94, 94, 0.2);
  border-radius: 8px;
  color: #ffb3b3;
  font-size: 13px;
  font-family: var(--sans);
}

/* Native select dropdown styling — matches design language */
.select-native {
  width: 100%;
  padding: 11px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%2393a0b3' stroke-width='1.5'><path d='M3 4.5L6 7.5L9 4.5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  padding-right: 36px;
  transition: border-color .12s, background-color .12s;
}
.select-native:hover {
  border-color: var(--border-2);
  background-color: var(--surface-3);
}
.select-native:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(94, 174, 255, 0.1);
}
.select-native[multiple] {
  appearance: auto;
  -webkit-appearance: auto;
  background-image: none;
  padding-right: 14px;
  min-height: 100px;
}
.select-native[multiple] option {
  padding: 6px 10px;
}
.select-native option {
  background: #14151a;
  color: var(--text);
}

/* Funnel viz empty state */
.fviz__empty {
  padding: 60px 24px;
  text-align: center;
  color: var(--text-3);
  font-size: 14px;
}
