/* Quick Create — loaded only on redesign pages that expose the composer. */
.viza-redesign #quick-create-overlay .quick-create-sheet,
.viza-redesign #template-use-overlay .quick-create-sheet {
  width: min(540px, calc(100vw - 28px));
  max-width: 540px;
  height: auto;
  max-height: min(760px, calc(100dvh - 28px));
  overflow: hidden;
  border: 1px solid var(--vz-line-strong);
  border-radius: 24px;
  background: #111728;
  box-shadow: var(--vz-shadow-lg);
}

.viza-redesign .quick-create-header { padding: 18px 20px 10px; }
.viza-redesign .quick-create-header h3 { margin: 0; font-size: 22px; letter-spacing: -.025em; }
.viza-redesign .quick-create-header-title-wrap { display: flex; align-items: center; gap: 8px; min-width: 0; }
.viza-redesign .quick-create-close,
.viza-redesign .quick-create-back-btn {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--vz-text-3);
}
.viza-redesign .quick-create-close:hover,
.viza-redesign .quick-create-back-btn:hover { background: rgba(255,255,255,.06); color: #fff; }
.viza-redesign .quick-create-sheet button:focus-visible {
  outline: 2px solid #a78bfa !important;
  outline-offset: 2px;
}
.viza-redesign .quick-create-sheet button:focus:not(:focus-visible) {
  outline: 0 !important;
}

.viza-redesign .quick-create-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: calc(100dvh - 92px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 8px 20px 20px;
}

.viza-redesign .quick-create-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--vz-line);
  border-radius: 14px;
  background: rgba(5,8,17,.62);
}
.viza-redesign .quick-create-tabs .segment-btn {
  min-height: 40px;
  flex: 1;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--vz-text-3);
  font-weight: 800;
}
.viza-redesign .quick-create-tabs .segment-btn.is-active {
  background: rgba(139,92,246,.24);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(167,139,250,.44);
}

