/* "Kökləyici və dəm" (/tools/kok, owner 2026-11-12, task 5). Builds on proto.css, home.css and akkordlar.css (keys). */
.kk { max-width: 600px; padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.kk .lbl { margin: 16px 0 6px; }
.kk-lead { margin-top: 4px; color: var(--ink-2); font-size: 0.95rem; }
.kk-tabs { display: flex; gap: 4px; margin-top: 14px; padding: 4px; border-radius: 14px; background: var(--paper-2); }
.kk-tabs button { flex: 1; min-height: 42px; border: 0; border-radius: 11px; background: none; color: var(--muted); font: inherit; font-weight: 900; font-size: 0.92rem; cursor: pointer; }
.kk-tabs button[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); }
.kk-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.kk-chips button { min-height: 38px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--card); color: var(--ink); font: inherit; font-weight: 800; font-size: 0.84rem; cursor: pointer; }
.kk-chips button[aria-pressed="true"] { background: var(--ink-bg); border-color: var(--ink-bg); color: #fff; }

/* tuner */
.kk-strings { display: grid; grid-template-columns: repeat(var(--n, 6), 1fr); gap: 5px; margin-top: 10px; }
.kk-strings button { display: grid; place-items: center; min-height: 50px; padding: 4px 2px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font: inherit; font-weight: 900; font-size: 1rem; line-height: 1.05; cursor: pointer; }
.kk-strings button small { font-size: 0.62rem; font-weight: 800; color: var(--muted); }
.kk-strings button.on { border: 2px solid var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.kk-strings button.ok { border-color: var(--ok); color: var(--ok); }
.kk-strings button.ok.on { background: color-mix(in srgb, var(--ok) 12%, var(--card)); }
.kk-strings .kk-auto { grid-column: 1 / -1; min-height: 34px; padding: 4px 8px; font-size: 0.78rem; font-weight: 800; color: var(--accent-ink); }
.kk-strings .kk-auto[aria-pressed="true"] { background: var(--teal-soft); border-color: var(--teal); color: var(--teal); }
.kk-start { margin-top: 10px; text-align: center; }
.kk-mic { display: grid; place-items: center; width: 132px; height: 132px; margin: 36px auto 0; border: 0; border-radius: 50%; background: var(--accent); color: #fff; cursor: pointer;
  box-shadow: 0 0 0 12px color-mix(in srgb, var(--accent) 16%, transparent), 0 0 0 24px color-mix(in srgb, var(--accent) 7%, transparent); }
.kk-mic svg { width: 52px; height: 52px; }
.kk-micl { display: grid; gap: 3px; margin-top: 24px; }
.kk-micl b { font-size: 1.05rem; }
.kk-micl small { font-size: 0.78rem; font-weight: 700; color: var(--muted); }
.kk-live { margin-top: 6px; text-align: center; }
.kk-gauge { display: block; width: 100%; max-width: 360px; max-height: 150px; margin: 0 auto; }
.kk-gauge #needle { transform-origin: 170px 150px; transition: transform 0.12s linear; }
.kk-gauge.idle #needle { opacity: 0.25; }
.kk-note { margin-top: 2px; font-size: 3.2rem; font-weight: 900; line-height: 1; min-height: 1em; }
.kk-note small { margin-left: 4px; font-size: 1rem; font-weight: 800; color: var(--muted); }
.kk-hz { min-height: 1.3em; margin: 4px 0 0; font-size: 0.82rem; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.kk-stat { display: inline-block; min-height: 1.3em; margin: 10px 0 0; padding: 7px 14px; border-radius: 99px; font-weight: 900; font-size: 0.9rem; background: var(--paper-2); color: var(--muted); }
.kk-stat.ok { background: color-mix(in srgb, var(--ok) 14%, var(--card)); color: var(--ok); }
.kk-stat.off { background: color-mix(in srgb, var(--gold) 25%, var(--card)); color: var(--ink); }
.kk-hist { margin-top: 12px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); text-align: left; }
.kk-hist small { font-size: 0.62rem; font-weight: 900; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.kk-hist canvas { display: block; width: 100%; height: 60px; }
.kk-link { display: block; margin: 8px auto 0; padding: 6px 0; border: 0; background: none; color: var(--accent-ink); font: inherit; font-weight: 900; font-size: 0.86rem; cursor: pointer; }
.kk-err { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--bad) 10%, var(--card)); color: var(--bad); font-weight: 700; font-size: 0.86rem; }
.kk-ref { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding: 6px 6px 6px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); font-size: 0.86rem; font-weight: 800; }
.kk-ref span:last-child { display: flex; gap: 6px; }
.kk-ref button { width: 36px; height: 36px; border: 0; border-radius: 9px; background: var(--paper-2); color: var(--ink); font: inherit; font-weight: 900; font-size: 1.1rem; cursor: pointer; }
.kk-hint { margin-top: 8px; font-size: 0.78rem; font-weight: 700; color: var(--muted); }

