/* ==========================================================================
   Permolit Renk Stüdyosu — ziyaretçi çalışma alanı (4.0.0-beta5 "Studio")
   Mobil önce: üst çubuk → fotoğraf tuvali → panel (alt sayfa) + yapışkan ana eylem.
   Kap ≥ 960 px: tuval | 400 px panel. Belirteçler: pcv-base.css.
   ========================================================================== */

.pcv-studio { --pcv-c-top: 0px; --pcv-c-bottom: 0px; --pcv-c-canvas-h: 50svh; padding: 0; }
.pcv-studio[data-view="start"] .pcv-c-work,
.pcv-studio:not([data-view="start"]) .pcv-c-start { display: none; }

/* --- İkonlar (data-ico → JS satır içi SVG ekler) ----------------------- */
.pcv-studio [data-ico] > svg.pcv-ico:first-child { margin-left: -2px; }

/* ==========================================================================
   Giriş (4.4.0-rc1): marka kartı + iki giriş (Fotoğraf çek / Fotoğraf ekle) → gizlilik satırı → Sonuçlarınız → 3 adım.
   Mobilde ana eylem ilk ekranda kalır; gizlilik notu ve geçmiş eylemin ALTINDA, ayrı satırlarda.
   ========================================================================== */
.pcv-c-start {
	padding: var(--pcv-s6) var(--pcv-s4) var(--pcv-s8);
	display: flex; flex-direction: column; align-items: center; gap: var(--pcv-s5);
}
.pcv-c-start > * { width: 100%; max-width: 760px; }
.pcv-c-hero {
	text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--pcv-s3);
	padding: var(--pcv-s8) var(--pcv-s5) var(--pcv-s6);
	border: 1px solid var(--pcv-line); border-radius: var(--pcv-r-lg);
	background: linear-gradient(180deg, var(--pcv-brand-tint) 0%, var(--pcv-surface) 70%);
	transition: border-color var(--pcv-dur) var(--pcv-ease), box-shadow var(--pcv-dur) var(--pcv-ease);
}
.pcv-c-hero[data-drag] { border-color: var(--pcv-brand); box-shadow: inset 0 0 0 2px var(--pcv-brand); }
/* Gerçek kartela renklerinden süs şeridi (JS; yayınlanmış renk yoksa gizli). */
.pcv-c-ribbon { display: flex; width: min(240px, 70%); height: 8px; border-radius: var(--pcv-r-pill); overflow: hidden; margin-bottom: var(--pcv-s1); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06); }
.pcv-c-ribbon span { flex: 1; background: var(--c); }
.pcv-c-eyebrow { font-size: var(--pcv-fs-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pcv-brand); }
.pcv-studio.pcv-studio .pcv-c-title { font-size: clamp(1.625rem, 1.15rem + 3cqi, 2.625rem); font-weight: 750; letter-spacing: -0.02em; max-width: 18em; text-wrap: balance; }
.pcv-c-lead { color: var(--pcv-muted); font-size: 1.0625rem; max-width: 32em; text-wrap: pretty; }
.pcv-c-picks { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--pcv-s2); width: 100%; max-width: 360px; margin-top: var(--pcv-s3); }
@container pcv (min-width: 560px) { .pcv-c-picks[data-two] { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 480px; } }
.pcv-studio.pcv-studio .pcv-c-pick { width: 100%; }
/* Kamera varken (dokunmatik) galeri ikincil görünür; tek giriş varsa birincildir. */
.pcv-studio.pcv-studio .pcv-c-picks[data-two] #pcv-c-file-btn { background: var(--pcv-surface); color: var(--pcv-brand-strong); border-color: var(--pcv-brand); }
.pcv-studio.pcv-studio .pcv-c-picks[data-two] #pcv-c-file-btn:hover { background: var(--pcv-brand-tint); }
.pcv-c-formats { grid-column: 1 / -1; font-size: var(--pcv-fs-xs); color: var(--pcv-muted); text-wrap: balance; }
.pcv-c-dropword { display: none; }
@media (hover: hover) and (pointer: fine) { .pcv-c-dropword { display: inline; } }
/* Dokunmatik (kamera girişi görünür): sürükle-bırak önerilmez. */
.pcv-studio .pcv-c-picks[data-two] .pcv-c-dropword { display: none; }
.pcv-c-hero #pcv-c-start-note { max-width: 30em; }
.pcv-c-hero #pcv-c-start-note[data-tone], .pcv-c-hero #pcv-c-unavailable { text-align: left; }

