/* Vocly mobile beta add-on styles (live-release bridge). Mirrors components/MobileAppsDialog.css. */
.vi-mobile-apps-dialog {
  width: min(620px, calc(100vw - 32px));
  max-height: min(820px, calc(100dvh - 32px));
  margin: auto;
  padding: 28px;
  border: 1px solid var(--vi-line);
  border-radius: 10px;
  background: var(--vi-background);
  color: var(--vi-ink);
  box-shadow: var(--vi-shadow);
}
.vi-mobile-apps-dialog::backdrop { background: rgba(26, 23, 20, 0.42); }
.vi-mobile-platform {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px;
  margin-top: 14px;
  border: 1px solid var(--vi-line);
  border-radius: 10px;
  background: var(--vi-surface, #fff);
}
.vi-mobile-platform-copy { flex: 1; min-width: 0; }
.vi-mobile-platform h3 { margin: 0 0 8px; font-size: 19px; }
.vi-mobile-platform p { margin: 0; color: var(--vi-muted); line-height: 1.6; }
.vi-mobile-platform ol { margin: 0; padding-left: 22px; list-style: decimal; color: var(--vi-muted); line-height: 1.7; }
.vi-mobile-platform ol li { display: list-item; padding-left: 2px; }
.vi-mobile-platform ol strong { color: var(--vi-ink); }
.vi-mobile-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.vi-mobile-actions .vi-button { gap: 6px; }
.vi-mobile-qr { margin: 0; text-align: center; flex-shrink: 0; }
.vi-mobile-qr img { display: block; border-radius: 8px; border: 1px solid var(--vi-line); background: #fff; padding: 6px; }
.vi-mobile-qr figcaption { margin-top: 8px; font-size: 12px; color: var(--vi-muted); max-width: 132px; }
.vi-mobile-note { margin: 16px 0 0; font-size: 13px; color: var(--vi-muted); }
/* On a phone the links are tapped directly; a QR code there is no use. */
@media (max-width: 640px) { .vi-mobile-qr { display: none; } .vi-mobile-platform { padding: 16px; } }

.vi-mobile-promo {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  margin: 0 0 20px;
  border: 1px solid var(--vi-line);
  border-radius: 10px;
  background: var(--vi-accent-soft);
}
.vi-mobile-promo p { flex: 1; margin: 0; color: var(--vi-ink); line-height: 1.5; }
.vi-mobile-promo .vi-dialog-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; flex-shrink: 0; }
.vi-mobile-promo-close {
  width: 36px; height: 36px; display: grid; place-items: center; flex-shrink: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--vi-muted); cursor: pointer;
}
@media (max-width: 640px) { .vi-mobile-promo { flex-wrap: wrap; } .vi-mobile-promo p { flex-basis: calc(100% - 100px); } }

/* Add-on specific: items injected into the live menus reuse their host styles. */
.vi-more-destinations button[data-vocly-mobile-beta] svg,
.vi-account-action[data-vocly-mobile-beta] svg { flex-shrink: 0; }
.vi-mobile-apps-dialog .vi-dialog-close { cursor: pointer; }
.vi-mobile-apps-dialog .vi-mobile-actions a { text-decoration: none; }
.vi-mobile-roadmap-link { font-weight: 700; text-decoration: underline; cursor: pointer; }
@media (prefers-reduced-motion: no-preference) {
  .vi-mobile-apps-dialog[open] { animation: vi-mobile-in 160ms ease-out; }
  @keyframes vi-mobile-in { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }
}

/* Three top-bar actions on small phones: icon above a one-line label. */
@media (max-width: 480px) {
  .vi-beta-actions:has(.vi-beta-mobile) .vi-beta-action { flex: 1 1 auto; flex-direction: column; gap: 3px; padding: 6px 4px; font-size: 11.5px; white-space: nowrap; }
}

