/* ═══════════════════════════════════════════════════════════════════════════
 * pedigree-card.css — Pedigri karnesi (portal ve mobil ortak). Sayfa A4 yatay oranında; ölçüler sayfa genişliğine
 * göre (cqw) verilir, ekranda ve baskıda aynı görünür. Baskıda her yüz ayrı bir A4 yatay sayfadır.
 * Yazı tipleri: Playfair Display, Cormorant Garamond, Great Vibes (SIL OFL, lib/fonts/pedigree) ve Roboto.
 * ═══════════════════════════════════════════════════════════════════════════ */
@font-face { font-family: 'PC Playfair'; font-style: normal; font-weight: 400; font-display: swap; src: url(../lib/fonts/pedigree/playfair-display-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'PC Playfair'; font-style: normal; font-weight: 400; font-display: swap; src: url(../lib/fonts/pedigree/playfair-display-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'PC Playfair'; font-style: normal; font-weight: 700; font-display: swap; src: url(../lib/fonts/pedigree/playfair-display-latin-ext-700-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'PC Playfair'; font-style: normal; font-weight: 700; font-display: swap; src: url(../lib/fonts/pedigree/playfair-display-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'PC Cormorant'; font-style: normal; font-weight: 500; font-display: swap; src: url(../lib/fonts/pedigree/cormorant-garamond-latin-ext-500-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'PC Cormorant'; font-style: normal; font-weight: 500; font-display: swap; src: url(../lib/fonts/pedigree/cormorant-garamond-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'PC Cormorant'; font-style: normal; font-weight: 700; font-display: swap; src: url(../lib/fonts/pedigree/cormorant-garamond-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'PC Cormorant'; font-style: normal; font-weight: 700; font-display: swap; src: url(../lib/fonts/pedigree/cormorant-garamond-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'PC Vibes'; font-style: normal; font-weight: 400; font-display: swap; src: url(../lib/fonts/pedigree/great-vibes-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'PC Vibes'; font-style: normal; font-weight: 400; font-display: swap; src: url(../lib/fonts/pedigree/great-vibes-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

.pc-pages { display: flex; flex-direction: column; gap: 18px; max-width: 1180px; margin: 0 auto; }
.pc-page { width: 100%; }
.pc-caption { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #6b7280; margin: 0 0 6px 2px; }

.pc-sheet {
    --pc-display: 'PC Playfair', Georgia, 'Times New Roman', serif;
    --pc-body: 'PC Cormorant', Georgia, 'Times New Roman', serif;
    --pc-name: 'PC Playfair', Georgia, serif;
    --pc-u: 1cqw;
    position: relative; width: 100%; aspect-ratio: 297 / 210; container-type: inline-size; overflow: hidden;
    background: var(--pc-paper); color: var(--pc-ink); font-family: var(--pc-body);
    box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 8px 28px rgba(15,23,42,.12); border-radius: 2px;
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.pc-font-elegant { --pc-name: 'PC Vibes', 'Brush Script MT', cursive; }
.pc-font-modern { --pc-display: Roboto, 'Segoe UI', Arial, sans-serif; --pc-body: Roboto, 'Segoe UI', Arial, sans-serif; --pc-name: Roboto, 'Segoe UI', Arial, sans-serif; }
.pc-font-clean { --pc-body: Roboto, 'Segoe UI', Arial, sans-serif; --pc-display: 'PC Playfair', Georgia, serif; --pc-name: 'PC Playfair', Georgia, serif; }

/* Zemin desenleri */
.pc-bg { position: absolute; inset: 0; pointer-events: none; }
.pc-pat-dots .pc-bg { background-image: radial-gradient(color-mix(in srgb, var(--pc-accent) 22%, transparent) 0.09cqw, transparent 0.1cqw); background-size: 1.6cqw 1.6cqw; opacity: .7; }
.pc-pat-lines .pc-bg { background-image: repeating-linear-gradient(135deg, color-mix(in srgb, var(--pc-accent) 9%, transparent) 0 .08cqw, transparent .08cqw 1.1cqw); }
.pc-pat-waves .pc-bg, .pc-pat-guilloche .pc-bg { background-color: var(--pc-accent); opacity: .085;
    -webkit-mask-size: 7cqw 3.5cqw; mask-size: 7cqw 3.5cqw; }
.pc-pat-waves .pc-bg {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 40'%3E%3Cpath d='M0 20 Q20 4 40 20 T80 20' fill='none' stroke='%23000' stroke-width='1.2'/%3E%3Cpath d='M0 34 Q20 18 40 34 T80 34' fill='none' stroke='%23000' stroke-width='.6'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 40'%3E%3Cpath d='M0 20 Q20 4 40 20 T80 20' fill='none' stroke='%23000' stroke-width='1.2'/%3E%3Cpath d='M0 34 Q20 18 40 34 T80 34' fill='none' stroke='%23000' stroke-width='.6'/%3E%3C/svg%3E");
}
.pc-pat-guilloche .pc-bg { opacity: .11; -webkit-mask-size: 5cqw 5cqw; mask-size: 5cqw 5cqw;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%23000' stroke-width='.5'%3E%3Ccircle cx='0' cy='0' r='30'/%3E%3Ccircle cx='60' cy='0' r='30'/%3E%3Ccircle cx='0' cy='60' r='30'/%3E%3Ccircle cx='60' cy='60' r='30'/%3E%3Ccircle cx='30' cy='30' r='30'/%3E%3Ccircle cx='30' cy='30' r='21'/%3E%3Ccircle cx='0' cy='0' r='21'/%3E%3Ccircle cx='60' cy='0' r='21'/%3E%3Ccircle cx='0' cy='60' r='21'/%3E%3Ccircle cx='60' cy='60' r='21'/%3E%3C/g%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%23000' stroke-width='.5'%3E%3Ccircle cx='0' cy='0' r='30'/%3E%3Ccircle cx='60' cy='0' r='30'/%3E%3Ccircle cx='0' cy='60' r='30'/%3E%3Ccircle cx='60' cy='60' r='30'/%3E%3Ccircle cx='30' cy='30' r='30'/%3E%3Ccircle cx='30' cy='30' r='21'/%3E%3Ccircle cx='0' cy='0' r='21'/%3E%3Ccircle cx='60' cy='0' r='21'/%3E%3Ccircle cx='0' cy='60' r='21'/%3E%3Ccircle cx='60' cy='60' r='21'/%3E%3C/g%3E%3C/svg%3E");
}

/* Çerçeveler */
.pc-frame { position: absolute; inset: 0; pointer-events: none; color: var(--pc-accent); }
.pc-frame-line .pc-frame { inset: 2.6cqw; border: .1cqw solid var(--pc-ink); }
.pc-frame-double .pc-frame, .pc-frame-ornate .pc-frame { inset: 2cqw; border: .32cqw solid var(--pc-accent); }
.pc-frame-double .pc-frame::after, .pc-frame-ornate .pc-frame::after { content: ''; position: absolute; inset: .7cqw; border: .1cqw solid var(--pc-accent); }
.pc-frame-ornate .pc-frame::before { content: ''; position: absolute; inset: 1.2cqw; border: .06cqw solid color-mix(in srgb, var(--pc-accent) 55%, transparent); }
.pc-corner { position: absolute; width: 6.5cqw; height: 6.5cqw; color: var(--pc-accent); z-index: 1; }
.pc-corner svg { width: 100%; height: 100%; display: block; }
.pc-corner-tl { left: .9cqw; top: .9cqw; }
.pc-corner-tr { right: .9cqw; top: .9cqw; transform: scaleX(-1); }
.pc-corner-bl { left: .9cqw; bottom: .9cqw; transform: scaleY(-1); }
.pc-corner-br { right: .9cqw; bottom: .9cqw; transform: scale(-1, -1); }
.pc-frame-band .pc-frame { inset: 0; }
.pc-frame-band .pc-frame::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 7cqw; background: linear-gradient(180deg, var(--pc-accent2), var(--pc-accent)); }
.pc-frame-band .pc-frame::after { content: ''; position: absolute; left: 7.9cqw; top: 0; bottom: 0; width: .25cqw; background: var(--pc-accent); opacity: .5; }
.pc-frame-rounded .pc-frame { inset: 2.2cqw; border: .25cqw solid var(--pc-accent); border-radius: 2.4cqw; }
.pc-frame-rounded .pc-frame::after { content: ''; position: absolute; inset: .6cqw; border: .1cqw dashed color-mix(in srgb, var(--pc-accent) 70%, transparent); border-radius: 1.9cqw; }

/* Öğeler */
.pc-el { position: absolute; display: flex; align-items: center; font-size: calc(var(--s, 1) * 1.25cqw); line-height: 1.25; z-index: 2; color: var(--c, inherit); }
.pc-el > .pc-in { width: 100%; max-height: 100%; }
.pc-a-left { justify-content: flex-start; } .pc-a-center { justify-content: center; } .pc-a-right { justify-content: flex-end; }
.pc-lbl { opacity: .72; font-size: .82em; letter-spacing: .02em; }
.pc-sep { margin: 0 .55em; opacity: .5; }
.pc-display { font-family: var(--pc-display); }
.pc-placeholder { opacity: .45; font-style: italic; }
.pc-k-farm .pc-display { font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .95em; }
.pc-font-modern .pc-k-farm .pc-display { letter-spacing: .06em; }
.pc-k-title .pc-display { font-weight: 700; letter-spacing: .03em; line-height: 1.05; }
.pc-font-modern .pc-k-title .pc-display { text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.pc-font-clean .pc-k-title .pc-display { font-weight: 400; }
.pc-k-subtitle { font-style: italic; letter-spacing: .04em; }
.pc-font-modern .pc-k-subtitle { font-style: normal; text-transform: uppercase; letter-spacing: .14em; font-size: calc(var(--s, 1) * 1.05cqw); }
.pc-k-name .pc-name { font-family: var(--pc-name); font-style: italic; line-height: 1.05; }
.pc-font-elegant .pc-k-name .pc-name { font-style: normal; line-height: 1.15; }
.pc-font-modern .pc-k-name .pc-name, .pc-font-clean .pc-k-name .pc-name { font-style: normal; font-weight: 700; }
.pc-k-idline b, .pc-k-cert b, .pc-k-date b { font-weight: 700; letter-spacing: .03em; }
.pc-k-contact { font-size: calc(var(--s, 1) * 1.15cqw); }
.pc-k-logo .pc-in, .pc-k-photo .pc-in, .pc-k-sheepal .pc-in, .pc-k-ornament .pc-in { height: 100%; display: flex; align-items: center; justify-content: inherit; }
.pc-k-logo img, .pc-k-photo img, .pc-k-sheepal img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.pc-k-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: .6cqw; border: .2cqw solid var(--pc-paper); box-shadow: 0 0 0 .1cqw var(--c, var(--pc-accent)); }
.pc-photo-empty { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; border: .1cqw dashed var(--c, var(--pc-accent)); border-radius: .6cqw; color: var(--c, var(--pc-accent)); opacity: .45; padding: 15%; }
.pc-mono { display: inline-flex; align-items: center; justify-content: center; height: 100%; aspect-ratio: 1; max-width: 100%; border-radius: 50%;
    border: .25cqw double var(--c, var(--pc-accent)); color: var(--c, var(--pc-accent)); font-family: var(--pc-display); font-weight: 700; font-size: 2.6cqw; }
.pc-k-ornament { color: var(--c, var(--pc-accent)); }
.pc-k-ornament svg, .pc-photo-empty svg { width: 100%; height: 100%; display: block; }
.pc-k-sheepal .pc-in { opacity: .9; }

.pc-k-signature .pc-in, .pc-k-stamp .pc-in { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.pc-sign-line { display: block; width: 100%; border-bottom: .1cqw solid var(--c, var(--pc-ink)); margin-bottom: .35em; }
.pc-stamp-ring { width: auto; height: 100%; aspect-ratio: 1; max-width: 100%; border-radius: 50%; border: .12cqw dashed color-mix(in srgb, var(--c, var(--pc-ink)) 60%, transparent);
    display: flex; align-items: center; justify-content: center; text-align: center; padding: 8%; }
.pc-a-left .pc-in { text-align: left; } .pc-a-right .pc-in { text-align: right; }
.pc-k-signature.pc-a-left .pc-in, .pc-k-stamp.pc-a-left .pc-in { align-items: flex-start; }
.pc-k-signature.pc-a-right .pc-in, .pc-k-stamp.pc-a-right .pc-in { align-items: flex-end; }

.pc-k-line .pc-in { height: 100%; display: flex; align-items: center; }
.pc-line { position: relative; display: block; width: 100%; height: 0; border-top: .14cqw solid var(--c, var(--pc-accent)); }
.pc-line-dotted { border-top-style: dotted; border-top-width: .25cqw; }
.pc-k-line.pc-v-vertical .pc-in { justify-content: center; }
.pc-line-vertical { width: 0; height: 100%; border-top: 0; border-left: .1cqw solid var(--c, var(--pc-accent)); margin: 0 auto; }
.pc-line-vertical i { position: absolute; left: 0; top: 50%; width: .9cqw; height: .9cqw; background: var(--pc-paper); border: .12cqw solid var(--c, var(--pc-accent)); transform: translate(-50%, -50%) rotate(45deg); }
.pc-line-ornament { border-top-width: .08cqw; }
.pc-line-ornament i { position: absolute; left: 50%; top: 0; width: 1.1cqw; height: 1.1cqw; background: var(--pc-paper); border: .14cqw solid var(--c, var(--pc-accent)); transform: translate(-50%, -50%) rotate(45deg); }
.pc-line-ornament i::after { content: ''; position: absolute; inset: 28%; background: var(--c, var(--pc-accent)); }

.pc-k-barcode .pc-in { height: 100%; display: flex; align-items: center; justify-content: center; }
.pc-k-barcode svg { height: 100%; width: auto; max-width: 100%; aspect-ratio: 1; display: block; border-radius: .25cqw; box-shadow: 0 0 0 .08cqw rgba(0,0,0,.12); }
.pc-k-sheepal .pc-in { justify-content: center; opacity: .75; }

/* İndeks */
.pc-k-index .pc-in { height: 100%; display: flex; justify-content: inherit; }
.pc-ix-badge { height: 100%; aspect-ratio: 1; max-width: 100%; border-radius: 50%; padding: 6%; background: radial-gradient(circle, color-mix(in srgb, var(--c, var(--pc-accent)) 10%, var(--pc-paper)) 60%, var(--pc-paper) 61%);
    border: .3cqw double var(--c, var(--pc-accent)); display: flex; }
.pc-ix-disc { flex: 1; border-radius: 50%; border: .08cqw solid var(--c, var(--pc-accent)); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--pc-ink); }
.pc-ix-disc b { font-family: var(--pc-display); font-size: 3.2cqw; line-height: 1; color: var(--c, var(--pc-accent)); }
.pc-ix-disc small { font-size: .85cqw; text-transform: uppercase; letter-spacing: .1em; margin-top: .3cqw; }
.pc-ix-disc em { font-size: .72cqw; font-style: normal; opacity: .7; }
.pc-ix-panel { width: 100%; height: 100%; border: .12cqw solid var(--c, var(--pc-accent)); border-left-width: .6cqw; border-radius: .5cqw; padding: .6cqw 1cqw; display: flex; flex-wrap: wrap; align-content: center; column-gap: 1cqw; row-gap: .1cqw; text-align: left; background: color-mix(in srgb, var(--c, var(--pc-accent)) 6%, var(--pc-paper)); }
.pc-ix-panel > .pc-lbl { width: 100%; text-transform: uppercase; letter-spacing: .1em; }
.pc-ix-panel > b { font-family: var(--pc-display); font-size: 3cqw; line-height: 1; color: var(--c, var(--pc-accent)); }
.pc-ix-panel > small { align-self: flex-end; font-size: .8cqw; opacity: .7; padding-bottom: .3cqw; }
.pc-ix-meta { width: 100%; display: flex; flex-wrap: wrap; gap: .1cqw 1cqw; font-size: .95cqw; margin-top: .25cqw; }
.pc-ix-none b { opacity: .4; }

/* Hayvan bilgileri */
.pc-k-info .pc-in { height: 100%; display: flex; flex-direction: column; text-align: left; overflow: hidden; }
.pc-info-head { font-family: var(--pc-display); font-weight: 700; color: var(--c, var(--pc-accent)); font-size: 1.15em; padding-bottom: .4em; margin-bottom: .3em; border-bottom: .12cqw solid var(--c, var(--pc-accent)); }
.pc-info-rows { flex: 1; display: flex; flex-direction: column; justify-content: space-evenly; min-height: 0; }
.pc-info-row { display: flex; flex-direction: column; padding: .2em 0; border-bottom: .06cqw dotted color-mix(in srgb, var(--pc-ink) 30%, transparent); }
.pc-info-row b { font-weight: 700; font-size: 1.02em; }

/* Soy ağacı (dikey) */
.pc-k-tree .pc-in { height: 100%; }
.pc-vtree { position: relative; width: 100%; height: 100%; }
.pc-tree-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pc-tree-lines g { fill: none; stroke: color-mix(in srgb, var(--c, var(--pc-accent)) 55%, transparent); }
.pc-tree-lines path { stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.pc-tn { position: absolute; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; overflow: hidden;
    background: var(--pc-paper); border: .1cqw solid color-mix(in srgb, var(--c, var(--pc-accent)) 45%, transparent); border-radius: .45cqw;
    border-top: .4cqw solid var(--c, var(--pc-accent)); padding: .25cqw .4cqw; font-size: .95cqw; line-height: 1.2; }
.pc-tn.pc-f { border-top-color: color-mix(in srgb, var(--c, var(--pc-accent)) 40%, #b0306a); }
.pc-tn small { font-size: .78em; opacity: .7; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.pc-tn b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; font-weight: 700; }
.pc-tn em { font-size: .92em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.pc-tn > span { font-size: .86em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; opacity: .85; }
.pc-tg3 { font-size: .9cqw; padding: .15cqw .25cqw; border-top-width: .3cqw; gap: .1cqw; }
.pc-tg3 b { letter-spacing: -.01em; }
.pc-tg2 { font-size: 1.02cqw; gap: .05cqw; }
/* Anne ve baba: ayrıntılı kart */
.pc-tg1 { align-items: stretch; text-align: left; justify-content: flex-start; padding: 0; border-top-width: .1cqw; font-size: 1.02cqw;
    box-shadow: 0 .15cqw .5cqw color-mix(in srgb, var(--c, var(--pc-accent)) 14%, transparent); }
.pc-tn-role { display: flex; justify-content: space-between; align-items: center; background: var(--c, var(--pc-accent)); color: var(--pc-paper); padding: .25cqw .7cqw;
    font-size: .8em; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.pc-tg1.pc-f .pc-tn-role { background: color-mix(in srgb, var(--c, var(--pc-accent)) 55%, #8c2155); }
.pc-tn-ix { font-style: normal; letter-spacing: .02em; background: var(--pc-paper); color: var(--c, var(--pc-accent)); border-radius: 1cqw; padding: 0 .5cqw; }
.pc-tn-head { display: flex; align-items: baseline; gap: .6em; padding: .35cqw .7cqw .1cqw; min-width: 0; }
.pc-tn-head b { font-family: var(--pc-display); font-size: 1.15em; }
.pc-tg1 .pc-tn-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .25cqw .8cqw; padding: .3cqw .7cqw .4cqw; flex: 1; align-content: start; border-top: .06cqw dotted color-mix(in srgb, var(--pc-ink) 25%, transparent); margin: 0 .7cqw; padding-left: 0; padding-right: 0; }
.pc-tn-grid span { display: flex; flex-direction: column; min-width: 0; overflow: hidden; font-weight: 600; line-height: 1.15; }
.pc-tn-grid i { font-style: normal; font-weight: 400; font-size: .7em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .65; text-transform: uppercase; letter-spacing: .05em; }
/* Hayvanın kendisi (en altta) */
.pc-tg0 { border-top-width: .1cqw; border-width: .14cqw; border-color: var(--c, var(--pc-accent)); background: color-mix(in srgb, var(--c, var(--pc-accent)) 8%, var(--pc-paper)); font-size: 1.1cqw; }
.pc-tg0 .pc-tn-head { padding: 0; justify-content: center; }
.pc-tg0 .pc-tn-head b { font-size: 1.3em; }
.pc-tn-facts { font-size: .86em; opacity: .85; }
.pc-tn.pc-empty { opacity: .5; border-top-color: color-mix(in srgb, var(--pc-ink) 20%, transparent); box-shadow: none; }
.pc-tn.pc-empty b { font-weight: 400; font-style: italic; }
.pc-tn.pc-ghost { opacity: .35; border: .08cqw dashed color-mix(in srgb, var(--pc-ink) 30%, transparent); background: transparent; box-shadow: none; }
.pc-tg1.pc-empty { align-items: center; justify-content: center; text-align: center; border-top-width: .1cqw; }
.pc-k-text .pc-in { white-space: pre-wrap; }
.pc-v-verify { font-style: italic; opacity: .85; }

/* ─── Ek çerçeveler ─── */
/* Asil: kalın bordo bant, iki yanında altın çizgi, köşelerde madalyon */
.pc-frame-royal .pc-frame { inset: 1.3cqw; border: 1.5cqw solid var(--pc-accent2); outline: .16cqw solid var(--pc-accent); outline-offset: -.5cqw; box-shadow: 0 0 0 .16cqw var(--pc-accent); }
.pc-frame-royal .pc-frame::before { content: ''; position: absolute; inset: .55cqw; border: .08cqw solid var(--pc-accent); }
.pc-frame-royal .pc-frame::after { content: ''; position: absolute; inset: -1.15cqw; border: .06cqw dashed color-mix(in srgb, var(--pc-accent) 80%, transparent); pointer-events: none; }
.pc-frame-royal .pc-corner { width: 3.6cqw; height: 3.6cqw; z-index: 3; }
.pc-frame-royal .pc-corner-tl { left: -2.55cqw; top: -2.55cqw; } .pc-frame-royal .pc-corner-tr { right: -2.55cqw; top: -2.55cqw; transform: none; }
.pc-frame-royal .pc-corner-bl { left: -2.55cqw; bottom: -2.55cqw; transform: none; } .pc-frame-royal .pc-corner-br { right: -2.55cqw; bottom: -2.55cqw; transform: none; }
/* Lacivert: üstte başlık bandı (ince çizgili), altın çizgi; altta ince bant */
.pc-frame-header .pc-frame { inset: 0; }
.pc-frame-header .pc-frame::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 17%;
    background: repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 .5cqw, transparent .5cqw 1.2cqw), linear-gradient(90deg, var(--pc-accent2), color-mix(in srgb, var(--pc-accent2) 78%, #000));
    box-shadow: 0 .3cqw 0 0 var(--pc-accent); }
.pc-frame-header .pc-frame::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2.6%; background: var(--pc-accent2); box-shadow: 0 -.25cqw 0 0 var(--pc-accent); }
/* Bağ: yaprak sarmaşık kenar, köşelerde çiçek */
.pc-frame-vine .pc-frame { inset: 3.6cqw; border: .1cqw solid color-mix(in srgb, var(--pc-accent2) 60%, transparent); border-radius: .4cqw; }
.pc-vine { position: absolute; background: var(--pc-accent); opacity: .9; -webkit-mask-repeat: repeat; mask-repeat: repeat; }
.pc-vine-t, .pc-vine-b { left: -1.4cqw; right: -1.4cqw; height: 2.2cqw;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 22'%3E%3Cpath d='M0 11 Q15 3 30 11 T60 11' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3Cellipse cx='15' cy='5.5' rx='5' ry='2.4' transform='rotate(-25 15 5.5)'/%3E%3Cellipse cx='45' cy='16.5' rx='5' ry='2.4' transform='rotate(-25 45 16.5)'/%3E%3Cellipse cx='26' cy='15' rx='4' ry='2' transform='rotate(30 26 15)'/%3E%3Cellipse cx='55' cy='6' rx='4' ry='2' transform='rotate(30 55 6)'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 22'%3E%3Cpath d='M0 11 Q15 3 30 11 T60 11' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3Cellipse cx='15' cy='5.5' rx='5' ry='2.4' transform='rotate(-25 15 5.5)'/%3E%3Cellipse cx='45' cy='16.5' rx='5' ry='2.4' transform='rotate(-25 45 16.5)'/%3E%3Cellipse cx='26' cy='15' rx='4' ry='2' transform='rotate(30 26 15)'/%3E%3Cellipse cx='55' cy='6' rx='4' ry='2' transform='rotate(30 55 6)'/%3E%3C/svg%3E");
    -webkit-mask-size: 6cqw 2.2cqw; mask-size: 6cqw 2.2cqw; }
.pc-vine-t { top: -2.4cqw; } .pc-vine-b { bottom: -2.4cqw; transform: scaleY(-1); }
.pc-vine-l, .pc-vine-r { top: -1.4cqw; bottom: -1.4cqw; width: 2.2cqw;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 60'%3E%3Cpath d='M11 0 Q3 15 11 30 T11 60' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3Cellipse cx='5.5' cy='15' rx='2.4' ry='5' transform='rotate(25 5.5 15)'/%3E%3Cellipse cx='16.5' cy='45' rx='2.4' ry='5' transform='rotate(25 16.5 45)'/%3E%3Cellipse cx='15' cy='26' rx='2' ry='4' transform='rotate(-30 15 26)'/%3E%3Cellipse cx='6' cy='55' rx='2' ry='4' transform='rotate(-30 6 55)'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 60'%3E%3Cpath d='M11 0 Q3 15 11 30 T11 60' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3Cellipse cx='5.5' cy='15' rx='2.4' ry='5' transform='rotate(25 5.5 15)'/%3E%3Cellipse cx='16.5' cy='45' rx='2.4' ry='5' transform='rotate(25 16.5 45)'/%3E%3Cellipse cx='15' cy='26' rx='2' ry='4' transform='rotate(-30 15 26)'/%3E%3Cellipse cx='6' cy='55' rx='2' ry='4' transform='rotate(-30 6 55)'/%3E%3C/svg%3E");
    -webkit-mask-size: 2.2cqw 6cqw; mask-size: 2.2cqw 6cqw; }
.pc-vine-l { left: -2.4cqw; } .pc-vine-r { right: -2.4cqw; transform: scaleX(-1); }
.pc-bloom { position: absolute; width: 3.4cqw; height: 3.4cqw; border-radius: 50%; z-index: 2;
    background: radial-gradient(circle, var(--pc-accent2) 0 22%, var(--pc-paper) 23% 30%, var(--pc-accent) 31% 58%, transparent 60%); }
.pc-frame-vine .pc-corner-tl { left: -3cqw; top: -3cqw; } .pc-frame-vine .pc-corner-tr { right: -3cqw; top: -3cqw; transform: none; }
.pc-frame-vine .pc-corner-bl { left: -3cqw; bottom: -3cqw; transform: none; } .pc-frame-vine .pc-corner-br { right: -3cqw; bottom: -3cqw; transform: none; }
/* Yalın: üstte kalın vurgu çubuğu, altta ince çizgi */
.pc-frame-swiss .pc-frame { inset: 0; }
.pc-frame-swiss .pc-frame::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1.1cqw; background: var(--pc-accent); }
.pc-frame-swiss .pc-frame::after { content: ''; position: absolute; left: 6%; right: 6%; bottom: 2.4cqw; border-bottom: .08cqw solid var(--pc-ink); }

/* Modern: solda lacivert yan panel, sağ kenarında altın çizgi */
.pc-frame-sidebar .pc-frame { inset: 0; }
.pc-frame-sidebar .pc-frame::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 28%;
    background: repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 .5cqw, transparent .5cqw 1.2cqw), linear-gradient(180deg, var(--pc-accent2), color-mix(in srgb, var(--pc-accent2) 75%, #000));
    box-shadow: .3cqw 0 0 0 var(--pc-accent); }
.pc-frame-sidebar .pc-frame::after { content: ''; position: absolute; left: 30%; right: 3%; bottom: 3.5%; border-bottom: .08cqw solid color-mix(in srgb, var(--pc-accent2) 40%, transparent); }
/* Çağdaş: ince çerçeve, sol üst ve sağ alt köşede kalın köşebent, diğer köşelerde küçük kare */
.pc-frame-geo .pc-frame { inset: 2.4cqw; border: .1cqw solid color-mix(in srgb, var(--pc-accent2) 45%, transparent); }
.pc-frame-geo .pc-frame::before, .pc-frame-geo .pc-frame::after { content: ''; position: absolute; width: 9cqw; height: 9cqw; border: 0 solid var(--pc-accent); }
.pc-frame-geo .pc-frame::before { left: -1.1cqw; top: -1.1cqw; border-left-width: .6cqw; border-top-width: .6cqw; }
.pc-frame-geo .pc-frame::after { right: -1.1cqw; bottom: -1.1cqw; border-right-width: .6cqw; border-bottom-width: .6cqw; }
.pc-geo-dot { position: absolute; width: 1.1cqw; height: 1.1cqw; background: var(--pc-accent2); }
.pc-geo-tr { right: -.55cqw; top: -.55cqw; } .pc-geo-bl { left: -.55cqw; bottom: -.55cqw; }
.pc-frame-geo.pc-pat-dots .pc-bg { opacity: .45; }
/* Anadolu: üstte ve altta kilim desenli bant */
.pc-frame-kilim .pc-frame { inset: 0; }
.pc-kilim { position: absolute; left: 0; right: 0; height: 7.2%; background: var(--pc-accent2);
    box-shadow: inset 0 .35cqw 0 0 var(--pc-accent2), inset 0 .5cqw 0 0 var(--pc-accent), inset 0 -.35cqw 0 0 var(--pc-accent2), inset 0 -.5cqw 0 0 var(--pc-accent); }
.pc-kilim-t { top: 0; } .pc-kilim-b { bottom: 0; }
.pc-kilim i { position: absolute; left: 0; right: 0; top: 18%; bottom: 18%; background: var(--pc-accent);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 24'%3E%3Cpath d='M24 1 L46 12 L24 23 L2 12Z M24 6 L36 12 L24 18 L12 12Z' fill-rule='evenodd'/%3E%3Cpath d='M24 9 L30 12 L24 15 L18 12Z'/%3E%3Cpath d='M0 0 h3 v3 h-3z M45 0 h3 v3 h-3z M0 21 h3 v3 h-3z M45 21 h3 v3 h-3z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 24'%3E%3Cpath d='M24 1 L46 12 L24 23 L2 12Z M24 6 L36 12 L24 18 L12 12Z' fill-rule='evenodd'/%3E%3Cpath d='M24 9 L30 12 L24 15 L18 12Z'/%3E%3Cpath d='M0 0 h3 v3 h-3z M45 0 h3 v3 h-3z M0 21 h3 v3 h-3z M45 21 h3 v3 h-3z'/%3E%3C/svg%3E");
    -webkit-mask-size: auto 100%; mask-size: auto 100%; -webkit-mask-repeat: repeat-x; mask-repeat: repeat-x; -webkit-mask-position: center; mask-position: center; }
.pc-frame-kilim .pc-bg { background: linear-gradient(90deg, color-mix(in srgb, var(--pc-accent) 35%, transparent) 0 .3cqw, transparent .3cqw calc(100% - .3cqw), color-mix(in srgb, var(--pc-accent) 35%, transparent) calc(100% - .3cqw)); }

/* ─── Logo süslemesi ─── */
.pc-logo-disc { position: relative; height: 100%; aspect-ratio: 1; max-width: 100%; display: flex; align-items: center; justify-content: center; }
.pc-logo-in { width: 82%; height: 82%; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden;
    box-shadow: 0 0 0 .22cqw var(--c, var(--pc-accent)), 0 0 0 .5cqw color-mix(in srgb, var(--c, var(--pc-accent)) 25%, transparent); }
.pc-logo-in img { width: 76%; height: 76%; object-fit: contain; }
.pc-logo-in .pc-mono { border: 0; font-size: 2.2cqw; }
.pc-logo-laurel .pc-logo-in { width: 62%; height: 62%; }
.pc-logo-laurel > svg { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--c, var(--pc-accent)); }
.pc-k-logo.pc-d-circle .pc-in, .pc-k-logo.pc-d-laurel .pc-in { justify-content: inherit; }

/* ─── Başlık süslemesi ─── */
.pc-d-ribbon .pc-in { position: relative; height: 100%; display: flex; align-items: center; justify-content: center; }
.pc-ribbon { position: absolute; inset: 0; width: 100%; height: 100%; }
.pc-ribbon-text { position: relative; color: var(--pc-paper); padding: 0 12%; margin-top: -.6cqw; text-transform: uppercase; letter-spacing: .14em; font-size: .62em; }
.pc-d-ribbon .pc-display { font-weight: 700; }
.pc-rules { display: flex; align-items: center; gap: 1.2cqw; width: 100%; }
.pc-rules i { flex: 1; height: 0; border-top: .1cqw solid currentColor; position: relative; opacity: .8; }
.pc-rules i::after { content: ''; position: absolute; top: -.35cqw; width: .6cqw; height: .6cqw; background: currentColor; border-radius: 50%; }
.pc-rules i:first-child::after { right: 0; } .pc-rules i:last-child::after { left: 0; }

/* ─── Bilgi ızgarası (ön yüz) ─── */
.pc-d-grid .pc-in { height: 100%; display: flex; align-items: center; }
.pc-grid { display: grid; width: 100%; gap: .5cqw 1.2cqw; }
.pc-grid-cell { display: flex; flex-direction: column; min-width: 0; padding: .2cqw 0 .3cqw .7cqw; border-left: .2cqw solid var(--c, var(--pc-accent)); }
.pc-grid-cell .pc-lbl { font-size: .72em; text-transform: uppercase; letter-spacing: .08em; }
.pc-grid-cell b { font-size: 1.05em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--pc-ink); }
.pc-a-center .pc-grid-cell { align-items: center; border-left: 0; border-top: .14cqw solid var(--c, var(--pc-accent)); padding: .3cqw 0 0; }

.pc-k-info, .pc-k-index, .pc-k-tree { color: var(--pc-ink); }
.pc-k-info.pc-d-light { color: var(--pc-paper); }
.pc-k-info.pc-d-light .pc-info-row { border-bottom-color: rgba(255,255,255,.18); }
.pc-tn-role span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-tn-ix { white-space: nowrap; flex-shrink: 0; margin-left: .4cqw; }
.pc-tn-breed { margin-left: auto; font-size: .85em; opacity: .75; white-space: nowrap; }
.pc-grid-cell .pc-lbl { color: var(--c, var(--pc-accent)); opacity: 1; }
.pc-info-row { padding: .12em 0; }

/* Önizleme: karekod yer tutucusu ve çapraz filigran */
.pc-qr-ph { height: 100%; aspect-ratio: 1; max-width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3cqw;
    border: .12cqw dashed color-mix(in srgb, var(--pc-ink) 40%, transparent); border-radius: .3cqw; background: color-mix(in srgb, var(--pc-paper) 85%, #fff); }
.pc-qr-ph img { width: 70%; opacity: .7; }
.pc-qr-ph b { font-size: .8cqw; letter-spacing: .06em; opacity: .6; font-family: Roboto, Arial, sans-serif; }
.pc-watermark { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; z-index: 6; overflow: hidden; }
.pc-watermark span { transform: rotate(-24deg); font-family: Roboto, Arial, sans-serif; font-weight: 700; font-size: 11cqw; letter-spacing: .08em;
    color: rgba(200, 40, 40, .09); border: .5cqw solid rgba(200, 40, 40, .09); padding: .5cqw 3cqw; border-radius: 1.5cqw; white-space: nowrap; }

/* ─── Süsler ─── */
.pc-v-crest { opacity: .07; }
.pc-k-ornament.pc-v-wax svg { filter: drop-shadow(0 .15cqw .25cqw rgba(0,0,0,.25)); }
.pc-font-elegant .pc-k-title .pc-display { letter-spacing: .02em; }

/* Gizli alan (yalnız düzenleyicide görünür) */
.pc-el.pc-hidden { opacity: .28; outline: .1cqw dashed #9ca3af; }

/* Baskı sayfası (Pedigree/Print): her yüz bir A4 yatay sayfa */
.pc-print-body { margin: 0; background: #e5e7eb; }
.pc-print { display: flex; flex-direction: column; gap: 10mm; align-items: center; padding: 10mm 0; }
.pc-print .pc-page { width: 297mm; max-width: 96vw; }
@media print {
    @page { size: A4 landscape; margin: 0; }
    .pc-print-body { background: #fff; }
    .pc-print { display: block; padding: 0; }
    .pc-print .pc-page { width: 297mm; max-width: none; height: 210mm; overflow: hidden; break-after: page; page-break-after: always; }
    .pc-print .pc-page:last-child { break-after: auto; page-break-after: auto; }
    .pc-print .pc-sheet { width: 297mm; box-shadow: none; border-radius: 0; }
}

/* ─── Karne sayfası: şablon seçici ─── */
.pc-picker { display: flex; flex-wrap: wrap; gap: 6px; }
.pc-picker .btn { display: inline-flex; align-items: center; }
.pc-dot { width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; display: inline-block; border: 1px solid rgba(0,0,0,.15); }
.pc-dot-1 { background: linear-gradient(135deg, #fbf7ec 50%, #9a7b3f 50%); }
.pc-dot-2 { background: linear-gradient(135deg, #ffffff 50%, #0f766e 50%); }
.pc-dot-3 { background: linear-gradient(135deg, #b08d3c 50%, #6b1d2a 50%); }
.pc-dot-4 { background: linear-gradient(135deg, #f3f7ef 50%, #4d7c4f 50%); }
.pc-dot-5 { background: linear-gradient(135deg, #ffffff 50%, #111111 50%); }
.pc-dot-6 { background: linear-gradient(135deg, #ffffff 50%, #c4a15a 50%); }
.pc-dot-7 { background: linear-gradient(135deg, #fbf8f1 50%, #a9782a 50%); }
.pc-dot-8 { background: linear-gradient(135deg, #f2b632 50%, #1d4f8f 50%); }
.pc-dot-9 { background: linear-gradient(135deg, #c9a24d 50%, #16624a 50%); }
.pc-dot-10 { background: linear-gradient(135deg, #d4a64a 50%, #433256 50%); }
.pc-dot-11 { background: linear-gradient(135deg, #c3a04f 50%, #7b1e2b 50%); }
.pc-dot-12 { background: linear-gradient(135deg, #b8954a 50%, #1c2f5a 50%); }
.pc-dot-ozel { background: conic-gradient(#e11d48, #f59e0b, #10b981, #3b82f6, #a855f7, #e11d48); }

/* ─── Şablon galerisi ─── */
.pc-tpl { overflow: hidden; transition: box-shadow .15s, transform .15s; }
.pc-tpl:hover { box-shadow: 0 6px 24px rgba(15,23,42,.12); }
.pc-tpl-on { outline: 2px solid var(--bs-success, #10b981); outline-offset: -2px; }
.pc-tpl-preview { padding: 14px 14px 0; background: #eef0f3; }
.pc-tpl-preview .pc-sheet { box-shadow: 0 2px 10px rgba(15,23,42,.18); }
.pc-tpl-empty { aspect-ratio: 297 / 210; margin: 14px 14px 0; border: 2px dashed #cbd5e1; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 46px; color: #94a3b8; background: repeating-linear-gradient(45deg, #f8fafc 0 10px, #f1f5f9 10px 20px); }
.pc-paywall { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 10px; background: linear-gradient(90deg, #fff7e6, #fffbeb); border: 1px solid #fde68a; }
.pc-paywall-ic { width: 46px; height: 46px; border-radius: 50%; background: #f59e0b; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.pc-locked-btn { opacity: .85; }
@media (max-width: 575.98px) { .pc-paywall { flex-direction: column; align-items: flex-start; } }

/* ─── Düzenleyici ─── */
.pc-editor-body { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 16px; align-items: start; }
@media (max-width: 1199.98px) { .pc-editor-body { grid-template-columns: 1fr; } }
.pc-editor-canvas { position: sticky; top: 86px; background: #e9ecf1; border-radius: 10px; padding: 22px; }
.pc-editor-hint { margin: 10px 0 0; font-size: 12px; color: #64748b; }
.pc-name-input { max-width: 260px; }
.pc-canvas .pc-el { cursor: move; touch-action: none; user-select: none; }
.pc-canvas .pc-el:hover { outline: 1px dashed rgba(59,130,246,.7); outline-offset: 1px; }
.pc-canvas .pc-el.pc-locked { cursor: not-allowed; }
.pc-canvas .pc-el.pc-locked:hover { outline-color: rgba(148,163,184,.8); }
.pc-canvas .pc-el.pc-selected { outline: 2px solid #3b82f6; outline-offset: 1px; z-index: 5; }
.pc-canvas .pc-el.pc-locked.pc-selected { outline-color: #94a3b8; }
.pc-handle { position: absolute; right: -6px; bottom: -6px; width: 12px; height: 12px; border-radius: 3px; background: #3b82f6; border: 2px solid #fff; cursor: nwse-resize; display: none; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.pc-canvas .pc-el.pc-selected .pc-handle { display: block; }
.pc-add-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.pc-add-grid .btn { display: flex; align-items: center; gap: 6px; text-align: left; font-size: 12px; padding: 5px 8px; white-space: nowrap; overflow: hidden; }
.pc-add-grid .btn span { overflow: hidden; text-overflow: ellipsis; }
.pc-el-list { max-height: 300px; overflow: auto; font-size: 13px; }
.pc-el-list .list-group-item { cursor: pointer; }
.pc-el-list .list-group-item.active .pc-eye { color: #fff; }
.pc-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 8px; }

/* ─── Mobil ─── */
.pc-chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
.pc-chip { flex-shrink: 0; display: inline-flex; align-items: center; border: 1px solid rgba(0,0,0,.1); background: #fff; border-radius: 20px; padding: 6px 12px; font-size: 12px; font-weight: 600; color: inherit; }
.pc-chip.on { background: var(--highlight, #8CC152); border-color: transparent; color: #fff; }
.pc-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; padding: 4px; }
.pc-scroll .pc-pages { min-width: 0; }
.theme-dark .pc-chip { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); }

/* ─── Birlik pedigrisi: birlik logosu ve adı, yetiştirici kutusu, yetkili imzası, mühür, üye no ─── */
.pc-k-unionlogo .pc-in, .pc-k-unionstamp .pc-in { height: 100%; display: flex; align-items: center; justify-content: inherit; }
.pc-k-unionlogo img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.pc-k-unionlogo .pc-logo-in img { width: 76%; height: 76%; }
.pc-k-unionlogo.pc-d-circle .pc-in, .pc-k-unionlogo.pc-d-laurel .pc-in { justify-content: inherit; }
.pc-k-unionname .pc-display { font-weight: 700; letter-spacing: .1em; text-transform: uppercase; line-height: 1.1; }
.pc-font-elegant .pc-k-unionname .pc-display { letter-spacing: .06em; }
.pc-k-unioncontact { font-size: calc(var(--s, 1) * 1.15cqw); opacity: .92; }
.pc-k-memberno b { font-weight: 700; letter-spacing: .03em; }
.pc-k-breeder .pc-in { height: 100%; }
.pc-breeder { height: 100%; display: flex; align-items: center; gap: .9cqw; padding: .55cqw .8cqw; border: .1cqw solid color-mix(in srgb, var(--c, var(--pc-accent2)) 55%, transparent);
    border-left: .45cqw solid var(--c, var(--pc-accent2)); border-radius: .35cqw; background: color-mix(in srgb, var(--pc-paper) 86%, var(--c, var(--pc-accent2))); color: var(--pc-ink); }
.pc-breeder-logo { flex: 0 0 auto; height: 88%; aspect-ratio: 1; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden;
    box-shadow: 0 0 0 .12cqw var(--c, var(--pc-accent2)); }
.pc-breeder-logo img { width: 78%; height: 78%; object-fit: contain; }
.pc-breeder-logo .pc-mono { border: 0; font-size: 1.6cqw; }
.pc-breeder-body { min-width: 0; display: flex; flex-direction: column; gap: .12cqw; text-align: left; line-height: 1.15; }
.pc-breeder-body .pc-lbl { text-transform: uppercase; letter-spacing: .12em; font-size: .62em; }
.pc-breeder-body b { font-family: var(--pc-display); font-weight: 700; font-size: 1.05em; color: var(--c, var(--pc-accent2)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-breeder-body small { font-size: .74em; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-k-signer .pc-in { height: 100%; display: flex; }
.pc-signer { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; text-align: center; line-height: 1.1; }
.pc-signer img { flex: 1 1 auto; min-height: 0; max-width: 100%; object-fit: contain; margin-bottom: -.4cqw; }
.pc-signer-space { flex: 1 1 auto; }
.pc-signer b { font-weight: 700; font-size: .92em; }
.pc-signer small { font-size: .74em; opacity: .8; }
.pc-union-stamp { max-width: 100%; max-height: 100%; object-fit: contain; opacity: .92; mix-blend-mode: multiply; }
.pc-k-unionstamp .pc-stamp-ring { margin: auto; }

/* ── Yeni şablonlar (çiftlik 6–11, birlik u4–u6) ──
   Çerçeve çizimi sayfayı kaplayan tek SVG'dir (pedigree-card.js → FRAME_ART). Yazı düzeni: "luxe" (aralıklı ince büyük harf
   başlık, el yazısı ad) ve "corporate" (kalın aralıklı başlık, düz gövde yazısı, el yazısı ad). */
.pc-frame-art { inset: 0; }
.pc-frame-art svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pc-font-luxe { --pc-name: 'PC Vibes', 'Brush Script MT', cursive; }
.pc-font-luxe .pc-k-title .pc-display { text-transform: uppercase; letter-spacing: .2em; font-weight: 400; }
.pc-font-luxe .pc-k-subtitle { font-style: normal; text-transform: uppercase; letter-spacing: .32em; font-size: calc(var(--s, 1) * 1.02cqw); }
.pc-font-luxe .pc-k-name .pc-name { font-style: normal; line-height: 1.15; }
.pc-font-luxe .pc-k-farm .pc-display { letter-spacing: .22em; font-weight: 400; }
.pc-font-corporate { --pc-body: Roboto, 'Segoe UI', Arial, sans-serif; --pc-name: 'PC Vibes', 'Brush Script MT', cursive; }
.pc-font-corporate .pc-k-title .pc-display { text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.pc-font-corporate .pc-k-subtitle { font-style: normal; text-transform: uppercase; letter-spacing: .24em; font-size: calc(var(--s, 1) * .98cqw); }
.pc-font-corporate .pc-k-name .pc-name { font-style: normal; line-height: 1.15; }
.pc-font-corporate .pc-k-unionname .pc-display { letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.pc-k-subtitle .pc-rules { gap: 1cqw; }
.pc-k-subtitle .pc-rules > span { white-space: nowrap; }
.pc-arch { width: 100%; height: 100%; display: block; overflow: visible; font-family: var(--pc-display); }
.pc-k-title.pc-d-arch .pc-in { height: 100%; }
/* Zemin: ince kâğıt dokusu ve ince güvenlik çizgileri */
.pc-pat-paper .pc-bg { background-image: radial-gradient(color-mix(in srgb, var(--pc-ink) 7%, transparent) .05cqw, transparent .06cqw),
    radial-gradient(color-mix(in srgb, var(--pc-accent) 9%, transparent) .04cqw, transparent .05cqw);
    background-size: .9cqw .9cqw, 1.3cqw 1.3cqw; background-position: 0 0, .4cqw .6cqw; }
.pc-pat-fineline .pc-bg { background-image: repeating-linear-gradient(160deg, color-mix(in srgb, var(--pc-accent2) 6%, transparent) 0 .06cqw, transparent .06cqw .55cqw); }

/* Pedigri oluştur: arka planda yüklenirken; önizleme penceresinde iki yüz alt alta */
.pc-loading { opacity: .55; pointer-events: none; transition: opacity .15s; }
.pc-show-body { background: #eef0f3; }
.pc-show-body #pcShowPages { display: flex; flex-direction: column; gap: 18px; }
.pc-show-body .pc-sheet { box-shadow: 0 2px 12px rgba(15,23,42,.18); }

/* İmza ve mühür aynı yerde: mühür imzanın üstüne basılmış gibi (hafif eğik, mürekkep karışımı) */
.pc-k-stamp, .pc-k-unionstamp { z-index: 2; }
.pc-k-stamp .pc-stamp-ring { transform: rotate(-10deg); background: transparent; }
.pc-k-unionstamp .pc-union-stamp { transform: rotate(-8deg); opacity: .86; }
.pc-k-unionstamp .pc-stamp-ring { transform: rotate(-10deg); }

/* Kontrol filigranı (doğrulama sayfası): eğik, sık satırlar ve ortada büyük damga; seçilemez, yazdırılırken de kalır */
.pc-control-mark { position: absolute; inset: 0; z-index: 60; overflow: hidden; pointer-events: none; user-select: none; }
.pc-cm-tile { position: absolute; left: -40%; top: -60%; width: 180%; height: 220%; transform: rotate(-24deg); display: flex; flex-direction: column; justify-content: space-between; }
.pc-cm-tile > div { white-space: nowrap; font-family: Roboto, Arial, sans-serif; font-weight: 700; font-size: 1.25cqw; letter-spacing: .12em; text-transform: uppercase;
    color: rgba(190, 30, 45, .26); }
.pc-cm-tile > div.pc-cm-odd { margin-left: -6cqw; color: rgba(190, 30, 45, .18); }
.pc-cm-tile span { margin-right: 3cqw; }
.pc-cm-big { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-24deg); padding: .6cqw 3.5cqw; border: .7cqw double rgba(190, 30, 45, .45);
    border-radius: 1.4cqw; font-family: Roboto, Arial, sans-serif; font-weight: 900; font-size: 10cqw; letter-spacing: .14em; line-height: 1.1; color: rgba(190, 30, 45, .3);
    background: rgba(255, 255, 255, .12); }