.pcv-c-privacy {
	display: flex; flex-wrap: wrap; align-items: center; gap: var(--pcv-s1) var(--pcv-s3);
	padding: var(--pcv-s2) var(--pcv-s2) var(--pcv-s2) var(--pcv-s4); border-radius: var(--pcv-r-md); background: var(--pcv-canvas);
	font-size: var(--pcv-fs-sm); color: var(--pcv-ink-2);
}
.pcv-c-privacy > svg { width: 18px; height: 18px; color: var(--pcv-brand); }
.pcv-c-privacy p { flex: 1 1 16em; min-width: 0; padding: 6px 0; }
.pcv-studio.pcv-studio .pcv-c-privacy .pcv-btn { flex: none; }

.pcv-c-how { display: grid; gap: var(--pcv-s3); grid-template-columns: minmax(0, 1fr); counter-reset: none; }
.pcv-c-how li {
	display: grid; grid-template-columns: 32px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: var(--pcv-s3); row-gap: 2px; align-content: start;
	padding: var(--pcv-s4); border: 1px solid var(--pcv-line); border-radius: var(--pcv-r-md); background: var(--pcv-surface);
}
.pcv-c-how-n {
	grid-row: span 2; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
	background: var(--pcv-brand-soft); color: var(--pcv-brand-strong); font-weight: 750; font-size: var(--pcv-fs-sm);
}
.pcv-c-how strong { font-size: var(--pcv-fs-md); line-height: 1.3; }
.pcv-c-how li > span:last-child { font-size: var(--pcv-fs-sm); color: var(--pcv-muted); line-height: 1.45; }
/* Kap sorgusu temel kurallardan SONRA (aynı özgüllük; önce yazılırsa ezilir → dar sütunda kelime kelime metin). */
@container pcv (min-width: 640px) {
	.pcv-c-how { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	/* Üç sütunda numara üstte: dar sütunda metin sıkışmasın. */
	.pcv-c-how li { grid-template-columns: minmax(0, 1fr); }
	.pcv-c-how .pcv-c-how-n { grid-row: auto; margin-bottom: var(--pcv-s2); }
}

/* ==========================================================================
   Çalışma alanı
   ========================================================================== */
.pcv-c-work {
	display: flex; flex-direction: column;
	height: calc(100vh - var(--pcv-c-top) - var(--pcv-c-bottom));
	min-height: 560px;
	background: var(--pcv-canvas);
	border-radius: 0;
	overflow: hidden;
}
@supports (height: 1svh) { .pcv-c-work { height: calc(100svh - var(--pcv-c-top) - var(--pcv-c-bottom)); } }

.pcv-c-bar {
	display: flex; align-items: center; gap: var(--pcv-s2);
	padding: var(--pcv-s2) var(--pcv-s3); background: var(--pcv-surface); border-bottom: 1px solid var(--pcv-line);
	flex: none; min-height: 60px;
}
.pcv-studio.pcv-studio .pcv-c-bar-title { flex: 1; min-width: 0; font-size: var(--pcv-fs-md); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* --- Tuval ------------------------------------------------------------- */
.pcv-c-canvas {
	position: relative; flex: none;
	height: var(--pcv-c-canvas-h);
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	padding: 0; transition: height var(--pcv-dur) var(--pcv-ease);
}
.pcv-c-frame {
	position: relative; width: var(--pcv-fw, 100%); height: var(--pcv-fh, 100%);
	touch-action: manipulation; user-select: none; -webkit-user-select: none; overflow: hidden;
	background: #dde1dc;
}
.pcv-c-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none; }
.pcv-c-result-img { z-index: 1; }
.pcv-c-pins { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.pcv-studio.pcv-studio .pcv-c-pin {
	position: absolute; transform: translate(-50%, -50%); pointer-events: auto;
	width: 34px; height: 34px; min-height: 34px; border-radius: 50%;
	display: grid; place-items: center;
	background: var(--pcv-surface); color: var(--pcv-ink); font-size: 0.875rem; font-weight: 750;
	box-shadow: var(--pcv-sh-2); border: 2px solid #fff;
}
/* 44 px dokunma alanı (görünür daire 34 px). */
.pcv-studio .pcv-c-pin::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; }
.pcv-studio .pcv-c-pin[data-c]::after {
	content: ""; position: absolute; right: -4px; bottom: -4px; width: 14px; height: 14px; border-radius: 50%;
	background: var(--pc, transparent); border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18);
}
.pcv-studio.pcv-studio .pcv-c-pin[aria-pressed="true"] { background: var(--pcv-ink); color: #fff; }

.pcv-c-badge {
	position: absolute; z-index: 4; left: 10px; display: inline-flex; align-items: center; gap: 6px;
	padding: 6px 12px; border-radius: var(--pcv-r-pill); background: rgba(255, 255, 255, 0.95);
	font-size: var(--pcv-fs-sm); font-weight: 650; box-shadow: var(--pcv-sh-1);
}
.pcv-c-badge { top: 10px; }
.pcv-c-badge { font-size: var(--pcv-fs-xs); }
/* Tek dokunuş yönergesi (fotoğrafın üstünde, ortada): "Renklendirmek istediğiniz duvara dokunun." */
.pcv-c-taphint {
	position: absolute; z-index: 4; top: 10px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 20px);
	margin: 0; padding: 8px 14px; border-radius: var(--pcv-r-pill); background: rgba(23, 33, 28, 0.86); color: #fff;
	font-size: var(--pcv-fs-sm); font-weight: 650; line-height: 1.3; text-align: center; pointer-events: none; box-shadow: var(--pcv-sh-1);
}
.pcv-c-frame[aria-busy="true"] { cursor: progress; }

