/* Yazdırma sayfası (eski song-print görünümü). Tema stilleri de yüklüdür; burada sayfaya özgü olanlar ezilir. */
:root { --print-page-width: 210mm; --print-page-height: 297mm; --print-font-size: 14px; --print-mono: "Cousine", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; }
html, body.ch-print-body { margin: 0; padding: 0; min-height: 100%; }
body.ch-print-body { background: #efefef; color: #202124; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
body.print-paper-letter { --print-page-width: 215.9mm; --print-page-height: 279.4mm; }
.ch-print-body [hidden] { display: none !important; }
.print-workspace { display: grid; grid-template-columns: minmax(0, var(--print-page-width)) 245px; align-items: start; justify-content: center; gap: 28px; padding: 22px; }
.print-preview { display: flex; flex-direction: column; gap: 22px; width: var(--print-page-width); min-width: 0; }
.print-page { position: relative; flex: 0 0 auto; width: var(--print-page-width); height: var(--print-page-height); padding: 14mm 15mm; overflow: hidden; background: #fff; box-shadow: 0 2px 16px rgba(0, 0, 0, .13); }
.print-page-inner { display: flex; flex-direction: column; width: 100%; height: 100%; min-height: 0; }
.print-page-number { position: absolute; right: 15mm; bottom: 6mm; color: #aaa; font-size: 9px; line-height: 1; }
.print-source { position: absolute; top: 0; left: -100000px; width: calc(var(--print-page-width) - 30mm); visibility: hidden; pointer-events: none; }
.print-document-header { display: flex; flex: 0 0 auto; align-items: flex-start; justify-content: space-between; gap: 25px; padding-bottom: 14px; border-bottom: 1px solid #ccc; }
.print-document-header h1 { margin: 0; color: #202124; font-size: 25px; font-weight: 600; line-height: 1.25; }
.print-artist { margin-top: 4px; color: #555; font-size: 16px; font-weight: 500; }
.print-logo { display: block; flex: 0 0 auto; width: 80px; height: auto; opacity: .55; }
.print-meta { display: flex; flex: 0 0 auto; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: 12px; color: #555; font-size: 12px; }
.print-meta span { color: #888; }
.print-meta strong { color: #333; font-weight: 600; }
.print-section { flex: 0 0 auto; margin-top: 10px; }
.print-chords .ch-grid { display: flex; flex-wrap: wrap; gap: 8px 4px; margin: 0; padding: 0; list-style: none; }
.print-chords .ch-card { display: flex; flex-direction: column; align-items: center; width: 72px; padding: 0; color: #111; }
.print-chords .ch-card-name { font-size: 11px; line-height: 16px; }
.print-chords .ch-card-svg { width: 72px; max-width: 72px; }
.print-chords .ch-card-svg .ch-piano { margin-top: 12px; }
.ch-pk-white { fill: #fff; stroke: currentColor; }
.ch-pk-black { fill: currentColor; stroke: currentColor; }
.ch-pk.is-active { fill: #ffbf00; }
.ch-pk.is-root { fill: #e0a800; }
.ch-tech.is-print .ch-tech-list { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.ch-tech.is-print .ch-tech-card { width: 250px; }
.ch-tech-head { display: flex; gap: 8px; padding-bottom: 4px; border-bottom: 1px solid #ddd; font-size: 12px; }
.ch-tech-title span { color: #888; }
.song-technique-svg { display: block; width: 100%; height: auto; color: #20252b; }
.song-technique-svg .line { stroke: currentColor; fill: none; stroke-width: 1.1; }
.song-technique-svg .arrow, .song-technique-svg .stem { stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; }
.song-technique-svg .tie { stroke: currentColor; fill: none; stroke-width: 1.2; }
.song-technique-svg .beam { stroke: currentColor; fill: none; stroke-width: 4.2; }
.song-technique-svg .secondary-beam { stroke-width: 3.6; }
.song-technique-svg .fill, .song-technique-svg .dot, .song-technique-svg .flag { fill: currentColor; stroke: none; }
.song-technique-svg .open { fill: #fff; stroke: currentColor; }
.song-technique-svg .muted-mark, .song-technique-svg .ghost-note { stroke: currentColor; fill: none; stroke-width: 1.15; }
.song-technique-svg text { fill: currentColor; }
.song-technique-step-bg { opacity: 0; }
.print-song { margin: 0; padding: 0; font-family: var(--print-mono); font-size: var(--print-font-size); line-height: 1.42; white-space: pre; }
.print-song-area { display: grid; flex: 1 1 auto; grid-template-columns: minmax(0, 1fr); gap: 14mm; width: 100%; min-height: 0; margin-top: 24px; overflow: hidden; color: #111; }
.print-song-area.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.print-song-column { min-width: 0; min-height: 0; height: 100%; padding-bottom: 10px; overflow: hidden; color: #111; font-family: var(--print-mono); font-size: var(--print-font-size); line-height: 1.42; }
.song-layout-block { display: block; margin: 0; padding: 0; break-inside: avoid; }
.song-layout-line { display: block; width: max-content; min-height: 1.42em; white-space: pre; }
.song-layout-measure { position: absolute !important; top: 0; left: -100000px; visibility: hidden !important; font-family: var(--print-mono); font-size: var(--print-font-size); line-height: 1.42; }
.print-song-column .c, .print-song .c { font-weight: 700; color: #111; background: none; }
.print-song-column .sec { display: inline-block; padding: 0 6px; font-style: italic; font-weight: 600; background: #eee; }
.print-song-column .tl { color: #444; }
.print-sidebar { position: sticky; top: 22px; width: 245px; font-family: var(--font); }
.print-back { display: block; margin-bottom: 10px; color: #555; font-size: 14px; }
.print-back:hover { color: #000; }
.print-settings { overflow: hidden; border: 1px solid #d7d7d7; background: #fff; }
.print-setting-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 44px; padding: 8px 13px; border-bottom: 1px solid #eee; color: #333; font-size: 14px; }
.print-setting-row:last-child { border-bottom: 0; }
.print-setting-row select { max-width: 115px; height: 30px; padding: 0 5px; border: 1px solid #d8d8d8; background: #fff; color: #333; }
.print-stepper { display: flex; align-items: center; gap: 2px; }
.print-stepper button { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 0; background: none; color: #222; font-size: 20px; font-weight: 600; }
.print-stepper button:hover { background: #f2f2f2; }
.print-stepper strong { min-width: 38px; color: #555; font-size: 12px; text-align: center; }
.print-switch { position: relative; display: block; flex: 0 0 36px; width: 36px; height: 20px; }
.print-switch input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.print-switch-ui { position: absolute; inset: 0; border-radius: 20px; background: #ddd; transition: background .18s; }
.print-switch-ui::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); transition: transform .18s; }
.print-switch input:checked + .print-switch-ui { background: #35c765; }
.print-switch input:checked + .print-switch-ui::after { transform: translateX(16px); }
.print-switch input:focus-visible + .print-switch-ui { outline: 2px solid #ffbf00; outline-offset: 2px; }
.print-action { display: block; width: 100%; margin-top: 8px; padding: 10px 15px; border: 1px solid #aaa; background: #fff; color: #181818; font-size: 14px; font-weight: 700; }
.print-primary { border-color: #ffbf00; background: #ffbf00; }
.print-action:hover { filter: brightness(.97); }
.print-action:disabled { opacity: .55; cursor: wait; }
@media (max-width: 1150px) {
	.print-workspace { display: flex; flex-direction: column-reverse; align-items: center; }
	.print-sidebar { position: relative; top: auto; width: min(100%, 600px); }
}
@media (max-width: 850px) { .print-workspace { align-items: flex-start; padding: 12px; overflow-x: auto; } }
@media print {
	@page { size: A4 portrait; margin: 0; }
	html, body.ch-print-body { background: #fff; }
	.print-workspace { display: block; padding: 0; }
	.print-preview { display: block; width: auto; }
	.print-page { margin: 0; box-shadow: none; break-after: page; }
	.print-page:last-child { break-after: auto; }
	.print-sidebar, .print-source { display: none !important; }
}