:root{--ink:#262626;--muted:#6b6b6b;--orange:#d95721;--orange-dark:#b8471d;--orange-soft:#fff3ed;--border:#dedede;--soft:#fafafa;--green:#1f9d68;--green-soft:#e9f8f1;--red:#cc3b51}
*{box-sizing:border-box}body{margin:0;background:#f5f5f5;color:var(--ink);font:15px/1.55 Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}button,input,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.45}[hidden]{display:none!important}button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid var(--orange);outline-offset:4px}header{min-height:76px;display:flex;align-items:center;gap:16px;border-bottom:1px solid var(--border);padding:12px max(24px,calc((100vw - 1180px)/2));background:#fff}.brand{display:flex;align-items:center;gap:8px;text-decoration:none;color:#171717;font-size:25px;font-weight:800;letter-spacing:-1px}.private-tag{font-size:11px;font-weight:600;color:var(--muted);background:var(--soft);border:1px solid #eaeaea;border-radius:20px;padding:4px 10px}header>.text-button{margin-left:auto}main{max-width:1180px;margin:auto;padding:36px 24px 30px}.heading{margin-bottom:24px}.eyebrow{font-size:10px;font-weight:750;letter-spacing:1.7px;color:var(--orange)}.heading h1{font-size:clamp(29px,4vw,38px);line-height:1.2;letter-spacing:-1.3px;margin:8px 0 10px}.heading p{color:var(--muted);margin:0}.flow-steps{display:flex;list-style:none;padding:0;margin:0 0 26px;gap:0;border-bottom:1px solid var(--border)}.flow-steps li{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12px;padding:0 24px 15px 0}.flow-steps li>span{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background:#eaeaea;font-size:11px;font-weight:700}.flow-steps li[aria-current]{color:var(--ink);font-weight:650}.flow-steps li[aria-current]>span{background:var(--orange);color:#fff}.flow-steps li.complete>span{background:var(--orange-soft);color:var(--orange)}.workspace{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);gap:24px;align-items:start}.input-panel,.output-panel{min-width:0}.card{padding:24px;background:#fff;border:1px solid var(--border);border-radius:14px;margin-bottom:20px;min-width:0}.section-label{display:flex;align-items:center;gap:9px;margin-bottom:16px;flex-wrap:wrap}.section-label h2{font-size:17px;margin:0;font-weight:700;letter-spacing:-.3px}.section-label .text-button{margin-left:auto;font-size:11px}.badge{font-size:10px;font-weight:600;color:var(--green);background:var(--green-soft);border-radius:12px;padding:3px 8px;margin-left:auto}.dropzone{width:100%;border:1px dashed #ccc;border-radius:10px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;padding:25px 15px;min-height:150px;background:var(--soft);color:var(--ink);transition:background .15s,border-color .15s}.dropzone:hover,.dropzone.dragging{background:var(--orange-soft);border-color:var(--orange)}.dropzone svg{fill:none;stroke:var(--orange);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;width:25px;height:25px;margin-bottom:6px}.dropzone strong{font-size:14px;overflow-wrap:anywhere;max-width:100%}.dropzone span{font-size:12px;color:var(--muted)}.dropzone.has-file{min-height:88px;padding:17px}.dropzone.has-file svg{display:none}audio{display:block;width:100%;height:44px;max-width:100%}#source-player{margin-top:15px}.status{font-size:12px;color:var(--muted);margin-top:13px;overflow-wrap:anywhere;min-height:0}.status:empty{display:none}.status.error{color:var(--red)}.status.busy{display:flex;gap:8px;align-items:flex-start}.status.busy:before,.spinner,.primary[aria-busy="true"]:before{content:"";display:inline-block;flex:0 0 auto;width:13px;height:13px;border:2px solid #efc7b6;border-top-color:var(--orange);border-radius:50%;animation:spin .8s linear infinite;margin-top:3px}.primary{width:100%;min-height:49px;border:0;border-radius:9px;background:var(--orange);color:white;font-weight:700;margin-top:14px;padding:12px 15px;display:flex;align-items:center;justify-content:center;gap:10px}.primary[aria-busy="true"]:before{margin:0;border-color:#ffffff60;border-top-color:white}.primary:hover:not(:disabled){background:var(--orange-dark)}.text-button{border:0;background:none;color:var(--orange-dark);font-size:12px;min-height:40px;padding:6px 0}.text-button:hover{color:var(--orange);text-decoration:underline;text-underline-offset:3px}.help{font-size:12px;color:var(--muted);margin:0 0 14px}.format-note{font-size:11px;color:var(--muted);margin:-4px 0 14px;padding-left:10px;border-left:2px solid #f1c3ae}.editor-wrap{position:relative;min-width:0;background:var(--soft);border:1px solid var(--border);border-radius:10px;overflow:hidden}.editor-wrap:focus-within{border-color:var(--orange);box-shadow:0 0 0 3px #d9572110}#lyrics{display:block;position:relative;resize:vertical;min-height:300px;height:440px;max-height:70dvh;width:100%;margin:0;border:0;border-radius:0;padding:18px;font-size:16px;line-height:1.8;letter-spacing:normal;overflow-wrap:break-word;tab-size:4;background:transparent;color:var(--ink);outline:none}#lyrics:read-only{cursor:text}.lyric-backdrop{display:none;position:absolute;inset:0;pointer-events:none;white-space:pre-wrap;overflow-wrap:break-word;overflow:hidden;border:0;padding:18px;font-size:16px;line-height:1.8;tab-size:4;color:var(--ink)}.editing .lyric-backdrop{display:block}.editing #lyrics{color:transparent;-webkit-text-fill-color:transparent;caret-color:var(--ink)}.editing #lyrics::selection{background:#f9731640}.changed{color:#c62828;background:#fce8e6;border-radius:2px;box-decoration-break:clone;-webkit-box-decoration-break:clone}.editor-meta{display:flex;justify-content:space-between;gap:12px;color:var(--muted);font-size:11px;margin-top:10px;min-height:17px}.editing+.editor-meta #word-count{color:#c62828}.output-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:17px}.output-heading h2{font-size:17px;margin:0;letter-spacing:-.3px}.empty{padding:48px 15px 52px;text-align:center;color:var(--muted)}.empty h3{color:var(--ink);font-size:16px;font-weight:650;margin:18px 0 7px}.empty p{font-size:12px;max-width:260px;margin:auto}.sound-lines{display:flex;align-items:center;justify-content:center;gap:5px;height:37px}.sound-lines i{display:block;width:4px;border-radius:4px;background:#f1c3ae;height:16px}.sound-lines i:nth-child(2),.sound-lines i:nth-child(4){height:28px}.sound-lines i:nth-child(3){height:37px}.result-card{background:var(--soft);border:1px solid #e8e8e8;border-radius:10px;padding:18px;margin-top:16px}.result-card:first-child{margin-top:0}.result-card.done{background:#f5fcf8;border-color:#cfe9dc}.result-card h3{font-size:14px;margin:0 0 6px;overflow-wrap:anywhere}.result-meta{font-size:11px;color:var(--muted);margin:0 0 14px}.downloads{display:flex;gap:17px;flex-wrap:wrap;margin-top:12px}.downloads a,.result-card .edit-version{font-size:12px;color:var(--orange-dark);font-weight:650;text-underline-offset:3px;min-height:36px;display:inline-flex;align-items:center}.result-card details{border-top:1px solid #dfeae3;padding-top:12px;margin-top:8px;font-size:12px;color:var(--muted)}.result-card summary{cursor:pointer;min-height:28px}.result-card details audio{margin-top:12px}.edit-version{padding:0;border:0;background:none;text-decoration:underline;min-height:40px;margin-top:0}.history,.timing{padding:17px 22px}.history summary,.timing summary{font-size:13px;font-weight:650;cursor:pointer;min-height:24px}.history button{display:block;width:100%;text-align:left;color:var(--muted);border:0;border-top:1px solid #eee;background:none;padding:12px 0;font-size:12px;min-height:44px;overflow-wrap:anywhere}.history button:first-child{margin-top:12px}.history button.active{color:var(--orange)}.timing dl{margin:15px 0;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 15px;font-size:12px}.timing dt{color:var(--muted)}.timing dd{margin:0;font-variant-numeric:tabular-nums;font-weight:600;text-align:right}.timing .help{margin:12px 0 0;font-size:11px}.job-time{font-size:11px;color:var(--muted);margin:8px 0 0}footer{text-align:center;font-size:11px;color:var(--muted);margin-top:26px}@keyframes spin{to{transform:rotate(360deg)}}@media(min-width:900px){.output-panel{position:sticky;top:24px}}@media(max-width:760px){header{min-height:68px;padding:10px 16px;gap:10px}.brand{font-size:23px}.brand img{width:23px;height:23px}.private-tag{font-size:9px;padding:3px 7px}header>.text-button{max-width:98px;line-height:1.35;font-size:11px;min-height:44px}main{padding:25px 14px}.heading{margin-bottom:22px}.heading p{font-size:13px}.flow-steps{justify-content:space-between;margin-bottom:20px}.flow-steps li{font-size:10px;gap:6px;padding:0 4px 13px 0;white-space:nowrap}.flow-steps li>span{width:20px;height:20px;font-size:10px}.workspace{grid-template-columns:1fr;gap:0}.card{padding:21px 18px;margin-bottom:16px}#lyrics{height:390px;min-height:280px}.empty{padding:30px 10px}.section-label .text-button{font-size:11px;min-height:44px}.text-button,.downloads a,.edit-version{min-height:44px}.result-card{padding:16px}.downloads{gap:18px;margin-top:6px}}@media(max-width:350px){.private-tag{display:none}.flow-steps li{font-size:9px;gap:4px}}@media(prefers-reduced-motion:reduce){.status.busy:before,.spinner,.primary[aria-busy="true"]:before{animation:none}.dropzone{transition:none}}@media(forced-colors:active){.editing .lyric-backdrop{display:none}.editing #lyrics{color:CanvasText;-webkit-text-fill-color:CanvasText}}
/* Bulk changes stay in the lyric draft until Apply is pressed. */
.replace-panel{margin-top:20px;padding:16px;border:1px solid var(--border);border-radius:10px;background:var(--soft)}.replace-panel h3{margin:0 0 6px;font-size:14px;font-weight:700;letter-spacing:-.2px}.replace-panel .help{font-size:11px;margin:0 0 13px}.replace-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}.replace-fields label{display:block;min-width:0;font-size:12px;font-weight:600}.replace-fields input{width:100%;min-width:0;min-height:44px;margin-top:5px;border:1px solid var(--border);border-radius:8px;background:#fff;color:var(--ink);padding:10px 12px;font-size:16px;outline:none}.replace-fields input:focus{border-color:var(--orange);box-shadow:0 0 0 3px #d9572110}.replace-fields input::placeholder{color:#919191;font-size:13px;font-weight:400}.replace-button{display:block;min-height:44px;padding:10px 20px;border:0;border-radius:8px;background:var(--orange);color:#fff;font-size:13px;font-weight:700;margin-top:13px}.replace-button:hover:not(:disabled){background:var(--orange-dark)}.replace-feedback{display:flex;align-items:flex-start;gap:12px;font-size:12px;line-height:1.6;color:var(--green);margin-top:8px;overflow-wrap:anywhere}.replace-feedback:has(#replace-status:empty){display:none}.replace-feedback .text-button{flex:0 0 auto;min-height:24px;padding:0;line-height:1.6;text-decoration:underline;text-underline-offset:3px}.edit-history{padding:16px 24px}.edit-history>summary{display:flex;align-items:center;gap:9px;min-height:44px;cursor:pointer;list-style:none;font-size:17px;font-weight:700;letter-spacing:-.3px}.edit-history>summary::-webkit-details-marker{display:none}.edit-history>summary::before{content:'';width:7px;height:7px;border-right:1.6px solid var(--muted);border-bottom:1.6px solid var(--muted);transform:rotate(-45deg);margin:0 5px 0 1px;flex:0 0 auto}.edit-history[open]>summary::before{transform:rotate(45deg) translateY(-2px)}.edit-count{display:inline-flex;align-items:center;justify-content:center;background:#f0f0f0;color:var(--muted);font-size:11px;font-weight:600;min-width:22px;height:22px;border-radius:20px;padding:0 6px;letter-spacing:0}.edit-history>summary .spinner{margin-left:auto;margin-top:0}.edits-toolbar{display:flex;justify-content:flex-end;border-top:1px solid #eee;margin-top:10px;padding-top:4px}.edit-history #results{padding-bottom:8px}@media(max-width:760px){.edit-history{padding:12px 18px}.replace-panel{padding:14px}.replace-fields{gap:10px}.replace-feedback .text-button{min-height:44px;display:inline-flex;align-items:flex-start}.replace-button{width:100%}.history summary,.timing summary,.result-card summary{min-height:36px}}@media(max-width:360px){.replace-fields{grid-template-columns:1fr}}
.edit-progress{margin:15px 0 3px;padding:16px;border:1px solid #eadfd6;border-radius:12px;background:#fffaf6}.edit-progress-steps{list-style:none;padding:0;margin:0;display:grid;gap:12px}.edit-progress-steps li{display:flex;align-items:center;gap:10px;font-size:12px;color:#92908c;min-width:0}.progress-dot{flex:0 0 23px;width:23px;height:23px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #dedad4;border-radius:50%;font-size:11px;font-variant-numeric:tabular-nums;background:white}.edit-progress-steps .progress-complete{color:#527360}.progress-complete .progress-dot{border-color:#c8dccf;background:#edf5ef;color:#39744b}.edit-progress-steps .progress-current{color:var(--ink);font-weight:650}.progress-current .progress-dot{background:var(--orange);border-color:var(--orange);color:white;box-shadow:0 0 0 4px #d9572114;animation:progress-breathe 1.8s ease-in-out infinite}.progress-note{color:var(--muted);font-size:11px;line-height:1.6;margin:15px 0 0}.progress-elapsed{font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums;margin:7px 0 0}@keyframes progress-breathe{50%{box-shadow:0 0 0 6px #d9572124}}@media(prefers-reduced-motion:reduce){.progress-current .progress-dot{animation:none}}

.edit-notices{font-size:11px;line-height:1.6;color:var(--muted);margin-top:12px}.edit-notices p{margin:5px 0}

/* The first-party landing page supplies the shared navigation and heading. */
body.embedded-editor { background: #fff; }
.embedded-editor > header, .embedded-editor .heading, .embedded-editor .lyric-changer-guide { display: none; }
.embedded-editor main { max-width: none; padding: 4px clamp(14px, 3vw, 30px) 0; }
.embedded-editor main footer { margin-top: 14px; }
.embedded-editor .editor-access-card { margin: 0; }
.embedded-editor .editor-access-card a { display: inline-block; margin: 0 12px 4px 0; color: var(--orange-dark); }

/* Keep editor dialogs in the visible portion of the outer page on phones. */
.embedded-editor dialog[open] {
  position: fixed;
  inset: var(--editor-dialog-center, 50%) 0 auto;
  margin: 0 auto;
  max-height: var(--editor-dialog-space, 85dvh);
  overflow: auto;
  transform: translateY(-50%);
}
