:root{--bg:#f5f3ee;--panel:#fcfbf8;--line:#e4e1d9;--text:#2e3430;--muted:#8b8d84;--red:#964637;--green:#546653;--serif:'Noto Serif CJK SC','Songti SC','STSong',serif}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,'Segoe UI','PingFang SC','Microsoft Yahei',sans-serif;font-size:13px}button,input,textarea,select{font:inherit;color:inherit}button{cursor:pointer;border:0;background:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--red);outline-offset:3px}button:disabled{opacity:.45;cursor:not-allowed}button:hover{filter:brightness(.94)}a{color:inherit;text-decoration:none}[hidden]{display:none!important}.topbar{height:86px;padding:0 4%;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;background:#faf9f5}.brand{display:flex;align-items:center;gap:12px}.seal{display:grid;place-items:center;background:var(--red);color:#fff6e9;font:27px var(--serif);width:39px;height:42px;border-radius:4px;box-shadow:inset 0 0 0 3px var(--red),inset 0 0 0 4px #d6a195;transform:rotate(-3deg)}.brand strong{font:21px var(--serif);letter-spacing:4px}.brand small{display:block;font-size:10px;color:var(--muted);letter-spacing:1.5px;margin-top:4px}.topbar nav{display:flex;height:100%;gap:36px}.nav{position:relative;color:#868b80;font-size:13px;letter-spacing:1px}.nav.active{color:var(--red)}.nav.active:after{position:absolute;content:'';bottom:0;left:4px;right:4px;height:2px;background:var(--red)}#nav-count{font-size:10px;color:var(--muted);margin-left:5px}.quiet{color:#737a70;font-size:12px}.quiet span{margin-left:12px}main{max-width:1600px;margin:auto;padding:38px 4% 0}.intro{display:flex;justify-content:space-between;align-items:center;margin-bottom:28px}.eyebrow{font:10px Georgia,serif;letter-spacing:2.5px;color:#93978d;margin-bottom:13px}h1{font:34px var(--serif);font-weight:500;letter-spacing:3px;margin:0 0 13px}.intro p{color:#858a80;margin:0;font-size:12px;letter-spacing:.4px}.intro-actions{display:flex;align-items:center;gap:24px}.saved{font-size:11px;color:#8c9787}.primary{background:var(--red);color:#fff9ef;border-radius:4px;padding:13px 22px;font-size:12px;letter-spacing:1px}.primary.small{padding:10px 14px}.secondary{border:1px solid #dcded3;border-radius:4px;background:#fdfcf9;padding:10px 15px;font-size:12px}.full{width:100%}.row{display:flex;gap:9px;align-items:center}.row .secondary{flex:1}.icon-btn{border:1px solid var(--line);border-radius:4px;width:37px;height:37px;font-size:20px;color:#6e7969}.workspace{display:grid;grid-template-columns:270px minmax(300px,1fr) 235px;gap:18px;align-items:stretch}.panel{border:1px solid var(--line);border-radius:7px;background:var(--panel);padding:22px 20px}.panel-heading{display:flex;align-items:center;gap:10px;margin-bottom:19px}.panel-heading>span:first-child{color:#abb19f;font:italic 14px Georgia,serif}.panel-heading h2{margin:0;font-size:14px;font-weight:500;letter-spacing:1px}.step-dot{margin-left:auto;width:5px;height:5px;background:#b6bda8;border-radius:100%}label{display:block;color:#6f786a;font-size:11px;margin-bottom:9px}label>span:not(:first-child),label>output{float:right;color:#a1a696}textarea,input:not([type='checkbox']):not([type='range']),select{border:1px solid #dedfd6;border-radius:4px;background:#f7f7f1;padding:11px;width:100%;outline:none}textarea{resize:vertical;line-height:1.8}#headline{font:17px/1.9 var(--serif);letter-spacing:1px;min-height:80px}input::placeholder,textarea::placeholder{color:#a3a797;font-size:11px}.hint{font-size:10px;line-height:1.9;color:#969d8e;margin:9px 0 15px}.divider{height:1px;background:var(--line);margin:24px 0}.characters{display:flex;flex-wrap:wrap;gap:6px;margin:14px 0}.char{width:34px;height:38px;border:1px solid #dcded3;border-radius:4px;font:17px var(--serif);background:#f8f7f1;position:relative}.char.active{background:#f3e6df;border-color:#b46a57;color:var(--red)}.char.filled:after{content:'';position:absolute;width:3px;height:3px;border-radius:50%;background:var(--red);bottom:3px;left:calc(50% - 1px)}.selection{margin-top:20px}.selection-top{font-size:10px;display:flex;align-items:center;gap:6px;border-top:1px dashed var(--line);padding:15px 0}.selection-top strong{font-size:13px;font-weight:500;color:var(--red)}.selection-top button{margin-left:auto}.text-btn{font-size:11px;color:var(--red);padding:4px 0}.selection textarea{margin-bottom:13px;min-height:72px;font:14px/1.7 var(--serif)}.selection .row{justify-content:space-between;margin-top:14px}.data-note{font-size:10px;color:#8c9586;line-height:1.8;margin-top:20px;display:flex;gap:7px;align-items:center}.tiny-dot{display:inline-block;background:#86937d;width:5px;height:5px;border-radius:50%;vertical-align:middle;margin-right:5px}.anchor-picker{display:flex;flex-wrap:wrap;gap:4px;margin-top:9px;font-size:10px;color:var(--muted)}.anchor-picker button{padding:3px 6px;border:1px solid var(--line);border-radius:3px}.anchor-picker button.active{border-color:var(--red);color:var(--red)}.canvas-panel{background:#e9eae4;border:1px solid #dedfd7;border-radius:7px;display:flex;flex-direction:column;min-width:0;overflow:hidden}.canvas-top,.canvas-bottom{display:flex;justify-content:space-between;font-size:10px;color:#8b9385;padding:18px 22px;gap:15px}.canvas-top{border-bottom:1px solid #dddfd4}.canvas-wrap{flex:1;display:flex;align-items:center;justify-content:center;padding:28px 32px;min-height:580px;background:radial-gradient(#b4baa32e .7px,transparent .7px);background-size:7px 7px}canvas{display:block;max-width:100%;max-height:650px;width:auto;height:auto;object-fit:contain;box-shadow:0 9px 24px #3f493b17;cursor:crosshair;aspect-ratio:3/4}.canvas-bottom{border-top:1px solid #dddfd4;line-height:1.6}.canvas-bottom>span:last-child{font-size:9px}.themes{display:flex;justify-content:space-between;gap:5px;margin:12px 0 24px}.theme{font-size:10px;color:#8e9688;padding:0}.theme>span{display:grid;place-items:center;width:40px;height:43px;font:21px var(--serif);border-radius:4px;border:1px solid transparent;margin-bottom:6px}.theme.active>span{outline:1px solid #a56c53;outline-offset:3px}.theme.active{color:var(--red)}select{margin-bottom:23px;font-size:11px}input[type=range]{width:100%;accent-color:var(--green);height:3px;margin:6px 0 27px}.segmented{display:flex;border:1px solid #dedfd5;background:#efefe7;border-radius:4px;padding:3px}.segmented button{flex:1;border-radius:3px;font-size:11px;color:#85907b;padding:8px 12px;white-space:nowrap}.segmented button.active{background:#fffefa;color:#575e50;box-shadow:0 1px 3px #34462313}#ratios{margin-bottom:23px}.toggle{display:flex;align-items:center;justify-content:space-between;margin:18px 0;color:#7e8674}.toggle input{accent-color:var(--green);width:14px;height:14px}.upload-bg{border:1px dashed #c9cdbf;padding:14px 5px;text-align:center;cursor:pointer;border-radius:4px;font-size:11px}.style-footer{display:flex;justify-content:center;gap:14px;align-items:center;padding:30px 0 24px}.small-seal{font-size:16px;width:30px;height:40px;line-height:1.05}.style-footer p{font:12px/2 var(--serif);color:#8b9183;letter-spacing:3px}.muted{color:#9ba390}.styles>#reset{display:block;margin:auto}.below{display:flex;justify-content:space-between;font-size:10px;color:#a0a597;margin:20px 0 32px}.below button{font-size:10px;color:#7d8a72}footer{border-top:1px solid var(--line);padding:22px 4%;display:flex;justify-content:space-between;color:#a2a79b;font-size:9px;letter-spacing:1px}footer>span:first-child{font:12px var(--serif);letter-spacing:3px}.stats{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid var(--line);background:var(--panel);border-radius:6px;margin:30px 0;padding:25px}.stats>div{padding:0 25px;border-right:1px solid var(--line)}.stats>div:last-child{border:0}.stats strong{font:32px Georgia,var(--serif);display:block;margin-bottom:8px}.stats span{font-size:11px;color:var(--muted)}.library-toolbar{display:flex;gap:12px;align-items:center;margin-bottom:20px}.library-toolbar>input{flex:1;min-width:100px}.library-toolbar>select{width:110px;margin:0}.library-toolbar button{white-space:nowrap}.notice{background:#ebece3;border:1px solid #dfe1d4;color:#7b866e;font-size:11px;line-height:1.9;padding:14px 20px;border-radius:5px;margin-bottom:24px}.album-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.album-card{background:var(--panel);border:1px solid var(--line);border-radius:6px;text-align:left;padding:15px;transition:transform .2s}.album-card:hover{transform:translateY(-3px)}.album-art{height:130px;position:relative;background:#e7e9de;overflow:hidden;display:flex;align-items:center;justify-content:center}.album-art:before,.album-art:after{content:'';position:absolute;border:1px solid #72825e33;border-radius:50%;height:180px;width:280px;transform:rotate(-15deg);top:70px}.album-art:after{top:90px;left:-40px}.album-art>span{font:22px var(--serif);letter-spacing:3px;color:#647554;max-width:80%;text-align:center;z-index:1}.album-card:nth-child(4n+2) .album-art{background:#e9ded3}.album-card:nth-child(4n+2) .album-art>span{color:#937159}.album-card:nth-child(4n+3) .album-art{background:#dce3e2}.album-card:nth-child(4n+3) .album-art>span{color:#687f7d}.album-card:nth-child(4n+4) .album-art{background:#e8e1df}.album-card h3{font-size:12px;font-weight:500;margin:13px 0 8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.album-card small{font-size:10px;color:var(--muted)}.library-bottom{display:flex;justify-content:space-between;color:var(--muted);font-size:11px;margin:28px 0;gap:20px}.empty-state{text-align:center;padding:70px 20px;background:var(--panel);border:1px solid var(--line);border-radius:5px}.empty-state h3{font:22px var(--serif)}.empty-state p{color:var(--muted);line-height:1.9}.song-row,.result-row{border-bottom:1px solid var(--line);padding:14px 0;display:flex;gap:12px;align-items:center}.song-row>div,.result-row>div{flex:1;min-width:0}.song-row strong,.result-row strong{font-size:13px;font-weight:500}.song-row small,.result-row small{display:block;color:var(--muted);font-size:10px;margin-top:6px}.song-row a{font-size:11px;color:var(--green)}.pill{font-size:9px;background:#eeefe7;color:#7b866d;padding:4px 7px;border-radius:3px}.result-row{width:100%;text-align:left;padding:16px 6px}.result-row:hover{background:#f1f0e9}.result-row strong{font:16px/1.7 var(--serif)}mark{background:#ebd6ca;color:var(--red);border-radius:2px}.lyric-item{background:var(--panel);border:1px solid var(--line);border-radius:5px;padding:14px 22px;margin-bottom:10px}.lyric-item .lines{color:#7f8877;font:13px/2 var(--serif);margin-top:10px;white-space:pre-line}.delete-song{color:#9a776e;font-size:10px}.modal-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.modal-top h2{font:22px var(--serif);margin:0;letter-spacing:2px}.modal-top button{border:0}dialog{border:1px solid #deddd1;border-radius:10px;background:#fcfbf6;color:var(--text);padding:26px 28px;width:min(620px,calc(100vw - 30px));max-height:85vh;box-shadow:0 25px 100px #25302433}dialog::backdrop{background:#24302765;backdrop-filter:blur(3px)}#modal-body p{font-size:12px;line-height:2;color:#818877}#modal-body input,#modal-body textarea{margin-bottom:13px}#modal-body select{margin-bottom:15px}#modal-body .results{max-height:45vh;overflow-y:auto}.dropzone{border:1px dashed #b5bea7;text-align:center;padding:40px 20px;border-radius:6px;background:#f0f2e8;cursor:pointer;margin:20px 0}.dropzone strong{font-weight:500;font-size:16px}.dropzone p{margin-bottom:0}pre{background:#efefe6;padding:16px;overflow:auto;font-size:11px;line-height:1.8;border-radius:4px}#toast{position:fixed;bottom:30px;left:50%;transform:translate(-50%,10px);background:#354333;color:#fff8ec;padding:12px 24px;border-radius:5px;box-shadow:0 4px 18px #0002;opacity:0;transition:.2s;pointer-events:none;z-index:100;max-width:90%;font-size:12px}#toast.show{opacity:1;transform:translate(-50%,0)}.source-link{color:var(--red);text-decoration:underline;font-size:11px}.import-options{display:grid;grid-template-columns:1fr 1fr;gap:12px}.import-options select{margin:0}.inline-report{padding:12px;background:#eef0e5;border-radius:5px;white-space:pre-line;font-size:12px;line-height:1.8}.progress-note{color:var(--muted);font-size:11px;margin:10px 0}.help-step{display:flex;gap:18px;padding:16px 0;border-bottom:1px solid var(--line)}.help-step>span{color:var(--red);font:22px Georgia}.help-step h3{font-size:14px;font-weight:500;margin:0 0 4px}.help-step p{margin:0}.source-form label{margin-top:12px}.source-form .row{margin:12px 0}.export-size{display:flex;gap:10px;margin:20px 0}.export-size button{flex:1}.export-size .active{border-color:var(--red);color:var(--red)}@media(min-width:1500px){.workspace{grid-template-columns:280px minmax(400px,1fr) 250px}.canvas-wrap{padding:28px 65px}}@media(max-width:1150px){.workspace{grid-template-columns:235px minmax(240px,1fr) 210px;gap:12px}.panel{padding:19px 16px}.canvas-wrap{padding:25px 20px}.intro-actions{gap:12px}.saved{display:none}.theme>span{width:34px;height:37px}.library-toolbar{flex-wrap:wrap}.album-grid{grid-template-columns:repeat(3,1fr)}}@media(max-width:900px){main{padding:28px 4% 0}.workspace{grid-template-columns:230px 1fr}.styles{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,1fr);gap:15px 25px;align-items:center}.styles .panel-heading{grid-column:1/-1;margin:0}.styles .themes{margin:0}.styles .divider,.styles .style-footer{display:none}.styles label,.styles input[type=range],.styles select,.styles #ratios{margin:0}.styles .upload-bg{padding:12px}.canvas-wrap{min-height:530px}.topbar{padding:0 4%;height:74px}.topbar nav{gap:18px}.quiet{display:none}.intro h1{font-size:29px}.intro p{font-size:11px}.album-grid{grid-template-columns:repeat(3,1fr)}}@media(max-width:620px){.topbar{height:auto;min-height:74px;flex-wrap:wrap;padding-top:15px;gap:14px}.brand strong{font-size:19px}.brand small{font-size:9px}.seal{width:33px;height:37px;font-size:24px}.topbar nav{width:100%;height:40px;justify-content:center;gap:42px}.intro{align-items:flex-start;gap:10px;margin-bottom:22px}.intro h1{font-size:25px;letter-spacing:1px}.intro .eyebrow{font-size:8px;letter-spacing:1.5px;margin-bottom:12px}.intro p{font-size:10px;line-height:1.8;max-width:230px}.intro-actions>.primary{padding:11px 14px;white-space:nowrap;margin-top:25px;font-size:10px}.workspace{display:flex;flex-direction:column}.canvas-panel{order:0}.editor{order:1}.styles{order:2;display:block}.canvas-wrap{min-height:0;padding:22px 35px}.canvas-wrap canvas{width:100%;max-height:530px;object-fit:contain}.canvas-top,.canvas-bottom{padding:14px 18px}.canvas-bottom>span:last-child{display:none}.editor{padding:22px}.editor #headline{min-height:65px}.panel-heading{margin-bottom:17px}.selection textarea{min-height:65px}.styles{padding:22px}.styles .themes{max-width:270px;margin:18px 0 25px}.theme>span{width:49px;height:48px}.styles label{margin:15px 0 10px}.styles select{margin-bottom:10px}.styles input[type=range]{margin:10px 0 20px}.styles #ratios{margin-bottom:22px}.styles .toggle{margin:20px 0}.styles .divider{display:block}.styles .style-footer{display:flex;padding:20px 0}.styles .panel-heading{margin-bottom:22px}.below{line-height:1.9;gap:18px}footer>span:nth-child(2){display:none}.stats{padding:18px 6px;grid-template-columns:repeat(2,1fr);gap:20px}.stats>div{padding:0 17px}.stats>div:nth-child(2){border:0}.stats strong{font-size:27px}.library-toolbar{gap:10px}.library-toolbar>input{flex-basis:100%;order:3}.library-toolbar .segmented{flex:1}.library-toolbar>select{width:100px}.library-toolbar>.secondary{padding:9px 12px;font-size:10px}.album-grid{grid-template-columns:repeat(2,1fr);gap:10px}.album-card{padding:10px}.album-art{height:112px}.album-art>span{font-size:18px}.album-card h3{font-size:11px}.notice{padding:12px 15px}.library-bottom{flex-direction:column;gap:0}.library-bottom p{line-height:1.8}dialog{padding:22px 20px}.intro>#import-open{padding:11px 13px;font-size:10px;white-space:nowrap;margin-top:25px}}

#ratios{display:grid;grid-template-columns:1fr 1fr;gap:3px}#wallpaper-hint{line-height:1.8;margin:-10px 0 20px}#open-export{display:inline-block;margin-top:8px}

/* 江湖气韵只用于网站界面；Canvas 绘制独立。 */
@font-face{font-family:JianghuUI;src:url('./fonts/jianghu-ui.woff') format('woff');font-display:swap}
:root{--bg:#f3f0e8;--panel:#fffdf8;--line:#e2ded3;--muted:#777e73;--red:#914535;--text:#303b36}
body{background:radial-gradient(ellipse at 12% 0%,#fffdf7 0,transparent 48%),var(--bg)}
.topbar{background:#faf8f1e8;border-bottom-color:#d8d9cf}.brand strong{font-family:JianghuUI,var(--serif);font-size:25px;letter-spacing:3px}.brand small{color:#777f73}.seal{font:31px JianghuUI,var(--serif);border-radius:3px 6px 4px 2px;transform:rotate(-5deg);background:#97503d;box-shadow:inset 0 0 0 2px #97503d,inset 0 0 0 3px #e7be9c;line-height:1}.nav.active:after{height:3px;border-radius:70% 25% 50% 35%;bottom:14px}.nav{color:#5e6a60}
.intro{position:relative;isolation:isolate;padding:10px 0 18px;min-height:118px}.intro:before{content:'';position:absolute;inset:-30px -15px -18px 30%;background:url('./assets/ink-landscape.svg') center right/contain no-repeat;opacity:.75;z-index:-1;pointer-events:none}.intro h1{font-family:JianghuUI,var(--serif);font-size:40px;letter-spacing:4px}.eyebrow{font-family:var(--serif);font-size:11px;color:#7a8176;letter-spacing:3px}.intro p{color:#677369}
.panel{border-radius:9px;background:#fffdf8f5;box-shadow:0 6px 22px #35483b04}.panel-heading h2{font-family:var(--serif);font-weight:600}.panel-heading{padding-bottom:13px;border-bottom:1px solid #e9e4d9}.panel-heading>span:first-child{color:#8d9987}.primary{background:#8f493a;box-shadow:0 3px 7px #773d2510;border:1px solid #8a4536;border-radius:5px}.secondary{background:#fffdf7;border-color:#d8d9cd;border-radius:5px}.primary,.secondary{transition:background .15s,transform .15s}.primary:hover,.secondary:hover{transform:translateY(-1px)}.hint,.saved{color:#73806f}.canvas-panel{box-shadow:0 9px 28px #263e3210}.canvas-wrap{background:#e9ece5}.canvas-top,.canvas-bottom{background:#f9faf5}.album-art{background:linear-gradient(140deg,#e9ece1,#f5f0e4);border-bottom:1px solid #e0dfd4}.album-card{box-shadow:0 4px 12px #34413305}.album-card h3{color:#34483b}
dialog{border-radius:12px;border:1px solid #d9d5c9;box-shadow:0 24px 100px #152a303b;width:min(720px,92vw);max-height:88vh;overflow:auto;background:#fffdf7}dialog::backdrop{background:#253c3752;backdrop-filter:blur(3px)}dialog h2{font-family:var(--serif);letter-spacing:2px}dialog p{color:#657266;line-height:1.9}.import-options{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:20px 0}.submission-file{display:flex;align-items:center;gap:14px;margin:12px 0}.submission-file label{cursor:pointer;margin:0}.submission-file span{font-size:11px;color:#788174}.rights-check{display:flex;gap:8px;align-items:center;margin:22px 0;font-size:12px;line-height:1.7}.rights-check input{accent-color:var(--red)}#review-login-button{margin-top:20px}.review-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px}.review-toolbar select{max-width:180px}.review-rule{background:#f2f1e7;padding:12px 16px;font-size:12px;border-left:2px solid #8c9c87}.review-card{border:1px solid #e1dfd3;padding:18px;border-radius:7px;margin:16px 0}.review-title{display:flex;justify-content:space-between;align-items:center;gap:15px}.review-title h3{margin:0;font:18px var(--serif)}.review-title span{color:#798574;font-size:11px}.review-card p{font-size:12px;margin:10px 0}.review-card pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:270px;overflow:auto;font:14px/2 var(--serif);background:#f6f5ed;padding:15px}.review-card .version-note{color:#914535}.review-empty{padding:36px;text-align:center;color:#788472}.pill{background:#e8eee3;color:#50674a;padding:5px 9px;border-radius:3px;font-size:11px}
@media(max-width:620px){.brand strong{font-size:23px}.intro h1{font-size:30px;letter-spacing:2px}.intro:before{inset:0 -10px 0 15%;opacity:.4}.intro{min-height:108px;padding-top:8px}.nav.active:after{bottom:0}.import-options{grid-template-columns:1fr;gap:12px}.panel-heading{padding-bottom:12px}.review-card{padding:13px}.review-title h3{font-size:16px}.seal{font-size:27px}}
.seal.small-seal{font-size:18px;width:30px;height:45px;line-height:1;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:4px 0}

/* Verified releases and community lyric collection. */
.library-toolbar{flex-wrap:wrap}.library-toolbar>#album-scope{width:170px}.library-toolbar>#album-scope[hidden]{display:none}.album-art{padding-top:24px}.album-progress{position:absolute;top:9px;right:9px;z-index:2;display:flex;gap:7px;align-items:center;padding:6px 9px;border-radius:6px;background:rgba(250,248,242,.94);border:1px solid #c9c4b3;color:#766b57;font:10px/1.4 var(--sans,sans-serif);box-shadow:0 1px 3px #332d1d0b}.album-progress strong{font-weight:500}.album-progress>span{font-variant-numeric:tabular-nums;font-weight:600}.album-progress.is-complete{background:#e3eadd;border-color:#9bab8b;color:#47603d}.album-collection-bar{height:3px;background:#e3e1d7;border-radius:4px;overflow:hidden;margin-top:11px}.album-collection-bar>i{display:block;height:100%;background:#a66e53;transition:width .25s}.album-complete .album-collection-bar>i{background:#69825a}.album-attribution{font-size:10px;line-height:1.6;color:#8a897b;margin-top:7px;overflow-wrap:anywhere}.album-credit{font-size:11px!important;line-height:1.8!important}.collection-summary{display:flex;flex-wrap:wrap;gap:9px;align-items:center;background:#f2efe5;border:1px solid #dfd8c6;border-radius:6px;padding:16px;margin:18px 0}.collection-summary>span{margin-left:auto;font-size:12px}.collection-summary>progress{width:100%;height:8px;accent-color:#947052}.collection-summary>small{width:100%;font-size:11px;color:#7f806e}.collection-summary.is-complete{background:#edf1e8;border-color:#b9c6aa;color:#4c653f}.pill.collected{background:#e4eadc;color:#4c653f}.collect-song{white-space:nowrap}.song-row{flex-wrap:wrap}.song-row>div:first-child{min-width:120px;flex:1}
@media(max-width:620px){.library-toolbar>#album-scope{width:100%}.album-progress{top:7px;right:7px;padding:4px 6px;gap:5px;font-size:9px}.album-attribution{font-size:9px}}

/* Keep narrow screens within the viewport and prevent iOS input-focus zoom. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
.workspace>*{min-width:0}.intro>div{min-width:0}.album-card{min-width:0;max-width:100%}.stats>div{min-width:0}.album-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.song-row strong,.song-row small,.result-row strong,.result-row small,.lyric-item .lines{overflow-wrap:anywhere}.modal-top h2{min-width:0;overflow-wrap:anywhere}.modal-top>button{flex-shrink:0}
@media(max-width:1150px){.album-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:620px){
 main{padding:22px 16px 0}.topbar{padding-left:16px;padding-right:16px}.topbar nav{gap:24px}.nav{letter-spacing:0}
 .intro{display:flex;flex-direction:column;align-items:stretch;gap:12px;min-height:0;margin-bottom:18px;padding:4px 0 8px}.intro h1{font-size:clamp(24px,7vw,30px);letter-spacing:1px;line-height:1.35;overflow-wrap:anywhere}.intro p{max-width:none;font-size:12px;line-height:1.7}.intro:before{inset:0 0 0 10%}.intro-actions{justify-content:flex-end}.intro-actions>.primary,.intro>#import-open{margin-top:0;padding:12px 16px;font-size:13px;align-self:flex-end}
 .workspace{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}.editor{display:contents}.headline-editor,.vertical-editor{border:1px solid var(--line);border-radius:9px;background:var(--panel);padding:18px;min-width:0}.headline-editor{order:0}.canvas-panel{order:1;width:100%}.vertical-editor{order:2}.vertical-editor>.divider{display:none}.styles{order:3;grid-column:auto;min-width:0}.headline-editor .panel-heading{margin-bottom:14px}.headline-editor .hint{font-size:11px}.headline-editor .row{display:flex;gap:10px}.headline-editor #choose-line{flex:1}.headline-editor #random-head{flex:none;width:44px;height:44px}
 .canvas-wrap{display:block;flex:none;min-height:0;width:100%;padding:16px 12px}.canvas-wrap canvas{display:block;margin:0 auto;width:100%;height:auto;max-height:none}.canvas-top,.canvas-bottom{padding:12px 14px;flex-wrap:wrap;gap:8px}.canvas-top{font-size:11px}.canvas-bottom{font-size:11px}
 input:not([type=checkbox]):not([type=range]),textarea,select,.selection textarea,#modal-body input,#modal-body textarea,#modal-body select{font-size:16px;max-width:100%;min-width:0;line-height:1.5}#headline{font-size:18px;line-height:1.65;min-height:96px;height:auto;letter-spacing:0;white-space:pre-wrap;overflow-wrap:anywhere}input::placeholder,textarea::placeholder{font-size:14px}.selection textarea{min-height:108px}.primary,.secondary{min-height:42px}.styles input[type=range]{height:20px;margin:8px 0 18px}.styles select{font-size:16px}.styles label{font-size:13px}
 .stats{margin:18px 0;padding:18px 8px;gap:18px}.stats>div{padding:0 12px}.stats strong{font-size:26px}.stats span{font-size:11px;line-height:1.5;display:block}
 .library-toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.library-toolbar>.segmented{grid-column:1/-1;width:100%}.library-toolbar>#album-scope{grid-column:1/-1;width:100%;margin:0}.library-toolbar>#library-search{grid-column:1/-1;order:0;width:100%;min-width:0}.library-toolbar>#year-filter{grid-column:1/-1;width:100%;margin:0}.library-toolbar>.secondary{width:100%;padding:10px 8px;font-size:13px;white-space:normal}.library-toolbar .segmented button{padding:11px 6px;white-space:normal;font-size:13px}
 .album-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.album-card{padding:9px}.album-card h3{white-space:normal;overflow-wrap:anywhere;line-height:1.6;font-size:12px;margin:10px 0 6px}.album-card small{display:block;line-height:1.5;font-size:10px}.album-art{height:122px;padding-top:27px}.album-art>span{max-width:90%;font-size:17px;line-height:1.5;letter-spacing:1px;overflow-wrap:anywhere}.album-progress{font-size:9px;padding:4px 6px;gap:4px}.album-attribution{line-height:1.6}.notice{font-size:11px;overflow-wrap:anywhere}
 dialog{width:calc(100% - 24px);max-width:calc(100vw - 24px);padding:20px 16px;max-height:88vh;max-height:88dvh}.modal-top h2{font-size:20px;letter-spacing:1px;line-height:1.5}.song-row{gap:9px}.song-row>div:first-child{flex-basis:100%;min-width:0}.song-row strong{font-size:15px}.song-row .collect-song{margin-left:auto}.collection-summary{padding:13px;font-size:13px}.collection-summary>span{font-size:12px}.row{flex-wrap:wrap}.submission-file{flex-wrap:wrap;gap:8px}.review-title{align-items:flex-start}.review-title h3{overflow-wrap:anywhere}.review-card pre{font-size:15px}.below{flex-wrap:wrap;gap:8px}footer{gap:14px;flex-wrap:wrap;padding-bottom:max(22px,env(safe-area-inset-bottom))}
}
@media(max-width:350px){main{padding-left:12px;padding-right:12px}.headline-editor,.vertical-editor,.styles{padding:16px}.album-grid{gap:8px}.album-card{padding:8px}.album-progress strong{font-size:8px}.album-progress{gap:3px;padding:4px}.album-art{height:116px}}
.collection-summary.is-complete>progress{accent-color:#69825a}
@media(max-width:900px),(pointer:coarse){input:not([type=checkbox]):not([type=range]),textarea,select,.selection textarea,#modal-body input,#modal-body textarea,#modal-body select{font-size:16px}}
@media(min-width:621px) and (max-width:900px){.styles{display:block}.styles .themes{max-width:300px;margin:18px 0 24px}.styles label{margin:15px 0 10px}.styles select,.styles #ratios{margin-bottom:18px}.styles input[type=range]{height:20px;margin:8px 0 18px}}
@media(max-width:620px){.editor #headline{min-height:96px}main,.topbar{padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}button{touch-action:manipulation}}
@media(max-width:350px){main,.topbar{padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right))}}