.viza-redesign .quick-create-composer {
  position: relative;
  padding: 12px;
  border: 1px solid var(--vz-line);
  border-radius: 17px;
  background: #090e1c;
}
.viza-redesign .quick-create-composer:focus-within {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 4px rgba(139,92,246,.13);
}
.viza-redesign .quick-create-textarea {
  box-sizing: border-box;
  display: block;
  width: 100%;
  min-height: 126px;
  padding: 2px 32px 8px 2px;
  border: 0;
  outline: 0 !important;
  resize: vertical;
  background: transparent;
  color: var(--vz-text);
  font: inherit;
  font-size: 15px;
  line-height: 1.5;
}
.viza-redesign .quick-create-textarea::placeholder { color: #69738a; }
.viza-redesign .quick-create-clear-btn {
  position: absolute;
  top: 9px;
  right: 9px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--vz-text-3);
}
.viza-redesign .quick-create-actions { display: flex; align-items: center; gap: 8px; margin-top: 5px; }
.viza-redesign .quick-create-icon-btn {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  min-width: 44px;
  place-items: center;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--vz-line);
  border-radius: 12px;
  background: rgba(255,255,255,.045);
  color: var(--vz-text-2);
}
.viza-redesign .quick-create-icon-btn:hover { border-color: rgba(167,139,250,.5); color: #fff; }
.viza-redesign .quick-create-image-thumb { width: 100%; height: 100%; object-fit: cover; }
.viza-redesign .quick-create-image-thumb:not(.hidden) + i { display: none; }
.viza-redesign .quick-create-submit {
  display: inline-flex;
  min-width: 176px;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-left: auto;
  padding: 0 17px;
  border: 0;
  border-radius: 12px;
  background: var(--vz-gradient);
  color: #fff;
  font-weight: 820;
  box-shadow: 0 9px 25px rgba(109,93,252,.24);
}
.viza-redesign .quick-create-submit-price { display: inline-flex; align-items: center; gap: 4px; }
.viza-redesign .quick-create-helper-text {
  margin: 0;
  color: var(--vz-text-2);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}
.viza-redesign .quick-create-advanced-link { color: #bca9ff; font-weight: 750; }
.viza-redesign .quick-create-credit-balance { margin: 0; color: var(--vz-text-3); font-size: 11px; text-align: center; }
.viza-redesign .quick-create-image-status { display: flex; align-items: center; gap: 6px; color: var(--vz-green); font-size: 12px; }

.viza-redesign .quick-create-entry-subtitle { margin: 0 0 10px; color: var(--vz-text-2); text-align: center; }
.viza-redesign .quick-create-entry-list { display: grid; gap: 9px; }
.viza-redesign .quick-create-entry-btn {
  display: grid;
  grid-template-columns: 44px minmax(0,1fr) 22px;
  gap: 11px;
  width: 100%;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--vz-line);
  border-radius: 15px;
  background: rgba(20,26,44,.76);
  color: var(--vz-text);
  text-align: left;
}
.viza-redesign .quick-create-entry-btn:hover { border-color: rgba(167,139,250,.44); background: rgba(139,92,246,.08); }
.viza-redesign .quick-create-entry-icon { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 13px; background: rgba(139,92,246,.16); color: #bca9ff; }
.viza-redesign .quick-create-entry-copy { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.viza-redesign .quick-create-entry-title { font-weight: 800; }
.viza-redesign .quick-create-entry-description { color: var(--vz-text-3); font-size: 12px; line-height: 1.4; }
.viza-redesign .quick-create-entry-arrow { color: var(--vz-text-3); text-align: center; }
.viza-redesign .quick-create-entry-templates-link { display: flex; justify-content: center; gap: 7px; margin-top: 28px; padding-top: 12px; border-top: 1px solid var(--vz-line); color: #bca9ff; font-size: 13px; font-weight: 750; }

.viza-redesign .quick-video-filter-row { display: flex; gap: 8px; min-width: 0; }
.viza-redesign .quick-video-search-shell {
  display: flex;
  min-width: 0;
  flex: 1 1 46%;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 11px;
  border: 1px solid var(--vz-line);
  border-radius: 12px;
  background: #090e1c;
  color: var(--vz-text-3);
}
.viza-redesign #quick-create-overlay .quick-video-search-shell {
  position: relative;
  box-sizing: border-box;
}
.viza-redesign #quick-create-overlay .quick-video-search-shell > i {
  flex: 0 0 auto;
  pointer-events: none;
}
.viza-redesign #quick-create-overlay .quick-video-search-input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--vz-text);
  appearance: none;
}
.viza-redesign #quick-create-overlay .quick-video-search-input:focus {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}
.viza-redesign #quick-create-overlay .quick-video-search-input::-webkit-search-decoration,
.viza-redesign #quick-create-overlay .quick-video-search-input::-webkit-search-cancel-button {
  appearance: none;
}
.viza-redesign .quick-video-category-shell { min-width: 0; flex: 1 1 54%; overflow: hidden; }
.viza-redesign .quick-video-category-strip { display: flex; gap: 5px; overflow-x: auto; padding: 3px 0 6px; scrollbar-width: none; }
.viza-redesign .quick-video-category-strip::-webkit-scrollbar,
.viza-redesign .quick-video-template-strip::-webkit-scrollbar { display: none; }
.viza-redesign .quick-video-category-btn { flex: 0 0 auto; min-height: 34px; padding: 0 10px; border: 0; border-radius: 999px; background: transparent; color: var(--vz-text-3); font-size: 11px; font-weight: 750; white-space: nowrap; }
.viza-redesign .quick-video-category-btn.is-selected { background: rgba(139,92,246,.18); color: #fff; }
.viza-redesign .quick-video-template-strip { display: flex; gap: 9px; overflow-x: auto; padding: 4px 1px 8px; scroll-snap-type: x proximity; scrollbar-width: none; }
.viza-redesign .quick-video-template-card { flex: 0 0 92px; width: 92px; padding: 0; border: 0; background: transparent; color: var(--vz-text-3); scroll-snap-align: start; }
.viza-redesign .quick-video-template-thumb-wrap { position: relative; display: block; width: 92px; aspect-ratio: 1; overflow: hidden; border: 1px solid var(--vz-line); border-radius: 12px; }
.viza-redesign .quick-video-template-thumb { width: 100%; height: 100%; object-fit: cover; }
.viza-redesign .quick-video-template-name { display: block; margin-top: 5px; overflow: hidden; font-size: 10px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.viza-redesign .quick-video-template-card.is-selected .quick-video-template-thumb-wrap { border: 2px solid #a78bfa; box-shadow: 0 0 0 3px rgba(139,92,246,.15); }
.viza-redesign .quick-video-template-card.is-selected:focus-visible,
.viza-redesign #template-use-overlay .create-connection-card.is-selected:focus-visible {
  outline: 0 !important;
}
.viza-redesign .quick-video-template-badge { position: absolute; top: 4px; right: 4px; display: grid; width: 19px; height: 19px; place-items: center; border-radius: 50%; background: rgba(5,8,17,.72); font-size: 9px; }
.viza-redesign .quick-video-player-shell { margin: 2px 0; padding: 9px 11px; border: 1px solid var(--vz-line); border-radius: 14px; background: #090e1c; }
.viza-redesign .quick-video-player { display: flex; align-items: center; gap: 10px; }
.viza-redesign .quick-video-player .play-btn { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border: 0; border-radius: 50%; background: var(--vz-gradient); color: #fff; }
.viza-redesign .quick-video-seek-wrap { display: grid; grid-template-columns: 34px minmax(0,1fr) 34px; gap: 7px; width: 100%; align-items: center; color: var(--vz-text-3); font-size: 10px; }
.viza-redesign .quick-video-seek-wrap input { width: 100%; accent-color: #8b5cf6; }
.viza-redesign .quick-video-use-btn { width: 100%; margin: 4px 0 0; }

.viza-redesign .quick-video-template-strip-loading-cards { display: flex; gap: 9px; overflow: hidden; }
.viza-redesign .quick-video-template-skeleton-card { flex: 0 0 92px; }
.viza-redesign .quick-video-template-skeleton-thumb { width: 92px; aspect-ratio: 1; border-radius: 12px; background: var(--vz-surface-3); }
.viza-redesign .quick-video-template-skeleton-line { width: 76px; height: 8px; margin: 6px auto 0; border-radius: 99px; background: var(--vz-surface-3); }

/* The second Quick Video step uses the same quiet, optional avatar language as
   the full create flow. It is deliberately not a grid of call-to-action cards. */
.viza-redesign #template-use-overlay .tpl-use-sheet {
  width: min(580px, calc(100vw - 28px));
  max-width: 580px;
}
.viza-redesign #template-use-overlay .tpl-use-body { gap: 10px; }
.viza-redesign #template-use-overlay .tpl-use-wrap {
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 10px;
}
.viza-redesign #template-use-overlay .tpl-use-top {
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 8px;
}
.viza-redesign #template-use-overlay .tpl-use-image-wrap {
  position: relative;
  display: grid;
  width: 100%;
  height: clamp(210px, 34dvh, 310px);
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--vz-line);
  border-radius: 16px;
  background: #080d19;
}
.viza-redesign #template-use-overlay .tpl-use-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
}
.viza-redesign #template-use-overlay .tpl-use-image-slot-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.viza-redesign #template-use-overlay .tpl-use-image-slot-badge {
  position: absolute;
  top: 50%;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 2px solid rgba(255,255,255,.88);
  border-radius: 50%;
  background: rgba(11,15,28,.74);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  transform: translate(-50%, -50%);
  box-shadow: 0 8px 22px rgba(0,0,0,.32);
}
.viza-redesign #template-use-overlay .tpl-use-prompt {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.viza-redesign #template-use-overlay .tpl-use-prompt-text {
  display: -webkit-box;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  color: var(--vz-text-2);
  font-size: 12px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.viza-redesign #template-use-overlay .tpl-use-prompt-text.is-expanded {
  display: block;
  height: auto;
  max-height: none;
  overflow: visible;
  -webkit-box-orient: initial;
  -webkit-line-clamp: unset;
}
.viza-redesign #template-use-overlay .tpl-use-prompt-toggle {
  flex: 0 0 auto;
  padding: 1px 0;
  border: 0;
  background: transparent;
  color: #bca9ff;
  font-size: 11px;
  font-weight: 750;
}
.viza-redesign #template-use-overlay .tpl-use-connections-shell {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.viza-redesign #template-use-overlay .tpl-use-connections-label {
  margin: 0 0 7px;
  color: var(--vz-text-2);
  font-size: 12px;
  font-weight: 800;
}
.viza-redesign #template-use-overlay .tpl-use-connections-list {
  display: flex;
  width: 100%;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 7px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.viza-redesign #template-use-overlay .tpl-use-connections-list::-webkit-scrollbar { display: none; }
