.blueprint-panel{max-width:1500px;margin:0 auto;padding:24px 32px}.blueprint-panel[hidden],.blueprint-editor-host[hidden]{display:none!important}.blueprint-panel h1{margin:0 0 12px}.blueprint-intro,.blueprint-note{color:var(--muted);line-height:1.7}.blueprint-sections{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:24px 0}.blueprint-section{min-width:0;padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--panel)}.blueprint-section.is-editing{border-color:var(--lime);box-shadow:0 0 0 1px var(--lime)}.blueprint-section>div{display:flex;flex-direction:column;gap:8px}.blueprint-section strong{font-size:18px;color:var(--lime)}.blueprint-section span,.blueprint-section p{font-size:14px;color:var(--muted);line-height:1.6}.blueprint-section label{font-size:14px}.blueprint-section select{margin-top:8px;max-width:100%;font-size:14px}.blueprint-section p{min-height:44px;max-height:90px;overflow:auto;overflow-wrap:anywhere}.blueprint-section button{padding:9px 12px;font-size:14px}.blueprint-panel button:disabled{opacity:.4;cursor:not-allowed}.blueprint-downloads{display:flex;flex-wrap:wrap;align-items:center;gap:12px}.blueprint-downloads button{padding:12px 18px;border-color:var(--lime)}.blueprint-downloads span{color:var(--muted);font-size:14px}.blueprint-note{font-size:14px}.blueprint-files{display:flex;flex-wrap:wrap;gap:10px}.blueprint-files a{padding:10px 12px;border:1px solid var(--line);border-radius:8px;color:var(--lime);font-size:14px}.blueprint-empty{padding:30px;text-align:center;border:1px dashed var(--line);border-radius:12px;color:var(--muted);margin-top:22px}.blueprint-empty[hidden]{display:none}.blueprint-editor-host{padding:0!important;border:0!important;max-width:none}.blueprint-editor-host>h2{padding:16px 0;color:var(--lime)}.blueprint-editor-host>.editor{margin-top:0}.blueprint-progress{width:min(480px,90vw);padding:28px;border:1px solid var(--lime);border-radius:14px;background:var(--panel);color:var(--white)}.blueprint-progress::backdrop{background:#000a}.blueprint-progress p{font-size:14px;line-height:1.6}.blueprint-progress button{padding:10px 16px}@media(max-width:1100px){.blueprint-sections{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.blueprint-panel{padding:20px 14px}.blueprint-sections{grid-template-columns:1fr}}
.tab-records{margin-top:32px;padding:24px;border:1px solid var(--line);border-radius:14px;background:var(--panel);min-width:0}.tab-records h2{font-size:22px;margin:0 0 16px}.tab-records .save-row{display:flex;flex-wrap:wrap;gap:10px}.tab-records .save-row input{flex:1;min-width:160px;background:var(--bg);color:var(--white);border:1px solid var(--line);border-radius:7px;padding:10px;font-size:16px}.tab-records button{font-size:14px;padding:8px 12px}.tab-records .record-actions{display:flex;flex-wrap:wrap;gap:6px}.tab-records .record-fold>summary{padding-right:68px}.tab-records .record-fold>summary small{font-size:12px}.tab-records .saved-record{display:block;margin-top:12px;padding:14px}.tab-records p{font-size:14px;line-height:1.6;overflow-wrap:anywhere}.tab-records input[hidden]{display:none!important}.tab-record-preview{width:min(850px,94vw);max-height:90dvh;overflow:auto;border:1px solid var(--lime);border-radius:14px;background:var(--panel);color:var(--white);padding:24px}.tab-record-preview::backdrop{background:#000b}.tab-record-preview pre{white-space:pre-wrap;overflow-wrap:anywhere;font-family:inherit;font-size:16px;line-height:1.7}.tab-record-preview button{padding:10px 18px}@media(max-width:600px){.tab-records{padding:14px}.tab-records .record-fold>summary{flex-wrap:wrap}}
#blueprint-fold{padding:10px 16px;border-color:var(--lime);font-size:14px}.blueprint-sections.is-compact{grid-template-columns:repeat(4,minmax(0,1fr))}.blueprint-sections.is-compact .blueprint-section{padding:12px}.blueprint-sections.is-compact .blueprint-section>div>span,.blueprint-sections.is-compact .blueprint-section>p,.blueprint-sections.is-compact .blueprint-section>button{display:none}.blueprint-sections.is-compact label{font-size:0}.blueprint-sections.is-compact select{font-size:14px}.random-toolbar,.random-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.random-toolbar button{padding:12px 18px;border-color:var(--lime)}.random-toolbar span{color:var(--muted);font-size:14px}.random-song{margin:24px 0;padding:18px;border:1px solid var(--line);border-radius:14px;background:var(--panel)}.random-song.is-selected{border-color:var(--lime)}.random-song>header{position:static;display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:0 0 16px;background:none;border:0}.random-song button{padding:9px 12px;font-size:14px}.random-song>header>button{font-size:18px;color:var(--lime)}.random-sections{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.random-section{padding:12px;border:1px solid var(--line);border-radius:10px;min-width:0;background:var(--bg)}.random-section strong{color:var(--lime);font-size:16px}.random-section label{display:block;font-size:14px;margin-top:10px}.random-section select{width:100%;min-width:0;font-size:14px}.random-section p{font-size:14px;line-height:1.6;overflow-wrap:anywhere;max-height:76px;overflow:auto}.random-section small{display:block;color:var(--muted);font-size:13px;margin-bottom:10px}.random-section>div{display:flex;gap:8px;flex-wrap:wrap}.random-section.is-playing{border-color:var(--lime);box-shadow:0 0 0 2px var(--lime)}.random-chord-tooltip{position:fixed;z-index:9999;pointer-events:none;background:var(--panel);color:var(--lime);border:1px solid var(--lime);border-radius:8px;padding:9px 12px;font-size:14px;max-width:250px}.random-chord-tooltip[hidden],.random-songs-panel[hidden]{display:none!important}@media(max-width:1000px){.random-sections{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.random-sections{grid-template-columns:1fr}.random-song{padding:12px}.blueprint-sections.is-compact{gap:6px}.blueprint-sections.is-compact .blueprint-section{padding:6px}.blueprint-sections.is-compact strong{font-size:12px;overflow-wrap:anywhere}.blueprint-sections.is-compact select{font-size:14px;padding:6px 2px}}
.blueprint-section[draggable="true"],.random-section[draggable="true"]{cursor:grab}.blueprint-section[draggable="true"]::before,.random-section[draggable="true"]::before{content:"⋮⋮ 拖曳排序";display:block;margin-bottom:7px;color:var(--muted);font-size:12px;letter-spacing:.04em}.blueprint-section.is-dragging,.random-section.is-dragging{opacity:.45;cursor:grabbing;border-style:dashed}.blueprint-sections.is-compact .blueprint-section[draggable="true"]::before{font-size:0}.blueprint-sections.is-compact .blueprint-section[draggable="true"]::before{content:"⋮⋮";font-size:14px;margin-bottom:3px}
.blueprint-section>.blueprint-card-head,.random-section>.random-card-head{display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between;gap:10px}
.blueprint-card-head>div{display:flex;flex-direction:column;gap:8px;min-width:0}
.section-download-toggle{display:inline-flex!important;align-items:center;gap:6px;flex:0 0 auto;margin:0!important;padding:5px 7px;border:1px solid color-mix(in srgb,var(--line) 82%,transparent);border-radius:7px;background:color-mix(in srgb,var(--panel) 82%,transparent);color:var(--muted);font-size:13px!important;line-height:1.2;white-space:nowrap;cursor:pointer}
.section-download-toggle input{width:16px;height:16px;margin:0;accent-color:var(--lime)}
.section-download-toggle:has(input:checked){border-color:color-mix(in srgb,var(--lime) 58%,var(--line));color:var(--lime)}
.section-download-toggle:has(input:disabled){opacity:.42;cursor:not-allowed}
.blueprint-sections.is-compact .blueprint-card-head span,.blueprint-sections.is-compact .section-download-toggle{display:none!important}html .bird-v1 #step-9{max-width:none;width:100%;box-sizing:border-box}
html .bird-v1 #step-9 .blueprint-title{padding:0;border:0;background:transparent;color:var(--lime);font-size:18px;text-align:left;min-height:32px}
html .bird-v1 #step-9 .item-history-actions,html .bird-v1 #step-9 .blueprint-move{display:flex;flex-direction:row;flex-wrap:wrap;gap:6px;margin-top:10px}
html .bird-v1 #step-9 .blueprint-sections.is-compact .blueprint-move{display:none}
html .bird-v1 #step-9 .tab-records{display:block!important}
html .bird-v1 .blueprint-progress,html .bird-v1 .tab-record-preview{background:#142335;color:#f4f8ff;border-color:#a4eee4}
html .bird-v1 .blueprint-progress button,html .bird-v1 .tab-record-preview button{background:#22374d;color:#fff;border:1px solid #8ca7bd}
html .bird-v1 #step-9 [hidden]{display:none!important}
@media(max-width:600px){html .bird-v1 #step-9 .blueprint-sections.is-compact{grid-template-columns:repeat(2,minmax(0,1fr))}}
html .bird-v1 .blueprint-generation{padding:22px;margin:20px 0 24px;border:1px solid var(--line);border-radius:16px;background:var(--panel)}
.blueprint-generation-head{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:18px}
html .bird-v1 .blueprint-generation h2{font-size:22px;margin:6px 0}
html .bird-v1 #blueprint-generate{min-height:44px;padding:12px 18px;background:var(--lime);color:var(--bg);border-color:var(--lime);font-weight:700}
html .bird-v1 #blueprint-prompt{width:100%;box-sizing:border-box;margin:8px 0 14px;font-size:16px}
html .bird-v1 .blueprint-generation .experiment-generation{margin:8px 0 18px}
@media(max-width:600px){html .bird-v1 .blueprint-generation{padding:14px}html .bird-v1 .blueprint-generation h2{font-size:19px}html .bird-v1 #blueprint-generate{width:100%}}
/* Keep the generation form readable under every random page theme. */
html body.bird-v1 #step-9 .blueprint-generation{--bg:#ffffff;--panel:#f6f8fc;--white:#18263a;--muted:#4b5e73;--line:#bcc9da;--lime:#215bcc;--orange:#215bcc;color:#18263a;background:#f6f8fc;border:1px solid #bcc9da;padding:24px;border-radius:16px;font-family:system-ui,-apple-system,"Noto Sans TC",sans-serif;line-height:1.65;color-scheme:light}
html body.bird-v1 #step-9 .blueprint-generation :is(h2,label,summary){color:#18263a;opacity:1;text-shadow:none}
html body.bird-v1 #step-9 .blueprint-generation .eyebrow{color:#215bcc;border:0;padding:0;font-size:13px;letter-spacing:.08em}
html body.bird-v1 #step-9 .blueprint-generation h2{font-family:inherit;font-size:22px;font-weight:750;line-height:1.4;margin:4px 0 0}
html body.bird-v1 #step-9 .blueprint-generation :is(p,small,#blueprint-preset-count){color:#4b5e73;font-size:14px;line-height:1.65;opacity:1}
html body.bird-v1 #step-9 .blueprint-generation label{font-size:15px;font-weight:650}
html body.bird-v1 #step-9 #blueprint-prompt{background:#fff;color:#18263a;-webkit-text-fill-color:#18263a;border:1px solid #94a7bf;border-radius:10px;box-shadow:none;padding:14px 16px;font:400 16px/1.8 system-ui,-apple-system,"Noto Sans TC",sans-serif;min-height:132px;resize:vertical;opacity:1;margin:8px 0 20px}
html body.bird-v1 #step-9 #blueprint-prompt::placeholder{color:#5d6e83;-webkit-text-fill-color:#5d6e83;opacity:1}
html body.bird-v1 #step-9 .blueprint-generation :is(select,option,optgroup){background:#fff;color:#18263a;-webkit-text-fill-color:#18263a;font-size:15px;opacity:1}
html body.bird-v1 #step-9 .blueprint-generation select{border:1px solid #94a7bf;border-radius:8px;padding:10px 12px;min-height:44px;max-width:100%;min-width:0;line-height:1.5}
html body.bird-v1 #step-9 .blueprint-generation .experiment-generation{background:#edf2fb;border:1px solid #a7bad8;border-radius:10px;padding:16px;margin:0 0 20px}
html body.bird-v1 #step-9 .blueprint-generation .experiment-generation input{accent-color:#215bcc}
html body.bird-v1 #step-9 .blueprint-generation .style-inspirations{background:#fff;border:1px solid #bcc9da;margin:0;border-radius:10px;overflow:hidden}
html body.bird-v1 #step-9 .blueprint-generation .style-inspirations>summary{background:#eaf0fb;color:#18263a;border:0;border-radius:0;box-shadow:none;animation:none;font-size:17px;padding:14px 16px;min-height:48px}
html body.bird-v1 #step-9 .blueprint-generation .style-inspirations>summary::before{color:#215bcc;text-shadow:none}
html body.bird-v1 #step-9 .blueprint-generation .style-inspirations>summary::after{color:#215bcc}
html body.bird-v1 #step-9 .blueprint-generation .chips{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
html body.bird-v1 #step-9 .blueprint-generation .chips button{background:#f6f8fc;color:#263b57;border:1px solid #bcc9da;box-shadow:none;border-radius:8px;padding:11px 13px;line-height:1.6;font:500 15px/1.6 system-ui,-apple-system,"Noto Sans TC",sans-serif;text-align:left;min-height:48px;overflow-wrap:anywhere}
html body.bird-v1 #step-9 .blueprint-generation .chips button:hover{background:#eaf0fb;border-color:#215bcc;color:#174497}
html body.bird-v1 #step-9 #blueprint-generate{background:#215bcc;color:#fff;border:1px solid #215bcc;border-radius:10px;box-shadow:none;font:700 16px/1.5 system-ui,-apple-system,"Noto Sans TC",sans-serif;min-height:48px;padding:12px 18px}
html body.bird-v1 #step-9 #blueprint-generate:hover{background:#174497}
html body.bird-v1 #step-9 .blueprint-generation :is(button,textarea,select,summary,input):focus-visible{outline:3px solid #215bcc;outline-offset:3px}
@media(max-width:600px){html body.bird-v1 #step-9 .blueprint-generation{padding:16px}html body.bird-v1 #step-9 .blueprint-generation .chips{grid-template-columns:1fr}html body.bird-v1 #step-9 .blueprint-generation h2{font-size:20px}html body.bird-v1 #step-9 .blueprint-generation .experiment-generation label{align-items:flex-start}html body.bird-v1 #step-9 .blueprint-generation .experiment-generation select{flex-basis:100%;width:100%}}
