/* Mobile sound picker and compact player. */
dialog.sound-sheet{padding:28px 20px 0;width:min(460px,100vw);max-height:91dvh;border-radius:28px 28px 0 0;margin:auto auto 0;overflow-x:hidden;overflow-y:auto;border-bottom:0;scrollbar-width:thin}.sound-sheet .close{top:18px;right:16px;background:#f3eddd;width:32px;height:32px;font-size:24px;color:#7f735b}.sound-sheet .close:focus-visible{outline:2px solid #c99b36;outline-offset:2px}.sound-sheet-heading{padding-right:28px}.sound-sheet-heading .eyebrow{font-size:10px;letter-spacing:2px;margin-bottom:7px;color:#a68c58}.sound-sheet-heading h2{font-size:25px;letter-spacing:-.8px;margin:0;line-height:1.4}.sound-sheet-heading p{font-size:12px;color:#9c8c72;margin:8px 0 20px}.voice-category-tabs{display:flex;background:#f2eddf;padding:4px;border-radius:14px;gap:4px;margin-bottom:14px}.voice-category-tabs button{flex:1;min-width:0;padding:12px 3px;font-size:13px;font-weight:600;border-radius:11px;color:#9e8b67}.voice-category-tabs button.chosen{background:#fffdf6;color:#513d1d;box-shadow:0 2px 8px #6a4c1510}#selected-library-voice{margin:0 0 13px;font-size:11px;color:#a2874b;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.voice-search{display:flex;align-items:center;border:1px solid #e8dfc9;border-radius:14px;background:#fffdf7;overflow:hidden}.voice-search input{flex:1;min-width:0;border:0;background:none;padding:12px 14px;font-size:16px;border-radius:0}.voice-search input:focus{outline:0}.voice-search:focus-within{border-color:#d4ad55}.voice-search button{flex:0 0 44px;border:0;background:none;box-shadow:none;min-height:44px;padding:0;font-size:25px;color:#a18a59}.library-filters{display:flex;gap:8px;margin:10px 0 0}.library-filters select{width:auto;flex:1;min-width:0;padding:9px 11px;font-size:12px;border-radius:10px;border-color:#eee4ce;color:#89744d;background:#f8f3e7}.library-filters select[hidden]{display:none}#library-count{font-size:10px;color:#ae9d7e;margin:14px 0 7px}.voice-library .voice-grid{display:flex;flex-direction:column;gap:6px;margin:0;max-height:none;overflow:visible}.voice-library .voice-card{display:flex;align-items:center;gap:11px;min-width:0;min-height:76px;width:100%;text-align:left;padding:12px 10px;background:#fffdf7;border:1px solid transparent;border-radius:15px}.voice-library .voice-card.chosen{background:#fff2ca;border:1px solid #e9c76a;padding:12px 10px}.voice-list-avatar{width:39px;height:43px;flex:0 0 39px;display:grid;place-items:center;border-radius:13px;background:#f0e5cd;color:#9b7c42;font-size:17px;font-weight:600}.tint-1{background:#e8eadd;color:#7c8b61}.tint-2{background:#eee3dc;color:#aa8068}.tint-3{background:#e4e9ee;color:#7f8e9b}.voice-list-copy{min-width:0;flex:1}.voice-list-copy strong{font-size:13px;font-weight:650;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.voice-list-copy small{display:block;font-size:10px;color:#a69576;margin-top:3px}.library-actions{display:flex;gap:6px;align-items:center;flex-shrink:0}.library-actions .voice-preview{border:1px solid #e9ddbf;border-radius:50%;width:34px;height:34px;min-height:34px;padding:0;display:grid;place-items:center;font-size:18px;color:#a17d30;background:transparent}.library-actions .voice-select{border-radius:20px;background:#f5eddb;color:#8b7445;font-size:11px;padding:9px 10px;min-width:43px;min-height:34px}.chosen .voice-select{background:#f5cf65;color:#6a4e17}.library-actions button:disabled{opacity:.35}.library-pages{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:14px 0 20px}.library-pages button{border:0;background:#f6efdf;padding:8px 14px;min-height:36px;font-size:11px;border-radius:10px}.library-pages button:disabled{opacity:.3}.library-pages span{font-size:10px;color:#a7936b}.sound-tuning{border-top:1px solid #eee4cc;padding-top:17px}.sound-section-title{font-size:12px;font-weight:650;margin-bottom:10px}.sound-segments button{padding:10px 7px;font-size:12px;background:#fffdf7}.sound-advanced{margin:20px 0 10px;color:#94805c}.sound-advanced summary{font-size:12px;cursor:pointer;padding:8px 0;list-style-position:inside}.sound-advanced .sound-label{font-size:11px}.sound-advanced select{font-size:13px}.sound-advanced .form-note{font-size:10px;color:#b2a286}.audio-file-actions{display:flex;gap:8px}.audio-file-actions button{flex:1;padding:10px 6px;font-size:11px}.sound-sheet-footer{position:sticky;bottom:0;background:linear-gradient(#fffbeeeb,#fffbee 20%);padding:12px 0 calc(15px + env(safe-area-inset-bottom,0px));margin-top:8px;text-align:left}.sound-sheet-footer .primary{margin:0;width:100%;border-radius:15px;font-size:13px;min-height:48px}.sound-sheet .preview-status{position:sticky;top:0;z-index:3;margin:0 0 12px;border:0;background:#faedc6;padding:10px 12px;border-radius:12px;font-size:11px;display:flex;align-items:center;gap:12px}.preview-status[hidden],.preview-status button[hidden]{display:none!important}.preview-status span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.preview-status button{flex-shrink:0;color:#8b6a2e}.player{gap:9px;padding:12px 12px;border-radius:19px}.player-icon{width:31px;height:36px;flex:0 0 31px}.player .player-info{min-width:0}.player-info strong{font-size:12px}.player-info small{font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#play-toggle{width:37px;height:37px}.player-rate{font-size:11px;color:#947637;min-width:32px;min-height:36px;padding:0}.player-sound{font-size:11px;min-height:34px;padding:6px;border:0;background:#f8efd4;border-radius:10px}#player-close{min-width:21px;font-size:20px;padding:0}.player .play-line{left:52px;right:15px;bottom:7px;height:2px}#play-toggle.loading{animation:loading-turn 1.8s linear infinite}@keyframes loading-turn{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){#play-toggle.loading{animation:none}}@media(max-width:359px){.player{gap:6px;padding:10px}.player-icon{display:none}.player .play-line{left:12px}.sound-sheet{padding-left:15px!important;padding-right:15px!important}.voice-list-avatar{width:32px;flex-basis:32px}.voice-library .voice-card{gap:8px}.library-actions{gap:4px}}
