body.sheet-page { background: #0a080f; color: #f7f4fb; }
.sheet-tool-header { min-height: 60px; padding: 0 max(24px, calc((100vw - 1230px) / 2)); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #2c223b; background: #0c0912; }
.sheet-tool-header a { color: #eee5f7; text-decoration: none; font-size: 12px; letter-spacing: .08em; }
.sheet-tool-header a:first-child { color: #d5b5ff; font-weight: 750; letter-spacing: .14em; }
.sheet-tool-header a:last-child { color: #c8bdcf; letter-spacing: 0; }
.sheet-main { width: min(100% - 48px, 1230px); margin: 0 auto; padding: 30px 0 88px; }
.sheet-main .breadcrumbs { margin-bottom: 22px; }
.sheet-main .breadcrumbs a { color: #b9a2d3; }
.sheet-hero { width: min(100%, 900px); padding: 10px 0 28px; }
.sheet-hero .eyebrow { color: #c39cff; }
.sheet-hero h1 { font-size: clamp(46px, 7vw, 92px); line-height: .99; letter-spacing: -4.8px; margin: 18px 0 20px; }
.sheet-hero h1 em { color: #b583ff; font-style: normal; }
.sheet-deck { font-size: clamp(20px, 2.6vw, 30px); line-height: 1.25; color: #d4c9e4; margin: 0 0 13px; }
.sheet-copy { max-width: 710px; color: #a69ab3; font-size: 14px; line-height: 1.75; margin: 0; }
.transcriber { width: min(100%, 1200px); border: 1px solid #392a48; border-radius: 18px; padding: 13px; background: #100c17; box-shadow: 0 15px 55px #0005; }
.upload-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 38%); gap: 10px; }
.drop-zone { display: flex; align-items: center; gap: 13px; min-width: 0; min-height: 66px; border: 1px dashed #715a88; border-radius: 12px; padding: 10px 16px; color: #f7f4fb; background: #100d18; text-align: left; cursor: pointer; }
.drop-zone.dragging { border-color: #c7a0ff; background: #21162e; }
.upload-icon { width: 26px; height: 26px; border: 1px solid #8b72a1; border-radius: 50%; display: grid; place-items: center; flex: none; color: #d3b5ff; font-size: 17px; }
.drop-label { display: grid; gap: 4px; min-width: 0; flex: 1; }
.drop-label strong { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drop-label small { color: #a99db8; font: 11px/1.3 ui-monospace, monospace; }
.browse-link { color: #d1b1ff; font-size: 12px; white-space: nowrap; }
.engrave-button { display: flex; justify-content: center; align-items: center; gap: 9px; border: 0; border-radius: 12px; padding: 14px 18px; color: #1b111e; background: #ffb51c; font: 700 17px/1.2 'Space Grotesk', sans-serif; cursor: pointer; }
.engrave-button:hover:not(:disabled) { background: #ffc84e; }
.engrave-button:disabled { color: #7c7162; background: #6f4e19; cursor: not-allowed; }
.engrave-cost { font: 12px ui-monospace, monospace; font-weight: 400; }
.upload-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 12px 7px 17px; color: #aa9fb4; font: 11px/1.5 ui-monospace, monospace; }
.audio-preview { width: 100%; height: 40px; margin: 0 0 15px; accent-color: #b583ff; }
.mode-panel { margin: 0; border: 1px solid #34263e; border-radius: 12px; padding: 14px 16px 15px; }
.mode-panel legend { padding: 0; color: #f0eafa; font-size: 13px; font-weight: 650; }
.mode-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding-top: 11px; }
.mode-card { display: grid; position: relative; gap: 5px; min-height: 68px; padding: 12px 13px; border: 1px solid #392d48; border-radius: 11px; color: #e7dfef; background: #110e18; cursor: pointer; }
.mode-card:hover { border-color: #765b96; }
.mode-card.selected { border-color: #b583ff; background: #1b1424; box-shadow: inset 0 0 0 1px #b583ff22; }
.mode-card input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.mode-card input:focus-visible + .mode-badge { outline: 2px solid #fff; outline-offset: 3px; }
.mode-card:has(input:focus-visible) { outline: 2px solid #d5b2ff; outline-offset: 3px; }
.mode-card strong { font-size: 14px; }
.mode-card small { color: #a79cb3; font-size: 11px; }
.mode-badge { position: absolute; top: -9px; right: 11px; border-radius: 8px; padding: 3px 8px; color: #150d1e; font: 700 8px ui-monospace, monospace; letter-spacing: .4px; }
.badge-violet { background: #bd8bff; }
.badge-amber { background: #ffbc22; }
.mode-note { margin: 12px 0 0; border: 1px solid #5a4317; border-radius: 9px; padding: 10px 12px; color: #f2ca72; background: #1c160a; font-size: 12px; line-height: 1.55; }
.mode-note::before { content: '●'; color: #ffc237; margin-right: 8px; }
.tool-status { margin: 10px 4px 2px; min-height: 0; color: #d2c3df; font-size: 12px; line-height: 1.5; }
.tool-status:empty { display: none; }
.tool-status[data-tone="error"] { color: #ff9b95; }
.processing { padding: 18px 8px 8px; color: #dfd1ed; font-size: 12px; }
.processing-top { display: flex; justify-content: space-between; margin-bottom: 8px; }
.processing progress { width: 100%; height: 8px; accent-color: #b583ff; }
.processing p { color: #a69ab3; }
.sheet-features { width: min(100%, 1200px); margin: 52px 0 0; }
.features-lead { color: #e8e0f0; font-size: 19px; margin-bottom: 17px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; border-top: 1px solid #33273d; padding-top: 18px; }
.feature-grid article { padding: 3px 15px 4px 0; }
.feature-grid h2 { margin: 0 0 9px; color: #d5b5ff; font-size: 15px; }
.feature-grid p { margin: 0; color: #a69ab3; font-size: 12px; line-height: 1.75; }
.score-result { margin-top: 35px; border: 1px solid #42354f; border-radius: 15px; overflow: hidden; background: #f9f7f2; color: #25212a; }
.score-heading-row { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding: 23px 26px 12px; }
.score-heading-row .eyebrow { color: #76529d; }
.score-heading-row h2 { margin: 6px 0 4px; font-size: 24px; }
.score-heading-row p { margin: 0; color: #625b68; font-size: 12px; }
.text-button { border: 1px solid #c9c1cf; border-radius: 6px; padding: 9px 12px; color: #49404f; background: #fff; cursor: pointer; }
.score-player { display: flex; align-items: center; gap: 12px; padding: 12px 26px; border-block: 1px solid #e5e0e8; background: #fff; color: #4d4654; font: 11px ui-monospace, monospace; }
.score-player > button { width: 34px; height: 34px; flex: none; border: 0; border-radius: 50%; color: #fff; background: #67418a; cursor: pointer; }
.score-player input[type="range"] { min-width: 70px; flex: 1; accent-color: #77509e; }
.tempo-label { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.tempo-label input { width: 52px; border: 1px solid #ded9e2; border-radius: 4px; padding: 5px; color: #332b3a; background: #fff; }
.score-downloads { display: flex; flex-wrap: wrap; gap: 8px; padding: 13px 26px 0; background: #fff; }
.score-downloads button { border: 1px solid #ded7e3; border-radius: 5px; padding: 8px 11px; color: #493953; background: #fff; font-size: 11px; cursor: pointer; }
.score-downloads button:hover { border-color: #77509e; background: #f6f0fb; }
.score-sheet { padding: 16px 18px 28px; min-height: 180px; overflow-x: auto; background: #fff; }
.score-sheet-inner { width: 100%; }
.score-sheet svg { max-width: 100%; }
.score-scroll-hint { display: none; margin: 0; padding: 4px 10px 0; color: #706978; background: #fff; font-size: 10px; }
.score-disclaimer { margin: 0; padding: 0 26px 18px; color: #726b77; background: #fff; font-size: 11px; line-height: 1.6; }
.play-cursor { background: #e9dbf7; }
.sheet-credits { margin-top: 21px; border-top: 1px solid #33273d; padding-top: 15px; color: #c8bdcf; font-size: 12px; }
.sheet-credits summary { width: fit-content; color: #d5b5ff; cursor: pointer; }
.sheet-credits p { max-width: 700px; color: #a69ab3; line-height: 1.7; }
.sheet-credits a { color: #c6a0f2; text-underline-offset: 3px; }
.sheet-credits > div { display: flex; flex-wrap: wrap; gap: 12px 20px; }
@media (max-width: 760px) {
  .sheet-tool-header { min-height: 54px; padding-inline: 16px; }
  .sheet-main { width: min(100% - 32px, 1230px); padding-top: 22px; }
  .sheet-hero h1 { font-size: clamp(42px, 12vw, 70px); letter-spacing: -2.8px; }
  .sheet-deck { font-size: 21px; }
  .upload-row { grid-template-columns: 1fr; }
  .engrave-button { min-height: 54px; }
  .mode-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 15px; }
  .mode-card { min-height: 66px; }
  .feature-grid { grid-template-columns: 1fr; gap: 16px; }
  .feature-grid article { border-bottom: 1px solid #33273d; padding-bottom: 14px; }
  .score-heading-row { padding: 18px 15px 11px; }
  .score-player { gap: 7px; padding: 10px 12px; }
  .score-player > button { width: 32px; height: 32px; }
  .tempo-label { gap: 3px; font-size: 9px; }
  .tempo-label input { width: 43px; padding: 4px; }
  .score-downloads { padding-inline: 12px; gap: 6px; }
  .score-downloads button { padding: 8px 8px; font-size: 10px; }
  .score-sheet { padding: 12px 8px 22px; }
  .score-scroll-hint { display: block; }
  .score-disclaimer { padding-inline: 14px; }
}
@media (max-width: 390px) {
  .sheet-main { width: min(100% - 24px, 1230px); }
  .drop-zone { padding-inline: 10px; }
  .browse-link { font-size: 11px; }
  .score-player { gap: 5px; }
  .play-time, #play-duration { font-size: 9px; }
  .tempo-label span { display: none; }
}
@media print {
  body.sheet-page { background: #fff; color: #111; }
  .sheet-tool-header, .sheet-main > :not(.score-result), .score-heading-row .text-button, .score-player, .score-downloads, .score-disclaimer, .page-footer { display: none !important; }
  .score-result { display: block !important; margin: 0; border: 0; border-radius: 0; }
  .score-heading-row { padding: 0 0 10px; }
  .score-sheet { padding: 0; overflow: visible; }
  .score-sheet-inner { min-width: 0 !important; width: 100% !important; }
}
