/* Akkordla ifa (/learn/akkordla), owner 2026-11-11 task 9. Builds on proto.css + home.css; colours from the theme. */
.ak { max-width: 860px; padding-top: 12px; padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.ak .crumb, .ak-back { display: block; width: fit-content; margin-bottom: 10px; padding: 0; border: 0; background: none; font: inherit; font-size: 0.85rem; font-weight: 700; color: var(--muted); text-decoration: none; cursor: pointer; }
.ak h1 { font-size: 1.6rem; margin-top: 4px; }
.ak .lead { margin-top: 4px; color: var(--ink-2); }
.ak-search { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 0 12px; min-height: 46px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); }
.ak-search:focus-within { border-color: var(--ink); }
.ak-search span { color: var(--muted); }
.ak-search input { flex: 1; min-width: 0; border: 0; background: none; color: var(--ink); font: inherit; font-weight: 700; outline: none; }
.ak-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ak-chips .chip { min-height: 38px; padding: 6px 13px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); font: inherit; font-weight: 800; font-size: 0.86rem; cursor: pointer; }
.ak-chips .chip.on { background: var(--ink-bg); border-color: var(--ink-bg); color: #fff; }
.ak-count { margin: 10px 0 0; font-size: 0.82rem; font-weight: 800; color: var(--muted); }
.ak-free { margin: 8px 0 0; padding: 9px 12px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); font-size: 0.84rem; font-weight: 800; }
.ak-list { list-style: none; display: grid; gap: 8px; margin: 10px 0 0; padding: 0; }
@media (min-width: 700px) { .ak-list { grid-template-columns: 1fr 1fr; } }
.ak-item { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); text-decoration: none; }
.ak-item:hover { border-color: var(--accent); }
.ak-item.locked { opacity: 0.6; }
.ak-tx { flex: 1; min-width: 0; display: grid; }
.ak-tx b { font-size: 0.92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ak-tx small { font-size: 0.74rem; font-weight: 700; color: var(--muted); }
.ak-chs { display: flex; gap: 4px; flex: none; }
.ak-chs i { padding: 3px 7px; border-radius: 7px; background: var(--paper-2); font-style: normal; font-weight: 900; font-size: 0.74rem; }
/* sheet */
.ak-top { display: flex; align-items: center; gap: 10px; }
.ak .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; }
.ak-name { flex: 1; min-width: 0; display: grid; }
.ak-name b { font-size: 1.05rem; }
.ak-name span { color: var(--muted); font-weight: 800; font-size: 0.82rem; }
.ak-lbl { margin: 14px 0 6px; font-size: 0.68rem; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.ak-pats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
@media (min-width: 700px) { .ak-pats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ak-pat { display: grid; gap: 2px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.ak-pat b { font-size: 0.84rem; } .ak-pat small { font-size: 0.7rem; font-weight: 700; color: var(--muted); }
.ak-pat.on { border: 2px solid var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--card)); }
.ak-opts { display: flex; flex-wrap: wrap; gap: 0 14px; }
.ak-tempo { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-weight: 900; }
.ak-tempo button { width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 1.2rem; font-weight: 900; cursor: pointer; }
.ak-tempo[hidden] { display: none; }
.ak-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin-top: 12px; }
.ak-strip div { padding: 9px 4px; border-radius: 12px; background: var(--paper-2); color: var(--muted); text-align: center; }
.ak-strip b { display: block; font-size: 1.15rem; }
.ak-strip small { display: block; font-size: 0.62rem; font-weight: 800; }
.ak-strip div.d { background: color-mix(in srgb, var(--ok) 18%, var(--card)); color: var(--ok); }
.ak-strip div.x { background: color-mix(in srgb, var(--bad) 14%, var(--card)); color: var(--bad); }
.ak-strip div.c { background: var(--ink-bg); color: #fff; }
.ak-strip div.n { outline: 2px dashed var(--accent); outline-offset: -2px; color: var(--ink); }
.ak-paper { margin-top: 10px; padding: 2px; border: 1px solid var(--line); border-radius: 14px; background: #fffdf8; overflow: hidden; }
.ak-paper svg { display: block; }
.ak-paper .ok, .ak-paper .ok path { fill: var(--ok); }
.ak-paper .off, .ak-paper .off path { fill: var(--gold); }
.ak-paper .bad, .ak-paper .bad path { fill: var(--bad); }
.ak-paper .cur, .ak-paper .cur path { fill: var(--accent); }
.ak-hint { margin: 10px 0 0; padding: 9px 11px; border-radius: 12px; background: color-mix(in srgb, var(--gold) 20%, var(--card)); font-size: 0.84rem; font-weight: 700; line-height: 1.4; }
.ak-kbd { margin-top: 10px; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.ak-kbd .kbd { display: block; width: 100%; height: auto; max-height: 140px; }
.ak-kbd .kbd g { cursor: pointer; }
.ak-kbd .kbd .kw rect { fill: #fff; stroke: #c9c2b5; }
.ak-kbd .kbd .kb rect { fill: #1f2440; }
.ak-kbd .kbd .kw.on.lh rect { fill: color-mix(in srgb, var(--teal) 30%, #fff); } .ak-kbd .kbd .kb.on.lh rect { fill: color-mix(in srgb, var(--teal) 65%, #1f2440); }
.ak-kbd .kbd .kw.on.rh rect { fill: color-mix(in srgb, var(--accent) 35%, #fff); } .ak-kbd .kbd .kb.on.rh rect { fill: color-mix(in srgb, var(--accent) 70%, #1f2440); }
.ak-kbd .kbd .kf { fill: var(--teal); }
.ak-kbd .kbd .kft { fill: #fff; font-size: 9px; font-weight: 900; text-anchor: middle; }
.ak-kbd .kbd .ko { font-size: 8px; fill: #8b8fa3; text-anchor: middle; font-weight: 700; }
.ak-kbd .kbd .hit rect { filter: brightness(0.82); }
.ak-inrow { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 6px; font-size: 0.8rem; font-weight: 800; color: var(--teal); }
.ak-mic { width: auto; min-height: 36px; margin: 0; color: var(--accent-ink); }
#ak-go, #ak-stop { margin-top: 12px; }
#ak-listen { display: block; width: 100%; margin-top: 4px; }
/* result */
.ak-res-title { margin: 0; text-align: center; font-weight: 900; }
.ak-res-pct { margin: 4px 0 0; text-align: center; font-size: 2.4rem; font-weight: 900; }
.ak-res-sub { margin: 0; text-align: center; font-size: 0.84rem; font-weight: 800; color: var(--muted); }
.ak-per { margin-top: 12px; padding: 4px 14px; }
.ak-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 0.88rem; font-weight: 800; }
.ak-row:first-child { border-top: 0; }
.ak-row b { width: 52px; }
.ak-bar { flex: 1; height: 8px; border-radius: 9px; background: var(--paper-2); overflow: hidden; }
.ak-bar i { display: block; height: 100%; border-radius: 9px; background: var(--ok); }
.ak-bar i.late { background: var(--gold); }
.ak-row em { width: 70px; text-align: right; font-style: normal; font-size: 0.76rem; color: var(--muted); }
.ak-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.ak-btns .btn { min-width: 0; padding-left: 8px; padding-right: 8px; white-space: normal; line-height: 1.2; font-size: 0.9rem; }
.ak-send-msg { margin: 8px 0 0; font-weight: 800; font-size: 0.86rem; color: var(--ink-2); }
#ak-next { margin-top: 12px; }
