/* 7. İleri akorlar ve teknikler (önek: i7-) */
.i7-pane { display: flex; flex-direction: column; gap: 12px; }
.i7-pane[hidden], .i7-pick[hidden], .i7-kwrap[hidden], .i7-barre .btn[hidden] { display: none; }

/* --- barre: tel durumları --- */
.i7-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 12px 18px; align-items: center; }
.i7-strs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.i7-sc {
  display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 2px 7px;
  border-top: 3px solid var(--line-2); font-size: .78rem; line-height: 1.25; text-align: center;
  transition: border-color .2s, background .2s;
}
.i7-sc b { font-weight: 650; color: var(--muted); font-size: .72rem; }
.i7-sn { font-family: var(--f-mono); font-weight: 600; color: var(--ink); font-size: .82rem; min-height: 1.2em; }
.i7-st { font-weight: 650; white-space: nowrap; }
.i7-sc.st-ok { border-top-color: var(--f2); } .i7-sc.st-ok .i7-st { color: var(--f2); }
.i7-sc.st-buzz { border-top-color: var(--root); } .i7-sc.st-buzz .i7-st { color: var(--root-ink); }
.i7-sc.st-dead { border-top-color: var(--seventh); } .i7-sc.st-dead .i7-st { color: var(--seventh); }
.i7-sc.st-x { opacity: .55; } .i7-sc.st-x .i7-st { color: var(--muted); }
.i7-sc.now { background: var(--surface); border-radius: 0 0 8px 8px; }
.i7-need { margin: 0; font-size: .88rem; color: var(--ink-2); }
.i7-need b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* yan kesit */
.i7-xs { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.i7-xs-svg { width: 100%; max-width: 340px; height: auto; display: block; overflow: visible; }
.i7-xs-board { fill: var(--wood); }
.i7-xs-wire { fill: var(--nickel); stroke: rgba(0, 0, 0, .25); stroke-width: .6; }
.i7-xs-str { fill: none; stroke: var(--ink-2); stroke-width: 2.2; stroke-linejoin: round; transition: all .25s; }
.i7-xs-fing { fill: var(--f1); opacity: .9; transition: cx .25s, cy .25s; }
.i7-xs-buzz { fill: none; stroke: var(--root); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.i7-xs[data-st="buzz"] .i7-xs-buzz { animation: i7Buzz .18s steps(2) infinite; }
@keyframes i7Buzz { 50% { transform: translateY(1.5px); } }
.i7-xs[data-st="dead"] .i7-xs-str { stroke: var(--seventh); stroke-dasharray: 5 3; }
.i7-xs[data-st="ok"] .i7-xs-str { stroke: var(--f2); }
.i7-xs-lab { font: 600 10px var(--f-body); fill: var(--muted); }
.i7-xs-cap { margin: 0; font-size: .82rem; color: var(--ink-2); line-height: 1.4; }

/* klavyede durum halkaları */
.fb .mk.i7-buzz .mk-disc, .fb .mk.i7-buzz .mk-sq { stroke: var(--root); stroke-width: 3; stroke-dasharray: 3 2; }
.fb .mk.i7-dead .mk-disc, .fb .mk.i7-dead .mk-sq { stroke: var(--seventh); stroke-width: 3; }
.fb .mk.i7-dead .mk-in { opacity: .6; }

/* şekli kaydır */
.i7-rootinfo { margin: 0; font-size: .9rem; color: var(--ink-2); }
.i7-rootinfo b { color: var(--root-ink); }
.i7-chips { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; }
.i7-chip {
  font-family: var(--f-mono); font-weight: 600; font-size: .76rem; letter-spacing: -.04em;
  border: 0; border-bottom: 3px solid var(--line); background: transparent; color: var(--ink-2);
  padding: 6px 0 5px; cursor: pointer; transition: border-color .15s, color .15s, background .15s;
}
.i7-chip:hover { color: var(--ink); border-bottom-color: var(--accent); }
.i7-chip.on { color: var(--wood); border-bottom-color: var(--root); background: var(--surface); border-radius: 6px 6px 0 0; }

/* --- power akor: spektrum --- */
.i7-spec { position: relative; height: 138px; flex: none; border-top: 1px solid var(--line); padding-top: 4px; }
.i7-spec-cv { width: 100%; height: 100%; display: block; }
.i7-spec-cap { margin: 0; font-size: .86rem; color: var(--ink-2); }
.i7-spec-cap b { color: var(--ink); }
.i7-spec-cap b.i7-bad { color: var(--seventh); }
.i7-spec-cap b.i7-good { color: var(--f2); }
.i7-leg-ok { color: var(--f2); font-weight: 700; }
.i7-leg-bad { color: var(--seventh); font-weight: 700; }

/* --- kapo --- */
.i7-prog { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.i7-pbox {
  display: grid; grid-template-columns: auto 1fr; grid-template-areas: "rn rn" "sh re"; gap: 0 10px; align-items: end;
  text-align: left; border: 0; border-left: 4px solid var(--line-2); border-radius: 4px 14px 14px 4px;
  background: var(--surface); color: var(--ink); padding: 6px 10px 8px; cursor: pointer; min-width: 0;
  transition: background .15s, border-color .15s;
}
.i7-rn { grid-area: rn; font-family: var(--f-display); font-weight: 700; color: var(--muted); font-size: .84rem; }
.i7-shape, .i7-real { display: flex; flex-direction: column; min-width: 0; }
.i7-shape { grid-area: sh; }
.i7-real { grid-area: re; align-items: flex-end; }
.i7-pbox small { font-size: .68rem; font-weight: 650; color: var(--muted); line-height: 1.2; }
.i7-shape .chord { font-size: 1.35rem; font-weight: 700; letter-spacing: -.05em; line-height: 1.1; }
.i7-real .chord { font-size: 1rem; color: var(--accent); line-height: 1.2; }
.i7-bar { font-style: normal; font-size: .64rem; font-weight: 700; color: var(--seventh); }
.i7-pbox.on { background: var(--wood); color: var(--bone); border-left-color: var(--root); }
.i7-pbox.on .i7-rn { color: var(--root); }
.i7-pbox.on small { color: rgba(239, 231, 214, .7); }
.i7-pbox.on .i7-real .chord { color: var(--root); }

.i7-calc { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.i7-h { font-size: 1.15rem; margin: 0; }
.i7-keyrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.i7-target { margin: 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: .9rem; color: var(--ink-2); }
.i7-target .chord { font-size: 1.3rem; color: var(--ink); }
.i7-target small { color: var(--muted); }
.i7-sugg { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 6px 8px; }
.i7-opt {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "h b" "c b"; align-items: center; gap: 0 10px;
  padding: 5px 8px 6px 12px; border-radius: 4px 14px 14px 4px; border-left: 4px solid var(--line-2); background: var(--surface-2);
}
.i7-opt.best { border-left-color: var(--f2); }
.i7-opt-h { grid-area: h; font-size: .86rem; color: var(--ink-2); }
.i7-opt-h b { color: var(--ink); }
.i7-star { margin-left: 8px; font-size: .72rem; font-weight: 700; color: var(--f2); }
.i7-opt-c { grid-area: c; display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; }
.i7-opt-c .chord { font-size: .9rem; }
.i7-opt-c .chord.i7-hard { color: var(--seventh); }
.i7-opt-n { font-size: .74rem; color: var(--muted); }
.i7-opt .btn { grid-area: b; padding: .32em .9em; font-size: .82rem; }

/* --- sol el teknikleri --- */
.i7-lh { display: flex; flex-direction: column; gap: 12px; }
.i7-desc { margin: 0; font-size: .9rem; color: var(--ink-2); min-height: 2.9em; max-width: 62ch; }
.i7-tab .fb { height: 150px !important; }
.i7-lh .mk { transition-duration: .3s; }
.i7-tablegend b { font-weight: 700; color: var(--ink); }
.i7-bstr { fill: none; stroke: var(--nickel-hi); stroke-linecap: round; filter: drop-shadow(0 1.5px 1px rgba(0,0,0,.45)); }
.i7-bstr.wound { stroke: #cfc0a0; }
.i7-bdot { stroke: rgba(20, 10, 8, .45); stroke-width: 1; }
.i7-bdot.f1 { fill: var(--f1); } .i7-bdot.f2 { fill: var(--f2); } .i7-bdot.f3 { fill: var(--f3); } .i7-bdot.f4 { fill: var(--f4); }
.i7-bnum { font: 700 12px var(--f-body); fill: #fff; text-anchor: middle; dominant-baseline: central; pointer-events: none; }

/* --- farklı akortlar --- */
.i7-tun { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.i7-ts {
  display: flex; flex-direction: column; align-items: center; gap: 0; padding: 5px 2px 6px; text-align: center;
  border-top: 3px solid var(--line-2); line-height: 1.25; transition: background .2s, border-color .2s;
}
.i7-ts small { font-size: .7rem; font-weight: 650; color: var(--muted); }
.i7-ts b { font-family: var(--f-mono); font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.i7-ts span { font-size: .7rem; color: var(--muted); }
.i7-ts.ch { border-top-color: var(--accent); }
.i7-ts.ch b, .i7-ts.ch span { color: var(--accent); font-weight: 700; }
.i7-ts.now { background: var(--surface); border-radius: 0 0 8px 8px; }
.i7-plab { font-family: var(--f-body); font-size: .85rem; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.i7-pats { display: flex; flex-wrap: wrap; gap: 6px; }
.i7-pat {
  display: inline-flex; align-items: baseline; gap: 6px; border: 1px solid var(--line-2); background: var(--surface-2);
  border-radius: 999px; padding: .36em .95em; cursor: pointer; color: var(--ink);
}
.i7-pat small { font-size: .74rem; color: var(--muted); font-weight: 600; }
.i7-pat:hover { border-color: var(--accent); }
.i7-pat.on { background: var(--wood); color: var(--bone); border-color: var(--wood); }
.i7-pat.on small { color: rgba(239, 231, 214, .75); }
.i7-khint { font-size: .82rem; color: var(--muted); }
.fb .mk.open.i7-chg .mk-disc, .fb .mk.open.i7-chg .mk-sq { stroke: var(--accent); stroke-width: 3.2; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fb .mk.open.i7-chg .mk-disc { stroke: var(--accent); } }

@media (max-width: 860px) {
  .i7-row { grid-template-columns: 1fr; }
  .i7-chips { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .i7-prog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .i7-sc { font-size: .7rem; }
  .i7-st { white-space: normal; }
  .i7-spec { height: 112px; }
}
@media (prefers-reduced-motion: reduce) {
  .i7-xs[data-st="buzz"] .i7-xs-buzz { animation: none; }
}
