:root{color-scheme:light;--paper:#f4f2ec;--paper2:#ebe9e1;--ink:#19231f;--muted:#65716a;--line:#d9d9cf;--green:#246b50;--lime:#c8f36a;--coral:#d45d43;--white:#fffefa;--mono:ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace;--sans:Inter,"Segoe UI",Arial,sans-serif}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--sans);-webkit-font-smoothing:antialiased}.topbar{height:70px;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(20px,5.8vw,88px);border-bottom:1px solid var(--line)}.brand{display:inline-flex;align-items:center;gap:11px;color:var(--ink);font-size:13px;font-weight:800;letter-spacing:.13em;text-decoration:none}.brand-dot,.title-period{color:var(--green)}.brand-mark{width:26px;height:24px;display:flex;align-items:center;justify-content:center;gap:2px}.brand-mark i{display:block;width:3px;border-radius:3px;background:var(--green)}.brand-mark i:nth-child(1){height:9px}.brand-mark i:nth-child(2){height:18px}.brand-mark i:nth-child(3){height:13px}.brand-mark i:nth-child(4){height:6px}.local-badge{font:10px var(--mono);letter-spacing:.08em;color:var(--muted);display:flex;align-items:center;gap:8px}.status-dot{width:7px;height:7px;background:var(--green);border-radius:50%;box-shadow:0 0 0 3px rgba(36,107,80,.1)}main{width:min(1160px,calc(100% - 48px));margin:auto}.tool-shell{padding:54px 0 24px}.tool-heading{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:26px}.eyebrow{font:10px var(--mono);letter-spacing:.11em;color:var(--green);font-weight:700}.eyebrow span{color:#a0a89f}h1{font-size:clamp(38px,5vw,58px);line-height:.98;letter-spacing:-.065em;margin:12px 0 0;font-weight:680}.heading-note{font-size:13px;line-height:1.55;color:var(--ink);margin:0 0 3px}.heading-note span{color:var(--muted)}.workbench{display:grid;grid-template-columns:.96fr 1.04fr;gap:16px;align-items:stretch}.input-panel,.result-panel{background:var(--white);border:1px solid var(--line);border-radius:12px;padding:22px 24px 20px;min-width:0}.panel-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.panel-head>div{display:flex;align-items:center;gap:11px}.step-number{font:10px var(--mono);color:var(--green);background:#e9f0e8;border-radius:5px;padding:6px 7px}.panel-head h2{font-size:16px;letter-spacing:-.025em;margin:0;font-weight:650}.panel-kicker{font:9px var(--mono);letter-spacing:.09em;color:#89928a}.dropzone{height:216px;border:1px dashed #b6c4b7;border-radius:9px;background:#f7f8f1;display:flex;align-items:center;justify-content:center;flex-direction:column;cursor:pointer;transition:border-color .16s ease,background .16s ease,transform .16s ease;outline:none}.dropzone:hover,.dropzone:focus-visible,.dropzone.is-over{border-color:var(--green);background:#f0f5e8}.dropzone.is-over{transform:scale(.995)}#file-input{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;clip-path:inset(50%)}.upload-symbol{width:40px;height:40px;display:grid;place-items:center;border-radius:50%;background:#e8efdf;color:var(--green);margin-bottom:12px}.upload-symbol svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.drop-title{font-size:14px;font-weight:650;letter-spacing:-.02em}.drop-subtitle{font-size:12px;color:var(--muted);margin-top:5px}.browse-link{color:var(--green);text-decoration:underline;text-underline-offset:3px}.format-line{font:9px/1.8 var(--mono);letter-spacing:.035em;text-align:center;color:#8a948d;margin-top:17px}.file-row{display:flex;align-items:center;gap:11px;margin-top:12px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;min-width:0}.file-icon{width:34px;height:34px;display:grid;place-items:center;background:#eaf1e4;color:var(--green);border-radius:6px;font-size:18px}.file-details{min-width:0;flex:1;display:flex;flex-direction:column;gap:3px}.file-name{font-size:12px;font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-meta{font:9px var(--mono);color:var(--muted)}.icon-button{width:30px;height:30px;border:0;background:transparent;color:var(--muted);font-size:21px;cursor:pointer;border-radius:5px}.icon-button:hover{background:var(--paper2);color:var(--ink)}.convert-button{width:100%;height:46px;margin-top:12px;border:0;border-radius:7px;background:var(--green);color:white;font-size:12px;font-weight:650;letter-spacing:.01em;display:flex;justify-content:space-between;align-items:center;padding:0 15px;cursor:pointer;transition:background .15s ease,transform .15s ease}.convert-button:not(:disabled):hover{background:#1b5740;transform:translateY(-1px)}.convert-button:disabled{background:#c4cec5;color:#f8faf5;cursor:not-allowed}.convert-button span:last-child{font-size:17px}.input-footnote{font:9px var(--mono);color:var(--muted);letter-spacing:.02em;margin:11px 0 14px}.input-footnote span{padding:0 5px;color:#b5bab2}.privacy-note{border-top:1px solid #e9e9e1;padding-top:12px;display:flex;align-items:flex-start;gap:8px;color:var(--muted);font-size:10px;line-height:1.5}.privacy-note svg{width:15px;height:15px;flex:none;fill:none;stroke:var(--green);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.privacy-note strong{font-weight:650;color:var(--ink)}.progress-wrap{margin-top:14px}.progress-label{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:var(--green)}.spinner{width:13px;height:13px;border:1.5px solid #d6e1d5;border-top-color:var(--green);border-radius:50%;animation:spin .7s linear infinite}.progress-track{height:3px;background:#e5e9df;border-radius:3px;overflow:hidden;margin-top:8px}.progress-track span{display:block;height:100%;width:35%;background:var(--lime);animation:progress 1.2s ease-in-out infinite alternate}.error-message{margin:12px 0 0;padding:9px 11px;background:#fff0ec;color:#a83f2f;border-left:2px solid var(--coral);border-radius:4px;font-size:11px;line-height:1.45}.result-panel{display:flex;flex-direction:column}.result-panel .panel-head{margin-bottom:14px}.empty-state{min-height:280px;flex:1;border:1px solid #e5e6de;border-radius:8px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:linear-gradient(135deg,#fbfbf7,#f5f6ef);color:var(--muted)}.empty-state p{font-size:12px;color:var(--ink);font-weight:600;margin:14px 0 4px}.empty-state>span{font-size:10px}.empty-glyph{height:46px;display:flex;gap:5px;align-items:center}.empty-glyph span{width:8px;border-radius:3px;background:#cdd8ca}.empty-glyph span:nth-child(1),.empty-glyph span:nth-child(7){height:18px}.empty-glyph span:nth-child(2),.empty-glyph span:nth-child(6){height:30px}.empty-glyph span:nth-child(3),.empty-glyph span:nth-child(5){height:40px}.empty-glyph span:nth-child(4){height:23px;background:#b5c7ae}.result-content{min-width:0}.result-stats{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid #e5e6de;border-radius:8px;background:#fafaf6;margin-bottom:12px}.result-stats>div{padding:11px 12px;display:flex;align-items:baseline;gap:5px;border-right:1px solid #e5e6de}.result-stats>div:last-child{border:0}.stat-label{font:8px var(--mono);color:#7a867e;letter-spacing:.07em;margin-right:auto}.result-stats strong{font:15px var(--mono);font-weight:600;font-variant-numeric:tabular-nums}.result-stats small{font:8px var(--mono);color:var(--muted)}.roll-wrap{border:1px solid #e5e6de;border-radius:8px;overflow:hidden;background:#fbfcf8}.roll-label{display:flex;justify-content:space-between;padding:9px 11px;border-bottom:1px solid #e5e6de;color:var(--muted);font:8px var(--mono);letter-spacing:.08em}#piano-roll{width:100%;height:124px;display:block}.notes-heading{display:flex;justify-content:space-between;margin:13px 0 7px;color:var(--muted);font:8px var(--mono);letter-spacing:.08em}.note-table-wrap{max-height:112px;overflow:auto;border-top:1px solid #e5e6de;border-bottom:1px solid #e5e6de}.note-table{border-collapse:collapse;width:100%;font:9px var(--mono);font-variant-numeric:tabular-nums}.note-table th{text-align:left;color:#818b83;font-size:8px;font-weight:500;letter-spacing:.04em;padding:7px 5px}.note-table td{padding:6px 5px;border-top:1px solid #f0f0e9}.note-table th:first-child,.note-table td:first-child{padding-left:8px}.note-table td:first-child{font-weight:700;color:var(--green)}.download-row{display:flex;align-items:center;gap:10px;padding-top:12px}.midi-file-icon{height:32px;width:38px;border:1px solid #dce4d7;border-radius:5px;background:#f0f5eb;color:var(--green);font:9px var(--mono);display:grid;place-items:center}.download-copy{display:flex;flex:1;flex-direction:column;gap:3px;min-width:0}.download-copy strong{font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.download-copy span{font:8px var(--mono);letter-spacing:.06em;color:var(--muted)}.download-button{padding:10px 12px;border-radius:6px;background:var(--ink);color:white;text-decoration:none;font-size:10px;font-weight:600;transition:background .15s ease,transform .15s ease}.download-button:hover{background:var(--green);transform:translateY(-1px)}.download-button span{margin-left:7px;color:var(--lime);font-size:13px}.result-footnote{font-size:9px;line-height:1.4;color:var(--muted);margin:12px 0 0}.tool-bottomline{display:flex;justify-content:space-between;padding:15px 3px 0;color:#8a928a;font:8px var(--mono);letter-spacing:.08em}.tool-bottomline b{padding:0 7px;color:var(--green);font-size:11px}.details-section{border-top:1px solid var(--line);margin-top:56px;padding:41px 0 47px;display:grid;grid-template-columns:.72fr 1.28fr;gap:60px}.details-intro h2{font-size:28px;line-height:1.12;letter-spacing:-.055em;margin:15px 0 0}.details-intro h2 em{font-family:Georgia,serif;font-weight:400;color:var(--green)}.details-grid{display:grid;grid-template-columns:1fr 1fr;gap:23px 32px}.details-grid article{border-top:1px solid var(--line);padding-top:10px}.detail-index{font:8px var(--mono);color:var(--green);letter-spacing:.07em}.details-grid h3{font-size:12px;letter-spacing:-.02em;margin:10px 0 6px}.details-grid p,.faq-list p{font-size:10px;line-height:1.65;color:var(--muted);margin:0}.faq-section{border-top:1px solid var(--line);padding:36px 0 42px;display:grid;grid-template-columns:.72fr 1.28fr;gap:60px}.faq-section h2{font-size:24px;letter-spacing:-.05em;margin:12px 0 0}.faq-list details{border-bottom:1px solid var(--line);padding:12px 0}.faq-list details:first-child{border-top:1px solid var(--line)}.faq-list summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:10px;cursor:pointer;font-size:11px;font-weight:600}.faq-list summary::-webkit-details-marker{display:none}.faq-list summary::after{content:"+";font:16px var(--mono);color:var(--green)}.faq-list details[open] summary::after{content:"−"}.faq-list p{padding:8px 24px 2px 0}.footer{border-top:1px solid var(--line);min-height:62px;display:flex;justify-content:space-between;align-items:center;gap:16px;color:var(--muted);font:9px var(--mono)}.footer .brand{font-family:var(--sans);font-size:10px}.footer .brand-mark{transform:scale(.85);transform-origin:left center}.footer .brand-mark i{background:var(--green)}:focus-visible{outline:2px solid var(--green);outline-offset:3px}@keyframes spin{to{transform:rotate(360deg)}}@keyframes progress{to{width:86%}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}@media(max-width:760px){.topbar{height:60px;padding:0 18px}.local-badge{font-size:8px}main{width:min(100% - 32px,560px)}.tool-shell{padding:34px 0 20px}.tool-heading{align-items:flex-start;flex-direction:column;gap:11px;margin-bottom:18px}h1{font-size:43px;margin-top:9px}.heading-note{font-size:11px}.workbench{grid-template-columns:1fr;gap:12px}.input-panel,.result-panel{padding:17px 15px 15px;border-radius:10px}.panel-head{margin-bottom:14px}.dropzone{height:194px}.empty-state{min-height:195px}.result-stats>div{padding:10px 7px;gap:4px;flex-wrap:wrap}.stat-label{width:100%;margin-right:0}.result-stats strong{font-size:13px}#piano-roll{height:112px}.note-table{font-size:8px}.note-table th{font-size:7px}.download-row{gap:7px}.download-button{padding:10px 9px;font-size:9px}.tool-bottomline{font-size:7px}.details-section,.faq-section{grid-template-columns:1fr;gap:22px;margin-top:39px;padding:30px 0 35px}.details-intro h2{font-size:25px}.details-grid{gap:20px 18px}.details-grid p{font-size:9px}.faq-section h2{font-size:22px}.footer{padding:14px 0;align-items:flex-start;flex-wrap:wrap}.footer>span:nth-child(2){order:3;width:100%}}@media(max-width:370px){main{width:calc(100% - 24px)}.input-panel,.result-panel{padding-left:12px;padding-right:12px}.result-stats>div{padding-left:5px;padding-right:5px}.result-stats strong{font-size:12px}.download-copy strong{font-size:9px}.download-button{padding:9px 7px}}

[hidden]{display:none!important}
.mode-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 0 4px}.mode-row label{font:8px var(--mono);letter-spacing:.08em;color:var(--muted)}.mode-row select{max-width:66%;padding:9px 28px 9px 10px;border:1px solid var(--line);border-radius:6px;background:var(--white);color:var(--ink);font:10px var(--sans)}.mode-help{margin:0 0 12px;color:var(--muted);font-size:9px;line-height:1.45}@media(max-width:370px){.mode-row select{max-width:72%;font-size:9px}}
.footer-links{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.footer-links a{color:inherit;text-decoration:none}.footer-links a:hover{color:var(--green);text-decoration:underline;text-underline-offset:3px}.site-page{padding:58px 0 70px;max-width:820px}.site-page h1{margin:14px 0 18px;font-size:clamp(36px,5vw,54px);line-height:1.02}.site-page .lede{max-width:660px;font-size:16px;line-height:1.65;color:var(--muted)}.site-page section{border-top:1px solid var(--line);padding:24px 0}.site-page h2{font-size:18px;letter-spacing:-.03em;margin:0 0 10px}.site-page p,.site-page li{font-size:13px;line-height:1.75;color:var(--muted)}.site-page a{color:var(--green);text-underline-offset:3px}.site-page ul{padding-left:20px}.site-page .page-updated{font:10px var(--mono);color:var(--muted)}.page-nav{display:flex;align-items:center;gap:18px}.page-nav a{color:var(--muted);font-size:11px;text-decoration:none}.page-nav a:hover{color:var(--green)}@media(max-width:760px){.footer{gap:12px}.footer-links{gap:13px}.site-page{padding:38px 0 48px}.site-page .lede{font-size:14px}.site-page p,.site-page li{font-size:12px}.page-nav{gap:12px;flex-wrap:wrap}}