/* drone */
.kk-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; margin-top: 12px; padding: 12px 14px; border-color: var(--teal); background: var(--teal-soft); color: var(--teal); font: inherit; font-weight: 800; text-align: left; cursor: pointer; box-shadow: none; }
.kk-bar b { flex: none; }
.kk-tonics { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; }
.kk-tonics button { min-height: 40px; padding: 4px 2px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); font: inherit; font-weight: 900; font-size: 0.84rem; cursor: pointer; }
.kk-tonics button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.kk-mood { margin-top: 8px; padding: 8px 11px; border-left: 3px solid var(--gold); border-radius: 0 10px 10px 0; background: var(--card); font-size: 0.8rem; font-weight: 700; color: var(--ink-2); line-height: 1.4; }
.kk-kbd { margin-top: 10px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.kk-kbd .kbd { max-height: 110px; }
.kk-layers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.kk-layers button { min-height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); font: inherit; font-weight: 800; font-size: 0.84rem; cursor: pointer; }
.kk-layers button[aria-pressed="true"] { border-color: var(--teal); background: var(--teal-soft); color: var(--teal); }
.kk-layers button[aria-pressed="true"]::before { content: "✓ "; }
.kk-vol { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 0.82rem; font-weight: 800; color: var(--muted); }
.kk-vol input { flex: 1; accent-color: var(--teal); }
.kk-vol b { min-width: 3ch; text-align: right; color: var(--ink); }
.kk .kk-play { width: 100%; min-height: 54px; margin-top: 14px; font-size: 1rem; }
.kk .kk-play.on { background: var(--ink-bg); border-color: var(--ink-bg); }

/* playing */
.kk-top { display: flex; align-items: center; gap: 12px; }
.kk-top b { font-size: 1.1rem; }
.kk .icon-btn { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); cursor: pointer; }
.kk-dark { margin-top: 12px; padding: 18px 16px 14px; border-radius: 20px; background: var(--ink-bg); color: #fff; text-align: center; }
.kk-ring { display: grid; place-items: center; width: 150px; height: 150px; margin: 8px auto 0; border: 3px solid rgba(255, 255, 255, 0.18); border-radius: 50%; animation: kk-breathe 4s ease-in-out infinite; }
@keyframes kk-breathe { 0%, 100% { box-shadow: 0 0 0 10px rgba(226, 118, 58, 0.16), 0 0 0 22px rgba(226, 118, 58, 0.06); } 50% { box-shadow: 0 0 0 16px rgba(226, 118, 58, 0.22), 0 0 0 32px rgba(226, 118, 58, 0.08); } }
@media (prefers-reduced-motion: reduce) { .kk-ring { animation: none; box-shadow: 0 0 0 12px rgba(226, 118, 58, 0.18); } }
.kk-ring b { display: block; font-size: 2.6rem; line-height: 1; }
.kk-ring small { display: block; margin-top: 4px; font-size: 0.8rem; font-weight: 800; opacity: 0.75; }
.kk-time { margin: 14px 0 0; font-size: 0.8rem; font-weight: 800; opacity: 0.85; font-variant-numeric: tabular-nums; }
.kk-sw { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); cursor: pointer; }
.kk-sw > span { display: grid; }
.kk-sw b { font-size: 0.9rem; }
.kk-sw small { font-size: 0.74rem; font-weight: 700; color: var(--muted); }
.kk-tg { appearance: none; -webkit-appearance: none; width: 44px; height: 26px; flex: none; margin: 0; border-radius: 99px; background: var(--line); position: relative; cursor: pointer; transition: background 0.15s; }
.kk-tg::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left 0.15s; }
.kk-tg:checked { background: var(--teal); }
.kk-tg:checked::after { left: 21px; }
.kk-ladder { list-style: none; display: grid; gap: 3px; margin: 10px 0 0; padding: 0; }
.kk-ladder li { display: grid; grid-template-columns: 56px 1fr 92px; align-items: center; gap: 8px; min-height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); font-size: 0.86rem; font-weight: 800; }
.kk-ladder li small { font-size: 0.72rem; font-weight: 800; color: var(--muted); text-align: right; white-space: nowrap; }
.kk-ladder li.t { border-color: var(--accent); color: var(--accent-ink); }
.kk-ladder li i { position: relative; height: 6px; border-radius: 3px; background: var(--paper-2); }
.kk-ladder li i::before { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--line); }
.kk-ladder li i b { display: none; position: absolute; top: -4px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #fff; }
.kk-ladder li.me { background: var(--teal); border-color: var(--teal); color: #fff; }
.kk-ladder li.me small { color: #fff; opacity: 0.9; }
.kk-ladder li.me i { background: rgba(255, 255, 255, 0.3); }
.kk-ladder li.me i b { display: block; }
.kk-ladder li.me.out { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.kk-ladder li.me.out small { color: var(--ink); }
.kk-hp { margin-top: 10px; padding: 9px 11px; border-radius: 12px; background: var(--teal-soft); color: var(--teal); font-size: 0.8rem; font-weight: 800; line-height: 1.4; }
.kk .kk-stop { width: 100%; min-height: 52px; margin-top: 10px; }

@media (min-width: 900px) {
  .kk { max-width: 720px; padding-bottom: 48px; }
}
