.hk-timefreq{--tf-accent:#57c4c0;border:1px solid #43545d;border-radius:14px;padding:clamp(18px,3vw,30px);color:#eef4f5;background:#10161a;box-shadow:0 12px 30px #0002}
.hk-timefreq .tf-top{display:flex;align-items:baseline;justify-content:space-between;gap:10px;flex-wrap:wrap}.hk-timefreq .tf-top h2{margin:0;font-size:1.1rem}.hk-timefreq .tf-top>span{font-size:.8rem;color:#b9c9cf}.hk-timefreq .tf-instruction{margin:12px 0 22px;font-size:.95rem;color:#d6e2e6;max-width:none}
.hk-timefreq .tf-conversion{display:grid;grid-template-columns:minmax(0,1fr) 24px minmax(0,1fr);gap:16px;align-items:center}.hk-timefreq .tf-card{min-width:0;background:#182328;border:1px solid #536a74;border-radius:10px;padding:20px}.hk-timefreq .tf-card.is-source{border-color:#57c4c0}.hk-timefreq .tf-card label{display:flex;justify-content:space-between;gap:10px;font-size:1rem;font-weight:600;margin:0 0 12px}.hk-timefreq .tf-card label span{color:#9cddda;font-weight:400}.hk-timefreq .tf-card input{width:100%;min-width:0;font-size:clamp(1.35rem,2.7vw,2rem);font-variant-numeric:tabular-nums;font-weight:600;border:1px solid #617680;border-radius:7px;padding:12px;background:#10191e;color:#80dcd7;min-height:56px}.hk-timefreq .tf-card input[aria-invalid=true]{border-color:#e5aa6c}.hk-timefreq .tf-card p{margin:10px 0 18px;font-size:.85rem;line-height:1.5;color:#c1d0d6;min-height:2.6em}.hk-timefreq .tf-card button{min-height:44px;min-width:110px;border:1px solid #718a94;border-radius:7px;background:#233138;color:#eef4f5;padding:9px 16px}.hk-timefreq .tf-card button:hover{background:#2e494e;color:#fff}.hk-timefreq .tf-reciprocal{text-align:center;color:#9dd3d1;font-size:1.5rem}.hk-timefreq .tf-equivalence{margin:20px 0 0;font-size:.95rem;color:#d8e8eb;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.hk-timefreq .tf-feedback{min-height:1.5em;font-size:.88rem;color:#f3cb98;margin:8px 0 14px}.hk-timefreq .tf-examples{display:flex;align-items:center;flex-wrap:wrap;gap:8px;border-top:1px solid #43545d;padding-top:16px}.hk-timefreq .tf-examples>span{font-size:.85rem;color:#bfccd2;margin-right:4px}.hk-timefreq .tf-examples button{min-height:44px;border-radius:7px;border:1px solid #617680;background:transparent;color:#eef4f5;padding:8px 12px;font-size:.82rem}.hk-timefreq .tf-examples button:hover{background:#28434b;color:white}.hk-timefreq .tf-small{font-size:.8rem;color:#b9c9cf;margin:14px 0 18px}.hk-timefreq .tf-reference{border-top:1px solid #43545d;padding-top:12px}.hk-timefreq summary,.tf-formula summary{cursor:pointer;font-weight:600;padding:8px 0}.hk-timefreq summary span{display:block;color:#b9c9cf;font-size:.8rem;font-weight:400;margin:4px 0 0 18px}.hk-timefreq table{width:100%;border-collapse:collapse;margin-top:14px}.hk-timefreq caption{font-size:.85rem;text-align:left;padding:8px 0;color:#c1d0d6}.hk-timefreq td,.hk-timefreq th{text-align:right;padding:9px 12px;border-bottom:1px solid #43545d;font-variant-numeric:tabular-nums;font-size:.9rem}.hk-timefreq td:first-child,.hk-timefreq th:first-child{text-align:left}.hk-timefreq button:disabled{opacity:.45;cursor:not-allowed}.hk-timefreq :is(input,button):focus-visible{outline:2px solid #bce9e7;outline-offset:3px}.tf-explanation{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin:24px 0}.tf-explanation h3{font-size:1rem;margin:0 0 8px}.tf-explanation p{font-size:.92rem;line-height:1.65;margin:0}.tf-formula p{max-width:76ch}
@media(max-width:600px){.hk-timefreq .tf-conversion{grid-template-columns:1fr;gap:8px}.hk-timefreq .tf-card{padding:16px}.hk-timefreq .tf-card p{min-height:0;margin:8px 0 12px}.hk-timefreq .tf-card input{font-size:1.6rem}.hk-timefreq .tf-reciprocal{line-height:1;transform:rotate(90deg);font-size:1.25rem}.hk-timefreq .tf-top>span{font-size:.76rem}.hk-timefreq .tf-instruction{margin-bottom:16px}.tf-explanation{grid-template-columns:1fr;gap:18px}}

.hk-timefreq .tf-examples button[aria-pressed=true]{border-color:#57c4c0;background:#213c40;color:#8de0dc}.hk-timefreq .tf-next{margin-top:16px;padding:14px 0;border-top:1px solid #43545d}.hk-timefreq .tf-next[hidden]{display:none}.hk-timefreq .tf-next>div{display:flex;flex-wrap:wrap;gap:8px 20px}.hk-timefreq .tf-next a{display:inline-flex;align-items:center;min-height:44px;color:#82dcd7;font-size:.85rem}.hk-timefreq .tf-next .tf-small{margin:4px 0 0}.hk-timefreq a:focus-visible{outline:2px solid #bce9e7;outline-offset:3px}
@media(max-width:600px){.hk-timefreq .tf-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 10px;padding:14px}.hk-timefreq .tf-card label{grid-column:1/-1;margin:0}.hk-timefreq .tf-card input{font-size:1.25rem;padding:10px 8px;min-height:48px}.hk-timefreq .tf-card button{min-width:0;padding:9px 10px;font-size:.8rem;grid-column:2;grid-row:2}.hk-timefreq .tf-card p{grid-column:1/-1;grid-row:3;margin:0;font-size:.78rem}.hk-timefreq .tf-next>div{gap:0 14px}}
