/* Voice and reply-language refinements extracted from final-polish.css. */

.reply-language-options{margin-top:2px}.reply-language-options button{min-height:64px}.language-preference-sheet header{margin-bottom:13px}.language-preference-sheet section>h3{font-size:9px}.language-preference-sheet .preference-slider button{font-size:9px}

@media(max-width:420px){.reply-language-options{grid-template-columns:repeat(3,1fr)!important}.reply-language-options button{min-height:62px!important}}

.voice-response-preference h3,.reply-language-preference h3{margin:0 0 10px;color:var(--muted);font:8px/1.4 var(--font-body);font-weight:400;letter-spacing:.12em}.voice-response-preference,.reply-language-preference{display:grid;gap:0}.reply-language-preference{margin-top:18px;padding-top:17px;border-top:1px solid color-mix(in srgb,var(--line) 76%,transparent)}.voice-response-preference .voice-preference,.reply-language-preference .voice-preference{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.voice-response-preference .voice-preference button,.reply-language-preference .voice-preference button{min-height:68px;padding:8px;border-radius:16px}


/* Settings, Deep Water, Voice, and Language ownership migrated from styles.css. */
.deep-water-sheet{width:min(430px,calc(100vw - 22px));max-height:min(780px,calc(100dvh - 22px));padding:0;border:1px solid color-mix(in srgb,var(--accent) 35%,var(--line));border-radius:28px;background:color-mix(in srgb,var(--surface) 87%,transparent);color:var(--ink);box-shadow:0 28px 90px color-mix(in srgb,#000 38%,transparent);backdrop-filter:blur(28px) saturate(115%);overflow:hidden}
.deep-water-sheet::backdrop{background:color-mix(in srgb,#020713 58%,transparent);backdrop-filter:blur(7px)}
.deep-water-sheet[open]{animation:deep-water-in .42s cubic-bezier(.2,.8,.2,1) both}.deep-water-sheet.is-closing{animation:deep-water-out .3s cubic-bezier(.4,0,1,1) both}
.deep-water-sheet form{max-height:inherit;padding:22px 20px 20px;overflow:auto}
.deep-water-sheet header{display:grid;grid-template-columns:36px 1fr;gap:14px;align-items:start;margin-bottom:20px}.deep-water-sheet header>button{width:34px;height:34px;padding:0;border:0;background:none;color:var(--ink);font:24px/1 "Cormorant Garamond",serif}.deep-water-sheet header small,.deep-water-group>small{display:block;color:var(--muted);font:8px/1.4 system-ui,sans-serif;letter-spacing:.2em}.deep-water-sheet h2{max-width:290px;margin:5px 0 0;font:italic 24px/1.25 "Cormorant Garamond","Noto Serif SC",serif;font-weight:400}
.deep-water-group{padding:13px 0;border-top:1px solid var(--line)}.deep-water-group>small{margin-bottom:7px}.deep-water-group>button{display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:9px;align-items:center;width:100%;padding:11px 3px;border:0;background:none;color:var(--ink);text-align:left}.deep-water-group>button:hover{background:linear-gradient(90deg,color-mix(in srgb,var(--accent) 9%,transparent),transparent)}.deep-water-group>button:focus-visible{outline:1px solid var(--accent);outline-offset:2px}.deep-water-group button>i{color:var(--accent);font:normal 17px/1 "Cormorant Garamond",serif;text-align:center}.deep-water-group button>span{display:grid;gap:3px}.deep-water-group button b{font:500 13px/1.3 "Noto Serif SC",serif}.deep-water-group button span small{color:var(--muted);font:9px/1.45 system-ui,sans-serif}.deep-water-group button em{color:var(--accent);font:italic 12px/1 "Cormorant Garamond","Noto Serif SC",serif}.deep-water-group--danger button em,.deep-water-group--danger button>i{color:color-mix(in srgb,#b56868 70%,var(--accent))}
.deep-water-usage{display:grid;gap:9px;padding:15px 3px;border-top:1px solid var(--line)}.deep-water-usage span{display:flex;justify-content:space-between;gap:16px}.deep-water-usage small{color:var(--muted);font:9px/1.4 system-ui,sans-serif}.deep-water-usage b{color:var(--muted);font:400 9px/1.4 system-ui,sans-serif}.deep-water-usage div{height:2px;background:var(--line)}.deep-water-usage i{display:block;width:18%;height:100%;background:var(--accent);opacity:.58}.deep-water-note{margin:4px 0 0;padding:12px 14px;border-radius:15px;background:color-mix(in srgb,var(--accent) 7%,transparent);color:var(--muted);font:9px/1.55 system-ui,sans-serif}.deep-water-note.is-warning{color:color-mix(in srgb,#b56868 70%,var(--ink))}
@keyframes deep-water-in{from{opacity:0;transform:translateY(24px) scale(.985)}to{opacity:1;transform:none}}@keyframes deep-water-out{to{opacity:0;transform:translateY(18px) scale(.99)}}
@media(prefers-reduced-motion:reduce){.deep-water-sheet[open],.deep-water-sheet.is-closing{animation:none!important}.deep-water-group>button{transition:none!important}}
#settingsSheet{width:min(430px,calc(100vw - 22px));max-height:min(780px,calc(100dvh - 22px));margin:auto;padding:0;border:1px solid color-mix(in srgb,var(--accent) 30%,var(--line));border-radius:28px;background:color-mix(in srgb,var(--surface) 78%,transparent);color:var(--ink);box-shadow:0 28px 80px color-mix(in srgb,#000 24%,transparent);backdrop-filter:blur(30px) saturate(112%);overflow:hidden}
#settingsSheet::backdrop,.deep-water-sheet::backdrop{background:color-mix(in srgb,#07101c 28%,transparent);backdrop-filter:blur(5px)}
#settingsSheet form{max-height:inherit;overflow:auto;padding:23px 20px 22px}
#settingsSheet[open]{animation:soft-center-pop-in .62s cubic-bezier(.2,.76,.2,1) both}#settingsSheet.is-closing{animation:soft-center-pop-out .4s cubic-bezier(.4,0,.6,1) both;pointer-events:none}
@media(prefers-reduced-motion:reduce){#settingsSheet[open],#settingsSheet.is-closing{animation:none!important}}
#settingsSheet,.deep-water-sheet{background:color-mix(in srgb,var(--bg) 78%,transparent)!important}
#settingsSheet[open],.deep-water-sheet[open]{animation:soft-center-pop-in .46s cubic-bezier(.2,.76,.2,1) both!important}#settingsSheet.is-closing,.deep-water-sheet.is-closing{animation:soft-center-pop-out .3s ease both!important}
.voice-preference-sheet{width:min(400px,calc(100vw - 28px));margin:auto;padding:0;border:1px solid color-mix(in srgb,var(--accent) 30%,var(--line));border-radius:26px;background:color-mix(in srgb,var(--bg) 78%,transparent);color:var(--ink);box-shadow:0 28px 80px color-mix(in srgb,#000 24%,transparent);backdrop-filter:blur(30px) saturate(112%);overflow:hidden}
.voice-preference-sheet::backdrop{background:color-mix(in srgb,#07101c 28%,transparent);backdrop-filter:blur(5px)}
.voice-preference-sheet form{padding:22px 20px 20px}.voice-preference-sheet header{display:grid;grid-template-columns:34px 1fr;gap:12px;align-items:start;margin-bottom:20px}.voice-preference-sheet header>button{width:32px;height:32px;border:0;background:none;color:var(--ink);font:22px/1 "Cormorant Garamond",serif}.voice-preference-sheet header small{color:var(--muted);font:7px system-ui,sans-serif;letter-spacing:.2em}.voice-preference-sheet h2{margin:5px 0 0;font:italic 22px/1.28 "Cormorant Garamond","Noto Serif SC",serif;font-weight:400}.voice-preference-sheet .privacy-note{margin:13px 2px 0}
.voice-preference-sheet[open]{animation:soft-center-pop-in .46s cubic-bezier(.2,.76,.2,1) both}.voice-preference-sheet.is-closing{animation:soft-center-pop-out .3s ease both;pointer-events:none}
@media(max-width:420px){.voice-preference-sheet .voice-preference{grid-template-columns:1fr}.voice-preference-sheet .voice-preference button{min-height:52px}}
@media(prefers-reduced-motion:reduce){.voice-preference-sheet[open],.voice-preference-sheet.is-closing{animation:none!important}}
.language-preference-sheet h3,.reply-language-preference h3{margin:0 0 10px;color:var(--muted);font:8px/1.4 var(--font-body);font-weight:400;letter-spacing:.12em}.reply-language-preference{margin-top:18px;padding-top:17px;border-top:1px solid color-mix(in srgb,var(--line) 76%,transparent)}
.preference-slider{--choice-index:0;position:relative;isolation:isolate;display:grid;grid-template-columns:repeat(3,1fr);gap:0;padding:3px;border:1px solid color-mix(in srgb,var(--accent) 22%,var(--line));border-radius:19px;background:rgba(var(--glass-rgb),.12);overflow:hidden}.preference-slider>i{position:absolute;z-index:-1;left:3px;top:3px;width:calc((100% - 6px)/3);height:calc(100% - 6px);border:1px solid color-mix(in srgb,var(--accent) 34%,transparent);border-radius:16px;background:color-mix(in srgb,var(--accent) 12%,rgba(var(--glass-rgb),.22));box-shadow:0 6px 16px color-mix(in srgb,var(--bg) 12%,transparent);transform:translateX(calc(var(--choice-index)*100%));transition:transform .42s cubic-bezier(.22,1,.36,1)}.preference-slider button{min-width:0;height:35px;padding:0 5px;border:0;background:none;color:var(--muted);font:9px/1 var(--font-body);transition:color .28s ease}.preference-slider button.is-active{color:var(--ink)}.preference-slider button:focus-visible{outline:1px solid var(--accent);outline-offset:-3px;border-radius:15px}.language-preference-sheet .privacy-note,.reply-language-preference .privacy-note{margin:10px 2px 0!important}
@media(prefers-reduced-motion:reduce){.preference-slider>i{transition:none!important}}

.voice-preference{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.voice-preference button{min-height:68px;display:grid;align-content:center;gap:5px;padding:8px;border:1px solid var(--line);border-radius:16px;background:none;color:var(--ink);font:9px "Noto Serif SC",serif}.voice-preference button small{color:var(--muted);font-size:6px;line-height:1.4}.voice-preference button.is-active{border-color:color-mix(in srgb,var(--accent) 55%,var(--line));background:color-mix(in srgb,var(--accent) 13%,transparent);color:var(--accent)}
.auto-voice-permission{display:grid;grid-template-columns:20px 1fr;gap:10px;align-items:start;margin-top:14px;padding:12px 2px 0;border-top:1px solid color-mix(in srgb,var(--line) 74%,transparent);color:var(--ink)}.auto-voice-permission input{width:18px;height:18px;margin:1px 0 0;accent-color:var(--accent)}.auto-voice-permission span{display:grid;gap:4px}.auto-voice-permission b{font:10px/1.4 "Noto Serif SC",serif;font-weight:500}.auto-voice-permission small{color:var(--muted);font:7px/1.55 system-ui,sans-serif}
