@import url("/lib/tools/textkit/kit.css?v=1");
/* Morse code translator */
.mc-boxes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.mc-box { min-width: 0; }
.mc-bh { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.mc-bh .lbl { margin: 0; }
.mc-bh .tk-copy { min-height: 32px; padding: 4px 10px; }
.mc-box .tk-area { min-height: 150px; }
.mc-code { letter-spacing: .08em; font-size: 18px; }
.mc-wrap { position: relative; }
.mc-blur { color: transparent !important; text-shadow: 0 0 12px rgba(233, 233, 239, .55); }
.mc-hidden { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.mc-grow { flex: 1 1 auto; }
.mc-ps { align-self: flex-end; min-height: 38px; }
.mc-playrow { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.mc-playbtn { min-width: 120px; font-size: 16px; min-height: 48px; }
.mc-playbtn.on { background: var(--accent-2); color: #fff; }
.mc-now { display: flex; align-items: baseline; gap: 12px; min-height: 48px; }
.mc-now b { font-size: 36px; line-height: 1; color: var(--accent); min-width: 1ch; }
.mc-now span { font-size: 26px; letter-spacing: .12em; color: var(--text); }
.mc-outs { margin-top: 12px; gap: 8px 18px; }
.mc-sliders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; margin-top: 14px; }
.mc-sliders .tk-range > span:first-child { min-width: 68px; }
.mc-key { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 150px; border-radius: 16px; border: 2px dashed #3a4150; background: var(--panel-2);
  color: var(--muted); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: none; -webkit-touch-callout: none; }
.mc-key:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.mc-key.down { background: var(--accent); color: #10130a; border-color: var(--accent); }
.mc-meter { flex: 1 1 160px; max-width: 320px; height: 10px; border-radius: 5px; background: var(--panel-2); border: 1px solid var(--border); overflow: hidden; }
.mc-meter i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .08s linear; }
#micBtn.on { background: var(--accent-2); color: #fff; }
.drop.over { border-color: var(--accent); }
.mc-dopts { margin-top: 12px; }
.mc-sens { min-width: 220px; align-self: flex-end; }
.mc-decout { margin-top: 14px; min-height: 64px; padding: 12px 14px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--border); font-size: 24px; line-height: 1.4; letter-spacing: .04em; overflow-wrap: anywhere; white-space: pre-wrap; }
.mc-decout .low { color: var(--muted); text-decoration: underline dotted; text-underline-offset: 4px; }
.mc-decout .pend { color: var(--accent); font-size: 18px; margin-left: 4px; letter-spacing: .1em; }
.mc-heard { margin-top: 6px; color: var(--muted); font-size: 13px; letter-spacing: .08em; overflow-wrap: anywhere; min-height: 18px; }
.mc-dacts { margin-top: 10px; }
.mc-ch { font-size: 13px; color: var(--muted); margin: 14px 0 6px; font-weight: 600; }
.mc-ch:first-child { margin-top: 0; }
.mc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 4px; }
.mc-cell { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; min-height: 38px; border-radius: 8px; border: 1px solid transparent; background: var(--panel-2); color: var(--text); font: inherit; cursor: pointer; text-align: left; }
.mc-cell:hover, .mc-cell:focus-visible { border-color: var(--accent-dim); outline: none; }
.mc-cell b { font-size: 16px; }
.mc-cell span { letter-spacing: .1em; color: var(--accent); font-size: 15px; }
.mc-flash { position: fixed; inset: 0; z-index: 1000; background: #000; cursor: pointer; }
.mc-flash.on { background: #fff; }
.mc-flash:focus { outline: none; }
@media (max-width: 700px) { .mc-boxes, .mc-sliders { grid-template-columns: minmax(0, 1fr); } .mc-box .tk-area { min-height: 110px; } }
