:root{color-scheme:light;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#172033;background:#f4f6f8}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,select,textarea{font:inherit}button,a.download-link,.history-actions a{min-height:42px;border-radius:6px;border:1px solid #b9c4d2;background:#fff;color:#12345f;padding:0 16px;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:700}button:disabled,.download-link.disabled{cursor:not-allowed;opacity:.55;pointer-events:none}.app-shell{width:min(1560px,calc(100vw - 36px));margin:0 auto;padding:24px 0 48px;display:flex;flex-direction:column;gap:20px}.topbar{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:8px}.header-brand{min-width:0}.eyebrow{margin:0 0 6px;color:#355f93;font-size:.78rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}h1,h2,p{margin-top:0}h1{margin-bottom:6px;font-size:2.15rem;line-height:1.1;color:#0b2345}h2{margin-bottom:4px;font-size:1.15rem;font-weight:800;color:#0b2345;line-height:1.25}.subhead{margin-bottom:0;color:#536171}.model-pill{border:1px solid #c9d3df;background:#fff;border-radius:6px;padding:8px 12px;min-width:280px}.model-label span,.model-pill span{display:block;color:#667487;font-size:.78rem;font-weight:700;text-transform:uppercase}.model-select{width:100%;border:1px solid #c9d3df;border-radius:4px;padding:6px 8px;margin-top:4px;font-size:.92rem;font-weight:600;color:#12345f;background:#fbfcfe;cursor:pointer}.model-select:focus{outline:2px solid #2a72b5;border-color:#2a72b5}.model-pill strong{color:#12345f}.notice{border-left:4px solid #1f5f9f;background:#eaf1f8;color:#173b62;padding:13px 16px;margin-bottom:18px;font-weight:700}.workspace{display:grid;grid-template-columns:minmax(0,1.18fr) minmax(380px,.82fr);gap:20px;align-items:stretch}.script-panel-top,.voice-panel,.output-panel{background:#fff;border:1px solid #d9e0e8;border-radius:8px;padding:20px;box-shadow:0 10px 28px #15274014}.script-panel-top{display:flex;flex-direction:column;gap:12px}.voice-panel,.output-panel{display:flex;flex-direction:column;height:100%;box-sizing:border-box}.voice-panel-header{margin-bottom:12px}.voice-panel-subtitle{color:#667487;font-size:.88rem;margin-bottom:0}.panel-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;flex-wrap:wrap}.panel-heading p{color:#667487;margin-bottom:0;font-size:.88rem}.counts{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;color:#536171;font-size:.85rem;font-weight:700}.count-pill{background:#f0f4f8;border:1px solid #d0dbe8;border-radius:5px;padding:3px 8px;color:#2b5488;font-size:.8rem;font-weight:700}.count-limit .count-pill{background:#fee2e2;border-color:#fca5a5;color:#991b1b}.script-input{width:100%;min-height:180px;resize:vertical;border:1px solid #c9d3df;border-radius:6px;padding:14px;line-height:1.55;color:#172033;background:#fbfcfe;font-size:.95rem;box-sizing:border-box}.script-input:focus{outline:2px solid #2a72b5;border-color:#2a72b5;background:#fff}.long-script-warning{margin-top:4px;margin-bottom:0}.direction-input{width:100%;min-height:200px;resize:vertical;border:1px solid #c9d3df;border-radius:6px;padding:12px;line-height:1.45}.speech-direction-container{display:grid;gap:8px;margin-top:14px}.speech-direction-header{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px}.speech-direction-header-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.save-recipe-pill-btn{min-height:28px;padding:0 10px;font-size:.78rem;font-weight:700;color:#12345f;background:#fff;border:1px solid #b9cbe0;border-radius:6px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:4px;transition:all .15s ease}.save-recipe-pill-btn:hover{background:#eaf1f8;border-color:#12345f}.recipe-count-badge{font-size:.78rem;font-weight:700;color:#1f5f9f;background:#eaf1f8;padding:3px 8px;border-radius:12px}.recipe-picker-card{border:1px solid #c9d7e6;background:#f7fafe;border-radius:8px;padding:12px 14px;margin-bottom:6px}.recipe-picker-top{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.recipe-filter-pills{display:inline-flex;gap:4px;background:#e5edf6;padding:3px;border-radius:6px}.filter-pill{min-height:32px;padding:0 10px;font-size:.82rem;font-weight:700;border:none;background:transparent;color:#3e536c;border-radius:4px;cursor:pointer;transition:all .15s ease}.filter-pill:hover{background:#fff9;color:#12345f}.filter-pill.active{background:#12345f;color:#fff;box-shadow:0 1px 3px #12345f33}.recipe-select-dropdown{flex:1;min-width:220px;min-height:36px;border:1px solid #b9cbe0;border-radius:6px;padding:0 10px;font-size:.9rem;font-weight:600;background:#fff;color:#12345f;cursor:pointer}.recipe-select-dropdown:focus{outline:2px solid #2a72b5;border-color:#2a72b5}.selected-recipe-detail{margin-top:12px;padding-top:12px;border-top:1px solid #dce6f2}.recipe-meta-row{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px}.recipe-title-group{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.recipe-name-text{font-size:1.05rem;color:#0b2345;font-weight:800}.recipe-badge{font-size:.74rem;font-weight:800;padding:2px 7px;border-radius:4px;text-transform:uppercase;letter-spacing:.04em}.recipe-badge.female{background:#fbe6f0;color:#8c1d56}.recipe-badge.male{background:#e3effc;color:#175394}.recipe-badge.voice{background:#eaf6ee;color:#196336;text-transform:none}.recipe-badge.model{background:#f0f3f6;color:#4b5a6c;text-transform:none}.recipe-preview-play-btn{min-height:34px;padding:0 14px;font-size:.85rem;font-weight:700;border-radius:6px;background:#1f5f9f;border:1px solid #1f5f9f;color:#fff;cursor:pointer;display:inline-flex;align-items:center;gap:6px;transition:all .15s ease}.recipe-preview-play-btn:hover{background:#174b80;border-color:#174b80}.recipe-preview-play-btn.playing{background:#c53838;border-color:#c53838;color:#fff}.recipe-description-text{margin:8px 0 6px;font-size:.88rem;color:#3b4e63;line-height:1.45}.recipe-attribute-tags{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 12px}.recipe-attr-pill{display:inline-flex;align-items:center;gap:4px;font-size:.78rem;background:#edf3fa;border:1px solid #cce0f5;color:#17385e;padding:3px 8px;border-radius:4px}.recipe-attr-pill .attr-label{font-weight:700;color:#0b4f8f}.recipe-button-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.dual-apply-group{display:flex;gap:8px;flex-wrap:wrap}.recipe-action-btn{min-height:36px;padding:0 12px;font-size:.84rem;font-weight:700;border-radius:6px;cursor:pointer}.recipe-action-btn.primary{background:#12345f;border:1px solid #12345f;color:#fff}.recipe-action-btn.primary:hover{background:#0b2345;border-color:#0b2345}.recipe-action-btn.primary.secondary{background:#23548e;border-color:#23548e}.recipe-action-btn.ghost{background:#fff;border:1px solid #b9cbe0;color:#1f5f9f}.recipe-action-btn.ghost:hover{background:#f0f6fc}.warning,.inline-error,.error-box{border-radius:6px;padding:8px 12px;margin-top:10px}.warning{background:#fff8e6;border:1px solid #ead08a;color:#684c00}.inline-error,.error-box{background:#fff0f0;border:1px solid #e4a4a4;color:#8d1f1f}.status-box{background:#edf7f1;border:1px solid #a9d4b7;color:#1c6034;border-radius:6px;padding:8px 12px;margin-top:10px}.top-notification-box,.output-status-box{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:12px 0 0;border-radius:6px;padding:8px 12px;font-size:.88rem;line-height:1.35;box-shadow:0 1px 4px #00000008}.notification-content{display:flex;align-items:center;gap:10px;flex:1}.notification-icon{font-size:1.05rem;flex-shrink:0;display:inline-flex;align-items:center;justify-content:center}.status-info-svg{display:block}.btn-icon-svg{display:inline-block;vertical-align:middle;flex-shrink:0}.notification-dismiss{background:transparent;border:none;cursor:pointer;color:inherit;opacity:.65;font-size:.95rem;padding:2px 6px;border-radius:4px;line-height:1;transition:opacity .15s ease,background-color .15s ease}.notification-dismiss:hover{opacity:1;background:#00000014}.mode-row{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:18px 0}.seg{background:#f7f9fb;display:inline-flex;align-items:center;justify-content:center;gap:8px}.seg.active{background:#12345f;border-color:#12345f;color:#fff}.field{display:grid;gap:7px;margin-top:14px}.field span{color:#2d3c4f;font-weight:800}input,select{width:100%;min-height:42px;border:1px solid #c9d3df;border-radius:6px;background:#fff;color:#172033;padding:0 11px}.speaker-grid,.advanced-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 14px}.advanced-grid{margin-top:10px}.advanced-toggle{margin-top:16px;width:100%;justify-content:center}.stitch-toggle-card{margin-top:14px;padding:10px 12px;background:#f4f8fc;border:1px solid #cce0f2;border-radius:6px}.stitch-toggle-label{display:flex;align-items:flex-start;gap:10px;cursor:pointer;-webkit-user-select:none;user-select:none}.stitch-toggle-label input[type=checkbox]{width:18px;height:18px;min-height:18px;margin-top:2px;cursor:pointer;accent-color:#0b4f8f;flex-shrink:0}.stitch-toggle-text{display:flex;flex-direction:column;gap:2px}.stitch-toggle-text strong{font-size:.88rem;color:#0b2345}.stitch-toggle-hint{font-size:.78rem;color:#536171;line-height:1.35}.output-action-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px}.preview-button{width:100%;min-height:50px;background:#fff;border:2px solid #0b4f8f;color:#0b4f8f;font-size:.95rem;font-weight:700;border-radius:6px;display:inline-flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;transition:all .15s ease}.preview-button:hover:not(:disabled){background:#eaf1f8;border-color:#083b6b;color:#083b6b}.generate-button{width:100%;min-height:50px;background:#0b4f8f;border:2px solid #0b4f8f;color:#fff;font-size:.95rem;font-weight:700;border-radius:6px;display:inline-flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;transition:all .15s ease}.generate-button:hover:not(:disabled){background:#083b6b;border-color:#083b6b}.progress-state{margin-top:14px;color:#536171}.progress-state p{margin:8px 0 0}.progress-bar{height:8px;overflow:hidden;border-radius:999px;background:#dbe4ee}.progress-bar span{display:block;width:45%;height:100%;background:#2a72b5}.audio-player{width:100%;margin-top:18px}.output-panel-header{margin-bottom:12px}.output-panel-header h2{margin:0 0 2px;font-size:1.15rem;color:#0b2345}.output-panel-subtitle{margin:0;font-size:.88rem;color:#667487}.output-settings-row{display:flex;gap:12px;margin-top:10px}.field-flex-2{flex:2}.field-flex-1{flex:1}.master-player-wrapper{margin-top:16px;padding:12px 14px;background:#f8fafc;border:1px solid #dce4ee;border-radius:8px}.master-player-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}.master-player-title{font-size:.82rem;font-weight:800;color:#0b2345;text-transform:uppercase;letter-spacing:.04em}.audio-ready-badge{font-size:.72rem;font-weight:800;color:#15803d;background:#dcfce7;border:1px solid #bbf7d0;padding:2px 7px;border-radius:999px;text-transform:uppercase}.master-player-wrapper .audio-player{margin-top:0}.output-chunks-hint{display:flex;align-items:center;gap:8px;margin-top:14px;padding:10px 14px;background:#f0fdf4;border:1px solid #bbf7d0;border-radius:6px;font-size:.84rem;color:#166534;line-height:1.35}.output-chunks-icon{display:inline-block;flex-shrink:0;vertical-align:middle}.button-row,.button-row.output-actions-row{display:grid;grid-template-columns:1fr;gap:10px;margin-top:14px}.regenerate-button{width:100%;display:inline-flex;align-items:center;justify-content:center;gap:8px}.download-buttons-group{display:grid;grid-template-columns:1fr 1fr;gap:8px}.download-link{font-size:.9rem;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:all .15s ease}.download-link.download-wav{background:#f0f6fc;border-color:#7aa3cc;color:#0b3d75}.download-link.download-wav:hover:not(.disabled){background:#0b3d75;border-color:#0b3d75;color:#fff}.download-link.download-mp3{background:#eff9f4;border-color:#8acbb0;color:#10593f}.download-link.download-mp3:hover:not(.disabled){background:#10593f;border-color:#10593f;color:#fff}.save-sample-recipe-btn{width:100%;min-height:40px;margin-top:10px;font-size:.88rem;font-weight:700;color:#12345f;background:#f0f6fc;border:1px dashed #7aa3cc;border-radius:6px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:all .15s ease}.save-sample-recipe-btn:hover{background:#e1eefb;border-color:#12345f}.modal-backdrop{position:fixed;inset:0;background:#0b234573;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);display:flex;align-items:center;justify-content:center;z-index:9999;padding:20px}.modal-card{background:#fff;border-radius:10px;box-shadow:0 20px 40px #0b234540;border:1px solid #c9d7e6;width:100%;max-width:680px;max-height:90vh;overflow-y:auto;display:flex;flex-direction:column}.modal-header{padding:20px 24px 16px;border-bottom:1px solid #e3ebf4;display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.modal-header h2{margin:0 0 4px;font-size:1.15rem;color:#0b2345}.modal-subhead{margin:0;color:#536171;font-size:.88rem}.modal-close-btn{min-height:32px;width:32px;padding:0;border-radius:6px;border:1px solid #d0dbe6;background:#f8fafc;color:#536171;font-size:1rem;cursor:pointer;display:flex;align-items:center;justify-content:center}.modal-close-btn:hover{background:#eaf1f8;color:#0b2345}.modal-form{padding:20px 24px;display:flex;flex-direction:column;gap:14px}.modal-form-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:14px}.modal-form-grid-3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:14px}.modal-textarea{width:100%;min-height:120px;resize:vertical;border:1px solid #c9d3df;border-radius:6px;padding:10px 12px;line-height:1.45;font-size:.9rem}.modal-audio-section{background:#f7fafe;border:1px solid #d2e1f0;border-radius:8px;padding:14px;display:flex;flex-direction:column;gap:10px}.section-label{font-size:.86rem;font-weight:800;color:#12345f}.audio-source-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px}.audio-radio-card{display:flex;align-items:flex-start;gap:8px;padding:10px;border-radius:6px;border:1px solid #c9d7e6;background:#fff;cursor:pointer;transition:all .15s ease}.audio-radio-card input[type=radio]{width:auto;min-height:auto;margin-top:3px;cursor:pointer}.audio-radio-card.active{border-color:#12345f;background:#eef5fc}.radio-content strong{display:block;font-size:.85rem;color:#0b2345;margin-bottom:2px}.radio-content p{margin:0;font-size:.76rem;color:#627284;line-height:1.3}.upload-file-zone{background:#fff;border:1px dashed #a8c1de;border-radius:6px;padding:12px;margin-top:4px}.file-upload-input-label{display:flex;flex-direction:column;gap:6px;font-size:.82rem;font-weight:700;color:#3b4e63}.file-upload-input-label input[type=file]{padding:6px 0;border:none;background:transparent}.uploaded-file-summary{margin-top:8px;padding-top:8px;border-top:1px solid #eaf1f8;display:flex;flex-direction:column;gap:6px}.uploaded-file-summary .file-name{font-size:.82rem;font-weight:700;color:#12345f}.current-sample-preview{margin-top:4px;display:flex;flex-direction:column;gap:6px;font-size:.82rem;color:#4b5a6c;font-weight:600}.modal-mini-audio{width:100%;height:36px}.modal-footer-actions{margin-top:8px;display:flex;justify-content:flex-end;gap:10px}.modal-cancel-btn{min-height:42px;padding:0 16px;background:#f4f6f8;border:1px solid #c9d3df;color:#536171}.modal-save-btn{min-height:42px;padding:0 20px;background:#0b4f8f;border:1px solid #0b4f8f;color:#fff}.modal-save-btn:hover{background:#083c6d}@media(max-width:1120px){.app-shell{width:min(100vw - 28px,980px)}.workspace{grid-template-columns:1fr}.topbar{align-items:flex-start;flex-direction:column;gap:12px}.model-pill{width:100%}}@media(max-width:720px){.panel-heading,.speaker-grid,.advanced-grid,.output-action-grid,.button-row,.modal-form-grid-2,.modal-form-grid-3{grid-template-columns:1fr;display:grid}.counts{justify-content:flex-start}.script-input{min-height:280px}.modal-card{max-height:95vh}.modal-header,.modal-form{padding:16px}}.auth-error-screen{display:flex;align-items:center;justify-content:center;min-height:100vh;margin:0;padding:24px;background-color:#0f172a;color:#f8fafc}.auth-error-card{background-color:#1e293b;border:1px solid #334155;padding:2.5rem;border-radius:12px;max-width:480px;width:100%;text-align:center;box-shadow:0 10px 25px -5px #0000004d}.auth-error-title{color:#f87171;margin-top:0;margin-bottom:.75rem;font-size:1.5rem;font-weight:800}.auth-error-message{color:#e2e8f0;font-size:.95rem;line-height:1.5}.auth-error-subtext{color:#94a3b8;font-size:.85rem;line-height:1.4;margin-bottom:0}.auth-loading-screen{min-height:100vh;background-color:#f4f6f8}.section-manager-panel{background:#fff;border:1px solid #d9e0e8;border-radius:8px;padding:24px;box-shadow:0 10px 28px #15274014;width:100%}.section-manager-header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:20px;padding-bottom:16px;border-bottom:1px solid #e2e8f0}.section-manager-title-group{display:flex;flex-direction:column;gap:4px}.section-manager-title-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.section-manager-title-row h2{margin:0;font-size:1.15rem;font-weight:800;color:#0b2345;display:flex;align-items:center;gap:8px}.section-count-badge{display:inline-flex;align-items:center;justify-content:center;background:#e2eaf4;color:#1b4d82;font-size:.8rem;font-weight:800;padding:3px 10px;border-radius:12px}.pending-review-badge{display:inline-flex;align-items:center;gap:4px;background:#fef3c7;color:#92400e;border:1px solid #fde68a;font-size:.78rem;font-weight:800;padding:3px 9px;border-radius:999px;animation:pulse 1.5s infinite}.section-manager-subtitle{margin:0;font-size:.88rem;color:#667487;line-height:1.45}.stitching-indicator{display:inline-flex;align-items:center;gap:6px;font-size:.8rem;font-weight:700;color:#1b5e20;background:#e8f5e9;padding:6px 12px;border-radius:6px;border:1px solid #c8e6c9;animation:pulse 1.5s infinite;white-space:nowrap}.section-cards-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(460px,1fr));gap:16px}.section-card{background:#fff;border:1px solid #cbd5e1;border-radius:8px;padding:16px;display:flex;flex-direction:column;gap:12px;transition:all .2s ease;box-shadow:0 2px 8px #12345f0a}.section-card:hover{border-color:#94a3b8;box-shadow:0 4px 14px #12345f14}.section-card.has-pending-take{border-color:#f59e0b;background:#fffdfa;box-shadow:0 0 0 1px #f59e0b,0 4px 16px #f59e0b26}.section-card.is-regenerating{border-color:#3b82f6;background:#f8faff;box-shadow:0 0 0 1px #3b82f6,0 4px 14px #3b82f61f}.section-card-top{display:flex;justify-content:space-between;align-items:center;gap:8px}.section-badges{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.section-badge{font-size:.72rem;font-weight:700;padding:2px 7px;border-radius:4px;text-transform:uppercase;letter-spacing:.02em}.section-index-badge{background:#eef2f6;color:#334155;border:1px solid #d1dbe5}.section-speaker-badge{background:#e0f2fe;color:#0369a1;border:1px solid #bae6fd}.section-take-badge{background:#f1f5f9;color:#475569}.section-modified-badge{background:#fef3c7;color:#92400e;border:1px solid #fde68a;font-weight:800}.section-regen-btn{min-height:28px;padding:0 10px;font-size:.78rem;font-weight:700;border-radius:5px;border:1px solid #cbd5e1;background:#fff;color:#1e293b;cursor:pointer;display:inline-flex;align-items:center;gap:6px;transition:all .15s ease}.section-regen-btn:hover:not(:disabled){background:#f1f5f9;border-color:#94a3b8;color:#0f172a}.section-regen-btn.btn-regen-modified{background:#1e40af;color:#fff;border-color:#1e3a8a}.section-regen-btn.btn-regen-modified:hover:not(:disabled){background:#1d4ed8;color:#fff;border-color:#1e40af}.section-text-editor-container{display:flex;flex-direction:column;gap:6px;margin:2px 0 6px}.section-text-editor-header{display:flex;justify-content:space-between;align-items:center;gap:8px}.section-text-label{font-size:.74rem;font-weight:700;color:#475569;text-transform:uppercase;letter-spacing:.02em}.section-reset-text-btn{background:transparent;border:1px solid #cbd5e1;color:#64748b;font-size:.72rem;font-weight:700;padding:1px 8px;border-radius:4px;cursor:pointer;transition:all .15s ease}.section-reset-text-btn:hover{background:#f1f5f9;color:#0f172a;border-color:#94a3b8}.section-text-input{width:100%;padding:8px 10px;font-size:.92rem;line-height:1.45;color:#0f172a;background:#f8fafc;border:1px solid #cbd5e1;border-left:3px solid #1f5f9f;border-radius:0 6px 6px 0;resize:vertical;min-height:52px;font-family:inherit;transition:border-color .15s ease,background .15s ease,box-shadow .15s ease;box-sizing:border-box}.section-text-input:focus{outline:none;background:#fff;border-color:#2563eb;border-left:3px solid #2563eb;box-shadow:0 0 0 2px #2563eb26}.section-text-input.is-modified{border-left-color:#f59e0b;background:#fffdfa}.section-text-input.is-modified:focus{border-left-color:#d97706;border-color:#d97706;box-shadow:0 0 0 2px #d9770626}.section-modified-hint{font-size:.78rem;color:#92400e;background:#fef3c7;border:1px solid #fde68a;padding:4px 8px;border-radius:4px;line-height:1.35}.section-text{margin:0;padding:10px 14px;border-left:3px solid #1f5f9f;background:#f8fafc;border-radius:0 6px 6px 0;font-size:.94rem;color:#0f172a;line-height:1.5;font-style:normal;font-weight:500}.section-player-block{display:flex;flex-direction:column;gap:4px;margin-top:auto}.section-player-header{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:6px}.player-label{font-size:.75rem;font-weight:700;color:#64748b;text-transform:uppercase;letter-spacing:.02em}.section-downloads-group{display:flex;align-items:center;gap:6px}.section-download-btn{display:inline-flex;align-items:center;gap:4px;font-size:.72rem;font-weight:700;padding:2px 8px;border-radius:4px;text-decoration:none;color:#1e293b;background:#f1f5f9;border:1px solid #cbd5e1;transition:all .15s ease}.section-download-btn:hover:not(.disabled){background:#e2e8f0;border-color:#94a3b8;color:#0f172a}.section-download-btn.disabled{opacity:.45;pointer-events:none;cursor:not-allowed}.section-mini-player{width:100%;height:34px;border-radius:4px}.pending-take-box{margin-top:10px;padding:12px 14px;background:#fffbeb;border:1px solid #fde68a;border-radius:8px;display:flex;flex-direction:column;gap:10px}.pending-take-header{display:flex;flex-direction:column;gap:2px}.pending-take-title{font-size:.85rem;font-weight:800;color:#92400e}.pending-take-hint{font-size:.76rem;color:#b45309}.pending-take-text-note{margin-top:4px;font-size:.8rem;color:#92400e;background:#fef3c7;padding:6px 10px;border-radius:4px;border-left:3px solid #f59e0b}.pending-take-player-row{width:100%}.pending-player{background:#fff}.pending-take-downloads-row{display:flex;flex-direction:column;gap:6px;padding:8px 10px;background:#fff8e1;border:1px solid #fef08a;border-radius:6px}.pending-downloads-label{font-size:.74rem;font-weight:800;color:#854d0e;text-transform:uppercase;letter-spacing:.02em}.pending-downloads-buttons{display:flex;gap:8px;flex-wrap:wrap}.pending-download-link{flex:1;min-width:150px;min-height:30px;display:inline-flex;align-items:center;justify-content:center;gap:6px;font-size:.78rem;font-weight:700;padding:4px 10px;border-radius:5px;text-decoration:none;color:#1e293b;background:#fff;border:1px solid #cbd5e1;transition:all .15s ease;box-shadow:0 1px 2px #0000000a}.pending-download-link:hover:not(.disabled){background:#fff;border-color:#0f172a;color:#0f172a;box-shadow:0 2px 4px #00000014}.pending-download-link.download-wav:hover:not(.disabled){background:#f0f7ff;border-color:#2563eb;color:#1d4ed8}.pending-download-link.download-mp3:hover:not(.disabled){background:#fefce8;border-color:#ca8a04;color:#a16207}.pending-download-link.disabled{opacity:.45;pointer-events:none;cursor:not-allowed}.pending-take-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.btn-keep-take{min-height:34px;background:#16a34a!important;color:#fff!important;border:1px solid #15803d!important;font-size:.82rem;font-weight:700;border-radius:6px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:all .15s ease}.btn-keep-take:hover:not(:disabled){background:#15803d!important}.btn-discard-take{min-height:34px;background:#fff!important;color:#dc2626!important;border:1px solid #fca5a5!important;font-size:.82rem;font-weight:700;border-radius:6px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:all .15s ease}.btn-discard-take:hover:not(:disabled){background:#fef2f2!important;border-color:#f87171!important}.session-history-panel{background:#fff;border:1px solid #d9e0e8;border-radius:8px;padding:20px 24px;box-shadow:0 10px 28px #15274014;width:100%}.session-history-header{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}.session-history-title-row h2{margin:0;font-size:1.15rem;font-weight:800;color:#0b2345;display:flex;align-items:center;gap:8px}.history-count-badge{display:inline-flex;align-items:center;justify-content:center;background:#eaf1f8;color:#12345f;font-size:.78rem;font-weight:800;padding:2px 8px;border-radius:999px}.session-history-subtitle{margin:2px 0 0;font-size:.88rem;color:#667487}.session-history-header-actions{display:flex;align-items:center;gap:8px}.clear-history-btn{min-height:32px;padding:0 12px;font-size:.8rem;font-weight:700;color:#b91c1c;background:#fff;border:1px solid #fca5a5;border-radius:6px;cursor:pointer;transition:all .15s ease}.clear-history-btn:hover{background:#fef2f2;border-color:#ef4444}.toggle-history-btn{min-height:32px;padding:0 12px;font-size:.8rem;font-weight:700;color:#334155;background:#f1f5f9;border:1px solid #cbd5e1;border-radius:6px;cursor:pointer;transition:all .15s ease}.toggle-history-btn:hover{background:#e2e8f0}.history-content{margin-top:14px}.history-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(360px,1fr));gap:14px}.history-card{border:1px solid #e2e8f0;border-radius:8px;padding:14px;background:#f8fafc;display:flex;flex-direction:column;gap:8px;transition:all .15s ease}.history-card:hover{border-color:#cbd5e1;background:#fff;box-shadow:0 2px 8px #0000000a}.history-card-header{display:flex;justify-content:space-between;align-items:center;gap:8px}.history-time{font-weight:800;font-size:.85rem;color:#0b2345}.history-voice{font-size:.82rem;color:#475569;font-weight:600}.history-tags{display:flex;flex-wrap:wrap;gap:4px}.history-tag{display:inline-block;font-size:.72rem;font-weight:700;padding:1px 6px;border-radius:4px}.history-recipe{color:#8a4805;background:#fff8eb;border:1px solid #f2dbb3}.history-model{color:#355f93;background:#eaf1f8}.history-rate{color:#10593f;background:#eff9f4;border:1px solid #c0e5d6}.history-loudness{color:#683282;background:#f7effb;border:1px solid #dfc3ec}.history-script{margin:4px 0 8px;font-size:.85rem;color:#334155;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.history-actions{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:auto;padding-top:6px;border-top:1px solid #edf2f7}.history-load-btn{min-height:28px;padding:0 10px;font-size:.78rem;font-weight:700;color:#1e40af;background:#eff6ff;border:1px solid #bfdbfe;border-radius:5px;cursor:pointer}.history-load-btn:hover{background:#dbeafe}.history-download-links{display:flex;gap:6px}.history-download-link{min-height:28px;padding:0 8px;font-size:.75rem;font-weight:700;border-radius:5px;text-decoration:none;display:inline-flex;align-items:center}.history-wav-link{background:#f0f6fc;border:1px solid #c2d6eb;color:#0b3d75}.history-wav-link:hover{background:#0b3d75;color:#fff}.history-mp3-link{background:#eff9f4;border:1px solid #c0e5d6;color:#10593f}.history-mp3-link:hover:not(.disabled){background:#10593f;color:#fff}.history-mp3-link.disabled{opacity:.5;pointer-events:none}.spinner-mini{display:inline-block;width:12px;height:12px;border:2px solid rgba(0,0,0,.2);border-top-color:currentColor;border-radius:50%;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:1120px){.workspace,.section-cards-grid,.history-grid{grid-template-columns:1fr}}
