/* Main clone.html form geometry, scoped to the middle column. */
.customer-layout #view-clone .clone-main-column{gap:16px;padding:14px 4px 24px 0}
.customer-layout #view-clone .clone-main-column>.customer-tool-heading{display:none}
.customer-layout #view-clone .clone-main-hero{min-height:76px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center}
.customer-layout #view-clone .clone-main-hero h2{font-size:30px;line-height:1.25;font-weight:800;letter-spacing:0;margin:0;padding-top:4px;color:var(--ink)}
.customer-layout #view-clone .clone-main-hero p{margin:7px 0 0;font-size:15px;line-height:1.5;color:var(--muted)}
.customer-layout #view-clone .clone-credit-badge{margin-top:14px;padding:8px 18px;border-radius:12px;background:var(--pale);font-size:13px;flex-wrap:wrap;white-space:normal}
.customer-layout #view-clone .clone-credit-badge strong{color:var(--blue);font-weight:700}
.customer-layout #view-clone .clone-credit-badge small{margin-left:10px;font-size:12px}
.customer-layout #view-clone .clone-main-column>.clone-card{padding:22px;margin:0;border-radius:8px}
.customer-layout #view-clone .clone-step-heading{gap:15px;margin-bottom:20px}
.customer-layout #view-clone .clone-step{width:40px;height:40px;border-radius:8px;font-size:18px;font-weight:800}
.customer-layout #view-clone .clone-step-heading h3{font-size:19px;font-weight:700;line-height:1.5}
.customer-layout #view-clone #cloneUploadStatus{flex-basis:auto;padding:3px 10px;border-radius:20px;background:var(--pale);color:var(--blue);font-size:12px;max-width:none}
.customer-layout #view-clone #cloneUploadStatus:empty{display:none}
.customer-layout #view-clone .clone-sample-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr));gap:18px;align-items:start}
.customer-layout #view-clone .clone-dropzone{min-height:0;padding:40px 20px;border:2px dashed var(--line);gap:5px;background:var(--paper)}
.customer-layout #view-clone .clone-dropzone:hover,.customer-layout #view-clone .clone-dropzone.drag-over{border-color:var(--blue);background:var(--pale)}
.customer-layout #view-clone .clone-dropzone.uploaded{border-color:var(--blue)}
.customer-layout #view-clone .clone-dropzone>[data-icon]{width:58px;height:58px;margin:0 auto 12px;border-radius:8px;background:var(--pale);color:var(--blue)}
.customer-layout #view-clone .clone-dropzone strong{font-size:15px;line-height:1.5;font-weight:600}
.customer-layout #view-clone .clone-dropzone>span:last-child{font-size:13px;line-height:1.6;font-weight:400}
.customer-layout #view-clone .clone-save-voice{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;margin-top:14px}
.customer-layout #view-clone .clone-save-voice input{width:100%;padding:12px 14px;border-radius:12px;font-size:14px}
.customer-layout #view-clone .clone-save-voice .button{border-radius:12px;padding:10px 14px}
.customer-layout #view-clone .clone-saved-panel{min-height:100%;padding:16px;border-radius:16px;background:var(--paper)}
.customer-layout #view-clone .clone-saved-heading{margin-bottom:10px}
.customer-layout #view-clone .clone-saved-heading h3{font-size:15px;font-weight:700}
.customer-layout #view-clone .clone-saved-heading span{display:block;color:var(--muted);font-size:12px;margin-top:2px}
.customer-layout #view-clone .clone-voice-refresh{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;flex-shrink:0;padding:9px}
.customer-layout #view-clone .clone-voice-refresh svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.customer-layout #view-clone .clone-voice-list{max-height:260px;padding-right:4px}
.customer-layout #view-clone .clone-voice-row{padding:12px;border-radius:12px}
.customer-layout #view-clone .clone-voice-list .empty{padding:10px 0;font-size:13px}
.customer-layout #view-clone .clone-import-row{margin:0 0 12px;flex-wrap:wrap}
.customer-layout #view-clone .clone-import-row .small-button{padding:10px 14px;border-radius:10px;min-height:42px;background:var(--pale);color:var(--blue);font-size:13px;font-weight:700}
.customer-layout #view-clone .clone-import-row svg{width:16px;height:16px}
.customer-layout #view-clone #cloneText{min-height:150px;padding:20px;border-radius:8px;font-size:17px;line-height:1.6;outline:none}
.customer-layout #view-clone .clone-rhythm-row{margin:12px 0 0;min-height:40px;flex-wrap:wrap}
.customer-layout #view-clone .clone-rhythm-row .small-button,.customer-layout #view-clone .clone-cue-buttons .small-button{padding:9px 12px;border:1px solid var(--line);border-radius:12px;background:var(--pale);color:var(--blue);font-size:13px;font-weight:700;gap:7px}
.customer-layout #view-clone .clone-rhythm-row svg{width:16px;height:16px}
.customer-layout #view-clone .clone-cue-buttons{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:12px;min-height:40px}
.customer-layout #view-clone .clone-cue-hint{margin:4px 0 0;font-size:13px;line-height:1.5;color:var(--muted)}
.customer-layout #view-clone .clone-text-summary{display:block;text-align:right;font-size:13px;margin:8px 0 0}
.customer-layout #view-clone .clone-adjustments{display:grid;grid-template-columns:1fr;gap:12px;padding:0;border:0}
.customer-layout #view-clone .clone-adjustments>div{margin-top:12px;padding:20px;border:1px solid var(--line);border-radius:8px}
.customer-layout #view-clone .clone-settings-title{display:flex;align-items:center;gap:8px;font-size:15px;font-weight:700;line-height:1.5}
.customer-layout #view-clone .clone-settings-title [data-icon]{display:inline-flex;color:var(--blue)}
.customer-layout #view-clone .clone-settings-title svg{width:18px;height:18px}
.customer-layout #view-clone .clone-speed-row{display:flex;align-items:center;gap:14px;margin-top:16px}
.customer-layout #view-clone .clone-speed-row>span{min-width:70px;font-size:13px;color:var(--muted)}
.customer-layout #view-clone .clone-speed-row input{flex:1;min-width:0}
.customer-layout #view-clone .clone-speed-row output{min-width:48px;text-align:right;font-size:14px;font-weight:700;color:var(--blue)}
.customer-layout #view-clone .clone-expressive-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.customer-layout #view-clone .clone-settings-title small{font-size:11px;padding:2px 7px;border:1px solid var(--line);border-radius:999px;color:var(--blue);background:var(--pale)}
.customer-layout #view-clone .clone-expressive-label{display:inline-flex;gap:7px;font-size:12px;font-weight:700;flex-shrink:0}
.customer-layout #view-clone .clone-expressive-label input{width:16px;height:16px}
.customer-layout #view-clone .clone-levels{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 10px}
.customer-layout #view-clone .clone-levels button{height:40px;border-radius:8px;font-size:13px;font-weight:700}
.customer-layout #view-clone .clone-expressive p{font-size:13px;line-height:1.45;margin:0}
.customer-layout #view-clone .clone-consent{margin:0;font-size:12px}
.customer-layout #view-clone .clone-generate-row{margin:0}
.customer-layout #view-clone #cloneGenerate{padding:16px;min-height:54px;font-size:17px;font-weight:700;border-radius:8px;width:100%;justify-content:center;gap:10px}
.customer-layout #view-clone #cloneGenerate svg{width:20px;height:20px}
@media(max-width:700px){.customer-layout #view-clone .clone-main-column{padding-top:0}.customer-layout #view-clone .clone-main-hero h2{font-size:28px}.customer-layout #view-clone .clone-main-column>.clone-card{padding:16px}.customer-layout #view-clone .clone-step-heading h3{font-size:17px}.customer-layout #view-clone .clone-expressive-head{flex-wrap:wrap}.customer-layout #view-clone .clone-speed-row>span{min-width:45px}.customer-layout #view-clone .clone-save-voice .button{padding:10px}.customer-layout #view-clone .clone-credit-badge small{margin-left:0}}

/* clone.html keeps all submission, Part progress and results in the right History column. */
.customer-layout #view-clone .clone-history-heading{padding-bottom:12px;border-bottom:1px solid var(--line);gap:10px;flex-wrap:wrap}
.customer-layout #view-clone .clone-history-heading h3{display:flex;align-items:center;gap:8px;font-size:16px;font-weight:700}
.customer-layout #view-clone .clone-history-heading h3>svg{color:var(--blue)}
.customer-layout #view-clone #cloneHistoryCount{padding:2px 8px;border-radius:20px;background:var(--pale);color:var(--blue);font-size:12px}
.customer-layout #view-clone .clone-history-heading .history-heading-actions{margin-left:auto;display:flex;align-items:center;gap:10px}
.customer-layout #view-clone .clone-history-heading button{font-size:12px;padding:6px 9px}
.customer-layout #view-clone .clone-history-column svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.customer-layout #view-clone #cloneRecentAudio{display:flex;flex-direction:column;gap:12px}
.customer-layout #view-clone #cloneRecentAudio>.empty{padding:30px 10px;margin:0;text-align:center;color:var(--muted);font-size:14px}
.customer-layout #view-clone .clone-job{border:1px solid var(--line);border-radius:12px;padding:14px;background:var(--paper);min-width:0}
.customer-layout #view-clone .clone-job-top{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:8px}
.customer-layout #view-clone .clone-job-top>strong{font-size:13px;font-weight:700;flex:1;min-width:80px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.customer-layout #view-clone .clone-job-part{font-size:11px;border-radius:10px;padding:2px 7px;color:var(--blue);background:var(--pale)}
.customer-layout #view-clone .clone-job-state{font-size:12px;color:var(--blue)}
.customer-layout #view-clone .clone-job[data-state=completed] .clone-job-state{color:var(--success,#22c55e)}
.customer-layout #view-clone .clone-job-time,.customer-layout #view-clone .clone-job-meta{display:block;font-size:12px;color:var(--muted);margin-bottom:6px}
.customer-layout #view-clone .clone-job-preview{font-size:13px;line-height:1.55;max-height:62px;overflow:hidden;overflow-wrap:anywhere;color:var(--muted);margin:8px 0}
.customer-layout #view-clone .clone-job audio{display:block;width:100%;height:36px;margin:12px 0 8px}
.customer-layout #view-clone .clone-job-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.customer-layout #view-clone .clone-job-actions:empty{display:none}
.customer-layout #view-clone .clone-job-actions .small-button{font-size:12px;padding:6px 10px;text-decoration:none}
.customer-layout #view-clone .clone-job-actions .recording-delete{margin-left:auto;font-size:0;width:30px;height:30px;min-height:0;padding:6px;gap:0}
.customer-layout #view-clone .clone-part-error{font-size:12px;line-height:1.5;color:var(--danger,#bd5547);overflow-wrap:anywhere;margin:8px 0}
.customer-layout #view-clone .clone-job .generation-inline{margin-top:10px;padding:0;border:0;background:transparent}
.customer-layout #view-clone .clone-job .generation-track{height:4px}
.customer-layout #view-clone .clone-job .generation-status-line,.customer-layout #view-clone .clone-job .generation-inline>small{font-size:12px}
.customer-layout #view-clone .clone-submitting{margin-bottom:12px}
.customer-layout #view-clone .clone-submitting>strong{display:block;font-size:13px;margin-bottom:10px}
.customer-layout #view-clone .clone-submitting .generation-state{font-size:13px}
.customer-layout #view-clone #cloneBatchPanel{padding:0 0 14px;margin:0 0 14px;border-bottom:1px solid var(--line)}
.customer-layout #view-clone #cloneBatchPanel .panel-heading{margin-bottom:6px;gap:8px;flex-wrap:wrap}
.customer-layout #view-clone #cloneBatchPanel h3{font-size:12px}
.customer-layout #view-clone #cloneBatchSummary{font-size:12px;margin-bottom:8px}
.customer-layout #view-clone #cloneBatchConnection{font-size:12px;margin:0 0 12px;overflow-wrap:anywhere}

.customer-layout #view-clone .clone-history-bulk{display:flex;align-items:center;gap:8px 12px;flex-wrap:wrap;padding:12px;margin-bottom:14px;border:1px solid var(--line);border-radius:10px;background:var(--paper);font-size:12px;color:var(--muted)}
.customer-layout #view-clone .clone-history-bulk label{display:inline-flex;align-items:center;gap:8px;font-weight:600;color:var(--ink);cursor:pointer}
.customer-layout #view-clone .clone-history-bulk input,.customer-layout #view-clone [data-clone-history-select]{width:15px;height:15px;accent-color:var(--blue);flex-shrink:0;cursor:pointer;margin:0}
.customer-layout #view-clone .clone-history-bulk>span{margin-left:auto}
.customer-layout #view-clone .clone-history-bulk-actions{display:flex;flex-wrap:wrap;gap:6px;flex-basis:100%}
.customer-layout #view-clone .clone-history-bulk-actions .small-button{padding:7px 10px;font-size:12px;border-radius:8px;color:var(--blue);white-space:nowrap}
.customer-layout #view-clone #cloneHistoryNotice{font-size:12px;line-height:1.5;margin:0 0 12px;overflow-wrap:anywhere}
