/* Existing Bluefoot palette and typography; the working surface leads each tool. */
.suite-panel{padding:28px;border-radius:28px;background:var(--plate);box-shadow:inset 0 1px #ffffff12}.suite-panel label,.suite-field{display:flex;flex-direction:column;gap:7px;font-size:13px;color:var(--mist)}.suite-panel select,.suite-panel input:not([type=checkbox]),.suite-field select{width:100%;min-height:48px;border:1px solid var(--line);border-radius:12px;padding:9px 12px;background:#0b0d0e;color:var(--felt);font-size:16px}.suite-panel select option{background:#0b0d0e}.suite-controls{display:flex;align-items:end;gap:14px;flex-wrap:wrap}.suite-controls>label{min-width:110px;flex:1}.suite-controls .secondary{white-space:nowrap}.suite-feedback{font-size:13px;color:var(--foot);min-height:22px;margin-top:12px;overflow-wrap:anywhere}.suite-help{max-width:760px}.suite-help h2{margin:26px 0 12px}.suite-help p+ p{margin-top:12px}.suite-related{display:flex;flex-wrap:wrap;gap:12px 24px;margin:24px 0;font-size:14px;color:var(--mist)}.suite-related a{min-height:44px;display:inline-flex;align-items:center}.suite-panel button:disabled{opacity:.38}.suite-tabs{display:flex;gap:6px;margin-bottom:22px;flex-wrap:wrap}.suite-tabs button{border:1px solid var(--line);border-radius:999px;padding:10px 20px;min-height:44px;background:none;color:var(--mist)}.suite-tabs button[aria-pressed=true]{background:var(--felt);color:#040404;border-color:var(--felt)}.suite-panel button:focus-visible,.suite-panel input:focus-visible,.suite-panel select:focus-visible{outline:2px solid var(--foot);outline-offset:3px}.tool-symbol{display:grid;place-items:center;min-height:180px;border-radius:18px;background:#0b0d0e;font-size:52px;font-weight:200;color:var(--foot)}.sr-announcement{min-height:22px;font-size:13px;color:var(--mist)}
/* Delay: a legible working table, with direct copy targets. */
.delay-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:32px}.delay-input .bpm-label{color:var(--mist);font-size:13px}.delay-input input#delay-bpm{font-size:64px;font-weight:200;line-height:1.1;border:0;background:none;padding:0;width:100%;border-radius:0;font-variant-numeric:tabular-nums}.delay-input .suite-controls{margin-top:18px;gap:8px}.delay-input .suite-controls button{flex:1;padding:0 12px}.delay-units{font-size:13px;color:var(--mist);margin:16px 0}.delay-table{border-collapse:collapse;width:100%;font-variant-numeric:tabular-nums}.delay-table th{text-align:right;font-size:12px;color:var(--mist);font-weight:400;padding:10px 0;border-bottom:1px solid var(--line)}.delay-table th:first-child{text-align:left}.delay-table td{border-bottom:1px solid var(--line);padding:3px 0;text-align:right}.delay-table td:first-child{text-align:left;white-space:nowrap;font-size:15px}.delay-table button{border:0;background:none;color:var(--felt);padding:10px 5px;min-height:48px;min-width:60px;font-size:17px;border-radius:8px}.delay-table button:hover{background:#ffffff08}.delay-table small{display:block;font-size:11px;color:var(--mist);line-height:1.2}.delay-presets{margin-top:28px;border-top:1px solid var(--line);padding-top:22px}.delay-presets h2{font-size:20px!important;margin-bottom:14px}.preset-row{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px}.preset{padding:14px;border:1px solid var(--line);border-radius:12px}.preset h3{font:500 14px var(--sans);margin-bottom:8px}.preset p{font-size:12px}.preset b{font-weight:500;color:var(--felt)}
/* Staff: paper remains white and proportional; controls are outside the print surface. */
.staff-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:28px;align-items:start}.staff-settings{display:grid;gap:16px}.staff-settings .primary{font-size:16px;width:100%;min-height:50px}.staff-settings .secondary{width:100%}.paper-stage{background:#202326;border-radius:18px;padding:24px;overflow:hidden}.paper-stage svg{display:block;width:100%;height:auto;background:white;color:#111;box-shadow:0 8px 28px #0006}.paper-caption{font-size:12px;margin-top:12px;text-align:center}.staff-settings .check-row{flex-direction:row;align-items:center;min-height:44px}.check-row input{width:20px;height:20px;accent-color:var(--foot)}
/* Chords: two octaves, with separate accessible white and black keys. */
.chord-settings{display:grid;grid-template-columns:1fr 1.6fr 1fr;gap:14px}.chord-result{display:flex;align-items:baseline;flex-wrap:wrap;gap:16px;margin:24px 0 16px}.chord-result h2{font-size:clamp(40px,6vw,64px)!important;line-height:1.2;letter-spacing:-.025em}.chord-result p{font-size:18px;color:var(--foot)}.chord-detail{font-size:13px;min-height:22px}.piano{position:relative;display:flex;width:100%;height:200px;margin:24px 0 20px;isolation:isolate}.piano .key{position:relative;border:1px solid #111;border-top:0;border-radius:0 0 7px 7px;padding:0;display:flex;align-items:end;justify-content:center;padding-bottom:12px;font-size:12px;cursor:pointer;touch-action:manipulation;user-select:none;-webkit-user-select:none}.piano .white-key{flex:1;background:#f1f2f0;color:#53575a;box-shadow:inset 0 -5px #d5d8d7;min-width:0}.piano .black-key{position:absolute;z-index:2;top:0;height:62%;width:4.3%;background:linear-gradient(#111,#2c3032);color:#c8d0d2;box-shadow:inset 0 -5px #030303}.piano .white-key.selected{background:#a4e7ef;color:#052c34;box-shadow:inset 0 -5px #64b9c7}.piano .black-key.selected{background:#14798e;color:white;box-shadow:inset 0 -5px #0c4d60}.piano .key.root:after{content:'';position:absolute;width:7px;height:7px;border-radius:50%;background:#08768e;bottom:40px}.piano .black-key.root:after{background:#e7fcff}.chord-actions{display:flex;flex-wrap:wrap;gap:10px}.chord-actions .primary{min-height:48px;font-size:16px}.chord-matches{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}.chord-matches button{background:none;border:1px solid var(--line);color:var(--felt);padding:10px 16px;border-radius:12px;min-height:44px;font-size:17px}.chord-matches button[aria-pressed=true]{border-color:var(--foot);color:var(--foot)}[hidden]{display:none!important}
@media(max-width:900px){.delay-layout{grid-template-columns:190px minmax(0,1fr);gap:24px}.staff-layout{grid-template-columns:220px minmax(0,1fr);gap:18px}.piano{height:180px}}
@media(max-width:760px){.suite-panel{padding:20px 16px;border-radius:22px}.suite-panel .suite-controls>label{min-width:100px}.delay-layout{display:block}.delay-input{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 20px;align-items:center}.delay-input>label{grid-row:span 2}.delay-input input#delay-bpm{font-size:58px}.delay-input .suite-controls{margin:0}.delay-input .suite-controls .secondary{min-height:44px;font-size:13px}.delay-units{margin:0;font-size:12px}.delay-table{margin-top:22px}.delay-table th{font-size:11px}.delay-table button{font-size:16px;min-width:54px;padding:8px 3px}.delay-table td:first-child{font-size:14px}.preset-row{grid-template-columns:1fr}.preset{display:flex;align-items:center;justify-content:space-between;gap:14px}.preset h3{margin:0}.preset p{text-align:right}.staff-layout{display:flex;flex-direction:column;gap:20px}.staff-settings{width:100%;grid-template-columns:1fr 1fr;gap:12px}.staff-settings .staff-title{grid-column:1/-1}.staff-settings .check-row{grid-column:1/-1}.paper-stage{width:100%;padding:14px}.paper-caption{margin-top:10px}.chord-settings{grid-template-columns:1fr 1.4fr;gap:12px}.chord-settings label:last-child{grid-column:1/-1}.chord-result{margin-top:20px;gap:8px 16px}.chord-result p{font-size:16px}.piano{height:158px;margin-top:20px}.piano .key{font-size:10px;padding-bottom:10px}.piano .black-key{font-size:8px;width:4.8%}.suite-tabs button{flex:1;padding:10px 12px}.suite-related{gap:8px 20px}.chord-actions .primary{flex:1}.chord-actions .secondary{padding:0 14px}}
@media print{html,body{background:white!important;margin:0!important;padding:0!important;color:black!important}body>*:not(main),main>*:not(.staff-layout),.staff-settings,.paper-caption{display:none!important}.tools-page main.wrap{padding:0!important;margin:0!important;max-width:none!important;width:auto!important}.staff-layout{display:block!important;margin:0!important;padding:0!important}.paper-stage{display:block!important;background:white!important;border-radius:0!important;padding:0!important;margin:0!important;overflow:visible!important}.paper-stage svg{width:var(--paper-width)!important;height:var(--paper-height)!important;max-width:none!important;box-shadow:none!important;break-inside:avoid;display:block!important}.staff-layout{break-after:avoid} }
@media(prefers-reduced-motion:reduce){.suite-panel *{transition:none!important}}
.piano-scroll{overflow-x:auto;overscroll-behavior-x:contain;margin:20px 0 8px;padding-bottom:4px;scrollbar-color:#60676b #202426}.piano-scroll .piano{min-width:660px;margin:0;height:190px}.keyboard-range{font-size:12px;color:var(--mist);margin-bottom:18px}.chord-match{padding:10px 14px;border:1px solid var(--line);border-radius:12px;font-size:14px}.chord-result h2{overflow-wrap:anywhere}.chord-settings~.chord-result h2{max-width:100%}@media(max-width:760px){.piano-scroll .piano{height:160px}.chord-result h2{font-size:36px!important}.chord-result p{overflow-wrap:anywhere}.piano .black-key{width:4.3%;font-size:10px}.piano .key{font-size:12px}}
.chord-actions button{white-space:nowrap}.staff-settings #staff-print{padding:0 12px;white-space:nowrap;font-size:14px}.chord-actions #chord-play{padding:0 18px}@media(max-width:760px){.chord-actions #chord-play{min-width:110px}.staff-settings #staff-download{padding:0 12px;font-size:14px}}
@media(min-width:361px) and (max-width:760px){.chord-settings{grid-template-columns:68px minmax(0,1fr) 88px}.chord-settings label:last-child{grid-column:auto}.chord-settings select{padding-left:8px;padding-right:8px}.suite-tabs{margin-bottom:16px}}
