/* Groceries & Errands — voice add (voice.js). Uses the app's :root colours. */
.vc-mic { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--accent); background: var(--paper); color: var(--accent);
  display: inline-grid; place-items: center; padding: 0; }
.vc-mic svg { width: 22px; height: 22px; }
.vc-mic:active { background: var(--accent-soft); }
.add-line .vc-mic { width: 48px; height: 48px; margin-left: 4px; }

/* listening */
.vc { text-align: left; }
.vc h2 { padding-right: 40px; }
.vc-listen h2 { padding: 0 40px; }
.vc-listen { text-align: center; padding-bottom: 4px; }
.vc-listen h2 { margin-bottom: 4px; }
.vc-say { margin: 0 auto 18px; max-width: 320px; font-size: 15px; }
.vc-orb { position: relative; width: 112px; height: 112px; margin: 6px auto 18px; border-radius: 50%; background: var(--accent); color: var(--paper);
  display: grid; place-items: center; box-shadow: 0 0 0 6px var(--accent-soft); }
.vc-orb svg { width: 44px; height: 44px; position: relative; z-index: 1; }
.vc-orb::before, .vc-orb::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; animation: vc-pulse 1.8s ease-out infinite; }
.vc-orb::after { animation-delay: .9s; }
@keyframes vc-pulse { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.6); opacity: 0; } }
.vc-live { min-height: 3.2em; margin: 0 0 16px; font-family: var(--font-hand); font-size: 21px; line-height: 1.35; color: var(--muted); overflow-wrap: anywhere; }
.vc-live.has { color: var(--ink); }
.vc-listen .btn + .btn, .vc-err .btn + .btn { margin-top: 8px; }

/* errors */
.vc-msg { font-size: 16px; margin: 0 0 18px; }

/* review */
.vc-sub { margin: -6px 0 10px; }
.vc-note { background: var(--accent-soft); border-radius: var(--radius); padding: 10px 12px; margin: 0 0 10px; font-size: 15px; }
.vc-rows { list-style: none; margin: 0 0 14px; padding: 0; border-top: 1px solid var(--rule); }
.vc-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; border-bottom: 1px solid var(--rule); padding: 4px 0; }
.vc-row.editing { gap: 8px; padding: 8px 0; flex-wrap: nowrap; }
.vc-row.editing .input { min-width: 0; }
.vc-row.editing .btn { flex: none; min-width: 76px; white-space: nowrap; }
.vc-tick { flex: 1; min-width: 0; min-height: 56px; display: flex; align-items: center; gap: 12px; background: none; border: 0; padding: 6px 0; text-align: left; }
.vc-box { flex: none; width: 28px; height: 28px; border-radius: 6px; border: 2px solid var(--accent); display: grid; place-items: center; background: var(--accent); color: var(--paper); }
.vc-box svg { width: 20px; height: 20px; }
.vc-row.off .vc-box { background: var(--paper); }
.vc-row.off .vc-text { opacity: .5; text-decoration: line-through; text-decoration-color: var(--rule); }
.vc-text { display: flex; flex-direction: column; min-width: 0; }
.vc-main { font-family: var(--font-title); font-size: 20px; line-height: 1.25; overflow-wrap: anywhere; }
.vc-qty { font-family: var(--font-ui); font-size: 15px; color: var(--accent); font-weight: 500; }
.vc-arrow { color: var(--muted); }
.vc-target { font-weight: 600; }
.vc-meta { font-size: 13px; color: var(--muted); }
.vc-q { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--warn); color: var(--paper); font-family: var(--font-ui); font-size: 14px; font-weight: 600; vertical-align: 2px; }
.vc-edit { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid transparent; background: none; color: var(--accent); display: grid; place-items: center; }
.vc-edit svg { width: 20px; height: 20px; }
.vc-alts { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0 0 8px 40px; }
.vc-alts .chip { min-height: 44px; }
.vc-two { display: flex; gap: 10px; margin-top: 10px; }
.vc-two .btn { flex: 1; padding: 0 10px; }
.vc-where { text-align: center; margin: 10px 0 0; }

/* added toast with Undo */
.vc-toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabbar) + 60px + env(safe-area-inset-bottom)); z-index: 75;
  display: none; align-items: center; gap: 6px; background: var(--ink); color: var(--paper); padding: 4px 4px 4px 16px; border-radius: 999px; font-size: 15px; max-width: 94vw; white-space: nowrap; }
.vc-undo { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(251,248,241,.5); background: transparent; color: var(--paper); font-weight: 500; }

@media (prefers-reduced-motion: reduce) {
  .vc-orb::before, .vc-orb::after { animation: none; opacity: .35; transform: scale(1.25); }
  .vc-orb::after { display: none; }
}
