.listening-panel { margin: 1rem 0; padding: 1rem; border: 1px solid #c7d5c1; border-radius: 16px; background: #f6f8ee; color: #243b34; }
.listening-panel summary { font-weight: 700; cursor: pointer; }
.listening-panel p { line-height: 1.5; }
.listening-consent { display: flex; gap: .6rem; align-items: flex-start; line-height: 1.5; margin: .8rem 0; }
.listening-consent input { margin-top: .3rem; min-width: 18px; }
.listening-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.listening-panel button, .listening-indicator button { font: inherit; padding: .55rem .8rem; min-height: 40px; border: 1px solid #72947c; border-radius: 10px; background: white; color: #243b34; cursor: pointer; }
/* A quiet visual dot with a full touch target and an accessible stop action. */
.word-card .listening-indicator { position: absolute; top: 6px; right: 6px; width: 44px; height: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; display: grid; place-items: center; cursor: pointer; z-index: 5; }
.listening-indicator[hidden] { display: none; }
.listening-dot { width: 8px; height: 8px; border-radius: 50%; background: #c87973; box-shadow: 0 0 0 4px #c8797312; }
.listening-indicator:focus-visible { outline: 2px solid #ae605a; outline-offset: -4px; }
.listening-indicator:hover .listening-dot { background: #b55e58; }
.listening-comparisons { margin-top: 1.1rem; }
.listening-settings { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid #d5dfcc; }
.listening-settings > summary { font-size: .85rem; }
.settings-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.settings-heading button { width: 44px; height: 44px; border-radius: 50%; background: #edf0e9; font-size: 24px; cursor: pointer; }
.settings-tabs { display: flex; gap: 4px; padding: 4px; margin: 16px 0 22px; background: #edf0e9; border-radius: 12px; }
.settings-tabs button { flex: 1; padding: 10px 3px; min-height: 44px; border-radius: 9px; background: transparent; color: #596266; font: inherit; font-size: 12px; cursor: pointer; }
.settings-tabs button[aria-selected="true"] { background: #fff; color: #243b34; box-shadow: 0 1px 4px #0001; font-weight: 700; }
#settingsListening .listening-settings { border: 0; margin: 0; padding: 0; }
#settingsListening .listening-actions button { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 12px; border-radius: 10px; background: #edf0e9; color: #243b34; font: inherit; font-size: 13px; cursor: pointer; border: 1px solid #dce3d6; }
#settingsListening .listening-consent { font-size: 13px; }
#settingsListening .listening-consent input { flex: 0 0 18px; }
.listening-panel .listening-settings-link { border: 0; background: transparent; padding: 0; text-decoration: underline; font-size: .82rem; }
.listening-comparisons h3 { margin: 0; font-size: 1.12rem; }
.listening-caption, .listening-empty { color: #647068; font-size: .88rem; }
.listening-totals { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .5rem; margin: 1rem 0; }
.listening-total { border: 1px solid #dce3d6; border-radius: 12px; padding: .75rem .5rem; background: #fff9; text-align: center; }
.listening-total strong { display: block; font-size: 1.5rem; line-height: 1.3; }
.listening-total span { font-size: .75rem; color: #5f6d65; }
.listening-result { padding: 1rem; margin-top: .65rem; background: #fff; border: 1px solid #dce3d6; border-radius: 14px; }
.listening-result[data-comparison="different"] { border-color: #d8b88b; background: #fffcf5; }
.listening-result-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .45rem; }
.listening-word { margin: 0; font-size: 1.25rem; overflow-wrap: anywhere; }
.listening-badge { border-radius: 20px; padding: .25rem .55rem; font-size: .75rem; font-weight: 700; background: #eef1ec; color: #687368; }
[data-comparison="match"] .listening-badge { background: #e9f2e6; color: #41663b; }
[data-comparison="different"] .listening-badge { background: #f7e8ce; color: #795622; }
.listening-labels { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin: .9rem 0 0; }
.listening-labels > div + div { border-left: 1px solid #e6e9e2; padding-left: .75rem; }
.listening-labels dt { color: #6f796f; font-size: .72rem; margin-bottom: .25rem; }
.listening-labels dd { margin: 0; font-size: .92rem; font-weight: 600; line-height: 1.4; }
.listening-result details { margin-top: .8rem; font-size: .84rem; color: #58675c; }
.listening-result details summary { font-weight: 500; }
.listening-result-footer { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: .75rem; }
.listening-result time { color: #788174; font-size: .7rem; }
.listening-panel .listening-delete-row { padding: .3rem .5rem; min-height: 36px; font-size: .75rem; border-color: #e0e5db; color: #697568; }
