:root{font-family:system-ui,-apple-system,'Segoe UI',sans-serif;color:#372b50;background:#f9f5ff;font-synthesis:none}*{box-sizing:border-box}body{margin:0;overflow:hidden;background:radial-gradient(ellipse at 0 0,#f0ddff,transparent 50%),radial-gradient(ellipse at 100% 70%,#d9f7ee,transparent 60%),#f9f5ff}button{font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}button:disabled{opacity:.4;cursor:default}button:focus-visible,a:focus-visible{outline:3px solid #49326c;outline-offset:3px}.app{height:100vh;height:100dvh;max-width:620px;margin:auto;display:flex;flex-direction:column;gap:12px;padding:max(12px,env(safe-area-inset-top)) 18px max(14px,env(safe-area-inset-bottom))}header{height:38px;display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.logo{display:flex;align-items:center;gap:7px;font-size:27px;font-weight:900;letter-spacing:-1px;text-decoration:none;color:#6741b0}.logo>span{font-size:33px;color:#9462e9}.logo small{font-size:8px;letter-spacing:1.8px;color:#9a83b1;margin-left:7px}#help{width:30px;height:30px;border:1px solid #e1d4ef;border-radius:50%;background:#fff8;color:#82629e}.section-label{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:0 0 9px}.section-label strong{font-size:15px;font-weight:850;letter-spacing:-.5px}.section-label>span,.section-label small{font-size:10px;color:#8c789c}.picker,.speaker-section{flex-shrink:0}.language-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.language{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border:3px solid var(--accent);background:var(--pale);color:var(--ink);border-radius:18px;min-height:58px;padding:6px 2px;box-shadow:0 3px 0 #8b6aa00b}.language strong{font-size:12px;font-weight:900;letter-spacing:-.4px;white-space:nowrap}.language small{font-size:8px;opacity:.7;white-space:nowrap}.language[aria-pressed=true]{background:var(--accent);color:white;box-shadow:0 4px 12px color-mix(in srgb,var(--accent) 22%,transparent)}.language[aria-pressed=true]:after{content:'✓';position:absolute;top:2px;right:5px;font-size:9px}.speaker-section{background:#ffffffb8;padding:10px 12px;border:1px solid #ede2f5;border-radius:20px}.speaker-section .section-label{margin-bottom:7px}.speaker-section .section-label span{color:#77618d;font-weight:700}#speakers{display:flex;gap:7px}.speaker{flex:1;min-width:0;min-height:35px;border:0;border-radius:12px;color:var(--ink);background:var(--pale);font-size:12px;font-weight:750}.speaker[aria-pressed=true]{background:var(--accent);color:#fff;box-shadow:0 3px 8px #61428820}.speaker[aria-pressed=true]:before{content:'● ';font-size:8px}.voice-stage{flex:1;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;position:relative}.voice-stage:before{content:'';position:absolute;width:160px;height:160px;background:radial-gradient(circle,#dfcbf955,transparent 65%);border-radius:50%;pointer-events:none}#voice-orb{position:relative;width:clamp(64px,13vh,110px);height:clamp(64px,13vh,110px);border-radius:36%;display:grid;place-items:center;flex-shrink:1;min-height:35px;background:linear-gradient(145deg,#b886f4,#7a54d9 55%,#55c2be);box-shadow:0 10px 30px #9970da25,inset 0 0 0 1px #fff4;transform:rotate(-8deg)}.wave{display:flex;align-items:center;justify-content:center;gap:5px;transform:rotate(8deg);height:38px}.wave i{width:4px;border-radius:6px;height:10px;background:#fff9}.wave i:nth-child(2n){height:21px}.wave i:nth-child(3n){height:29px}.wave i:nth-child(4){height:37px}#voice-orb.listening,#voice-orb.speaking{background:linear-gradient(135deg,var(--accent),#75d4bf)}#voice-orb.listening i,#voice-orb.speaking i,#voice-orb.working i{animation:wave .7s ease-in-out infinite alternate}.wave i:nth-child(2n){animation-delay:.2s!important}.wave i:nth-child(3n){animation-delay:.4s!important}#orb-label{z-index:1;font-size:15px;letter-spacing:-.3px}#voice-caption{font-size:10px;margin:0;color:#a08cae;z-index:1}#replay{border:0;background:transparent;color:#8868a7;padding:4px 12px;font-size:11px;min-height:26px;z-index:1}.permission-bar{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:10px;border:1px solid #eadff0;background:#ffffff85;padding:4px 8px;border-radius:13px;flex-shrink:0;color:#927ba5}.permission-bar button{font-size:10px;border:0;border-radius:10px;background:#efe5fc;color:#795599;padding:7px 9px;min-height:30px}.permission-bar .denied{color:#b54762}#status{margin:0;flex-shrink:0;min-height:28px;max-height:42px;overflow:auto;font-size:11px;line-height:1.4;color:#846c99;text-align:center;display:grid;place-items:center}#status.error{color:#b13f59}.actions{display:flex;justify-content:space-evenly;gap:16px;padding:3px 0 6px;flex-shrink:0}.action{width:clamp(72px,21vw,94px);height:clamp(72px,21vw,94px);border-radius:50%;border:3px solid #ffffffc0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:1px;color:white;box-shadow:0 5px 0 var(--shadow),0 8px 16px #805d9b14}.start{background:linear-gradient(135deg,#2cc3a0,#159c7c);--shadow:#b6ead9}.interpret{background:linear-gradient(135deg,#a16cef,#7549d3);--shadow:#decdf5}.finish{background:linear-gradient(135deg,#fa9b91,#e96d83);--shadow:#f4cfd8}.action strong{font-size:18px;font-weight:800}.action small{font-size:6px;letter-spacing:1.3px;opacity:.75}.icon{font-size:20px;line-height:23px}.action:active{transform:translateY(3px)}.start.recording{background:#ce5274}.start.recording .icon{animation:wave .7s infinite alternate}.action:disabled{opacity:.48}dialog{border:1px solid #e3d4ef;border-radius:25px;background:#fcfaff;width:min(90vw,450px);max-height:85dvh;padding:24px;color:#6d537f;box-shadow:0 25px 80px #57376640}dialog::backdrop{background:#34214770}dialog h2{font-size:22px}dialog p{font-size:13px;line-height:1.9}#close-help{width:100%;border:0;border-radius:16px;padding:13px;color:#fff;background:#8655cc}@keyframes wave{from{transform:scaleY(.45)}to{transform:scaleY(1)}}@media(max-height:700px){.app{gap:8px;padding-top:8px;padding-bottom:10px}header{height:30px}.logo{font-size:24px}.logo>span{font-size:28px}.section-label{margin-bottom:6px}.language-list{gap:6px}.language{min-height:49px;border-radius:15px;padding:4px 2px}.language strong{font-size:11px}.language small{font-size:7px}.speaker-section{padding:7px 10px;border-radius:16px}.speaker{min-height:30px;font-size:11px}.voice-stage{gap:4px}#voice-orb{width:62px;height:62px}.wave{gap:3px}.wave i{width:3px}.wave i:nth-child(4){height:26px}.wave i:nth-child(3n){height:22px}#orb-label{font-size:13px}#voice-caption{font-size:9px}.action{width:70px;height:70px}.action strong{font-size:16px}.icon{font-size:17px;line-height:18px}#status{font-size:10px;min-height:25px}.permission-bar{padding:2px 7px}.permission-bar button{min-height:27px;padding:5px 8px}}@media(max-height:580px){.app{gap:6px}.language{min-height:43px}.language small{display:none}#voice-caption{display:none}.voice-stage{flex-direction:row;flex-wrap:wrap;gap:7px}#voice-orb{width:40px;height:40px}.wave i{max-height:22px}#orb-label{font-size:11px}#replay{font-size:10px}.section-label strong{font-size:13px}.action{width:62px;height:62px}.speaker-section .section-label{margin-bottom:4px}}@media(max-width:360px){.app{padding-left:12px;padding-right:12px}.section-label strong{font-size:13px}.language strong{font-size:10px}.language small{font-size:7px}.logo small{font-size:7px}.language-list{gap:5px}}@media(max-height:450px) and (orientation:landscape){body{overflow:auto}.app{height:auto;min-height:100dvh}.voice-stage{min-height:60px}}@media(prefers-reduced-motion:reduce){*{animation:none!important}}
/* Selected language: a round red indicator at the left edge. */
.language{padding-left:23px;padding-right:6px}.language:before{content:'';position:absolute;left:8px;top:50%;transform:translateY(-50%);width:11px;height:11px;border-radius:50%;background:#d4ccd8;border:1px solid #a79aad;box-shadow:inset 0 1px 2px #65536f22;pointer-events:none}.language[aria-pressed=true]:before{background:radial-gradient(circle at 35% 30%,#ffb9b5 0,#ff4949 35%,#d71932 78%);border:1px solid #fff7;box-shadow:0 0 0 2px #fff3,0 0 9px #ff384a88}.language[aria-pressed=true]:after{content:none}@media(max-width:360px){.language{padding-left:19px;padding-right:3px}.language:before{left:5px;width:9px;height:9px}}
/* Align the indicator and both text lines without overlap. */
.language{display:grid;grid-template-columns:14px minmax(0,1fr);grid-template-rows:auto auto;column-gap:8px;row-gap:3px;padding:7px 9px;align-content:center}.language:before{position:static;transform:none;grid-column:1;grid-row:1 / 3;align-self:center;justify-self:center;width:14px;height:14px}.language strong{grid-column:2;grid-row:1;min-width:0;text-align:center}.language small{grid-column:2;grid-row:2;min-width:0;text-align:center}.language[aria-pressed=true]:before{box-shadow:0 0 0 2px #fff4,0 0 10px #ff384a99}@media(max-width:360px){.language{grid-template-columns:12px minmax(0,1fr);column-gap:6px;padding:6px 5px}.language:before{width:12px;height:12px}.language strong{font-size:9px}.language small{font-size:6px}}@media(max-height:580px){.language{grid-template-rows:auto}.language:before{grid-row:1}.language strong{grid-row:1}}
/* Gentle breathing light: stays visibly on throughout the cycle. */
.language[aria-pressed=true]:before{animation:lamp-breathe 2.8s ease-in-out infinite;opacity:1}@keyframes lamp-breathe{0%,100%{filter:brightness(1.08);box-shadow:0 0 0 2px #fff4,0 0 10px #ff384a99}50%{filter:brightness(.8);box-shadow:0 0 0 2px #fff3,0 0 5px #ff384a66}}@media(prefers-reduced-motion:reduce){.language[aria-pressed=true]:before{animation:none;filter:brightness(1)}}
/* Compact mobile composition and independent display-language selection. */
.app{gap:10px}.header-tools{display:flex;align-items:center;gap:7px}#display-mode{display:flex;align-items:center;gap:5px;max-width:220px;min-height:34px;border:1px solid #dbc8ef;border-radius:13px;padding:7px 10px;color:#755196;background:#fff9;font-size:10px;font-weight:750}#display-mode svg{width:17px;height:17px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.8}#display-mode[aria-pressed=true]{color:#fff;background:#8a56da;box-shadow:0 0 0 3px #d9c5f477}.display-picking{padding:8px;border:2px solid #ad7fe7;border-radius:20px;background:#f5eaff}#display-hint{font-size:10px;line-height:1.4;color:#8055a4;margin-bottom:7px}#display-hint[hidden]{display:none}.empty-speakers{color:#9b84ad;font-size:11px;min-height:30px;display:flex;align-items:center}.voice-stage{gap:9px;justify-content:center;min-height:95px}.voice-stage:before{display:none}.voice-title{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:31px}#orb-label{font-size:13px;line-height:1.4;min-width:0}.voice-body{display:flex;gap:17px;align-items:center;justify-content:center;width:100%}#voice-orb{width:58px;height:58px;min-height:45px;flex-shrink:0}.voice-description{min-width:0;max-width:70%;text-align:left}#voice-caption{font-size:10px;line-height:1.5}#replay{padding-left:0;font-size:10px}#reset{border:1px solid #e6a9b9;background:#ffe9ef;color:#b34463;border-radius:11px;padding:7px 10px;font-size:10px;font-weight:800;min-height:31px;flex-shrink:0}.actions{padding-bottom:5px}.action strong{font-size:clamp(10px,3.6vw,16px);max-width:100%;overflow-wrap:anywhere;padding:0 3px;text-align:center;line-height:1.2}.action{width:clamp(75px,22vw,94px);height:clamp(75px,22vw,94px)}.language strong{white-space:normal;line-height:1.15;overflow-wrap:anywhere}.language small{overflow:hidden;text-overflow:ellipsis;max-width:100%;display:block}.language{min-height:58px}.speaker{white-space:normal;overflow-wrap:anywhere;line-height:1.15;padding:5px 3px}.logo{font-size:25px}.section-label strong{font-size:14px}#status{min-height:29px;font-size:10px}dialog p{overflow-wrap:anywhere}@media(max-height:700px){.app{gap:7px}.language{min-height:49px}.voice-stage{min-height:82px;gap:5px}#voice-orb{width:45px;height:45px;min-height:35px}.voice-title{min-height:28px}#orb-label{font-size:11px}#reset{min-height:28px;padding:5px 8px;font-size:9px}.voice-body{gap:12px}.action{width:72px;height:72px}.header-tools{gap:5px}#display-mode{font-size:9px;padding:5px 8px;min-height:29px}.speaker{font-size:10px}.language small{font-size:6px}}@media(max-width:360px){.app{padding-left:10px;padding-right:10px}.logo{font-size:21px}.logo>span{font-size:25px}#display-mode{max-width:190px;font-size:8px}.header-tools{gap:4px}#help{width:25px;height:25px}.language strong{font-size:9px}.speaker{font-size:9px}#orb-label{font-size:10px}.section-label strong{font-size:12px}}@media(max-height:580px){.app{gap:5px}.language{min-height:40px}.language small{display:none}.voice-stage{min-height:65px;flex-direction:column;flex-wrap:nowrap;gap:2px}.voice-body{gap:10px}#voice-orb{width:32px;height:32px;min-height:28px}.wave i{max-height:18px}#voice-caption{display:none}#replay{min-height:22px;padding:2px 0}.action{width:62px;height:62px}.speaker{min-height:26px}.permission-bar button{font-size:9px}.permission-bar{font-size:9px}.action strong{font-size:10px}.display-picking{padding:5px}#display-hint{font-size:8px;margin-bottom:4px}}
/* Larger display selector and reset beside the speaking-language heading. */
header{height:48px}.header-tools{gap:8px;min-width:0}#display-mode{font-size:14px;min-height:44px;padding:10px 13px;border-width:2px;border-radius:15px;max-width:260px;line-height:1.2}#display-mode svg{width:21px;height:21px}.speaker-section .section-label{align-items:center;gap:10px;margin-bottom:9px}.speaker-section .section-label>span{font-size:18px;font-weight:850;color:#674488;line-height:1.25;min-width:0}.speaker-section #reset{font-size:12px;min-height:38px;padding:8px 11px;border-radius:12px;max-width:48%;white-space:normal;text-align:center}.voice-title{justify-content:center}.voice-title #orb-label{text-align:center}@media(max-width:360px){header{height:44px}.header-tools{gap:5px}#display-mode{font-size:12px;min-height:42px;padding:8px 9px;max-width:205px}#display-mode svg{width:19px;height:19px}.speaker-section .section-label>span{font-size:16px}.speaker-section #reset{font-size:10px;padding:6px 8px;min-height:34px}.logo{font-size:20px}.logo>span{font-size:23px}}@media(max-height:580px){header{height:42px}#display-mode{min-height:38px}.speaker-section .section-label{margin-bottom:5px}.speaker-section #reset{min-height:30px;padding-top:4px;padding-bottom:4px}.voice-stage{min-height:52px}.voice-title{min-height:20px}}
/* Two clear language groups, followed by a spacious vertical speaker list. */
.picker>.section-label{display:none}.language-groups{display:grid;grid-template-columns:1fr 1fr;gap:15px;align-items:start}.basic-column h2{font-size:17px;line-height:1.2;margin:0 0 9px;font-weight:850;color:#664b82}.language-list{grid-template-columns:1fr;gap:6px}.language{min-height:40px;padding-top:4px;padding-bottom:4px;border-radius:14px}.language strong{font-size:13px}.language small{font-size:7px}.extra-column{position:relative;min-width:0}#extra-toggle{width:100%;min-height:45px;display:flex;align-items:center;justify-content:space-between;gap:7px;padding:10px 12px;border:2px solid #b39bd6;background:#f4ecff;color:#755197;border-radius:15px;font-size:15px;font-weight:800;text-align:left;line-height:1.3}#extra-toggle[aria-expanded=true]{background:#8758cb;color:white}#extra-languages{position:absolute;top:calc(100% + 8px);left:0;right:0;z-index:10;display:grid;gap:6px;padding:9px;background:#fffc;border:1px solid #ded0ee;border-radius:17px;box-shadow:0 12px 30px #6340812b;max-height:45dvh;overflow:auto;backdrop-filter:blur(12px)}#extra-languages[hidden]{display:none}#extra-languages .language{width:100%;min-height:43px}.speaker-section{margin-top:12px;padding:12px 14px;border-radius:22px;border:1px solid #eadff3}.speaker-section .section-label{margin-bottom:11px;gap:10px}.speaker-section .section-label>span{font-size:20px;font-weight:850}.speaker-section #reset{font-size:20px;font-weight:850;padding:7px 11px;min-height:40px;max-width:49%;line-height:1.2}.speaker-section #speakers{flex-direction:column;gap:7px}.speaker-section .speaker{flex:none;min-height:44px;font-size:18px;font-weight:800;border-radius:13px;padding:8px 12px;text-align:left}.speaker[aria-pressed=true]:before{font-size:11px;display:inline-block;margin-right:8px}.voice-stage{min-height:42px;gap:3px}.voice-title{min-height:20px}#voice-orb{width:36px;height:36px;min-height:28px}.voice-body{gap:11px}.wave i{max-height:22px}#orb-label{font-size:11px}#voice-caption{font-size:9px}#replay{font-size:9px;min-height:21px;padding-top:2px;padding-bottom:2px}@media(max-width:360px){.language-groups{gap:10px}.basic-column h2{font-size:15px}#extra-toggle{font-size:13px;padding:8px 9px}.language strong{font-size:11px}.speaker-section .section-label>span,.speaker-section #reset{font-size:17px}.speaker-section .speaker{font-size:16px}.speaker-section{padding:10px 11px}}@media(max-height:700px){.app{gap:6px;padding-top:8px;padding-bottom:8px}header{height:42px}#display-mode{min-height:38px}.basic-column h2{font-size:15px;margin-bottom:6px}.language-list{gap:4px}.language{min-height:29px;padding-top:3px;padding-bottom:3px}.language strong{font-size:11px}.language small{display:none}.language:before{grid-row:1}.language{grid-template-rows:auto}#extra-toggle{min-height:39px;font-size:13px}.speaker-section{margin-top:6px;padding:7px 10px}.speaker-section .section-label{margin-bottom:6px}.speaker-section .section-label>span,.speaker-section #reset{font-size:17px}.speaker-section #reset{min-height:30px;padding:4px 8px}.speaker-section #speakers{gap:4px}.speaker-section .speaker{min-height:30px;padding:5px 10px;font-size:15px}.voice-stage{min-height:32px;gap:0}.voice-title{min-height:16px}#orb-label{font-size:10px}#voice-orb{width:26px;height:26px;min-height:22px}.wave i{max-height:16px}#voice-caption{display:none}#replay{min-height:18px}.actions{padding-top:2px;padding-bottom:3px}.action{width:62px;height:62px}.permission-bar{padding-top:2px;padding-bottom:2px}.permission-bar button{min-height:24px}#status{min-height:22px;font-size:9px}}@media(max-height:580px){.app{gap:4px}.speaker-section{margin-top:4px}.basic-column h2{margin-bottom:4px}.language{min-height:27px}.speaker-section .speaker{min-height:28px}.speaker-section .section-label>span,.speaker-section #reset{font-size:15px}.voice-stage{min-height:28px}.action{width:58px;height:58px}.voice-title{display:none}.speaker-section #reset{min-height:28px}#display-mode{min-height:34px}header{height:36px}}
/* Keep all controls inside shorter portrait screens too. */
@media(min-height:701px){.app{gap:8px}.speaker-section{margin-top:10px;padding-top:10px;padding-bottom:10px}.speaker-section .speaker{min-height:40px;padding-top:6px;padding-bottom:6px}}
/* Keep the requested brand legible beside the display-language control. */
.logo{min-width:0;flex-shrink:0;letter-spacing:-.6px}.logo .brand-name{font-size:20px;font-weight:900;white-space:nowrap;color:#6741b0}@media(max-width:480px){.logo .brand-name{font-size:18px}.header-tools{gap:5px}#display-mode{padding-left:8px;padding-right:8px;font-size:12px}}@media(max-width:360px){.logo .brand-name{font-size:16px}.header-tools{gap:4px}#display-mode{font-size:10px;padding-left:6px;padding-right:6px}#display-mode svg{width:17px;height:17px}}
/* Give the brand room and bring primary controls next to speaker selection. */
header{height:54px;margin-bottom:16px}.logo{flex-shrink:1;max-width:185px}.logo .brand-name{white-space:normal;line-height:1.2;font-size:20px;word-break:keep-all}.header-tools{flex-shrink:0}.actions{margin-top:8px;margin-bottom:5px;padding-top:7px;padding-bottom:8px}.voice-stage{flex:0 0 auto;min-height:28px;flex-direction:row;justify-content:center;align-items:center;gap:10px;padding:3px 0}.voice-title{width:auto;min-height:0}.voice-body{width:auto;gap:7px}.voice-description{max-width:none}#voice-orb{width:23px;height:23px;min-height:23px;border-radius:8px;box-shadow:none}.wave{gap:2px}.wave i{width:2px;max-height:13px}#voice-caption{display:none}#orb-label{font-size:10px;color:#9a87a8}#replay{font-size:9px;min-height:22px;padding:2px 5px}.permission-bar{margin-top:2px}.action{width:88px;height:88px}.action strong{font-size:18px}.speaker-section .speaker{font-size:19px}.basic-column h2{font-size:18px}@media(min-height:780px){header{margin-bottom:24px}.language{min-height:44px}.language strong{font-size:14px}.speaker-section .speaker{min-height:46px;font-size:20px}.speaker-section .section-label>span,.speaker-section #reset{font-size:21px}.action{width:96px;height:96px}.action strong{font-size:19px}}@media(max-width:480px){.logo{max-width:142px}.logo .brand-name{font-size:18px}header{gap:8px}.header-tools{gap:5px}#display-mode{font-size:11px;padding-left:7px;padding-right:7px}}@media(max-width:360px){.logo{max-width:125px}.logo .brand-name{font-size:16px}#display-mode{font-size:10px}.header-tools{gap:3px}}@media(max-height:700px){header{height:48px;margin-bottom:12px}.actions{margin-top:5px;padding-top:4px;padding-bottom:6px}.action{width:68px;height:68px}.action strong{font-size:15px}.speaker-section .speaker{font-size:16px}.basic-column h2{font-size:16px}.voice-stage{min-height:24px;padding:0}.voice-title{display:block}#orb-label{font-size:9px}#voice-orb{width:20px;height:20px;min-height:20px}}@media(max-height:580px){header{height:40px;margin-bottom:8px}.logo .brand-name{font-size:15px}.actions{margin-top:2px;padding-top:2px;padding-bottom:4px}.action{width:59px;height:59px}.action strong{font-size:12px}.speaker-section .speaker{font-size:14px}.voice-stage{min-height:20px}.voice-title{display:none}}
/* User-supplied KYS mark, paired with the app name. */
.logo{display:flex;align-items:center;gap:7px;max-width:220px}.brand-image{display:block;width:62px;height:auto;flex-shrink:0;border-radius:10px}.logo .brand-name{font-size:17px;max-width:110px;line-height:1.3;letter-spacing:-.5px}@media(max-width:480px){.logo{max-width:148px;gap:5px}.brand-image{width:46px;border-radius:7px}.logo .brand-name{font-size:14px;max-width:91px}.header-tools{gap:4px}#display-mode{font-size:10px;padding-left:6px;padding-right:6px}}@media(max-width:360px){header{gap:5px}.logo{max-width:122px;gap:4px}.brand-image{width:40px}.logo .brand-name{font-size:12px;max-width:76px}#display-mode{font-size:9px;padding-left:5px;padding-right:5px}.header-tools{gap:3px}}
/* Round speaker choices, centered secondary menu, and 1.5× brand. */
.language-groups{align-items:center}.extra-column{align-self:center}.speaker-section #speakers{display:flex;flex-direction:row;justify-content:space-evenly;align-items:center;gap:12px;padding:8px 0 5px}.speaker-section .speaker{flex:0 1 135px;width:135px;min-width:0;min-height:0;aspect-ratio:1;height:auto;border-radius:50%;padding:10px 8px;text-align:center;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:7px;font-size:18px;font-weight:850;line-height:1.3;border:3px solid #ffffffb8;box-shadow:0 5px 0 color-mix(in srgb,var(--accent) 20%,white),0 9px 18px #8055a012}.speaker-section .speaker[aria-pressed=true]{box-shadow:0 0 0 2px var(--accent),0 7px 18px color-mix(in srgb,var(--accent) 25%,transparent)}.speaker[aria-pressed=true]:before{content:'';display:block;width:9px;height:9px;border-radius:50%;background:white;margin:0;box-shadow:0 0 5px #fff8}.speaker-section .empty-speakers{min-height:75px;text-align:center;justify-content:center;width:100%}.logo{max-width:290px;gap:10px}.brand-image{width:93px;border-radius:14px}.logo .brand-name{font-size:25.5px;max-width:165px}header{height:76px;gap:15px}@media(max-width:480px){.logo{max-width:210px;gap:7px}.brand-image{width:69px;border-radius:10px}.logo .brand-name{font-size:21px;max-width:130px}header{height:auto;min-height:74px;flex-wrap:wrap;gap:7px;margin-bottom:18px}.header-tools{margin-left:auto}#display-mode{font-size:11px;min-height:37px}.speaker-section #speakers{gap:8px}.speaker-section .speaker{flex-basis:100px;width:100px;font-size:15px;padding:8px 5px}.speaker-section .section-label>span,.speaker-section #reset{font-size:18px}}@media(max-width:360px){.logo{max-width:188px}.brand-image{width:60px}.logo .brand-name{font-size:18px;max-width:114px}.speaker-section .speaker{flex-basis:84px;width:84px;font-size:12px}.speaker-section #speakers{gap:7px}.speaker-section .section-label>span,.speaker-section #reset{font-size:16px}}@media(max-height:700px){header{margin-bottom:12px}.speaker-section #speakers{padding:5px 0;gap:9px}.speaker-section .speaker{flex-basis:85px;width:85px;font-size:14px}.speaker-section .speaker[aria-pressed=true]:before{width:7px;height:7px}.speaker-section .empty-speakers{min-height:55px}}@media(max-height:580px){header{margin-bottom:7px;min-height:65px}.speaker-section .speaker{flex-basis:70px;width:70px;font-size:11px;padding:5px 3px;gap:4px}.speaker-section #speakers{padding-top:2px;padding-bottom:3px}.speaker-section .empty-speakers{min-height:40px}}
/* Equal-size circles in aligned rows; replay directly beneath Translate. */
.app{--control-circle:clamp(78px,25vw,112px)}.speaker-section #speakers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;justify-items:center;align-items:center;padding:8px 0}.speaker-section .speaker{width:var(--control-circle);height:var(--control-circle);min-width:0;min-height:0;max-width:100%;flex:none;aspect-ratio:1;font-size:17px;padding:8px 5px;border-radius:50%}.speaker-section .empty-speakers{grid-column:1 / -1}.actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));justify-items:center;align-items:start;gap:13px 10px;padding:8px 14px 3px;margin-top:9px}.action{width:var(--control-circle);height:var(--control-circle);min-width:0;max-width:100%;border-radius:50%;padding:7px;box-sizing:border-box}.action strong{font-size:21px;font-weight:850}.actions #start{grid-column:1;grid-row:1}.actions #interpret{grid-column:2;grid-row:1}.actions #finish{grid-column:3;grid-row:1}.actions #replay{grid-column:2;grid-row:2;align-self:start;justify-self:center;min-width:112px;min-height:39px;border:1px solid #c4a4ed;border-radius:14px;background:#eee1ff;color:#713bb4;font-size:20px;font-weight:900;line-height:1.2;padding:8px 10px;white-space:normal;text-align:center;opacity:1;box-shadow:0 3px 9px #8658c111}.actions #replay:disabled{color:#9479b2;background:#f3ebfc;border-color:#dfcfee;opacity:.75}.voice-stage{display:none}@media(max-width:480px){.speaker-section .speaker{font-size:14px}.actions #replay{font-size:17px;min-width:100px;min-height:37px;padding:7px 8px}.action strong{font-size:19px}.speaker-section #speakers,.actions{column-gap:8px}}@media(max-width:360px){.speaker-section .speaker{font-size:12px}.actions #replay{font-size:15px;min-width:88px;padding:6px}.action strong{font-size:17px}}@media(max-height:700px){.app{--control-circle:clamp(72px,23vw,96px)}.actions{margin-top:6px;padding-top:5px;row-gap:10px}.speaker-section #speakers{padding:5px 0}.speaker-section .speaker{font-size:14px}.actions #replay{font-size:17px;min-height:32px;padding:5px 7px}.action strong{font-size:18px}}@media(max-height:580px){.app{--control-circle:clamp(65px,21vw,82px)}.speaker-section .speaker{font-size:11px}.actions #replay{font-size:14px;min-width:85px;min-height:29px;padding:4px 6px}.action strong{font-size:15px}.actions{row-gap:8px;padding-top:3px}}

/* All eight languages are visible in a three-column silver palette. */
.language-groups{display:block}
#languages.language-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
#languages .language,#languages .language[aria-pressed=true]{background:linear-gradient(145deg,#fafbfc,#e2e5e9);color:#3f4856;border:2px solid #d1d6dc;box-shadow:0 3px 7px #58647416}
#languages .language[aria-pressed=true]{border-color:#8d97a6;box-shadow:inset 0 1px 0 #fff,0 3px 7px #58647420}
#languages .language{min-height:47px;grid-template-columns:14px minmax(0,1fr);column-gap:6px;padding:6px}
#languages .language strong{font-size:13px;font-weight:850}
#languages .language small{color:#6c7480;font-size:7px}
.speaker-section .speaker,.speaker-section .speaker[aria-pressed=true]{background:linear-gradient(145deg,#fafbfc,#e2e5e9);color:#3f4856;border:3px solid #f9fafb;box-shadow:0 5px 0 #d4d9df,0 8px 16px #58647412}
.speaker-section .speaker[aria-pressed=true]{border-color:#84909f;box-shadow:0 0 0 2px #aab3bf,0 6px 13px #58647422}
.speaker-section .speaker[aria-pressed=true]:before{background:#ef3447;box-shadow:0 0 6px #ef344766}
@media(max-width:480px){#languages .language strong{font-size:12px}#languages .language{min-height:46px}}
@media(max-width:360px){#languages .language{padding:5px 3px;column-gap:4px;grid-template-columns:12px minmax(0,1fr)}#languages .language strong{font-size:10px}}
@media(max-height:700px){#languages .language{min-height:35px}#languages .language small{display:none}}
/* Circular silver language buttons with a clearly visible status lamp. */
body{overflow:auto}
.app{height:auto;min-height:100dvh;--control-circle:clamp(72px,23vw,100px)}
#languages.language-list{justify-items:center;gap:10px 8px}
#languages .language{display:flex;flex-direction:column;align-items:center;justify-content:center;width:var(--control-circle);height:var(--control-circle);min-height:0;max-width:100%;border-radius:50%;padding:9px 5px;gap:5px;flex:none;box-shadow:0 4px 0 #d4d9df,0 8px 15px #58647415}
#languages .language:before{position:static;transform:none;display:block;flex:none;width:15px;height:15px;border-radius:50%;margin:0}
#languages .language strong{font-size:13px;line-height:1.2;overflow-wrap:anywhere}
#languages .language small{display:none}
#languages .language[aria-pressed=true]{border-color:#8d97a6;box-shadow:0 0 0 1px #aab3bf,0 4px 0 #d4d9df}
.speaker-section .speaker:before{content:'';display:block;flex:none;width:15px;height:15px;border-radius:50%;margin:0;background:#d4ccd8;border:1px solid #a79aad}
.speaker-section .speaker[aria-pressed=true]:before{width:15px;height:15px;background:radial-gradient(circle at 35% 30%,#ffb9b5 0,#ff4949 35%,#d71932 78%);border:1px solid #fff7;animation:lamp-breathe 2.8s ease-in-out infinite}
@media(max-width:480px){.app{gap:7px}header{margin-bottom:12px}.speaker-section{margin-top:7px}.basic-column h2{margin-bottom:8px}.speaker-section .section-label{margin-bottom:5px}#languages .language strong{font-size:12px}.actions{margin-top:5px;padding-top:5px}}
@media(max-height:740px){.app{--control-circle:clamp(65px,20vw,80px)}header{margin-bottom:7px}#languages.language-list{row-gap:7px}#languages .language{gap:4px;padding:6px 3px}#languages .language strong{font-size:11px}.speaker-section .speaker{font-size:12px}}
@media(prefers-reduced-motion:reduce){.speaker-section .speaker[aria-pressed=true]:before{animation:none}}

/* Current display locale below its selector; compact oval language choices. */
.header-tools{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 7px;align-items:center}
#display-mode{grid-column:1;grid-row:1}
#help{grid-column:2;grid-row:1}
#display-current{grid-column:1;grid-row:2;text-align:center;font-size:20px;line-height:1.2;font-weight:900;letter-spacing:.4px;color:#674488}
#languages.language-list{gap:8px}
#languages .language{width:100%;height:auto;min-height:45px;border-radius:999px;display:grid;grid-template-columns:14px minmax(0,1fr);grid-template-rows:auto;column-gap:6px;padding:8px 7px;box-shadow:0 3px 0 #d4d9df,0 5px 10px #58647412}
#languages .language:before{grid-column:1;grid-row:1;width:14px;height:14px}
#languages .language strong{grid-column:2;grid-row:1;font-size:13px;line-height:1.2}
#languages .language[aria-pressed=true]{box-shadow:0 0 0 1px #aab3bf,0 3px 0 #d4d9df}
@media(max-width:480px){#display-current{font-size:19px}#languages .language{min-height:42px;padding:7px 5px;column-gap:4px}#languages .language strong{font-size:11px}}
@media(max-width:360px){#languages .language{grid-template-columns:12px minmax(0,1fr);padding:7px 4px}#languages .language:before{width:12px;height:12px}#languages .language strong{font-size:10px}}
@media(max-height:700px){#languages .language{min-height:35px}#display-current{font-size:17px}}

/* Blend the logo surround into the page without a white tile. */
.brand-image{mix-blend-mode:multiply;filter:contrast(1.08);border-radius:0;background:transparent}

.install-bar{display:flex;justify-content:center;align-items:center;gap:10px;padding:2px 0 8px}.install-bar button,.install-guide-actions button{border:1px solid #ccd7d6;border-radius:13px;background:#ffffffb8;color:#145c59;font-size:12px;font-weight:750;padding:8px 11px;min-height:38px}.install-bar #install-app{display:flex;align-items:center;gap:7px}.install-bar img{border-radius:7px}.install-address{display:block;overflow-wrap:anywhere;font-size:12px;color:#145c59}.install-guide-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:17px}
/* Compact rectangular speaking-language choices. */
.speaker-section .speaker{width:100%;max-width:110px;height:68px;min-height:0;aspect-ratio:auto;border-radius:13px;padding:7px 6px;gap:5px;font-size:15px;line-height:1.2;word-break:keep-all;overflow-wrap:normal}
.speaker-section #speakers{padding:5px 0;gap:10px}
.speaker-section .speaker:before,.speaker-section .speaker[aria-pressed=true]:before{width:13px;height:13px}
@media(max-width:480px){.speaker-section .speaker{max-width:100px;height:64px;font-size:13px;border-radius:12px;padding:6px 4px}.speaker-section #speakers{gap:8px}}
@media(max-width:360px),(max-height:700px){.speaker-section .speaker{height:58px;font-size:12px;gap:4px}.speaker-section .speaker:before,.speaker-section .speaker[aria-pressed=true]:before{width:12px;height:12px}}

/* Small, truthful input level and speech playback indicators. */
.audio-monitor{display:grid;grid-template-columns:1fr 1fr;gap:15px;padding:9px 12px;background:#ffffffab;border:1px solid #e3e1eb;border-radius:14px;margin:0 0 2px;font-size:11px}
.meter-heading{display:flex;align-items:center;justify-content:space-between;gap:5px;font-weight:750;color:#52616b;min-height:18px}
#mic-level{font-size:10px;font-variant-numeric:tabular-nums;font-weight:600}
.level-track{height:7px;overflow:hidden;background:#dde4e5;border-radius:5px;margin-top:7px}
#mic-fill{display:block;height:100%;width:0;background:linear-gradient(90deg,#16aa8b,#8bc57a,#f0ac51);transition:width .08s linear}
#output-state{display:block;font-size:10px;line-height:1.4;margin-top:5px;color:#657380;overflow-wrap:anywhere}
.output-wave{display:flex;align-items:center;gap:3px;height:18px}
.output-wave i{width:4px;height:4px;border-radius:3px;background:#aebac0}
#output-meter[data-state=speaking] .output-wave i{background:#8760d4;animation:output-activity .8s ease-in-out infinite alternate}
#output-meter[data-state=speaking] .output-wave i:nth-child(2n){animation-delay:-.25s}
#output-meter[data-state=speaking] .output-wave i:nth-child(3n){animation-delay:-.5s}
#output-meter[data-state=error] #output-state{color:#b13655}
@keyframes output-activity{from{height:5px}to{height:17px}}
.permission-bar{gap:8px;align-items:center}.media-check-buttons{display:flex;gap:5px;flex-shrink:0}
#audio-details{font-size:11px;color:#52616b;background:#ffffff80;border:1px solid #e3e1eb;border-radius:12px;padding:8px 11px}
#audio-details summary{cursor:pointer;font-weight:750}
#audio-details p{font-size:10px;line-height:1.55;margin:7px 0}
#audio-checks{display:grid;gap:5px}
#audio-checks>div{display:grid;grid-template-columns:90px 1fr;gap:8px;align-items:center}
#audio-checks button{border:1px solid #ccd5db;background:#fff;border-radius:8px;padding:7px 4px;font-size:11px;font-weight:700;color:#46626c}
#audio-checks small{font-size:10px;overflow-wrap:anywhere}
@media(max-width:360px){.permission-bar{flex-wrap:wrap}.audio-monitor{gap:9px;padding:8px}#audio-checks>div{grid-template-columns:78px 1fr}}
@media(prefers-reduced-motion:reduce){#output-meter[data-state=speaking] .output-wave i{animation:none;height:12px}}

/* Three visual steps matching the user's marked layout. */
.step-badge{display:inline-flex;align-items:center;justify-content:center;flex:none;width:32px;height:32px;border:2px solid #e85866;border-radius:50%;background:#fff9fa;color:#c33449;font-size:20px;font-weight:900;line-height:1;box-shadow:0 2px 6px #b5334912;letter-spacing:0}
#display-mode{gap:7px}#display-mode .step-badge{width:28px;height:28px;font-size:18px}#display-mode svg{display:none}
.basic-column .step-heading{display:flex;align-items:center;gap:10px}
.actions #start{position:relative;overflow:visible}.actions #start>.step-badge{position:absolute;top:-9px;left:-13px}
.action strong{word-break:normal;overflow-wrap:normal}.interpret strong{font-size:clamp(12px,2.7vw,18px)}
@media(max-width:480px){.step-badge{width:28px;height:28px;font-size:18px}#display-mode .step-badge{width:24px;height:24px;font-size:16px}#display-mode{gap:5px}.actions #start>.step-badge{top:-7px;left:-9px}}

#install-direct{width:100%;border:0;border-radius:14px;background:#145c59;color:white;font-size:16px;font-weight:800;padding:14px;margin:2px 0 16px}#install-direct[hidden]{display:none}#install-steps{background:#f0f6f4;border-radius:14px;padding:14px;font-size:14px;line-height:1.6;color:#315c57}#install-steps:empty{display:none}#install-steps ol{margin:8px 0 0;padding-left:22px}#install-steps li+li{margin-top:8px}

#free-settings{border:1px solid #c8ded7;border-radius:14px;background:#f2fbf7;padding:10px 12px;color:#315e54;font-size:12px}#free-settings summary{font-weight:800;cursor:pointer}#free-settings p{font-size:11px;line-height:1.65}#free-email-form{display:grid;gap:9px}#free-email{width:100%;min-width:0;padding:11px;border:1px solid #a9c5ba;border-radius:9px;font:inherit;background:white;color:#263f37}.free-consent{display:flex;align-items:flex-start;gap:6px;font-size:11px;line-height:1.5}.free-consent input{flex:none;width:18px;height:18px}.free-buttons{display:flex;gap:8px;flex-wrap:wrap}.free-buttons button{border:1px solid #a9c5ba;border-radius:9px;padding:9px 10px;background:white;color:#315e54;font-size:11px;font-weight:700}.free-buttons button[type=submit]{background:#145c59;color:white}#free-email-status{font-weight:700}#free-settings a{color:#145c59}

/* Keep installation beside display-language settings on every screen. */
header{height:auto;flex-wrap:wrap;gap:12px}.header-tools{width:100%;margin-left:0;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr) auto;gap:6px 8px}#install-app{grid-column:1;grid-row:1;display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:8px;border:1px solid #ccd7d6;border-radius:13px;background:#ffffffb8;color:#145c59;font-size:12px;font-weight:750}#install-app img{border-radius:7px;flex-shrink:0}#display-mode{grid-column:2;grid-row:1;min-height:44px;justify-content:center}#display-current{grid-column:2;grid-row:2}#help{grid-column:3;grid-row:1}@media(max-width:360px){.header-tools{gap:5px}#install-app{font-size:10px;gap:4px;padding:6px}#display-mode{font-size:10px;padding:6px}.header-tools #display-mode .step-badge{width:20px;height:20px;font-size:14px}}

#extra-picker{margin-top:8px}#extra-summary{margin-left:auto;width:calc((100% - 16px)/3);list-style:none;text-align:center;cursor:pointer;border:2px solid #bbc3cc;border-radius:22px;background:linear-gradient(#f6f7f8,#e3e7eb);padding:10px 5px;font-size:13px;font-weight:800;color:#46515f}#extra-picker p,#extra-picker small{font-size:11px;color:#756783}#extra-languages{grid-template-columns:repeat(2,minmax(0,1fr));margin:9px 0}#extra-languages .language{background:linear-gradient(#f6f7f8,#e3e7eb);color:#46515f;border-color:#c5cbd3;border-radius:24px}#extra-languages .language[aria-pressed=true]{border-color:#8a95a3}#extra-languages .language strong{font-size:12px}#start{touch-action:manipulation;user-select:none;-webkit-user-select:none}
#extra-languages{position:static;inset:auto;width:100%;z-index:auto;max-height:none;box-shadow:none;backdrop-filter:none}

#languages #extra-summary{grid-column:3;grid-row:2;align-self:stretch;width:100%;margin:0;border-radius:999px;min-height:35px;padding:7px 5px;font-size:13px;box-shadow:0 3px 0 #d4d9df}#extra-picker[hidden]{display:none}@media(max-width:480px){#languages #extra-summary{font-size:11px}}

#text-check{flex-shrink:0;padding:10px 12px;border:1px solid #d9d5e5;border-radius:15px;background:#ffffffbf;font-size:12px}#text-check summary{cursor:pointer;font-weight:800;color:#685384}#text-check>p{font-size:11px;line-height:1.6;color:#776b85}#text-check-results>div{padding:9px;background:#f4f5f8;border-radius:9px;margin:7px 0}#text-check-results p{margin:6px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;color:#344454}

#problem-toast[hidden]{display:none}#problem-toast{position:fixed;z-index:1000;left:50%;top:35%;transform:translateX(-50%);width:min(86vw,460px);box-sizing:border-box;border:3px solid #db243f;border-radius:22px;background:#fff1f3;color:#a61027;padding:22px;box-shadow:0 14px 45px #94132e35;text-align:center;font-size:clamp(17px,4.3vw,21px);line-height:1.6;font-weight:700;animation:problem-pulse 2.6s ease-in-out 2}#problem-toast strong{font-size:1.1em}#problem-toast p{margin:10px 0;overflow-wrap:anywhere}#problem-close{padding:7px 20px;border:1px solid #d75a6c;border-radius:20px;background:white;color:#a61027;font:inherit;font-size:15px}@keyframes problem-pulse{0%,100%{opacity:1}50%{opacity:.15}}@media(prefers-reduced-motion:reduce){#problem-toast{animation:none}}#connection-info{margin:12px 0;padding:14px;border:1px solid #ddd;border-radius:18px;background:#ffffffbb;font-size:13px}#last-problem{color:#b21e35;white-space:pre-wrap}

/* Shared app identity */
header .logo{max-width:100%;min-width:0;flex:1 1 280px;gap:12px}header .logo .brand-copy{display:flex;flex-direction:column;min-width:0;gap:5px}header .logo .brand-name{display:block;max-width:360px;white-space:normal;word-break:normal;overflow-wrap:normal;font-size:clamp(18px,3.7vw,25px);line-height:1.2;letter-spacing:-.3px}header .logo .brand-description{display:block;font-size:14px;font-weight:600;line-height:1.4;letter-spacing:0;color:#74658a}