.viza-redesign #template-use-overlay .create-connection-card {
  display: flex;
  width: 64px;
  min-width: 64px;
  min-height: 0;
  flex: 0 0 64px;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  color: var(--vz-text-3);
  scroll-snap-align: start;
}
.viza-redesign #template-use-overlay .create-connection-avatar-wrap {
  position: relative;
  display: block;
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
}
.viza-redesign #template-use-overlay .home-following-avatar {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 2px solid rgba(184,194,225,.18);
  border-radius: 50%;
  object-fit: cover;
  background: #222a3d;
  color: #d7dceb;
  font-weight: 800;
}
.viza-redesign #template-use-overlay .create-connection-card:hover .home-following-avatar {
  border-color: rgba(184,194,225,.42);
}
.viza-redesign #template-use-overlay .create-connection-card.is-selected .home-following-avatar {
  border-color: #a78bfa;
  box-shadow: 0 0 0 3px rgba(139,92,246,.18);
}
.viza-redesign #template-use-overlay .home-following-username {
  display: block;
  width: 64px;
  overflow: hidden;
  color: var(--vz-text-3);
  font-size: 9px;
  line-height: 1.25;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.viza-redesign #template-use-overlay .create-connection-card.is-selected .home-following-username {
  color: var(--vz-text);
}
.viza-redesign #template-use-overlay .create-connection-check {
  position: absolute;
  right: -2px;
  bottom: -1px;
  display: none;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 2px solid #111728;
  border-radius: 50%;
  background: #8b5cf6;
  color: #fff;
  font-size: 8px;
  font-weight: 850;
}
.viza-redesign #template-use-overlay .create-connection-card.is-selected .create-connection-check {
  display: grid;
}
.viza-redesign #template-use-overlay .create-upload-delete {
  position: absolute;
  top: -4px;
  left: -4px;
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  padding: 0;
  border: 2px solid #111728;
  border-radius: 50%;
  background: #30384d;
  color: #fff;
  font-size: 12px;
  line-height: 1;
}
.viza-redesign #template-use-overlay .tpl-use-card-spinner {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(9,14,28,.76);
  color: #bca9ff;
}
.viza-redesign #template-use-overlay .tpl-use-actions {
  justify-content: center;
  margin: 1px 0 0;
}
.viza-redesign #template-use-overlay .tpl-use-actions .quick-create-submit {
  width: min(100%, 360px);
  margin: 0;
}

