/* Link to Vault: shared sheet, linked chip and Link button.
   Sits inside .ig so it inherits the Instagram Day/Night tokens. The Vault accent is teal. */

.vl-modal .vl-card { max-width: 500px; }
.vl-head { gap: 0; }
.vl-head__row { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.vl-head__link { width: 22px; height: 22px; display: grid; place-items: center; color: var(--ig-txt-3); }
.vl-head__link svg { width: 15px; height: 15px; }
.vl-head p b { color: var(--ig-txt); font-weight: 650; }

/* faces */
.vl-face {
  --s: 40px;
  width: var(--s); height: var(--s); flex: none; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  font-size: calc(var(--s) * .36); font-weight: 700; letter-spacing: -.01em; color: var(--ig-txt-2);
  background: linear-gradient(180deg, rgba(148,163,184,.18), rgba(148,163,184,.1));
  box-shadow: inset 0 0 0 1px var(--ig-line);
}
.vl-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vl-face--xs { --s: 20px; font-size: 9px; }
.vl-face--sm { --s: 34px; }
.vl-face--lg { --s: 64px; box-shadow: inset 0 0 0 1px var(--ig-line), 0 10px 24px -14px rgba(15,23,42,.45); }
.vl-face--vault { color: #fff; font-weight: 800; background: linear-gradient(180deg, #14B0A0, #0D9488); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 6px 14px -8px rgba(13,148,136,.8); }
.vl-face--src { background: linear-gradient(135deg, rgba(245,133,41,.18), rgba(129,52,175,.16)); color: #8134AF; }
html.theme-night .vl-face--src { color: #B57EDC; }

/* search */
.vl-body { gap: 12px; padding-top: 4px; }
.vl-search {
  position: relative; display: flex; align-items: center; height: 46px; padding: 0 14px; gap: 10px; border-radius: 14px; cursor: text;
  background: var(--ig-tile); box-shadow: inset 0 1px 0 var(--ig-hi), inset 0 0 0 1px var(--ig-line);
  transition: box-shadow .22s var(--ig-ease);
}
.vl-search:focus-within { box-shadow: inset 0 1px 0 var(--ig-hi), inset 0 0 0 1.5px rgba(13,148,136,.55), 0 0 0 4px rgba(13,148,136,.12); }
.vl-search svg { width: 17px; height: 17px; color: var(--ig-txt-3); flex: none; }
.vl-search__input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-size: 15px; color: var(--ig-txt); }
.vl-search__input::placeholder { color: var(--ig-txt-3); }
.vl-search__input::-webkit-search-cancel-button { -webkit-appearance: none; }

.vl-hints { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: -2px; }
.vl-hints__lbl { font-size: 11.5px; font-weight: 600; color: var(--ig-txt-3); margin-right: 2px; }
.vl-hint-chip {
  height: 26px; padding: 0 10px; border: 0; border-radius: 999px; font: inherit; font-size: 12px; font-weight: 600; color: var(--ig-txt-2); cursor: pointer;
  background: var(--ig-tile); box-shadow: inset 0 0 0 1px var(--ig-line);
  max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transition: transform .14s var(--ig-ease), color .2s, box-shadow .2s;
}
.vl-hint-chip:hover { color: var(--ig-teal); box-shadow: inset 0 0 0 1px rgba(13,148,136,.35); }
.vl-hint-chip:active { transform: scale(.95); }

/* results */
.vl-results { display: flex; flex-direction: column; gap: 4px; min-height: 120px; }
.vl-row {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 10px; border: 0; border-radius: 14px; text-align: left; cursor: pointer;
  font: inherit; color: var(--ig-txt); background: transparent;
  animation: vl-in .42s var(--ig-ease) both; animation-delay: calc(var(--i, 0) * 28ms);
  transition: background .18s, transform .14s var(--ig-ease), opacity .2s, box-shadow .2s;
}
.vl-row:hover { background: var(--ig-tile); box-shadow: inset 0 1px 0 var(--ig-hi), inset 0 0 0 1px var(--ig-line); }
.vl-row:active { transform: scale(.985); }
.vl-row:focus-visible { outline: 2px solid rgba(13,148,136,.5); outline-offset: 1px; }
.vl-row.is-dim { opacity: .4; pointer-events: none; }
.vl-row.is-busy { pointer-events: none; }
.vl-row.is-busy .vl-row__go { color: transparent; position: relative; }
.vl-row.is-busy .vl-row__go::after { content: ""; position: absolute; inset: 0; margin: auto; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; animation: vl-spin .7s linear infinite; }
.vl-row__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.vl-row__name { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 650; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vl-row__meta { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ig-txt-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vl-row__go {
  flex: none; height: 28px; padding: 0 12px; display: grid; place-items: center; border-radius: 9px; font-size: 12.5px; font-weight: 680;
  color: var(--ig-teal); background: var(--ig-teal-soft); opacity: 0; transform: translateX(-4px);
  transition: opacity .2s var(--ig-ease), transform .25s var(--ig-ease), background .2s, color .2s;
}
.vl-row:hover .vl-row__go, .vl-row:focus-visible .vl-row__go, .vl-row.is-busy .vl-row__go { opacity: 1; transform: none; }
.vl-row.is-busy .vl-row__go { background: linear-gradient(180deg, #14B0A0, #0D9488); }
@media (hover: none) { .vl-row__go { opacity: 1; transform: none; } }
.vl-tag { flex: none; height: 18px; padding: 0 7px; display: inline-grid; place-items: center; border-radius: 999px; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; color: var(--ig-teal); background: var(--ig-teal-soft); }
.vl-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ig-txt-3); flex: none; }
.vl-muted { color: var(--ig-txt-3); }
.vl-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 28px 12px; text-align: center; font-size: 13px; color: var(--ig-txt-3); }
.vl-empty b { color: var(--ig-txt); font-weight: 650; font-size: 14px; }
.vl-skel { height: 58px; border-radius: 14px; background: linear-gradient(90deg, var(--ig-tile) 0%, var(--ig-hi) 50%, var(--ig-tile) 100%); background-size: 200% 100%; animation: vl-shimmer 1.2s ease-in-out infinite; opacity: .7; }

/* linked state */
.vl-linked { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 18px; background: var(--ig-tile); box-shadow: inset 0 1px 0 var(--ig-hi), inset 0 0 0 1px var(--ig-line); animation: vl-in .45s var(--ig-ease) both; }
.vl-linked__txt { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.vl-linked__eyebrow { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; color: var(--ig-teal); }
.vl-linked__eyebrow svg { width: 13px; height: 13px; }
.vl-linked__name { font-size: 18px; font-weight: 740; letter-spacing: -.02em; line-height: 1.2; }
.vl-linked__meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--ig-txt-2); }
.vl-note { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--ig-txt-2); }
.vl-foot-hint { flex: 1; min-width: 0; font-size: 12px; color: var(--ig-txt-3); }

/* linked chip (cards, rows, thread headers) */
.vl-chip {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%; height: 26px; padding: 0 9px 0 3px; border-radius: 999px;
  font-size: 12px; font-weight: 650; letter-spacing: -.005em; color: var(--ig-teal, #0D9488);
  background: var(--ig-teal-soft, rgba(13,148,136,.1)); box-shadow: inset 0 0 0 1px rgba(13,148,136,.18);
}
.vl-chip .vl-face { box-shadow: 0 0 0 1.5px rgba(255,255,255,.9); }
.vl-chip__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vl-chip--compact { height: 22px; font-size: 11.5px; }
.vl-chip--compact .vl-face { --s: 16px; font-size: 8px; }
html.theme-night .vl-chip { color: #5EEAD4; background: rgba(94,234,212,.1); box-shadow: inset 0 0 0 1px rgba(94,234,212,.2); }
html.theme-night .vl-chip .vl-face { box-shadow: 0 0 0 1.5px rgba(15,23,42,.9); }

/* Link button (used outside .ig too, so it carries its own fallbacks) */
.vl-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border: 0; border-radius: 9px; cursor: pointer; white-space: nowrap;
  font: inherit; font-size: 12.5px; font-weight: 650; color: #0D9488;
  background: rgba(13,148,136,.08); box-shadow: inset 0 0 0 1px rgba(13,148,136,.2);
  transition: transform .14s cubic-bezier(.2,.8,.2,1), box-shadow .2s, background .2s; -webkit-tap-highlight-color: transparent;
}
.vl-btn svg { width: 14px; height: 14px; flex: none; }
.vl-btn:hover { background: rgba(13,148,136,.13); box-shadow: inset 0 0 0 1px rgba(13,148,136,.32), 0 6px 14px -10px rgba(13,148,136,.6); }
.vl-btn:active { transform: scale(.96); }
.vl-btn:focus-visible { outline: 2px solid rgba(13,148,136,.5); outline-offset: 2px; }
html.theme-night .vl-btn { color: #5EEAD4; background: rgba(94,234,212,.08); box-shadow: inset 0 0 0 1px rgba(94,234,212,.22); }
html.theme-night .vl-btn:hover { background: rgba(94,234,212,.14); }
/* chip that doubles as a button (opens the linked state) */
button.vl-chip { border: 0; font: inherit; font-size: 12px; font-weight: 650; cursor: pointer; transition: transform .14s cubic-bezier(.2,.8,.2,1), box-shadow .2s; }
button.vl-chip:hover { box-shadow: inset 0 0 0 1px rgba(13,148,136,.4); }
button.vl-chip:active { transform: scale(.96); }

@keyframes vl-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes vl-spin { to { transform: rotate(360deg); } }
@keyframes vl-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

@media (max-width: 640px) {
  .vl-modal .vl-card { max-width: none; }
  .vl-foot-hint { display: none; }
  .vl-row { padding: 10px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .vl-row, .vl-linked { animation: none; }
}
.ig-btn--vault { color: var(--ig-teal); }
.ig-btn--vault:hover { box-shadow: inset 0 1px 0 var(--ig-hi), inset 0 0 0 1px rgba(13,148,136,.35), 0 6px 14px -10px rgba(13,148,136,.6); }

/* Above the quick inbox drawer (z 3000) */
.ig.ig-modal.vl-modal { z-index: 3200; }
.qi-vault.is-linked { padding: 0; }
.qi-vault .vl-face { --s: 24px; font-size: 10px; box-shadow: 0 0 0 1.5px rgba(13,148,136,.55); }
.inbox-vl-slot { display: inline-flex; align-items: center; }

/* close control, present in every state */
.vl-x { margin-left: auto; width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center; border: 0; background: transparent; color: var(--ig-txt-3); cursor: pointer; transition: background .2s cubic-bezier(.2,.8,.2,1), color .2s cubic-bezier(.2,.8,.2,1), transform .15s cubic-bezier(.2,.8,.2,1); }
.vl-x svg { width: 15px; height: 15px; }
.vl-x:hover { background: color-mix(in srgb, var(--ig-txt) 7%, transparent); color: var(--ig-txt); }
.vl-x:active { transform: scale(.92); }
.vl-head__row--end { justify-content: flex-end; }
/* keep app wide input styles out of the search pill */
.vl-modal .vl-search input.vl-search__input { border: 0; border-radius: 0; box-shadow: none; padding: 0; margin: 0; background: transparent; height: 100%; }
.vl-modal .vl-search input.vl-search__input:focus { border: 0; box-shadow: none; outline: 0; }

/* Instagram campaign People row: the Vault chip (linked) or a quiet Link to Vault
   pill (unlinked) sits under the handle, so the actions column keeps its two buttons */
.igc .lic-person__sub:has(.igc-vault-chip, .igc-vault-link) { white-space: normal; overflow: visible; }
.igc .lic-person__sub .igc-vault-chip,
.igc .lic-person__sub .igc-vault-link { display: flex; width: max-content; max-width: 100%; margin-top: 5px; }
.igc .lic-person__sub .vl-chip__name { min-width: 0; }
.vl-chip--ghost { color: var(--d-txt-3); background: transparent; box-shadow: inset 0 0 0 1px var(--d-line); font-weight: 600; }
.vl-chip--ghost svg { width: 12px; height: 12px; flex: none; }
button.vl-chip--ghost:hover { color: #0F766E; background: rgba(15,118,110,.06); box-shadow: inset 0 0 0 1px rgba(15,118,110,.25); }
html.theme-night .vl-chip--ghost { color: var(--d-txt-3); background: transparent; box-shadow: inset 0 0 0 1px var(--d-line); }
html.theme-night button.vl-chip--ghost:hover { color: #5EEAD4; background: rgba(94,234,212,.08); box-shadow: inset 0 0 0 1px rgba(94,234,212,.22); }

/* Linked Vault profile: a relationship, not a tag. Cards get a profile row with a link badge on the
   face and a chevron; tables and thread headers get an inline "Vault" line with no pill fill. */
.vl-tie {
  display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; padding: 8px 10px 8px 8px; border: 0; border-radius: 12px; cursor: pointer; text-align: left;
  font: inherit; color: var(--ig-txt, #0F172A);
  background: linear-gradient(180deg, rgba(13,148,136,.055), rgba(13,148,136,.025));
  box-shadow: inset 0 1px 0 var(--ig-hi, rgba(255,255,255,.7)), inset 0 0 0 1px rgba(13,148,136,.14);
  transition: transform .16s cubic-bezier(.2,.8,.2,1), box-shadow .22s cubic-bezier(.2,.8,.2,1), background .22s; -webkit-tap-highlight-color: transparent;
}
.vl-tie:hover { box-shadow: inset 0 1px 0 var(--ig-hi, rgba(255,255,255,.7)), inset 0 0 0 1px rgba(13,148,136,.28), 0 8px 18px -14px rgba(13,148,136,.7); }
.vl-tie:active { transform: scale(.985); }
.vl-tie:focus-visible { outline: 2px solid rgba(13,148,136,.5); outline-offset: 2px; }
.vl-tie__face { position: relative; flex: none; display: grid; }
.vl-tie__face .vl-face { --s: 30px; font-size: 11px; }
.vl-tie__badge {
  position: absolute; right: -3px; bottom: -3px; width: 15px; height: 15px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: linear-gradient(180deg, #14B0A0, #0D9488); box-shadow: 0 0 0 2px var(--ig-card, #fff);
}
.vl-tie__badge svg { width: 9px; height: 9px; stroke-width: 2.6; }
.vl-tie__txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.vl-tie__eyebrow { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ig-teal, #0D9488); }
.vl-tie__name { display: flex; align-items: baseline; gap: 6px; min-width: 0; font-size: 13px; font-weight: 650; letter-spacing: -.005em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vl-tie__sub { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 12px; font-weight: 500; color: var(--ig-txt-3, #94A3B8); }
.vl-tie__chev { flex: none; display: grid; color: var(--ig-txt-3, #94A3B8); transition: transform .2s cubic-bezier(.2,.8,.2,1), color .2s; }
.vl-tie__chev svg { width: 15px; height: 15px; }
.vl-tie:hover .vl-tie__chev { transform: translateX(2px); color: var(--ig-teal, #0D9488); }
html.theme-night .vl-tie { color: var(--ig-txt, #F1F5F9); background: linear-gradient(180deg, rgba(94,234,212,.06), rgba(94,234,212,.025)); box-shadow: inset 0 1px 0 rgba(255,255,255,.04), inset 0 0 0 1px rgba(94,234,212,.14); }
html.theme-night .vl-tie:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.04), inset 0 0 0 1px rgba(94,234,212,.3); }
html.theme-night .vl-tie__eyebrow, html.theme-night .vl-tie:hover .vl-tie__chev { color: #5EEAD4; }
html.theme-night .vl-tie__badge { box-shadow: 0 0 0 2px var(--ig-card, #0F172A); }

/* inline form: link glyph, "Vault", face, name. No fill, no border, so it never reads as a pill */
.vl-tie--inline {
  display: inline-flex; width: auto; max-width: 100%; gap: 5px; padding: 1px 2px; border-radius: 6px; background: none; box-shadow: none;
  font-size: 12px; font-weight: 600; color: var(--ig-txt-2, #475569);
}
.vl-tie--inline:hover { background: none; box-shadow: none; color: var(--ig-teal, #0D9488); }
.vl-tie--inline:active { transform: scale(.97); }
.vl-tie__glyph { display: grid; color: var(--ig-teal, #0D9488); flex: none; }
.vl-tie__glyph svg { width: 12px; height: 12px; }
.vl-tie__lbl { color: var(--ig-teal, #0D9488); font-weight: 650; flex: none; }
.vl-tie__lbl::after { content: ""; display: inline-block; width: 3px; height: 3px; margin: 0 0 2px 6px; border-radius: 50%; background: currentColor; opacity: .5; vertical-align: middle; }
.vl-tie--inline .vl-face { --s: 16px; font-size: 8px; }
.vl-tie--inline .vl-tie__name { font-size: 12px; font-weight: 600; display: block; }
.vl-tie--inline:hover .vl-tie__name { text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(13,148,136,.45); }
html.theme-night .vl-tie--inline { background: none; box-shadow: none; color: var(--ig-txt-2, #CBD5E1); }
html.theme-night .vl-tie__glyph, html.theme-night .vl-tie__lbl, html.theme-night .vl-tie--inline:hover { color: #5EEAD4; }
