/* Voice Excel web tool — scoped to #vx so it never affects the rest of the site */
#vx {
  --vx-line: #DCE6F5; --vx-head: #F1F6FD; --vx-headSel: #D9EAFE; --vx-sel: rgba(30,136,229,.10);
  --vx-accent: #1E88E5; --vx-ink: #121640; --vx-muted: #4A5578; --vx-live: #D13438; --vx-flash: #FFF3B0; --vx-chrome: #F7FAFF;
  border: 1px solid var(--vx-line); border-radius: 20px; overflow: hidden; background: #fff;
  box-shadow: 0 24px 60px rgba(27,20,100,.10); display: flex; flex-direction: column; height: min(78vh, 680px);
  font: 14px/1.4 "Inter", "Segoe UI", system-ui, sans-serif; color: var(--vx-ink); text-align: left;
}
#vx { scroll-margin-top: 96px; }
#vx * { box-sizing: border-box; }
#vx button, #vx select, #vx .vx-btn { font: inherit; font-size: 13px; padding: 7px 12px; border: 1px solid var(--vx-line); border-radius: 999px;
  background: #fff; color: var(--vx-ink); cursor: pointer; line-height: 1.2; }
#vx button:hover, #vx .vx-btn:hover { border-color: var(--vx-accent); }
#vx .bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--vx-chrome); border-bottom: 1px solid var(--vx-line); flex-wrap: wrap; }
#vx .mic { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; font-weight: 600; color: #fff; border: 0;
  background: linear-gradient(100deg, #1E88E5, #1565C0 55%, #1B1464); font-family: "Space Grotesk", "Segoe UI", system-ui, sans-serif; }
#vx .mic.on { background: var(--vx-live); animation: vxpulse 1.6s infinite; }
#vx .mic.paused { background: #B7791F; }
#vx .mic.manual { background: #2B6CB0; }
@keyframes vxpulse { 0%,100% { box-shadow: 0 0 0 0 rgba(209,52,56,.45);} 50% { box-shadow: 0 0 0 7px rgba(209,52,56,0);} }
@media (prefers-reduced-motion: reduce) { #vx .mic.on { animation: none; } }
#vx .heard { flex: 1; min-width: 160px; display: flex; gap: 10px; align-items: baseline; overflow: hidden; white-space: nowrap; }
#vx #heard { color: var(--vx-muted); overflow: hidden; text-overflow: ellipsis; }
#vx #done { font-family: Consolas, monospace; color: var(--vx-accent); font-weight: 700; }
#vx .menu { display: flex; gap: 6px; flex-wrap: wrap; }
#vx .danger:hover { border-color: var(--vx-live); color: var(--vx-live); }
#vx .vx-note { margin: 0; padding: 8px 14px; background: #FFF6E5; color: #7A4B00; border-bottom: 1px solid #F3DDAE; font-size: 13px; }
#vx .formula { display: flex; align-items: center; gap: 6px; padding: 6px 14px; border-bottom: 1px solid var(--vx-line); background: #fff; }
#vx .formula input { border: 1px solid var(--vx-line); border-radius: 6px; padding: 5px 7px; background: #fff; color: var(--vx-ink); font: 13px Consolas, monospace; }
#vx .namebox { width: 92px; text-align: center; font-weight: 600; }
#vx #formulaBar { flex: 1; min-width: 0; }
#vx .fx { color: var(--vx-muted); font-style: italic; }
#vx .grid-wrap { flex: 1; overflow: auto; outline: none; position: relative; background: #fff; }
#vx .grid { border-collapse: separate; border-spacing: 0; table-layout: fixed; user-select: none; margin: 0; width: auto; font-size: 13px; }
#vx .grid th, #vx .grid td { border: 0; border-right: 1px solid var(--vx-line); border-bottom: 1px solid var(--vx-line); height: 26px; padding: 0 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 26px; }
#vx .grid td { width: 100px; min-width: 100px; max-width: 100px; cursor: cell; font-variant-numeric: tabular-nums; background: #fff; }
#vx .grid td.num { text-align: right; }
#vx .grid td.err { color: var(--vx-live); }
#vx .grid td.spill { overflow: visible; text-overflow: clip; position: relative; }
#vx .grid thead th { position: sticky; top: 0; z-index: 2; background: var(--vx-head); color: var(--vx-muted); font-weight: 600; text-align: center; }
#vx .grid tbody th { position: sticky; left: 0; z-index: 1; background: var(--vx-head); color: var(--vx-muted); font-weight: 600; width: 48px; min-width: 48px; text-align: center; }
#vx .grid thead th:first-child { left: 0; z-index: 3; width: 48px; }
#vx .grid th.hl { background: var(--vx-headSel); color: var(--vx-accent); }
#vx .grid td.insel { background: var(--vx-sel); }
#vx .grid td.active { outline: 2px solid var(--vx-accent); outline-offset: -2px; background: var(--vx-sel); }
#vx .grid td.flash { background: var(--vx-flash); transition: background .6s; }
#vx .grid td.editing { padding: 0; }
#vx .grid td input { width: 100%; height: 100%; border: 0; outline: 0; padding: 0 6px; font: inherit; background: #fff; color: var(--vx-ink); }
#vx .status { display: flex; justify-content: space-between; gap: 10px; padding: 6px 14px; background: var(--vx-chrome); border-top: 1px solid var(--vx-line); color: var(--vx-muted); font-size: 12px; }
#vx #statusRight { white-space: pre; }
#vx .toast { position: fixed; bottom: 36px; left: 50%; transform: translateX(-50%); background: #121640; color: #fff; padding: 9px 16px; border-radius: 10px; font-weight: 600; z-index: 60; }
.vx-ctxmenu { position: fixed; z-index: 70; min-width: 200px; padding: 4px; background: #fff; border: 1px solid #DCE6F5; border-radius: 10px;
  box-shadow: 0 10px 30px rgba(27,20,100,.18); font: 14px "Inter", "Segoe UI", system-ui, sans-serif; }
.vx-ctxmenu button { display: flex; justify-content: space-between; width: 100%; border: 0; border-radius: 6px; padding: 7px 10px; background: none; text-align: left; cursor: pointer; color: #121640; font: inherit; }
.vx-ctxmenu button:hover { background: rgba(30,136,229,.10); }
.vx-ctxmenu button span, .vx-ctxmenu .hint { color: #4A5578; font-size: 12px; }
.vx-ctxmenu .hint { padding: 4px 10px 2px; border-top: 1px solid #DCE6F5; margin-top: 4px; }
@media (max-width: 640px) {
  #vx { height: 72vh; border-radius: 14px; }
  #vx .heard { order: 5; flex-basis: 100%; }
}

/* page sections around the tool */
.vx-hero { padding: clamp(40px, 7vw, 80px) 0 28px; text-align: center; }
.vx-eyebrow { display: inline-block; padding: 6px 14px; border-radius: 999px; background: #EEF5FF; color: #1270CC; font-weight: 600; font-size: .85rem; letter-spacing: .04em; }
.vx-hero h1 { font-family: "Space Grotesk", "Segoe UI", system-ui, sans-serif; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.1; margin: 16px 0 12px; color: #121640; }
.vx-hero h1 span { background: linear-gradient(100deg, #4FB3F6, #1E88E5 45%, #1B1464); -webkit-background-clip: text; background-clip: text; color: transparent; }
.vx-lead { max-width: 720px; margin: 0 auto 24px; color: #4A5578; font-size: 1.1rem; }
.vx-section { padding: 36px 0; }
.vx-section h2 { font-family: "Space Grotesk", "Segoe UI", system-ui, sans-serif; font-size: clamp(1.5rem, 3vw, 2rem); color: #121640; margin: 0 0 14px; }
.vx-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.vx-video { width: 100%; max-width: 820px; display: block; margin: 0 auto; border-radius: 20px; box-shadow: 0 24px 60px rgba(27,20,100,.14); background: #1B1464; aspect-ratio: 16 / 9; }
.vx-say { width: 100%; border-collapse: collapse; font-size: .97rem; }
.vx-say td { padding: 10px 12px; border-top: 1px solid rgba(27,80,190,.13); vertical-align: top; }
.vx-say td:first-child { color: #1270CC; font-weight: 600; width: 46%; }
.vx-steps { margin: 0; padding-left: 1.2em; color: #4A5578; }
.vx-steps li { margin: 6px 0; }
.vx-badge { display: inline-block; font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: #FFF6E5; color: #7A4B00; margin-left: 8px; vertical-align: middle; }
.vx-small { color: #4A5578; font-size: .92rem; }
.vx-wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.vx-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.vx-brand-text b { font-family: "Space Grotesk", "Segoe UI", system-ui, sans-serif; font-size: 1.1rem; color: #121640; }
.vx-brand-text small { color: #4A5578; font-size: .78rem; }
.vx-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.vx-tool-section { padding-top: 10px; }
.vx-fine { text-align: center; margin-top: 12px; color: #4A5578; font-size: .92rem; }
.vx-cards > * { min-width: 0; }
.vx-say { table-layout: fixed; min-width: 0 !important; width: 100%; }
.vx-say td { overflow-wrap: anywhere; }
@media (max-width: 640px) { .vx-say td:first-child { width: 50%; } .vx-video { border-radius: 14px; } }
/* keep the site's general table styles away from the sheet */
#vx .grid { min-width: 0 !important; width: max-content !important; font-size: 13px; }
#vx .grid thead th:not(:first-child) { width: 100px; min-width: 100px; max-width: 100px; }
#vx .grid th, #vx .grid td { text-transform: none; letter-spacing: 0; font-size: 13px; vertical-align: middle; }
#vx .grid tr { background: none; }
#vx .grid td { color: var(--vx-ink); text-align: left; } #vx .grid td.num { text-align: right; } #vx .grid th { font-family: "Inter", "Segoe UI", system-ui, sans-serif; } #vx .grid tr:last-child td { border-bottom: 1px solid var(--vx-line); }
#vx .grid { display: table !important; } #vx .grid thead { display: table-header-group !important; } #vx .grid tbody { display: table-row-group !important; } #vx .grid tr { display: table-row !important; } #vx .grid th, #vx .grid td { display: table-cell !important; }
#vx .vx-mode { font-weight: 600; background: #EEF5FF; color: #1270CC; border-color: #CFE2FB; white-space: nowrap; }
#vx .vx-mode.text { background: #FFF3E0; color: #9A5B00; border-color: #F3D9AE; }
#vx .vx-prompt { margin: 0; padding: 9px 14px; background: #EEF5FF; color: #1B1464; border-bottom: 1px solid var(--vx-line); font-weight: 600; font-size: 14px; }
#vx .vx-ask { display: flex; gap: 12px; align-items: center; padding: 12px 16px; background: linear-gradient(100deg, #EEF5FF, #F6FAFF); border-bottom: 1px solid var(--vx-line); color: #121640; font-size: 14px; line-height: 1.45; }
#vx .vx-ask[hidden] { display: none; }
#vx .vx-ask.prompt { background: #FFF8E6; }
#vx .vx-ask.denied { background: #FDECEC; }
#vx .vx-ask-ico { font-size: 22px; }
#vx .vx-ask div { flex: 1; }
#vx .vx-ask .vx-ask-btn { flex: none; border: 0; color: #fff; font-weight: 600; background: linear-gradient(100deg, #1E88E5, #1565C0 55%, #1B1464); }