.pcv-c-busy {
	position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--pcv-s2);
	background: rgba(19, 26, 22, 0.38); color: #fff; text-align: center; padding: var(--pcv-s4);
}
.pcv-c-busy .pcv-spinner { width: 28px; height: 28px; border-color: rgba(255, 255, 255, 0.35); border-top-color: #fff; }
.pcv-c-busy-text { font-weight: 700; max-width: 26em; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35); }
.pcv-c-elapsed { font-size: var(--pcv-fs-sm); opacity: 0.9; font-variant-numeric: tabular-nums; }

.pcv-c-divider { position: absolute; top: 0; bottom: 0; z-index: 3; width: 0; pointer-events: none; }
.pcv-c-divider::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: #fff; box-shadow: 0 0 6px rgba(0, 0, 0, 0.4); }
.pcv-c-divider span {
	position: absolute; top: 50%; left: 0; width: 40px; height: 40px; transform: translate(-50%, -50%);
	border-radius: 50%; background: #fff; box-shadow: var(--pcv-sh-2);
}
.pcv-c-divider span::before { content: "‹ ›"; position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; color: var(--pcv-ink); letter-spacing: 2px; }
.pcv-c-compare {
	display: flex; align-items: center; gap: var(--pcv-s2); width: var(--pcv-fw, 100%); max-width: 100%;
	padding: 0 var(--pcv-s3); font-size: var(--pcv-fs-xs); font-weight: 650; color: var(--pcv-muted);
	position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); z-index: 6; height: 44px;
	background: linear-gradient(to top, rgba(238, 240, 236, 0.95), rgba(238, 240, 236, 0));
}