@media (max-width: 599px) {
  .viza-redesign #quick-create-overlay .quick-create-sheet,
  .viza-redesign #template-use-overlay .quick-create-sheet {
    width: 100%;
    max-width: none;
    max-height: calc(100dvh - var(--header-height-mobile));
    border-radius: 22px 22px 0 0;
  }
  .viza-redesign .quick-create-header { padding: 14px 16px 7px; }
  .viza-redesign .quick-create-body { padding: 7px 14px calc(18px + env(safe-area-inset-bottom)); }
  .viza-redesign .quick-create-textarea { min-height: 112px; }
  .viza-redesign .quick-create-actions { gap: 7px; }
  .viza-redesign .quick-create-icon-btn { width: 42px; height: 42px; min-width: 42px; }
  .viza-redesign .quick-create-submit { min-width: 0; min-height: 44px; flex: 1 1 auto; padding-inline: 10px; }
  .viza-redesign .quick-video-filter-row { flex-direction: column; }
  .viza-redesign .quick-video-search-shell,
  .viza-redesign .quick-video-category-shell { max-width: none; flex-basis: auto; }
  .viza-redesign #template-use-overlay .tpl-use-sheet {
    width: 100%;
    max-width: none;
  }
  .viza-redesign #template-use-overlay .tpl-use-image-wrap {
    height: min(34dvh, 280px);
    min-height: 190px;
    transition: height .2s ease, min-height .2s ease;
  }
  /* The submit action remains in view on the mobile sheet. Reclaim preview
     space when the prompt is expanded so its full text and connections stay
     in the normal layout flow instead of competing for the fixed viewport. */
  .viza-redesign #template-use-overlay.tpl-use-prompt-expanded .tpl-use-image-wrap {
    height: min(22dvh, 180px);
    min-height: 150px;
  }
  .viza-redesign #template-use-overlay .create-connection-card {
    width: 58px;
    min-width: 58px;
    flex-basis: 58px;
  }
  .viza-redesign #template-use-overlay .create-connection-avatar-wrap,
  .viza-redesign #template-use-overlay .home-following-avatar {
    width: 46px;
    height: 46px;
  }
  .viza-redesign #template-use-overlay .create-connection-avatar-wrap { flex-basis: 46px; }
  .viza-redesign #template-use-overlay .home-following-username { width: 58px; }
}
