.hk-delay{--delay-accent:#57c4c0;padding:clamp(18px,3vw,30px);border:1px solid #43545d;border-radius:14px;background:#10161a;color:#eef4f5;box-shadow:0 12px 30px #0002}
.hk-delay .delay-top{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:22px}.hk-delay .delay-top h2{margin:0;font-size:1.1rem}.hk-delay .delay-top>span,.hk-delay .delay-hint{color:#b9c9cf;font-size:.82rem}
.hk-delay .delay-workspace{display:grid;grid-template-columns:minmax(240px,1fr) minmax(260px,1.1fr);gap:28px}.hk-delay label,.hk-delay legend{display:block;margin:0 0 7px;font-size:.9rem;font-weight:600}.hk-delay select{width:100%;margin:0 0 16px;min-height:44px;background:#192329;color:#eef4f5;border:1px solid #617680;padding:9px 12px;border-radius:7px}.hk-delay .delay-tempo{display:flex;gap:8px;align-items:stretch}.hk-delay .delay-tempo button{min-width:44px;min-height:46px;background:#233138;color:#eef4f5;border:1px solid #617680;border-radius:7px;font-size:1.3rem}.hk-delay .delay-tempo input{width:100%;min-width:0;background:#172127;border:1px solid #617680;color:#eef4f5;border-radius:7px;font-size:1.4rem;font-variant-numeric:tabular-nums;text-align:center;padding:8px}.hk-delay .delay-tempo input[aria-invalid=true]{border-color:#f2b26e}.hk-delay #delay-bpm-help{margin:5px 0 16px}.hk-delay .delay-feel{border:0;padding:0;margin:0}.hk-delay .delay-feel>div{display:flex;gap:6px}.hk-delay .delay-feel label{position:relative;flex:1;margin:0;cursor:pointer}.hk-delay .delay-feel input{position:absolute;width:1px;height:1px;opacity:0}.hk-delay .delay-feel span{display:block;border:1px solid #617680;border-radius:7px;text-align:center;padding:11px 6px;color:#eef4f5;font-size:.84rem}.hk-delay .delay-feel input:checked+span{background:#57c4c0;color:#10161a;border-color:#57c4c0}.hk-delay .delay-feel input:focus-visible+span{outline:2px solid white;outline-offset:3px}
.hk-delay .delay-result{background:#182328;border:1px solid #435b64;border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px 16px;text-align:center;min-width:0}.hk-delay #delay-selected{color:#c2d1d5;font-size:.95rem;margin:0 0 14px}.hk-delay #delay-ms{font:600 clamp(2rem,4vw,3.3rem)/1.2 'IBM Plex Sans',sans-serif;font-variant-numeric:tabular-nums;color:#72d8d3;white-space:nowrap;user-select:text}.hk-delay #delay-hz{color:#d5e4e8;font-variant-numeric:tabular-nums;margin:10px 0 22px}.hk-delay #delay-copy{background:#57c4c0;color:#10161a;border:1px solid #57c4c0;min-height:44px;padding:10px 18px}.hk-delay #delay-copy:hover{background:#87ddd9;color:#10161a}.hk-delay #delay-equivalent{margin:14px 0 0;color:#b9c9cf;font-size:.82rem;max-width:36ch}.hk-delay .delay-result .delay-hint{margin:8px 0 0}.hk-delay .delay-feedback{min-height:1.4em;margin:14px 0 8px;color:#f3cb98;font-size:.9rem}.hk-delay button:disabled{opacity:.45;cursor:not-allowed}
.hk-delay .delay-reference{border-top:1px solid #43545d;padding-top:12px}.hk-delay summary{cursor:pointer;font-weight:600;color:#edf4f6;padding:8px 0}.hk-delay summary span{display:block;font-size:.8rem;font-weight:400;color:#b9c9cf;margin:4px 0 0 18px}.hk-delay .delay-table-scroll{overflow-x:auto}.hk-delay table{width:100%;border-collapse:collapse;margin:12px 0 0}.hk-delay caption{text-align:left;font-size:.82rem;color:#b9c9cf;padding:8px 0}.hk-delay th,.hk-delay td{border-bottom:1px solid #354952;padding:5px;text-align:center;font-size:.85rem}.hk-delay th:first-child{text-align:left}.hk-delay th small{display:block;color:#b9c9cf;font-size:.74rem;font-weight:400}.hk-delay td button{width:100%;padding:10px 6px;min-height:44px;background:transparent;border:1px solid transparent;border-radius:5px;color:#eef4f5;font-variant-numeric:tabular-nums;font-size:.85rem;white-space:nowrap}.hk-delay td button:hover{background:#28434b;color:white}.hk-delay td button[aria-pressed=true]{border-color:#57c4c0;background:#213c40;color:#8de0dc}.hk-delay :is(button,input,select):focus-visible{outline:2px solid #bce9e7;outline-offset:3px}
.delay-notes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:24px 0}.delay-notes h3{font-size:1rem;margin:0 0 8px}.delay-notes p{font-size:.92rem;margin:0;line-height:1.65}.delay-formula summary{cursor:pointer;font-weight:600;padding:10px 0}.delay-formula p{max-width:76ch}
@media(max-width:640px){.hk-delay .delay-workspace{grid-template-columns:1fr;gap:20px}.hk-delay .delay-result{padding:22px 12px}.hk-delay .delay-top{gap:5px;margin-bottom:18px}.hk-delay #delay-ms{font-size:2.5rem}.delay-notes{grid-template-columns:1fr;gap:16px}.hk-delay th,.hk-delay td{font-size:.75rem;padding:4px 1px}.hk-delay td button{font-size:.78rem;padding:10px 3px}.hk-delay .delay-top>span{font-size:.76rem}}

.hk-delay .delay-starts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 20px}.hk-delay .delay-starts button,.hk-delay #delay-copy-hz{min-height:44px;padding:10px 8px;border:1px solid #617680;border-radius:7px;background:#233138;color:#eef4f5;font:inherit;font-size:.82rem}.hk-delay .delay-starts button[aria-pressed=true]{border-color:#57c4c0;background:#213c40;color:#8de0dc}.hk-delay .delay-copy-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}.hk-delay .delay-metro{font-size:.85rem;margin-top:16px;color:#82dcd7}.hk-delay .delay-metro[hidden]{display:none}.hk-delay #delay-metro-help{max-width:39ch}.hk-delay .delay-field{min-width:0}
@media(max-width:640px){.hk-delay .delay-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}.hk-delay .delay-tempo-field,.hk-delay .delay-feel{grid-column:1/-1}.hk-delay .delay-field label{min-height:2.5em}.hk-delay .delay-field select{padding:9px 6px;font-size:.8rem}.hk-delay .delay-starts{gap:5px;margin-bottom:16px}.hk-delay .delay-starts button{font-size:.73rem;padding:8px 5px}.hk-delay .delay-result{padding:18px 10px}.hk-delay #delay-ms{font-size:2.15rem}}

/* Match each numeric heading to the centre of its selectable values. */
.hk-delay .delay-table td button{text-align:center}
