.voice-log-dialog{box-sizing:border-box;width:min(720px,96vw);max-height:94dvh;margin:auto;padding:14px;border:1px solid #777;border-radius:8px;background:#191b1d;color:#fff;font-family:Meiryo,sans-serif;overflow:auto;}
.voice-log-dialog::backdrop{background:#000a;}
.voice-log-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px;}
.voice-log-heading h2{font-size:18px;margin:0;}
.voice-log-dialog button,.voice-log-dialog input,.voice-log-dialog select{font:inherit;box-sizing:border-box;min-width:0;}
.voice-log-dialog button,.dictionary-file-label{padding:6px 10px;border:1px solid #666;border-radius:4px;background:#303437;color:#fff;cursor:pointer;}
#voiceLogClose{font-size:20px;line-height:1;}
#hybridLog{height:min(24dvh,160px);margin:0 0 8px;padding:8px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;background:#080909;font:11px/1.35 monospace;}
.voice-log-fields{display:grid;grid-template-columns:1fr 1fr;gap:6px 10px;}
.voice-log-fields label{display:flex;flex-direction:column;gap:3px;font-size:12px;}
.voice-log-fields input,.voice-log-fields select{width:100%;padding:5px;border:1px solid #777;border-radius:3px;background:#fff;color:#111;height:33px;}
.voice-log-submit{margin-top:8px;}
#registerReading{display:block;width:100%;background:#d86700;border-color:#ff9b3b;min-height:36px;}
#dictionaryStatus{margin:6px 0;font-size:12px;min-height:1.4em;}
.dictionary-sharing{display:flex;gap:6px;align-items:center;flex-wrap:wrap;font-size:12px;}
.dictionary-management-actions{margin-left:auto;display:flex;gap:6px;}
#deleteDictionaryEntry{background:#1761a5;border-color:#5795cf;}
#resetDictionary{background:#b72d2d;border-color:#ed7272;}
.dictionary-manage-dialog{width:min(600px,96vw);}
#dictionaryEntries{max-height:66dvh;overflow:auto;}
.dictionary-entry{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px solid #454748;}
.dictionary-entry span{min-width:0;overflow-wrap:anywhere;font-size:14px;}
.dictionary-entry button{flex-shrink:0;background:#1761a5;border-color:#5795cf;}
.dictionary-confirm-dialog{width:min(440px,94vw);text-align:center;}
#dictionaryConfirmMessage{white-space:pre-wrap;overflow-wrap:anywhere;margin:10px 0 18px;}
#dictionaryConfirmActions{display:flex;justify-content:center;gap:12px;}
#dictionaryConfirmActions[hidden]{display:none;}
#dictionaryConfirmActions button{min-width:90px;}
.dictionary-file-label{position:relative;}
#importDictionary{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer;}
.dictionary-hint{font-size:11px;color:#bbb;margin:7px 0 0;}

#voiceLogBtn{font:inherit;min-height:28px;}