/* --- Panel (mobil: alt sayfa) ------------------------------------------ */
.pcv-c-panel {
	position: relative; flex: 1 1 auto; min-height: 0;
	display: flex; flex-direction: column;
	z-index: 7;
	background: var(--pcv-surface); border-radius: var(--pcv-r-lg) var(--pcv-r-lg) 0 0; box-shadow: var(--pcv-sh-sheet);
	container: pcvp / inline-size;
}
/* Dar panel (320 px telefon, yatay telefonda yan panel): satırda yalnız renk örneği; ad erişilebilir etikette. */
@container pcvp (max-width: 420px) {
	.pcv-row .pcv-c-rc span { display: none; }
	.pcv-row .pcv-c-rt strong { font-size: 0.875rem; }
}
.pcv-studio.pcv-studio .pcv-c-grab {
	flex: none; align-self: center; width: 88px; height: 44px; min-height: 44px; margin: -6px 0 -14px;
	display: grid; place-items: center; border-radius: 12px;
}
.pcv-c-grab span { width: 40px; height: 5px; border-radius: 3px; background: #cfd5d1; }
.pcv-c-panel-body {
	flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain;
	padding: var(--pcv-s2) var(--pcv-s4) var(--pcv-s4);
	display: flex; flex-direction: column; gap: var(--pcv-s4);
}
.pcv-c-cta {
	flex: none; padding: var(--pcv-s3) var(--pcv-s4) calc(var(--pcv-s3) + env(safe-area-inset-bottom, 0px));
	border-top: 1px solid var(--pcv-line); background: var(--pcv-surface);
	display: flex; flex-direction: column; gap: 6px;
}
.pcv-c-quota { font-size: var(--pcv-fs-xs); color: var(--pcv-muted); text-align: center; }
.pcv-c-quota:empty { display: none; }

/* Panel büyütülmüş (mobil): fotoğraf küçülür ama görünür kalır. */
.pcv-c-work[data-panel="lg"] { --pcv-c-canvas-h: 30svh; }

/* Adımlar: yalnız etkin olan görünür. */
.pcv-c-step { display: none; flex-direction: column; gap: var(--pcv-s3); }
.pcv-studio[data-view="what"] [data-step="what"],
.pcv-studio[data-view="assign"] [data-step="assign"],
.pcv-studio[data-view="colors"] [data-step="colors"],
.pcv-studio[data-view="wait"] [data-step="wait"],
.pcv-studio[data-view="result"] [data-step="result"] { display: flex; }
.pcv-studio.pcv-studio .pcv-c-h { font-size: var(--pcv-fs-lg); font-weight: 750; }
.pcv-c-label { font-size: var(--pcv-fs-sm); font-weight: 650; color: var(--pcv-ink-2); }

/* --- 1. Neyi? ------------------------------------------------------------ */
.pcv-c-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--pcv-s2); }
@container pcv (min-width: 520px) and (max-width: 959px) { .pcv-c-cats { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.pcv-studio.pcv-studio .pcv-c-cat {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
	min-height: 84px; padding: 10px 6px; text-align: center;
	border: 1px solid var(--pcv-line); border-radius: var(--pcv-r-md); background: var(--pcv-surface);
	font-size: 0.8125rem; font-weight: 650; line-height: 1.2; color: var(--pcv-ink);
	transition: border-color var(--pcv-dur) var(--pcv-ease), background-color var(--pcv-dur) var(--pcv-ease);
}
.pcv-studio .pcv-c-cat svg { width: 26px; height: 26px; color: var(--pcv-brand); }
.pcv-studio.pcv-studio .pcv-c-cat:hover { border-color: var(--pcv-ink-2); }
.pcv-studio.pcv-studio .pcv-c-cat[aria-pressed="true"] { border-color: var(--pcv-brand); background: var(--pcv-brand-tint); box-shadow: inset 0 0 0 1px var(--pcv-brand); }
/* Boş durum notu 3 sütunlu ızgarada tam satır (dikey sıkışma olmasın). */
.pcv-c-cats > .pcv-note { grid-column: 1 / -1; }
.pcv-c-chips { display: flex; flex-wrap: wrap; gap: var(--pcv-s2); }

/* --- 2. Yüzey ve renk ataması ------------------------------------------- */
.pcv-c-surface { display: flex; flex-direction: column; gap: var(--pcv-s3); padding-bottom: var(--pcv-s4); border-bottom: 1px solid var(--pcv-line); }
.pcv-c-surface:last-child { border-bottom: 0; padding-bottom: 0; }
.pcv-c-surface-head { display: flex; align-items: center; gap: var(--pcv-s3); }
.pcv-c-surface-head > svg { width: 36px; height: 36px; padding: 7px; border-radius: 11px; background: var(--pcv-brand-tint); color: var(--pcv-brand); }
.pcv-c-surface-head div { flex: 1; min-width: 0; }
.pcv-c-surface-head strong { display: block; font-size: var(--pcv-fs-md); }
.pcv-c-surface-head small { display: block; font-size: var(--pcv-fs-sm); color: var(--pcv-muted); }

.pcv-c-rows { display: flex; flex-direction: column; gap: var(--pcv-s2); }
/* Prompt-first: işaret satırı (renk satırı + kaldır düğmesi) ve sonuç notu. */
.pcv-c-markrow { display: flex; align-items: center; gap: var(--pcv-s2); }
.pcv-c-markrow .pcv-row { flex: 1; min-width: 0; }
.pcv-c-pfnote small { display: block; color: var(--pcv-muted, #5b6560); line-height: 1.45; }
.pcv-studio.pcv-studio .pcv-row {
	display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: var(--pcv-s3);
	width: 100%; min-height: 56px; padding: 8px 10px 8px 12px; text-align: left;
	border: 1px solid var(--pcv-line); border-radius: var(--pcv-r-md); background: var(--pcv-surface); font-weight: 500;
}
.pcv-studio.pcv-studio .pcv-row[aria-current="true"] { border-color: var(--pcv-ink); box-shadow: inset 0 0 0 1px var(--pcv-ink); }
.pcv-row .pcv-c-n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--pcv-canvas); font-weight: 750; font-size: 0.8125rem; }
.pcv-row .pcv-c-rt strong { display: block; font-weight: 650; font-size: 0.9375rem; }
.pcv-row .pcv-c-rt small { display: block; font-size: var(--pcv-fs-xs); color: var(--pcv-muted); }
.pcv-row .pcv-c-rt small[data-changed] { color: var(--pcv-brand-strong); font-weight: 650; }
.pcv-row .pcv-c-rc { display: inline-flex; align-items: center; gap: 8px; font-size: var(--pcv-fs-sm); color: var(--pcv-ink-2); max-width: 46cqi; min-width: 0; }
.pcv-row .pcv-c-rc span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcv-sw-dot { width: 30px; height: 30px; border-radius: 9px; flex: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12); background: var(--c, transparent); }
.pcv-sw-dot[data-empty] { background: repeating-linear-gradient(45deg, #f1f3f2 0 6px, #fff 6px 12px); }

.pcv-c-strip { display: flex; gap: var(--pcv-s2); overflow-x: auto; padding: 4px 2px 6px; scrollbar-width: thin; }
.pcv-studio.pcv-studio .pcv-sw {
	position: relative; flex: none; width: 44px; height: 44px; min-height: 44px; border-radius: 12px;
	background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.10);
}
.pcv-studio.pcv-studio .pcv-sw[aria-pressed="true"] { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--pcv-ink); }
.pcv-studio .pcv-sw[aria-pressed="true"]::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; color: var(--tick, #fff); text-shadow: 0 0 2px rgba(0, 0, 0, 0.4); }
.pcv-studio.pcv-studio .pcv-c-allc { flex: none; height: 44px; min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1px dashed var(--pcv-line-strong); font-size: var(--pcv-fs-sm); color: var(--pcv-brand-strong); }
.pcv-c-row-actions { display: flex; flex-wrap: wrap; gap: var(--pcv-s2); }

/* --- Renk tarayıcısı ------------------------------------------------------ */
.pcv-c-fams { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.pcv-studio.pcv-studio .pcv-c-fams .pcv-chip { min-height: 44px; padding: 6px 14px; font-size: var(--pcv-fs-sm); flex: none; }
.pcv-c-fams .pcv-chip i { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12); }
.pcv-c-recent [data-list] { display: flex; gap: var(--pcv-s2); flex-wrap: wrap; margin-top: 6px; }
.pcv-c-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--pcv-s2); }
@container pcv (min-width: 560px) and (max-width: 959px) { .pcv-c-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pcv-studio.pcv-studio .pcv-c-grid button {
	display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 10px 6px 6px; text-align: left;
	border: 1px solid var(--pcv-line); border-radius: 12px; background: var(--pcv-surface); font-weight: 500;
}
.pcv-studio.pcv-studio .pcv-c-grid button[aria-pressed="true"] { border-color: var(--pcv-ink); box-shadow: inset 0 0 0 1px var(--pcv-ink); }
.pcv-c-grid i { width: 40px; height: 40px; border-radius: 9px; flex: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1); }
.pcv-c-grid span { min-width: 0; font-size: var(--pcv-fs-sm); line-height: 1.25; overflow: hidden; }
.pcv-c-grid small { display: block; color: var(--pcv-muted); font-size: var(--pcv-fs-xs); }

