:root {
  color: #edf1f7;
  background: #090b10;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  --panel: #11151d;
  --panel-2: #171c26;
  --line: #252c38;
  --muted: #8791a3;
  --accent: #d4ff43;
  --accent-2: #9effc9;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 960px; min-height: 100vh; padding-top: 72px; background: #090b10; }
button, input, select { font: inherit; }
button { color: inherit; }
.hidden { display: none !important; }
.site-header { position: fixed; z-index: 50; top: 0; left: 0; right: 0; height: 72px; display: grid; grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr); align-items: center; gap: 24px; padding: 0 40px; border-bottom: 1px solid #d9ddd6; color: #171914; background: #f7f8f4f2; backdrop-filter: blur(18px); }
.site-brand { width: max-content; display: flex; align-items: center; gap: 10px; padding: 0; border: 0; color: #171914; background: transparent; text-align: left; cursor: pointer; }
.site-brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 7px; color: #f7f8f4; background: #171914; font-size: 13px; font-weight: 900; }
.site-brand > span:last-child { display: flex; flex-direction: column; gap: 1px; }
.site-brand strong { font-size: 14px; }
.site-brand small { color: #777d75; font-size: 8px; letter-spacing: 0; }
.site-nav { display: flex; align-items: stretch; align-self: stretch; gap: 26px; }
.site-nav button { position: relative; padding: 0 2px; border: 0; color: #676c65; background: transparent; font-size: 13px; font-weight: 700; cursor: pointer; }
.site-nav button::after { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; content: ""; background: transparent; }
.site-nav button:hover, .site-nav button.active { color: #171914; }
.site-nav button.active::after { background: #e6531f; }
.runtime-chip { display: none !important; justify-self: end; min-height: 34px; padding: 0 12px; border: 1px solid #d1d7cf; border-radius: 7px; color: #1c4f4c; background: #edf7f5; font-size: 10px; font-weight: 800; cursor: pointer; }
.home-view { min-height: calc(100vh - 72px); color: #171914; background: #f2f4ef; }
.home-hero { min-height: min(690px, calc(100vh - 150px)); display: flex; align-items: center; padding: 60px max(40px, calc((100vw - 1200px) / 2)); color: white; background-color: #102b3a; background-image: url('/assets/opentune-preview.png'); background-repeat: no-repeat; background-position: center; background-size: cover; background-blend-mode: multiply; overflow: hidden; }
.home-hero-copy { position: relative; z-index: 1; width: min(760px, 72%); }
.home-kicker { display: block; margin-bottom: 18px; color: #ff8457; font-size: 10px; font-weight: 800; letter-spacing: 0; }
.home-hero h1 { margin: 0 0 28px; color: white; font-size: 70px; line-height: 1; letter-spacing: 0; }
.home-hero h2 { margin: 0 0 24px; color: white; font-size: 44px; line-height: 1.15; letter-spacing: 0; }
.home-hero p { max-width: 540px; margin: 0 0 28px; color: #d4e1e4; font-size: 16px; line-height: 1.8; }
.home-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.home-primary, .home-secondary { min-height: 44px; padding: 0 20px; border-radius: 7px; font-size: 13px; font-weight: 800; cursor: pointer; }
.home-primary { border: 1px solid #e6531f; color: white; background: #e6531f; box-shadow: 0 12px 28px #b9331733; }
.home-secondary { border: 1px solid #ffffff70; color: white; background: #09151d80; }
.home-quick-action { display: none !important; border-color: #4dd6c0aa; color: #dffcf6; background: #09221dcc; }
.home-formats { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 22px; color: #c4d2d5; font-size: 10px; font-weight: 700; }
.home-formats span::before { margin-right: 6px; color: #0e8f8a; content: "●"; }
.home-tool-strip { max-width: 1200px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; align-items: stretch; margin: -1px auto 0; border: 1px solid #d7dcd5; border-radius: 8px; background: #fafbf8; overflow: hidden; }
.home-tool-strip > button { min-width: 0; display: grid; grid-template-columns: 32px 1fr; align-items: center; gap: 12px; padding: 20px 24px; border: 0; border-right: 1px solid #e1e4df; color: #20241e; background: transparent; text-align: left; cursor: pointer; }
.home-tool-strip > button:hover { background: #f0f3ed; }
.home-tool-strip b { color: #d94d20; font-size: 11px; }
.home-tool-strip button span { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.home-tool-strip strong { font-size: 13px; }
.home-tool-strip small { color: #838981; font-size: 9px; }
.home-engine { display: flex; align-items: center; gap: 8px; padding: 0 22px; color: #686f67; font-size: 9px; font-weight: 800; white-space: nowrap; }
.home-engine i { width: 7px; height: 7px; border-radius: 50%; background: #0e8f8a; box-shadow: 0 0 10px #0e8f8a66; }
.quick-band { margin-top: 76px; padding: 82px max(40px, calc((100vw - 1200px) / 2)) 96px; color: #eef4f4; background: #101619; }
.quick-heading { max-width: 760px; margin-bottom: 34px; }
.quick-heading .home-kicker { color: #49c6bf; }
.quick-heading h2 { margin: 0 0 12px; font-size: 42px; letter-spacing: 0; }
.quick-heading p { margin: 0; color: #93a2a3; font-size: 15px; }
.quick-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr); gap: 24px; align-items: stretch; }
.quick-console { min-width: 0; display: grid; align-content: start; gap: 18px; padding: 26px; border: 1px solid #2a383d; border-radius: 8px; background: #151d21; }
.quick-status-row { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 10px; padding-bottom: 18px; border-bottom: 1px solid #2a383d; }
.quick-status-row strong { font-size: 13px; }
.quick-status-row small { color: #7f9295; font-size: 9px; }
.quick-runtime-dot { width: 8px; height: 8px; border-radius: 50%; background: #647277; }
.quick-runtime-dot.ready { background: #4ee1a0; box-shadow: 0 0 12px #4ee1a088; }
.quick-field { display: grid; gap: 8px; }
.quick-field > span { color: #8fa0a3; font-size: 10px; font-weight: 800; }
.quick-field select { width: 100%; height: 44px; padding: 0 12px; border: 1px solid #35464b; border-radius: 7px; color: #e9f0f1; background: #0e1518; outline: none; }
.quick-field select:focus { border-color: #49c6bf; }
.quick-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 9px; }
.quick-file-button, .quick-launch, .quick-blank { min-height: 42px; display: grid; place-items: center; padding: 0 14px; border-radius: 7px; font-size: 11px; font-weight: 800; cursor: pointer; }
.quick-file-button { border: 1px solid #3a4b50; color: #d6e2e3; background: #202b30; }
.quick-file-button input { display: none; }
.quick-launch { border: 1px solid #49c6bf; color: #0c181a; background: #49c6bf; }
.quick-blank { border: 1px solid #3a4b50; color: #b5c3c5; background: transparent; }
.quick-launch:disabled, .quick-blank:disabled { opacity: .38; cursor: not-allowed; }
.quick-selection { min-height: 40px; padding: 12px; border-left: 3px solid #e6531f; color: #9fb0b2; background: #0e1518; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quick-history { min-height: 360px; margin: 0; padding: 18px; border: 1px solid #2a383d; border-radius: 8px; background: #071019; overflow: hidden; }
.quick-history-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid #1c2b31; }
.quick-history-head div { display: grid; gap: 4px; }
.quick-history-head span { color: #68ded7; font-size: 9px; font-weight: 800; }
.quick-history-head strong { color: #eef4f4; font-size: 18px; }
.quick-history-head button { min-height: 30px; padding: 0 11px; border: 1px solid #31565d; border-radius: 6px; color: #b8f6f1; background: #102227; font-size: 10px; font-weight: 800; cursor: pointer; }
.quick-output-list { max-height: 286px; display: grid; gap: 8px; margin-top: 14px; overflow-y: auto; scrollbar-width: thin; }
.quick-output-row { display: grid; gap: 10px; padding: 12px; border: 1px solid #1f333b; border-radius: 7px; color: #dce9ea; background: #0e171c; }
.quick-output-row strong, .quick-output-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quick-output-row strong { color: #f1f8f8; font-size: 12px; }
.quick-output-row small { margin-top: 4px; color: #83979b; font-size: 9px; }
.quick-output-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.quick-output-actions button, .quick-output-actions a, .quick-output-actions span { min-height: 28px; display: grid; place-items: center; padding: 0 9px; border: 1px solid #263b42; border-radius: 6px; color: #8adbd4; background: #0e171c; font-size: 10px; font-weight: 800; text-decoration: none; }
.quick-output-actions button { cursor: pointer; }
.quick-output-actions button:hover, .quick-output-actions a:hover { border-color: #49c6bf; }
.quick-output-actions span { color: #62767a; cursor: not-allowed; }
.quick-audio-pair { display: grid; gap: 9px; }
.quick-audio-lane { display: grid; grid-template-columns: minmax(0, 1fr) 92px; align-items: center; gap: 10px; padding: 10px; border: 1px solid #263b42; border-radius: 7px; background: #0a1216; }
.quick-audio-lane > div { display: contents; }
.quick-audio-lane b { display: none; }
.quick-audio-lane a, .quick-audio-lane span { grid-column: 2; grid-row: 1; min-height: 34px; display: grid; place-items: center; padding: 0 14px; border: 1px solid #2f6b6b; border-radius: 7px; color: #a8fff0; background: #102420; font-size: 12px; font-weight: 900; text-decoration: none; }
.quick-audio-lane a:hover { border-color: #49c6bf; background: #173a34; }
.quick-audio-lane audio { grid-column: 1; grid-row: 1; width: 100%; height: 34px; min-width: 0; accent-color: #49c6bf; }
.quick-audio-lane.unavailable { opacity: .62; }
.quick-output-empty { min-height: 170px; display: grid; place-items: center; align-content: center; gap: 7px; color: #8da1a4; border: 1px dashed #274149; border-radius: 8px; background: #0a1216; font-size: 11px; text-align: center; }
.quick-output-empty strong { color: #dce9ea; font-size: 13px; }
.quick-output-player { display: none; width: 100%; height: 34px; margin-top: 14px; accent-color: #49c6bf; }
.score-band { margin-top: 0; padding: 82px max(40px, calc((100vw - 1200px) / 2)) 96px; color: #eef4f4; background: #101619; }
.score-heading { max-width: 760px; margin-bottom: 34px; }
.score-heading .home-kicker { color: #49c6bf; }
.score-heading h2 { margin: 0 0 12px; font-size: 42px; letter-spacing: 0; }
.score-heading p { margin: 0; color: #93a2a3; font-size: 15px; }
.score-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr); gap: 24px; align-items: stretch; }
.score-console { min-width: 0; display: grid; align-content: start; gap: 18px; padding: 26px; border: 1px solid #2a383d; border-radius: 8px; background: #151d21; }
.score-status-row { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 10px; padding-bottom: 18px; border-bottom: 1px solid #2a383d; }
.score-status-row strong { font-size: 13px; }
.score-status-row small { color: #7f9295; font-size: 9px; }
.score-runtime-dot { width: 8px; height: 8px; border-radius: 50%; background: #647277; }
.score-runtime-dot.ready { background: #4ee1a0; box-shadow: 0 0 12px #4ee1a088; }
.score-field { display: grid; gap: 8px; }
.score-field > span { color: #8fa0a3; font-size: 10px; font-weight: 800; }
.score-field select { width: 100%; height: 44px; padding: 0 12px; border: 1px solid #35464b; border-radius: 7px; color: #e9f0f1; background: #0e1518; outline: none; }
.score-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.score-file-button, .score-launch { min-height: 42px; display: grid; place-items: center; padding: 0 14px; border-radius: 7px; font-size: 11px; font-weight: 800; cursor: pointer; }
.score-file-button { border: 1px solid #3a4b50; color: #d6e2e3; background: #202b30; }
.score-file-button input { display: none; }
.score-launch { border: 1px solid #49c6bf; color: #0c181a; background: #49c6bf; }
.score-launch:disabled { opacity: .38; cursor: not-allowed; }
.score-selection { min-height: 40px; padding: 12px; border-left: 3px solid #e6531f; color: #9fb0b2; background: #0e1518; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.score-history { min-height: 360px; margin: 0; padding: 18px; border: 1px solid #2a383d; border-radius: 8px; background: #071019; overflow: hidden; }
.score-history-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid #1c2b31; }
.score-history-head div { display: grid; gap: 4px; }
.score-history-head span { color: #68ded7; font-size: 9px; font-weight: 800; }
.score-history-head strong { color: #eef4f4; font-size: 18px; }
.score-history-head button { min-height: 30px; padding: 0 11px; border: 1px solid #31565d; border-radius: 6px; color: #b8f6f1; background: #102227; font-size: 10px; font-weight: 800; cursor: pointer; }
.score-output-list { max-height: 286px; display: grid; gap: 8px; margin-top: 14px; overflow-y: auto; scrollbar-width: thin; }
.score-output-empty { min-height: 170px; display: grid; place-items: center; align-content: center; gap: 7px; color: #8da1a4; border: 1px dashed #274149; border-radius: 8px; background: #0a1216; font-size: 11px; text-align: center; }
.score-output-player { width: 100%; height: 34px; margin-top: 14px; accent-color: #49c6bf; }
.tune-band { margin-top: 76px; padding: 82px max(40px, calc((100vw - 1200px) / 2)) 96px; color: #eef4f4; background: #101619; }
.tune-heading { max-width: 720px; margin-bottom: 34px; }
.tune-heading .home-kicker { color: #49c6bf; }
.tune-heading h2 { margin: 0 0 12px; font-size: 42px; letter-spacing: 0; }
.tune-heading p { margin: 0; color: #93a2a3; font-size: 15px; }
.tune-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); gap: 24px; align-items: stretch; }
.tune-console { min-width: 0; display: grid; align-content: start; gap: 18px; padding: 26px; border: 1px solid #2a383d; border-radius: 8px; background: #151d21; }
.tune-status-row { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 10px; padding-bottom: 18px; border-bottom: 1px solid #2a383d; }
.tune-status-row strong { font-size: 13px; }
.tune-status-row small { color: #7f9295; font-size: 9px; }
.tune-runtime-dot { width: 8px; height: 8px; border-radius: 50%; background: #647277; }
.tune-runtime-dot.ready { background: #4ee1a0; box-shadow: 0 0 12px #4ee1a088; }
.tune-runtime-dot.failed { background: #ff6b75; }
.tune-field { display: grid; gap: 8px; }
.tune-field > span { color: #8fa0a3; font-size: 10px; font-weight: 800; }
.tune-field select { width: 100%; height: 44px; padding: 0 12px; border: 1px solid #35464b; border-radius: 7px; color: #e9f0f1; background: #0e1518; outline: none; }
.tune-field select:focus { border-color: #49c6bf; }
.tune-actions { display: grid; grid-template-columns: 1fr 1fr auto; gap: 9px; }
.tune-file-button, .tune-launch, .tune-blank { min-height: 42px; display: grid; place-items: center; padding: 0 14px; border-radius: 7px; font-size: 11px; font-weight: 800; cursor: pointer; }
.tune-file-button { border: 1px solid #3a4b50; color: #d6e2e3; background: #202b30; }
.tune-file-button input { display: none; }
.tune-launch { border: 1px solid #49c6bf; color: #0c181a; background: #49c6bf; }
.tune-blank { border: 1px solid #3a4b50; color: #b5c3c5; background: transparent; }
.tune-launch:disabled, .tune-blank:disabled { opacity: .38; cursor: not-allowed; }
.tune-selection { min-height: 40px; padding: 12px; border-left: 3px solid #e6531f; color: #9fb0b2; background: #0e1518; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-alert { padding: 10px 12px; border: 1px solid #ff6b7555; border-radius: 6px; color: #ff9ca4; background: #ff6b7510; font-size: 11px; }
.tune-visual { position: relative; min-height: 360px; margin: 0; border: 1px solid #2a383d; border-radius: 8px; background: #071019; overflow: hidden; }
.tune-visual img { width: 100%; height: 100%; display: block; object-fit: cover; }
.tune-visual figcaption { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border: 1px solid #ffffff20; border-radius: 6px; color: white; background: #071019d9; backdrop-filter: blur(12px); }
.tune-visual figcaption span { color: #68ded7; font-size: 9px; font-weight: 800; }
.tune-history { min-height: 360px; margin: 0; padding: 18px; border: 1px solid #2a383d; border-radius: 8px; background: #071019; overflow: hidden; }
.tune-history-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid #1c2b31; }
.tune-history-head div { display: grid; gap: 4px; }
.tune-history-head span { color: #68ded7; font-size: 9px; font-weight: 800; }
.tune-history-head strong { color: #eef4f4; font-size: 18px; }
.tune-history-head button { min-height: 30px; padding: 0 11px; border: 1px solid #31565d; border-radius: 6px; color: #b8f6f1; background: #102227; font-size: 10px; font-weight: 800; cursor: pointer; }
.tune-output-list { max-height: 266px; display: grid; gap: 8px; margin-top: 14px; overflow-y: auto; scrollbar-width: thin; }
.tune-output-row { display: grid; grid-template-columns: 1fr 48px; gap: 7px; }
.tune-output-row button { min-width: 0; min-height: 54px; display: grid; grid-template-columns: 7px minmax(0, 1fr) 42px; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid #1f333b; border-radius: 7px; color: #dce9ea; background: #0e171c; text-align: left; cursor: pointer; }
.tune-output-row button i { width: 7px; height: 28px; border-radius: 99px; background: #49c6bf; opacity: .75; }
.tune-output-row button span { min-width: 0; display: grid; gap: 4px; }
.tune-output-row button strong, .tune-output-row button small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tune-output-row button strong { color: #f1f8f8; font-size: 12px; }
.tune-output-row button small { color: #83979b; font-size: 9px; }
.tune-output-row button b { color: #7fe5dc; font-size: 10px; text-align: right; }
.tune-output-row.active button { border-color: #49c6bf; background: #10272c; box-shadow: 0 0 18px #49c6bf26; }
.tune-output-row.active button i { box-shadow: 0 0 14px #49c6bf; opacity: 1; }
.tune-output-row a { display: grid; place-items: center; border: 1px solid #263b42; border-radius: 7px; color: #8adbd4; background: #0e171c; font-size: 10px; font-weight: 800; text-decoration: none; }
.tune-output-row a:hover, .tune-output-row button:hover { border-color: #49c6bf; }
.tune-output-empty { min-height: 142px; display: grid; place-items: center; align-content: center; gap: 7px; color: #8da1a4; border: 1px dashed #274149; border-radius: 8px; background: #0a1216; font-size: 11px; text-align: center; }
.tune-output-empty strong { color: #dce9ea; font-size: 13px; }
.tune-output-empty span { color: #7e9295; }
.tune-output-player { width: 100%; height: 34px; margin-top: 14px; accent-color: #49c6bf; }
.quality-band { padding: 88px max(40px, calc((100vw - 1200px) / 2)) 100px; color: #17202b; background: #eef2f1; }
.quality-heading { max-width: 760px; margin-bottom: 34px; }
.quality-heading .home-kicker { color: #087f78; }
.quality-heading h2 { margin: 0 0 12px; font-size: 42px; letter-spacing: 0; }
.quality-heading p { margin: 0; color: #667372; font-size: 15px; }
.quality-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr); gap: 24px; align-items: stretch; }
.quality-console { min-width: 0; display: grid; align-content: start; gap: 17px; padding: 26px; border: 1px solid #cdd7d4; border-radius: 8px; background: #fafcfb; }
.quality-status-row { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 10px; padding-bottom: 18px; border-bottom: 1px solid #dbe2e0; }
.quality-status-row strong { font-size: 13px; }
.quality-status-row small { color: #71807e; font-size: 9px; }
.quality-runtime-dot { width: 8px; height: 8px; border-radius: 50%; background: #7e8b89; }
.quality-runtime-dot.ready { background: #0e9f85; box-shadow: 0 0 12px #0e9f8566; }
.quality-runtime-dot.failed { background: #d94e5c; }
.quality-field { display: grid; gap: 7px; }
.quality-field > span { color: #6b7977; font-size: 10px; font-weight: 800; }
.quality-field select { width: 100%; height: 43px; padding: 0 12px; border: 1px solid #c7d2cf; border-radius: 7px; color: #17202b; background: #ffffff; outline: none; }
.quality-field select:focus { border-color: #0e8f8a; box-shadow: 0 0 0 3px #0e8f8a14; }
.quality-settings { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quality-toggle { min-height: 54px; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid #d4ddda; border-radius: 7px; background: #f2f6f4; cursor: pointer; }
.quality-toggle input { width: 17px; height: 17px; accent-color: #0e8f8a; }
.quality-toggle span { display: flex; flex-direction: column; gap: 3px; }
.quality-toggle strong { font-size: 11px; }
.quality-toggle small { color: #75827f; font-size: 9px; }
.quality-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quality-file-button, .quality-start { min-height: 43px; display: grid; place-items: center; padding: 0 16px; border-radius: 7px; font-size: 11px; font-weight: 800; cursor: pointer; }
.quality-file-button { border: 1px solid #c8d3d0; color: #31403e; background: #edf2f0; }
.quality-file-button input { display: none; }
.quality-start { border: 1px solid #0e8f8a; color: #ffffff; background: #0e8f8a; }
.quality-start:disabled { opacity: .4; cursor: not-allowed; }
.quality-job { display: grid; gap: 9px; padding: 13px; border-left: 3px solid #e6531f; background: #f1f5f3; }
.quality-job > div:first-child { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; }
.quality-job > div:first-child span { color: #087f78; font-weight: 800; }
.quality-job > small { color: #72807e; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quality-progress { height: 5px; border-radius: 99px; background: #d7e0dd; overflow: hidden; }
.quality-progress i { width: 0; height: 100%; display: block; border-radius: inherit; background: #0e8f8a; transition: width .3s; }
.quality-download { min-height: 42px; display: grid; place-items: center; border: 1px solid #0e8f8a; border-radius: 7px; color: #076c68; background: #e0f4ef; font-size: 11px; font-weight: 800; text-decoration: none; }
.quality-visual { position: relative; min-height: 420px; margin: 0; border: 1px solid #c7d2cf; border-radius: 8px; background: #071019; overflow: hidden; }
.quality-visual img { width: 100%; height: 100%; display: block; object-fit: cover; }
.quality-visual figcaption { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border: 1px solid #ffffff25; border-radius: 6px; color: white; background: #071019dc; backdrop-filter: blur(12px); }
.quality-visual figcaption span { color: #63ded6; font-size: 9px; font-weight: 800; }
.quality-history { min-height: 420px; margin: 0; padding: 18px; border: 1px solid #c7d2cf; border-radius: 8px; background: #fafcfb; overflow: hidden; }
.quality-history-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid #dce5e2; }
.quality-history-head div { display: grid; gap: 4px; }
.quality-history-head span { color: #087f78; font-size: 9px; font-weight: 800; }
.quality-history-head strong { color: #17202b; font-size: 18px; }
.quality-history-head button { min-height: 30px; padding: 0 11px; border: 1px solid #b8cbc6; border-radius: 6px; color: #087f78; background: #edf5f3; font-size: 10px; font-weight: 800; cursor: pointer; }
.quality-output-list { max-height: 326px; display: grid; gap: 8px; margin-top: 14px; overflow-y: auto; scrollbar-width: thin; }
.quality-output-row { display: grid; grid-template-columns: 1fr 48px; gap: 7px; }
.quality-output-row button { min-width: 0; min-height: 54px; display: grid; grid-template-columns: 7px minmax(0, 1fr) 42px; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid #d4ddda; border-radius: 7px; color: #23302f; background: #f4f8f7; text-align: left; cursor: pointer; }
.quality-output-row button i { width: 7px; height: 28px; border-radius: 99px; background: #0e8f8a; opacity: .75; }
.quality-output-row button span { min-width: 0; display: grid; gap: 4px; }
.quality-output-row button strong, .quality-output-row button small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quality-output-row button strong { color: #15201f; font-size: 12px; }
.quality-output-row button small { color: #70817e; font-size: 9px; }
.quality-output-row button b { color: #087f78; font-size: 10px; text-align: right; }
.quality-output-row.active button { border-color: #0e8f8a; background: #e8f5f2; box-shadow: 0 0 18px #0e8f8a24; }
.quality-output-row.active button i { box-shadow: 0 0 14px #0e8f8a; opacity: 1; }
.quality-output-row a { display: grid; place-items: center; border: 1px solid #d4ddda; border-radius: 7px; color: #087f78; background: #f4f8f7; font-size: 10px; font-weight: 800; text-decoration: none; }
.quality-output-row a:hover, .quality-output-row button:hover { border-color: #0e8f8a; }
.quality-output-empty { min-height: 170px; display: grid; place-items: center; align-content: center; gap: 7px; color: #71807e; border: 1px dashed #c8d5d1; border-radius: 8px; background: #f3f7f5; font-size: 11px; text-align: center; }
.quality-output-empty strong { color: #24302f; font-size: 13px; }
.quality-output-empty span { color: #75827f; }
.quality-output-player { width: 100%; height: 34px; margin-top: 14px; accent-color: #0e8f8a; }
.home-footer { max-width: 1200px; display: flex; justify-content: space-between; margin: 0 auto; padding: 30px 0; color: #737a72; font-size: 10px; }
.shell { display: grid; grid-template-columns: 310px minmax(0, 1fr); min-height: calc(100vh - 72px); }
.sidebar { position: sticky; top: 72px; height: calc(100vh - 72px); padding: 22px; border-right: 1px solid var(--line); background: #0b0e14ee; display: flex; flex-direction: column; gap: 18px; }
.brand { display: flex; gap: 12px; align-items: center; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; background: var(--accent); color: #10130c; font-weight: 900; border-radius: 12px 4px; }
.brand div { display: flex; flex-direction: column; gap: 3px; }
.brand small, .eyebrow { color: var(--muted); font-size: 10px; letter-spacing: .16em; }
.dropzone { border: 1px dashed #3a4454; border-radius: 14px; padding: 18px; display: grid; justify-items: center; gap: 5px; cursor: pointer; color: var(--muted); background: #11151d80; transition: .2s; }
.dropzone:hover, .dropzone.dragging { border-color: var(--accent); background: #d4ff430c; color: #dce4ed; }
.dropzone input { display: none; }
.dropzone b { font-size: 25px; color: var(--accent); }
.dropzone strong { color: white; }
.dropzone small { font-size: 10px; }
.project-heading { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; text-transform: uppercase; }
.project-heading b { background: var(--panel-2); padding: 2px 7px; border-radius: 99px; }
.project-list { display: grid; gap: 7px; overflow-y: auto; }
.project-item { border: 1px solid transparent; background: transparent; display: grid; grid-template-columns: 8px 1fr 22px; text-align: left; gap: 10px; align-items: center; border-radius: 10px; padding: 10px; cursor: pointer; }
.project-item:hover, .project-item.active { background: var(--panel-2); border-color: var(--line); }
.project-item > i { width: 7px; height: 7px; border-radius: 50%; background: #697385; }
.project-item > i[data-status="completed"] { background: var(--accent); box-shadow: 0 0 10px #d4ff43; }
.project-item > i[data-status="failed"] { background: #ff5d73; }
.project-item > i[data-status="queued"], .project-item > i[data-status="separating"], .project-item > i[data-status="transcribing"] { background: #65b7ff; }
.project-item span { display: flex; flex-direction: column; min-width: 0; }
.project-item strong { white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.project-item small { color: var(--muted); margin-top: 3px; }
.remove { color: #707b8d; font-size: 18px; }
.system-status { display: none !important; position: absolute; left: 22px; right: 22px; bottom: 18px; margin: 0; border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; background: #0f131bdd; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 4px 8px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.system-status > span { grid-column: 1 / -1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.system-status small { color: #727c8c; white-space: nowrap; padding: 0; text-align: left; }
.system-status small:last-child { grid-column: 1 / -1; margin-top: 2px; }
.system-status small.ready { color: var(--accent-2); }
.workspace { min-width: 0; padding: 34px clamp(30px, 5vw, 74px) 80px; max-width: 1500px; width: 100%; margin: 0 auto; }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.topbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
h1, h2, p { margin-top: 0; }
h1 { font-size: 24px; margin-bottom: 0; }
h2 { margin-bottom: 9px; }
.primary { border: 0; color: #11150b; font-weight: 800; background: var(--accent); padding: 13px 19px; border-radius: 9px; cursor: pointer; }
.primary:hover { filter: brightness(1.06); }
.primary:disabled { opacity: .45; cursor: not-allowed; }
.primary.compact { padding: 9px 14px; }
.secondary-action { color: #dce6ef; border: 1px solid #33404e; background: #17202b; }
.secondary-action:hover { filter: none; border-color: #4a5f72; background: #202c39; }
.card { min-width: 0; border: 1px solid var(--line); background: linear-gradient(145deg, #141923ee, #0f131aee); border-radius: 18px; padding: 24px; margin-bottom: 18px; box-shadow: 0 20px 60px #0003; }
.hero { min-height: 470px; display: grid; grid-template-columns: 180px 1fr; align-items: center; overflow: hidden; }
.hero-number { font-size: 160px; line-height: 1; color: transparent; -webkit-text-stroke: 1px #485142; opacity: .55; transform: rotate(-90deg); }
.hero h2 { font-size: 72px; line-height: 1.04; letter-spacing: 0; max-width: 900px; }
.hero p { max-width: 650px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.progress-card { display: grid; grid-template-columns: 1fr auto; align-items: end; }
.progress-card > strong { font-size: 34px; color: var(--accent); }
.progress { grid-column: 1 / -1; height: 5px; background: #252b34; border-radius: 99px; overflow: hidden; margin-top: 13px; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, #7aff9b, var(--accent)); transition: width .4s; }
.error { grid-column: 1 / -1; color: #ff8596; margin: 13px 0 0; white-space: pre-wrap; }
.section-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.section-title h2 { margin: 3px 0 0; }
.quick-workflow-card .section-title { margin-bottom: 12px; }
.quick-workflow-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.quick-workflow-item { min-width: 0; display: grid; gap: 7px; padding: 14px; border: 1px solid #28313c; border-radius: 8px; background: #101620; }
.quick-workflow-item span { color: var(--accent-2); font-size: 9px; font-weight: 800; }
.quick-workflow-item strong { color: #f1f5f8; font-size: 15px; }
.quick-workflow-item small { color: #788596; font-size: 10px; }
.quick-workflow-item em { color: #657184; font-size: 11px; font-style: normal; }
.quick-workflow-item audio { width: 100%; height: 34px; margin-top: 4px; }
.quick-workflow-item a { color: var(--accent-2); font-size: 11px; font-weight: 800; text-decoration: none; }
.quick-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.quick-links a { min-width: 48px; padding: 6px 8px; border: 1px solid #343d4a; border-radius: 6px; text-align: center; background: #131922; }
.track-list { display: grid; gap: 5px; }
.track-row { display: grid; grid-template-columns: 10px 85px 34px 34px minmax(120px, 1fr) 236px; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding: 12px 0; }
.track-row > i { width: 9px; height: 34px; border-radius: 4px; }
.track-row button { width: 30px; height: 30px; border: 1px solid #343d4a; background: #171c25; border-radius: 7px; cursor: pointer; font-size: 11px; }
.track-row button.active { background: var(--accent); color: #10130c; border-color: var(--accent); }
.track-row input, .timeline input { accent-color: var(--accent); width: 100%; }
.track-row a, .download { color: var(--accent-2); font-size: 12px; text-decoration: none; }
.track-downloads { display: flex; justify-content: flex-end; gap: 6px; }
.track-downloads a, .track-downloads span { min-width: 50px; padding: 6px 7px; border: 1px solid #343d4a; border-radius: 6px; color: #b8ffda; background: #131922; font-size: 10px; font-weight: 700; line-height: 1; text-align: center; white-space: nowrap; }
.track-downloads a:hover { border-color: var(--accent-2); background: #18221f; }
.track-downloads .unavailable { color: #596474; cursor: not-allowed; }
.timeline { display: grid; grid-template-columns: 54px minmax(0, 1fr) 54px; column-gap: 12px; align-items: center; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12px; margin-bottom: 14px; }
.timeline span { display: block; min-width: 0; line-height: 1; white-space: nowrap; }
.timeline span:last-child { text-align: right; }
.timeline input { min-width: 0; margin: 0; }
.midi-card .section-title { align-items: center; gap: 24px; margin-bottom: 14px; }
.midi-card .section-title > div:first-child { flex: 0 0 auto; }
.audition-title { display: grid; justify-items: start; gap: 3px; }
.audition-title h2 { white-space: nowrap; }
.piano-roll-shell { position: relative; }
.audition-mode { position: absolute; z-index: 2; top: 7px; left: 12px; display: inline-flex; align-items: stretch; width: max-content; gap: 10px; }
.audition-source-mode { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid #303846; border-radius: 7px; background: #0d1118ee; box-shadow: 0 5px 16px #0006; }
.audition-mode button { min-height: 23px; padding: 3px 8px; border: 0; border-radius: 5px; color: #7f8a9c; background: transparent; font-size: 9px; font-weight: 700; cursor: pointer; }
.audition-mode .game-mode-toggle { padding: 3px 10px; border: 1px solid #303846; border-radius: 7px; background: #0d1118ee; box-shadow: 0 5px 16px #0006; }
.audition-mode button:hover { color: #dce3ed; }
.audition-mode button.active { color: #11150b; background: var(--accent); }
.audition-mode .game-mode-toggle.active { color: #07151a; border-color: #47d7ff; background: #47d7ff; box-shadow: 0 0 16px #47d7ff55; }
.roll-rate-control { position: absolute; z-index: 3; top: 7px; right: 12px; }
.roll-rate-control button { width: 54px; height: 27px; padding: 0; border: 1px solid #3a4454; border-radius: 7px; color: #dbe3ee; background: #1c2330; font-size: 10px; font-weight: 800; cursor: pointer; outline: none; }
.roll-rate-control button:hover, .roll-rate-control button:focus-visible { color: #11150b; border-color: var(--accent); background: var(--accent); }
.midi-track-picker { flex: 1; display: grid; grid-template-columns: repeat(6, minmax(76px, 1fr)); gap: 8px; margin: 0; }
.midi-track-tile { min-width: 0; height: 52px; display: grid; grid-template-columns: 4px minmax(0, 1fr) 18px; align-items: center; gap: 6px; padding: 7px; color: #cbd2dd; text-align: left; border: 1px solid #303846; border-radius: 10px; background: linear-gradient(145deg, #181e28, #121720); cursor: pointer; transition: border-color .18s, background .18s, transform .18s, box-shadow .18s; }
.midi-track-tile > i { align-self: stretch; border-radius: 99px; background: var(--track-color); opacity: .7; }
.midi-track-tile span { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.midi-track-tile strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14px; }
.midi-track-tile small { overflow: hidden; color: #707b8d; font-size: 8px; letter-spacing: 0; white-space: nowrap; text-overflow: ellipsis; }
.midi-track-tile b { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: #748092; background: #0d1118; font-size: 8px; }
.midi-track-tile:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--track-color) 60%, #303846); background: #1a202a; }
.midi-track-tile.focused:not(.active) { border-color: #536174; box-shadow: inset 0 0 0 1px #ffffff0d; }
.midi-track-tile.active { color: white; border-color: var(--track-color); background: color-mix(in srgb, var(--track-color) 13%, #141923); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--track-color) 20%, transparent), 0 7px 20px #0003; }
.midi-track-tile.active > i { opacity: 1; box-shadow: 0 0 12px var(--track-color); }
.midi-track-tile.active b { color: #10130c; background: var(--track-color); }
.midi-track-tile.playing b { font-size: 9px; }
.midi-track-tile.loading b { color: #dbe3ee; background: #303846; }
midi-player { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
midi-visualizer { display: block; min-width: 0; max-width: 100%; width: 100%; min-height: 390px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: #0b0e14; scrollbar-width: none; }
midi-visualizer::-webkit-scrollbar { display: none; width: 0; height: 0; }
.download { display: inline-block; margin-top: 14px; }
.card.ready { padding: 55px; text-align: center; }
.card.ready p { color: var(--muted); }
.alert { padding: 12px 15px; background: #ff5d7318; border: 1px solid #ff5d7355; color: #ff9ba8; border-radius: 10px; margin-bottom: 18px; }
@media (max-width: 1100px) {
  body { min-width: 0; }
  .site-header { grid-template-columns: minmax(62px, 1fr) auto minmax(62px, 1fr); padding: 0 20px; }
  .site-brand > span:last-child { display: none; }
  .site-nav { gap: 18px; }
  .runtime-chip { padding: 0 9px; font-size: 9px; }
  .home-hero { min-height: 620px; padding: 52px 36px; background-position: center; background-size: cover; }
  .home-hero-copy { width: 72%; }
  .home-hero h1 { font-size: 56px; }
  .home-hero h2 { font-size: 38px; }
  .home-tool-strip { margin-left: 24px; margin-right: 24px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .home-engine { display: none; }
  .quick-band, .score-band, .tune-band { padding-left: 36px; padding-right: 36px; }
  .quick-layout, .score-layout, .tune-layout { grid-template-columns: 1fr; }
  .quick-history, .score-history, .tune-visual, .tune-history { min-height: 320px; }
  .quality-band { padding-left: 36px; padding-right: 36px; }
  .quality-layout { grid-template-columns: 1fr; }
  .quality-visual, .quality-history { min-height: 320px; }
  .home-footer { margin: 0 28px; }
  .shell { grid-template-columns: 250px 1fr; }
  .sidebar { padding: 16px; }
  .system-status { left: 16px; right: 16px; bottom: 14px; }
  .workspace { padding: 24px; }
  .topbar { align-items: flex-start; flex-direction: column; gap: 12px; }
  .topbar-actions { justify-content: flex-start; }
  .hero { grid-template-columns: 1fr; }
  .hero-number { display: none; }
  .hero h2 { font-size: 48px; }
  .midi-card .section-title { align-items: stretch; flex-direction: column; }
  .midi-track-picker { width: 100%; grid-template-columns: repeat(3, minmax(90px, 1fr)); }
}
@media (max-width: 720px) {
  .site-header { grid-template-columns: 42px 1fr; gap: 10px; height: 64px; padding: 0 14px; }
  body { padding-top: 64px; }
  .site-brand-mark { width: 34px; height: 34px; }
  .site-nav { justify-self: end; gap: 12px; }
  .site-nav button { font-size: 11px; }
  .runtime-chip { display: none; }
  .home-hero { min-height: 620px; padding: 40px 22px; background-position: center; background-size: cover; }
  .home-hero-copy { width: 100%; align-self: flex-start; }
  .home-hero h1 { font-size: 46px; }
  .home-hero h2 { font-size: 32px; }
  .home-hero p { max-width: 390px; font-size: 14px; }
  .home-tool-strip { grid-template-columns: 1fr; margin: 0 14px; }
  .home-tool-strip > button { border-right: 0; border-bottom: 1px solid #e1e4df; }
  .quick-band, .score-band, .tune-band { margin-top: 52px; padding: 58px 18px 70px; }
  .quick-heading h2, .score-heading h2, .tune-heading h2 { font-size: 36px; }
  .quick-console, .score-console, .tune-console { padding: 18px; }
  .quick-status-row, .score-status-row, .tune-status-row { grid-template-columns: 10px 1fr; }
  .quick-status-row small, .score-status-row small, .tune-status-row small { grid-column: 2; }
  .quick-actions, .score-actions, .tune-actions { grid-template-columns: 1fr; }
  .quick-history, .score-history, .tune-visual, .tune-history { min-height: 280px; }
  .tune-visual figcaption { align-items: flex-start; flex-direction: column; gap: 4px; }
  .tune-output-list { max-height: 230px; }
  .quality-band { padding: 58px 18px 70px; }
  .quality-heading h2 { font-size: 36px; }
  .quality-console { padding: 18px; }
  .quality-status-row { grid-template-columns: 10px 1fr; }
  .quality-status-row small { grid-column: 2; }
  .quality-settings, .quality-actions { grid-template-columns: 1fr; }
  .quality-visual, .quality-history { min-height: 280px; }
  .quality-visual figcaption { align-items: flex-start; flex-direction: column; gap: 4px; }
  .quality-output-list { max-height: 230px; }
  .home-footer { padding: 24px 0; }
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: relative; top: 0; height: auto; padding-bottom: 20px; }
  .quick-workflow-grid { grid-template-columns: 1fr; }
}
