.setting-help-button{display:inline-flex;align-items:center;justify-content:center;flex:none;gap:4px;font:500 11px/1.4 system-ui,sans-serif;letter-spacing:0;padding:5px 8px;min-height:30px;color:#5a7044;background:transparent;border:1px solid transparent;border-radius:999px;white-space:nowrap;vertical-align:middle}
.setting-help-button:before{content:'?';display:inline-flex;align-items:center;justify-content:center;border:1px solid #8d9e77;width:14px;height:14px;font-size:10px;border-radius:50%}
.setting-help-button:hover{background:#e5ebd8;border-color:#ced8bc;color:#344e29}
.settings-section>h3 .setting-help-button{margin-left:12px;font-weight:400}
.setting-detail-dialog{width:min(520px,calc(100% - 28px));max-height:calc(100dvh - 40px);padding:25px 28px;overflow-y:auto;border-radius:15px}
.setting-detail-dialog[open]{display:flex;flex-direction:column;overflow:hidden}
#setting-detail-content{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-right:8px}
.setting-detail-dialog .dialog-header{align-items:center;gap:15px;padding-bottom:14px;margin-bottom:17px}
.setting-detail-dialog .dialog-header,.setting-detail-done{flex-shrink:0}
.setting-detail-dialog h2{font-family:var(--serif);font-size:21px;line-height:1.5;margin:0;color:#293c2d}
#setting-detail-content p{font-size:14px;line-height:1.9;color:#52624c;margin:0 0 15px;overflow-wrap:anywhere}
#setting-detail-content p+p{font-size:13px;color:#738166;margin-top:-5px}
.setting-detail-section+.setting-detail-section{border-top:1px solid #d6dfc5;padding-top:16px;margin-top:18px}
.setting-detail-section h3{font-size:14px;color:#3f5635;margin:0 0 9px;font-weight:600}
.setting-detail-done{margin-top:6px;font-size:12px;min-height:36px}
.setting-detail-links{display:flex;flex-wrap:wrap;gap:8px 15px;padding-top:12px;border-top:1px solid #d6dfc5}
.sync-diagnostic-result{white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.9 system-ui,sans-serif;background:#e9eddf;color:#344d2d;padding:12px 14px;border-radius:8px;border:1px solid #cdd6bb;margin:13px 0 0;user-select:text}
@media(max-width:760px){.setting-help-button{min-height:34px;font-size:11px;padding:6px 7px}.setting-detail-dialog{padding:20px;max-height:calc(100dvh - 30px)}.setting-detail-dialog h2{font-size:19px}.setting-detail-dialog .icon-btn{min-width:36px;min-height:36px}#setting-detail-content p{font-size:14px}#setting-detail-content p+p{font-size:13px}.settings-section>h3 .setting-help-button{margin-left:6px}}

/* 设置页内的网页语音包：下载进度与声音选择 */
.voice-pack{margin-top:14px;padding-top:14px;border-top:1px dashed #d6dfc5}
.voice-pack-status{display:flex;align-items:center;gap:8px;font-size:12.5px;color:#4f7137;margin-bottom:9px}
.voice-pack-dot{flex:none;width:9px;height:9px;border-radius:50%;background:#b9c4a3;margin-top:1px}
.voice-pack-dot.ok{background:#7fae4e}
.voice-pack-dot.err{background:#d08a5a}
.voice-progress{height:8px;border-radius:999px;background:#e6ecd8;overflow:hidden;display:none;margin-bottom:9px}
.voice-progress.active{display:block}
.voice-progress-bar{height:100%;width:0;background:linear-gradient(90deg,#9bc85e,#5d7c42);border-radius:999px;transition:width .2s ease}
.voice-pack-actions{display:flex;align-items:center;gap:10px}
.voice-pack-actions button{font-size:12px}
.voice-percent{font-size:12px;color:#7a8a68;min-width:38px}
@media(max-width:760px){.voice-pack-status{font-size:12px}.voice-pack-actions button{width:100%}.voice-pack-actions{flex-direction:column;align-items:stretch}.voice-percent{text-align:center}}

/* 回答提示：与「结束并总结」并排放在标题栏，展开内容浮在按钮下方 */
.talk-layout{grid-template-columns:minmax(0,1fr)}
.chat-header{position:relative}
.chat-help{position:static;flex:none;margin:0;min-width:0}
.chat-help>summary{display:flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;list-style:none;background:#f4f8e8;color:#5d7c42;border:1px solid #c0d0a5;border-radius:999px;font-size:10px;font-weight:500;line-height:1.4;padding:5px 10px;min-height:29px;white-space:nowrap}
.chat-help>summary::-webkit-details-marker{display:none}
.chat-help>summary:after,.chat-help[open]>summary:after{content:none}
.chat-help[open]{padding:0;background:none;border:0;box-shadow:none;border-radius:0;max-height:none;min-width:0;overflow:visible}
.chat-help[open]>summary{justify-content:space-between;gap:12px;background:#f4f8e8;color:#5d7c42;border:1px solid #c0d0a5;border-radius:999px;padding:5px 10px;min-height:29px;margin:0}
.chat-help>summary:hover{background:#e8f2d8}
.chat-help>summary:focus-visible{outline:2px solid #819e17;outline-offset:2px}
.chat-help .help-toggle{display:none;align-items:center;gap:5px;flex:none;font-size:10px;font-weight:600;letter-spacing:.06em;line-height:1;color:#4f7137;user-select:none;white-space:nowrap}
.chat-help[open] .help-toggle{display:inline-flex}
.chat-help .help-toggle-text:before{content:"收起"}
.chat-help .help-toggle-chev{font-size:13px;line-height:1;font-weight:700}
.chat-help .help-toggle-chev:before{content:"⌃"}
.chat-help[open]>summary:hover .help-toggle{color:#345522}
.chat-help:not([open])>.help-body{display:none}
.chat-help>.help-body{position:absolute;top:calc(100% + 8px);right:13px;z-index:20;width:min(320px,calc(100vw - 32px));max-height:min(60dvh,460px);overflow:auto;overscroll-behavior:contain;padding:16px 17px;background:#f3f8e9;border:1px solid #c6d8b0;border-radius:14px;box-shadow:0 14px 34px #2c442026}
.conversation-view .chat-toolbar{padding-right:9px}
@media(max-width:760px){.chat-help>summary,.chat-help[open]>summary{font-size:9px;padding:4px 7px;min-height:27px}.chat-help .help-toggle{font-size:10px}.chat-help>.help-body{right:9px;width:min(290px,calc(100vw - 26px));padding:14px}.conversation-view .chat-toolbar{padding-right:5px}}
#cloud-audio-player.needs-tap{border-color:#dfa848;background:#fff8e8;box-shadow:0 0 0 2px #dfa84826}
/* 朗读声音：音源下拉独占整行，手机上四个按钮排成整齐两列 */
.settings-section .field-grid .field-wide{grid-column:1/-1}
@media(max-width:760px){.voice-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.voice-actions button{width:100%;min-width:0;margin:0}.voice-actions .text-button{border:1px solid #c9d4bc;border-radius:12px;background:#fbfcf8;text-align:center;font-size:12px;min-height:43px}}