/* --- Bekleme ve sonuç ------------------------------------------------------ */
.pcv-c-list { display: flex; flex-direction: column; gap: var(--pcv-s2); }
.pcv-c-list li { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: var(--pcv-s3); align-items: center; padding: 10px 12px; border: 1px solid var(--pcv-line); border-radius: var(--pcv-r-md); }
.pcv-c-list li > i { width: 36px; height: 36px; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12); background: var(--c); }
.pcv-c-list strong { display: block; font-size: 0.9375rem; }
.pcv-c-list small { display: block; font-size: var(--pcv-fs-xs); color: var(--pcv-muted); }
.pcv-c-list em { display: block; margin-top: 4px; font-style: normal; font-size: var(--pcv-fs-xs); color: var(--pcv-warn-ink); }
.pcv-c-list .pcv-c-state { font-size: var(--pcv-fs-xs); font-weight: 650; color: var(--pcv-muted); white-space: nowrap; }
.pcv-c-list .pcv-c-state[data-ok] { color: var(--pcv-brand-strong); }
.pcv-c-result-actions { display: flex; flex-direction: column; gap: var(--pcv-s2); }
.pcv-c-two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--pcv-s2); }
.pcv-studio.pcv-studio .pcv-c-two .pcv-btn { padding-left: 10px; padding-right: 10px; white-space: normal; }
/* Ürün satırı: bağlantı ayrı, 44 px dokunma hedefi. */
.pcv-c-list .pcv-c-prod { display: block; margin-top: 4px; font-size: var(--pcv-fs-xs); color: var(--pcv-ink-2); }
.pcv-studio.pcv-studio .pcv-c-prodlink { display: inline-flex; align-items: center; min-height: 44px; margin: -6px 0 -10px; padding: 0 2px; font-size: var(--pcv-fs-sm); }
.pcv-c-again { font-size: var(--pcv-fs-xs); color: var(--pcv-muted); text-align: center; text-wrap: pretty; }
/* Sonuç notu: listeden ayrı bileşen. */
.pcv-c-resnote { flex-direction: column; gap: var(--pcv-s1); }
.pcv-c-resnote p { margin: 0; line-height: 1.45; }
.pcv-c-resnote .pcv-c-disclaimer { font-size: var(--pcv-fs-xs); color: var(--pcv-muted); }
/* İletişim eylemleri: gerçek düğmeler, mobilde alt alta. */
.pcv-c-contact { display: flex; flex-direction: column; gap: var(--pcv-s2); padding-top: var(--pcv-s4); border-top: 1px solid var(--pcv-line); }
.pcv-c-contact-title { font-size: var(--pcv-fs-sm); font-weight: 650; color: var(--pcv-ink-2); }
.pcv-c-contact-btns { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--pcv-s2); }
@container pcvp (min-width: 520px) { .pcv-c-contact-btns { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
.pcv-studio.pcv-studio .pcv-c-contact-btns .pcv-btn { white-space: normal; text-align: center; }
.pcv-studio.pcv-studio .pcv-btn-wa { background: var(--pcv-surface); color: var(--pcv-ink); border-color: var(--pcv-line-strong); }
.pcv-studio.pcv-studio .pcv-btn-wa:hover { border-color: #1f9d55; }
.pcv-studio .pcv-btn-wa svg { color: #1a8a4a; }
/* Özet öğeleri: tema sıfırlaması (min-height: 0) daha özgül olduğundan önekli (44 px hedef). */
.pcv-studio.pcv-studio .pcv-c-feedback summary { font-size: var(--pcv-fs-sm); color: var(--pcv-muted); min-height: 44px; display: flex; align-items: center; }

.pcv-c-history { display: flex; flex-direction: column; gap: var(--pcv-s2); }
.pcv-studio.pcv-studio .pcv-c-history h3 { font-size: var(--pcv-fs-md); }
.pcv-c-history-list { display: flex; gap: var(--pcv-s2); overflow-x: auto; padding-bottom: 4px; }
.pcv-studio.pcv-studio .pcv-c-history-list button { flex: none; width: 112px; display: flex; flex-direction: column; gap: 4px; text-align: left; font-size: var(--pcv-fs-xs); font-weight: 600; }
.pcv-c-history-list img { width: 112px; height: 78px; object-fit: cover; border-radius: 10px; background: var(--pcv-canvas); }
.pcv-c-history-list span { display: flex; align-items: center; gap: 4px; }
.pcv-c-history-list i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15); }
.pcv-c-history-list button[aria-current="true"] img { outline: 3px solid var(--pcv-brand); outline-offset: 1px; }
.pcv-studio.pcv-studio .pcv-c-start .pcv-c-history h3 { font-size: var(--pcv-fs-sm); font-weight: 700; color: var(--pcv-ink-2); }
.pcv-c-foot { display: flex; flex-wrap: wrap; gap: var(--pcv-s2); margin-top: auto; }

/* --- Diyaloglar ----------------------------------------------------------- */
.pcv-studio .pcv-c-privacy-dlg { display: none; }
.pcv-studio .pcv-c-privacy-dlg[open] { display: flex; flex-direction: column; gap: var(--pcv-s4); }
.pcv-studio.pcv-studio .pcv-c-privacy-dlg h3 { font-size: var(--pcv-fs-lg); }
.pcv-studio .pcv-c-privacy-dlg p { font-size: 0.9375rem; color: var(--pcv-ink-2); }
.pcv-studio.pcv-studio .pcv-c-kvkk summary { font-size: var(--pcv-fs-sm); color: var(--pcv-brand-strong); min-height: 44px; display: flex; align-items: center; }
.pcv-c-kvkk .pcv-note { max-height: 40vh; overflow: auto; }
/* İşaretli kip dokunuş yeri ipucu: kısa ana mesaj + istenince açılan ayrıntı (yer kaplamasın). */
.pcv-studio.pcv-studio .pcv-tip-more summary { font-size: var(--pcv-fs-sm); color: var(--pcv-brand-strong); min-height: 44px; display: flex; align-items: center; }
.pcv-tip-more p { margin: 0 0 var(--pcv-s2); }
.pcv-c-dlg-actions { display: flex; gap: var(--pcv-s2); justify-content: flex-end; flex-wrap: wrap; }
.pcv-studio #pcv-c-confirm p { margin-bottom: var(--pcv-s4); }

/* ==========================================================================
   Geniş kap: tuval | panel
   ========================================================================== */
@container pcv (min-width: 960px) {
	.pcv-c-work {
		display: grid; grid-template-columns: minmax(0, 1fr) 400px; grid-template-rows: auto minmax(0, 1fr);
		height: min(calc(100svh - var(--pcv-c-top) - var(--pcv-c-bottom) - 24px), 900px); min-height: 620px;
		border-radius: var(--pcv-r-lg); border: 1px solid var(--pcv-line);
	}
	.pcv-c-bar { grid-column: 1 / -1; }
	.pcv-c-canvas { height: auto; padding: var(--pcv-s6); }
	.pcv-c-frame { border-radius: 14px; box-shadow: 0 20px 50px -26px rgba(0, 0, 0, 0.5); }
	.pcv-c-compare { position: static; transform: none; width: var(--pcv-fw, 100%); margin-top: var(--pcv-s2); background: none; }
	.pcv-c-panel { margin: 0; border-radius: 0; box-shadow: none; border-left: 1px solid var(--pcv-line); }
	.pcv-studio.pcv-studio .pcv-c-grab { display: none; }
	.pcv-c-panel-body { padding: var(--pcv-s5); }
	.pcv-c-cta { padding: var(--pcv-s4) var(--pcv-s5); }
	.pcv-c-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.pcv-c-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Yatay telefon: fotoğraf solda, panel sağda (dar yükseklikte alt sayfa fotoğrafı ezer). */
@media (orientation: landscape) and (max-height: 520px) {
	.pcv-c-work { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 42%); grid-template-rows: auto minmax(0, 1fr); min-height: 300px; }
	.pcv-c-bar { grid-column: 1 / -1; min-height: 52px; padding-top: 4px; padding-bottom: 4px; }
	.pcv-c-canvas { height: auto; }
	.pcv-c-panel { margin: 0; border-radius: 0; box-shadow: none; border-left: 1px solid var(--pcv-line); }
	.pcv-studio.pcv-studio .pcv-c-grab { display: none; }
	.pcv-c-cta { padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)); padding-top: 8px; }
}
/* İşaretli kip: dokunma talimatı + kısa ipucu tek not kutusunda (alt alta). */
.pcv-c-tapnote { flex-direction: column; gap: var(--pcv-s1); }
.pcv-c-tapnote p { margin: 0; }

