@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700&family=Outfit:wght@400;500;600;700&display=swap');
:root{font-family:'Outfit','Noto Sans JP',sans-serif;color:#25304d;background:#f5f7fb;font-synthesis:none;--blue:#5687ed}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}button{transition:background .18s,transform .18s}button:hover{filter:brightness(.97)}button:focus-visible,a:focus-visible,select:focus-visible{outline:3px solid #96b9ff;outline-offset:3px}input:focus{outline:none;border-color:#8aaef5!important;box-shadow:0 0 0 3px #88aff51a} .topbar{height:82px;background:#ffffffdb;border-bottom:1px solid #e6eaf2;display:flex;align-items:center;padding:0 34px;gap:23px;position:sticky;top:0;z-index:5;backdrop-filter:blur(15px)}.brand{text-decoration:none;color:#24304d;font-size:23px;font-weight:600;display:flex;align-items:center;gap:12px;white-space:nowrap}.logo{background:#e7edff;color:#6a89df;width:37px;height:37px;display:grid;place-items:center;border-radius:12px;font-size:25px}.divider{height:25px;width:1px;background:#e1e6ee}#title{width:260px;background:transparent;border:1px solid transparent;border-radius:8px;padding:9px 10px;font-size:16px;color:#46506a}#title:hover{background:#f6f8fc}.header-actions{margin-left:auto;display:flex;align-items:center;gap:12px}.language{background:#f0f3f9;border-radius:9px;padding:4px;display:flex}.language button{border:0;background:transparent;border-radius:7px;padding:8px 16px;font-size:12px;color:#8490a7}.language button.active{background:white;box-shadow:0 2px 6px #2637570c;color:#4e79d4}.icon-btn{border:1px solid #e5eaf2;background:white;width:36px;height:36px;border-radius:9px;font-size:20px;color:#75819a}.workspace{display:flex;min-height:calc(100vh - 82px)}aside{width:238px;flex-shrink:0;padding:32px 18px 22px;background:#f0f3f9b0;border-right:1px solid #e4e9f2;display:flex;flex-direction:column}.sidebar-label{font-size:10px;letter-spacing:1.8px;font-weight:600;color:#939eb2;padding:0 10px;margin-bottom:22px;display:flex;justify-content:space-between}nav{display:flex;flex-direction:column;gap:10px}.section-tab{text-align:left;border:1px solid transparent;background:#ffffff80;padding:16px 19px;border-radius:10px;color:#46506a;position:relative;overflow:hidden}.section-tab::before{content:'';position:absolute;left:0;top:15px;bottom:15px;width:3px;background:var(--accent);border-radius:3px}.section-tab.active{background:#e0eaff;border-color:#d3e1fc;color:#4673ce}.section-tab strong{font-size:14px;font-weight:500;display:block}.section-tab small{display:block;margin-top:5px;font-size:11px;color:#929eb3}.add-section{background:transparent;border:1px dashed #cdd6e6;border-radius:9px;margin-top:20px;padding:13px;color:#818ea6;font-size:18px}.add-section span{font-size:12px}.sidebar-bottom{margin-top:auto;padding:65px 8px 0}.small-note{font-size:10px;color:#a0aabd}.local-label{margin-top:15px;font-size:10px;color:#909db2}.local-label span{display:inline-block;width:5px;height:5px;background:#81ba9c;border-radius:50%;margin-right:5px}main{width:100%;max-width:1240px;margin:auto;padding:42px 54px 24px;min-width:0} .section-card{background:#ffffffdc;border:1px solid #e3e8f1;border-radius:14px;margin-bottom:22px;padding:23px 24px 19px;box-shadow:0 5px 20px #27375c03;scroll-margin-top:105px}.card-header{display:flex;align-items:center;gap:10px;margin-bottom:20px}.section-mark{width:7px;height:7px;border-radius:50%;background:var(--accent)}h2{font-size:18px;font-weight:600;margin:0}.section-subtitle{font-size:10px;color:#a2adc0;margin-left:5px}.card-tools{margin-left:auto;display:flex;gap:8px;align-items:center}.baseline-button,.baseline-select{border:1px solid #e3e8f2;background:#fff;border-radius:7px;color:#8a96ae;padding:7px 10px;font-size:10px;max-width:170px}.baseline-button.saved{color:#699c83;background:#f2faf5}.menu-button{border:0;background:transparent;color:#91a0b7;letter-spacing:2px;padding:5px 7px}.lyric-group{background:var(--tint);padding:8px 10px;border-radius:9px;margin-bottom:7px}.lyric-row{display:flex;align-items:center;gap:14px;min-height:49px}.line-num{font-size:11px;color:#94a6c0;width:18px;text-align:center;flex-shrink:0}.line-input{flex:1;min-width:0;background:#ffffffd9;border:1px solid #dce5f1;border-radius:6px;padding:10px 12px;font-size:14px;color:#424d63;height:37px}.line-input::placeholder{color:#b6c0d1;font-size:12px}.reading-input{width:130px;border:1px solid #dce5f1;border-radius:6px;padding:8px;font-size:11px;background:#ffffffaa}.reading-input::placeholder{color:#a9b3c4}.count{font-size:11px;color:#8497b5;min-width:65px;text-align:right;white-space:nowrap}.dots{display:flex;gap:7px;min-width:155px;align-items:center;flex-wrap:wrap;max-width:200px}.dot{width:8px;height:8px;border-radius:50%;background:var(--accent);opacity:.8}.dot.empty{background:#bac5d5;opacity:.55}.dot.extra{background:#e79893}.count.mismatch{color:#cb897e}.delete-line{background:transparent;border:0;color:#a4b1c4;font-size:15px;padding:3px;opacity:0}.lyric-row:hover .delete-line,.delete-line:focus-visible{opacity:1}.add-line{border:0;background:transparent;color:#9aa8be;font-size:11px;padding:8px 4px 0}.bottom-add{width:100%;border:1px dashed #d6dfea;border-radius:12px;background:transparent;padding:18px;color:#93a1b9;font-size:12px}footer{display:flex;justify-content:space-between;margin-top:28px;font-size:9px;color:#a9b3c5}footer span:first-child{font-size:12px}dialog{border:1px solid #e0e6f1;border-radius:16px;padding:25px;width:420px;max-width:90vw;color:#33415e;box-shadow:0 20px 100px #25304d25}dialog::backdrop{background:#27354e45;backdrop-filter:blur(3px)}.dialog-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.dialog-header button{border:0;background:none;font-size:25px;color:#8995a9}dialog label{display:block;font-size:12px;margin:15px 0}dialog input[type=text],dialog input[type=number]{display:block;width:100%;padding:10px;border:1px solid #d9e0ed;border-radius:7px;margin-top:7px}#dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:25px}#dialog-actions button,.dialog-option{border:1px solid #dde4ef;border-radius:7px;background:#f7f9fd;padding:9px 14px;color:#65748e}.primary{background:#648ceb!important;color:white!important;border-color:#648ceb!important}.danger{color:#cd7277!important}.dialog-option{display:block;width:100%;text-align:left;margin:8px 0}.dialog-help{font-size:11px;line-height:1.8;color:#97a3b6}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#344361;color:white;padding:12px 22px;border-radius:10px;font-size:12px;opacity:0;pointer-events:none;transition:opacity .2s;z-index:20}#toast.visible{opacity:1}.hide-counts .count{display:none}.hide-dots .dots{display:none}@media(min-width:1500px){main{padding-top:50px}.lyric-row{min-height:54px}}@media(max-width:1100px){main{padding:32px 25px}.dots{min-width:100px;gap:5px}.reading-input{width:95px}.topbar{padding:0 20px;gap:14px}aside{width:200px}}@media(max-width:760px){.topbar{height:auto;min-height:72px;padding:12px 16px;gap:8px;flex-wrap:wrap}.brand{font-size:18px}.logo{width:30px;height:30px}.divider{display:none}#title{width:150px;font-size:13px}.header-actions{width:100%;margin:0;justify-content:flex-end}.language{margin-right:auto}.workspace{display:block}aside{width:100%;padding:18px 16px;border-right:0;border-bottom:1px solid #e4e9f2}.sidebar-label,.sidebar-bottom{display:none}nav{flex-direction:row;overflow:auto;gap:8px}.section-tab{min-width:125px;padding:11px 15px}.add-section{margin-top:10px;padding:7px;width:100%}main{padding:25px 16px}.section-card{padding:17px 12px}.section-subtitle{display:none}.card-header{flex-wrap:wrap}.card-tools{gap:4px}.baseline-button,.baseline-select{font-size:9px;padding:6px;max-width:115px}.lyric-row{gap:6px;flex-wrap:wrap;padding:5px 0}.line-input{font-size:12px}.dots{min-width:0;width:auto;max-width:90px;gap:4px}.dot{width:5px;height:5px}.count{min-width:40px;font-size:9px}.reading-input{width:75px;font-size:9px}.delete-line{opacity:1}.line-num{width:12px}.lyric-group{padding:7px}footer{gap:20px;line-height:1.7} }

.title-label{font-size:12px;color:#939eb2;margin-right:-16px;white-space:nowrap}
aside{position:sticky;top:var(--header-height,82px);height:calc(100dvh - var(--header-height,82px));align-self:flex-start;overflow-y:auto}aside nav{flex-shrink:0}.sidebar-label{flex-shrink:0;position:sticky;top:-32px;background:#f0f3f9;z-index:1;padding-top:12px;padding-bottom:12px;margin-top:-12px;margin-bottom:10px}.add-section{flex-shrink:0}main{margin:0 auto}
@media(max-width:1100px){.title-label{margin-right:-8px}}
@media(max-width:760px){.title-label{margin-right:0;font-size:11px}aside{height:auto;z-index:4;background:#f0f3f9;overflow:visible}.sidebar-label{display:block;position:static;margin:0 0 10px;padding:0}}

.section-tab{padding-right:38px}.drag-handle{position:absolute;right:12px;top:50%;transform:translateY(-50%);color:#9aa8be;font-size:20px;cursor:grab;touch-action:none}.drag-handle:active{cursor:grabbing}.section-tab.dragging{opacity:.4}.section-tab.drop-before{box-shadow:0 -3px 0 #6999ed}.section-tab.drop-after{box-shadow:0 3px 0 #6999ed}.section-name{width:190px;min-width:80px;background:transparent;border:1px solid transparent;border-radius:8px;padding:9px 10px;font-size:18px;font-weight:600;color:#25304d}.section-name:hover{background:#f6f8fc}.part-action{border:1px solid #e3e8f2;background:white;border-radius:7px;color:#8a96ae;padding:7px 10px;font-size:11px}.lyric-group{margin-bottom:0}@media(max-width:760px){.section-name{width:140px}.card-tools{flex-wrap:wrap}.section-tab.drop-before{box-shadow:inset 3px 0 #6999ed}.section-tab.drop-after{box-shadow:inset -3px 0 #6999ed}}

.line-actions{display:flex;align-items:center;gap:5px;flex-shrink:0}.line-action,.add-line{border:1px solid #dce5f1;border-radius:6px;background:#ffffffd9;padding:6px 8px;color:#8497b5;font-size:10px;opacity:1}.delete-line{opacity:1;font-size:10px;padding:6px 8px}.line-drag{border:0;background:transparent;font-size:21px;color:#91a2ba;cursor:grab;padding:3px 5px}.line-drag:active{cursor:grabbing}.line-dragging{opacity:.4}.line-drop-before{box-shadow:0 -2px 0 #6999ed}.line-drop-after{box-shadow:0 2px 0 #6999ed}.add-line{margin-top:14px}@media(min-width:761px){.lyric-row{gap:10px}.dots{min-width:100px;max-width:150px}}@media(max-width:760px){.line-actions{margin-left:auto}.line-action,.add-line{padding:5px 7px}.line-input{flex-basis:calc(100% - 25px)}}

.action-icon{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;padding:6px;flex-shrink:0}.action-icon svg{width:16px;height:16px;pointer-events:none}

.lyric-row:has(.reading-input) .line-input,
.lyric-row:has(.reading-input) .reading-input{flex:1 1 0;width:0;min-width:0;height:37px}
@media(max-width:760px){
  .lyric-row:has(.reading-input) .line-input,
  .lyric-row:has(.reading-input) .reading-input{flex:1 1 calc((100% - 24px)/2);width:0;min-width:0}
}
.dot{background:#4da775}
.dot.extra{background:#e26868}
.licenses-link{margin-top:auto;padding:28px 10px 0;font-size:11px;color:#939eb2;text-decoration:none;align-self:flex-start}.licenses-link:hover{text-decoration:underline;color:#6386c5}
@media(max-width:760px){.licenses-link{align-self:flex-end;padding:12px 0 0}}
#title{flex:1 1 0;width:0;min-width:0}
.brand,.divider,.title-label,.header-actions{flex-shrink:0}
.brand .logo{display:block;object-fit:cover;flex-shrink:0}
.structure-items{display:contents}
@media(max-width:760px){
  .structure-items{display:flex;align-items:center;gap:8px;overflow-x:auto;padding:3px 0 6px}
  .structure-items nav{display:contents}
  .structure-items .section-tab{flex-shrink:0}
  .structure-items .add-section{width:auto;margin:0;padding:12px;flex-shrink:0;white-space:nowrap}
  .structure-items .licenses-link{margin:0;padding:12px;align-self:center;flex-shrink:0;white-space:nowrap}
}

#title{border:1px solid #dce5f1;background:#ffffffd9}

#reset-song{display:inline-flex;align-items:center;justify-content:center}#reset-song svg{width:16px;height:16px;pointer-events:none}
