/* Fretwork free tools: shared styles for the interactive guitar tools and printables. */
.fwt-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.fwt-field { display: flex; flex-direction: column; gap: 4px; font-size: .9rem; min-width: 120px; flex: 1 1 140px; }
.fwt-field select, .fwt-field textarea, .fwt-strings select {
  font: inherit; padding: 9px 10px; border: 1px solid var(--line, #CBD2CB); border-radius: 8px;
  background: var(--bg, #fff); color: var(--ink, #19201C); width: 100%; box-sizing: border-box;
}
.fwt-field textarea { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92rem; line-height: 1.5; resize: vertical; }
.fwt-chk { display: inline-flex; gap: 8px; align-items: center; font-size: .92rem; }
.fwt-arrow { font-size: 1.3rem; opacity: .6; }
.fwt-strings { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.fwt-str { display: flex; flex-direction: column; gap: 4px; font-size: .8rem; }
.fwt-str span { opacity: .75; }
.fwt-grid2 { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: start; }
@media (min-width: 760px) { .fwt-grid2 { grid-template-columns: 1fr 1fr; } }
.fwt-result { display: flex; flex-direction: column; gap: 8px; min-height: 120px; }
.fwt-chord { font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif; font-weight: 800; font-size: clamp(2.2rem, 7vw, 3.4rem); line-height: 1.05; color: var(--accent, #17715A); }
.fwt-hint { margin: 0; opacity: .8; }
.fwt-good { color: var(--accent, #17715A); font-weight: 600; }
.fwt-bad { color: #B3432B; font-weight: 600; }
.fwt-notes { margin: 0; font-size: .98rem; }
.fwt-diagram-wrap, .fwt-board-wrap { width: 100%; }
.fwt-svg { width: 100%; height: auto; display: block; color: var(--ink, #19201C); }
.fwt-svg .fwt-string { stroke: currentColor; opacity: .75; stroke-width: 1.2; }
.fwt-svg .fwt-fret { stroke: currentColor; opacity: .45; stroke-width: 1.2; }
.fwt-svg .fwt-nut { stroke: currentColor; stroke-width: 5; }
.fwt-svg .fwt-inlay { fill: currentColor; opacity: .12; }
.fwt-svg .fwt-num { fill: currentColor; font-size: 13px; opacity: .7; font-family: inherit; }
.fwt-svg .fwt-sheet-h { fill: currentColor; font-size: 18px; font-weight: 700; font-family: inherit; }
.fwt-svg .fwt-open { fill: none; stroke: currentColor; stroke-width: 2; }
.fwt-svg .fwt-dot { stroke: none; }
.fwt-svg .fwt-dot-root { fill: var(--accent, #17715A); }
.fwt-svg .fwt-dot-note { fill: color-mix(in srgb, var(--accent, #17715A) 40%, transparent); }
.fwt-svg .fwt-dot-target { fill: #E08A1E; }
.fwt-svg .fwt-dot-label { fill: #fff; font-size: 11px; font-weight: 700; font-family: inherit; }
.fwt-toggles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 620px) { .fwt-toggles { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.fwt-toggle {
  font: inherit; font-weight: 600; font-size: .85rem; padding: 10px 6px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--line, #CBD2CB); background: var(--bg, #fff); color: var(--ink, #19201C);
}
.fwt-toggle[aria-pressed="true"] { background: var(--accent, #17715A); color: #fff; border-color: transparent; }
.fwt-toggle:disabled { opacity: .45; cursor: default; }
.fwt-results { display: flex; flex-wrap: wrap; gap: 8px; }
.fwt-out {
  white-space: pre-wrap; margin: 0; padding: 16px; border-radius: 12px; overflow-x: auto;
  background: color-mix(in srgb, var(--accent, #17715A) 7%, var(--bg, #fff));
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .95rem; line-height: 1.6;
  min-height: 3em;
}
.fwt-sheet { background: #fff; color: #111; padding: 12px; border-radius: 12px; border: 1px solid var(--line, #CBD2CB); }
.fwt-sheet .fwt-svg { color: #111; }
.fwt-sheet .fwt-fret { opacity: .35; }
.fwt-sheet .fwt-string { opacity: .85; }
.fwt-sheet .fwt-num { fill: #111; opacity: .75; }
.fwt-sheet .fwt-sheet-h { fill: #111; }
.fwt-sheet .fwt-board { margin-bottom: 14px; }
.fwt-sheet .fwt-inlay { fill: #111; opacity: .18; }

@media print {
  body * { visibility: hidden !important; }
  #fwt-sheet, #fwt-sheet * { visibility: visible !important; }
  #fwt-sheet { position: absolute; left: 0; top: 0; width: 100%; border: 0; padding: 0; background: #fff; }
  .fwt-noprint { display: none !important; }
}