/* 4.4.0-rc2: oturum durumu (yüzey adımı hiç boş kalmaz) ve eski sayfa kopyası uyarısı. */
.pcv-c-catstate { align-items: center; flex-wrap: wrap; }
.pcv-c-catstate > span:not(.pcv-spinner) { flex: 1 1 14em; min-width: 0; }
.pcv-studio[data-stale] .pcv-c-picks, .pcv-studio[data-stale] .pcv-c-history { display: none; }
.pcv-c-stale { flex-wrap: wrap; align-items: center; margin: var(--pcv-s4); }

/* 4.4.0-rc2: kartela adları — hızlı şeritte çip satırı, "Tüm renkler"de çipler + kartela başlıklı gruplar. */
.pcv-c-quick { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pcv-c-pals { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 4px; scrollbar-width: thin; }
.pcv-studio.pcv-studio .pcv-c-pal { flex: none; max-width: min(260px, 78cqi); min-height: 44px; padding: 6px 12px; font-size: var(--pcv-fs-sm); gap: 6px; }
.pcv-studio.pcv-studio .pcv-c-pal[aria-checked="true"] { border-color: var(--pcv-brand); background: var(--pcv-brand-tint); color: var(--pcv-brand-strong); box-shadow: inset 0 0 0 1px var(--pcv-brand); }
.pcv-c-pal-n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcv-c-pal small { flex: none; font-size: var(--pcv-fs-xs); color: var(--pcv-muted); font-weight: 600; }
.pcv-c-pal-one { font-size: var(--pcv-fs-xs); color: var(--pcv-muted); font-weight: 650; }
.pcv-c-grid-h { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 8px; padding: 10px 2px 2px; border-bottom: 1px solid var(--pcv-line); min-width: 0; }
.pcv-c-grid-h strong { font-size: var(--pcv-fs-sm); color: var(--pcv-ink); min-width: 0; overflow-wrap: anywhere; }
.pcv-c-grid-h small { flex: none; font-size: var(--pcv-fs-xs); color: var(--pcv-muted); }
.pcv-row .pcv-c-rt small.pcv-c-rpal { color: var(--pcv-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 320 px telefonda üst çubuk başlığı kırpılmasın. */
@container pcv (max-width: 359px) { .pcv-studio.pcv-studio .pcv-c-bar-title { font-size: 0.9375rem; line-height: 1.2; white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; } }

/* ==========================================================================
   4.4.2 Mobil öncelikli giriş: iki fotoğraf düğmesi ilk ekranda, başlık güçlü ama küçük; boşluklar azaltıldı.
   Temanın sabit alt menüsü (--pcv-c-bottom, JS ölçer) içeriği örtmez.
   ========================================================================== */
.pcv-c-start { padding-bottom: calc(var(--pcv-s8) + var(--pcv-c-bottom)); }
@container pcv (max-width: 559px) {
	.pcv-c-start { padding: var(--pcv-s3) var(--pcv-s3) calc(var(--pcv-s6) + var(--pcv-c-bottom)); gap: var(--pcv-s3); }
	.pcv-c-hero { padding: var(--pcv-s4) var(--pcv-s4) var(--pcv-s4); gap: var(--pcv-s2); }
	.pcv-c-ribbon { margin-bottom: 0; height: 6px; }
	.pcv-studio.pcv-studio .pcv-c-title { font-size: clamp(1.375rem, 0.95rem + 3.6cqi, 1.75rem); line-height: 1.18; }
	.pcv-c-lead { font-size: 1rem; line-height: 1.45; }
	.pcv-c-picks { margin-top: var(--pcv-s1); max-width: none; }
	.pcv-studio.pcv-studio .pcv-c-pick { min-height: 56px; font-size: 1.0625rem; }
	.pcv-c-formats { font-size: var(--pcv-fs-xs); }
	.pcv-c-privacy { padding: var(--pcv-s2) var(--pcv-s3); font-size: var(--pcv-fs-sm); }
}
/* Betik hiç yüklenmezse (eski sayfa kopyasının artık olmayan betiği, engellenen dosya): düğmeler ölü kalmasın, açık mesaj.
   CSS ile (satır içi betik yok; katı CSP'de de çalışır): betik başlarsa data-boot yazılır ve mesaj hiç görünmez. */
.pcv-c-bootfail { max-height: 0; overflow: hidden; visibility: hidden; margin: 0; padding: 0; }
.pcv-studio:not([data-boot]) .pcv-c-bootfail { animation: pcv-bootfail 0s linear 10s forwards; }
@keyframes pcv-bootfail { to { max-height: 20em; visibility: visible; padding: var(--pcv-s2) var(--pcv-s3); } }
/* Yerel tanılama paneli (#pcv-tani): yalnız bu cihazda; hiçbir yere gönderilmez. */
.pcv-diag { position: fixed; left: 8px; right: 8px; top: 8px; z-index: 2147483000; max-height: 45vh; overflow: auto; background: rgba(16, 24, 20, 0.94); color: #e8f3ec; border-radius: 10px; padding: 10px; font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3); }
.pcv-diag strong { display: block; margin-bottom: 4px; font-family: inherit; }
.pcv-diag pre { margin: 0; white-space: pre-wrap; word-break: break-word; font: inherit; color: inherit; background: none; border: 0; padding: 0; }
.pcv-diag button { margin-top: 6px; font: inherit; padding: 4px 10px; border-radius: 6px; border: 1px solid #8fb9a1; background: #1e3a2b; color: #fff; }
/* Boş durum notları akışta boşluk bırakmaz (4.4.2 mobil sıkılaştırma). */
.pcv-c-hero > .pcv-note:empty { display: none; }
.pcv-studio > .pcv-c-bootfail { margin: 0 var(--pcv-s3); }
