/* media1 (drop 1): voice mode, meeting notes, interpreter. Prefix m1-. Every rule is scoped to m1- classes, so the page
   looks exactly as before while the switch is off. Uses the app's own colour tokens (light and dark). */
html.m1-lock, html.m1-lock body { overflow: hidden; }
.m1-ov { position: fixed; inset: 0; z-index: 2147483200; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(7, 18, 40, .46); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: m1-fade .18s ease-out; }
@keyframes m1-fade { from { opacity: 0 } to { opacity: 1 } }
.m1-sheet { position: relative; display: flex; flex-direction: column; width: 100%; max-width: 640px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  background: var(--app-bg, #fff); color: var(--app-text, #0f1524); border: 1px solid var(--app-border, #e4e8f2); border-radius: 18px;
  box-shadow: var(--app-shadow-lg, 0 24px 70px rgba(15, 21, 36, .16)); overflow: hidden; font-size: 15px; line-height: 1.5; }
.m1-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 18px; border-bottom: 1px solid var(--app-border, #e4e8f2); flex: none; }
.m1-title { margin: 0; font-size: 16.5px; font-weight: 750; letter-spacing: -.01em; flex: 1; min-width: 0; }
.m1-head-x { display: flex; gap: 4px; }
.m1-body { padding: 16px 18px 18px; overflow: auto; -webkit-overflow-scrolling: touch; flex: 1; min-height: 0; }
.m1-ib { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; border: 0; background: transparent; color: var(--app-text-dim, #57617a); cursor: pointer; }
.m1-ib:hover { background: var(--bg-card-hi, rgba(49, 97, 232, .08)); color: var(--app-text, #0f1524); }
.m1-ib:focus-visible, .m1-pill:focus-visible, .m1-round:focus-visible, .m1-chipbtn:focus-visible, .m1i-mic:focus-visible, .m1-link:focus-visible { outline: 3px solid var(--accent, #3161E8); outline-offset: 2px; }
.m1-onair { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; background: #dc2626; color: #fff; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.m1-onair[hidden] { display: none; }
.m1-onair i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: m1-blink 1.2s infinite; }
@keyframes m1-blink { 50% { opacity: .25 } }
.m1-pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent;
  background: var(--accent, #3161E8); color: #fff; font: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer; }
.m1-pill:hover { background: var(--accent-b, #1F44B0); }
.m1-pill[disabled] { opacity: .55; cursor: default; }
.m1-pill[hidden], .m1-round[hidden] { display: none; }
.m1-ghost { background: transparent; color: var(--app-text, #0f1524); border-color: var(--app-border-hi, #d3d9ea); }
.m1-ghost:hover { background: var(--bg-card-hi, #eef2fa); }
.m1-danger { background: #dc2626; color: #fff; }
.m1-danger:hover { background: #b91c1c; }
.m1-round { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 50%; border: 1px solid var(--app-border-hi, #d3d9ea);
  background: var(--app-bg, #fff); color: var(--app-text, #0f1524); cursor: pointer; flex: none; }
.m1-round.is-off { background: var(--app-text, #0f1524); color: var(--app-bg, #fff); }
.m1-round.m1-danger { border-color: transparent; color: #fff; background: #dc2626; }
.m1-round.m1-danger:hover { background: #b91c1c; }
.m1-link { border: 0; background: none; padding: 0; color: var(--accent, #3161E8); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.m1-err { display: flex; align-items: flex-start; gap: 8px; margin: 10px 0 0; padding: 9px 12px; border-radius: 10px; background: rgba(208, 69, 58, .09); color: #b42318; font-size: 13.5px; font-weight: 600; }
.m1-err[hidden] { display: none; }
.m1-err svg { flex: none; margin-top: 1px; }
.m1-fielderr { display: block; margin: 4px 0 8px; color: #b42318; font-style: normal; font-size: 13px; font-weight: 600; }
.m1-fielderr[hidden] { display: none; }
[data-theme="dark"] .m1-err, [data-theme="dark"] .m1-fielderr { color: #ff9b90; }
.m1-fine { margin: 10px 0 0; font-size: 12.5px; color: var(--app-text-dim, #57617a); }
.m1-field { display: grid; gap: 5px; margin: 10px 0; font-size: 13px; font-weight: 650; color: var(--app-text-dim, #57617a); }
.m1-field[hidden] { display: none; }
.m1-field select, .m1-field input[type="text"], .m1-field textarea { width: 100%; box-sizing: border-box; min-height: 42px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--app-border-hi, #d3d9ea);
  background: var(--app-bg, #fff); color: var(--app-text, #0f1524); font: inherit; font-size: 15px; font-weight: 500; }
.m1-field textarea { min-height: 180px; line-height: 1.5; resize: vertical; }
.m1-field input[type="range"] { width: 100%; accent-color: var(--accent, #3161E8); }
.m1-field select:focus, .m1-field input:focus, .m1-field textarea:focus { outline: 0; border-color: var(--accent, #3161E8); box-shadow: 0 0 0 3px var(--accent-soft, rgba(49, 97, 232, .15)); }
.m1-field em { font-style: normal; color: var(--app-text, #0f1524); }
.m1-row { display: flex; flex-wrap: wrap; gap: 0 12px; }
.m1-grow { flex: 1 1 220px; }
.m1-inline { display: inline-grid; margin-right: 10px; min-width: 140px; }
.m1-switch, .m1-check, .m1-radio { display: flex; align-items: flex-start; gap: 10px; margin: 10px 0; cursor: pointer; }
.m1-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.m1-track { flex: none; position: relative; width: 40px; height: 24px; border-radius: 999px; background: var(--app-border-hi, #d3d9ea); transition: background .15s; margin-top: 1px; }
.m1-track i { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s; }
.m1-switch input:checked + .m1-track { background: var(--accent, #3161E8); }
.m1-switch input:checked + .m1-track i { transform: translateX(16px); }
.m1-switch input:focus-visible + .m1-track { outline: 3px solid var(--accent, #3161E8); outline-offset: 2px; }
.m1-switch b, .m1-radio b { display: block; font-size: 14px; }
.m1-switch small, .m1-radio small { display: block; color: var(--app-text-dim, #57617a); font-size: 12.5px; }
.m1-check input, .m1-radio input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--accent, #3161E8); }
.m1-check.is-bad span { color: #b42318; }
.m1-check.is-bad input { outline: 2px solid #d0453a; outline-offset: 2px; }
.m1-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 14px; }
.m1-actions[hidden] { display: none; }
.m1-card { display: flex; gap: 12px; padding: 14px; border-radius: 14px; background: var(--bg-card, #f7f9fd); border: 1px solid var(--app-border, #e4e8f2); }
.m1-card p { margin: 4px 0 0; font-size: 13.5px; color: var(--app-text-dim, #57617a); }
.m1-spin { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--app-border-hi, #d3d9ea); border-top-color: var(--accent, #3161E8); animation: m1-rot .8s linear infinite; vertical-align: -2px; }
@keyframes m1-rot { to { transform: rotate(360deg) } }
.m1-chipbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--app-border-hi, #d3d9ea); background: var(--app-bg, #fff);
  color: var(--app-text, #0f1524); font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; }
.m1-chipbtn[aria-pressed="true"] { background: var(--accent-soft, rgba(49, 97, 232, .1)); border-color: var(--accent, #3161E8); color: var(--accent, #3161E8); }
[data-theme="dark"] .m1-chipbtn[aria-pressed="true"] { color: var(--accent-bright, #85A5F0); border-color: var(--accent-bright, #85A5F0); }
.pal-cbtn.m1-vbtn { color: var(--accent, #3161E8); }

/* ---------------------------------------------------------------- steps (meeting notes) */
.m1-steps { display: flex; gap: 6px; list-style: none; margin: 0 0 14px; padding: 0; counter-reset: none; }
.m1-steps li { flex: 1; display: flex; align-items: center; gap: 7px; min-width: 0; padding: 7px 9px; border-radius: 10px; background: var(--bg-card, #f7f9fd); color: var(--app-text-dim, #57617a); font-size: 12.5px; font-weight: 650; }
.m1-step-n { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid currentColor; font-size: 12px; font-weight: 800; }
.m1-step-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m1-steps li.is-now { background: var(--accent-soft, rgba(49, 97, 232, .1)); color: var(--accent, #3161E8); }
.m1-steps li.is-done { background: rgba(31, 157, 85, .1); color: #15803d; }
.m1-steps li.is-done .m1-step-n { background: #1f9d55; border-color: #1f9d55; color: #fff; }
[data-theme="dark"] .m1-steps li.is-done { color: #6ee7a0; }
[data-theme="dark"] .m1-steps li.is-now { color: var(--accent-bright, #85A5F0); }
.m1m-shield { flex: none; width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgba(201, 146, 43, .14); color: #a16207; }
.m1m-src { border: 0; padding: 0; margin: 12px 0 0; }
.m1m-src legend { font-size: 13px; font-weight: 700; color: var(--app-text-dim, #57617a); margin-bottom: 2px; }
.m1-radio { padding: 10px 12px; border: 1px solid var(--app-border, #e4e8f2); border-radius: 12px; margin: 8px 0; }
.m1-radio:has(input:checked) { border-color: var(--accent, #3161E8); background: var(--accent-soft, rgba(49, 97, 232, .06)); }
.m1m-rec { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 14px; border-radius: 14px; background: var(--bg-card, #f7f9fd); border: 1px solid var(--app-border, #e4e8f2); }
.m1m-clock { font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.m1m-status { font-weight: 700; color: #dc2626; }
.m1m-meters { flex: 1 1 200px; display: grid; gap: 6px; }
.m1m-meter { display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: 8px; font-size: 12.5px; color: var(--app-text-dim, #57617a); }
.m1m-meter i { display: block; height: 8px; border-radius: 99px; background: var(--app-border, #e4e8f2); overflow: hidden; }
.m1m-meter b { display: block; height: 100%; width: 0; background: var(--good, #1f9d55); transition: width .1s; }
.m1m-live, .m1m-parts { margin-top: 12px; max-height: 38vh; overflow: auto; font-size: 14px; }
.m1m-live p, .m1m-parts p { margin: 0 0 8px; }
.m1m-live time { font-variant-numeric: tabular-nums; color: var(--app-text-dim, #57617a); font-size: 12.5px; }
.m1m-bad { color: #b42318; font-size: 13px; display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.m1m-sum { font-size: 14px; color: var(--app-text-dim, #57617a); }
.m1m-sum b { color: var(--app-text, #0f1524); font-variant-numeric: tabular-nums; }
.m1m-names { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0 4px; margin-top: 6px; }
.m1m-names > .m1-fine { flex-basis: 100%; margin: 6px 0 0; }
.m1m-make-st { display: flex; align-items: center; gap: 10px; padding: 18px 4px; font-weight: 600; }
.m1m-make-st[hidden] { display: none; }

/* notes tools under the answer */
.m1n-tools { margin: 10px 0 4px; padding: 12px 14px; border: 1px solid var(--app-border, #e4e8f2); border-radius: 14px; background: var(--bg-card, #f7f9fd); max-width: 760px; font-size: 14px; }
.m1n-head { display: flex; align-items: center; gap: 8px; color: var(--accent, #3161E8); font-size: 13.5px; }
.m1n-items { border: 0; padding: 0; margin: 8px 0 0; }
.m1n-items legend { font-size: 12.5px; font-weight: 700; color: var(--app-text-dim, #57617a); }
.m1n-items .m1-check { margin: 6px 0; }
.m1n-tools .m1-actions { justify-content: flex-start; margin-top: 8px; }
.m1n-tools .m1-pill { min-height: 38px; font-size: 13.5px; }
.m1n-ok { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; color: #15803d; font-weight: 650; }
.m1n-ok[hidden] { display: none; }

/* ---------------------------------------------------------------- voice mode */
.m1-voice .m1-sheet { max-width: 560px; min-height: min(640px, calc(100vh - 32px)); }
.m1-voice .m1-body { display: flex; flex-direction: column; }
.m1v-stage { flex: 1 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 18px 0 8px; min-height: 200px; }
.m1v-orb { --m1-lvl: 0; position: relative; width: 148px; height: 148px; }
.m1v-orb, .m1v-caps, .m1v-bar, .m1v-set, .m1-voice .m1-err, .m1i-opts, .m1i-log, .m1i-top, .m1i-act, .m1-steps { flex: none; }
.m1v-core, .m1v-ring { position: absolute; inset: 0; border-radius: 50%; }
.m1v-core { background: var(--gradient-brand, linear-gradient(135deg, #3161E8, #2f6bff 55%, #85A5F0)); box-shadow: 0 14px 40px rgba(47, 107, 255, .35);
  transform: scale(calc(.86 + var(--m1-lvl) * .16)); transition: transform .08s linear; }
.m1v-ring { border: 2px solid rgba(49, 97, 232, .35); transform: scale(calc(1 + var(--m1-lvl) * .35)); opacity: calc(.25 + var(--m1-lvl) * .7); transition: transform .1s linear; }
.m1v-r2 { inset: -14px; border-color: rgba(133, 165, 240, .3); transform: scale(calc(1 + var(--m1-lvl) * .25)); }
.m1v-orb[data-state="thinking"] .m1v-core { animation: m1-breathe 1.4s ease-in-out infinite; }
.m1v-orb[data-state="speaking"] .m1v-core { animation: m1-talk .9s ease-in-out infinite; }
.m1v-orb[data-state="speaking"] .m1v-ring { animation: m1-ripple 1.6s ease-out infinite; }
.m1v-orb[data-state="paused"] .m1v-core, .m1v-orb[data-state="error"] .m1v-core { filter: grayscale(.85); opacity: .6; }
@keyframes m1-breathe { 50% { transform: scale(.8); opacity: .8 } }
@keyframes m1-talk { 50% { transform: scale(.95) } }
@keyframes m1-ripple { from { transform: scale(1); opacity: .55 } to { transform: scale(1.35); opacity: 0 } }
.m1v-state { font-size: 18px; font-weight: 750; }
.m1v-hint { min-height: 20px; font-size: 13px; color: var(--app-text-dim, #57617a); text-align: center; max-width: 420px; }
.m1v-caps { display: grid; gap: 10px; min-height: 92px; }
.m1v-cap { padding: 10px 14px; border-radius: 14px; background: var(--bg-card, #f7f9fd); }
.m1v-cap[hidden] { display: none; }
.m1v-cap p { margin: 2px 0 0; font-size: 18px; line-height: 1.45; font-weight: 550; overflow-wrap: anywhere; max-height: 7.5em; overflow: auto; }
.m1v-who { font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--app-text-dim, #57617a); }
.m1v-you.is-live p { color: var(--app-text-dim, #57617a); }
.m1v-cap.is-old { opacity: .62; }
.m1v-ai p mark { background: var(--accent-soft, rgba(49, 97, 232, .16)); color: inherit; border-radius: 4px; padding: 0 2px; }
.m1v-said { color: var(--app-text-dim, #57617a); }
.m1v-bar { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 16px 0 4px; }
.m1v-main { min-width: 150px; min-height: 56px; font-size: 16px; }
.m1v-set { margin-top: 12px; padding: 12px 14px; border: 1px solid var(--app-border, #e4e8f2); border-radius: 14px; }
.m1v-set[hidden] { display: none; }

/* ---------------------------------------------------------------- interpreter */
.m1-interp .m1-sheet { max-width: 760px; min-height: min(700px, calc(100vh - 32px)); }
.m1-interp .m1-body { display: flex; flex-direction: column; }
.m1i-opts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.m1i-panes { flex: 1; display: grid; grid-template-rows: 1fr 1fr; gap: 12px; min-height: 360px; }
.m1i-side { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 16px; border: 1px solid var(--app-border, #e4e8f2); background: var(--bg-card, #f7f9fd); min-height: 0; }
.m1i-side[data-side="b"] { background: var(--app-bg, #fff); }
.m1i-top { display: flex; align-items: center; gap: 10px; }
.m1i-who { font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--app-text-dim, #57617a); }
.m1i-lang { flex: 1; min-width: 0; min-height: 38px; padding: 6px 8px; border-radius: 10px; border: 1px solid var(--app-border-hi, #d3d9ea); background: var(--app-bg, #fff); color: var(--app-text, #0f1524); font: inherit; font-size: 14.5px; font-weight: 600; }
.m1i-cap { flex: 1; overflow: auto; min-height: 60px; }
.m1i-cap p { margin: 0; overflow-wrap: anywhere; }
.m1i-heard { font-size: 15px; color: var(--app-text-dim, #57617a); }
.m1i-trans { font-size: 22px; font-weight: 700; line-height: 1.35; margin-top: 4px !important; }
.m1i-big .m1i-trans { font-size: clamp(24px, 6.4vw, 36px); }
.m1i-big .m1i-heard { font-size: 17px; }
.m1i-ph { color: var(--app-text-faint, #8790a6); font-size: 14px; }
.m1i-ph[hidden] { display: none; }
.m1i-act { display: flex; justify-content: center; }
.m1i-mic { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; width: 100%; max-width: 420px; padding: 0 18px; border-radius: 999px; border: 0;
  background: var(--accent, #3161E8); color: #fff; font: inherit; font-size: 16px; font-weight: 750; cursor: pointer; }
.m1i-mic.is-on { background: #dc2626; animation: m1-pulse 1.6s infinite; }
.m1i-mic[disabled] { opacity: .5; cursor: default; }
.m1i-mic span span { font-weight: 600; opacity: .9; margin-left: 4px; }
@keyframes m1-pulse { 0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, .45) } 70% { box-shadow: 0 0 0 12px rgba(220, 38, 38, 0) } 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0) } }
.m1i-note { font-size: 12.5px; color: #a16207; }
.m1i-note[hidden] { display: none; }
.m1i-face .m1i-side[data-side="b"] { transform: rotate(180deg); }
.m1i-log { margin-top: 12px; border: 1px solid var(--app-border, #e4e8f2); border-radius: 12px; padding: 4px 12px; }
.m1i-log summary { display: flex; align-items: center; gap: 8px; min-height: 40px; cursor: pointer; font-weight: 700; font-size: 14px; }
.m1i-count { font-style: normal; font-size: 12px; color: var(--app-text-dim, #57617a); }
.m1i-log ol { margin: 0; padding: 0 0 0 18px; max-height: 30vh; overflow: auto; }
.m1i-log li { margin: 0 0 10px; display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; font-size: 14px; }
.m1i-log li b { font-size: 12px; color: var(--app-text-dim, #57617a); }
.m1i-logbar { display: flex; justify-content: flex-end; padding: 0 0 8px; }

/* ---------------------------------------------------------------- phones */
@media (max-width: 640px) {
  .m1-ov { padding: 0; align-items: stretch; }
  .m1-sheet, .m1-voice .m1-sheet, .m1-interp .m1-sheet { max-width: none; max-height: none; min-height: 0; height: 100%; border-radius: 0; border: 0; }
  .m1-head { padding: 8px 8px 8px 16px; padding-top: max(8px, env(safe-area-inset-top)); }
  .m1-body { padding: 12px 16px; padding-bottom: max(16px, env(safe-area-inset-bottom)); }
  .m1-steps .m1-step-t { display: none; }
  .m1-steps li.is-now .m1-step-t { display: inline; }
  .m1-steps li { flex: 0 0 auto; }
  .m1-steps li.is-now { flex: 1; }
  .m1v-orb { width: 120px; height: 120px; }
  .m1v-bar { gap: 14px; }
  .m1v-main { min-width: 0; flex: 1; max-width: 200px; }
  .m1i-panes { min-height: 0; }
  .m1i-mic { min-height: 56px; font-size: 15px; }
  .m1-actions { justify-content: stretch; }
  .m1-actions .m1-pill { flex: 1 1 auto; }
  .m1m-clock { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .m1-ov, .m1v-core, .m1v-ring, .m1i-mic.is-on, .m1-onair i, .m1-spin { animation: none !important; transition: none !important; }
}

/* ---------------------------------------------------------------- drop 2: show what you see (voice mode) */
.m1v-see { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; flex: none; }
.m1v-see .m1-chipbtn[hidden] { display: none; }
.m1-chipbtn.is-bad { border-color: #d0453a; color: #b42318; }
.m1v-see-err { justify-content: center; }
.m1v-pv { position: relative; width: min(100%, 360px); aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #0b1220; box-shadow: 0 8px 24px rgba(15, 21, 36, .18); flex: none; }
.m1v-pv[hidden] { display: none; }
.m1v-pv video { width: 100%; height: 100%; object-fit: contain; display: block; }
.m1v-pv-l { position: absolute; left: 8px; bottom: 8px; padding: 3px 8px; border-radius: 999px; background: rgba(0, 0, 0, .62); color: #fff; font-size: 11.5px; font-weight: 650; }
.m1v-seeing .m1v-orb { width: 76px; height: 76px; }
.m1v-seeing .m1v-r2 { inset: -8px; }
.m1v-seen { display: block; margin-top: 4px; font-size: 12px; color: var(--app-text-dim, #57617a); }
.m1v-seen[hidden] { display: none; }
.m1-sentpic { margin: 8px 0 0; display: inline-flex; flex-direction: column; gap: 3px; max-width: 220px; }
.m1-sentpic img { max-width: 220px; max-height: 160px; border-radius: 10px; border: 1px solid var(--app-border, #e4e8f2); object-fit: cover; }
.m1-sentpic figcaption { font-size: 11.5px; color: var(--app-text-dim, #57617a); }

/* ---------------------------------------------------------------- video */
.m1-video .m1-sheet, .m1-mask .m1-sheet { max-width: 720px; }
.m1x-drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 150px; padding: 18px; border: 2px dashed var(--app-border-hi, #d3d9ea);
  border-radius: 16px; background: var(--bg-card, #f7f9fd); text-align: center; cursor: pointer; }
.m1x-drop:hover, .m1x-drop.is-over, .m1x-drop:focus-visible { border-color: var(--accent, #3161E8); background: var(--accent-soft, rgba(49, 97, 232, .06)); outline: 0; }
.m1x-drop.is-bad { border-color: #d0453a; }
.m1x-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.m1x-drop b { font-size: 15px; }
.m1x-drop small { color: var(--app-text-dim, #57617a); font-size: 12.5px; }
.m1x-drop-ic { color: var(--accent, #3161E8); }
.m1x-chosen { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; padding: 9px 12px; border-radius: 10px; background: rgba(31, 157, 85, .08); color: #15803d; font-size: 13.5px; overflow-wrap: anywhere; }
.m1x-chosen[hidden] { display: none; }
.m1x-chosen b { color: var(--app-text, #0f1524); }
.m1x-rows { display: grid; gap: 10px; }
.m1x-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--app-border, #e4e8f2); background: var(--bg-card, #f7f9fd); }
.m1x-row > div { flex: 1; min-width: 0; display: grid; gap: 5px; }
.m1x-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--accent-soft, rgba(49, 97, 232, .1)); color: var(--accent, #3161E8); }
.m1x-bar { display: block; height: 8px; border-radius: 99px; background: var(--app-border, #e4e8f2); overflow: hidden; }
.m1x-bar b { display: block; height: 100%; width: 0; background: var(--accent, #3161E8); transition: width .2s; }
.m1x-st { font-size: 12.5px; color: var(--app-text-dim, #57617a); }
.m1x-row.is-ok { border-color: rgba(31, 157, 85, .45); background: rgba(31, 157, 85, .06); }
.m1x-row.is-ok .m1x-ic { background: #1f9d55; color: #fff; }
.m1x-row.is-ok .m1x-bar b { background: #1f9d55; }
.m1x-row.is-warn .m1x-st { color: #a16207; }
.m1x-row.is-bad { border-color: #d0453a; }
.m1x-row.is-bad .m1x-st { color: #b42318; font-weight: 600; }
.m1x-sheets { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-top: 12px; }
.m1x-sheets img { width: 100%; border-radius: 8px; border: 1px solid var(--app-border, #e4e8f2); }
.m1x-sum { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.m1x-sum img { width: 96px; border-radius: 8px; flex: none; }
.m1x-sum b { display: block; overflow-wrap: anywhere; }
.m1x-sum small { color: var(--app-text-dim, #57617a); font-size: 12.5px; }
.m1x-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 2px; }
.m1-field.is-bad textarea, .m1-field.is-bad input[type="text"], .m1-field.is-bad select { border-color: #d0453a; box-shadow: 0 0 0 3px rgba(208, 69, 58, .14); }
.m1x-tr { margin-top: 8px; border: 1px solid var(--app-border, #e4e8f2); border-radius: 12px; padding: 4px 12px; }
.m1x-tr summary { min-height: 38px; display: flex; align-items: center; cursor: pointer; font-weight: 650; font-size: 13.5px; }
.m1x-tr pre { white-space: pre-wrap; font: inherit; font-size: 13px; max-height: 30vh; overflow: auto; margin: 0 0 8px; }
.msg-row .bubble.m1-fold:not(.is-open) { max-height: 9.5em; overflow: hidden; position: relative; }
.msg-row .bubble.m1-fold:not(.is-open)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3.2em; background: linear-gradient(transparent, var(--app-bg, #fff)); pointer-events: none; }
.m1-foldbtn { position: relative; z-index: 1; display: block; margin-top: 4px; font-size: 13px; }
.msg-row .bubble.m1-fold:not(.is-open) .m1-foldbtn { position: absolute; right: 10px; bottom: 6px; z-index: 2; background: var(--app-bg, #fff); padding: 0 6px; border-radius: 6px; }

/* ---------------------------------------------------------------- edit part of a picture */
.m1k-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; }
.m1k-tools[hidden], .m1k-pick[hidden], .m1k-stage[hidden], .m1k-load[hidden] { display: none; }
.m1k-size { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 650; color: var(--app-text-dim, #57617a); }
.m1k-size input { width: 120px; accent-color: var(--accent, #3161E8); }
.m1k-stage { position: relative; width: 100%; aspect-ratio: var(--m1k-ar, 1 / 1); margin: 0 auto; border-radius: 12px; overflow: hidden; background: repeating-conic-gradient(#e9edf5 0 25%, #f7f9fd 0 50%) 0 0 / 18px 18px; border: 1px solid var(--app-border, #e4e8f2); }
.m1k-stage.is-bad { border-color: #d0453a; box-shadow: 0 0 0 3px rgba(208, 69, 58, .14); }
.m1k-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.m1k-mask { opacity: .5; cursor: crosshair; touch-action: none; }
.m1k-mask.is-erase { cursor: cell; }
.m1k-load { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; background: var(--app-bg, #fff); }
.m1k-steps li { flex: 1 1 0; }
.m1k-on { position: relative; display: inline-flex; align-items: center; gap: 6px; margin: 6px 6px 0 0; min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--app-border-hi, #d3d9ea);
  background: var(--app-bg, #fff); color: var(--app-text, #0f1524); font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; vertical-align: top; }
.m1k-on:hover { border-color: var(--accent, #3161E8); color: var(--accent, #3161E8); }
.m1k-on:focus-visible { outline: 3px solid var(--accent, #3161E8); outline-offset: 2px; }
/* voice1-c1: voice mode (19 Oct 2026): start screen with what Voice does, exact microphone help, state timer, light captions.
   Scoped to .v1-voice (the voice window only). */
.v1-voice .m1-sheet { min-height: min(600px, calc(100vh - 32px)); }
.v1-intro { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 8px 4px 4px; }
.v1-intro[hidden], .v1-live[hidden] { display: none; }
.v1-live { display: flex; flex-direction: column; flex: 1 0 auto; }
.v1-intro-ic { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; color: #fff;
  background: var(--gradient-brand, linear-gradient(135deg, #3161E8, #2f6bff 55%, #85A5F0)); box-shadow: 0 10px 28px rgba(47, 107, 255, .28); }
.v1-h { margin: 6px 0 0; font-size: 20px; font-weight: 750; letter-spacing: -.01em; }
.v1-sub { margin: 0; max-width: 420px; color: var(--app-text-dim, #57617a); font-size: 14.5px; }
.v1-how { list-style: none; margin: 8px 0 2px; padding: 0; display: grid; gap: 10px; width: 100%; max-width: 440px; text-align: left; }
.v1-how li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; }
.v1-li-ic { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 10px;
  color: var(--accent, #3161E8); background: var(--accent-soft, rgba(49, 97, 232, .1)); }
[data-theme="dark"] .v1-li-ic { color: var(--accent-bright, #85A5F0); }
.v1-perm { margin: 6px 0 0; font-size: 13px; color: var(--app-text-dim, #57617a); }
.v1-perm[hidden] { display: none; }
.v1-perm.is-granted { color: #15803d; }
[data-theme="dark"] .v1-perm.is-granted { color: #6ee7a0; }
.v1-startrow { display: flex; justify-content: center; width: 100%; margin-top: 4px; }
.v1-start { min-width: 200px; min-height: 52px; font-size: 16px; }

.v1-err { width: 100%; max-width: 460px; margin: 8px auto 0; padding: 10px 12px; border-radius: 12px; text-align: left;
  background: rgba(208, 69, 58, .08); border: 1px solid rgba(208, 69, 58, .35); color: #b42318; font-size: 13.5px; }
.v1-err[hidden], .v1-help[hidden], .v1-helpbtn[hidden], .v1-newtab[hidden], .v1-reload[hidden] { display: none; }
.v1-err-m { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-weight: 650; }
.v1-err-m svg { flex: none; margin-top: 2px; }
.v1-helpbtn { margin: 6px 0 0 24px; font-size: 13.5px; color: #b42318; }
.v1-help { margin: 8px 0 0 24px; color: var(--app-text, #0f1524); font-weight: 500; }
.v1-help ol { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.v1-help-x { display: flex; flex-wrap: wrap; gap: 14px; margin: 8px 0 0; }
.v1-help-x .m1-link { display: inline-flex; align-items: center; gap: 5px; font-size: 13.5px; }
[data-theme="dark"] .v1-err { background: rgba(255, 120, 108, .1); border-color: rgba(255, 155, 144, .4); color: #ff9b90; }
[data-theme="dark"] .v1-helpbtn { color: #ff9b90; }
.v1-live > .v1-err { margin-top: 10px; }

.v1-statusrow { display: flex; align-items: baseline; justify-content: center; gap: 8px; }
.v1-time { min-width: 2.6em; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--app-text-dim, #57617a); }
.v1-alt { font-size: 13px; }
.v1-alt[hidden] { display: none; }
.m1v-orb.v1-nolevel[data-state="listening"] .m1v-ring { animation: v1-listen 1.8s ease-out infinite; }
.m1v-orb.v1-nolevel[data-state="heard"] .m1v-core { animation: m1-talk .9s ease-in-out infinite; }
@keyframes v1-listen { 0% { transform: scale(1); opacity: .55 } 100% { transform: scale(1.22); opacity: 0 } }

/* light captions: no boxes, small labels, what is still being heard in a muted colour, scrolls by itself */
.v1-voice .m1v-caps { display: block; min-height: 0; max-height: 8.6em; overflow-y: auto; margin: 4px 0 0; padding: 6px 2px 2px; line-height: 1.5;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12px); mask-image: linear-gradient(to bottom, transparent 0, #000 12px); scrollbar-width: thin; }
.v1-voice .m1v-cap { padding: 0; margin: 0 0 6px; background: none; border: 0; border-radius: 0; text-align: left; }
.v1-voice .m1v-cap p { display: inline; margin: 0; font-size: 15.5px; line-height: 1.5; font-weight: 450; max-height: none; overflow: visible; color: var(--app-text, #0f1524); }
.v1-voice .m1v-who { display: inline; margin-right: 6px; font-size: 12.5px; font-weight: 650; letter-spacing: 0; text-transform: none; color: var(--app-text-dim, #57617a); }
.v1-voice .m1v-who::after { content: ":"; }
.v1-voice .m1v-you.is-live p { color: var(--app-text-dim, #57617a); }
.v1-voice .m1v-cap.is-old { opacity: .55; }
.v1-voice .m1v-ai.is-speaking p { color: var(--app-text-dim, #57617a); }
.v1-voice .m1v-ai.is-speaking .m1v-said, .v1-voice .m1v-ai.is-speaking mark { color: var(--app-text, #0f1524); }
.v1-voice .m1v-ai p mark { background: none; padding: 0; border-radius: 0; text-decoration: underline; text-decoration-color: var(--accent, #3161E8); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.v1-voice .m1v-said { color: inherit; }
.v1-voice .m1v-seen { display: block; margin-top: 2px; font-size: 12px; }
.v1-voice .m1v-seen[hidden] { display: none; }
@media (max-width: 640px) {
  .v1-voice .m1v-caps { max-height: 7.6em; }
  .v1-voice .m1v-cap p { font-size: 15px; }
  .v1-how { gap: 8px; }
  .v1-start { width: 100%; max-width: 320px; }
  .v1-intro { margin: auto 0; }
}
@media (prefers-reduced-motion: reduce) {
  .m1v-orb.v1-nolevel .m1v-ring, .m1v-orb.v1-nolevel .m1v-core { animation: none !important; }
}
/* voice1-c1 end */
/* voice2-c1: voice mode as a calm call (19 Oct 2026). Scoped to .v2-voice; the rollback removes this block. */
.v2-voice .m1-onair { display: none !important; }
.v2-voice .m1-head { border-bottom-color: transparent; }
.v2-voice .m1-head-x { align-items: center; gap: 6px; }
.v2-call { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 999px; background: rgba(22, 163, 74, .1); color: #15803d;
  font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.v2-call[hidden] { display: none; }
.v2-call i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 rgba(22, 163, 74, .5); animation: v2-live 2s ease-out infinite; }
[data-theme="dark"] .v2-call { color: #6ee7a0; background: rgba(110, 231, 160, .12); }
@keyframes v2-live { 0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, .45) } 80%, 100% { box-shadow: 0 0 0 7px rgba(22, 163, 74, 0) } }

/* the call view: orb in the middle, words under it, controls at the bottom; nothing moves when settings open */
.v2-live { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.v2-live .m1v-stage { flex: 0 0 auto; margin-top: auto; gap: 14px; padding: 8px 0 4px; min-height: 0; }
.v2-orb { width: 168px; height: 168px; }
.v2-orb .m1v-core { display: flex; align-items: center; justify-content: center; gap: 6px;
  background: radial-gradient(120% 120% at 30% 20%, #8fb0ff 0%, #3f6ff0 42%, #2447c9 100%); box-shadow: 0 18px 50px -12px rgba(37, 82, 230, .55), inset 0 -10px 30px rgba(10, 30, 120, .25);
  transform: scale(calc(.9 + var(--m1-lvl) * .1)); transition: transform .12s ease-out, filter .3s, opacity .3s; }
.v2-orb .m1v-core i { display: block; width: 6px; height: 14px; border-radius: 4px; background: rgba(255, 255, 255, .92); transform-origin: center;
  transform: scaleY(calc(.6 + var(--m1-lvl) * 2.6)); transition: transform .09s linear; }
.v2-orb .m1v-core i:nth-child(2), .v2-orb .m1v-core i:nth-child(4) { height: 20px; }
.v2-orb .m1v-core i:nth-child(3) { height: 26px; }
.v2-orb .m1v-ring { border-width: 1.5px; border-color: rgba(63, 111, 240, .28); }
.v2-orb .m1v-r2 { inset: -16px; border-color: rgba(143, 176, 255, .22); }
.v2-orb[data-state="speaking"] .m1v-core i { animation: v2-bar .9s ease-in-out infinite; }
.v2-orb[data-state="speaking"] .m1v-core i:nth-child(2) { animation-delay: -.15s; } .v2-orb[data-state="speaking"] .m1v-core i:nth-child(3) { animation-delay: -.3s; }
.v2-orb[data-state="speaking"] .m1v-core i:nth-child(4) { animation-delay: -.45s; } .v2-orb[data-state="speaking"] .m1v-core i:nth-child(5) { animation-delay: -.6s; }
.v2-orb[data-state="speaking"] .m1v-core { animation: none; }
.v2-orb[data-state="thinking"] .m1v-core { animation: v2-breathe 1.6s ease-in-out infinite; }
.v2-orb[data-state="thinking"] .m1v-core i { transform: scaleY(.35); }
.v2-orb[data-state="thinking"] .m1v-ring { border-style: dashed; animation: v2-spin 6s linear infinite; opacity: .6; }
.v2-orb.v1-nolevel[data-state="listening"] .m1v-core i, .v2-orb.v1-nolevel[data-state="heard"] .m1v-core i { animation: v2-bar 1.4s ease-in-out infinite; }
.v2-orb[data-state="paused"] .m1v-core, .v2-orb[data-state="error"] .m1v-core, .v2-orb[data-state="idle"] .m1v-core { filter: grayscale(.9); opacity: .55; }
.v2-orb[data-state="paused"] .m1v-core i, .v2-orb[data-state="error"] .m1v-core i { transform: scaleY(.35); animation: none; }
@keyframes v2-bar { 0%, 100% { transform: scaleY(.45) } 50% { transform: scaleY(1.35) } }
@keyframes v2-breathe { 0%, 100% { transform: scale(.88) } 50% { transform: scale(.96) } }
@keyframes v2-spin { to { transform: rotate(360deg) } }
.v2-voice .v1-statusrow { align-items: center; gap: 4px; min-height: 28px; }
.v2-voice .m1v-state { font-size: 19px; font-weight: 750; letter-spacing: -.01em; }
.v2-dots { display: inline-flex; gap: 3px; margin-left: 2px; }
.v2-dots[hidden] { display: none; }
.v2-dots i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .35; animation: v2-dot 1.2s infinite; }
.v2-dots i:nth-child(2) { animation-delay: .2s; } .v2-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes v2-dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0) } 40% { opacity: 1; transform: translateY(-3px) } }
.v2-voice .m1v-hint { min-height: 19px; font-size: 13.5px; }

/* captions: what you said (small), the answer (larger), the spoken word underlined */
.v2-voice .v2-caps { max-height: 11em; margin: 18px 0 auto; padding: 14px 4px 2px; width: 100%; max-width: 560px; align-self: center; }
.v2-voice .m1v-see { margin-top: 12px; }
.v2-voice .m1v-cap { margin: 0 0 8px; }
.v2-voice .m1v-who { display: block; margin: 0 0 1px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.v2-voice .m1v-who::after { content: none; }
.v2-voice .m1v-you p { display: block; font-size: 15px; color: var(--app-text, #0f1524); }
.v2-voice .m1v-you.is-live p { color: var(--app-text-dim, #57617a); }
.v2-voice .m1v-ai p { display: block; font-size: 17px; line-height: 1.5; font-weight: 500; }
.v2-voice .m1v-ai.is-speaking p { color: var(--app-text-faint, #8a93a8); }
.v2-voice .m1v-ai.is-speaking .m1v-said, .v2-voice .m1v-ai.is-speaking mark { color: var(--app-text, #0f1524); }
.v2-voice .m1v-cap.is-old { opacity: .5; }

.v2-voice .m1v-bar { gap: 16px; padding: 14px 0 6px; }
.v2-voice .m1v-main { min-width: 0; flex: 0 1 220px; min-height: 58px; font-size: 16px; font-weight: 700; box-shadow: 0 8px 22px -10px rgba(37, 82, 230, .6); }

/* settings: a sheet over the call */
.v2-setw { position: absolute; inset: 0; z-index: 5; display: flex; align-items: flex-end; justify-content: center; border-radius: inherit; overflow: hidden; }
.v2-setw[hidden] { display: none; }
.v2-setbg { position: absolute; inset: 0; background: rgba(15, 21, 36, .32); animation: v2-fade .18s ease-out; }
.v2-voice .v2-set { position: relative; width: 100%; max-height: 82%; margin: 0; padding: 0; border: 0; border-radius: 20px 20px 0 0; background: var(--app-bg, #fff);
  box-shadow: 0 -12px 40px rgba(15, 21, 36, .18); display: flex; flex-direction: column; animation: v2-up .22s cubic-bezier(.2, .8, .2, 1); }
.v2-set-top { position: relative; display: flex; align-items: center; gap: 10px; padding: 14px 16px 10px 20px; border-bottom: 1px solid var(--app-border, #e4e8f2); }
.v2-set-top h3 { margin: 0; flex: 1; font-size: 16px; font-weight: 750; }
.v2-grab { position: absolute; top: 6px; left: 50%; width: 36px; height: 4px; margin-left: -18px; border-radius: 4px; background: var(--app-border-hi, #d3d9ea); }
.v2-done { min-height: 38px; padding: 0 16px; font-size: 14px; }
.v2-set-b { overflow: auto; padding: 14px 20px max(18px, env(safe-area-inset-bottom)); display: grid; gap: 14px; }
.v2-set-b .m1-field, .v2-set-b .m1-switch { margin: 0; }
.v2-try { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: -4px; }
.v2-try .m1v-try { min-height: 38px; font-size: 14px; }
.v2-try .m1v-try[disabled] { opacity: .5; cursor: default; }
.v2-try-n { font-size: 12.5px; color: var(--app-text-dim, #57617a); }
.v2-note { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--accent-soft, rgba(49, 97, 232, .08)); font-size: 13.5px; }
.v2-note svg { flex: none; margin-top: 2px; color: var(--accent, #3161E8); }
@keyframes v2-up { from { transform: translateY(24px); opacity: 0 } to { transform: none; opacity: 1 } }
@keyframes v2-fade { from { opacity: 0 } to { opacity: 1 } }
[data-theme="dark"] .v2-voice .v2-set { background: var(--app-bg, #0f1524); }
@media (min-width: 641px) { .v2-voice .v2-set { max-width: 520px; margin-bottom: 12px; border-radius: 20px; } }
@media (max-width: 640px) {
  .v2-orb { width: 150px; height: 150px; }
  .v2-voice .m1v-ai p { font-size: 16px; }
  .v2-voice .v2-caps { max-height: 10em; }
  .v2-voice .m1v-bar { padding-bottom: max(6px, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .v2-orb .m1v-core, .v2-orb .m1v-core i, .v2-orb .m1v-ring, .v2-call i, .v2-dots i, .v2-voice .v2-set, .v2-setbg { animation: none !important; transition: none !important; }
}
/* voice2-c1 end */

/* voice9-css: written work on the screen during a call, and Back to the call */
.v9-res { margin: 10px 0 6px; border: 1px solid var(--app-border, #e3e8f2); border-radius: 14px; background: var(--bg-card, #f7f9fd); text-align: left; overflow: hidden; }
.v9-res-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 8px 10px 8px 12px; border-bottom: 1px solid var(--app-border, #e3e8f2); }
.v9-res.is-wait .v9-res-h { border-bottom: 0; }
.v9-res-t { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--app-text-dim, #57617a); }
.v9-res-t b { color: var(--app-text, #0f1524); font-weight: 600; }
.v9-res-a { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.v9-res-n { display: flex; align-items: center; gap: 6px; margin: 0; padding: 8px 12px 0; font-size: 13px; color: var(--accent, #3161E8); }
.v9-res-b { max-height: 38vh; overflow: auto; padding: 10px 12px 12px; font-size: 14.5px; line-height: 1.55; color: var(--app-text, #0f1524); overflow-wrap: anywhere; -webkit-overflow-scrolling: touch; }
.v9-res-b > :first-child { margin-top: 0; }
.v9-res-b h1, .v9-res-b h2, .v9-res-b h3, .v9-res-b h4 { font-size: 15px; line-height: 1.4; margin: 10px 0 4px; }
.v9-res-b p, .v9-res-b ul, .v9-res-b ol { margin: 0 0 8px; }
.v9-res-b pre { white-space: pre-wrap; font-size: 13px; background: var(--app-bg, #fff); border: 1px solid var(--app-border, #e3e8f2); border-radius: 10px; padding: 8px 10px; }
.v9-res-b img { max-width: 100%; height: auto; }
.m1-ov.v9-min { display: none !important; }
.v9-back { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 2147483000; display: inline-flex; align-items: center; gap: 9px; padding: 11px 20px; min-height: 44px; border: 0; border-radius: 999px; background: var(--accent, #3161E8); color: #fff; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; box-shadow: var(--app-shadow-lg, 0 10px 28px rgba(15, 21, 36, .22)); }
.v9-back[hidden] { display: none; }
.v9-back i { width: 9px; height: 9px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); animation: v9pulse 1.6s ease-out infinite; }
.v9-back:focus-visible { outline: 3px solid var(--accent-soft, rgba(49, 97, 232, .35)); outline-offset: 3px; }
@keyframes v9pulse { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, .55); } 100% { box-shadow: 0 0 0 9px rgba(61, 220, 132, 0); } }
@media (prefers-reduced-motion: reduce) { .v9-back i { animation: none; } }
/* voice9-css end */


@media (max-width: 640px) {
  .m1v-pv { width: 100%; }
  .m1k-size input { width: 90px; }
  .m1x-sum img { width: 72px; }
}
