/* Vantor — Onboarding tracker prototype (snyx showcase; reconstructed from client work, synthetic data).
   Self-contained: tokens, board, drawer. No shared stylesheet. */

:root {
  /* brand */
  --navy-900: #0d1033;        /* top bar */
  --navy-800: #171b4d;        /* solid buttons */
  --navy-700: #262c72;
  --indigo:   #2f3494;        /* links, primary ink */
  --indigo-2: #4a51c4;        /* progress fill, focus */
  --lilac:    #8f93e8;        /* active nav underline */

  /* surfaces */
  --paper:  #ffffff;
  --ground: #f6f7fb;          /* board ground */
  --col:    #fbfbfe;          /* column body */
  --line:   #e2e4ee;
  --line-2: #eceef5;
  --ink:    #16182e;
  --ink-2:  #454a63;
  --muted:  #7b8098;

  /* semantic tints */
  --amber-bg: #fdf4e4; --amber-line: #efd4a2; --amber-ink: #8a5a09;
  --blue-bg:  #eef1fd; --blue-line: #c8cff5; --blue-ink: #2f3494;
  --rose-bg:  #fdf1f5; --rose-line: #f2b9cd; --rose-ink: #b52a58;
  --green-bg: #eaf7ef; --green-line: #aedcc0; --green-ink: #1f7a47;
  --cream:    #fdf8e8;        /* accepted card */

  /* type */
  --font: Inter, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --fs-xs: 11px; --fs-sm: 12.5px; --fs-md: 14px; --fs-lg: 16px; --fs-xl: 22px;

  --radius: 5px; --radius-lg: 8px;
  --shadow-1: 0 1px 2px rgba(13, 16, 51, .07);
  --shadow-2: 0 10px 30px rgba(13, 16, 51, .16);
  --focus: 0 0 0 3px rgba(74, 81, 196, .28);
  --topbar-h: 58px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { font-family: var(--font); font-size: var(--fs-md); color: var(--ink); background: var(--ground);
       display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
a { color: var(--indigo); }
.ic { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8;
      stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }
/* class rules below set display, which would otherwise beat the UA [hidden] rule */
[hidden] { display: none !important; }

/* ------------------------------------------------------------ top bar */
.topbar { height: var(--topbar-h); flex: none; background: var(--navy-900); color: #fff;
          display: flex; align-items: center; gap: 34px; padding: 0 22px; }
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; color: #fff; }
.logo-mark { width: 18px; height: 18px; border-radius: 50%; background: var(--lilac);
             box-shadow: inset 0 0 0 4px var(--navy-900); }
.logo-word { font-weight: 700; font-size: 17px; letter-spacing: .01em; }
.topnav { display: flex; gap: 26px; margin-right: auto; }
.topnav a { color: rgba(255,255,255,.78); text-decoration: none; font-size: var(--fs-md); font-weight: 500;
            line-height: var(--topbar-h); border-bottom: 3px solid transparent; }
.topnav a:hover { color: #fff; }
.topnav a.is-active { color: #fff; border-bottom-color: var(--lilac); }
.rm { display: flex; align-items: center; gap: 9px; background: none; border: 0; color: #fff; cursor: pointer;
      padding: 6px 4px; font-size: var(--fs-md); }
.rm-badge { min-width: 21px; height: 21px; border-radius: 11px; background: #e0255f; color: #fff;
            font-size: var(--fs-xs); font-weight: 700; display: grid; place-items: center; padding: 0 5px; }

/* ------------------------------------------------------------ page head */
.shell { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--paper); }
.pagehead { display: flex; align-items: flex-start; gap: 20px; padding: 20px 22px 12px; flex-wrap: wrap; }
.pagehead__title h1 { font-size: var(--fs-xl); font-weight: 600; letter-spacing: -.01em; }
.pagehead__sub { color: var(--muted); font-size: var(--fs-sm); margin-top: 3px; }
.pagehead__actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 15px; border-radius: var(--radius);
       border: 1px solid transparent; cursor: pointer; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.btn.solid { background: var(--navy-800); color: #fff; }
.btn.solid:hover { background: var(--navy-700); }
.btn.ghost { background: #fff; color: var(--indigo); border-color: var(--indigo); }
.btn.ghost:hover { background: var(--blue-bg); }
.btn.quiet { background: #fff; color: var(--ink-2); border-color: var(--line); font-weight: 500; }
.btn.quiet:hover { background: var(--ground); }
.btn.small { height: 32px; padding: 0 12px; font-size: var(--fs-sm); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ------------------------------------------------------------ lens bar */
.lensbar { display: flex; align-items: center; gap: 16px; padding: 0 22px; border-bottom: 1px solid var(--line);
           flex-wrap: wrap; }
.tabs { display: flex; gap: 22px; margin-right: auto; }
.tab { background: none; border: 0; cursor: pointer; padding: 12px 0 11px; font-size: 13.5px; color: var(--ink-2);
       border-bottom: 3px solid transparent; display: flex; align-items: center; gap: 7px; }
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--indigo); font-weight: 600; border-bottom-color: var(--indigo); }
.tab-n { font-size: var(--fs-xs); font-weight: 600; background: var(--line-2); color: var(--ink-2);
         border-radius: 9px; padding: 1px 7px; }
.tab.is-active .tab-n { background: var(--blue-bg); color: var(--indigo); }
.lensbar__right { display: flex; align-items: center; gap: 10px; padding: 8px 0; }

.search { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 10px; border: 1px solid var(--line);
          border-radius: var(--radius); background: #fff; color: var(--muted); }
.search input { border: 0; outline: 0; width: 170px; background: none; font-size: 13.5px; color: var(--ink); }
.search:focus-within { border-color: var(--indigo-2); box-shadow: var(--focus); }
.select { position: relative; display: flex; align-items: center; }
.select select { appearance: none; height: 34px; padding: 0 30px 0 11px; border: 1px solid var(--line);
                 border-radius: var(--radius); background: #fff; font-size: 13.5px; cursor: pointer; }
.select .ic { position: absolute; right: 9px; pointer-events: none; color: var(--muted); }
.pager { display: flex; gap: 4px; }
.icon-btn { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line);
            background: #fff; border-radius: var(--radius); cursor: pointer; color: var(--ink-2); }
.icon-btn:hover { background: var(--ground); color: var(--ink); }

.guide { margin: 12px 22px -2px; padding: 9px 13px; background: var(--blue-bg); border: 1px solid var(--blue-line);
         border-radius: var(--radius); color: var(--blue-ink); font-size: 13.5px; display: flex; align-items: center; gap: 8px; }

/* ------------------------------------------------------------ board */
.board { flex: 1; min-height: 0; display: flex; gap: 12px; align-items: flex-start; overflow: auto;
         padding: 16px 22px 26px; background: var(--ground); scroll-behavior: smooth; }
.board:focus { outline: none; }

.column { flex: none; width: 236px; background: var(--col); border: 1px solid var(--line); border-radius: var(--radius-lg);
          display: flex; flex-direction: column; max-height: 100%; }
.column.is-over { border-color: var(--indigo-2); background: #f2f3fe; box-shadow: 0 0 0 2px rgba(74,81,196,.18); }
.col-head { display: flex; align-items: center; gap: 8px; padding: 10px 11px; border-bottom: 1px solid var(--line-2); }
.col-head h2 { font-size: var(--fs-sm); font-weight: 600; letter-spacing: .01em; }
.col-n { margin-left: auto; font-size: var(--fs-xs); font-weight: 600; color: var(--muted);
         background: var(--line-2); border-radius: 9px; padding: 1px 7px; }
.cbox { width: 15px; height: 15px; border: 1.5px solid #b9bdd0; border-radius: 3px; background: #fff; cursor: pointer;
        display: grid; place-items: center; flex: none; padding: 0; color: #fff; }
.cbox .ic { width: 11px; height: 11px; stroke-width: 3; opacity: 0; }
.cbox.is-on { background: var(--indigo); border-color: var(--indigo); }
.cbox.is-on .ic { opacity: 1; }
.col-body { padding: 9px; display: flex; flex-direction: column; gap: 9px; overflow-y: auto; min-height: 66px; }
.col-empty { color: var(--muted); font-size: var(--fs-sm); text-align: center; padding: 14px 6px; }

/* ------------------------------------------------------------ card */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 9px 10px 10px;
        cursor: grab; position: relative; box-shadow: var(--shadow-1); }
.card:hover { border-color: #c9cddf; }
.card.is-accepted { background: var(--cream); border-color: #edddab; }
.card.is-selected { border-color: var(--indigo); box-shadow: 0 0 0 2px rgba(47,52,148,.16); }
.card.is-dragging { opacity: .35; }
.card.is-ghost { position: fixed; z-index: 90; width: 218px; pointer-events: none; cursor: grabbing;
                 box-shadow: var(--shadow-2); transform: rotate(1.4deg); }
.card.is-landed { animation: land .5s ease-out; }
@keyframes land { 0% { box-shadow: 0 0 0 3px rgba(74,81,196,.45); } 100% { box-shadow: var(--shadow-1); } }
.card.is-pulse::after { content: ""; position: absolute; inset: -3px; border-radius: 7px;
                        box-shadow: 0 0 0 0 rgba(47,52,148,.5); animation: pulse 1.9s ease-out infinite; pointer-events: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(47,52,148,0); } 100% { box-shadow: 0 0 0 0 rgba(47,52,148,0); } }

.card-top { display: flex; align-items: center; gap: 7px; }
.avatar { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid currentColor; display: grid;
          place-items: center; font-size: 10px; font-weight: 700; flex: none; }
.avatar.advisory { color: #2f3494; }
.avatar.discretionary { color: #1f7a47; }
.avatar.nominee { color: #b06c11; }
.card-name { font-size: 13px; font-weight: 600; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-fav { margin-left: auto; background: none; border: 0; cursor: pointer; color: #c7cbdb; padding: 0; display: grid; }
.card-fav .ic { width: 14px; height: 14px; }
.card-fav.is-on { color: #e8b21f; }
.card-fav.is-on .ic { fill: currentColor; }
.card-when { color: var(--muted); font-size: var(--fs-xs); margin-top: 5px; }
.card-fund { color: var(--ink-2); font-size: var(--fs-xs); margin-top: 3px; }
.card-act { margin-top: 6px; background: none; border: 0; padding: 0; cursor: pointer; color: var(--indigo);
            font-size: var(--fs-sm); font-weight: 500; text-align: left; text-decoration: underline;
            text-underline-offset: 2px; text-decoration-thickness: 1px; }
.card-act:hover { color: var(--indigo-2); }
.pill { margin-top: 7px; display: block; width: 100%; text-align: center; font-size: var(--fs-xs); font-weight: 600;
        padding: 4px 6px; border-radius: 3px; border: 1px solid; }
.pill.amber { background: var(--amber-bg); border-color: var(--amber-line); color: var(--amber-ink); }
.pill.blue  { background: var(--blue-bg);  border-color: var(--blue-line);  color: var(--blue-ink); }
.pill.rose  { background: var(--rose-bg);  border-color: var(--rose-line);  color: var(--rose-ink); }
.pill.green { background: var(--green-bg); border-color: var(--green-line); color: var(--green-ink); }
.progress { margin-top: 8px; height: 4px; border-radius: 2px; background: var(--line-2); overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--indigo), var(--indigo-2));
              transition: width .45s ease; }

/* ------------------------------------------------------------ bulk bar */
.bulkbar { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 60; display: flex;
           align-items: center; gap: 12px; background: var(--navy-900); color: #fff; padding: 9px 12px 9px 16px;
           border-radius: 999px; box-shadow: var(--shadow-2); font-size: 13.5px; }
.bulkbar .btn { height: 32px; }
.bulkbar .btn.quiet { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.22); color: #fff; }
.bulkbar .btn.quiet:hover { background: rgba(255,255,255,.2); }

/* ------------------------------------------------------------ drawer + queue */
.scrim { position: fixed; inset: 0; background: rgba(13,16,51,.34); z-index: 70; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 420px; max-width: 94vw; background: #fff; z-index: 80;
          box-shadow: var(--shadow-2); display: flex; flex-direction: column; animation: slide-in .22s ease-out; }
@keyframes slide-in { from { transform: translateX(26px); opacity: .5; } }
.dr-head { padding: 18px 20px 14px; border-bottom: 1px solid var(--line); }
.dr-kicker { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: var(--fs-xs);
             text-transform: uppercase; letter-spacing: .1em; }
.dr-close { margin-left: auto; background: none; border: 0; cursor: pointer; color: var(--muted); display: grid; padding: 2px; }
.dr-close:hover { color: var(--ink); }
.dr-head h2 { font-size: 19px; font-weight: 600; margin-top: 9px; }
.dr-meta { color: var(--muted); font-size: var(--fs-sm); margin-top: 4px; }
.dr-body { flex: 1; overflow-y: auto; padding: 16px 20px 26px; }
.next { background: var(--blue-bg); border: 1px solid var(--blue-line); border-radius: var(--radius-lg); padding: 14px; }
.next h3 { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .09em; color: var(--indigo); }
.next p { margin: 7px 0 12px; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.next.is-done { background: var(--green-bg); border-color: var(--green-line); }
.next.is-done h3 { color: var(--green-ink); }
.dr-sec { margin-top: 20px; }
.dr-sec h3 { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--muted);
             margin-bottom: 9px; }
.kv { display: grid; grid-template-columns: 112px 1fr; gap: 6px 12px; font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { color: var(--ink-2); }
.steps { list-style: none; display: flex; flex-direction: column; gap: 0; }
.steps li { display: flex; gap: 10px; font-size: 13.5px; padding: 5px 0; color: var(--muted); }
.steps li .dot { width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid var(--line); flex: none;
                 margin-top: 2px; display: grid; place-items: center; color: #fff; }
.steps li .dot .ic { width: 10px; height: 10px; stroke-width: 3; opacity: 0; }
.steps li.done { color: var(--ink-2); }
.steps li.done .dot { background: var(--green-ink); border-color: var(--green-ink); }
.steps li.done .dot .ic { opacity: 1; }
.steps li.here { color: var(--indigo); font-weight: 600; }
.steps li.here .dot { border-color: var(--indigo); box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 9px var(--indigo); }
.log { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.log li { font-size: 13px; color: var(--ink-2); padding-left: 14px; border-left: 2px solid var(--line); }
.log li b { display: block; font-weight: 600; color: var(--ink); }
.log li span { color: var(--muted); font-size: var(--fs-xs); }
.log li.fresh { border-left-color: var(--indigo-2); animation: fresh 1.4s ease-out; }
@keyframes fresh { from { background: var(--blue-bg); } }
.dr-foot { border-top: 1px solid var(--line); padding: 12px 20px; display: flex; gap: 9px; flex-wrap: wrap; }

.queue { position: fixed; top: calc(var(--topbar-h) + 8px); right: 18px; width: 348px; max-width: 94vw; background: #fff;
         border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-2); z-index: 80;
         overflow: hidden; }
.queue h2 { font-size: var(--fs-md); font-weight: 600; padding: 13px 15px; border-bottom: 1px solid var(--line-2);
            display: flex; align-items: center; gap: 8px; }
.queue ol { list-style: none; max-height: 60vh; overflow-y: auto; }
.q-row { display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left; background: none; border: 0;
         border-bottom: 1px solid var(--line-2); padding: 11px 15px; cursor: pointer; }
.q-row:hover { background: var(--ground); }
.q-row b { font-size: 13.5px; font-weight: 600; display: block; }
.q-row span { font-size: var(--fs-sm); color: var(--muted); }
.q-empty { padding: 22px 15px; text-align: center; color: var(--muted); font-size: 13.5px; }

/* ------------------------------------------------------------ modal + toasts */
.modal-wrap { position: fixed; inset: 0; z-index: 85; display: grid; place-items: center; background: rgba(13,16,51,.34); }
.modal { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-2); width: 380px; max-width: 92vw;
         padding: 20px; }
.modal h2 { font-size: var(--fs-lg); font-weight: 600; margin-bottom: 4px; }
.modal p { color: var(--muted); font-size: 13.5px; margin-bottom: 14px; }
.field { display: block; margin-bottom: 12px; }
.field span { display: block; font-size: var(--fs-sm); color: var(--ink-2); margin-bottom: 5px; }
.field input, .field select { width: 100%; height: 38px; padding: 0 11px; border: 1px solid var(--line);
                              border-radius: var(--radius); background: #fff; }
.field input:focus, .field select:focus { outline: none; border-color: var(--indigo-2); box-shadow: var(--focus); }
.modal-foot { display: flex; gap: 9px; justify-content: flex-end; margin-top: 16px; }

.toasts { position: fixed; left: 22px; bottom: 22px; z-index: 95; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--navy-900); color: #fff; padding: 10px 14px; border-radius: var(--radius); font-size: 13.5px;
         box-shadow: var(--shadow-2); animation: toast-in .18s ease-out; max-width: 380px; }
.toast.is-out { opacity: 0; transform: translateY(6px); transition: .4s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* ------------------------------------------------------------ narrow */
@media (max-width: 900px) {
  .lensbar { gap: 10px; }
  .search input { width: 118px; }
  .column { width: 210px; }
}
@media (max-width: 620px) {
  .topnav { display: none; }
  .pagehead, .lensbar, .board { padding-left: 14px; padding-right: 14px; }
  .guide { margin-left: 14px; margin-right: 14px; }
  .pagehead__actions .btn.solid { padding: 0 11px; }
}
