/* Chord & scale dictionary (/tools/akkordlar). Builds on proto.css + home.css; keys drawn by assets/keyboard.js. */
.akk { --c-root: #e2763a; --c-third: #3a86c8; --c-fifth: #2e9e5b; --c-seventh: #8a5cd0; --c-added: #d0458f; --c-scale: #3a86c8;
  max-width: 640px; padding-top: 12px; padding-bottom: calc(32px + env(safe-area-inset-bottom)); }
.crumb { display: block; width: fit-content; margin-bottom: 8px; font-size: 0.85rem; font-weight: 700; color: var(--muted); text-decoration: none; }
.akk h1 { font-size: 1.55rem; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 12px; padding: 4px; border-radius: 14px; background: var(--paper-2); }
.seg button { min-height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font: inherit; font-weight: 800; font-size: 0.92rem; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14); }
.seg.inv { margin-top: 0; }
.lbl { margin: 12px 0 5px; font-size: 0.7rem; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.lbl-hint { text-transform: none; letter-spacing: 0; font-weight: 700; }
.m-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.m-chip { min-height: 36px; padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink-2); font: inherit; font-weight: 800; font-size: 0.86rem; cursor: pointer; }
.m-chip[aria-pressed="true"] { background: var(--ink-bg); border-color: var(--ink-bg); color: #fff; }
.sym-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 14px; }
.sym { font-size: 2.4rem; font-weight: 900; line-height: 1; color: var(--ink); white-space: nowrap; }
.sym-sc { font-size: 1.6rem; white-space: normal; }
.sym-sc::first-letter { text-transform: uppercase; }
.desc { font-size: 0.84rem; font-weight: 700; color: var(--ink-2); text-align: right; }
.kbd-wrap { margin-top: 10px; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.kbd { display: block; width: 100%; height: auto; max-height: 190px; }
.kbd g { cursor: pointer; }
.kbd .kw rect { fill: #fff; stroke: #c9c2b5; }
.kbd .kb rect { fill: #1f2440; }
.kbd .on.r-root rect { fill: var(--c-root); } .kbd .on.r-third rect { fill: var(--c-third); } .kbd .on.r-fifth rect { fill: var(--c-fifth); }
.kbd .on.r-seventh rect { fill: var(--c-seventh); } .kbd .on.r-added rect { fill: var(--c-added); } .kbd .on.r-scale rect { fill: var(--c-scale); }
.kbd .hit rect { filter: brightness(0.82); }
.kbd .kw.hit:not(.on) rect { fill: #e9e3d6; }
.kbd .kb.hit:not(.on) rect { fill: #48507a; }
.kbd .kf { fill: #fff; }
.kbd .kft { font-size: 10px; font-weight: 900; text-anchor: middle; fill: #1f2440; }
.kbd .kl { font-size: 7.5px; font-weight: 800; text-anchor: middle; fill: #fff; }
.kbd .kl-b { font-size: 6px; }
.kbd .ko { font-size: 7px; text-anchor: middle; fill: #9a9284; }
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; margin-top: 6px; font-size: 0.74rem; font-weight: 800; color: var(--ink-2); }
.sw { display: inline-block; width: 10px; height: 10px; margin-right: 4px; border-radius: 3px; vertical-align: -1px; }
.sw.r-root { background: var(--c-root); } .sw.r-third { background: var(--c-third); } .sw.r-fifth { background: var(--c-fifth); }
.sw.r-seventh { background: var(--c-seventh); } .sw.r-added { background: var(--c-added); } .sw.r-scale { background: var(--c-scale); }
.staff { margin-top: 10px; padding: 4px 0; overflow: hidden; border: 1px solid var(--line); box-shadow: none; background: #fff; color: #1f2440; }
.staff svg { display: block; }
.fing { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-top: 10px; padding: 9px 12px; border-radius: 12px; background: var(--paper-2); font-size: 0.84rem; font-weight: 800; color: var(--ink-2); }
.fing small { flex-basis: 100%; font-size: 0.74rem; color: var(--muted); }
.steps { display: flex; justify-content: center; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.steps span { min-width: 28px; padding: 3px 6px; border-radius: 8px; background: var(--teal-soft); color: var(--teal); font-size: 0.78rem; font-weight: 900; text-align: center; }
.steps span.h { background: var(--accent-soft); color: var(--accent-ink); }
.steps span.w3 { background: var(--paper-2); color: var(--ink); }
.steps-legend { margin-top: 4px; text-align: center; font-size: 0.72rem; color: var(--muted); }
.kchords { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.kchords button { display: grid; gap: 1px; padding: 6px 0; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--muted); font: inherit; font-size: 0.7rem; font-weight: 800; cursor: pointer; min-width: 0; }
.kchords button b { font-size: 0.84rem; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kchords button.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.akk-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.akk-actions .btn { flex: 1 1 auto; min-width: 0; min-height: 48px; padding: 0 12px; font-size: 0.92rem; }
.kbd-hint { margin-top: 12px; text-align: center; font-size: 0.78rem; color: var(--muted); }
@media (min-width: 700px) { .kbd { max-height: 220px; } }
#sc-view .sym-row { display: block; }
#sc-view .desc { display: block; margin-top: 4px; text-align: left; }
.desc { min-width: 0; }