/* First-moment tour: soft spotlight plus a small card. */
.vi-tour { position: fixed; inset: 0; z-index: 9999; pointer-events: none; }
.vi-tour-spot { position: fixed; border-radius: 22px; box-shadow: 0 0 0 9999px rgba(26, 23, 20, 0.38); outline: 3px solid #FF6A3D; }
.vi-tour-card { position: fixed; pointer-events: auto; box-sizing: border-box; background: #FFFFFF; color: #1A1714; border-radius: 18px; padding: 18px;
  box-shadow: 0 24px 60px rgba(26, 23, 20, 0.28); font-family: inherit; }
.vi-tour-step { margin: 0 0 4px; font-size: 12px; font-weight: 700; color: #BA4D2D; letter-spacing: .04em; text-transform: uppercase; }
.vi-tour-card h2 { margin: 0; font-size: 19px; line-height: 1.25; letter-spacing: -0.01em; }
.vi-tour-body { margin: 6px 0 0; font-size: 15px; line-height: 1.5; color: #5C554C; }
.vi-tour-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.vi-tour-actions button { min-height: 42px; padding: 0 16px; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.vi-tour-primary { border: 0; background: linear-gradient(90deg, #FF8A3D, #FF5E3A); color: #1A1714; }
.vi-tour-quiet { border: 1.5px solid #E9E3D9; background: #FFFFFF; color: #1A1714; }
.vi-tour-actions button:focus-visible { outline: 3px solid #FF6A3D; outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) { .vi-tour-card { animation: vi-tour-in 180ms ease-out; } @keyframes vi-tour-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } } }
.vi-tour-extras { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #E9E3D9; font-size: 13px; color: #726A60; }
.vi-tour-link { border: 0; background: none; padding: 6px 0; min-height: 32px; font: inherit; font-size: 14px; font-weight: 700; color: #BA4D2D; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.vi-tour-link:focus-visible { outline: 3px solid #FF6A3D; outline-offset: 2px; border-radius: 6px; }
/* Lesson pictures being created: the waiting Vocly o over the shimmer (same as MomentPolish.css in the React app). */
.vi-picture-pending { position: relative; }
.vi-picture-pending .vi-picture-waiting { position: absolute; inset: 0; z-index: 1; display: grid; place-content: center; justify-items: center; gap: 8px; color: var(--vi-ink, #1A1714); font-size: 13px; font-weight: 600; }
.vi-picture-pending .vi-picture-waiting > span:last-child:not(.vi-loading-smiley) { color: var(--vi-ink-2, #5C554C); }
.vi-picture-waiting .vi-loading-smiley { display: inline-flex; flex: none; color: var(--vi-ink, #1A1714); }
.vi-picture-waiting .vi-loading-smiley svg { animation: vi-loading-breathe 3.6s ease-in-out infinite; }
.vi-picture-waiting .vi-loading-smiley-eyes { transform-box: fill-box; transform-origin: center; animation: vi-loading-blink 4.8s linear infinite; }
.vi-picture-waiting .vi-loading-smiley-gaze { transform-box: fill-box; transform-origin: center top; }
.vi-picture-waiting .vi-loading-smiley[data-variant='painting'] .vi-loading-smiley-gaze { animation: vi-smiley-paint 7s ease infinite; }
.vi-picture-waiting .vi-loading-smiley:not([data-active='true']) svg,
.vi-picture-waiting .vi-loading-smiley:not([data-active='true']) .vi-loading-smiley-eyes,
.vi-picture-waiting .vi-loading-smiley:not([data-active='true']) .vi-loading-smiley-gaze { animation-play-state: paused; }
@keyframes vi-loading-breathe { 50% { transform: scale(1.025); } }
@keyframes vi-loading-blink { 0%, 44%, 49%, 100% { transform: scaleY(1); } 46% { transform: scaleY(.12); } }
@keyframes vi-smiley-paint { 0%, 100% { transform: none; } 15%, 28% { transform: translate(-6px, 2px); } 40%, 55% { transform: translate(5px, -5px); } 65%, 75% { transform: translate(6px, 3px); } }
@media (prefers-reduced-motion: reduce) {
  .vi-picture-waiting .vi-loading-smiley svg, .vi-picture-waiting .vi-loading-smiley-eyes, .vi-picture-waiting .vi-loading-smiley-gaze { animation: none !important; transform: none !important; }
}
